@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
package/css/chip.css CHANGED
@@ -1,590 +1,489 @@
1
1
  .uxf-chip {
2
- @apply inline-flex items-center rounded-lg px-2 max-w-full;
2
+ --button-bg-color-hover: transparent;
3
+ --spacing-y: calc((var(--h) - var(--button-size)) / 2);
4
+ --spacing-x: theme("spacing.2");
5
+
6
+ align-items: center;
7
+ background-color: var(--bg-color);
8
+ border-radius: theme("borderRadius.lg");
9
+ color: var(--color);
10
+ display: inline-flex;
11
+ height: var(--h);
12
+ max-width: 100%;
13
+ padding: 0 var(--spacing-x);
3
14
 
4
15
  &.has-button {
5
- @apply pr-1;
16
+ padding-right: var(--spacing-y);
6
17
  }
7
18
 
8
19
  &--size-default {
9
- @apply text-sm h-6;
20
+ --button-border-radius: var(--spacing-y);
21
+ --button-size: 16px;
22
+ --h: 24px;
10
23
 
11
- .uxf-chip__button {
12
- @apply h-4 w-4;
13
- }
24
+ @apply text-sm;
14
25
  }
15
26
 
16
27
  &--size-small {
17
- @apply text-xs h-5;
28
+ --button-border-radius: 999px;
29
+ --button-size: 16px;
30
+ --h: 20px;
18
31
 
19
- .uxf-chip__button {
20
- @apply h-4 w-4;
21
- }
32
+ @apply text-xs;
22
33
  }
23
34
 
24
35
  &--size-large {
25
- @apply text-base h-7;
36
+ --button-border-radius: var(--spacing-y);
37
+ --button-size: 20px;
38
+ --h: 28px;
26
39
 
27
- .uxf-chip__button {
28
- @apply h-4 w-4;
29
- }
40
+ @apply text-base;
30
41
  }
31
42
 
32
43
  &__text {
33
44
  @apply truncate;
45
+
46
+ letter-spacing: -0.02em;
34
47
  }
35
48
 
36
49
  &__button {
37
- @apply ml-1 inline-flex h-4 w-4 flex-shrink-0 items-center justify-center rounded;
50
+ align-items: center;
51
+ border-radius: var(--button-border-radius);
52
+ display: inline-flex;
53
+ flex-shrink: 0;
54
+ height: var(--button-size);
55
+ justify-content: center;
56
+ margin-left: calc(var(--spacing-y) / 2);
57
+ text-align: center;
58
+ width: var(--button-size);
38
59
 
39
- svg {
40
- @apply h-2 w-2;
60
+ &-label {
61
+ @apply sr-only;
62
+ }
63
+
64
+ &-icon {
65
+ height: 8px;
66
+ width: 8px;
67
+ }
68
+
69
+ &:hover {
70
+ background-color: var(--button-bg-color-hover);
71
+ color: var(--button-color-hover);
41
72
  }
42
73
  }
43
74
 
44
75
  &--variant-default {
76
+ --button-color-hover: var(--color);
77
+
45
78
  &.uxf-chip--color-orange {
46
79
  :root .light & {
47
- @apply text-white bg-orange-500;
48
-
49
- .uxf-chip__button {
50
- @apply hover:bg-orange-200;
51
- }
80
+ --bg-color: theme("colors.orange.500");
81
+ --button-bg-color-hover: theme("colors.orange.700");
82
+ --color: theme("colors.white");
52
83
  }
53
84
 
54
85
  :root .dark & {
55
- @apply text-lightHigh bg-orange-400;
56
-
57
- .uxf-chip__button {
58
- @apply hover:bg-orange-800;
59
- }
86
+ --bg-color: theme("colors.orange.700");
87
+ --button-bg-color-hover: theme("colors.orange.900");
88
+ --color: theme("colors.orange.100");
60
89
  }
61
90
  }
62
91
 
63
92
  &.uxf-chip--color-red {
64
93
  :root .light & {
65
- @apply text-white bg-red-500;
66
-
67
- .uxf-chip__button {
68
- @apply hover:bg-red-200;
69
- }
94
+ --bg-color: theme("colors.red.500");
95
+ --button-bg-color-hover: theme("colors.red.700");
96
+ --color: theme("colors.white");
70
97
  }
71
98
 
72
99
  :root .dark & {
73
- @apply text-lightHigh bg-red-400;
74
-
75
- .uxf-chip__button {
76
- @apply hover:bg-red-800;
77
- }
100
+ --bg-color: theme("colors.red.700");
101
+ --button-bg-color-hover: theme("colors.red.900");
102
+ --color: theme("colors.red.100");
78
103
  }
79
104
  }
80
105
 
81
106
  &.uxf-chip--color-yellow {
82
107
  :root .light & {
83
- @apply text-white bg-yellow-500;
84
-
85
- .uxf-chip__button {
86
- @apply hover:bg-yellow-200;
87
- }
108
+ --bg-color: theme("colors.yellow.500");
109
+ --button-bg-color-hover: theme("colors.yellow.700");
110
+ --color: theme("colors.white");
88
111
  }
89
112
 
90
113
  :root .dark & {
91
- @apply text-lightHigh bg-yellow-400;
92
-
93
- .uxf-chip__button {
94
- @apply hover:bg-yellow-800;
95
- }
114
+ --bg-color: theme("colors.yellow.700");
115
+ --button-bg-color-hover: theme("colors.yellow.900");
116
+ --color: theme("colors.yellow.100");
96
117
  }
97
118
  }
98
119
 
99
120
  &.uxf-chip--color-pink {
100
121
  :root .light & {
101
- @apply text-white bg-pink-500;
102
-
103
- .uxf-chip__button {
104
- @apply hover:bg-pink-200;
105
- }
122
+ --bg-color: theme("colors.pink.500");
123
+ --button-bg-color-hover: theme("colors.pink.700");
124
+ --color: theme("colors.white");
106
125
  }
107
126
 
108
127
  :root .dark & {
109
- @apply text-lightHigh bg-pink-400;
110
-
111
- .uxf-chip__button {
112
- @apply hover:bg-pink-800;
113
- }
128
+ --bg-color: theme("colors.pink.700");
129
+ --button-bg-color-hover: theme("colors.pink.900");
130
+ --color: theme("colors.pink.100");
114
131
  }
115
132
  }
116
133
 
117
134
  &.uxf-chip--color-purple {
118
135
  :root .light & {
119
- @apply text-white bg-purple-500;
120
-
121
- .uxf-chip__button {
122
- @apply hover:bg-purple-200;
123
- }
136
+ --bg-color: theme("colors.purple.500");
137
+ --button-bg-color-hover: theme("colors.purple.700");
138
+ --color: theme("colors.white");
124
139
  }
125
140
 
126
141
  :root .dark & {
127
- @apply text-lightHigh bg-purple-400;
128
-
129
- .uxf-chip__button {
130
- @apply hover:bg-purple-800;
131
- }
142
+ --bg-color: theme("colors.purple.700");
143
+ --button-bg-color-hover: theme("colors.purple.900");
144
+ --color: theme("colors.purple.100");
132
145
  }
133
146
  }
134
147
 
135
148
  &.uxf-chip--color-indigo {
136
149
  :root .light & {
137
- @apply text-white bg-indigo-500;
138
-
139
- .uxf-chip__button {
140
- @apply hover:bg-indigo-200;
141
- }
150
+ --bg-color: theme("colors.indigo.500");
151
+ --button-bg-color-hover: theme("colors.indigo.700");
152
+ --color: theme("colors.white");
142
153
  }
143
154
 
144
155
  :root .dark & {
145
- @apply text-lightHigh bg-indigo-400;
146
-
147
- .uxf-chip__button {
148
- @apply hover:bg-indigo-800;
149
- }
156
+ --bg-color: theme("colors.indigo.700");
157
+ --button-bg-color-hover: theme("colors.indigo.900");
158
+ --color: theme("colors.indigo.100");
150
159
  }
151
160
  }
152
161
 
153
162
  &.uxf-chip--color-green {
154
163
  :root .light & {
155
- @apply text-white bg-green-500;
156
-
157
- .uxf-chip__button {
158
- @apply hover:bg-green-200;
159
- }
164
+ --bg-color: theme("colors.green.500");
165
+ --button-bg-color-hover: theme("colors.green.700");
166
+ --color: theme("colors.white");
160
167
  }
161
168
 
162
169
  :root .dark & {
163
- @apply text-lightHigh bg-green-400;
164
-
165
- .uxf-chip__button {
166
- @apply hover:bg-green-800;
167
- }
170
+ --bg-color: theme("colors.green.700");
171
+ --button-bg-color-hover: theme("colors.green.900");
172
+ --color: theme("colors.green.100");
168
173
  }
169
174
  }
170
175
 
171
176
  &.uxf-chip--color-blue {
172
177
  :root .light & {
173
- @apply text-white bg-blue-500;
174
-
175
- .uxf-chip__button {
176
- @apply hover:bg-blue-200;
177
- }
178
+ --bg-color: theme("colors.blue.500");
179
+ --button-bg-color-hover: theme("colors.blue.700");
180
+ --color: theme("colors.white");
178
181
  }
179
182
 
180
183
  :root .dark & {
181
- @apply text-lightHigh bg-blue-400;
182
-
183
- .uxf-chip__button {
184
- @apply hover:bg-blue-800;
185
- }
184
+ --bg-color: theme("colors.blue.700");
185
+ --button-bg-color-hover: theme("colors.blue.900");
186
+ --color: theme("colors.blue.100");
186
187
  }
187
188
  }
188
189
 
189
190
  &.uxf-chip--color-default {
190
191
  :root .light & {
191
- @apply text-white bg-gray-500;
192
-
193
- .uxf-chip__button {
194
- @apply hover:bg-gray-200;
195
- }
192
+ --bg-color: theme("colors.gray.500");
193
+ --button-bg-color-hover: theme("colors.gray.700");
194
+ --color: theme("colors.white");
196
195
  }
197
196
 
198
197
  :root .dark & {
199
- @apply text-lightHigh bg-gray-400;
200
-
201
- .uxf-chip__button {
202
- @apply hover:bg-gray-800;
203
- }
198
+ --bg-color: theme("colors.gray.700");
199
+ --button-bg-color-hover: theme("colors.gray.900");
200
+ --color: theme("colors.gray.100");
204
201
  }
205
202
  }
206
203
 
207
204
  &.uxf-chip--color-primary {
208
205
  :root .light & {
209
- @apply text-white bg-primary-500;
210
-
211
- .uxf-chip__button {
212
- @apply hover:bg-primary-200;
213
- }
206
+ --bg-color: theme("colors.primary.500");
207
+ --button-bg-color-hover: theme("colors.primary.700");
208
+ --color: theme("colors.white");
214
209
  }
215
210
 
216
211
  :root .dark & {
217
- @apply text-lightHigh bg-primary-500;
218
-
219
- .uxf-chip__button {
220
- @apply hover:bg-primary-800;
221
- }
212
+ --bg-color: theme("colors.primary.700");
213
+ --button-bg-color-hover: theme("colors.primary.900");
214
+ --color: theme("colors.primary.100");
222
215
  }
223
216
  }
224
217
  }
225
218
 
226
219
  &--variant-medium {
220
+ --button-color-hover: var(--color);
221
+
227
222
  &.uxf-chip--color-orange {
228
223
  :root .light & {
229
- @apply text-orange-700 bg-orange-100;
230
-
231
- .uxf-chip__button {
232
- @apply hover:bg-orange-200;
233
- }
224
+ --bg-color: theme("colors.orange.100");
225
+ --button-bg-color-hover: theme("colors.orange.300");
226
+ --color: theme("colors.orange.700");
234
227
  }
235
228
 
236
229
  :root .dark & {
237
- @apply text-orange-100 bg-orange-700;
238
-
239
- .uxf-chip__button {
240
- @apply hover:bg-orange-800;
241
- }
230
+ --bg-color: theme("colors.orange.400");
231
+ --button-bg-color-hover: theme("colors.orange.500");
232
+ --color: theme("colors.lightHigh");
242
233
  }
243
234
  }
244
235
 
245
236
  &.uxf-chip--color-red {
246
237
  :root .light & {
247
- @apply text-red-700 bg-red-100;
248
-
249
- .uxf-chip__button {
250
- @apply hover:bg-red-200;
251
- }
238
+ --bg-color: theme("colors.red.100");
239
+ --button-bg-color-hover: theme("colors.red.300");
240
+ --color: theme("colors.red.700");
252
241
  }
253
242
 
254
243
  :root .dark & {
255
- @apply text-red-100 bg-red-700;
256
-
257
- .uxf-chip__button {
258
- @apply hover:bg-red-800;
259
- }
244
+ --bg-color: theme("colors.red.400");
245
+ --button-bg-color-hover: theme("colors.red.500");
246
+ --color: theme("colors.lightHigh");
260
247
  }
261
248
  }
262
249
 
263
250
  &.uxf-chip--color-yellow {
264
251
  :root .light & {
265
- @apply text-yellow-700 bg-yellow-100;
266
-
267
- .uxf-chip__button {
268
- @apply hover:bg-yellow-200;
269
- }
252
+ --bg-color: theme("colors.yellow.100");
253
+ --button-bg-color-hover: theme("colors.yellow.300");
254
+ --color: theme("colors.yellow.700");
270
255
  }
271
256
 
272
257
  :root .dark & {
273
- @apply text-yellow-100 bg-yellow-700;
274
-
275
- .uxf-chip__button {
276
- @apply hover:bg-yellow-800;
277
- }
258
+ --bg-color: theme("colors.yellow.400");
259
+ --button-bg-color-hover: theme("colors.yellow.500");
260
+ --color: theme("colors.lightHigh");
278
261
  }
279
262
  }
280
263
 
281
264
  &.uxf-chip--color-pink {
282
265
  :root .light & {
283
- @apply text-pink-700 bg-pink-100;
284
-
285
- .uxf-chip__button {
286
- @apply hover:bg-pink-200;
287
- }
266
+ --bg-color: theme("colors.pink.100");
267
+ --button-bg-color-hover: theme("colors.pink.300");
268
+ --color: theme("colors.pink.700");
288
269
  }
289
270
 
290
271
  :root .dark & {
291
- @apply text-pink-100 bg-pink-700;
292
-
293
- .uxf-chip__button {
294
- @apply hover:bg-pink-800;
295
- }
272
+ --bg-color: theme("colors.pink.400");
273
+ --button-bg-color-hover: theme("colors.pink.500");
274
+ --color: theme("colors.lightHigh");
296
275
  }
297
276
  }
298
277
 
299
278
  &.uxf-chip--color-purple {
300
279
  :root .light & {
301
- @apply text-purple-700 bg-purple-100;
302
-
303
- .uxf-chip__button {
304
- @apply hover:bg-purple-200;
305
- }
280
+ --bg-color: theme("colors.purple.100");
281
+ --button-bg-color-hover: theme("colors.purple.300");
282
+ --color: theme("colors.purple.700");
306
283
  }
307
284
 
308
285
  :root .dark & {
309
- @apply text-purple-100 bg-purple-700;
310
-
311
- .uxf-chip__button {
312
- @apply hover:bg-purple-800;
313
- }
286
+ --bg-color: theme("colors.purple.400");
287
+ --button-bg-color-hover: theme("colors.purple.500");
288
+ --color: theme("colors.lightHigh");
314
289
  }
315
290
  }
316
291
 
317
292
  &.uxf-chip--color-indigo {
318
293
  :root .light & {
319
- @apply text-indigo-700 bg-indigo-100;
320
-
321
- .uxf-chip__button {
322
- @apply hover:bg-indigo-200;
323
- }
294
+ --bg-color: theme("colors.indigo.100");
295
+ --button-bg-color-hover: theme("colors.indigo.300");
296
+ --color: theme("colors.indigo.700");
324
297
  }
325
298
 
326
299
  :root .dark & {
327
- @apply text-indigo-100 bg-indigo-700;
328
-
329
- .uxf-chip__button {
330
- @apply hover:bg-indigo-800;
331
- }
300
+ --bg-color: theme("colors.indigo.400");
301
+ --button-bg-color-hover: theme("colors.indigo.500");
302
+ --color: theme("colors.lightHigh");
332
303
  }
333
304
  }
334
305
 
335
306
  &.uxf-chip--color-green {
336
307
  :root .light & {
337
- @apply text-green-700 bg-green-100;
338
-
339
- .uxf-chip__button {
340
- @apply hover:bg-green-200;
341
- }
308
+ --bg-color: theme("colors.green.100");
309
+ --button-bg-color-hover: theme("colors.green.300");
310
+ --color: theme("colors.green.700");
342
311
  }
343
312
 
344
313
  :root .dark & {
345
- @apply text-green-100 bg-green-700;
346
-
347
- .uxf-chip__button {
348
- @apply hover:bg-green-800;
349
- }
314
+ --bg-color: theme("colors.green.400");
315
+ --button-bg-color-hover: theme("colors.green.500");
316
+ --color: theme("colors.lightHigh");
350
317
  }
351
318
  }
352
319
 
353
320
  &.uxf-chip--color-blue {
354
321
  :root .light & {
355
- @apply text-blue-700 bg-blue-100;
356
-
357
- .uxf-chip__button {
358
- @apply hover:bg-blue-200;
359
- }
322
+ --bg-color: theme("colors.blue.100");
323
+ --button-bg-color-hover: theme("colors.blue.300");
324
+ --color: theme("colors.blue.700");
360
325
  }
361
326
 
362
327
  :root .dark & {
363
- @apply text-blue-100 bg-blue-700;
364
-
365
- .uxf-chip__button {
366
- @apply hover:bg-blue-800;
367
- }
328
+ --bg-color: theme("colors.blue.400");
329
+ --button-bg-color-hover: theme("colors.blue.500");
330
+ --color: theme("colors.lightHigh");
368
331
  }
369
332
  }
370
333
 
371
334
  &.uxf-chip--color-default {
372
335
  :root .light & {
373
- @apply text-gray-700 bg-gray-100;
374
-
375
- .uxf-chip__button {
376
- @apply hover:bg-gray-200;
377
- }
336
+ --bg-color: theme("colors.gray.100");
337
+ --button-bg-color-hover: theme("colors.gray.300");
338
+ --color: theme("colors.gray.700");
378
339
  }
379
340
 
380
341
  :root .dark & {
381
- @apply text-gray-100 bg-gray-700;
382
-
383
- .uxf-chip__button {
384
- @apply hover:bg-gray-800;
385
- }
342
+ --bg-color: theme("colors.gray.400");
343
+ --button-bg-color-hover: theme("colors.gray.500");
344
+ --color: theme("colors.lightHigh");
386
345
  }
387
346
  }
388
347
 
389
348
  &.uxf-chip--color-primary {
390
349
  :root .light & {
391
- @apply text-primary-700 bg-primary-100;
392
-
393
- .uxf-chip__button {
394
- @apply hover:bg-primary-200;
395
- }
350
+ --bg-color: theme("colors.primary.100");
351
+ --button-bg-color-hover: theme("colors.primary.300");
352
+ --color: theme("colors.primary.700");
396
353
  }
397
354
 
398
355
  :root .dark & {
399
- @apply text-lightHigh bg-primary-500;
400
-
401
- .uxf-chip__button {
402
- @apply hover:bg-primary-800;
403
- }
356
+ --bg-color: theme("colors.primary.400");
357
+ --button-bg-color-hover: theme("colors.primary.500");
358
+ --color: theme("colors.lightHigh");
404
359
  }
405
360
  }
406
361
  }
407
362
 
408
363
  &--variant-low {
409
- @apply border;
364
+ --bg-color: transparent;
365
+ --button-color-hover: var(--color);
366
+ --spacing-x: calc(theme("spacing.2") - 1px);
367
+
368
+ border: 1px solid var(--color);
410
369
 
411
370
  &.uxf-chip--color-orange {
412
371
  :root .light & {
413
- @apply text-orange-500 border-orange-500;
414
-
415
- .uxf-chip__button {
416
- @apply hover:bg-orange-200;
417
- }
372
+ --button-bg-color-hover: theme("colors.orange.200");
373
+ --color: theme("colors.orange.500");
418
374
  }
419
375
 
420
376
  :root .dark & {
421
- @apply text-orange-400 border-orange-400;
422
-
423
- .uxf-chip__button {
424
- @apply hover:bg-orange-800;
425
- }
377
+ --button-bg-color-hover: theme("colors.orange.900");
378
+ --color: theme("colors.orange.400");
426
379
  }
427
380
  }
428
381
 
429
382
  &.uxf-chip--color-red {
430
383
  :root .light & {
431
- @apply text-red-500 border-red-500;
432
-
433
- .uxf-chip__button {
434
- @apply hover:bg-red-200;
435
- }
384
+ --button-bg-color-hover: theme("colors.red.200");
385
+ --color: theme("colors.red.500");
436
386
  }
437
387
 
438
388
  :root .dark & {
439
- @apply text-red-400 border-red-400;
440
-
441
- .uxf-chip__button {
442
- @apply hover:bg-red-800;
443
- }
389
+ --button-bg-color-hover: theme("colors.red.900");
390
+ --color: theme("colors.red.400");
444
391
  }
445
392
  }
446
393
 
447
394
  &.uxf-chip--color-yellow {
448
395
  :root .light & {
449
- @apply text-yellow-500 border-yellow-500;
450
-
451
- .uxf-chip__button {
452
- @apply hover:bg-yellow-200;
453
- }
396
+ --button-bg-color-hover: theme("colors.yellow.200");
397
+ --color: theme("colors.yellow.500");
454
398
  }
455
399
 
456
400
  :root .dark & {
457
- @apply text-yellow-400 outline-yellow-400;
458
-
459
- .uxf-chip__button {
460
- @apply hover:bg-yellow-800;
461
- }
401
+ --button-bg-color-hover: theme("colors.yellow.900");
402
+ --color: theme("colors.yellow.400");
462
403
  }
463
404
  }
464
405
 
465
406
  &.uxf-chip--color-pink {
466
407
  :root .light & {
467
- @apply text-pink-500 border-pink-500;
468
-
469
- .uxf-chip__button {
470
- @apply hover:bg-pink-200;
471
- }
408
+ --button-bg-color-hover: theme("colors.pink.200");
409
+ --color: theme("colors.pink.500");
472
410
  }
473
411
 
474
412
  :root .dark & {
475
- @apply text-pink-400 border-pink-400;
476
-
477
- .uxf-chip__button {
478
- @apply hover:bg-pink-800;
479
- }
413
+ --button-bg-color-hover: theme("colors.pink.900");
414
+ --color: theme("colors.pink.400");
480
415
  }
481
416
  }
482
417
 
483
418
  &.uxf-chip--color-purple {
484
419
  :root .light & {
485
- @apply text-purple-500 border-purple-500;
486
-
487
- .uxf-chip__button {
488
- @apply hover:bg-purple-200;
489
- }
420
+ --button-bg-color-hover: theme("colors.purple.200");
421
+ --color: theme("colors.purple.500");
490
422
  }
491
423
 
492
424
  :root .dark & {
493
- @apply text-purple-400 border-purple-400;
494
-
495
- .uxf-chip__button {
496
- @apply hover:bg-purple-800;
497
- }
425
+ --button-bg-color-hover: theme("colors.purple.900");
426
+ --color: theme("colors.purple.400");
498
427
  }
499
428
  }
500
429
 
501
430
  &.uxf-chip--color-indigo {
502
431
  :root .light & {
503
- @apply text-indigo-500 border-indigo-500;
504
-
505
- .uxf-chip__button {
506
- @apply hover:bg-indigo-200;
507
- }
432
+ --button-bg-color-hover: theme("colors.indigo.200");
433
+ --color: theme("colors.indigo.500");
508
434
  }
509
435
 
510
436
  :root .dark & {
511
- @apply text-indigo-400 border-indigo-400;
512
-
513
- .uxf-chip__button {
514
- @apply hover:bg-indigo-800;
515
- }
437
+ --button-bg-color-hover: theme("colors.indigo.900");
438
+ --color: theme("colors.indigo.400");
516
439
  }
517
440
  }
518
441
 
519
442
  &.uxf-chip--color-green {
520
443
  :root .light & {
521
- @apply text-green-500 border-green-500;
522
-
523
- .uxf-chip__button {
524
- @apply hover:bg-green-200;
525
- }
444
+ --button-bg-color-hover: theme("colors.green.200");
445
+ --color: theme("colors.green.500");
526
446
  }
527
447
 
528
448
  :root .dark & {
529
- @apply text-green-400 border-green-400;
530
-
531
- .uxf-chip__button {
532
- @apply hover:bg-green-800;
533
- }
449
+ --button-bg-color-hover: theme("colors.green.900");
450
+ --color: theme("colors.green.400");
534
451
  }
535
452
  }
536
453
 
537
454
  &.uxf-chip--color-blue {
538
455
  :root .light & {
539
- @apply text-blue-500 border-blue-500;
540
-
541
- .uxf-chip__button {
542
- @apply hover:bg-blue-200;
543
- }
456
+ --button-bg-color-hover: theme("colors.blue.200");
457
+ --color: theme("colors.blue.500");
544
458
  }
545
459
 
546
460
  :root .dark & {
547
- @apply text-blue-400 border-blue-400;
548
-
549
- .uxf-chip__button {
550
- @apply hover:bg-blue-800;
551
- }
461
+ --button-bg-color-hover: theme("colors.blue.900");
462
+ --color: theme("colors.blue.400");
552
463
  }
553
464
  }
554
465
 
555
466
  &.uxf-chip--color-default {
556
467
  :root .light & {
557
- @apply text-gray-500 border-gray-500;
558
-
559
- .uxf-chip__button {
560
- @apply hover:bg-gray-200;
561
- }
468
+ --button-bg-color-hover: theme("colors.gray.200");
469
+ --color: theme("colors.gray.500");
562
470
  }
563
471
 
564
472
  :root .dark & {
565
- @apply text-gray-400 border-gray-400;
566
-
567
- .uxf-chip__button {
568
- @apply hover:bg-gray-800;
569
- }
473
+ --button-bg-color-hover: theme("colors.gray.900");
474
+ --color: theme("colors.gray.400");
570
475
  }
571
476
  }
572
477
 
573
478
  &.uxf-chip--color-primary {
574
479
  :root .light & {
575
- @apply text-primary-500 border-primary-500;
576
-
577
- .uxf-chip__button {
578
- @apply hover:bg-primary-200;
579
- }
480
+ --button-bg-color-hover: theme("colors.primary.200");
481
+ --color: theme("colors.primary.500");
580
482
  }
581
483
 
582
484
  :root .dark & {
583
- @apply text-lightHigh bg-primary-500;
584
-
585
- .uxf-chip__button {
586
- @apply hover:bg-primary-800;
587
- }
485
+ --button-bg-color-hover: theme("colors.primary.900");
486
+ --color: theme("colors.primary.400");
588
487
  }
589
488
  }
590
489
  }