@frontile/theme 0.17.0-beta.1 → 0.17.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.
- package/README.md +16 -5
- package/declarations/components/avatar.d.ts +172 -0
- package/declarations/components/avatar.d.ts.map +1 -0
- package/declarations/components/button.d.ts.map +1 -1
- package/declarations/components/chip.d.ts.map +1 -1
- package/declarations/components/close-button.d.ts +3 -3
- package/declarations/components/close-button.d.ts.map +1 -1
- package/declarations/components/forms/forms.d.ts +355 -1
- package/declarations/components/forms/forms.d.ts.map +1 -1
- package/declarations/components/index.d.ts +1 -0
- package/declarations/components/index.d.ts.map +1 -1
- package/declarations/components/listbox.d.ts +7 -7
- package/declarations/components/notification-card.d.ts +6 -6
- package/declarations/components/notification-card.d.ts.map +1 -1
- package/declarations/components/popover.d.ts +7 -0
- package/declarations/components/popover.d.ts.map +1 -1
- package/declarations/components/shared.d.ts +3 -0
- package/declarations/components/shared.d.ts.map +1 -0
- package/dist/colors.js +1 -1
- package/dist/{forms-legacy-C8pB0Hf3.js → forms-legacy-BfjJExaO.js} +148 -43
- package/dist/forms-legacy-BfjJExaO.js.map +1 -0
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/plugin.js +3 -4
- package/dist/plugin.js.map +1 -1
- package/dist/{semantic-Us_bxqq7.js → semantic-ZtMVenU-.js} +2 -2
- package/dist/{semantic-Us_bxqq7.js.map → semantic-ZtMVenU-.js.map} +1 -1
- package/package.json +49 -52
- package/declarations/defaults-6b749161.d.ts +0 -67
- package/declarations/defaults-6b749161.d.ts.map +0 -1
- package/declarations/forms-legacy-C8pB0Hf3.d.ts +0 -5701
- package/declarations/forms-legacy-C8pB0Hf3.d.ts.map +0 -1
- package/declarations/index-6ccbcd58.d.ts +0 -2
- package/declarations/index-6ccbcd58.d.ts.map +0 -1
- package/declarations/semantic-Us_bxqq7.d.ts +0 -7
- package/declarations/semantic-Us_bxqq7.d.ts.map +0 -1
- package/declarations/tw-0891d74d.d.ts +0 -6
- package/declarations/tw-0891d74d.d.ts.map +0 -1
- package/declarations/types-45f8510f.d.ts +0 -39
- package/declarations/types-45f8510f.d.ts.map +0 -1
- package/declarations/util-e4b6947c.d.ts +0 -3
- package/declarations/util-e4b6947c.d.ts.map +0 -1
- package/dist/forms-legacy-C8pB0Hf3.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const listbox: import("tailwind-variants").TVReturnType<{} | {} | {}, undefined, "w-full flex flex-col gap-0.5 outline-none p-1", import("tailwind-variants/dist/config.js").TVConfig<unknown, {} | {}>, {} | {}, undefined, import("tailwind-variants").TVReturnType<unknown, undefined, "w-full flex flex-col gap-0.5 outline-none p-1", import("tailwind-variants/dist/config.js").TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
|
|
2
2
|
declare const listboxItem: import("tailwind-variants").TVReturnType<{
|
|
3
|
-
|
|
3
|
+
appearance: {
|
|
4
4
|
default: {
|
|
5
5
|
base: string;
|
|
6
6
|
};
|
|
@@ -47,7 +47,7 @@ declare const listboxItem: import("tailwind-variants").TVReturnType<{
|
|
|
47
47
|
selectedIcon: string[];
|
|
48
48
|
shortcut: string[];
|
|
49
49
|
}, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
|
|
50
|
-
|
|
50
|
+
appearance: {
|
|
51
51
|
default: {
|
|
52
52
|
base: string;
|
|
53
53
|
};
|
|
@@ -87,7 +87,7 @@ declare const listboxItem: import("tailwind-variants").TVReturnType<{
|
|
|
87
87
|
};
|
|
88
88
|
};
|
|
89
89
|
}, {
|
|
90
|
-
|
|
90
|
+
appearance: {
|
|
91
91
|
default: {
|
|
92
92
|
base: string;
|
|
93
93
|
};
|
|
@@ -127,7 +127,7 @@ declare const listboxItem: import("tailwind-variants").TVReturnType<{
|
|
|
127
127
|
};
|
|
128
128
|
};
|
|
129
129
|
}>, {
|
|
130
|
-
|
|
130
|
+
appearance: {
|
|
131
131
|
default: {
|
|
132
132
|
base: string;
|
|
133
133
|
};
|
|
@@ -174,7 +174,7 @@ declare const listboxItem: import("tailwind-variants").TVReturnType<{
|
|
|
174
174
|
selectedIcon: string[];
|
|
175
175
|
shortcut: string[];
|
|
176
176
|
}, import("tailwind-variants").TVReturnType<{
|
|
177
|
-
|
|
177
|
+
appearance: {
|
|
178
178
|
default: {
|
|
179
179
|
base: string;
|
|
180
180
|
};
|
|
@@ -221,7 +221,7 @@ declare const listboxItem: import("tailwind-variants").TVReturnType<{
|
|
|
221
221
|
selectedIcon: string[];
|
|
222
222
|
shortcut: string[];
|
|
223
223
|
}, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
|
|
224
|
-
|
|
224
|
+
appearance: {
|
|
225
225
|
default: {
|
|
226
226
|
base: string;
|
|
227
227
|
};
|
|
@@ -261,7 +261,7 @@ declare const listboxItem: import("tailwind-variants").TVReturnType<{
|
|
|
261
261
|
};
|
|
262
262
|
};
|
|
263
263
|
}, {
|
|
264
|
-
|
|
264
|
+
appearance: {
|
|
265
265
|
default: {
|
|
266
266
|
base: string;
|
|
267
267
|
};
|
|
@@ -25,8 +25,8 @@ declare const notificationCard: import("tailwind-variants").TVReturnType<{
|
|
|
25
25
|
base: string;
|
|
26
26
|
message: string;
|
|
27
27
|
customActions: string;
|
|
28
|
-
customActionButton: string;
|
|
29
|
-
closeButton: string;
|
|
28
|
+
customActionButton: string[];
|
|
29
|
+
closeButton: string[];
|
|
30
30
|
}, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
|
|
31
31
|
appearance: {
|
|
32
32
|
info: {
|
|
@@ -100,8 +100,8 @@ declare const notificationCard: import("tailwind-variants").TVReturnType<{
|
|
|
100
100
|
base: string;
|
|
101
101
|
message: string;
|
|
102
102
|
customActions: string;
|
|
103
|
-
customActionButton: string;
|
|
104
|
-
closeButton: string;
|
|
103
|
+
customActionButton: string[];
|
|
104
|
+
closeButton: string[];
|
|
105
105
|
}, import("tailwind-variants").TVReturnType<{
|
|
106
106
|
appearance: {
|
|
107
107
|
info: {
|
|
@@ -129,8 +129,8 @@ declare const notificationCard: import("tailwind-variants").TVReturnType<{
|
|
|
129
129
|
base: string;
|
|
130
130
|
message: string;
|
|
131
131
|
customActions: string;
|
|
132
|
-
customActionButton: string;
|
|
133
|
-
closeButton: string;
|
|
132
|
+
customActionButton: string[];
|
|
133
|
+
closeButton: string[];
|
|
134
134
|
}, undefined, import("tailwind-variants/dist/config.js").TVConfig<{
|
|
135
135
|
appearance: {
|
|
136
136
|
info: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-card.d.ts","sourceRoot":"","sources":["../../src/components/notification-card.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"notification-card.d.ts","sourceRoot":"","sources":["../../src/components/notification-card.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAuCpB,CAAC;AA8BH,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2B5B,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,CAAC"}
|
|
@@ -4,6 +4,7 @@ declare const popover: import("tailwind-variants").TVReturnType<{
|
|
|
4
4
|
md: string;
|
|
5
5
|
lg: string;
|
|
6
6
|
xl: string;
|
|
7
|
+
trigger: string;
|
|
7
8
|
};
|
|
8
9
|
}, undefined, "bg-content1 rounded border border-default-200", import("tailwind-variants/dist/config.js").TVConfig<{
|
|
9
10
|
size: {
|
|
@@ -11,6 +12,7 @@ declare const popover: import("tailwind-variants").TVReturnType<{
|
|
|
11
12
|
md: string;
|
|
12
13
|
lg: string;
|
|
13
14
|
xl: string;
|
|
15
|
+
trigger: string;
|
|
14
16
|
};
|
|
15
17
|
}, {
|
|
16
18
|
size: {
|
|
@@ -18,6 +20,7 @@ declare const popover: import("tailwind-variants").TVReturnType<{
|
|
|
18
20
|
md: string;
|
|
19
21
|
lg: string;
|
|
20
22
|
xl: string;
|
|
23
|
+
trigger: string;
|
|
21
24
|
};
|
|
22
25
|
}>, {
|
|
23
26
|
size: {
|
|
@@ -25,6 +28,7 @@ declare const popover: import("tailwind-variants").TVReturnType<{
|
|
|
25
28
|
md: string;
|
|
26
29
|
lg: string;
|
|
27
30
|
xl: string;
|
|
31
|
+
trigger: string;
|
|
28
32
|
};
|
|
29
33
|
}, undefined, import("tailwind-variants").TVReturnType<{
|
|
30
34
|
size: {
|
|
@@ -32,6 +36,7 @@ declare const popover: import("tailwind-variants").TVReturnType<{
|
|
|
32
36
|
md: string;
|
|
33
37
|
lg: string;
|
|
34
38
|
xl: string;
|
|
39
|
+
trigger: string;
|
|
35
40
|
};
|
|
36
41
|
}, undefined, "bg-content1 rounded border border-default-200", import("tailwind-variants/dist/config.js").TVConfig<{
|
|
37
42
|
size: {
|
|
@@ -39,6 +44,7 @@ declare const popover: import("tailwind-variants").TVReturnType<{
|
|
|
39
44
|
md: string;
|
|
40
45
|
lg: string;
|
|
41
46
|
xl: string;
|
|
47
|
+
trigger: string;
|
|
42
48
|
};
|
|
43
49
|
}, {
|
|
44
50
|
size: {
|
|
@@ -46,6 +52,7 @@ declare const popover: import("tailwind-variants").TVReturnType<{
|
|
|
46
52
|
md: string;
|
|
47
53
|
lg: string;
|
|
48
54
|
xl: string;
|
|
55
|
+
trigger: string;
|
|
49
56
|
};
|
|
50
57
|
}>, unknown, unknown, undefined>>;
|
|
51
58
|
export { popover };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/components/popover.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/components/popover.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAcX,CAAC;AAEH,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../src/components/shared.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,UAO5B,CAAC;AAEF,eAAO,MAAM,sBAAsB,UAOlC,CAAC"}
|
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-ZtMVenU-.js';
|
|
2
2
|
//# sourceMappingURL=colors.js.map
|
|
@@ -32,8 +32,46 @@ 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-none', 'focus-visible:z-10', 'focus-visible:ring', 'focus-visible:ring-focus', 'focus-visible:ring-offset-2', 'focus-visible:ring-offset-background'];
|
|
71
|
+
const focusVisibleWithinRing = ['outline-none', 'has-[:focus-visible]:z-10', 'has-[:focus-visible]:ring', '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', 'disabled:cursor-not-allowed', 'disabled:opacity-40', ...focusVisibleRing],
|
|
37
75
|
variants: {
|
|
38
76
|
appearance: {
|
|
39
77
|
outlined: ''
|
|
@@ -43,10 +81,10 @@ const baseButton = tv({
|
|
|
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: {
|
|
@@ -439,7 +477,7 @@ const progressBar = tv({
|
|
|
439
477
|
|
|
440
478
|
const closeButton = tv({
|
|
441
479
|
slots: {
|
|
442
|
-
base: 'rounded-full transition transition-200
|
|
480
|
+
base: ['rounded-full transition transition-200 text-inherit', ...focusVisibleRing],
|
|
443
481
|
icon: 'size-[1em]'
|
|
444
482
|
},
|
|
445
483
|
variants: {
|
|
@@ -488,7 +526,7 @@ const listboxItem = tv({
|
|
|
488
526
|
shortcut: ['px-1', 'py-0.5', 'rounded', 'font-sans', 'text-foreground-500', 'text-xs', 'border', 'border-default-300', 'group-data-is-active:border-current']
|
|
489
527
|
},
|
|
490
528
|
variants: {
|
|
491
|
-
|
|
529
|
+
appearance: {
|
|
492
530
|
default: {
|
|
493
531
|
base: ''
|
|
494
532
|
},
|
|
@@ -529,129 +567,129 @@ const listboxItem = tv({
|
|
|
529
567
|
}
|
|
530
568
|
},
|
|
531
569
|
defaultVariants: {
|
|
532
|
-
|
|
570
|
+
appearance: 'default',
|
|
533
571
|
intent: 'default'
|
|
534
572
|
},
|
|
535
573
|
compoundVariants: [
|
|
536
|
-
//
|
|
574
|
+
// appearance: default
|
|
537
575
|
{
|
|
538
|
-
|
|
576
|
+
appearance: 'default',
|
|
539
577
|
intent: 'default',
|
|
540
578
|
class: {
|
|
541
579
|
base: ['data-is-active:bg-default', 'data-is-active:text-default-foreground']
|
|
542
580
|
}
|
|
543
581
|
}, {
|
|
544
|
-
|
|
582
|
+
appearance: 'default',
|
|
545
583
|
intent: 'primary',
|
|
546
584
|
class: {
|
|
547
585
|
base: ['data-is-active:bg-primary-500', 'data-is-active:text-primary-foreground']
|
|
548
586
|
}
|
|
549
587
|
}, {
|
|
550
|
-
|
|
588
|
+
appearance: 'default',
|
|
551
589
|
intent: 'success',
|
|
552
590
|
class: {
|
|
553
591
|
base: ['data-is-active:bg-success-500', 'data-is-active:text-success-foreground']
|
|
554
592
|
}
|
|
555
593
|
}, {
|
|
556
|
-
|
|
594
|
+
appearance: 'default',
|
|
557
595
|
intent: 'warning',
|
|
558
596
|
class: {
|
|
559
597
|
base: ['data-is-active:bg-warning-500', 'data-is-active:text-warning-foreground']
|
|
560
598
|
}
|
|
561
599
|
}, {
|
|
562
|
-
|
|
600
|
+
appearance: 'default',
|
|
563
601
|
intent: 'danger',
|
|
564
602
|
class: {
|
|
565
603
|
base: ['data-is-active:bg-danger-500', 'data-is-active:text-danger-foreground']
|
|
566
604
|
}
|
|
567
605
|
}, {
|
|
568
|
-
|
|
606
|
+
appearance: 'default',
|
|
569
607
|
intent: 'primary',
|
|
570
608
|
isActive: true,
|
|
571
609
|
class: {
|
|
572
610
|
shortcut: ['text-primary-foreground']
|
|
573
611
|
}
|
|
574
612
|
}, {
|
|
575
|
-
|
|
613
|
+
appearance: 'default',
|
|
576
614
|
intent: 'success',
|
|
577
615
|
isActive: true,
|
|
578
616
|
class: {
|
|
579
617
|
shortcut: ['text-success-foreground']
|
|
580
618
|
}
|
|
581
619
|
}, {
|
|
582
|
-
|
|
620
|
+
appearance: 'default',
|
|
583
621
|
intent: 'warning',
|
|
584
622
|
isActive: true,
|
|
585
623
|
class: {
|
|
586
624
|
shortcut: ['text-warning-foreground']
|
|
587
625
|
}
|
|
588
626
|
}, {
|
|
589
|
-
|
|
627
|
+
appearance: 'default',
|
|
590
628
|
intent: 'danger',
|
|
591
629
|
isActive: true,
|
|
592
630
|
class: {
|
|
593
631
|
shortcut: ['text-danger-foreground']
|
|
594
632
|
}
|
|
595
633
|
},
|
|
596
|
-
//
|
|
634
|
+
// appearance: outlined
|
|
597
635
|
{
|
|
598
|
-
|
|
636
|
+
appearance: 'outlined',
|
|
599
637
|
intent: 'default',
|
|
600
638
|
class: {
|
|
601
639
|
base: ['data-is-active:border-default-700', 'data-is-active:text-default-700']
|
|
602
640
|
}
|
|
603
641
|
}, {
|
|
604
|
-
|
|
642
|
+
appearance: 'outlined',
|
|
605
643
|
intent: 'primary',
|
|
606
644
|
class: {
|
|
607
645
|
base: ['data-is-active:border-primary', 'data-is-active:text-primary']
|
|
608
646
|
}
|
|
609
647
|
}, {
|
|
610
|
-
|
|
648
|
+
appearance: 'outlined',
|
|
611
649
|
intent: 'success',
|
|
612
650
|
class: {
|
|
613
651
|
base: ['data-is-active:border-success', 'data-is-active:text-success']
|
|
614
652
|
}
|
|
615
653
|
}, {
|
|
616
|
-
|
|
654
|
+
appearance: 'outlined',
|
|
617
655
|
intent: 'warning',
|
|
618
656
|
class: {
|
|
619
657
|
base: ['data-is-active:border-warning', 'data-is-active:text-warning']
|
|
620
658
|
}
|
|
621
659
|
}, {
|
|
622
|
-
|
|
660
|
+
appearance: 'outlined',
|
|
623
661
|
intent: 'danger',
|
|
624
662
|
class: {
|
|
625
663
|
base: ['data-is-active:border-danger', 'data-is-active:text-danger']
|
|
626
664
|
}
|
|
627
665
|
},
|
|
628
|
-
//
|
|
666
|
+
// appearance: faded
|
|
629
667
|
{
|
|
630
|
-
|
|
668
|
+
appearance: 'faded',
|
|
631
669
|
intent: 'default',
|
|
632
670
|
class: {
|
|
633
671
|
base: ['data-is-active:bg-default-400/20', 'data-is-active:border-default-700', 'data-is-active:text-default-700']
|
|
634
672
|
}
|
|
635
673
|
}, {
|
|
636
|
-
|
|
674
|
+
appearance: 'faded',
|
|
637
675
|
intent: 'primary',
|
|
638
676
|
class: {
|
|
639
677
|
base: ['data-is-active:bg-primary-300/20', 'data-is-active:border-primary', 'data-is-active:text-primary']
|
|
640
678
|
}
|
|
641
679
|
}, {
|
|
642
|
-
|
|
680
|
+
appearance: 'faded',
|
|
643
681
|
intent: 'success',
|
|
644
682
|
class: {
|
|
645
683
|
base: ['data-is-active:bg-success-300/20', 'data-is-active:border-success', 'data-is-active:text-success']
|
|
646
684
|
}
|
|
647
685
|
}, {
|
|
648
|
-
|
|
686
|
+
appearance: 'faded',
|
|
649
687
|
intent: 'warning',
|
|
650
688
|
class: {
|
|
651
689
|
base: ['data-is-active:bg-warning-300/20', 'data-is-active:border-warning', 'data-is-active:text-warning']
|
|
652
690
|
}
|
|
653
691
|
}, {
|
|
654
|
-
|
|
692
|
+
appearance: 'faded',
|
|
655
693
|
intent: 'danger',
|
|
656
694
|
class: {
|
|
657
695
|
base: ['data-is-active:bg-danger-300/20', 'data-is-active:border-danger', 'data-is-active:text-danger']
|
|
@@ -670,7 +708,8 @@ const popover = tv({
|
|
|
670
708
|
sm: 'w-40',
|
|
671
709
|
md: 'w-64',
|
|
672
710
|
lg: 'w-96',
|
|
673
|
-
xl: 'w-[34rem]'
|
|
711
|
+
xl: 'w-[34rem]',
|
|
712
|
+
trigger: 'w-[var(--trigger-width)]'
|
|
674
713
|
}
|
|
675
714
|
},
|
|
676
715
|
defaultVariants: {
|
|
@@ -732,14 +771,14 @@ const notificationsContainer = tv({
|
|
|
732
771
|
}
|
|
733
772
|
});
|
|
734
773
|
|
|
735
|
-
const btn = 'transition transition-200
|
|
774
|
+
const btn = ['transition transition-200', ...focusVisibleRing];
|
|
736
775
|
const notificationCard = tv({
|
|
737
776
|
slots: {
|
|
738
777
|
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',
|
|
739
778
|
message: 'grow',
|
|
740
779
|
customActions: 'flex flex-nowrap',
|
|
741
|
-
customActionButton: btn
|
|
742
|
-
closeButton: btn
|
|
780
|
+
customActionButton: [...btn, 'first:ml-4 last:-mr-2 font-semibold py-1 px-2 rounded'],
|
|
781
|
+
closeButton: [...btn, 'inline-block p-2 ml-2 -mr-2 rounded-full']
|
|
743
782
|
},
|
|
744
783
|
variants: {
|
|
745
784
|
appearance: {
|
|
@@ -871,7 +910,7 @@ const modal = tv({
|
|
|
871
910
|
});
|
|
872
911
|
const drawer = tv({
|
|
873
912
|
slots: {
|
|
874
|
-
base: 'flex flex-col absolute text-content1-foreground bg-content1 w-full h-full shadow',
|
|
913
|
+
base: 'flex flex-col absolute text-content1-foreground bg-content1 w-full h-full shadow outline-none',
|
|
875
914
|
closeButton: 'absolute top-2 right-2 dark:hover:bg-content2',
|
|
876
915
|
header: 'font-bold text-xl p-4 rounded-tl rounded-tr',
|
|
877
916
|
body: 'p-4 grow overflow-y-auto',
|
|
@@ -1177,7 +1216,7 @@ const textarea = tv({
|
|
|
1177
1216
|
const checkboxRadioBase = tv({
|
|
1178
1217
|
slots: {
|
|
1179
1218
|
base: ['max-w-fit flex items-center justify-start'],
|
|
1180
|
-
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'],
|
|
1219
|
+
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],
|
|
1181
1220
|
labelContainer: ['flex flex-col ml-2'],
|
|
1182
1221
|
label: 'font-normal pb-0'
|
|
1183
1222
|
},
|
|
@@ -1269,7 +1308,9 @@ const select = tv({
|
|
|
1269
1308
|
placeholder: 'text-default-400',
|
|
1270
1309
|
listbox: 'scroll-py-6 max-h-64',
|
|
1271
1310
|
icon: 'w-5 h-5',
|
|
1272
|
-
clearButton: 'pointer-events-auto'
|
|
1311
|
+
clearButton: 'pointer-events-auto',
|
|
1312
|
+
input: '[&:is(button)]:cursor-default',
|
|
1313
|
+
emptyContent: 'p-2'
|
|
1273
1314
|
},
|
|
1274
1315
|
variants: {
|
|
1275
1316
|
size: {
|
|
@@ -1296,6 +1337,70 @@ const nativeSelect = tv({
|
|
|
1296
1337
|
}
|
|
1297
1338
|
}
|
|
1298
1339
|
});
|
|
1340
|
+
const switchInput = tv({
|
|
1341
|
+
slots: {
|
|
1342
|
+
base: 'group relative max-w-fit inline-flex items-center justify-start',
|
|
1343
|
+
labelContainer: 'flex flex-col ml-2',
|
|
1344
|
+
label: 'font-normal pb-0',
|
|
1345
|
+
wrapper: ['px-1', 'relative', 'inline-flex', 'items-center', 'justify-start', 'flex-shrink-0', 'overflow-hidden', 'bg-default-300', 'rounded-full', 'cursor-pointer touch-none tap-highlight-transparent select-none', 'transition-background', ...focusVisibleWithinRing],
|
|
1346
|
+
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'],
|
|
1347
|
+
thumb: ['z-10', 'flex', 'items-center', 'justify-center', 'bg-white', 'shadow-small', 'rounded-full', 'origin-right', 'transition-all', 'pointer-events-none', 'text-black'],
|
|
1348
|
+
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'],
|
|
1349
|
+
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']
|
|
1350
|
+
},
|
|
1351
|
+
variants: {
|
|
1352
|
+
isDisabled: {
|
|
1353
|
+
true: {
|
|
1354
|
+
wrapper: 'opacity-disabled pointer-events-none'
|
|
1355
|
+
}
|
|
1356
|
+
},
|
|
1357
|
+
size: {
|
|
1358
|
+
sm: {
|
|
1359
|
+
wrapper: 'w-6 h-3 px-[2px]',
|
|
1360
|
+
thumb: ['w-2 h-2 text-xs', 'group-data-[selected=true]:ms-3'],
|
|
1361
|
+
endContent: 'text-xs',
|
|
1362
|
+
startContent: 'text-xs',
|
|
1363
|
+
label: 'text-small'
|
|
1364
|
+
},
|
|
1365
|
+
md: {
|
|
1366
|
+
wrapper: 'w-11 h-6',
|
|
1367
|
+
thumb: ['w-4 h-4 text-sm', 'group-data-[selected=true]:ms-5'],
|
|
1368
|
+
endContent: 'text-sm',
|
|
1369
|
+
startContent: 'text-sm',
|
|
1370
|
+
label: 'text-md'
|
|
1371
|
+
},
|
|
1372
|
+
lg: {
|
|
1373
|
+
wrapper: 'w-12 h-7',
|
|
1374
|
+
thumb: ['w-5 h-5 text-medium', 'group-data-[selected=true]:ms-5'],
|
|
1375
|
+
endContent: 'text-md',
|
|
1376
|
+
startContent: 'text-md',
|
|
1377
|
+
label: 'text-lg'
|
|
1378
|
+
}
|
|
1379
|
+
},
|
|
1380
|
+
intent: {
|
|
1381
|
+
default: {
|
|
1382
|
+
wrapper: ['group-data-[selected=true]:bg-default-400', 'group-data-[selected=true]:text-default-foreground']
|
|
1383
|
+
},
|
|
1384
|
+
primary: {
|
|
1385
|
+
wrapper: ['group-data-[selected=true]:bg-primary', 'group-data-[selected=true]:text-primary-foreground']
|
|
1386
|
+
},
|
|
1387
|
+
success: {
|
|
1388
|
+
wrapper: ['group-data-[selected=true]:bg-success', 'group-data-[selected=true]:text-success-foreground']
|
|
1389
|
+
},
|
|
1390
|
+
warning: {
|
|
1391
|
+
wrapper: ['group-data-[selected=true]:bg-warning', 'group-data-[selected=true]:text-warning-foreground']
|
|
1392
|
+
},
|
|
1393
|
+
danger: {
|
|
1394
|
+
wrapper: ['group-data-[selected=true]:bg-danger', 'data-[selected=true]:text-danger-foreground']
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
},
|
|
1398
|
+
defaultVariants: {
|
|
1399
|
+
size: 'md',
|
|
1400
|
+
intent: 'primary',
|
|
1401
|
+
isDisabled: false
|
|
1402
|
+
}
|
|
1403
|
+
});
|
|
1299
1404
|
|
|
1300
1405
|
const base = tv({
|
|
1301
1406
|
slots: {
|
|
@@ -1416,5 +1521,5 @@ const formSelect = tv({
|
|
|
1416
1521
|
}
|
|
1417
1522
|
});
|
|
1418
1523
|
|
|
1419
|
-
export {
|
|
1420
|
-
//# sourceMappingURL=forms-legacy-
|
|
1524
|
+
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, textarea as M, toggleButton as N, twMerge as O, 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 };
|
|
1525
|
+
//# sourceMappingURL=forms-legacy-BfjJExaO.js.map
|