@deepnoid/ui 0.1.182 → 0.1.184

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.
Files changed (79) hide show
  1. package/.turbo/turbo-build.log +176 -176
  2. package/dist/{chunk-SX2FQY4L.mjs → chunk-2H5EBNCD.mjs} +4 -4
  3. package/dist/{chunk-XZTVXEOD.mjs → chunk-7C7RHDHV.mjs} +4 -4
  4. package/dist/{chunk-KDBM7UVG.mjs → chunk-GG7QANQF.mjs} +1 -1
  5. package/dist/{chunk-M5ZLURXE.mjs → chunk-K6AKMFZH.mjs} +5 -5
  6. package/dist/{chunk-YTW5HJJH.mjs → chunk-LZRLIXM6.mjs} +120 -37
  7. package/dist/{chunk-W67QZ4OB.mjs → chunk-MU6QDNYC.mjs} +1 -1
  8. package/dist/{chunk-GPJVGQ5W.mjs → chunk-NPVMCUZ4.mjs} +2 -2
  9. package/dist/{chunk-6NO7GQHG.mjs → chunk-ROXKJQSJ.mjs} +3 -3
  10. package/dist/components/backdrop/backdrop.mjs +2 -2
  11. package/dist/components/backdrop/index.mjs +2 -2
  12. package/dist/components/breadcrumb/breadcrumb.mjs +4 -4
  13. package/dist/components/breadcrumb/index.mjs +4 -4
  14. package/dist/components/button/button.mjs +1 -1
  15. package/dist/components/button/icon-button.mjs +1 -1
  16. package/dist/components/button/index.mjs +3 -3
  17. package/dist/components/button/text-button.mjs +2 -2
  18. package/dist/components/charts/areaChart.mjs +1 -1
  19. package/dist/components/charts/index.mjs +1 -1
  20. package/dist/components/checkbox/checkbox.mjs +2 -2
  21. package/dist/components/checkbox/index.mjs +2 -2
  22. package/dist/components/chip/chip.mjs +1 -1
  23. package/dist/components/chip/index.mjs +1 -1
  24. package/dist/components/drawer/drawer.mjs +2 -2
  25. package/dist/components/drawer/index.mjs +2 -2
  26. package/dist/components/fileUpload/fileUpload.mjs +6 -6
  27. package/dist/components/fileUpload/index.mjs +6 -6
  28. package/dist/components/input/index.mjs +3 -3
  29. package/dist/components/input/input.mjs +3 -3
  30. package/dist/components/list/index.mjs +2 -2
  31. package/dist/components/list/listItem.mjs +2 -2
  32. package/dist/components/modal/index.mjs +5 -5
  33. package/dist/components/modal/modal.mjs +5 -5
  34. package/dist/components/pagination/index.mjs +4 -4
  35. package/dist/components/pagination/pagination.mjs +4 -4
  36. package/dist/components/picker/datePicker.mjs +6 -6
  37. package/dist/components/picker/index.mjs +8 -8
  38. package/dist/components/picker/timePicker.mjs +4 -4
  39. package/dist/components/progress/index.mjs +2 -2
  40. package/dist/components/progress/progress.mjs +2 -2
  41. package/dist/components/radio/index.mjs +2 -2
  42. package/dist/components/radio/radio.mjs +2 -2
  43. package/dist/components/select/index.mjs +3 -3
  44. package/dist/components/select/select.mjs +3 -3
  45. package/dist/components/starRating/index.mjs +1 -1
  46. package/dist/components/starRating/starRating.mjs +1 -1
  47. package/dist/components/table/definition-table.mjs +2 -2
  48. package/dist/components/table/index.js +149 -66
  49. package/dist/components/table/index.mjs +9 -9
  50. package/dist/components/table/table-body.js +145 -62
  51. package/dist/components/table/table-body.mjs +6 -6
  52. package/dist/components/table/table-head.js +113 -32
  53. package/dist/components/table/table-head.mjs +6 -6
  54. package/dist/components/table/table.js +145 -62
  55. package/dist/components/table/table.mjs +6 -6
  56. package/dist/components/textarea/index.mjs +2 -2
  57. package/dist/components/textarea/textarea.mjs +2 -2
  58. package/dist/components/timePicker/calendar.mjs +1 -1
  59. package/dist/components/toast/index.mjs +5 -5
  60. package/dist/components/toast/toast.mjs +3 -3
  61. package/dist/components/toast/use-toast.mjs +4 -4
  62. package/dist/components/tree/index.mjs +2 -2
  63. package/dist/components/tree/tree.mjs +2 -2
  64. package/dist/index.js +327 -244
  65. package/dist/index.mjs +54 -54
  66. package/package.json +1 -1
  67. package/dist/{chunk-3HXNAVAN.mjs → chunk-3CRSSRCH.mjs} +3 -3
  68. package/dist/{chunk-ZFC5O2V3.mjs → chunk-45Y7ANPK.mjs} +3 -3
  69. package/dist/{chunk-LE7PGMCV.mjs → chunk-4EELFA6L.mjs} +3 -3
  70. package/dist/{chunk-NDNIAALB.mjs → chunk-4LUASWAN.mjs} +3 -3
  71. package/dist/{chunk-UINFH5AT.mjs → chunk-A3WPBLOW.mjs} +3 -3
  72. package/dist/{chunk-BH3I4LIZ.mjs → chunk-DS5CGU2X.mjs} +3 -3
  73. package/dist/{chunk-GVTYOGSV.mjs → chunk-GS5X67UB.mjs} +3 -3
  74. package/dist/{chunk-4X35QQTI.mjs → chunk-IH3BJRTV.mjs} +3 -3
  75. package/dist/{chunk-ACZ3DQVT.mjs → chunk-KH63CD55.mjs} +3 -3
  76. package/dist/{chunk-NKF2TQMA.mjs → chunk-MWUA62VL.mjs} +3 -3
  77. package/dist/{chunk-3DCUMRYP.mjs → chunk-OEIEALIP.mjs} +3 -3
  78. package/dist/{chunk-XL6LZDT4.mjs → chunk-PRNE3U26.mjs} +3 -3
  79. package/dist/{chunk-7H6U5XJA.mjs → chunk-RXDRG6MC.mjs} +3 -3
@@ -106,7 +106,7 @@ __export(table_exports, {
106
106
  getCellStyle: () => getCellStyle
107
107
  });
108
108
  module.exports = __toCommonJS(table_exports);
109
- var import_react6 = require("react");
109
+ var import_react7 = require("react");
110
110
  var import_tailwind_variants6 = require("tailwind-variants");
111
111
 
112
112
  // src/utils/props.ts
@@ -129,6 +129,9 @@ var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
129
129
  }
130
130
  };
131
131
 
132
+ // src/components/table/table-head.tsx
133
+ var import_react2 = require("react");
134
+
132
135
  // src/utils/clsx.ts
133
136
  function clsx(...args) {
134
137
  var i = 0, tmp, x, str = "";
@@ -627,20 +630,51 @@ var checkboxStyle = tv({
627
630
 
628
631
  // src/components/table/table-head.tsx
629
632
  var import_jsx_runtime2 = require("react/jsx-runtime");
630
- var TableHead = ({
633
+ function TableHeaderCell({
634
+ content,
635
+ column,
636
+ isCheckbox = false,
631
637
  slots,
632
- columns,
633
- color,
634
- size,
635
- rowCheckbox = false,
636
- hasCheckedRows,
637
- classNames,
638
- onCheckAll
639
- }) => {
640
- const renderTh = (content, key, column, isCheckbox) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
638
+ classNames
639
+ }) {
640
+ const thRef = (0, import_react2.useRef)(null);
641
+ const [showTitle, setShowTitle] = (0, import_react2.useState)(false);
642
+ const checkOverflow = (el) => {
643
+ if (el.scrollWidth > el.clientWidth) {
644
+ return true;
645
+ }
646
+ const children = Array.from(el.children);
647
+ for (const child of children) {
648
+ if (child.scrollWidth > child.clientWidth) {
649
+ return true;
650
+ }
651
+ }
652
+ return false;
653
+ };
654
+ const extractTextFromContent = (node) => {
655
+ if (typeof node === "string" || typeof node === "number") {
656
+ return String(node);
657
+ }
658
+ if ((0, import_react2.isValidElement)(node)) {
659
+ return String(node.props.children || "");
660
+ }
661
+ return "";
662
+ };
663
+ (0, import_react2.useEffect)(() => {
664
+ if (thRef.current && !isCheckbox) {
665
+ setTimeout(() => {
666
+ if (thRef.current) {
667
+ setShowTitle(checkOverflow(thRef.current));
668
+ }
669
+ }, 0);
670
+ }
671
+ }, [content, isCheckbox]);
672
+ const titleText = !isCheckbox && showTitle ? extractTextFromContent(content) : void 0;
673
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
641
674
  "th",
642
675
  {
643
- className: clsx(slots.th({ class: classNames == null ? void 0 : classNames.th }), column == null ? void 0 : column.className),
676
+ ref: thRef,
677
+ className: clsx(slots.th({ class: classNames == null ? void 0 : classNames.th }), column == null ? void 0 : column.className, !isCheckbox && "truncate"),
644
678
  style: isCheckbox ? {
645
679
  width: "40px",
646
680
  minWidth: "40px",
@@ -649,31 +683,55 @@ var TableHead = ({
649
683
  flexGrow: 0,
650
684
  boxSizing: "border-box"
651
685
  } : column ? { ...getCellStyle(column), textAlign: "center" } : void 0,
686
+ title: titleText,
652
687
  children: content
653
- },
654
- key
688
+ }
655
689
  );
690
+ }
691
+ var TableHead = ({
692
+ slots,
693
+ columns,
694
+ color,
695
+ size,
696
+ rowCheckbox = false,
697
+ hasCheckedRows,
698
+ classNames,
699
+ onCheckAll
700
+ }) => {
656
701
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("thead", { className: slots.thead({ class: classNames == null ? void 0 : classNames.thead }), children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), children: [
657
- columns.map((column, idx) => renderTh(column.headerName, `${column.field}-${idx}`, column)),
658
- rowCheckbox && renderTh(
659
- /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { "data-checkbox": true, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
660
- checkbox_default,
661
- {
662
- size,
663
- checked: hasCheckedRows,
664
- onChange: (e) => onCheckAll(e.target.checked)
665
- }
666
- ) }),
667
- "checkbox",
668
- void 0,
669
- true
702
+ columns.map((column, idx) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
703
+ TableHeaderCell,
704
+ {
705
+ content: column.headerName,
706
+ column,
707
+ slots,
708
+ classNames
709
+ },
710
+ `${column.field}-${idx}`
711
+ )),
712
+ rowCheckbox && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
713
+ TableHeaderCell,
714
+ {
715
+ content: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { "data-checkbox": true, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
716
+ checkbox_default,
717
+ {
718
+ size,
719
+ checked: hasCheckedRows,
720
+ onChange: (e) => onCheckAll(e.target.checked)
721
+ }
722
+ ) }),
723
+ isCheckbox: true,
724
+ slots,
725
+ classNames
726
+ },
727
+ "checkbox"
670
728
  )
671
729
  ] }) });
672
730
  };
673
731
  var table_head_default = TableHead;
674
732
 
675
733
  // src/components/table/table-body.tsx
676
- var import_react2 = require("react");
734
+ var import_react3 = require("react");
677
735
  var import_jsx_runtime3 = require("react/jsx-runtime");
678
736
  function TableCell({
679
737
  row,
@@ -683,25 +741,50 @@ function TableCell({
683
741
  slots,
684
742
  classNames
685
743
  }) {
686
- var _a;
744
+ var _a, _b;
687
745
  const value = row[column.field];
688
746
  const formattedValue = ((_a = column.valueFormatter) == null ? void 0 : _a.call(column, { value, field: column.field })) || value;
689
747
  const content = column.renderCell ? column.renderCell({ id: row.id, field: column.field, value, formattedValue, row }) : formattedValue;
690
- const tdRef = (0, import_react2.useRef)(null);
691
- const [showTitle, setShowTitle] = (0, import_react2.useState)(false);
692
- const checkOverflow = (el) => el.scrollWidth > el.clientWidth;
693
- (0, import_react2.useEffect)(() => {
748
+ const tdRef = (0, import_react3.useRef)(null);
749
+ const [showTitle, setShowTitle] = (0, import_react3.useState)(false);
750
+ const checkOverflow = (el) => {
751
+ if (el.scrollWidth > el.clientWidth) {
752
+ return true;
753
+ }
754
+ const children = Array.from(el.children);
755
+ for (const child of children) {
756
+ if (child.scrollWidth > child.clientWidth) {
757
+ return true;
758
+ }
759
+ }
760
+ return false;
761
+ };
762
+ (0, import_react3.useEffect)(() => {
694
763
  if (tdRef.current) {
695
- setShowTitle(checkOverflow(tdRef.current));
764
+ setTimeout(() => {
765
+ if (tdRef.current) {
766
+ setShowTitle(checkOverflow(tdRef.current));
767
+ }
768
+ }, 0);
696
769
  }
697
770
  }, [content]);
698
771
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
699
772
  "td",
700
773
  {
701
774
  ref: tdRef,
702
- className: clsx(slots.td(), classNames == null ? void 0 : classNames.td, column.className, "truncate"),
703
- style: { ...getCellStyle(column), maxWidth: column.width || "150px" },
704
- title: showTitle ? String(content) : void 0,
775
+ className: clsx(
776
+ slots.td(),
777
+ classNames == null ? void 0 : classNames.td,
778
+ column.className,
779
+ "truncate",
780
+ "[&>*]:inline-block [&>*]:max-w-full [&>*]:truncate"
781
+ ),
782
+ style: {
783
+ ...getCellStyle(column),
784
+ maxWidth: column.width || "150px",
785
+ textAlign: column.align || "center"
786
+ },
787
+ title: showTitle ? String(((_b = value == null ? void 0 : value.props) == null ? void 0 : _b.children) || content || "") : void 0,
705
788
  children: content
706
789
  },
707
790
  `${row.id}-${column.field}-${colIdx}-${rowIndex}`
@@ -771,18 +854,18 @@ var TableBody = ({
771
854
  var table_body_default = TableBody;
772
855
 
773
856
  // src/components/pagination/pagination.tsx
774
- var import_react5 = require("react");
857
+ var import_react6 = require("react");
775
858
 
776
859
  // src/components/pagination/usePagination.ts
777
- var import_react3 = require("react");
860
+ var import_react4 = require("react");
778
861
  var usePagination = ({ currentPage, totalPage, groupSize, handleChangePage }) => {
779
- const startPage = (0, import_react3.useMemo)(() => Math.floor((currentPage - 1) / groupSize) * groupSize + 1, [currentPage, groupSize]);
780
- const endPage = (0, import_react3.useMemo)(() => Math.min(startPage + groupSize - 1, totalPage), [startPage, groupSize, totalPage]);
781
- const pageList = (0, import_react3.useMemo)(
862
+ const startPage = (0, import_react4.useMemo)(() => Math.floor((currentPage - 1) / groupSize) * groupSize + 1, [currentPage, groupSize]);
863
+ const endPage = (0, import_react4.useMemo)(() => Math.min(startPage + groupSize - 1, totalPage), [startPage, groupSize, totalPage]);
864
+ const pageList = (0, import_react4.useMemo)(
782
865
  () => Array.from({ length: endPage - startPage + 1 }, (_, i) => startPage + i),
783
866
  [startPage, endPage]
784
867
  );
785
- const handleClickMovePage = (0, import_react3.useCallback)(
868
+ const handleClickMovePage = (0, import_react4.useCallback)(
786
869
  (page) => (event) => {
787
870
  event.preventDefault();
788
871
  handleChangePage == null ? void 0 : handleChangePage(page);
@@ -799,7 +882,7 @@ var usePagination = ({ currentPage, totalPage, groupSize, handleChangePage }) =>
799
882
  var usePagination_default = usePagination;
800
883
 
801
884
  // src/components/input/input.tsx
802
- var import_react4 = require("react");
885
+ var import_react5 = require("react");
803
886
 
804
887
  // src/components/icon/template.tsx
805
888
  var import_jsx_runtime4 = require("react/jsx-runtime");
@@ -5534,12 +5617,12 @@ var Icon_default = Icon;
5534
5617
 
5535
5618
  // src/components/input/input.tsx
5536
5619
  var import_jsx_runtime6 = require("react/jsx-runtime");
5537
- var Input = (0, import_react4.forwardRef)((originalProps, ref) => {
5620
+ var Input = (0, import_react5.forwardRef)((originalProps, ref) => {
5538
5621
  const [props, variantProps] = mapPropsVariants(originalProps, inputStyle.variantKeys);
5539
5622
  const { classNames, label, helperMessage, errorMessage, startContent, endContent, ...inputProps } = props;
5540
- const inputRef = (0, import_react4.useRef)(null);
5541
- const slots = (0, import_react4.useMemo)(() => inputStyle({ ...variantProps }), [variantProps]);
5542
- const getContentProps = (0, import_react4.useCallback)(
5623
+ const inputRef = (0, import_react5.useRef)(null);
5624
+ const slots = (0, import_react5.useMemo)(() => inputStyle({ ...variantProps }), [variantProps]);
5625
+ const getContentProps = (0, import_react5.useCallback)(
5543
5626
  () => ({
5544
5627
  className: clsx(
5545
5628
  slots.content({ class: classNames == null ? void 0 : classNames.content }),
@@ -5550,13 +5633,13 @@ var Input = (0, import_react4.forwardRef)((originalProps, ref) => {
5550
5633
  [slots, classNames, originalProps.size, inputProps.readOnly]
5551
5634
  );
5552
5635
  const renderStartContent = () => {
5553
- if ((0, import_react4.isValidElement)(startContent)) {
5636
+ if ((0, import_react5.isValidElement)(startContent)) {
5554
5637
  const existingProps = startContent.props;
5555
5638
  const mergedProps = {
5556
5639
  ...getContentProps(),
5557
5640
  className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
5558
5641
  };
5559
- return (0, import_react4.cloneElement)(startContent, mergedProps);
5642
+ return (0, import_react5.cloneElement)(startContent, mergedProps);
5560
5643
  } else {
5561
5644
  const contentProps = getContentProps();
5562
5645
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { ...contentProps, children: startContent });
@@ -5575,13 +5658,13 @@ var Input = (0, import_react4.forwardRef)((originalProps, ref) => {
5575
5658
  }
5576
5659
  );
5577
5660
  const renderContentWithIcon = () => {
5578
- if ((0, import_react4.isValidElement)(endContent)) {
5661
+ if ((0, import_react5.isValidElement)(endContent)) {
5579
5662
  const existingProps = endContent.props;
5580
5663
  const mergedProps = {
5581
5664
  ...getContentProps(),
5582
5665
  className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
5583
5666
  };
5584
- return (0, import_react4.cloneElement)(endContent, mergedProps);
5667
+ return (0, import_react5.cloneElement)(endContent, mergedProps);
5585
5668
  } else if (errorMessage && errorMessage.length > 0) {
5586
5669
  const iconProps = { ...getContentProps(), className: getContentProps().className };
5587
5670
  return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { ...iconProps, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Icon_default, { name: "exclamation-circle", fill: true, size: originalProps.size }) });
@@ -5918,7 +6001,7 @@ var inputStyle = tv(
5918
6001
 
5919
6002
  // src/components/pagination/pagination.tsx
5920
6003
  var import_jsx_runtime7 = require("react/jsx-runtime");
5921
- var Pagination = (0, import_react5.forwardRef)((originalProps, ref) => {
6004
+ var Pagination = (0, import_react6.forwardRef)((originalProps, ref) => {
5922
6005
  const [props, variantProps] = mapPropsVariants(originalProps, paginationStyle.variantKeys);
5923
6006
  const {
5924
6007
  classNames,
@@ -5932,12 +6015,12 @@ var Pagination = (0, import_react5.forwardRef)((originalProps, ref) => {
5932
6015
  variant,
5933
6016
  size
5934
6017
  } = { ...props, ...variantProps };
5935
- const [inputPage, setInputPage] = (0, import_react5.useState)(currentPage);
6018
+ const [inputPage, setInputPage] = (0, import_react6.useState)(currentPage);
5936
6019
  const isFirstPageDisabled = currentPage <= 1;
5937
6020
  const isPrevPageDisabled = currentPage <= 1;
5938
6021
  const isNextPageDisabled = currentPage >= totalPage;
5939
6022
  const isLastPageDisabled = currentPage >= totalPage;
5940
- const slots = (0, import_react5.useMemo)(() => paginationStyle(variantProps), [variantProps]);
6023
+ const slots = (0, import_react6.useMemo)(() => paginationStyle(variantProps), [variantProps]);
5941
6024
  const { pageList, handleClickMovePage } = usePagination_default({
5942
6025
  currentPage,
5943
6026
  totalPage,
@@ -6305,7 +6388,7 @@ var scrollAreaStyle = (0, import_tailwind_variants5.tv)({
6305
6388
 
6306
6389
  // src/components/table/table.tsx
6307
6390
  var import_jsx_runtime9 = require("react/jsx-runtime");
6308
- var Table = (0, import_react6.forwardRef)((originalProps, ref) => {
6391
+ var Table = (0, import_react7.forwardRef)((originalProps, ref) => {
6309
6392
  const [props, variantProps] = mapPropsVariants(originalProps, tableStyle.variantKeys);
6310
6393
  const {
6311
6394
  rows,
@@ -6330,8 +6413,8 @@ var Table = (0, import_react6.forwardRef)((originalProps, ref) => {
6330
6413
  } = { ...props, ...variantProps };
6331
6414
  const { page = 1, perPage = 15 } = pagination || {};
6332
6415
  const showPagination = pagination && totalData > 0;
6333
- const [checkedRowIds, setCheckedRowIds] = (0, import_react6.useState)(new Set(checkedRows == null ? void 0 : checkedRows.map((row) => row.id)));
6334
- const tableMinWidth = (0, import_react6.useMemo)(() => {
6416
+ const [checkedRowIds, setCheckedRowIds] = (0, import_react7.useState)(new Set(checkedRows == null ? void 0 : checkedRows.map((row) => row.id)));
6417
+ const tableMinWidth = (0, import_react7.useMemo)(() => {
6335
6418
  const columnsWidth = columns.reduce((total, column) => {
6336
6419
  if (column.width) return total + column.width;
6337
6420
  if (column.minWidth) return total + column.minWidth;
@@ -6340,10 +6423,10 @@ var Table = (0, import_react6.forwardRef)((originalProps, ref) => {
6340
6423
  const checkboxWidth = rowCheckbox ? 40 : 0;
6341
6424
  return columnsWidth + checkboxWidth;
6342
6425
  }, [columns, rowCheckbox]);
6343
- (0, import_react6.useEffect)(() => {
6426
+ (0, import_react7.useEffect)(() => {
6344
6427
  onCheckedRowsChange == null ? void 0 : onCheckedRowsChange(getCheckedRowData(checkedRowIds));
6345
6428
  }, [checkedRowIds]);
6346
- (0, import_react6.useEffect)(() => {
6429
+ (0, import_react7.useEffect)(() => {
6347
6430
  const currentRowIds = new Set(rows.map((row) => row.id));
6348
6431
  const ids = Array.from(checkedRowIds);
6349
6432
  const hasValidCheckedRows = ids.every((id) => currentRowIds.has(id));
@@ -6351,7 +6434,7 @@ var Table = (0, import_react6.forwardRef)((originalProps, ref) => {
6351
6434
  setCheckedRowIds(new Set(checkedRows == null ? void 0 : checkedRows.map((row) => row.id)));
6352
6435
  }
6353
6436
  }, [rows.map((row) => row.id).join(",")]);
6354
- (0, import_react6.useImperativeHandle)(
6437
+ (0, import_react7.useImperativeHandle)(
6355
6438
  ref,
6356
6439
  () => ({
6357
6440
  checkedRowIds,
@@ -6378,7 +6461,7 @@ var Table = (0, import_react6.forwardRef)((originalProps, ref) => {
6378
6461
  onRowClick == null ? void 0 : onRowClick(row, index, event);
6379
6462
  };
6380
6463
  const getCheckedRowData = (checked) => rows.filter((row) => checked.has(row.id));
6381
- const slots = (0, import_react6.useMemo)(
6464
+ const slots = (0, import_react7.useMemo)(
6382
6465
  () => tableStyle({ ...variantProps, rowClickable: typeof onRowClick === "function" }),
6383
6466
  [variantProps, onRowClick]
6384
6467
  );
@@ -2,22 +2,22 @@
2
2
  import {
3
3
  getCellStyle,
4
4
  table_default
5
- } from "../../chunk-YTW5HJJH.mjs";
5
+ } from "../../chunk-LZRLIXM6.mjs";
6
6
  import "../../chunk-7B7LRG5J.mjs";
7
- import "../../chunk-XZTVXEOD.mjs";
7
+ import "../../chunk-7C7RHDHV.mjs";
8
8
  import "../../chunk-F3HENRVM.mjs";
9
9
  import "../../chunk-QZ3LVYJW.mjs";
10
10
  import "../../chunk-2GCSFWHD.mjs";
11
- import "../../chunk-7H6U5XJA.mjs";
11
+ import "../../chunk-RXDRG6MC.mjs";
12
12
  import "../../chunk-DQRAFUDA.mjs";
13
13
  import "../../chunk-EWS3FESG.mjs";
14
- import "../../chunk-3DCUMRYP.mjs";
14
+ import "../../chunk-OEIEALIP.mjs";
15
15
  import "../../chunk-ZYIIXWVY.mjs";
16
16
  import "../../chunk-B4YBLIBE.mjs";
17
- import "../../chunk-R54J7VHL.mjs";
18
- import "../../chunk-27Y6K5NK.mjs";
19
17
  import "../../chunk-E3G5QXSH.mjs";
18
+ import "../../chunk-R54J7VHL.mjs";
20
19
  import "../../chunk-U4DJHAM5.mjs";
20
+ import "../../chunk-27Y6K5NK.mjs";
21
21
  import "../../chunk-AC6TWLRT.mjs";
22
22
  export {
23
23
  table_default as default,
@@ -2,9 +2,9 @@
2
2
  import "../../chunk-RRAZM5D3.mjs";
3
3
  import {
4
4
  textarea_default
5
- } from "../../chunk-3HXNAVAN.mjs";
6
- import "../../chunk-27Y6K5NK.mjs";
5
+ } from "../../chunk-3CRSSRCH.mjs";
7
6
  import "../../chunk-E3G5QXSH.mjs";
7
+ import "../../chunk-27Y6K5NK.mjs";
8
8
  import "../../chunk-AC6TWLRT.mjs";
9
9
  export {
10
10
  textarea_default as Textarea
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  textarea_default
4
- } from "../../chunk-3HXNAVAN.mjs";
5
- import "../../chunk-27Y6K5NK.mjs";
4
+ } from "../../chunk-3CRSSRCH.mjs";
6
5
  import "../../chunk-E3G5QXSH.mjs";
6
+ import "../../chunk-27Y6K5NK.mjs";
7
7
  import "../../chunk-AC6TWLRT.mjs";
8
8
  export {
9
9
  textarea_default as default
@@ -7,10 +7,10 @@ import "../../chunk-ZYIIXWVY.mjs";
7
7
  import {
8
8
  Icon_default
9
9
  } from "../../chunk-B4YBLIBE.mjs";
10
- import "../../chunk-R54J7VHL.mjs";
11
10
  import {
12
11
  mapPropsVariants
13
12
  } from "../../chunk-E3G5QXSH.mjs";
13
+ import "../../chunk-R54J7VHL.mjs";
14
14
  import {
15
15
  tv
16
16
  } from "../../chunk-U4DJHAM5.mjs";
@@ -3,17 +3,17 @@ import "../../chunk-LUWGOKLG.mjs";
3
3
  import {
4
4
  ToastProvider,
5
5
  useToast
6
- } from "../../chunk-6NO7GQHG.mjs";
6
+ } from "../../chunk-ROXKJQSJ.mjs";
7
+ import "../../chunk-ZOTHPHXA.mjs";
7
8
  import {
8
9
  toast_default
9
- } from "../../chunk-GVTYOGSV.mjs";
10
- import "../../chunk-ZOTHPHXA.mjs";
10
+ } from "../../chunk-GS5X67UB.mjs";
11
11
  import "../../chunk-ZYIIXWVY.mjs";
12
12
  import "../../chunk-B4YBLIBE.mjs";
13
- import "../../chunk-R54J7VHL.mjs";
14
- import "../../chunk-27Y6K5NK.mjs";
15
13
  import "../../chunk-E3G5QXSH.mjs";
14
+ import "../../chunk-R54J7VHL.mjs";
16
15
  import "../../chunk-U4DJHAM5.mjs";
16
+ import "../../chunk-27Y6K5NK.mjs";
17
17
  import "../../chunk-AC6TWLRT.mjs";
18
18
  export {
19
19
  toast_default as Toast,
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import {
3
3
  toast_default
4
- } from "../../chunk-GVTYOGSV.mjs";
4
+ } from "../../chunk-GS5X67UB.mjs";
5
5
  import "../../chunk-ZYIIXWVY.mjs";
6
6
  import "../../chunk-B4YBLIBE.mjs";
7
- import "../../chunk-R54J7VHL.mjs";
8
- import "../../chunk-27Y6K5NK.mjs";
9
7
  import "../../chunk-E3G5QXSH.mjs";
8
+ import "../../chunk-R54J7VHL.mjs";
10
9
  import "../../chunk-U4DJHAM5.mjs";
10
+ import "../../chunk-27Y6K5NK.mjs";
11
11
  import "../../chunk-AC6TWLRT.mjs";
12
12
  export {
13
13
  toast_default as default
@@ -2,15 +2,15 @@
2
2
  import {
3
3
  ToastProvider,
4
4
  useToast
5
- } from "../../chunk-6NO7GQHG.mjs";
6
- import "../../chunk-GVTYOGSV.mjs";
5
+ } from "../../chunk-ROXKJQSJ.mjs";
7
6
  import "../../chunk-ZOTHPHXA.mjs";
7
+ import "../../chunk-GS5X67UB.mjs";
8
8
  import "../../chunk-ZYIIXWVY.mjs";
9
9
  import "../../chunk-B4YBLIBE.mjs";
10
- import "../../chunk-R54J7VHL.mjs";
11
- import "../../chunk-27Y6K5NK.mjs";
12
10
  import "../../chunk-E3G5QXSH.mjs";
11
+ import "../../chunk-R54J7VHL.mjs";
13
12
  import "../../chunk-U4DJHAM5.mjs";
13
+ import "../../chunk-27Y6K5NK.mjs";
14
14
  import "../../chunk-AC6TWLRT.mjs";
15
15
  export {
16
16
  ToastProvider,
@@ -2,12 +2,12 @@
2
2
  import "../../chunk-MBLZYQCN.mjs";
3
3
  import {
4
4
  tree_default
5
- } from "../../chunk-NKF2TQMA.mjs";
5
+ } from "../../chunk-MWUA62VL.mjs";
6
6
  import "../../chunk-ZYIIXWVY.mjs";
7
7
  import "../../chunk-B4YBLIBE.mjs";
8
8
  import "../../chunk-R54J7VHL.mjs";
9
- import "../../chunk-27Y6K5NK.mjs";
10
9
  import "../../chunk-U4DJHAM5.mjs";
10
+ import "../../chunk-27Y6K5NK.mjs";
11
11
  import "../../chunk-AC6TWLRT.mjs";
12
12
  export {
13
13
  tree_default as Tree
@@ -2,12 +2,12 @@
2
2
  import {
3
3
  Tree,
4
4
  tree_default
5
- } from "../../chunk-NKF2TQMA.mjs";
5
+ } from "../../chunk-MWUA62VL.mjs";
6
6
  import "../../chunk-ZYIIXWVY.mjs";
7
7
  import "../../chunk-B4YBLIBE.mjs";
8
8
  import "../../chunk-R54J7VHL.mjs";
9
- import "../../chunk-27Y6K5NK.mjs";
10
9
  import "../../chunk-U4DJHAM5.mjs";
10
+ import "../../chunk-27Y6K5NK.mjs";
11
11
  import "../../chunk-AC6TWLRT.mjs";
12
12
  export {
13
13
  Tree,