wilday_ui 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/builds/wilday_ui/index.js +8 -1
- data/app/assets/builds/wilday_ui/index.js.map +2 -2
- data/app/assets/config/wilday_ui_manifest.js +3 -0
- data/app/assets/stylesheets/wilday_ui/components/button/base.css +16 -0
- data/app/assets/stylesheets/wilday_ui/components/button/features/dropdown.css +244 -0
- data/app/assets/stylesheets/wilday_ui/components/button/features/icons.css +26 -0
- data/app/assets/stylesheets/wilday_ui/components/button/features/loading.css +33 -0
- data/app/assets/stylesheets/wilday_ui/components/button/features/old_variants.css +30 -0
- data/app/assets/stylesheets/wilday_ui/components/button/features/radius.css +12 -0
- data/app/assets/stylesheets/wilday_ui/components/button/features/sizes.css +15 -0
- data/app/assets/stylesheets/wilday_ui/components/button/features/variants.css +195 -0
- data/app/assets/stylesheets/wilday_ui/components/button/index.css +8 -0
- data/app/helpers/wilday_ui/components/button_helper.rb +122 -8
- data/app/javascript/wilday_ui/controllers/dropdown_controller.js +10 -1
- data/app/views/wilday_ui/_button.html.erb +11 -1
- data/app/views/wilday_ui/button/_content.html.erb +18 -14
- data/lib/wilday_ui/config/theme.rb +138 -0
- data/lib/wilday_ui/engine.rb +13 -21
- data/lib/wilday_ui/version.rb +1 -1
- data/lib/wilday_ui.rb +1 -0
- metadata +12 -2
| @@ -0,0 +1,16 @@ | |
| 1 | 
            +
            .w-button {
         | 
| 2 | 
            +
              display: inline-flex;
         | 
| 3 | 
            +
              align-items: center;
         | 
| 4 | 
            +
              justify-content: center;
         | 
| 5 | 
            +
              padding: 0.5rem 1rem;
         | 
| 6 | 
            +
              border-radius: 0.375rem;
         | 
| 7 | 
            +
              font-size: 1rem;
         | 
| 8 | 
            +
              cursor: pointer;
         | 
| 9 | 
            +
              transition: all 0.2s ease-in-out;
         | 
| 10 | 
            +
            }
         | 
| 11 | 
            +
             | 
| 12 | 
            +
            .w-button:disabled {
         | 
| 13 | 
            +
              background-color: #e0e0e0;
         | 
| 14 | 
            +
              color: #6c757d;
         | 
| 15 | 
            +
              cursor: not-allowed;
         | 
| 16 | 
            +
            }
         | 
| @@ -0,0 +1,244 @@ | |
| 1 | 
            +
            /* Dropdown Wrapper */
         | 
| 2 | 
            +
            .w-button-wrapper {
         | 
| 3 | 
            +
              position: relative !important;
         | 
| 4 | 
            +
              display: inline-block !important;
         | 
| 5 | 
            +
              padding: 0;
         | 
| 6 | 
            +
              margin: 0;
         | 
| 7 | 
            +
              overflow: visible !important;
         | 
| 8 | 
            +
            }
         | 
| 9 | 
            +
             | 
| 10 | 
            +
            /* Dropdown Button */
         | 
| 11 | 
            +
            .w-button-dropdown {
         | 
| 12 | 
            +
              display: inline-flex;
         | 
| 13 | 
            +
              align-items: center;
         | 
| 14 | 
            +
              justify-content: center;
         | 
| 15 | 
            +
              gap: 0.5rem;
         | 
| 16 | 
            +
            }
         | 
| 17 | 
            +
             | 
| 18 | 
            +
            /* Dropdown Arrow */
         | 
| 19 | 
            +
            .w-button-dropdown-arrow {
         | 
| 20 | 
            +
              display: inline-flex;
         | 
| 21 | 
            +
              align-items: center;
         | 
| 22 | 
            +
              margin-left: 0.5rem;
         | 
| 23 | 
            +
              transition: transform 0.2s ease;
         | 
| 24 | 
            +
            }
         | 
| 25 | 
            +
             | 
| 26 | 
            +
            .w-button-dropdown-arrow:not(i) {
         | 
| 27 | 
            +
              width: 0.5em;
         | 
| 28 | 
            +
              height: 0.5em;
         | 
| 29 | 
            +
              border: 0.15em solid currentColor;
         | 
| 30 | 
            +
              border-top: 0;
         | 
| 31 | 
            +
              border-left: 0;
         | 
| 32 | 
            +
              transform: translateY(-25%) rotate(45deg);
         | 
| 33 | 
            +
            }
         | 
| 34 | 
            +
             | 
| 35 | 
            +
            /* Arrow Active State */
         | 
| 36 | 
            +
            .w-button.active .w-button-dropdown-arrow:not(i) {
         | 
| 37 | 
            +
              transform: translateY(25%) rotate(225deg);
         | 
| 38 | 
            +
            }
         | 
| 39 | 
            +
             | 
| 40 | 
            +
            .w-button.active .w-button-dropdown-arrow i {
         | 
| 41 | 
            +
              transform: rotate(180deg);
         | 
| 42 | 
            +
            }
         | 
| 43 | 
            +
             | 
| 44 | 
            +
            /* Reset Arrow State */
         | 
| 45 | 
            +
            .w-button-dropdown-arrow i:not(.active) {
         | 
| 46 | 
            +
              transform: rotate(0);
         | 
| 47 | 
            +
            }
         | 
| 48 | 
            +
             | 
| 49 | 
            +
            /* Dropdown Menu */
         | 
| 50 | 
            +
            .w-button-dropdown-menu {
         | 
| 51 | 
            +
              position: absolute;
         | 
| 52 | 
            +
              display: none;
         | 
| 53 | 
            +
              width: max-content;
         | 
| 54 | 
            +
              min-width: 100%;
         | 
| 55 | 
            +
              background-color: white;
         | 
| 56 | 
            +
              border: 1px solid rgba(0, 0, 0, 0.1);
         | 
| 57 | 
            +
              border-radius: 0.5rem;
         | 
| 58 | 
            +
              box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
         | 
| 59 | 
            +
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
         | 
| 60 | 
            +
              z-index: 1000;
         | 
| 61 | 
            +
              overflow: visible;
         | 
| 62 | 
            +
              margin: 0 !important;
         | 
| 63 | 
            +
              padding: 0 !important;
         | 
| 64 | 
            +
            }
         | 
| 65 | 
            +
             | 
| 66 | 
            +
            .w-button-dropdown-menu.show {
         | 
| 67 | 
            +
              display: block;
         | 
| 68 | 
            +
              animation: fadeIn 0.2s ease-in-out;
         | 
| 69 | 
            +
            }
         | 
| 70 | 
            +
             | 
| 71 | 
            +
            /* Dropdown Items */
         | 
| 72 | 
            +
            .w-button-dropdown-item {
         | 
| 73 | 
            +
              display: block;
         | 
| 74 | 
            +
              width: 100%;
         | 
| 75 | 
            +
              padding: 0.5rem 1rem;
         | 
| 76 | 
            +
              font-size: inherit;
         | 
| 77 | 
            +
              line-height: inherit;
         | 
| 78 | 
            +
              text-align: left;
         | 
| 79 | 
            +
              white-space: nowrap;
         | 
| 80 | 
            +
              background-color: transparent;
         | 
| 81 | 
            +
              color: #374151;
         | 
| 82 | 
            +
              text-decoration: none;
         | 
| 83 | 
            +
              transition: all 0.15s ease-in-out;
         | 
| 84 | 
            +
              box-sizing: border-box;
         | 
| 85 | 
            +
              cursor: pointer;
         | 
| 86 | 
            +
            }
         | 
| 87 | 
            +
             | 
| 88 | 
            +
            .w-button-dropdown-item:hover,
         | 
| 89 | 
            +
            .w-button-dropdown-item:focus {
         | 
| 90 | 
            +
              background-color: #f3f4f6;
         | 
| 91 | 
            +
              color: #111827;
         | 
| 92 | 
            +
              outline: none;
         | 
| 93 | 
            +
            }
         | 
| 94 | 
            +
             | 
| 95 | 
            +
            /* Dropdown Divider */
         | 
| 96 | 
            +
            .w-button-dropdown-divider {
         | 
| 97 | 
            +
              height: 0;
         | 
| 98 | 
            +
              margin: 0.5rem 0;
         | 
| 99 | 
            +
              overflow: hidden;
         | 
| 100 | 
            +
              border-top: 1px solid #e9ecef;
         | 
| 101 | 
            +
            }
         | 
| 102 | 
            +
             | 
| 103 | 
            +
            /* Animation */
         | 
| 104 | 
            +
            @keyframes fadeIn {
         | 
| 105 | 
            +
              from {
         | 
| 106 | 
            +
                opacity: 0;
         | 
| 107 | 
            +
                transform: translate(var(--translate-x, 0), var(--translate-y, 0));
         | 
| 108 | 
            +
              }
         | 
| 109 | 
            +
              to {
         | 
| 110 | 
            +
                opacity: 1;
         | 
| 111 | 
            +
                transform: translate(0, 0);
         | 
| 112 | 
            +
              }
         | 
| 113 | 
            +
            }
         | 
| 114 | 
            +
             | 
| 115 | 
            +
            /* Position Variations */
         | 
| 116 | 
            +
            .w-button-dropdown-menu[data-position="top"] {
         | 
| 117 | 
            +
              bottom: 100%;
         | 
| 118 | 
            +
              left: 0;
         | 
| 119 | 
            +
              margin-bottom: 0.125rem;
         | 
| 120 | 
            +
              --translate-y: -10px;
         | 
| 121 | 
            +
            }
         | 
| 122 | 
            +
             | 
| 123 | 
            +
            .w-button-dropdown-menu[data-position="bottom"] {
         | 
| 124 | 
            +
              top: 100%;
         | 
| 125 | 
            +
              left: 0;
         | 
| 126 | 
            +
              margin-top: 0.125rem;
         | 
| 127 | 
            +
              --translate-y: 10px;
         | 
| 128 | 
            +
            }
         | 
| 129 | 
            +
             | 
| 130 | 
            +
            .w-button-dropdown-menu[data-position="right"] {
         | 
| 131 | 
            +
              left: 100%;
         | 
| 132 | 
            +
              margin-left: 0.125rem;
         | 
| 133 | 
            +
              top: 0;
         | 
| 134 | 
            +
              --translate-x: 10px;
         | 
| 135 | 
            +
            }
         | 
| 136 | 
            +
             | 
| 137 | 
            +
            .w-button-dropdown-menu[data-position="left"] {
         | 
| 138 | 
            +
              right: 100%;
         | 
| 139 | 
            +
              margin-right: 0.125rem;
         | 
| 140 | 
            +
              left: auto;
         | 
| 141 | 
            +
              top: 0;
         | 
| 142 | 
            +
              --translate-x: -10px;
         | 
| 143 | 
            +
            }
         | 
| 144 | 
            +
             | 
| 145 | 
            +
            .w-button-dropdown-menu[data-position="top"][data-align="start"],
         | 
| 146 | 
            +
            .w-button-dropdown-menu[data-position="bottom"][data-align="start"] {
         | 
| 147 | 
            +
              left: 0 !important;
         | 
| 148 | 
            +
              right: auto !important;
         | 
| 149 | 
            +
            }
         | 
| 150 | 
            +
             | 
| 151 | 
            +
            .w-button-dropdown-menu[data-position="top"][data-align="end"],
         | 
| 152 | 
            +
            .w-button-dropdown-menu[data-position="bottom"][data-align="end"] {
         | 
| 153 | 
            +
              left: auto !important;
         | 
| 154 | 
            +
              right: 0 !important;
         | 
| 155 | 
            +
            }
         | 
| 156 | 
            +
             | 
| 157 | 
            +
            .w-button-dropdown-menu[data-position="top"][data-align="center"],
         | 
| 158 | 
            +
            .w-button-dropdown-menu[data-position="bottom"][data-align="center"] {
         | 
| 159 | 
            +
              left: 50% !important;
         | 
| 160 | 
            +
              transform: translateX(-50%) !important;
         | 
| 161 | 
            +
            }
         | 
| 162 | 
            +
             | 
| 163 | 
            +
            .w-button-dropdown-menu[data-position="top"][data-align="center"].show,
         | 
| 164 | 
            +
            .w-button-dropdown-menu[data-position="bottom"][data-align="center"].show {
         | 
| 165 | 
            +
              transform: translateX(-50%) translateY(0);
         | 
| 166 | 
            +
            }
         | 
| 167 | 
            +
             | 
| 168 | 
            +
            /* Submenu */
         | 
| 169 | 
            +
            .w-button-dropdown-parent {
         | 
| 170 | 
            +
              position: relative;
         | 
| 171 | 
            +
              cursor: pointer;
         | 
| 172 | 
            +
            }
         | 
| 173 | 
            +
             | 
| 174 | 
            +
            .w-button-dropdown-parent .w-button-dropdown-menu {
         | 
| 175 | 
            +
              position: absolute;
         | 
| 176 | 
            +
              top: 0;
         | 
| 177 | 
            +
              left: 100%;
         | 
| 178 | 
            +
              z-index: 1100;
         | 
| 179 | 
            +
              opacity: 0;
         | 
| 180 | 
            +
              visibility: hidden;
         | 
| 181 | 
            +
              transform: translateX(-10px);
         | 
| 182 | 
            +
              transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
         | 
| 183 | 
            +
              min-width: 10rem;
         | 
| 184 | 
            +
              background-color: white;
         | 
| 185 | 
            +
              padding: 0.5rem 0;
         | 
| 186 | 
            +
              border: 1px solid rgba(0, 0, 0, 0.1);
         | 
| 187 | 
            +
              border-radius: 0.375rem;
         | 
| 188 | 
            +
              box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
         | 
| 189 | 
            +
                0 2px 4px -1px rgba(0, 0, 0, 0.06);
         | 
| 190 | 
            +
            }
         | 
| 191 | 
            +
             | 
| 192 | 
            +
            .w-button-dropdown-parent .w-button-dropdown-menu.show {
         | 
| 193 | 
            +
              opacity: 1;
         | 
| 194 | 
            +
              visibility: visible;
         | 
| 195 | 
            +
              transform: translateX(0);
         | 
| 196 | 
            +
            }
         | 
| 197 | 
            +
             | 
| 198 | 
            +
            .w-button-dropdown-parent .w-button-dropdown-menu[data-position="left"] {
         | 
| 199 | 
            +
              left: auto;
         | 
| 200 | 
            +
              right: 100%;
         | 
| 201 | 
            +
            }
         | 
| 202 | 
            +
             | 
| 203 | 
            +
            /* Nested Submenu Styling */
         | 
| 204 | 
            +
            .w-button-dropdown-menu .w-button-dropdown-parent .w-button-dropdown-menu {
         | 
| 205 | 
            +
              top: 0;
         | 
| 206 | 
            +
              left: 100%;
         | 
| 207 | 
            +
              z-index: 1200;
         | 
| 208 | 
            +
              opacity: 0;
         | 
| 209 | 
            +
              visibility: hidden;
         | 
| 210 | 
            +
              transform: translateX(-10px);
         | 
| 211 | 
            +
              transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
         | 
| 212 | 
            +
            }
         | 
| 213 | 
            +
             | 
| 214 | 
            +
            .w-button-dropdown-menu .w-button-dropdown-parent .w-button-dropdown-menu.show {
         | 
| 215 | 
            +
              opacity: 1;
         | 
| 216 | 
            +
              visibility: visible;
         | 
| 217 | 
            +
              transform: translateX(0);
         | 
| 218 | 
            +
              pointer-events: auto;
         | 
| 219 | 
            +
            }
         | 
| 220 | 
            +
             | 
| 221 | 
            +
            /* Arrow State for Submenus */
         | 
| 222 | 
            +
            .w-button-dropdown-parent .w-button-dropdown-arrow:not(i).active {
         | 
| 223 | 
            +
              transform: translateY(25%) rotate(225deg);
         | 
| 224 | 
            +
            }
         | 
| 225 | 
            +
             | 
| 226 | 
            +
            .w-button-dropdown-arrow i.active {
         | 
| 227 | 
            +
              transform: rotate(180deg);
         | 
| 228 | 
            +
            }
         | 
| 229 | 
            +
             | 
| 230 | 
            +
            /* Mobile responsiveness */
         | 
| 231 | 
            +
            @media (max-width: 768px) {
         | 
| 232 | 
            +
              .w-button-dropdown-menu[data-position="right"],
         | 
| 233 | 
            +
              .w-button-dropdown-menu[data-position="left"] {
         | 
| 234 | 
            +
                position: absolute;
         | 
| 235 | 
            +
                left: 0;
         | 
| 236 | 
            +
                right: 0;
         | 
| 237 | 
            +
                top: 100%;
         | 
| 238 | 
            +
                margin-top: 0.5rem;
         | 
| 239 | 
            +
                margin-left: 0;
         | 
| 240 | 
            +
                margin-right: 0;
         | 
| 241 | 
            +
                --translate-x: 0;
         | 
| 242 | 
            +
                --translate-y: 10px;
         | 
| 243 | 
            +
              }
         | 
| 244 | 
            +
            }
         | 
| @@ -0,0 +1,26 @@ | |
| 1 | 
            +
            /* Icon Button Styles */
         | 
| 2 | 
            +
            .w-button-icon-left {
         | 
| 3 | 
            +
              margin-right: 0.5rem;
         | 
| 4 | 
            +
            }
         | 
| 5 | 
            +
             | 
| 6 | 
            +
            .w-button-icon-right {
         | 
| 7 | 
            +
              margin-left: 0.5rem;
         | 
| 8 | 
            +
            }
         | 
| 9 | 
            +
             | 
| 10 | 
            +
            .w-button-icon-left,
         | 
| 11 | 
            +
            .w-button-icon-right {
         | 
| 12 | 
            +
              display: inline-flex;
         | 
| 13 | 
            +
              align-items: center;
         | 
| 14 | 
            +
            }
         | 
| 15 | 
            +
             | 
| 16 | 
            +
            .w-button-icon-only {
         | 
| 17 | 
            +
              padding: 0.5rem; /* Equal padding for square shape */
         | 
| 18 | 
            +
              aspect-ratio: 1; /* Make it perfectly square */
         | 
| 19 | 
            +
              display: inline-flex;
         | 
| 20 | 
            +
              align-items: center;
         | 
| 21 | 
            +
              justify-content: center;
         | 
| 22 | 
            +
            }
         | 
| 23 | 
            +
             | 
| 24 | 
            +
            .w-button-icon-only .w-button-icon {
         | 
| 25 | 
            +
              margin: 0; /* Remove any margin */
         | 
| 26 | 
            +
            }
         | 
| @@ -0,0 +1,33 @@ | |
| 1 | 
            +
            /* Loading ButtonSpinner */
         | 
| 2 | 
            +
            .w-button-spinner {
         | 
| 3 | 
            +
              width: 1rem;
         | 
| 4 | 
            +
              height: 1rem;
         | 
| 5 | 
            +
              border: 2px solid transparent;
         | 
| 6 | 
            +
              border-top-color: #ffffff;
         | 
| 7 | 
            +
              border-radius: 50%;
         | 
| 8 | 
            +
              animation: w-button-spin 0.6s linear infinite;
         | 
| 9 | 
            +
              margin-right: 0.5rem;
         | 
| 10 | 
            +
            }
         | 
| 11 | 
            +
             | 
| 12 | 
            +
            @keyframes w-button-spin {
         | 
| 13 | 
            +
              from {
         | 
| 14 | 
            +
                transform: rotate(0deg);
         | 
| 15 | 
            +
              }
         | 
| 16 | 
            +
              to {
         | 
| 17 | 
            +
                transform: rotate(360deg);
         | 
| 18 | 
            +
              }
         | 
| 19 | 
            +
            }
         | 
| 20 | 
            +
             | 
| 21 | 
            +
            /* Loading Button State */
         | 
| 22 | 
            +
            .w-button.w-button-loading {
         | 
| 23 | 
            +
              pointer-events: none;
         | 
| 24 | 
            +
              opacity: 0.8;
         | 
| 25 | 
            +
            }
         | 
| 26 | 
            +
             | 
| 27 | 
            +
            .w-button.w-button-loading .w-button-spinner {
         | 
| 28 | 
            +
              display: inline-block;
         | 
| 29 | 
            +
            }
         | 
| 30 | 
            +
             | 
| 31 | 
            +
            .w-button.w-button-loading > *:not(.w-button-spinner) {
         | 
| 32 | 
            +
              display: none;
         | 
| 33 | 
            +
            }
         | 
| @@ -0,0 +1,30 @@ | |
| 1 | 
            +
            /* Variants */
         | 
| 2 | 
            +
            .w-button-primary {
         | 
| 3 | 
            +
              background-color: #007bff;
         | 
| 4 | 
            +
              color: #fff;
         | 
| 5 | 
            +
              border: none;
         | 
| 6 | 
            +
            }
         | 
| 7 | 
            +
             | 
| 8 | 
            +
            .w-button-primary:hover {
         | 
| 9 | 
            +
              background-color: #0056b3;
         | 
| 10 | 
            +
            }
         | 
| 11 | 
            +
             | 
| 12 | 
            +
            .w-button-secondary {
         | 
| 13 | 
            +
              background-color: #6c757d;
         | 
| 14 | 
            +
              color: #fff;
         | 
| 15 | 
            +
              border: none;
         | 
| 16 | 
            +
            }
         | 
| 17 | 
            +
             | 
| 18 | 
            +
            .w-button-secondary:hover {
         | 
| 19 | 
            +
              background-color: #5a6268;
         | 
| 20 | 
            +
            }
         | 
| 21 | 
            +
             | 
| 22 | 
            +
            .w-button-outline {
         | 
| 23 | 
            +
              background-color: transparent;
         | 
| 24 | 
            +
              color: #007bff;
         | 
| 25 | 
            +
              border: 1px solid #007bff;
         | 
| 26 | 
            +
            }
         | 
| 27 | 
            +
             | 
| 28 | 
            +
            .w-button-outline:hover {
         | 
| 29 | 
            +
              background-color: #e7f1ff;
         | 
| 30 | 
            +
            }
         | 
| @@ -0,0 +1,195 @@ | |
| 1 | 
            +
            /* Base button styles */
         | 
| 2 | 
            +
            .w-button {
         | 
| 3 | 
            +
              transition: all 0.2s ease;
         | 
| 4 | 
            +
            }
         | 
| 5 | 
            +
             | 
| 6 | 
            +
            /* Disabled state for all buttons */
         | 
| 7 | 
            +
            .w-button:disabled {
         | 
| 8 | 
            +
              opacity: 0.5;
         | 
| 9 | 
            +
              cursor: not-allowed;
         | 
| 10 | 
            +
              pointer-events: none;
         | 
| 11 | 
            +
            }
         | 
| 12 | 
            +
             | 
| 13 | 
            +
            /* Underline styles only for link buttons */
         | 
| 14 | 
            +
            a.w-button.w-button-underline {
         | 
| 15 | 
            +
              text-decoration: underline;
         | 
| 16 | 
            +
            }
         | 
| 17 | 
            +
             | 
| 18 | 
            +
            a.w-button.w-button-underline:hover {
         | 
| 19 | 
            +
              text-decoration: underline;
         | 
| 20 | 
            +
            }
         | 
| 21 | 
            +
             | 
| 22 | 
            +
            a.w-button.w-button-no-underline {
         | 
| 23 | 
            +
              text-decoration: none;
         | 
| 24 | 
            +
            }
         | 
| 25 | 
            +
             | 
| 26 | 
            +
            a.w-button.w-button-no-underline:hover {
         | 
| 27 | 
            +
              text-decoration: none;
         | 
| 28 | 
            +
            }
         | 
| 29 | 
            +
             | 
| 30 | 
            +
            /* Base variant styles with default styles */
         | 
| 31 | 
            +
            .w-button-solid,
         | 
| 32 | 
            +
            .w-button-solid:disabled {
         | 
| 33 | 
            +
              border: none;
         | 
| 34 | 
            +
              background-color: #1a1a1a;
         | 
| 35 | 
            +
              color: #ffffff;
         | 
| 36 | 
            +
            }
         | 
| 37 | 
            +
             | 
| 38 | 
            +
            .w-button-solid:hover {
         | 
| 39 | 
            +
              background-color: #2c2c2c;
         | 
| 40 | 
            +
            }
         | 
| 41 | 
            +
             | 
| 42 | 
            +
            .w-button-solid:active {
         | 
| 43 | 
            +
              background-color: #000000;
         | 
| 44 | 
            +
            }
         | 
| 45 | 
            +
             | 
| 46 | 
            +
            .w-button-solid:focus-visible {
         | 
| 47 | 
            +
              outline: 2px solid #1a1a1a;
         | 
| 48 | 
            +
              outline-offset: 2px;
         | 
| 49 | 
            +
            }
         | 
| 50 | 
            +
             | 
| 51 | 
            +
            /* Subtle Variant */
         | 
| 52 | 
            +
            .w-button-subtle,
         | 
| 53 | 
            +
            .w-button-subtle:disabled {
         | 
| 54 | 
            +
              border: none;
         | 
| 55 | 
            +
              background-color: rgba(26, 26, 26, 0.1);
         | 
| 56 | 
            +
              color: #1a1a1a;
         | 
| 57 | 
            +
            }
         | 
| 58 | 
            +
             | 
| 59 | 
            +
            .w-button-subtle:hover {
         | 
| 60 | 
            +
              background-color: rgba(26, 26, 26, 0.2);
         | 
| 61 | 
            +
            }
         | 
| 62 | 
            +
             | 
| 63 | 
            +
            .w-button-subtle:active {
         | 
| 64 | 
            +
              background-color: rgba(26, 26, 26, 0.3);
         | 
| 65 | 
            +
            }
         | 
| 66 | 
            +
             | 
| 67 | 
            +
            .w-button-subtle:focus-visible {
         | 
| 68 | 
            +
              outline: 2px solid #1a1a1a;
         | 
| 69 | 
            +
              outline-offset: 2px;
         | 
| 70 | 
            +
            }
         | 
| 71 | 
            +
             | 
| 72 | 
            +
            /* Surface Variant */
         | 
| 73 | 
            +
            .w-button-surface,
         | 
| 74 | 
            +
            .w-button-surface:disabled {
         | 
| 75 | 
            +
              border: 1px solid #e2e8f0;
         | 
| 76 | 
            +
              box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
         | 
| 77 | 
            +
              background-color: #f8f9fa;
         | 
| 78 | 
            +
              color: #1a1a1a;
         | 
| 79 | 
            +
            }
         | 
| 80 | 
            +
             | 
| 81 | 
            +
            .w-button-surface:hover {
         | 
| 82 | 
            +
              background-color: #f1f3f5;
         | 
| 83 | 
            +
              border-color: #cbd5e1;
         | 
| 84 | 
            +
            }
         | 
| 85 | 
            +
             | 
| 86 | 
            +
            .w-button-surface:active {
         | 
| 87 | 
            +
              background-color: #e9ecef;
         | 
| 88 | 
            +
              border-color: #cbd5e1;
         | 
| 89 | 
            +
            }
         | 
| 90 | 
            +
             | 
| 91 | 
            +
            .w-button-surface:focus-visible {
         | 
| 92 | 
            +
              outline: 2px solid #1a1a1a;
         | 
| 93 | 
            +
              outline-offset: 2px;
         | 
| 94 | 
            +
            }
         | 
| 95 | 
            +
             | 
| 96 | 
            +
            /* Outline Variant */
         | 
| 97 | 
            +
            .w-button-outline,
         | 
| 98 | 
            +
            .w-button-outline:disabled {
         | 
| 99 | 
            +
              background-color: transparent;
         | 
| 100 | 
            +
              border: 1px solid currentColor;
         | 
| 101 | 
            +
              color: #1a1a1a;
         | 
| 102 | 
            +
            }
         | 
| 103 | 
            +
             | 
| 104 | 
            +
            .w-button-outline:hover {
         | 
| 105 | 
            +
              background-color: rgba(26, 26, 26, 0.05);
         | 
| 106 | 
            +
            }
         | 
| 107 | 
            +
             | 
| 108 | 
            +
            .w-button-outline:active {
         | 
| 109 | 
            +
              background-color: rgba(26, 26, 26, 0.1);
         | 
| 110 | 
            +
            }
         | 
| 111 | 
            +
             | 
| 112 | 
            +
            .w-button-outline:focus-visible {
         | 
| 113 | 
            +
              outline: 2px solid #1a1a1a;
         | 
| 114 | 
            +
              outline-offset: 2px;
         | 
| 115 | 
            +
            }
         | 
| 116 | 
            +
             | 
| 117 | 
            +
            /* Ghost Variant */
         | 
| 118 | 
            +
            .w-button-ghost,
         | 
| 119 | 
            +
            .w-button-ghost:disabled {
         | 
| 120 | 
            +
              background-color: transparent;
         | 
| 121 | 
            +
              border: none;
         | 
| 122 | 
            +
              color: #1a1a1a;
         | 
| 123 | 
            +
            }
         | 
| 124 | 
            +
             | 
| 125 | 
            +
            .w-button-ghost:hover {
         | 
| 126 | 
            +
              background-color: rgba(26, 26, 26, 0.05);
         | 
| 127 | 
            +
            }
         | 
| 128 | 
            +
             | 
| 129 | 
            +
            .w-button-ghost:active {
         | 
| 130 | 
            +
              background-color: rgba(26, 26, 26, 0.1);
         | 
| 131 | 
            +
            }
         | 
| 132 | 
            +
             | 
| 133 | 
            +
            .w-button-ghost:focus-visible {
         | 
| 134 | 
            +
              outline: 2px solid #1a1a1a;
         | 
| 135 | 
            +
              outline-offset: 2px;
         | 
| 136 | 
            +
            }
         | 
| 137 | 
            +
             | 
| 138 | 
            +
            /* Plain Variant */
         | 
| 139 | 
            +
            .w-button-plain,
         | 
| 140 | 
            +
            .w-button-plain:disabled {
         | 
| 141 | 
            +
              background: none;
         | 
| 142 | 
            +
              border: none;
         | 
| 143 | 
            +
              padding: 0;
         | 
| 144 | 
            +
              color: #1a1a1a;
         | 
| 145 | 
            +
            }
         | 
| 146 | 
            +
             | 
| 147 | 
            +
            .w-button-plain:hover {
         | 
| 148 | 
            +
              text-decoration: underline;
         | 
| 149 | 
            +
            }
         | 
| 150 | 
            +
             | 
| 151 | 
            +
            .w-button-plain:active {
         | 
| 152 | 
            +
              color: #000000;
         | 
| 153 | 
            +
            }
         | 
| 154 | 
            +
             | 
| 155 | 
            +
            .w-button-plain:focus-visible {
         | 
| 156 | 
            +
              outline: 2px solid #1a1a1a;
         | 
| 157 | 
            +
              outline-offset: 2px;
         | 
| 158 | 
            +
            }
         | 
| 159 | 
            +
             | 
| 160 | 
            +
            /* Themed button styles - only override when variables are present */
         | 
| 161 | 
            +
            .w-button[style*="--w-button-color"] {
         | 
| 162 | 
            +
              color: var(--w-button-color);
         | 
| 163 | 
            +
            }
         | 
| 164 | 
            +
             | 
| 165 | 
            +
            .w-button[style*="--w-button-bg"] {
         | 
| 166 | 
            +
              background: var(--w-button-bg);
         | 
| 167 | 
            +
            }
         | 
| 168 | 
            +
             | 
| 169 | 
            +
            .w-button[style*="--w-button-border"] {
         | 
| 170 | 
            +
              border-color: var(--w-button-border);
         | 
| 171 | 
            +
            }
         | 
| 172 | 
            +
             | 
| 173 | 
            +
            .w-button[style*="--w-button-hover-color"]:hover {
         | 
| 174 | 
            +
              color: var(--w-button-hover-color);
         | 
| 175 | 
            +
            }
         | 
| 176 | 
            +
             | 
| 177 | 
            +
            .w-button[style*="--w-button-hover-bg"]:hover {
         | 
| 178 | 
            +
              background: var(--w-button-hover-bg);
         | 
| 179 | 
            +
            }
         | 
| 180 | 
            +
             | 
| 181 | 
            +
            .w-button[style*="--w-button-hover-border"]:hover {
         | 
| 182 | 
            +
              border-color: var(--w-button-hover-border);
         | 
| 183 | 
            +
            }
         | 
| 184 | 
            +
             | 
| 185 | 
            +
            .w-button[style*="--w-button-active-color"]:active {
         | 
| 186 | 
            +
              color: var(--w-button-active-color);
         | 
| 187 | 
            +
            }
         | 
| 188 | 
            +
             | 
| 189 | 
            +
            .w-button[style*="--w-button-active-bg"]:active {
         | 
| 190 | 
            +
              background: var(--w-button-active-bg);
         | 
| 191 | 
            +
            }
         | 
| 192 | 
            +
             | 
| 193 | 
            +
            .w-button[style*="--w-button-active-border"]:active {
         | 
| 194 | 
            +
              border-color: var(--w-button-active-border);
         | 
| 195 | 
            +
            }
         |