@uxf/ui 10.0.0-beta.7 → 10.0.0-beta.74

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 (194) hide show
  1. package/_file-input-base/file-input-base.js +9 -1
  2. package/_select-base/_select-base.d.ts +1 -1
  3. package/_select-base/_select-base.js +4 -3
  4. package/alert-bubble/alert-bubble.d.ts +8 -0
  5. package/alert-bubble/alert-bubble.js +22 -0
  6. package/alert-bubble/alert-bubble.spec.d.ts +1 -0
  7. package/alert-bubble/alert-bubble.spec.js +9 -0
  8. package/alert-bubble/alert-bubble.stories.d.ts +7 -0
  9. package/alert-bubble/alert-bubble.stories.js +50 -0
  10. package/alert-bubble/index.d.ts +3 -0
  11. package/alert-bubble/index.js +5 -0
  12. package/alert-bubble/theme.d.ts +16 -0
  13. package/alert-bubble/theme.js +2 -0
  14. package/avatar-file-input/avatar-file-input.d.ts +3 -0
  15. package/avatar-file-input/avatar-file-input.js +10 -4
  16. package/avatar-file-input/avatar-file-input.stories.js +2 -2
  17. package/avatar-file-input/theme.d.ts +5 -0
  18. package/avatar-file-input/theme.js +2 -0
  19. package/button/theme.d.ts +1 -0
  20. package/calendar/calendar-day-cell.d.ts +3 -0
  21. package/calendar/calendar-day-cell.js +14 -14
  22. package/{date-picker/date-picker-navigation.d.ts → calendar/calendar-navigation.d.ts} +2 -3
  23. package/{date-picker/date-picker-navigation.js → calendar/calendar-navigation.js} +6 -6
  24. package/calendar/calendar-provider.js +1 -1
  25. package/calendar/calendar.d.ts +5 -0
  26. package/calendar/calendar.js +5 -8
  27. package/calendar/index.d.ts +4 -1
  28. package/calendar/index.js +5 -15
  29. package/chip/chip.js +6 -4
  30. package/chip/chip.stories.js +37 -28
  31. package/combobox/combobox.d.ts +1 -1
  32. package/combobox/combobox.stories.d.ts +2 -1
  33. package/combobox/combobox.stories.js +6 -2
  34. package/config/icons-config.d.ts +1 -1
  35. package/config/icons-config.js +1 -1
  36. package/config/icons.d.ts +13 -3
  37. package/config/icons.js +3 -1
  38. package/css/alert-bubble.css +100 -0
  39. package/css/avatar-file-input.css +54 -20
  40. package/css/avatar.css +3 -3
  41. package/css/badge.css +5 -5
  42. package/css/button-group.css +1 -1
  43. package/css/button-list.css +2 -2
  44. package/css/button.css +72 -26
  45. package/css/calendar.css +115 -51
  46. package/css/checkbox-button.css +8 -8
  47. package/css/checkbox.css +9 -9
  48. package/css/chip.css +217 -318
  49. package/css/color-radio-group.css +1 -1
  50. package/css/color-radio.css +3 -3
  51. package/css/component-structure-analyzer.css +12 -12
  52. package/css/date-picker.css +10 -3
  53. package/css/date-range-picker.css +21 -0
  54. package/css/datetime-picker.css +2 -2
  55. package/css/dialog.css +55 -0
  56. package/css/dropdown.css +10 -2
  57. package/css/dropzone.css +7 -7
  58. package/css/error-message.css +1 -1
  59. package/css/file-input.css +2 -2
  60. package/css/flash-messages.css +133 -9
  61. package/css/icon.css +1 -1
  62. package/css/image-gallery.css +7 -7
  63. package/css/input-with-popover.css +1 -1
  64. package/css/input.css +8 -8
  65. package/css/layout.css +4 -4
  66. package/css/list-item.css +2 -2
  67. package/css/message.css +92 -0
  68. package/css/modal.css +10 -54
  69. package/css/multi-combobox.css +10 -10
  70. package/css/pagination.css +14 -14
  71. package/css/paper.css +1 -1
  72. package/css/radio-group.css +3 -3
  73. package/css/radio.css +7 -7
  74. package/css/raster-image.css +1 -1
  75. package/css/select-base.css +1 -1
  76. package/css/tabs.css +13 -13
  77. package/css/text-link.css +4 -4
  78. package/css/textarea.css +68 -76
  79. package/css/time-picker.css +12 -16
  80. package/css/toggle.css +1 -1
  81. package/css/tooltip.css +2 -2
  82. package/date-picker/date-picker-decade.js +6 -6
  83. package/date-picker/date-picker-month.js +6 -6
  84. package/date-picker/date-picker-year.js +2 -2
  85. package/date-picker/date-picker.d.ts +2 -0
  86. package/date-picker/date-picker.js +2 -0
  87. package/date-picker-input/date-picker-input.d.ts +1 -0
  88. package/date-picker-input/date-picker-input.js +3 -1
  89. package/date-range-picker/date-range-picker-content.d.ts +2 -0
  90. package/date-range-picker/date-range-picker-content.js +55 -0
  91. package/date-range-picker/date-range-picker-decade.d.ts +6 -0
  92. package/date-range-picker/date-range-picker-decade.js +72 -0
  93. package/date-range-picker/date-range-picker-month.d.ts +8 -0
  94. package/date-range-picker/date-range-picker-month.js +69 -0
  95. package/date-range-picker/date-range-picker-year.d.ts +7 -0
  96. package/date-range-picker/date-range-picker-year.js +80 -0
  97. package/date-range-picker/date-range-picker.d.ts +10 -0
  98. package/date-range-picker/date-range-picker.js +51 -0
  99. package/date-range-picker/date-range-picker.spec.d.ts +1 -0
  100. package/date-range-picker/date-range-picker.spec.js +9 -0
  101. package/date-range-picker/date-range-picker.stories.d.ts +7 -0
  102. package/date-range-picker/date-range-picker.stories.js +43 -0
  103. package/date-range-picker/index.d.ts +3 -0
  104. package/date-range-picker/index.js +5 -0
  105. package/date-range-picker/types.d.ts +5 -0
  106. package/date-range-picker/types.js +2 -0
  107. package/date-range-picker-input/date-range-picker-input.d.ts +16 -0
  108. package/date-range-picker-input/date-range-picker-input.js +62 -0
  109. package/date-range-picker-input/date-range-picker-input.spec.d.ts +1 -0
  110. package/date-range-picker-input/date-range-picker-input.spec.js +9 -0
  111. package/date-range-picker-input/date-range-picker-input.stories.d.ts +10 -0
  112. package/date-range-picker-input/date-range-picker-input.stories.js +53 -0
  113. package/date-range-picker-input/index.d.ts +2 -0
  114. package/date-range-picker-input/index.js +5 -0
  115. package/datetime-picker/datetime-picker.d.ts +1 -0
  116. package/datetime-picker/datetime-picker.js +2 -2
  117. package/datetime-picker-input/datetime-picker-input.d.ts +1 -0
  118. package/datetime-picker-input/datetime-picker-input.js +3 -1
  119. package/dialog/dialog.d.ts +9 -0
  120. package/{modal/modal-dialog.js → dialog/dialog.js} +8 -9
  121. package/dialog/dialog.spec.d.ts +1 -0
  122. package/dialog/dialog.spec.js +9 -0
  123. package/dialog/dialog.stories.d.ts +7 -0
  124. package/dialog/dialog.stories.js +47 -0
  125. package/dialog/index.d.ts +2 -0
  126. package/dialog/index.js +5 -0
  127. package/dropzone/dropzone-input.js +10 -6
  128. package/file-input/file-input.d.ts +3 -0
  129. package/file-input/file-input.js +5 -5
  130. package/flash-messages/flash-message.js +1 -1
  131. package/flash-messages/flash-messages.js +44 -10
  132. package/flash-messages/flash-messages.stories.js +12 -0
  133. package/image-gallery/components/close-button.d.ts +2 -1
  134. package/image-gallery/components/close-button.js +2 -3
  135. package/image-gallery/components/gallery.d.ts +4 -1
  136. package/image-gallery/components/gallery.js +5 -4
  137. package/image-gallery/components/next-button.d.ts +7 -0
  138. package/image-gallery/components/next-button.js +14 -0
  139. package/image-gallery/components/prev-button.d.ts +7 -0
  140. package/image-gallery/components/prev-button.js +14 -0
  141. package/image-gallery/image-gallery.d.ts +4 -1
  142. package/image-gallery/image-gallery.js +1 -1
  143. package/image-gallery/image-gallery.stories.js +5 -1
  144. package/message/index.d.ts +3 -0
  145. package/message/index.js +7 -0
  146. package/message/message-content.d.ts +17 -0
  147. package/message/message-content.js +41 -0
  148. package/message/message-service.d.ts +13 -0
  149. package/message/message-service.js +29 -0
  150. package/message/message.d.ts +20 -0
  151. package/message/message.js +47 -0
  152. package/message/message.spec.d.ts +1 -0
  153. package/message/message.spec.js +9 -0
  154. package/message/message.stories.d.ts +7 -0
  155. package/message/message.stories.js +82 -0
  156. package/message/theme.d.ts +12 -0
  157. package/message/theme.js +2 -0
  158. package/modal/index.d.ts +2 -1
  159. package/modal/index.js +3 -3
  160. package/modal/modal.d.ts +5 -4
  161. package/modal/modal.js +9 -9
  162. package/modal/modal.stories.js +12 -0
  163. package/modal/theme.d.ts +3 -0
  164. package/multi-combobox/_multi-combobox-base.js +9 -3
  165. package/multi-combobox/multi-combobox.stories.js +6 -3
  166. package/multi-combobox/types.d.ts +4 -0
  167. package/multi-select/_multi-select-base.js +2 -2
  168. package/multi-select/multi-select.stories.js +5 -2
  169. package/package.json +10 -8
  170. package/radio-group/index.d.ts +1 -1
  171. package/radio-group/radio-group.d.ts +3 -3
  172. package/radio-group/radio-group.js +2 -2
  173. package/radio-group/radio-group.stories.js +4 -4
  174. package/raster-image/raster-image.js +1 -1
  175. package/select/select.d.ts +1 -1
  176. package/select/select.stories.d.ts +2 -1
  177. package/select/select.stories.js +8 -2
  178. package/textarea/textarea.js +5 -5
  179. package/time-picker/time-picker-hour.js +3 -3
  180. package/time-picker/time-picker-hours.js +1 -1
  181. package/time-picker/time-picker-minute.js +3 -3
  182. package/time-picker/time-picker-minutes.js +1 -1
  183. package/time-picker/time-picker.d.ts +1 -0
  184. package/time-picker/time-picker.js +3 -2
  185. package/time-picker-input/time-picker-input.js +3 -1
  186. package/tooltip/tooltip.js +20 -18
  187. package/utils/icons-config.js +13 -3
  188. package/utils/mocks/uploadFIle.mock.js +1 -1
  189. package/utils/storybook-config.d.ts +11 -1
  190. package/utils/storybook-config.js +9 -1
  191. package/utils/tailwind-config.js +8 -0
  192. package/image-gallery/components/arrow-button.d.ts +0 -7
  193. package/image-gallery/components/arrow-button.js +0 -14
  194. package/modal/modal-dialog.d.ts +0 -11
@@ -0,0 +1,92 @@
1
+ .uxf-message {
2
+ --color: unset;
3
+
4
+ &__title {
5
+ @apply uxf-typo-h6;
6
+
7
+ :root .dark & {
8
+ color: theme("colors.white");
9
+ }
10
+ }
11
+
12
+ &__description {
13
+ @apply uxf-typo-body2;
14
+
15
+ margin-top: theme("spacing.2");
16
+
17
+ :root .light & {
18
+ color: theme("colors.lightMedium");
19
+ }
20
+
21
+ :root .dark & {
22
+ color: theme("colors.white");
23
+ }
24
+ }
25
+
26
+ &--variant-centered {
27
+ --panel-max-w: 360px;
28
+
29
+ .uxf-message__content-wrapper {
30
+ align-items: center;
31
+ display: flex;
32
+ flex-direction: column;
33
+ padding: theme("spacing.6");
34
+ }
35
+
36
+ .uxf-message__icon-wrapper {
37
+ margin-bottom: theme("spacing.6");
38
+ }
39
+
40
+ .uxf-message__text-content {
41
+ text-align: center;
42
+ width: 100%;
43
+ }
44
+
45
+ .uxf-message__buttons-wrapper {
46
+ @apply space-x-2;
47
+
48
+ align-items: center;
49
+ display: flex;
50
+ padding: 0 theme("spacing.6") theme("spacing.6");
51
+ }
52
+ }
53
+
54
+ &--variant-simple {
55
+ --panel-max-w: 320px;
56
+
57
+ .uxf-message__content-wrapper {
58
+ display: flex;
59
+ flex-direction: column;
60
+ justify-content: flex-start;
61
+ justify-items: center;
62
+ padding: theme("spacing.4");
63
+ }
64
+
65
+ .uxf-message__icon-wrapper {
66
+ margin-right: theme("spacing.3");
67
+ }
68
+
69
+ .uxf-message__text-content {
70
+ flex-grow: 1;
71
+ padding-top: theme("spacing.1");
72
+ text-align: left;
73
+ }
74
+
75
+ .uxf-message__buttons-wrapper {
76
+ @apply space-x-2;
77
+
78
+ align-items: center;
79
+ display: flex;
80
+ justify-content: flex-end;
81
+ padding: theme("spacing.3") theme("spacing.4");
82
+
83
+ :root .light & {
84
+ background: theme("backgroundColor.gray.50");
85
+ }
86
+
87
+ :root .dark & {
88
+ background: theme("backgroundColor.lightHigh");
89
+ }
90
+ }
91
+ }
92
+ }
package/css/modal.css CHANGED
@@ -1,65 +1,21 @@
1
1
  .uxf-modal {
2
- position: relative;
3
- z-index: theme("zIndex.modal");
4
-
5
- &__backdrop {
6
- @apply inset-0;
7
-
8
- position: fixed;
9
- background-color: rgb(0 0 0 / 75%);
10
- }
11
-
12
- &__wrapper {
13
- @apply inset-0;
14
-
15
- position: fixed;
16
- overflow-y: auto;
2
+ &--width-xs {
3
+ --panel-max-w: theme("maxWidth.xs");
17
4
  }
18
5
 
19
- &__body {
20
- display: flex;
21
- min-height: 100%;
22
- align-items: flex-end;
23
- justify-content: center;
24
- padding-top: theme("spacing.8");
25
-
26
- @media screen(sm) {
27
- align-items: center;
28
- padding: theme("spacing.4");
29
- }
30
- }
31
-
32
- &__panel {
33
- position: relative;
34
- width: 100%;
35
- border-top-left-radius: theme("borderRadius.2xl");
36
- border-top-right-radius: theme("borderRadius.2xl");
37
- overflow: hidden;
38
-
39
- :root .light & {
40
- background-color: theme("colors.white");
41
- color: theme("colors.black");
42
- }
43
-
44
- :root .dark & {
45
- background-color: theme("colors.gray.900");
46
- color: theme("colors.white");
47
- }
48
-
49
- @media screen(sm) {
50
- border-radius: theme("borderRadius.2xl");
51
- }
6
+ &--width-sm {
7
+ --panel-max-w: theme("maxWidth.sm");
52
8
  }
53
9
 
54
- &--width-sm .uxf-modal__panel {
55
- max-width: theme("maxWidth.sm");
10
+ &--width-default {
11
+ --panel-max-w: theme("maxWidth.lg");
56
12
  }
57
13
 
58
- &--width-default .uxf-modal__panel {
59
- max-width: theme("maxWidth.lg");
14
+ &--width-lg {
15
+ --panel-max-w: theme("maxWidth.3xl");
60
16
  }
61
17
 
62
- &--width-lg .uxf-modal__panel {
63
- max-width: theme("maxWidth.3xl");
18
+ &--width-xl {
19
+ --panel-max-w: theme("maxWidth.5xl");
64
20
  }
65
21
  }
@@ -4,16 +4,16 @@
4
4
  &__button {
5
5
  min-height: theme("inputSize.default");
6
6
 
7
- @apply relative flex flex-row w-full cursor-default flex-wrap items-center rounded-lg pl-3 pr-8 pb-[7px]
8
- text-left outline-none before:absolute before:inset-0 before:pointer-events-none before:border
9
- before:rounded-lg shadow-sm;
7
+ @apply relative flex w-full cursor-default flex-row flex-wrap items-center rounded-lg pb-[7px] pl-3 pr-8
8
+ text-left shadow-sm outline-none before:pointer-events-none before:absolute before:inset-0
9
+ before:rounded-lg before:border;
10
10
 
11
11
  &--with-popover {
12
12
  @apply cursor-text pb-0;
13
13
  }
14
14
 
15
15
  .uxf-icon {
16
- @apply absolute top-1/2 -translate-y-1/2 right-3;
16
+ @apply absolute right-3 top-1/2 -translate-y-1/2;
17
17
 
18
18
  :root .light & {
19
19
  @apply text-lightLow;
@@ -45,7 +45,7 @@
45
45
  @apply ring-2;
46
46
 
47
47
  :root .light & {
48
- @apply before:border-none ring-primary;
48
+ @apply ring-primary before:border-none;
49
49
  }
50
50
 
51
51
  :root .dark & {
@@ -57,7 +57,7 @@
57
57
  @apply ring-1;
58
58
 
59
59
  :root .light & {
60
- @apply ring-error text-error;
60
+ @apply text-error ring-error;
61
61
 
62
62
  .uxf-combobox__input {
63
63
  @apply placeholder:text-error;
@@ -65,7 +65,7 @@
65
65
  }
66
66
 
67
67
  :root .dark & {
68
- @apply ring-error text-error;
68
+ @apply text-error ring-error;
69
69
 
70
70
  .uxf-combobox__input {
71
71
  @apply placeholder:text-error;
@@ -75,8 +75,8 @@
75
75
  }
76
76
 
77
77
  &__input {
78
- @apply bg-inherit focus-visible:ring-0 focus-visible:border-0 focus-visible:outline-none
79
- shrink grow truncate;
78
+ @apply shrink grow truncate bg-inherit
79
+ focus-visible:border-0 focus-visible:outline-none focus-visible:ring-0;
80
80
 
81
81
  margin-top: 7px;
82
82
 
@@ -105,6 +105,6 @@
105
105
  }
106
106
 
107
107
  &__popover-panel {
108
- @apply absolute top-0 left-0 z-10 w-full;
108
+ @apply absolute left-0 top-0 z-10 w-full;
109
109
  }
110
110
  }
@@ -1,8 +1,8 @@
1
1
  .uxf-pagination {
2
- @apply isolate inline-flex rounded-md -space-x-px;
2
+ @apply isolate inline-flex -space-x-px rounded-md;
3
3
 
4
4
  &__button {
5
- @apply relative inline-flex items-center border text-sm font-medium focus:z-10 cursor-pointer;
5
+ @apply relative inline-flex cursor-pointer items-center border text-sm font-medium focus:z-10;
6
6
 
7
7
  :root .light & {
8
8
  @apply border-gray-300 bg-white text-gray-500 hover:bg-gray-50;
@@ -16,11 +16,11 @@
16
16
  @apply z-10;
17
17
 
18
18
  :root .light & {
19
- @apply bg-indigo-50 border border-primary text-primary-600;
19
+ @apply border border-primary bg-indigo-50 text-primary-600;
20
20
  }
21
21
 
22
22
  :root .dark & {
23
- @apply bg-indigo-900/20 border border-primary-700 text-primary-300;
23
+ @apply border border-primary-700 bg-indigo-900/20 text-primary-300;
24
24
  }
25
25
  }
26
26
 
@@ -62,32 +62,32 @@
62
62
  }
63
63
 
64
64
  &--size-xs .uxf-pagination__button {
65
- height: theme("inputSize.xs");
66
-
67
65
  @apply px-2;
66
+
67
+ height: theme("inputSize.xs");
68
68
  }
69
69
 
70
70
  &--size-sm .uxf-pagination__button {
71
- height: theme("inputSize.sm");
72
-
73
71
  @apply px-3;
72
+
73
+ height: theme("inputSize.sm");
74
74
  }
75
75
 
76
76
  &--size-default .uxf-pagination__button {
77
- height: theme("inputSize.default");
78
-
79
77
  @apply px-4;
78
+
79
+ height: theme("inputSize.default");
80
80
  }
81
81
 
82
82
  &--size-lg .uxf-pagination__button {
83
- height: theme("inputSize.lg");
84
-
85
83
  @apply px-5;
84
+
85
+ height: theme("inputSize.lg");
86
86
  }
87
87
 
88
88
  &--size-xl .uxf-pagination__button {
89
- height: theme("inputSize.xl");
90
-
91
89
  @apply px-6;
90
+
91
+ height: theme("inputSize.xl");
92
92
  }
93
93
  }
package/css/paper.css CHANGED
@@ -1,3 +1,3 @@
1
1
  .uxf-paper {
2
- @apply bg-white rounded-lg shadow-paper;
2
+ @apply rounded-lg bg-white shadow-paper;
3
3
  }
@@ -1,6 +1,6 @@
1
1
  .uxf-radio-group {
2
2
  &__option {
3
- @apply outline-none focus-visible:ring-offset-2 focus-visible:ring-2 focus-visible:rounded-lg;
3
+ @apply outline-none focus-visible:rounded-lg focus-visible:ring-2 focus-visible:ring-offset-2;
4
4
  }
5
5
 
6
6
  &__option-wrapper {
@@ -92,8 +92,8 @@
92
92
  }
93
93
 
94
94
  .uxf-radio-group__option-wrapper {
95
- @apply flex-col-reverse min-w-[112px] p-3 relative
96
- before:absolute before:inset-0 before:pointer-events-none before:border before:rounded-lg;
95
+ @apply relative min-w-[112px] flex-col-reverse p-3
96
+ before:pointer-events-none before:absolute before:inset-0 before:rounded-lg before:border;
97
97
 
98
98
  &.is-selected {
99
99
  @apply before:border-2;
package/css/radio.css CHANGED
@@ -1,5 +1,5 @@
1
1
  .uxf-radio {
2
- @apply flex shrink-0 items-center justify-center border rounded-full transition focus-visible:ring-2;
2
+ @apply flex shrink-0 items-center justify-center rounded-full border transition focus-visible:ring-2;
3
3
 
4
4
  &__inner {
5
5
  @apply block rounded-full opacity-0 transition;
@@ -15,7 +15,7 @@
15
15
  @apply h-4 w-4;
16
16
 
17
17
  .uxf-radio__inner {
18
- @apply w-1.5 h-1.5;
18
+ @apply h-1.5 w-1.5;
19
19
  }
20
20
  }
21
21
 
@@ -23,7 +23,7 @@
23
23
  @apply h-6 w-6;
24
24
 
25
25
  .uxf-radio__inner {
26
- @apply w-2.5 h-2.5;
26
+ @apply h-2.5 w-2.5;
27
27
  }
28
28
  }
29
29
 
@@ -31,7 +31,7 @@
31
31
  @apply border-gray-400 focus-visible:ring-primary;
32
32
 
33
33
  &.is-selected {
34
- @apply bg-primary border-none;
34
+ @apply border-none bg-primary;
35
35
 
36
36
  .uxf-radio__inner {
37
37
  @apply bg-white;
@@ -39,7 +39,7 @@
39
39
  }
40
40
 
41
41
  &.is-disabled {
42
- @apply border-gray-200 pointer-events-none;
42
+ @apply pointer-events-none border-gray-200;
43
43
 
44
44
  &.is-selected {
45
45
  @apply bg-gray-200;
@@ -67,7 +67,7 @@
67
67
  @apply border-gray-400 focus-visible:ring-primary focus-visible:ring-offset-gray-900;
68
68
 
69
69
  &.is-selected {
70
- @apply bg-primary border-none;
70
+ @apply border-none bg-primary;
71
71
 
72
72
  .uxf-radio__inner {
73
73
  @apply bg-white;
@@ -75,7 +75,7 @@
75
75
  }
76
76
 
77
77
  &.is-disabled {
78
- @apply border-gray-600 pointer-events-none;
78
+ @apply pointer-events-none border-gray-600;
79
79
 
80
80
  &.is-selected {
81
81
  @apply bg-gray-600;
@@ -7,7 +7,7 @@
7
7
  }
8
8
 
9
9
  &__img {
10
- @apply block w-full h-auto;
10
+ @apply block h-auto w-full;
11
11
 
12
12
  &--contain {
13
13
  @apply absolute inset-0 h-full object-contain;
@@ -39,7 +39,7 @@
39
39
  }
40
40
 
41
41
  &__arrow-icon {
42
- @apply w-3 h-5;
42
+ @apply h-5 w-3;
43
43
 
44
44
  z-index: 1;
45
45
 
package/css/tabs.css CHANGED
@@ -8,10 +8,10 @@
8
8
  }
9
9
 
10
10
  &__tab-list__wrapper {
11
- @apply w-full mb-6 overflow-auto;
11
+ @apply mb-6 w-full overflow-auto;
12
12
 
13
13
  &--default {
14
- @apply relative before:absolute before:pointer-events-none before:bottom-0 before:w-full before:border-b-2;
14
+ @apply relative before:pointer-events-none before:absolute before:bottom-0 before:w-full before:border-b-2;
15
15
 
16
16
  :root .light & {
17
17
  @apply before:border-b-gray-100;
@@ -36,7 +36,7 @@
36
36
  }
37
37
 
38
38
  &__tab-list {
39
- @apply flex items-center text-base font-semibold overflow-x-auto whitespace-nowrap w-full;
39
+ @apply flex w-full items-center overflow-x-auto whitespace-nowrap text-base font-semibold;
40
40
 
41
41
  scrollbar-width: none;
42
42
 
@@ -45,18 +45,18 @@
45
45
  }
46
46
 
47
47
  &--default {
48
- @apply py-1.5 px-1 space-x-2;
48
+ @apply space-x-2 px-1 py-1.5;
49
49
  }
50
50
 
51
51
  &--segmented {
52
- @apply p-1 space-x-1;
52
+ @apply space-x-1 p-1;
53
53
  }
54
54
  }
55
55
 
56
56
  &__tab {
57
- @apply inline-flex text-center items-center justify-center px-2 py-2 whitespace-nowrap transition-colors
58
- outline-none cursor-pointer is-disabled:pointer-events-none
59
- focus-visible:ring-2 focus-visible:ring-offset-1 overflow-visible;
57
+ @apply inline-flex cursor-pointer items-center justify-center overflow-visible whitespace-nowrap px-2 py-2
58
+ text-center outline-none transition-colors
59
+ focus-visible:ring-2 focus-visible:ring-offset-1 is-disabled:pointer-events-none;
60
60
 
61
61
  &--default {
62
62
  @apply relative rounded-lg before:absolute before:bottom-[-6px] before:w-full before:border-b-2
@@ -72,7 +72,7 @@
72
72
  }
73
73
 
74
74
  &.is-active {
75
- @apply before:opacity-100 ;
75
+ @apply before:opacity-100;
76
76
 
77
77
  :root .light & {
78
78
  @apply text-lightHigh before:border-b-primary hover:bg-transparent;
@@ -98,22 +98,22 @@
98
98
  @apply rounded;
99
99
 
100
100
  :root .light & {
101
- @apply text-lightMedium bg-gray-100 hover:text-primary-600 hover:bg-primary-100
101
+ @apply bg-gray-100 text-lightMedium hover:bg-primary-100 hover:text-primary-600
102
102
  focus-visible:ring-primary focus-visible:ring-offset-gray-100;
103
103
  }
104
104
 
105
105
  :root .dark & {
106
- @apply text-darkMedium bg-gray-700 hover:bg-gray-800 focus-visible:ring-primary
106
+ @apply bg-gray-700 text-darkMedium hover:bg-gray-800 focus-visible:ring-primary
107
107
  focus-visible:ring-offset-gray-700;
108
108
  }
109
109
 
110
110
  &.is-active {
111
111
  :root .light & {
112
- @apply text-white bg-primary;
112
+ @apply bg-primary text-white;
113
113
  }
114
114
 
115
115
  :root .dark & {
116
- @apply text-white bg-primary;
116
+ @apply bg-primary text-white;
117
117
  }
118
118
  }
119
119
 
package/css/text-link.css CHANGED
@@ -1,12 +1,12 @@
1
1
  .uxf-text-link {
2
- @apply underline transition outline-none relative before:absolute before:-inset-1
3
- focus-visible:before:border-2 focus-visible:before:rounded-lg;
2
+ @apply relative underline outline-none transition before:absolute before:-inset-1
3
+ focus-visible:before:rounded-lg focus-visible:before:border-2;
4
4
 
5
5
  :root .light & {
6
- @apply text-primary is-hoverable:text-primary-400 focus-visible:before:border-primary;
6
+ @apply text-primary focus-visible:before:border-primary is-hoverable:text-primary-400;
7
7
  }
8
8
 
9
9
  :root .dark & {
10
- @apply text-primary is-hoverable:text-primary-400 focus-visible:before:border-primary;
10
+ @apply text-primary focus-visible:before:border-primary is-hoverable:text-primary-400;
11
11
  }
12
12
  }