@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
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
backdrop_default
|
|
4
|
+
} from "./chunk-P4GNXDMO.mjs";
|
|
5
|
+
import {
|
|
6
|
+
button_default
|
|
7
|
+
} from "./chunk-63JRWMWN.mjs";
|
|
8
|
+
import {
|
|
9
|
+
Icon_default
|
|
10
|
+
} from "./chunk-A6UUVHC6.mjs";
|
|
11
|
+
import {
|
|
12
|
+
mapPropsVariants
|
|
13
|
+
} from "./chunk-E3G5QXSH.mjs";
|
|
14
|
+
import {
|
|
15
|
+
tv
|
|
16
|
+
} from "./chunk-DPWUIAVC.mjs";
|
|
17
|
+
|
|
18
|
+
// src/components/modal/modal.tsx
|
|
19
|
+
import { forwardRef, useMemo, useEffect } from "react";
|
|
20
|
+
import { createPortal } from "react-dom";
|
|
21
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
22
|
+
var Modal = forwardRef((props, ref) => {
|
|
23
|
+
const [localProps, variantProps] = mapPropsVariants(props, modal.variantKeys);
|
|
24
|
+
const {
|
|
25
|
+
isOpen,
|
|
26
|
+
iconName,
|
|
27
|
+
title,
|
|
28
|
+
content,
|
|
29
|
+
confirmButtonText,
|
|
30
|
+
cancelButtonText,
|
|
31
|
+
showCloseButton = true,
|
|
32
|
+
isKeyboardDismissDisabled = false,
|
|
33
|
+
hasBackdrop = true,
|
|
34
|
+
onConfirm,
|
|
35
|
+
onCancel,
|
|
36
|
+
extraFooter,
|
|
37
|
+
classNames,
|
|
38
|
+
...restProps
|
|
39
|
+
} = localProps;
|
|
40
|
+
const variant = props.variant || "horizontal";
|
|
41
|
+
const slots = useMemo(() => modal(variantProps), [variantProps]);
|
|
42
|
+
useEffect(() => {
|
|
43
|
+
document.body.classList.toggle("overflow-hidden", !!isOpen);
|
|
44
|
+
if (!isOpen || isKeyboardDismissDisabled) return;
|
|
45
|
+
const handleKeyDown = (e) => {
|
|
46
|
+
if (e.key === "Escape") onCancel == null ? void 0 : onCancel();
|
|
47
|
+
};
|
|
48
|
+
document.addEventListener("keydown", handleKeyDown);
|
|
49
|
+
return () => {
|
|
50
|
+
document.removeEventListener("keydown", handleKeyDown);
|
|
51
|
+
document.body.classList.remove("overflow-hidden");
|
|
52
|
+
};
|
|
53
|
+
}, [isOpen, isKeyboardDismissDisabled, onCancel]);
|
|
54
|
+
if (!isOpen) return null;
|
|
55
|
+
return createPortal(
|
|
56
|
+
/* @__PURE__ */ jsxs(Fragment, { children: [
|
|
57
|
+
hasBackdrop && /* @__PURE__ */ jsx(backdrop_default, { open: true }),
|
|
58
|
+
/* @__PURE__ */ jsxs("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), ...restProps, children: [
|
|
59
|
+
/* @__PURE__ */ jsxs("div", { className: slots.titleWrapper({ class: classNames == null ? void 0 : classNames.titleWrapper }), children: [
|
|
60
|
+
iconName && /* @__PURE__ */ jsx(
|
|
61
|
+
Icon_default,
|
|
62
|
+
{
|
|
63
|
+
name: iconName,
|
|
64
|
+
size: variant === "vertical" ? 40 : 30,
|
|
65
|
+
fill: true,
|
|
66
|
+
className: slots.icon({ class: classNames == null ? void 0 : classNames.icon })
|
|
67
|
+
}
|
|
68
|
+
),
|
|
69
|
+
title && /* @__PURE__ */ jsx("div", { className: slots.title({ class: classNames == null ? void 0 : classNames.title }), children: title })
|
|
70
|
+
] }),
|
|
71
|
+
showCloseButton && /* @__PURE__ */ jsx(Icon_default, { name: "close", className: slots.closeIcon({ class: classNames == null ? void 0 : classNames.closeIcon }), onClick: onCancel }),
|
|
72
|
+
typeof content === "string" ? /* @__PURE__ */ jsx("div", { className: slots.content({ class: classNames == null ? void 0 : classNames.content }), children: content }) : content,
|
|
73
|
+
(cancelButtonText || confirmButtonText) && /* @__PURE__ */ jsxs("div", { className: slots.footerWrapper({ class: classNames == null ? void 0 : classNames.footerWrapper }), children: [
|
|
74
|
+
/* @__PURE__ */ jsxs("div", { className: slots.footer({ class: classNames == null ? void 0 : classNames.footer }), children: [
|
|
75
|
+
cancelButtonText && /* @__PURE__ */ jsx(button_default, { variant: "outline", color: props.color, full: true, onClick: onCancel, children: cancelButtonText }),
|
|
76
|
+
confirmButtonText && /* @__PURE__ */ jsx(button_default, { color: props.color, full: true, onClick: onConfirm, children: confirmButtonText })
|
|
77
|
+
] }),
|
|
78
|
+
extraFooter
|
|
79
|
+
] })
|
|
80
|
+
] })
|
|
81
|
+
] }),
|
|
82
|
+
document.body
|
|
83
|
+
);
|
|
84
|
+
});
|
|
85
|
+
Modal.displayName = "Modal";
|
|
86
|
+
var modal_default = Modal;
|
|
87
|
+
var modal = tv({
|
|
88
|
+
slots: {
|
|
89
|
+
base: [
|
|
90
|
+
"group/modal",
|
|
91
|
+
"absolute",
|
|
92
|
+
"fixed",
|
|
93
|
+
"top-1/2",
|
|
94
|
+
"left-1/2",
|
|
95
|
+
"-translate-x-1/2",
|
|
96
|
+
"-translate-y-1/2",
|
|
97
|
+
"z-[50]",
|
|
98
|
+
"rounded-2xl",
|
|
99
|
+
"min-w-[340px]",
|
|
100
|
+
"flex",
|
|
101
|
+
"flex-col",
|
|
102
|
+
"justify-center",
|
|
103
|
+
"gap-20",
|
|
104
|
+
"p-20",
|
|
105
|
+
"bg-body-background",
|
|
106
|
+
"shadow-drop",
|
|
107
|
+
"shadow-foreground/20",
|
|
108
|
+
"rounded-2xl",
|
|
109
|
+
"overflow-hidden"
|
|
110
|
+
],
|
|
111
|
+
icon: [],
|
|
112
|
+
titleWrapper: ["flex", "items-center", "gap-10"],
|
|
113
|
+
title: ["text-xl", "font-extrabold", "text-body-foreground"],
|
|
114
|
+
content: ["text-md", "text-center", "break-words", "bg-trans-soft", "rounded-5", "p-lg", "text-body-foreground"],
|
|
115
|
+
footerWrapper: ["flex", "flex-col", "gap-5"],
|
|
116
|
+
footer: ["flex", "gap-10"],
|
|
117
|
+
closeIcon: ["absolute", "top-[20px]", "right-[20px]", "cursor-pointer", "z-60", "text-neutral-dark"]
|
|
118
|
+
},
|
|
119
|
+
variants: {
|
|
120
|
+
variant: {
|
|
121
|
+
vertical: { titleWrapper: ["flex-col"] },
|
|
122
|
+
horizontal: { titleWrapper: ["flex-row"] }
|
|
123
|
+
},
|
|
124
|
+
color: {
|
|
125
|
+
primary: { icon: ["text-primary-main"] },
|
|
126
|
+
secondary: { icon: ["text-secondary-main"] },
|
|
127
|
+
neutral: { icon: ["text-neutral-main"] },
|
|
128
|
+
success: { icon: ["text-success-main"] },
|
|
129
|
+
info: { icon: ["text-info-main"] },
|
|
130
|
+
warning: { icon: ["text-warning-main"] },
|
|
131
|
+
danger: { icon: ["text-danger-main"] }
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
defaultVariants: {
|
|
135
|
+
variant: "horizontal",
|
|
136
|
+
color: "primary"
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
export {
|
|
141
|
+
modal_default
|
|
142
|
+
};
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-F3HENRVM.mjs";
|
|
5
5
|
import {
|
|
6
6
|
input_default
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-S2T4GHJA.mjs";
|
|
8
8
|
import {
|
|
9
9
|
Icon_default
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-A6UUVHC6.mjs";
|
|
11
11
|
import {
|
|
12
12
|
clsx
|
|
13
13
|
} from "./chunk-27Y6K5NK.mjs";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-E3G5QXSH.mjs";
|
|
17
17
|
import {
|
|
18
18
|
tv
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-DPWUIAVC.mjs";
|
|
20
20
|
|
|
21
21
|
// src/components/pagination/pagination.tsx
|
|
22
22
|
import { forwardRef, useMemo, useState } from "react";
|
|
@@ -55,32 +55,34 @@ var Pagination = forwardRef((originalProps, ref) => {
|
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
|
-
return /* @__PURE__ */ jsxs("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }),
|
|
58
|
+
return /* @__PURE__ */ jsxs("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
59
59
|
/* @__PURE__ */ jsxs("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
60
|
+
/* @__PURE__ */ jsxs("div", { className: "flex", children: [
|
|
61
|
+
showFirstLastButtons && /* @__PURE__ */ jsx(
|
|
62
|
+
"div",
|
|
63
|
+
{
|
|
64
|
+
"aria-label": "firstPage",
|
|
65
|
+
"data-disabled": isFirstPageDisabled,
|
|
66
|
+
className: slots.icon({
|
|
67
|
+
class: clsx(classNames == null ? void 0 : classNames.icon, isFirstPageDisabled && "!text-neutral-light !cursor-default")
|
|
68
|
+
}),
|
|
69
|
+
onClick: !isFirstPageDisabled ? handleClickMovePage(1) : void 0,
|
|
70
|
+
children: /* @__PURE__ */ jsx(Icon_default, { name: "left-double", size })
|
|
71
|
+
}
|
|
72
|
+
),
|
|
73
|
+
/* @__PURE__ */ jsx(
|
|
74
|
+
"div",
|
|
75
|
+
{
|
|
76
|
+
"aria-label": "prevPage",
|
|
77
|
+
"data-disabled": isPrevPageDisabled,
|
|
78
|
+
className: slots.icon({
|
|
79
|
+
class: clsx(classNames == null ? void 0 : classNames.icon, isPrevPageDisabled && "!text-neutral-light !cursor-default")
|
|
80
|
+
}),
|
|
81
|
+
onClick: !isPrevPageDisabled ? handleClickMovePage(currentPage - 1) : void 0,
|
|
82
|
+
children: /* @__PURE__ */ jsx(Icon_default, { name: "left", size })
|
|
83
|
+
}
|
|
84
|
+
)
|
|
85
|
+
] }),
|
|
84
86
|
showPageNumber && pageList.map((page, index) => /* @__PURE__ */ jsx(
|
|
85
87
|
"div",
|
|
86
88
|
{
|
|
@@ -91,30 +93,32 @@ var Pagination = forwardRef((originalProps, ref) => {
|
|
|
91
93
|
},
|
|
92
94
|
index
|
|
93
95
|
)),
|
|
94
|
-
/* @__PURE__ */
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
96
|
+
/* @__PURE__ */ jsxs("div", { className: "flex", children: [
|
|
97
|
+
/* @__PURE__ */ jsx(
|
|
98
|
+
"div",
|
|
99
|
+
{
|
|
100
|
+
"aria-label": "nextPage",
|
|
101
|
+
"data-disabled": isNextPageDisabled,
|
|
102
|
+
className: slots.icon({
|
|
103
|
+
class: clsx(classNames == null ? void 0 : classNames.icon, isNextPageDisabled && "!text-neutral-light !cursor-default")
|
|
104
|
+
}),
|
|
105
|
+
onClick: !isNextPageDisabled ? handleClickMovePage(currentPage + 1) : void 0,
|
|
106
|
+
children: /* @__PURE__ */ jsx(Icon_default, { name: "right", size })
|
|
107
|
+
}
|
|
108
|
+
),
|
|
109
|
+
showFirstLastButtons && /* @__PURE__ */ jsx(
|
|
110
|
+
"div",
|
|
111
|
+
{
|
|
112
|
+
"aria-label": "lastPage",
|
|
113
|
+
"data-disabled": isLastPageDisabled,
|
|
114
|
+
className: slots.icon({
|
|
115
|
+
class: clsx(classNames == null ? void 0 : classNames.icon, isLastPageDisabled && "!text-neutral-light !cursor-default")
|
|
116
|
+
}),
|
|
117
|
+
onClick: !isLastPageDisabled ? handleClickMovePage(totalPage) : void 0,
|
|
118
|
+
children: /* @__PURE__ */ jsx(Icon_default, { name: "right-double", size })
|
|
119
|
+
}
|
|
120
|
+
)
|
|
121
|
+
] })
|
|
118
122
|
] }),
|
|
119
123
|
showPageLabel && /* @__PURE__ */ jsxs("span", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: [
|
|
120
124
|
/* @__PURE__ */ jsx(
|
|
@@ -141,8 +145,8 @@ var pagination_default = Pagination;
|
|
|
141
145
|
var paginationStyle = tv(
|
|
142
146
|
{
|
|
143
147
|
slots: {
|
|
144
|
-
base: ["flex", "items-center", "select-none", "gap-
|
|
145
|
-
wrapper: ["flex", "items-center", "overflow-hidden", "gap-
|
|
148
|
+
base: ["flex", "items-center", "select-none", "gap-20"],
|
|
149
|
+
wrapper: ["flex", "items-center", "overflow-hidden", "gap-5"],
|
|
146
150
|
icon: [
|
|
147
151
|
"flex",
|
|
148
152
|
"items-center",
|
|
@@ -164,15 +168,24 @@ var paginationStyle = tv(
|
|
|
164
168
|
"text-neutral-main",
|
|
165
169
|
"data-[selected=true]:font-bold"
|
|
166
170
|
],
|
|
167
|
-
label: ["whitespace-nowrap", "text-neutral-main", "flex", "items-center", "gap-
|
|
171
|
+
label: ["whitespace-nowrap", "text-neutral-main", "flex", "items-center", "gap-5", "text-sm"]
|
|
168
172
|
},
|
|
169
173
|
variants: {
|
|
170
174
|
variant: {
|
|
171
175
|
solid: {
|
|
172
|
-
button: ["rounded-
|
|
176
|
+
button: ["rounded-sm"]
|
|
173
177
|
},
|
|
174
178
|
underline: {
|
|
175
|
-
button: [
|
|
179
|
+
button: [
|
|
180
|
+
"rounded-0",
|
|
181
|
+
"relative",
|
|
182
|
+
"after:content-['']",
|
|
183
|
+
"after:absolute",
|
|
184
|
+
"after:inset-x-0",
|
|
185
|
+
"after:bottom-0",
|
|
186
|
+
"after:border-solid",
|
|
187
|
+
"after:border-transparent"
|
|
188
|
+
]
|
|
176
189
|
}
|
|
177
190
|
},
|
|
178
191
|
size: {
|
|
@@ -197,7 +210,7 @@ var paginationStyle = tv(
|
|
|
197
210
|
disabled: {
|
|
198
211
|
true: {
|
|
199
212
|
icon: ["!text-neutral-light", "!cursor-default"],
|
|
200
|
-
button: ["!text-neutral-light", "!cursor-default"]
|
|
213
|
+
button: ["!text-neutral-light", "!cursor-default", "data-[selected=true]:after:border-neutral-light"]
|
|
201
214
|
}
|
|
202
215
|
}
|
|
203
216
|
},
|
|
@@ -242,120 +255,64 @@ var paginationStyle = tv(
|
|
|
242
255
|
variant: "underline",
|
|
243
256
|
color: "primary",
|
|
244
257
|
class: {
|
|
245
|
-
button: [
|
|
258
|
+
button: [
|
|
259
|
+
"hover:text-primary-main",
|
|
260
|
+
"data-[selected=true]:text-primary-main",
|
|
261
|
+
"data-[selected=true]:after:border-primary-main"
|
|
262
|
+
],
|
|
246
263
|
icon: ["hover:text-primary-main", "data-[disabled=true]:hover:text-neutral-light"]
|
|
247
264
|
}
|
|
248
265
|
},
|
|
249
|
-
{
|
|
250
|
-
variant: "underline",
|
|
251
|
-
color: "primary",
|
|
252
|
-
size: "sm",
|
|
253
|
-
class: {
|
|
254
|
-
button: ["data-[selected=true]:shadow-[inset_0_-1px_0_0_var(--dn-primary-main)]"]
|
|
255
|
-
}
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
variant: "underline",
|
|
259
|
-
color: "primary",
|
|
260
|
-
size: "md",
|
|
261
|
-
class: {
|
|
262
|
-
button: ["data-[selected=true]:shadow-[inset_0_-1.25px_0_0_var(--dn-primary-main)]"]
|
|
263
|
-
}
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
variant: "underline",
|
|
267
|
-
color: "primary",
|
|
268
|
-
size: "lg",
|
|
269
|
-
class: {
|
|
270
|
-
button: ["data-[selected=true]:shadow-[inset_0_-1.5px_0_0_var(--dn-primary-main)]"]
|
|
271
|
-
}
|
|
272
|
-
},
|
|
273
|
-
{
|
|
274
|
-
variant: "underline",
|
|
275
|
-
color: "primary",
|
|
276
|
-
size: "xl",
|
|
277
|
-
class: {
|
|
278
|
-
button: ["data-[selected=true]:shadow-[inset_0_-1.75px_0_0_var(--dn-primary-main)]"]
|
|
279
|
-
}
|
|
280
|
-
},
|
|
281
266
|
{
|
|
282
267
|
variant: "underline",
|
|
283
268
|
color: "secondary",
|
|
284
269
|
class: {
|
|
285
|
-
button: [
|
|
270
|
+
button: [
|
|
271
|
+
"hover:text-secondary-main",
|
|
272
|
+
"data-[selected=true]:text-secondary-main",
|
|
273
|
+
"data-[selected=true]:after:border-secondary-main"
|
|
274
|
+
],
|
|
286
275
|
icon: ["hover:text-secondary-main", "data-[disabled=true]:hover:text-neutral-light"]
|
|
287
276
|
}
|
|
288
277
|
},
|
|
289
|
-
{
|
|
290
|
-
variant: "underline",
|
|
291
|
-
color: "secondary",
|
|
292
|
-
size: "sm",
|
|
293
|
-
class: {
|
|
294
|
-
button: ["data-[selected=true]:shadow-[inset_0_-1px_0_0_var(--dn-secondary-main)]"]
|
|
295
|
-
}
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
variant: "underline",
|
|
299
|
-
color: "secondary",
|
|
300
|
-
size: "md",
|
|
301
|
-
class: {
|
|
302
|
-
button: ["data-[selected=true]:shadow-[inset_0_-1.25px_0_0_var(--dn-secondary-main)]"]
|
|
303
|
-
}
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
variant: "underline",
|
|
307
|
-
color: "secondary",
|
|
308
|
-
size: "lg",
|
|
309
|
-
class: {
|
|
310
|
-
button: ["data-[selected=true]:shadow-[inset_0_-1.5px_0_0_var(--dn-secondary-main)]"]
|
|
311
|
-
}
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
variant: "underline",
|
|
315
|
-
color: "secondary",
|
|
316
|
-
size: "xl",
|
|
317
|
-
class: {
|
|
318
|
-
button: ["data-[selected=true]:shadow-[inset_0_-1.75px_0_0_var(--dn-secondary-main)]"]
|
|
319
|
-
}
|
|
320
|
-
},
|
|
321
278
|
{
|
|
322
279
|
variant: "underline",
|
|
323
280
|
color: "neutral",
|
|
324
281
|
class: {
|
|
325
|
-
button: [
|
|
282
|
+
button: [
|
|
283
|
+
"hover:text-neutral-dark",
|
|
284
|
+
"data-[selected=true]:text-neutral-dark",
|
|
285
|
+
"data-[selected=true]:after:border-neutral-main"
|
|
286
|
+
],
|
|
326
287
|
icon: ["hover:text-neutral-dark", "data-[disabled=true]:hover:text-neutral-light"]
|
|
327
288
|
}
|
|
328
289
|
},
|
|
329
290
|
{
|
|
330
291
|
variant: "underline",
|
|
331
|
-
color: "neutral",
|
|
332
292
|
size: "sm",
|
|
333
293
|
class: {
|
|
334
|
-
button: ["
|
|
294
|
+
button: ["after:border-b-sm"]
|
|
335
295
|
}
|
|
336
296
|
},
|
|
337
297
|
{
|
|
338
298
|
variant: "underline",
|
|
339
|
-
color: "neutral",
|
|
340
299
|
size: "md",
|
|
341
300
|
class: {
|
|
342
|
-
button: ["
|
|
301
|
+
button: ["after:border-b-md"]
|
|
343
302
|
}
|
|
344
303
|
},
|
|
345
304
|
{
|
|
346
305
|
variant: "underline",
|
|
347
|
-
color: "neutral",
|
|
348
306
|
size: "lg",
|
|
349
307
|
class: {
|
|
350
|
-
button: ["
|
|
308
|
+
button: ["after:border-b-lg"]
|
|
351
309
|
}
|
|
352
310
|
},
|
|
353
311
|
{
|
|
354
312
|
variant: "underline",
|
|
355
|
-
color: "neutral",
|
|
356
313
|
size: "xl",
|
|
357
314
|
class: {
|
|
358
|
-
button: ["
|
|
315
|
+
button: ["after:border-b-xl"]
|
|
359
316
|
}
|
|
360
317
|
}
|
|
361
318
|
],
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Icon_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-A6UUVHC6.mjs";
|
|
5
5
|
import {
|
|
6
6
|
mapPropsVariants
|
|
7
7
|
} from "./chunk-E3G5QXSH.mjs";
|
|
8
8
|
import {
|
|
9
9
|
tv
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DPWUIAVC.mjs";
|
|
11
11
|
|
|
12
12
|
// src/components/starRating/starRating.tsx
|
|
13
13
|
import { forwardRef, useMemo, useState } from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Icon_default
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-A6UUVHC6.mjs";
|
|
5
5
|
import {
|
|
6
6
|
clsx
|
|
7
7
|
} from "./chunk-27Y6K5NK.mjs";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
} from "./chunk-E3G5QXSH.mjs";
|
|
11
11
|
import {
|
|
12
12
|
tv
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-DPWUIAVC.mjs";
|
|
14
14
|
|
|
15
15
|
// src/components/toast/toast.tsx
|
|
16
16
|
import { forwardRef, useImperativeHandle, useMemo, useRef } from "react";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-E3G5QXSH.mjs";
|
|
12
12
|
import {
|
|
13
13
|
tv
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-DPWUIAVC.mjs";
|
|
15
15
|
|
|
16
16
|
// src/components/tooltip/tooltip.tsx
|
|
17
17
|
import { forwardRef, useCallback, useMemo, useRef, useState, useEffect } from "react";
|