@frontile/theme 0.17.0-beta.9 → 0.17.1
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/README.md +33 -1
- package/declarations/colors/defaults.d.ts +0 -1
- package/declarations/colors/semantic.d.ts +0 -1
- package/declarations/colors/types.d.ts +0 -1
- package/declarations/colors/util.d.ts +0 -1
- package/declarations/colors.d.ts +0 -1
- package/declarations/components/avatar.d.ts +171 -0
- package/declarations/components/button.d.ts +0 -1
- package/declarations/components/chip.d.ts +0 -1
- package/declarations/components/close-button.d.ts +3 -4
- package/declarations/components/divider.d.ts +0 -1
- package/declarations/components/dropdown.d.ts +1 -2
- package/declarations/components/forms/forms-legacy.d.ts +38 -39
- package/declarations/components/forms/forms.d.ts +12 -13
- package/declarations/components/forms/index.d.ts +0 -1
- package/declarations/components/index.d.ts +2 -1
- package/declarations/components/listbox.d.ts +1 -2
- package/declarations/components/notification-card.d.ts +6 -7
- package/declarations/components/notifications-container.d.ts +0 -1
- package/declarations/components/overlays.d.ts +0 -1
- package/declarations/components/popover.d.ts +2 -3
- package/declarations/components/progress-bar.d.ts +24 -1
- package/declarations/components/shared.d.ts +2 -0
- package/declarations/components/spinner.d.ts +0 -1
- package/declarations/components/table.d.ts +522 -0
- package/declarations/index.d.ts +1 -1
- package/declarations/plugin/default-config.d.ts +0 -1
- package/declarations/plugin/default.d.ts +9 -0
- package/declarations/plugin/overlays.d.ts +0 -1
- package/declarations/plugin/power-select.d.ts +0 -1
- package/declarations/plugin/resolve.d.ts +2 -5
- package/declarations/plugin/safelist.d.ts +1 -4
- package/declarations/plugin/transitions.d.ts +0 -1
- package/declarations/plugin.d.ts +0 -1
- package/declarations/template-registry.d.ts +0 -1
- package/declarations/tw.d.ts +0 -1
- package/declarations/types.d.ts +0 -1
- package/dist/colors.js +1 -1
- package/dist/{forms-legacy-CLCj0DR2.js → forms-legacy-Bg_UoLDR.js} +320 -44
- package/dist/forms-legacy-Bg_UoLDR.js.map +1 -0
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/plugin/default.js +10 -0
- package/dist/plugin/default.js.map +1 -0
- package/dist/plugin.js +42 -45
- package/dist/plugin.js.map +1 -1
- package/dist/{semantic-Us_bxqq7.js → semantic-DUv6Lpqq.js} +4 -7
- package/dist/semantic-DUv6Lpqq.js.map +1 -0
- package/package.json +2 -2
- package/declarations/colors/defaults.d.ts.map +0 -1
- package/declarations/colors/semantic.d.ts.map +0 -1
- package/declarations/colors/types.d.ts.map +0 -1
- package/declarations/colors/util.d.ts.map +0 -1
- package/declarations/colors.d.ts.map +0 -1
- package/declarations/components/button.d.ts.map +0 -1
- package/declarations/components/chip.d.ts.map +0 -1
- package/declarations/components/close-button.d.ts.map +0 -1
- package/declarations/components/divider.d.ts.map +0 -1
- package/declarations/components/dropdown.d.ts.map +0 -1
- package/declarations/components/forms/forms-legacy.d.ts.map +0 -1
- package/declarations/components/forms/forms.d.ts.map +0 -1
- package/declarations/components/forms/index.d.ts.map +0 -1
- package/declarations/components/index.d.ts.map +0 -1
- package/declarations/components/listbox.d.ts.map +0 -1
- package/declarations/components/notification-card.d.ts.map +0 -1
- package/declarations/components/notifications-container.d.ts.map +0 -1
- package/declarations/components/overlays.d.ts.map +0 -1
- package/declarations/components/popover.d.ts.map +0 -1
- package/declarations/components/progress-bar.d.ts.map +0 -1
- package/declarations/components/spinner.d.ts.map +0 -1
- package/declarations/index.d.ts.map +0 -1
- package/declarations/plugin/default-config.d.ts.map +0 -1
- package/declarations/plugin/overlays.d.ts.map +0 -1
- package/declarations/plugin/power-select.d.ts.map +0 -1
- package/declarations/plugin/resolve.d.ts.map +0 -1
- package/declarations/plugin/safelist.d.ts.map +0 -1
- package/declarations/plugin/transitions.d.ts.map +0 -1
- package/declarations/plugin.d.ts.map +0 -1
- package/declarations/template-registry.d.ts.map +0 -1
- package/declarations/tw.d.ts.map +0 -1
- package/declarations/types.d.ts.map +0 -1
- package/dist/forms-legacy-CLCj0DR2.js.map +0 -1
- package/dist/semantic-Us_bxqq7.js.map +0 -1
|
@@ -6,10 +6,8 @@ interface ResolvedConfig {
|
|
|
6
6
|
definition: string[];
|
|
7
7
|
}[];
|
|
8
8
|
utilities: CSSRuleObject | CSSRuleObject[];
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
opacityVariable: string;
|
|
12
|
-
}) => string>;
|
|
9
|
+
base: CSSRuleObject | CSSRuleObject[];
|
|
10
|
+
colors: Record<string, string>;
|
|
13
11
|
}
|
|
14
12
|
declare function resolveThemes(themes: ConfigThemes | undefined, defaultTheme: DefaultThemeType, prefix: string): ResolvedConfig;
|
|
15
13
|
export declare const isBaseTheme: (theme: string) => boolean;
|
|
@@ -19,4 +17,3 @@ declare function resolveConfig(userConfig?: PluginConfig): {
|
|
|
19
17
|
prefix: string;
|
|
20
18
|
};
|
|
21
19
|
export { resolveThemes, resolveConfig };
|
|
22
|
-
//# sourceMappingURL=resolve.d.ts.map
|
package/declarations/plugin.d.ts
CHANGED
package/declarations/tw.d.ts
CHANGED
|
@@ -2,4 +2,3 @@ import type { ClassValue } from 'tailwind-variants';
|
|
|
2
2
|
export { tv } from 'tailwind-variants';
|
|
3
3
|
export type { VariantProps } from 'tailwind-variants';
|
|
4
4
|
export declare function twMerge(defaultClass: ClassValue, overwrites: ClassValue): string | undefined;
|
|
5
|
-
//# sourceMappingURL=tw.d.ts.map
|
package/declarations/types.d.ts
CHANGED
package/dist/colors.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { b as blue, g as gray, a as green, r as red, s as semanticColors, y as yellow } from './semantic-
|
|
1
|
+
export { b as blue, g as gray, a as green, r as red, s as semanticColors, y as yellow } from './semantic-DUv6Lpqq.js';
|
|
2
2
|
//# sourceMappingURL=colors.js.map
|
|
@@ -32,21 +32,59 @@ function twMerge(defaultClass, overwrites) {
|
|
|
32
32
|
return clsx(defaultClass);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
const avatar = tv({
|
|
36
|
+
slots: {
|
|
37
|
+
base: ['flex', 'relative', 'justify-center', 'items-center', 'box-border', 'overflow-hidden', 'align-middle', 'text-foreground', 'z-0', 'bg-default-200', 'ring-1 ring-default ring-offset-1 ring-offset-background'],
|
|
38
|
+
img: 'size-full',
|
|
39
|
+
name: ['w-full', 'font-normal', 'text-center', 'text-inherit', 'absolute', 'top-1/2', 'left-1/2', '-translate-x-1/2', '-translate-y-1/2', 'select-none']
|
|
40
|
+
},
|
|
41
|
+
variants: {
|
|
42
|
+
shape: {
|
|
43
|
+
square: 'rounded-[20%]',
|
|
44
|
+
circle: 'rounded-full'
|
|
45
|
+
},
|
|
46
|
+
size: {
|
|
47
|
+
xs: {
|
|
48
|
+
base: 'size-5 text-xs'
|
|
49
|
+
},
|
|
50
|
+
sm: {
|
|
51
|
+
base: 'size-6 text-sm'
|
|
52
|
+
},
|
|
53
|
+
md: {
|
|
54
|
+
base: 'size-8 text-base'
|
|
55
|
+
},
|
|
56
|
+
lg: {
|
|
57
|
+
base: 'size-10 text-lg'
|
|
58
|
+
},
|
|
59
|
+
xl: {
|
|
60
|
+
base: 'size-12 text-xl'
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
defaultVariants: {
|
|
65
|
+
size: 'md',
|
|
66
|
+
shape: 'circle'
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
const focusVisibleRing = ['outline-hidden', 'focus-visible:z-10', 'focus-visible:ring-3', 'focus-visible:ring-focus', 'focus-visible:ring-offset-2', 'focus-visible:ring-offset-background'];
|
|
71
|
+
const focusVisibleWithinRing = ['outline-hidden', 'has-focus-visible:z-10', 'has-focus-visible:ring-3', 'has-[:focus-visible]:ring-focus', 'has-focus-visible:ring-offset-2', 'has-[:focus-visible]:ring-offset-background'];
|
|
72
|
+
|
|
35
73
|
const baseButton = tv({
|
|
36
|
-
base: ['leading-tight', 'inline-block', 'font-semibold', 'border', 'border-transparent', 'rounded', 'disabled:cursor-not-allowed', 'disabled:opacity-40',
|
|
74
|
+
base: ['leading-tight', 'inline-block', 'font-semibold', 'border', 'border-transparent', 'rounded-sm', 'disabled:cursor-not-allowed', 'disabled:opacity-40', ...focusVisibleRing],
|
|
37
75
|
variants: {
|
|
38
76
|
appearance: {
|
|
39
77
|
outlined: ''
|
|
40
78
|
},
|
|
41
79
|
isInGroup: {
|
|
42
|
-
true: ['rounded-none first:rounded-l last:rounded-r', '[&:not(:first-child):not(:last-child)]:rounded-none', '
|
|
80
|
+
true: ['rounded-none first:rounded-l last:rounded-r', '[&:not(:first-child):not(:last-child)]:rounded-none', 'not-last-of-type:-me-px']
|
|
43
81
|
},
|
|
44
82
|
intent: {
|
|
45
83
|
default: '',
|
|
46
|
-
primary: '',
|
|
47
|
-
success: '',
|
|
48
|
-
warning: '',
|
|
49
|
-
danger: ''
|
|
84
|
+
primary: 'focus-visible:ring-primary-500',
|
|
85
|
+
success: 'focus-visible:ring-success-500',
|
|
86
|
+
warning: 'focus-visible:ring-warning',
|
|
87
|
+
danger: 'focus-visible:ring-danger'
|
|
50
88
|
},
|
|
51
89
|
size: {
|
|
52
90
|
xs: 'text-sm px-2 py-1',
|
|
@@ -229,19 +267,19 @@ const chip = tv({
|
|
|
229
267
|
},
|
|
230
268
|
primary: {
|
|
231
269
|
dot: 'bg-primary',
|
|
232
|
-
closeButton: ['bg-primary-700', 'text-background', 'hover:bg-primary-700/60']
|
|
270
|
+
closeButton: ['bg-primary-700', 'text-background', 'hover:bg-primary-700/60', 'focus-visible:ring-primary-700']
|
|
233
271
|
},
|
|
234
272
|
success: {
|
|
235
273
|
dot: 'bg-success',
|
|
236
|
-
closeButton: ['bg-success', 'text-background', 'hover:bg-success/60']
|
|
274
|
+
closeButton: ['bg-success', 'text-background', 'hover:bg-success/60', 'focus-visible:ring-success']
|
|
237
275
|
},
|
|
238
276
|
warning: {
|
|
239
277
|
dot: 'bg-warning',
|
|
240
|
-
closeButton: ['bg-warning', 'text-background', 'hover:bg-warning/60']
|
|
278
|
+
closeButton: ['bg-warning', 'text-background', 'hover:bg-warning/60', 'focus-visible:ring-warning']
|
|
241
279
|
},
|
|
242
280
|
danger: {
|
|
243
281
|
dot: 'bg-danger',
|
|
244
|
-
closeButton: ['bg-danger', 'text-background', 'hover:bg-danger/60']
|
|
282
|
+
closeButton: ['bg-danger', 'text-background', 'hover:bg-danger/60', 'focus-visible:ring-danger']
|
|
245
283
|
}
|
|
246
284
|
},
|
|
247
285
|
size: {
|
|
@@ -263,7 +301,7 @@ const chip = tv({
|
|
|
263
301
|
},
|
|
264
302
|
radius: {
|
|
265
303
|
none: 'rounded-none',
|
|
266
|
-
sm: 'rounded',
|
|
304
|
+
sm: 'rounded-sm',
|
|
267
305
|
lg: 'rounded-lg',
|
|
268
306
|
full: 'rounded-full'
|
|
269
307
|
}
|
|
@@ -377,7 +415,8 @@ const progressBar = tv({
|
|
|
377
415
|
slots: {
|
|
378
416
|
base: ['overflow-hidden w-full bg-content3 dark:bg-content2'],
|
|
379
417
|
label: ['flex justify-between pb-1 gap-2 leading-tight'],
|
|
380
|
-
progress: ['']
|
|
418
|
+
progress: [''],
|
|
419
|
+
description: ['text-default-400 text-xs pb-1']
|
|
381
420
|
},
|
|
382
421
|
variants: {
|
|
383
422
|
isIndeterminate: {
|
|
@@ -406,12 +445,14 @@ const progressBar = tv({
|
|
|
406
445
|
xs: {
|
|
407
446
|
base: 'h-1',
|
|
408
447
|
progress: 'h-1',
|
|
409
|
-
label: 'text-xs'
|
|
448
|
+
label: 'text-xs',
|
|
449
|
+
description: 'text-xs'
|
|
410
450
|
},
|
|
411
451
|
sm: {
|
|
412
452
|
base: 'h-2',
|
|
413
453
|
progress: 'h-2',
|
|
414
|
-
label: 'text-sm'
|
|
454
|
+
label: 'text-sm',
|
|
455
|
+
description: 'text-sm'
|
|
415
456
|
},
|
|
416
457
|
md: {
|
|
417
458
|
base: 'h-4',
|
|
@@ -420,12 +461,13 @@ const progressBar = tv({
|
|
|
420
461
|
lg: {
|
|
421
462
|
base: 'h-8',
|
|
422
463
|
progress: 'h-8',
|
|
423
|
-
label: 'text-lg'
|
|
464
|
+
label: 'text-lg',
|
|
465
|
+
description: 'text-lg'
|
|
424
466
|
}
|
|
425
467
|
},
|
|
426
468
|
radius: {
|
|
427
469
|
none: 'rounded-none',
|
|
428
|
-
sm: 'rounded',
|
|
470
|
+
sm: 'rounded-sm',
|
|
429
471
|
lg: 'rounded-lg',
|
|
430
472
|
full: 'rounded-full'
|
|
431
473
|
}
|
|
@@ -439,7 +481,7 @@ const progressBar = tv({
|
|
|
439
481
|
|
|
440
482
|
const closeButton = tv({
|
|
441
483
|
slots: {
|
|
442
|
-
base: 'rounded-full transition transition-200
|
|
484
|
+
base: ['rounded-full transition transition-200 text-inherit', ...focusVisibleRing],
|
|
443
485
|
icon: 'size-[1em]'
|
|
444
486
|
},
|
|
445
487
|
variants: {
|
|
@@ -476,16 +518,16 @@ const closeButton = tv({
|
|
|
476
518
|
});
|
|
477
519
|
|
|
478
520
|
const listbox = tv({
|
|
479
|
-
base: 'w-full flex flex-col gap-0.5 outline-
|
|
521
|
+
base: 'w-full flex flex-col gap-0.5 outline-hidden p-1'
|
|
480
522
|
});
|
|
481
523
|
const listboxItem = tv({
|
|
482
524
|
slots: {
|
|
483
|
-
base: ['flex', 'group', 'gap-2', 'items-center', 'justify-between', 'relative', 'px-2', 'py-1.5', 'w-full', 'h-full', 'box-border', 'rounded', 'subpixel-antialiased', 'outline-
|
|
525
|
+
base: ['flex', 'group', 'gap-2', 'items-center', 'justify-between', 'relative', 'px-2', 'py-1.5', 'w-full', 'h-full', 'box-border', 'rounded-sm', 'subpixel-antialiased', 'outline-hidden', 'cursor-pointer', 'tap-highlight-transparent'],
|
|
484
526
|
descriptionWrapper: 'w-full flex flex-col items-start justify-center',
|
|
485
527
|
label: 'flex-1 text-sm font-normal truncate',
|
|
486
528
|
description: ['w-full', 'text-xs', 'text-foreground-500', 'group-hover:text-current'],
|
|
487
|
-
selectedIcon: ['text-inherit', 'w-4', 'h-4', '
|
|
488
|
-
shortcut: ['px-1', 'py-0.5', 'rounded', 'font-sans', 'text-foreground-500', 'text-xs', 'border', 'border-default-300', 'group-data-is-active:border-current']
|
|
529
|
+
selectedIcon: ['text-inherit', 'w-4', 'h-4', 'shrink-0'],
|
|
530
|
+
shortcut: ['px-1', 'py-0.5', 'rounded-sm', 'font-sans', 'text-foreground-500', 'text-xs', 'border', 'border-default-300', 'group-data-is-active:border-current']
|
|
489
531
|
},
|
|
490
532
|
variants: {
|
|
491
533
|
appearance: {
|
|
@@ -660,18 +702,18 @@ const listboxItem = tv({
|
|
|
660
702
|
});
|
|
661
703
|
|
|
662
704
|
const dropdownContent = tv({
|
|
663
|
-
base: 'bg-content1 w-[260px] rounded border border-default-200'
|
|
705
|
+
base: 'bg-content1 w-[260px] rounded-sm border border-default-200'
|
|
664
706
|
});
|
|
665
707
|
|
|
666
708
|
const popover = tv({
|
|
667
|
-
base: 'bg-content1 rounded border border-default-200',
|
|
709
|
+
base: 'bg-content1 rounded-sm border border-default-200',
|
|
668
710
|
variants: {
|
|
669
711
|
size: {
|
|
670
712
|
sm: 'w-40',
|
|
671
713
|
md: 'w-64',
|
|
672
714
|
lg: 'w-96',
|
|
673
|
-
xl: 'w-
|
|
674
|
-
trigger: 'w-
|
|
715
|
+
xl: 'w-136',
|
|
716
|
+
trigger: 'w-(--trigger-width)'
|
|
675
717
|
}
|
|
676
718
|
},
|
|
677
719
|
defaultVariants: {
|
|
@@ -683,8 +725,8 @@ const divider = tv({
|
|
|
683
725
|
base: 'shrink-0 bg-default-200 border-none',
|
|
684
726
|
variants: {
|
|
685
727
|
orientation: {
|
|
686
|
-
horizontal: 'w-full h-
|
|
687
|
-
vertical: 'h-full w-
|
|
728
|
+
horizontal: 'w-full h-px',
|
|
729
|
+
vertical: 'h-full w-px'
|
|
688
730
|
}
|
|
689
731
|
},
|
|
690
732
|
defaultVariants: {
|
|
@@ -716,8 +758,240 @@ const spinner = tv({
|
|
|
716
758
|
}
|
|
717
759
|
});
|
|
718
760
|
|
|
761
|
+
const table = tv({
|
|
762
|
+
slots: {
|
|
763
|
+
base: ['w-full', 'caption-bottom', 'text-sm'],
|
|
764
|
+
wrapper: ['relative', 'isolate', 'overflow-auto'],
|
|
765
|
+
table: ['w-full', 'table-auto'],
|
|
766
|
+
thead: ['relative'],
|
|
767
|
+
tbody: ['divide-y', 'divide-default-100', '[&>tr]:data-[selectable=true]:data-[selected=false]:hover:bg-default-100', '[&>tr]:data-[selectable=true]:transition-colors'],
|
|
768
|
+
tfoot: ['relative'],
|
|
769
|
+
tr: ['data-[disabled=true]:opacity-50', 'data-[disabled=true]:cursor-not-allowed', 'data-[disabled=true]:hover:bg-transparent', 'data-[selectable=true]:focus-visible:ring-2', 'data-[selectable=true]:focus-visible:ring-inset', 'data-[selectable=true]:focus-visible:ring-default', 'data-[selectable=true]:focus-visible:z-10', 'transition-colors', 'duration-150', 'outline-hidden'],
|
|
770
|
+
separator: ['absolute', 'z-2', 'left-0', 'w-full', 'h-px', 'bg-default-200'],
|
|
771
|
+
th: ['h-12', 'px-4', 'text-left', 'align-middle', 'font-medium', 'text-foreground-600', '[&:has([role=checkbox])]:pr-0', 'data-[sortable=true]:cursor-pointer'],
|
|
772
|
+
sortButton: ['group/sort', 'inline-flex', 'items-center', 'gap-1', 'w-full', 'text-left', 'font-medium', 'text-foreground-600', 'outline-hidden', 'focus-visible:z-10', 'focus-visible:ring-3', 'focus-visible:ring-focus', 'focus-visible:ring-offset-2', 'focus-visible:ring-offset-background'],
|
|
773
|
+
sortIcon: ['size-4', 'flex-shrink-0', 'text-foreground-400', 'transition-opacity', 'data-[sorted=false]:opacity-0', 'group-hover/sort:data-[sorted=false]:opacity-100', 'data-[sorted=true]:opacity-100'],
|
|
774
|
+
columnVisibilityButton: ['flex'],
|
|
775
|
+
columnVisibilityIcon: ['size-6'],
|
|
776
|
+
td: ['p-4', 'align-middle', 'text-foreground', '[&:has([role=checkbox])]:pr-0'],
|
|
777
|
+
empty: ['text-foreground-400', 'align-middle', 'text-center', 'py-12']
|
|
778
|
+
},
|
|
779
|
+
variants: {
|
|
780
|
+
size: {
|
|
781
|
+
sm: {
|
|
782
|
+
th: 'h-10 px-3 py-2 text-xs',
|
|
783
|
+
td: 'px-3 py-2 text-xs'
|
|
784
|
+
},
|
|
785
|
+
md: {
|
|
786
|
+
th: 'h-12 px-4 text-sm',
|
|
787
|
+
td: 'p-4 text-sm'
|
|
788
|
+
},
|
|
789
|
+
lg: {
|
|
790
|
+
th: 'h-14 px-6 text-base',
|
|
791
|
+
td: 'p-6 text-base'
|
|
792
|
+
}
|
|
793
|
+
},
|
|
794
|
+
isLoading: {
|
|
795
|
+
true: {
|
|
796
|
+
thead: ['after:absolute', 'after:top-full', 'after:left-0', 'after:w-1/2', 'after:animate-swing', 'after:h-px', 'after:z-10']
|
|
797
|
+
}
|
|
798
|
+
},
|
|
799
|
+
loadingColor: {
|
|
800
|
+
default: {},
|
|
801
|
+
primary: {},
|
|
802
|
+
success: {},
|
|
803
|
+
warning: {},
|
|
804
|
+
danger: {}
|
|
805
|
+
},
|
|
806
|
+
selectionColor: {
|
|
807
|
+
default: {},
|
|
808
|
+
primary: {},
|
|
809
|
+
success: {},
|
|
810
|
+
warning: {},
|
|
811
|
+
danger: {}
|
|
812
|
+
},
|
|
813
|
+
layout: {
|
|
814
|
+
auto: {
|
|
815
|
+
table: 'table-auto'
|
|
816
|
+
},
|
|
817
|
+
fixed: {
|
|
818
|
+
table: 'table-fixed'
|
|
819
|
+
}
|
|
820
|
+
},
|
|
821
|
+
striped: {
|
|
822
|
+
true: {
|
|
823
|
+
tbody: '[&_tr:nth-child(odd)]:bg-default-100/50 dark:[&_tr:nth-child(odd)]:bg-default-200/10'
|
|
824
|
+
}
|
|
825
|
+
},
|
|
826
|
+
isSticky: {
|
|
827
|
+
true: {}
|
|
828
|
+
},
|
|
829
|
+
stickyPosition: {
|
|
830
|
+
left: {},
|
|
831
|
+
right: {},
|
|
832
|
+
top: {},
|
|
833
|
+
bottom: {}
|
|
834
|
+
},
|
|
835
|
+
isScrollable: {
|
|
836
|
+
true: {
|
|
837
|
+
wrapper: ['overflow-auto']
|
|
838
|
+
}
|
|
839
|
+
},
|
|
840
|
+
hasStickyHeader: {
|
|
841
|
+
true: {}
|
|
842
|
+
},
|
|
843
|
+
isInStickyRow: {
|
|
844
|
+
true: {}
|
|
845
|
+
}
|
|
846
|
+
},
|
|
847
|
+
compoundVariants: [
|
|
848
|
+
// Sticky header - highest priority for intersections with columns
|
|
849
|
+
{
|
|
850
|
+
isSticky: true,
|
|
851
|
+
stickyPosition: 'top',
|
|
852
|
+
class: {
|
|
853
|
+
thead: ['sticky', 'top-0', 'z-2', 'bg-background']
|
|
854
|
+
}
|
|
855
|
+
},
|
|
856
|
+
// Sticky footer
|
|
857
|
+
{
|
|
858
|
+
isSticky: true,
|
|
859
|
+
stickyPosition: 'bottom',
|
|
860
|
+
class: {
|
|
861
|
+
tfoot: ['sticky', 'bottom-0', 'z-2', 'bg-background']
|
|
862
|
+
}
|
|
863
|
+
},
|
|
864
|
+
// Sticky columns - medium priority, header cells get higher z-index
|
|
865
|
+
{
|
|
866
|
+
isSticky: true,
|
|
867
|
+
stickyPosition: 'left',
|
|
868
|
+
class: {
|
|
869
|
+
th: ['sticky', 'left-0', 'z-3', 'bg-background'],
|
|
870
|
+
// Higher for header intersection
|
|
871
|
+
td: ['sticky', 'left-0', 'z-1', 'bg-background']
|
|
872
|
+
}
|
|
873
|
+
}, {
|
|
874
|
+
isSticky: true,
|
|
875
|
+
stickyPosition: 'right',
|
|
876
|
+
class: {
|
|
877
|
+
th: ['sticky', 'right-0', 'z-3', 'bg-background'],
|
|
878
|
+
// Higher for header intersection
|
|
879
|
+
td: ['sticky', 'right-0', 'z-1', 'bg-background']
|
|
880
|
+
}
|
|
881
|
+
},
|
|
882
|
+
// Sticky rows - base layer
|
|
883
|
+
{
|
|
884
|
+
isSticky: true,
|
|
885
|
+
stickyPosition: 'top',
|
|
886
|
+
class: {
|
|
887
|
+
tr: ['sticky', 'top-0', 'z-1', 'bg-background']
|
|
888
|
+
}
|
|
889
|
+
}, {
|
|
890
|
+
isSticky: true,
|
|
891
|
+
stickyPosition: 'bottom',
|
|
892
|
+
class: {
|
|
893
|
+
tr: ['sticky', 'bottom-0', 'z-1', 'bg-background']
|
|
894
|
+
}
|
|
895
|
+
},
|
|
896
|
+
// Sticky rows with sticky header - position after header
|
|
897
|
+
{
|
|
898
|
+
isSticky: true,
|
|
899
|
+
stickyPosition: 'top',
|
|
900
|
+
hasStickyHeader: true,
|
|
901
|
+
class: {
|
|
902
|
+
tr: ['sticky', 'z-2', 'bg-background', '[&.sticky]:[top:var(--table-header-height,48px)]']
|
|
903
|
+
}
|
|
904
|
+
},
|
|
905
|
+
// Intersection cells: sticky column + sticky row - highest z-index
|
|
906
|
+
{
|
|
907
|
+
isSticky: true,
|
|
908
|
+
stickyPosition: 'left',
|
|
909
|
+
isInStickyRow: true,
|
|
910
|
+
class: {
|
|
911
|
+
td: ['sticky', 'left-0', 'z-2', 'bg-background']
|
|
912
|
+
}
|
|
913
|
+
}, {
|
|
914
|
+
isSticky: true,
|
|
915
|
+
stickyPosition: 'right',
|
|
916
|
+
isInStickyRow: true,
|
|
917
|
+
class: {
|
|
918
|
+
td: ['sticky', 'right-0', 'z-2', 'bg-background']
|
|
919
|
+
}
|
|
920
|
+
},
|
|
921
|
+
// Loading states with color variants
|
|
922
|
+
{
|
|
923
|
+
isLoading: true,
|
|
924
|
+
loadingColor: 'default',
|
|
925
|
+
class: {
|
|
926
|
+
thead: `after:bg-default`
|
|
927
|
+
}
|
|
928
|
+
}, {
|
|
929
|
+
isLoading: true,
|
|
930
|
+
loadingColor: 'primary',
|
|
931
|
+
class: {
|
|
932
|
+
thead: `after:bg-primary`
|
|
933
|
+
}
|
|
934
|
+
}, {
|
|
935
|
+
isLoading: true,
|
|
936
|
+
loadingColor: 'success',
|
|
937
|
+
class: {
|
|
938
|
+
thead: `after:bg-success`
|
|
939
|
+
}
|
|
940
|
+
}, {
|
|
941
|
+
isLoading: true,
|
|
942
|
+
loadingColor: 'warning',
|
|
943
|
+
class: {
|
|
944
|
+
thead: `after:bg-warning`
|
|
945
|
+
}
|
|
946
|
+
}, {
|
|
947
|
+
isLoading: true,
|
|
948
|
+
loadingColor: 'danger',
|
|
949
|
+
class: {
|
|
950
|
+
thead: `after:bg-danger`
|
|
951
|
+
}
|
|
952
|
+
},
|
|
953
|
+
// Selection color variants
|
|
954
|
+
{
|
|
955
|
+
selectionColor: 'default',
|
|
956
|
+
class: {
|
|
957
|
+
tbody: '[&>tr]:data-[selected=true]:bg-default-200/50',
|
|
958
|
+
tr: ['data-[selectable=true]:focus-visible:ring-default']
|
|
959
|
+
}
|
|
960
|
+
}, {
|
|
961
|
+
selectionColor: 'primary',
|
|
962
|
+
class: {
|
|
963
|
+
tbody: '[&>tr]:data-[selected=true]:bg-primary-50',
|
|
964
|
+
tr: ['data-[selectable=true]:focus-visible:ring-primary']
|
|
965
|
+
}
|
|
966
|
+
}, {
|
|
967
|
+
selectionColor: 'success',
|
|
968
|
+
class: {
|
|
969
|
+
tbody: '[&>tr]:data-[selected=true]:bg-success-50',
|
|
970
|
+
tr: ['data-[selectable=true]:focus-visible:ring-success']
|
|
971
|
+
}
|
|
972
|
+
}, {
|
|
973
|
+
selectionColor: 'warning',
|
|
974
|
+
class: {
|
|
975
|
+
tbody: '[&>tr]:data-[selected=true]:bg-warning-50',
|
|
976
|
+
tr: ['data-[selectable=true]:focus-visible:ring-warning']
|
|
977
|
+
}
|
|
978
|
+
}, {
|
|
979
|
+
selectionColor: 'danger',
|
|
980
|
+
class: {
|
|
981
|
+
tbody: '[&>tr]:data-[selected=true]:bg-danger-50',
|
|
982
|
+
tr: ['data-[selectable=true]:focus-visible:ring-danger']
|
|
983
|
+
}
|
|
984
|
+
}],
|
|
985
|
+
defaultVariants: {
|
|
986
|
+
size: 'md',
|
|
987
|
+
layout: 'auto',
|
|
988
|
+
loadingColor: 'default',
|
|
989
|
+
selectionColor: 'primary'
|
|
990
|
+
}
|
|
991
|
+
});
|
|
992
|
+
|
|
719
993
|
const notificationsContainer = tv({
|
|
720
|
-
base: ['w-full', 'max-h-full', 'overflow-hidden', 'px-4', 'fixed', 'max-w-lg', 'z-
|
|
994
|
+
base: ['w-full', 'max-h-full', 'overflow-hidden', 'px-4', 'fixed', 'max-w-lg', 'z-1000'],
|
|
721
995
|
variants: {
|
|
722
996
|
placement: {
|
|
723
997
|
'top-left': 'top-0 left-0',
|
|
@@ -733,14 +1007,14 @@ const notificationsContainer = tv({
|
|
|
733
1007
|
}
|
|
734
1008
|
});
|
|
735
1009
|
|
|
736
|
-
const btn = 'transition transition-200
|
|
1010
|
+
const btn = ['transition transition-200', ...focusVisibleRing];
|
|
737
1011
|
const notificationCard = tv({
|
|
738
1012
|
slots: {
|
|
739
|
-
base: 'py-3 px-4 overflow-hidden flex items-center justify-between relative min-h-16 text-sm rounded shadow transition-all transition-200 ease-in-out',
|
|
1013
|
+
base: 'py-3 px-4 overflow-hidden flex items-center justify-between relative min-h-16 text-sm rounded-sm shadow-sm transition-all transition-200 ease-in-out',
|
|
740
1014
|
message: 'grow',
|
|
741
1015
|
customActions: 'flex flex-nowrap',
|
|
742
|
-
customActionButton: btn
|
|
743
|
-
closeButton: btn
|
|
1016
|
+
customActionButton: [...btn, 'first:ml-4 last:-mr-2 font-semibold py-1 px-2 rounded-sm'],
|
|
1017
|
+
closeButton: [...btn, 'inline-block p-2 ml-2 -mr-2 rounded-full']
|
|
744
1018
|
},
|
|
745
1019
|
variants: {
|
|
746
1020
|
appearance: {
|
|
@@ -822,7 +1096,7 @@ const notificationTransitions = {
|
|
|
822
1096
|
}
|
|
823
1097
|
};
|
|
824
1098
|
|
|
825
|
-
const obscurer = `before:bg-
|
|
1099
|
+
const obscurer = `before:bg-linear-to-b before:to-content1 before:from-content1/75 before:absolute before:left-0 before:w-full before:h-4 before:-top-4 before:content-['_']`;
|
|
826
1100
|
const overlay = tv({
|
|
827
1101
|
base: 'will-change-transform overflow-auto',
|
|
828
1102
|
variants: {
|
|
@@ -840,7 +1114,7 @@ const backdrop = tv({
|
|
|
840
1114
|
type: {
|
|
841
1115
|
none: '',
|
|
842
1116
|
transparent: '',
|
|
843
|
-
blur: 'bg-overlay/[.45] backdrop-blur',
|
|
1117
|
+
blur: 'bg-overlay/[.45] backdrop-blur-sm',
|
|
844
1118
|
faded: 'bg-overlay/[.45]'
|
|
845
1119
|
},
|
|
846
1120
|
inPlace: {
|
|
@@ -850,7 +1124,7 @@ const backdrop = tv({
|
|
|
850
1124
|
});
|
|
851
1125
|
const modal = tv({
|
|
852
1126
|
slots: {
|
|
853
|
-
base: 'flex flex-col shrink-0 relative text-content1-foreground bg-content1 rounded my-24 w-full outline-
|
|
1127
|
+
base: 'flex flex-col shrink-0 relative text-content1-foreground bg-content1 rounded-sm my-24 w-full outline-hidden overflow-hidden',
|
|
854
1128
|
closeButton: 'absolute top-2 right-2 dark:hover:bg-content2',
|
|
855
1129
|
header: 'font-bold text-xl p-4 rounded-tl rounded-tr',
|
|
856
1130
|
body: 'p-4 grow overflow-y-auto',
|
|
@@ -872,7 +1146,7 @@ const modal = tv({
|
|
|
872
1146
|
});
|
|
873
1147
|
const drawer = tv({
|
|
874
1148
|
slots: {
|
|
875
|
-
base: 'flex flex-col absolute text-content1-foreground bg-content1 w-full h-full shadow',
|
|
1149
|
+
base: 'flex flex-col absolute text-content1-foreground bg-content1 w-full h-full shadow-sm outline-hidden',
|
|
876
1150
|
closeButton: 'absolute top-2 right-2 dark:hover:bg-content2',
|
|
877
1151
|
header: 'font-bold text-xl p-4 rounded-tl rounded-tr',
|
|
878
1152
|
body: 'p-4 grow overflow-y-auto',
|
|
@@ -1111,7 +1385,7 @@ const input = tv({
|
|
|
1111
1385
|
innerContainer: 'relative flex',
|
|
1112
1386
|
startContent: 'absolute inset-y-0 left-0 flex items-center',
|
|
1113
1387
|
endContent: 'absolute inset-y-0 right-0 flex items-center',
|
|
1114
|
-
input: ['appearance-none', 'flex-1', 'w-full', 'bg-white dark:bg-default-100', 'text-default-900', 'placeholder-default-400', 'text-base text-left text-foreground', 'border', 'border-default-400', 'rounded', 'leading-tight', 'focus:ring', 'focus:outline-
|
|
1388
|
+
input: ['appearance-none', 'flex-1', 'w-full', 'bg-white dark:bg-default-100', 'text-default-900', 'placeholder-default-400', 'text-base text-left text-foreground', 'border', 'border-default-400', 'rounded-sm', 'leading-tight', 'focus:ring-3', 'focus:ring-focus', 'focus:outline-hidden', 'focus:border-primary-400', 'selection:bg-content3', 'disabled:border-default-200 disabled:text-default-500', 'aria-invalid:border-danger-400', 'aria-invalid:focus:ring-danger-400']
|
|
1115
1389
|
},
|
|
1116
1390
|
variants: {
|
|
1117
1391
|
size: {
|
|
@@ -1178,7 +1452,7 @@ const textarea = tv({
|
|
|
1178
1452
|
const checkboxRadioBase = tv({
|
|
1179
1453
|
slots: {
|
|
1180
1454
|
base: ['max-w-fit flex items-center justify-start'],
|
|
1181
|
-
input: ['appearance-none', 'inline-block', 'align-middle', 'select-none', 'shrink-0', 'h-[1em] w-[1em]', 'text-base', 'text-primary', 'border border-default-400', 'bg-white dark:bg-default-100', 'checked:bg-origin-border checked:border-transparent dark:checked:bg-current checked:bg-current checked:bg-center checked:bg-no-repeat checked:disabled:bg-default-300'],
|
|
1455
|
+
input: ['appearance-none', 'inline-block', 'align-middle', 'select-none', 'shrink-0', 'h-[1em] w-[1em]', 'text-base', 'text-primary', 'border border-default-400', 'bg-white dark:bg-default-100', 'checked:bg-origin-border checked:border-transparent dark:checked:bg-current checked:bg-current checked:bg-center checked:bg-no-repeat checked:disabled:bg-default-300', ...focusVisibleRing],
|
|
1182
1456
|
labelContainer: ['flex flex-col ml-2'],
|
|
1183
1457
|
label: 'font-normal pb-0'
|
|
1184
1458
|
},
|
|
@@ -1216,7 +1490,9 @@ const checkboxRadioGroupBase = tv({
|
|
|
1216
1490
|
const checkbox = tv({
|
|
1217
1491
|
extend: checkboxRadioBase,
|
|
1218
1492
|
slots: {
|
|
1219
|
-
input: ['checked-bg-checkbox', 'rounded-
|
|
1493
|
+
input: ['checked-bg-checkbox', 'indeterminate-bg-checkbox', 'rounded-xs',
|
|
1494
|
+
// Indeterminate state styles - show minus/dash icon
|
|
1495
|
+
'indeterminate:bg-primary', 'indeterminate:border-primary', 'indeterminate:bg-origin-border', 'indeterminate:bg-center', 'indeterminate:bg-no-repeat', 'dark:indeterminate:bg-current']
|
|
1220
1496
|
},
|
|
1221
1497
|
variants: {
|
|
1222
1498
|
size: {
|
|
@@ -1271,7 +1547,7 @@ const select = tv({
|
|
|
1271
1547
|
listbox: 'scroll-py-6 max-h-64',
|
|
1272
1548
|
icon: 'w-5 h-5',
|
|
1273
1549
|
clearButton: 'pointer-events-auto',
|
|
1274
|
-
input: '[
|
|
1550
|
+
input: '[button]:cursor-default',
|
|
1275
1551
|
emptyContent: 'p-2'
|
|
1276
1552
|
},
|
|
1277
1553
|
variants: {
|
|
@@ -1304,8 +1580,8 @@ const switchInput = tv({
|
|
|
1304
1580
|
base: 'group relative max-w-fit inline-flex items-center justify-start',
|
|
1305
1581
|
labelContainer: 'flex flex-col ml-2',
|
|
1306
1582
|
label: 'font-normal pb-0',
|
|
1307
|
-
wrapper: ['px-1', 'relative', 'inline-flex', 'items-center', 'justify-start', '
|
|
1308
|
-
hiddenInput: ['font-inherit', 'text-[100%]', 'leading-[1.15]', 'm-0', 'p-0', 'overflow-visible', 'box-border', 'absolute', 'top-0', 'w-full', 'h-full', 'opacity-[0.0001]', 'z-
|
|
1583
|
+
wrapper: ['px-1', 'relative', 'inline-flex', 'items-center', 'justify-start', 'shrink-0', 'overflow-hidden', 'bg-default-300', 'rounded-full', 'cursor-pointer touch-none tap-highlight-transparent select-none', 'transition-background', ...focusVisibleWithinRing],
|
|
1584
|
+
hiddenInput: ['font-inherit', 'text-[100%]', 'leading-[1.15]', 'm-0', 'p-0', 'overflow-visible', 'box-border', 'absolute', 'top-0', 'w-full', 'h-full', 'opacity-[0.0001]', 'z-1', 'cursor-pointer', 'disabled:cursor-default'],
|
|
1309
1585
|
thumb: ['z-10', 'flex', 'items-center', 'justify-center', 'bg-white', 'shadow-small', 'rounded-full', 'origin-right', 'transition-all', 'pointer-events-none', 'text-black'],
|
|
1310
1586
|
startContent: ['z-0 absolute start-1.5 text-current', 'opacity-0', 'scale-50', 'transition-transform-opacity', 'group-data-[selected=true]:scale-100', 'group-data-[selected=true]:opacity-100'],
|
|
1311
1587
|
endContent: ['z-0 absolute end-1.5 text-default-600', 'opacity-100', 'transition-transform-opacity', 'group-data-[selected=true]:translate-x-3', 'group-data-[selected=true]:opacity-0']
|
|
@@ -1483,5 +1759,5 @@ const formSelect = tv({
|
|
|
1483
1759
|
}
|
|
1484
1760
|
});
|
|
1485
1761
|
|
|
1486
|
-
export {
|
|
1487
|
-
//# sourceMappingURL=forms-legacy-
|
|
1762
|
+
export { notificationCard as A, notificationTransitions as B, notificationsContainer as C, overlay as D, overlayTransitions as E, popover as F, progressBar as G, radio as H, radioGroup as I, select as J, spinner as K, switchInput as L, table as M, textarea as N, toggleButton as O, twMerge as P, avatar as a, backdrop as b, button as c, buttonGroup as d, checkbox as e, checkboxGroup as f, chip as g, closeButton as h, divider as i, drawer as j, dropdownContent as k, formCheckbox as l, formCheckboxGroup as m, formDescription as n, formFeedback as o, formInput as p, formRadio as q, formRadioGroup as r, formSelect as s, formTextarea as t, input as u, label as v, listbox as w, listboxItem as x, modal as y, nativeSelect as z };
|
|
1763
|
+
//# sourceMappingURL=forms-legacy-Bg_UoLDR.js.map
|