@nextui-org/theme 2.2.10 → 2.3.0-beta.0
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/dist/{chunk-LSQXJEPE.mjs → chunk-2ODFPLXN.mjs} +22 -22
- package/dist/{chunk-BOVVTMHS.mjs → chunk-2TAKWWRG.mjs} +5 -5
- package/dist/chunk-3XDFZGUJ.mjs +216 -0
- package/dist/{chunk-3XVMTUU7.mjs → chunk-46U6G7UJ.mjs} +2 -2
- package/dist/{chunk-MP2JYSMR.mjs → chunk-5VB7JNVX.mjs} +2 -2
- package/dist/{chunk-JBKBSMXM.mjs → chunk-7IYRK3EV.mjs} +1 -1
- package/dist/{chunk-T2VR4T5R.mjs → chunk-AKXXHKTO.mjs} +1 -1
- package/dist/{chunk-EF6G67MF.mjs → chunk-AN5I7NTT.mjs} +1 -1
- package/dist/{chunk-KPVV2V7V.mjs → chunk-AUN4SP2F.mjs} +1 -1
- package/dist/{chunk-A2DU46QS.mjs → chunk-AXSF7SRE.mjs} +1 -1
- package/dist/{chunk-V4SD44VK.mjs → chunk-BWPOLXFL.mjs} +1 -1
- package/dist/{chunk-AXXUQWWC.mjs → chunk-DBPAK7QN.mjs} +1 -1
- package/dist/{chunk-63NMFZTF.mjs → chunk-EGGHND3C.mjs} +2 -2
- package/dist/chunk-EP7KPCL3.mjs +62 -0
- package/dist/{chunk-GQDFLFNG.mjs → chunk-EQPJSVMB.mjs} +1 -1
- package/dist/{chunk-OUNBTYJ7.mjs → chunk-FB2NWPDB.mjs} +12 -12
- package/dist/{chunk-WJIRIXV4.mjs → chunk-FJGKW3ZE.mjs} +29 -38
- package/dist/{chunk-BYWORP66.mjs → chunk-GIXI35A3.mjs} +8 -1
- package/dist/{chunk-BJ6IKX32.mjs → chunk-GMZHMFEU.mjs} +1 -1
- package/dist/{chunk-BZCSOIUI.mjs → chunk-GQT3YUX3.mjs} +5 -5
- package/dist/{chunk-XL6AWNU3.mjs → chunk-HHK47K4W.mjs} +2 -2
- package/dist/{chunk-MVG7GLBD.mjs → chunk-HIFLYEAM.mjs} +1 -1
- package/dist/{chunk-XEPPBQPJ.mjs → chunk-HNRFZTEX.mjs} +19 -19
- package/dist/{chunk-FE2UYWMQ.mjs → chunk-HZ7J23VD.mjs} +37 -44
- package/dist/{chunk-C3SML4G4.mjs → chunk-IAHJC7C4.mjs} +1 -1
- package/dist/{chunk-2KK3SUMT.mjs → chunk-IZOPFGDE.mjs} +37 -2
- package/dist/{chunk-PWJWH4MD.mjs → chunk-JE6SPRGQ.mjs} +2 -2
- package/dist/{chunk-7YPXCOW5.mjs → chunk-K6KPB2U5.mjs} +1 -1
- package/dist/{chunk-42JWJWWX.mjs → chunk-KTTXIYK2.mjs} +2 -2
- package/dist/{chunk-C43Y2OOL.mjs → chunk-KZ2I3V4D.mjs} +2 -2
- package/dist/{chunk-JFWA3DGK.mjs → chunk-LCMN7HGG.mjs} +19 -13
- package/dist/{chunk-4MIBATA4.mjs → chunk-LVAEW6WR.mjs} +15 -15
- package/dist/{chunk-R27WO3A6.mjs → chunk-LWG2RR7B.mjs} +2 -2
- package/dist/{chunk-P73E5YV7.mjs → chunk-N67DL6BW.mjs} +2 -4
- package/dist/{chunk-UDSOWFZE.mjs → chunk-OAHW4NON.mjs} +1 -1
- package/dist/{chunk-TSTU52NB.mjs → chunk-QFGVVQRM.mjs} +5 -5
- package/dist/{chunk-XAYP4CR3.mjs → chunk-SC2SILVU.mjs} +2 -2
- package/dist/{chunk-I33PMOA3.mjs → chunk-TNFNBUPA.mjs} +48 -47
- package/dist/{chunk-U6G6SZ26.mjs → chunk-TOQXZATI.mjs} +1 -1
- package/dist/{chunk-3QYYLFUC.mjs → chunk-UQZHSMVI.mjs} +1 -1
- package/dist/{chunk-N2KXC5ZE.mjs → chunk-UWE6H66T.mjs} +1 -1
- package/dist/{chunk-KPI62GDB.mjs → chunk-VKSIQ7SR.mjs} +1 -1
- package/dist/{chunk-F4AOWB64.mjs → chunk-VX7HAPUO.mjs} +1 -1
- package/dist/{chunk-DI2L75XK.mjs → chunk-W5UU3F46.mjs} +5 -0
- package/dist/{chunk-QV3ALCMB.mjs → chunk-XQI5RD6S.mjs} +2 -2
- package/dist/{chunk-3LD7T42T.mjs → chunk-XZMJGJQX.mjs} +4 -4
- package/dist/{chunk-VLE2FQQR.mjs → chunk-YLHKOIZS.mjs} +1 -1
- package/dist/{chunk-XXQSA25O.mjs → chunk-YRDDKYYT.mjs} +6 -3
- package/dist/components/accordion.js +8 -1
- package/dist/components/accordion.mjs +5 -5
- package/dist/components/alert.d.ts +344 -0
- package/dist/components/alert.js +355 -0
- package/dist/components/alert.mjs +12 -0
- package/dist/components/autocomplete.js +12 -5
- package/dist/components/autocomplete.mjs +3 -3
- package/dist/components/avatar.js +13 -6
- package/dist/components/avatar.mjs +5 -5
- package/dist/components/badge.js +13 -6
- package/dist/components/badge.mjs +5 -5
- package/dist/components/breadcrumbs.js +9 -2
- package/dist/components/breadcrumbs.mjs +5 -5
- package/dist/components/button.js +17 -7
- package/dist/components/button.mjs +5 -5
- package/dist/components/calendar.js +8 -1
- package/dist/components/calendar.mjs +5 -5
- package/dist/components/card.js +8 -1
- package/dist/components/card.mjs +5 -5
- package/dist/components/checkbox.js +19 -12
- package/dist/components/checkbox.mjs +5 -5
- package/dist/components/chip.js +13 -6
- package/dist/components/chip.mjs +5 -5
- package/dist/components/circular-progress.js +8 -1
- package/dist/components/circular-progress.mjs +3 -3
- package/dist/components/code.js +13 -6
- package/dist/components/code.mjs +5 -5
- package/dist/components/date-input.js +26 -19
- package/dist/components/date-input.mjs +3 -3
- package/dist/components/date-picker.js +12 -5
- package/dist/components/date-picker.mjs +3 -3
- package/dist/components/divider.js +8 -1
- package/dist/components/divider.mjs +3 -3
- package/dist/components/drawer.d.ts +358 -0
- package/dist/components/drawer.js +130 -0
- package/dist/components/drawer.mjs +8 -0
- package/dist/components/drip.js +8 -1
- package/dist/components/drip.mjs +3 -3
- package/dist/components/dropdown.js +8 -1
- package/dist/components/dropdown.mjs +5 -5
- package/dist/components/image.js +8 -1
- package/dist/components/image.mjs +3 -3
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +503 -210
- package/dist/components/index.mjs +68 -60
- package/dist/components/input.d.ts +7 -0
- package/dist/components/input.js +55 -47
- package/dist/components/input.mjs +5 -5
- package/dist/components/kbd.js +8 -1
- package/dist/components/kbd.mjs +3 -3
- package/dist/components/link.js +8 -1
- package/dist/components/link.mjs +5 -5
- package/dist/components/listbox.js +8 -1
- package/dist/components/listbox.mjs +5 -5
- package/dist/components/menu.js +8 -1
- package/dist/components/menu.mjs +5 -5
- package/dist/components/modal.js +9 -4
- package/dist/components/modal.mjs +5 -5
- package/dist/components/navbar.js +8 -1
- package/dist/components/navbar.mjs +5 -5
- package/dist/components/pagination.js +13 -6
- package/dist/components/pagination.mjs +5 -5
- package/dist/components/popover.js +13 -6
- package/dist/components/popover.mjs +5 -5
- package/dist/components/progress.js +44 -2
- package/dist/components/progress.mjs +3 -3
- package/dist/components/radio.js +22 -15
- package/dist/components/radio.mjs +5 -5
- package/dist/components/scroll-shadow.js +8 -1
- package/dist/components/scroll-shadow.mjs +3 -3
- package/dist/components/select.d.ts +21 -0
- package/dist/components/select.js +44 -44
- package/dist/components/select.mjs +5 -5
- package/dist/components/skeleton.js +8 -1
- package/dist/components/skeleton.mjs +3 -3
- package/dist/components/slider.js +8 -1
- package/dist/components/slider.mjs +5 -5
- package/dist/components/snippet.js +13 -6
- package/dist/components/snippet.mjs +5 -5
- package/dist/components/spacer.js +8 -1
- package/dist/components/spacer.mjs +3 -3
- package/dist/components/spinner.js +8 -1
- package/dist/components/spinner.mjs +3 -3
- package/dist/components/table.js +29 -22
- package/dist/components/table.mjs +5 -5
- package/dist/components/tabs.js +13 -6
- package/dist/components/tabs.mjs +5 -5
- package/dist/components/toggle.js +36 -38
- package/dist/components/toggle.mjs +5 -5
- package/dist/components/user.d.ts +26 -27
- package/dist/components/user.js +8 -1
- package/dist/components/user.mjs +5 -5
- package/dist/index.d.ts +2 -1
- package/dist/index.js +528 -224
- package/dist/index.mjs +74 -66
- package/dist/plugin.js +24 -13
- package/dist/plugin.mjs +4 -4
- package/dist/utilities/custom.d.ts +5 -0
- package/dist/utilities/custom.js +5 -0
- package/dist/utilities/custom.mjs +1 -1
- package/dist/utilities/index.d.ts +5 -0
- package/dist/utilities/index.js +5 -0
- package/dist/utilities/index.mjs +3 -3
- package/dist/utils/cn.js +9 -2
- package/dist/utils/cn.mjs +2 -2
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.js +14 -7
- package/dist/utils/index.mjs +5 -5
- package/dist/utils/tv.js +8 -1
- package/dist/utils/tv.mjs +2 -2
- package/dist/utils/tw-merge-config.d.ts +17 -3
- package/dist/utils/tw-merge-config.js +8 -1
- package/dist/utils/tw-merge-config.mjs +1 -1
- package/dist/utils/variants.js +5 -5
- package/dist/utils/variants.mjs +1 -1
- package/package.json +3 -12
- /package/dist/{chunk-UVXYPGDZ.mjs → chunk-MA4DKK64.mjs} +0 -0
|
@@ -39,7 +39,14 @@ var twMergeConfig = {
|
|
|
39
39
|
classGroups: {
|
|
40
40
|
shadow: [{ shadow: COMMON_UNITS }],
|
|
41
41
|
"font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
|
|
42
|
-
"bg-image": [
|
|
42
|
+
"bg-image": [
|
|
43
|
+
"bg-stripe-gradient-default",
|
|
44
|
+
"bg-stripe-gradient-primary",
|
|
45
|
+
"bg-stripe-gradient-secondary",
|
|
46
|
+
"bg-stripe-gradient-success",
|
|
47
|
+
"bg-stripe-gradient-warning",
|
|
48
|
+
"bg-stripe-gradient-danger"
|
|
49
|
+
]
|
|
43
50
|
}
|
|
44
51
|
};
|
|
45
52
|
|
|
@@ -66,11 +73,11 @@ var tv = (options, config) => {
|
|
|
66
73
|
// src/components/date-input.ts
|
|
67
74
|
var dateInput = tv({
|
|
68
75
|
slots: {
|
|
69
|
-
base: "group
|
|
76
|
+
base: "group flex flex-col",
|
|
70
77
|
label: [
|
|
71
78
|
"block subpixel-antialiased text-small text-default-600",
|
|
72
|
-
"group-data-[required=true]
|
|
73
|
-
"group-data-[invalid=true]
|
|
79
|
+
"group-data-[required=true]:after:content-['*'] group-data-[required=true]:after:text-danger group-data-[required=true]:after:ml-0.5",
|
|
80
|
+
"group-data-[invalid=true]:text-danger"
|
|
74
81
|
],
|
|
75
82
|
inputWrapper: [
|
|
76
83
|
"relative px-3 gap-3 w-full inline-flex flex-row items-center",
|
|
@@ -79,10 +86,10 @@ var dateInput = tv({
|
|
|
79
86
|
input: "flex h-full gap-x-0.5 w-full font-normal",
|
|
80
87
|
innerWrapper: [
|
|
81
88
|
"flex items-center text-default-400 w-full gap-x-2 h-6",
|
|
82
|
-
"group-data-[invalid=true]
|
|
89
|
+
"group-data-[invalid=true]:text-danger"
|
|
83
90
|
],
|
|
84
91
|
segment: [
|
|
85
|
-
"group
|
|
92
|
+
"group first:-ml-0.5 [&:not(:first-child)]:-ml-1 px-0.5 my-auto box-content tabular-nums text-start",
|
|
86
93
|
"inline-block outline-none focus:shadow-sm rounded-md",
|
|
87
94
|
"text-foreground-500 data-[editable=true]:text-foreground",
|
|
88
95
|
"data-[editable=true]:data-[placeholder=true]:text-foreground-500",
|
|
@@ -90,7 +97,7 @@ var dateInput = tv({
|
|
|
90
97
|
"data-[invalid=true]:focus:bg-danger-400/50 dark:data-[invalid=true]:focus:bg-danger-400/20",
|
|
91
98
|
"data-[invalid=true]:data-[editable=true]:focus:text-danger"
|
|
92
99
|
],
|
|
93
|
-
helperWrapper: "hidden group-data-[has-helper=true]
|
|
100
|
+
helperWrapper: "hidden group-data-[has-helper=true]:flex p-1 relative flex-col gap-1.5",
|
|
94
101
|
description: "text-tiny text-foreground-400",
|
|
95
102
|
errorMessage: "text-tiny text-danger"
|
|
96
103
|
},
|
|
@@ -101,9 +108,9 @@ var dateInput = tv({
|
|
|
101
108
|
"bg-default-100",
|
|
102
109
|
"hover:bg-default-200",
|
|
103
110
|
"focus-within:hover:bg-default-100",
|
|
104
|
-
"group-data-[invalid=true]
|
|
105
|
-
"group-data-[invalid=true]
|
|
106
|
-
"group-data-[invalid=true]
|
|
111
|
+
"group-data-[invalid=true]:bg-danger-50",
|
|
112
|
+
"group-data-[invalid=true]:hover:bg-danger-100",
|
|
113
|
+
"group-data-[invalid=true]:focus-within:hover:bg-danger-50"
|
|
107
114
|
]
|
|
108
115
|
},
|
|
109
116
|
faded: {
|
|
@@ -112,9 +119,9 @@ var dateInput = tv({
|
|
|
112
119
|
"border-medium",
|
|
113
120
|
"border-default-200",
|
|
114
121
|
"hover:border-default-400",
|
|
115
|
-
"group-data-[invalid=true]
|
|
116
|
-
"group-data-[invalid=true]
|
|
117
|
-
"group-data-[invalid=true]
|
|
122
|
+
"group-data-[invalid=true]:bg-danger-50",
|
|
123
|
+
"group-data-[invalid=true]:hover:bg-danger-100",
|
|
124
|
+
"group-data-[invalid=true]:focus-within:hover:bg-danger-50"
|
|
118
125
|
]
|
|
119
126
|
},
|
|
120
127
|
bordered: {
|
|
@@ -124,9 +131,9 @@ var dateInput = tv({
|
|
|
124
131
|
"hover:border-default-400",
|
|
125
132
|
"focus-within:border-default-foreground",
|
|
126
133
|
"focus-within:hover:border-default-foreground",
|
|
127
|
-
"group-data-[invalid=true]
|
|
128
|
-
"group-data-[invalid=true]
|
|
129
|
-
"group-data-[invalid=true]
|
|
134
|
+
"group-data-[invalid=true]:border-danger",
|
|
135
|
+
"group-data-[invalid=true]:hover:border-danger",
|
|
136
|
+
"group-data-[invalid=true]:focus-within:hover:border-danger"
|
|
130
137
|
]
|
|
131
138
|
},
|
|
132
139
|
underlined: {
|
|
@@ -151,7 +158,7 @@ var dateInput = tv({
|
|
|
151
158
|
"after:-bottom-[2px]",
|
|
152
159
|
"after:h-[2px]",
|
|
153
160
|
"focus-within:after:w-full",
|
|
154
|
-
"group-data-[invalid=true]
|
|
161
|
+
"group-data-[invalid=true]:after:bg-danger"
|
|
155
162
|
]
|
|
156
163
|
}
|
|
157
164
|
},
|
|
@@ -212,13 +219,13 @@ var dateInput = tv({
|
|
|
212
219
|
outside: {
|
|
213
220
|
base: "flex flex-col data-[has-helper=true]:pb-[calc(theme(fontSize.tiny)_+8px)] gap-y-1.5",
|
|
214
221
|
label: "w-full text-foreground",
|
|
215
|
-
helperWrapper: "absolute top-[calc(100%_+_2px)]
|
|
222
|
+
helperWrapper: "absolute top-[calc(100%_+_2px)] start-0"
|
|
216
223
|
},
|
|
217
224
|
"outside-left": {
|
|
218
225
|
base: "flex-row items-center data-[has-helper=true]:pb-[calc(theme(fontSize.tiny)_+_8px)] gap-x-2 flex-nowrap",
|
|
219
226
|
label: "relative text-foreground",
|
|
220
227
|
inputWrapper: "relative flex-1",
|
|
221
|
-
helperWrapper: "absolute top-[calc(100%_+_2px)]
|
|
228
|
+
helperWrapper: "absolute top-[calc(100%_+_2px)] start-0"
|
|
222
229
|
},
|
|
223
230
|
inside: {
|
|
224
231
|
label: "w-full text-tiny cursor-text",
|
|
@@ -40,7 +40,14 @@ var twMergeConfig = {
|
|
|
40
40
|
classGroups: {
|
|
41
41
|
shadow: [{ shadow: COMMON_UNITS }],
|
|
42
42
|
"font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
|
|
43
|
-
"bg-image": [
|
|
43
|
+
"bg-image": [
|
|
44
|
+
"bg-stripe-gradient-default",
|
|
45
|
+
"bg-stripe-gradient-primary",
|
|
46
|
+
"bg-stripe-gradient-secondary",
|
|
47
|
+
"bg-stripe-gradient-success",
|
|
48
|
+
"bg-stripe-gradient-warning",
|
|
49
|
+
"bg-stripe-gradient-danger"
|
|
50
|
+
]
|
|
44
51
|
}
|
|
45
52
|
};
|
|
46
53
|
|
|
@@ -67,8 +74,8 @@ var tv = (options, config) => {
|
|
|
67
74
|
// src/components/date-picker.ts
|
|
68
75
|
var datePicker = tv({
|
|
69
76
|
slots: {
|
|
70
|
-
base: "group
|
|
71
|
-
selectorButton: "-
|
|
77
|
+
base: "group w-full",
|
|
78
|
+
selectorButton: "-mx-2 text-inherit",
|
|
72
79
|
selectorIcon: "text-lg text-inherit pointer-events-none flex-shrink-0",
|
|
73
80
|
popoverContent: "p-0 w-full",
|
|
74
81
|
calendar: "w-[calc(var(--visible-months)_*_var(--calendar-width))] shadow-none",
|
|
@@ -80,9 +87,9 @@ var datePicker = tv({
|
|
|
80
87
|
var dateRangePicker = tv({
|
|
81
88
|
extend: datePicker,
|
|
82
89
|
slots: {
|
|
83
|
-
calendar: "group
|
|
90
|
+
calendar: "group",
|
|
84
91
|
bottomContent: "flex flex-col gap-y-2",
|
|
85
|
-
timeInputWrapper: "flex flex-col group-data-[has-multiple-months=true]
|
|
92
|
+
timeInputWrapper: "flex flex-col group-data-[has-multiple-months=true]:flex-row",
|
|
86
93
|
separator: "-mx-1 text-inherit"
|
|
87
94
|
}
|
|
88
95
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
datePicker,
|
|
3
3
|
dateRangePicker
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-QFGVVQRM.mjs";
|
|
5
|
+
import "../chunk-UWE6H66T.mjs";
|
|
6
|
+
import "../chunk-GIXI35A3.mjs";
|
|
7
7
|
export {
|
|
8
8
|
datePicker,
|
|
9
9
|
dateRangePicker
|
|
@@ -39,7 +39,14 @@ var twMergeConfig = {
|
|
|
39
39
|
classGroups: {
|
|
40
40
|
shadow: [{ shadow: COMMON_UNITS }],
|
|
41
41
|
"font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
|
|
42
|
-
"bg-image": [
|
|
42
|
+
"bg-image": [
|
|
43
|
+
"bg-stripe-gradient-default",
|
|
44
|
+
"bg-stripe-gradient-primary",
|
|
45
|
+
"bg-stripe-gradient-secondary",
|
|
46
|
+
"bg-stripe-gradient-success",
|
|
47
|
+
"bg-stripe-gradient-warning",
|
|
48
|
+
"bg-stripe-gradient-danger"
|
|
49
|
+
]
|
|
43
50
|
}
|
|
44
51
|
};
|
|
45
52
|
|
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Modal **Tailwind Variants** component
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```js
|
|
10
|
+
* const {base} = drawer({...})
|
|
11
|
+
*
|
|
12
|
+
* <div>
|
|
13
|
+
* <button>Open Drawer</button>
|
|
14
|
+
* <div className={base()}>
|
|
15
|
+
* Drawer Content
|
|
16
|
+
* </div>
|
|
17
|
+
* </div>
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
declare const drawer: tailwind_variants.TVReturnType<{
|
|
21
|
+
size: {
|
|
22
|
+
xs: {
|
|
23
|
+
base: string;
|
|
24
|
+
};
|
|
25
|
+
sm: {
|
|
26
|
+
base: string;
|
|
27
|
+
};
|
|
28
|
+
md: {
|
|
29
|
+
base: string;
|
|
30
|
+
};
|
|
31
|
+
lg: {
|
|
32
|
+
base: string;
|
|
33
|
+
};
|
|
34
|
+
xl: {
|
|
35
|
+
base: string;
|
|
36
|
+
};
|
|
37
|
+
"2xl": {
|
|
38
|
+
base: string;
|
|
39
|
+
};
|
|
40
|
+
"3xl": {
|
|
41
|
+
base: string;
|
|
42
|
+
};
|
|
43
|
+
"4xl": {
|
|
44
|
+
base: string;
|
|
45
|
+
};
|
|
46
|
+
"5xl": {
|
|
47
|
+
base: string;
|
|
48
|
+
};
|
|
49
|
+
full: {
|
|
50
|
+
base: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
placement: {
|
|
54
|
+
top: {
|
|
55
|
+
base: string;
|
|
56
|
+
};
|
|
57
|
+
right: {
|
|
58
|
+
base: string;
|
|
59
|
+
};
|
|
60
|
+
bottom: {
|
|
61
|
+
base: string;
|
|
62
|
+
};
|
|
63
|
+
left: {
|
|
64
|
+
base: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
}, {
|
|
68
|
+
base: string[];
|
|
69
|
+
}, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
70
|
+
size: {
|
|
71
|
+
xs: {
|
|
72
|
+
base: string;
|
|
73
|
+
};
|
|
74
|
+
sm: {
|
|
75
|
+
base: string;
|
|
76
|
+
};
|
|
77
|
+
md: {
|
|
78
|
+
base: string;
|
|
79
|
+
};
|
|
80
|
+
lg: {
|
|
81
|
+
base: string;
|
|
82
|
+
};
|
|
83
|
+
xl: {
|
|
84
|
+
base: string;
|
|
85
|
+
};
|
|
86
|
+
"2xl": {
|
|
87
|
+
base: string;
|
|
88
|
+
};
|
|
89
|
+
"3xl": {
|
|
90
|
+
base: string;
|
|
91
|
+
};
|
|
92
|
+
"4xl": {
|
|
93
|
+
base: string;
|
|
94
|
+
};
|
|
95
|
+
"5xl": {
|
|
96
|
+
base: string;
|
|
97
|
+
};
|
|
98
|
+
full: {
|
|
99
|
+
base: string;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
placement: {
|
|
103
|
+
top: {
|
|
104
|
+
base: string;
|
|
105
|
+
};
|
|
106
|
+
right: {
|
|
107
|
+
base: string;
|
|
108
|
+
};
|
|
109
|
+
bottom: {
|
|
110
|
+
base: string;
|
|
111
|
+
};
|
|
112
|
+
left: {
|
|
113
|
+
base: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
}, {
|
|
117
|
+
size: {
|
|
118
|
+
xs: {
|
|
119
|
+
base: string;
|
|
120
|
+
};
|
|
121
|
+
sm: {
|
|
122
|
+
base: string;
|
|
123
|
+
};
|
|
124
|
+
md: {
|
|
125
|
+
base: string;
|
|
126
|
+
};
|
|
127
|
+
lg: {
|
|
128
|
+
base: string;
|
|
129
|
+
};
|
|
130
|
+
xl: {
|
|
131
|
+
base: string;
|
|
132
|
+
};
|
|
133
|
+
"2xl": {
|
|
134
|
+
base: string;
|
|
135
|
+
};
|
|
136
|
+
"3xl": {
|
|
137
|
+
base: string;
|
|
138
|
+
};
|
|
139
|
+
"4xl": {
|
|
140
|
+
base: string;
|
|
141
|
+
};
|
|
142
|
+
"5xl": {
|
|
143
|
+
base: string;
|
|
144
|
+
};
|
|
145
|
+
full: {
|
|
146
|
+
base: string;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
placement: {
|
|
150
|
+
top: {
|
|
151
|
+
base: string;
|
|
152
|
+
};
|
|
153
|
+
right: {
|
|
154
|
+
base: string;
|
|
155
|
+
};
|
|
156
|
+
bottom: {
|
|
157
|
+
base: string;
|
|
158
|
+
};
|
|
159
|
+
left: {
|
|
160
|
+
base: string;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
}>, {
|
|
164
|
+
size: {
|
|
165
|
+
xs: {
|
|
166
|
+
base: string;
|
|
167
|
+
};
|
|
168
|
+
sm: {
|
|
169
|
+
base: string;
|
|
170
|
+
};
|
|
171
|
+
md: {
|
|
172
|
+
base: string;
|
|
173
|
+
};
|
|
174
|
+
lg: {
|
|
175
|
+
base: string;
|
|
176
|
+
};
|
|
177
|
+
xl: {
|
|
178
|
+
base: string;
|
|
179
|
+
};
|
|
180
|
+
"2xl": {
|
|
181
|
+
base: string;
|
|
182
|
+
};
|
|
183
|
+
"3xl": {
|
|
184
|
+
base: string;
|
|
185
|
+
};
|
|
186
|
+
"4xl": {
|
|
187
|
+
base: string;
|
|
188
|
+
};
|
|
189
|
+
"5xl": {
|
|
190
|
+
base: string;
|
|
191
|
+
};
|
|
192
|
+
full: {
|
|
193
|
+
base: string;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
placement: {
|
|
197
|
+
top: {
|
|
198
|
+
base: string;
|
|
199
|
+
};
|
|
200
|
+
right: {
|
|
201
|
+
base: string;
|
|
202
|
+
};
|
|
203
|
+
bottom: {
|
|
204
|
+
base: string;
|
|
205
|
+
};
|
|
206
|
+
left: {
|
|
207
|
+
base: string;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
}, {
|
|
211
|
+
base: string[];
|
|
212
|
+
}, tailwind_variants.TVReturnType<{
|
|
213
|
+
size: {
|
|
214
|
+
xs: {
|
|
215
|
+
base: string;
|
|
216
|
+
};
|
|
217
|
+
sm: {
|
|
218
|
+
base: string;
|
|
219
|
+
};
|
|
220
|
+
md: {
|
|
221
|
+
base: string;
|
|
222
|
+
};
|
|
223
|
+
lg: {
|
|
224
|
+
base: string;
|
|
225
|
+
};
|
|
226
|
+
xl: {
|
|
227
|
+
base: string;
|
|
228
|
+
};
|
|
229
|
+
"2xl": {
|
|
230
|
+
base: string;
|
|
231
|
+
};
|
|
232
|
+
"3xl": {
|
|
233
|
+
base: string;
|
|
234
|
+
};
|
|
235
|
+
"4xl": {
|
|
236
|
+
base: string;
|
|
237
|
+
};
|
|
238
|
+
"5xl": {
|
|
239
|
+
base: string;
|
|
240
|
+
};
|
|
241
|
+
full: {
|
|
242
|
+
base: string;
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
placement: {
|
|
246
|
+
top: {
|
|
247
|
+
base: string;
|
|
248
|
+
};
|
|
249
|
+
right: {
|
|
250
|
+
base: string;
|
|
251
|
+
};
|
|
252
|
+
bottom: {
|
|
253
|
+
base: string;
|
|
254
|
+
};
|
|
255
|
+
left: {
|
|
256
|
+
base: string;
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
}, {
|
|
260
|
+
base: string[];
|
|
261
|
+
}, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
262
|
+
size: {
|
|
263
|
+
xs: {
|
|
264
|
+
base: string;
|
|
265
|
+
};
|
|
266
|
+
sm: {
|
|
267
|
+
base: string;
|
|
268
|
+
};
|
|
269
|
+
md: {
|
|
270
|
+
base: string;
|
|
271
|
+
};
|
|
272
|
+
lg: {
|
|
273
|
+
base: string;
|
|
274
|
+
};
|
|
275
|
+
xl: {
|
|
276
|
+
base: string;
|
|
277
|
+
};
|
|
278
|
+
"2xl": {
|
|
279
|
+
base: string;
|
|
280
|
+
};
|
|
281
|
+
"3xl": {
|
|
282
|
+
base: string;
|
|
283
|
+
};
|
|
284
|
+
"4xl": {
|
|
285
|
+
base: string;
|
|
286
|
+
};
|
|
287
|
+
"5xl": {
|
|
288
|
+
base: string;
|
|
289
|
+
};
|
|
290
|
+
full: {
|
|
291
|
+
base: string;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
placement: {
|
|
295
|
+
top: {
|
|
296
|
+
base: string;
|
|
297
|
+
};
|
|
298
|
+
right: {
|
|
299
|
+
base: string;
|
|
300
|
+
};
|
|
301
|
+
bottom: {
|
|
302
|
+
base: string;
|
|
303
|
+
};
|
|
304
|
+
left: {
|
|
305
|
+
base: string;
|
|
306
|
+
};
|
|
307
|
+
};
|
|
308
|
+
}, {
|
|
309
|
+
size: {
|
|
310
|
+
xs: {
|
|
311
|
+
base: string;
|
|
312
|
+
};
|
|
313
|
+
sm: {
|
|
314
|
+
base: string;
|
|
315
|
+
};
|
|
316
|
+
md: {
|
|
317
|
+
base: string;
|
|
318
|
+
};
|
|
319
|
+
lg: {
|
|
320
|
+
base: string;
|
|
321
|
+
};
|
|
322
|
+
xl: {
|
|
323
|
+
base: string;
|
|
324
|
+
};
|
|
325
|
+
"2xl": {
|
|
326
|
+
base: string;
|
|
327
|
+
};
|
|
328
|
+
"3xl": {
|
|
329
|
+
base: string;
|
|
330
|
+
};
|
|
331
|
+
"4xl": {
|
|
332
|
+
base: string;
|
|
333
|
+
};
|
|
334
|
+
"5xl": {
|
|
335
|
+
base: string;
|
|
336
|
+
};
|
|
337
|
+
full: {
|
|
338
|
+
base: string;
|
|
339
|
+
};
|
|
340
|
+
};
|
|
341
|
+
placement: {
|
|
342
|
+
top: {
|
|
343
|
+
base: string;
|
|
344
|
+
};
|
|
345
|
+
right: {
|
|
346
|
+
base: string;
|
|
347
|
+
};
|
|
348
|
+
bottom: {
|
|
349
|
+
base: string;
|
|
350
|
+
};
|
|
351
|
+
left: {
|
|
352
|
+
base: string;
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
}>, unknown, unknown, undefined>>;
|
|
356
|
+
type DrawerVariants = VariantProps<typeof drawer>;
|
|
357
|
+
|
|
358
|
+
export { DrawerVariants, drawer };
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/components/drawer.ts
|
|
21
|
+
var drawer_exports = {};
|
|
22
|
+
__export(drawer_exports, {
|
|
23
|
+
drawer: () => drawer
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(drawer_exports);
|
|
26
|
+
|
|
27
|
+
// src/utils/tv.ts
|
|
28
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
29
|
+
|
|
30
|
+
// src/utils/tw-merge-config.ts
|
|
31
|
+
var COMMON_UNITS = ["small", "medium", "large"];
|
|
32
|
+
var twMergeConfig = {
|
|
33
|
+
theme: {
|
|
34
|
+
opacity: ["disabled"],
|
|
35
|
+
spacing: ["divider"],
|
|
36
|
+
borderWidth: COMMON_UNITS,
|
|
37
|
+
borderRadius: COMMON_UNITS
|
|
38
|
+
},
|
|
39
|
+
classGroups: {
|
|
40
|
+
shadow: [{ shadow: COMMON_UNITS }],
|
|
41
|
+
"font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
|
|
42
|
+
"bg-image": [
|
|
43
|
+
"bg-stripe-gradient-default",
|
|
44
|
+
"bg-stripe-gradient-primary",
|
|
45
|
+
"bg-stripe-gradient-secondary",
|
|
46
|
+
"bg-stripe-gradient-success",
|
|
47
|
+
"bg-stripe-gradient-warning",
|
|
48
|
+
"bg-stripe-gradient-danger"
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
// src/utils/tv.ts
|
|
54
|
+
var tv = (options, config) => {
|
|
55
|
+
var _a, _b, _c;
|
|
56
|
+
return (0, import_tailwind_variants.tv)(options, {
|
|
57
|
+
...config,
|
|
58
|
+
twMerge: (_a = config == null ? void 0 : config.twMerge) != null ? _a : true,
|
|
59
|
+
twMergeConfig: {
|
|
60
|
+
...config == null ? void 0 : config.twMergeConfig,
|
|
61
|
+
theme: {
|
|
62
|
+
...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
|
|
63
|
+
...twMergeConfig.theme
|
|
64
|
+
},
|
|
65
|
+
classGroups: {
|
|
66
|
+
...(_c = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _c.classGroups,
|
|
67
|
+
...twMergeConfig.classGroups
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
// src/components/drawer.ts
|
|
74
|
+
var drawer = tv({
|
|
75
|
+
slots: {
|
|
76
|
+
base: ["absolute", "m-0", "sm:m-0", "overflow-y-auto"]
|
|
77
|
+
},
|
|
78
|
+
variants: {
|
|
79
|
+
size: {
|
|
80
|
+
xs: {
|
|
81
|
+
base: "max-w-xs max-h-[20rem]"
|
|
82
|
+
},
|
|
83
|
+
sm: {
|
|
84
|
+
base: "max-w-sm max-h-[24rem]"
|
|
85
|
+
},
|
|
86
|
+
md: {
|
|
87
|
+
base: "max-w-md max-h-[28rem]"
|
|
88
|
+
},
|
|
89
|
+
lg: {
|
|
90
|
+
base: "max-w-lg max-h-[32rem]"
|
|
91
|
+
},
|
|
92
|
+
xl: {
|
|
93
|
+
base: "max-w-xl max-h-[36rem]"
|
|
94
|
+
},
|
|
95
|
+
"2xl": {
|
|
96
|
+
base: "max-w-2xl max-h-[42rem]"
|
|
97
|
+
},
|
|
98
|
+
"3xl": {
|
|
99
|
+
base: "max-w-3xl max-h-[48rem]"
|
|
100
|
+
},
|
|
101
|
+
"4xl": {
|
|
102
|
+
base: "max-w-4xl max-h-[56rem]"
|
|
103
|
+
},
|
|
104
|
+
"5xl": {
|
|
105
|
+
base: "max-w-5xl max-h-[64rem]"
|
|
106
|
+
},
|
|
107
|
+
full: {
|
|
108
|
+
base: "max-w-full max-h-full h-[100dvh] !rounded-none"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
placement: {
|
|
112
|
+
top: {
|
|
113
|
+
base: "inset-x-0 top-0 max-w-[none] rounded-t-none"
|
|
114
|
+
},
|
|
115
|
+
right: {
|
|
116
|
+
base: "inset-y-0 right-0 max-h-[none] rounded-r-none"
|
|
117
|
+
},
|
|
118
|
+
bottom: {
|
|
119
|
+
base: "inset-x-0 bottom-0 max-w-[none] rounded-b-none"
|
|
120
|
+
},
|
|
121
|
+
left: {
|
|
122
|
+
base: "inset-y-0 left-0 max-h-[none] rounded-l-none"
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
128
|
+
0 && (module.exports = {
|
|
129
|
+
drawer
|
|
130
|
+
});
|