@deepnoid/ui 0.0.88 → 0.0.90
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-4VIEZ5FT.mjs → chunk-2BCJZILI.mjs} +10 -9
- package/dist/chunk-2ZFHB4JM.mjs +76 -0
- package/dist/{chunk-4DLTBZUQ.mjs → chunk-3DRIHQOM.mjs} +7 -5
- package/dist/{chunk-IXFP2WQ4.mjs → chunk-6YE26GOI.mjs} +10 -8
- package/dist/chunk-75HLCORR.mjs +1 -0
- package/dist/{chunk-K6HPMTN4.mjs → chunk-7HHFRKJU.mjs} +1 -1
- package/dist/{chunk-H2HUJ4N2.mjs → chunk-A3RWT3JJ.mjs} +9 -4
- package/dist/{chunk-BE2OG6M4.mjs → chunk-ANYPMQH4.mjs} +28 -21
- package/dist/{chunk-5HSZ5AYM.mjs → chunk-B4KZBOGT.mjs} +16 -16
- package/dist/{chunk-KHWFCTPX.mjs → chunk-DWROPKZW.mjs} +6 -6
- package/dist/{chunk-FPCP4OOL.mjs → chunk-EDEV4IK4.mjs} +3 -3
- package/dist/{chunk-IOV7MEPG.mjs → chunk-IOCRFIQF.mjs} +30 -0
- package/dist/{chunk-SFNR4F3J.mjs → chunk-L6BQA6GI.mjs} +2 -2
- package/dist/{chunk-YGTJU3GD.mjs → chunk-L7P6OBUX.mjs} +10 -17
- package/dist/{chunk-PRUAIZTU.mjs → chunk-LCI6RPWE.mjs} +1 -1
- package/dist/{chunk-QVGXHUYW.mjs → chunk-N2JULHST.mjs} +9 -9
- package/dist/chunk-N6IEGD4K.mjs +119 -0
- package/dist/chunk-OJ2OEI5B.mjs +202 -0
- package/dist/chunk-P732YGHO.mjs +18 -0
- package/dist/{chunk-QRHT7MSO.mjs → chunk-PXUBPWKU.mjs} +1 -1
- package/dist/{chunk-PCIONGEJ.mjs → chunk-QWFOYO3D.mjs} +37 -19
- package/dist/{chunk-LY6LJRUX.mjs → chunk-RZZWHI6O.mjs} +1 -1
- package/dist/chunk-S2VUKVCH.mjs +319 -0
- package/dist/{chunk-IZOMH2SL.mjs → chunk-S3O52LLG.mjs} +14 -14
- package/dist/chunk-UR64ZUAU.mjs +671 -0
- package/dist/{chunk-PUFNT5LS.mjs → chunk-VG4644BG.mjs} +1 -1
- package/dist/chunk-WX32MAKV.mjs +219 -0
- package/dist/components/accordion/accordion.d.mts +3 -3
- package/dist/components/accordion/accordion.d.ts +3 -3
- package/dist/components/accordion/accordion.test.mjs +3 -3
- package/dist/components/accordion/accordionItem.d.mts +3 -3
- package/dist/components/accordion/accordionItem.d.ts +3 -3
- package/dist/components/accordion/accordionItem.js +31 -1
- package/dist/components/accordion/accordionItem.mjs +3 -3
- package/dist/components/accordion/index.js +31 -1
- package/dist/components/accordion/index.mjs +3 -3
- package/dist/components/button/button-group.d.mts +2 -2
- package/dist/components/button/button-group.d.ts +2 -2
- package/dist/components/button/button-group.test.js +4103 -167
- package/dist/components/button/button-group.test.mjs +7 -3
- package/dist/components/button/button.d.mts +360 -12
- package/dist/components/button/button.d.ts +360 -12
- package/dist/components/button/button.js +4054 -110
- package/dist/components/button/button.mjs +5 -1
- package/dist/components/button/button.test.js +4059 -125
- package/dist/components/button/button.test.mjs +7 -3
- package/dist/components/button/index.d.mts +3 -0
- package/dist/components/button/index.d.ts +3 -0
- package/dist/components/button/index.js +4046 -112
- package/dist/components/button/index.mjs +5 -1
- package/dist/components/card/card.d.mts +3 -3
- package/dist/components/card/card.d.ts +3 -3
- package/dist/components/checkbox/checkbox.d.mts +71 -71
- package/dist/components/checkbox/checkbox.d.ts +71 -71
- package/dist/components/checkbox/checkbox.js +28 -21
- package/dist/components/checkbox/checkbox.mjs +1 -1
- package/dist/components/checkbox/checkbox.test.js +28 -21
- package/dist/components/checkbox/checkbox.test.mjs +4 -4
- package/dist/components/checkbox/index.js +28 -21
- package/dist/components/checkbox/index.mjs +1 -1
- package/dist/components/dateTimePicker/calendar.d.mts +118 -0
- package/dist/components/dateTimePicker/calendar.d.ts +118 -0
- package/dist/components/dateTimePicker/calendar.js +3854 -0
- package/dist/components/dateTimePicker/calendar.mjs +16 -0
- package/dist/components/dateTimePicker/dateTimePicker.d.mts +443 -0
- package/dist/components/dateTimePicker/dateTimePicker.d.ts +443 -0
- package/dist/components/dateTimePicker/dateTimePicker.js +4486 -0
- package/dist/components/dateTimePicker/dateTimePicker.mjs +22 -0
- package/dist/components/dateTimePicker/index.d.mts +5 -0
- package/dist/components/dateTimePicker/index.d.ts +5 -0
- package/dist/components/dateTimePicker/index.js +4487 -0
- package/dist/components/dateTimePicker/index.mjs +21 -0
- package/dist/components/dateTimePicker/timePicker.d.mts +10 -0
- package/dist/components/dateTimePicker/timePicker.d.ts +10 -0
- package/dist/components/dateTimePicker/timePicker.js +342 -0
- package/dist/components/dateTimePicker/timePicker.mjs +13 -0
- package/dist/components/dateTimePicker/useDateTimePicker.d.mts +31 -0
- package/dist/components/dateTimePicker/useDateTimePicker.d.ts +31 -0
- package/dist/components/dateTimePicker/useDateTimePicker.js +106 -0
- package/dist/components/dateTimePicker/useDateTimePicker.mjs +9 -0
- package/dist/components/dateTimePicker/util.d.mts +4 -0
- package/dist/components/dateTimePicker/util.d.ts +4 -0
- package/dist/components/dateTimePicker/util.js +42 -0
- package/dist/components/dateTimePicker/util.mjs +10 -0
- package/dist/components/icon/Icon.d.mts +4 -0
- package/dist/components/icon/Icon.d.ts +4 -0
- package/dist/components/icon/Icon.js +30 -0
- package/dist/components/icon/Icon.mjs +2 -2
- package/dist/components/icon/index.js +30 -0
- package/dist/components/icon/index.mjs +2 -2
- package/dist/components/icon/template.d.mts +1 -0
- package/dist/components/icon/template.d.ts +1 -0
- package/dist/components/icon/template.js +30 -0
- package/dist/components/icon/template.mjs +1 -1
- package/dist/components/input/index.js +36 -4
- package/dist/components/input/index.mjs +3 -3
- package/dist/components/input/input.d.mts +9 -4
- package/dist/components/input/input.d.ts +9 -4
- package/dist/components/input/input.js +36 -4
- package/dist/components/input/input.mjs +3 -3
- package/dist/components/input/input.test.js +36 -4
- package/dist/components/input/input.test.mjs +6 -6
- package/dist/components/list/index.js +3 -3
- package/dist/components/list/index.mjs +1 -1
- package/dist/components/list/list.d.mts +3 -3
- package/dist/components/list/list.d.ts +3 -3
- package/dist/components/list/list.test.mjs +1 -1
- package/dist/components/list/listItem.d.mts +4 -4
- package/dist/components/list/listItem.d.ts +4 -4
- package/dist/components/list/listItem.js +3 -3
- package/dist/components/list/listItem.mjs +1 -1
- package/dist/components/modal/index.js +506 -128
- package/dist/components/modal/index.mjs +6 -5
- package/dist/components/modal/modal.d.mts +2 -2
- package/dist/components/modal/modal.d.ts +2 -2
- package/dist/components/modal/modal.js +506 -128
- package/dist/components/modal/modal.mjs +6 -5
- package/dist/components/modal/modal.test.js +498 -130
- package/dist/components/modal/modal.test.mjs +6 -5
- package/dist/components/pagination/index.js +16 -16
- package/dist/components/pagination/index.mjs +1 -1
- package/dist/components/pagination/pagination.d.mts +2 -2
- package/dist/components/pagination/pagination.d.ts +2 -2
- package/dist/components/pagination/pagination.js +16 -16
- package/dist/components/pagination/pagination.mjs +1 -1
- package/dist/components/pagination/pagination.test.js +16 -16
- package/dist/components/pagination/pagination.test.mjs +2 -2
- package/dist/components/progress/index.js +9 -9
- package/dist/components/progress/index.mjs +1 -1
- package/dist/components/progress/progress.d.mts +35 -35
- package/dist/components/progress/progress.d.ts +35 -35
- package/dist/components/progress/progress.js +9 -9
- package/dist/components/progress/progress.mjs +1 -1
- package/dist/components/progress/progress.test.js +9 -9
- package/dist/components/progress/progress.test.mjs +1 -1
- package/dist/components/radio/index.js +37 -19
- package/dist/components/radio/index.mjs +1 -1
- package/dist/components/radio/radio.d.mts +35 -35
- package/dist/components/radio/radio.d.ts +35 -35
- package/dist/components/radio/radio.js +37 -19
- package/dist/components/radio/radio.mjs +1 -1
- package/dist/components/radio/radio.test.js +37 -19
- package/dist/components/radio/radio.test.mjs +2 -2
- package/dist/components/select/index.js +36 -5
- package/dist/components/select/index.mjs +4 -4
- package/dist/components/select/option.js +30 -0
- package/dist/components/select/option.mjs +3 -3
- package/dist/components/select/select.d.mts +4 -4
- package/dist/components/select/select.d.ts +4 -4
- package/dist/components/select/select.js +36 -5
- package/dist/components/select/select.mjs +4 -4
- package/dist/components/select/select.test.js +36 -5
- package/dist/components/select/select.test.mjs +9 -9
- package/dist/components/select/useSelect.d.mts +3 -3
- package/dist/components/select/useSelect.d.ts +3 -3
- package/dist/components/slider/index.js +9 -4
- package/dist/components/slider/index.mjs +1 -1
- package/dist/components/slider/slider.d.mts +28 -2
- package/dist/components/slider/slider.d.ts +28 -2
- package/dist/components/slider/slider.js +9 -4
- package/dist/components/slider/slider.mjs +1 -1
- package/dist/components/slider/slider.test.js +9 -4
- package/dist/components/slider/slider.test.mjs +1 -1
- package/dist/components/switch/index.js +14 -14
- package/dist/components/switch/index.mjs +1 -1
- package/dist/components/switch/switch.d.mts +50 -50
- package/dist/components/switch/switch.d.ts +50 -50
- package/dist/components/switch/switch.js +14 -14
- package/dist/components/switch/switch.mjs +1 -1
- package/dist/components/switch/switch.test.js +14 -14
- package/dist/components/switch/switch.test.mjs +2 -2
- package/dist/components/table/index.js +66 -27
- package/dist/components/table/index.mjs +7 -7
- package/dist/components/table/table-body.d.mts +2 -2
- package/dist/components/table/table-body.d.ts +2 -2
- package/dist/components/table/table-body.js +60 -23
- package/dist/components/table/table-body.mjs +5 -5
- package/dist/components/table/table-head.js +28 -21
- package/dist/components/table/table-head.mjs +2 -2
- package/dist/components/table/table.d.mts +26 -12
- package/dist/components/table/table.d.ts +26 -12
- package/dist/components/table/table.js +66 -27
- package/dist/components/table/table.mjs +7 -7
- package/dist/components/table/table.test.js +66 -27
- package/dist/components/table/table.test.mjs +8 -8
- package/dist/components/tabs/tabs.d.mts +3 -3
- package/dist/components/tabs/tabs.d.ts +3 -3
- package/dist/components/tabs/tabs.test.mjs +4 -4
- package/dist/components/textarea/index.d.mts +3 -0
- package/dist/components/textarea/index.d.ts +3 -0
- package/dist/components/textarea/index.js +89 -30
- package/dist/components/textarea/index.mjs +2 -1
- package/dist/components/textarea/textarea.d.mts +512 -11
- package/dist/components/textarea/textarea.d.ts +512 -11
- package/dist/components/textarea/textarea.js +89 -30
- package/dist/components/textarea/textarea.mjs +2 -1
- package/dist/components/textarea/textarea.test.js +89 -30
- package/dist/components/textarea/textarea.test.mjs +3 -2
- package/dist/components/toast/index.js +30 -0
- package/dist/components/toast/index.mjs +4 -4
- package/dist/components/toast/toast.d.mts +2 -2
- package/dist/components/toast/toast.d.ts +2 -2
- package/dist/components/toast/toast.js +30 -0
- package/dist/components/toast/toast.mjs +3 -3
- package/dist/components/toast/toast.test.js +30 -0
- package/dist/components/toast/toast.test.mjs +5 -5
- package/dist/components/toast/use-toast.js +30 -0
- package/dist/components/toast/use-toast.mjs +4 -4
- package/dist/components/tooltip/index.d.mts +1 -1
- package/dist/components/tooltip/index.d.ts +1 -1
- package/dist/components/tooltip/tooltip-utils.d.mts +1 -1
- package/dist/components/tooltip/tooltip-utils.d.ts +1 -1
- package/dist/components/tooltip/tooltip.d.mts +3 -3
- package/dist/components/tooltip/tooltip.d.ts +3 -3
- package/dist/components/tooltip/tooltip.test.js +4034 -118
- package/dist/components/tooltip/tooltip.test.mjs +7 -4
- package/dist/components/tooltip/useTooltip.d.mts +1 -1
- package/dist/components/tooltip/useTooltip.d.ts +1 -1
- package/dist/index.d.mts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +3741 -2611
- package/dist/index.mjs +71 -52
- package/dist/{tooltip-utils-DCKA5gnI.d.ts → tooltip-utils-CrCabndd.d.mts} +2 -2
- package/dist/{tooltip-utils-DCKA5gnI.d.mts → tooltip-utils-CrCabndd.d.ts} +2 -2
- package/package.json +1 -1
- package/dist/chunk-66WCZEEU.mjs +0 -320
- package/dist/chunk-WOX3SLJB.mjs +0 -162
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as tailwind_variants from 'tailwind-variants';
|
|
2
2
|
import { VariantProps } from 'tailwind-variants';
|
|
3
3
|
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
4
|
-
import * as
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import { ComponentPropsWithRef } from 'react';
|
|
6
6
|
import { SlotsToClasses } from '../../utils/types.js';
|
|
7
7
|
|
|
@@ -18,7 +18,7 @@ type SelectOption = {
|
|
|
18
18
|
key: string | number;
|
|
19
19
|
value: string;
|
|
20
20
|
};
|
|
21
|
-
declare const Select:
|
|
21
|
+
declare const Select: React.ForwardRefExoticComponent<Omit<SelectProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
22
22
|
|
|
23
23
|
declare const select: tailwind_variants.TVReturnType<{
|
|
24
24
|
variant: {
|
|
@@ -104,11 +104,11 @@ declare const select: tailwind_variants.TVReturnType<{
|
|
|
104
104
|
}, undefined, {
|
|
105
105
|
responsiveVariants?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | {
|
|
106
106
|
size?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
107
|
-
color?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
108
107
|
variant?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
109
|
-
|
|
108
|
+
color?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
110
109
|
fullWidth?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
111
110
|
isDisabled?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
111
|
+
radius?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
112
112
|
isRequired?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
113
113
|
} | undefined;
|
|
114
114
|
} & tailwind_variants_dist_config.TWMConfig & {
|
|
@@ -408,6 +408,36 @@ var template = {
|
|
|
408
408
|
}
|
|
409
409
|
);
|
|
410
410
|
},
|
|
411
|
+
loading: ({ className, fill }) => {
|
|
412
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
413
|
+
"svg",
|
|
414
|
+
{
|
|
415
|
+
width: "24",
|
|
416
|
+
height: "24",
|
|
417
|
+
viewBox: "0 0 24 24",
|
|
418
|
+
fill: "none",
|
|
419
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
420
|
+
className,
|
|
421
|
+
children: [
|
|
422
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
423
|
+
"path",
|
|
424
|
+
{
|
|
425
|
+
d: "M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM6.6 12C6.6 14.9823 9.01766 17.4 12 17.4C14.9823 17.4 17.4 14.9823 17.4 12C17.4 9.01766 14.9823 6.6 12 6.6C9.01766 6.6 6.6 9.01766 6.6 12Z",
|
|
426
|
+
fill: "currentColor",
|
|
427
|
+
fillOpacity: "0.1"
|
|
428
|
+
}
|
|
429
|
+
),
|
|
430
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
431
|
+
"path",
|
|
432
|
+
{
|
|
433
|
+
d: "M21 12C21 13.9006 20.3983 15.7524 19.2812 17.2901C18.164 18.8277 16.5887 19.9722 14.7812 20.5595C12.9736 21.1468 11.0264 21.1468 9.21885 20.5595C7.41126 19.9722 5.836 18.8277 4.71885 17.2901C3.60169 15.7524 3 13.9006 3 12C3 10.0994 3.60169 8.24756 4.71885 6.70993C5.836 5.1723 7.41126 4.02781 9.21885 3.44049C11.0264 2.85317 12.9736 2.85317 14.7812 3.44049L13.6687 6.8643C12.5841 6.5119 11.4159 6.5119 10.3313 6.86429C9.24675 7.21669 8.3016 7.90338 7.63131 8.82596C6.96102 9.74854 6.6 10.8596 6.6 12C6.6 13.1404 6.96102 14.2515 7.63131 15.174C8.3016 16.0966 9.24675 16.7833 10.3313 17.1357C11.4159 17.4881 12.5841 17.4881 13.6687 17.1357C14.7532 16.7833 15.6984 16.0966 16.3687 15.174C17.039 14.2515 17.4 13.1404 17.4 12H21Z",
|
|
434
|
+
fill: "currentColor"
|
|
435
|
+
}
|
|
436
|
+
)
|
|
437
|
+
]
|
|
438
|
+
}
|
|
439
|
+
);
|
|
440
|
+
},
|
|
411
441
|
// ** User **
|
|
412
442
|
"user-circle": ({ className, fill }) => {
|
|
413
443
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
@@ -3829,7 +3859,7 @@ Select.displayName = "Select";
|
|
|
3829
3859
|
var select_default = Select;
|
|
3830
3860
|
var select = tv({
|
|
3831
3861
|
slots: {
|
|
3832
|
-
base: ["group", "flex flex-col"],
|
|
3862
|
+
base: ["group/select", "flex flex-col"],
|
|
3833
3863
|
label: ["flex", "items-center"],
|
|
3834
3864
|
selectWrapper: [
|
|
3835
3865
|
"flex",
|
|
@@ -3837,8 +3867,9 @@ var select = tv({
|
|
|
3837
3867
|
"bg-transparent",
|
|
3838
3868
|
"border-neutral-main",
|
|
3839
3869
|
"transition duration-200",
|
|
3840
|
-
"group-has-[p]:border-danger-main",
|
|
3841
|
-
"group-has-[p]:text-danger-main"
|
|
3870
|
+
"group-has-[p]/select:border-danger-main",
|
|
3871
|
+
"group-has-[p]/select:text-danger-main",
|
|
3872
|
+
"group-has-[p]/select:bg-danger-soft"
|
|
3842
3873
|
],
|
|
3843
3874
|
select: [
|
|
3844
3875
|
"w-full",
|
|
@@ -3847,7 +3878,7 @@ var select = tv({
|
|
|
3847
3878
|
"cursor-inherit",
|
|
3848
3879
|
"cursor-pointer",
|
|
3849
3880
|
"placeholder:text-neutral-main",
|
|
3850
|
-
"group-has-[p]:text-danger-main",
|
|
3881
|
+
"group-has-[p]/select:text-danger-main",
|
|
3851
3882
|
"focus-visible:outline-none"
|
|
3852
3883
|
],
|
|
3853
3884
|
optionsWrapper: ["w-[240px]", "border", "bg-background", "cursor-pointer", "overflow-y-auto"],
|
|
@@ -3856,7 +3887,7 @@ var select = tv({
|
|
|
3856
3887
|
variants: {
|
|
3857
3888
|
variant: {
|
|
3858
3889
|
solid: {
|
|
3859
|
-
selectWrapper: "bg-trans-soft hover:bg-trans-light data-[expanded=true]:bg-trans-light group-has-[p]:bg-danger-soft"
|
|
3890
|
+
selectWrapper: "bg-trans-soft hover:bg-trans-light data-[expanded=true]:bg-trans-light group-has-[p]/select:bg-danger-soft"
|
|
3860
3891
|
},
|
|
3861
3892
|
normal: {
|
|
3862
3893
|
selectWrapper: "border hover:bg-trans-soft data-[expanded=true]:bg-trans-soft"
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
select_default
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-LY6LJRUX.mjs";
|
|
4
|
+
} from "../../chunk-2BCJZILI.mjs";
|
|
6
5
|
import "../../chunk-S3QS5B7F.mjs";
|
|
6
|
+
import "../../chunk-RZZWHI6O.mjs";
|
|
7
7
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-LCI6RPWE.mjs";
|
|
9
|
+
import "../../chunk-IOCRFIQF.mjs";
|
|
10
10
|
import "../../chunk-E3G5QXSH.mjs";
|
|
11
11
|
import "../../chunk-J725QONZ.mjs";
|
|
12
12
|
import "../../chunk-IZ6II3QA.mjs";
|
|
@@ -17284,6 +17284,36 @@ var template = {
|
|
|
17284
17284
|
}
|
|
17285
17285
|
);
|
|
17286
17286
|
},
|
|
17287
|
+
loading: ({ className, fill }) => {
|
|
17288
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
17289
|
+
"svg",
|
|
17290
|
+
{
|
|
17291
|
+
width: "24",
|
|
17292
|
+
height: "24",
|
|
17293
|
+
viewBox: "0 0 24 24",
|
|
17294
|
+
fill: "none",
|
|
17295
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
17296
|
+
className,
|
|
17297
|
+
children: [
|
|
17298
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
17299
|
+
"path",
|
|
17300
|
+
{
|
|
17301
|
+
d: "M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM6.6 12C6.6 14.9823 9.01766 17.4 12 17.4C14.9823 17.4 17.4 14.9823 17.4 12C17.4 9.01766 14.9823 6.6 12 6.6C9.01766 6.6 6.6 9.01766 6.6 12Z",
|
|
17302
|
+
fill: "currentColor",
|
|
17303
|
+
fillOpacity: "0.1"
|
|
17304
|
+
}
|
|
17305
|
+
),
|
|
17306
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
17307
|
+
"path",
|
|
17308
|
+
{
|
|
17309
|
+
d: "M21 12C21 13.9006 20.3983 15.7524 19.2812 17.2901C18.164 18.8277 16.5887 19.9722 14.7812 20.5595C12.9736 21.1468 11.0264 21.1468 9.21885 20.5595C7.41126 19.9722 5.836 18.8277 4.71885 17.2901C3.60169 15.7524 3 13.9006 3 12C3 10.0994 3.60169 8.24756 4.71885 6.70993C5.836 5.1723 7.41126 4.02781 9.21885 3.44049C11.0264 2.85317 12.9736 2.85317 14.7812 3.44049L13.6687 6.8643C12.5841 6.5119 11.4159 6.5119 10.3313 6.86429C9.24675 7.21669 8.3016 7.90338 7.63131 8.82596C6.96102 9.74854 6.6 10.8596 6.6 12C6.6 13.1404 6.96102 14.2515 7.63131 15.174C8.3016 16.0966 9.24675 16.7833 10.3313 17.1357C11.4159 17.4881 12.5841 17.4881 13.6687 17.1357C14.7532 16.7833 15.6984 16.0966 16.3687 15.174C17.039 14.2515 17.4 13.1404 17.4 12H21Z",
|
|
17310
|
+
fill: "currentColor"
|
|
17311
|
+
}
|
|
17312
|
+
)
|
|
17313
|
+
]
|
|
17314
|
+
}
|
|
17315
|
+
);
|
|
17316
|
+
},
|
|
17287
17317
|
// ** User **
|
|
17288
17318
|
"user-circle": ({ className, fill }) => {
|
|
17289
17319
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
@@ -20705,7 +20735,7 @@ Select.displayName = "Select";
|
|
|
20705
20735
|
var select_default = Select;
|
|
20706
20736
|
var select2 = tv({
|
|
20707
20737
|
slots: {
|
|
20708
|
-
base: ["group", "flex flex-col"],
|
|
20738
|
+
base: ["group/select", "flex flex-col"],
|
|
20709
20739
|
label: ["flex", "items-center"],
|
|
20710
20740
|
selectWrapper: [
|
|
20711
20741
|
"flex",
|
|
@@ -20713,8 +20743,9 @@ var select2 = tv({
|
|
|
20713
20743
|
"bg-transparent",
|
|
20714
20744
|
"border-neutral-main",
|
|
20715
20745
|
"transition duration-200",
|
|
20716
|
-
"group-has-[p]:border-danger-main",
|
|
20717
|
-
"group-has-[p]:text-danger-main"
|
|
20746
|
+
"group-has-[p]/select:border-danger-main",
|
|
20747
|
+
"group-has-[p]/select:text-danger-main",
|
|
20748
|
+
"group-has-[p]/select:bg-danger-soft"
|
|
20718
20749
|
],
|
|
20719
20750
|
select: [
|
|
20720
20751
|
"w-full",
|
|
@@ -20723,7 +20754,7 @@ var select2 = tv({
|
|
|
20723
20754
|
"cursor-inherit",
|
|
20724
20755
|
"cursor-pointer",
|
|
20725
20756
|
"placeholder:text-neutral-main",
|
|
20726
|
-
"group-has-[p]:text-danger-main",
|
|
20757
|
+
"group-has-[p]/select:text-danger-main",
|
|
20727
20758
|
"focus-visible:outline-none"
|
|
20728
20759
|
],
|
|
20729
20760
|
optionsWrapper: ["w-[240px]", "border", "bg-background", "cursor-pointer", "overflow-y-auto"],
|
|
@@ -20732,7 +20763,7 @@ var select2 = tv({
|
|
|
20732
20763
|
variants: {
|
|
20733
20764
|
variant: {
|
|
20734
20765
|
solid: {
|
|
20735
|
-
selectWrapper: "bg-trans-soft hover:bg-trans-light data-[expanded=true]:bg-trans-light group-has-[p]:bg-danger-soft"
|
|
20766
|
+
selectWrapper: "bg-trans-soft hover:bg-trans-light data-[expanded=true]:bg-trans-light group-has-[p]/select:bg-danger-soft"
|
|
20736
20767
|
},
|
|
20737
20768
|
normal: {
|
|
20738
20769
|
selectWrapper: "border hover:bg-trans-soft data-[expanded=true]:bg-trans-soft"
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
select_default
|
|
4
|
-
} from "../../chunk-4VIEZ5FT.mjs";
|
|
5
|
-
import "../../chunk-LY6LJRUX.mjs";
|
|
6
|
-
import "../../chunk-S3QS5B7F.mjs";
|
|
7
|
-
import "../../chunk-ZYIIXWVY.mjs";
|
|
8
|
-
import "../../chunk-PRUAIZTU.mjs";
|
|
9
|
-
import "../../chunk-IOV7MEPG.mjs";
|
|
10
|
-
import "../../chunk-E3G5QXSH.mjs";
|
|
11
2
|
import {
|
|
12
3
|
userEvent
|
|
13
4
|
} from "../../chunk-S4DTK5GI.mjs";
|
|
5
|
+
import {
|
|
6
|
+
select_default
|
|
7
|
+
} from "../../chunk-2BCJZILI.mjs";
|
|
8
|
+
import "../../chunk-S3QS5B7F.mjs";
|
|
9
|
+
import "../../chunk-RZZWHI6O.mjs";
|
|
14
10
|
import {
|
|
15
11
|
act,
|
|
16
12
|
render
|
|
17
13
|
} from "../../chunk-FNPWLOGV.mjs";
|
|
14
|
+
import "../../chunk-ZYIIXWVY.mjs";
|
|
15
|
+
import "../../chunk-LCI6RPWE.mjs";
|
|
16
|
+
import "../../chunk-IOCRFIQF.mjs";
|
|
17
|
+
import "../../chunk-E3G5QXSH.mjs";
|
|
18
18
|
import "../../chunk-J725QONZ.mjs";
|
|
19
19
|
import "../../chunk-IZ6II3QA.mjs";
|
|
20
20
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { SelectOption } from './select.mjs';
|
|
3
3
|
import 'tailwind-variants';
|
|
4
4
|
import 'tailwind-variants/dist/config';
|
|
@@ -19,8 +19,8 @@ declare const useSelect: ({ options, defaultOption, onChange }: SelectHookProps)
|
|
|
19
19
|
selectedOption: SelectOption | undefined;
|
|
20
20
|
targetRect: TargetRect | null;
|
|
21
21
|
optionWrapperHeight: number;
|
|
22
|
-
selectWrapperRef:
|
|
23
|
-
optionWrapperRef:
|
|
22
|
+
selectWrapperRef: React.RefObject<HTMLDivElement>;
|
|
23
|
+
optionWrapperRef: React.RefObject<HTMLDivElement>;
|
|
24
24
|
handleToggleSelect: () => void;
|
|
25
25
|
handleChangeOption: (option: SelectOption) => void;
|
|
26
26
|
calculatePositionWithScroll: (targetRect: TargetRect, optionWrapperHeight: number) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
import { SelectOption } from './select.js';
|
|
3
3
|
import 'tailwind-variants';
|
|
4
4
|
import 'tailwind-variants/dist/config';
|
|
@@ -19,8 +19,8 @@ declare const useSelect: ({ options, defaultOption, onChange }: SelectHookProps)
|
|
|
19
19
|
selectedOption: SelectOption | undefined;
|
|
20
20
|
targetRect: TargetRect | null;
|
|
21
21
|
optionWrapperHeight: number;
|
|
22
|
-
selectWrapperRef:
|
|
23
|
-
optionWrapperRef:
|
|
22
|
+
selectWrapperRef: React.RefObject<HTMLDivElement>;
|
|
23
|
+
optionWrapperRef: React.RefObject<HTMLDivElement>;
|
|
24
24
|
handleToggleSelect: () => void;
|
|
25
25
|
handleChangeOption: (option: SelectOption) => void;
|
|
26
26
|
calculatePositionWithScroll: (targetRect: TargetRect, optionWrapperHeight: number) => {
|
|
@@ -156,18 +156,18 @@ var slider = tv({
|
|
|
156
156
|
size: {
|
|
157
157
|
sm: {
|
|
158
158
|
track: "h-[2px]",
|
|
159
|
-
thumb: ["w-[
|
|
159
|
+
thumb: ["w-[6px] h-[6px]", "hover:shadow-[0px_0px_0px_2px]"],
|
|
160
160
|
label: "text-sm",
|
|
161
161
|
value: "text-sm"
|
|
162
162
|
},
|
|
163
163
|
md: {
|
|
164
164
|
track: "h-[4px]",
|
|
165
|
-
thumb: ["w-[
|
|
165
|
+
thumb: ["w-[8px] h-[8px]", "hover:shadow-[0px_0px_0px_3px]"],
|
|
166
166
|
label: "text-md",
|
|
167
167
|
value: "text-md"
|
|
168
168
|
},
|
|
169
169
|
lg: {
|
|
170
|
-
track: "h-[
|
|
170
|
+
track: "h-[6px]",
|
|
171
171
|
thumb: ["w-[12px] h-[12px]", "hover:shadow-[0px_0px_0px_4px]"],
|
|
172
172
|
label: "text-lg",
|
|
173
173
|
value: "text-lg"
|
|
@@ -183,6 +183,11 @@ var slider = tv({
|
|
|
183
183
|
thumb: "bg-secondary-main"
|
|
184
184
|
}
|
|
185
185
|
},
|
|
186
|
+
gradient: {
|
|
187
|
+
true: {
|
|
188
|
+
filter: ["bg-gradient-to-r", "from-primary-main", "to-secondary-main"]
|
|
189
|
+
}
|
|
190
|
+
},
|
|
186
191
|
fullWidth: {
|
|
187
192
|
true: {
|
|
188
193
|
base: "w-full"
|
|
@@ -200,7 +205,7 @@ var slider = tv({
|
|
|
200
205
|
},
|
|
201
206
|
true: {
|
|
202
207
|
thumb: ["bg-neutral-light", "hover:shadow-none", "cursor-default"],
|
|
203
|
-
filter: ["bg-neutral-light", "cursor-default"]
|
|
208
|
+
filter: ["bg-neutral-light", "from-none", "to-none", "cursor-default"]
|
|
204
209
|
}
|
|
205
210
|
}
|
|
206
211
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as tailwind_variants from 'tailwind-variants';
|
|
2
2
|
import { VariantProps } from 'tailwind-variants';
|
|
3
3
|
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
4
|
-
import * as
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import { ComponentPropsWithRef } from 'react';
|
|
6
6
|
import { SlotsToClasses } from '../../utils/types.mjs';
|
|
7
7
|
|
|
@@ -14,7 +14,7 @@ interface Props extends Omit<ComponentPropsWithRef<"input">, "ref" | "size" | "o
|
|
|
14
14
|
onChange?: (value: number) => void;
|
|
15
15
|
}
|
|
16
16
|
type SliderProps = Props & SliderVariantProps;
|
|
17
|
-
declare const Slider:
|
|
17
|
+
declare const Slider: React.ForwardRefExoticComponent<Props & SliderVariantProps & React.RefAttributes<HTMLInputElement>>;
|
|
18
18
|
|
|
19
19
|
declare const slider: tailwind_variants.TVReturnType<{
|
|
20
20
|
size: {
|
|
@@ -47,6 +47,11 @@ declare const slider: tailwind_variants.TVReturnType<{
|
|
|
47
47
|
thumb: string;
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
|
+
gradient: {
|
|
51
|
+
true: {
|
|
52
|
+
filter: string[];
|
|
53
|
+
};
|
|
54
|
+
};
|
|
50
55
|
fullWidth: {
|
|
51
56
|
true: {
|
|
52
57
|
base: string;
|
|
@@ -83,6 +88,7 @@ declare const slider: tailwind_variants.TVReturnType<{
|
|
|
83
88
|
fullWidth?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
84
89
|
isDisabled?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
85
90
|
hideThumb?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
91
|
+
gradient?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
86
92
|
} | undefined;
|
|
87
93
|
} & tailwind_variants_dist_config.TWMConfig & {
|
|
88
94
|
twMergeConfig: {
|
|
@@ -135,6 +141,11 @@ declare const slider: tailwind_variants.TVReturnType<{
|
|
|
135
141
|
thumb: string;
|
|
136
142
|
};
|
|
137
143
|
};
|
|
144
|
+
gradient: {
|
|
145
|
+
true: {
|
|
146
|
+
filter: string[];
|
|
147
|
+
};
|
|
148
|
+
};
|
|
138
149
|
fullWidth: {
|
|
139
150
|
true: {
|
|
140
151
|
base: string;
|
|
@@ -195,6 +206,11 @@ declare const slider: tailwind_variants.TVReturnType<{
|
|
|
195
206
|
thumb: string;
|
|
196
207
|
};
|
|
197
208
|
};
|
|
209
|
+
gradient: {
|
|
210
|
+
true: {
|
|
211
|
+
filter: string[];
|
|
212
|
+
};
|
|
213
|
+
};
|
|
198
214
|
fullWidth: {
|
|
199
215
|
true: {
|
|
200
216
|
base: string;
|
|
@@ -255,6 +271,11 @@ declare const slider: tailwind_variants.TVReturnType<{
|
|
|
255
271
|
thumb: string;
|
|
256
272
|
};
|
|
257
273
|
};
|
|
274
|
+
gradient: {
|
|
275
|
+
true: {
|
|
276
|
+
filter: string[];
|
|
277
|
+
};
|
|
278
|
+
};
|
|
258
279
|
fullWidth: {
|
|
259
280
|
true: {
|
|
260
281
|
base: string;
|
|
@@ -306,6 +327,11 @@ declare const slider: tailwind_variants.TVReturnType<{
|
|
|
306
327
|
thumb: string;
|
|
307
328
|
};
|
|
308
329
|
};
|
|
330
|
+
gradient: {
|
|
331
|
+
true: {
|
|
332
|
+
filter: string[];
|
|
333
|
+
};
|
|
334
|
+
};
|
|
309
335
|
fullWidth: {
|
|
310
336
|
true: {
|
|
311
337
|
base: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as tailwind_variants from 'tailwind-variants';
|
|
2
2
|
import { VariantProps } from 'tailwind-variants';
|
|
3
3
|
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
4
|
-
import * as
|
|
4
|
+
import * as React from 'react';
|
|
5
5
|
import { ComponentPropsWithRef } from 'react';
|
|
6
6
|
import { SlotsToClasses } from '../../utils/types.js';
|
|
7
7
|
|
|
@@ -14,7 +14,7 @@ interface Props extends Omit<ComponentPropsWithRef<"input">, "ref" | "size" | "o
|
|
|
14
14
|
onChange?: (value: number) => void;
|
|
15
15
|
}
|
|
16
16
|
type SliderProps = Props & SliderVariantProps;
|
|
17
|
-
declare const Slider:
|
|
17
|
+
declare const Slider: React.ForwardRefExoticComponent<Props & SliderVariantProps & React.RefAttributes<HTMLInputElement>>;
|
|
18
18
|
|
|
19
19
|
declare const slider: tailwind_variants.TVReturnType<{
|
|
20
20
|
size: {
|
|
@@ -47,6 +47,11 @@ declare const slider: tailwind_variants.TVReturnType<{
|
|
|
47
47
|
thumb: string;
|
|
48
48
|
};
|
|
49
49
|
};
|
|
50
|
+
gradient: {
|
|
51
|
+
true: {
|
|
52
|
+
filter: string[];
|
|
53
|
+
};
|
|
54
|
+
};
|
|
50
55
|
fullWidth: {
|
|
51
56
|
true: {
|
|
52
57
|
base: string;
|
|
@@ -83,6 +88,7 @@ declare const slider: tailwind_variants.TVReturnType<{
|
|
|
83
88
|
fullWidth?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
84
89
|
isDisabled?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
85
90
|
hideThumb?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
91
|
+
gradient?: boolean | ("sm" | "md" | "lg" | "xl" | "2xl")[] | undefined;
|
|
86
92
|
} | undefined;
|
|
87
93
|
} & tailwind_variants_dist_config.TWMConfig & {
|
|
88
94
|
twMergeConfig: {
|
|
@@ -135,6 +141,11 @@ declare const slider: tailwind_variants.TVReturnType<{
|
|
|
135
141
|
thumb: string;
|
|
136
142
|
};
|
|
137
143
|
};
|
|
144
|
+
gradient: {
|
|
145
|
+
true: {
|
|
146
|
+
filter: string[];
|
|
147
|
+
};
|
|
148
|
+
};
|
|
138
149
|
fullWidth: {
|
|
139
150
|
true: {
|
|
140
151
|
base: string;
|
|
@@ -195,6 +206,11 @@ declare const slider: tailwind_variants.TVReturnType<{
|
|
|
195
206
|
thumb: string;
|
|
196
207
|
};
|
|
197
208
|
};
|
|
209
|
+
gradient: {
|
|
210
|
+
true: {
|
|
211
|
+
filter: string[];
|
|
212
|
+
};
|
|
213
|
+
};
|
|
198
214
|
fullWidth: {
|
|
199
215
|
true: {
|
|
200
216
|
base: string;
|
|
@@ -255,6 +271,11 @@ declare const slider: tailwind_variants.TVReturnType<{
|
|
|
255
271
|
thumb: string;
|
|
256
272
|
};
|
|
257
273
|
};
|
|
274
|
+
gradient: {
|
|
275
|
+
true: {
|
|
276
|
+
filter: string[];
|
|
277
|
+
};
|
|
278
|
+
};
|
|
258
279
|
fullWidth: {
|
|
259
280
|
true: {
|
|
260
281
|
base: string;
|
|
@@ -306,6 +327,11 @@ declare const slider: tailwind_variants.TVReturnType<{
|
|
|
306
327
|
thumb: string;
|
|
307
328
|
};
|
|
308
329
|
};
|
|
330
|
+
gradient: {
|
|
331
|
+
true: {
|
|
332
|
+
filter: string[];
|
|
333
|
+
};
|
|
334
|
+
};
|
|
309
335
|
fullWidth: {
|
|
310
336
|
true: {
|
|
311
337
|
base: string;
|
|
@@ -155,18 +155,18 @@ var slider = tv({
|
|
|
155
155
|
size: {
|
|
156
156
|
sm: {
|
|
157
157
|
track: "h-[2px]",
|
|
158
|
-
thumb: ["w-[
|
|
158
|
+
thumb: ["w-[6px] h-[6px]", "hover:shadow-[0px_0px_0px_2px]"],
|
|
159
159
|
label: "text-sm",
|
|
160
160
|
value: "text-sm"
|
|
161
161
|
},
|
|
162
162
|
md: {
|
|
163
163
|
track: "h-[4px]",
|
|
164
|
-
thumb: ["w-[
|
|
164
|
+
thumb: ["w-[8px] h-[8px]", "hover:shadow-[0px_0px_0px_3px]"],
|
|
165
165
|
label: "text-md",
|
|
166
166
|
value: "text-md"
|
|
167
167
|
},
|
|
168
168
|
lg: {
|
|
169
|
-
track: "h-[
|
|
169
|
+
track: "h-[6px]",
|
|
170
170
|
thumb: ["w-[12px] h-[12px]", "hover:shadow-[0px_0px_0px_4px]"],
|
|
171
171
|
label: "text-lg",
|
|
172
172
|
value: "text-lg"
|
|
@@ -182,6 +182,11 @@ var slider = tv({
|
|
|
182
182
|
thumb: "bg-secondary-main"
|
|
183
183
|
}
|
|
184
184
|
},
|
|
185
|
+
gradient: {
|
|
186
|
+
true: {
|
|
187
|
+
filter: ["bg-gradient-to-r", "from-primary-main", "to-secondary-main"]
|
|
188
|
+
}
|
|
189
|
+
},
|
|
185
190
|
fullWidth: {
|
|
186
191
|
true: {
|
|
187
192
|
base: "w-full"
|
|
@@ -199,7 +204,7 @@ var slider = tv({
|
|
|
199
204
|
},
|
|
200
205
|
true: {
|
|
201
206
|
thumb: ["bg-neutral-light", "hover:shadow-none", "cursor-default"],
|
|
202
|
-
filter: ["bg-neutral-light", "cursor-default"]
|
|
207
|
+
filter: ["bg-neutral-light", "from-none", "to-none", "cursor-default"]
|
|
203
208
|
}
|
|
204
209
|
}
|
|
205
210
|
},
|
|
@@ -13001,18 +13001,18 @@ var slider = tv({
|
|
|
13001
13001
|
size: {
|
|
13002
13002
|
sm: {
|
|
13003
13003
|
track: "h-[2px]",
|
|
13004
|
-
thumb: ["w-[
|
|
13004
|
+
thumb: ["w-[6px] h-[6px]", "hover:shadow-[0px_0px_0px_2px]"],
|
|
13005
13005
|
label: "text-sm",
|
|
13006
13006
|
value: "text-sm"
|
|
13007
13007
|
},
|
|
13008
13008
|
md: {
|
|
13009
13009
|
track: "h-[4px]",
|
|
13010
|
-
thumb: ["w-[
|
|
13010
|
+
thumb: ["w-[8px] h-[8px]", "hover:shadow-[0px_0px_0px_3px]"],
|
|
13011
13011
|
label: "text-md",
|
|
13012
13012
|
value: "text-md"
|
|
13013
13013
|
},
|
|
13014
13014
|
lg: {
|
|
13015
|
-
track: "h-[
|
|
13015
|
+
track: "h-[6px]",
|
|
13016
13016
|
thumb: ["w-[12px] h-[12px]", "hover:shadow-[0px_0px_0px_4px]"],
|
|
13017
13017
|
label: "text-lg",
|
|
13018
13018
|
value: "text-lg"
|
|
@@ -13028,6 +13028,11 @@ var slider = tv({
|
|
|
13028
13028
|
thumb: "bg-secondary-main"
|
|
13029
13029
|
}
|
|
13030
13030
|
},
|
|
13031
|
+
gradient: {
|
|
13032
|
+
true: {
|
|
13033
|
+
filter: ["bg-gradient-to-r", "from-primary-main", "to-secondary-main"]
|
|
13034
|
+
}
|
|
13035
|
+
},
|
|
13031
13036
|
fullWidth: {
|
|
13032
13037
|
true: {
|
|
13033
13038
|
base: "w-full"
|
|
@@ -13045,7 +13050,7 @@ var slider = tv({
|
|
|
13045
13050
|
},
|
|
13046
13051
|
true: {
|
|
13047
13052
|
thumb: ["bg-neutral-light", "hover:shadow-none", "cursor-default"],
|
|
13048
|
-
filter: ["bg-neutral-light", "cursor-default"]
|
|
13053
|
+
filter: ["bg-neutral-light", "from-none", "to-none", "cursor-default"]
|
|
13049
13054
|
}
|
|
13050
13055
|
}
|
|
13051
13056
|
},
|
|
@@ -107,15 +107,15 @@ Switch.displayName = "Switch";
|
|
|
107
107
|
var switch_default = Switch;
|
|
108
108
|
var toggle = (0, import_tailwind_variants.tv)({
|
|
109
109
|
slots: {
|
|
110
|
-
base: "group relative max-w-fit inline-flex items-center justify-start cursor-pointer",
|
|
110
|
+
base: ["group/switch", "relative", "max-w-fit", "inline-flex", "items-center", "justify-start", "cursor-pointer"],
|
|
111
111
|
outerWrapper: [
|
|
112
112
|
"relative",
|
|
113
113
|
"inline-flex",
|
|
114
114
|
"items-center",
|
|
115
115
|
"justify-start",
|
|
116
116
|
"flex-shrink-0",
|
|
117
|
-
"overflow-hidden",
|
|
118
117
|
"bg-neutral-soft",
|
|
118
|
+
"overflow-hidden",
|
|
119
119
|
"rounded-full",
|
|
120
120
|
"px-[2px]"
|
|
121
121
|
],
|
|
@@ -128,7 +128,7 @@ var toggle = (0, import_tailwind_variants.tv)({
|
|
|
128
128
|
"overflow-hidden",
|
|
129
129
|
"bg-neutral-light",
|
|
130
130
|
"rounded-full",
|
|
131
|
-
"group-has-[:checked]:bg-primary-main"
|
|
131
|
+
"group-has-[:checked]/switch:bg-primary-main"
|
|
132
132
|
],
|
|
133
133
|
thumb: [
|
|
134
134
|
"z-10",
|
|
@@ -140,33 +140,33 @@ var toggle = (0, import_tailwind_variants.tv)({
|
|
|
140
140
|
"rounded-full",
|
|
141
141
|
"origin-right"
|
|
142
142
|
],
|
|
143
|
-
label: "relative text-foreground select-none"
|
|
143
|
+
label: ["relative", "text-foreground", "select-none"]
|
|
144
144
|
},
|
|
145
145
|
variants: {
|
|
146
146
|
size: {
|
|
147
147
|
sm: {
|
|
148
|
-
outerWrapper: "w-[48px] h-[24px] px-[3px]",
|
|
149
|
-
wrapper: "w-[42px] h-[18px] px-[3px]",
|
|
150
|
-
thumb: ["w-[12px] h-[12px]", "group-has-[:checked]:ml-[24px]"],
|
|
148
|
+
outerWrapper: ["w-[48px]", "h-[24px]", "px-[3px]"],
|
|
149
|
+
wrapper: ["w-[42px]", "h-[18px]", "px-[3px]"],
|
|
150
|
+
thumb: ["w-[12px]", "h-[12px]", "group-has-[:checked]/switch:ml-[24px]"],
|
|
151
151
|
label: "text-sm"
|
|
152
152
|
},
|
|
153
153
|
md: {
|
|
154
|
-
outerWrapper: "w-[60px] h-[30px] px-[3px]",
|
|
155
|
-
wrapper: "w-[54px] h-[24px] px-[3px]",
|
|
156
|
-
thumb: ["w-[18px] h-[18px]", "group-has-[:checked]:ml-[30px]"],
|
|
154
|
+
outerWrapper: ["w-[60px]", "h-[30px]", "px-[3px]"],
|
|
155
|
+
wrapper: ["w-[54px]", "h-[24px]", "px-[3px]"],
|
|
156
|
+
thumb: ["w-[18px]", "h-[18px]", "group-has-[:checked]/switch:ml-[30px]"],
|
|
157
157
|
label: "text-md"
|
|
158
158
|
},
|
|
159
159
|
lg: {
|
|
160
|
-
outerWrapper: "w-[72px] h-[36px] px-[3px]",
|
|
161
|
-
wrapper: "w-[66px] h-[30px] px-[3px]",
|
|
162
|
-
thumb: ["w-[24px] h-[24px]", "group-has-[:checked]:ml-[36px]"],
|
|
160
|
+
outerWrapper: ["w-[72px]", "h-[36px]", "px-[3px]"],
|
|
161
|
+
wrapper: ["w-[66px]", "h-[30px]", "px-[3px]"],
|
|
162
|
+
thumb: ["w-[24px]", "h-[24px]", "group-has-[:checked]/switch:ml-[36px]"],
|
|
163
163
|
label: "text-lg"
|
|
164
164
|
}
|
|
165
165
|
},
|
|
166
166
|
isDisabled: {
|
|
167
167
|
true: {
|
|
168
168
|
base: "pointer-events-none",
|
|
169
|
-
wrapper: "bg-neutral-light group-has-[:checked]:bg-neutral-light",
|
|
169
|
+
wrapper: "bg-neutral-light group-has-[:checked]/switch:bg-neutral-light",
|
|
170
170
|
thumb: "bg-trans-soft"
|
|
171
171
|
}
|
|
172
172
|
},
|