@deepnoid/ui 0.1.56 → 0.1.58

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 (49) hide show
  1. package/.turbo/turbo-build.log +164 -149
  2. package/dist/chunk-A6HCKIVP.mjs +85 -0
  3. package/dist/chunk-DLR42ZKG.mjs +1 -0
  4. package/dist/{chunk-ZI37UH3A.mjs → chunk-DN6AW7DN.mjs} +11 -13
  5. package/dist/{chunk-IC3O54EM.mjs → chunk-LDRIZFBK.mjs} +2 -2
  6. package/dist/chunk-LSO5QZIT.mjs +174 -0
  7. package/dist/{chunk-BWTDELPC.mjs → chunk-N4TTHIUT.mjs} +1 -1
  8. package/dist/components/breadcrumb/breadcrumb.mjs +3 -3
  9. package/dist/components/breadcrumb/index.mjs +3 -3
  10. package/dist/components/button/button.d.mts +3 -9
  11. package/dist/components/button/button.d.ts +3 -9
  12. package/dist/components/button/button.js +8 -10
  13. package/dist/components/button/button.mjs +2 -2
  14. package/dist/components/button/icon-button.mjs +2 -2
  15. package/dist/components/button/index.js +8 -10
  16. package/dist/components/button/index.mjs +3 -3
  17. package/dist/components/drawer/drawer.d.mts +89 -0
  18. package/dist/components/drawer/drawer.d.ts +89 -0
  19. package/dist/components/drawer/drawer.js +544 -0
  20. package/dist/components/drawer/drawer.mjs +11 -0
  21. package/dist/components/drawer/index.d.mts +4 -0
  22. package/dist/components/drawer/index.d.ts +4 -0
  23. package/dist/components/drawer/index.js +550 -0
  24. package/dist/components/drawer/index.mjs +12 -0
  25. package/dist/components/fileUpload/fileUpload.js +8 -10
  26. package/dist/components/fileUpload/fileUpload.mjs +4 -4
  27. package/dist/components/fileUpload/index.js +8 -10
  28. package/dist/components/fileUpload/index.mjs +4 -4
  29. package/dist/components/modal/index.js +8 -10
  30. package/dist/components/modal/index.mjs +4 -4
  31. package/dist/components/modal/modal.js +8 -10
  32. package/dist/components/modal/modal.mjs +4 -4
  33. package/dist/components/ripple/index.mjs +3 -3
  34. package/dist/components/table/definition-table2.d.mts +58 -0
  35. package/dist/components/table/definition-table2.d.ts +58 -0
  36. package/dist/components/table/definition-table2.js +438 -0
  37. package/dist/components/table/definition-table2.mjs +10 -0
  38. package/dist/components/table/index.d.mts +1 -0
  39. package/dist/components/table/index.d.ts +1 -0
  40. package/dist/components/table/index.js +76 -0
  41. package/dist/components/table/index.mjs +10 -6
  42. package/dist/components/table/table.mjs +2 -2
  43. package/dist/index.d.mts +2 -0
  44. package/dist/index.d.ts +2 -0
  45. package/dist/index.js +550 -314
  46. package/dist/index.mjs +40 -31
  47. package/package.json +1 -1
  48. package/dist/{chunk-DX3KXNP6.mjs → chunk-32GA3YW4.mjs} +0 -0
  49. package/dist/{chunk-D47SHPFE.mjs → chunk-DFBPLQMN.mjs} +3 -3
package/dist/index.js CHANGED
@@ -114,6 +114,8 @@ __export(index_exports, {
114
114
  CircularProgress: () => circularProgress_default,
115
115
  DateTimePicker: () => dateTimePicker_default,
116
116
  DefinitionTable: () => definition_table_default,
117
+ DefinitionTable2: () => definition_table2_default,
118
+ Drawer: () => drawer_default,
117
119
  FileUpload: () => fileUpload_default,
118
120
  Icon: () => Icon_default,
119
121
  IconButton: () => icon_button_default,
@@ -5016,9 +5018,7 @@ var buttonStyle = tv({
5016
5018
  variant: {
5017
5019
  solid: "",
5018
5020
  soft: "",
5019
- outline: {
5020
- base: "bg-transparent border-transparent"
5021
- },
5021
+ outline: "",
5022
5022
  ghost: ""
5023
5023
  },
5024
5024
  color: {
@@ -5189,49 +5189,49 @@ var buttonStyle = tv({
5189
5189
  variant: "outline",
5190
5190
  color: "primary",
5191
5191
  class: {
5192
- base: ["bg-transparent", "border-primary-main", "text-primary-main", "hover:bg-primary-soft"]
5192
+ base: ["bg-body-background", "border-primary-main", "text-primary-main", "hover:bg-primary-soft"]
5193
5193
  }
5194
5194
  },
5195
5195
  {
5196
5196
  variant: "outline",
5197
5197
  color: "secondary",
5198
5198
  class: {
5199
- base: ["bg-transparent", "border-secondary-main", "text-secondary-main", "hover:bg-secondary-soft"]
5199
+ base: ["bg-body-background", "border-secondary-main", "text-secondary-main", "hover:bg-secondary-soft"]
5200
5200
  }
5201
5201
  },
5202
5202
  {
5203
5203
  variant: "outline",
5204
5204
  color: "neutral",
5205
5205
  class: {
5206
- base: ["bg-transparent", "border-neutral-main", "text-neutral-main", "hover:bg-neutral-soft"]
5206
+ base: ["bg-body-background", "border-neutral-main", "text-neutral-main", "hover:bg-neutral-soft"]
5207
5207
  }
5208
5208
  },
5209
5209
  {
5210
5210
  variant: "outline",
5211
5211
  color: "info",
5212
5212
  class: {
5213
- base: ["bg-transparent", "border-info-main", "text-info-main", "hover:bg-info-soft"]
5213
+ base: ["bg-body-background", "border-info-main", "text-info-main", "hover:bg-info-soft"]
5214
5214
  }
5215
5215
  },
5216
5216
  {
5217
5217
  variant: "outline",
5218
5218
  color: "success",
5219
5219
  class: {
5220
- base: ["bg-transparent", "border-success-main", "text-success-main", "hover:bg-success-soft"]
5220
+ base: ["bg-body-background", "border-success-main", "text-success-main", "hover:bg-success-soft"]
5221
5221
  }
5222
5222
  },
5223
5223
  {
5224
5224
  variant: "outline",
5225
5225
  color: "warning",
5226
5226
  class: {
5227
- base: ["bg-transparent", "border-warning-main", "text-warning-main", "hover:bg-warning-soft"]
5227
+ base: ["bg-body-background", "border-warning-main", "text-warning-main", "hover:bg-warning-soft"]
5228
5228
  }
5229
5229
  },
5230
5230
  {
5231
5231
  variant: "outline",
5232
5232
  color: "danger",
5233
5233
  class: {
5234
- base: ["bg-transparent", "border-danger-main", "text-danger-main", "hover:bg-danger-soft"]
5234
+ base: ["bg-body-background", "border-danger-main", "text-danger-main", "hover:bg-danger-soft"]
5235
5235
  }
5236
5236
  },
5237
5237
  // ghost & color
@@ -7836,11 +7836,85 @@ var DefinitionTableStyle = tv({
7836
7836
  }
7837
7837
  });
7838
7838
 
7839
- // src/components/select/select.tsx
7839
+ // src/components/table/definition-table2.tsx
7840
7840
  var import_react17 = require("react");
7841
- var import_react_dom = require("react-dom");
7842
7841
  var import_jsx_runtime22 = require("react/jsx-runtime");
7843
- var Select = (0, import_react17.forwardRef)((originalProps, ref) => {
7842
+ var DEFAULT_CELL_CLASSES = "px-[10px] py-[9.5px] text-md border-r border-neutral-light";
7843
+ var FIRST_CELL_WIDTH_CLASS = "w-[120px] font-bold text-md text-body-foreground";
7844
+ var renderColGroup = (rows) => {
7845
+ let maxCols = 0;
7846
+ const colWidths = [];
7847
+ rows.forEach((row) => {
7848
+ let currentColCount = 0;
7849
+ row.cells.forEach((cell) => {
7850
+ currentColCount += cell.colSpan || 1;
7851
+ });
7852
+ maxCols = Math.max(maxCols, currentColCount);
7853
+ });
7854
+ colWidths[0] = "120px";
7855
+ rows.forEach((row) => {
7856
+ let colIndex = 0;
7857
+ row.cells.forEach((cell) => {
7858
+ const span = cell.colSpan || 1;
7859
+ if (colIndex > 0 && cell.width && cell.width !== "auto" && colIndex < maxCols) {
7860
+ colWidths[colIndex] = cell.width;
7861
+ }
7862
+ colIndex += span;
7863
+ });
7864
+ });
7865
+ const cols = [];
7866
+ for (let i = 0; i < maxCols; i++) {
7867
+ cols.push(/* @__PURE__ */ (0, import_jsx_runtime22.jsx)("col", { style: colWidths[i] ? { width: colWidths[i] } : { width: "auto" } }, `col-${i}`));
7868
+ }
7869
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("colgroup", { children: cols });
7870
+ };
7871
+ var DefinitionTableRow2 = ({ cells, className }) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("tr", { className: `border-neutral-light min-h-[50px] border-b ${className || ""}`, children: cells.map((cell, colIndex) => {
7872
+ const isFirstCell = colIndex === 0;
7873
+ const combinedClassName = [isFirstCell ? FIRST_CELL_WIDTH_CLASS : "", clsx(DEFAULT_CELL_CLASSES, cell.className)].filter(Boolean).join(" ");
7874
+ let cellStyle;
7875
+ if (isFirstCell) {
7876
+ cellStyle = { width: "120px", minWidth: "120px", maxWidth: "120px" };
7877
+ } else if (cell.width && cell.width !== "auto") {
7878
+ cellStyle = { width: cell.width, minWidth: cell.width, maxWidth: cell.width };
7879
+ } else {
7880
+ cellStyle = { width: "100%" };
7881
+ }
7882
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
7883
+ "td",
7884
+ {
7885
+ className: combinedClassName,
7886
+ colSpan: cell.colSpan,
7887
+ rowSpan: cell.rowSpan,
7888
+ style: cellStyle,
7889
+ children: cell.content
7890
+ },
7891
+ colIndex
7892
+ );
7893
+ }) });
7894
+ var DefinitionTable2 = (0, import_react17.forwardRef)(({ rows = [], footer, classNames }, ref) => {
7895
+ const slots = (0, import_react17.useMemo)(() => DefinitionTableStyle2(), []);
7896
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
7897
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("table", { className: slots.table({ class: classNames == null ? void 0 : classNames.table }), children: [
7898
+ renderColGroup(rows),
7899
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("tbody", { children: rows.map((row, i) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(DefinitionTableRow2, { ...row, className: `${row.className || ""} ${i === 0 ? "first-row" : ""}` }, i)) })
7900
+ ] }),
7901
+ footer && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { children: footer })
7902
+ ] });
7903
+ });
7904
+ DefinitionTable2.displayName = "DefinitionTable2";
7905
+ var definition_table2_default = DefinitionTable2;
7906
+ var DefinitionTableStyle2 = tv({
7907
+ slots: {
7908
+ base: ["flex", "flex-col", "gap-[30px]"],
7909
+ table: ["w-full", "table-auto", "border", "border-neutral-light"]
7910
+ }
7911
+ });
7912
+
7913
+ // src/components/select/select.tsx
7914
+ var import_react18 = require("react");
7915
+ var import_react_dom = require("react-dom");
7916
+ var import_jsx_runtime23 = require("react/jsx-runtime");
7917
+ var Select = (0, import_react18.forwardRef)((originalProps, ref) => {
7844
7918
  var _a, _b;
7845
7919
  const [props, variantProps] = mapPropsVariants(originalProps, select.variantKeys);
7846
7920
  const {
@@ -7854,14 +7928,14 @@ var Select = (0, import_react17.forwardRef)((originalProps, ref) => {
7854
7928
  multiple,
7855
7929
  ...inputProps
7856
7930
  } = props;
7857
- const slots = (0, import_react17.useMemo)(() => select({ ...variantProps }), [variantProps]);
7858
- const [selectedOptions, setSelectedOptions] = (0, import_react17.useState)(defaultSelectedOptions || []);
7859
- const [targetRect, setTargetRect] = (0, import_react17.useState)(null);
7860
- const [optionWrapperHeight, setOptionWrapperHeight] = (0, import_react17.useState)(0);
7861
- const [isVisible, setIsVisible] = (0, import_react17.useState)(false);
7862
- const [isOpen, setIsOpen] = (0, import_react17.useState)(false);
7863
- const selectWrapperRef = (0, import_react17.useRef)(null);
7864
- const optionWrapperRef = (0, import_react17.useRef)(null);
7931
+ const slots = (0, import_react18.useMemo)(() => select({ ...variantProps }), [variantProps]);
7932
+ const [selectedOptions, setSelectedOptions] = (0, import_react18.useState)(defaultSelectedOptions || []);
7933
+ const [targetRect, setTargetRect] = (0, import_react18.useState)(null);
7934
+ const [optionWrapperHeight, setOptionWrapperHeight] = (0, import_react18.useState)(0);
7935
+ const [isVisible, setIsVisible] = (0, import_react18.useState)(false);
7936
+ const [isOpen, setIsOpen] = (0, import_react18.useState)(false);
7937
+ const selectWrapperRef = (0, import_react18.useRef)(null);
7938
+ const optionWrapperRef = (0, import_react18.useRef)(null);
7865
7939
  const handleToggleSelect = () => {
7866
7940
  if (isOpen) {
7867
7941
  setIsOpen(false);
@@ -7899,7 +7973,7 @@ var Select = (0, import_react17.forwardRef)((originalProps, ref) => {
7899
7973
  setSelectedOptions(nextOptions);
7900
7974
  onChange == null ? void 0 : onChange(nextOptions);
7901
7975
  };
7902
- (0, import_react17.useEffect)(() => {
7976
+ (0, import_react18.useEffect)(() => {
7903
7977
  const handleClickOutside = (e) => {
7904
7978
  var _a2;
7905
7979
  if (optionWrapperRef.current && !optionWrapperRef.current.contains(e.target) && !((_a2 = selectWrapperRef.current) == null ? void 0 : _a2.contains(e.target))) {
@@ -7910,7 +7984,7 @@ var Select = (0, import_react17.forwardRef)((originalProps, ref) => {
7910
7984
  window.addEventListener("mousedown", handleClickOutside);
7911
7985
  return () => window.removeEventListener("mousedown", handleClickOutside);
7912
7986
  }, []);
7913
- (0, import_react17.useEffect)(() => {
7987
+ (0, import_react18.useEffect)(() => {
7914
7988
  if (optionWrapperRef.current) {
7915
7989
  setOptionWrapperHeight(optionWrapperRef.current.getBoundingClientRect().height);
7916
7990
  }
@@ -7924,26 +7998,26 @@ var Select = (0, import_react17.forwardRef)((originalProps, ref) => {
7924
7998
  onClick
7925
7999
  }) => {
7926
8000
  const slot = select({ ...variantProps, isSelected });
7927
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { title: option.label, onClick, className: clsx(slot.option({ class: classNames == null ? void 0 : classNames.option })), children: [
8001
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { title: option.label, onClick, className: clsx(slot.option({ class: classNames == null ? void 0 : classNames.option })), children: [
7928
8002
  option.label,
7929
- isSelected && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Icon_default, { name: "check", size: originalProps.size })
8003
+ isSelected && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Icon_default, { name: "check", size: originalProps.size })
7930
8004
  ] });
7931
8005
  };
7932
8006
  const isControlled = originalProps.value !== void 0;
7933
- (0, import_react17.useEffect)(() => {
8007
+ (0, import_react18.useEffect)(() => {
7934
8008
  if (isControlled) {
7935
8009
  const valueArray = Array.isArray(originalProps.value) ? originalProps.value : [originalProps.value];
7936
8010
  const matchedOptions = options.filter((opt) => valueArray.includes(opt.value));
7937
8011
  setSelectedOptions(matchedOptions);
7938
8012
  }
7939
8013
  }, [originalProps.value, options]);
7940
- (0, import_react17.useEffect)(() => {
8014
+ (0, import_react18.useEffect)(() => {
7941
8015
  if (!isControlled && defaultSelectedOptions) {
7942
8016
  setSelectedOptions(defaultSelectedOptions);
7943
8017
  }
7944
8018
  }, [defaultSelectedOptions]);
7945
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_jsx_runtime22.Fragment, { children: [
7946
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
8019
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_jsx_runtime23.Fragment, { children: [
8020
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
7947
8021
  "div",
7948
8022
  {
7949
8023
  className: clsx(
@@ -7951,9 +8025,9 @@ var Select = (0, import_react17.forwardRef)((originalProps, ref) => {
7951
8025
  variantProps.direction === "horizon" ? slots.horizon({ class: classNames == null ? void 0 : classNames.horizon }) : slots.vertical({ class: classNames == null ? void 0 : classNames.vertical })
7952
8026
  ),
7953
8027
  children: [
7954
- label && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("label", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
7955
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
7956
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
8028
+ label && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("label", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
8029
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
8030
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
7957
8031
  "div",
7958
8032
  {
7959
8033
  "data-expanded": isOpen,
@@ -7964,7 +8038,7 @@ var Select = (0, import_react17.forwardRef)((originalProps, ref) => {
7964
8038
  ref: selectWrapperRef,
7965
8039
  onClick: handleToggleSelect,
7966
8040
  children: [
7967
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
8041
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
7968
8042
  "input",
7969
8043
  {
7970
8044
  ...inputProps,
@@ -7979,8 +8053,8 @@ var Select = (0, import_react17.forwardRef)((originalProps, ref) => {
7979
8053
  size: 0
7980
8054
  }
7981
8055
  ),
7982
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("input", { type: "hidden", name: inputProps.name, value: selectedValue }),
7983
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
8056
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("input", { type: "hidden", name: inputProps.name, value: selectedValue }),
8057
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
7984
8058
  Icon_default,
7985
8059
  {
7986
8060
  name: "brace-up",
@@ -7991,14 +8065,14 @@ var Select = (0, import_react17.forwardRef)((originalProps, ref) => {
7991
8065
  ]
7992
8066
  }
7993
8067
  ),
7994
- helperMessage && !errorMessage && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: slots.helperMessage({ class: classNames == null ? void 0 : classNames.helperMessage }), children: helperMessage }),
7995
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("p", { className: clsx("error", slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })), children: errorMessage })
8068
+ helperMessage && !errorMessage && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: slots.helperMessage({ class: classNames == null ? void 0 : classNames.helperMessage }), children: helperMessage }),
8069
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("p", { className: clsx("error", slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })), children: errorMessage })
7996
8070
  ] })
7997
8071
  ]
7998
8072
  }
7999
8073
  ),
8000
8074
  isVisible && (0, import_react_dom.createPortal)(
8001
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
8075
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
8002
8076
  "div",
8003
8077
  {
8004
8078
  ref: optionWrapperRef,
@@ -8015,7 +8089,7 @@ var Select = (0, import_react17.forwardRef)((originalProps, ref) => {
8015
8089
  },
8016
8090
  children: options.map((option) => {
8017
8091
  const isSelected = selectedOptions.some((o) => o.value === option.value);
8018
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
8092
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
8019
8093
  Option,
8020
8094
  {
8021
8095
  option,
@@ -8187,16 +8261,16 @@ var select = tv({
8187
8261
  });
8188
8262
 
8189
8263
  // src/components/chip/chip.tsx
8190
- var import_react18 = require("react");
8191
- var import_jsx_runtime23 = require("react/jsx-runtime");
8192
- var Chip = (0, import_react18.forwardRef)((originalProps, ref) => {
8264
+ var import_react19 = require("react");
8265
+ var import_jsx_runtime24 = require("react/jsx-runtime");
8266
+ var Chip = (0, import_react19.forwardRef)((originalProps, ref) => {
8193
8267
  var _a;
8194
8268
  const [rawProps, variantProps] = mapPropsVariants(originalProps, chipStyle.variantKeys);
8195
8269
  const props = { ...rawProps, ...variantProps };
8196
8270
  const Component = props.onClick ? "button" : "div";
8197
- const slots = (0, import_react18.useMemo)(() => chipStyle({ ...variantProps }), [variantProps]);
8198
- const renderIcon = (name) => name ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Icon_default, { name, fill: true, size: props.size, className: slots.icon() }) : null;
8199
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
8271
+ const slots = (0, import_react19.useMemo)(() => chipStyle({ ...variantProps }), [variantProps]);
8272
+ const renderIcon = (name) => name ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Icon_default, { name, fill: true, size: props.size, className: slots.icon() }) : null;
8273
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
8200
8274
  Component,
8201
8275
  {
8202
8276
  ref,
@@ -8372,13 +8446,13 @@ var chipStyle = tv({
8372
8446
  });
8373
8447
 
8374
8448
  // src/components/radio/radio.tsx
8375
- var import_react19 = require("react");
8376
- var import_jsx_runtime24 = require("react/jsx-runtime");
8377
- var Radio = (0, import_react19.forwardRef)((originalProps, ref) => {
8449
+ var import_react20 = require("react");
8450
+ var import_jsx_runtime25 = require("react/jsx-runtime");
8451
+ var Radio = (0, import_react20.forwardRef)((originalProps, ref) => {
8378
8452
  const [props, variantProps] = mapPropsVariants(originalProps, radioStyle.variantKeys);
8379
8453
  const { children, classNames, labelPosition = "end", ...inputProps } = props;
8380
- const slots = (0, import_react19.useMemo)(() => radioStyle({ ...variantProps }), [variantProps]);
8381
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
8454
+ const slots = (0, import_react20.useMemo)(() => radioStyle({ ...variantProps }), [variantProps]);
8455
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
8382
8456
  "label",
8383
8457
  {
8384
8458
  className: clsx(
@@ -8386,9 +8460,9 @@ var Radio = (0, import_react19.forwardRef)((originalProps, ref) => {
8386
8460
  labelPosition === "start" && slots.labelReverse({ class: classNames == null ? void 0 : classNames.labelReverse })
8387
8461
  ),
8388
8462
  children: [
8389
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("input", { ...inputProps, type: "radio", ref }) }),
8390
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: slots.outerDot({ class: classNames == null ? void 0 : classNames.outerDot }), children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: slots.innerDot({ class: classNames == null ? void 0 : classNames.innerDot }) }) }),
8391
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: slots.labelWrapper({ class: classNames == null ? void 0 : classNames.labelWrapper }), children: children && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children }) })
8463
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("input", { ...inputProps, type: "radio", ref }) }),
8464
+ /* @__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 }) }) }),
8465
+ /* @__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 }) })
8392
8466
  ]
8393
8467
  }
8394
8468
  );
@@ -8528,18 +8602,18 @@ var radioStyle = tv({
8528
8602
  });
8529
8603
 
8530
8604
  // src/components/switch/switch.tsx
8531
- var import_react20 = require("react");
8532
- var import_tailwind_variants21 = require("tailwind-variants");
8533
- var import_jsx_runtime25 = require("react/jsx-runtime");
8534
- var Switch = (0, import_react20.forwardRef)((originalProps, ref) => {
8605
+ var import_react21 = require("react");
8606
+ var import_tailwind_variants22 = require("tailwind-variants");
8607
+ var import_jsx_runtime26 = require("react/jsx-runtime");
8608
+ var Switch = (0, import_react21.forwardRef)((originalProps, ref) => {
8535
8609
  const [rawProps, variantProps] = mapPropsVariants(originalProps, switchStyle.variantKeys);
8536
8610
  const { size, color, isDisabled, disableAnimation, id, checked, onChange, classNames, ...inputProps } = {
8537
8611
  ...rawProps,
8538
8612
  ...variantProps
8539
8613
  };
8540
- const slots = (0, import_react20.useMemo)(() => switchStyle({ ...variantProps }), [variantProps]);
8541
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("label", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
8542
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
8614
+ const slots = (0, import_react21.useMemo)(() => switchStyle({ ...variantProps }), [variantProps]);
8615
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("label", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
8616
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
8543
8617
  "input",
8544
8618
  {
8545
8619
  ...inputProps,
@@ -8552,12 +8626,12 @@ var Switch = (0, import_react20.forwardRef)((originalProps, ref) => {
8552
8626
  onChange
8553
8627
  }
8554
8628
  ),
8555
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: slots.outerWrapper({ class: classNames == null ? void 0 : classNames.outerWrapper }), children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: slots.thumb({ class: classNames == null ? void 0 : classNames.thumb }) }) }) })
8629
+ /* @__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 }) }) }) })
8556
8630
  ] });
8557
8631
  });
8558
8632
  Switch.displayName = "Switch";
8559
8633
  var switch_default = Switch;
8560
- var switchStyle = (0, import_tailwind_variants21.tv)({
8634
+ var switchStyle = (0, import_tailwind_variants22.tv)({
8561
8635
  slots: {
8562
8636
  base: ["group/switch", "relative", "max-w-fit", "inline-flex", "items-center", "justify-start", "cursor-pointer"],
8563
8637
  outerWrapper: [
@@ -8662,7 +8736,7 @@ var switchStyle = (0, import_tailwind_variants21.tv)({
8662
8736
  });
8663
8737
 
8664
8738
  // src/components/tooltip/tooltip.tsx
8665
- var import_react22 = require("react");
8739
+ var import_react23 = require("react");
8666
8740
  var import_react_dom2 = require("react-dom");
8667
8741
 
8668
8742
  // src/components/tooltip/tooltip-utils.ts
@@ -8785,11 +8859,11 @@ var getTailStyles = (placement) => {
8785
8859
  };
8786
8860
 
8787
8861
  // src/components/tooltip/useTooltip.ts
8788
- var import_react21 = require("react");
8862
+ var import_react22 = require("react");
8789
8863
  var useTooltip = ({ placement, offset, targetRect }) => {
8790
- const [tooltipPosition, setTooltipPosition] = (0, import_react21.useState)({ x: 0, y: 0 });
8791
- const tooltipRef = (0, import_react21.useRef)(null);
8792
- (0, import_react21.useEffect)(() => {
8864
+ const [tooltipPosition, setTooltipPosition] = (0, import_react22.useState)({ x: 0, y: 0 });
8865
+ const tooltipRef = (0, import_react22.useRef)(null);
8866
+ (0, import_react22.useEffect)(() => {
8793
8867
  if (targetRect && tooltipRef.current) {
8794
8868
  const { width, height } = tooltipRef.current.getBoundingClientRect();
8795
8869
  const scrollX = window.scrollX;
@@ -8819,29 +8893,29 @@ var useTooltip = ({ placement, offset, targetRect }) => {
8819
8893
  };
8820
8894
 
8821
8895
  // src/components/tooltip/tooltip.tsx
8822
- var import_jsx_runtime26 = require("react/jsx-runtime");
8823
- var Tooltip = (0, import_react22.forwardRef)((originalProps, ref) => {
8896
+ var import_jsx_runtime27 = require("react/jsx-runtime");
8897
+ var Tooltip = (0, import_react23.forwardRef)((originalProps, ref) => {
8824
8898
  const [props, variantProps] = mapPropsVariants(originalProps, tooltipStyle.variantKeys);
8825
8899
  const { placement = "top", offset = 5, delay = 100, persistent = false, classNames } = props;
8826
- const slots = (0, import_react22.useMemo)(() => tooltipStyle({ ...variantProps }), [variantProps]);
8827
- const [targetRect, setTargetRect] = (0, import_react22.useState)(null);
8900
+ const slots = (0, import_react23.useMemo)(() => tooltipStyle({ ...variantProps }), [variantProps]);
8901
+ const [targetRect, setTargetRect] = (0, import_react23.useState)(null);
8828
8902
  const { tooltipPosition, tooltipRef } = useTooltip({
8829
8903
  placement,
8830
8904
  offset,
8831
8905
  delay,
8832
8906
  targetRect
8833
8907
  });
8834
- const childrenRef = (0, import_react22.useRef)(null);
8835
- const delayTimeoutRef = (0, import_react22.useRef)(null);
8836
- const getProps = (0, import_react22.useCallback)(
8908
+ const childrenRef = (0, import_react23.useRef)(null);
8909
+ const delayTimeoutRef = (0, import_react23.useRef)(null);
8910
+ const getProps = (0, import_react23.useCallback)(
8837
8911
  (slotKey, classNameKey) => ({
8838
8912
  className: slots[slotKey]({ class: classNames == null ? void 0 : classNames[classNameKey] })
8839
8913
  }),
8840
8914
  [slots, classNames]
8841
8915
  );
8842
- const getBaseProps = (0, import_react22.useCallback)(() => getProps("base", "base"), [getProps]);
8843
- const getContentProps = (0, import_react22.useCallback)(() => getProps("content", "content"), [getProps]);
8844
- const showTooltip = (0, import_react22.useCallback)(() => {
8916
+ const getBaseProps = (0, import_react23.useCallback)(() => getProps("base", "base"), [getProps]);
8917
+ const getContentProps = (0, import_react23.useCallback)(() => getProps("content", "content"), [getProps]);
8918
+ const showTooltip = (0, import_react23.useCallback)(() => {
8845
8919
  if (childrenRef.current) {
8846
8920
  const rect = childrenRef.current.getBoundingClientRect();
8847
8921
  setTargetRect({
@@ -8854,16 +8928,16 @@ var Tooltip = (0, import_react22.forwardRef)((originalProps, ref) => {
8854
8928
  });
8855
8929
  }
8856
8930
  }, []);
8857
- const hideTooltip = (0, import_react22.useCallback)(() => {
8931
+ const hideTooltip = (0, import_react23.useCallback)(() => {
8858
8932
  if (!persistent) {
8859
8933
  delayTimeoutRef.current = window.setTimeout(() => setTargetRect(null), delay);
8860
8934
  }
8861
8935
  }, [persistent, delay]);
8862
- (0, import_react22.useEffect)(() => {
8936
+ (0, import_react23.useEffect)(() => {
8863
8937
  if (persistent) showTooltip();
8864
8938
  }, [persistent, showTooltip]);
8865
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_jsx_runtime26.Fragment, { children: [
8866
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
8939
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
8940
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
8867
8941
  "div",
8868
8942
  {
8869
8943
  ref: (node) => {
@@ -8880,7 +8954,7 @@ var Tooltip = (0, import_react22.forwardRef)((originalProps, ref) => {
8880
8954
  }
8881
8955
  ),
8882
8956
  targetRect && (0, import_react_dom2.createPortal)(
8883
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
8957
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
8884
8958
  "div",
8885
8959
  {
8886
8960
  ref: tooltipRef,
@@ -8893,7 +8967,7 @@ var Tooltip = (0, import_react22.forwardRef)((originalProps, ref) => {
8893
8967
  },
8894
8968
  children: [
8895
8969
  props.content,
8896
- variantProps.tail && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
8970
+ variantProps.tail && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
8897
8971
  "div",
8898
8972
  {
8899
8973
  className: `absolute h-2 w-2 rotate-45 bg-inherit ${getTailClassName(placement)}`,
@@ -8944,10 +9018,10 @@ var tooltipStyle = tv({
8944
9018
  });
8945
9019
 
8946
9020
  // src/components/modal/modal.tsx
8947
- var import_react23 = require("react");
9021
+ var import_react24 = require("react");
8948
9022
  var import_react_dom3 = require("react-dom");
8949
- var import_jsx_runtime27 = require("react/jsx-runtime");
8950
- var Modal = (0, import_react23.forwardRef)((props, ref) => {
9023
+ var import_jsx_runtime28 = require("react/jsx-runtime");
9024
+ var Modal = (0, import_react24.forwardRef)((props, ref) => {
8951
9025
  const [localProps, variantProps] = mapPropsVariants(props, modal.variantKeys);
8952
9026
  const {
8953
9027
  classNames,
@@ -8961,8 +9035,8 @@ var Modal = (0, import_react23.forwardRef)((props, ref) => {
8961
9035
  onConfirm,
8962
9036
  onCancel
8963
9037
  } = localProps;
8964
- const slots = (0, import_react23.useMemo)(() => modal(variantProps), [variantProps]);
8965
- (0, import_react23.useEffect)(() => {
9038
+ const slots = (0, import_react24.useMemo)(() => modal(variantProps), [variantProps]);
9039
+ (0, import_react24.useEffect)(() => {
8966
9040
  document.body.classList.toggle("overflow-hidden", !!isOpen);
8967
9041
  if (!isOpen || isKeyboardDismissDisabled) return;
8968
9042
  const handleKeyDown = (e) => {
@@ -8976,10 +9050,10 @@ var Modal = (0, import_react23.forwardRef)((props, ref) => {
8976
9050
  }, [isOpen, isKeyboardDismissDisabled, onCancel]);
8977
9051
  if (!isOpen) return null;
8978
9052
  return (0, import_react_dom3.createPortal)(
8979
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
8980
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(backdrop_default, { open: true }),
8981
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: slots.modalWrapper({ class: classNames == null ? void 0 : classNames.modalWrapper }), children: [
8982
- showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
9053
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
9054
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(backdrop_default, { open: true }),
9055
+ /* @__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: [
9056
+ showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
8983
9057
  Icon_default,
8984
9058
  {
8985
9059
  size: "xl",
@@ -8988,12 +9062,12 @@ var Modal = (0, import_react23.forwardRef)((props, ref) => {
8988
9062
  onClick: onCancel
8989
9063
  }
8990
9064
  ),
8991
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
8992
- title && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: slots.title({ class: classNames == null ? void 0 : classNames.title }), children: title }),
8993
- typeof content === "string" ? /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: slots.content({ class: classNames == null ? void 0 : classNames.content }), children: content }) : content,
8994
- (cancelButtonText || confirmButtonText) && /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: slots.footer({ class: classNames == null ? void 0 : classNames.footer }), children: [
8995
- cancelButtonText && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(button_default, { variant: "soft", color: "neutral", fullWidth: true, onClick: onCancel, children: cancelButtonText }),
8996
- confirmButtonText && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(button_default, { color: props.color, fullWidth: true, onClick: onConfirm, children: confirmButtonText })
9065
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
9066
+ title && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: slots.title({ class: classNames == null ? void 0 : classNames.title }), children: title }),
9067
+ typeof content === "string" ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: slots.content({ class: classNames == null ? void 0 : classNames.content }), children: content }) : content,
9068
+ (cancelButtonText || confirmButtonText) && /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: slots.footer({ class: classNames == null ? void 0 : classNames.footer }), children: [
9069
+ cancelButtonText && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(button_default, { variant: "soft", color: "neutral", fullWidth: true, onClick: onCancel, children: cancelButtonText }),
9070
+ confirmButtonText && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(button_default, { color: props.color, fullWidth: true, onClick: onConfirm, children: confirmButtonText })
8997
9071
  ] })
8998
9072
  ] })
8999
9073
  ] }) })
@@ -9059,16 +9133,176 @@ var modal = tv({
9059
9133
  }
9060
9134
  });
9061
9135
 
9136
+ // src/components/drawer/drawer.tsx
9137
+ var import_react25 = require("react");
9138
+ var import_react_dom4 = require("react-dom");
9139
+ var import_jsx_runtime29 = require("react/jsx-runtime");
9140
+ var Drawer = (0, import_react25.forwardRef)((props, ref) => {
9141
+ const [localProps, variantProps] = mapPropsVariants(props, drawer.variantKeys);
9142
+ const { classNames, isOpen, content, isKeyboardDismissDisabled = false, onClose, backdrop = true } = localProps;
9143
+ const position = props.position || "right";
9144
+ const [shouldRender, setShouldRender] = (0, import_react25.useState)(isOpen);
9145
+ const [isAnimating, setIsAnimating] = (0, import_react25.useState)(isOpen);
9146
+ const [isContentAnimating, setIsContentAnimating] = (0, import_react25.useState)(isOpen);
9147
+ const slots = (0, import_react25.useMemo)(() => drawer(variantProps), [variantProps]);
9148
+ (0, import_react25.useEffect)(() => {
9149
+ if (isOpen) {
9150
+ setShouldRender(true);
9151
+ requestAnimationFrame(() => {
9152
+ setIsAnimating(true);
9153
+ setTimeout(() => {
9154
+ setIsContentAnimating(true);
9155
+ }, 50);
9156
+ });
9157
+ } else {
9158
+ setIsContentAnimating(false);
9159
+ setIsAnimating(false);
9160
+ const timer = setTimeout(() => {
9161
+ setShouldRender(false);
9162
+ }, 300);
9163
+ return () => clearTimeout(timer);
9164
+ }
9165
+ }, [isOpen]);
9166
+ (0, import_react25.useEffect)(() => {
9167
+ if (shouldRender) {
9168
+ document.body.classList.add("overflow-hidden");
9169
+ } else {
9170
+ document.body.classList.remove("overflow-hidden");
9171
+ }
9172
+ if (!isOpen || isKeyboardDismissDisabled) return;
9173
+ const handleKeyDown = (e) => {
9174
+ if (e.key === "Escape") onClose == null ? void 0 : onClose();
9175
+ };
9176
+ document.addEventListener("keydown", handleKeyDown);
9177
+ return () => {
9178
+ document.removeEventListener("keydown", handleKeyDown);
9179
+ };
9180
+ }, [shouldRender, isOpen, isKeyboardDismissDisabled, onClose]);
9181
+ const getAnimationClasses = () => {
9182
+ const baseTransition = "transform transition-all duration-300 ease-in-out";
9183
+ if (!isContentAnimating) {
9184
+ switch (position) {
9185
+ case "left":
9186
+ return `${baseTransition} -translate-x-full`;
9187
+ case "right":
9188
+ return `${baseTransition} translate-x-full`;
9189
+ case "top":
9190
+ return `${baseTransition} -translate-y-full`;
9191
+ case "bottom":
9192
+ return `${baseTransition} translate-y-full`;
9193
+ default:
9194
+ return `${baseTransition} translate-x-full`;
9195
+ }
9196
+ }
9197
+ return `${baseTransition} translate-x-0 translate-y-0`;
9198
+ };
9199
+ if (!shouldRender) return null;
9200
+ return (0, import_react_dom4.createPortal)(
9201
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
9202
+ "div",
9203
+ {
9204
+ ref,
9205
+ className: slots.base({
9206
+ class: clsx(
9207
+ classNames == null ? void 0 : classNames.base,
9208
+ isAnimating ? "visible opacity-100" : "invisible opacity-0",
9209
+ "transition-all duration-300 ease-in-out"
9210
+ )
9211
+ }),
9212
+ "aria-labelledby": "drawer",
9213
+ role: "dialog",
9214
+ "aria-modal": "true",
9215
+ children: [
9216
+ backdrop && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "absolute inset-0 bg-black/50 backdrop-blur-sm", onClick: onClose }),
9217
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
9218
+ "div",
9219
+ {
9220
+ className: slots.drawerWrapper({
9221
+ class: clsx(classNames == null ? void 0 : classNames.drawerWrapper, getAnimationClasses())
9222
+ }),
9223
+ onClick: (e) => e.stopPropagation(),
9224
+ children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: content })
9225
+ }
9226
+ )
9227
+ ]
9228
+ }
9229
+ ),
9230
+ document.body
9231
+ );
9232
+ });
9233
+ Drawer.displayName = "Drawer";
9234
+ var drawer = tv({
9235
+ slots: {
9236
+ base: ["fixed", "inset-0", "z-50", "flex", "transition-all", "duration-300", "ease-in-out"],
9237
+ drawerWrapper: ["relative", "flex", "flex-col", "bg-white", "shadow-xl", "overflow-hidden", "z-10"],
9238
+ wrapper: ["flex", "flex-col", "h-full", "overflow-y-auto"]
9239
+ },
9240
+ variants: {
9241
+ position: {
9242
+ left: {
9243
+ base: "justify-start",
9244
+ drawerWrapper: "h-full border-r"
9245
+ },
9246
+ right: {
9247
+ base: "justify-end",
9248
+ drawerWrapper: "h-full border-l"
9249
+ },
9250
+ top: {
9251
+ base: "items-start",
9252
+ drawerWrapper: "w-full border-b"
9253
+ },
9254
+ bottom: {
9255
+ base: "items-end",
9256
+ drawerWrapper: "w-full border-t"
9257
+ }
9258
+ }
9259
+ },
9260
+ compoundVariants: [
9261
+ {
9262
+ position: ["top", "bottom"],
9263
+ size: "sm",
9264
+ class: {
9265
+ drawerWrapper: "max-h-[25vh] max-w-none w-full"
9266
+ }
9267
+ },
9268
+ {
9269
+ position: ["top", "bottom"],
9270
+ size: "md",
9271
+ class: {
9272
+ drawerWrapper: "max-h-[40vh] max-w-none w-full"
9273
+ }
9274
+ },
9275
+ {
9276
+ position: ["top", "bottom"],
9277
+ size: "lg",
9278
+ class: {
9279
+ drawerWrapper: "max-h-[60vh] max-w-none w-full"
9280
+ }
9281
+ },
9282
+ {
9283
+ position: ["top", "bottom"],
9284
+ size: "xl",
9285
+ class: {
9286
+ drawerWrapper: "max-h-[80vh] max-w-none w-full"
9287
+ }
9288
+ }
9289
+ ],
9290
+ defaultVariants: {
9291
+ position: "right"
9292
+ }
9293
+ });
9294
+ var drawer_default = Drawer;
9295
+
9062
9296
  // src/components/list/list.tsx
9063
- var import_react24 = require("react");
9064
- var import_jsx_runtime28 = require("react/jsx-runtime");
9065
- var List = (0, import_react24.forwardRef)((originalProps, ref) => {
9297
+ var import_react26 = require("react");
9298
+ var import_jsx_runtime30 = require("react/jsx-runtime");
9299
+ var List = (0, import_react26.forwardRef)((originalProps, ref) => {
9066
9300
  const [props, variantProps] = mapPropsVariants(originalProps, listStyle.variantKeys);
9067
9301
  const { children, classNames } = props;
9068
- const slots = (0, import_react24.useMemo)(() => listStyle(variantProps), [variantProps]);
9069
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: import_react24.Children.map(children, (child) => {
9070
- if (!(0, import_react24.isValidElement)(child)) return child;
9071
- return (0, import_react24.cloneElement)(child, {
9302
+ const slots = (0, import_react26.useMemo)(() => listStyle(variantProps), [variantProps]);
9303
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: import_react26.Children.map(children, (child) => {
9304
+ if (!(0, import_react26.isValidElement)(child)) return child;
9305
+ return (0, import_react26.cloneElement)(child, {
9072
9306
  ...variantProps,
9073
9307
  ...child.props
9074
9308
  });
@@ -9105,9 +9339,9 @@ var listStyle = tv({
9105
9339
  });
9106
9340
 
9107
9341
  // src/components/list/listItem.tsx
9108
- var import_react25 = require("react");
9109
- var import_jsx_runtime29 = require("react/jsx-runtime");
9110
- var ListItem = (0, import_react25.forwardRef)((props, ref) => {
9342
+ var import_react27 = require("react");
9343
+ var import_jsx_runtime31 = require("react/jsx-runtime");
9344
+ var ListItem = (0, import_react27.forwardRef)((props, ref) => {
9111
9345
  const [rawProps, variantProps] = mapPropsVariants(props, listItemStyle.variantKeys);
9112
9346
  const {
9113
9347
  title,
@@ -9119,19 +9353,19 @@ var ListItem = (0, import_react25.forwardRef)((props, ref) => {
9119
9353
  classNames,
9120
9354
  onClick
9121
9355
  } = { ...rawProps, ...variantProps };
9122
- const slots = (0, import_react25.useMemo)(() => listItemStyle(variantProps), [variantProps]);
9356
+ const slots = (0, import_react27.useMemo)(() => listItemStyle(variantProps), [variantProps]);
9123
9357
  const iconSize = ["lg", "xl"].includes(size) ? "lg" : "md";
9124
9358
  const avatarSize = iconSize;
9125
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), "data-selected": selected, onClick, children: [
9126
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
9127
- avatar && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(avatar_default, { ...avatar, variant: "round", size: avatarSize }),
9128
- startIconName && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Icon_default, { name: startIconName, fill: true, size, className: slots.startIcon({ class: classNames == null ? void 0 : classNames.startIcon }) }),
9129
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: slots.titleWrapper({ class: classNames == null ? void 0 : classNames.titleWrapper }), children: [
9130
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: slots.title({ class: classNames == null ? void 0 : classNames.title }), children: title }),
9131
- subTitle && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: slots.subTitle({ class: classNames == null ? void 0 : classNames.subTitle }), children: subTitle })
9359
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), "data-selected": selected, onClick, children: [
9360
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
9361
+ avatar && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(avatar_default, { ...avatar, variant: "round", size: avatarSize }),
9362
+ startIconName && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Icon_default, { name: startIconName, fill: true, size, className: slots.startIcon({ class: classNames == null ? void 0 : classNames.startIcon }) }),
9363
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: slots.titleWrapper({ class: classNames == null ? void 0 : classNames.titleWrapper }), children: [
9364
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: slots.title({ class: classNames == null ? void 0 : classNames.title }), children: title }),
9365
+ subTitle && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: slots.subTitle({ class: classNames == null ? void 0 : classNames.subTitle }), children: subTitle })
9132
9366
  ] })
9133
9367
  ] }),
9134
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Icon_default, { name: "right-chevron", size: iconSize, className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }) })
9368
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Icon_default, { name: "right-chevron", size: iconSize, className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }) })
9135
9369
  ] });
9136
9370
  });
9137
9371
  ListItem.displayName = "ListItem";
@@ -9299,9 +9533,9 @@ var listItemStyle = tv({
9299
9533
  });
9300
9534
 
9301
9535
  // src/components/toast/toast.tsx
9302
- var import_react26 = require("react");
9303
- var import_jsx_runtime30 = require("react/jsx-runtime");
9304
- var Toast = (0, import_react26.forwardRef)((originalProps, ref) => {
9536
+ var import_react28 = require("react");
9537
+ var import_jsx_runtime32 = require("react/jsx-runtime");
9538
+ var Toast = (0, import_react28.forwardRef)((originalProps, ref) => {
9305
9539
  const [props, variantProps] = mapPropsVariants(originalProps, toast.variantKeys);
9306
9540
  const {
9307
9541
  title,
@@ -9315,9 +9549,9 @@ var Toast = (0, import_react26.forwardRef)((originalProps, ref) => {
9315
9549
  disableAnimation,
9316
9550
  onClose
9317
9551
  } = { ...props, ...variantProps };
9318
- const slots = (0, import_react26.useMemo)(() => toast({ ...variantProps }), [variantProps]);
9319
- const toastRef = (0, import_react26.useRef)(null);
9320
- (0, import_react26.useImperativeHandle)(
9552
+ const slots = (0, import_react28.useMemo)(() => toast({ ...variantProps }), [variantProps]);
9553
+ const toastRef = (0, import_react28.useRef)(null);
9554
+ (0, import_react28.useImperativeHandle)(
9321
9555
  ref,
9322
9556
  () => ({
9323
9557
  getWidth: () => {
@@ -9328,7 +9562,7 @@ var Toast = (0, import_react26.forwardRef)((originalProps, ref) => {
9328
9562
  []
9329
9563
  );
9330
9564
  const animationClass = (placement == null ? void 0 : placement.includes("top")) ? "animate-slideInFromTop" : "animate-slideInFromBottom";
9331
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
9565
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
9332
9566
  "div",
9333
9567
  {
9334
9568
  ref: toastRef,
@@ -9340,12 +9574,12 @@ var Toast = (0, import_react26.forwardRef)((originalProps, ref) => {
9340
9574
  ),
9341
9575
  style: hasShadow ? { boxShadow: "0px 6px 18px rgba(0, 0, 0, 0.10)" } : {},
9342
9576
  children: [
9343
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
9344
- showIcon && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Icon_default, { name: originalProps.icon || "info-circle", fill: true, className: "mt-[2px]" }),
9345
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: slots.title({ class: classNames == null ? void 0 : classNames.title }), children: title }),
9346
- showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Icon_default, { name: "close", className: "cursor-pointer", onClick: onClose })
9577
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
9578
+ showIcon && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon_default, { name: originalProps.icon || "info-circle", fill: true, className: "mt-[2px]" }),
9579
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: slots.title({ class: classNames == null ? void 0 : classNames.title }), children: title }),
9580
+ showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon_default, { name: "close", className: "cursor-pointer", onClick: onClose })
9347
9581
  ] }),
9348
- content && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { children: content })
9582
+ content && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { children: content })
9349
9583
  ]
9350
9584
  }
9351
9585
  );
@@ -9450,7 +9684,7 @@ var toast = tv({
9450
9684
  });
9451
9685
 
9452
9686
  // src/components/toast/use-toast.tsx
9453
- var import_react27 = require("react");
9687
+ var import_react29 = require("react");
9454
9688
 
9455
9689
  // src/components/toast/toast-utils.ts
9456
9690
  var getToastPosition = (placement, width, offset) => {
@@ -9489,10 +9723,10 @@ var getToastPosition = (placement, width, offset) => {
9489
9723
  };
9490
9724
 
9491
9725
  // src/components/toast/use-toast.tsx
9492
- var import_jsx_runtime31 = require("react/jsx-runtime");
9493
- var ToastContext = (0, import_react27.createContext)(null);
9726
+ var import_jsx_runtime33 = require("react/jsx-runtime");
9727
+ var ToastContext = (0, import_react29.createContext)(null);
9494
9728
  var useToast = () => {
9495
- const context = (0, import_react27.useContext)(ToastContext);
9729
+ const context = (0, import_react29.useContext)(ToastContext);
9496
9730
  if (!context) {
9497
9731
  throw new Error("useToast must be used within a ToastProvider");
9498
9732
  }
@@ -9502,10 +9736,10 @@ var ToastProvider = ({
9502
9736
  globalOptions,
9503
9737
  children
9504
9738
  }) => {
9505
- const [toasts, setToasts] = (0, import_react27.useState)([]);
9506
- const [containerStyle, setContainerStyle] = (0, import_react27.useState)({});
9507
- const toastRef = (0, import_react27.useRef)(null);
9508
- const addToast = (0, import_react27.useCallback)(
9739
+ const [toasts, setToasts] = (0, import_react29.useState)([]);
9740
+ const [containerStyle, setContainerStyle] = (0, import_react29.useState)({});
9741
+ const toastRef = (0, import_react29.useRef)(null);
9742
+ const addToast = (0, import_react29.useCallback)(
9509
9743
  (title, options = {}) => {
9510
9744
  const id = Date.now() + Math.floor(Math.random() * 1e5);
9511
9745
  const newToast = {
@@ -9522,11 +9756,11 @@ var ToastProvider = ({
9522
9756
  },
9523
9757
  [globalOptions]
9524
9758
  );
9525
- const removeToast = (0, import_react27.useCallback)((id) => {
9759
+ const removeToast = (0, import_react29.useCallback)((id) => {
9526
9760
  setToasts((prevToasts) => prevToasts.filter((toast2) => toast2.id !== id));
9527
9761
  }, []);
9528
9762
  const contextValue = addToast;
9529
- (0, import_react27.useEffect)(() => {
9763
+ (0, import_react29.useEffect)(() => {
9530
9764
  var _a;
9531
9765
  const width = (globalOptions == null ? void 0 : globalOptions.width) ? globalOptions.width : typeof ((_a = toastRef.current) == null ? void 0 : _a.getWidth) === "function" ? toastRef.current.getWidth() : 300;
9532
9766
  const offset = 20;
@@ -9540,18 +9774,18 @@ var ToastProvider = ({
9540
9774
  right: right !== void 0 ? `${right}px` : void 0
9541
9775
  });
9542
9776
  }, [globalOptions == null ? void 0 : globalOptions.placement, globalOptions == null ? void 0 : globalOptions.width]);
9543
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(ToastContext.Provider, { value: contextValue, children: [
9777
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(ToastContext.Provider, { value: contextValue, children: [
9544
9778
  children,
9545
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { id: "deepnoid-toast-container", className: "flex flex-col gap-[10px]", style: containerStyle, children: toasts.map((toast2) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(toast_default, { ref: toastRef, onClose: () => removeToast(toast2.id), ...toast2 }, toast2.id)) })
9779
+ /* @__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)) })
9546
9780
  ] });
9547
9781
  };
9548
9782
 
9549
9783
  // src/components/dateTimePicker/dateTimePicker.tsx
9550
- var import_react31 = __toESM(require("react"));
9551
- var import_react_dom4 = require("react-dom");
9784
+ var import_react33 = __toESM(require("react"));
9785
+ var import_react_dom5 = require("react-dom");
9552
9786
 
9553
9787
  // src/components/dateTimePicker/useDateTimePicker.tsx
9554
- var import_react28 = require("react");
9788
+ var import_react30 = require("react");
9555
9789
 
9556
9790
  // src/components/dateTimePicker/util.ts
9557
9791
  var formatDateToString = (date) => {
@@ -9567,17 +9801,17 @@ var formatStringToDate = (date) => {
9567
9801
 
9568
9802
  // src/components/dateTimePicker/useDateTimePicker.tsx
9569
9803
  var useDatePicker = ({ initialDate, initialTime }) => {
9570
- const [selectedDate, setSelectedDate] = (0, import_react28.useState)(
9804
+ const [selectedDate, setSelectedDate] = (0, import_react30.useState)(
9571
9805
  initialDate ? formatDateToString(initialDate) : ""
9572
9806
  );
9573
- const [selectedTime, setSelectedTime] = (0, import_react28.useState)(initialTime ? initialTime : "");
9574
- const [targetRect, setTargetRect] = (0, import_react28.useState)(null);
9575
- const [popupWidth, setPopupWidth] = (0, import_react28.useState)(0);
9576
- const [popupHeight, setPopupHeight] = (0, import_react28.useState)(0);
9577
- const [isFocusInput, setIsFocusInput] = (0, import_react28.useState)(false);
9578
- const dateInputRef = (0, import_react28.useRef)(null);
9579
- const datePickerWrapperRef = (0, import_react28.useRef)(null);
9580
- const datePickerRef = (0, import_react28.useRef)(null);
9807
+ const [selectedTime, setSelectedTime] = (0, import_react30.useState)(initialTime ? initialTime : "");
9808
+ const [targetRect, setTargetRect] = (0, import_react30.useState)(null);
9809
+ const [popupWidth, setPopupWidth] = (0, import_react30.useState)(0);
9810
+ const [popupHeight, setPopupHeight] = (0, import_react30.useState)(0);
9811
+ const [isFocusInput, setIsFocusInput] = (0, import_react30.useState)(false);
9812
+ const dateInputRef = (0, import_react30.useRef)(null);
9813
+ const datePickerWrapperRef = (0, import_react30.useRef)(null);
9814
+ const datePickerRef = (0, import_react30.useRef)(null);
9581
9815
  const DATE_PICKER_GAP = 4;
9582
9816
  const calculatePositionWithScroll = (targetRect2) => {
9583
9817
  if (targetRect2 && popupWidth && popupHeight) {
@@ -9610,7 +9844,7 @@ var useDatePicker = ({ initialDate, initialTime }) => {
9610
9844
  const handleBlueInput = () => {
9611
9845
  setIsFocusInput(false);
9612
9846
  };
9613
- (0, import_react28.useEffect)(() => {
9847
+ (0, import_react30.useEffect)(() => {
9614
9848
  const onClickOutside = (e) => {
9615
9849
  if (datePickerRef.current && !datePickerRef.current.contains(e.target) && datePickerWrapperRef.current && !datePickerWrapperRef.current.contains(e.target)) {
9616
9850
  setTargetRect(null);
@@ -9619,7 +9853,7 @@ var useDatePicker = ({ initialDate, initialTime }) => {
9619
9853
  window.addEventListener("mousedown", onClickOutside);
9620
9854
  return () => window.removeEventListener("mousedown", onClickOutside);
9621
9855
  }, []);
9622
- (0, import_react28.useEffect)(() => {
9856
+ (0, import_react30.useEffect)(() => {
9623
9857
  if (datePickerWrapperRef.current) {
9624
9858
  setPopupHeight(datePickerWrapperRef.current.getBoundingClientRect().height);
9625
9859
  setPopupWidth(datePickerWrapperRef.current.getBoundingClientRect().width);
@@ -9644,19 +9878,19 @@ var useDatePicker = ({ initialDate, initialTime }) => {
9644
9878
  };
9645
9879
 
9646
9880
  // src/components/dateTimePicker/calendar.tsx
9647
- var import_react29 = __toESM(require("react"));
9648
- var import_jsx_runtime32 = require("react/jsx-runtime");
9649
- var Calendar = (0, import_react29.forwardRef)((originalProps, ref) => {
9881
+ var import_react31 = __toESM(require("react"));
9882
+ var import_jsx_runtime34 = require("react/jsx-runtime");
9883
+ var Calendar = (0, import_react31.forwardRef)((originalProps, ref) => {
9650
9884
  const [props, variantProps] = mapPropsVariants(originalProps, calendarStyle.variantKeys);
9651
9885
  const { selectedDate, classNames, highlightWeekend = true, onChangeDate, ...inputProps } = props;
9652
- const [currentDate, setCurrentDate] = (0, import_react29.useState)(selectedDate ? new Date(selectedDate) : /* @__PURE__ */ new Date());
9886
+ const [currentDate, setCurrentDate] = (0, import_react31.useState)(selectedDate ? new Date(selectedDate) : /* @__PURE__ */ new Date());
9653
9887
  const daysOfWeek = ["S", "M", "T", "W", "T", "F", "S"];
9654
- (0, import_react29.useEffect)(() => {
9888
+ (0, import_react31.useEffect)(() => {
9655
9889
  if (selectedDate) {
9656
9890
  setCurrentDate(new Date(selectedDate));
9657
9891
  }
9658
9892
  }, [selectedDate]);
9659
- const getCalendarDates = (0, import_react29.useCallback)(() => {
9893
+ const getCalendarDates = (0, import_react31.useCallback)(() => {
9660
9894
  const year = currentDate.getFullYear();
9661
9895
  const month = currentDate.getMonth();
9662
9896
  const firstDayOfMonth = new Date(year, month, 1).getDay();
@@ -9702,17 +9936,17 @@ var Calendar = (0, import_react29.forwardRef)((originalProps, ref) => {
9702
9936
  onChangeDate(formatted);
9703
9937
  }
9704
9938
  };
9705
- (0, import_react29.useImperativeHandle)(ref, () => ({
9939
+ (0, import_react31.useImperativeHandle)(ref, () => ({
9706
9940
  getSelectedDate: () => selectedDate
9707
9941
  }));
9708
- const slots = (0, import_react29.useMemo)(() => calendarStyle({ ...variantProps }), [variantProps]);
9709
- const getBaseProps = (0, import_react29.useCallback)(
9942
+ const slots = (0, import_react31.useMemo)(() => calendarStyle({ ...variantProps }), [variantProps]);
9943
+ const getBaseProps = (0, import_react31.useCallback)(
9710
9944
  () => ({
9711
9945
  className: `${slots.base({ class: classNames == null ? void 0 : classNames.base })}`
9712
9946
  }),
9713
9947
  [slots, classNames]
9714
9948
  );
9715
- const getDateTitleProps = (0, import_react29.useCallback)(
9949
+ const getDateTitleProps = (0, import_react31.useCallback)(
9716
9950
  (index) => {
9717
9951
  return {
9718
9952
  className: `${slots.dateTitle({
@@ -9724,7 +9958,7 @@ var Calendar = (0, import_react29.forwardRef)((originalProps, ref) => {
9724
9958
  },
9725
9959
  [slots, classNames, highlightWeekend]
9726
9960
  );
9727
- const getDateProps = (0, import_react29.useCallback)(
9961
+ const getDateProps = (0, import_react31.useCallback)(
9728
9962
  (dateObj) => {
9729
9963
  const today = /* @__PURE__ */ new Date();
9730
9964
  const isToday = today.getDate() === dateObj.date && today.getMonth() === currentDate.getMonth() && today.getFullYear() === currentDate.getFullYear();
@@ -9746,18 +9980,18 @@ var Calendar = (0, import_react29.forwardRef)((originalProps, ref) => {
9746
9980
  [slots, classNames, selectedDate, currentDate, highlightWeekend]
9747
9981
  );
9748
9982
  const calendarDates = getCalendarDates();
9749
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_jsx_runtime32.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { ...getBaseProps(), children: [
9750
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "calendar-header flex justify-between items-center mb-4", children: [
9751
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon_default, { name: "brace-left", size: "md", className: "cursor-pointer", onClick: handlePrevMonth }),
9752
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-h6 font-semibold", children: currentDate.toLocaleString("default", { year: "numeric", month: "2-digit" }) }),
9753
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon_default, { name: "brace-right", size: "md", className: "cursor-pointer", onClick: handleNextMonth })
9983
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_jsx_runtime34.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { ...getBaseProps(), children: [
9984
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "calendar-header flex justify-between items-center mb-4", children: [
9985
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Icon_default, { name: "brace-left", size: "md", className: "cursor-pointer", onClick: handlePrevMonth }),
9986
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "text-h6 font-semibold", children: currentDate.toLocaleString("default", { year: "numeric", month: "2-digit" }) }),
9987
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Icon_default, { name: "brace-right", size: "md", className: "cursor-pointer", onClick: handleNextMonth })
9754
9988
  ] }),
9755
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "grid grid-cols-7 gap-2 text-center", children: daysOfWeek.map((day, index) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { ...getDateTitleProps(index), children: day }, `${day}-${index}`)) }),
9756
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "grid grid-cols-7 gap-[5px] text-center mt-2", children: calendarDates.map((week, weekIndex) => {
9989
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "grid grid-cols-7 gap-2 text-center", children: daysOfWeek.map((day, index) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { ...getDateTitleProps(index), children: day }, `${day}-${index}`)) }),
9990
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "grid grid-cols-7 gap-[5px] text-center mt-2", children: calendarDates.map((week, weekIndex) => {
9757
9991
  const hasCurrentMonthDates = week.some((dateObj) => dateObj.currentMonth);
9758
9992
  if (!hasCurrentMonthDates) return null;
9759
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react29.default.Fragment, { children: week.map((dateObj, index) => {
9760
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { ...getDateProps(dateObj), children: dateObj.date }, index);
9993
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react31.default.Fragment, { children: week.map((dateObj, index) => {
9994
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { ...getDateProps(dateObj), children: dateObj.date }, index);
9761
9995
  }) }, weekIndex);
9762
9996
  }) })
9763
9997
  ] }) });
@@ -9828,22 +10062,22 @@ var calendarStyle = tv({
9828
10062
  });
9829
10063
 
9830
10064
  // src/components/dateTimePicker/timePicker.tsx
9831
- var import_react30 = require("react");
9832
- var import_jsx_runtime33 = require("react/jsx-runtime");
10065
+ var import_react32 = require("react");
10066
+ var import_jsx_runtime35 = require("react/jsx-runtime");
9833
10067
  var TimePicker = ({ color = "primary", selectedTime, isFocusInput, onChangeTime }) => {
9834
10068
  const TOTAL_HOURS = 12;
9835
10069
  const TOTAL_MINUTES = 60;
9836
10070
  const ITEM_HEIGHT = 30;
9837
10071
  const PERIODS = ["AM", "PM"];
9838
- const [selectedHour, setSelectedHour] = (0, import_react30.useState)("01");
9839
- const [selectedMinute, setSelectedMinute] = (0, import_react30.useState)("00");
9840
- const [selectedPeriod, setSelectedPeriod] = (0, import_react30.useState)("AM");
9841
- const hourRef = (0, import_react30.useRef)(null);
9842
- const minuteRef = (0, import_react30.useRef)(null);
9843
- const periodRef = (0, import_react30.useRef)(null);
10072
+ const [selectedHour, setSelectedHour] = (0, import_react32.useState)("01");
10073
+ const [selectedMinute, setSelectedMinute] = (0, import_react32.useState)("00");
10074
+ const [selectedPeriod, setSelectedPeriod] = (0, import_react32.useState)("AM");
10075
+ const hourRef = (0, import_react32.useRef)(null);
10076
+ const minuteRef = (0, import_react32.useRef)(null);
10077
+ const periodRef = (0, import_react32.useRef)(null);
9844
10078
  const hoursArray = [...Array(TOTAL_HOURS).keys()].map((i) => (i + 1).toString().padStart(2, "0"));
9845
10079
  const minutesArray = [...Array(TOTAL_MINUTES).keys()].map((i) => i.toString().padStart(2, "0"));
9846
- (0, import_react30.useEffect)(() => {
10080
+ (0, import_react32.useEffect)(() => {
9847
10081
  if (selectedTime) {
9848
10082
  const { formattedHour, minute, period } = parseAndFormatTime(selectedTime);
9849
10083
  setSelectedHour(formattedHour);
@@ -9854,7 +10088,7 @@ var TimePicker = ({ color = "primary", selectedTime, isFocusInput, onChangeTime
9854
10088
  scrollToSelectedTime();
9855
10089
  }
9856
10090
  }, [selectedTime, isFocusInput]);
9857
- (0, import_react30.useEffect)(() => {
10091
+ (0, import_react32.useEffect)(() => {
9858
10092
  scrollToSelectedTime();
9859
10093
  }, []);
9860
10094
  const parseAndFormatTime = (time) => {
@@ -9891,8 +10125,8 @@ var TimePicker = ({ color = "primary", selectedTime, isFocusInput, onChangeTime
9891
10125
  onChangeTime(formattedTime);
9892
10126
  }
9893
10127
  };
9894
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex h-[200px] p-[10px] gap-[5px] border border-neutral-main rounded-md bg-background shadow-lg", children: [
9895
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(list_default, { ref: periodRef, classNames: { base: "overflow-y-auto scrollbar-hide" }, children: PERIODS.map((period, index) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
10128
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex h-[200px] p-[10px] gap-[5px] border border-neutral-main rounded-md bg-background shadow-lg", children: [
10129
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(list_default, { ref: periodRef, classNames: { base: "overflow-y-auto scrollbar-hide" }, children: PERIODS.map((period, index) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
9896
10130
  listItem_default,
9897
10131
  {
9898
10132
  color,
@@ -9906,7 +10140,7 @@ var TimePicker = ({ color = "primary", selectedTime, isFocusInput, onChangeTime
9906
10140
  },
9907
10141
  `${period}-${index}`
9908
10142
  )) }),
9909
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(list_default, { ref: hourRef, classNames: { base: "overflow-y-auto scrollbar-hide" }, children: hoursArray.map((hour, index) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
10143
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(list_default, { ref: hourRef, classNames: { base: "overflow-y-auto scrollbar-hide" }, children: hoursArray.map((hour, index) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
9910
10144
  listItem_default,
9911
10145
  {
9912
10146
  color,
@@ -9920,7 +10154,7 @@ var TimePicker = ({ color = "primary", selectedTime, isFocusInput, onChangeTime
9920
10154
  },
9921
10155
  `${hour}-${index}`
9922
10156
  )) }),
9923
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(list_default, { ref: minuteRef, classNames: { base: "overflow-y-auto scrollbar-hide" }, children: minutesArray.map((minute, index) => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
10157
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(list_default, { ref: minuteRef, classNames: { base: "overflow-y-auto scrollbar-hide" }, children: minutesArray.map((minute, index) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
9924
10158
  listItem_default,
9925
10159
  {
9926
10160
  color,
@@ -9939,8 +10173,8 @@ var TimePicker = ({ color = "primary", selectedTime, isFocusInput, onChangeTime
9939
10173
  var timePicker_default = TimePicker;
9940
10174
 
9941
10175
  // src/components/dateTimePicker/dateTimePicker.tsx
9942
- var import_jsx_runtime34 = require("react/jsx-runtime");
9943
- var DatePicker = (0, import_react31.forwardRef)((originalProps, ref) => {
10176
+ var import_jsx_runtime36 = require("react/jsx-runtime");
10177
+ var DatePicker = (0, import_react33.forwardRef)((originalProps, ref) => {
9944
10178
  const [props, variantProps] = mapPropsVariants(originalProps, dateTimePickerStyle.variantKeys);
9945
10179
  const {
9946
10180
  classNames,
@@ -9954,7 +10188,7 @@ var DatePicker = (0, import_react31.forwardRef)((originalProps, ref) => {
9954
10188
  onChangeTime,
9955
10189
  ...inputProps
9956
10190
  } = props;
9957
- const slots = (0, import_react31.useMemo)(() => dateTimePickerStyle({ ...variantProps }), [variantProps]);
10191
+ const slots = (0, import_react33.useMemo)(() => dateTimePickerStyle({ ...variantProps }), [variantProps]);
9958
10192
  const {
9959
10193
  selectedDate,
9960
10194
  selectedTime,
@@ -9975,32 +10209,32 @@ var DatePicker = (0, import_react31.forwardRef)((originalProps, ref) => {
9975
10209
  initialTime: typeof value === "string" ? value : void 0
9976
10210
  });
9977
10211
  const position = targetRect ? calculatePositionWithScroll(targetRect) : null;
9978
- const getBaseProps = (0, import_react31.useCallback)(
10212
+ const getBaseProps = (0, import_react33.useCallback)(
9979
10213
  () => ({
9980
10214
  className: slots.base({ class: classNames == null ? void 0 : classNames.base })
9981
10215
  }),
9982
10216
  [slots, classNames]
9983
10217
  );
9984
- const getLabelProps = (0, import_react31.useCallback)(
10218
+ const getLabelProps = (0, import_react33.useCallback)(
9985
10219
  () => ({
9986
10220
  className: slots.label({ class: classNames == null ? void 0 : classNames.label })
9987
10221
  }),
9988
10222
  [slots, classNames]
9989
10223
  );
9990
- const getInnerWrapperProps = (0, import_react31.useCallback)(
10224
+ const getInnerWrapperProps = (0, import_react33.useCallback)(
9991
10225
  () => ({
9992
10226
  className: slots.innerWrapper({ class: classNames == null ? void 0 : classNames.innerWrapper })
9993
10227
  }),
9994
10228
  [slots, classNames]
9995
10229
  );
9996
- const getInputWrapperProps = (0, import_react31.useCallback)(
10230
+ const getInputWrapperProps = (0, import_react33.useCallback)(
9997
10231
  () => ({
9998
10232
  className: slots.inputWrapper({ class: classNames == null ? void 0 : classNames.inputWrapper }),
9999
10233
  ref: datePickerRef
10000
10234
  }),
10001
10235
  [slots, classNames]
10002
10236
  );
10003
- const getInputProps = (0, import_react31.useCallback)(
10237
+ const getInputProps = (0, import_react33.useCallback)(
10004
10238
  () => ({
10005
10239
  ...inputProps,
10006
10240
  ref: ref || dateInputRef,
@@ -10031,33 +10265,33 @@ var DatePicker = (0, import_react31.forwardRef)((originalProps, ref) => {
10031
10265
  }),
10032
10266
  [inputProps, ref, dateInputRef, slots, classNames == null ? void 0 : classNames.input, selectedDate, selectedTime, type, value]
10033
10267
  );
10034
- const getContentProps = (0, import_react31.useCallback)(
10268
+ const getContentProps = (0, import_react33.useCallback)(
10035
10269
  () => ({
10036
10270
  className: slots.content({ class: classNames == null ? void 0 : classNames.content }),
10037
10271
  size: originalProps.size
10038
10272
  }),
10039
10273
  [slots, classNames, originalProps.size]
10040
10274
  );
10041
- const getErrorMessageProps = (0, import_react31.useCallback)(
10275
+ const getErrorMessageProps = (0, import_react33.useCallback)(
10042
10276
  () => ({
10043
10277
  className: slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })
10044
10278
  }),
10045
10279
  [slots, classNames]
10046
10280
  );
10047
10281
  const renderStartContent = () => {
10048
- if (import_react31.default.isValidElement(startContent)) {
10282
+ if (import_react33.default.isValidElement(startContent)) {
10049
10283
  const existingProps = startContent.props;
10050
10284
  const mergedProps = {
10051
10285
  ...getContentProps(),
10052
10286
  className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
10053
10287
  };
10054
- return import_react31.default.cloneElement(startContent, mergedProps);
10288
+ return import_react33.default.cloneElement(startContent, mergedProps);
10055
10289
  } else {
10056
10290
  const contentProps = getContentProps();
10057
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { ...contentProps, children: startContent });
10291
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { ...contentProps, children: startContent });
10058
10292
  }
10059
10293
  };
10060
- const renderDateTimePickerIcon = () => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { ...getContentProps(), onClick: handleToggleDatePicker, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
10294
+ const renderDateTimePickerIcon = () => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { ...getContentProps(), onClick: handleToggleDatePicker, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
10061
10295
  Icon_default,
10062
10296
  {
10063
10297
  name: type === "time" ? "clock" : "calendar",
@@ -10067,18 +10301,18 @@ var DatePicker = (0, import_react31.forwardRef)((originalProps, ref) => {
10067
10301
  }
10068
10302
  ) });
10069
10303
  const renderContentWithIcon = () => {
10070
- if (import_react31.default.isValidElement(endContent)) {
10304
+ if (import_react33.default.isValidElement(endContent)) {
10071
10305
  const existingProps = endContent.props;
10072
10306
  const mergedProps = {
10073
10307
  ...getContentProps(),
10074
10308
  className: `${getContentProps().className || ""} ${existingProps.className || ""}`.trim()
10075
10309
  };
10076
- return import_react31.default.cloneElement(endContent, mergedProps);
10310
+ return import_react33.default.cloneElement(endContent, mergedProps);
10077
10311
  } else if (errorMessage) {
10078
10312
  const iconProps = { ...getContentProps(), className: getContentProps().className };
10079
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { ...iconProps, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Icon_default, { name: "exclamation-circle", fill: true, size: originalProps.size }) });
10313
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { ...iconProps, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Icon_default, { name: "exclamation-circle", fill: true, size: originalProps.size }) });
10080
10314
  } else {
10081
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_jsx_runtime34.Fragment, {});
10315
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_jsx_runtime36.Fragment, {});
10082
10316
  }
10083
10317
  };
10084
10318
  const renderEndContent = () => {
@@ -10093,20 +10327,20 @@ var DatePicker = (0, import_react31.forwardRef)((originalProps, ref) => {
10093
10327
  return renderContentWithIcon();
10094
10328
  }
10095
10329
  };
10096
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_jsx_runtime34.Fragment, { children: [
10097
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { ...getBaseProps(), children: [
10098
- label && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("label", { ...getLabelProps(), children: label }),
10099
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { ...getInnerWrapperProps(), children: [
10100
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { ...getInputWrapperProps(), children: [
10330
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
10331
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { ...getBaseProps(), children: [
10332
+ label && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("label", { ...getLabelProps(), children: label }),
10333
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { ...getInnerWrapperProps(), children: [
10334
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { ...getInputWrapperProps(), children: [
10101
10335
  startContent && renderStartContent(),
10102
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("input", { ...getInputProps() }),
10336
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("input", { ...getInputProps() }),
10103
10337
  renderEndContent()
10104
10338
  ] }),
10105
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { ...getErrorMessageProps(), children: errorMessage })
10339
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { ...getErrorMessageProps(), children: errorMessage })
10106
10340
  ] })
10107
10341
  ] }),
10108
- targetRect && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_jsx_runtime34.Fragment, { children: (0, import_react_dom4.createPortal)(
10109
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
10342
+ targetRect && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_jsx_runtime36.Fragment, { children: (0, import_react_dom5.createPortal)(
10343
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
10110
10344
  "div",
10111
10345
  {
10112
10346
  ref: datePickerWrapperRef,
@@ -10117,7 +10351,7 @@ var DatePicker = (0, import_react31.forwardRef)((originalProps, ref) => {
10117
10351
  zIndex: 1e3
10118
10352
  },
10119
10353
  children: [
10120
- type === "date" && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
10354
+ type === "date" && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
10121
10355
  calendar_default,
10122
10356
  {
10123
10357
  color: originalProps.color,
@@ -10129,7 +10363,7 @@ var DatePicker = (0, import_react31.forwardRef)((originalProps, ref) => {
10129
10363
  }
10130
10364
  }
10131
10365
  ),
10132
- type === "time" && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
10366
+ type === "time" && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
10133
10367
  timePicker_default,
10134
10368
  {
10135
10369
  color: originalProps.color,
@@ -10279,20 +10513,20 @@ var dateTimePickerStyle = tv({
10279
10513
  });
10280
10514
 
10281
10515
  // src/components/tree/tree.tsx
10282
- var import_react32 = require("react");
10283
- var import_jsx_runtime35 = require("react/jsx-runtime");
10284
- var TreeNodeItem = (0, import_react32.forwardRef)(
10516
+ var import_react34 = require("react");
10517
+ var import_jsx_runtime37 = require("react/jsx-runtime");
10518
+ var TreeNodeItem = (0, import_react34.forwardRef)(
10285
10519
  ({ node, depth, fileIcon, selectedId, classNames, onExpand }, ref) => {
10286
- const [isOpen, setIsOpen] = (0, import_react32.useState)(false);
10287
- const [children, setChildren] = (0, import_react32.useState)(node.children);
10288
- const [isLoadingChildren, setIsLoadingChildren] = (0, import_react32.useState)(false);
10289
- const slots = (0, import_react32.useMemo)(() => treeStyle(), []);
10290
- const hasMore = (0, import_react32.useMemo)(() => {
10520
+ const [isOpen, setIsOpen] = (0, import_react34.useState)(false);
10521
+ const [children, setChildren] = (0, import_react34.useState)(node.children);
10522
+ const [isLoadingChildren, setIsLoadingChildren] = (0, import_react34.useState)(false);
10523
+ const slots = (0, import_react34.useMemo)(() => treeStyle(), []);
10524
+ const hasMore = (0, import_react34.useMemo)(() => {
10291
10525
  if (node.isLeaf) return false;
10292
10526
  if (Array.isArray(children)) return children.length > 0;
10293
10527
  return typeof onExpand === "function";
10294
10528
  }, [node.isLeaf, children, onExpand]);
10295
- const toggleOpen = (0, import_react32.useCallback)(async () => {
10529
+ const toggleOpen = (0, import_react34.useCallback)(async () => {
10296
10530
  if (!isOpen && !children && onExpand && !node.isLeaf) {
10297
10531
  setIsLoadingChildren(true);
10298
10532
  try {
@@ -10316,7 +10550,7 @@ var TreeNodeItem = (0, import_react32.forwardRef)(
10316
10550
  e.preventDefault();
10317
10551
  (_a = node.onRightClick) == null ? void 0 : _a.call(node, e);
10318
10552
  };
10319
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
10553
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
10320
10554
  "div",
10321
10555
  {
10322
10556
  ref,
@@ -10325,7 +10559,7 @@ var TreeNodeItem = (0, import_react32.forwardRef)(
10325
10559
  slots.gap({ class: classNames == null ? void 0 : classNames.gap })
10326
10560
  ),
10327
10561
  children: [
10328
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
10562
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
10329
10563
  "div",
10330
10564
  {
10331
10565
  className: clsx(
@@ -10336,7 +10570,7 @@ var TreeNodeItem = (0, import_react32.forwardRef)(
10336
10570
  onClick: handleClick,
10337
10571
  onContextMenu: handleRightClick,
10338
10572
  children: [
10339
- hasMore && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
10573
+ hasMore && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
10340
10574
  Icon_default,
10341
10575
  {
10342
10576
  name: "right-chevron",
@@ -10351,9 +10585,9 @@ var TreeNodeItem = (0, import_react32.forwardRef)(
10351
10585
  ]
10352
10586
  }
10353
10587
  ),
10354
- isOpen && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: slots.gap({ class: classNames == null ? void 0 : classNames.gap }), children: [
10355
- isLoadingChildren && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "text-neutral py-1 text-sm", children: "loading..." }),
10356
- children == null ? void 0 : children.map((child) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
10588
+ isOpen && /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: slots.gap({ class: classNames == null ? void 0 : classNames.gap }), children: [
10589
+ isLoadingChildren && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "text-neutral py-1 text-sm", children: "loading..." }),
10590
+ children == null ? void 0 : children.map((child) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
10357
10591
  TreeNodeItem,
10358
10592
  {
10359
10593
  node: child,
@@ -10373,7 +10607,7 @@ var TreeNodeItem = (0, import_react32.forwardRef)(
10373
10607
  );
10374
10608
  TreeNodeItem.displayName = "TreeNodeItem";
10375
10609
  var Tree = ({ headerContent, group, groupIcon, fileIcon, selectedId, classNames, onExpand }) => {
10376
- const slots = (0, import_react32.useMemo)(() => treeStyle(), []);
10610
+ const slots = (0, import_react34.useMemo)(() => treeStyle(), []);
10377
10611
  const handleClick = (e) => {
10378
10612
  var _a;
10379
10613
  (_a = group.onClick) == null ? void 0 : _a.call(group, e);
@@ -10383,10 +10617,10 @@ var Tree = ({ headerContent, group, groupIcon, fileIcon, selectedId, classNames,
10383
10617
  e.preventDefault();
10384
10618
  (_a = group.onRightClick) == null ? void 0 : _a.call(group, e);
10385
10619
  };
10386
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
10387
- headerContent && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { children: headerContent }),
10388
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
10389
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
10620
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
10621
+ headerContent && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { children: headerContent }),
10622
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
10623
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
10390
10624
  "div",
10391
10625
  {
10392
10626
  className: clsx(
@@ -10401,7 +10635,7 @@ var Tree = ({ headerContent, group, groupIcon, fileIcon, selectedId, classNames,
10401
10635
  ]
10402
10636
  }
10403
10637
  ),
10404
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: slots.gap({ class: classNames == null ? void 0 : classNames.gap }), children: group.data.map((node) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
10638
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: slots.gap({ class: classNames == null ? void 0 : classNames.gap }), children: group.data.map((node) => /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
10405
10639
  TreeNodeItem,
10406
10640
  {
10407
10641
  node,
@@ -10438,9 +10672,9 @@ var treeStyle = tv({
10438
10672
  });
10439
10673
 
10440
10674
  // src/components/fileUpload/fileUpload.tsx
10441
- var import_react33 = require("react");
10442
- var import_tailwind_variants30 = require("tailwind-variants");
10443
- var import_jsx_runtime36 = require("react/jsx-runtime");
10675
+ var import_react35 = require("react");
10676
+ var import_tailwind_variants32 = require("tailwind-variants");
10677
+ var import_jsx_runtime38 = require("react/jsx-runtime");
10444
10678
  function FileUpload({
10445
10679
  buttonText,
10446
10680
  maxSizeMB = 10,
@@ -10454,11 +10688,11 @@ function FileUpload({
10454
10688
  name,
10455
10689
  classNames
10456
10690
  }) {
10457
- const fileInputRef = (0, import_react33.useRef)(null);
10458
- const uploadIntervalRef = (0, import_react33.useRef)(null);
10459
- const [file, setFile] = (0, import_react33.useState)(null);
10460
- const [uploadProgress, setUploadProgress] = (0, import_react33.useState)(0);
10461
- const [errorMessage, setErrorMessage] = (0, import_react33.useState)("");
10691
+ const fileInputRef = (0, import_react35.useRef)(null);
10692
+ const uploadIntervalRef = (0, import_react35.useRef)(null);
10693
+ const [file, setFile] = (0, import_react35.useState)(null);
10694
+ const [uploadProgress, setUploadProgress] = (0, import_react35.useState)(0);
10695
+ const [errorMessage, setErrorMessage] = (0, import_react35.useState)("");
10462
10696
  const slots = fileUploadStyle();
10463
10697
  const handleButtonClick = () => {
10464
10698
  var _a;
@@ -10508,18 +10742,18 @@ function FileUpload({
10508
10742
  setUploadProgress(0);
10509
10743
  setErrorMessage("");
10510
10744
  };
10511
- (0, import_react33.useEffect)(() => {
10745
+ (0, import_react35.useEffect)(() => {
10512
10746
  return () => {
10513
10747
  if (uploadIntervalRef.current) {
10514
10748
  clearInterval(uploadIntervalRef.current);
10515
10749
  }
10516
10750
  };
10517
10751
  }, []);
10518
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
10519
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: slots.container({ class: classNames == null ? void 0 : classNames.container }), children: [
10520
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: slots.inputWrapper(), children: [
10521
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(input_default, { name, readOnly: true, variant: "outline", full: true, placeholder, defaultValue: file == null ? void 0 : file.name }),
10522
- file && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
10752
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
10753
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: slots.container({ class: classNames == null ? void 0 : classNames.container }), children: [
10754
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: slots.inputWrapper(), children: [
10755
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(input_default, { name, readOnly: true, variant: "outline", full: true, placeholder, defaultValue: file == null ? void 0 : file.name }),
10756
+ file && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
10523
10757
  icon_button_default,
10524
10758
  {
10525
10759
  name: "close",
@@ -10531,17 +10765,17 @@ function FileUpload({
10531
10765
  }
10532
10766
  )
10533
10767
  ] }),
10534
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(button_default, { type: "button", variant: "outline", onClick: handleButtonClick, children: buttonText }),
10535
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("input", { ref: fileInputRef, type: "file", hidden: true, accept: accept.join(","), onChange: handleFileChange })
10768
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(button_default, { type: "button", variant: "outline", onClick: handleButtonClick, children: buttonText }),
10769
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("input", { ref: fileInputRef, type: "file", hidden: true, accept: accept.join(","), onChange: handleFileChange })
10536
10770
  ] }),
10537
- showProgress && file && uploadProgress < 100 && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: slots.progressBarContainer(), children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: slots.progressBar(), style: { width: `${uploadProgress}%` } }) }),
10538
- !errorMessage && helperMessage && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: slots.helperMessage(), children: helperMessage }),
10539
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("p", { className: slots.errorMessage(), children: errorMessage })
10771
+ showProgress && file && uploadProgress < 100 && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: slots.progressBarContainer(), children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: slots.progressBar(), style: { width: `${uploadProgress}%` } }) }),
10772
+ !errorMessage && helperMessage && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: slots.helperMessage(), children: helperMessage }),
10773
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: slots.errorMessage(), children: errorMessage })
10540
10774
  ] });
10541
10775
  }
10542
10776
  FileUpload.displayName = "FileUpload";
10543
10777
  var fileUpload_default = FileUpload;
10544
- var fileUploadStyle = (0, import_tailwind_variants30.tv)({
10778
+ var fileUploadStyle = (0, import_tailwind_variants32.tv)({
10545
10779
  slots: {
10546
10780
  base: ["flex", "flex-col", "gap-[5px]"],
10547
10781
  container: ["flex", "items-center", "gap-[10px]"],
@@ -10556,12 +10790,12 @@ var fileUploadStyle = (0, import_tailwind_variants30.tv)({
10556
10790
 
10557
10791
  // src/components/charts/circularProgress.tsx
10558
10792
  var import_recharts = require("recharts");
10559
- var import_react34 = require("react");
10560
- var import_jsx_runtime37 = require("react/jsx-runtime");
10561
- var CircularProgress = (0, import_react34.forwardRef)((originalProps, ref) => {
10793
+ var import_react36 = require("react");
10794
+ var import_jsx_runtime39 = require("react/jsx-runtime");
10795
+ var CircularProgress = (0, import_react36.forwardRef)((originalProps, ref) => {
10562
10796
  const [props, variantProps] = mapPropsVariants(originalProps, circularProgressStyle.variantKeys);
10563
10797
  const { label, size = 150, percentage, unit, classNames } = { ...props, ...variantProps };
10564
- const slots = (0, import_react34.useMemo)(() => circularProgressStyle({ ...variantProps }), [variantProps]);
10798
+ const slots = (0, import_react36.useMemo)(() => circularProgressStyle({ ...variantProps }), [variantProps]);
10565
10799
  const data = [
10566
10800
  {
10567
10801
  name: label,
@@ -10571,9 +10805,9 @@ var CircularProgress = (0, import_react34.forwardRef)((originalProps, ref) => {
10571
10805
  const BAR_SIZE = 24;
10572
10806
  const OUTER_RADIUS = 88;
10573
10807
  const INNER_RADIUS = OUTER_RADIUS - BAR_SIZE;
10574
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
10575
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "relative", style: { width: size, height: size }, children: [
10576
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
10808
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
10809
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "relative", style: { width: size, height: size }, children: [
10810
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
10577
10811
  import_recharts.RadialBarChart,
10578
10812
  {
10579
10813
  width: size,
@@ -10585,7 +10819,7 @@ var CircularProgress = (0, import_react34.forwardRef)((originalProps, ref) => {
10585
10819
  startAngle: 90,
10586
10820
  endAngle: -270,
10587
10821
  children: [
10588
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
10822
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
10589
10823
  "circle",
10590
10824
  {
10591
10825
  cx: size / 2,
@@ -10595,8 +10829,8 @@ var CircularProgress = (0, import_react34.forwardRef)((originalProps, ref) => {
10595
10829
  fill: "currentColor"
10596
10830
  }
10597
10831
  ),
10598
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_recharts.PolarAngleAxis, { type: "number", domain: [0, 100], angleAxisId: 0, tick: false }),
10599
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
10832
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_recharts.PolarAngleAxis, { type: "number", domain: [0, 100], angleAxisId: 0, tick: false }),
10833
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
10600
10834
  import_recharts.RadialBar,
10601
10835
  {
10602
10836
  dataKey: "value",
@@ -10608,12 +10842,12 @@ var CircularProgress = (0, import_react34.forwardRef)((originalProps, ref) => {
10608
10842
  ]
10609
10843
  }
10610
10844
  ),
10611
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("span", { className: slots.text({ class: classNames == null ? void 0 : classNames.text }), children: [
10845
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("span", { className: slots.text({ class: classNames == null ? void 0 : classNames.text }), children: [
10612
10846
  percentage,
10613
10847
  unit
10614
10848
  ] }) })
10615
10849
  ] }),
10616
- label && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label })
10850
+ label && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label })
10617
10851
  ] });
10618
10852
  });
10619
10853
  CircularProgress.displayName = "CircularProgress";
@@ -10651,26 +10885,26 @@ var circularProgressStyle = tv({
10651
10885
  });
10652
10886
 
10653
10887
  // src/components/charts/areaChart.tsx
10654
- var import_react35 = require("react");
10888
+ var import_react37 = require("react");
10655
10889
  var import_recharts2 = require("recharts");
10656
- var import_jsx_runtime38 = require("react/jsx-runtime");
10657
- var AreaChartComponent = (0, import_react35.forwardRef)((originalProps, ref) => {
10658
- const uniqueId = (0, import_react35.useId)();
10890
+ var import_jsx_runtime40 = require("react/jsx-runtime");
10891
+ var AreaChartComponent = (0, import_react37.forwardRef)((originalProps, ref) => {
10892
+ const uniqueId = (0, import_react37.useId)();
10659
10893
  const [props, variantProps] = mapPropsVariants(originalProps, areaChartStyle.variantKeys);
10660
10894
  const { data, label, color = "primary", classNames } = { ...props, ...variantProps };
10661
- const slots = (0, import_react35.useMemo)(() => areaChartStyle({ ...variantProps }), [variantProps]);
10895
+ const slots = (0, import_react37.useMemo)(() => areaChartStyle({ ...variantProps }), [variantProps]);
10662
10896
  const COLOR_MAP = {
10663
10897
  primary: "#3F9CF2",
10664
10898
  danger: "#FF4684"
10665
10899
  };
10666
- const colorHex = (0, import_react35.useMemo)(() => COLOR_MAP[color], [color]);
10667
- const [tickPositions, setTickPositions] = (0, import_react35.useState)([]);
10668
- const tickRef = (0, import_react35.useRef)([]);
10900
+ const colorHex = (0, import_react37.useMemo)(() => COLOR_MAP[color], [color]);
10901
+ const [tickPositions, setTickPositions] = (0, import_react37.useState)([]);
10902
+ const tickRef = (0, import_react37.useRef)([]);
10669
10903
  const CustomTick = ({ x, y, payload }) => {
10670
10904
  if (x !== void 0) {
10671
10905
  tickRef.current.push(x);
10672
10906
  }
10673
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
10907
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
10674
10908
  "text",
10675
10909
  {
10676
10910
  x,
@@ -10684,7 +10918,7 @@ var AreaChartComponent = (0, import_react35.forwardRef)((originalProps, ref) =>
10684
10918
  }
10685
10919
  );
10686
10920
  };
10687
- (0, import_react35.useEffect)(() => {
10921
+ (0, import_react37.useEffect)(() => {
10688
10922
  const raf = requestAnimationFrame(() => {
10689
10923
  const unique = [...new Set(tickRef.current)].sort((a, b) => a - b);
10690
10924
  const mids = [];
@@ -10699,19 +10933,19 @@ var AreaChartComponent = (0, import_react35.forwardRef)((originalProps, ref) =>
10699
10933
  const CustomDotWithShadow = (props2) => {
10700
10934
  const { cx, cy, fill, stroke } = props2;
10701
10935
  if (cx === void 0 || cy === void 0) return null;
10702
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
10703
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("circle", { cx, cy, r: 8, fill, opacity: 0.2 }),
10704
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("circle", { cx, cy, r: 3.5, fill, stroke, strokeWidth: 2 })
10936
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_jsx_runtime40.Fragment, { children: [
10937
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("circle", { cx, cy, r: 8, fill, opacity: 0.2 }),
10938
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("circle", { cx, cy, r: 3.5, fill, stroke, strokeWidth: 2 })
10705
10939
  ] });
10706
10940
  };
10707
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
10708
- label && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
10709
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_recharts2.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_recharts2.AreaChart, { data, margin: { left: -30 }, children: [
10710
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("linearGradient", { id: `colorGradient-${uniqueId}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
10711
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("stop", { offset: "5%", stopColor: colorHex, stopOpacity: 0.3 }),
10712
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("stop", { offset: "95%", stopColor: colorHex, stopOpacity: 0 })
10941
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
10942
+ label && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
10943
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_recharts2.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_recharts2.AreaChart, { data, margin: { left: -30 }, children: [
10944
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("linearGradient", { id: `colorGradient-${uniqueId}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
10945
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("stop", { offset: "5%", stopColor: colorHex, stopOpacity: 0.3 }),
10946
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("stop", { offset: "95%", stopColor: colorHex, stopOpacity: 0 })
10713
10947
  ] }) }),
10714
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
10948
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
10715
10949
  import_recharts2.CartesianGrid,
10716
10950
  {
10717
10951
  vertical: true,
@@ -10721,7 +10955,7 @@ var AreaChartComponent = (0, import_react35.forwardRef)((originalProps, ref) =>
10721
10955
  verticalPoints: tickPositions
10722
10956
  }
10723
10957
  ),
10724
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
10958
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
10725
10959
  import_recharts2.XAxis,
10726
10960
  {
10727
10961
  dataKey: "name",
@@ -10731,7 +10965,7 @@ var AreaChartComponent = (0, import_react35.forwardRef)((originalProps, ref) =>
10731
10965
  padding: { left: 35.5, right: 35.5 }
10732
10966
  }
10733
10967
  ),
10734
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
10968
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
10735
10969
  import_recharts2.YAxis,
10736
10970
  {
10737
10971
  axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
@@ -10747,7 +10981,7 @@ var AreaChartComponent = (0, import_react35.forwardRef)((originalProps, ref) =>
10747
10981
  domain: [-6, 110]
10748
10982
  }
10749
10983
  ),
10750
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
10984
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
10751
10985
  import_recharts2.Area,
10752
10986
  {
10753
10987
  type: "monotone",
@@ -10755,7 +10989,7 @@ var AreaChartComponent = (0, import_react35.forwardRef)((originalProps, ref) =>
10755
10989
  stroke: colorHex,
10756
10990
  strokeWidth: 2,
10757
10991
  fill: `url(#colorGradient-${uniqueId})`,
10758
- dot: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(CustomDotWithShadow, { stroke: colorHex, fill: colorHex }),
10992
+ dot: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(CustomDotWithShadow, { stroke: colorHex, fill: colorHex }),
10759
10993
  activeDot: { r: 7, fill: colorHex }
10760
10994
  }
10761
10995
  )
@@ -10787,20 +11021,20 @@ var areaChartStyle = tv({
10787
11021
  });
10788
11022
 
10789
11023
  // src/components/charts/barChart.tsx
10790
- var import_react36 = require("react");
11024
+ var import_react38 = require("react");
10791
11025
  var import_recharts3 = require("recharts");
10792
- var import_jsx_runtime39 = require("react/jsx-runtime");
10793
- var BarChartComponent = (0, import_react36.forwardRef)((originalProps, ref) => {
11026
+ var import_jsx_runtime41 = require("react/jsx-runtime");
11027
+ var BarChartComponent = (0, import_react38.forwardRef)((originalProps, ref) => {
10794
11028
  const [props, variantProps] = mapPropsVariants(originalProps, barChartStyle.variantKeys);
10795
11029
  const { data, label, classNames } = { ...props, ...variantProps };
10796
- const slots = (0, import_react36.useMemo)(() => barChartStyle({ ...variantProps }), [variantProps]);
11030
+ const slots = (0, import_react38.useMemo)(() => barChartStyle({ ...variantProps }), [variantProps]);
10797
11031
  const COLOR_MAP = {
10798
11032
  primary: "#C7E5FA",
10799
11033
  secondary: "#DEC1FA",
10800
11034
  warning: "#F9C967"
10801
11035
  };
10802
- const [tickPositions, setTickPositions] = (0, import_react36.useState)([]);
10803
- const tickRef = (0, import_react36.useRef)([]);
11036
+ const [tickPositions, setTickPositions] = (0, import_react38.useState)([]);
11037
+ const tickRef = (0, import_react38.useRef)([]);
10804
11038
  const CustomBarShape = (barProps) => {
10805
11039
  const { x, y, width, height, fill } = barProps;
10806
11040
  const radius = 5;
@@ -10808,19 +11042,19 @@ var BarChartComponent = (0, import_react36.forwardRef)((originalProps, ref) => {
10808
11042
  const adjustedHeight = height + extraHeight;
10809
11043
  const adjustedY = y;
10810
11044
  const bottomY = adjustedY + adjustedHeight;
10811
- return height ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
11045
+ return height ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
10812
11046
  "path",
10813
11047
  {
10814
11048
  d: `M${x},${bottomY} L${x},${adjustedY + radius} Q${x},${adjustedY} ${x + radius},${adjustedY} L${x + width - radius},${adjustedY} Q${x + width},${adjustedY} ${x + width},${adjustedY + radius} L${x + width},${bottomY} Z`,
10815
11049
  fill
10816
11050
  }
10817
- ) : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("rect", { x, y, width, height: 0, fill });
11051
+ ) : /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("rect", { x, y, width, height: 0, fill });
10818
11052
  };
10819
11053
  const CustomTick = ({ x, y, payload }) => {
10820
11054
  if (x !== void 0) {
10821
11055
  tickRef.current.push(x);
10822
11056
  }
10823
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
11057
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
10824
11058
  "text",
10825
11059
  {
10826
11060
  x,
@@ -10834,7 +11068,7 @@ var BarChartComponent = (0, import_react36.forwardRef)((originalProps, ref) => {
10834
11068
  }
10835
11069
  );
10836
11070
  };
10837
- (0, import_react36.useEffect)(() => {
11071
+ (0, import_react38.useEffect)(() => {
10838
11072
  const raf = requestAnimationFrame(() => {
10839
11073
  const unique = [...new Set(tickRef.current)].sort((a, b) => a - b);
10840
11074
  const mids = [];
@@ -10846,10 +11080,10 @@ var BarChartComponent = (0, import_react36.forwardRef)((originalProps, ref) => {
10846
11080
  });
10847
11081
  return () => cancelAnimationFrame(raf);
10848
11082
  }, [data]);
10849
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
10850
- label && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
10851
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_recharts3.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_recharts3.BarChart, { data, margin: { left: -30 }, barSize: 20, barGap: 10, children: [
10852
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
11083
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
11084
+ label && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("p", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: label }),
11085
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_recharts3.ResponsiveContainer, { width: "100%", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_recharts3.BarChart, { data, margin: { left: -30 }, barSize: 20, barGap: 10, children: [
11086
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
10853
11087
  import_recharts3.CartesianGrid,
10854
11088
  {
10855
11089
  vertical: true,
@@ -10859,7 +11093,7 @@ var BarChartComponent = (0, import_react36.forwardRef)((originalProps, ref) => {
10859
11093
  verticalPoints: tickPositions
10860
11094
  }
10861
11095
  ),
10862
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
11096
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
10863
11097
  import_recharts3.XAxis,
10864
11098
  {
10865
11099
  dataKey: "name",
@@ -10869,7 +11103,7 @@ var BarChartComponent = (0, import_react36.forwardRef)((originalProps, ref) => {
10869
11103
  padding: { left: 32, right: 32 }
10870
11104
  }
10871
11105
  ),
10872
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
11106
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
10873
11107
  import_recharts3.YAxis,
10874
11108
  {
10875
11109
  axisLine: { stroke: "#DFE2E7", strokeWidth: 1 },
@@ -10885,9 +11119,9 @@ var BarChartComponent = (0, import_react36.forwardRef)((originalProps, ref) => {
10885
11119
  domain: [-6, 110]
10886
11120
  }
10887
11121
  ),
10888
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_recharts3.Bar, { dataKey: "avg", fill: COLOR_MAP.primary, width: 20, shape: CustomBarShape }),
10889
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_recharts3.Bar, { dataKey: "high", fill: COLOR_MAP.secondary, width: 20, shape: CustomBarShape }),
10890
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_recharts3.Bar, { dataKey: "low", fill: COLOR_MAP.warning, width: 20, shape: CustomBarShape })
11122
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_recharts3.Bar, { dataKey: "avg", fill: COLOR_MAP.primary, width: 20, shape: CustomBarShape }),
11123
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_recharts3.Bar, { dataKey: "high", fill: COLOR_MAP.secondary, width: 20, shape: CustomBarShape }),
11124
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_recharts3.Bar, { dataKey: "low", fill: COLOR_MAP.warning, width: 20, shape: CustomBarShape })
10891
11125
  ] }) })
10892
11126
  ] });
10893
11127
  });
@@ -10917,6 +11151,8 @@ var barChartStyle = tv({
10917
11151
  CircularProgress,
10918
11152
  DateTimePicker,
10919
11153
  DefinitionTable,
11154
+ DefinitionTable2,
11155
+ Drawer,
10920
11156
  FileUpload,
10921
11157
  Icon,
10922
11158
  IconButton,