@uxf/ui 1.0.1 → 10.0.0-beta.11
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.
- package/_select-base/_select-base.d.ts +1 -1
- package/_select-base/_select-base.js +3 -2
- package/chip/chip.d.ts +6 -6
- package/chip/chip.js +23 -9
- package/chip/chip.spec.d.ts +1 -0
- package/chip/chip.spec.js +9 -0
- package/chip/chip.stories.d.ts +1 -1
- package/chip/chip.stories.js +39 -13
- package/chip/index.d.ts +3 -1
- package/chip/index.js +3 -15
- package/chip/theme.d.ts +10 -0
- package/css/avatar-file-input.css +82 -0
- package/css/avatar.css +15 -0
- package/css/badge.css +23 -0
- package/css/button-group.css +22 -0
- package/css/button-list.css +61 -0
- package/css/button.css +335 -0
- package/css/calendar.css +215 -0
- package/css/checkbox-button.css +98 -0
- package/css/checkbox-input.css +24 -0
- package/css/checkbox.css +120 -0
- package/css/chip.css +490 -0
- package/css/color-radio-group.css +21 -0
- package/css/color-radio.css +33 -0
- package/css/component-structure-analyzer.css +31 -0
- package/css/date-picker.css +22 -0
- package/css/datetime-picker.css +11 -0
- package/css/dropdown.css +70 -0
- package/css/dropzone.css +85 -0
- package/css/error-message.css +3 -0
- package/css/file-input.css +80 -0
- package/css/flash-messages.css +28 -0
- package/css/form-component.css +7 -0
- package/css/icon.css +7 -0
- package/css/image-gallery.css +63 -0
- package/css/input-basic.css +18 -0
- package/css/input-with-popover.css +35 -0
- package/css/input.css +270 -0
- package/css/label.css +15 -0
- package/css/layout.css +47 -0
- package/css/list-item.css +29 -0
- package/css/loader.css +23 -0
- package/css/modal.css +65 -0
- package/css/multi-combobox.css +110 -0
- package/css/multi-select.css +27 -0
- package/css/pagination.css +93 -0
- package/css/paper.css +3 -0
- package/css/radio-group.css +169 -0
- package/css/radio.css +101 -0
- package/css/raster-image.css +20 -0
- package/css/select-base.css +50 -0
- package/css/tabs.css +131 -0
- package/css/text-link.css +12 -0
- package/css/textarea.css +115 -0
- package/css/time-picker.css +32 -0
- package/css/toggle.css +80 -0
- package/css/tooltip.css +7 -0
- package/css/typography.css +51 -0
- package/hooks/use-dropdown.d.ts +1 -1
- package/image-gallery/components/gallery.d.ts +2 -2
- package/image-gallery/components/gallery.js +12 -5
- package/image-gallery/image-gallery.d.ts +2 -0
- package/image-gallery/image-gallery.js +1 -1
- package/multi-combobox/_multi-combobox-base.js +2 -1
- package/multi-combobox/types.d.ts +3 -0
- package/multi-select/_multi-select-base.js +2 -1
- package/multi-select/types.d.ts +3 -2
- package/package.json +10 -6
- package/textarea/textarea.js +3 -3
- package/tooltip/use-tooltip.d.ts +1 -1
- package/tw-tokens/tw-z-index.d.ts +1 -0
- package/tw-tokens/tw-z-index.js +1 -0
- package/utils/storybook-config.d.ts +1 -1
- package/utils/storybook-config.js +1 -1
- package/utils/tailwind-config.js +1 -0
- package/select/theme.d.ts +0 -5
- package/select/theme.js +0 -2
package/css/checkbox.css
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
.uxf-checkbox {
|
|
2
|
+
@apply relative shrink-0 flex items-center justify-center rounded transition outline-none border
|
|
3
|
+
focus-visible:before:border-2 focus-visible:before:absolute
|
|
4
|
+
focus-visible:before:inset-[-5px] focus-visible:before:rounded-lg;
|
|
5
|
+
|
|
6
|
+
&__inner {
|
|
7
|
+
@apply hidden;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&--size-default {
|
|
11
|
+
@apply h-4 w-4;
|
|
12
|
+
|
|
13
|
+
.uxf-checkbox__inner {
|
|
14
|
+
@apply w-2.5 h-2.5;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&--size-lg {
|
|
19
|
+
@apply h-6 w-6;
|
|
20
|
+
|
|
21
|
+
.uxf-checkbox__inner {
|
|
22
|
+
@apply w-4 h-4;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.is-selected {
|
|
27
|
+
.uxf-checkbox__inner {
|
|
28
|
+
@apply block;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&.is-disabled,
|
|
33
|
+
&.is-readonly {
|
|
34
|
+
@apply pointer-events-none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:root .light & {
|
|
38
|
+
@apply bg-white border-gray-400 focus-visible:before:border-primary;
|
|
39
|
+
|
|
40
|
+
&.is-selected {
|
|
41
|
+
@apply bg-primary border-transparent is-hoverable:bg-primary-700;
|
|
42
|
+
|
|
43
|
+
.uxf-checkbox__inner {
|
|
44
|
+
@apply text-white;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&.is-disabled {
|
|
49
|
+
@apply border-gray-200;
|
|
50
|
+
|
|
51
|
+
&.is-selected {
|
|
52
|
+
@apply bg-gray-200;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.uxf-checkbox__inner {
|
|
56
|
+
@apply text-gray-400;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&.is-readonly {
|
|
61
|
+
&.is-selected {
|
|
62
|
+
@apply bg-primary/60;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&.is-invalid {
|
|
67
|
+
@apply border-error;
|
|
68
|
+
|
|
69
|
+
&.is-selected {
|
|
70
|
+
@apply bg-error;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.uxf-checkbox__inner {
|
|
74
|
+
@apply text-white;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
:root .dark & {
|
|
80
|
+
@apply bg-gray-900 border-gray-400 focus-visible:before:border-primary;
|
|
81
|
+
|
|
82
|
+
&.is-selected {
|
|
83
|
+
@apply bg-primary border-transparent is-hoverable:bg-primary-300;
|
|
84
|
+
|
|
85
|
+
.uxf-checkbox__inner {
|
|
86
|
+
@apply text-white;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&.is-disabled {
|
|
91
|
+
@apply border-gray-600;
|
|
92
|
+
|
|
93
|
+
&.is-selected {
|
|
94
|
+
@apply bg-gray-600;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.uxf-checkbox__inner {
|
|
98
|
+
@apply text-gray-800;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&.is-readonly {
|
|
103
|
+
&.is-selected {
|
|
104
|
+
@apply bg-primary/60;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&.is-invalid {
|
|
109
|
+
@apply border-error;
|
|
110
|
+
|
|
111
|
+
&.is-selected {
|
|
112
|
+
@apply bg-error;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.uxf-checkbox__inner {
|
|
116
|
+
@apply text-white;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
package/css/chip.css
ADDED
|
@@ -0,0 +1,490 @@
|
|
|
1
|
+
.uxf-chip {
|
|
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);
|
|
14
|
+
|
|
15
|
+
&.has-button {
|
|
16
|
+
padding-right: var(--spacing-y);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&--size-default {
|
|
20
|
+
--button-border-radius: var(--spacing-y);
|
|
21
|
+
--button-size: 16px;
|
|
22
|
+
--h: 24px;
|
|
23
|
+
|
|
24
|
+
@apply text-sm;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&--size-small {
|
|
28
|
+
--button-border-radius: 999px;
|
|
29
|
+
--button-size: 16px;
|
|
30
|
+
--h: 20px;
|
|
31
|
+
|
|
32
|
+
@apply text-xs;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&--size-large {
|
|
36
|
+
--button-border-radius: var(--spacing-y);
|
|
37
|
+
--button-size: 20px;
|
|
38
|
+
--h: 28px;
|
|
39
|
+
|
|
40
|
+
@apply text-base;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&__text {
|
|
44
|
+
@apply truncate;
|
|
45
|
+
|
|
46
|
+
letter-spacing: -0.02em;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&__button {
|
|
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);
|
|
59
|
+
|
|
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);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&--variant-default {
|
|
76
|
+
--button-color-hover: var(--color);
|
|
77
|
+
|
|
78
|
+
&.uxf-chip--color-orange {
|
|
79
|
+
:root .light & {
|
|
80
|
+
--bg-color: theme("colors.orange.500");
|
|
81
|
+
--button-bg-color-hover: theme("colors.orange.700");
|
|
82
|
+
--color: theme("colors.white");
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
:root .dark & {
|
|
86
|
+
--bg-color: theme("colors.orange.700");
|
|
87
|
+
--button-bg-color-hover: theme("colors.orange.900");
|
|
88
|
+
--color: theme("colors.orange.100");
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&.uxf-chip--color-red {
|
|
93
|
+
:root .light & {
|
|
94
|
+
--bg-color: theme("colors.red.500");
|
|
95
|
+
--button-bg-color-hover: theme("colors.red.700");
|
|
96
|
+
--color: theme("colors.white");
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
:root .dark & {
|
|
100
|
+
--bg-color: theme("colors.red.700");
|
|
101
|
+
--button-bg-color-hover: theme("colors.red.900");
|
|
102
|
+
--color: theme("colors.red.100");
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&.uxf-chip--color-yellow {
|
|
107
|
+
:root .light & {
|
|
108
|
+
--bg-color: theme("colors.yellow.500");
|
|
109
|
+
--button-bg-color-hover: theme("colors.yellow.700");
|
|
110
|
+
--color: theme("colors.white");
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
:root .dark & {
|
|
114
|
+
--bg-color: theme("colors.yellow.700");
|
|
115
|
+
--button-bg-color-hover: theme("colors.yellow.900");
|
|
116
|
+
--color: theme("colors.yellow.100");
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&.uxf-chip--color-pink {
|
|
121
|
+
:root .light & {
|
|
122
|
+
--bg-color: theme("colors.pink.500");
|
|
123
|
+
--button-bg-color-hover: theme("colors.pink.700");
|
|
124
|
+
--color: theme("colors.white");
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
:root .dark & {
|
|
128
|
+
--bg-color: theme("colors.pink.700");
|
|
129
|
+
--button-bg-color-hover: theme("colors.pink.900");
|
|
130
|
+
--color: theme("colors.pink.100");
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
&.uxf-chip--color-purple {
|
|
135
|
+
:root .light & {
|
|
136
|
+
--bg-color: theme("colors.purple.500");
|
|
137
|
+
--button-bg-color-hover: theme("colors.purple.700");
|
|
138
|
+
--color: theme("colors.white");
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
:root .dark & {
|
|
142
|
+
--bg-color: theme("colors.purple.700");
|
|
143
|
+
--button-bg-color-hover: theme("colors.purple.900");
|
|
144
|
+
--color: theme("colors.purple.100");
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&.uxf-chip--color-indigo {
|
|
149
|
+
:root .light & {
|
|
150
|
+
--bg-color: theme("colors.indigo.500");
|
|
151
|
+
--button-bg-color-hover: theme("colors.indigo.700");
|
|
152
|
+
--color: theme("colors.white");
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
:root .dark & {
|
|
156
|
+
--bg-color: theme("colors.indigo.700");
|
|
157
|
+
--button-bg-color-hover: theme("colors.indigo.900");
|
|
158
|
+
--color: theme("colors.indigo.100");
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
&.uxf-chip--color-green {
|
|
163
|
+
:root .light & {
|
|
164
|
+
--bg-color: theme("colors.green.500");
|
|
165
|
+
--button-bg-color-hover: theme("colors.green.700");
|
|
166
|
+
--color: theme("colors.white");
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
:root .dark & {
|
|
170
|
+
--bg-color: theme("colors.green.700");
|
|
171
|
+
--button-bg-color-hover: theme("colors.green.900");
|
|
172
|
+
--color: theme("colors.green.100");
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
&.uxf-chip--color-blue {
|
|
177
|
+
:root .light & {
|
|
178
|
+
--bg-color: theme("colors.blue.500");
|
|
179
|
+
--button-bg-color-hover: theme("colors.blue.700");
|
|
180
|
+
--color: theme("colors.white");
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
:root .dark & {
|
|
184
|
+
--bg-color: theme("colors.blue.700");
|
|
185
|
+
--button-bg-color-hover: theme("colors.blue.900");
|
|
186
|
+
--color: theme("colors.blue.100");
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
&.uxf-chip--color-default {
|
|
191
|
+
:root .light & {
|
|
192
|
+
--bg-color: theme("colors.gray.500");
|
|
193
|
+
--button-bg-color-hover: theme("colors.gray.700");
|
|
194
|
+
--color: theme("colors.white");
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
:root .dark & {
|
|
198
|
+
--bg-color: theme("colors.gray.700");
|
|
199
|
+
--button-bg-color-hover: theme("colors.gray.900");
|
|
200
|
+
--color: theme("colors.gray.100");
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
&.uxf-chip--color-primary {
|
|
205
|
+
:root .light & {
|
|
206
|
+
--bg-color: theme("colors.primary.500");
|
|
207
|
+
--button-bg-color-hover: theme("colors.primary.700");
|
|
208
|
+
--color: theme("colors.white");
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
:root .dark & {
|
|
212
|
+
--bg-color: theme("colors.primary.700");
|
|
213
|
+
--button-bg-color-hover: theme("colors.primary.900");
|
|
214
|
+
--color: theme("colors.primary.100");
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
&--variant-medium {
|
|
220
|
+
--button-color-hover: var(--color);
|
|
221
|
+
|
|
222
|
+
&.uxf-chip--color-orange {
|
|
223
|
+
:root .light & {
|
|
224
|
+
--bg-color: theme("colors.orange.100");
|
|
225
|
+
--button-bg-color-hover: theme("colors.orange.300");
|
|
226
|
+
--color: theme("colors.orange.700");
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
:root .dark & {
|
|
230
|
+
--bg-color: theme("colors.orange.400");
|
|
231
|
+
--button-bg-color-hover: theme("colors.orange.500");
|
|
232
|
+
--color: theme("colors.lightHigh");
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
&.uxf-chip--color-red {
|
|
237
|
+
:root .light & {
|
|
238
|
+
--bg-color: theme("colors.red.100");
|
|
239
|
+
--button-bg-color-hover: theme("colors.red.300");
|
|
240
|
+
--color: theme("colors.red.700");
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
:root .dark & {
|
|
244
|
+
--bg-color: theme("colors.red.400");
|
|
245
|
+
--button-bg-color-hover: theme("colors.red.500");
|
|
246
|
+
--color: theme("colors.lightHigh");
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
&.uxf-chip--color-yellow {
|
|
251
|
+
:root .light & {
|
|
252
|
+
--bg-color: theme("colors.yellow.100");
|
|
253
|
+
--button-bg-color-hover: theme("colors.yellow.300");
|
|
254
|
+
--color: theme("colors.yellow.700");
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
:root .dark & {
|
|
258
|
+
--bg-color: theme("colors.yellow.400");
|
|
259
|
+
--button-bg-color-hover: theme("colors.yellow.500");
|
|
260
|
+
--color: theme("colors.lightHigh");
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
&.uxf-chip--color-pink {
|
|
265
|
+
:root .light & {
|
|
266
|
+
--bg-color: theme("colors.pink.100");
|
|
267
|
+
--button-bg-color-hover: theme("colors.pink.300");
|
|
268
|
+
--color: theme("colors.pink.700");
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
:root .dark & {
|
|
272
|
+
--bg-color: theme("colors.pink.400");
|
|
273
|
+
--button-bg-color-hover: theme("colors.pink.500");
|
|
274
|
+
--color: theme("colors.lightHigh");
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
&.uxf-chip--color-purple {
|
|
279
|
+
:root .light & {
|
|
280
|
+
--bg-color: theme("colors.purple.100");
|
|
281
|
+
--button-bg-color-hover: theme("colors.purple.300");
|
|
282
|
+
--color: theme("colors.purple.700");
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
:root .dark & {
|
|
286
|
+
--bg-color: theme("colors.purple.400");
|
|
287
|
+
--button-bg-color-hover: theme("colors.purple.500");
|
|
288
|
+
--color: theme("colors.lightHigh");
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
&.uxf-chip--color-indigo {
|
|
293
|
+
:root .light & {
|
|
294
|
+
--bg-color: theme("colors.indigo.100");
|
|
295
|
+
--button-bg-color-hover: theme("colors.indigo.300");
|
|
296
|
+
--color: theme("colors.indigo.700");
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
:root .dark & {
|
|
300
|
+
--bg-color: theme("colors.indigo.400");
|
|
301
|
+
--button-bg-color-hover: theme("colors.indigo.500");
|
|
302
|
+
--color: theme("colors.lightHigh");
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
&.uxf-chip--color-green {
|
|
307
|
+
:root .light & {
|
|
308
|
+
--bg-color: theme("colors.green.100");
|
|
309
|
+
--button-bg-color-hover: theme("colors.green.300");
|
|
310
|
+
--color: theme("colors.green.700");
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
:root .dark & {
|
|
314
|
+
--bg-color: theme("colors.green.400");
|
|
315
|
+
--button-bg-color-hover: theme("colors.green.500");
|
|
316
|
+
--color: theme("colors.lightHigh");
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
&.uxf-chip--color-blue {
|
|
321
|
+
:root .light & {
|
|
322
|
+
--bg-color: theme("colors.blue.100");
|
|
323
|
+
--button-bg-color-hover: theme("colors.blue.300");
|
|
324
|
+
--color: theme("colors.blue.700");
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
:root .dark & {
|
|
328
|
+
--bg-color: theme("colors.blue.400");
|
|
329
|
+
--button-bg-color-hover: theme("colors.blue.500");
|
|
330
|
+
--color: theme("colors.lightHigh");
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
&.uxf-chip--color-default {
|
|
335
|
+
:root .light & {
|
|
336
|
+
--bg-color: theme("colors.gray.100");
|
|
337
|
+
--button-bg-color-hover: theme("colors.gray.300");
|
|
338
|
+
--color: theme("colors.gray.700");
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
:root .dark & {
|
|
342
|
+
--bg-color: theme("colors.gray.400");
|
|
343
|
+
--button-bg-color-hover: theme("colors.gray.500");
|
|
344
|
+
--color: theme("colors.lightHigh");
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
&.uxf-chip--color-primary {
|
|
349
|
+
:root .light & {
|
|
350
|
+
--bg-color: theme("colors.primary.100");
|
|
351
|
+
--button-bg-color-hover: theme("colors.primary.200");
|
|
352
|
+
--color: theme("colors.primary.700");
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
:root .dark & {
|
|
356
|
+
--bg-color: theme("colors.primary.400");
|
|
357
|
+
--button-bg-color-hover: theme("colors.primary.500");
|
|
358
|
+
--color: theme("colors.lightHigh");
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
&--variant-low {
|
|
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);
|
|
369
|
+
|
|
370
|
+
&.uxf-chip--color-orange {
|
|
371
|
+
:root .light & {
|
|
372
|
+
--button-bg-color-hover: theme("colors.orange.200");
|
|
373
|
+
--color: theme("colors.orange.500");
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
:root .dark & {
|
|
377
|
+
--button-bg-color-hover: theme("colors.orange.900");
|
|
378
|
+
--color: theme("colors.orange.400");
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
&.uxf-chip--color-red {
|
|
383
|
+
:root .light & {
|
|
384
|
+
--button-bg-color-hover: theme("colors.red.200");
|
|
385
|
+
--color: theme("colors.red.500");
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
:root .dark & {
|
|
389
|
+
--button-bg-color-hover: theme("colors.red.900");
|
|
390
|
+
--color: theme("colors.red.400");
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
&.uxf-chip--color-yellow {
|
|
395
|
+
:root .light & {
|
|
396
|
+
--button-bg-color-hover: theme("colors.yellow.200");
|
|
397
|
+
--color: theme("colors.yellow.500");
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
:root .dark & {
|
|
401
|
+
--button-bg-color-hover: theme("colors.yellow.900");
|
|
402
|
+
--color: theme("colors.yellow.400");
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
&.uxf-chip--color-pink {
|
|
407
|
+
:root .light & {
|
|
408
|
+
--button-bg-color-hover: theme("colors.pink.200");
|
|
409
|
+
--color: theme("colors.pink.500");
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
:root .dark & {
|
|
413
|
+
--button-bg-color-hover: theme("colors.pink.900");
|
|
414
|
+
--color: theme("colors.pink.400");
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
&.uxf-chip--color-purple {
|
|
419
|
+
:root .light & {
|
|
420
|
+
--button-bg-color-hover: theme("colors.purple.200");
|
|
421
|
+
--color: theme("colors.purple.500");
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
:root .dark & {
|
|
425
|
+
--button-bg-color-hover: theme("colors.purple.900");
|
|
426
|
+
--color: theme("colors.purple.400");
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
&.uxf-chip--color-indigo {
|
|
431
|
+
:root .light & {
|
|
432
|
+
--button-bg-color-hover: theme("colors.indigo.200");
|
|
433
|
+
--color: theme("colors.indigo.500");
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
:root .dark & {
|
|
437
|
+
--button-bg-color-hover: theme("colors.indigo.900");
|
|
438
|
+
--color: theme("colors.indigo.400");
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
&.uxf-chip--color-green {
|
|
443
|
+
:root .light & {
|
|
444
|
+
--button-bg-color-hover: theme("colors.green.200");
|
|
445
|
+
--color: theme("colors.green.500");
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
:root .dark & {
|
|
449
|
+
--button-bg-color-hover: theme("colors.green.900");
|
|
450
|
+
--color: theme("colors.green.400");
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
&.uxf-chip--color-blue {
|
|
455
|
+
:root .light & {
|
|
456
|
+
--button-bg-color-hover: theme("colors.blue.200");
|
|
457
|
+
--color: theme("colors.blue.500");
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
:root .dark & {
|
|
461
|
+
--button-bg-color-hover: theme("colors.blue.900");
|
|
462
|
+
--color: theme("colors.blue.400");
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
&.uxf-chip--color-default {
|
|
467
|
+
:root .light & {
|
|
468
|
+
--button-bg-color-hover: theme("colors.gray.200");
|
|
469
|
+
--color: theme("colors.gray.500");
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
:root .dark & {
|
|
473
|
+
--button-bg-color-hover: theme("colors.gray.900");
|
|
474
|
+
--color: theme("colors.gray.400");
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
&.uxf-chip--color-primary {
|
|
479
|
+
:root .light & {
|
|
480
|
+
--button-bg-color-hover: theme("colors.primary.200");
|
|
481
|
+
--color: theme("colors.primary.500");
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
:root .dark & {
|
|
485
|
+
--button-bg-color-hover: theme("colors.primary.900");
|
|
486
|
+
--color: theme("colors.primary.400");
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.uxf-color-radio-group {
|
|
2
|
+
&__option {
|
|
3
|
+
@apply rounded-full outline-none focus-visible:ring-offset-2 focus-visible:ring-2 is-disabled:pointer-events-none;
|
|
4
|
+
|
|
5
|
+
:root .light & {
|
|
6
|
+
@apply focus-visible:ring-[color:var(--option-color)] focus-visible:ring-offset-white;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
:root .dark & {
|
|
10
|
+
@apply focus-visible:ring-[color:var(--option-color)] focus-visible:ring-offset-gray-900;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&__label {
|
|
15
|
+
@apply mb-2;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&__options-wrapper {
|
|
19
|
+
@apply flex flex-wrap gap-3.5;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
.uxf-color-radio {
|
|
2
|
+
@apply relative shrink-0 inline-flex items-center justify-center rounded-full h-7 w-7 bg-[color:var(--bg-color)];
|
|
3
|
+
|
|
4
|
+
&__color-label {
|
|
5
|
+
@apply sr-only;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&__inner {
|
|
9
|
+
@apply w-4 h-4 text-white opacity-0 transition-opacity;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&__inner--dark {
|
|
13
|
+
@apply text-gray-900;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&.is-selected {
|
|
17
|
+
.uxf-color-radio__inner {
|
|
18
|
+
@apply opacity-100;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&.is-disabled {
|
|
23
|
+
@apply after:absolute after:inset-0 after:rounded-inherit pointer-events-none;
|
|
24
|
+
|
|
25
|
+
:root .light & {
|
|
26
|
+
@apply after:bg-white/50;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:root .dark & {
|
|
30
|
+
@apply after:bg-black/50;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
.uxf-component-structure-analyzer {
|
|
2
|
+
padding-bottom: 32px;
|
|
3
|
+
|
|
4
|
+
* {
|
|
5
|
+
padding: 32px !important;
|
|
6
|
+
border: 2px solid black !important;
|
|
7
|
+
position: relative !important;
|
|
8
|
+
color: lightgray !important;
|
|
9
|
+
background-color: white !important;
|
|
10
|
+
border-radius: initial !important;
|
|
11
|
+
margin: 4px !important;
|
|
12
|
+
font-family: monospace;
|
|
13
|
+
font-size: 12px;
|
|
14
|
+
min-width: 200px;
|
|
15
|
+
height: auto !important;
|
|
16
|
+
top: initial !important;
|
|
17
|
+
left: initial !important;
|
|
18
|
+
right: initial !important;
|
|
19
|
+
|
|
20
|
+
&::before {
|
|
21
|
+
position: absolute;
|
|
22
|
+
left: 4px;
|
|
23
|
+
top: 2px;
|
|
24
|
+
content: attr(class);
|
|
25
|
+
font-size: 12px;
|
|
26
|
+
line-height: 14px;
|
|
27
|
+
color: black;
|
|
28
|
+
font-weight: 500;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|