@deepnoid/ui 0.1.19 → 0.1.21
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 +202 -183
- package/dist/assets/images/cogwheel.d.mts +2 -0
- package/dist/assets/images/cogwheel.d.ts +2 -0
- package/dist/assets/images/cogwheel.js +4 -0
- package/dist/assets/images/cogwheel.mjs +8 -0
- package/dist/assets/images/folder.d.mts +2 -0
- package/dist/assets/images/folder.d.ts +2 -0
- package/dist/assets/images/folder.js +4 -0
- package/dist/assets/images/folder.mjs +8 -0
- package/dist/chunk-2DLKV6TT.mjs +168 -0
- package/dist/{chunk-7TXQPX4O.mjs → chunk-2Y7IBUAZ.mjs} +19 -8
- package/dist/chunk-3BKCODIL.mjs +49 -0
- package/dist/{chunk-A7OXEUCC.mjs → chunk-3IU2RPSM.mjs} +75 -9
- package/dist/{chunk-3TJAGKKY.mjs → chunk-7CFOD7G4.mjs} +11 -9
- package/dist/chunk-7KUFDVGL.mjs +71 -0
- package/dist/chunk-7USF56CT.mjs +8 -0
- package/dist/{chunk-5ANQDLRS.mjs → chunk-DUPQBPI2.mjs} +4 -4
- package/dist/{chunk-K7Z6PVXE.mjs → chunk-EWZAHXN7.mjs} +7 -7
- package/dist/{chunk-BFM3LPBK.mjs → chunk-FBAR75U4.mjs} +4 -4
- package/dist/{chunk-RPDPB4JP.mjs → chunk-HQLSHEK6.mjs} +4 -4
- package/dist/{chunk-DADMVOYI.mjs → chunk-HWL7TPUN.mjs} +1 -1
- package/dist/chunk-IZM66FHP.mjs +8 -0
- package/dist/{chunk-QIDZXCYP.mjs → chunk-JHDYQCEE.mjs} +6 -6
- package/dist/chunk-MBLZYQCN.mjs +1 -0
- package/dist/{chunk-7A5M7DRD.mjs → chunk-MQI5SZWO.mjs} +7 -7
- package/dist/{chunk-3DPVPTHL.mjs → chunk-MV7RSV4D.mjs} +3 -3
- package/dist/chunk-MW7CSRIE.mjs +348 -0
- package/dist/chunk-OV7CZNXU.mjs +135 -0
- package/dist/{chunk-AG7AWQKH.mjs → chunk-Q6BZ76DI.mjs} +4 -4
- package/dist/{chunk-63WXGSTV.mjs → chunk-QHWFHOW2.mjs} +24 -14
- package/dist/{chunk-FONJYZKH.mjs → chunk-SDHQUYFI.mjs} +7 -7
- package/dist/{chunk-UHFJ7ZFM.mjs → chunk-UTC2D6GV.mjs} +6 -6
- package/dist/chunk-XGYQ6D3S.mjs +82 -0
- package/dist/{chunk-UYPVP36M.mjs → chunk-XQGD4ZIX.mjs} +1 -1
- package/dist/cogwheel-U2B3CWEL.png +0 -0
- package/dist/components/avatar/avatar.js +75 -9
- package/dist/components/avatar/avatar.mjs +2 -2
- package/dist/components/avatar/index.js +75 -9
- package/dist/components/avatar/index.mjs +2 -2
- package/dist/components/backdrop/backdrop.mjs +2 -2
- package/dist/components/backdrop/index.mjs +2 -2
- package/dist/components/breadcrumb/breadcrumb.js +75 -9
- package/dist/components/breadcrumb/breadcrumb.mjs +9 -9
- package/dist/components/breadcrumb/index.js +75 -9
- package/dist/components/breadcrumb/index.mjs +9 -9
- package/dist/components/button/button.js +75 -9
- package/dist/components/button/button.mjs +5 -5
- package/dist/components/button/icon-button.js +75 -9
- package/dist/components/button/icon-button.mjs +5 -5
- package/dist/components/button/index.js +75 -9
- package/dist/components/button/index.mjs +9 -9
- package/dist/components/button/text-button.mjs +3 -3
- package/dist/components/checkbox/checkbox.mjs +3 -3
- package/dist/components/checkbox/index.mjs +3 -3
- package/dist/components/chip/chip.js +75 -9
- package/dist/components/chip/chip.mjs +4 -4
- package/dist/components/chip/index.js +75 -9
- package/dist/components/chip/index.mjs +4 -4
- package/dist/components/dateTimePicker/calendar.js +75 -9
- package/dist/components/dateTimePicker/calendar.mjs +4 -4
- package/dist/components/dateTimePicker/dateTimePicker.js +75 -9
- package/dist/components/dateTimePicker/dateTimePicker.mjs +9 -9
- package/dist/components/dateTimePicker/index.js +75 -9
- package/dist/components/dateTimePicker/index.mjs +9 -9
- package/dist/components/dateTimePicker/timePicker.js +75 -9
- package/dist/components/dateTimePicker/timePicker.mjs +7 -7
- package/dist/components/icon/Icon.d.mts +6 -2
- package/dist/components/icon/Icon.d.ts +6 -2
- package/dist/components/icon/Icon.js +75 -9
- package/dist/components/icon/Icon.mjs +2 -2
- package/dist/components/icon/index.js +75 -9
- package/dist/components/icon/index.mjs +2 -2
- package/dist/components/icon/template.d.mts +2 -1
- package/dist/components/icon/template.d.ts +2 -1
- package/dist/components/icon/template.js +75 -9
- package/dist/components/icon/template.mjs +1 -1
- package/dist/components/input/index.js +89 -12
- package/dist/components/input/index.mjs +5 -5
- package/dist/components/input/input.js +89 -12
- package/dist/components/input/input.mjs +5 -5
- package/dist/components/list/index.js +75 -9
- package/dist/components/list/index.mjs +8 -8
- package/dist/components/list/list.mjs +2 -2
- package/dist/components/list/listItem.js +75 -9
- package/dist/components/list/listItem.mjs +5 -5
- package/dist/components/modal/index.d.mts +0 -3
- package/dist/components/modal/index.d.ts +0 -3
- package/dist/components/modal/index.js +205 -158
- package/dist/components/modal/index.mjs +11 -9
- package/dist/components/modal/modal.d.mts +43 -105
- package/dist/components/modal/modal.d.ts +43 -105
- package/dist/components/modal/modal.js +206 -164
- package/dist/components/modal/modal.mjs +12 -12
- package/dist/components/pagination/index.js +89 -12
- package/dist/components/pagination/index.mjs +6 -6
- package/dist/components/pagination/pagination.js +89 -12
- package/dist/components/pagination/pagination.mjs +6 -6
- package/dist/components/radio/index.mjs +3 -3
- package/dist/components/radio/radio.mjs +3 -3
- package/dist/components/ripple/index.mjs +3 -3
- package/dist/components/select/index.d.mts +1 -1
- package/dist/components/select/index.d.ts +1 -1
- package/dist/components/select/index.js +376 -295
- package/dist/components/select/index.mjs +5 -6
- package/dist/components/select/select.d.mts +190 -177
- package/dist/components/select/select.d.ts +190 -177
- package/dist/components/select/select.js +376 -295
- package/dist/components/select/select.mjs +5 -6
- package/dist/components/table/form-table.d.mts +52 -0
- package/dist/components/table/form-table.d.ts +52 -0
- package/dist/components/table/form-table.js +365 -0
- package/dist/components/table/form-table.mjs +9 -0
- package/dist/components/table/index.d.mts +2 -0
- package/dist/components/table/index.d.ts +2 -0
- package/dist/components/table/index.js +162 -30
- package/dist/components/table/index.mjs +15 -11
- package/dist/components/table/table-body.d.mts +3 -2
- package/dist/components/table/table-body.d.ts +3 -2
- package/dist/components/table/table-body.js +23 -13
- package/dist/components/table/table-body.mjs +4 -4
- package/dist/components/table/table-head.d.mts +2 -2
- package/dist/components/table/table-head.d.ts +2 -2
- package/dist/components/table/table-head.js +2 -2
- package/dist/components/table/table-head.mjs +4 -4
- package/dist/components/table/table.d.mts +2 -1
- package/dist/components/table/table.d.ts +2 -1
- package/dist/components/table/table.js +119 -30
- package/dist/components/table/table.mjs +10 -10
- package/dist/components/tabs/index.mjs +2 -2
- package/dist/components/tabs/tabs.mjs +2 -2
- package/dist/components/toast/index.js +239 -97
- package/dist/components/toast/index.mjs +6 -5
- package/dist/components/toast/toast.d.mts +40 -81
- package/dist/components/toast/toast.d.ts +40 -81
- package/dist/components/toast/toast.js +210 -56
- package/dist/components/toast/toast.mjs +5 -4
- package/dist/components/toast/use-toast.d.mts +6 -10
- package/dist/components/toast/use-toast.d.ts +6 -10
- package/dist/components/toast/use-toast.js +239 -97
- package/dist/components/toast/use-toast.mjs +6 -5
- package/dist/components/tooltip/index.mjs +2 -2
- package/dist/components/tooltip/tooltip.mjs +2 -2
- package/dist/components/tree/index.d.mts +2 -0
- package/dist/components/tree/index.d.ts +2 -0
- package/dist/components/tree/index.js +4371 -0
- package/dist/components/tree/index.mjs +15 -0
- package/dist/components/tree/tree.d.mts +20 -0
- package/dist/components/tree/tree.d.ts +20 -0
- package/dist/components/{select/option.js → tree/tree.js} +146 -74
- package/dist/components/tree/tree.mjs +14 -0
- package/dist/folder-RO3QTLGS.svg +9 -0
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +681 -545
- package/dist/index.mjs +71 -62
- package/package.json +1 -1
- package/types/images.d.ts +14 -0
- package/dist/chunk-5OBP42D6.mjs +0 -117
- package/dist/chunk-HDNQOLUJ.mjs +0 -83
- package/dist/chunk-MJT6ZW4C.mjs +0 -255
- package/dist/chunk-P6NVCCBZ.mjs +0 -76
- package/dist/chunk-RXIFDECK.mjs +0 -213
- package/dist/chunk-S3QS5B7F.mjs +0 -61
- package/dist/components/select/option.d.mts +0 -17
- package/dist/components/select/option.d.ts +0 -17
- package/dist/components/select/option.mjs +0 -12
- package/dist/components/select/useSelect.d.mts +0 -31
- package/dist/components/select/useSelect.d.ts +0 -31
- package/dist/components/select/useSelect.js +0 -84
- package/dist/components/select/useSelect.mjs +0 -8
- package/dist/{chunk-D6QI3DJG.mjs → chunk-7H5XPHY6.mjs} +4 -4
- package/dist/{chunk-2UUH2MBF.mjs → chunk-DX3KXNP6.mjs} +0 -0
- package/dist/{chunk-Z2537DF6.mjs → chunk-IL5ENWCR.mjs} +3 -3
- package/dist/{chunk-WFMFC7R6.mjs → chunk-KCOHU7X7.mjs} +4 -4
- package/dist/{chunk-LL6F3WDX.mjs → chunk-P5QCU457.mjs} +3 -3
- package/dist/{chunk-2YMAKIZ6.mjs → chunk-SSMMWMQC.mjs} +3 -3
- package/dist/{chunk-HIVPDIEP.mjs → chunk-UFVQPPPW.mjs} +3 -3
- package/dist/{chunk-QIRL6HY6.mjs → chunk-YIIFWADW.mjs} +4 -4
|
@@ -102,11 +102,10 @@ var require_plugin = __commonJS({
|
|
|
102
102
|
// src/components/modal/modal.tsx
|
|
103
103
|
var modal_exports = {};
|
|
104
104
|
__export(modal_exports, {
|
|
105
|
-
default: () => modal_default
|
|
106
|
-
modal: () => modal
|
|
105
|
+
default: () => modal_default
|
|
107
106
|
});
|
|
108
107
|
module.exports = __toCommonJS(modal_exports);
|
|
109
|
-
var
|
|
108
|
+
var import_react4 = require("react");
|
|
110
109
|
var import_react_dom = require("react-dom");
|
|
111
110
|
|
|
112
111
|
// src/utils/tailwind-variants.ts
|
|
@@ -784,23 +783,89 @@ var template = {
|
|
|
784
783
|
}
|
|
785
784
|
);
|
|
786
785
|
},
|
|
787
|
-
|
|
788
|
-
// ** Status **
|
|
789
|
-
plus: ({ className, fill }) => {
|
|
786
|
+
exclamation: ({ className, fill }) => {
|
|
790
787
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
791
788
|
"svg",
|
|
792
789
|
{
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
790
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
791
|
+
width: "18",
|
|
792
|
+
height: "18",
|
|
793
|
+
viewBox: "0 0 18 18",
|
|
796
794
|
fill: "none",
|
|
795
|
+
className,
|
|
796
|
+
children: fill ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
797
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
798
|
+
"path",
|
|
799
|
+
{
|
|
800
|
+
d: "M11.264 2.37077C11.2832 2.37715 11.3024 2.38353 11.3223 2.3901C12.3182 2.72483 13.1824 3.30575 13.9306 4.03468C13.9575 4.06039 13.9843 4.08609 14.0119 4.11257C14.1806 4.27693 14.33 4.45208 14.4754 4.63713C14.4981 4.66509 14.5208 4.69305 14.5442 4.72185C15.0188 5.31801 15.3774 6.01161 15.6224 6.73137C15.6303 6.75453 15.6382 6.77768 15.6464 6.80155C16.1308 8.2413 16.1125 9.82918 15.6224 11.2641C15.6105 11.2995 15.6105 11.2995 15.5983 11.3356C15.3948 11.9315 15.1066 12.5059 14.7335 13.0141C14.7221 13.0297 14.7107 13.0453 14.6989 13.0614C14.313 13.5865 13.8736 14.0779 13.3571 14.4772C13.3155 14.5109 13.3155 14.5109 13.273 14.5454C12.6801 15.0224 11.982 15.3801 11.264 15.6247C11.2408 15.6326 11.2177 15.6406 11.1938 15.6487C9.43757 16.2402 7.50979 16.0678 5.85241 15.2592C4.96204 14.8102 4.13267 14.1489 3.52213 13.3583C3.49962 13.3305 3.47711 13.3028 3.45392 13.2742C2.32855 11.8738 1.85507 9.99621 2.03839 8.22438C2.17342 7.0638 2.58402 5.9339 3.26407 4.98139C3.27714 4.96288 3.29022 4.94436 3.30369 4.92529C3.51689 4.62523 3.75292 4.35545 4.00958 4.09206C4.03773 4.06274 4.06588 4.03342 4.09403 4.00409C4.26597 3.8279 4.44681 3.67012 4.6404 3.5183C4.6683 3.49563 4.69621 3.47296 4.72496 3.4496C6.54339 2.00006 9.08031 1.63201 11.264 2.37077Z",
|
|
801
|
+
fill: "currentColor"
|
|
802
|
+
}
|
|
803
|
+
),
|
|
804
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
805
|
+
"path",
|
|
806
|
+
{
|
|
807
|
+
d: "M9.36648 5.85289C9.53634 5.9647 9.6533 6.12598 9.71812 6.32867C9.73452 6.40467 9.74201 6.47516 9.74238 6.55312C9.74254 6.57462 9.74269 6.59612 9.74284 6.61826C9.7429 6.64157 9.74296 6.66489 9.74302 6.68891C9.74315 6.71368 9.74329 6.73845 9.74344 6.76397C9.74385 6.84591 9.7441 6.92785 9.74431 7.00979C9.7444 7.03785 9.74448 7.06592 9.74457 7.09484C9.74497 7.22817 9.74528 7.3615 9.74545 7.49483C9.74568 7.66315 9.74639 7.83146 9.74732 7.99978C9.74787 8.11787 9.74805 8.23596 9.74812 8.35405C9.74823 8.41042 9.74847 8.46679 9.74886 8.52316C9.75351 9.23268 9.75351 9.23268 9.54833 9.48966C9.39246 9.65505 9.20768 9.73677 8.98973 9.75C8.78199 9.74035 8.59485 9.64627 8.44906 9.48814C8.28258 9.27909 8.24899 9.03597 8.25049 8.7678C8.25038 8.7429 8.25027 8.718 8.25015 8.69234C8.24987 8.61081 8.25006 8.5293 8.25027 8.44777C8.25023 8.39068 8.25017 8.33358 8.25009 8.27649C8.24999 8.15716 8.25013 8.03783 8.25043 7.9185C8.25079 7.76594 8.25058 7.6134 8.2502 7.46085C8.24997 7.34306 8.25004 7.22527 8.25021 7.10748C8.25025 7.05125 8.2502 6.99501 8.25005 6.93877C8.24989 6.86005 8.25014 6.78135 8.25049 6.70263C8.25036 6.67965 8.25023 6.65668 8.2501 6.63301C8.25225 6.37163 8.32078 6.1648 8.48128 5.96879C8.72644 5.71507 9.07274 5.68973 9.36648 5.85289Z",
|
|
808
|
+
fill: "white"
|
|
809
|
+
}
|
|
810
|
+
),
|
|
811
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
812
|
+
"path",
|
|
813
|
+
{
|
|
814
|
+
d: "M9.34541 10.8369C9.52938 10.9471 9.67125 11.1068 9.73271 11.3148C9.77656 11.529 9.73613 11.7317 9.62145 11.916C9.49889 12.0867 9.3528 12.1846 9.14957 12.2412C8.92053 12.2704 8.73922 12.2283 8.55045 12.0972C8.38043 11.959 8.27865 11.7781 8.25072 11.5592C8.24266 11.3506 8.30179 11.162 8.43381 10.9998C8.68322 10.7451 9.02878 10.6749 9.34541 10.8369Z",
|
|
815
|
+
fill: "white"
|
|
816
|
+
}
|
|
817
|
+
)
|
|
818
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
819
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
820
|
+
"path",
|
|
821
|
+
{
|
|
822
|
+
d: "M5.03711 3.84082C6.60875 2.5881 8.77805 2.2038 10.7188 2.72754L11.1035 2.84473L11.1064 2.8457C11.125 2.85187 11.144 2.85694 11.1631 2.86328V2.86426C11.9606 3.13233 12.6739 3.57547 13.3125 4.14258L13.582 4.39258L13.585 4.39551L13.666 4.47363C13.7385 4.54442 13.8078 4.61844 13.876 4.69629L14.082 4.94629L14.0869 4.95215L14.1562 5.03711C14.5346 5.51326 14.8361 6.06221 15.0586 6.6416L15.1494 6.89258V6.89355L15.1738 6.96387C15.5931 8.21222 15.6047 9.58552 15.2295 10.8506L15.1494 11.1025L15.1484 11.1045C15.1368 11.1391 15.1363 11.1401 15.125 11.1738C14.9596 11.6581 14.7354 12.1232 14.4541 12.542L14.3301 12.7178L14.3291 12.7197C14.3181 12.7348 14.3072 12.7501 14.2959 12.7656C13.9281 13.2659 13.5205 13.7197 13.0518 14.082L13.3457 14.4629L13.0508 14.0811L13.042 14.0889L12.958 14.1572C12.4859 14.5367 11.9342 14.8378 11.3535 15.0605L11.1025 15.1514H11.1016C11.0793 15.159 11.0571 15.1669 11.0342 15.1748C9.51234 15.6873 7.84224 15.5817 6.36426 14.9443L6.07129 14.8096C5.3482 14.4439 4.67072 13.9288 4.1377 13.3203L3.91797 13.0527L3.91016 13.0439L3.84277 12.959H3.8418C2.81057 11.6744 2.36571 9.93549 2.53516 8.28223C2.64545 7.33424 2.95228 6.41319 3.44727 5.60938L3.6709 5.27148L3.67285 5.26953C3.6858 5.2512 3.69858 5.23275 3.71191 5.21387L3.71094 5.21289C3.85636 5.00834 4.01615 4.81758 4.18945 4.62891L4.36816 4.44141L4.37012 4.43848C4.39734 4.41013 4.42493 4.38187 4.45215 4.35352C4.52879 4.27498 4.60794 4.19996 4.69043 4.12695L4.94922 3.91211L4.95605 3.90625C4.98272 3.88459 5.00872 3.86211 5.03613 3.83984L5.03711 3.84082Z",
|
|
823
|
+
stroke: "currentColor"
|
|
824
|
+
}
|
|
825
|
+
),
|
|
826
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
827
|
+
"path",
|
|
828
|
+
{
|
|
829
|
+
d: "M9.36648 5.85289C9.53634 5.9647 9.6533 6.12598 9.71812 6.32867C9.73452 6.40467 9.74201 6.47516 9.74238 6.55312C9.74254 6.57462 9.74269 6.59612 9.74284 6.61826C9.7429 6.64157 9.74296 6.66489 9.74302 6.68891C9.74315 6.71368 9.74329 6.73845 9.74344 6.76397C9.74385 6.84591 9.7441 6.92785 9.74431 7.00979C9.7444 7.03785 9.74448 7.06592 9.74457 7.09484C9.74497 7.22817 9.74528 7.3615 9.74545 7.49483C9.74568 7.66315 9.74639 7.83146 9.74732 7.99978C9.74787 8.11787 9.74805 8.23596 9.74812 8.35405C9.74823 8.41042 9.74847 8.46679 9.74886 8.52316C9.75351 9.23268 9.75351 9.23268 9.54833 9.48966C9.39246 9.65505 9.20768 9.73677 8.98973 9.75C8.78199 9.74035 8.59485 9.64627 8.44906 9.48814C8.28258 9.27909 8.24899 9.03597 8.25049 8.7678C8.25038 8.7429 8.25027 8.718 8.25015 8.69234C8.24987 8.61081 8.25006 8.5293 8.25027 8.44777C8.25023 8.39068 8.25017 8.33358 8.25009 8.27649C8.24999 8.15716 8.25013 8.03783 8.25043 7.9185C8.25079 7.76594 8.25058 7.6134 8.2502 7.46085C8.24997 7.34306 8.25004 7.22527 8.25021 7.10748C8.25025 7.05125 8.2502 6.99501 8.25005 6.93877C8.24989 6.86005 8.25014 6.78135 8.25049 6.70263C8.25036 6.67965 8.25023 6.65668 8.2501 6.63301C8.25225 6.37163 8.32078 6.1648 8.48128 5.96879C8.72644 5.71507 9.07274 5.68973 9.36648 5.85289Z",
|
|
830
|
+
fill: "currentColor"
|
|
831
|
+
}
|
|
832
|
+
),
|
|
833
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
834
|
+
"path",
|
|
835
|
+
{
|
|
836
|
+
d: "M9.34541 10.8369C9.52938 10.9471 9.67125 11.1068 9.73271 11.3148C9.77656 11.529 9.73613 11.7317 9.62145 11.916C9.49889 12.0867 9.3528 12.1846 9.14957 12.2412C8.92053 12.2704 8.73922 12.2283 8.55045 12.0972C8.38043 11.959 8.27865 11.7781 8.25072 11.5592C8.24266 11.3506 8.30179 11.162 8.43381 10.9998C8.68322 10.7451 9.02878 10.6749 9.34541 10.8369Z",
|
|
837
|
+
fill: "currentColor"
|
|
838
|
+
}
|
|
839
|
+
)
|
|
840
|
+
] })
|
|
841
|
+
}
|
|
842
|
+
);
|
|
843
|
+
},
|
|
844
|
+
close: ({ className }) => {
|
|
845
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
846
|
+
"svg",
|
|
847
|
+
{
|
|
797
848
|
xmlns: "http://www.w3.org/2000/svg",
|
|
849
|
+
width: "27",
|
|
850
|
+
height: "27",
|
|
851
|
+
viewBox: "0 0 27 27",
|
|
852
|
+
fill: "none",
|
|
798
853
|
className,
|
|
799
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
854
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
855
|
+
"path",
|
|
856
|
+
{
|
|
857
|
+
fillRule: "evenodd",
|
|
858
|
+
clipRule: "evenodd",
|
|
859
|
+
d: "M6.24339 6.2645C6.39943 6.10887 6.61095 6.02146 6.83149 6.02146C7.05203 6.02146 7.26355 6.10887 7.41959 6.2645L13.4893 12.3255L19.5589 6.2645C19.6351 6.18285 19.727 6.11736 19.8291 6.07194C19.9312 6.02652 20.0414 6.0021 20.1531 6.00013C20.2648 5.99816 20.3758 6.01869 20.4795 6.06048C20.5831 6.10228 20.6772 6.16449 20.7562 6.2434C20.8353 6.32232 20.8976 6.41632 20.9394 6.51979C20.9813 6.62327 21.0018 6.73411 20.9999 6.84569C20.9979 6.95727 20.9734 7.06732 20.928 7.16926C20.8825 7.27119 20.8169 7.36294 20.7351 7.43902L14.6655 13.5L20.7351 19.561C20.8169 19.6371 20.8825 19.7288 20.928 19.8307C20.9734 19.9327 20.9979 20.0427 20.9999 20.1543C21.0018 20.2659 20.9813 20.3767 20.9394 20.4802C20.8976 20.5837 20.8353 20.6777 20.7562 20.7566C20.6772 20.8355 20.5831 20.8977 20.4795 20.9395C20.3758 20.9813 20.2648 21.0018 20.1531 20.9999C20.0414 20.9979 19.9312 20.9735 19.8291 20.9281C19.727 20.8826 19.6351 20.8172 19.5589 20.7355L13.4893 14.6745L7.41959 20.7355C7.26183 20.8823 7.05317 20.9622 6.83757 20.9584C6.62196 20.9546 6.41626 20.8674 6.26378 20.7151C6.1113 20.5629 6.02396 20.3575 6.02016 20.1422C6.01635 19.9269 6.09638 19.7185 6.24339 19.561L12.313 13.5L6.24339 7.43902C6.08754 7.2832 6 7.07198 6 6.85176C6 6.63154 6.08754 6.42032 6.24339 6.2645Z",
|
|
860
|
+
fill: "currentColor"
|
|
861
|
+
}
|
|
862
|
+
)
|
|
800
863
|
}
|
|
801
864
|
);
|
|
802
865
|
},
|
|
803
|
-
|
|
866
|
+
// ----------------------------------- old ---------------------------------
|
|
867
|
+
// ** Status **
|
|
868
|
+
plus: ({ className, fill }) => {
|
|
804
869
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
805
870
|
"svg",
|
|
806
871
|
{
|
|
@@ -810,7 +875,7 @@ var template = {
|
|
|
810
875
|
fill: "none",
|
|
811
876
|
xmlns: "http://www.w3.org/2000/svg",
|
|
812
877
|
className,
|
|
813
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "
|
|
878
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M12 4.5V19.5M19.5 12H4.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
814
879
|
}
|
|
815
880
|
);
|
|
816
881
|
},
|
|
@@ -4711,109 +4776,89 @@ var buttonStyle = tv({
|
|
|
4711
4776
|
]
|
|
4712
4777
|
});
|
|
4713
4778
|
|
|
4714
|
-
// src/
|
|
4779
|
+
// src/utils/clsx.ts
|
|
4780
|
+
function clsx(...args) {
|
|
4781
|
+
var i = 0, tmp, x, str = "";
|
|
4782
|
+
while (i < args.length) {
|
|
4783
|
+
if (tmp = args[i++]) {
|
|
4784
|
+
if (x = toVal(tmp)) {
|
|
4785
|
+
str && (str += " ");
|
|
4786
|
+
str += x;
|
|
4787
|
+
}
|
|
4788
|
+
}
|
|
4789
|
+
}
|
|
4790
|
+
return str;
|
|
4791
|
+
}
|
|
4792
|
+
function toVal(mix) {
|
|
4793
|
+
var k, y, str = "";
|
|
4794
|
+
if (typeof mix === "string" || typeof mix === "number") {
|
|
4795
|
+
str += mix;
|
|
4796
|
+
} else if (typeof mix === "object") {
|
|
4797
|
+
if (Array.isArray(mix)) {
|
|
4798
|
+
var len = mix.length;
|
|
4799
|
+
for (k = 0; k < len; k++) {
|
|
4800
|
+
if (mix[k]) {
|
|
4801
|
+
if (y = toVal(mix[k])) {
|
|
4802
|
+
str && (str += " ");
|
|
4803
|
+
str += y;
|
|
4804
|
+
}
|
|
4805
|
+
}
|
|
4806
|
+
}
|
|
4807
|
+
} else {
|
|
4808
|
+
for (y in mix) {
|
|
4809
|
+
if (mix[y]) {
|
|
4810
|
+
str && (str += " ");
|
|
4811
|
+
str += y;
|
|
4812
|
+
}
|
|
4813
|
+
}
|
|
4814
|
+
}
|
|
4815
|
+
}
|
|
4816
|
+
return str;
|
|
4817
|
+
}
|
|
4818
|
+
|
|
4819
|
+
// src/components/backdrop/backdrop.tsx
|
|
4820
|
+
var import_react3 = require("react");
|
|
4715
4821
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
4716
|
-
var
|
|
4717
|
-
const [
|
|
4822
|
+
var Backdrop = ({ open, onClick, className }) => {
|
|
4823
|
+
const [isVisible, setIsVisible] = (0, import_react3.useState)(open);
|
|
4824
|
+
(0, import_react3.useEffect)(() => {
|
|
4825
|
+
setIsVisible(open);
|
|
4826
|
+
}, [open]);
|
|
4827
|
+
if (!isVisible) return null;
|
|
4828
|
+
const slots = backdropStyle();
|
|
4829
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: clsx(slots.base(), className), onClick });
|
|
4830
|
+
};
|
|
4831
|
+
Backdrop.displayName = "Backdrop";
|
|
4832
|
+
var backdrop_default = Backdrop;
|
|
4833
|
+
var backdropStyle = tv({
|
|
4834
|
+
slots: {
|
|
4835
|
+
base: ["fixed", "inset-0", "z-10", "bg-trans-strong"]
|
|
4836
|
+
},
|
|
4837
|
+
defaultVariants: {}
|
|
4838
|
+
});
|
|
4839
|
+
|
|
4840
|
+
// src/components/modal/modal.tsx
|
|
4841
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
4842
|
+
var Modal = (0, import_react4.forwardRef)((props, ref) => {
|
|
4843
|
+
const [localProps, variantProps] = mapPropsVariants(props, modal.variantKeys);
|
|
4718
4844
|
const {
|
|
4719
4845
|
classNames,
|
|
4720
4846
|
isOpen,
|
|
4721
|
-
icon,
|
|
4722
4847
|
title,
|
|
4723
|
-
subTitle,
|
|
4724
4848
|
content,
|
|
4725
4849
|
confirmButtonText,
|
|
4726
4850
|
cancelButtonText,
|
|
4727
|
-
showCloseButton,
|
|
4728
|
-
isDismissable = true,
|
|
4851
|
+
showCloseButton = true,
|
|
4729
4852
|
isKeyboardDismissDisabled = false,
|
|
4730
4853
|
onConfirm,
|
|
4731
4854
|
onCancel
|
|
4732
|
-
} =
|
|
4733
|
-
const slots = (0,
|
|
4734
|
-
|
|
4735
|
-
()
|
|
4736
|
-
className: slots.backdrop({ class: classNames == null ? void 0 : classNames.backdrop }),
|
|
4737
|
-
onClick: (e) => {
|
|
4738
|
-
if (isDismissable && e.target === e.currentTarget && onCancel) {
|
|
4739
|
-
onCancel();
|
|
4740
|
-
}
|
|
4741
|
-
}
|
|
4742
|
-
}),
|
|
4743
|
-
[slots, classNames == null ? void 0 : classNames.backdrop, isDismissable, onCancel]
|
|
4744
|
-
);
|
|
4745
|
-
const getModalWrapperProps = (0, import_react3.useCallback)(
|
|
4746
|
-
() => ({
|
|
4747
|
-
className: slots.modalWrapper({ class: classNames == null ? void 0 : classNames.modalWrapper }),
|
|
4748
|
-
"data-icon-visibility": typeof icon !== "undefined"
|
|
4749
|
-
}),
|
|
4750
|
-
[slots, classNames == null ? void 0 : classNames.modalWrapper, icon]
|
|
4751
|
-
);
|
|
4752
|
-
const getIconProps = (0, import_react3.useCallback)(
|
|
4753
|
-
() => ({
|
|
4754
|
-
className: slots.icon({ class: [classNames == null ? void 0 : classNames.icon] })
|
|
4755
|
-
}),
|
|
4756
|
-
[slots, classNames == null ? void 0 : classNames.icon]
|
|
4757
|
-
);
|
|
4758
|
-
const getCloseIconProps = (0, import_react3.useCallback)(
|
|
4759
|
-
() => ({
|
|
4760
|
-
className: slots.closeIcon({ class: [classNames == null ? void 0 : classNames.closeIcon, showCloseButton ? "" : "hidden"] })
|
|
4761
|
-
}),
|
|
4762
|
-
[slots, classNames == null ? void 0 : classNames.closeIcon, showCloseButton]
|
|
4763
|
-
);
|
|
4764
|
-
const getBodyWrapperProps = (0, import_react3.useCallback)(
|
|
4765
|
-
() => ({
|
|
4766
|
-
className: slots.bodyWrapper({ class: classNames == null ? void 0 : classNames.bodyWrapper })
|
|
4767
|
-
}),
|
|
4768
|
-
[slots, classNames == null ? void 0 : classNames.bodyWrapper]
|
|
4769
|
-
);
|
|
4770
|
-
const getTitleWrapperProps = (0, import_react3.useCallback)(
|
|
4771
|
-
() => ({
|
|
4772
|
-
className: slots.titleWrapper({ class: classNames == null ? void 0 : classNames.titleWrapper })
|
|
4773
|
-
}),
|
|
4774
|
-
[slots, classNames == null ? void 0 : classNames.titleWrapper]
|
|
4775
|
-
);
|
|
4776
|
-
const getTitleProps = (0, import_react3.useCallback)(
|
|
4777
|
-
() => ({
|
|
4778
|
-
className: slots.title({ class: classNames == null ? void 0 : classNames.title })
|
|
4779
|
-
}),
|
|
4780
|
-
[slots, classNames == null ? void 0 : classNames.title]
|
|
4781
|
-
);
|
|
4782
|
-
const getSubTitleProps = (0, import_react3.useCallback)(
|
|
4783
|
-
() => ({
|
|
4784
|
-
className: slots.subTitle({ class: classNames == null ? void 0 : classNames.subTitle })
|
|
4785
|
-
}),
|
|
4786
|
-
[slots, classNames == null ? void 0 : classNames.subTitle]
|
|
4787
|
-
);
|
|
4788
|
-
const getBodyProps = (0, import_react3.useCallback)(
|
|
4789
|
-
() => ({
|
|
4790
|
-
className: slots.body({ class: classNames == null ? void 0 : classNames.body })
|
|
4791
|
-
}),
|
|
4792
|
-
[slots, classNames == null ? void 0 : classNames.body]
|
|
4793
|
-
);
|
|
4794
|
-
const getContentProps = (0, import_react3.useCallback)(
|
|
4795
|
-
() => ({
|
|
4796
|
-
className: slots.content({ class: classNames == null ? void 0 : classNames.content })
|
|
4797
|
-
}),
|
|
4798
|
-
[slots, classNames == null ? void 0 : classNames.content]
|
|
4799
|
-
);
|
|
4800
|
-
const getFooterWrapperProps = (0, import_react3.useCallback)(
|
|
4801
|
-
() => ({
|
|
4802
|
-
className: slots.footerWrapper({ class: classNames == null ? void 0 : classNames.footerWrapper })
|
|
4803
|
-
}),
|
|
4804
|
-
[slots, classNames == null ? void 0 : classNames.footerWrapper]
|
|
4805
|
-
);
|
|
4806
|
-
(0, import_react3.useEffect)(() => {
|
|
4807
|
-
if (isOpen) {
|
|
4808
|
-
document.body.classList.add("overflow-hidden");
|
|
4809
|
-
} else {
|
|
4810
|
-
document.body.classList.remove("overflow-hidden");
|
|
4811
|
-
}
|
|
4855
|
+
} = localProps;
|
|
4856
|
+
const slots = (0, import_react4.useMemo)(() => modal(variantProps), [variantProps]);
|
|
4857
|
+
(0, import_react4.useEffect)(() => {
|
|
4858
|
+
document.body.classList.toggle("overflow-hidden", !!isOpen);
|
|
4812
4859
|
if (!isOpen || isKeyboardDismissDisabled) return;
|
|
4813
4860
|
const handleKeyDown = (e) => {
|
|
4814
|
-
if (e.key === "Escape"
|
|
4815
|
-
onCancel();
|
|
4816
|
-
}
|
|
4861
|
+
if (e.key === "Escape") onCancel == null ? void 0 : onCancel();
|
|
4817
4862
|
};
|
|
4818
4863
|
document.addEventListener("keydown", handleKeyDown);
|
|
4819
4864
|
return () => {
|
|
@@ -4821,89 +4866,86 @@ var Modal = (0, import_react3.forwardRef)((originalProps, ref) => {
|
|
|
4821
4866
|
document.body.classList.remove("overflow-hidden");
|
|
4822
4867
|
};
|
|
4823
4868
|
}, [isOpen, isKeyboardDismissDisabled, onCancel]);
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
/* @__PURE__ */ (0,
|
|
4828
|
-
|
|
4829
|
-
/* @__PURE__ */ (0,
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4869
|
+
if (!isOpen) return null;
|
|
4870
|
+
return (0, import_react_dom.createPortal)(
|
|
4871
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
|
|
4872
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(backdrop_default, { open: true }),
|
|
4873
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: slots.modalWrapper({ class: classNames == null ? void 0 : classNames.modalWrapper }), children: [
|
|
4874
|
+
showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
4875
|
+
Icon_default,
|
|
4876
|
+
{
|
|
4877
|
+
size: "xl",
|
|
4878
|
+
name: "close",
|
|
4879
|
+
className: slots.closeIcon({ class: classNames == null ? void 0 : classNames.closeIcon }),
|
|
4880
|
+
onClick: onCancel
|
|
4881
|
+
}
|
|
4882
|
+
),
|
|
4883
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
|
|
4884
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: slots.title({ class: classNames == null ? void 0 : classNames.title }), children: title }),
|
|
4885
|
+
typeof content === "string" ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: slots.content({ class: classNames == null ? void 0 : classNames.content }), children: content }) : content,
|
|
4886
|
+
(cancelButtonText || confirmButtonText) && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: slots.footer({ class: classNames == null ? void 0 : classNames.footer }), children: [
|
|
4887
|
+
cancelButtonText && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(button_default, { variant: "soft", color: "neutral", fullWidth: true, onClick: onCancel, children: cancelButtonText }),
|
|
4888
|
+
confirmButtonText && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(button_default, { color: props.color, fullWidth: true, onClick: onConfirm, children: confirmButtonText })
|
|
4838
4889
|
] })
|
|
4839
4890
|
] })
|
|
4840
|
-
] })
|
|
4841
|
-
] })
|
|
4891
|
+
] }) })
|
|
4892
|
+
] }),
|
|
4842
4893
|
document.body
|
|
4843
|
-
)
|
|
4894
|
+
);
|
|
4844
4895
|
});
|
|
4845
4896
|
Modal.displayName = "Modal";
|
|
4846
4897
|
var modal_default = Modal;
|
|
4847
4898
|
var modal = tv({
|
|
4848
4899
|
slots: {
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
icon: ["absolute", "top-[-40px]", "left-1/2", "-translate-x-1/2", "z-10"],
|
|
4852
|
-
closeIcon: [
|
|
4900
|
+
base: [
|
|
4901
|
+
"group/modal",
|
|
4853
4902
|
"absolute",
|
|
4854
|
-
"top-
|
|
4855
|
-
"
|
|
4856
|
-
"
|
|
4857
|
-
"
|
|
4858
|
-
"
|
|
4903
|
+
"top-1/2",
|
|
4904
|
+
"-translate-y-1/2",
|
|
4905
|
+
"left-1/2",
|
|
4906
|
+
"-translate-x-1/2",
|
|
4907
|
+
"z-[50]",
|
|
4908
|
+
"bg-body-background"
|
|
4859
4909
|
],
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
"
|
|
4865
|
-
"
|
|
4866
|
-
"p-[20px]",
|
|
4910
|
+
modalWrapper: [
|
|
4911
|
+
"min-w-[450px]",
|
|
4912
|
+
"flex",
|
|
4913
|
+
"flex-col",
|
|
4914
|
+
"justify-center",
|
|
4915
|
+
"p-[30px]",
|
|
4867
4916
|
"bg-background",
|
|
4868
|
-
"shadow-drop
|
|
4917
|
+
"shadow-drop",
|
|
4918
|
+
"shadow-foreground/20",
|
|
4919
|
+
"rounded-xlg",
|
|
4869
4920
|
"overflow-hidden",
|
|
4870
4921
|
"group-data-[icon-visibility=true]/modal:mt-[0]",
|
|
4871
4922
|
"group-data-[icon-visibility=true]/modal:pt-[60px]"
|
|
4872
4923
|
],
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4924
|
+
wrapper: ["flex", "flex-col", "gap-[30px]"],
|
|
4925
|
+
title: ["text-xl", "font-extrabold", "text-foreground"],
|
|
4926
|
+
content: ["text-md", "font-bold", "text-center", "break-words", "bg-neutral-soft", "rounded-[5px]", "p-[10px]"],
|
|
4927
|
+
footer: ["flex", "gap-[10px]"],
|
|
4928
|
+
closeIcon: [
|
|
4929
|
+
"absolute",
|
|
4930
|
+
"top-[30px]",
|
|
4931
|
+
"right-[30px]",
|
|
4932
|
+
"cursor-pointer",
|
|
4933
|
+
"z-60",
|
|
4934
|
+
"group-data-[icon-visibility=true]/modal:top-[80px]"
|
|
4935
|
+
]
|
|
4876
4936
|
},
|
|
4877
4937
|
variants: {
|
|
4878
4938
|
color: {
|
|
4879
|
-
primary: {
|
|
4880
|
-
|
|
4881
|
-
},
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
},
|
|
4885
|
-
|
|
4886
|
-
icon: "text-neutral-main"
|
|
4887
|
-
},
|
|
4888
|
-
success: {
|
|
4889
|
-
icon: "text-success-main"
|
|
4890
|
-
},
|
|
4891
|
-
info: {
|
|
4892
|
-
icon: "text-info-main"
|
|
4893
|
-
},
|
|
4894
|
-
warning: {
|
|
4895
|
-
icon: "text-warning-main"
|
|
4896
|
-
},
|
|
4897
|
-
danger: {
|
|
4898
|
-
icon: "text-danger-main"
|
|
4899
|
-
}
|
|
4939
|
+
primary: {},
|
|
4940
|
+
secondary: {},
|
|
4941
|
+
neutral: {},
|
|
4942
|
+
success: {},
|
|
4943
|
+
info: {},
|
|
4944
|
+
warning: {},
|
|
4945
|
+
danger: {}
|
|
4900
4946
|
}
|
|
4901
4947
|
},
|
|
4902
4948
|
defaultVariants: {
|
|
4903
4949
|
color: "primary"
|
|
4904
4950
|
}
|
|
4905
4951
|
});
|
|
4906
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
4907
|
-
0 && (module.exports = {
|
|
4908
|
-
modal
|
|
4909
|
-
});
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
|
-
modal,
|
|
4
3
|
modal_default
|
|
5
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-OV7CZNXU.mjs";
|
|
6
5
|
import "../../chunk-MY5U63QO.mjs";
|
|
7
6
|
import "../../chunk-LPZOH3RP.mjs";
|
|
8
|
-
import "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-MQI5SZWO.mjs";
|
|
8
|
+
import "../../chunk-EWZAHXN7.mjs";
|
|
10
9
|
import "../../chunk-6WSACUIB.mjs";
|
|
11
|
-
import "../../chunk-6PNKRBUT.mjs";
|
|
12
10
|
import "../../chunk-LXHUO6VM.mjs";
|
|
13
|
-
import "../../chunk-
|
|
11
|
+
import "../../chunk-6PNKRBUT.mjs";
|
|
14
12
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
15
|
-
import "../../chunk-
|
|
16
|
-
import "../../chunk-
|
|
17
|
-
import "../../chunk-4ZJFD3L3.mjs";
|
|
18
|
-
import "../../chunk-27Y6K5NK.mjs";
|
|
13
|
+
import "../../chunk-HWL7TPUN.mjs";
|
|
14
|
+
import "../../chunk-KCOHU7X7.mjs";
|
|
19
15
|
import "../../chunk-E3G5QXSH.mjs";
|
|
16
|
+
import "../../chunk-3IU2RPSM.mjs";
|
|
17
|
+
import "../../chunk-SE5TU755.mjs";
|
|
18
|
+
import "../../chunk-P5QCU457.mjs";
|
|
19
|
+
import "../../chunk-27Y6K5NK.mjs";
|
|
20
|
+
import "../../chunk-4ZJFD3L3.mjs";
|
|
20
21
|
import "../../chunk-AC6TWLRT.mjs";
|
|
21
22
|
export {
|
|
22
|
-
modal_default as default
|
|
23
|
-
modal
|
|
23
|
+
modal_default as default
|
|
24
24
|
};
|
|
@@ -812,23 +812,89 @@ var template = {
|
|
|
812
812
|
}
|
|
813
813
|
);
|
|
814
814
|
},
|
|
815
|
-
|
|
816
|
-
// ** Status **
|
|
817
|
-
plus: ({ className, fill }) => {
|
|
815
|
+
exclamation: ({ className, fill }) => {
|
|
818
816
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
819
817
|
"svg",
|
|
820
818
|
{
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
819
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
820
|
+
width: "18",
|
|
821
|
+
height: "18",
|
|
822
|
+
viewBox: "0 0 18 18",
|
|
824
823
|
fill: "none",
|
|
824
|
+
className,
|
|
825
|
+
children: fill ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
826
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
827
|
+
"path",
|
|
828
|
+
{
|
|
829
|
+
d: "M11.264 2.37077C11.2832 2.37715 11.3024 2.38353 11.3223 2.3901C12.3182 2.72483 13.1824 3.30575 13.9306 4.03468C13.9575 4.06039 13.9843 4.08609 14.0119 4.11257C14.1806 4.27693 14.33 4.45208 14.4754 4.63713C14.4981 4.66509 14.5208 4.69305 14.5442 4.72185C15.0188 5.31801 15.3774 6.01161 15.6224 6.73137C15.6303 6.75453 15.6382 6.77768 15.6464 6.80155C16.1308 8.2413 16.1125 9.82918 15.6224 11.2641C15.6105 11.2995 15.6105 11.2995 15.5983 11.3356C15.3948 11.9315 15.1066 12.5059 14.7335 13.0141C14.7221 13.0297 14.7107 13.0453 14.6989 13.0614C14.313 13.5865 13.8736 14.0779 13.3571 14.4772C13.3155 14.5109 13.3155 14.5109 13.273 14.5454C12.6801 15.0224 11.982 15.3801 11.264 15.6247C11.2408 15.6326 11.2177 15.6406 11.1938 15.6487C9.43757 16.2402 7.50979 16.0678 5.85241 15.2592C4.96204 14.8102 4.13267 14.1489 3.52213 13.3583C3.49962 13.3305 3.47711 13.3028 3.45392 13.2742C2.32855 11.8738 1.85507 9.99621 2.03839 8.22438C2.17342 7.0638 2.58402 5.9339 3.26407 4.98139C3.27714 4.96288 3.29022 4.94436 3.30369 4.92529C3.51689 4.62523 3.75292 4.35545 4.00958 4.09206C4.03773 4.06274 4.06588 4.03342 4.09403 4.00409C4.26597 3.8279 4.44681 3.67012 4.6404 3.5183C4.6683 3.49563 4.69621 3.47296 4.72496 3.4496C6.54339 2.00006 9.08031 1.63201 11.264 2.37077Z",
|
|
830
|
+
fill: "currentColor"
|
|
831
|
+
}
|
|
832
|
+
),
|
|
833
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
834
|
+
"path",
|
|
835
|
+
{
|
|
836
|
+
d: "M9.36648 5.85289C9.53634 5.9647 9.6533 6.12598 9.71812 6.32867C9.73452 6.40467 9.74201 6.47516 9.74238 6.55312C9.74254 6.57462 9.74269 6.59612 9.74284 6.61826C9.7429 6.64157 9.74296 6.66489 9.74302 6.68891C9.74315 6.71368 9.74329 6.73845 9.74344 6.76397C9.74385 6.84591 9.7441 6.92785 9.74431 7.00979C9.7444 7.03785 9.74448 7.06592 9.74457 7.09484C9.74497 7.22817 9.74528 7.3615 9.74545 7.49483C9.74568 7.66315 9.74639 7.83146 9.74732 7.99978C9.74787 8.11787 9.74805 8.23596 9.74812 8.35405C9.74823 8.41042 9.74847 8.46679 9.74886 8.52316C9.75351 9.23268 9.75351 9.23268 9.54833 9.48966C9.39246 9.65505 9.20768 9.73677 8.98973 9.75C8.78199 9.74035 8.59485 9.64627 8.44906 9.48814C8.28258 9.27909 8.24899 9.03597 8.25049 8.7678C8.25038 8.7429 8.25027 8.718 8.25015 8.69234C8.24987 8.61081 8.25006 8.5293 8.25027 8.44777C8.25023 8.39068 8.25017 8.33358 8.25009 8.27649C8.24999 8.15716 8.25013 8.03783 8.25043 7.9185C8.25079 7.76594 8.25058 7.6134 8.2502 7.46085C8.24997 7.34306 8.25004 7.22527 8.25021 7.10748C8.25025 7.05125 8.2502 6.99501 8.25005 6.93877C8.24989 6.86005 8.25014 6.78135 8.25049 6.70263C8.25036 6.67965 8.25023 6.65668 8.2501 6.63301C8.25225 6.37163 8.32078 6.1648 8.48128 5.96879C8.72644 5.71507 9.07274 5.68973 9.36648 5.85289Z",
|
|
837
|
+
fill: "white"
|
|
838
|
+
}
|
|
839
|
+
),
|
|
840
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
841
|
+
"path",
|
|
842
|
+
{
|
|
843
|
+
d: "M9.34541 10.8369C9.52938 10.9471 9.67125 11.1068 9.73271 11.3148C9.77656 11.529 9.73613 11.7317 9.62145 11.916C9.49889 12.0867 9.3528 12.1846 9.14957 12.2412C8.92053 12.2704 8.73922 12.2283 8.55045 12.0972C8.38043 11.959 8.27865 11.7781 8.25072 11.5592C8.24266 11.3506 8.30179 11.162 8.43381 10.9998C8.68322 10.7451 9.02878 10.6749 9.34541 10.8369Z",
|
|
844
|
+
fill: "white"
|
|
845
|
+
}
|
|
846
|
+
)
|
|
847
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
848
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
849
|
+
"path",
|
|
850
|
+
{
|
|
851
|
+
d: "M5.03711 3.84082C6.60875 2.5881 8.77805 2.2038 10.7188 2.72754L11.1035 2.84473L11.1064 2.8457C11.125 2.85187 11.144 2.85694 11.1631 2.86328V2.86426C11.9606 3.13233 12.6739 3.57547 13.3125 4.14258L13.582 4.39258L13.585 4.39551L13.666 4.47363C13.7385 4.54442 13.8078 4.61844 13.876 4.69629L14.082 4.94629L14.0869 4.95215L14.1562 5.03711C14.5346 5.51326 14.8361 6.06221 15.0586 6.6416L15.1494 6.89258V6.89355L15.1738 6.96387C15.5931 8.21222 15.6047 9.58552 15.2295 10.8506L15.1494 11.1025L15.1484 11.1045C15.1368 11.1391 15.1363 11.1401 15.125 11.1738C14.9596 11.6581 14.7354 12.1232 14.4541 12.542L14.3301 12.7178L14.3291 12.7197C14.3181 12.7348 14.3072 12.7501 14.2959 12.7656C13.9281 13.2659 13.5205 13.7197 13.0518 14.082L13.3457 14.4629L13.0508 14.0811L13.042 14.0889L12.958 14.1572C12.4859 14.5367 11.9342 14.8378 11.3535 15.0605L11.1025 15.1514H11.1016C11.0793 15.159 11.0571 15.1669 11.0342 15.1748C9.51234 15.6873 7.84224 15.5817 6.36426 14.9443L6.07129 14.8096C5.3482 14.4439 4.67072 13.9288 4.1377 13.3203L3.91797 13.0527L3.91016 13.0439L3.84277 12.959H3.8418C2.81057 11.6744 2.36571 9.93549 2.53516 8.28223C2.64545 7.33424 2.95228 6.41319 3.44727 5.60938L3.6709 5.27148L3.67285 5.26953C3.6858 5.2512 3.69858 5.23275 3.71191 5.21387L3.71094 5.21289C3.85636 5.00834 4.01615 4.81758 4.18945 4.62891L4.36816 4.44141L4.37012 4.43848C4.39734 4.41013 4.42493 4.38187 4.45215 4.35352C4.52879 4.27498 4.60794 4.19996 4.69043 4.12695L4.94922 3.91211L4.95605 3.90625C4.98272 3.88459 5.00872 3.86211 5.03613 3.83984L5.03711 3.84082Z",
|
|
852
|
+
stroke: "currentColor"
|
|
853
|
+
}
|
|
854
|
+
),
|
|
855
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
856
|
+
"path",
|
|
857
|
+
{
|
|
858
|
+
d: "M9.36648 5.85289C9.53634 5.9647 9.6533 6.12598 9.71812 6.32867C9.73452 6.40467 9.74201 6.47516 9.74238 6.55312C9.74254 6.57462 9.74269 6.59612 9.74284 6.61826C9.7429 6.64157 9.74296 6.66489 9.74302 6.68891C9.74315 6.71368 9.74329 6.73845 9.74344 6.76397C9.74385 6.84591 9.7441 6.92785 9.74431 7.00979C9.7444 7.03785 9.74448 7.06592 9.74457 7.09484C9.74497 7.22817 9.74528 7.3615 9.74545 7.49483C9.74568 7.66315 9.74639 7.83146 9.74732 7.99978C9.74787 8.11787 9.74805 8.23596 9.74812 8.35405C9.74823 8.41042 9.74847 8.46679 9.74886 8.52316C9.75351 9.23268 9.75351 9.23268 9.54833 9.48966C9.39246 9.65505 9.20768 9.73677 8.98973 9.75C8.78199 9.74035 8.59485 9.64627 8.44906 9.48814C8.28258 9.27909 8.24899 9.03597 8.25049 8.7678C8.25038 8.7429 8.25027 8.718 8.25015 8.69234C8.24987 8.61081 8.25006 8.5293 8.25027 8.44777C8.25023 8.39068 8.25017 8.33358 8.25009 8.27649C8.24999 8.15716 8.25013 8.03783 8.25043 7.9185C8.25079 7.76594 8.25058 7.6134 8.2502 7.46085C8.24997 7.34306 8.25004 7.22527 8.25021 7.10748C8.25025 7.05125 8.2502 6.99501 8.25005 6.93877C8.24989 6.86005 8.25014 6.78135 8.25049 6.70263C8.25036 6.67965 8.25023 6.65668 8.2501 6.63301C8.25225 6.37163 8.32078 6.1648 8.48128 5.96879C8.72644 5.71507 9.07274 5.68973 9.36648 5.85289Z",
|
|
859
|
+
fill: "currentColor"
|
|
860
|
+
}
|
|
861
|
+
),
|
|
862
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
863
|
+
"path",
|
|
864
|
+
{
|
|
865
|
+
d: "M9.34541 10.8369C9.52938 10.9471 9.67125 11.1068 9.73271 11.3148C9.77656 11.529 9.73613 11.7317 9.62145 11.916C9.49889 12.0867 9.3528 12.1846 9.14957 12.2412C8.92053 12.2704 8.73922 12.2283 8.55045 12.0972C8.38043 11.959 8.27865 11.7781 8.25072 11.5592C8.24266 11.3506 8.30179 11.162 8.43381 10.9998C8.68322 10.7451 9.02878 10.6749 9.34541 10.8369Z",
|
|
866
|
+
fill: "currentColor"
|
|
867
|
+
}
|
|
868
|
+
)
|
|
869
|
+
] })
|
|
870
|
+
}
|
|
871
|
+
);
|
|
872
|
+
},
|
|
873
|
+
close: ({ className }) => {
|
|
874
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
875
|
+
"svg",
|
|
876
|
+
{
|
|
825
877
|
xmlns: "http://www.w3.org/2000/svg",
|
|
878
|
+
width: "27",
|
|
879
|
+
height: "27",
|
|
880
|
+
viewBox: "0 0 27 27",
|
|
881
|
+
fill: "none",
|
|
826
882
|
className,
|
|
827
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
883
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
884
|
+
"path",
|
|
885
|
+
{
|
|
886
|
+
fillRule: "evenodd",
|
|
887
|
+
clipRule: "evenodd",
|
|
888
|
+
d: "M6.24339 6.2645C6.39943 6.10887 6.61095 6.02146 6.83149 6.02146C7.05203 6.02146 7.26355 6.10887 7.41959 6.2645L13.4893 12.3255L19.5589 6.2645C19.6351 6.18285 19.727 6.11736 19.8291 6.07194C19.9312 6.02652 20.0414 6.0021 20.1531 6.00013C20.2648 5.99816 20.3758 6.01869 20.4795 6.06048C20.5831 6.10228 20.6772 6.16449 20.7562 6.2434C20.8353 6.32232 20.8976 6.41632 20.9394 6.51979C20.9813 6.62327 21.0018 6.73411 20.9999 6.84569C20.9979 6.95727 20.9734 7.06732 20.928 7.16926C20.8825 7.27119 20.8169 7.36294 20.7351 7.43902L14.6655 13.5L20.7351 19.561C20.8169 19.6371 20.8825 19.7288 20.928 19.8307C20.9734 19.9327 20.9979 20.0427 20.9999 20.1543C21.0018 20.2659 20.9813 20.3767 20.9394 20.4802C20.8976 20.5837 20.8353 20.6777 20.7562 20.7566C20.6772 20.8355 20.5831 20.8977 20.4795 20.9395C20.3758 20.9813 20.2648 21.0018 20.1531 20.9999C20.0414 20.9979 19.9312 20.9735 19.8291 20.9281C19.727 20.8826 19.6351 20.8172 19.5589 20.7355L13.4893 14.6745L7.41959 20.7355C7.26183 20.8823 7.05317 20.9622 6.83757 20.9584C6.62196 20.9546 6.41626 20.8674 6.26378 20.7151C6.1113 20.5629 6.02396 20.3575 6.02016 20.1422C6.01635 19.9269 6.09638 19.7185 6.24339 19.561L12.313 13.5L6.24339 7.43902C6.08754 7.2832 6 7.07198 6 6.85176C6 6.63154 6.08754 6.42032 6.24339 6.2645Z",
|
|
889
|
+
fill: "currentColor"
|
|
890
|
+
}
|
|
891
|
+
)
|
|
828
892
|
}
|
|
829
893
|
);
|
|
830
894
|
},
|
|
831
|
-
|
|
895
|
+
// ----------------------------------- old ---------------------------------
|
|
896
|
+
// ** Status **
|
|
897
|
+
plus: ({ className, fill }) => {
|
|
832
898
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
833
899
|
"svg",
|
|
834
900
|
{
|
|
@@ -838,7 +904,7 @@ var template = {
|
|
|
838
904
|
fill: "none",
|
|
839
905
|
xmlns: "http://www.w3.org/2000/svg",
|
|
840
906
|
className,
|
|
841
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "
|
|
907
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M12 4.5V19.5M19.5 12H4.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
842
908
|
}
|
|
843
909
|
);
|
|
844
910
|
},
|
|
@@ -4403,7 +4469,18 @@ var Input = (0, import_react2.forwardRef)((originalProps, ref) => {
|
|
|
4403
4469
|
),
|
|
4404
4470
|
children: [
|
|
4405
4471
|
startContent && renderStartContent(),
|
|
4406
|
-
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
4472
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
4473
|
+
"input",
|
|
4474
|
+
{
|
|
4475
|
+
...inputProps,
|
|
4476
|
+
ref: ref || inputRef,
|
|
4477
|
+
className: clsx(
|
|
4478
|
+
slots.input({ class: classNames == null ? void 0 : classNames.input }),
|
|
4479
|
+
inputProps.readOnly ? "!text-body-foreground placeholder:text-body-foreground" : ""
|
|
4480
|
+
),
|
|
4481
|
+
size: 0
|
|
4482
|
+
}
|
|
4483
|
+
),
|
|
4407
4484
|
renderEndContent()
|
|
4408
4485
|
]
|
|
4409
4486
|
}
|
|
@@ -4420,7 +4497,7 @@ var input_default = Input;
|
|
|
4420
4497
|
var inputStyle = tv(
|
|
4421
4498
|
{
|
|
4422
4499
|
slots: {
|
|
4423
|
-
base: ["group/input", "flex"],
|
|
4500
|
+
base: ["group/input", "flex select-none"],
|
|
4424
4501
|
vertical: ["flex-col"],
|
|
4425
4502
|
horizon: ["flex-row", "gap-0"],
|
|
4426
4503
|
label: ["flex", "items-center", "font-bold", "text-body-foreground", "min-w-[80px]"],
|
|
@@ -4451,7 +4528,7 @@ var inputStyle = tv(
|
|
|
4451
4528
|
],
|
|
4452
4529
|
helperText: ["text-neutral-main", "group-has-[:hover]/input:text-neutral-dark"],
|
|
4453
4530
|
errorText: ["text-danger-main"],
|
|
4454
|
-
readonly: ["pointer-events-none"]
|
|
4531
|
+
readonly: ["pointer-events-none", "!text-body-foreground"]
|
|
4455
4532
|
},
|
|
4456
4533
|
variants: {
|
|
4457
4534
|
variant: {
|