@deepnoid/ui 0.1.40 → 0.1.42
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 +136 -136
- package/dist/{chunk-Y37BWBR3.mjs → chunk-6ZL5NEEI.mjs} +2 -3
- package/dist/{chunk-Z74QNVPG.mjs → chunk-AJUQBMSV.mjs} +17 -2
- package/dist/{chunk-LWRK5TPZ.mjs → chunk-BPEMHZH3.mjs} +22 -19
- package/dist/components/breadcrumb/breadcrumb.mjs +2 -2
- package/dist/components/breadcrumb/index.mjs +2 -2
- package/dist/components/button/index.mjs +6 -6
- package/dist/components/fileUpload/fileUpload.mjs +3 -3
- package/dist/components/fileUpload/index.mjs +3 -3
- package/dist/components/modal/index.mjs +2 -2
- package/dist/components/modal/modal.mjs +2 -2
- package/dist/components/switch/index.js +17 -2
- package/dist/components/switch/index.mjs +1 -1
- package/dist/components/switch/switch.d.mts +2 -0
- package/dist/components/switch/switch.d.ts +2 -0
- package/dist/components/switch/switch.js +17 -2
- package/dist/components/switch/switch.mjs +1 -1
- package/dist/components/table/index.js +23 -21
- package/dist/components/table/index.mjs +2 -2
- package/dist/components/table/table-body.d.mts +1 -2
- package/dist/components/table/table-body.d.ts +1 -2
- package/dist/components/table/table-body.js +22 -19
- package/dist/components/table/table-body.mjs +1 -1
- package/dist/components/table/table.d.mts +0 -1
- package/dist/components/table/table.d.ts +0 -1
- package/dist/components/table/table.js +23 -21
- package/dist/components/table/table.mjs +2 -2
- package/dist/index.js +40 -23
- package/dist/index.mjs +14 -14
- package/package.json +1 -1
- package/dist/{chunk-TRR232FS.mjs → chunk-25QOEKXS.mjs} +3 -3
package/dist/index.js
CHANGED
|
@@ -7059,7 +7059,7 @@ var TableBody = ({
|
|
|
7059
7059
|
rowCheckbox = false,
|
|
7060
7060
|
checkedRows,
|
|
7061
7061
|
onCheckRow,
|
|
7062
|
-
onRowClick,
|
|
7062
|
+
// onRowClick,
|
|
7063
7063
|
isLoading = false,
|
|
7064
7064
|
emptyContent,
|
|
7065
7065
|
skeletonRow,
|
|
@@ -7087,24 +7087,27 @@ var TableBody = ({
|
|
|
7087
7087
|
rowCheckbox && renderTdSkeleton(`skeleton-checkbox-${rowIndex}`)
|
|
7088
7088
|
] }, `skeleton-${rowIndex}`);
|
|
7089
7089
|
const renderEmptyRow = () => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("td", { colSpan: columns.length + (rowCheckbox ? 1 : 0), className: slots.empty({ class: classNames == null ? void 0 : classNames.empty }), children: emptyContent }) });
|
|
7090
|
-
const renderDataRow = (row, rowIndex) =>
|
|
7091
|
-
|
|
7092
|
-
|
|
7093
|
-
|
|
7094
|
-
|
|
7095
|
-
|
|
7096
|
-
|
|
7097
|
-
|
|
7098
|
-
|
|
7099
|
-
|
|
7100
|
-
|
|
7101
|
-
|
|
7102
|
-
|
|
7103
|
-
|
|
7104
|
-
|
|
7105
|
-
|
|
7106
|
-
|
|
7107
|
-
|
|
7090
|
+
const renderDataRow = (row, rowIndex) => (
|
|
7091
|
+
// <tr key={rowIndex} className={slots.tr({ class: classNames?.tr })} onClick={() => onRowClick?.(row)}>
|
|
7092
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), children: [
|
|
7093
|
+
columns.map((column, colIdx) => {
|
|
7094
|
+
var _a;
|
|
7095
|
+
const value = row[column.field];
|
|
7096
|
+
const formattedValue = ((_a = column.valueFormatter) == null ? void 0 : _a.call(column, { value, field: column.field })) || value;
|
|
7097
|
+
const content = column.renderCell ? column.renderCell({ id: row.id, field: column.field, value, formattedValue, row }) : formattedValue;
|
|
7098
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
7099
|
+
"td",
|
|
7100
|
+
{
|
|
7101
|
+
className: clsx(slots.td({ class: classNames == null ? void 0 : classNames.td }), column.className),
|
|
7102
|
+
style: getCellStyle(column),
|
|
7103
|
+
children: content
|
|
7104
|
+
},
|
|
7105
|
+
`${rowIndex}-${colIdx}`
|
|
7106
|
+
);
|
|
7107
|
+
}),
|
|
7108
|
+
rowCheckbox && renderCheckboxCell(rowIndex)
|
|
7109
|
+
] }, rowIndex)
|
|
7110
|
+
);
|
|
7108
7111
|
const renderRows = () => {
|
|
7109
7112
|
if (isLoading) return skeletonRow ? Array.from({ length: skeletonRow }, (_, idx) => renderSkeletonRow(idx)) : /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_jsx_runtime17.Fragment, {});
|
|
7110
7113
|
if (!rows.length && emptyContent) return renderEmptyRow();
|
|
@@ -7444,7 +7447,7 @@ var Table = (0, import_react15.forwardRef)((originalProps, ref) => {
|
|
|
7444
7447
|
rows,
|
|
7445
7448
|
columns,
|
|
7446
7449
|
rowCheckbox = false,
|
|
7447
|
-
onRowClick,
|
|
7450
|
+
// onRowClick,
|
|
7448
7451
|
totalData = 0,
|
|
7449
7452
|
pagination,
|
|
7450
7453
|
onPageChange,
|
|
@@ -7515,7 +7518,6 @@ var Table = (0, import_react15.forwardRef)((originalProps, ref) => {
|
|
|
7515
7518
|
color,
|
|
7516
7519
|
rowCheckbox,
|
|
7517
7520
|
checkedRows,
|
|
7518
|
-
onRowClick,
|
|
7519
7521
|
onCheckRow: handleRowCheck,
|
|
7520
7522
|
emptyContent,
|
|
7521
7523
|
isLoading,
|
|
@@ -8482,10 +8484,25 @@ var import_tailwind_variants21 = require("tailwind-variants");
|
|
|
8482
8484
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
8483
8485
|
var Switch = (0, import_react20.forwardRef)((originalProps, ref) => {
|
|
8484
8486
|
const [rawProps, variantProps] = mapPropsVariants(originalProps, switchStyle.variantKeys);
|
|
8485
|
-
const { size, color, isDisabled, disableAnimation, id, classNames, ...inputProps } = {
|
|
8487
|
+
const { size, color, isDisabled, disableAnimation, id, checked, onChange, classNames, ...inputProps } = {
|
|
8488
|
+
...rawProps,
|
|
8489
|
+
...variantProps
|
|
8490
|
+
};
|
|
8486
8491
|
const slots = (0, import_react20.useMemo)(() => switchStyle({ ...variantProps }), [variantProps]);
|
|
8487
8492
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("label", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
|
|
8488
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
8493
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
8494
|
+
"input",
|
|
8495
|
+
{
|
|
8496
|
+
...inputProps,
|
|
8497
|
+
id,
|
|
8498
|
+
ref,
|
|
8499
|
+
type: "checkbox",
|
|
8500
|
+
disabled: isDisabled,
|
|
8501
|
+
className: "hidden",
|
|
8502
|
+
checked,
|
|
8503
|
+
onChange
|
|
8504
|
+
}
|
|
8505
|
+
),
|
|
8489
8506
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: slots.outerWrapper({ class: classNames == null ? void 0 : classNames.outerWrapper }), children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: slots.thumb({ class: classNames == null ? void 0 : classNames.thumb }) }) }) })
|
|
8490
8507
|
] });
|
|
8491
8508
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -29,15 +29,15 @@ import {
|
|
|
29
29
|
import "./chunk-LVFI2NOH.mjs";
|
|
30
30
|
import {
|
|
31
31
|
switch_default
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-AJUQBMSV.mjs";
|
|
33
33
|
import "./chunk-DX3KXNP6.mjs";
|
|
34
34
|
import {
|
|
35
35
|
table_default
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-6ZL5NEEI.mjs";
|
|
37
37
|
import {
|
|
38
38
|
definition_table_default
|
|
39
39
|
} from "./chunk-6TIIBU7J.mjs";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-BPEMHZH3.mjs";
|
|
41
41
|
import "./chunk-P7YYNA6L.mjs";
|
|
42
42
|
import "./chunk-DQRAFUDA.mjs";
|
|
43
43
|
import {
|
|
@@ -83,15 +83,11 @@ import "./chunk-FWJ2ZKH6.mjs";
|
|
|
83
83
|
import "./chunk-P732YGHO.mjs";
|
|
84
84
|
import {
|
|
85
85
|
fileUpload_default
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-25QOEKXS.mjs";
|
|
87
87
|
import "./chunk-2GCSFWHD.mjs";
|
|
88
88
|
import {
|
|
89
89
|
input_default
|
|
90
90
|
} from "./chunk-GH6CPGFN.mjs";
|
|
91
|
-
import "./chunk-SE5TU755.mjs";
|
|
92
|
-
import {
|
|
93
|
-
backdrop_default
|
|
94
|
-
} from "./chunk-LL6F3WDX.mjs";
|
|
95
91
|
import "./chunk-QZ3LVYJW.mjs";
|
|
96
92
|
import {
|
|
97
93
|
checkbox_default
|
|
@@ -99,6 +95,10 @@ import {
|
|
|
99
95
|
import {
|
|
100
96
|
chip_default
|
|
101
97
|
} from "./chunk-WLNLVX7Q.mjs";
|
|
98
|
+
import "./chunk-SE5TU755.mjs";
|
|
99
|
+
import {
|
|
100
|
+
backdrop_default
|
|
101
|
+
} from "./chunk-LL6F3WDX.mjs";
|
|
102
102
|
import "./chunk-7DLOYKVC.mjs";
|
|
103
103
|
import {
|
|
104
104
|
avatar_default
|
|
@@ -108,21 +108,21 @@ import {
|
|
|
108
108
|
breadcrumb_default
|
|
109
109
|
} from "./chunk-G67WUZO3.mjs";
|
|
110
110
|
import "./chunk-MY5U63QO.mjs";
|
|
111
|
-
import {
|
|
112
|
-
icon_button_default
|
|
113
|
-
} from "./chunk-7TAGGLNY.mjs";
|
|
114
|
-
import {
|
|
115
|
-
text_button_default
|
|
116
|
-
} from "./chunk-WFMFC7R6.mjs";
|
|
117
111
|
import {
|
|
118
112
|
button_group_default
|
|
119
113
|
} from "./chunk-LPZOH3RP.mjs";
|
|
120
114
|
import {
|
|
121
115
|
button_default
|
|
122
116
|
} from "./chunk-UB4YBFOT.mjs";
|
|
117
|
+
import {
|
|
118
|
+
icon_button_default
|
|
119
|
+
} from "./chunk-7TAGGLNY.mjs";
|
|
123
120
|
import "./chunk-6WSACUIB.mjs";
|
|
124
121
|
import "./chunk-LXHUO6VM.mjs";
|
|
125
122
|
import "./chunk-6PNKRBUT.mjs";
|
|
123
|
+
import {
|
|
124
|
+
text_button_default
|
|
125
|
+
} from "./chunk-WFMFC7R6.mjs";
|
|
126
126
|
import "./chunk-ZYIIXWVY.mjs";
|
|
127
127
|
import {
|
|
128
128
|
Icon_default,
|
package/package.json
CHANGED
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
import {
|
|
3
3
|
input_default
|
|
4
4
|
} from "./chunk-GH6CPGFN.mjs";
|
|
5
|
-
import {
|
|
6
|
-
icon_button_default
|
|
7
|
-
} from "./chunk-7TAGGLNY.mjs";
|
|
8
5
|
import {
|
|
9
6
|
button_default
|
|
10
7
|
} from "./chunk-UB4YBFOT.mjs";
|
|
8
|
+
import {
|
|
9
|
+
icon_button_default
|
|
10
|
+
} from "./chunk-7TAGGLNY.mjs";
|
|
11
11
|
|
|
12
12
|
// src/components/fileUpload/fileUpload.tsx
|
|
13
13
|
import { useRef, useState, useEffect } from "react";
|