@deepnoid/ui 0.1.144 → 0.1.145
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 +169 -169
- package/dist/{chunk-MCBAEW2Q.mjs → chunk-2CLPU5LR.mjs} +1 -1
- package/dist/{chunk-YYL4LXS7.mjs → chunk-3D5ZOAUR.mjs} +4 -4
- package/dist/{chunk-P3PXIJTU.mjs → chunk-3IILPVRA.mjs} +1 -1
- package/dist/{chunk-2TDHQLVV.mjs → chunk-4DESGO3D.mjs} +1 -1
- package/dist/{chunk-GBVRYEVP.mjs → chunk-5HMTKXVV.mjs} +1 -1
- package/dist/{chunk-4ED5G3HR.mjs → chunk-5PJMKFMX.mjs} +1 -1
- package/dist/{chunk-QQMJQSD7.mjs → chunk-6EMUORXZ.mjs} +1 -1
- package/dist/{chunk-Y6TPXGN2.mjs → chunk-6F4GD2PP.mjs} +1 -1
- package/dist/{chunk-GXU7XPZX.mjs → chunk-7HWPWDYW.mjs} +2 -2
- package/dist/{chunk-IW2MDZBW.mjs → chunk-AF4I7ZQS.mjs} +1 -1
- package/dist/{chunk-76QIZILI.mjs → chunk-CDXBML6O.mjs} +3 -6
- package/dist/{chunk-FYDSBMWH.mjs → chunk-CSZQLOP5.mjs} +2 -2
- package/dist/{chunk-XL3K55LE.mjs → chunk-EKLA6ZR4.mjs} +1 -1
- package/dist/{chunk-DRFO5P44.mjs → chunk-EOP4227J.mjs} +1 -1
- package/dist/{chunk-IHLCZM5T.mjs → chunk-GCVS5SLN.mjs} +1 -1
- package/dist/{chunk-BTXDP4WR.mjs → chunk-H3UI2ZNK.mjs} +1 -1
- package/dist/{chunk-3U5NJTRH.mjs → chunk-H6JGLPPF.mjs} +1 -1
- package/dist/{chunk-CVXLLXLE.mjs → chunk-I3ADJOUT.mjs} +1 -1
- package/dist/{chunk-GUTGDPXH.mjs → chunk-ITWKPTSD.mjs} +1 -1
- package/dist/{chunk-LMQR4BWD.mjs → chunk-J64OQUOI.mjs} +3 -3
- package/dist/{chunk-OEFILEL3.mjs → chunk-JGQ5MLQ7.mjs} +1 -1
- package/dist/{chunk-T3BUL253.mjs → chunk-JZMJ5UMR.mjs} +1 -1
- package/dist/{chunk-J26Y2G5W.mjs → chunk-LWSGRTWO.mjs} +2 -2
- package/dist/{chunk-BQ2HWORN.mjs → chunk-M523N4SD.mjs} +6 -6
- package/dist/{chunk-BBRPAQON.mjs → chunk-NBJHZ4X2.mjs} +1 -1
- package/dist/{chunk-SDUDU3CU.mjs → chunk-Q364C3FI.mjs} +1 -1
- package/dist/{chunk-WPSKPHR3.mjs → chunk-QW7T3V5O.mjs} +1 -1
- package/dist/{chunk-5XV45JBV.mjs → chunk-S7Y7XUBL.mjs} +1 -1
- package/dist/{chunk-NCK5E2NL.mjs → chunk-U2MHQYVG.mjs} +1 -1
- package/dist/{chunk-UZBMLAXN.mjs → chunk-U7L6Q5QY.mjs} +58 -49
- package/dist/{chunk-YLHM5XCF.mjs → chunk-UMMZ7NI5.mjs} +1 -1
- package/dist/{chunk-TWDIAH3Z.mjs → chunk-UOVPR2VJ.mjs} +1 -1
- package/dist/{chunk-MG62SPLM.mjs → chunk-V4QN7YF6.mjs} +2 -2
- package/dist/{chunk-JOHU56C6.mjs → chunk-WD5NOXWK.mjs} +1 -1
- package/dist/{chunk-3CW4WUMY.mjs → chunk-WYEUAXY7.mjs} +1 -1
- package/dist/{chunk-YGOX6FBU.mjs → chunk-YBVJFHH6.mjs} +1 -1
- package/dist/components/accordion/accordion.mjs +2 -2
- package/dist/components/accordion/accordionItem.mjs +2 -2
- package/dist/components/accordion/index.mjs +3 -3
- package/dist/components/avatar/avatar.mjs +2 -2
- 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.mjs +6 -6
- package/dist/components/breadcrumb/index.mjs +6 -6
- package/dist/components/button/button-group.mjs +2 -2
- package/dist/components/button/button.mjs +2 -2
- package/dist/components/button/icon-button.mjs +2 -2
- package/dist/components/button/index.mjs +5 -5
- package/dist/components/button/text-button.mjs +2 -2
- package/dist/components/charts/areaChart.mjs +2 -2
- package/dist/components/charts/barChart.mjs +2 -2
- package/dist/components/charts/circularProgress.mjs +2 -2
- package/dist/components/charts/index.mjs +5 -5
- package/dist/components/charts/radarChart.mjs +2 -2
- package/dist/components/checkbox/checkbox.mjs +2 -2
- package/dist/components/checkbox/index.mjs +2 -2
- package/dist/components/chip/chip.mjs +2 -2
- package/dist/components/chip/index.mjs +2 -2
- package/dist/components/drawer/drawer.mjs +2 -2
- package/dist/components/drawer/index.mjs +2 -2
- package/dist/components/fileUpload/fileUpload.mjs +8 -8
- package/dist/components/fileUpload/index.mjs +8 -8
- package/dist/components/input/index.mjs +2 -2
- package/dist/components/input/input.mjs +2 -2
- package/dist/components/list/index.mjs +4 -4
- package/dist/components/list/list.mjs +2 -2
- package/dist/components/list/listItem.mjs +3 -3
- package/dist/components/modal/index.mjs +7 -7
- package/dist/components/modal/modal.mjs +7 -7
- package/dist/components/pagination/index.mjs +3 -3
- package/dist/components/pagination/pagination.mjs +3 -3
- package/dist/components/picker/datePicker.mjs +8 -8
- package/dist/components/picker/day.mjs +2 -2
- package/dist/components/picker/index.mjs +10 -10
- package/dist/components/picker/timePicker.mjs +3 -3
- package/dist/components/progress/index.mjs +2 -2
- package/dist/components/progress/progress.mjs +2 -2
- package/dist/components/radio/index.mjs +2 -2
- package/dist/components/radio/radio.mjs +2 -2
- package/dist/components/select/index.mjs +2 -2
- package/dist/components/select/select.mjs +2 -2
- package/dist/components/table/definition-table.mjs +2 -2
- package/dist/components/table/form-table.mjs +1 -1
- package/dist/components/table/index.js +56 -47
- package/dist/components/table/index.mjs +6 -6
- package/dist/components/table/table-body.js +56 -47
- package/dist/components/table/table-body.mjs +5 -5
- package/dist/components/table/table-head.js +56 -47
- package/dist/components/table/table-head.mjs +5 -5
- package/dist/components/table/table.d.mts +3 -0
- package/dist/components/table/table.d.ts +3 -0
- package/dist/components/table/table.js +56 -47
- package/dist/components/table/table.mjs +5 -5
- package/dist/components/tabs/index.mjs +2 -2
- package/dist/components/tabs/tabs.mjs +2 -2
- package/dist/components/timePicker/calendar.mjs +1 -1
- package/dist/components/toast/index.mjs +3 -3
- package/dist/components/toast/toast.mjs +2 -2
- package/dist/components/toast/use-toast.mjs +3 -3
- package/dist/components/tooltip/index.mjs +2 -2
- package/dist/components/tooltip/tooltip.mjs +2 -2
- package/dist/components/tree/index.mjs +2 -2
- package/dist/components/tree/tree.mjs +2 -2
- package/dist/index.js +59 -53
- package/dist/index.mjs +39 -39
- package/dist/utils/tailwind-variants.mjs +1 -1
- package/package.json +1 -1
|
@@ -86,6 +86,7 @@ declare const tableStyle: tailwind_variants.TVReturnType<{
|
|
|
86
86
|
};
|
|
87
87
|
}, {
|
|
88
88
|
base: string[];
|
|
89
|
+
scroll: string[];
|
|
89
90
|
table: string[];
|
|
90
91
|
thead: string[];
|
|
91
92
|
tbody: string[];
|
|
@@ -146,6 +147,7 @@ declare const tableStyle: tailwind_variants.TVReturnType<{
|
|
|
146
147
|
};
|
|
147
148
|
}, {
|
|
148
149
|
base: string[];
|
|
150
|
+
scroll: string[];
|
|
149
151
|
table: string[];
|
|
150
152
|
thead: string[];
|
|
151
153
|
tbody: string[];
|
|
@@ -206,6 +208,7 @@ declare const tableStyle: tailwind_variants.TVReturnType<{
|
|
|
206
208
|
};
|
|
207
209
|
}, {
|
|
208
210
|
base: string[];
|
|
211
|
+
scroll: string[];
|
|
209
212
|
table: string[];
|
|
210
213
|
thead: string[];
|
|
211
214
|
tbody: string[];
|
|
@@ -6328,52 +6328,60 @@ var Table = (0, import_react5.forwardRef)((originalProps, ref) => {
|
|
|
6328
6328
|
[variantProps, onRowClick]
|
|
6329
6329
|
);
|
|
6330
6330
|
return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { "data-table": "base", className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
6331
|
-
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
6332
|
-
|
|
6333
|
-
|
|
6334
|
-
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
|
|
6342
|
-
|
|
6343
|
-
|
|
6344
|
-
|
|
6345
|
-
|
|
6346
|
-
|
|
6347
|
-
|
|
6348
|
-
|
|
6349
|
-
|
|
6350
|
-
|
|
6351
|
-
|
|
6352
|
-
|
|
6353
|
-
|
|
6354
|
-
|
|
6355
|
-
|
|
6356
|
-
|
|
6357
|
-
|
|
6358
|
-
|
|
6359
|
-
|
|
6360
|
-
|
|
6361
|
-
|
|
6362
|
-
|
|
6363
|
-
|
|
6364
|
-
|
|
6365
|
-
|
|
6366
|
-
|
|
6367
|
-
|
|
6368
|
-
|
|
6369
|
-
|
|
6370
|
-
|
|
6371
|
-
|
|
6372
|
-
|
|
6373
|
-
|
|
6374
|
-
|
|
6375
|
-
|
|
6376
|
-
|
|
6331
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
6332
|
+
scrollArea_default,
|
|
6333
|
+
{
|
|
6334
|
+
direction: "both",
|
|
6335
|
+
size: size === "xl" ? "lg" : size,
|
|
6336
|
+
className: slots.scroll({ class: classNames == null ? void 0 : classNames.scroll }),
|
|
6337
|
+
children: [
|
|
6338
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
6339
|
+
"table",
|
|
6340
|
+
{
|
|
6341
|
+
className: slots.table({ class: classNames == null ? void 0 : classNames.table }),
|
|
6342
|
+
style: {
|
|
6343
|
+
tableLayout: "fixed",
|
|
6344
|
+
width: "100%",
|
|
6345
|
+
minWidth: `${tableMinWidth}px`
|
|
6346
|
+
},
|
|
6347
|
+
children: [
|
|
6348
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
6349
|
+
table_head_default,
|
|
6350
|
+
{
|
|
6351
|
+
columns,
|
|
6352
|
+
size,
|
|
6353
|
+
color,
|
|
6354
|
+
rowCheckbox,
|
|
6355
|
+
hasCheckedRows: rows.length > 0 && rows.every((row) => checkedRowIds.has(row.id)),
|
|
6356
|
+
onCheckAll: handleAllRowCheck,
|
|
6357
|
+
classNames,
|
|
6358
|
+
slots
|
|
6359
|
+
}
|
|
6360
|
+
),
|
|
6361
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
6362
|
+
table_body_default,
|
|
6363
|
+
{
|
|
6364
|
+
slots,
|
|
6365
|
+
rows,
|
|
6366
|
+
columns,
|
|
6367
|
+
size,
|
|
6368
|
+
color,
|
|
6369
|
+
rowCheckbox,
|
|
6370
|
+
checkedRows: checkedRowIds,
|
|
6371
|
+
onCheckRow: handleRowCheck,
|
|
6372
|
+
onRowClick: handleRowClick,
|
|
6373
|
+
isLoading,
|
|
6374
|
+
emptyContent,
|
|
6375
|
+
classNames
|
|
6376
|
+
}
|
|
6377
|
+
)
|
|
6378
|
+
]
|
|
6379
|
+
}
|
|
6380
|
+
),
|
|
6381
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: slots.overlay({ class: classNames == null ? void 0 : classNames.overlay }) })
|
|
6382
|
+
]
|
|
6383
|
+
}
|
|
6384
|
+
),
|
|
6377
6385
|
showPagination && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
6378
6386
|
pagination_default,
|
|
6379
6387
|
{
|
|
@@ -6395,7 +6403,8 @@ Table.displayName = "Table";
|
|
|
6395
6403
|
var table_default = Table;
|
|
6396
6404
|
var tableStyle = (0, import_tailwind_variants6.tv)({
|
|
6397
6405
|
slots: {
|
|
6398
|
-
base: ["flex", "flex-col", "relative", "select-none", "gap-[20px]"],
|
|
6406
|
+
base: ["flex", "flex-col", "relative", "select-none", "gap-[20px]", "min-h-[calc(100vh+46px)]"],
|
|
6407
|
+
scroll: ["max-h-screen", "overflow-y-auto"],
|
|
6399
6408
|
table: ["w-full", "h-auto"],
|
|
6400
6409
|
thead: ["w-full"],
|
|
6401
6410
|
tbody: ["w-full"],
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
import {
|
|
3
3
|
getCellStyle,
|
|
4
4
|
table_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-U7L6Q5QY.mjs";
|
|
6
6
|
import "../../chunk-7B7LRG5J.mjs";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-V4QN7YF6.mjs";
|
|
8
8
|
import "../../chunk-F3HENRVM.mjs";
|
|
9
9
|
import "../../chunk-2GCSFWHD.mjs";
|
|
10
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-WD5NOXWK.mjs";
|
|
11
11
|
import "../../chunk-DQRAFUDA.mjs";
|
|
12
12
|
import "../../chunk-M37VBNB3.mjs";
|
|
13
13
|
import "../../chunk-QZ3LVYJW.mjs";
|
|
14
|
-
import "../../chunk-
|
|
14
|
+
import "../../chunk-H6JGLPPF.mjs";
|
|
15
15
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
16
16
|
import "../../chunk-Q6BXFXQM.mjs";
|
|
17
17
|
import "../../chunk-E3G5QXSH.mjs";
|
|
18
18
|
import "../../chunk-NX4FTFY3.mjs";
|
|
19
|
-
import "../../chunk-
|
|
19
|
+
import "../../chunk-CDXBML6O.mjs";
|
|
20
20
|
import "../../chunk-27Y6K5NK.mjs";
|
|
21
21
|
import "../../chunk-AC6TWLRT.mjs";
|
|
22
22
|
export {
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import "../../chunk-3MY6LO7N.mjs";
|
|
3
3
|
import {
|
|
4
4
|
tabs_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-NBJHZ4X2.mjs";
|
|
6
6
|
import "../../chunk-E3G5QXSH.mjs";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-CDXBML6O.mjs";
|
|
8
8
|
import "../../chunk-AC6TWLRT.mjs";
|
|
9
9
|
export {
|
|
10
10
|
tabs_default as Tabs
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import {
|
|
3
3
|
tabs,
|
|
4
4
|
tabs_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-NBJHZ4X2.mjs";
|
|
6
6
|
import "../../chunk-E3G5QXSH.mjs";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-CDXBML6O.mjs";
|
|
8
8
|
import "../../chunk-AC6TWLRT.mjs";
|
|
9
9
|
export {
|
|
10
10
|
tabs_default as default,
|
|
@@ -3,16 +3,16 @@ import "../../chunk-LUWGOKLG.mjs";
|
|
|
3
3
|
import {
|
|
4
4
|
ToastProvider,
|
|
5
5
|
useToast
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-UMMZ7NI5.mjs";
|
|
7
7
|
import "../../chunk-ZOTHPHXA.mjs";
|
|
8
8
|
import {
|
|
9
9
|
toast_default
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-EOP4227J.mjs";
|
|
11
11
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
12
12
|
import "../../chunk-Q6BXFXQM.mjs";
|
|
13
13
|
import "../../chunk-E3G5QXSH.mjs";
|
|
14
14
|
import "../../chunk-NX4FTFY3.mjs";
|
|
15
|
-
import "../../chunk-
|
|
15
|
+
import "../../chunk-CDXBML6O.mjs";
|
|
16
16
|
import "../../chunk-27Y6K5NK.mjs";
|
|
17
17
|
import "../../chunk-AC6TWLRT.mjs";
|
|
18
18
|
export {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
toast_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-EOP4227J.mjs";
|
|
5
5
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
6
6
|
import "../../chunk-Q6BXFXQM.mjs";
|
|
7
7
|
import "../../chunk-E3G5QXSH.mjs";
|
|
8
8
|
import "../../chunk-NX4FTFY3.mjs";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-CDXBML6O.mjs";
|
|
10
10
|
import "../../chunk-27Y6K5NK.mjs";
|
|
11
11
|
import "../../chunk-AC6TWLRT.mjs";
|
|
12
12
|
export {
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ToastProvider,
|
|
4
4
|
useToast
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-UMMZ7NI5.mjs";
|
|
6
6
|
import "../../chunk-ZOTHPHXA.mjs";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-EOP4227J.mjs";
|
|
8
8
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
9
9
|
import "../../chunk-Q6BXFXQM.mjs";
|
|
10
10
|
import "../../chunk-E3G5QXSH.mjs";
|
|
11
11
|
import "../../chunk-NX4FTFY3.mjs";
|
|
12
|
-
import "../../chunk-
|
|
12
|
+
import "../../chunk-CDXBML6O.mjs";
|
|
13
13
|
import "../../chunk-27Y6K5NK.mjs";
|
|
14
14
|
import "../../chunk-AC6TWLRT.mjs";
|
|
15
15
|
export {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import "../../chunk-HIE2YRGA.mjs";
|
|
3
3
|
import {
|
|
4
4
|
tooltip_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-YBVJFHH6.mjs";
|
|
6
6
|
import "../../chunk-ZMOAFSYE.mjs";
|
|
7
7
|
import "../../chunk-WSIADHVC.mjs";
|
|
8
8
|
import "../../chunk-E3G5QXSH.mjs";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-CDXBML6O.mjs";
|
|
10
10
|
import "../../chunk-AC6TWLRT.mjs";
|
|
11
11
|
export {
|
|
12
12
|
tooltip_default as Tooltip
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
tooltip_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-YBVJFHH6.mjs";
|
|
5
5
|
import "../../chunk-ZMOAFSYE.mjs";
|
|
6
6
|
import "../../chunk-WSIADHVC.mjs";
|
|
7
7
|
import "../../chunk-E3G5QXSH.mjs";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-CDXBML6O.mjs";
|
|
9
9
|
import "../../chunk-AC6TWLRT.mjs";
|
|
10
10
|
export {
|
|
11
11
|
tooltip_default as default
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import "../../chunk-MBLZYQCN.mjs";
|
|
3
3
|
import {
|
|
4
4
|
tree_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-UOVPR2VJ.mjs";
|
|
6
6
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
7
7
|
import "../../chunk-Q6BXFXQM.mjs";
|
|
8
8
|
import "../../chunk-NX4FTFY3.mjs";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-CDXBML6O.mjs";
|
|
10
10
|
import "../../chunk-27Y6K5NK.mjs";
|
|
11
11
|
import "../../chunk-AC6TWLRT.mjs";
|
|
12
12
|
export {
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import {
|
|
3
3
|
Tree,
|
|
4
4
|
tree_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-UOVPR2VJ.mjs";
|
|
6
6
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
7
7
|
import "../../chunk-Q6BXFXQM.mjs";
|
|
8
8
|
import "../../chunk-NX4FTFY3.mjs";
|
|
9
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-CDXBML6O.mjs";
|
|
10
10
|
import "../../chunk-27Y6K5NK.mjs";
|
|
11
11
|
import "../../chunk-AC6TWLRT.mjs";
|
|
12
12
|
export {
|
package/dist/index.js
CHANGED
|
@@ -548,8 +548,7 @@ var scrollbar = {
|
|
|
548
548
|
height: "6px"
|
|
549
549
|
},
|
|
550
550
|
"&::-webkit-scrollbar-thumb": {
|
|
551
|
-
backgroundColor: "
|
|
552
|
-
// "rgba(0, 0, 0, 0.05)",
|
|
551
|
+
backgroundColor: "rgba(0, 0, 0, 0.05)",
|
|
553
552
|
borderRadius: "100px"
|
|
554
553
|
},
|
|
555
554
|
"&::-webkit-scrollbar-track": {
|
|
@@ -562,8 +561,7 @@ var scrollbar = {
|
|
|
562
561
|
height: "8px"
|
|
563
562
|
},
|
|
564
563
|
"&::-webkit-scrollbar-thumb": {
|
|
565
|
-
backgroundColor: "
|
|
566
|
-
// "rgba(0, 0, 0, 0.05)",
|
|
564
|
+
backgroundColor: "rgba(0, 0, 0, 0.05)",
|
|
567
565
|
borderRadius: "100px"
|
|
568
566
|
},
|
|
569
567
|
"&::-webkit-scrollbar-track": {
|
|
@@ -576,8 +574,7 @@ var scrollbar = {
|
|
|
576
574
|
height: "10px"
|
|
577
575
|
},
|
|
578
576
|
"&::-webkit-scrollbar-thumb": {
|
|
579
|
-
backgroundColor: "
|
|
580
|
-
// "rgba(0, 0, 0, 0.05)",
|
|
577
|
+
backgroundColor: "rgba(0, 0, 0, 0.05)",
|
|
581
578
|
borderRadius: "100px"
|
|
582
579
|
},
|
|
583
580
|
"&::-webkit-scrollbar-track": {
|
|
@@ -8676,52 +8673,60 @@ var Table = (0, import_react17.forwardRef)((originalProps, ref) => {
|
|
|
8676
8673
|
[variantProps, onRowClick]
|
|
8677
8674
|
);
|
|
8678
8675
|
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { "data-table": "base", className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
8679
|
-
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
8680
|
-
|
|
8681
|
-
|
|
8682
|
-
|
|
8683
|
-
|
|
8684
|
-
|
|
8685
|
-
|
|
8686
|
-
|
|
8687
|
-
|
|
8688
|
-
|
|
8689
|
-
|
|
8690
|
-
|
|
8691
|
-
|
|
8692
|
-
|
|
8693
|
-
|
|
8694
|
-
|
|
8695
|
-
|
|
8696
|
-
|
|
8697
|
-
|
|
8698
|
-
|
|
8699
|
-
|
|
8700
|
-
|
|
8701
|
-
|
|
8702
|
-
|
|
8703
|
-
|
|
8704
|
-
|
|
8705
|
-
|
|
8706
|
-
|
|
8707
|
-
|
|
8708
|
-
|
|
8709
|
-
|
|
8710
|
-
|
|
8711
|
-
|
|
8712
|
-
|
|
8713
|
-
|
|
8714
|
-
|
|
8715
|
-
|
|
8716
|
-
|
|
8717
|
-
|
|
8718
|
-
|
|
8719
|
-
|
|
8720
|
-
|
|
8721
|
-
|
|
8722
|
-
|
|
8723
|
-
|
|
8724
|
-
|
|
8676
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
8677
|
+
scrollArea_default,
|
|
8678
|
+
{
|
|
8679
|
+
direction: "both",
|
|
8680
|
+
size: size === "xl" ? "lg" : size,
|
|
8681
|
+
className: slots.scroll({ class: classNames == null ? void 0 : classNames.scroll }),
|
|
8682
|
+
children: [
|
|
8683
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
8684
|
+
"table",
|
|
8685
|
+
{
|
|
8686
|
+
className: slots.table({ class: classNames == null ? void 0 : classNames.table }),
|
|
8687
|
+
style: {
|
|
8688
|
+
tableLayout: "fixed",
|
|
8689
|
+
width: "100%",
|
|
8690
|
+
minWidth: `${tableMinWidth}px`
|
|
8691
|
+
},
|
|
8692
|
+
children: [
|
|
8693
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
8694
|
+
table_head_default,
|
|
8695
|
+
{
|
|
8696
|
+
columns,
|
|
8697
|
+
size,
|
|
8698
|
+
color,
|
|
8699
|
+
rowCheckbox,
|
|
8700
|
+
hasCheckedRows: rows.length > 0 && rows.every((row) => checkedRowIds.has(row.id)),
|
|
8701
|
+
onCheckAll: handleAllRowCheck,
|
|
8702
|
+
classNames,
|
|
8703
|
+
slots
|
|
8704
|
+
}
|
|
8705
|
+
),
|
|
8706
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
8707
|
+
table_body_default,
|
|
8708
|
+
{
|
|
8709
|
+
slots,
|
|
8710
|
+
rows,
|
|
8711
|
+
columns,
|
|
8712
|
+
size,
|
|
8713
|
+
color,
|
|
8714
|
+
rowCheckbox,
|
|
8715
|
+
checkedRows: checkedRowIds,
|
|
8716
|
+
onCheckRow: handleRowCheck,
|
|
8717
|
+
onRowClick: handleRowClick,
|
|
8718
|
+
isLoading,
|
|
8719
|
+
emptyContent,
|
|
8720
|
+
classNames
|
|
8721
|
+
}
|
|
8722
|
+
)
|
|
8723
|
+
]
|
|
8724
|
+
}
|
|
8725
|
+
),
|
|
8726
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: slots.overlay({ class: classNames == null ? void 0 : classNames.overlay }) })
|
|
8727
|
+
]
|
|
8728
|
+
}
|
|
8729
|
+
),
|
|
8725
8730
|
showPagination && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
8726
8731
|
pagination_default,
|
|
8727
8732
|
{
|
|
@@ -8743,7 +8748,8 @@ Table.displayName = "Table";
|
|
|
8743
8748
|
var table_default = Table;
|
|
8744
8749
|
var tableStyle = (0, import_tailwind_variants17.tv)({
|
|
8745
8750
|
slots: {
|
|
8746
|
-
base: ["flex", "flex-col", "relative", "select-none", "gap-[20px]"],
|
|
8751
|
+
base: ["flex", "flex-col", "relative", "select-none", "gap-[20px]", "min-h-[calc(100vh+46px)]"],
|
|
8752
|
+
scroll: ["max-h-screen", "overflow-y-auto"],
|
|
8747
8753
|
table: ["w-full", "h-auto"],
|
|
8748
8754
|
thead: ["w-full"],
|
|
8749
8755
|
tbody: ["w-full"],
|