@deepnoid/ui 0.1.18 → 0.1.20
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 +209 -180
- 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-3BKCODIL.mjs +49 -0
- package/dist/{chunk-A7OXEUCC.mjs → chunk-3IU2RPSM.mjs} +75 -9
- package/dist/{chunk-ETX4WR6J.mjs → chunk-63WXGSTV.mjs} +6 -4
- package/dist/{chunk-BFM3LPBK.mjs → chunk-6HX3PPL6.mjs} +1 -1
- package/dist/{chunk-RPDPB4JP.mjs → chunk-6KXBXGYR.mjs} +3 -3
- package/dist/chunk-7USF56CT.mjs +8 -0
- package/dist/chunk-BPVRXFIC.mjs +82 -0
- package/dist/{chunk-MJT6ZW4C.mjs → chunk-BXXAMH3R.mjs} +4 -4
- package/dist/{chunk-UHFJ7ZFM.mjs → chunk-EGHTZLZJ.mjs} +2 -2
- package/dist/{chunk-QIDZXCYP.mjs → chunk-EYVRTVRM.mjs} +3 -3
- package/dist/{chunk-DADMVOYI.mjs → chunk-HWL7TPUN.mjs} +1 -1
- package/dist/chunk-IZM66FHP.mjs +8 -0
- package/dist/{chunk-7TXQPX4O.mjs → chunk-JOCMCOEK.mjs} +2 -2
- package/dist/{chunk-2YRRWNYG.mjs → chunk-LNYMVBV5.mjs} +14 -5
- package/dist/chunk-MBLZYQCN.mjs +1 -0
- package/dist/{chunk-P6NVCCBZ.mjs → chunk-OF3X4BXG.mjs} +1 -1
- package/dist/chunk-OUAKGMDW.mjs +168 -0
- package/dist/{chunk-AG7AWQKH.mjs → chunk-OWG4RL2T.mjs} +3 -3
- package/dist/{chunk-7A5M7DRD.mjs → chunk-PNRS23HE.mjs} +4 -4
- package/dist/{chunk-FONJYZKH.mjs → chunk-PZIVMTKX.mjs} +4 -4
- package/dist/{chunk-5ANQDLRS.mjs → chunk-Q72LZAPG.mjs} +1 -1
- package/dist/{chunk-K7Z6PVXE.mjs → chunk-VQROXH43.mjs} +4 -4
- package/dist/{chunk-UYPVP36M.mjs → chunk-XQGD4ZIX.mjs} +1 -1
- package/dist/chunk-YBDA3WQP.mjs +71 -0
- package/dist/chunk-ZUSUVPYV.mjs +135 -0
- 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/breadcrumb/breadcrumb.js +75 -9
- package/dist/components/breadcrumb/breadcrumb.mjs +7 -7
- package/dist/components/breadcrumb/index.js +75 -9
- package/dist/components/breadcrumb/index.mjs +7 -7
- package/dist/components/button/button.js +75 -9
- package/dist/components/button/button.mjs +4 -4
- package/dist/components/button/icon-button.js +75 -9
- package/dist/components/button/icon-button.mjs +4 -4
- package/dist/components/button/index.js +75 -9
- package/dist/components/button/index.mjs +6 -6
- package/dist/components/chip/chip.js +75 -9
- package/dist/components/chip/chip.mjs +3 -3
- package/dist/components/chip/index.js +75 -9
- package/dist/components/chip/index.mjs +3 -3
- package/dist/components/dateTimePicker/calendar.js +75 -9
- package/dist/components/dateTimePicker/calendar.mjs +3 -3
- package/dist/components/dateTimePicker/dateTimePicker.js +75 -9
- package/dist/components/dateTimePicker/dateTimePicker.mjs +7 -7
- package/dist/components/dateTimePicker/index.js +75 -9
- package/dist/components/dateTimePicker/index.mjs +7 -7
- package/dist/components/dateTimePicker/timePicker.js +75 -9
- package/dist/components/dateTimePicker/timePicker.mjs +5 -5
- 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 +76 -10
- package/dist/components/input/index.mjs +3 -3
- package/dist/components/input/input.js +76 -10
- package/dist/components/input/input.mjs +3 -3
- package/dist/components/list/index.js +75 -9
- package/dist/components/list/index.mjs +6 -6
- package/dist/components/list/listItem.js +75 -9
- package/dist/components/list/listItem.mjs +4 -4
- 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 +9 -7
- 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 +10 -10
- package/dist/components/pagination/index.js +76 -10
- package/dist/components/pagination/index.mjs +4 -4
- package/dist/components/pagination/pagination.js +76 -10
- package/dist/components/pagination/pagination.mjs +4 -4
- package/dist/components/ripple/index.mjs +3 -3
- package/dist/components/select/index.js +75 -9
- package/dist/components/select/index.mjs +4 -4
- package/dist/components/select/option.js +75 -9
- package/dist/components/select/option.mjs +3 -3
- package/dist/components/select/select.js +75 -9
- package/dist/components/select/select.mjs +4 -4
- 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 +134 -17
- package/dist/components/table/index.mjs +12 -8
- package/dist/components/table/table-body.d.mts +3 -1
- package/dist/components/table/table-body.d.ts +3 -1
- package/dist/components/table/table-body.js +6 -4
- package/dist/components/table/table-body.mjs +1 -1
- package/dist/components/table/table.d.mts +1 -0
- package/dist/components/table/table.d.ts +1 -0
- package/dist/components/table/table.js +91 -17
- package/dist/components/table/table.mjs +7 -7
- package/dist/components/toast/index.js +239 -97
- package/dist/components/toast/index.mjs +5 -4
- 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 +4 -3
- 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 +5 -4
- 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/tree/tree.js +4365 -0
- 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 +589 -441
- package/dist/index.mjs +66 -55
- 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-RXIFDECK.mjs +0 -213
- /package/dist/{chunk-2UUH2MBF.mjs → chunk-DX3KXNP6.mjs} +0 -0
|
@@ -102,6 +102,7 @@ var require_plugin = __commonJS({
|
|
|
102
102
|
// src/components/table/index.ts
|
|
103
103
|
var table_exports = {};
|
|
104
104
|
__export(table_exports, {
|
|
105
|
+
FormTable: () => form_table_default,
|
|
105
106
|
Table: () => table_default
|
|
106
107
|
});
|
|
107
108
|
module.exports = __toCommonJS(table_exports);
|
|
@@ -638,7 +639,9 @@ var TableBody = ({
|
|
|
638
639
|
checkedRows,
|
|
639
640
|
onCheckRow,
|
|
640
641
|
emptyContent,
|
|
641
|
-
|
|
642
|
+
isLoading,
|
|
643
|
+
classNames,
|
|
644
|
+
className
|
|
642
645
|
}) => {
|
|
643
646
|
const generateColumnStyles = (0, import_react2.useCallback)((column) => {
|
|
644
647
|
const alignClass = column.align ? `text-${column.align}` : "text-left";
|
|
@@ -676,8 +679,8 @@ var TableBody = ({
|
|
|
676
679
|
);
|
|
677
680
|
const hasRows = rows.length > 0;
|
|
678
681
|
const colSpan = (columns.length || 1) + (selectableRows ? 1 : 0);
|
|
679
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("tbody", { className: slots.tbody({ class: classNames == null ? void 0 : classNames.tbody }), children: [
|
|
680
|
-
hasRows && rows.map((row, rowIndex) => {
|
|
682
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("tbody", { className: clsx(slots.tbody({ class: classNames == null ? void 0 : classNames.tbody }), className), children: [
|
|
683
|
+
!isLoading && hasRows && rows.map((row, rowIndex) => {
|
|
681
684
|
const isRowChecked = checkedRows.has(rowIndex);
|
|
682
685
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), "aria-checked": isRowChecked, children: [
|
|
683
686
|
columns.map((column) => /* @__PURE__ */ (0, import_react3.createElement)("td", { ...getCellProps(column, row), key: column.field })),
|
|
@@ -691,7 +694,7 @@ var TableBody = ({
|
|
|
691
694
|
) }) })
|
|
692
695
|
] }, rowIndex);
|
|
693
696
|
}),
|
|
694
|
-
!hasRows && emptyContent && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("tr", { className: clsx(slots.tr({ class: classNames == null ? void 0 : classNames.tr }), "border-none"), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { colSpan, className: slots.empty({ class: classNames == null ? void 0 : classNames.empty }), children: emptyContent }) })
|
|
697
|
+
!isLoading && !hasRows && emptyContent && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("tr", { className: clsx(slots.tr({ class: classNames == null ? void 0 : classNames.tr }), "border-none"), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { colSpan, className: slots.empty({ class: classNames == null ? void 0 : classNames.empty }), children: emptyContent }) })
|
|
695
698
|
] });
|
|
696
699
|
};
|
|
697
700
|
var table_body_default = TableBody;
|
|
@@ -1165,23 +1168,89 @@ var template = {
|
|
|
1165
1168
|
}
|
|
1166
1169
|
);
|
|
1167
1170
|
},
|
|
1168
|
-
|
|
1169
|
-
// ** Status **
|
|
1170
|
-
plus: ({ className, fill }) => {
|
|
1171
|
+
exclamation: ({ className, fill }) => {
|
|
1171
1172
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1172
1173
|
"svg",
|
|
1173
1174
|
{
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1175
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1176
|
+
width: "18",
|
|
1177
|
+
height: "18",
|
|
1178
|
+
viewBox: "0 0 18 18",
|
|
1177
1179
|
fill: "none",
|
|
1180
|
+
className,
|
|
1181
|
+
children: fill ? /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
1182
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1183
|
+
"path",
|
|
1184
|
+
{
|
|
1185
|
+
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",
|
|
1186
|
+
fill: "currentColor"
|
|
1187
|
+
}
|
|
1188
|
+
),
|
|
1189
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1190
|
+
"path",
|
|
1191
|
+
{
|
|
1192
|
+
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",
|
|
1193
|
+
fill: "white"
|
|
1194
|
+
}
|
|
1195
|
+
),
|
|
1196
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1197
|
+
"path",
|
|
1198
|
+
{
|
|
1199
|
+
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",
|
|
1200
|
+
fill: "white"
|
|
1201
|
+
}
|
|
1202
|
+
)
|
|
1203
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
1204
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1205
|
+
"path",
|
|
1206
|
+
{
|
|
1207
|
+
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",
|
|
1208
|
+
stroke: "currentColor"
|
|
1209
|
+
}
|
|
1210
|
+
),
|
|
1211
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1212
|
+
"path",
|
|
1213
|
+
{
|
|
1214
|
+
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",
|
|
1215
|
+
fill: "currentColor"
|
|
1216
|
+
}
|
|
1217
|
+
),
|
|
1218
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1219
|
+
"path",
|
|
1220
|
+
{
|
|
1221
|
+
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",
|
|
1222
|
+
fill: "currentColor"
|
|
1223
|
+
}
|
|
1224
|
+
)
|
|
1225
|
+
] })
|
|
1226
|
+
}
|
|
1227
|
+
);
|
|
1228
|
+
},
|
|
1229
|
+
close: ({ className }) => {
|
|
1230
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1231
|
+
"svg",
|
|
1232
|
+
{
|
|
1178
1233
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1234
|
+
width: "27",
|
|
1235
|
+
height: "27",
|
|
1236
|
+
viewBox: "0 0 27 27",
|
|
1237
|
+
fill: "none",
|
|
1179
1238
|
className,
|
|
1180
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1239
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1240
|
+
"path",
|
|
1241
|
+
{
|
|
1242
|
+
fillRule: "evenodd",
|
|
1243
|
+
clipRule: "evenodd",
|
|
1244
|
+
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",
|
|
1245
|
+
fill: "currentColor"
|
|
1246
|
+
}
|
|
1247
|
+
)
|
|
1181
1248
|
}
|
|
1182
1249
|
);
|
|
1183
1250
|
},
|
|
1184
|
-
|
|
1251
|
+
// ----------------------------------- old ---------------------------------
|
|
1252
|
+
// ** Status **
|
|
1253
|
+
plus: ({ className, fill }) => {
|
|
1185
1254
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1186
1255
|
"svg",
|
|
1187
1256
|
{
|
|
@@ -1191,7 +1260,7 @@ var template = {
|
|
|
1191
1260
|
fill: "none",
|
|
1192
1261
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1193
1262
|
className,
|
|
1194
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "
|
|
1263
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 4.5V19.5M19.5 12H4.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
1195
1264
|
}
|
|
1196
1265
|
);
|
|
1197
1266
|
},
|
|
@@ -4733,7 +4802,7 @@ var input_default = Input;
|
|
|
4733
4802
|
var inputStyle = tv(
|
|
4734
4803
|
{
|
|
4735
4804
|
slots: {
|
|
4736
|
-
base: ["group/input", "flex"],
|
|
4805
|
+
base: ["group/input", "flex select-none"],
|
|
4737
4806
|
vertical: ["flex-col"],
|
|
4738
4807
|
horizon: ["flex-row", "gap-0"],
|
|
4739
4808
|
label: ["flex", "items-center", "font-bold", "text-body-foreground", "min-w-[80px]"],
|
|
@@ -5263,13 +5332,14 @@ var Table = (0, import_react7.forwardRef)((originalProps, ref) => {
|
|
|
5263
5332
|
pagination,
|
|
5264
5333
|
onPageChange,
|
|
5265
5334
|
emptyContent,
|
|
5335
|
+
isLoading,
|
|
5266
5336
|
className,
|
|
5267
5337
|
color
|
|
5268
5338
|
} = { ...props, ...variantProps };
|
|
5269
5339
|
const [checkedRows, setCheckedRows] = (0, import_react7.useState)(/* @__PURE__ */ new Set());
|
|
5270
5340
|
const divRef = (0, import_react7.useRef)(null);
|
|
5271
5341
|
const { page, perPage } = pagination || { page: 1, perPage: 10 };
|
|
5272
|
-
const showPagination = pagination && typeof totalData === "number";
|
|
5342
|
+
const showPagination = pagination && typeof totalData === "number" && !isLoading;
|
|
5273
5343
|
(0, import_react7.useImperativeHandle)(ref, () => ({
|
|
5274
5344
|
checkedRows,
|
|
5275
5345
|
setCheckedRows
|
|
@@ -5288,7 +5358,7 @@ var Table = (0, import_react7.forwardRef)((originalProps, ref) => {
|
|
|
5288
5358
|
};
|
|
5289
5359
|
const slots = (0, import_react7.useMemo)(() => tableStyle(variantProps), [variantProps]);
|
|
5290
5360
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { ref: divRef, "data-table": "base", className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
5291
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(scrollArea_default, { size: size === "xl" ? "lg" : size, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("table", { className: slots.table({ class: classNames == null ? void 0 : classNames.table }), children: [
|
|
5361
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(scrollArea_default, { direction: "x", size: size === "xl" ? "lg" : size, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("table", { className: slots.table({ class: classNames == null ? void 0 : classNames.table }), children: [
|
|
5292
5362
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
5293
5363
|
table_head_default,
|
|
5294
5364
|
{
|
|
@@ -5312,7 +5382,12 @@ var Table = (0, import_react7.forwardRef)((originalProps, ref) => {
|
|
|
5312
5382
|
checkedRows,
|
|
5313
5383
|
onCheckRow: handleCheck,
|
|
5314
5384
|
emptyContent,
|
|
5315
|
-
|
|
5385
|
+
isLoading,
|
|
5386
|
+
classNames,
|
|
5387
|
+
className: clsx(
|
|
5388
|
+
"transition-all duration-150 ease-out",
|
|
5389
|
+
isLoading ? "-translate-y-2 opacity-0" : "translate-y-0 opacity-100"
|
|
5390
|
+
)
|
|
5316
5391
|
}
|
|
5317
5392
|
)
|
|
5318
5393
|
] }) }),
|
|
@@ -5545,7 +5620,49 @@ var tableStyle = (0, import_tailwind_variants6.tv)({
|
|
|
5545
5620
|
height: "narrow"
|
|
5546
5621
|
}
|
|
5547
5622
|
});
|
|
5623
|
+
|
|
5624
|
+
// src/components/table/form-table.tsx
|
|
5625
|
+
var import_react8 = require("react");
|
|
5626
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
5627
|
+
var DEFAULT_COLUMN_CLASSES = [
|
|
5628
|
+
"w-[120px] h-[50px] px-[10px] font-bold text-md text-body-foreground border-r border-neutral-light",
|
|
5629
|
+
"px-[10px]"
|
|
5630
|
+
];
|
|
5631
|
+
var FormTableRow = ({ columns, columnClasses = [] }) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("tr", { className: "border-neutral-light border-b", children: columns.map((col, index) => {
|
|
5632
|
+
var _a;
|
|
5633
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("td", { className: (_a = columnClasses[index]) != null ? _a : DEFAULT_COLUMN_CLASSES[index], children: col }, index);
|
|
5634
|
+
}) });
|
|
5635
|
+
var FormTable = (0, import_react8.forwardRef)(
|
|
5636
|
+
({ rows, onSubmit, footer, classNames }, ref) => {
|
|
5637
|
+
const slots = (0, import_react8.useMemo)(() => formTableStyle(), []);
|
|
5638
|
+
const content = /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_jsx_runtime10.Fragment, { children: [
|
|
5639
|
+
/* @__PURE__ */ (0, import_jsx_runtime10.jsx)("table", { className: slots.table({ class: classNames == null ? void 0 : classNames.table }), children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("tbody", { children: rows.map((row, i) => /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(FormTableRow, { ...row }, i)) }) }),
|
|
5640
|
+
footer && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { children: footer })
|
|
5641
|
+
] });
|
|
5642
|
+
if (onSubmit) {
|
|
5643
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
5644
|
+
"form",
|
|
5645
|
+
{
|
|
5646
|
+
ref,
|
|
5647
|
+
onSubmit,
|
|
5648
|
+
className: slots.base({ class: classNames == null ? void 0 : classNames.base }),
|
|
5649
|
+
children: content
|
|
5650
|
+
}
|
|
5651
|
+
);
|
|
5652
|
+
}
|
|
5653
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: content });
|
|
5654
|
+
}
|
|
5655
|
+
);
|
|
5656
|
+
FormTable.displayName = "FormTable";
|
|
5657
|
+
var form_table_default = FormTable;
|
|
5658
|
+
var formTableStyle = tv({
|
|
5659
|
+
slots: {
|
|
5660
|
+
base: ["flex", "flex-col", "gap-[30px]"],
|
|
5661
|
+
table: ["w-full", "table-fixed", "border", "border-neutral-light"]
|
|
5662
|
+
}
|
|
5663
|
+
});
|
|
5548
5664
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5549
5665
|
0 && (module.exports = {
|
|
5666
|
+
FormTable,
|
|
5550
5667
|
Table
|
|
5551
5668
|
});
|
|
@@ -1,26 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import "../../chunk-
|
|
2
|
+
import "../../chunk-DX3KXNP6.mjs";
|
|
3
|
+
import {
|
|
4
|
+
form_table_default
|
|
5
|
+
} from "../../chunk-3BKCODIL.mjs";
|
|
3
6
|
import {
|
|
4
7
|
table_default
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
8
|
+
} from "../../chunk-LNYMVBV5.mjs";
|
|
9
|
+
import "../../chunk-63WXGSTV.mjs";
|
|
7
10
|
import "../../chunk-3DPVPTHL.mjs";
|
|
8
11
|
import "../../chunk-DQRAFUDA.mjs";
|
|
9
12
|
import "../../chunk-M37VBNB3.mjs";
|
|
10
13
|
import "../../chunk-7B7LRG5J.mjs";
|
|
11
|
-
import "../../chunk-
|
|
14
|
+
import "../../chunk-EGHTZLZJ.mjs";
|
|
12
15
|
import "../../chunk-F3HENRVM.mjs";
|
|
13
16
|
import "../../chunk-2GCSFWHD.mjs";
|
|
14
|
-
import "../../chunk-
|
|
17
|
+
import "../../chunk-JOCMCOEK.mjs";
|
|
15
18
|
import "../../chunk-QZ3LVYJW.mjs";
|
|
16
|
-
import "../../chunk-D6QI3DJG.mjs";
|
|
17
19
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
18
|
-
import "../../chunk-
|
|
19
|
-
import "../../chunk-
|
|
20
|
+
import "../../chunk-HWL7TPUN.mjs";
|
|
21
|
+
import "../../chunk-D6QI3DJG.mjs";
|
|
22
|
+
import "../../chunk-3IU2RPSM.mjs";
|
|
20
23
|
import "../../chunk-4ZJFD3L3.mjs";
|
|
21
24
|
import "../../chunk-27Y6K5NK.mjs";
|
|
22
25
|
import "../../chunk-E3G5QXSH.mjs";
|
|
23
26
|
import "../../chunk-AC6TWLRT.mjs";
|
|
24
27
|
export {
|
|
28
|
+
form_table_default as FormTable,
|
|
25
29
|
table_default as Table
|
|
26
30
|
};
|
|
@@ -13,8 +13,10 @@ interface TableBodyProps {
|
|
|
13
13
|
checkedRows: Set<number>;
|
|
14
14
|
onCheckRow: (index: number, isChecked: boolean) => void;
|
|
15
15
|
emptyContent?: ReactNode;
|
|
16
|
+
isLoading?: boolean;
|
|
16
17
|
classNames?: SlotsToClasses<TableSlots>;
|
|
18
|
+
className?: string;
|
|
17
19
|
}
|
|
18
|
-
declare const TableBody: ({ slots, columns, rows, size, selectableRows, checkedRows, onCheckRow, emptyContent, classNames, }: TableBodyProps) => react_jsx_runtime.JSX.Element;
|
|
20
|
+
declare const TableBody: ({ slots, columns, rows, size, selectableRows, checkedRows, onCheckRow, emptyContent, isLoading, classNames, className, }: TableBodyProps) => react_jsx_runtime.JSX.Element;
|
|
19
21
|
|
|
20
22
|
export { TableBody as default };
|
|
@@ -13,8 +13,10 @@ interface TableBodyProps {
|
|
|
13
13
|
checkedRows: Set<number>;
|
|
14
14
|
onCheckRow: (index: number, isChecked: boolean) => void;
|
|
15
15
|
emptyContent?: ReactNode;
|
|
16
|
+
isLoading?: boolean;
|
|
16
17
|
classNames?: SlotsToClasses<TableSlots>;
|
|
18
|
+
className?: string;
|
|
17
19
|
}
|
|
18
|
-
declare const TableBody: ({ slots, columns, rows, size, selectableRows, checkedRows, onCheckRow, emptyContent, classNames, }: TableBodyProps) => react_jsx_runtime.JSX.Element;
|
|
20
|
+
declare const TableBody: ({ slots, columns, rows, size, selectableRows, checkedRows, onCheckRow, emptyContent, isLoading, classNames, className, }: TableBodyProps) => react_jsx_runtime.JSX.Element;
|
|
19
21
|
|
|
20
22
|
export { TableBody as default };
|
|
@@ -605,7 +605,9 @@ var TableBody = ({
|
|
|
605
605
|
checkedRows,
|
|
606
606
|
onCheckRow,
|
|
607
607
|
emptyContent,
|
|
608
|
-
|
|
608
|
+
isLoading,
|
|
609
|
+
classNames,
|
|
610
|
+
className
|
|
609
611
|
}) => {
|
|
610
612
|
const generateColumnStyles = (0, import_react2.useCallback)((column) => {
|
|
611
613
|
const alignClass = column.align ? `text-${column.align}` : "text-left";
|
|
@@ -643,8 +645,8 @@ var TableBody = ({
|
|
|
643
645
|
);
|
|
644
646
|
const hasRows = rows.length > 0;
|
|
645
647
|
const colSpan = (columns.length || 1) + (selectableRows ? 1 : 0);
|
|
646
|
-
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("tbody", { className: slots.tbody({ class: classNames == null ? void 0 : classNames.tbody }), children: [
|
|
647
|
-
hasRows && rows.map((row, rowIndex) => {
|
|
648
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("tbody", { className: clsx(slots.tbody({ class: classNames == null ? void 0 : classNames.tbody }), className), children: [
|
|
649
|
+
!isLoading && hasRows && rows.map((row, rowIndex) => {
|
|
648
650
|
const isRowChecked = checkedRows.has(rowIndex);
|
|
649
651
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), "aria-checked": isRowChecked, children: [
|
|
650
652
|
columns.map((column) => /* @__PURE__ */ (0, import_react3.createElement)("td", { ...getCellProps(column, row), key: column.field })),
|
|
@@ -658,7 +660,7 @@ var TableBody = ({
|
|
|
658
660
|
) }) })
|
|
659
661
|
] }, rowIndex);
|
|
660
662
|
}),
|
|
661
|
-
!hasRows && emptyContent && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("tr", { className: clsx(slots.tr({ class: classNames == null ? void 0 : classNames.tr }), "border-none"), children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("td", { colSpan, className: slots.empty({ class: classNames == null ? void 0 : classNames.empty }), children: emptyContent }) })
|
|
663
|
+
!isLoading && !hasRows && emptyContent && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("tr", { className: clsx(slots.tr({ class: classNames == null ? void 0 : classNames.tr }), "border-none"), children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("td", { colSpan, className: slots.empty({ class: classNames == null ? void 0 : classNames.empty }), children: emptyContent }) })
|
|
662
664
|
] });
|
|
663
665
|
};
|
|
664
666
|
var table_body_default = TableBody;
|
|
@@ -636,7 +636,9 @@ var TableBody = ({
|
|
|
636
636
|
checkedRows,
|
|
637
637
|
onCheckRow,
|
|
638
638
|
emptyContent,
|
|
639
|
-
|
|
639
|
+
isLoading,
|
|
640
|
+
classNames,
|
|
641
|
+
className
|
|
640
642
|
}) => {
|
|
641
643
|
const generateColumnStyles = (0, import_react2.useCallback)((column) => {
|
|
642
644
|
const alignClass = column.align ? `text-${column.align}` : "text-left";
|
|
@@ -674,8 +676,8 @@ var TableBody = ({
|
|
|
674
676
|
);
|
|
675
677
|
const hasRows = rows.length > 0;
|
|
676
678
|
const colSpan = (columns.length || 1) + (selectableRows ? 1 : 0);
|
|
677
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("tbody", { className: slots.tbody({ class: classNames == null ? void 0 : classNames.tbody }), children: [
|
|
678
|
-
hasRows && rows.map((row, rowIndex) => {
|
|
679
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("tbody", { className: clsx(slots.tbody({ class: classNames == null ? void 0 : classNames.tbody }), className), children: [
|
|
680
|
+
!isLoading && hasRows && rows.map((row, rowIndex) => {
|
|
679
681
|
const isRowChecked = checkedRows.has(rowIndex);
|
|
680
682
|
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), "aria-checked": isRowChecked, children: [
|
|
681
683
|
columns.map((column) => /* @__PURE__ */ (0, import_react3.createElement)("td", { ...getCellProps(column, row), key: column.field })),
|
|
@@ -689,7 +691,7 @@ var TableBody = ({
|
|
|
689
691
|
) }) })
|
|
690
692
|
] }, rowIndex);
|
|
691
693
|
}),
|
|
692
|
-
!hasRows && emptyContent && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("tr", { className: clsx(slots.tr({ class: classNames == null ? void 0 : classNames.tr }), "border-none"), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { colSpan, className: slots.empty({ class: classNames == null ? void 0 : classNames.empty }), children: emptyContent }) })
|
|
694
|
+
!isLoading && !hasRows && emptyContent && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("tr", { className: clsx(slots.tr({ class: classNames == null ? void 0 : classNames.tr }), "border-none"), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("td", { colSpan, className: slots.empty({ class: classNames == null ? void 0 : classNames.empty }), children: emptyContent }) })
|
|
693
695
|
] });
|
|
694
696
|
};
|
|
695
697
|
var table_body_default = TableBody;
|
|
@@ -1163,23 +1165,89 @@ var template = {
|
|
|
1163
1165
|
}
|
|
1164
1166
|
);
|
|
1165
1167
|
},
|
|
1166
|
-
|
|
1167
|
-
// ** Status **
|
|
1168
|
-
plus: ({ className, fill }) => {
|
|
1168
|
+
exclamation: ({ className, fill }) => {
|
|
1169
1169
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1170
1170
|
"svg",
|
|
1171
1171
|
{
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1172
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1173
|
+
width: "18",
|
|
1174
|
+
height: "18",
|
|
1175
|
+
viewBox: "0 0 18 18",
|
|
1175
1176
|
fill: "none",
|
|
1177
|
+
className,
|
|
1178
|
+
children: fill ? /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
1179
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1180
|
+
"path",
|
|
1181
|
+
{
|
|
1182
|
+
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",
|
|
1183
|
+
fill: "currentColor"
|
|
1184
|
+
}
|
|
1185
|
+
),
|
|
1186
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1187
|
+
"path",
|
|
1188
|
+
{
|
|
1189
|
+
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",
|
|
1190
|
+
fill: "white"
|
|
1191
|
+
}
|
|
1192
|
+
),
|
|
1193
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1194
|
+
"path",
|
|
1195
|
+
{
|
|
1196
|
+
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",
|
|
1197
|
+
fill: "white"
|
|
1198
|
+
}
|
|
1199
|
+
)
|
|
1200
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_jsx_runtime4.Fragment, { children: [
|
|
1201
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1202
|
+
"path",
|
|
1203
|
+
{
|
|
1204
|
+
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",
|
|
1205
|
+
stroke: "currentColor"
|
|
1206
|
+
}
|
|
1207
|
+
),
|
|
1208
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1209
|
+
"path",
|
|
1210
|
+
{
|
|
1211
|
+
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",
|
|
1212
|
+
fill: "currentColor"
|
|
1213
|
+
}
|
|
1214
|
+
),
|
|
1215
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1216
|
+
"path",
|
|
1217
|
+
{
|
|
1218
|
+
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",
|
|
1219
|
+
fill: "currentColor"
|
|
1220
|
+
}
|
|
1221
|
+
)
|
|
1222
|
+
] })
|
|
1223
|
+
}
|
|
1224
|
+
);
|
|
1225
|
+
},
|
|
1226
|
+
close: ({ className }) => {
|
|
1227
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1228
|
+
"svg",
|
|
1229
|
+
{
|
|
1176
1230
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1231
|
+
width: "27",
|
|
1232
|
+
height: "27",
|
|
1233
|
+
viewBox: "0 0 27 27",
|
|
1234
|
+
fill: "none",
|
|
1177
1235
|
className,
|
|
1178
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1236
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1237
|
+
"path",
|
|
1238
|
+
{
|
|
1239
|
+
fillRule: "evenodd",
|
|
1240
|
+
clipRule: "evenodd",
|
|
1241
|
+
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",
|
|
1242
|
+
fill: "currentColor"
|
|
1243
|
+
}
|
|
1244
|
+
)
|
|
1179
1245
|
}
|
|
1180
1246
|
);
|
|
1181
1247
|
},
|
|
1182
|
-
|
|
1248
|
+
// ----------------------------------- old ---------------------------------
|
|
1249
|
+
// ** Status **
|
|
1250
|
+
plus: ({ className, fill }) => {
|
|
1183
1251
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
1184
1252
|
"svg",
|
|
1185
1253
|
{
|
|
@@ -1189,7 +1257,7 @@ var template = {
|
|
|
1189
1257
|
fill: "none",
|
|
1190
1258
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1191
1259
|
className,
|
|
1192
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "
|
|
1260
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("path", { d: "M12 4.5V19.5M19.5 12H4.5", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
1193
1261
|
}
|
|
1194
1262
|
);
|
|
1195
1263
|
},
|
|
@@ -4731,7 +4799,7 @@ var input_default = Input;
|
|
|
4731
4799
|
var inputStyle = tv(
|
|
4732
4800
|
{
|
|
4733
4801
|
slots: {
|
|
4734
|
-
base: ["group/input", "flex"],
|
|
4802
|
+
base: ["group/input", "flex select-none"],
|
|
4735
4803
|
vertical: ["flex-col"],
|
|
4736
4804
|
horizon: ["flex-row", "gap-0"],
|
|
4737
4805
|
label: ["flex", "items-center", "font-bold", "text-body-foreground", "min-w-[80px]"],
|
|
@@ -5261,13 +5329,14 @@ var Table = (0, import_react7.forwardRef)((originalProps, ref) => {
|
|
|
5261
5329
|
pagination,
|
|
5262
5330
|
onPageChange,
|
|
5263
5331
|
emptyContent,
|
|
5332
|
+
isLoading,
|
|
5264
5333
|
className,
|
|
5265
5334
|
color
|
|
5266
5335
|
} = { ...props, ...variantProps };
|
|
5267
5336
|
const [checkedRows, setCheckedRows] = (0, import_react7.useState)(/* @__PURE__ */ new Set());
|
|
5268
5337
|
const divRef = (0, import_react7.useRef)(null);
|
|
5269
5338
|
const { page, perPage } = pagination || { page: 1, perPage: 10 };
|
|
5270
|
-
const showPagination = pagination && typeof totalData === "number";
|
|
5339
|
+
const showPagination = pagination && typeof totalData === "number" && !isLoading;
|
|
5271
5340
|
(0, import_react7.useImperativeHandle)(ref, () => ({
|
|
5272
5341
|
checkedRows,
|
|
5273
5342
|
setCheckedRows
|
|
@@ -5286,7 +5355,7 @@ var Table = (0, import_react7.forwardRef)((originalProps, ref) => {
|
|
|
5286
5355
|
};
|
|
5287
5356
|
const slots = (0, import_react7.useMemo)(() => tableStyle(variantProps), [variantProps]);
|
|
5288
5357
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { ref: divRef, "data-table": "base", className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
5289
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(scrollArea_default, { size: size === "xl" ? "lg" : size, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("table", { className: slots.table({ class: classNames == null ? void 0 : classNames.table }), children: [
|
|
5358
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(scrollArea_default, { direction: "x", size: size === "xl" ? "lg" : size, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("table", { className: slots.table({ class: classNames == null ? void 0 : classNames.table }), children: [
|
|
5290
5359
|
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
5291
5360
|
table_head_default,
|
|
5292
5361
|
{
|
|
@@ -5310,7 +5379,12 @@ var Table = (0, import_react7.forwardRef)((originalProps, ref) => {
|
|
|
5310
5379
|
checkedRows,
|
|
5311
5380
|
onCheckRow: handleCheck,
|
|
5312
5381
|
emptyContent,
|
|
5313
|
-
|
|
5382
|
+
isLoading,
|
|
5383
|
+
classNames,
|
|
5384
|
+
className: clsx(
|
|
5385
|
+
"transition-all duration-150 ease-out",
|
|
5386
|
+
isLoading ? "-translate-y-2 opacity-0" : "translate-y-0 opacity-100"
|
|
5387
|
+
)
|
|
5314
5388
|
}
|
|
5315
5389
|
)
|
|
5316
5390
|
] }) }),
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
table_default
|
|
4
|
-
} from "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
4
|
+
} from "../../chunk-LNYMVBV5.mjs";
|
|
5
|
+
import "../../chunk-63WXGSTV.mjs";
|
|
6
6
|
import "../../chunk-3DPVPTHL.mjs";
|
|
7
7
|
import "../../chunk-DQRAFUDA.mjs";
|
|
8
8
|
import "../../chunk-M37VBNB3.mjs";
|
|
9
9
|
import "../../chunk-7B7LRG5J.mjs";
|
|
10
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-EGHTZLZJ.mjs";
|
|
11
11
|
import "../../chunk-F3HENRVM.mjs";
|
|
12
12
|
import "../../chunk-2GCSFWHD.mjs";
|
|
13
|
-
import "../../chunk-
|
|
13
|
+
import "../../chunk-JOCMCOEK.mjs";
|
|
14
14
|
import "../../chunk-QZ3LVYJW.mjs";
|
|
15
|
-
import "../../chunk-D6QI3DJG.mjs";
|
|
16
15
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
17
|
-
import "../../chunk-
|
|
18
|
-
import "../../chunk-
|
|
16
|
+
import "../../chunk-HWL7TPUN.mjs";
|
|
17
|
+
import "../../chunk-D6QI3DJG.mjs";
|
|
18
|
+
import "../../chunk-3IU2RPSM.mjs";
|
|
19
19
|
import "../../chunk-4ZJFD3L3.mjs";
|
|
20
20
|
import "../../chunk-27Y6K5NK.mjs";
|
|
21
21
|
import "../../chunk-E3G5QXSH.mjs";
|