@deepnoid/ui 0.1.61 → 0.1.63
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 +182 -187
- package/dist/{chunk-WINX3AKW.mjs → chunk-PMZH6GPQ.mjs} +1 -1
- package/dist/{chunk-HHRKPSO6.mjs → chunk-QX6F6C6X.mjs} +2 -1
- package/dist/{chunk-A6HCKIVP.mjs → chunk-V5T3D6WI.mjs} +3 -3
- package/dist/components/breadcrumb/breadcrumb.mjs +3 -3
- package/dist/components/breadcrumb/index.mjs +3 -3
- package/dist/components/button/index.mjs +6 -6
- package/dist/components/dateTimePicker/dateTimePicker.mjs +3 -3
- package/dist/components/dateTimePicker/index.mjs +3 -3
- package/dist/components/dateTimePicker/timePicker.mjs +2 -2
- package/dist/components/fileUpload/fileUpload.mjs +3 -3
- package/dist/components/fileUpload/index.mjs +3 -3
- package/dist/components/list/index.mjs +3 -3
- package/dist/components/modal/index.mjs +3 -3
- package/dist/components/modal/modal.mjs +3 -3
- package/dist/components/table/definition-table.d.mts +13 -6
- package/dist/components/table/definition-table.d.ts +13 -6
- package/dist/components/table/definition-table.js +99 -12
- package/dist/components/table/definition-table.mjs +2 -1
- package/dist/components/table/index.d.mts +1 -2
- package/dist/components/table/index.d.ts +1 -2
- package/dist/components/table/index.js +12 -41
- package/dist/components/table/index.mjs +6 -10
- package/dist/components/table/table.mjs +2 -2
- package/dist/components/tree/index.js +2 -1
- package/dist/components/tree/index.mjs +1 -1
- package/dist/components/tree/tree.d.mts +6 -0
- package/dist/components/tree/tree.d.ts +6 -0
- package/dist/components/tree/tree.js +2 -1
- package/dist/components/tree/tree.mjs +1 -1
- package/dist/index.d.mts +1 -2
- package/dist/index.d.ts +1 -2
- package/dist/index.js +329 -357
- package/dist/index.mjs +38 -42
- package/package.json +1 -1
- package/dist/chunk-6TIIBU7J.mjs +0 -35
- package/dist/components/table/definition-table2.d.mts +0 -58
- package/dist/components/table/definition-table2.d.ts +0 -58
- package/dist/components/table/definition-table2.js +0 -438
- package/dist/components/table/definition-table2.mjs +0 -10
- package/dist/{chunk-K65JLBZI.mjs → chunk-DLFXCMUU.mjs} +3 -3
- package/dist/{chunk-DLR42ZKG.mjs → chunk-DX3KXNP6.mjs} +0 -0
- package/dist/{chunk-LKC7AK3H.mjs → chunk-MPATONSK.mjs} +3 -3
- package/dist/{chunk-UEUOHSJ6.mjs → chunk-ORYYC6BI.mjs} +3 -3
|
@@ -132,7 +132,7 @@ var Tree = ({ headerContent, group, groupIcon, fileIcon, selectedId, classNames,
|
|
|
132
132
|
]
|
|
133
133
|
}
|
|
134
134
|
),
|
|
135
|
-
/* @__PURE__ */ jsx("div", { className: slots.
|
|
135
|
+
/* @__PURE__ */ jsx("div", { className: slots.itemWrapper({ class: classNames == null ? void 0 : classNames.itemWrapper }), children: group.data.map((node) => /* @__PURE__ */ jsx(
|
|
136
136
|
TreeNodeItem,
|
|
137
137
|
{
|
|
138
138
|
node,
|
|
@@ -153,6 +153,7 @@ var treeStyle = tv({
|
|
|
153
153
|
slots: {
|
|
154
154
|
base: ["border", "border-neutral-light", "rounded-xl", "p-[20px]", "flex", "flex-col", "gap-[20px]", "select-none"],
|
|
155
155
|
wrapper: ["flex", "flex-col", "gap-[5px]"],
|
|
156
|
+
itemWrapper: ["flex", "flex-col", "gap-[5px]"],
|
|
156
157
|
node: [
|
|
157
158
|
"flex",
|
|
158
159
|
"items-center",
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
clsx
|
|
7
7
|
} from "./chunk-27Y6K5NK.mjs";
|
|
8
8
|
|
|
9
|
-
// src/components/table/definition-
|
|
9
|
+
// src/components/table/definition-table.tsx
|
|
10
10
|
import { forwardRef, useMemo } from "react";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
var DEFAULT_CELL_CLASSES = "px-[10px] py-[9.5px] text-md border-r border-neutral-light";
|
|
@@ -72,7 +72,7 @@ var DefinitionTable2 = forwardRef(({ rows = [], footer, classNames }, ref) => {
|
|
|
72
72
|
] });
|
|
73
73
|
});
|
|
74
74
|
DefinitionTable2.displayName = "DefinitionTable2";
|
|
75
|
-
var
|
|
75
|
+
var definition_table_default = DefinitionTable2;
|
|
76
76
|
var DefinitionTableStyle = tv({
|
|
77
77
|
slots: {
|
|
78
78
|
base: ["flex", "flex-col", "gap-[30px]"],
|
|
@@ -81,5 +81,5 @@ var DefinitionTableStyle = tv({
|
|
|
81
81
|
});
|
|
82
82
|
|
|
83
83
|
export {
|
|
84
|
-
|
|
84
|
+
definition_table_default
|
|
85
85
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
breadcrumb_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-MPATONSK.mjs";
|
|
5
5
|
import "../../chunk-MY5U63QO.mjs";
|
|
6
|
+
import "../../chunk-AZA2LAZH.mjs";
|
|
7
|
+
import "../../chunk-7TAC2S5U.mjs";
|
|
6
8
|
import "../../chunk-QC2XOK2E.mjs";
|
|
7
9
|
import "../../chunk-WF7VSHBA.mjs";
|
|
8
|
-
import "../../chunk-AZA2LAZH.mjs";
|
|
9
10
|
import "../../chunk-6WSACUIB.mjs";
|
|
10
11
|
import "../../chunk-6PNKRBUT.mjs";
|
|
11
12
|
import "../../chunk-LXHUO6VM.mjs";
|
|
12
13
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
13
14
|
import "../../chunk-DZ6QJCDZ.mjs";
|
|
14
|
-
import "../../chunk-7TAC2S5U.mjs";
|
|
15
15
|
import "../../chunk-3I7QA57V.mjs";
|
|
16
16
|
import "../../chunk-4ZJFD3L3.mjs";
|
|
17
17
|
import "../../chunk-27Y6K5NK.mjs";
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
import "../../chunk-KYIODWXL.mjs";
|
|
3
3
|
import {
|
|
4
4
|
breadcrumb_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-MPATONSK.mjs";
|
|
6
6
|
import "../../chunk-MY5U63QO.mjs";
|
|
7
|
+
import "../../chunk-AZA2LAZH.mjs";
|
|
8
|
+
import "../../chunk-7TAC2S5U.mjs";
|
|
7
9
|
import "../../chunk-QC2XOK2E.mjs";
|
|
8
10
|
import "../../chunk-WF7VSHBA.mjs";
|
|
9
|
-
import "../../chunk-AZA2LAZH.mjs";
|
|
10
11
|
import "../../chunk-6WSACUIB.mjs";
|
|
11
12
|
import "../../chunk-6PNKRBUT.mjs";
|
|
12
13
|
import "../../chunk-LXHUO6VM.mjs";
|
|
13
14
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
14
15
|
import "../../chunk-DZ6QJCDZ.mjs";
|
|
15
|
-
import "../../chunk-7TAC2S5U.mjs";
|
|
16
16
|
import "../../chunk-3I7QA57V.mjs";
|
|
17
17
|
import "../../chunk-4ZJFD3L3.mjs";
|
|
18
18
|
import "../../chunk-27Y6K5NK.mjs";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../../chunk-MY5U63QO.mjs";
|
|
3
|
+
import {
|
|
4
|
+
icon_button_default
|
|
5
|
+
} from "../../chunk-AZA2LAZH.mjs";
|
|
6
|
+
import {
|
|
7
|
+
text_button_default
|
|
8
|
+
} from "../../chunk-7TAC2S5U.mjs";
|
|
3
9
|
import {
|
|
4
10
|
button_group_default
|
|
5
11
|
} from "../../chunk-QC2XOK2E.mjs";
|
|
6
12
|
import {
|
|
7
13
|
button_default
|
|
8
14
|
} from "../../chunk-WF7VSHBA.mjs";
|
|
9
|
-
import {
|
|
10
|
-
icon_button_default
|
|
11
|
-
} from "../../chunk-AZA2LAZH.mjs";
|
|
12
15
|
import "../../chunk-6WSACUIB.mjs";
|
|
13
16
|
import "../../chunk-6PNKRBUT.mjs";
|
|
14
17
|
import "../../chunk-LXHUO6VM.mjs";
|
|
15
18
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
16
19
|
import "../../chunk-DZ6QJCDZ.mjs";
|
|
17
|
-
import {
|
|
18
|
-
text_button_default
|
|
19
|
-
} from "../../chunk-7TAC2S5U.mjs";
|
|
20
20
|
import "../../chunk-3I7QA57V.mjs";
|
|
21
21
|
import "../../chunk-4ZJFD3L3.mjs";
|
|
22
22
|
import "../../chunk-27Y6K5NK.mjs";
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import {
|
|
3
3
|
dateTimePickerStyle,
|
|
4
4
|
dateTimePicker_default
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-PMZH6GPQ.mjs";
|
|
6
|
+
import "../../chunk-DLFXCMUU.mjs";
|
|
7
7
|
import "../../chunk-7MVEAQ7Z.mjs";
|
|
8
|
-
import "../../chunk-YZDZYMBP.mjs";
|
|
9
8
|
import "../../chunk-HIVPDIEP.mjs";
|
|
9
|
+
import "../../chunk-YZDZYMBP.mjs";
|
|
10
10
|
import "../../chunk-FWJ2ZKH6.mjs";
|
|
11
11
|
import "../../chunk-L3RCWZTV.mjs";
|
|
12
12
|
import "../../chunk-P732YGHO.mjs";
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import "../../chunk-75HLCORR.mjs";
|
|
3
3
|
import {
|
|
4
4
|
dateTimePicker_default
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-PMZH6GPQ.mjs";
|
|
6
|
+
import "../../chunk-DLFXCMUU.mjs";
|
|
7
7
|
import "../../chunk-7MVEAQ7Z.mjs";
|
|
8
|
-
import "../../chunk-YZDZYMBP.mjs";
|
|
9
8
|
import "../../chunk-HIVPDIEP.mjs";
|
|
9
|
+
import "../../chunk-YZDZYMBP.mjs";
|
|
10
10
|
import "../../chunk-FWJ2ZKH6.mjs";
|
|
11
11
|
import "../../chunk-L3RCWZTV.mjs";
|
|
12
12
|
import "../../chunk-P732YGHO.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
timePicker_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-DLFXCMUU.mjs";
|
|
5
5
|
import "../../chunk-7MVEAQ7Z.mjs";
|
|
6
|
-
import "../../chunk-YZDZYMBP.mjs";
|
|
7
6
|
import "../../chunk-HIVPDIEP.mjs";
|
|
7
|
+
import "../../chunk-YZDZYMBP.mjs";
|
|
8
8
|
import "../../chunk-JDWX2LKJ.mjs";
|
|
9
9
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
10
10
|
import "../../chunk-DZ6QJCDZ.mjs";
|
|
@@ -3,19 +3,19 @@ import {
|
|
|
3
3
|
FileUpload,
|
|
4
4
|
fileUploadStyle,
|
|
5
5
|
fileUpload_default
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-ORYYC6BI.mjs";
|
|
7
7
|
import "../../chunk-2GCSFWHD.mjs";
|
|
8
8
|
import "../../chunk-UETBYMGS.mjs";
|
|
9
9
|
import "../../chunk-MY5U63QO.mjs";
|
|
10
|
+
import "../../chunk-AZA2LAZH.mjs";
|
|
11
|
+
import "../../chunk-7TAC2S5U.mjs";
|
|
10
12
|
import "../../chunk-QC2XOK2E.mjs";
|
|
11
13
|
import "../../chunk-WF7VSHBA.mjs";
|
|
12
|
-
import "../../chunk-AZA2LAZH.mjs";
|
|
13
14
|
import "../../chunk-6WSACUIB.mjs";
|
|
14
15
|
import "../../chunk-6PNKRBUT.mjs";
|
|
15
16
|
import "../../chunk-LXHUO6VM.mjs";
|
|
16
17
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
17
18
|
import "../../chunk-DZ6QJCDZ.mjs";
|
|
18
|
-
import "../../chunk-7TAC2S5U.mjs";
|
|
19
19
|
import "../../chunk-3I7QA57V.mjs";
|
|
20
20
|
import "../../chunk-4ZJFD3L3.mjs";
|
|
21
21
|
import "../../chunk-27Y6K5NK.mjs";
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
import "../../chunk-RLXOHILK.mjs";
|
|
3
3
|
import {
|
|
4
4
|
fileUpload_default
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-ORYYC6BI.mjs";
|
|
6
6
|
import "../../chunk-2GCSFWHD.mjs";
|
|
7
7
|
import "../../chunk-UETBYMGS.mjs";
|
|
8
8
|
import "../../chunk-MY5U63QO.mjs";
|
|
9
|
+
import "../../chunk-AZA2LAZH.mjs";
|
|
10
|
+
import "../../chunk-7TAC2S5U.mjs";
|
|
9
11
|
import "../../chunk-QC2XOK2E.mjs";
|
|
10
12
|
import "../../chunk-WF7VSHBA.mjs";
|
|
11
|
-
import "../../chunk-AZA2LAZH.mjs";
|
|
12
13
|
import "../../chunk-6WSACUIB.mjs";
|
|
13
14
|
import "../../chunk-6PNKRBUT.mjs";
|
|
14
15
|
import "../../chunk-LXHUO6VM.mjs";
|
|
15
16
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
16
17
|
import "../../chunk-DZ6QJCDZ.mjs";
|
|
17
|
-
import "../../chunk-7TAC2S5U.mjs";
|
|
18
18
|
import "../../chunk-3I7QA57V.mjs";
|
|
19
19
|
import "../../chunk-4ZJFD3L3.mjs";
|
|
20
20
|
import "../../chunk-27Y6K5NK.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "../../chunk-7MVEAQ7Z.mjs";
|
|
3
|
-
import {
|
|
4
|
-
listItem_default
|
|
5
|
-
} from "../../chunk-YZDZYMBP.mjs";
|
|
6
3
|
import {
|
|
7
4
|
list_default
|
|
8
5
|
} from "../../chunk-HIVPDIEP.mjs";
|
|
6
|
+
import {
|
|
7
|
+
listItem_default
|
|
8
|
+
} from "../../chunk-YZDZYMBP.mjs";
|
|
9
9
|
import "../../chunk-JDWX2LKJ.mjs";
|
|
10
10
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
11
11
|
import "../../chunk-DZ6QJCDZ.mjs";
|
|
@@ -3,18 +3,18 @@ import "../../chunk-DJOG6Z35.mjs";
|
|
|
3
3
|
import {
|
|
4
4
|
modal_default
|
|
5
5
|
} from "../../chunk-3UQI4RJU.mjs";
|
|
6
|
+
import "../../chunk-MY5U63QO.mjs";
|
|
7
|
+
import "../../chunk-AZA2LAZH.mjs";
|
|
8
|
+
import "../../chunk-7TAC2S5U.mjs";
|
|
6
9
|
import "../../chunk-SE5TU755.mjs";
|
|
7
10
|
import "../../chunk-LL6F3WDX.mjs";
|
|
8
|
-
import "../../chunk-MY5U63QO.mjs";
|
|
9
11
|
import "../../chunk-QC2XOK2E.mjs";
|
|
10
12
|
import "../../chunk-WF7VSHBA.mjs";
|
|
11
|
-
import "../../chunk-AZA2LAZH.mjs";
|
|
12
13
|
import "../../chunk-6WSACUIB.mjs";
|
|
13
14
|
import "../../chunk-6PNKRBUT.mjs";
|
|
14
15
|
import "../../chunk-LXHUO6VM.mjs";
|
|
15
16
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
16
17
|
import "../../chunk-DZ6QJCDZ.mjs";
|
|
17
|
-
import "../../chunk-7TAC2S5U.mjs";
|
|
18
18
|
import "../../chunk-3I7QA57V.mjs";
|
|
19
19
|
import "../../chunk-4ZJFD3L3.mjs";
|
|
20
20
|
import "../../chunk-27Y6K5NK.mjs";
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
modal_default
|
|
4
4
|
} from "../../chunk-3UQI4RJU.mjs";
|
|
5
|
+
import "../../chunk-MY5U63QO.mjs";
|
|
6
|
+
import "../../chunk-AZA2LAZH.mjs";
|
|
7
|
+
import "../../chunk-7TAC2S5U.mjs";
|
|
5
8
|
import "../../chunk-SE5TU755.mjs";
|
|
6
9
|
import "../../chunk-LL6F3WDX.mjs";
|
|
7
|
-
import "../../chunk-MY5U63QO.mjs";
|
|
8
10
|
import "../../chunk-QC2XOK2E.mjs";
|
|
9
11
|
import "../../chunk-WF7VSHBA.mjs";
|
|
10
|
-
import "../../chunk-AZA2LAZH.mjs";
|
|
11
12
|
import "../../chunk-6WSACUIB.mjs";
|
|
12
13
|
import "../../chunk-6PNKRBUT.mjs";
|
|
13
14
|
import "../../chunk-LXHUO6VM.mjs";
|
|
14
15
|
import "../../chunk-ZYIIXWVY.mjs";
|
|
15
16
|
import "../../chunk-DZ6QJCDZ.mjs";
|
|
16
|
-
import "../../chunk-7TAC2S5U.mjs";
|
|
17
17
|
import "../../chunk-3I7QA57V.mjs";
|
|
18
18
|
import "../../chunk-4ZJFD3L3.mjs";
|
|
19
19
|
import "../../chunk-27Y6K5NK.mjs";
|
|
@@ -4,16 +4,23 @@ import * as react from 'react';
|
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
import { SlotsToClasses } from '../../utils/types.mjs';
|
|
6
6
|
|
|
7
|
-
type
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
type DefinitionTableRowCell = {
|
|
8
|
+
content: ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
colSpan?: number;
|
|
11
|
+
rowSpan?: number;
|
|
12
|
+
width?: string;
|
|
13
|
+
};
|
|
14
|
+
type DefinitionTableRow = {
|
|
15
|
+
cells: DefinitionTableRowCell[];
|
|
16
|
+
className?: string;
|
|
10
17
|
};
|
|
11
18
|
interface DefinitionTableProps {
|
|
12
|
-
rows:
|
|
19
|
+
rows: DefinitionTableRow[];
|
|
13
20
|
footer?: ReactNode;
|
|
14
21
|
classNames?: SlotsToClasses<DefinitionTableSlots>;
|
|
15
22
|
}
|
|
16
|
-
declare const
|
|
23
|
+
declare const DefinitionTable2: react.ForwardRefExoticComponent<DefinitionTableProps & react.RefAttributes<HTMLDivElement>>;
|
|
17
24
|
|
|
18
25
|
declare const DefinitionTableStyle: tailwind_variants.TVReturnType<{
|
|
19
26
|
[key: string]: {
|
|
@@ -48,4 +55,4 @@ declare const DefinitionTableStyle: tailwind_variants.TVReturnType<{
|
|
|
48
55
|
}, undefined, unknown, unknown, undefined>>;
|
|
49
56
|
type DefinitionTableSlots = keyof ReturnType<typeof DefinitionTableStyle>;
|
|
50
57
|
|
|
51
|
-
export {
|
|
58
|
+
export { type DefinitionTableRow, type DefinitionTableRowCell, DefinitionTable2 as default };
|
|
@@ -4,16 +4,23 @@ import * as react from 'react';
|
|
|
4
4
|
import { ReactNode } from 'react';
|
|
5
5
|
import { SlotsToClasses } from '../../utils/types.js';
|
|
6
6
|
|
|
7
|
-
type
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
type DefinitionTableRowCell = {
|
|
8
|
+
content: ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
colSpan?: number;
|
|
11
|
+
rowSpan?: number;
|
|
12
|
+
width?: string;
|
|
13
|
+
};
|
|
14
|
+
type DefinitionTableRow = {
|
|
15
|
+
cells: DefinitionTableRowCell[];
|
|
16
|
+
className?: string;
|
|
10
17
|
};
|
|
11
18
|
interface DefinitionTableProps {
|
|
12
|
-
rows:
|
|
19
|
+
rows: DefinitionTableRow[];
|
|
13
20
|
footer?: ReactNode;
|
|
14
21
|
classNames?: SlotsToClasses<DefinitionTableSlots>;
|
|
15
22
|
}
|
|
16
|
-
declare const
|
|
23
|
+
declare const DefinitionTable2: react.ForwardRefExoticComponent<DefinitionTableProps & react.RefAttributes<HTMLDivElement>>;
|
|
17
24
|
|
|
18
25
|
declare const DefinitionTableStyle: tailwind_variants.TVReturnType<{
|
|
19
26
|
[key: string]: {
|
|
@@ -48,4 +55,4 @@ declare const DefinitionTableStyle: tailwind_variants.TVReturnType<{
|
|
|
48
55
|
}, undefined, unknown, unknown, undefined>>;
|
|
49
56
|
type DefinitionTableSlots = keyof ReturnType<typeof DefinitionTableStyle>;
|
|
50
57
|
|
|
51
|
-
export {
|
|
58
|
+
export { type DefinitionTableRow, type DefinitionTableRowCell, DefinitionTable2 as default };
|
|
@@ -324,28 +324,115 @@ var tv = (0, import_tailwind_variants.createTV)({
|
|
|
324
324
|
}
|
|
325
325
|
});
|
|
326
326
|
|
|
327
|
+
// src/utils/clsx.ts
|
|
328
|
+
function clsx(...args) {
|
|
329
|
+
var i = 0, tmp, x, str = "";
|
|
330
|
+
while (i < args.length) {
|
|
331
|
+
if (tmp = args[i++]) {
|
|
332
|
+
if (x = toVal(tmp)) {
|
|
333
|
+
str && (str += " ");
|
|
334
|
+
str += x;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
return str;
|
|
339
|
+
}
|
|
340
|
+
function toVal(mix) {
|
|
341
|
+
var k, y, str = "";
|
|
342
|
+
if (typeof mix === "string" || typeof mix === "number") {
|
|
343
|
+
str += mix;
|
|
344
|
+
} else if (typeof mix === "object") {
|
|
345
|
+
if (Array.isArray(mix)) {
|
|
346
|
+
var len = mix.length;
|
|
347
|
+
for (k = 0; k < len; k++) {
|
|
348
|
+
if (mix[k]) {
|
|
349
|
+
if (y = toVal(mix[k])) {
|
|
350
|
+
str && (str += " ");
|
|
351
|
+
str += y;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
} else {
|
|
356
|
+
for (y in mix) {
|
|
357
|
+
if (mix[y]) {
|
|
358
|
+
str && (str += " ");
|
|
359
|
+
str += y;
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
return str;
|
|
365
|
+
}
|
|
366
|
+
|
|
327
367
|
// src/components/table/definition-table.tsx
|
|
328
368
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
329
|
-
var
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
369
|
+
var DEFAULT_CELL_CLASSES = "px-[10px] py-[9.5px] text-md border-r border-neutral-light";
|
|
370
|
+
var FIRST_CELL_WIDTH_CLASS = "w-[120px] font-bold text-md text-body-foreground";
|
|
371
|
+
var renderColGroup = (rows) => {
|
|
372
|
+
let maxCols = 0;
|
|
373
|
+
const colWidths = [];
|
|
374
|
+
rows.forEach((row) => {
|
|
375
|
+
let currentColCount = 0;
|
|
376
|
+
row.cells.forEach((cell) => {
|
|
377
|
+
currentColCount += cell.colSpan || 1;
|
|
378
|
+
});
|
|
379
|
+
maxCols = Math.max(maxCols, currentColCount);
|
|
380
|
+
});
|
|
381
|
+
colWidths[0] = "120px";
|
|
382
|
+
rows.forEach((row) => {
|
|
383
|
+
let colIndex = 0;
|
|
384
|
+
row.cells.forEach((cell) => {
|
|
385
|
+
const span = cell.colSpan || 1;
|
|
386
|
+
if (colIndex > 0 && cell.width && cell.width !== "auto" && colIndex < maxCols) {
|
|
387
|
+
colWidths[colIndex] = cell.width;
|
|
388
|
+
}
|
|
389
|
+
colIndex += span;
|
|
390
|
+
});
|
|
391
|
+
});
|
|
392
|
+
const cols = [];
|
|
393
|
+
for (let i = 0; i < maxCols; i++) {
|
|
394
|
+
cols.push(/* @__PURE__ */ (0, import_jsx_runtime.jsx)("col", { style: colWidths[i] ? { width: colWidths[i] } : { width: "auto" } }, `col-${i}`));
|
|
395
|
+
}
|
|
396
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("colgroup", { children: cols });
|
|
397
|
+
};
|
|
398
|
+
var DefinitionTableRow = ({ cells, className }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("tr", { className: `border-neutral-light min-h-[50px] border-b ${className || ""}`, children: cells.map((cell, colIndex) => {
|
|
399
|
+
const isFirstCell = colIndex === 0;
|
|
400
|
+
const combinedClassName = [isFirstCell ? FIRST_CELL_WIDTH_CLASS : "", clsx(DEFAULT_CELL_CLASSES, cell.className)].filter(Boolean).join(" ");
|
|
401
|
+
let cellStyle;
|
|
402
|
+
if (isFirstCell) {
|
|
403
|
+
cellStyle = { width: "120px", minWidth: "120px", maxWidth: "120px" };
|
|
404
|
+
} else if (cell.width && cell.width !== "auto") {
|
|
405
|
+
cellStyle = { width: cell.width, minWidth: cell.width, maxWidth: cell.width };
|
|
406
|
+
} else {
|
|
407
|
+
cellStyle = { width: "100%" };
|
|
408
|
+
}
|
|
409
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
410
|
+
"td",
|
|
411
|
+
{
|
|
412
|
+
className: combinedClassName,
|
|
413
|
+
colSpan: cell.colSpan,
|
|
414
|
+
rowSpan: cell.rowSpan,
|
|
415
|
+
style: cellStyle,
|
|
416
|
+
children: cell.content
|
|
417
|
+
},
|
|
418
|
+
colIndex
|
|
419
|
+
);
|
|
336
420
|
}) });
|
|
337
|
-
var
|
|
421
|
+
var DefinitionTable2 = (0, import_react.forwardRef)(({ rows = [], footer, classNames }, ref) => {
|
|
338
422
|
const slots = (0, import_react.useMemo)(() => DefinitionTableStyle(), []);
|
|
339
423
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
340
|
-
/* @__PURE__ */ (0, import_jsx_runtime.
|
|
424
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("table", { className: slots.table({ class: classNames == null ? void 0 : classNames.table }), children: [
|
|
425
|
+
renderColGroup(rows),
|
|
426
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("tbody", { children: rows.map((row, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DefinitionTableRow, { ...row, className: `${row.className || ""} ${i === 0 ? "first-row" : ""}` }, i)) })
|
|
427
|
+
] }),
|
|
341
428
|
footer && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: footer })
|
|
342
429
|
] });
|
|
343
430
|
});
|
|
344
|
-
|
|
345
|
-
var definition_table_default =
|
|
431
|
+
DefinitionTable2.displayName = "DefinitionTable2";
|
|
432
|
+
var definition_table_default = DefinitionTable2;
|
|
346
433
|
var DefinitionTableStyle = tv({
|
|
347
434
|
slots: {
|
|
348
435
|
base: ["flex", "flex-col", "gap-[30px]"],
|
|
349
|
-
table: ["w-full", "table-
|
|
436
|
+
table: ["w-full", "table-auto", "border", "border-neutral-light"]
|
|
350
437
|
}
|
|
351
438
|
});
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
definition_table_default
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-V5T3D6WI.mjs";
|
|
5
5
|
import "../../chunk-4ZJFD3L3.mjs";
|
|
6
|
+
import "../../chunk-27Y6K5NK.mjs";
|
|
6
7
|
import "../../chunk-AC6TWLRT.mjs";
|
|
7
8
|
export {
|
|
8
9
|
definition_table_default as default
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { default as Table, TableColumn, TableRef, TableRow } from './table.mjs';
|
|
2
|
-
export { default as DefinitionTable } from './definition-table.mjs';
|
|
3
|
-
export { default as DefinitionTable2, TableRow as TableRow2, TableRowCell } from './definition-table2.mjs';
|
|
2
|
+
export { default as DefinitionTable, DefinitionTableRow, DefinitionTableRowCell } from './definition-table.mjs';
|
|
4
3
|
import 'tailwind-variants';
|
|
5
4
|
import 'react';
|
|
6
5
|
import '../../utils/types.mjs';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { default as Table, TableColumn, TableRef, TableRow } from './table.js';
|
|
2
|
-
export { default as DefinitionTable } from './definition-table.js';
|
|
3
|
-
export { default as DefinitionTable2, TableRow as TableRow2, TableRowCell } from './definition-table2.js';
|
|
2
|
+
export { default as DefinitionTable, DefinitionTableRow, DefinitionTableRowCell } from './definition-table.js';
|
|
4
3
|
import 'tailwind-variants';
|
|
5
4
|
import 'react';
|
|
6
5
|
import '../../utils/types.js';
|
|
@@ -103,7 +103,6 @@ var require_plugin = __commonJS({
|
|
|
103
103
|
var table_exports = {};
|
|
104
104
|
__export(table_exports, {
|
|
105
105
|
DefinitionTable: () => definition_table_default,
|
|
106
|
-
DefinitionTable2: () => definition_table2_default,
|
|
107
106
|
Table: () => table_default
|
|
108
107
|
});
|
|
109
108
|
module.exports = __toCommonJS(table_exports);
|
|
@@ -5829,33 +5828,6 @@ var tableStyle = (0, import_tailwind_variants7.tv)({
|
|
|
5829
5828
|
// src/components/table/definition-table.tsx
|
|
5830
5829
|
var import_react6 = require("react");
|
|
5831
5830
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
5832
|
-
var DEFAULT_COLUMN_CLASSES = [
|
|
5833
|
-
"w-[120px] px-[10px] py-[9.5px] font-bold text-md text-body-foreground border-r border-neutral-light",
|
|
5834
|
-
"px-[10px] py-[9.5px]"
|
|
5835
|
-
];
|
|
5836
|
-
var DefinitionTableRow = ({ columns, columnClasses = [] }) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("tr", { className: "border-neutral-light min-h-[50px] border-b", children: columns.map((col, index) => {
|
|
5837
|
-
var _a;
|
|
5838
|
-
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("td", { className: (_a = columnClasses[index]) != null ? _a : DEFAULT_COLUMN_CLASSES[index], children: col }, index);
|
|
5839
|
-
}) });
|
|
5840
|
-
var DefinitionTable = (0, import_react6.forwardRef)(({ rows, footer, classNames }, ref) => {
|
|
5841
|
-
const slots = (0, import_react6.useMemo)(() => DefinitionTableStyle(), []);
|
|
5842
|
-
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
5843
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("table", { className: slots.table({ class: classNames == null ? void 0 : classNames.table }), children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("tbody", { children: rows.map((row, i) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DefinitionTableRow, { ...row }, i)) }) }),
|
|
5844
|
-
footer && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { children: footer })
|
|
5845
|
-
] });
|
|
5846
|
-
});
|
|
5847
|
-
DefinitionTable.displayName = "DefinitionTable";
|
|
5848
|
-
var definition_table_default = DefinitionTable;
|
|
5849
|
-
var DefinitionTableStyle = tv({
|
|
5850
|
-
slots: {
|
|
5851
|
-
base: ["flex", "flex-col", "gap-[30px]"],
|
|
5852
|
-
table: ["w-full", "table-fixed", "border", "border-neutral-light"]
|
|
5853
|
-
}
|
|
5854
|
-
});
|
|
5855
|
-
|
|
5856
|
-
// src/components/table/definition-table2.tsx
|
|
5857
|
-
var import_react7 = require("react");
|
|
5858
|
-
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
5859
5831
|
var DEFAULT_CELL_CLASSES = "px-[10px] py-[9.5px] text-md border-r border-neutral-light";
|
|
5860
5832
|
var FIRST_CELL_WIDTH_CLASS = "w-[120px] font-bold text-md text-body-foreground";
|
|
5861
5833
|
var renderColGroup = (rows) => {
|
|
@@ -5881,11 +5853,11 @@ var renderColGroup = (rows) => {
|
|
|
5881
5853
|
});
|
|
5882
5854
|
const cols = [];
|
|
5883
5855
|
for (let i = 0; i < maxCols; i++) {
|
|
5884
|
-
cols.push(/* @__PURE__ */ (0,
|
|
5856
|
+
cols.push(/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("col", { style: colWidths[i] ? { width: colWidths[i] } : { width: "auto" } }, `col-${i}`));
|
|
5885
5857
|
}
|
|
5886
|
-
return /* @__PURE__ */ (0,
|
|
5858
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("colgroup", { children: cols });
|
|
5887
5859
|
};
|
|
5888
|
-
var
|
|
5860
|
+
var DefinitionTableRow = ({ cells, className }) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("tr", { className: `border-neutral-light min-h-[50px] border-b ${className || ""}`, children: cells.map((cell, colIndex) => {
|
|
5889
5861
|
const isFirstCell = colIndex === 0;
|
|
5890
5862
|
const combinedClassName = [isFirstCell ? FIRST_CELL_WIDTH_CLASS : "", clsx(DEFAULT_CELL_CLASSES, cell.className)].filter(Boolean).join(" ");
|
|
5891
5863
|
let cellStyle;
|
|
@@ -5896,7 +5868,7 @@ var DefinitionTableRow2 = ({ cells, className }) => /* @__PURE__ */ (0, import_j
|
|
|
5896
5868
|
} else {
|
|
5897
5869
|
cellStyle = { width: "100%" };
|
|
5898
5870
|
}
|
|
5899
|
-
return /* @__PURE__ */ (0,
|
|
5871
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
5900
5872
|
"td",
|
|
5901
5873
|
{
|
|
5902
5874
|
className: combinedClassName,
|
|
@@ -5908,19 +5880,19 @@ var DefinitionTableRow2 = ({ cells, className }) => /* @__PURE__ */ (0, import_j
|
|
|
5908
5880
|
colIndex
|
|
5909
5881
|
);
|
|
5910
5882
|
}) });
|
|
5911
|
-
var DefinitionTable2 = (0,
|
|
5912
|
-
const slots = (0,
|
|
5913
|
-
return /* @__PURE__ */ (0,
|
|
5914
|
-
/* @__PURE__ */ (0,
|
|
5883
|
+
var DefinitionTable2 = (0, import_react6.forwardRef)(({ rows = [], footer, classNames }, ref) => {
|
|
5884
|
+
const slots = (0, import_react6.useMemo)(() => DefinitionTableStyle(), []);
|
|
5885
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
5886
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("table", { className: slots.table({ class: classNames == null ? void 0 : classNames.table }), children: [
|
|
5915
5887
|
renderColGroup(rows),
|
|
5916
|
-
/* @__PURE__ */ (0,
|
|
5888
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)("tbody", { children: rows.map((row, i) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DefinitionTableRow, { ...row, className: `${row.className || ""} ${i === 0 ? "first-row" : ""}` }, i)) })
|
|
5917
5889
|
] }),
|
|
5918
|
-
footer && /* @__PURE__ */ (0,
|
|
5890
|
+
footer && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { children: footer })
|
|
5919
5891
|
] });
|
|
5920
5892
|
});
|
|
5921
5893
|
DefinitionTable2.displayName = "DefinitionTable2";
|
|
5922
|
-
var
|
|
5923
|
-
var
|
|
5894
|
+
var definition_table_default = DefinitionTable2;
|
|
5895
|
+
var DefinitionTableStyle = tv({
|
|
5924
5896
|
slots: {
|
|
5925
5897
|
base: ["flex", "flex-col", "gap-[30px]"],
|
|
5926
5898
|
table: ["w-full", "table-auto", "border", "border-neutral-light"]
|
|
@@ -5929,6 +5901,5 @@ var DefinitionTableStyle2 = tv({
|
|
|
5929
5901
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5930
5902
|
0 && (module.exports = {
|
|
5931
5903
|
DefinitionTable,
|
|
5932
|
-
DefinitionTable2,
|
|
5933
5904
|
Table
|
|
5934
5905
|
});
|
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import "../../chunk-
|
|
3
|
-
import {
|
|
4
|
-
definition_table_default
|
|
5
|
-
} from "../../chunk-6TIIBU7J.mjs";
|
|
6
|
-
import {
|
|
7
|
-
definition_table2_default
|
|
8
|
-
} from "../../chunk-A6HCKIVP.mjs";
|
|
2
|
+
import "../../chunk-DX3KXNP6.mjs";
|
|
9
3
|
import {
|
|
10
4
|
table_default
|
|
11
5
|
} from "../../chunk-4T7R3PEH.mjs";
|
|
12
6
|
import "../../chunk-BPEMHZH3.mjs";
|
|
13
7
|
import "../../chunk-P7YYNA6L.mjs";
|
|
14
|
-
import "../../chunk-DQRAFUDA.mjs";
|
|
15
|
-
import "../../chunk-M37VBNB3.mjs";
|
|
16
8
|
import "../../chunk-MZ76AA76.mjs";
|
|
17
9
|
import "../../chunk-6PN3DGOE.mjs";
|
|
10
|
+
import "../../chunk-DQRAFUDA.mjs";
|
|
11
|
+
import "../../chunk-M37VBNB3.mjs";
|
|
12
|
+
import {
|
|
13
|
+
definition_table_default
|
|
14
|
+
} from "../../chunk-V5T3D6WI.mjs";
|
|
18
15
|
import "../../chunk-7B7LRG5J.mjs";
|
|
19
16
|
import "../../chunk-LQEA2HU5.mjs";
|
|
20
17
|
import "../../chunk-F3HENRVM.mjs";
|
|
@@ -31,6 +28,5 @@ import "../../chunk-E3G5QXSH.mjs";
|
|
|
31
28
|
import "../../chunk-AC6TWLRT.mjs";
|
|
32
29
|
export {
|
|
33
30
|
definition_table_default as DefinitionTable,
|
|
34
|
-
definition_table2_default as DefinitionTable2,
|
|
35
31
|
table_default as Table
|
|
36
32
|
};
|