@acorex/styles 4.0.24 → 5.0.4

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.
Files changed (107) hide show
  1. package/index.scss +2 -48
  2. package/package.json +11 -11
  3. package/src/base/_colors.scss +16 -0
  4. package/src/base/index.scss +7 -0
  5. package/src/components/_alert.scss +148 -0
  6. package/src/components/_badge.scss +39 -0
  7. package/src/components/_button.scss +652 -0
  8. package/src/components/_calendar.scss +97 -0
  9. package/src/components/_carousel.scss +61 -0
  10. package/src/components/_checkbox.scss +25 -0
  11. package/src/components/_datapager.scss +40 -0
  12. package/src/components/_datepicker.scss +5 -0
  13. package/src/components/_dialog.scss +62 -0
  14. package/src/components/_drawer.scss +79 -0
  15. package/src/components/_dropdown.scss +178 -0
  16. package/src/components/_editor-container.scss +70 -0
  17. package/src/components/_form.scss +8 -0
  18. package/src/components/_input.scss +16 -0
  19. package/src/components/_label.scss +5 -0
  20. package/src/components/_list.scss +49 -0
  21. package/src/components/_loading.scss +54 -0
  22. package/src/components/_popup.scss +87 -0
  23. package/src/components/_radio.scss +30 -0
  24. package/src/components/_range-slider.scss +14 -0
  25. package/src/components/_selectbox.scss +15 -0
  26. package/src/components/_selection-list.scss +28 -0
  27. package/src/components/_side-menu.scss +46 -0
  28. package/src/components/_skeleton.scss +25 -0
  29. package/src/components/_switch.scss +200 -0
  30. package/src/components/_table.scss +22 -0
  31. package/src/components/_tabs.scss +117 -0
  32. package/src/components/_toast.scss +94 -0
  33. package/src/components/_tooltip.scss +44 -0
  34. package/src/components/index.scss +29 -0
  35. package/{variables/bases/_color.scss → src/variables/_colors.scss} +135 -135
  36. package/src/variables/_mixins.scss +18 -0
  37. package/scss/ax-icon/fonts/acorex.eot +0 -0
  38. package/scss/ax-icon/fonts/acorex.svg +0 -1434
  39. package/scss/ax-icon/fonts/acorex.ttf +0 -0
  40. package/scss/ax-icon/fonts/acorex.woff +0 -0
  41. package/scss/ax-icon/selection.json +0 -1
  42. package/scss/ax-icon/style.scss +0 -7218
  43. package/scss/ax-icon/variables.scss +0 -1428
  44. package/scss/bases/accessiblity.scss +0 -38
  45. package/scss/bases/background.scss +0 -76
  46. package/scss/bases/border.scss +0 -453
  47. package/scss/bases/effects.scss +0 -56
  48. package/scss/bases/filter.scss +0 -184
  49. package/scss/bases/flexbox-and-grid.scss +0 -254
  50. package/scss/bases/interactivity.scss +0 -42
  51. package/scss/bases/layout.scss +0 -207
  52. package/scss/bases/root.scss +0 -53
  53. package/scss/bases/sizing.scss +0 -43
  54. package/scss/bases/skeleton.scss +0 -30
  55. package/scss/bases/spacing.scss +0 -245
  56. package/scss/bases/svg.scss +0 -18
  57. package/scss/bases/table.scss +0 -15
  58. package/scss/bases/transform.scss +0 -114
  59. package/scss/bases/transition-and-animation.scss +0 -116
  60. package/scss/bases/typography.scss +0 -210
  61. package/scss/components/alert.scss +0 -131
  62. package/scss/components/badge.scss +0 -6
  63. package/scss/components/button.scss +0 -264
  64. package/scss/components/calendar.scss +0 -120
  65. package/scss/components/carousel.scss +0 -67
  66. package/scss/components/checkbox.scss +0 -36
  67. package/scss/components/datapager.scss +0 -80
  68. package/scss/components/datepicker.scss +0 -8
  69. package/scss/components/dialog.scss +0 -61
  70. package/scss/components/drawer.scss +0 -78
  71. package/scss/components/dropdown.scss +0 -35
  72. package/scss/components/editor-container.scss +0 -105
  73. package/scss/components/input.scss +0 -47
  74. package/scss/components/label.scss +0 -6
  75. package/scss/components/list.scss +0 -55
  76. package/scss/components/loading.scss +0 -47
  77. package/scss/components/popup.scss +0 -103
  78. package/scss/components/radio.scss +0 -36
  79. package/scss/components/selectbox.scss +0 -39
  80. package/scss/components/selection-list.scss +0 -22
  81. package/scss/components/side-menu.scss +0 -44
  82. package/scss/components/switch.scss +0 -178
  83. package/scss/components/table.scss +0 -22
  84. package/scss/components/tabs.scss +0 -115
  85. package/scss/components/text-box.scss +0 -4
  86. package/scss/components/toast.scss +0 -82
  87. package/scss/components/tooltip.scss +0 -42
  88. package/variables/bases/_accessiblity.scss +0 -22
  89. package/variables/bases/_background.scss +0 -57
  90. package/variables/bases/_border.scss +0 -106
  91. package/variables/bases/_common.scss +0 -6
  92. package/variables/bases/_effects.scss +0 -36
  93. package/variables/bases/_filter.scss +0 -62
  94. package/variables/bases/_flexbox-and-grid.scss +0 -138
  95. package/variables/bases/_interactivity.scss +0 -31
  96. package/variables/bases/_layout.scss +0 -102
  97. package/variables/bases/_root.scss +0 -70
  98. package/variables/bases/_sizing.scss +0 -322
  99. package/variables/bases/_spacing.scss +0 -38
  100. package/variables/bases/_svg.scss +0 -1
  101. package/variables/bases/_table.scss +0 -2
  102. package/variables/bases/_transform.scss +0 -88
  103. package/variables/bases/_transition-and-animation.scss +0 -26
  104. package/variables/bases/_typography.scss +0 -191
  105. package/variables/components/_button.scss +0 -0
  106. package/variables/components/_editor-container.scss +0 -5
  107. package/variables/components/_input.scss +0 -0
@@ -0,0 +1,652 @@
1
+ @import "../variables/mixins";
2
+ @layer components {
3
+ ax-button {
4
+ @apply ax-contents;
5
+ button {
6
+ height: calc(var(--ax-base-size) * var(--ax-base-ratio)) !important;
7
+ line-height: calc((var(--ax-base-size) * var(--ax-base-ratio)) / 2) !important;
8
+ @apply ax-relative ax-inline-flex ax-items-center ax-justify-center ax-rounded-md ax-border ax-px-4 ax-text-sm ax-font-medium ax-border-gray-300 ax-text-gray-600;
9
+ @include respond(mobile) {
10
+ @apply ax-text-base;
11
+ }
12
+ ax-prefix {
13
+ @apply ax-flex ax-flex-row ax-pe-2;
14
+ }
15
+ ax-suffix {
16
+ @apply ax-flex ax-flex-row ax-ps-2;
17
+ }
18
+ &:focus {
19
+ @apply ax-outline-none ax-z-10;
20
+ }
21
+ &.ax-rounded {
22
+ @apply ax-rounded-full;
23
+ }
24
+ &.ax-button-icon {
25
+ ax-prefix,
26
+ ax-suffix {
27
+ @apply ax-p-0;
28
+ }
29
+ @apply ax-px-2;
30
+ [class*=" ax-ic-"],
31
+ [class^=ax-ic-] {
32
+ @apply ax-text-2xl;
33
+ }
34
+ }
35
+ &.ax-sm {
36
+ height: calc((var(--ax-base-size) * var(--ax-base-ratio)) - 10px) !important;
37
+ line-height: calc((var(--ax-base-size) * var(--ax-base-ratio)) / 2 - 10px) !important;
38
+ @apply ax-text-sm;
39
+ .ax-ic {
40
+ @apply ax-text-sm;
41
+ }
42
+ }
43
+ &.ax-lg {
44
+ height: calc((var(--ax-base-size) * var(--ax-base-ratio)) + 10px) !important;
45
+ line-height: calc((var(--ax-base-size) * var(--ax-base-ratio)) / 2 + 10px) !important;
46
+ @apply ax-text-lg;
47
+ &.ax-button-icon {
48
+ @apply ax-px-3;
49
+ }
50
+ .ax-ic {
51
+ @apply ax-text-3xl;
52
+ }
53
+ }
54
+ ax-loading-spinner {
55
+ @apply ax-flex ax-pe-1;
56
+ svg {
57
+ width: calc(var(--ax-base-size) * 3);
58
+ height: calc(var(--ax-base-size) * 3);
59
+ @apply ax-fill-current;
60
+ }
61
+ }
62
+ // states
63
+ &.ax-state-selected {
64
+ @apply ax-z-10;
65
+ }
66
+ &.ax-state-loading {
67
+ @apply ax-cursor-not-allowed;
68
+ }
69
+ &.ax-state-disabled {
70
+ @apply ax-cursor-not-allowed ax-opacity-60;
71
+ }
72
+ // normal
73
+ &.ax-primary {
74
+ @apply ax-shadow-sm ax-bg-primary-500 ax-text-primary-fore ax-border-transparent;
75
+ &:hover {
76
+ @apply ax-bg-primary-600;
77
+ }
78
+ &:focus {
79
+ @apply ax-ring-2 ax-ring-offset-2 ax-ring-primary-500;
80
+ }
81
+ &:active {
82
+ @apply ax-bg-primary-700 ax-ring-2 ax-ring-offset-2 ax-ring-primary-700;
83
+ }
84
+ &.ax-state-selected {
85
+ @apply ax-bg-primary-700;
86
+ }
87
+ }
88
+ &.ax-secondary {
89
+ @apply ax-shadow-sm ax-bg-secondary-500 ax-text-secondary-fore ax-border-transparent;
90
+ &:hover {
91
+ @apply ax-bg-secondary-600;
92
+ }
93
+ &:focus {
94
+ @apply ax-ring-2 ax-ring-offset-2 ax-ring-secondary-500;
95
+ }
96
+ &:active {
97
+ @apply ax-bg-secondary-700 ax-ring-2 ax-ring-offset-2 ax-ring-secondary-700;
98
+ }
99
+ &.ax-state-selected {
100
+ @apply ax-bg-secondary-700;
101
+ }
102
+ }
103
+ &.ax-warning {
104
+ @apply ax-shadow-sm ax-bg-warning-500 ax-text-warning-fore ax-border-transparent;
105
+ &:hover {
106
+ @apply ax-bg-warning-400;
107
+ }
108
+ &:focus {
109
+ @apply ax-ring-2 ax-ring-offset-2 ax-ring-warning-500;
110
+ }
111
+ &:active {
112
+ @apply ax-bg-warning-600 ax-text-warning-100 ax-ring-2 ax-ring-offset-2 ax-ring-warning-700;
113
+ }
114
+ &.ax-state-selected {
115
+ @apply ax-bg-warning-700 ax-text-warning-50;
116
+ }
117
+ }
118
+ &.ax-danger {
119
+ @apply ax-shadow-sm ax-bg-danger-500 ax-text-danger-fore ax-border-transparent;
120
+ &:hover {
121
+ @apply ax-bg-danger-600;
122
+ }
123
+ &:focus {
124
+ @apply ax-ring-2 ax-ring-offset-2 ax-ring-danger-500;
125
+ }
126
+ &:active {
127
+ @apply ax-bg-danger-700 ax-ring-2 ax-ring-offset-2 ax-ring-danger-700;
128
+ }
129
+ &.ax-state-selected {
130
+ @apply ax-bg-danger-700;
131
+ }
132
+ }
133
+ &.ax-success {
134
+ @apply ax-shadow-sm ax-bg-success-500 ax-text-success-fore ax-border-transparent;
135
+ &:hover {
136
+ @apply ax-bg-success-600;
137
+ }
138
+ &:focus {
139
+ @apply ax-ring-2 ax-ring-offset-2 ax-ring-success-500;
140
+ }
141
+ &:active {
142
+ @apply ax-bg-success-700 ax-ring-2 ax-ring-offset-2 ax-ring-success-700;
143
+ }
144
+ &.ax-state-selected {
145
+ @apply ax-bg-success-700;
146
+ }
147
+ }
148
+ &.ax-info {
149
+ @apply ax-shadow-sm ax-bg-info-500 ax-text-info-fore ax-border-transparent;
150
+ &:hover {
151
+ @apply ax-bg-info-600;
152
+ }
153
+ &:focus {
154
+ @apply ax-ring-2 ax-ring-offset-2 ax-ring-info-500;
155
+ }
156
+ &:active {
157
+ @apply ax-bg-info-700 ax-ring-2 ax-ring-offset-2 ax-ring-info-700;
158
+ }
159
+ &.ax-state-selected {
160
+ @apply ax-bg-info-700;
161
+ }
162
+ }
163
+ &.ax-dark {
164
+ @apply ax-shadow-sm ax-bg-dark-500 ax-text-dark-fore ax-border-transparent;
165
+ &:hover {
166
+ @apply ax-bg-dark-400;
167
+ }
168
+ &:focus {
169
+ @apply ax-ring-2 ax-ring-offset-2 ax-ring-dark-500;
170
+ }
171
+ &:active {
172
+ @apply ax-bg-dark-700 ax-ring-2 ax-ring-offset-2 ax-ring-dark-700;
173
+ }
174
+ &.ax-state-selected {
175
+ @apply ax-bg-dark-300;
176
+ }
177
+ }
178
+ &.ax-light {
179
+ @apply ax-shadow-sm ax-bg-light-50 ax-text-light-fore ax-border ax-border-default;
180
+ &:hover {
181
+ @apply ax-bg-light-100;
182
+ }
183
+ &:focus {
184
+ @apply ax-ring-2 ax-ring-offset-2 ax-ring-light-200;
185
+ }
186
+ &:active {
187
+ @apply ax-bg-light-200 ax-ring-2 ax-ring-offset-2 ax-ring-light-200;
188
+ }
189
+ &.ax-state-selected {
190
+ @apply ax-bg-light-600 ax-text-light-50;
191
+ }
192
+ }
193
+ // twotone
194
+ &.ax-primary-twotone {
195
+ @apply ax-bg-primary-50 ax-text-primary-500 ax-border-transparent;
196
+ &:hover,
197
+ &:focus {
198
+ @apply ax-bg-primary-100 ax-text-primary-700;
199
+ }
200
+ &:active {
201
+ @apply ax-bg-primary-200 ax-text-primary-700;
202
+ }
203
+ &.ax-state-selected {
204
+ @apply ax-bg-primary-200 ax-text-primary-700;
205
+ }
206
+ }
207
+ &.ax-secondary-twotone {
208
+ @apply ax-bg-secondary-50 ax-text-secondary-500 ax-border-transparent;
209
+ &:hover,
210
+ &:focus {
211
+ @apply ax-bg-secondary-100 ax-text-secondary-700;
212
+ }
213
+ &:active {
214
+ @apply ax-bg-secondary-200 ax-text-secondary-700;
215
+ }
216
+ &.ax-state-selected {
217
+ @apply ax-bg-secondary-200 ax-text-secondary-700;
218
+ }
219
+ }
220
+ &.ax-warning-twotone {
221
+ @apply ax-bg-warning-50 ax-text-warning-500 ax-border-transparent;
222
+ &:hover,
223
+ &:focus {
224
+ @apply ax-bg-warning-100 ax-text-warning-700;
225
+ }
226
+ &:active {
227
+ @apply ax-bg-warning-200 ax-text-warning-700;
228
+ }
229
+ &.ax-state-selected {
230
+ @apply ax-bg-warning-200 ax-text-warning-700;
231
+ }
232
+ }
233
+ &.ax-danger-twotone {
234
+ @apply ax-bg-danger-50 ax-text-danger-500 ax-border-transparent;
235
+ &:hover,
236
+ &:focus {
237
+ @apply ax-bg-danger-100 ax-text-danger-700;
238
+ }
239
+ &:active {
240
+ @apply ax-bg-danger-200 ax-text-danger-700;
241
+ }
242
+ &.ax-state-selected {
243
+ @apply ax-bg-danger-200 ax-text-danger-700;
244
+ }
245
+ }
246
+ &.ax-success-twotone {
247
+ @apply ax-bg-success-50 ax-text-success-500 ax-border-transparent;
248
+ &:hover,
249
+ &:focus {
250
+ @apply ax-bg-success-100 ax-text-success-700;
251
+ }
252
+ &:active {
253
+ @apply ax-bg-success-200 ax-text-success-700;
254
+ }
255
+ &.ax-state-selected {
256
+ @apply ax-bg-success-200 ax-text-success-700;
257
+ }
258
+ }
259
+ &.ax-info-twotone {
260
+ @apply ax-bg-info-50 ax-text-info-500 ax-border-transparent;
261
+ &:hover,
262
+ &:focus {
263
+ @apply ax-bg-info-100 ax-text-primary-700;
264
+ }
265
+ &:active {
266
+ @apply ax-bg-info-200 ax-text-primary-700;
267
+ }
268
+ &.ax-state-selected {
269
+ @apply ax-bg-info-200 ax-text-primary-700;
270
+ }
271
+ }
272
+ &.ax-dark-twotone {
273
+ @apply ax-bg-dark-100 ax-text-dark ax-border-transparent;
274
+ &:hover {}
275
+ &:focus {
276
+ @apply ax-bg-dark-100 ax-text-dark-700;
277
+ }
278
+ &:active {
279
+ @apply ax-bg-dark-200 ax-text-dark-700;
280
+ }
281
+ &.ax-state-selected {
282
+ @apply ax-bg-dark-300 ax-text-dark-fore;
283
+ }
284
+ }
285
+ &.ax-light-twotone {
286
+ @apply ax-bg-light-200 ax-text-light-fore ax-border-transparent;
287
+ &:hover {
288
+ @apply ax-bg-light-300;
289
+ }
290
+ &:focus {
291
+ @apply ax-bg-light-200;
292
+ }
293
+ &:active {
294
+ @apply ax-bg-light-300;
295
+ }
296
+ &.ax-state-selected {
297
+ @apply ax-bg-light-400;
298
+ }
299
+ }
300
+ // outline
301
+ &.ax-primary-outline {
302
+ @apply ax-bg-transparent ax-text-primary-500 ax-border-primary-500;
303
+ &:hover,
304
+ &:focus {
305
+ @apply ax-bg-primary ax-border-primary ax-text-primary-fore;
306
+ }
307
+ &:active {
308
+ @apply ax-bg-primary-700 ax-border-primary-700 ax-text-primary-fore;
309
+ }
310
+ &.ax-state-selected {
311
+ @apply ax-bg-primary ax-text-primary-fore;
312
+ }
313
+ }
314
+ &.ax-secondary-outline {
315
+ @apply ax-bg-transparent ax-text-secondary-500 ax-border-secondary-500;
316
+ &:hover,
317
+ &:focus {
318
+ @apply ax-bg-secondary ax-border-secondary ax-text-secondary-fore;
319
+ }
320
+ &:active {
321
+ @apply ax-bg-secondary-700 ax-border-secondary-700 ax-text-primary-fore;
322
+ }
323
+ &.ax-state-selected {
324
+ @apply ax-bg-secondary ax-text-secondary-fore;
325
+ }
326
+ }
327
+ &.ax-warning-outline {
328
+ @apply ax-bg-transparent ax-text-warning-500 ax-border-warning-500;
329
+ &:hover,
330
+ &:focus {
331
+ @apply ax-bg-warning ax-border-warning ax-text-warning-fore;
332
+ }
333
+ &:active {
334
+ @apply ax-bg-warning-700 ax-border-warning-700 ax-text-primary-fore;
335
+ }
336
+ &.ax-state-selected {
337
+ @apply ax-bg-warning ax-text-warning-fore;
338
+ }
339
+ }
340
+ &.ax-danger-outline {
341
+ @apply ax-bg-transparent ax-text-danger-500 ax-border-danger-500;
342
+ &:hover,
343
+ &:focus {
344
+ @apply ax-bg-danger ax-border-danger ax-text-danger-fore;
345
+ }
346
+ &:active {
347
+ @apply ax-bg-danger-700 ax-border-danger-700 ax-text-primary-fore;
348
+ }
349
+ &.ax-state-selected {
350
+ @apply ax-bg-danger ax-text-danger-fore;
351
+ }
352
+ }
353
+ &.ax-success-outline {
354
+ @apply ax-bg-transparent ax-text-success-500 ax-border-success-500;
355
+ &:hover,
356
+ &:focus {
357
+ @apply ax-bg-success ax-border-success ax-text-success-fore;
358
+ }
359
+ &:active {
360
+ @apply ax-bg-success-700 ax-border-success-700 ax-text-success-fore;
361
+ }
362
+ &.ax-state-selected {
363
+ @apply ax-bg-success ax-text-success-fore;
364
+ }
365
+ }
366
+ &.ax-info-outline {
367
+ @apply ax-bg-transparent ax-text-info-500 ax-border-info-500;
368
+ &:hover,
369
+ &:focus {
370
+ @apply ax-bg-info ax-border-info ax-text-info-fore;
371
+ }
372
+ &:active {
373
+ @apply ax-bg-info-700 ax-border-info-700 ax-text-info-fore;
374
+ }
375
+ &.ax-state-selected {
376
+ @apply ax-bg-info ax-text-info-fore;
377
+ }
378
+ }
379
+ &.ax-dark-outline {
380
+ @apply ax-bg-transparent ax-text-dark-500 ax-border-dark-500;
381
+ &:hover {
382
+ @apply ax-bg-dark-50 ax-border-dark ax-text-dark;
383
+ }
384
+ &:focus {
385
+ @apply ax-bg-dark-500 ax-border-dark-500 ax-text-dark-fore;
386
+ }
387
+ &:active {
388
+ @apply ax-bg-dark-700 ax-border-dark-700 ax-text-dark-fore;
389
+ }
390
+ &.ax-state-selected {
391
+ @apply ax-bg-dark ax-text-dark-fore;
392
+ }
393
+ }
394
+ &.ax-light-outline {
395
+ @apply ax-bg-transparent ax-text-light-fore ax-border-light-200;
396
+ &:hover,
397
+ &:focus {
398
+ @apply ax-bg-light-200 ax-border-light-200 ax-text-light-fore;
399
+ }
400
+ &:active {
401
+ @apply ax-bg-light-300 ax-border-light-300 ax-text-light-fore;
402
+ }
403
+ &.ax-state-selected {
404
+ @apply ax-bg-light-300 ax-text-light-fore;
405
+ }
406
+ }
407
+ // blank
408
+ &.ax-primary-blank {
409
+ @apply ax-bg-transparent ax-text-primary-500 ax-border-transparent;
410
+ &:hover,
411
+ &:focus {
412
+ @apply ax-bg-primary-50 ax-text-primary-600;
413
+ }
414
+ &:active {
415
+ @apply ax-bg-primary-100 ax-text-primary-700;
416
+ }
417
+ &.ax-state-selected {
418
+ @apply ax-bg-primary-200;
419
+ }
420
+ }
421
+ &.ax-secondary-blank {
422
+ @apply ax-bg-transparent ax-text-secondary-500 ax-border-transparent;
423
+ &:hover,
424
+ &:focus {
425
+ @apply ax-bg-secondary-50 ax-text-secondary-600;
426
+ }
427
+ &:active {
428
+ @apply ax-bg-secondary-100 ax-text-secondary-700;
429
+ }
430
+ &.ax-state-selected {
431
+ @apply ax-bg-secondary-200;
432
+ }
433
+ }
434
+ &.ax-warning-blank {
435
+ @apply ax-bg-transparent ax-text-warning-500 ax-border-transparent;
436
+ &:hover,
437
+ &:focus {
438
+ @apply ax-bg-warning-50 ax-text-warning-600;
439
+ }
440
+ &:active {
441
+ @apply ax-bg-warning-100 ax-text-warning-700;
442
+ }
443
+ &.ax-state-selected {
444
+ @apply ax-bg-warning-200;
445
+ }
446
+ }
447
+ &.ax-danger-blank {
448
+ @apply ax-bg-transparent ax-text-danger-500 ax-border-transparent;
449
+ &:hover,
450
+ &:focus {
451
+ @apply ax-bg-danger-50 ax-text-danger-600;
452
+ }
453
+ &:active {
454
+ @apply ax-bg-danger-100 ax-text-danger-700;
455
+ }
456
+ &.ax-state-selected {
457
+ @apply ax-bg-danger-200;
458
+ }
459
+ }
460
+ &.ax-success-blank {
461
+ @apply ax-bg-transparent ax-text-success-500 ax-border-transparent;
462
+ &:hover,
463
+ &:focus {
464
+ @apply ax-bg-success-50 ax-text-success-600;
465
+ }
466
+ &:active {
467
+ @apply ax-bg-success-100 ax-text-success-700;
468
+ }
469
+ &.ax-state-selected {
470
+ @apply ax-bg-success-200;
471
+ }
472
+ }
473
+ &.ax-info-blank {
474
+ @apply ax-bg-transparent ax-text-info-500 ax-border-transparent;
475
+ &:hover,
476
+ &:focus {
477
+ @apply ax-bg-info-50 ax-text-info-600;
478
+ }
479
+ &:active {
480
+ @apply ax-bg-info-100 ax-text-info-700;
481
+ }
482
+ &.ax-state-selected {
483
+ @apply ax-bg-info-200;
484
+ }
485
+ }
486
+ &.ax-dark-blank {
487
+ @apply ax-bg-transparent ax-text-dark-500 ax-border-transparent;
488
+ &:hover,
489
+ &:focus {
490
+ @apply ax-bg-dark-400 ax-text-dark-fore;
491
+ }
492
+ &:active {
493
+ @apply ax-bg-dark-600 ax-text-dark-fore;
494
+ }
495
+ &.ax-state-selected {
496
+ @apply ax-bg-dark-200;
497
+ }
498
+ }
499
+ &.ax-light-blank {
500
+ @apply ax-bg-transparent ax-text-light-fore ax-border-transparent;
501
+ &:hover,
502
+ &:focus {
503
+ @apply ax-bg-light-100 ax-text-light-500;
504
+ }
505
+ &:active {
506
+ @apply ax-bg-light-200 ax-text-light-700;
507
+ }
508
+ &.ax-state-selected {
509
+ @apply ax-bg-light-600;
510
+ }
511
+ }
512
+ // link
513
+ &.ax-primary-link {
514
+ @apply ax-rounded-none ax-border-b ax-border-r-0 ax-border-l-0 ax-border-t-0 ax-text-primary-500 ax-border-primary;
515
+ &:hover,
516
+ &:focus {
517
+ @apply ax-text-primary-600 ax-border-primary-600;
518
+ }
519
+ &:active {
520
+ @apply ax-text-primary-500 ax-border-primary-500;
521
+ }
522
+ &.ax-state-selected {
523
+ @apply ax-bg-primary-200;
524
+ }
525
+ }
526
+ &.ax-secondary-link {
527
+ @apply ax-rounded-none ax-border-b ax-border-r-0 ax-border-l-0 ax-border-t-0 ax-text-secondary-500 ax-border-secondary;
528
+ &:hover,
529
+ &:focus {
530
+ @apply ax-text-secondary-600 ax-border-secondary-600;
531
+ }
532
+ &:active {
533
+ @apply ax-text-secondary-500 ax-border-secondary-500;
534
+ }
535
+ &.ax-state-selected {
536
+ @apply ax-bg-secondary-200;
537
+ }
538
+ }
539
+ &.ax-warning-link {
540
+ @apply ax-rounded-none ax-border-b ax-border-r-0 ax-border-l-0 ax-border-t-0 ax-text-warning-500 ax-border-warning;
541
+ &:hover,
542
+ &:focus {
543
+ @apply ax-text-warning-600 ax-border-warning-600;
544
+ }
545
+ &:active {
546
+ @apply ax-text-warning-500 ax-border-warning-500;
547
+ }
548
+ &.ax-state-selected {
549
+ @apply ax-bg-warning-200;
550
+ }
551
+ }
552
+ &.ax-danger-link {
553
+ @apply ax-rounded-none ax-border-b ax-border-r-0 ax-border-l-0 ax-border-t-0 ax-text-danger-500 ax-border-danger;
554
+ &:hover,
555
+ &:focus {
556
+ @apply ax-text-danger-600 ax-border-danger-600;
557
+ }
558
+ &:active {
559
+ @apply ax-text-danger-500 ax-border-danger-500;
560
+ }
561
+ &.ax-state-selected {
562
+ @apply ax-bg-danger-200;
563
+ }
564
+ }
565
+ &.ax-success-link {
566
+ @apply ax-rounded-none ax-border-b ax-border-r-0 ax-border-l-0 ax-border-t-0 ax-text-success-500 ax-border-success;
567
+ &:hover,
568
+ &:focus {
569
+ @apply ax-text-success-600 ax-border-success-600;
570
+ }
571
+ &:active {
572
+ @apply ax-text-success-500 ax-border-success-500;
573
+ }
574
+ &.ax-state-selected {
575
+ @apply ax-bg-success-200;
576
+ }
577
+ }
578
+ &.ax-info-link {
579
+ @apply ax-rounded-none ax-border-b ax-border-r-0 ax-border-l-0 ax-border-t-0 ax-text-info-500 ax-border-info;
580
+ &:hover,
581
+ &:focus {
582
+ @apply ax-text-info-600 ax-border-info-600;
583
+ }
584
+ &:active {
585
+ @apply ax-text-info-500 ax-border-info-500;
586
+ }
587
+ &.ax-state-selected {
588
+ @apply ax-bg-info-200;
589
+ }
590
+ }
591
+ &.ax-dark-link {
592
+ @apply ax-rounded-none ax-border-b ax-border-r-0 ax-border-l-0 ax-border-t-0 ax-text-dark-500 ax-border-dark;
593
+ &:hover,
594
+ &:focus {
595
+ @apply ax-text-dark-600 ax-border-dark-600;
596
+ }
597
+ &:active {
598
+ @apply ax-text-dark-300 ax-border-dark-300;
599
+ }
600
+ &.ax-state-selected {
601
+ @apply ax-bg-dark-200;
602
+ }
603
+ }
604
+ &.ax-light-link {
605
+ @apply ax-rounded-none ax-border-b ax-border-r-0 ax-border-l-0 ax-border-t-0 ax-text-light-400 ax-border-light-400;
606
+ &:hover {
607
+ @apply ax-text-light-300 ax-border-light-300;
608
+ }
609
+ &:focus {
610
+ @apply ax-text-light-500 ax-border-light-500;
611
+ }
612
+ &:active {
613
+ @apply ax-text-light-600 ax-border-light-600;
614
+ }
615
+ &.ax-state-selected {
616
+ @apply ax-bg-light-600;
617
+ }
618
+ }
619
+ }
620
+ }
621
+ .ax-button-group {
622
+ @apply ax-flex;
623
+ ax-button {
624
+ button {
625
+ &[class*="-link"] {
626
+ &:first-child,
627
+ &:last-child {
628
+ @apply ax-rounded-s-none ax-rounded-e-none;
629
+ }
630
+ }
631
+ }
632
+ &:not(:first-child):not(:last-child) {
633
+ button {
634
+ @apply ax-border-s-0;
635
+ }
636
+ }
637
+ button {
638
+ @apply ax-rounded-none;
639
+ }
640
+ &:first-child {
641
+ button {
642
+ @apply ax-rounded-s-md;
643
+ }
644
+ }
645
+ &:last-child {
646
+ button {
647
+ @apply ax-rounded-e-md ax-border-s-0;
648
+ }
649
+ }
650
+ }
651
+ }
652
+ }