@deepnoid/ui 0.1.223 → 1.0.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/.turbo/turbo-build.log +266 -251
- package/dist/{chunk-NTNF5T5I.mjs → chunk-23KGTXH2.mjs} +1 -1
- package/dist/{chunk-SX3JDFTH.mjs → chunk-2K3HZMC6.mjs} +9 -9
- package/dist/{chunk-ZFC5O2V3.mjs → chunk-3JKORA4G.mjs} +1 -1
- package/dist/{chunk-HFOHFBZH.mjs → chunk-3N442F6I.mjs} +2 -2
- package/dist/{chunk-WA7CSZQ3.mjs → chunk-3QZPVRM5.mjs} +1 -1
- package/dist/{chunk-BH3I4LIZ.mjs → chunk-4V5D237Z.mjs} +1 -1
- package/dist/chunk-63JRWMWN.mjs +215 -0
- package/dist/{chunk-GDHLN463.mjs → chunk-6CNPC722.mjs} +2 -2
- package/dist/{chunk-4IEHQI5B.mjs → chunk-7JCCPTBU.mjs} +3 -3
- package/dist/chunk-A6UUVHC6.mjs +38 -0
- package/dist/{chunk-P5L4YI54.mjs → chunk-AOU4QX7H.mjs} +106 -40
- package/dist/{chunk-U7SYKG2C.mjs → chunk-BBCJTXGU.mjs} +1 -1
- package/dist/{chunk-4S4AAZFC.mjs → chunk-CBFUVFGI.mjs} +4 -4
- package/dist/{chunk-AGE57VDD.mjs → chunk-CBIV6KFQ.mjs} +22 -25
- package/dist/{chunk-KWHCUAFU.mjs → chunk-CGJBY53Q.mjs} +3 -3
- package/dist/{chunk-XZYQFBCT.mjs → chunk-DI7QXTYZ.mjs} +1 -1
- package/dist/{chunk-U4DJHAM5.mjs → chunk-DPWUIAVC.mjs} +413 -149
- package/dist/chunk-E4VJDQD5.mjs +142 -0
- package/dist/{chunk-TE5JU3WA.mjs → chunk-EAWNUQDB.mjs} +90 -133
- package/dist/{chunk-OXJX5G3O.mjs → chunk-EIVSXVP5.mjs} +2 -2
- package/dist/{chunk-JGG3ZUNG.mjs → chunk-GSOTTSR4.mjs} +1 -1
- package/dist/{chunk-NGRGAY42.mjs → chunk-HKF5BNPX.mjs} +1 -1
- package/dist/{chunk-2URJGQFC.mjs → chunk-JUKILR6X.mjs} +2 -2
- package/dist/{chunk-DW3BX4M2.mjs → chunk-KPOXK7NN.mjs} +1 -1
- package/dist/{chunk-5KC3IFNR.mjs → chunk-LJSGQO4B.mjs} +1 -1
- package/dist/{chunk-LH6Z7SDZ.mjs → chunk-M7V5YMM2.mjs} +1 -1
- package/dist/{chunk-44FMPRHV.mjs → chunk-MAGZDGUW.mjs} +67 -38
- package/dist/chunk-MV2WCFK7.mjs +1 -0
- package/dist/{chunk-U52FBRJ3.mjs → chunk-NJWXYTBQ.mjs} +1 -1
- package/dist/{chunk-3DCUMRYP.mjs → chunk-NPQBJO6G.mjs} +11 -39
- package/dist/chunk-OK34FKBQ.mjs +224 -0
- package/dist/{chunk-OC5C42CB.mjs → chunk-OPGGL4CG.mjs} +3 -3
- package/dist/{chunk-R2XKPG4K.mjs → chunk-OPSMMRA2.mjs} +1 -1
- package/dist/{chunk-4X35QQTI.mjs → chunk-P4GNXDMO.mjs} +1 -1
- package/dist/{chunk-MTT24BLX.mjs → chunk-PCWANNZ4.mjs} +3 -3
- package/dist/{chunk-V2YH54JQ.mjs → chunk-PXUYPS6M.mjs} +12 -2
- package/dist/chunk-RFHWRBAB.mjs +105 -0
- package/dist/{chunk-EJ4GDC6K.mjs → chunk-S2T4GHJA.mjs} +27 -27
- package/dist/{chunk-5VTYO3RF.mjs → chunk-TBI5O3OL.mjs} +1 -1
- package/dist/{chunk-FZYZSMSS.mjs → chunk-TBRF36RK.mjs} +1 -1
- package/dist/{chunk-Q3KBMVJS.mjs → chunk-TEERNFIT.mjs} +77 -46
- package/dist/{chunk-RH3AHG52.mjs → chunk-V5XX3CGL.mjs} +1 -1
- package/dist/{chunk-6WD32ERF.mjs → chunk-VO2ZIGIK.mjs} +1 -1
- package/dist/{chunk-H6ZQDMYU.mjs → chunk-VOOEH6OJ.mjs} +24 -38
- package/dist/{chunk-ACZ3DQVT.mjs → chunk-VUO5J2OK.mjs} +16 -15
- package/dist/{chunk-RY5VVXQ4.mjs → chunk-WYTAGN2P.mjs} +1 -1
- package/dist/{chunk-NDNIAALB.mjs → chunk-YBDQSEPV.mjs} +17 -18
- package/dist/chunk-Z4NO7SMY.mjs +460 -0
- package/dist/components/accordion/accordion.js +366 -4
- package/dist/components/accordion/accordion.mjs +2 -2
- package/dist/components/accordion/accordionItem.js +366 -4
- package/dist/components/accordion/accordionItem.mjs +2 -2
- package/dist/components/accordion/index.js +366 -4
- package/dist/components/accordion/index.mjs +3 -3
- package/dist/components/avatar/avatar.js +472 -44
- package/dist/components/avatar/avatar.mjs +3 -3
- package/dist/components/avatar/index.js +472 -44
- package/dist/components/avatar/index.mjs +3 -3
- package/dist/components/backdrop/backdrop.js +366 -4
- package/dist/components/backdrop/backdrop.mjs +2 -2
- package/dist/components/backdrop/index.js +366 -4
- package/dist/components/backdrop/index.mjs +2 -2
- package/dist/components/breadcrumb/breadcrumb.js +951 -74
- package/dist/components/breadcrumb/breadcrumb.mjs +10 -9
- package/dist/components/breadcrumb/index.js +951 -74
- package/dist/components/breadcrumb/index.mjs +10 -9
- package/dist/components/button/button-group.js +366 -4
- package/dist/components/button/button-group.mjs +2 -2
- package/dist/components/button/button.d.mts +82 -119
- package/dist/components/button/button.d.ts +82 -119
- package/dist/components/button/button.js +966 -355
- package/dist/components/button/button.mjs +6 -5
- package/dist/components/button/button.style.d.mts +89 -0
- package/dist/components/button/button.style.d.ts +89 -0
- package/dist/components/button/button.style.js +1172 -0
- package/dist/components/button/button.style.mjs +9 -0
- package/dist/components/button/icon-button.d.mts +45 -46
- package/dist/components/button/icon-button.d.ts +45 -46
- package/dist/components/button/icon-button.js +1125 -527
- package/dist/components/button/icon-button.mjs +6 -5
- package/dist/components/button/index.js +1154 -830
- package/dist/components/button/index.mjs +9 -8
- package/dist/components/button/text-button.d.mts +59 -39
- package/dist/components/button/text-button.d.ts +59 -39
- package/dist/components/button/text-button.js +831 -21
- package/dist/components/button/text-button.mjs +3 -2
- package/dist/components/charts/areaChart.js +366 -4
- package/dist/components/charts/areaChart.mjs +2 -2
- package/dist/components/charts/barChart.js +366 -4
- package/dist/components/charts/barChart.mjs +2 -2
- package/dist/components/charts/circularProgress.js +366 -4
- package/dist/components/charts/circularProgress.mjs +2 -2
- package/dist/components/charts/index.js +366 -4
- package/dist/components/charts/index.mjs +6 -6
- package/dist/components/charts/radarChart.js +366 -4
- package/dist/components/charts/radarChart.mjs +2 -2
- package/dist/components/charts/simpleBarChart.js +366 -4
- package/dist/components/charts/simpleBarChart.mjs +2 -2
- package/dist/components/checkbox/checkbox.js +376 -42
- package/dist/components/checkbox/checkbox.mjs +2 -2
- package/dist/components/checkbox/index.js +376 -42
- package/dist/components/checkbox/index.mjs +2 -2
- package/dist/components/chip/chip.d.mts +32 -0
- package/dist/components/chip/chip.d.ts +32 -0
- package/dist/components/chip/chip.js +496 -57
- package/dist/components/chip/chip.mjs +4 -4
- package/dist/components/chip/index.js +496 -57
- package/dist/components/chip/index.mjs +4 -4
- package/dist/components/drawer/drawer.js +366 -4
- package/dist/components/drawer/drawer.mjs +2 -2
- package/dist/components/drawer/index.js +366 -4
- package/dist/components/drawer/index.mjs +2 -2
- package/dist/components/fileUpload/fileUpload.js +1014 -402
- package/dist/components/fileUpload/fileUpload.mjs +12 -11
- package/dist/components/fileUpload/index.js +1014 -402
- package/dist/components/fileUpload/index.mjs +12 -11
- package/dist/components/icon/Icon.d.mts +23 -10
- package/dist/components/icon/Icon.d.ts +23 -10
- package/dist/components/icon/Icon.js +120 -53
- package/dist/components/icon/Icon.mjs +2 -2
- package/dist/components/icon/index.js +120 -53
- package/dist/components/icon/index.mjs +2 -2
- package/dist/components/icon/template.d.mts +5 -2
- package/dist/components/icon/template.d.ts +5 -2
- package/dist/components/icon/template.js +106 -40
- package/dist/components/icon/template.mjs +1 -1
- package/dist/components/input/index.js +511 -82
- package/dist/components/input/index.mjs +4 -4
- package/dist/components/input/input.js +511 -82
- package/dist/components/input/input.mjs +4 -4
- package/dist/components/list/index.js +486 -57
- package/dist/components/list/index.mjs +6 -6
- package/dist/components/list/list.js +366 -4
- package/dist/components/list/list.mjs +2 -2
- package/dist/components/list/listItem.js +486 -57
- package/dist/components/list/listItem.mjs +5 -5
- package/dist/components/modal/GlobalModalProvider.d.mts +2 -0
- package/dist/components/modal/GlobalModalProvider.d.ts +2 -0
- package/dist/components/modal/GlobalModalProvider.js +1028 -416
- package/dist/components/modal/GlobalModalProvider.mjs +12 -11
- package/dist/components/modal/index.d.mts +2 -0
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/modal/index.js +1028 -416
- package/dist/components/modal/index.mjs +13 -12
- package/dist/components/modal/modal.d.mts +101 -29
- package/dist/components/modal/modal.d.ts +101 -29
- package/dist/components/modal/modal.js +1028 -416
- package/dist/components/modal/modal.mjs +11 -10
- package/dist/components/modal/useGlobalModal.d.mts +2 -0
- package/dist/components/modal/useGlobalModal.d.ts +2 -0
- package/dist/components/modal/useGlobalModal.mjs +13 -12
- package/dist/components/pagination/index.js +598 -212
- package/dist/components/pagination/index.mjs +5 -5
- package/dist/components/pagination/pagination.js +598 -212
- package/dist/components/pagination/pagination.mjs +5 -5
- package/dist/components/picker/datePicker.js +1029 -705
- package/dist/components/picker/datePicker.mjs +12 -11
- package/dist/components/picker/day.js +366 -4
- package/dist/components/picker/day.mjs +2 -2
- package/dist/components/picker/index.js +1027 -703
- package/dist/components/picker/index.mjs +15 -14
- package/dist/components/picker/timePicker/Panel.js +831 -21
- package/dist/components/picker/timePicker/Panel.mjs +10 -9
- package/dist/components/picker/timePicker/index.js +976 -99
- package/dist/components/picker/timePicker/index.mjs +12 -11
- package/dist/components/progress/index.js +381 -18
- package/dist/components/progress/index.mjs +2 -2
- package/dist/components/progress/progress.d.mts +21 -18
- package/dist/components/progress/progress.d.ts +21 -18
- package/dist/components/progress/progress.js +381 -18
- package/dist/components/progress/progress.mjs +2 -2
- package/dist/components/radio/index.js +389 -41
- package/dist/components/radio/index.mjs +2 -2
- package/dist/components/radio/radio.d.mts +33 -48
- package/dist/components/radio/radio.d.ts +33 -48
- package/dist/components/radio/radio.js +389 -41
- package/dist/components/radio/radio.mjs +2 -2
- package/dist/components/ripple/index.mjs +3 -3
- package/dist/components/select/index.js +819 -221
- package/dist/components/select/index.mjs +10 -9
- package/dist/components/select/select.js +819 -221
- package/dist/components/select/select.mjs +10 -9
- package/dist/components/slider/index.d.mts +4 -0
- package/dist/components/slider/index.d.ts +4 -0
- package/dist/components/slider/index.js +955 -0
- package/dist/components/slider/index.mjs +11 -0
- package/dist/components/slider/slider.d.mts +158 -0
- package/dist/components/slider/slider.d.ts +158 -0
- package/dist/components/slider/slider.js +949 -0
- package/dist/components/slider/slider.mjs +10 -0
- package/dist/components/starRating/index.js +486 -57
- package/dist/components/starRating/index.mjs +4 -4
- package/dist/components/starRating/starRating.js +486 -57
- package/dist/components/starRating/starRating.mjs +4 -4
- package/dist/components/switch/index.js +22 -25
- package/dist/components/switch/index.mjs +1 -1
- package/dist/components/switch/switch.d.mts +0 -18
- package/dist/components/switch/switch.d.ts +0 -18
- package/dist/components/switch/switch.js +22 -25
- package/dist/components/switch/switch.mjs +1 -1
- package/dist/components/table/definition-table.js +366 -4
- package/dist/components/table/definition-table.mjs +2 -2
- package/dist/components/table/form-table.js +366 -4
- package/dist/components/table/form-table.mjs +1 -1
- package/dist/components/table/index.js +679 -291
- package/dist/components/table/index.mjs +10 -10
- package/dist/components/table/table-body.js +679 -291
- package/dist/components/table/table-body.mjs +7 -7
- package/dist/components/table/table-head.js +679 -291
- package/dist/components/table/table-head.mjs +7 -7
- package/dist/components/table/table.d.mts +8 -29
- package/dist/components/table/table.d.ts +8 -29
- package/dist/components/table/table.js +679 -291
- package/dist/components/table/table.mjs +7 -7
- package/dist/components/tabs/index.js +366 -4
- package/dist/components/tabs/index.mjs +2 -2
- package/dist/components/tabs/tabs.js +366 -4
- package/dist/components/tabs/tabs.mjs +2 -2
- package/dist/components/textarea/index.js +67 -38
- package/dist/components/textarea/index.mjs +1 -1
- package/dist/components/textarea/textarea.d.mts +21 -0
- package/dist/components/textarea/textarea.d.ts +21 -0
- package/dist/components/textarea/textarea.js +67 -38
- package/dist/components/textarea/textarea.mjs +1 -1
- package/dist/components/timePicker/calendar.js +486 -57
- package/dist/components/timePicker/calendar.mjs +3 -3
- package/dist/components/toast/index.js +486 -57
- package/dist/components/toast/index.mjs +5 -5
- package/dist/components/toast/toast.js +486 -57
- package/dist/components/toast/toast.mjs +4 -4
- package/dist/components/toast/use-toast.js +486 -57
- package/dist/components/toast/use-toast.mjs +5 -5
- package/dist/components/tooltip/index.js +366 -4
- package/dist/components/tooltip/index.mjs +2 -2
- package/dist/components/tooltip/tooltip.js +366 -4
- package/dist/components/tooltip/tooltip.mjs +2 -2
- package/dist/components/tree/index.js +486 -57
- package/dist/components/tree/index.mjs +4 -4
- package/dist/components/tree/tree.js +486 -57
- package/dist/components/tree/tree.mjs +4 -4
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1705 -1281
- package/dist/index.mjs +76 -70
- package/dist/utils/tailwind-variants.js +366 -4
- package/dist/utils/tailwind-variants.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-6AID2NLT.mjs +0 -37
- package/dist/chunk-BBRO35V3.mjs +0 -385
- package/dist/chunk-EVJ46M3U.mjs +0 -141
- package/dist/chunk-SKX5QPUD.mjs +0 -482
|
@@ -72,7 +72,7 @@ var Switch = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
72
72
|
onChange
|
|
73
73
|
}
|
|
74
74
|
),
|
|
75
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: slots.
|
|
75
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: slots.thumb({ class: classNames == null ? void 0 : classNames.thumb }) }) })
|
|
76
76
|
] });
|
|
77
77
|
});
|
|
78
78
|
Switch.displayName = "Switch";
|
|
@@ -80,16 +80,6 @@ var switch_default = Switch;
|
|
|
80
80
|
var switchStyle = (0, import_tailwind_variants.tv)({
|
|
81
81
|
slots: {
|
|
82
82
|
base: ["group/switch", "relative", "max-w-fit", "inline-flex", "items-center", "justify-start", "cursor-pointer"],
|
|
83
|
-
outerWrapper: [
|
|
84
|
-
"relative",
|
|
85
|
-
"inline-flex",
|
|
86
|
-
"items-center",
|
|
87
|
-
"justify-start",
|
|
88
|
-
"flex-shrink-0",
|
|
89
|
-
"bg-neutral-soft",
|
|
90
|
-
"overflow-hidden",
|
|
91
|
-
"rounded-full"
|
|
92
|
-
],
|
|
93
83
|
wrapper: [
|
|
94
84
|
"relative",
|
|
95
85
|
"inline-flex",
|
|
@@ -98,6 +88,7 @@ var switchStyle = (0, import_tailwind_variants.tv)({
|
|
|
98
88
|
"flex-shrink-0",
|
|
99
89
|
"overflow-hidden",
|
|
100
90
|
"bg-neutral-light",
|
|
91
|
+
"ring-neutral-soft",
|
|
101
92
|
"rounded-full"
|
|
102
93
|
],
|
|
103
94
|
thumb: [
|
|
@@ -114,23 +105,19 @@ var switchStyle = (0, import_tailwind_variants.tv)({
|
|
|
114
105
|
variants: {
|
|
115
106
|
size: {
|
|
116
107
|
sm: {
|
|
117
|
-
|
|
118
|
-
wrapper: ["w-[28px]", "h-[12px]", "p-[2px]"],
|
|
108
|
+
wrapper: ["w-[28px]", "h-[12px]", "p-[2px]", "ring-2"],
|
|
119
109
|
thumb: ["w-[8px]", "h-[8px]", "group-has-[:checked]/switch:ml-[16px]"]
|
|
120
110
|
},
|
|
121
111
|
md: {
|
|
122
|
-
|
|
123
|
-
wrapper: ["w-[42px]", "h-[16px]", "px-[3px]"],
|
|
112
|
+
wrapper: ["w-[42px]", "h-[18px]", "p-[3px]", "ring-3"],
|
|
124
113
|
thumb: ["w-[12px]", "h-[12px]", "group-has-[:checked]/switch:ml-[24px]"]
|
|
125
114
|
},
|
|
126
115
|
lg: {
|
|
127
|
-
|
|
128
|
-
wrapper: ["w-[56px]", "h-[24px]", "px-[4px]"],
|
|
116
|
+
wrapper: ["w-[56px]", "h-[24px]", "p-[4px]", "ring-4"],
|
|
129
117
|
thumb: ["w-[16px]", "h-[16px]", "group-has-[:checked]/switch:ml-[32px]"]
|
|
130
118
|
},
|
|
131
119
|
xl: {
|
|
132
|
-
|
|
133
|
-
wrapper: ["w-[70px]", "h-[30px]", "px-[5px]"],
|
|
120
|
+
wrapper: ["w-[70px]", "h-[30px]", "p-[5px]", "ring-5"],
|
|
134
121
|
thumb: ["w-[20px]", "h-[20px]", "group-has-[:checked]/switch:ml-[40px]"]
|
|
135
122
|
}
|
|
136
123
|
},
|
|
@@ -141,8 +128,12 @@ var switchStyle = (0, import_tailwind_variants.tv)({
|
|
|
141
128
|
disabled: {
|
|
142
129
|
true: {
|
|
143
130
|
base: ["!pointer-events-none"],
|
|
144
|
-
|
|
145
|
-
|
|
131
|
+
wrapper: [
|
|
132
|
+
"!bg-neutral-light",
|
|
133
|
+
"!ring-neutral-soft",
|
|
134
|
+
"!group-has-[:checked]/switch:bg-neutral-light",
|
|
135
|
+
"!hover:bg-neutral-light"
|
|
136
|
+
],
|
|
146
137
|
thumb: ["!bg-trans-light"]
|
|
147
138
|
}
|
|
148
139
|
},
|
|
@@ -161,15 +152,21 @@ var switchStyle = (0, import_tailwind_variants.tv)({
|
|
|
161
152
|
{
|
|
162
153
|
color: "primary",
|
|
163
154
|
class: {
|
|
164
|
-
|
|
165
|
-
|
|
155
|
+
wrapper: [
|
|
156
|
+
"group-has-[:checked]/switch:bg-primary-main",
|
|
157
|
+
"group-has-[:checked]/switch:ring-primary-light",
|
|
158
|
+
"hover:bg-primary-light"
|
|
159
|
+
]
|
|
166
160
|
}
|
|
167
161
|
},
|
|
168
162
|
{
|
|
169
163
|
color: "secondary",
|
|
170
164
|
class: {
|
|
171
|
-
|
|
172
|
-
|
|
165
|
+
wrapper: [
|
|
166
|
+
"group-has-[:checked]/switch:bg-secondary-main",
|
|
167
|
+
"group-has-[:checked]/switch:ring-secondary-light",
|
|
168
|
+
"hover:bg-secondary-light"
|
|
169
|
+
]
|
|
173
170
|
}
|
|
174
171
|
}
|
|
175
172
|
],
|
|
@@ -18,22 +18,18 @@ declare const Switch: react.ForwardRefExoticComponent<Props & SwitchVariantProps
|
|
|
18
18
|
declare const switchStyle: tailwind_variants.TVReturnType<{
|
|
19
19
|
size: {
|
|
20
20
|
sm: {
|
|
21
|
-
outerWrapper: string[];
|
|
22
21
|
wrapper: string[];
|
|
23
22
|
thumb: string[];
|
|
24
23
|
};
|
|
25
24
|
md: {
|
|
26
|
-
outerWrapper: string[];
|
|
27
25
|
wrapper: string[];
|
|
28
26
|
thumb: string[];
|
|
29
27
|
};
|
|
30
28
|
lg: {
|
|
31
|
-
outerWrapper: string[];
|
|
32
29
|
wrapper: string[];
|
|
33
30
|
thumb: string[];
|
|
34
31
|
};
|
|
35
32
|
xl: {
|
|
36
|
-
outerWrapper: string[];
|
|
37
33
|
wrapper: string[];
|
|
38
34
|
thumb: string[];
|
|
39
35
|
};
|
|
@@ -45,7 +41,6 @@ declare const switchStyle: tailwind_variants.TVReturnType<{
|
|
|
45
41
|
disabled: {
|
|
46
42
|
true: {
|
|
47
43
|
base: string[];
|
|
48
|
-
outerWrapper: string[];
|
|
49
44
|
wrapper: string[];
|
|
50
45
|
thumb: string[];
|
|
51
46
|
};
|
|
@@ -62,28 +57,23 @@ declare const switchStyle: tailwind_variants.TVReturnType<{
|
|
|
62
57
|
};
|
|
63
58
|
}, {
|
|
64
59
|
base: string[];
|
|
65
|
-
outerWrapper: string[];
|
|
66
60
|
wrapper: string[];
|
|
67
61
|
thumb: string[];
|
|
68
62
|
}, undefined, {
|
|
69
63
|
size: {
|
|
70
64
|
sm: {
|
|
71
|
-
outerWrapper: string[];
|
|
72
65
|
wrapper: string[];
|
|
73
66
|
thumb: string[];
|
|
74
67
|
};
|
|
75
68
|
md: {
|
|
76
|
-
outerWrapper: string[];
|
|
77
69
|
wrapper: string[];
|
|
78
70
|
thumb: string[];
|
|
79
71
|
};
|
|
80
72
|
lg: {
|
|
81
|
-
outerWrapper: string[];
|
|
82
73
|
wrapper: string[];
|
|
83
74
|
thumb: string[];
|
|
84
75
|
};
|
|
85
76
|
xl: {
|
|
86
|
-
outerWrapper: string[];
|
|
87
77
|
wrapper: string[];
|
|
88
78
|
thumb: string[];
|
|
89
79
|
};
|
|
@@ -95,7 +85,6 @@ declare const switchStyle: tailwind_variants.TVReturnType<{
|
|
|
95
85
|
disabled: {
|
|
96
86
|
true: {
|
|
97
87
|
base: string[];
|
|
98
|
-
outerWrapper: string[];
|
|
99
88
|
wrapper: string[];
|
|
100
89
|
thumb: string[];
|
|
101
90
|
};
|
|
@@ -112,28 +101,23 @@ declare const switchStyle: tailwind_variants.TVReturnType<{
|
|
|
112
101
|
};
|
|
113
102
|
}, {
|
|
114
103
|
base: string[];
|
|
115
|
-
outerWrapper: string[];
|
|
116
104
|
wrapper: string[];
|
|
117
105
|
thumb: string[];
|
|
118
106
|
}, tailwind_variants.TVReturnType<{
|
|
119
107
|
size: {
|
|
120
108
|
sm: {
|
|
121
|
-
outerWrapper: string[];
|
|
122
109
|
wrapper: string[];
|
|
123
110
|
thumb: string[];
|
|
124
111
|
};
|
|
125
112
|
md: {
|
|
126
|
-
outerWrapper: string[];
|
|
127
113
|
wrapper: string[];
|
|
128
114
|
thumb: string[];
|
|
129
115
|
};
|
|
130
116
|
lg: {
|
|
131
|
-
outerWrapper: string[];
|
|
132
117
|
wrapper: string[];
|
|
133
118
|
thumb: string[];
|
|
134
119
|
};
|
|
135
120
|
xl: {
|
|
136
|
-
outerWrapper: string[];
|
|
137
121
|
wrapper: string[];
|
|
138
122
|
thumb: string[];
|
|
139
123
|
};
|
|
@@ -145,7 +129,6 @@ declare const switchStyle: tailwind_variants.TVReturnType<{
|
|
|
145
129
|
disabled: {
|
|
146
130
|
true: {
|
|
147
131
|
base: string[];
|
|
148
|
-
outerWrapper: string[];
|
|
149
132
|
wrapper: string[];
|
|
150
133
|
thumb: string[];
|
|
151
134
|
};
|
|
@@ -162,7 +145,6 @@ declare const switchStyle: tailwind_variants.TVReturnType<{
|
|
|
162
145
|
};
|
|
163
146
|
}, {
|
|
164
147
|
base: string[];
|
|
165
|
-
outerWrapper: string[];
|
|
166
148
|
wrapper: string[];
|
|
167
149
|
thumb: string[];
|
|
168
150
|
}, undefined, unknown, unknown, undefined>>;
|
|
@@ -18,22 +18,18 @@ declare const Switch: react.ForwardRefExoticComponent<Props & SwitchVariantProps
|
|
|
18
18
|
declare const switchStyle: tailwind_variants.TVReturnType<{
|
|
19
19
|
size: {
|
|
20
20
|
sm: {
|
|
21
|
-
outerWrapper: string[];
|
|
22
21
|
wrapper: string[];
|
|
23
22
|
thumb: string[];
|
|
24
23
|
};
|
|
25
24
|
md: {
|
|
26
|
-
outerWrapper: string[];
|
|
27
25
|
wrapper: string[];
|
|
28
26
|
thumb: string[];
|
|
29
27
|
};
|
|
30
28
|
lg: {
|
|
31
|
-
outerWrapper: string[];
|
|
32
29
|
wrapper: string[];
|
|
33
30
|
thumb: string[];
|
|
34
31
|
};
|
|
35
32
|
xl: {
|
|
36
|
-
outerWrapper: string[];
|
|
37
33
|
wrapper: string[];
|
|
38
34
|
thumb: string[];
|
|
39
35
|
};
|
|
@@ -45,7 +41,6 @@ declare const switchStyle: tailwind_variants.TVReturnType<{
|
|
|
45
41
|
disabled: {
|
|
46
42
|
true: {
|
|
47
43
|
base: string[];
|
|
48
|
-
outerWrapper: string[];
|
|
49
44
|
wrapper: string[];
|
|
50
45
|
thumb: string[];
|
|
51
46
|
};
|
|
@@ -62,28 +57,23 @@ declare const switchStyle: tailwind_variants.TVReturnType<{
|
|
|
62
57
|
};
|
|
63
58
|
}, {
|
|
64
59
|
base: string[];
|
|
65
|
-
outerWrapper: string[];
|
|
66
60
|
wrapper: string[];
|
|
67
61
|
thumb: string[];
|
|
68
62
|
}, undefined, {
|
|
69
63
|
size: {
|
|
70
64
|
sm: {
|
|
71
|
-
outerWrapper: string[];
|
|
72
65
|
wrapper: string[];
|
|
73
66
|
thumb: string[];
|
|
74
67
|
};
|
|
75
68
|
md: {
|
|
76
|
-
outerWrapper: string[];
|
|
77
69
|
wrapper: string[];
|
|
78
70
|
thumb: string[];
|
|
79
71
|
};
|
|
80
72
|
lg: {
|
|
81
|
-
outerWrapper: string[];
|
|
82
73
|
wrapper: string[];
|
|
83
74
|
thumb: string[];
|
|
84
75
|
};
|
|
85
76
|
xl: {
|
|
86
|
-
outerWrapper: string[];
|
|
87
77
|
wrapper: string[];
|
|
88
78
|
thumb: string[];
|
|
89
79
|
};
|
|
@@ -95,7 +85,6 @@ declare const switchStyle: tailwind_variants.TVReturnType<{
|
|
|
95
85
|
disabled: {
|
|
96
86
|
true: {
|
|
97
87
|
base: string[];
|
|
98
|
-
outerWrapper: string[];
|
|
99
88
|
wrapper: string[];
|
|
100
89
|
thumb: string[];
|
|
101
90
|
};
|
|
@@ -112,28 +101,23 @@ declare const switchStyle: tailwind_variants.TVReturnType<{
|
|
|
112
101
|
};
|
|
113
102
|
}, {
|
|
114
103
|
base: string[];
|
|
115
|
-
outerWrapper: string[];
|
|
116
104
|
wrapper: string[];
|
|
117
105
|
thumb: string[];
|
|
118
106
|
}, tailwind_variants.TVReturnType<{
|
|
119
107
|
size: {
|
|
120
108
|
sm: {
|
|
121
|
-
outerWrapper: string[];
|
|
122
109
|
wrapper: string[];
|
|
123
110
|
thumb: string[];
|
|
124
111
|
};
|
|
125
112
|
md: {
|
|
126
|
-
outerWrapper: string[];
|
|
127
113
|
wrapper: string[];
|
|
128
114
|
thumb: string[];
|
|
129
115
|
};
|
|
130
116
|
lg: {
|
|
131
|
-
outerWrapper: string[];
|
|
132
117
|
wrapper: string[];
|
|
133
118
|
thumb: string[];
|
|
134
119
|
};
|
|
135
120
|
xl: {
|
|
136
|
-
outerWrapper: string[];
|
|
137
121
|
wrapper: string[];
|
|
138
122
|
thumb: string[];
|
|
139
123
|
};
|
|
@@ -145,7 +129,6 @@ declare const switchStyle: tailwind_variants.TVReturnType<{
|
|
|
145
129
|
disabled: {
|
|
146
130
|
true: {
|
|
147
131
|
base: string[];
|
|
148
|
-
outerWrapper: string[];
|
|
149
132
|
wrapper: string[];
|
|
150
133
|
thumb: string[];
|
|
151
134
|
};
|
|
@@ -162,7 +145,6 @@ declare const switchStyle: tailwind_variants.TVReturnType<{
|
|
|
162
145
|
};
|
|
163
146
|
}, {
|
|
164
147
|
base: string[];
|
|
165
|
-
outerWrapper: string[];
|
|
166
148
|
wrapper: string[];
|
|
167
149
|
thumb: string[];
|
|
168
150
|
}, undefined, unknown, unknown, undefined>>;
|
|
@@ -70,7 +70,7 @@ var Switch = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
|
70
70
|
onChange
|
|
71
71
|
}
|
|
72
72
|
),
|
|
73
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: slots.
|
|
73
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: slots.thumb({ class: classNames == null ? void 0 : classNames.thumb }) }) })
|
|
74
74
|
] });
|
|
75
75
|
});
|
|
76
76
|
Switch.displayName = "Switch";
|
|
@@ -78,16 +78,6 @@ var switch_default = Switch;
|
|
|
78
78
|
var switchStyle = (0, import_tailwind_variants.tv)({
|
|
79
79
|
slots: {
|
|
80
80
|
base: ["group/switch", "relative", "max-w-fit", "inline-flex", "items-center", "justify-start", "cursor-pointer"],
|
|
81
|
-
outerWrapper: [
|
|
82
|
-
"relative",
|
|
83
|
-
"inline-flex",
|
|
84
|
-
"items-center",
|
|
85
|
-
"justify-start",
|
|
86
|
-
"flex-shrink-0",
|
|
87
|
-
"bg-neutral-soft",
|
|
88
|
-
"overflow-hidden",
|
|
89
|
-
"rounded-full"
|
|
90
|
-
],
|
|
91
81
|
wrapper: [
|
|
92
82
|
"relative",
|
|
93
83
|
"inline-flex",
|
|
@@ -96,6 +86,7 @@ var switchStyle = (0, import_tailwind_variants.tv)({
|
|
|
96
86
|
"flex-shrink-0",
|
|
97
87
|
"overflow-hidden",
|
|
98
88
|
"bg-neutral-light",
|
|
89
|
+
"ring-neutral-soft",
|
|
99
90
|
"rounded-full"
|
|
100
91
|
],
|
|
101
92
|
thumb: [
|
|
@@ -112,23 +103,19 @@ var switchStyle = (0, import_tailwind_variants.tv)({
|
|
|
112
103
|
variants: {
|
|
113
104
|
size: {
|
|
114
105
|
sm: {
|
|
115
|
-
|
|
116
|
-
wrapper: ["w-[28px]", "h-[12px]", "p-[2px]"],
|
|
106
|
+
wrapper: ["w-[28px]", "h-[12px]", "p-[2px]", "ring-2"],
|
|
117
107
|
thumb: ["w-[8px]", "h-[8px]", "group-has-[:checked]/switch:ml-[16px]"]
|
|
118
108
|
},
|
|
119
109
|
md: {
|
|
120
|
-
|
|
121
|
-
wrapper: ["w-[42px]", "h-[16px]", "px-[3px]"],
|
|
110
|
+
wrapper: ["w-[42px]", "h-[18px]", "p-[3px]", "ring-3"],
|
|
122
111
|
thumb: ["w-[12px]", "h-[12px]", "group-has-[:checked]/switch:ml-[24px]"]
|
|
123
112
|
},
|
|
124
113
|
lg: {
|
|
125
|
-
|
|
126
|
-
wrapper: ["w-[56px]", "h-[24px]", "px-[4px]"],
|
|
114
|
+
wrapper: ["w-[56px]", "h-[24px]", "p-[4px]", "ring-4"],
|
|
127
115
|
thumb: ["w-[16px]", "h-[16px]", "group-has-[:checked]/switch:ml-[32px]"]
|
|
128
116
|
},
|
|
129
117
|
xl: {
|
|
130
|
-
|
|
131
|
-
wrapper: ["w-[70px]", "h-[30px]", "px-[5px]"],
|
|
118
|
+
wrapper: ["w-[70px]", "h-[30px]", "p-[5px]", "ring-5"],
|
|
132
119
|
thumb: ["w-[20px]", "h-[20px]", "group-has-[:checked]/switch:ml-[40px]"]
|
|
133
120
|
}
|
|
134
121
|
},
|
|
@@ -139,8 +126,12 @@ var switchStyle = (0, import_tailwind_variants.tv)({
|
|
|
139
126
|
disabled: {
|
|
140
127
|
true: {
|
|
141
128
|
base: ["!pointer-events-none"],
|
|
142
|
-
|
|
143
|
-
|
|
129
|
+
wrapper: [
|
|
130
|
+
"!bg-neutral-light",
|
|
131
|
+
"!ring-neutral-soft",
|
|
132
|
+
"!group-has-[:checked]/switch:bg-neutral-light",
|
|
133
|
+
"!hover:bg-neutral-light"
|
|
134
|
+
],
|
|
144
135
|
thumb: ["!bg-trans-light"]
|
|
145
136
|
}
|
|
146
137
|
},
|
|
@@ -159,15 +150,21 @@ var switchStyle = (0, import_tailwind_variants.tv)({
|
|
|
159
150
|
{
|
|
160
151
|
color: "primary",
|
|
161
152
|
class: {
|
|
162
|
-
|
|
163
|
-
|
|
153
|
+
wrapper: [
|
|
154
|
+
"group-has-[:checked]/switch:bg-primary-main",
|
|
155
|
+
"group-has-[:checked]/switch:ring-primary-light",
|
|
156
|
+
"hover:bg-primary-light"
|
|
157
|
+
]
|
|
164
158
|
}
|
|
165
159
|
},
|
|
166
160
|
{
|
|
167
161
|
color: "secondary",
|
|
168
162
|
class: {
|
|
169
|
-
|
|
170
|
-
|
|
163
|
+
wrapper: [
|
|
164
|
+
"group-has-[:checked]/switch:bg-secondary-main",
|
|
165
|
+
"group-has-[:checked]/switch:ring-secondary-light",
|
|
166
|
+
"hover:bg-secondary-light"
|
|
167
|
+
]
|
|
171
168
|
}
|
|
172
169
|
}
|
|
173
170
|
],
|