@uxf/ui 1.0.1 → 10.0.0-beta.10

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