@deepnoid/ui 0.1.135 → 0.1.137

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/dist/index.js CHANGED
@@ -7847,7 +7847,7 @@ var textareaStyle = (0, import_tailwind_variants13.tv)({
7847
7847
 
7848
7848
  // src/components/table/table.tsx
7849
7849
  var import_react17 = require("react");
7850
- var import_tailwind_variants18 = require("tailwind-variants");
7850
+ var import_tailwind_variants17 = require("tailwind-variants");
7851
7851
 
7852
7852
  // src/components/checkbox/checkbox.tsx
7853
7853
  var import_react14 = require("react");
@@ -8056,77 +8056,8 @@ var checkboxStyle = tv({
8056
8056
  }
8057
8057
  });
8058
8058
 
8059
- // src/components/skeleton/skeleton.tsx
8060
- var import_tailwind_variants15 = require("tailwind-variants");
8061
- var import_jsx_runtime17 = require("react/jsx-runtime");
8062
- var Skeleton = ({ color = "primary", className, speed = "normal", rounded = "md" }) => {
8063
- const speedMap = {
8064
- fast: "0.7s",
8065
- normal: "1.2s",
8066
- slow: "2s"
8067
- };
8068
- const slots = skeletonStyle();
8069
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
8070
- "div",
8071
- {
8072
- className: clsx(slots.base({ color, rounded }), className),
8073
- style: {
8074
- "--shimmer-duration": speedMap[speed]
8075
- },
8076
- children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("style", { children: `@keyframes shimmer {
8077
- 100% {
8078
- transform: translateX(100%);
8079
- }
8080
- }
8081
- .skeleton-shimmer::before {
8082
- animation: shimmer var(--shimmer-duration) infinite linear;
8083
- }
8084
- ` })
8085
- }
8086
- );
8087
- };
8088
- Skeleton.displayName = "Skeleton";
8089
- var skeleton_default = Skeleton;
8090
- var skeletonStyle = (0, import_tailwind_variants15.tv)({
8091
- slots: {
8092
- base: [
8093
- "relative",
8094
- "overflow-hidden",
8095
- "w-full",
8096
- "h-[18px]",
8097
- "skeleton-shimmer",
8098
- "before:absolute",
8099
- "before:inset-0",
8100
- "before:-translate-x-full",
8101
- "before:bg-gradient-to-r",
8102
- "before:from-transparent",
8103
- "before:via-white/40",
8104
- "before:to-transparent",
8105
- "before:content-['']"
8106
- ]
8107
- },
8108
- variants: {
8109
- color: {
8110
- primary: { base: "bg-primary-soft" },
8111
- secondary: { base: "bg-secondary-soft" },
8112
- neutral: { base: "bg-neutral-soft" }
8113
- },
8114
- rounded: {
8115
- sm: { base: "rounded-sm" },
8116
- md: { base: "rounded-md" },
8117
- lg: { base: "rounded-lg" },
8118
- xl: { base: "rounded-xl" },
8119
- full: { base: "rounded-full" }
8120
- }
8121
- },
8122
- defaultVariants: {
8123
- color: "primary",
8124
- rounded: "md"
8125
- }
8126
- });
8127
-
8128
8059
  // src/components/table/table-head.tsx
8129
- var import_jsx_runtime18 = require("react/jsx-runtime");
8060
+ var import_jsx_runtime17 = require("react/jsx-runtime");
8130
8061
  var TableHead = ({
8131
8062
  slots,
8132
8063
  columns,
@@ -8134,11 +8065,10 @@ var TableHead = ({
8134
8065
  size,
8135
8066
  rowCheckbox = false,
8136
8067
  hasCheckedRows,
8137
- isLoading = false,
8138
8068
  classNames,
8139
8069
  onCheckAll
8140
8070
  }) => {
8141
- const renderTh = (content, key, column, isCheckbox) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
8071
+ const renderTh = (content, key, column, isCheckbox) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
8142
8072
  "th",
8143
8073
  {
8144
8074
  className: clsx(slots.th({ class: classNames == null ? void 0 : classNames.th }), column == null ? void 0 : column.className),
@@ -8154,16 +8084,10 @@ var TableHead = ({
8154
8084
  },
8155
8085
  key
8156
8086
  );
8157
- const renderSkeletonRow = () => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("thead", { className: slots.thead({ class: classNames == null ? void 0 : classNames.thead }), children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("tr", { className: clsx(slots.tr({ class: classNames == null ? void 0 : classNames.tr }), "[&>th]:border-0"), children: [
8158
- columns.map(
8159
- (column, idx) => renderTh(/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(skeleton_default, { color, rounded: "lg", speed: "fast" }), `skeleton-${idx}`, column)
8160
- ),
8161
- rowCheckbox && renderTh(/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(skeleton_default, { color, rounded: "lg", speed: "fast" }), "checkbox-skeleton", void 0, true)
8162
- ] }) });
8163
- const renderContentRow = () => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("thead", { className: slots.thead({ class: classNames == null ? void 0 : classNames.thead }), children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), children: [
8087
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("thead", { className: slots.thead({ class: classNames == null ? void 0 : classNames.thead }), children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), children: [
8164
8088
  columns.map((column, idx) => renderTh(column.headerName, `${column.field}-${idx}`, column)),
8165
8089
  rowCheckbox && renderTh(
8166
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { "data-checkbox": true, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
8090
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("div", { "data-checkbox": true, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
8167
8091
  checkbox_default,
8168
8092
  {
8169
8093
  size,
@@ -8176,12 +8100,11 @@ var TableHead = ({
8176
8100
  true
8177
8101
  )
8178
8102
  ] }) });
8179
- return isLoading ? renderSkeletonRow() : renderContentRow();
8180
8103
  };
8181
8104
  var table_head_default = TableHead;
8182
8105
 
8183
8106
  // src/components/table/table-body.tsx
8184
- var import_jsx_runtime19 = require("react/jsx-runtime");
8107
+ var import_jsx_runtime18 = require("react/jsx-runtime");
8185
8108
  var TableBody = ({
8186
8109
  slots,
8187
8110
  rows,
@@ -8194,28 +8117,20 @@ var TableBody = ({
8194
8117
  onRowClick,
8195
8118
  isLoading = false,
8196
8119
  emptyContent,
8197
- skeletonRow,
8198
8120
  classNames,
8199
8121
  className
8200
8122
  }) => {
8201
- const renderTdSkeleton = (key, column) => {
8202
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("td", { className: slots.td({ class: classNames == null ? void 0 : classNames.td }), style: column ? getCellStyle(column) : {}, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(skeleton_default, { color, className: "h-full w-full", rounded: "lg", speed: "fast" }) }, key);
8203
- };
8204
- const renderCheckboxCell = (rowId, rowIndex) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
8123
+ const renderCheckboxCell = (rowId, rowIndex) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
8205
8124
  "td",
8206
8125
  {
8207
8126
  className: clsx(slots.td({ class: classNames == null ? void 0 : classNames.td }), "text-center"),
8208
8127
  style: { width: "40px", minWidth: "40px", textAlign: "center" },
8209
- children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { "data-checkbox": true, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(checkbox_default, { size, checked: checkedRows.has(rowId), onChange: (e) => onCheckRow(rowId, e.target.checked) }) })
8128
+ children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { "data-checkbox": true, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(checkbox_default, { size, checked: checkedRows.has(rowId), onChange: (e) => onCheckRow(rowId, e.target.checked) }) })
8210
8129
  },
8211
8130
  `checkbox-${rowId}-${rowIndex}`
8212
8131
  );
8213
- const renderSkeletonRow = (rowIndex) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), children: [
8214
- columns.map((column, colIdx) => renderTdSkeleton(`skeleton-${rowIndex}-${colIdx}`, column)),
8215
- rowCheckbox && renderTdSkeleton(`skeleton-checkbox-${rowIndex}`)
8216
- ] }, `skeleton-${rowIndex}`);
8217
- const renderEmptyRow = () => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("td", { colSpan: columns.length + (rowCheckbox ? 1 : 0), className: slots.empty({ class: classNames == null ? void 0 : classNames.empty }), children: emptyContent }) });
8218
- const renderDataRow = (row, rowIndex) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
8132
+ const renderEmptyRow = () => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("td", { colSpan: columns.length + (rowCheckbox ? 1 : 0), className: slots.empty({ class: classNames == null ? void 0 : classNames.empty }), children: emptyContent }) });
8133
+ const renderDataRow = (row, rowIndex) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
8219
8134
  "tr",
8220
8135
  {
8221
8136
  className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }),
@@ -8226,7 +8141,7 @@ var TableBody = ({
8226
8141
  const value = row[column.field];
8227
8142
  const formattedValue = ((_a = column.valueFormatter) == null ? void 0 : _a.call(column, { value, field: column.field })) || value;
8228
8143
  const content = column.renderCell ? column.renderCell({ id: row.id, field: column.field, value, formattedValue, row }) : formattedValue;
8229
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
8144
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
8230
8145
  "td",
8231
8146
  {
8232
8147
  className: clsx(slots.td(), classNames == null ? void 0 : classNames.td, column.className),
@@ -8241,12 +8156,18 @@ var TableBody = ({
8241
8156
  },
8242
8157
  `${row.id}-${rowIndex}`
8243
8158
  );
8244
- const renderRows = () => {
8245
- if (isLoading) return skeletonRow ? Array.from({ length: skeletonRow }, (_, idx) => renderSkeletonRow(idx)) : /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_jsx_runtime19.Fragment, {});
8246
- if (!rows.length && emptyContent) return renderEmptyRow();
8247
- return rows.map((row, index) => renderDataRow(row, index));
8248
- };
8249
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("tbody", { className: clsx(slots.tbody({ class: classNames == null ? void 0 : classNames.tbody }), className), children: renderRows() });
8159
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
8160
+ "tbody",
8161
+ {
8162
+ className: clsx(
8163
+ slots.tbody({ class: classNames == null ? void 0 : classNames.tbody }),
8164
+ className,
8165
+ "transition-all duration-200 ease-in-out",
8166
+ isLoading && slots.tbodyLoading({ class: classNames == null ? void 0 : classNames.tbodyLoading })
8167
+ ),
8168
+ children: !rows.length && emptyContent ? renderEmptyRow() : rows.map((row, index) => renderDataRow(row, index))
8169
+ }
8170
+ );
8250
8171
  };
8251
8172
  var table_body_default = TableBody;
8252
8173
 
@@ -8279,7 +8200,7 @@ var usePagination = ({ currentPage, totalPage, groupSize, handleChangePage }) =>
8279
8200
  var usePagination_default = usePagination;
8280
8201
 
8281
8202
  // src/components/pagination/pagination.tsx
8282
- var import_jsx_runtime20 = require("react/jsx-runtime");
8203
+ var import_jsx_runtime19 = require("react/jsx-runtime");
8283
8204
  var Pagination = (0, import_react16.forwardRef)((originalProps, ref) => {
8284
8205
  const [props, variantProps] = mapPropsVariants(originalProps, paginationStyle.variantKeys);
8285
8206
  const {
@@ -8289,7 +8210,7 @@ var Pagination = (0, import_react16.forwardRef)((originalProps, ref) => {
8289
8210
  totalPage,
8290
8211
  showPageNumber = true,
8291
8212
  showPageLabel,
8292
- showFirstLastButtons,
8213
+ showFirstLastButtons = true,
8293
8214
  handleChangePage,
8294
8215
  variant,
8295
8216
  size
@@ -8310,29 +8231,29 @@ var Pagination = (0, import_react16.forwardRef)((originalProps, ref) => {
8310
8231
  }
8311
8232
  }
8312
8233
  };
8313
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), ref, children: [
8314
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
8315
- showFirstLastButtons && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
8234
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), ref, children: [
8235
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
8236
+ showFirstLastButtons && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
8316
8237
  "div",
8317
8238
  {
8318
8239
  "aria-label": "firstPage",
8319
8240
  "data-is-active": currentPage > 1,
8320
8241
  className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
8321
8242
  onClick: currentPage > 1 ? handleClickMovePage(1) : void 0,
8322
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icon_default, { name: "left-double-chevron", size })
8243
+ children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Icon_default, { name: "left-double-chevron", size })
8323
8244
  }
8324
8245
  ),
8325
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
8246
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
8326
8247
  "div",
8327
8248
  {
8328
8249
  "aria-label": "prevPage",
8329
8250
  "data-is-active": currentPage > 1,
8330
8251
  className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
8331
8252
  onClick: currentPage > 1 ? handleClickMovePage(currentPage - 1) : void 0,
8332
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icon_default, { name: "left-chevron", size })
8253
+ children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Icon_default, { name: "left-chevron", size })
8333
8254
  }
8334
8255
  ),
8335
- showPageNumber && pageList.map((page, index) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
8256
+ showPageNumber && pageList.map((page, index) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
8336
8257
  "div",
8337
8258
  {
8338
8259
  className: slots.button({ class: classNames == null ? void 0 : classNames.button }),
@@ -8342,29 +8263,29 @@ var Pagination = (0, import_react16.forwardRef)((originalProps, ref) => {
8342
8263
  },
8343
8264
  index
8344
8265
  )),
8345
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
8266
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
8346
8267
  "div",
8347
8268
  {
8348
8269
  "aria-label": "nextPage",
8349
8270
  "data-is-active": currentPage < totalPage,
8350
8271
  className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
8351
8272
  onClick: currentPage < totalPage ? handleClickMovePage(currentPage + 1) : void 0,
8352
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icon_default, { name: "right-chevron", size })
8273
+ children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Icon_default, { name: "right-chevron", size })
8353
8274
  }
8354
8275
  ),
8355
- showFirstLastButtons && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
8276
+ showFirstLastButtons && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
8356
8277
  "div",
8357
8278
  {
8358
8279
  "aria-label": "lastPage",
8359
8280
  "data-is-active": currentPage < totalPage,
8360
8281
  className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
8361
8282
  onClick: currentPage < totalPage ? handleClickMovePage(totalPage) : void 0,
8362
- children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icon_default, { name: "right-double-chevron", size })
8283
+ children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Icon_default, { name: "right-double-chevron", size })
8363
8284
  }
8364
8285
  )
8365
8286
  ] }),
8366
- showPageLabel && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("span", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: [
8367
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
8287
+ showPageLabel && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("span", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: [
8288
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
8368
8289
  input_default,
8369
8290
  {
8370
8291
  variant: variant === "underline" ? "outline" : variant,
@@ -8619,14 +8540,14 @@ var paginationStyle = tv(
8619
8540
  );
8620
8541
 
8621
8542
  // src/components/scroll/scrollArea.tsx
8622
- var import_tailwind_variants17 = require("tailwind-variants");
8623
- var import_jsx_runtime21 = require("react/jsx-runtime");
8543
+ var import_tailwind_variants16 = require("tailwind-variants");
8544
+ var import_jsx_runtime20 = require("react/jsx-runtime");
8624
8545
  var ScrollArea = ({ children, className, direction, size }) => {
8625
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: clsx(scrollAreaStyle({ direction, size }), className), children });
8546
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: clsx(scrollAreaStyle({ direction, size }), className), children });
8626
8547
  };
8627
8548
  ScrollArea.displayName = "ScrollArea";
8628
8549
  var scrollArea_default = ScrollArea;
8629
- var scrollAreaStyle = (0, import_tailwind_variants17.tv)({
8550
+ var scrollAreaStyle = (0, import_tailwind_variants16.tv)({
8630
8551
  base: [
8631
8552
  "h-full",
8632
8553
  "x-full",
@@ -8655,7 +8576,7 @@ var scrollAreaStyle = (0, import_tailwind_variants17.tv)({
8655
8576
  });
8656
8577
 
8657
8578
  // src/components/table/table.tsx
8658
- var import_jsx_runtime22 = require("react/jsx-runtime");
8579
+ var import_jsx_runtime21 = require("react/jsx-runtime");
8659
8580
  var Table = (0, import_react17.forwardRef)((originalProps, ref) => {
8660
8581
  const [props, variantProps] = mapPropsVariants(originalProps, tableStyle.variantKeys);
8661
8582
  const {
@@ -8671,13 +8592,13 @@ var Table = (0, import_react17.forwardRef)((originalProps, ref) => {
8671
8592
  variant,
8672
8593
  color,
8673
8594
  size,
8674
- skeletonRow,
8595
+ checkedRows,
8675
8596
  onCheckedRowsChange,
8676
8597
  onRowClick
8677
8598
  } = { ...props, ...variantProps };
8678
8599
  const { page = 1, perPage = 15 } = pagination || {};
8679
- const showPagination = pagination && totalData > 0 && !isLoading;
8680
- const [checkedRows, setCheckedRows] = (0, import_react17.useState)(/* @__PURE__ */ new Set());
8600
+ const showPagination = pagination && totalData > 0;
8601
+ const [checkedRowIds, setCheckedRowIds] = (0, import_react17.useState)(new Set(checkedRows == null ? void 0 : checkedRows.map((row) => row.id)));
8681
8602
  const tableMinWidth = (0, import_react17.useMemo)(() => {
8682
8603
  const columnsWidth = columns.reduce((total, column) => {
8683
8604
  if (column.width) return total + column.width;
@@ -8688,30 +8609,30 @@ var Table = (0, import_react17.forwardRef)((originalProps, ref) => {
8688
8609
  return columnsWidth + checkboxWidth;
8689
8610
  }, [columns, rowCheckbox]);
8690
8611
  (0, import_react17.useEffect)(() => {
8691
- onCheckedRowsChange == null ? void 0 : onCheckedRowsChange(getCheckedRowData(checkedRows));
8692
- }, [checkedRows]);
8612
+ onCheckedRowsChange == null ? void 0 : onCheckedRowsChange(getCheckedRowData(checkedRowIds));
8613
+ }, [checkedRowIds]);
8693
8614
  (0, import_react17.useEffect)(() => {
8694
8615
  const currentRowIds = new Set(rows.map((row) => row.id));
8695
- const checkedRowIds = Array.from(checkedRows);
8696
- const hasValidCheckedRows = checkedRowIds.every((id) => currentRowIds.has(id));
8616
+ const ids = Array.from(checkedRowIds);
8617
+ const hasValidCheckedRows = ids.every((id) => currentRowIds.has(id));
8697
8618
  if (!hasValidCheckedRows) {
8698
- setCheckedRows(/* @__PURE__ */ new Set());
8619
+ setCheckedRowIds(new Set(checkedRows == null ? void 0 : checkedRows.map((row) => row.id)));
8699
8620
  }
8700
8621
  }, [rows.map((row) => row.id).join(",")]);
8701
8622
  (0, import_react17.useImperativeHandle)(
8702
8623
  ref,
8703
8624
  () => ({
8704
- checkedRows,
8705
- setCheckedRows
8625
+ checkedRowIds,
8626
+ setCheckedRowIds
8706
8627
  }),
8707
- [checkedRows]
8628
+ [checkedRowIds]
8708
8629
  );
8709
8630
  const handleAllRowCheck = (checked) => {
8710
8631
  const updated = checked ? new Set(rows.map((row) => row.id)) : /* @__PURE__ */ new Set();
8711
- setCheckedRows(updated);
8632
+ setCheckedRowIds(updated);
8712
8633
  };
8713
8634
  const handleRowCheck = (id, checked) => {
8714
- setCheckedRows((prev) => {
8635
+ setCheckedRowIds((prev) => {
8715
8636
  const updated = new Set(prev);
8716
8637
  checked ? updated.add(id) : updated.delete(id);
8717
8638
  return updated;
@@ -8729,8 +8650,8 @@ var Table = (0, import_react17.forwardRef)((originalProps, ref) => {
8729
8650
  () => tableStyle({ ...variantProps, rowClickable: typeof onRowClick === "function" }),
8730
8651
  [variantProps, onRowClick]
8731
8652
  );
8732
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { "data-table": "base", className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
8733
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(scrollArea_default, { direction: "x", size: size === "xl" ? "lg" : size, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
8653
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { "data-table": "base", className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
8654
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(scrollArea_default, { direction: "x", size: size === "xl" ? "lg" : size, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
8734
8655
  "table",
8735
8656
  {
8736
8657
  className: slots.table({ class: classNames == null ? void 0 : classNames.table }),
@@ -8740,21 +8661,20 @@ var Table = (0, import_react17.forwardRef)((originalProps, ref) => {
8740
8661
  minWidth: `${tableMinWidth}px`
8741
8662
  },
8742
8663
  children: [
8743
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
8664
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
8744
8665
  table_head_default,
8745
8666
  {
8746
8667
  columns,
8747
8668
  size,
8748
8669
  color,
8749
8670
  rowCheckbox,
8750
- hasCheckedRows: rows.length > 0 && rows.every((row) => checkedRows.has(row.id)),
8671
+ hasCheckedRows: rows.length > 0 && rows.every((row) => checkedRowIds.has(row.id)),
8751
8672
  onCheckAll: handleAllRowCheck,
8752
- isLoading,
8753
8673
  classNames,
8754
8674
  slots
8755
8675
  }
8756
8676
  ),
8757
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
8677
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
8758
8678
  table_body_default,
8759
8679
  {
8760
8680
  slots,
@@ -8763,23 +8683,18 @@ var Table = (0, import_react17.forwardRef)((originalProps, ref) => {
8763
8683
  size,
8764
8684
  color,
8765
8685
  rowCheckbox,
8766
- checkedRows,
8686
+ checkedRows: checkedRowIds,
8767
8687
  onCheckRow: handleRowCheck,
8768
8688
  onRowClick: handleRowClick,
8769
8689
  isLoading,
8770
8690
  emptyContent,
8771
- skeletonRow,
8772
- className: clsx(
8773
- "transition-all duration-150 ease-out",
8774
- isLoading ? "-translate-y-2 opacity-0" : "translate-y-0 opacity-100",
8775
- classNames
8776
- )
8691
+ classNames
8777
8692
  }
8778
8693
  )
8779
8694
  ]
8780
8695
  }
8781
8696
  ) }),
8782
- showPagination && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
8697
+ showPagination && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
8783
8698
  pagination_default,
8784
8699
  {
8785
8700
  variant: variant === "outline" ? "solid" : variant,
@@ -8795,7 +8710,7 @@ var Table = (0, import_react17.forwardRef)((originalProps, ref) => {
8795
8710
  });
8796
8711
  Table.displayName = "Table";
8797
8712
  var table_default = Table;
8798
- var tableStyle = (0, import_tailwind_variants18.tv)({
8713
+ var tableStyle = (0, import_tailwind_variants17.tv)({
8799
8714
  slots: {
8800
8715
  base: ["flex", "flex-col", "relative", "select-none", "gap-[20px]"],
8801
8716
  table: ["w-full", "h-auto"],
@@ -8833,7 +8748,8 @@ var tableStyle = (0, import_tailwind_variants18.tv)({
8833
8748
  "[&>*]:z-1",
8834
8749
  "[&>*]:relative",
8835
8750
  "align-middle"
8836
- ]
8751
+ ],
8752
+ tbodyLoading: []
8837
8753
  },
8838
8754
  variants: {
8839
8755
  variant: {
@@ -9034,7 +8950,7 @@ var getCellStyle = (column) => {
9034
8950
 
9035
8951
  // src/components/table/definition-table.tsx
9036
8952
  var import_react18 = require("react");
9037
- var import_jsx_runtime23 = require("react/jsx-runtime");
8953
+ var import_jsx_runtime22 = require("react/jsx-runtime");
9038
8954
  var DEFAULT_CELL_CLASSES = "px-[10px] py-[8px] text-md border-r border-neutral-light h-[50px]";
9039
8955
  var FIRST_CELL_WIDTH_CLASS = "w-[120px] font-bold text-md text-body-foreground";
9040
8956
  var renderColGroup = (rows) => {
@@ -9060,9 +8976,9 @@ var renderColGroup = (rows) => {
9060
8976
  });
9061
8977
  const cols = [];
9062
8978
  for (let i = 0; i < maxCols; i++) {
9063
- cols.push(/* @__PURE__ */ (0, import_jsx_runtime23.jsx)("col", { style: { width: colWidths[i] || "auto" } }, i));
8979
+ cols.push(/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("col", { style: { width: colWidths[i] || "auto" } }, i));
9064
8980
  }
9065
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("colgroup", { children: cols });
8981
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("colgroup", { children: cols });
9066
8982
  };
9067
8983
  var getHighlightColumnIndex = (rows, key) => {
9068
8984
  if (!key) return null;
@@ -9082,7 +8998,7 @@ var DefinitionTableRow = ({
9082
8998
  rowIndex = 0,
9083
8999
  rowCount = 0,
9084
9000
  highlightColumnIndex
9085
- }) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("tr", { className: clsx("border-neutral-light border-b", className), children: cells.map((cell, colIndex) => {
9001
+ }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("tr", { className: clsx("border-neutral-light border-b", className), children: cells.map((cell, colIndex) => {
9086
9002
  const isFirstCell = colIndex === 0;
9087
9003
  const isHighlighted = colIndex === highlightColumnIndex;
9088
9004
  const isFirstRow = rowIndex === 0;
@@ -9114,7 +9030,7 @@ var DefinitionTableRow = ({
9114
9030
  } else {
9115
9031
  cellStyle = { width: "100%" };
9116
9032
  }
9117
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
9033
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
9118
9034
  "td",
9119
9035
  {
9120
9036
  className: combinedClassName,
@@ -9133,10 +9049,10 @@ var DefinitionTable = (0, import_react18.forwardRef)(
9133
9049
  () => getHighlightColumnIndex(rows, highlightColumnKey),
9134
9050
  [rows, highlightColumnKey]
9135
9051
  );
9136
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { ref, className: clsx(slots.base(), classNames == null ? void 0 : classNames.base), children: [
9137
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("table", { className: clsx(slots.table(), classNames == null ? void 0 : classNames.table), children: [
9052
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { ref, className: clsx(slots.base(), classNames == null ? void 0 : classNames.base), children: [
9053
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("table", { className: clsx(slots.table(), classNames == null ? void 0 : classNames.table), children: [
9138
9054
  renderColGroup(rows),
9139
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("tbody", { children: rows.map((row, i) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
9055
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("tbody", { children: rows.map((row, i) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
9140
9056
  DefinitionTableRow,
9141
9057
  {
9142
9058
  ...row,
@@ -9148,7 +9064,7 @@ var DefinitionTable = (0, import_react18.forwardRef)(
9148
9064
  i
9149
9065
  )) })
9150
9066
  ] }),
9151
- footer && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { children: footer })
9067
+ footer && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { children: footer })
9152
9068
  ] });
9153
9069
  }
9154
9070
  );
@@ -9164,7 +9080,7 @@ var DefinitionTableStyle = tv({
9164
9080
  // src/components/select/select.tsx
9165
9081
  var import_react19 = require("react");
9166
9082
  var import_react_dom = require("react-dom");
9167
- var import_jsx_runtime24 = require("react/jsx-runtime");
9083
+ var import_jsx_runtime23 = require("react/jsx-runtime");
9168
9084
  var Select = (0, import_react19.forwardRef)((originalProps, ref) => {
9169
9085
  var _a, _b;
9170
9086
  const [props, variantProps] = mapPropsVariants(originalProps, select.variantKeys);
@@ -9260,7 +9176,7 @@ var Select = (0, import_react19.forwardRef)((originalProps, ref) => {
9260
9176
  const renderOptions = () => {
9261
9177
  if (!isVisible) return null;
9262
9178
  return (0, import_react_dom.createPortal)(
9263
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
9179
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
9264
9180
  "div",
9265
9181
  {
9266
9182
  ref: optionWrapperRef,
@@ -9278,7 +9194,7 @@ var Select = (0, import_react19.forwardRef)((originalProps, ref) => {
9278
9194
  },
9279
9195
  children: options.map((option) => {
9280
9196
  const isSelected = selectedOptions.some((o) => o.value === option.value);
9281
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
9197
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
9282
9198
  "div",
9283
9199
  {
9284
9200
  role: "option",
@@ -9288,9 +9204,9 @@ var Select = (0, import_react19.forwardRef)((originalProps, ref) => {
9288
9204
  optionIconPlacement === "end" ? "justify-between" : ""
9289
9205
  ),
9290
9206
  children: [
9291
- optionIconName && optionIconPlacement === "start" && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Icon_default, { name: optionIconName, size: originalProps.size }),
9207
+ optionIconName && optionIconPlacement === "start" && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Icon_default, { name: optionIconName, size: originalProps.size }),
9292
9208
  option.label,
9293
- optionIconName && optionIconPlacement === "end" && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Icon_default, { name: optionIconName, size: originalProps.size })
9209
+ optionIconName && optionIconPlacement === "end" && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Icon_default, { name: optionIconName, size: originalProps.size })
9294
9210
  ]
9295
9211
  },
9296
9212
  option.value
@@ -9301,8 +9217,8 @@ var Select = (0, import_react19.forwardRef)((originalProps, ref) => {
9301
9217
  document.body
9302
9218
  );
9303
9219
  };
9304
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
9305
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
9220
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
9221
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
9306
9222
  "div",
9307
9223
  {
9308
9224
  className: clsx(
@@ -9310,9 +9226,9 @@ var Select = (0, import_react19.forwardRef)((originalProps, ref) => {
9310
9226
  variantProps.direction === "horizon" ? slots.horizon({ class: classNames == null ? void 0 : classNames.horizon }) : slots.vertical({ class: classNames == null ? void 0 : classNames.vertical })
9311
9227
  ),
9312
9228
  children: [
9313
- label && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("label", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
9314
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
9315
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
9229
+ label && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("label", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
9230
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
9231
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
9316
9232
  "div",
9317
9233
  {
9318
9234
  "data-expanded": isOpen,
@@ -9323,7 +9239,7 @@ var Select = (0, import_react19.forwardRef)((originalProps, ref) => {
9323
9239
  ref: selectWrapperRef,
9324
9240
  onClick: handleToggleSelect,
9325
9241
  children: [
9326
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
9242
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
9327
9243
  "input",
9328
9244
  {
9329
9245
  ...inputProps,
@@ -9338,8 +9254,8 @@ var Select = (0, import_react19.forwardRef)((originalProps, ref) => {
9338
9254
  size: 0
9339
9255
  }
9340
9256
  ),
9341
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("input", { type: "hidden", name: inputProps.name, value: selectedValue }),
9342
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
9257
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("input", { type: "hidden", name: inputProps.name, value: selectedValue }),
9258
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
9343
9259
  Icon_default,
9344
9260
  {
9345
9261
  name: dropdownIconName,
@@ -9350,8 +9266,8 @@ var Select = (0, import_react19.forwardRef)((originalProps, ref) => {
9350
9266
  ]
9351
9267
  }
9352
9268
  ),
9353
- helperMessage && !errorMessage && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("p", { className: slots.helperMessage({ class: classNames == null ? void 0 : classNames.helperMessage }), children: helperMessage }),
9354
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("p", { className: clsx("error", slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })), children: errorMessage })
9269
+ helperMessage && !errorMessage && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: slots.helperMessage({ class: classNames == null ? void 0 : classNames.helperMessage }), children: helperMessage }),
9270
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: clsx("error", slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })), children: errorMessage })
9355
9271
  ] })
9356
9272
  ]
9357
9273
  }
@@ -9616,15 +9532,15 @@ var select = tv({
9616
9532
 
9617
9533
  // src/components/chip/chip.tsx
9618
9534
  var import_react20 = require("react");
9619
- var import_jsx_runtime25 = require("react/jsx-runtime");
9535
+ var import_jsx_runtime24 = require("react/jsx-runtime");
9620
9536
  var Chip = (0, import_react20.forwardRef)((originalProps, ref) => {
9621
9537
  var _a;
9622
9538
  const [rawProps, variantProps] = mapPropsVariants(originalProps, chipStyle.variantKeys);
9623
9539
  const props = { ...rawProps, ...variantProps };
9624
9540
  const Component = props.onClick ? "button" : "div";
9625
9541
  const slots = (0, import_react20.useMemo)(() => chipStyle({ ...variantProps }), [variantProps]);
9626
- const renderIcon = (name) => name ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Icon_default, { name, fill: true, size: props.size, className: slots.icon() }) : null;
9627
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
9542
+ const renderIcon = (name) => name ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Icon_default, { name, fill: true, size: props.size, className: slots.icon() }) : null;
9543
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
9628
9544
  Component,
9629
9545
  {
9630
9546
  ref,
@@ -9801,12 +9717,12 @@ var chipStyle = tv({
9801
9717
 
9802
9718
  // src/components/radio/radio.tsx
9803
9719
  var import_react21 = require("react");
9804
- var import_jsx_runtime26 = require("react/jsx-runtime");
9720
+ var import_jsx_runtime25 = require("react/jsx-runtime");
9805
9721
  var Radio = (0, import_react21.forwardRef)((originalProps, ref) => {
9806
9722
  const [props, variantProps] = mapPropsVariants(originalProps, radioStyle.variantKeys);
9807
9723
  const { children, classNames, labelPosition = "end", ...inputProps } = props;
9808
9724
  const slots = (0, import_react21.useMemo)(() => radioStyle({ ...variantProps }), [variantProps]);
9809
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
9725
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
9810
9726
  "label",
9811
9727
  {
9812
9728
  className: clsx(
@@ -9814,9 +9730,9 @@ var Radio = (0, import_react21.forwardRef)((originalProps, ref) => {
9814
9730
  labelPosition === "start" && slots.labelReverse({ class: classNames == null ? void 0 : classNames.labelReverse })
9815
9731
  ),
9816
9732
  children: [
9817
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("input", { ...inputProps, type: "radio", ref }) }),
9818
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: slots.outerDot({ class: classNames == null ? void 0 : classNames.outerDot }), children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: slots.innerDot({ class: classNames == null ? void 0 : classNames.innerDot }) }) }),
9819
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: slots.labelWrapper({ class: classNames == null ? void 0 : classNames.labelWrapper }), children: children && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children }) })
9733
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("input", { ...inputProps, type: "radio", ref }) }),
9734
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: slots.outerDot({ class: classNames == null ? void 0 : classNames.outerDot }), children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: slots.innerDot({ class: classNames == null ? void 0 : classNames.innerDot }) }) }),
9735
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: slots.labelWrapper({ class: classNames == null ? void 0 : classNames.labelWrapper }), children: children && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children }) })
9820
9736
  ]
9821
9737
  }
9822
9738
  );
@@ -9965,8 +9881,8 @@ var radioStyle = tv({
9965
9881
 
9966
9882
  // src/components/switch/switch.tsx
9967
9883
  var import_react22 = require("react");
9968
- var import_tailwind_variants23 = require("tailwind-variants");
9969
- var import_jsx_runtime27 = require("react/jsx-runtime");
9884
+ var import_tailwind_variants22 = require("tailwind-variants");
9885
+ var import_jsx_runtime26 = require("react/jsx-runtime");
9970
9886
  var Switch = (0, import_react22.forwardRef)((originalProps, ref) => {
9971
9887
  const [rawProps, variantProps] = mapPropsVariants(originalProps, switchStyle.variantKeys);
9972
9888
  const { size, color, disabled, disableAnimation, id, checked, onChange, classNames, ...inputProps } = {
@@ -9974,8 +9890,8 @@ var Switch = (0, import_react22.forwardRef)((originalProps, ref) => {
9974
9890
  ...variantProps
9975
9891
  };
9976
9892
  const slots = (0, import_react22.useMemo)(() => switchStyle({ ...variantProps }), [variantProps]);
9977
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("label", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
9978
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
9893
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("label", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
9894
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
9979
9895
  "input",
9980
9896
  {
9981
9897
  ...inputProps,
@@ -9988,12 +9904,12 @@ var Switch = (0, import_react22.forwardRef)((originalProps, ref) => {
9988
9904
  onChange
9989
9905
  }
9990
9906
  ),
9991
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: slots.outerWrapper({ class: classNames == null ? void 0 : classNames.outerWrapper }), children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: slots.thumb({ class: classNames == null ? void 0 : classNames.thumb }) }) }) })
9907
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: slots.outerWrapper({ class: classNames == null ? void 0 : classNames.outerWrapper }), children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: slots.thumb({ class: classNames == null ? void 0 : classNames.thumb }) }) }) })
9992
9908
  ] });
9993
9909
  });
9994
9910
  Switch.displayName = "Switch";
9995
9911
  var switch_default = Switch;
9996
- var switchStyle = (0, import_tailwind_variants23.tv)({
9912
+ var switchStyle = (0, import_tailwind_variants22.tv)({
9997
9913
  slots: {
9998
9914
  base: ["group/switch", "relative", "max-w-fit", "inline-flex", "items-center", "justify-start", "cursor-pointer"],
9999
9915
  outerWrapper: [
@@ -10255,7 +10171,7 @@ var useTooltip = ({ placement, offset, targetRect }) => {
10255
10171
  };
10256
10172
 
10257
10173
  // src/components/tooltip/tooltip.tsx
10258
- var import_jsx_runtime28 = require("react/jsx-runtime");
10174
+ var import_jsx_runtime27 = require("react/jsx-runtime");
10259
10175
  var Tooltip = (0, import_react24.forwardRef)((originalProps, ref) => {
10260
10176
  const [props, variantProps] = mapPropsVariants(originalProps, tooltipStyle.variantKeys);
10261
10177
  const { placement = "top", offset = 5, delay = 100, persistent = false, classNames, noTouchContent } = props;
@@ -10298,8 +10214,8 @@ var Tooltip = (0, import_react24.forwardRef)((originalProps, ref) => {
10298
10214
  (0, import_react24.useEffect)(() => {
10299
10215
  if (persistent) showTooltip();
10300
10216
  }, [persistent, showTooltip]);
10301
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
10302
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
10217
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
10218
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
10303
10219
  "div",
10304
10220
  {
10305
10221
  ref: (node) => {
@@ -10316,7 +10232,7 @@ var Tooltip = (0, import_react24.forwardRef)((originalProps, ref) => {
10316
10232
  }
10317
10233
  ),
10318
10234
  targetRect && (0, import_react_dom2.createPortal)(
10319
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
10235
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
10320
10236
  "div",
10321
10237
  {
10322
10238
  ref: tooltipRef,
@@ -10329,7 +10245,7 @@ var Tooltip = (0, import_react24.forwardRef)((originalProps, ref) => {
10329
10245
  },
10330
10246
  children: [
10331
10247
  props.content,
10332
- variantProps.tail && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
10248
+ variantProps.tail && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
10333
10249
  "div",
10334
10250
  {
10335
10251
  className: `absolute h-2 w-2 rotate-45 bg-inherit ${getTailClassName(placement)}`,
@@ -10382,7 +10298,7 @@ var tooltipStyle = tv({
10382
10298
  // src/components/modal/modal.tsx
10383
10299
  var import_react25 = require("react");
10384
10300
  var import_react_dom3 = require("react-dom");
10385
- var import_jsx_runtime29 = require("react/jsx-runtime");
10301
+ var import_jsx_runtime28 = require("react/jsx-runtime");
10386
10302
  var Modal = (0, import_react25.forwardRef)((props, ref) => {
10387
10303
  const [localProps, variantProps] = mapPropsVariants(props, modal.variantKeys);
10388
10304
  const {
@@ -10413,10 +10329,10 @@ var Modal = (0, import_react25.forwardRef)((props, ref) => {
10413
10329
  }, [isOpen, isKeyboardDismissDisabled, onCancel]);
10414
10330
  if (!isOpen) return null;
10415
10331
  return (0, import_react_dom3.createPortal)(
10416
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_jsx_runtime29.Fragment, { children: [
10417
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(backdrop_default, { open: true }),
10418
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: slots.modalWrapper({ class: classNames == null ? void 0 : classNames.modalWrapper }), children: [
10419
- showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
10332
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
10333
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(backdrop_default, { open: true }),
10334
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: slots.modalWrapper({ class: classNames == null ? void 0 : classNames.modalWrapper }), children: [
10335
+ showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
10420
10336
  Icon_default,
10421
10337
  {
10422
10338
  size: "xl",
@@ -10425,13 +10341,13 @@ var Modal = (0, import_react25.forwardRef)((props, ref) => {
10425
10341
  onClick: onCancel
10426
10342
  }
10427
10343
  ),
10428
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
10429
- title && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: slots.title({ class: classNames == null ? void 0 : classNames.title }), children: title }),
10430
- typeof content === "string" ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: slots.content({ class: classNames == null ? void 0 : classNames.content }), children: content }) : content,
10431
- (cancelButtonText || confirmButtonText) && /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: slots.footerWrapper({ class: classNames == null ? void 0 : classNames.footerWrapper }), children: [
10432
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: slots.footer({ class: classNames == null ? void 0 : classNames.footer }), children: [
10433
- cancelButtonText && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(button_default, { variant: "soft", color: "neutral", full: true, onClick: onCancel, children: cancelButtonText }),
10434
- confirmButtonText && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(button_default, { color: props.color, full: true, onClick: onConfirm, children: confirmButtonText })
10344
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
10345
+ title && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: slots.title({ class: classNames == null ? void 0 : classNames.title }), children: title }),
10346
+ typeof content === "string" ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: slots.content({ class: classNames == null ? void 0 : classNames.content }), children: content }) : content,
10347
+ (cancelButtonText || confirmButtonText) && /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: slots.footerWrapper({ class: classNames == null ? void 0 : classNames.footerWrapper }), children: [
10348
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: slots.footer({ class: classNames == null ? void 0 : classNames.footer }), children: [
10349
+ cancelButtonText && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(button_default, { variant: "soft", color: "neutral", full: true, onClick: onCancel, children: cancelButtonText }),
10350
+ confirmButtonText && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(button_default, { color: props.color, full: true, onClick: onConfirm, children: confirmButtonText })
10435
10351
  ] }),
10436
10352
  extraFooter
10437
10353
  ] })
@@ -10503,7 +10419,7 @@ var modal = tv({
10503
10419
  // src/components/drawer/drawer.tsx
10504
10420
  var import_react26 = require("react");
10505
10421
  var import_react_dom4 = require("react-dom");
10506
- var import_jsx_runtime30 = require("react/jsx-runtime");
10422
+ var import_jsx_runtime29 = require("react/jsx-runtime");
10507
10423
  var Drawer = (0, import_react26.forwardRef)((props, ref) => {
10508
10424
  const [localProps, variantProps] = mapPropsVariants(props, drawer.variantKeys);
10509
10425
  const { classNames, isOpen, content, isKeyboardDismissDisabled = false, onClose, backdrop = true } = localProps;
@@ -10565,7 +10481,7 @@ var Drawer = (0, import_react26.forwardRef)((props, ref) => {
10565
10481
  };
10566
10482
  if (!shouldRender) return null;
10567
10483
  return (0, import_react_dom4.createPortal)(
10568
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
10484
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
10569
10485
  "div",
10570
10486
  {
10571
10487
  ref,
@@ -10580,15 +10496,15 @@ var Drawer = (0, import_react26.forwardRef)((props, ref) => {
10580
10496
  role: "dialog",
10581
10497
  "aria-modal": "true",
10582
10498
  children: [
10583
- backdrop && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "absolute inset-0 bg-black/50 backdrop-blur-sm", onClick: onClose }),
10584
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
10499
+ backdrop && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "absolute inset-0 bg-black/50 backdrop-blur-sm", onClick: onClose }),
10500
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
10585
10501
  "div",
10586
10502
  {
10587
10503
  className: slots.drawerWrapper({
10588
10504
  class: clsx(classNames == null ? void 0 : classNames.drawerWrapper, getAnimationClasses())
10589
10505
  }),
10590
10506
  onClick: (e) => e.stopPropagation(),
10591
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: content })
10507
+ children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: content })
10592
10508
  }
10593
10509
  )
10594
10510
  ]
@@ -10662,12 +10578,12 @@ var drawer_default = Drawer;
10662
10578
 
10663
10579
  // src/components/list/list.tsx
10664
10580
  var import_react27 = require("react");
10665
- var import_jsx_runtime31 = require("react/jsx-runtime");
10581
+ var import_jsx_runtime30 = require("react/jsx-runtime");
10666
10582
  var List = (0, import_react27.forwardRef)((originalProps, ref) => {
10667
10583
  const [props, variantProps] = mapPropsVariants(originalProps, listStyle.variantKeys);
10668
10584
  const { children, classNames } = props;
10669
10585
  const slots = (0, import_react27.useMemo)(() => listStyle(variantProps), [variantProps]);
10670
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: import_react27.Children.map(children, (child) => {
10586
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: import_react27.Children.map(children, (child) => {
10671
10587
  if (!(0, import_react27.isValidElement)(child)) return child;
10672
10588
  return (0, import_react27.cloneElement)(child, {
10673
10589
  ...variantProps,
@@ -10707,7 +10623,7 @@ var listStyle = tv({
10707
10623
 
10708
10624
  // src/components/list/listItem.tsx
10709
10625
  var import_react28 = require("react");
10710
- var import_jsx_runtime32 = require("react/jsx-runtime");
10626
+ var import_jsx_runtime31 = require("react/jsx-runtime");
10711
10627
  var ListItem = (0, import_react28.forwardRef)((props, ref) => {
10712
10628
  const [rawProps, variantProps] = mapPropsVariants(props, listItemStyle.variantKeys);
10713
10629
  const {
@@ -10723,16 +10639,16 @@ var ListItem = (0, import_react28.forwardRef)((props, ref) => {
10723
10639
  const slots = (0, import_react28.useMemo)(() => listItemStyle(variantProps), [variantProps]);
10724
10640
  const iconSize = ["lg", "xl"].includes(size) ? "lg" : "md";
10725
10641
  const avatarSize = iconSize;
10726
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), "data-selected": selected, onClick, children: [
10727
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
10728
- avatar && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(avatar_default, { ...avatar, variant: "round", size: avatarSize }),
10729
- startIconName && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon_default, { name: startIconName, fill: true, size, className: slots.startIcon({ class: classNames == null ? void 0 : classNames.startIcon }) }),
10730
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: slots.titleWrapper({ class: classNames == null ? void 0 : classNames.titleWrapper }), children: [
10731
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: slots.title({ class: classNames == null ? void 0 : classNames.title }), children: title }),
10732
- subTitle && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: slots.subTitle({ class: classNames == null ? void 0 : classNames.subTitle }), children: subTitle })
10642
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), "data-selected": selected, onClick, children: [
10643
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
10644
+ avatar && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(avatar_default, { ...avatar, variant: "round", size: avatarSize }),
10645
+ startIconName && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Icon_default, { name: startIconName, fill: true, size, className: slots.startIcon({ class: classNames == null ? void 0 : classNames.startIcon }) }),
10646
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: slots.titleWrapper({ class: classNames == null ? void 0 : classNames.titleWrapper }), children: [
10647
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: slots.title({ class: classNames == null ? void 0 : classNames.title }), children: title }),
10648
+ subTitle && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: slots.subTitle({ class: classNames == null ? void 0 : classNames.subTitle }), children: subTitle })
10733
10649
  ] })
10734
10650
  ] }),
10735
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon_default, { name: "right-chevron", size: iconSize, className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }) })
10651
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Icon_default, { name: "right-chevron", size: iconSize, className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }) })
10736
10652
  ] });
10737
10653
  });
10738
10654
  ListItem.displayName = "ListItem";
@@ -10901,7 +10817,7 @@ var listItemStyle = tv({
10901
10817
 
10902
10818
  // src/components/toast/toast.tsx
10903
10819
  var import_react29 = require("react");
10904
- var import_jsx_runtime33 = require("react/jsx-runtime");
10820
+ var import_jsx_runtime32 = require("react/jsx-runtime");
10905
10821
  var Toast = (0, import_react29.forwardRef)((originalProps, ref) => {
10906
10822
  const [props, variantProps] = mapPropsVariants(originalProps, toast.variantKeys);
10907
10823
  const {
@@ -10929,7 +10845,7 @@ var Toast = (0, import_react29.forwardRef)((originalProps, ref) => {
10929
10845
  []
10930
10846
  );
10931
10847
  const animationClass = (placement == null ? void 0 : placement.includes("top")) ? "animate-slideInFromTop" : "animate-slideInFromBottom";
10932
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
10848
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
10933
10849
  "div",
10934
10850
  {
10935
10851
  ref: toastRef,
@@ -10941,12 +10857,12 @@ var Toast = (0, import_react29.forwardRef)((originalProps, ref) => {
10941
10857
  ),
10942
10858
  style: hasShadow ? { boxShadow: "0px 6px 18px rgba(0, 0, 0, 0.10)" } : {},
10943
10859
  children: [
10944
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
10945
- showIcon && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Icon_default, { name: originalProps.icon || "info-circle", fill: true, className: "mt-[2px]" }),
10946
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: slots.title({ class: classNames == null ? void 0 : classNames.title }), children: title }),
10947
- showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Icon_default, { name: "close", className: "cursor-pointer", onClick: onClose })
10860
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
10861
+ showIcon && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon_default, { name: originalProps.icon || "info-circle", fill: true, className: "mt-[2px]" }),
10862
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: slots.title({ class: classNames == null ? void 0 : classNames.title }), children: title }),
10863
+ showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon_default, { name: "close", className: "cursor-pointer", onClick: onClose })
10948
10864
  ] }),
10949
- content && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { children: content })
10865
+ content && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { children: content })
10950
10866
  ]
10951
10867
  }
10952
10868
  );
@@ -11090,7 +11006,7 @@ var getToastPosition = (placement, width, offset) => {
11090
11006
  };
11091
11007
 
11092
11008
  // src/components/toast/use-toast.tsx
11093
- var import_jsx_runtime34 = require("react/jsx-runtime");
11009
+ var import_jsx_runtime33 = require("react/jsx-runtime");
11094
11010
  var ToastContext = (0, import_react30.createContext)(null);
11095
11011
  var useToast = () => {
11096
11012
  const context = (0, import_react30.useContext)(ToastContext);
@@ -11141,20 +11057,20 @@ var ToastProvider = ({
11141
11057
  right: right !== void 0 ? `${right}px` : void 0
11142
11058
  });
11143
11059
  }, [globalOptions == null ? void 0 : globalOptions.placement, globalOptions == null ? void 0 : globalOptions.width]);
11144
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(ToastContext.Provider, { value: contextValue, children: [
11060
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(ToastContext.Provider, { value: contextValue, children: [
11145
11061
  children,
11146
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { id: "deepnoid-toast-container", className: "flex flex-col gap-[10px]", style: containerStyle, children: toasts.map((toast2) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(toast_default, { ref: toastRef, onClose: () => removeToast(toast2.id), ...toast2 }, toast2.id)) })
11062
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { id: "deepnoid-toast-container", className: "flex flex-col gap-[10px]", style: containerStyle, children: toasts.map((toast2) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(toast_default, { ref: toastRef, onClose: () => removeToast(toast2.id), ...toast2 }, toast2.id)) })
11147
11063
  ] });
11148
11064
  };
11149
11065
 
11150
11066
  // src/components/picker/day.tsx
11151
11067
  var import_react31 = require("react");
11152
- var import_jsx_runtime35 = require("react/jsx-runtime");
11068
+ var import_jsx_runtime34 = require("react/jsx-runtime");
11153
11069
  var Day = (0, import_react31.forwardRef)((originalProps, ref) => {
11154
11070
  const [props, variantProps] = mapPropsVariants(originalProps, dayStyle.variantKeys);
11155
11071
  const { classNames, children, ...divProps } = props;
11156
11072
  const slots = (0, import_react31.useMemo)(() => dayStyle({ ...variantProps }), [variantProps]);
11157
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), ...divProps, children });
11073
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), ...divProps, children });
11158
11074
  });
11159
11075
  Day.displayName = "Day";
11160
11076
  var day_default = Day;
@@ -11206,7 +11122,7 @@ var formatStringToDate = (date) => {
11206
11122
  };
11207
11123
 
11208
11124
  // src/components/picker/datePicker.tsx
11209
- var import_jsx_runtime36 = require("react/jsx-runtime");
11125
+ var import_jsx_runtime35 = require("react/jsx-runtime");
11210
11126
  var DatePicker = (0, import_react32.forwardRef)((originalProps, ref) => {
11211
11127
  const [props, variantProps] = mapPropsVariants(originalProps, datePickerStyle.variantKeys);
11212
11128
  const {
@@ -11345,9 +11261,9 @@ var DatePicker = (0, import_react32.forwardRef)((originalProps, ref) => {
11345
11261
  if (value) setCurrentDate(new Date(value));
11346
11262
  }, [value]);
11347
11263
  const slots = (0, import_react32.useMemo)(() => datePickerStyle({ ...variantProps }), [variantProps]);
11348
- const endContent = /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Icon_default, { name: "calendar", size, className: "cursor-pointer", fill: true, onClick: handleCalendarIconClick });
11349
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
11350
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { ref: inputWrapperRef, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), onClick: handleFocusInput, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
11264
+ const endContent = /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Icon_default, { name: "calendar", size, className: "cursor-pointer", fill: true, onClick: handleCalendarIconClick });
11265
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
11266
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { ref: inputWrapperRef, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), onClick: handleFocusInput, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
11351
11267
  input_default,
11352
11268
  {
11353
11269
  ...inputProps,
@@ -11379,7 +11295,7 @@ var DatePicker = (0, import_react32.forwardRef)((originalProps, ref) => {
11379
11295
  }
11380
11296
  ) }),
11381
11297
  isPanelOpen && (0, import_react_dom5.createPortal)(
11382
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
11298
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
11383
11299
  "div",
11384
11300
  {
11385
11301
  ref: calendarWrapperRef,
@@ -11387,13 +11303,13 @@ var DatePicker = (0, import_react32.forwardRef)((originalProps, ref) => {
11387
11303
  style: { position: "absolute", top: panelPos.top, left: panelPos.left, zIndex: 1e3 },
11388
11304
  onMouseDown: handleCalendarMouseDown,
11389
11305
  children: [
11390
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: slots.calendarHead({ class: classNames == null ? void 0 : classNames.calendarHead }), children: [
11391
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(icon_button_default, { name: "left", variant: "soft", color: "neutral", onClick: handlePrevMonth }),
11392
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "text-xl font-extrabold", children: monthYearFormat(currentDate.getFullYear(), currentDate.getMonth()) }),
11393
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(icon_button_default, { name: "right", variant: "soft", color: "neutral", onClick: handleNextMonth })
11306
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: slots.calendarHead({ class: classNames == null ? void 0 : classNames.calendarHead }), children: [
11307
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(icon_button_default, { name: "left", variant: "soft", color: "neutral", onClick: handlePrevMonth }),
11308
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "text-xl font-extrabold", children: monthYearFormat(currentDate.getFullYear(), currentDate.getMonth()) }),
11309
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(icon_button_default, { name: "right", variant: "soft", color: "neutral", onClick: handleNextMonth })
11394
11310
  ] }),
11395
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "grid grid-cols-7", children: daysOfWeek.map((day, index) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(day_default, { variant: "text", children: day }, `${day}-${index}`)) }),
11396
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "grid grid-cols-7 gap-[5px] text-center", children: getCalendarDates().map((week, weekIndex) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react32.Fragment, { children: week.map((dateObj, index) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
11311
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "grid grid-cols-7", children: daysOfWeek.map((day, index) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(day_default, { variant: "text", children: day }, `${day}-${index}`)) }),
11312
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "grid grid-cols-7 gap-[5px] text-center", children: getCalendarDates().map((week, weekIndex) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react32.Fragment, { children: week.map((dateObj, index) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
11397
11313
  day_default,
11398
11314
  {
11399
11315
  variant: getDayProps(dateObj),
@@ -11402,8 +11318,8 @@ var DatePicker = (0, import_react32.forwardRef)((originalProps, ref) => {
11402
11318
  },
11403
11319
  index
11404
11320
  )) }, weekIndex)) }),
11405
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex justify-between px-[10px]", children: [
11406
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
11321
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex justify-between px-[10px]", children: [
11322
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
11407
11323
  text_button_default,
11408
11324
  {
11409
11325
  variant: "underline",
@@ -11414,10 +11330,10 @@ var DatePicker = (0, import_react32.forwardRef)((originalProps, ref) => {
11414
11330
  children: resetTitle
11415
11331
  }
11416
11332
  ),
11417
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(text_button_default, { variant: "underline", size: "sm", classNames: { base: "font-bold" }, onClick: handleSetToday, children: todayTitle })
11333
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(text_button_default, { variant: "underline", size: "sm", classNames: { base: "font-bold" }, onClick: handleSetToday, children: todayTitle })
11418
11334
  ] }),
11419
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex gap-[10px]", children: [
11420
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
11335
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex gap-[10px]", children: [
11336
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
11421
11337
  button_default,
11422
11338
  {
11423
11339
  variant: "soft",
@@ -11428,7 +11344,7 @@ var DatePicker = (0, import_react32.forwardRef)((originalProps, ref) => {
11428
11344
  children: cancelTitle
11429
11345
  }
11430
11346
  ),
11431
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(button_default, { size: "sm", classNames: { base: "flex flex-1" }, onClick: handleConfirmDate, children: confirmTitle })
11347
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(button_default, { size: "sm", classNames: { base: "flex flex-1" }, onClick: handleConfirmDate, children: confirmTitle })
11432
11348
  ] })
11433
11349
  ]
11434
11350
  }
@@ -11479,7 +11395,7 @@ var datePickerStyle = tv({
11479
11395
  // src/components/picker/timePicker.tsx
11480
11396
  var import_react33 = require("react");
11481
11397
  var import_react_dom6 = require("react-dom");
11482
- var import_jsx_runtime37 = require("react/jsx-runtime");
11398
+ var import_jsx_runtime36 = require("react/jsx-runtime");
11483
11399
  var TimePicker = (0, import_react33.forwardRef)((originalProps, ref) => {
11484
11400
  const [props, variantProps] = mapPropsVariants(originalProps, timePickerStyle.variantKeys);
11485
11401
  const {
@@ -11573,12 +11489,12 @@ var TimePicker = (0, import_react33.forwardRef)((originalProps, ref) => {
11573
11489
  setSelectedRange(emptyRange);
11574
11490
  onChangeRange == null ? void 0 : onChangeRange(emptyRange);
11575
11491
  };
11576
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
11577
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
11578
- label && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("label", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
11579
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
11580
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { ref: inputWrapperRef, className: slots.inputWrapper({ class: classNames == null ? void 0 : classNames.inputWrapper }), children: [
11581
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
11492
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
11493
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
11494
+ label && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("label", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
11495
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
11496
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { ref: inputWrapperRef, className: slots.inputWrapper({ class: classNames == null ? void 0 : classNames.inputWrapper }), children: [
11497
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
11582
11498
  "input",
11583
11499
  {
11584
11500
  ...inputProps,
@@ -11593,8 +11509,8 @@ var TimePicker = (0, import_react33.forwardRef)((originalProps, ref) => {
11593
11509
  onKeyDown: handleInputKeyDown
11594
11510
  }
11595
11511
  ),
11596
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }), children: [
11597
- displayValue && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
11512
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }), children: [
11513
+ displayValue && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
11598
11514
  Icon_default,
11599
11515
  {
11600
11516
  name: "close",
@@ -11605,7 +11521,7 @@ var TimePicker = (0, import_react33.forwardRef)((originalProps, ref) => {
11605
11521
  }
11606
11522
  }
11607
11523
  ),
11608
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
11524
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
11609
11525
  Icon_default,
11610
11526
  {
11611
11527
  name: "clock",
@@ -11618,11 +11534,11 @@ var TimePicker = (0, import_react33.forwardRef)((originalProps, ref) => {
11618
11534
  )
11619
11535
  ] })
11620
11536
  ] }),
11621
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: clsx("error", slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })), children: errorMessage })
11537
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: clsx("error", slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })), children: errorMessage })
11622
11538
  ] })
11623
11539
  ] }),
11624
11540
  isPanelOpen && (0, import_react_dom6.createPortal)(
11625
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
11541
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
11626
11542
  "div",
11627
11543
  {
11628
11544
  ref: panelWrapperRef,
@@ -11634,9 +11550,9 @@ var TimePicker = (0, import_react33.forwardRef)((originalProps, ref) => {
11634
11550
  zIndex: 1e3
11635
11551
  },
11636
11552
  onMouseDown: (e) => e.preventDefault(),
11637
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "bg-body-background text-neutral-main flex items-center gap-[5px] p-[10px]", children: [
11638
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex items-center gap-[5px]", children: [
11639
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
11553
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "bg-body-background text-neutral-main flex items-center gap-[5px] p-[10px]", children: [
11554
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex items-center gap-[5px]", children: [
11555
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
11640
11556
  select_default,
11641
11557
  {
11642
11558
  options: renderHourOptions(),
@@ -11647,8 +11563,8 @@ var TimePicker = (0, import_react33.forwardRef)((originalProps, ref) => {
11647
11563
  classNames: mergedSelectClassNames
11648
11564
  }
11649
11565
  ),
11650
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { children: ":" }),
11651
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
11566
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { children: ":" }),
11567
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
11652
11568
  select_default,
11653
11569
  {
11654
11570
  options: renderMinuteOptions(),
@@ -11660,9 +11576,9 @@ var TimePicker = (0, import_react33.forwardRef)((originalProps, ref) => {
11660
11576
  }
11661
11577
  )
11662
11578
  ] }),
11663
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { children: "~" }),
11664
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex items-center gap-[5px]", children: [
11665
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
11579
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { children: "~" }),
11580
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex items-center gap-[5px]", children: [
11581
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
11666
11582
  select_default,
11667
11583
  {
11668
11584
  options: renderHourOptions(),
@@ -11673,8 +11589,8 @@ var TimePicker = (0, import_react33.forwardRef)((originalProps, ref) => {
11673
11589
  classNames: mergedSelectClassNames
11674
11590
  }
11675
11591
  ),
11676
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { children: ":" }),
11677
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
11592
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { children: ":" }),
11593
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
11678
11594
  select_default,
11679
11595
  {
11680
11596
  options: renderMinuteOptions(),
@@ -11822,7 +11738,7 @@ var timePickerStyle = tv({
11822
11738
 
11823
11739
  // src/components/tree/tree.tsx
11824
11740
  var import_react34 = require("react");
11825
- var import_jsx_runtime38 = require("react/jsx-runtime");
11741
+ var import_jsx_runtime37 = require("react/jsx-runtime");
11826
11742
  var TreeNodeItem = (0, import_react34.forwardRef)(
11827
11743
  ({ node, depth, fileIcon, selectedName, classNames, onExpand }, ref) => {
11828
11744
  const [isOpen, setIsOpen] = (0, import_react34.useState)(false);
@@ -11855,7 +11771,7 @@ var TreeNodeItem = (0, import_react34.forwardRef)(
11855
11771
  e.preventDefault();
11856
11772
  (_a = node.onRightClick) == null ? void 0 : _a.call(node, e);
11857
11773
  };
11858
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
11774
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
11859
11775
  "div",
11860
11776
  {
11861
11777
  ref,
@@ -11864,7 +11780,7 @@ var TreeNodeItem = (0, import_react34.forwardRef)(
11864
11780
  slots.gap({ class: classNames == null ? void 0 : classNames.gap })
11865
11781
  ),
11866
11782
  children: [
11867
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
11783
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
11868
11784
  "div",
11869
11785
  {
11870
11786
  className: clsx(
@@ -11875,7 +11791,7 @@ var TreeNodeItem = (0, import_react34.forwardRef)(
11875
11791
  onClick: handleClick,
11876
11792
  onContextMenu: handleRightClick,
11877
11793
  children: [
11878
- hasMore && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
11794
+ hasMore && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
11879
11795
  Icon_default,
11880
11796
  {
11881
11797
  name: "right-chevron",
@@ -11890,7 +11806,7 @@ var TreeNodeItem = (0, import_react34.forwardRef)(
11890
11806
  ]
11891
11807
  }
11892
11808
  ),
11893
- isOpen && hasMore && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: slots.gap({ class: classNames == null ? void 0 : classNames.gap }), children: children == null ? void 0 : children.map((child) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
11809
+ isOpen && hasMore && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: slots.gap({ class: classNames == null ? void 0 : classNames.gap }), children: children == null ? void 0 : children.map((child) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
11894
11810
  TreeNodeItem,
11895
11811
  {
11896
11812
  node: child,
@@ -11919,10 +11835,10 @@ var Tree = ({ headerContent, group, groupIcon, fileIcon, selectedName, className
11919
11835
  e.preventDefault();
11920
11836
  (_a = group.onRightClick) == null ? void 0 : _a.call(group, e);
11921
11837
  };
11922
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
11923
- headerContent && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { children: headerContent }),
11924
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
11925
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
11838
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
11839
+ headerContent && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { children: headerContent }),
11840
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
11841
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
11926
11842
  "div",
11927
11843
  {
11928
11844
  className: clsx(
@@ -11938,7 +11854,7 @@ var Tree = ({ headerContent, group, groupIcon, fileIcon, selectedName, className
11938
11854
  ]
11939
11855
  }
11940
11856
  ),
11941
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: slots.itemWrapper({ class: classNames == null ? void 0 : classNames.itemWrapper }), children: group.data.map((node) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
11857
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: slots.itemWrapper({ class: classNames == null ? void 0 : classNames.itemWrapper }), children: group.data.map((node) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
11942
11858
  TreeNodeItem,
11943
11859
  {
11944
11860
  node,
@@ -11978,7 +11894,7 @@ var treeStyle = tv({
11978
11894
 
11979
11895
  // src/components/fileUpload/fileUpload.tsx
11980
11896
  var import_react37 = require("react");
11981
- var import_tailwind_variants35 = require("tailwind-variants");
11897
+ var import_tailwind_variants34 = require("tailwind-variants");
11982
11898
 
11983
11899
  // src/components/progress/progress.tsx
11984
11900
  var import_react36 = require("react");
@@ -12015,7 +11931,7 @@ function useIsMounted(props = {}) {
12015
11931
  }
12016
11932
 
12017
11933
  // src/components/progress/progress.tsx
12018
- var import_jsx_runtime39 = require("react/jsx-runtime");
11934
+ var import_jsx_runtime38 = require("react/jsx-runtime");
12019
11935
  var Progress = (originalProps) => {
12020
11936
  const [props, variantProps] = mapPropsVariants(originalProps, progressStyle.variantKeys);
12021
11937
  const { children, classNames, value = 0, minValue = 0, maxValue = 100, ...progressProps } = props;
@@ -12030,7 +11946,7 @@ var Progress = (originalProps) => {
12030
11946
  [selfMounted, isIndeterminate, value, minValue, maxValue]
12031
11947
  );
12032
11948
  const slots = (0, import_react36.useMemo)(() => progressStyle({ ...variantProps }), [variantProps]);
12033
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: slots.track({ class: classNames == null ? void 0 : classNames.track }), children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
11949
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: slots.track({ class: classNames == null ? void 0 : classNames.track }), children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
12034
11950
  "div",
12035
11951
  {
12036
11952
  className: slots.indicator({ class: classNames == null ? void 0 : classNames.indicator }),
@@ -12129,7 +12045,7 @@ var clampPercentage = (value) => {
12129
12045
  };
12130
12046
 
12131
12047
  // src/components/fileUpload/fileUpload.tsx
12132
- var import_jsx_runtime40 = require("react/jsx-runtime");
12048
+ var import_jsx_runtime39 = require("react/jsx-runtime");
12133
12049
  function FileUpload({
12134
12050
  buttonText,
12135
12051
  maxSizeMB = 10,
@@ -12210,10 +12126,10 @@ function FileUpload({
12210
12126
  (0, import_react37.useEffect)(() => {
12211
12127
  setMessage(errorMessage);
12212
12128
  }, [setMessage, errorMessage]);
12213
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
12214
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: slots.container({ class: classNames == null ? void 0 : classNames.container }), children: [
12215
- /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: slots.inputWrapper(), children: [
12216
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
12129
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
12130
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: slots.container({ class: classNames == null ? void 0 : classNames.container }), children: [
12131
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: slots.inputWrapper(), children: [
12132
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
12217
12133
  input_default,
12218
12134
  {
12219
12135
  name,
@@ -12225,7 +12141,7 @@ function FileUpload({
12225
12141
  errorMessage: message
12226
12142
  }
12227
12143
  ),
12228
- file && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
12144
+ file && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
12229
12145
  icon_button_default,
12230
12146
  {
12231
12147
  name: "close",
@@ -12237,16 +12153,16 @@ function FileUpload({
12237
12153
  }
12238
12154
  )
12239
12155
  ] }),
12240
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(button_default, { type: "button", variant: "outline", onClick: handleButtonClick, disabled: !!file, children: buttonText }),
12241
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("input", { ref: fileInputRef, type: "file", hidden: true, accept: accept.join(","), onChange: handleFileChange })
12156
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(button_default, { type: "button", variant: "outline", onClick: handleButtonClick, disabled: !!file, children: buttonText }),
12157
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("input", { ref: fileInputRef, type: "file", hidden: true, accept: accept.join(","), onChange: handleFileChange })
12242
12158
  ] }),
12243
- showProgress && file && uploadProgress < 100 && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(progress_default, { value: uploadProgress }),
12244
- !message && helperMessage && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("p", { className: slots.helperMessage(), children: helperMessage })
12159
+ showProgress && file && uploadProgress < 100 && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(progress_default, { value: uploadProgress }),
12160
+ !message && helperMessage && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("p", { className: slots.helperMessage(), children: helperMessage })
12245
12161
  ] });
12246
12162
  }
12247
12163
  FileUpload.displayName = "FileUpload";
12248
12164
  var fileUpload_default = FileUpload;
12249
- var fileUploadStyle = (0, import_tailwind_variants35.tv)({
12165
+ var fileUploadStyle = (0, import_tailwind_variants34.tv)({
12250
12166
  slots: {
12251
12167
  base: ["flex", "flex-col", "gap-[5px]"],
12252
12168
  container: ["flex", "gap-[10px]"],
@@ -12257,6 +12173,75 @@ var fileUploadStyle = (0, import_tailwind_variants35.tv)({
12257
12173
  }
12258
12174
  });
12259
12175
 
12176
+ // src/components/skeleton/skeleton.tsx
12177
+ var import_tailwind_variants35 = require("tailwind-variants");
12178
+ var import_jsx_runtime40 = require("react/jsx-runtime");
12179
+ var Skeleton = ({ color = "primary", className, speed = "normal", rounded = "md" }) => {
12180
+ const speedMap = {
12181
+ fast: "0.7s",
12182
+ normal: "1.2s",
12183
+ slow: "2s"
12184
+ };
12185
+ const slots = skeletonStyle();
12186
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
12187
+ "div",
12188
+ {
12189
+ className: clsx(slots.base({ color, rounded }), className),
12190
+ style: {
12191
+ "--shimmer-duration": speedMap[speed]
12192
+ },
12193
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("style", { children: `@keyframes shimmer {
12194
+ 100% {
12195
+ transform: translateX(100%);
12196
+ }
12197
+ }
12198
+ .skeleton-shimmer::before {
12199
+ animation: shimmer var(--shimmer-duration) infinite linear;
12200
+ }
12201
+ ` })
12202
+ }
12203
+ );
12204
+ };
12205
+ Skeleton.displayName = "Skeleton";
12206
+ var skeleton_default = Skeleton;
12207
+ var skeletonStyle = (0, import_tailwind_variants35.tv)({
12208
+ slots: {
12209
+ base: [
12210
+ "relative",
12211
+ "overflow-hidden",
12212
+ "w-full",
12213
+ "h-[18px]",
12214
+ "skeleton-shimmer",
12215
+ "before:absolute",
12216
+ "before:inset-0",
12217
+ "before:-translate-x-full",
12218
+ "before:bg-gradient-to-r",
12219
+ "before:from-transparent",
12220
+ "before:via-white/40",
12221
+ "before:to-transparent",
12222
+ "before:content-['']"
12223
+ ]
12224
+ },
12225
+ variants: {
12226
+ color: {
12227
+ primary: { base: "bg-primary-soft" },
12228
+ secondary: { base: "bg-secondary-soft" },
12229
+ neutral: { base: "bg-neutral-soft" }
12230
+ },
12231
+ rounded: {
12232
+ sm: { base: "rounded-sm" },
12233
+ md: { base: "rounded-md" },
12234
+ lg: { base: "rounded-lg" },
12235
+ xl: { base: "rounded-xl" },
12236
+ full: { base: "rounded-full" }
12237
+ }
12238
+ },
12239
+ defaultVariants: {
12240
+ color: "primary",
12241
+ rounded: "md"
12242
+ }
12243
+ });
12244
+
12260
12245
  // src/components/charts/circularProgress.tsx
12261
12246
  var import_recharts = require("recharts");
12262
12247
  var import_react38 = require("react");