@deepnoid/ui 0.1.0 → 0.1.1
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 +168 -168
- package/dist/{chunk-VWMXZUR2.mjs → chunk-2TJDQIKB.mjs} +1 -1
- package/dist/{chunk-IE2BRM7Z.mjs → chunk-2ZT6V4QR.mjs} +0 -9
- package/dist/{chunk-PKVQXVCS.mjs → chunk-56VCX2QR.mjs} +1 -1
- package/dist/{chunk-UAMIPCUD.mjs → chunk-AMA53H3C.mjs} +2 -2
- package/dist/{chunk-MW6Y3FSE.mjs → chunk-AYWI2CRE.mjs} +2 -2
- package/dist/{chunk-XAA5KY6A.mjs → chunk-CF6O6TCF.mjs} +1 -1
- package/dist/chunk-DUOYMLZL.mjs +283 -0
- package/dist/{chunk-QNA2GDTN.mjs → chunk-GLBASISV.mjs} +1 -1
- package/dist/{chunk-QJHZJRSQ.mjs → chunk-HKXUNG3H.mjs} +1 -1
- package/dist/{chunk-XTGRSVYO.mjs → chunk-J5WJD6XZ.mjs} +1 -1
- package/dist/chunk-M2IRRTFM.mjs +79 -0
- package/dist/{chunk-Q5WACGVP.mjs → chunk-N4F3R6HG.mjs} +1 -1
- package/dist/{chunk-WQBOPCH6.mjs → chunk-ON5SGXHZ.mjs} +1 -1
- package/dist/chunk-OQS4LGZK.mjs +27 -0
- package/dist/{chunk-KCYJYS66.mjs → chunk-RCU5MLBU.mjs} +1 -1
- package/dist/chunk-RT5NKQX4.mjs +285 -0
- package/dist/{chunk-X2MQCISM.mjs → chunk-S65S7QZ5.mjs} +1 -1
- package/dist/chunk-SPX2BHO2.mjs +314 -0
- package/dist/{chunk-3AMZ55Y6.mjs → chunk-SSEQSF5F.mjs} +3 -3
- package/dist/{chunk-RRL6KBU4.mjs → chunk-U2YKMXVG.mjs} +1 -1
- package/dist/{chunk-VBFXKJTI.mjs → chunk-VRGHUYRU.mjs} +2 -2
- package/dist/{chunk-5S4XGPBB.mjs → chunk-VVOOYDJS.mjs} +1 -1
- package/dist/{chunk-FYJZ7Q5L.mjs → chunk-XIHAABHB.mjs} +1 -1
- package/dist/{chunk-CATOSBI7.mjs → chunk-YCMZELLD.mjs} +2 -2
- package/dist/{chunk-2HSK6XGZ.mjs → chunk-YZNQ2QGK.mjs} +1 -1
- package/dist/{chunk-P5WT7WJO.mjs → chunk-ZEZ6ZA3N.mjs} +1 -1
- package/dist/components/avatar/avatar.js +0 -9
- package/dist/components/avatar/avatar.mjs +2 -2
- package/dist/components/avatar/index.js +0 -9
- package/dist/components/avatar/index.mjs +2 -2
- package/dist/components/backdrop/backdrop.js +0 -9
- package/dist/components/backdrop/backdrop.mjs +2 -2
- package/dist/components/backdrop/index.js +0 -9
- package/dist/components/backdrop/index.mjs +2 -2
- package/dist/components/breadcrumb/breadcrumb.js +0 -9
- package/dist/components/breadcrumb/breadcrumb.mjs +2 -2
- package/dist/components/breadcrumb/index.js +0 -9
- package/dist/components/breadcrumb/index.mjs +2 -2
- package/dist/components/button/button-group.js +0 -9
- package/dist/components/button/button-group.mjs +2 -2
- package/dist/components/button/button.js +0 -9
- package/dist/components/button/button.mjs +2 -2
- package/dist/components/button/index.js +0 -9
- package/dist/components/button/index.mjs +3 -3
- package/dist/components/checkbox/checkbox.js +0 -9
- package/dist/components/checkbox/checkbox.mjs +2 -2
- package/dist/components/checkbox/index.js +0 -9
- package/dist/components/checkbox/index.mjs +2 -2
- package/dist/components/chip/chip.js +0 -9
- package/dist/components/chip/chip.mjs +2 -2
- package/dist/components/chip/index.js +0 -9
- package/dist/components/chip/index.mjs +2 -2
- package/dist/components/dateTimePicker/calendar.js +0 -9
- package/dist/components/dateTimePicker/calendar.mjs +2 -2
- package/dist/components/dateTimePicker/dateTimePicker.js +0 -9
- package/dist/components/dateTimePicker/dateTimePicker.mjs +7 -7
- package/dist/components/dateTimePicker/index.js +0 -9
- package/dist/components/dateTimePicker/index.mjs +7 -7
- package/dist/components/dateTimePicker/timePicker.js +0 -9
- package/dist/components/dateTimePicker/timePicker.mjs +5 -5
- package/dist/components/input/index.d.mts +1 -1
- package/dist/components/input/index.d.ts +1 -1
- package/dist/components/input/index.js +429 -379
- package/dist/components/input/index.mjs +3 -2
- package/dist/components/input/input.d.mts +96 -81
- package/dist/components/input/input.d.ts +96 -81
- package/dist/components/input/input.js +429 -379
- package/dist/components/input/input.mjs +3 -2
- package/dist/components/list/index.js +0 -9
- package/dist/components/list/index.mjs +4 -4
- package/dist/components/list/list.js +0 -9
- package/dist/components/list/list.mjs +2 -2
- package/dist/components/list/listItem.js +0 -9
- package/dist/components/list/listItem.mjs +3 -3
- package/dist/components/modal/index.js +0 -9
- package/dist/components/modal/index.mjs +4 -4
- package/dist/components/modal/modal.js +0 -9
- package/dist/components/modal/modal.mjs +4 -4
- package/dist/components/pagination/index.d.mts +1 -1
- package/dist/components/pagination/index.d.ts +1 -1
- package/dist/components/pagination/index.js +320 -292
- package/dist/components/pagination/index.mjs +5 -4
- package/dist/components/pagination/pagination.d.mts +39 -95
- package/dist/components/pagination/pagination.d.ts +39 -95
- package/dist/components/pagination/pagination.js +322 -296
- package/dist/components/pagination/pagination.mjs +7 -8
- package/dist/components/radio/index.js +0 -9
- package/dist/components/radio/index.mjs +2 -2
- package/dist/components/radio/radio.js +0 -9
- package/dist/components/radio/radio.mjs +2 -2
- package/dist/components/select/index.js +0 -9
- package/dist/components/select/index.mjs +3 -3
- package/dist/components/select/option.js +0 -9
- package/dist/components/select/option.mjs +2 -2
- package/dist/components/select/select.js +0 -9
- package/dist/components/select/select.mjs +3 -3
- package/dist/components/table/index.js +1193 -775
- package/dist/components/table/index.mjs +10 -5
- package/dist/components/table/table-body.d.mts +10 -16
- package/dist/components/table/table-body.d.ts +10 -16
- package/dist/components/table/table-body.js +54 -3792
- package/dist/components/table/table-body.mjs +3 -6
- package/dist/components/table/table-head.d.mts +4 -6
- package/dist/components/table/table-head.d.ts +4 -6
- package/dist/components/table/table-head.js +6 -44
- package/dist/components/table/table-head.mjs +3 -3
- package/dist/components/table/table.d.mts +91 -231
- package/dist/components/table/table.d.ts +91 -231
- package/dist/components/table/table.js +1193 -775
- package/dist/components/table/table.mjs +10 -5
- package/dist/components/tabs/index.js +0 -9
- package/dist/components/tabs/index.mjs +2 -2
- package/dist/components/tabs/tabs.js +0 -9
- package/dist/components/tabs/tabs.mjs +2 -2
- package/dist/components/toast/index.js +0 -9
- package/dist/components/toast/index.mjs +3 -3
- package/dist/components/toast/toast.js +0 -9
- package/dist/components/toast/toast.mjs +2 -2
- package/dist/components/toast/use-toast.js +0 -9
- package/dist/components/toast/use-toast.mjs +3 -3
- package/dist/components/tooltip/index.js +0 -9
- package/dist/components/tooltip/index.mjs +2 -2
- package/dist/components/tooltip/tooltip.js +0 -9
- package/dist/components/tooltip/tooltip.mjs +2 -2
- package/dist/index.js +822 -958
- package/dist/index.mjs +46 -46
- package/dist/utils/tailwind-variants.js +0 -9
- package/dist/utils/tailwind-variants.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-5IQKKLZY.mjs +0 -139
- package/dist/chunk-PFYYYUJW.mjs +0 -56
- package/dist/chunk-RQ76IOYC.mjs +0 -300
- package/dist/chunk-SK2A72R2.mjs +0 -263
- package/dist/chunk-YGOEKSNZ.mjs +0 -345
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
table_body_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-M2IRRTFM.mjs";
|
|
5
5
|
import "../../chunk-QZ3LVYJW.mjs";
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
8
|
-
import "../../chunk-24NQEB73.mjs";
|
|
9
|
-
import "../../chunk-P2TMIZRH.mjs";
|
|
10
|
-
import "../../chunk-IE2BRM7Z.mjs";
|
|
6
|
+
import "../../chunk-J5WJD6XZ.mjs";
|
|
7
|
+
import "../../chunk-2ZT6V4QR.mjs";
|
|
11
8
|
import "../../chunk-27Y6K5NK.mjs";
|
|
12
9
|
import "../../chunk-E3G5QXSH.mjs";
|
|
13
10
|
import "../../chunk-AC6TWLRT.mjs";
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { Size, SlotsToClasses } from '../../utils/types.mjs';
|
|
3
|
-
import {
|
|
3
|
+
import { TableReturnType, TableColumn, TableSlots } from './table.mjs';
|
|
4
4
|
import 'tailwind-variants';
|
|
5
5
|
import 'react';
|
|
6
6
|
|
|
7
7
|
type TableHeadProps = {
|
|
8
|
-
columns: TableColumn[];
|
|
9
8
|
slots: TableReturnType;
|
|
9
|
+
columns: TableColumn[];
|
|
10
10
|
size?: Size;
|
|
11
|
-
|
|
12
|
-
isExpanded?: boolean;
|
|
13
|
-
isChecked?: boolean;
|
|
11
|
+
selectableRows?: boolean;
|
|
14
12
|
isCheckedAll: boolean;
|
|
15
13
|
classNames?: SlotsToClasses<TableSlots>;
|
|
16
14
|
onCheckAll: (isChecked: boolean) => void;
|
|
17
15
|
};
|
|
18
|
-
declare const TableHead: ({ columns, slots, size,
|
|
16
|
+
declare const TableHead: ({ columns, slots, size, selectableRows, isCheckedAll, classNames, onCheckAll }: TableHeadProps) => react_jsx_runtime.JSX.Element;
|
|
19
17
|
|
|
20
18
|
export { TableHead as default };
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { Size, SlotsToClasses } from '../../utils/types.js';
|
|
3
|
-
import {
|
|
3
|
+
import { TableReturnType, TableColumn, TableSlots } from './table.js';
|
|
4
4
|
import 'tailwind-variants';
|
|
5
5
|
import 'react';
|
|
6
6
|
|
|
7
7
|
type TableHeadProps = {
|
|
8
|
-
columns: TableColumn[];
|
|
9
8
|
slots: TableReturnType;
|
|
9
|
+
columns: TableColumn[];
|
|
10
10
|
size?: Size;
|
|
11
|
-
|
|
12
|
-
isExpanded?: boolean;
|
|
13
|
-
isChecked?: boolean;
|
|
11
|
+
selectableRows?: boolean;
|
|
14
12
|
isCheckedAll: boolean;
|
|
15
13
|
classNames?: SlotsToClasses<TableSlots>;
|
|
16
14
|
onCheckAll: (isChecked: boolean) => void;
|
|
17
15
|
};
|
|
18
|
-
declare const TableHead: ({ columns, slots, size,
|
|
16
|
+
declare const TableHead: ({ columns, slots, size, selectableRows, isCheckedAll, classNames, onCheckAll }: TableHeadProps) => react_jsx_runtime.JSX.Element;
|
|
19
17
|
|
|
20
18
|
export { TableHead as default };
|
|
@@ -105,7 +105,6 @@ __export(table_head_exports, {
|
|
|
105
105
|
default: () => table_head_default
|
|
106
106
|
});
|
|
107
107
|
module.exports = __toCommonJS(table_head_exports);
|
|
108
|
-
var import_react2 = require("react");
|
|
109
108
|
|
|
110
109
|
// src/utils/clsx.ts
|
|
111
110
|
function clsx(...args) {
|
|
@@ -161,35 +160,30 @@ var fontSize = {
|
|
|
161
160
|
h1: [
|
|
162
161
|
"40px",
|
|
163
162
|
{
|
|
164
|
-
letterSpacing: "-2%",
|
|
165
163
|
fontWeight: "700"
|
|
166
164
|
}
|
|
167
165
|
],
|
|
168
166
|
h2: [
|
|
169
167
|
"34px",
|
|
170
168
|
{
|
|
171
|
-
letterSpacing: "-2%",
|
|
172
169
|
fontWeight: "700"
|
|
173
170
|
}
|
|
174
171
|
],
|
|
175
172
|
h3: [
|
|
176
173
|
"28px",
|
|
177
174
|
{
|
|
178
|
-
letterSpacing: "-2%",
|
|
179
175
|
fontWeight: "700"
|
|
180
176
|
}
|
|
181
177
|
],
|
|
182
178
|
h4: [
|
|
183
179
|
"24px",
|
|
184
180
|
{
|
|
185
|
-
letterSpacing: "-2%",
|
|
186
181
|
fontWeight: "700"
|
|
187
182
|
}
|
|
188
183
|
],
|
|
189
184
|
h5: [
|
|
190
185
|
"20px",
|
|
191
186
|
{
|
|
192
|
-
letterSpacing: "-2%",
|
|
193
187
|
fontWeight: "600"
|
|
194
188
|
}
|
|
195
189
|
],
|
|
@@ -197,7 +191,6 @@ var fontSize = {
|
|
|
197
191
|
"12px",
|
|
198
192
|
{
|
|
199
193
|
lineHeight: "18px",
|
|
200
|
-
letterSpacing: "-2%",
|
|
201
194
|
fontWeight: "400"
|
|
202
195
|
}
|
|
203
196
|
],
|
|
@@ -205,7 +198,6 @@ var fontSize = {
|
|
|
205
198
|
"14px",
|
|
206
199
|
{
|
|
207
200
|
lineHeight: "21px",
|
|
208
|
-
letterSpacing: "-2%",
|
|
209
201
|
fontWeight: "400"
|
|
210
202
|
}
|
|
211
203
|
],
|
|
@@ -213,7 +205,6 @@ var fontSize = {
|
|
|
213
205
|
"16px",
|
|
214
206
|
{
|
|
215
207
|
lineHeight: "24px",
|
|
216
|
-
letterSpacing: "-2%",
|
|
217
208
|
fontWeight: "400"
|
|
218
209
|
}
|
|
219
210
|
],
|
|
@@ -221,7 +212,6 @@ var fontSize = {
|
|
|
221
212
|
"18px",
|
|
222
213
|
{
|
|
223
214
|
lineHeight: "27px",
|
|
224
|
-
letterSpacing: "-2%",
|
|
225
215
|
fontWeight: "400"
|
|
226
216
|
}
|
|
227
217
|
]
|
|
@@ -604,44 +594,16 @@ var checkboxStyle = tv({
|
|
|
604
594
|
|
|
605
595
|
// src/components/table/table-head.tsx
|
|
606
596
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
607
|
-
var
|
|
608
|
-
var TableHead = ({
|
|
609
|
-
columns,
|
|
610
|
-
slots,
|
|
611
|
-
size,
|
|
612
|
-
color,
|
|
613
|
-
isExpanded,
|
|
614
|
-
isChecked,
|
|
615
|
-
isCheckedAll,
|
|
616
|
-
classNames,
|
|
617
|
-
onCheckAll
|
|
618
|
-
}) => {
|
|
619
|
-
const getTheadProps = (0, import_react2.useCallback)(
|
|
620
|
-
() => ({
|
|
621
|
-
className: slots.thead({ class: clsx(classNames == null ? void 0 : classNames.thead) })
|
|
622
|
-
}),
|
|
623
|
-
[classNames == null ? void 0 : classNames.thead, slots]
|
|
624
|
-
);
|
|
625
|
-
const getTrProps = (0, import_react2.useCallback)(
|
|
626
|
-
() => ({
|
|
627
|
-
className: slots.tr({ class: clsx(classNames == null ? void 0 : classNames.tr) })
|
|
628
|
-
}),
|
|
629
|
-
[classNames == null ? void 0 : classNames.tr, slots]
|
|
630
|
-
);
|
|
631
|
-
const getThProps = (0, import_react2.useCallback)(
|
|
632
|
-
({ className }) => ({
|
|
633
|
-
className: slots.th({ class: clsx(classNames == null ? void 0 : classNames.th, className) })
|
|
634
|
-
}),
|
|
635
|
-
[classNames == null ? void 0 : classNames.th, slots]
|
|
636
|
-
);
|
|
597
|
+
var TableHead = ({ columns, slots, size, selectableRows, isCheckedAll, classNames, onCheckAll }) => {
|
|
637
598
|
const handleClickCheckAll = (e) => {
|
|
638
599
|
e.preventDefault();
|
|
639
600
|
onCheckAll(!isCheckedAll);
|
|
640
601
|
};
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
602
|
+
const renderColumnHeaders = () => columns.map((column, index) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("th", { className: clsx(slots.th({ class: classNames == null ? void 0 : classNames.th }), column), children: column.headerName }, `${column.field}${index}thead`));
|
|
603
|
+
const renderSelectAllCheckbox = () => selectableRows && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("th", { className: clsx(slots.th({ class: classNames == null ? void 0 : classNames.th })), onClick: handleClickCheckAll, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(checkbox_default, { size, checked: isCheckedAll }) }) });
|
|
604
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("thead", { className: clsx(slots.thead({ class: classNames == null ? void 0 : classNames.thead })), children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("tr", { className: clsx(slots.tr({ class: classNames == null ? void 0 : classNames.tr })), children: [
|
|
605
|
+
renderColumnHeaders(),
|
|
606
|
+
renderSelectAllCheckbox()
|
|
645
607
|
] }) });
|
|
646
608
|
};
|
|
647
609
|
var table_head_default = TableHead;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
table_head_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-OQS4LGZK.mjs";
|
|
5
5
|
import "../../chunk-QZ3LVYJW.mjs";
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-
|
|
6
|
+
import "../../chunk-J5WJD6XZ.mjs";
|
|
7
|
+
import "../../chunk-2ZT6V4QR.mjs";
|
|
8
8
|
import "../../chunk-27Y6K5NK.mjs";
|
|
9
9
|
import "../../chunk-E3G5QXSH.mjs";
|
|
10
10
|
import "../../chunk-AC6TWLRT.mjs";
|
|
@@ -1,336 +1,191 @@
|
|
|
1
1
|
import * as tailwind_variants from 'tailwind-variants';
|
|
2
2
|
import { VariantProps } from 'tailwind-variants';
|
|
3
|
-
import
|
|
3
|
+
import * as react from 'react';
|
|
4
|
+
import { ComponentPropsWithRef, ReactElement, ReactNode } from 'react';
|
|
4
5
|
import { SlotsToClasses } from '../../utils/types.mjs';
|
|
5
6
|
|
|
6
|
-
interface
|
|
7
|
+
interface TableBaseProps extends Omit<ComponentPropsWithRef<"table">, "ref" | "color" | "slot" | "size" | "height" | "defaultChecked" | "defaultValue"> {
|
|
7
8
|
rows: TableRow[];
|
|
8
9
|
columns: TableColumn[];
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
selectableRows?: boolean;
|
|
11
|
+
totalData?: number;
|
|
12
|
+
pagination?: {
|
|
13
|
+
page: number;
|
|
14
|
+
perPage: number;
|
|
15
|
+
};
|
|
16
|
+
onPageChange: (pagination: {
|
|
17
|
+
page: number;
|
|
18
|
+
perPage: number;
|
|
19
|
+
}) => void;
|
|
20
|
+
emptyContent?: ReactNode;
|
|
12
21
|
classNames?: SlotsToClasses<TableSlots>;
|
|
13
|
-
onRowAction?: (e: react__default.MouseEvent, params: TableRow) => void;
|
|
14
22
|
}
|
|
15
23
|
interface TableRef {
|
|
16
24
|
checkedRows: Set<number>;
|
|
17
25
|
setCheckedRows: (rows: Set<number>) => void;
|
|
18
26
|
}
|
|
19
|
-
declare const Table:
|
|
27
|
+
declare const Table: react.ForwardRefExoticComponent<TableBaseProps & TableVariantProps & react.RefAttributes<TableRef>>;
|
|
20
28
|
|
|
21
|
-
declare const
|
|
29
|
+
declare const tableStyle: tailwind_variants.TVReturnType<{
|
|
22
30
|
variant: {
|
|
23
31
|
solid: {
|
|
24
|
-
tbody: string;
|
|
32
|
+
tbody: string[];
|
|
25
33
|
};
|
|
26
|
-
|
|
27
|
-
|
|
34
|
+
outline: {
|
|
35
|
+
tbody: string[];
|
|
36
|
+
th: string[];
|
|
37
|
+
td: string[];
|
|
28
38
|
};
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
39
|
+
underline: {
|
|
40
|
+
tbody: string[];
|
|
41
|
+
th: string[];
|
|
32
42
|
};
|
|
33
43
|
};
|
|
34
44
|
size: {
|
|
35
45
|
sm: {
|
|
36
|
-
tr: string;
|
|
46
|
+
tr: string[];
|
|
37
47
|
};
|
|
38
48
|
md: {
|
|
39
|
-
tr: string;
|
|
49
|
+
tr: string[];
|
|
40
50
|
};
|
|
41
51
|
lg: {
|
|
42
|
-
tr: string;
|
|
52
|
+
tr: string[];
|
|
43
53
|
};
|
|
44
54
|
xl: {
|
|
45
|
-
tr: string;
|
|
55
|
+
tr: string[];
|
|
46
56
|
};
|
|
47
57
|
};
|
|
48
58
|
color: {
|
|
49
59
|
primary: {
|
|
50
|
-
|
|
51
|
-
tr: string;
|
|
52
|
-
td: string;
|
|
53
|
-
expandedTr: string;
|
|
60
|
+
tbody: string[];
|
|
54
61
|
};
|
|
55
62
|
secondary: {
|
|
56
|
-
|
|
57
|
-
tr: string;
|
|
58
|
-
td: string;
|
|
59
|
-
expandedTr: string;
|
|
63
|
+
tbody: string[];
|
|
60
64
|
};
|
|
61
65
|
neutral: {
|
|
62
|
-
|
|
63
|
-
tr: string;
|
|
64
|
-
td: string;
|
|
65
|
-
expandedTr: string;
|
|
66
|
+
tbody: string[];
|
|
66
67
|
};
|
|
67
68
|
};
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
};
|
|
72
|
-
false: {
|
|
73
|
-
loadingWrapper: string;
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
isSelected: {
|
|
77
|
-
true: {};
|
|
78
|
-
};
|
|
79
|
-
isMultiSelect: {
|
|
80
|
-
true: {};
|
|
81
|
-
};
|
|
82
|
-
isChecked: {
|
|
83
|
-
true: {};
|
|
84
|
-
};
|
|
85
|
-
isCheckedRow: {
|
|
86
|
-
true: {
|
|
87
|
-
tr: string;
|
|
88
|
-
};
|
|
89
|
-
};
|
|
90
|
-
hideHeader: {
|
|
91
|
-
true: {
|
|
92
|
-
thead: string;
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
isCompact: {
|
|
96
|
-
true: {
|
|
97
|
-
td: string;
|
|
98
|
-
};
|
|
99
|
-
false: {};
|
|
100
|
-
};
|
|
101
|
-
isHeaderSticky: {
|
|
102
|
-
true: {
|
|
103
|
-
thead: string;
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
isExpanded: {
|
|
107
|
-
true: {
|
|
108
|
-
tr: string;
|
|
109
|
-
};
|
|
69
|
+
height: {
|
|
70
|
+
narrow: {};
|
|
71
|
+
wide: {};
|
|
110
72
|
};
|
|
111
73
|
}, {
|
|
112
|
-
base: string;
|
|
113
|
-
table: string;
|
|
114
|
-
thead: string;
|
|
115
|
-
tbody: string;
|
|
74
|
+
base: string[];
|
|
75
|
+
table: string[];
|
|
76
|
+
thead: string[];
|
|
77
|
+
tbody: string[];
|
|
116
78
|
tr: string[];
|
|
117
79
|
th: string[];
|
|
118
80
|
td: string[];
|
|
119
|
-
tfoot: string;
|
|
120
|
-
expandedTr: string;
|
|
121
|
-
sortIcon: string[];
|
|
122
|
-
emptyWrapper: string;
|
|
123
|
-
loadingWrapper: string[];
|
|
124
81
|
}, undefined, {
|
|
125
82
|
variant: {
|
|
126
83
|
solid: {
|
|
127
|
-
tbody: string;
|
|
84
|
+
tbody: string[];
|
|
128
85
|
};
|
|
129
|
-
|
|
130
|
-
|
|
86
|
+
outline: {
|
|
87
|
+
tbody: string[];
|
|
88
|
+
th: string[];
|
|
89
|
+
td: string[];
|
|
131
90
|
};
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
91
|
+
underline: {
|
|
92
|
+
tbody: string[];
|
|
93
|
+
th: string[];
|
|
135
94
|
};
|
|
136
95
|
};
|
|
137
96
|
size: {
|
|
138
97
|
sm: {
|
|
139
|
-
tr: string;
|
|
98
|
+
tr: string[];
|
|
140
99
|
};
|
|
141
100
|
md: {
|
|
142
|
-
tr: string;
|
|
101
|
+
tr: string[];
|
|
143
102
|
};
|
|
144
103
|
lg: {
|
|
145
|
-
tr: string;
|
|
104
|
+
tr: string[];
|
|
146
105
|
};
|
|
147
106
|
xl: {
|
|
148
|
-
tr: string;
|
|
107
|
+
tr: string[];
|
|
149
108
|
};
|
|
150
109
|
};
|
|
151
110
|
color: {
|
|
152
111
|
primary: {
|
|
153
|
-
|
|
154
|
-
tr: string;
|
|
155
|
-
td: string;
|
|
156
|
-
expandedTr: string;
|
|
112
|
+
tbody: string[];
|
|
157
113
|
};
|
|
158
114
|
secondary: {
|
|
159
|
-
|
|
160
|
-
tr: string;
|
|
161
|
-
td: string;
|
|
162
|
-
expandedTr: string;
|
|
115
|
+
tbody: string[];
|
|
163
116
|
};
|
|
164
117
|
neutral: {
|
|
165
|
-
|
|
166
|
-
tr: string;
|
|
167
|
-
td: string;
|
|
168
|
-
expandedTr: string;
|
|
169
|
-
};
|
|
170
|
-
};
|
|
171
|
-
isLoading: {
|
|
172
|
-
true: {
|
|
173
|
-
loadingWrapper: string;
|
|
174
|
-
};
|
|
175
|
-
false: {
|
|
176
|
-
loadingWrapper: string;
|
|
118
|
+
tbody: string[];
|
|
177
119
|
};
|
|
178
120
|
};
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
isMultiSelect: {
|
|
183
|
-
true: {};
|
|
184
|
-
};
|
|
185
|
-
isChecked: {
|
|
186
|
-
true: {};
|
|
187
|
-
};
|
|
188
|
-
isCheckedRow: {
|
|
189
|
-
true: {
|
|
190
|
-
tr: string;
|
|
191
|
-
};
|
|
192
|
-
};
|
|
193
|
-
hideHeader: {
|
|
194
|
-
true: {
|
|
195
|
-
thead: string;
|
|
196
|
-
};
|
|
197
|
-
};
|
|
198
|
-
isCompact: {
|
|
199
|
-
true: {
|
|
200
|
-
td: string;
|
|
201
|
-
};
|
|
202
|
-
false: {};
|
|
203
|
-
};
|
|
204
|
-
isHeaderSticky: {
|
|
205
|
-
true: {
|
|
206
|
-
thead: string;
|
|
207
|
-
};
|
|
208
|
-
};
|
|
209
|
-
isExpanded: {
|
|
210
|
-
true: {
|
|
211
|
-
tr: string;
|
|
212
|
-
};
|
|
121
|
+
height: {
|
|
122
|
+
narrow: {};
|
|
123
|
+
wide: {};
|
|
213
124
|
};
|
|
214
125
|
}, {
|
|
215
|
-
base: string;
|
|
216
|
-
table: string;
|
|
217
|
-
thead: string;
|
|
218
|
-
tbody: string;
|
|
126
|
+
base: string[];
|
|
127
|
+
table: string[];
|
|
128
|
+
thead: string[];
|
|
129
|
+
tbody: string[];
|
|
219
130
|
tr: string[];
|
|
220
131
|
th: string[];
|
|
221
132
|
td: string[];
|
|
222
|
-
tfoot: string;
|
|
223
|
-
expandedTr: string;
|
|
224
|
-
sortIcon: string[];
|
|
225
|
-
emptyWrapper: string;
|
|
226
|
-
loadingWrapper: string[];
|
|
227
133
|
}, tailwind_variants.TVReturnType<{
|
|
228
134
|
variant: {
|
|
229
135
|
solid: {
|
|
230
|
-
tbody: string;
|
|
136
|
+
tbody: string[];
|
|
231
137
|
};
|
|
232
|
-
|
|
233
|
-
|
|
138
|
+
outline: {
|
|
139
|
+
tbody: string[];
|
|
140
|
+
th: string[];
|
|
141
|
+
td: string[];
|
|
234
142
|
};
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
143
|
+
underline: {
|
|
144
|
+
tbody: string[];
|
|
145
|
+
th: string[];
|
|
238
146
|
};
|
|
239
147
|
};
|
|
240
148
|
size: {
|
|
241
149
|
sm: {
|
|
242
|
-
tr: string;
|
|
150
|
+
tr: string[];
|
|
243
151
|
};
|
|
244
152
|
md: {
|
|
245
|
-
tr: string;
|
|
153
|
+
tr: string[];
|
|
246
154
|
};
|
|
247
155
|
lg: {
|
|
248
|
-
tr: string;
|
|
156
|
+
tr: string[];
|
|
249
157
|
};
|
|
250
158
|
xl: {
|
|
251
|
-
tr: string;
|
|
159
|
+
tr: string[];
|
|
252
160
|
};
|
|
253
161
|
};
|
|
254
162
|
color: {
|
|
255
163
|
primary: {
|
|
256
|
-
|
|
257
|
-
tr: string;
|
|
258
|
-
td: string;
|
|
259
|
-
expandedTr: string;
|
|
164
|
+
tbody: string[];
|
|
260
165
|
};
|
|
261
166
|
secondary: {
|
|
262
|
-
|
|
263
|
-
tr: string;
|
|
264
|
-
td: string;
|
|
265
|
-
expandedTr: string;
|
|
167
|
+
tbody: string[];
|
|
266
168
|
};
|
|
267
169
|
neutral: {
|
|
268
|
-
|
|
269
|
-
tr: string;
|
|
270
|
-
td: string;
|
|
271
|
-
expandedTr: string;
|
|
272
|
-
};
|
|
273
|
-
};
|
|
274
|
-
isLoading: {
|
|
275
|
-
true: {
|
|
276
|
-
loadingWrapper: string;
|
|
277
|
-
};
|
|
278
|
-
false: {
|
|
279
|
-
loadingWrapper: string;
|
|
280
|
-
};
|
|
281
|
-
};
|
|
282
|
-
isSelected: {
|
|
283
|
-
true: {};
|
|
284
|
-
};
|
|
285
|
-
isMultiSelect: {
|
|
286
|
-
true: {};
|
|
287
|
-
};
|
|
288
|
-
isChecked: {
|
|
289
|
-
true: {};
|
|
290
|
-
};
|
|
291
|
-
isCheckedRow: {
|
|
292
|
-
true: {
|
|
293
|
-
tr: string;
|
|
294
|
-
};
|
|
295
|
-
};
|
|
296
|
-
hideHeader: {
|
|
297
|
-
true: {
|
|
298
|
-
thead: string;
|
|
170
|
+
tbody: string[];
|
|
299
171
|
};
|
|
300
172
|
};
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
};
|
|
305
|
-
false: {};
|
|
306
|
-
};
|
|
307
|
-
isHeaderSticky: {
|
|
308
|
-
true: {
|
|
309
|
-
thead: string;
|
|
310
|
-
};
|
|
311
|
-
};
|
|
312
|
-
isExpanded: {
|
|
313
|
-
true: {
|
|
314
|
-
tr: string;
|
|
315
|
-
};
|
|
173
|
+
height: {
|
|
174
|
+
narrow: {};
|
|
175
|
+
wide: {};
|
|
316
176
|
};
|
|
317
177
|
}, {
|
|
318
|
-
base: string;
|
|
319
|
-
table: string;
|
|
320
|
-
thead: string;
|
|
321
|
-
tbody: string;
|
|
178
|
+
base: string[];
|
|
179
|
+
table: string[];
|
|
180
|
+
thead: string[];
|
|
181
|
+
tbody: string[];
|
|
322
182
|
tr: string[];
|
|
323
183
|
th: string[];
|
|
324
184
|
td: string[];
|
|
325
|
-
tfoot: string;
|
|
326
|
-
expandedTr: string;
|
|
327
|
-
sortIcon: string[];
|
|
328
|
-
emptyWrapper: string;
|
|
329
|
-
loadingWrapper: string[];
|
|
330
185
|
}, undefined, unknown, unknown, undefined>>;
|
|
331
|
-
type TableVariantProps = VariantProps<typeof
|
|
332
|
-
type TableSlots = keyof ReturnType<typeof
|
|
333
|
-
type TableReturnType = ReturnType<typeof
|
|
186
|
+
type TableVariantProps = VariantProps<typeof tableStyle>;
|
|
187
|
+
type TableSlots = keyof ReturnType<typeof tableStyle>;
|
|
188
|
+
type TableReturnType = ReturnType<typeof tableStyle>;
|
|
334
189
|
type RowValue = Record<string | symbol, any>;
|
|
335
190
|
type CellParams<R extends RowValue = any, V = any, F = V> = {
|
|
336
191
|
id: string | number;
|
|
@@ -348,9 +203,14 @@ type TableRow<R extends RowValue = RowValue> = R;
|
|
|
348
203
|
type TableColumn<R extends RowValue = RowValue, V = any, F = V> = {
|
|
349
204
|
field: string;
|
|
350
205
|
headerName?: string | ReactElement;
|
|
206
|
+
align?: "left" | "center" | "right";
|
|
207
|
+
width?: number;
|
|
208
|
+
minWidth?: number;
|
|
209
|
+
maxWidth?: number;
|
|
210
|
+
height?: number;
|
|
351
211
|
className?: string;
|
|
212
|
+
renderCell?: (params: CellParams<R, V, F>) => ReactNode;
|
|
352
213
|
valueFormatter?: (params: ValueFormatterParams<V>) => F;
|
|
353
|
-
renderCell?: (params: CellParams<R, V, F>) => react__default.ReactNode;
|
|
354
214
|
};
|
|
355
215
|
|
|
356
216
|
export { type TableColumn, type TableRef, type TableReturnType, type TableRow, type TableSlots, type TableVariantProps, Table as default };
|