Upgrade tailwindcss-stimulus-components to latest version
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build is passing
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	continuous-integration/drone/push Build is passing
				
			The latest one offers more tabs features. Required some changes to the modals and tabs code.
This commit is contained in:
		
							parent
							
								
									3c1fe3396d
								
							
						
					
					
						commit
						866ffbe615
					
				@ -1,13 +1,26 @@
 | 
			
		||||
<div data-modal-target="container"
 | 
			
		||||
     data-action="click->modal#closeBackground keyup@window->modal#closeWithKeyboard"
 | 
			
		||||
     class="hidden animate-scale-in fixed inset-0 overflow-y-auto flex items-center justify-center"
 | 
			
		||||
     style="z-index: 9999;">
 | 
			
		||||
  <div class="max-h-screen w-auto max-w-lg relative">
 | 
			
		||||
    <div class="m-1 bg-white rounded shadow">
 | 
			
		||||
      <div class="p-8">
 | 
			
		||||
        <%= content %>
 | 
			
		||||
        <div class="flex justify-end items-center flex-wrap mt-6">
 | 
			
		||||
          <button class="btn-md btn-blue" data-action="click->modal#close">Close</button>
 | 
			
		||||
<div tabindex="-1" class="relative z-10">
 | 
			
		||||
  <!-- Modal Background -->
 | 
			
		||||
  <div class="hidden fixed inset-0 bg-black bg-opacity-80 overflow-y-auto flex items-center justify-center"
 | 
			
		||||
        data-modal-target="background"
 | 
			
		||||
        data-action="click->modal#closeBackground"
 | 
			
		||||
        data-transition-enter="transition-all ease-in-out duration-100"
 | 
			
		||||
        data-transition-enter-from="bg-opacity-0"
 | 
			
		||||
        data-transition-enter-to="bg-opacity-80"
 | 
			
		||||
        data-transition-leave="transition-all ease-in-out duration-100"
 | 
			
		||||
        data-transition-leave-from="bg-opacity-80"
 | 
			
		||||
        data-transition-leave-to="bg-opacity-0">
 | 
			
		||||
 | 
			
		||||
    <!-- Modal Container -->
 | 
			
		||||
    <div data-modal-target="container"
 | 
			
		||||
         class="max-h-screen w-auto max-w-lg relative
 | 
			
		||||
                hidden animate-scale-in fixed inset-0 overflow-y-auto flex items-center justify-center">
 | 
			
		||||
      <!-- Modal Card -->
 | 
			
		||||
      <div class="m-1 bg-white rounded shadow">
 | 
			
		||||
        <div class="p-8">
 | 
			
		||||
          <%= content %>
 | 
			
		||||
          <div class="flex justify-end items-center flex-wrap mt-6">
 | 
			
		||||
            <button class="btn-md btn-blue" data-action="click->modal#close:prevent">Close</button>
 | 
			
		||||
          </div>
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
@ -8,7 +8,9 @@
 | 
			
		||||
      </p>
 | 
			
		||||
      <ul class="md:w-3/4">
 | 
			
		||||
        <% @invitations_unused.each do |invitation| %>
 | 
			
		||||
          <li class="mb-3 flex gap-1" data-controller="clipboard modal">
 | 
			
		||||
          <li class="mb-3 flex gap-1"
 | 
			
		||||
              data-controller="clipboard modal"
 | 
			
		||||
              data-action="keydown.esc->modal#close">
 | 
			
		||||
            <input type="text" disabled class="relative grow font-mono"
 | 
			
		||||
                   value="<%= invitation_url(invitation.token) %>"
 | 
			
		||||
                   data-clipboard-target="source" />
 | 
			
		||||
 | 
			
		||||
@ -7,7 +7,7 @@
 | 
			
		||||
      join public channels or private rooms.
 | 
			
		||||
    </p>
 | 
			
		||||
  </section>
 | 
			
		||||
  <section data-controller="modal">
 | 
			
		||||
  <section data-controller="modal" data-action="keydown.esc->modal#close">
 | 
			
		||||
    <h3>Your Chat Address</h3>
 | 
			
		||||
    <p class="mb-6">
 | 
			
		||||
      When you exchange contacts with people, give them your
 | 
			
		||||
@ -45,31 +45,31 @@
 | 
			
		||||
  <section>
 | 
			
		||||
    <h3>Recommended Apps</h3>
 | 
			
		||||
    <div data-controller="tabs"
 | 
			
		||||
         data-tabs-active-tab="-mb-px border-gray-200 border-l border-t border-r rounded-t text-indigo-600 hover:text-indigo-600"
 | 
			
		||||
         data-tabs-inactive-tab="text-gray-500 hover:text-gray-700"
 | 
			
		||||
         data-tabs-active-tab-class="-mb-px border-gray-200 border-l border-t border-r rounded-t text-indigo-600 hover:text-indigo-600"
 | 
			
		||||
         data-tabs-inactive-tab-class="text-gray-500 hover:text-gray-700"
 | 
			
		||||
         class="mb-12">
 | 
			
		||||
      <ul class="list-reset flex mb-8 border-gray-200 border-b">
 | 
			
		||||
        <li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change">
 | 
			
		||||
        <li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change:prevent">
 | 
			
		||||
          <a href="#" class="bg-white inline-block py-2 px-4 font-semibold no-underline">
 | 
			
		||||
            Android
 | 
			
		||||
          </a>
 | 
			
		||||
        </li>
 | 
			
		||||
        <li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change">
 | 
			
		||||
        <li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change:prevent">
 | 
			
		||||
          <a href="#" class="bg-white inline-block py-2 px-4 font-semibold no-underline">
 | 
			
		||||
            iOS
 | 
			
		||||
          </a>
 | 
			
		||||
        </li>
 | 
			
		||||
        <li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change">
 | 
			
		||||
        <li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change:prevent">
 | 
			
		||||
          <a href="#" class="bg-white inline-block py-2 px-4 font-semibold no-underline">
 | 
			
		||||
            Linux
 | 
			
		||||
          </a>
 | 
			
		||||
        </li>
 | 
			
		||||
        <li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change">
 | 
			
		||||
        <li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change:prevent">
 | 
			
		||||
          <a href="#" class="bg-white inline-block py-2 px-4 font-semibold no-underline">
 | 
			
		||||
            Windows
 | 
			
		||||
          </a>
 | 
			
		||||
        </li>
 | 
			
		||||
        <li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change">
 | 
			
		||||
        <li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change:prevent">
 | 
			
		||||
          <a href="#" class="bg-white inline-block py-2 px-4 font-semibold no-underline">
 | 
			
		||||
            macOS
 | 
			
		||||
          </a>
 | 
			
		||||
 | 
			
		||||
@ -29,7 +29,7 @@
 | 
			
		||||
    </p>
 | 
			
		||||
  </section>
 | 
			
		||||
 | 
			
		||||
  <section data-controller="modal">
 | 
			
		||||
  <section data-controller="modal" data-action="keydown.esc->modal#close">
 | 
			
		||||
    <h3>Wallet Apps</h3>
 | 
			
		||||
    <p>
 | 
			
		||||
      You can connect various wallet apps to your Kosmos account. This allows
 | 
			
		||||
 | 
			
		||||
@ -6,7 +6,7 @@
 | 
			
		||||
      Follow and interact with anyone on the open social web, from your Kosmos Mastodon account.
 | 
			
		||||
    </p>
 | 
			
		||||
  </section>
 | 
			
		||||
  <section data-controller="modal">
 | 
			
		||||
  <section data-controller="modal" data-action="keydown.esc->modal#close">
 | 
			
		||||
    <h3>Your User Address</h3>
 | 
			
		||||
    <p class="mb-6">
 | 
			
		||||
      Others can follow you under this address:
 | 
			
		||||
@ -43,36 +43,36 @@
 | 
			
		||||
  <section>
 | 
			
		||||
    <h3>Recommended Apps</h3>
 | 
			
		||||
    <div data-controller="tabs"
 | 
			
		||||
         data-tabs-active-tab="-mb-px border-gray-200 border-l border-t border-r rounded-t text-indigo-600 hover:text-indigo-600"
 | 
			
		||||
         data-tabs-inactive-tab="text-gray-500 hover:text-gray-700"
 | 
			
		||||
         data-tabs-active-tab-class="-mb-px border-gray-200 border-l border-t border-r rounded-t text-indigo-600 hover:text-indigo-600"
 | 
			
		||||
         data-tabs-inactive-tab-class="text-gray-500 hover:text-gray-700"
 | 
			
		||||
         class="mb-12">
 | 
			
		||||
      <ul class="list-reset flex mb-8 border-gray-200 border-b">
 | 
			
		||||
        <li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change">
 | 
			
		||||
        <li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change:prevent">
 | 
			
		||||
          <a href="#" class="bg-white inline-block py-2 px-4 font-semibold no-underline">
 | 
			
		||||
            Web
 | 
			
		||||
          </a>
 | 
			
		||||
        </li>
 | 
			
		||||
        <li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change">
 | 
			
		||||
        <li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change:prevent">
 | 
			
		||||
          <a href="#" class="bg-white inline-block py-2 px-5 font-semibold no-underline">
 | 
			
		||||
            Android
 | 
			
		||||
          </a>
 | 
			
		||||
        </li>
 | 
			
		||||
        <li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change">
 | 
			
		||||
        <li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change:prevent">
 | 
			
		||||
          <a href="#" class="bg-white inline-block py-2 px-4 font-semibold no-underline">
 | 
			
		||||
            iOS
 | 
			
		||||
          </a>
 | 
			
		||||
        </li>
 | 
			
		||||
        <li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change">
 | 
			
		||||
        <li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change:prevent">
 | 
			
		||||
          <a href="#" class="bg-white inline-block py-2 px-4 font-semibold no-underline">
 | 
			
		||||
            Linux
 | 
			
		||||
          </a>
 | 
			
		||||
        </li>
 | 
			
		||||
        <li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change">
 | 
			
		||||
        <li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change:prevent">
 | 
			
		||||
          <a href="#" class="bg-white inline-block py-2 px-4 font-semibold no-underline">
 | 
			
		||||
            Windows
 | 
			
		||||
          </a>
 | 
			
		||||
        </li>
 | 
			
		||||
        <li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change">
 | 
			
		||||
        <li class="mr-2" data-tabs-target="tab" data-action="click->tabs#change:prevent">
 | 
			
		||||
          <a href="#" class="bg-white inline-block py-2 px-4 font-semibold no-underline">
 | 
			
		||||
            macOS
 | 
			
		||||
          </a>
 | 
			
		||||
 | 
			
		||||
@ -6,4 +6,4 @@ pin "@hotwired/stimulus", to: "stimulus.min.js", preload: true
 | 
			
		||||
pin "@hotwired/stimulus-loading", to: "stimulus-loading.js", preload: true
 | 
			
		||||
pin_all_from "app/javascript/controllers", under: "controllers"
 | 
			
		||||
pin "bech32" # @2.0.0
 | 
			
		||||
pin "tailwindcss-stimulus-components" # @3.0.4
 | 
			
		||||
pin "tailwindcss-stimulus-components" # @4.0.3
 | 
			
		||||
 | 
			
		||||
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user