@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
|
@@ -1043,7 +1043,7 @@ var require_react_is_development = __commonJS({
|
|
|
1043
1043
|
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
1044
1044
|
var Element = REACT_ELEMENT_TYPE;
|
|
1045
1045
|
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
1046
|
-
var
|
|
1046
|
+
var Fragment4 = REACT_FRAGMENT_TYPE;
|
|
1047
1047
|
var Lazy = REACT_LAZY_TYPE;
|
|
1048
1048
|
var Memo = REACT_MEMO_TYPE;
|
|
1049
1049
|
var Portal = REACT_PORTAL_TYPE;
|
|
@@ -1107,7 +1107,7 @@ var require_react_is_development = __commonJS({
|
|
|
1107
1107
|
exports2.ContextProvider = ContextProvider;
|
|
1108
1108
|
exports2.Element = Element;
|
|
1109
1109
|
exports2.ForwardRef = ForwardRef;
|
|
1110
|
-
exports2.Fragment =
|
|
1110
|
+
exports2.Fragment = Fragment4;
|
|
1111
1111
|
exports2.Lazy = Lazy;
|
|
1112
1112
|
exports2.Memo = Memo;
|
|
1113
1113
|
exports2.Portal = Portal;
|
|
@@ -13199,6 +13199,36 @@ var template = {
|
|
|
13199
13199
|
}
|
|
13200
13200
|
);
|
|
13201
13201
|
},
|
|
13202
|
+
loading: ({ className, fill }) => {
|
|
13203
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
13204
|
+
"svg",
|
|
13205
|
+
{
|
|
13206
|
+
width: "24",
|
|
13207
|
+
height: "24",
|
|
13208
|
+
viewBox: "0 0 24 24",
|
|
13209
|
+
fill: "none",
|
|
13210
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
13211
|
+
className,
|
|
13212
|
+
children: [
|
|
13213
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
13214
|
+
"path",
|
|
13215
|
+
{
|
|
13216
|
+
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",
|
|
13217
|
+
fill: "currentColor",
|
|
13218
|
+
fillOpacity: "0.1"
|
|
13219
|
+
}
|
|
13220
|
+
),
|
|
13221
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
13222
|
+
"path",
|
|
13223
|
+
{
|
|
13224
|
+
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",
|
|
13225
|
+
fill: "currentColor"
|
|
13226
|
+
}
|
|
13227
|
+
)
|
|
13228
|
+
]
|
|
13229
|
+
}
|
|
13230
|
+
);
|
|
13231
|
+
},
|
|
13202
13232
|
// ** User **
|
|
13203
13233
|
"user-circle": ({ className, fill }) => {
|
|
13204
13234
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
@@ -16453,45 +16483,63 @@ var Icon = ({ name, size = "md", fill = false, className, onClick, ...props }) =
|
|
|
16453
16483
|
var Icon_default = Icon;
|
|
16454
16484
|
|
|
16455
16485
|
// src/components/button/button.tsx
|
|
16456
|
-
var import_react = require("react");
|
|
16486
|
+
var import_react = __toESM(require("react"));
|
|
16457
16487
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
16458
|
-
var Button = (0, import_react.forwardRef)(
|
|
16459
|
-
|
|
16460
|
-
|
|
16461
|
-
|
|
16462
|
-
|
|
16463
|
-
|
|
16464
|
-
|
|
16465
|
-
|
|
16466
|
-
|
|
16467
|
-
|
|
16468
|
-
|
|
16469
|
-
|
|
16470
|
-
|
|
16471
|
-
|
|
16472
|
-
|
|
16473
|
-
|
|
16474
|
-
|
|
16475
|
-
|
|
16476
|
-
|
|
16477
|
-
|
|
16478
|
-
|
|
16479
|
-
|
|
16480
|
-
|
|
16481
|
-
|
|
16482
|
-
|
|
16483
|
-
|
|
16484
|
-
)
|
|
16488
|
+
var Button = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
16489
|
+
const [props, variantProps] = mapPropsVariants(originalProps, buttonStyle.variantKeys);
|
|
16490
|
+
const { classNames, startContent, endContent, children, ...buttonProps } = props;
|
|
16491
|
+
const slots = (0, import_react.useMemo)(() => buttonStyle({ ...variantProps }), [variantProps]);
|
|
16492
|
+
const getBaseProps = (0, import_react.useCallback)(
|
|
16493
|
+
() => ({
|
|
16494
|
+
...buttonProps,
|
|
16495
|
+
ref,
|
|
16496
|
+
disabled: originalProps.isDisabled || originalProps.isLoading,
|
|
16497
|
+
"data-loading": originalProps.isLoading,
|
|
16498
|
+
className: slots.base({ class: classNames == null ? void 0 : classNames.base })
|
|
16499
|
+
}),
|
|
16500
|
+
[buttonProps, ref, originalProps.isDisabled, originalProps.isLoading, slots, classNames == null ? void 0 : classNames.base]
|
|
16501
|
+
);
|
|
16502
|
+
const getContentProps = (0, import_react.useCallback)(
|
|
16503
|
+
() => ({
|
|
16504
|
+
className: slots.content({ class: classNames == null ? void 0 : classNames.content }),
|
|
16505
|
+
size: originalProps.size
|
|
16506
|
+
}),
|
|
16507
|
+
[slots, classNames, originalProps.size]
|
|
16508
|
+
);
|
|
16509
|
+
const renderContent = (content) => {
|
|
16510
|
+
if (import_react.default.isValidElement(content)) {
|
|
16511
|
+
const existingProps = content.props;
|
|
16512
|
+
const mergedProps = {
|
|
16513
|
+
...getContentProps(),
|
|
16514
|
+
className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
|
|
16515
|
+
};
|
|
16516
|
+
return import_react.default.cloneElement(content, mergedProps);
|
|
16517
|
+
} else {
|
|
16518
|
+
const contentProps = getContentProps();
|
|
16519
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { ...contentProps, children: content });
|
|
16520
|
+
}
|
|
16521
|
+
};
|
|
16522
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("button", { ...getBaseProps(), children: originalProps.isLoading ? renderContent(/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: "loading", className: "animate-spin" })) : /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
|
|
16523
|
+
startContent && renderContent(startContent),
|
|
16524
|
+
children,
|
|
16525
|
+
endContent && renderContent(endContent)
|
|
16526
|
+
] }) });
|
|
16527
|
+
});
|
|
16485
16528
|
Button.displayName = "Button";
|
|
16486
16529
|
var button_default = Button;
|
|
16487
|
-
var
|
|
16488
|
-
|
|
16530
|
+
var buttonStyle = tv({
|
|
16531
|
+
slots: {
|
|
16532
|
+
base: "flex items-center justify-center border whitespace-nowrap transition duration-200 select-none",
|
|
16533
|
+
content: ""
|
|
16534
|
+
},
|
|
16489
16535
|
variants: {
|
|
16490
16536
|
variant: {
|
|
16491
16537
|
solid: "",
|
|
16492
16538
|
line: "",
|
|
16493
16539
|
tonal: "",
|
|
16494
|
-
trans:
|
|
16540
|
+
trans: {
|
|
16541
|
+
base: "bg-transparent border-transparent"
|
|
16542
|
+
},
|
|
16495
16543
|
ghost: ""
|
|
16496
16544
|
},
|
|
16497
16545
|
color: {
|
|
@@ -16504,23 +16552,46 @@ var button = tv({
|
|
|
16504
16552
|
danger: ""
|
|
16505
16553
|
},
|
|
16506
16554
|
size: {
|
|
16507
|
-
sm:
|
|
16508
|
-
|
|
16509
|
-
|
|
16555
|
+
sm: {
|
|
16556
|
+
base: "h-[24px] px-[8px] py-[4.5px] text-sm font-[500] rounded-sm gap-sm"
|
|
16557
|
+
},
|
|
16558
|
+
md: {
|
|
16559
|
+
base: "h-[30px] px-[16px] py-[6.5px] text-md font-[500] rounded-md gap-md"
|
|
16560
|
+
},
|
|
16561
|
+
lg: {
|
|
16562
|
+
base: "h-[36px] px-[24px] py-[8px] text-lg font-[500] rounded-lg gap-lg"
|
|
16563
|
+
}
|
|
16510
16564
|
},
|
|
16511
16565
|
radius: {
|
|
16512
|
-
default:
|
|
16513
|
-
|
|
16514
|
-
|
|
16566
|
+
default: {
|
|
16567
|
+
base: ""
|
|
16568
|
+
},
|
|
16569
|
+
full: {
|
|
16570
|
+
base: "rounded-full"
|
|
16571
|
+
},
|
|
16572
|
+
none: {
|
|
16573
|
+
base: "rounded-none"
|
|
16574
|
+
}
|
|
16515
16575
|
},
|
|
16516
16576
|
fullWidth: {
|
|
16517
|
-
true:
|
|
16577
|
+
true: {
|
|
16578
|
+
base: "w-full"
|
|
16579
|
+
}
|
|
16518
16580
|
},
|
|
16519
16581
|
isDisabled: {
|
|
16520
|
-
true:
|
|
16582
|
+
true: {
|
|
16583
|
+
base: "!bg-neutral-soft !border-neutral-soft !text-neutral-light pointer-events-none"
|
|
16584
|
+
}
|
|
16585
|
+
},
|
|
16586
|
+
isLoading: {
|
|
16587
|
+
true: {
|
|
16588
|
+
base: "pointer-events-none"
|
|
16589
|
+
}
|
|
16521
16590
|
},
|
|
16522
16591
|
isInGroup: {
|
|
16523
|
-
true:
|
|
16592
|
+
true: {
|
|
16593
|
+
base: "[&:not(:first-child):not(:last-child)]:rounded-none first:rounded-r-none last:rounded-l-none"
|
|
16594
|
+
}
|
|
16524
16595
|
}
|
|
16525
16596
|
},
|
|
16526
16597
|
defaultVariants: {
|
|
@@ -16529,6 +16600,7 @@ var button = tv({
|
|
|
16529
16600
|
color: "primary",
|
|
16530
16601
|
fullWidth: false,
|
|
16531
16602
|
isDisabled: false,
|
|
16603
|
+
isLoading: false,
|
|
16532
16604
|
isInGroup: false
|
|
16533
16605
|
},
|
|
16534
16606
|
compoundVariants: [
|
|
@@ -16536,230 +16608,533 @@ var button = tv({
|
|
|
16536
16608
|
{
|
|
16537
16609
|
variant: "solid",
|
|
16538
16610
|
color: "primary",
|
|
16539
|
-
class:
|
|
16611
|
+
class: {
|
|
16612
|
+
base: [
|
|
16613
|
+
"text-white",
|
|
16614
|
+
"bg-primary-main",
|
|
16615
|
+
"border-primary-main",
|
|
16616
|
+
"hover:bg-primary-dark",
|
|
16617
|
+
"hover:border-primary-dark",
|
|
16618
|
+
"data-[loading=true]:bg-primary-dark",
|
|
16619
|
+
"data-[loading=true]:border-primary-dark"
|
|
16620
|
+
]
|
|
16621
|
+
}
|
|
16540
16622
|
},
|
|
16541
16623
|
{
|
|
16542
16624
|
variant: "solid",
|
|
16543
16625
|
color: "secondary",
|
|
16544
|
-
class:
|
|
16626
|
+
class: {
|
|
16627
|
+
base: [
|
|
16628
|
+
"text-white",
|
|
16629
|
+
"bg-secondary-main",
|
|
16630
|
+
"border-secondary-main",
|
|
16631
|
+
"hover:bg-secondary-dark",
|
|
16632
|
+
"hover:border-secondary-dark",
|
|
16633
|
+
"data-[loading=true]:bg-secondary-dark",
|
|
16634
|
+
"data-[loading=true]:border-secondary-dark"
|
|
16635
|
+
]
|
|
16636
|
+
}
|
|
16545
16637
|
},
|
|
16546
16638
|
{
|
|
16547
16639
|
variant: "solid",
|
|
16548
16640
|
color: "neutral",
|
|
16549
|
-
class:
|
|
16641
|
+
class: {
|
|
16642
|
+
base: [
|
|
16643
|
+
"text-white",
|
|
16644
|
+
"bg-neutral-main",
|
|
16645
|
+
"border-neutral-main",
|
|
16646
|
+
"hover:bg-neutral-dark",
|
|
16647
|
+
"hover:border-neutral-dark",
|
|
16648
|
+
"data-[loading=true]:bg-neutral-dark",
|
|
16649
|
+
"data-[loading=true]:border-neutral-dark"
|
|
16650
|
+
]
|
|
16651
|
+
}
|
|
16550
16652
|
},
|
|
16551
16653
|
{
|
|
16552
16654
|
variant: "solid",
|
|
16553
16655
|
color: "info",
|
|
16554
|
-
class:
|
|
16656
|
+
class: {
|
|
16657
|
+
base: [
|
|
16658
|
+
"text-white",
|
|
16659
|
+
"bg-info-main",
|
|
16660
|
+
"border-info-main",
|
|
16661
|
+
"hover:bg-info-dark",
|
|
16662
|
+
"hover:border-info-dark",
|
|
16663
|
+
"data-[loading=true]:bg-info-dark",
|
|
16664
|
+
"data-[loading=true]:border-info-dark"
|
|
16665
|
+
]
|
|
16666
|
+
}
|
|
16555
16667
|
},
|
|
16556
16668
|
{
|
|
16557
16669
|
variant: "solid",
|
|
16558
16670
|
color: "success",
|
|
16559
|
-
class:
|
|
16671
|
+
class: {
|
|
16672
|
+
base: [
|
|
16673
|
+
"text-white",
|
|
16674
|
+
"bg-success-main",
|
|
16675
|
+
"border-success-main",
|
|
16676
|
+
"hover:bg-success-dark",
|
|
16677
|
+
"hover:border-success-dark",
|
|
16678
|
+
"data-[loading=true]:bg-success-dark",
|
|
16679
|
+
"data-[loading=true]:border-success-dark"
|
|
16680
|
+
]
|
|
16681
|
+
}
|
|
16560
16682
|
},
|
|
16561
16683
|
{
|
|
16562
16684
|
variant: "solid",
|
|
16563
16685
|
color: "warning",
|
|
16564
|
-
class:
|
|
16686
|
+
class: {
|
|
16687
|
+
base: [
|
|
16688
|
+
"text-white",
|
|
16689
|
+
"bg-warning-main",
|
|
16690
|
+
"border-warning-main",
|
|
16691
|
+
"hover:bg-warning-dark",
|
|
16692
|
+
"hover:border-warning-dark",
|
|
16693
|
+
"data-[loading=true]:bg-warning-dark",
|
|
16694
|
+
"data-[loading=true]:border-warning-dark"
|
|
16695
|
+
]
|
|
16696
|
+
}
|
|
16565
16697
|
},
|
|
16566
16698
|
{
|
|
16567
16699
|
variant: "solid",
|
|
16568
16700
|
color: "danger",
|
|
16569
|
-
class:
|
|
16701
|
+
class: {
|
|
16702
|
+
base: [
|
|
16703
|
+
"text-white",
|
|
16704
|
+
"bg-danger-main",
|
|
16705
|
+
"border-danger-main",
|
|
16706
|
+
"hover:bg-danger-dark",
|
|
16707
|
+
"hover:border-danger-dark",
|
|
16708
|
+
"data-[loading=true]:bg-danger-dark",
|
|
16709
|
+
"data-[loading=true]:border-danger-dark"
|
|
16710
|
+
]
|
|
16711
|
+
}
|
|
16570
16712
|
},
|
|
16571
16713
|
// line & color
|
|
16572
16714
|
{
|
|
16573
16715
|
variant: "line",
|
|
16574
16716
|
color: "primary",
|
|
16575
|
-
class:
|
|
16717
|
+
class: {
|
|
16718
|
+
base: [
|
|
16719
|
+
"bg-transparent",
|
|
16720
|
+
"border-primary-main",
|
|
16721
|
+
"text-primary-main",
|
|
16722
|
+
"hover:bg-neutral-soft",
|
|
16723
|
+
"data-[loading=true]:bg-neutral-soft"
|
|
16724
|
+
]
|
|
16725
|
+
}
|
|
16576
16726
|
},
|
|
16577
16727
|
{
|
|
16578
16728
|
variant: "line",
|
|
16579
16729
|
color: "secondary",
|
|
16580
|
-
class:
|
|
16730
|
+
class: {
|
|
16731
|
+
base: [
|
|
16732
|
+
"bg-transparent",
|
|
16733
|
+
"border-secondary-main",
|
|
16734
|
+
"text-secondary-main",
|
|
16735
|
+
"hover:bg-neutral-soft",
|
|
16736
|
+
"data-[loading=true]:bg-neutral-soft"
|
|
16737
|
+
]
|
|
16738
|
+
}
|
|
16581
16739
|
},
|
|
16582
16740
|
{
|
|
16583
16741
|
variant: "line",
|
|
16584
16742
|
color: "neutral",
|
|
16585
|
-
class:
|
|
16743
|
+
class: {
|
|
16744
|
+
base: [
|
|
16745
|
+
"bg-transparent",
|
|
16746
|
+
"border-neutral-main",
|
|
16747
|
+
"text-neutral-main",
|
|
16748
|
+
"hover:bg-neutral-soft",
|
|
16749
|
+
"data-[loading=true]:bg-neutral-soft"
|
|
16750
|
+
]
|
|
16751
|
+
}
|
|
16586
16752
|
},
|
|
16587
16753
|
{
|
|
16588
16754
|
variant: "line",
|
|
16589
16755
|
color: "info",
|
|
16590
|
-
class:
|
|
16756
|
+
class: {
|
|
16757
|
+
base: [
|
|
16758
|
+
"bg-transparent",
|
|
16759
|
+
"border-info-main",
|
|
16760
|
+
"text-info-main",
|
|
16761
|
+
"hover:bg-neutral-soft",
|
|
16762
|
+
"data-[loading=true]:bg-neutral-soft"
|
|
16763
|
+
]
|
|
16764
|
+
}
|
|
16591
16765
|
},
|
|
16592
16766
|
{
|
|
16593
16767
|
variant: "line",
|
|
16594
16768
|
color: "success",
|
|
16595
|
-
class:
|
|
16769
|
+
class: {
|
|
16770
|
+
base: [
|
|
16771
|
+
"bg-transparent",
|
|
16772
|
+
"border-success-main",
|
|
16773
|
+
"text-success-main",
|
|
16774
|
+
"hover:bg-neutral-soft",
|
|
16775
|
+
"data-[loading=true]:bg-neutral-soft"
|
|
16776
|
+
]
|
|
16777
|
+
}
|
|
16596
16778
|
},
|
|
16597
16779
|
{
|
|
16598
16780
|
variant: "line",
|
|
16599
16781
|
color: "warning",
|
|
16600
|
-
class:
|
|
16782
|
+
class: {
|
|
16783
|
+
base: [
|
|
16784
|
+
"bg-transparent",
|
|
16785
|
+
"border-warning-main",
|
|
16786
|
+
"text-warning-main",
|
|
16787
|
+
"hover:bg-neutral-soft",
|
|
16788
|
+
"data-[loading=true]:bg-neutral-soft"
|
|
16789
|
+
]
|
|
16790
|
+
}
|
|
16601
16791
|
},
|
|
16602
16792
|
{
|
|
16603
16793
|
variant: "line",
|
|
16604
16794
|
color: "danger",
|
|
16605
|
-
class:
|
|
16795
|
+
class: {
|
|
16796
|
+
base: [
|
|
16797
|
+
"bg-transparent",
|
|
16798
|
+
"border-danger-main",
|
|
16799
|
+
"text-danger-main",
|
|
16800
|
+
"hover:bg-neutral-soft",
|
|
16801
|
+
"data-[loading=true]:bg-neutral-soft"
|
|
16802
|
+
]
|
|
16803
|
+
}
|
|
16606
16804
|
},
|
|
16607
16805
|
// tonal & color
|
|
16608
16806
|
{
|
|
16609
16807
|
variant: "tonal",
|
|
16610
16808
|
color: "primary",
|
|
16611
|
-
class:
|
|
16809
|
+
class: {
|
|
16810
|
+
base: [
|
|
16811
|
+
"bg-primary-soft",
|
|
16812
|
+
"border-primary-soft",
|
|
16813
|
+
"text-primary-main",
|
|
16814
|
+
"hover:border-primary-light",
|
|
16815
|
+
"hover:bg-primary-light",
|
|
16816
|
+
"data-[loading=true]:border-primary-light",
|
|
16817
|
+
"data-[loading=true]:bg-primary-light"
|
|
16818
|
+
]
|
|
16819
|
+
}
|
|
16612
16820
|
},
|
|
16613
16821
|
{
|
|
16614
16822
|
variant: "tonal",
|
|
16615
16823
|
color: "secondary",
|
|
16616
|
-
class:
|
|
16824
|
+
class: {
|
|
16825
|
+
base: [
|
|
16826
|
+
"bg-secondary-soft",
|
|
16827
|
+
"border-secondary-soft",
|
|
16828
|
+
"text-secondary-main",
|
|
16829
|
+
"hover:border-secondary-light",
|
|
16830
|
+
"hover:bg-secondary-light",
|
|
16831
|
+
"data-[loading=true]:border-secondary-light",
|
|
16832
|
+
"data-[loading=true]:bg-secondary-light"
|
|
16833
|
+
]
|
|
16834
|
+
}
|
|
16617
16835
|
},
|
|
16618
16836
|
{
|
|
16619
16837
|
variant: "tonal",
|
|
16620
16838
|
color: "neutral",
|
|
16621
|
-
class:
|
|
16839
|
+
class: {
|
|
16840
|
+
base: [
|
|
16841
|
+
"bg-neutral-soft",
|
|
16842
|
+
"border-neutral-soft",
|
|
16843
|
+
"text-neutral-main",
|
|
16844
|
+
"hover:border-neutral-light",
|
|
16845
|
+
"hover:bg-neutral-light",
|
|
16846
|
+
"data-[loading=true]:border-neutral-light",
|
|
16847
|
+
"data-[loading=true]:bg-neutral-light"
|
|
16848
|
+
]
|
|
16849
|
+
}
|
|
16622
16850
|
},
|
|
16623
16851
|
{
|
|
16624
16852
|
variant: "tonal",
|
|
16625
16853
|
color: "info",
|
|
16626
|
-
class:
|
|
16854
|
+
class: {
|
|
16855
|
+
base: [
|
|
16856
|
+
"bg-info-soft",
|
|
16857
|
+
"border-info-soft",
|
|
16858
|
+
"text-info-main",
|
|
16859
|
+
"hover:border-info-light",
|
|
16860
|
+
"hover:bg-info-light",
|
|
16861
|
+
"data-[loading=true]:border-info-light",
|
|
16862
|
+
"data-[loading=true]:bg-info-light"
|
|
16863
|
+
]
|
|
16864
|
+
}
|
|
16627
16865
|
},
|
|
16628
16866
|
{
|
|
16629
16867
|
variant: "tonal",
|
|
16630
16868
|
color: "success",
|
|
16631
|
-
class:
|
|
16869
|
+
class: {
|
|
16870
|
+
base: [
|
|
16871
|
+
"bg-success-soft",
|
|
16872
|
+
"border-success-soft",
|
|
16873
|
+
"text-success-main",
|
|
16874
|
+
"hover:border-success-light",
|
|
16875
|
+
"hover:bg-success-light",
|
|
16876
|
+
"data-[loading=true]:border-success-light",
|
|
16877
|
+
"data-[loading=true]:bg-success-light"
|
|
16878
|
+
]
|
|
16879
|
+
}
|
|
16632
16880
|
},
|
|
16633
16881
|
{
|
|
16634
16882
|
variant: "tonal",
|
|
16635
16883
|
color: "warning",
|
|
16636
|
-
class:
|
|
16884
|
+
class: {
|
|
16885
|
+
base: [
|
|
16886
|
+
"bg-warning-soft",
|
|
16887
|
+
"border-warning-soft",
|
|
16888
|
+
"text-warning-main",
|
|
16889
|
+
"hover:border-warning-light",
|
|
16890
|
+
"hover:bg-warning-light",
|
|
16891
|
+
"data-[loading=true]:border-warning-light",
|
|
16892
|
+
"data-[loading=true]:bg-warning-light"
|
|
16893
|
+
]
|
|
16894
|
+
}
|
|
16637
16895
|
},
|
|
16638
16896
|
{
|
|
16639
16897
|
variant: "tonal",
|
|
16640
16898
|
color: "danger",
|
|
16641
|
-
class:
|
|
16899
|
+
class: {
|
|
16900
|
+
base: [
|
|
16901
|
+
"bg-danger-soft",
|
|
16902
|
+
"border-danger-soft",
|
|
16903
|
+
"text-danger-main",
|
|
16904
|
+
"hover:border-danger-light",
|
|
16905
|
+
"hover:bg-danger-light",
|
|
16906
|
+
"data-[loading=true]:border-danger-light",
|
|
16907
|
+
"data-[loading=true]:bg-danger-light"
|
|
16908
|
+
]
|
|
16909
|
+
}
|
|
16642
16910
|
},
|
|
16643
16911
|
// trans & color
|
|
16644
16912
|
{
|
|
16645
16913
|
variant: "trans",
|
|
16646
16914
|
color: "primary",
|
|
16647
|
-
class:
|
|
16915
|
+
class: {
|
|
16916
|
+
base: [
|
|
16917
|
+
"text-primary-main",
|
|
16918
|
+
"border-transparent",
|
|
16919
|
+
"hover:bg-primary-soft",
|
|
16920
|
+
"hover:text-primary-main",
|
|
16921
|
+
"hover:border-primary-soft",
|
|
16922
|
+
"data-[loading=true]:bg-primary-soft",
|
|
16923
|
+
"data-[loading=true]:text-primary-main",
|
|
16924
|
+
"data-[loading=true]:border-primary-soft"
|
|
16925
|
+
]
|
|
16926
|
+
}
|
|
16648
16927
|
},
|
|
16649
16928
|
{
|
|
16650
16929
|
variant: "trans",
|
|
16651
16930
|
color: "secondary",
|
|
16652
|
-
class:
|
|
16931
|
+
class: {
|
|
16932
|
+
base: [
|
|
16933
|
+
"text-secondary-main",
|
|
16934
|
+
"border-transparent",
|
|
16935
|
+
"hover:bg-secondary-soft",
|
|
16936
|
+
"hover:text-secondary-main",
|
|
16937
|
+
"hover:border-secondary-soft",
|
|
16938
|
+
"data-[loading=true]:bg-secondary-soft",
|
|
16939
|
+
"data-[loading=true]:text-secondary-main",
|
|
16940
|
+
"data-[loading=true]:border-secondary-soft"
|
|
16941
|
+
]
|
|
16942
|
+
}
|
|
16653
16943
|
},
|
|
16654
16944
|
{
|
|
16655
16945
|
variant: "trans",
|
|
16656
16946
|
color: "neutral",
|
|
16657
|
-
class:
|
|
16947
|
+
class: {
|
|
16948
|
+
base: [
|
|
16949
|
+
"text-neutral-main",
|
|
16950
|
+
"border-transparent",
|
|
16951
|
+
"hover:bg-neutral-soft",
|
|
16952
|
+
"hover:text-neutral-main",
|
|
16953
|
+
"hover:border-neutral-soft",
|
|
16954
|
+
"data-[loading=true]:bg-neutral-soft",
|
|
16955
|
+
"data-[loading=true]:text-neutral-main",
|
|
16956
|
+
"data-[loading=true]:border-neutral-soft"
|
|
16957
|
+
]
|
|
16958
|
+
}
|
|
16658
16959
|
},
|
|
16659
16960
|
{
|
|
16660
16961
|
variant: "trans",
|
|
16661
16962
|
color: "info",
|
|
16662
|
-
class:
|
|
16963
|
+
class: {
|
|
16964
|
+
base: [
|
|
16965
|
+
"text-info-main",
|
|
16966
|
+
"border-transparent",
|
|
16967
|
+
"hover:bg-info-soft",
|
|
16968
|
+
"hover:text-info-main",
|
|
16969
|
+
"hover:border-info-soft",
|
|
16970
|
+
"data-[loading=true]:bg-info-soft",
|
|
16971
|
+
"data-[loading=true]:text-info-main",
|
|
16972
|
+
"data-[loading=true]:border-info-soft"
|
|
16973
|
+
]
|
|
16974
|
+
}
|
|
16663
16975
|
},
|
|
16664
16976
|
{
|
|
16665
16977
|
variant: "trans",
|
|
16666
16978
|
color: "success",
|
|
16667
|
-
class:
|
|
16979
|
+
class: {
|
|
16980
|
+
base: [
|
|
16981
|
+
"text-success-main",
|
|
16982
|
+
"border-transparent",
|
|
16983
|
+
"hover:bg-success-soft",
|
|
16984
|
+
"hover:text-success-main",
|
|
16985
|
+
"hover:border-success-soft",
|
|
16986
|
+
"data-[loading=true]:bg-success-soft",
|
|
16987
|
+
"data-[loading=true]:text-success-main",
|
|
16988
|
+
"data-[loading=true]:border-success-soft"
|
|
16989
|
+
]
|
|
16990
|
+
}
|
|
16668
16991
|
},
|
|
16669
16992
|
{
|
|
16670
16993
|
variant: "trans",
|
|
16671
16994
|
color: "warning",
|
|
16672
|
-
class:
|
|
16995
|
+
class: {
|
|
16996
|
+
base: [
|
|
16997
|
+
"text-warning-main",
|
|
16998
|
+
"border-transparent",
|
|
16999
|
+
"hover:bg-warning-soft",
|
|
17000
|
+
"hover:text-warning-main",
|
|
17001
|
+
"hover:border-warning-soft",
|
|
17002
|
+
"data-[loading=true]:bg-warning-soft",
|
|
17003
|
+
"data-[loading=true]:text-warning-main",
|
|
17004
|
+
"data-[loading=true]:border-warning-soft"
|
|
17005
|
+
]
|
|
17006
|
+
}
|
|
16673
17007
|
},
|
|
16674
17008
|
{
|
|
16675
17009
|
variant: "trans",
|
|
16676
17010
|
color: "danger",
|
|
16677
|
-
class:
|
|
17011
|
+
class: {
|
|
17012
|
+
base: [
|
|
17013
|
+
"text-danger-main",
|
|
17014
|
+
"border-transparent",
|
|
17015
|
+
"hover:bg-danger-soft",
|
|
17016
|
+
"hover:text-danger-main",
|
|
17017
|
+
"hover:border-danger-soft",
|
|
17018
|
+
"data-[loading=true]:bg-danger-soft",
|
|
17019
|
+
"data-[loading=true]:text-danger-main",
|
|
17020
|
+
"data-[loading=true]:border-danger-soft"
|
|
17021
|
+
]
|
|
17022
|
+
}
|
|
16678
17023
|
},
|
|
16679
17024
|
// ghost & color
|
|
16680
17025
|
{
|
|
16681
17026
|
variant: "ghost",
|
|
16682
17027
|
color: "primary",
|
|
16683
|
-
class:
|
|
17028
|
+
class: {
|
|
17029
|
+
base: [
|
|
17030
|
+
"text-primary-main",
|
|
17031
|
+
"border-primary-main",
|
|
17032
|
+
"hover:text-white",
|
|
17033
|
+
"hover:bg-primary-main",
|
|
17034
|
+
"data-[loading=true]:text-white",
|
|
17035
|
+
"data-[loading=true]:bg-primary-main"
|
|
17036
|
+
]
|
|
17037
|
+
}
|
|
16684
17038
|
},
|
|
16685
17039
|
{
|
|
16686
17040
|
variant: "ghost",
|
|
16687
17041
|
color: "secondary",
|
|
16688
|
-
class:
|
|
17042
|
+
class: {
|
|
17043
|
+
base: [
|
|
17044
|
+
"text-secondary-main",
|
|
17045
|
+
"border-secondary-main",
|
|
17046
|
+
"hover:text-white",
|
|
17047
|
+
"hover:bg-secondary-main",
|
|
17048
|
+
"data-[loading=true]:text-white",
|
|
17049
|
+
"data-[loading=true]:bg-secondary-main"
|
|
17050
|
+
]
|
|
17051
|
+
}
|
|
16689
17052
|
},
|
|
16690
17053
|
{
|
|
16691
17054
|
variant: "ghost",
|
|
16692
17055
|
color: "neutral",
|
|
16693
|
-
class:
|
|
17056
|
+
class: {
|
|
17057
|
+
base: [
|
|
17058
|
+
"text-neutral-main",
|
|
17059
|
+
"border-neutral-main",
|
|
17060
|
+
"hover:text-white",
|
|
17061
|
+
"hover:bg-neutral-main",
|
|
17062
|
+
"data-[loading=true]:text-white",
|
|
17063
|
+
"data-[loading=true]:bg-neutral-main"
|
|
17064
|
+
]
|
|
17065
|
+
}
|
|
16694
17066
|
},
|
|
16695
17067
|
{
|
|
16696
17068
|
variant: "ghost",
|
|
16697
17069
|
color: "info",
|
|
16698
|
-
class:
|
|
17070
|
+
class: {
|
|
17071
|
+
base: [
|
|
17072
|
+
"text-info-main",
|
|
17073
|
+
"border-info-main",
|
|
17074
|
+
"hover:text-white",
|
|
17075
|
+
"hover:bg-info-main",
|
|
17076
|
+
"data-[loading=true]:text-white",
|
|
17077
|
+
"data-[loading=true]:bg-info-main"
|
|
17078
|
+
]
|
|
17079
|
+
}
|
|
16699
17080
|
},
|
|
16700
17081
|
{
|
|
16701
17082
|
variant: "ghost",
|
|
16702
17083
|
color: "success",
|
|
16703
|
-
class:
|
|
17084
|
+
class: {
|
|
17085
|
+
base: [
|
|
17086
|
+
"text-success-main",
|
|
17087
|
+
"border-success-main",
|
|
17088
|
+
"hover:text-white",
|
|
17089
|
+
"hover:bg-success-main",
|
|
17090
|
+
"data-[loading=true]:text-white",
|
|
17091
|
+
"data-[loading=true]:bg-success-main"
|
|
17092
|
+
]
|
|
17093
|
+
}
|
|
16704
17094
|
},
|
|
16705
17095
|
{
|
|
16706
17096
|
variant: "ghost",
|
|
16707
17097
|
color: "warning",
|
|
16708
|
-
class:
|
|
17098
|
+
class: {
|
|
17099
|
+
base: [
|
|
17100
|
+
"text-warning-main",
|
|
17101
|
+
"border-warning-main",
|
|
17102
|
+
"hover:text-white",
|
|
17103
|
+
"hover:bg-warning-main",
|
|
17104
|
+
"data-[loading=true]:text-white",
|
|
17105
|
+
"data-[loading=true]:bg-warning-main"
|
|
17106
|
+
]
|
|
17107
|
+
}
|
|
16709
17108
|
},
|
|
16710
17109
|
{
|
|
16711
17110
|
variant: "ghost",
|
|
16712
17111
|
color: "danger",
|
|
16713
|
-
class:
|
|
16714
|
-
|
|
16715
|
-
|
|
16716
|
-
|
|
16717
|
-
|
|
16718
|
-
|
|
16719
|
-
|
|
16720
|
-
|
|
16721
|
-
|
|
16722
|
-
|
|
16723
|
-
variant: ["line", "ghost"],
|
|
16724
|
-
color: "secondary",
|
|
16725
|
-
isInGroup: true,
|
|
16726
|
-
class: ["shadow-none", "border", "[&:not(:last-child)]:border-r-0", "border-secondary-main"]
|
|
16727
|
-
},
|
|
16728
|
-
{
|
|
16729
|
-
variant: ["line", "ghost"],
|
|
16730
|
-
color: "neutral",
|
|
16731
|
-
isInGroup: true,
|
|
16732
|
-
class: ["shadow-none", "border", "[&:not(:last-child)]:border-r-0", "border-neutral-main"]
|
|
16733
|
-
},
|
|
16734
|
-
{
|
|
16735
|
-
variant: ["line", "ghost"],
|
|
16736
|
-
color: "info",
|
|
16737
|
-
isInGroup: true,
|
|
16738
|
-
class: ["shadow-none", "border", "[&:not(:last-child)]:border-r-0", "border-info-main"]
|
|
16739
|
-
},
|
|
16740
|
-
{
|
|
16741
|
-
variant: ["line", "ghost"],
|
|
16742
|
-
color: "success",
|
|
16743
|
-
isInGroup: true,
|
|
16744
|
-
class: ["shadow-none", "border", "[&:not(:last-child)]:border-r-0", "border-success-main"]
|
|
16745
|
-
},
|
|
16746
|
-
{
|
|
16747
|
-
variant: ["line", "ghost"],
|
|
16748
|
-
color: "warning",
|
|
16749
|
-
isInGroup: true,
|
|
16750
|
-
class: ["shadow-none", "border", "[&:not(:last-child)]:border-r-0", "border-warning-main"]
|
|
17112
|
+
class: {
|
|
17113
|
+
base: [
|
|
17114
|
+
"text-danger-main",
|
|
17115
|
+
"border-danger-main",
|
|
17116
|
+
"hover:text-white",
|
|
17117
|
+
"hover:bg-danger-main",
|
|
17118
|
+
"data-[loading=true]:text-white",
|
|
17119
|
+
"data-[loading=true]:bg-danger-main"
|
|
17120
|
+
]
|
|
17121
|
+
}
|
|
16751
17122
|
},
|
|
17123
|
+
// variant && isInGroup
|
|
16752
17124
|
{
|
|
16753
17125
|
variant: ["line", "ghost"],
|
|
16754
|
-
color: "danger",
|
|
16755
17126
|
isInGroup: true,
|
|
16756
|
-
class:
|
|
17127
|
+
class: {
|
|
17128
|
+
base: "[&:not(:last-child)]:border-r-0"
|
|
17129
|
+
}
|
|
16757
17130
|
},
|
|
16758
17131
|
// variant && isDisabled
|
|
16759
17132
|
{
|
|
16760
17133
|
variant: ["line", "ghost"],
|
|
16761
17134
|
isDisabled: true,
|
|
16762
|
-
class:
|
|
17135
|
+
class: {
|
|
17136
|
+
base: "!border-neutral-light"
|
|
17137
|
+
}
|
|
16763
17138
|
}
|
|
16764
17139
|
]
|
|
16765
17140
|
});
|
|
@@ -16876,7 +17251,7 @@ var Modal = (0, import_react2.forwardRef)((originalProps, ref) => {
|
|
|
16876
17251
|
}, [isOpen, isKeyboardDismissDisabled, onCancel]);
|
|
16877
17252
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: isOpen && (0, import_react_dom2.createPortal)(
|
|
16878
17253
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { ...getBackdropProps(), children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { ref, ...getModalWrapperProps(), children: [
|
|
16879
|
-
|
|
17254
|
+
typeof icon === "string" ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { ...getIconProps(), children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon_default, { name: icon, className: "w-[80px] h-[80px]" }) }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { ...getIconProps(), children: icon }),
|
|
16880
17255
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { ...getBodyWrapperProps(), children: [
|
|
16881
17256
|
showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(Icon_default, { name: "close", ...getCloseIconProps(), onClick: onCancel }),
|
|
16882
17257
|
/* @__PURE__ */ (0, import_jsx_runtime4.jsxs)("div", { ...getBodyProps(), children: [
|
|
@@ -16899,23 +17274,16 @@ Modal.displayName = "Modal";
|
|
|
16899
17274
|
var modal_default = Modal;
|
|
16900
17275
|
var modal = tv({
|
|
16901
17276
|
slots: {
|
|
16902
|
-
backdrop: ["relative w-screen h-screen fixed inset-0 bg-black/60", "z-[
|
|
17277
|
+
backdrop: ["relative w-screen h-screen fixed inset-0 bg-black/60", "z-[900]"],
|
|
16903
17278
|
modalWrapper: ["group/modal", "absolute", "top-1/2", "-translate-y-1/2", "left-1/2", "-translate-x-1/2"],
|
|
16904
|
-
icon: [
|
|
16905
|
-
"absolute",
|
|
16906
|
-
"top-[20px]",
|
|
16907
|
-
"left-1/2",
|
|
16908
|
-
"-translate-x-1/2",
|
|
16909
|
-
"z-10",
|
|
16910
|
-
"group-data-[modal-icon-visibility=true]/modal:top-[80px]"
|
|
16911
|
-
],
|
|
17279
|
+
icon: ["absolute", "top-[20px]", "left-1/2", "-translate-x-1/2", "z-10"],
|
|
16912
17280
|
closeIcon: [
|
|
16913
17281
|
"absolute",
|
|
16914
17282
|
"top-[20px]",
|
|
16915
17283
|
"right-[20px]",
|
|
16916
17284
|
"cursor-pointer",
|
|
16917
17285
|
"z-10",
|
|
16918
|
-
"group-data-[
|
|
17286
|
+
"group-data-[icon-visibility=true]/modal:top-[80px]"
|
|
16919
17287
|
],
|
|
16920
17288
|
titleWrapper: ["relative", "flex", "flex-col", "gap-[10px]"],
|
|
16921
17289
|
title: "text-h5 text-center text-foreground",
|
|
@@ -16927,8 +17295,8 @@ var modal = tv({
|
|
|
16927
17295
|
"bg-background",
|
|
16928
17296
|
"shadow-drop shadow-foreground/20 rounded-xxlg",
|
|
16929
17297
|
"overflow-hidden",
|
|
16930
|
-
"group-data-[
|
|
16931
|
-
"group-data-[
|
|
17298
|
+
"group-data-[icon-visibility=true]/modal:mt-[60px]",
|
|
17299
|
+
"group-data-[icon-visibility=true]/modal:pt-[60px]"
|
|
16932
17300
|
],
|
|
16933
17301
|
body: ["flex", "flex-col", "gap-[20px]"],
|
|
16934
17302
|
content: ["text-md text-center", "break-words", "bg-neutral-soft", "rounded-[5px]", "p-[10px]"],
|