@deepnoid/ui 0.1.14 → 0.1.17

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 (94) hide show
  1. package/.turbo/turbo-build.log +139 -129
  2. package/dist/{chunk-KSZEUKBY.mjs → chunk-2PKM7SLZ.mjs} +3 -3
  3. package/dist/{chunk-56VCX2QR.mjs → chunk-33LANVZV.mjs} +3 -3
  4. package/dist/{chunk-2KAR2PTQ.mjs → chunk-36JC3WXM.mjs} +3 -3
  5. package/dist/{chunk-YQGZRSUQ.mjs → chunk-3MPMVCR7.mjs} +3 -3
  6. package/dist/{chunk-2ZT6V4QR.mjs → chunk-4ZJFD3L3.mjs} +54 -7
  7. package/dist/chunk-AL4SMNMR.mjs +40 -0
  8. package/dist/{chunk-QRAHATAM.mjs → chunk-CU6CIHC2.mjs} +3 -3
  9. package/dist/chunk-DQRAFUDA.mjs +1 -0
  10. package/dist/{chunk-NEUCUEIG.mjs → chunk-IB424QKO.mjs} +4 -4
  11. package/dist/{chunk-U2YKMXVG.mjs → chunk-IL5ENWCR.mjs} +3 -3
  12. package/dist/{chunk-KFBG45BI.mjs → chunk-KCPPDCLS.mjs} +2 -2
  13. package/dist/{chunk-56RN6YOP.mjs → chunk-LNNTSCMC.mjs} +3 -3
  14. package/dist/{chunk-WB24YDE2.mjs → chunk-LPZOH3RP.mjs} +1 -1
  15. package/dist/chunk-M37VBNB3.mjs +44 -0
  16. package/dist/{chunk-6G7GOPSB.mjs → chunk-OKLT5ESS.mjs} +5 -5
  17. package/dist/{chunk-HJZWSGUX.mjs → chunk-P5QCU457.mjs} +3 -3
  18. package/dist/{chunk-NJ4PBW65.mjs → chunk-P6NVCCBZ.mjs} +1 -1
  19. package/dist/{chunk-GQS6V47G.mjs → chunk-QEXS35XA.mjs} +1 -1
  20. package/dist/{chunk-4GLKWK3Z.mjs → chunk-S6DHANZX.mjs} +3 -3
  21. package/dist/{chunk-ZEZ6ZA3N.mjs → chunk-SSMMWMQC.mjs} +3 -3
  22. package/dist/{chunk-72JRFZCH.mjs → chunk-TVEEKI4Q.mjs} +8 -5
  23. package/dist/{chunk-VVOOYDJS.mjs → chunk-UFVQPPPW.mjs} +3 -3
  24. package/dist/{chunk-7R4QY3TA.mjs → chunk-UYPVP36M.mjs} +1 -1
  25. package/dist/{chunk-D7WPZ5C6.mjs → chunk-V3DWFAL7.mjs} +1 -1
  26. package/dist/{chunk-7R4NOC2G.mjs → chunk-VBY63YVZ.mjs} +4 -4
  27. package/dist/{chunk-57WBWSSL.mjs → chunk-XBIHKPK4.mjs} +4 -4
  28. package/dist/{chunk-LP724WOP.mjs → chunk-XKEXTBMD.mjs} +3 -3
  29. package/dist/{chunk-GXWSYM7Z.mjs → chunk-YD7UPDCV.mjs} +4 -4
  30. package/dist/{chunk-J5WJD6XZ.mjs → chunk-YLRYHUTW.mjs} +3 -3
  31. package/dist/{chunk-AHTNXGAY.mjs → chunk-ZQFIB7ZW.mjs} +2 -2
  32. package/dist/components/avatar/avatar.mjs +2 -2
  33. package/dist/components/avatar/index.mjs +2 -2
  34. package/dist/components/backdrop/backdrop.mjs +2 -2
  35. package/dist/components/backdrop/index.mjs +2 -2
  36. package/dist/components/breadcrumb/breadcrumb.mjs +6 -6
  37. package/dist/components/breadcrumb/index.mjs +6 -6
  38. package/dist/components/button/button-group.mjs +2 -2
  39. package/dist/components/button/button.mjs +2 -2
  40. package/dist/components/button/icon-button.mjs +2 -2
  41. package/dist/components/button/index.mjs +5 -5
  42. package/dist/components/button/text-button.mjs +2 -2
  43. package/dist/components/checkbox/checkbox.mjs +2 -2
  44. package/dist/components/checkbox/index.mjs +2 -2
  45. package/dist/components/chip/chip.mjs +2 -2
  46. package/dist/components/chip/index.mjs +2 -2
  47. package/dist/components/dateTimePicker/calendar.mjs +2 -2
  48. package/dist/components/dateTimePicker/dateTimePicker.mjs +7 -7
  49. package/dist/components/dateTimePicker/index.mjs +7 -7
  50. package/dist/components/dateTimePicker/timePicker.mjs +5 -5
  51. package/dist/components/input/index.mjs +2 -2
  52. package/dist/components/input/input.mjs +2 -2
  53. package/dist/components/list/index.mjs +4 -4
  54. package/dist/components/list/list.mjs +2 -2
  55. package/dist/components/list/listItem.mjs +3 -3
  56. package/dist/components/modal/index.mjs +6 -6
  57. package/dist/components/modal/modal.mjs +6 -6
  58. package/dist/components/pagination/index.mjs +3 -3
  59. package/dist/components/pagination/pagination.mjs +3 -3
  60. package/dist/components/radio/index.mjs +2 -2
  61. package/dist/components/radio/radio.mjs +2 -2
  62. package/dist/components/scroll/index.d.mts +3 -0
  63. package/dist/components/scroll/index.d.ts +3 -0
  64. package/dist/components/scroll/index.js +108 -0
  65. package/dist/components/scroll/index.mjs +10 -0
  66. package/dist/components/scroll/scrollArea.d.mts +15 -0
  67. package/dist/components/scroll/scrollArea.d.ts +15 -0
  68. package/dist/components/scroll/scrollArea.js +102 -0
  69. package/dist/components/scroll/scrollArea.mjs +9 -0
  70. package/dist/components/select/index.mjs +3 -3
  71. package/dist/components/select/option.mjs +2 -2
  72. package/dist/components/select/select.mjs +3 -3
  73. package/dist/components/table/index.js +61 -12
  74. package/dist/components/table/index.mjs +9 -7
  75. package/dist/components/table/table-body.mjs +3 -3
  76. package/dist/components/table/table-head.js +16 -3
  77. package/dist/components/table/table-head.mjs +3 -3
  78. package/dist/components/table/table.js +61 -12
  79. package/dist/components/table/table.mjs +9 -7
  80. package/dist/components/tabs/index.mjs +2 -2
  81. package/dist/components/tabs/tabs.mjs +2 -2
  82. package/dist/components/toast/index.mjs +3 -3
  83. package/dist/components/toast/toast.mjs +2 -2
  84. package/dist/components/toast/use-toast.mjs +3 -3
  85. package/dist/components/tooltip/index.mjs +2 -2
  86. package/dist/components/tooltip/tooltip.mjs +2 -2
  87. package/dist/index.d.mts +1 -0
  88. package/dist/index.d.ts +1 -0
  89. package/dist/index.js +215 -117
  90. package/dist/index.mjs +44 -39
  91. package/dist/utils/tailwind-variants.mjs +1 -1
  92. package/package.json +1 -1
  93. package/tailwind.config.ts +1 -4
  94. package/dist/chunk-OQS4LGZK.mjs +0 -27
package/dist/index.js CHANGED
@@ -118,6 +118,7 @@ __export(index_exports, {
118
118
  Modal: () => modal_default,
119
119
  Pagination: () => pagination_default,
120
120
  Radio: () => radio_default,
121
+ ScrollArea: () => scrollArea_default,
121
122
  Select: () => select_default,
122
123
  Switch: () => switch_default,
123
124
  Table: () => table_default,
@@ -4369,6 +4370,59 @@ var getTransColor = (hex, alpha) => {
4369
4370
  return `rgba(${r},${g},${b},${alpha})`;
4370
4371
  };
4371
4372
 
4373
+ // ../tailwind-config/src/scrollbar/index.ts
4374
+ var scrollbar = {
4375
+ ".scrollbar-hide": {
4376
+ "-ms-overflow-style": "none",
4377
+ // IE/Edge
4378
+ "scrollbar-width": "none",
4379
+ // Firefox
4380
+ "&::-webkit-scrollbar": {
4381
+ display: "none"
4382
+ // Chrome/Safari
4383
+ }
4384
+ },
4385
+ ".scrollbar-sm": {
4386
+ "&::-webkit-scrollbar": {
4387
+ width: "6px",
4388
+ height: "6px"
4389
+ },
4390
+ "&::-webkit-scrollbar-thumb": {
4391
+ backgroundColor: "rgba(0, 0, 0, 0.05)",
4392
+ borderRadius: "100px"
4393
+ },
4394
+ "&::-webkit-scrollbar-track": {
4395
+ backgroundColor: "#F2F3F4"
4396
+ }
4397
+ },
4398
+ ".scrollbar-md": {
4399
+ "&::-webkit-scrollbar": {
4400
+ width: "8px",
4401
+ height: "8px"
4402
+ },
4403
+ "&::-webkit-scrollbar-thumb": {
4404
+ backgroundColor: "rgba(0, 0, 0, 0.05)",
4405
+ borderRadius: "100px"
4406
+ },
4407
+ "&::-webkit-scrollbar-track": {
4408
+ backgroundColor: "#F2F3F4"
4409
+ }
4410
+ },
4411
+ ".scrollbar-lg": {
4412
+ "&::-webkit-scrollbar": {
4413
+ width: "10px",
4414
+ height: "10px"
4415
+ },
4416
+ "&::-webkit-scrollbar-thumb": {
4417
+ backgroundColor: "rgba(0, 0, 0, 0.05)",
4418
+ borderRadius: "100px"
4419
+ },
4420
+ "&::-webkit-scrollbar-track": {
4421
+ backgroundColor: "#F2F3F4"
4422
+ }
4423
+ }
4424
+ };
4425
+
4372
4426
  // ../tailwind-config/src/plugin.ts
4373
4427
  var resolveConfig = (themes = {}, defaultTheme, prefix = "dn") => {
4374
4428
  const resolved = {
@@ -4411,13 +4465,7 @@ var resolveConfig = (themes = {}, defaultTheme, prefix = "dn") => {
4411
4465
  }
4412
4466
  resolved.utilities = {
4413
4467
  ...resolved.utilities,
4414
- ".scrollbar-hide": {
4415
- "-ms-overflow-style": "none",
4416
- "scrollbar-width": "none",
4417
- "&::-webkit-scrollbar": {
4418
- display: "none"
4419
- }
4420
- },
4468
+ ...scrollbar,
4421
4469
  ".input-arrow-hide": {
4422
4470
  "&[type='number']::-webkit-inner-spin-button": {
4423
4471
  "-webkit-appearance": "none",
@@ -6475,7 +6523,7 @@ var textareaStyle = (0, import_tailwind_variants11.tv)({
6475
6523
 
6476
6524
  // src/components/table/table.tsx
6477
6525
  var import_react17 = require("react");
6478
- var import_tailwind_variants14 = require("tailwind-variants");
6526
+ var import_tailwind_variants15 = require("tailwind-variants");
6479
6527
 
6480
6528
  // src/components/checkbox/checkbox.tsx
6481
6529
  var import_react12 = require("react");
@@ -6691,9 +6739,22 @@ var TableHead = ({ columns, slots, size, selectableRows, isCheckedAll, className
6691
6739
  e.preventDefault();
6692
6740
  onCheckAll(!isCheckedAll);
6693
6741
  };
6694
- const renderColumnHeaders = () => columns.map((column, index) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("th", { className: clsx(slots.th({ class: classNames == null ? void 0 : classNames.th }), column), children: column.headerName }, `${column.field}${index}thead`));
6695
- const renderSelectAllCheckbox = () => selectableRows && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("th", { className: clsx(slots.th({ class: classNames == null ? void 0 : classNames.th })), onClick: handleClickCheckAll, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(checkbox_default, { size, checked: isCheckedAll }) }) });
6696
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("thead", { className: clsx(slots.thead({ class: classNames == null ? void 0 : classNames.thead })), children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("tr", { className: clsx(slots.tr({ class: classNames == null ? void 0 : classNames.tr })), children: [
6742
+ const renderColumnHeaders = () => columns.map((column, index) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
6743
+ "th",
6744
+ {
6745
+ className: clsx(slots.th({ class: classNames == null ? void 0 : classNames.th }), column),
6746
+ style: {
6747
+ width: column.width ? `${column.width}px` : void 0,
6748
+ minWidth: column.minWidth ? `${column.minWidth}px` : void 0,
6749
+ maxWidth: column.maxWidth ? `${column.maxWidth}px` : void 0,
6750
+ height: column.height ? `${column.height}px` : void 0
6751
+ },
6752
+ children: column.headerName
6753
+ },
6754
+ `${column.field}${index}thead`
6755
+ ));
6756
+ const renderSelectAllCheckbox = () => selectableRows && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("th", { className: slots.th({ class: classNames == null ? void 0 : classNames.th }), onClick: handleClickCheckAll, children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(checkbox_default, { size, checked: isCheckedAll }) }) });
6757
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("thead", { className: slots.thead({ class: classNames == null ? void 0 : classNames.thead }), children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), children: [
6697
6758
  renderColumnHeaders(),
6698
6759
  renderSelectAllCheckbox()
6699
6760
  ] }) });
@@ -7057,8 +7118,44 @@ var paginationStyle = tv(
7057
7118
  }
7058
7119
  );
7059
7120
 
7060
- // src/components/table/table.tsx
7121
+ // src/components/scroll/scrollArea.tsx
7122
+ var import_tailwind_variants14 = require("tailwind-variants");
7061
7123
  var import_jsx_runtime18 = require("react/jsx-runtime");
7124
+ var ScrollArea = ({ children, className, direction, size }) => {
7125
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: clsx(scrollAreaStyle({ direction, size }), className), children });
7126
+ };
7127
+ ScrollArea.displayName = "ScrollArea";
7128
+ var scrollArea_default = ScrollArea;
7129
+ var scrollAreaStyle = (0, import_tailwind_variants14.tv)({
7130
+ base: [
7131
+ "h-full",
7132
+ "x-full",
7133
+ "scrollbar-thumb-trans-soft",
7134
+ "hover:scrollbar-thumb-neutral-light",
7135
+ "scrollbar-track-neutral-soft",
7136
+ "scrollbar-button-neutral-main"
7137
+ ],
7138
+ variants: {
7139
+ direction: {
7140
+ x: ["overflow-x-auto", "overflow-y-hidden"],
7141
+ y: ["overflow-y-auto", "overflow-x-hidden"],
7142
+ both: ["overflow-auto"]
7143
+ },
7144
+ size: {
7145
+ sm: ["scrollbar-sm"],
7146
+ // "scrollbar-thin",
7147
+ md: ["scrollbar-md"],
7148
+ lg: ["scrollbar-lg"]
7149
+ }
7150
+ },
7151
+ defaultVariants: {
7152
+ direction: "both",
7153
+ size: "md"
7154
+ }
7155
+ });
7156
+
7157
+ // src/components/table/table.tsx
7158
+ var import_jsx_runtime19 = require("react/jsx-runtime");
7062
7159
  var Table = (0, import_react17.forwardRef)((originalProps, ref) => {
7063
7160
  const [props, variantProps] = mapPropsVariants(originalProps, tableStyle.variantKeys);
7064
7161
  const {
@@ -7095,9 +7192,9 @@ var Table = (0, import_react17.forwardRef)((originalProps, ref) => {
7095
7192
  setCheckedRows(newChecked);
7096
7193
  };
7097
7194
  const slots = (0, import_react17.useMemo)(() => tableStyle(variantProps), [variantProps]);
7098
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { ref: divRef, "data-table": "base", className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
7099
- /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("table", { className: slots.table({ class: classNames == null ? void 0 : classNames.table }), children: [
7100
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
7195
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { ref: divRef, "data-table": "base", className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
7196
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(scrollArea_default, { size: size === "xl" ? "lg" : size, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("table", { className: slots.table({ class: classNames == null ? void 0 : classNames.table }), children: [
7197
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
7101
7198
  table_head_default,
7102
7199
  {
7103
7200
  columns,
@@ -7109,7 +7206,7 @@ var Table = (0, import_react17.forwardRef)((originalProps, ref) => {
7109
7206
  slots
7110
7207
  }
7111
7208
  ),
7112
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
7209
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
7113
7210
  table_body_default,
7114
7211
  {
7115
7212
  slots,
@@ -7123,8 +7220,8 @@ var Table = (0, import_react17.forwardRef)((originalProps, ref) => {
7123
7220
  classNames
7124
7221
  }
7125
7222
  )
7126
- ] }),
7127
- showPagination && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("div", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
7223
+ ] }) }),
7224
+ showPagination && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "flex justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
7128
7225
  pagination_default,
7129
7226
  {
7130
7227
  color,
@@ -7138,7 +7235,7 @@ var Table = (0, import_react17.forwardRef)((originalProps, ref) => {
7138
7235
  });
7139
7236
  Table.displayName = "Table";
7140
7237
  var table_default = Table;
7141
- var tableStyle = (0, import_tailwind_variants14.tv)({
7238
+ var tableStyle = (0, import_tailwind_variants15.tv)({
7142
7239
  slots: {
7143
7240
  base: ["flex", "flex-col", "relative", "select-none", "gap-[20px]"],
7144
7241
  table: ["w-full", "h-auto"],
@@ -7406,10 +7503,10 @@ var useSelect = ({ options, defaultOption, onChange }) => {
7406
7503
  };
7407
7504
 
7408
7505
  // src/components/select/option.tsx
7409
- var import_jsx_runtime19 = require("react/jsx-runtime");
7506
+ var import_jsx_runtime20 = require("react/jsx-runtime");
7410
7507
  var Option = (props) => {
7411
7508
  const { base, option, icon } = optionStyle(props);
7412
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
7509
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
7413
7510
  "div",
7414
7511
  {
7415
7512
  title: props.option.value,
@@ -7419,8 +7516,8 @@ var Option = (props) => {
7419
7516
  props.isSelected && (node == null ? void 0 : node.scrollIntoView());
7420
7517
  },
7421
7518
  children: [
7422
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: option(), children: props.children }),
7423
- props.isSelected && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: icon(), children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Icon_default, { name: "check", size: props.size }) })
7519
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: option(), children: props.children }),
7520
+ props.isSelected && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: icon(), children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icon_default, { name: "check", size: props.size }) })
7424
7521
  ]
7425
7522
  }
7426
7523
  );
@@ -7471,7 +7568,7 @@ var optionStyle = tv({
7471
7568
  });
7472
7569
 
7473
7570
  // src/components/select/select.tsx
7474
- var import_jsx_runtime20 = require("react/jsx-runtime");
7571
+ var import_jsx_runtime21 = require("react/jsx-runtime");
7475
7572
  var Select = (0, import_react19.forwardRef)((originalProps, ref) => {
7476
7573
  const [props, variantProps] = mapPropsVariants(originalProps, select.variantKeys);
7477
7574
  const { classNames, options, defaultOption, onChange, ...inputProps } = props;
@@ -7535,17 +7632,17 @@ var Select = (0, import_react19.forwardRef)((originalProps, ref) => {
7535
7632
  }),
7536
7633
  [slots, classNames]
7537
7634
  );
7538
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
7539
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { ...getBaseProps(), children: [
7540
- props.label && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("label", { ...getLabelProps(), children: props.label }),
7541
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { "data-expanded": !!targetRect, ...getSelectWrapperProps(), children: [
7542
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("input", { ...getSelectProps() }),
7543
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Icon_default, { name: !!targetRect ? "arrow-triangle-up" : "arrow-triangle-down", size: originalProps.size, fill: true })
7635
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_jsx_runtime21.Fragment, { children: [
7636
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { ...getBaseProps(), children: [
7637
+ props.label && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("label", { ...getLabelProps(), children: props.label }),
7638
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { "data-expanded": !!targetRect, ...getSelectWrapperProps(), children: [
7639
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("input", { ...getSelectProps() }),
7640
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Icon_default, { name: !!targetRect ? "arrow-triangle-up" : "arrow-triangle-down", size: originalProps.size, fill: true })
7544
7641
  ] }),
7545
- props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { ...getErrorMessageProps(), children: props.errorMessage })
7642
+ props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("p", { ...getErrorMessageProps(), children: props.errorMessage })
7546
7643
  ] }),
7547
- targetRect && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_jsx_runtime20.Fragment, { children: (0, import_react_dom.createPortal)(
7548
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
7644
+ targetRect && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_jsx_runtime21.Fragment, { children: (0, import_react_dom.createPortal)(
7645
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
7549
7646
  "div",
7550
7647
  {
7551
7648
  ...getOptionsWrapperProps(),
@@ -7555,7 +7652,7 @@ var Select = (0, import_react19.forwardRef)((originalProps, ref) => {
7555
7652
  left: position == null ? void 0 : position.left,
7556
7653
  width: targetRect.width
7557
7654
  },
7558
- children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
7655
+ children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
7559
7656
  option_default,
7560
7657
  {
7561
7658
  variant: originalProps.variant,
@@ -7705,15 +7802,15 @@ var select = tv({
7705
7802
 
7706
7803
  // src/components/chip/chip.tsx
7707
7804
  var import_react20 = require("react");
7708
- var import_jsx_runtime21 = require("react/jsx-runtime");
7805
+ var import_jsx_runtime22 = require("react/jsx-runtime");
7709
7806
  var Chip = (0, import_react20.forwardRef)((originalProps, ref) => {
7710
7807
  var _a;
7711
7808
  const [rawProps, variantProps] = mapPropsVariants(originalProps, chipStyle.variantKeys);
7712
7809
  const props = { ...rawProps, ...variantProps };
7713
7810
  const Component = props.onClick ? "button" : "div";
7714
7811
  const slots = (0, import_react20.useMemo)(() => chipStyle({ ...variantProps }), [variantProps]);
7715
- const renderIcon = (name) => name ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Icon_default, { name, fill: true, size: props.size, className: slots.icon() }) : null;
7716
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
7812
+ const renderIcon = (name) => name ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Icon_default, { name, fill: true, size: props.size, className: slots.icon() }) : null;
7813
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
7717
7814
  Component,
7718
7815
  {
7719
7816
  ref,
@@ -7889,12 +7986,12 @@ var chipStyle = tv({
7889
7986
 
7890
7987
  // src/components/radio/radio.tsx
7891
7988
  var import_react21 = require("react");
7892
- var import_jsx_runtime22 = require("react/jsx-runtime");
7989
+ var import_jsx_runtime23 = require("react/jsx-runtime");
7893
7990
  var Radio = (0, import_react21.forwardRef)((originalProps, ref) => {
7894
7991
  const [props, variantProps] = mapPropsVariants(originalProps, radioStyle.variantKeys);
7895
7992
  const { children, classNames, labelPosition = "end", ...inputProps } = props;
7896
7993
  const slots = (0, import_react21.useMemo)(() => radioStyle({ ...variantProps }), [variantProps]);
7897
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
7994
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
7898
7995
  "label",
7899
7996
  {
7900
7997
  className: clsx(
@@ -7902,9 +7999,9 @@ var Radio = (0, import_react21.forwardRef)((originalProps, ref) => {
7902
7999
  labelPosition === "start" && slots.labelReverse({ class: classNames == null ? void 0 : classNames.labelReverse })
7903
8000
  ),
7904
8001
  children: [
7905
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("input", { ...inputProps, type: "radio", ref }) }),
7906
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: slots.outerDot({ class: classNames == null ? void 0 : classNames.outerDot }), children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: slots.innerDot({ class: classNames == null ? void 0 : classNames.innerDot }) }) }),
7907
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: slots.labelWrapper({ class: classNames == null ? void 0 : classNames.labelWrapper }), children: children && /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children }) })
8002
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "hidden", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("input", { ...inputProps, type: "radio", ref }) }),
8003
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: slots.outerDot({ class: classNames == null ? void 0 : classNames.outerDot }), children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: slots.innerDot({ class: classNames == null ? void 0 : classNames.innerDot }) }) }),
8004
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: slots.labelWrapper({ class: classNames == null ? void 0 : classNames.labelWrapper }), children: children && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children }) })
7908
8005
  ]
7909
8006
  }
7910
8007
  );
@@ -8045,20 +8142,20 @@ var radioStyle = tv({
8045
8142
 
8046
8143
  // src/components/switch/switch.tsx
8047
8144
  var import_react22 = require("react");
8048
- var import_tailwind_variants19 = require("tailwind-variants");
8049
- var import_jsx_runtime23 = require("react/jsx-runtime");
8145
+ var import_tailwind_variants20 = require("tailwind-variants");
8146
+ var import_jsx_runtime24 = require("react/jsx-runtime");
8050
8147
  var Switch = (0, import_react22.forwardRef)((originalProps, ref) => {
8051
8148
  const [rawProps, variantProps] = mapPropsVariants(originalProps, switchStyle.variantKeys);
8052
8149
  const { size, color, isDisabled, disableAnimation, id, classNames, ...inputProps } = { ...rawProps, ...variantProps };
8053
8150
  const slots = (0, import_react22.useMemo)(() => switchStyle({ ...variantProps }), [variantProps]);
8054
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("label", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
8055
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("input", { ...inputProps, id, ref, type: "checkbox", disabled: isDisabled, className: "hidden" }),
8056
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: slots.outerWrapper({ class: classNames == null ? void 0 : classNames.outerWrapper }), children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: slots.thumb({ class: classNames == null ? void 0 : classNames.thumb }) }) }) })
8151
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("label", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
8152
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("input", { ...inputProps, id, ref, type: "checkbox", disabled: isDisabled, className: "hidden" }),
8153
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: slots.outerWrapper({ class: classNames == null ? void 0 : classNames.outerWrapper }), children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { className: slots.thumb({ class: classNames == null ? void 0 : classNames.thumb }) }) }) })
8057
8154
  ] });
8058
8155
  });
8059
8156
  Switch.displayName = "Switch";
8060
8157
  var switch_default = Switch;
8061
- var switchStyle = (0, import_tailwind_variants19.tv)({
8158
+ var switchStyle = (0, import_tailwind_variants20.tv)({
8062
8159
  slots: {
8063
8160
  base: ["group/switch", "relative", "max-w-fit", "inline-flex", "items-center", "justify-start", "cursor-pointer"],
8064
8161
  outerWrapper: [
@@ -8320,7 +8417,7 @@ var useTooltip = ({ placement, offset, targetRect }) => {
8320
8417
  };
8321
8418
 
8322
8419
  // src/components/tooltip/tooltip.tsx
8323
- var import_jsx_runtime24 = require("react/jsx-runtime");
8420
+ var import_jsx_runtime25 = require("react/jsx-runtime");
8324
8421
  var Tooltip = (0, import_react24.forwardRef)((originalProps, ref) => {
8325
8422
  const [props, variantProps] = mapPropsVariants(originalProps, tooltipStyle.variantKeys);
8326
8423
  const { placement = "top", offset = 5, delay = 100, persistent = false, classNames } = props;
@@ -8363,8 +8460,8 @@ var Tooltip = (0, import_react24.forwardRef)((originalProps, ref) => {
8363
8460
  (0, import_react24.useEffect)(() => {
8364
8461
  if (persistent) showTooltip();
8365
8462
  }, [persistent, showTooltip]);
8366
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_jsx_runtime24.Fragment, { children: [
8367
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
8463
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_jsx_runtime25.Fragment, { children: [
8464
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
8368
8465
  "div",
8369
8466
  {
8370
8467
  ref: (node) => {
@@ -8381,7 +8478,7 @@ var Tooltip = (0, import_react24.forwardRef)((originalProps, ref) => {
8381
8478
  }
8382
8479
  ),
8383
8480
  targetRect && (0, import_react_dom2.createPortal)(
8384
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
8481
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
8385
8482
  "div",
8386
8483
  {
8387
8484
  ref: tooltipRef,
@@ -8394,7 +8491,7 @@ var Tooltip = (0, import_react24.forwardRef)((originalProps, ref) => {
8394
8491
  },
8395
8492
  children: [
8396
8493
  props.content,
8397
- variantProps.tail && /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
8494
+ variantProps.tail && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
8398
8495
  "div",
8399
8496
  {
8400
8497
  className: `absolute h-2 w-2 rotate-45 bg-inherit ${getTailClassName(placement)}`,
@@ -8447,7 +8544,7 @@ var tooltipStyle = tv({
8447
8544
  // src/components/modal/modal.tsx
8448
8545
  var import_react25 = require("react");
8449
8546
  var import_react_dom3 = require("react-dom");
8450
- var import_jsx_runtime25 = require("react/jsx-runtime");
8547
+ var import_jsx_runtime26 = require("react/jsx-runtime");
8451
8548
  var Modal = (0, import_react25.forwardRef)((originalProps, ref) => {
8452
8549
  const [props, variantProps] = mapPropsVariants(originalProps, modal.variantKeys);
8453
8550
  const {
@@ -8556,20 +8653,20 @@ var Modal = (0, import_react25.forwardRef)((originalProps, ref) => {
8556
8653
  document.body.classList.remove("overflow-hidden");
8557
8654
  };
8558
8655
  }, [isOpen, isKeyboardDismissDisabled, onCancel]);
8559
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_jsx_runtime25.Fragment, { children: isOpen && (0, import_react_dom3.createPortal)(
8560
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { ...getBackdropProps(), children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { ref, ...getModalWrapperProps(), children: [
8561
- typeof icon === "string" ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { ...getIconProps(), children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Icon_default, { name: icon, className: "h-[80px] w-[80px]" }) }) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { ...getIconProps(), children: icon }),
8562
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { ...getBodyWrapperProps(), children: [
8563
- showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Icon_default, { name: "close", ...getCloseIconProps(), onClick: onCancel }),
8564
- /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { ...getBodyProps(), children: [
8565
- (title || subTitle) && /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { ...getTitleWrapperProps(), children: [
8566
- title && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { ...getTitleProps(), children: title }),
8567
- subTitle && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { ...getSubTitleProps(), children: subTitle })
8656
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_jsx_runtime26.Fragment, { children: isOpen && (0, import_react_dom3.createPortal)(
8657
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ...getBackdropProps(), children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { ref, ...getModalWrapperProps(), children: [
8658
+ typeof icon === "string" ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ...getIconProps(), children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Icon_default, { name: icon, className: "h-[80px] w-[80px]" }) }) : /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ...getIconProps(), children: icon }),
8659
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { ...getBodyWrapperProps(), children: [
8660
+ showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(Icon_default, { name: "close", ...getCloseIconProps(), onClick: onCancel }),
8661
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { ...getBodyProps(), children: [
8662
+ (title || subTitle) && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { ...getTitleWrapperProps(), children: [
8663
+ title && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ...getTitleProps(), children: title }),
8664
+ subTitle && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ...getSubTitleProps(), children: subTitle })
8568
8665
  ] }),
8569
- content && typeof content === "string" ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { ...getContentProps(), children: content }) : content,
8570
- (cancelButtonText || confirmButtonText) && /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { ...getFooterWrapperProps(), children: [
8571
- cancelButtonText && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(button_default, { variant: "outline", color: originalProps.color, fullWidth: true, onClick: onCancel, children: cancelButtonText }),
8572
- confirmButtonText && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(button_default, { size: "md", color: originalProps.color, fullWidth: true, onClick: onConfirm, children: confirmButtonText })
8666
+ content && typeof content === "string" ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ...getContentProps(), children: content }) : content,
8667
+ (cancelButtonText || confirmButtonText) && /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { ...getFooterWrapperProps(), children: [
8668
+ cancelButtonText && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(button_default, { variant: "outline", color: originalProps.color, fullWidth: true, onClick: onCancel, children: cancelButtonText }),
8669
+ confirmButtonText && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(button_default, { size: "md", color: originalProps.color, fullWidth: true, onClick: onConfirm, children: confirmButtonText })
8573
8670
  ] })
8574
8671
  ] })
8575
8672
  ] })
@@ -8641,12 +8738,12 @@ var modal = tv({
8641
8738
 
8642
8739
  // src/components/list/list.tsx
8643
8740
  var import_react26 = require("react");
8644
- var import_jsx_runtime26 = require("react/jsx-runtime");
8741
+ var import_jsx_runtime27 = require("react/jsx-runtime");
8645
8742
  var List = (0, import_react26.forwardRef)((originalProps, ref) => {
8646
8743
  const [props, variantProps] = mapPropsVariants(originalProps, listStyle.variantKeys);
8647
8744
  const { children, classNames } = props;
8648
8745
  const slots = (0, import_react26.useMemo)(() => listStyle(variantProps), [variantProps]);
8649
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: import_react26.Children.map(children, (child) => {
8746
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: import_react26.Children.map(children, (child) => {
8650
8747
  if (!(0, import_react26.isValidElement)(child)) return child;
8651
8748
  return (0, import_react26.cloneElement)(child, {
8652
8749
  ...variantProps,
@@ -8686,7 +8783,7 @@ var listStyle = tv({
8686
8783
 
8687
8784
  // src/components/list/listItem.tsx
8688
8785
  var import_react27 = require("react");
8689
- var import_jsx_runtime27 = require("react/jsx-runtime");
8786
+ var import_jsx_runtime28 = require("react/jsx-runtime");
8690
8787
  var ListItem = (0, import_react27.forwardRef)((props, ref) => {
8691
8788
  const [rawProps, variantProps] = mapPropsVariants(props, listItemStyle.variantKeys);
8692
8789
  const {
@@ -8702,16 +8799,16 @@ var ListItem = (0, import_react27.forwardRef)((props, ref) => {
8702
8799
  const slots = (0, import_react27.useMemo)(() => listItemStyle(variantProps), [variantProps]);
8703
8800
  const iconSize = ["lg", "xl"].includes(size) ? "lg" : "md";
8704
8801
  const avatarSize = iconSize;
8705
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), "data-selected": selected, onClick, children: [
8706
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
8707
- avatar && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(avatar_default, { ...avatar, variant: "round", size: avatarSize }),
8708
- startIconName && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Icon_default, { name: startIconName, fill: true, size, className: slots.startIcon({ class: classNames == null ? void 0 : classNames.startIcon }) }),
8709
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: slots.titleWrapper({ class: classNames == null ? void 0 : classNames.titleWrapper }), children: [
8710
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: slots.title({ class: classNames == null ? void 0 : classNames.title }), children: title }),
8711
- subTitle && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: slots.subTitle({ class: classNames == null ? void 0 : classNames.subTitle }), children: subTitle })
8802
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), "data-selected": selected, onClick, children: [
8803
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
8804
+ avatar && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(avatar_default, { ...avatar, variant: "round", size: avatarSize }),
8805
+ startIconName && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon_default, { name: startIconName, fill: true, size, className: slots.startIcon({ class: classNames == null ? void 0 : classNames.startIcon }) }),
8806
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: slots.titleWrapper({ class: classNames == null ? void 0 : classNames.titleWrapper }), children: [
8807
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: slots.title({ class: classNames == null ? void 0 : classNames.title }), children: title }),
8808
+ subTitle && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: slots.subTitle({ class: classNames == null ? void 0 : classNames.subTitle }), children: subTitle })
8712
8809
  ] })
8713
8810
  ] }),
8714
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Icon_default, { name: "right-chevron", size: iconSize, className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }) })
8811
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon_default, { name: "right-chevron", size: iconSize, className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }) })
8715
8812
  ] });
8716
8813
  });
8717
8814
  ListItem.displayName = "ListItem";
@@ -8880,7 +8977,7 @@ var listItemStyle = tv({
8880
8977
 
8881
8978
  // src/components/toast/toast.tsx
8882
8979
  var import_react28 = require("react");
8883
- var import_jsx_runtime28 = require("react/jsx-runtime");
8980
+ var import_jsx_runtime29 = require("react/jsx-runtime");
8884
8981
  var Toast = (0, import_react28.forwardRef)((originalProps, ref) => {
8885
8982
  const [props, variantProps] = mapPropsVariants(originalProps, toast.variantKeys);
8886
8983
  const { width = 300, placement, classNames, showIcon = true, showCloseButton = true, onClose, ...toastProps } = props;
@@ -8909,10 +9006,10 @@ var Toast = (0, import_react28.forwardRef)((originalProps, ref) => {
8909
9006
  }),
8910
9007
  [slots, classNames == null ? void 0 : classNames.base]
8911
9008
  );
8912
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { ref: toastRef, ...getBaseProps(), children: [
8913
- showIcon && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon_default, { name: originalProps.icon || "info-circle", fill: true, className: "mt-[2px]" }),
8914
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "flex-1 select-none", children: props.content }),
8915
- showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon_default, { name: "close", className: "cursor-pointer mt-[2px]", onClick: onClose })
9009
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { ref: toastRef, ...getBaseProps(), children: [
9010
+ showIcon && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Icon_default, { name: originalProps.icon || "info-circle", fill: true, className: "mt-[2px]" }),
9011
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "flex-1 select-none", children: props.content }),
9012
+ showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Icon_default, { name: "close", className: "cursor-pointer mt-[2px]", onClick: onClose })
8916
9013
  ] });
8917
9014
  });
8918
9015
  Toast.displayName = "Toast";
@@ -9021,7 +9118,7 @@ var getToastPosition = (placement, width, offset) => {
9021
9118
  };
9022
9119
 
9023
9120
  // src/components/toast/use-toast.tsx
9024
- var import_jsx_runtime29 = require("react/jsx-runtime");
9121
+ var import_jsx_runtime30 = require("react/jsx-runtime");
9025
9122
  var ToastContext = (0, import_react29.createContext)(null);
9026
9123
  var useToast = () => {
9027
9124
  const context = (0, import_react29.useContext)(ToastContext);
@@ -9084,9 +9181,9 @@ var ToastProvider = ({
9084
9181
  window.addEventListener("resize", calculatePosition);
9085
9182
  return () => window.removeEventListener("resize", calculatePosition);
9086
9183
  }, [globalOptions == null ? void 0 : globalOptions.placement, globalOptions == null ? void 0 : globalOptions.width]);
9087
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(ToastContext.Provider, { value, children: [
9184
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(ToastContext.Provider, { value, children: [
9088
9185
  children,
9089
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { id: "deepnoid-toast-container", className: "flex flex-col gap-[10px]", style: containerStyle, children: toasts.map((toast2) => /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(toast_default, { ref: toastRef, onClose: () => removeToast(toast2.id), ...toast2 }, toast2.id)) })
9186
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { id: "deepnoid-toast-container", className: "flex flex-col gap-[10px]", style: containerStyle, children: toasts.map((toast2) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(toast_default, { ref: toastRef, onClose: () => removeToast(toast2.id), ...toast2 }, toast2.id)) })
9090
9187
  ] });
9091
9188
  };
9092
9189
 
@@ -9189,7 +9286,7 @@ var useDatePicker = ({ initialDate, initialTime }) => {
9189
9286
 
9190
9287
  // src/components/dateTimePicker/calendar.tsx
9191
9288
  var import_react31 = __toESM(require("react"));
9192
- var import_jsx_runtime30 = require("react/jsx-runtime");
9289
+ var import_jsx_runtime31 = require("react/jsx-runtime");
9193
9290
  var Calendar = (0, import_react31.forwardRef)((originalProps, ref) => {
9194
9291
  const [props, variantProps] = mapPropsVariants(originalProps, calendarStyle.variantKeys);
9195
9292
  const { selectedDate, classNames, highlightWeekend = true, onChangeDate, ...inputProps } = props;
@@ -9290,18 +9387,18 @@ var Calendar = (0, import_react31.forwardRef)((originalProps, ref) => {
9290
9387
  [slots, classNames, selectedDate, currentDate, highlightWeekend]
9291
9388
  );
9292
9389
  const calendarDates = getCalendarDates();
9293
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_jsx_runtime30.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { ...getBaseProps(), children: [
9294
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "calendar-header flex justify-between items-center mb-4", children: [
9295
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Icon_default, { name: "brace-left", size: "md", className: "cursor-pointer", onClick: handlePrevMonth }),
9296
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-h6 font-semibold", children: currentDate.toLocaleString("default", { year: "numeric", month: "2-digit" }) }),
9297
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Icon_default, { name: "brace-right", size: "md", className: "cursor-pointer", onClick: handleNextMonth })
9390
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_jsx_runtime31.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { ...getBaseProps(), children: [
9391
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "calendar-header flex justify-between items-center mb-4", children: [
9392
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Icon_default, { name: "brace-left", size: "md", className: "cursor-pointer", onClick: handlePrevMonth }),
9393
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-h6 font-semibold", children: currentDate.toLocaleString("default", { year: "numeric", month: "2-digit" }) }),
9394
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Icon_default, { name: "brace-right", size: "md", className: "cursor-pointer", onClick: handleNextMonth })
9298
9395
  ] }),
9299
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "grid grid-cols-7 gap-2 text-center", children: daysOfWeek.map((day, index) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { ...getDateTitleProps(index), children: day }, `${day}-${index}`)) }),
9300
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "grid grid-cols-7 gap-[5px] text-center mt-2", children: calendarDates.map((week, weekIndex) => {
9396
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "grid grid-cols-7 gap-2 text-center", children: daysOfWeek.map((day, index) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { ...getDateTitleProps(index), children: day }, `${day}-${index}`)) }),
9397
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "grid grid-cols-7 gap-[5px] text-center mt-2", children: calendarDates.map((week, weekIndex) => {
9301
9398
  const hasCurrentMonthDates = week.some((dateObj) => dateObj.currentMonth);
9302
9399
  if (!hasCurrentMonthDates) return null;
9303
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react31.default.Fragment, { children: week.map((dateObj, index) => {
9304
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { ...getDateProps(dateObj), children: dateObj.date }, index);
9400
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react31.default.Fragment, { children: week.map((dateObj, index) => {
9401
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { ...getDateProps(dateObj), children: dateObj.date }, index);
9305
9402
  }) }, weekIndex);
9306
9403
  }) })
9307
9404
  ] }) });
@@ -9373,7 +9470,7 @@ var calendarStyle = tv({
9373
9470
 
9374
9471
  // src/components/dateTimePicker/timePicker.tsx
9375
9472
  var import_react32 = require("react");
9376
- var import_jsx_runtime31 = require("react/jsx-runtime");
9473
+ var import_jsx_runtime32 = require("react/jsx-runtime");
9377
9474
  var TimePicker = ({ color = "primary", selectedTime, isFocusInput, onChangeTime }) => {
9378
9475
  const TOTAL_HOURS = 12;
9379
9476
  const TOTAL_MINUTES = 60;
@@ -9435,8 +9532,8 @@ var TimePicker = ({ color = "primary", selectedTime, isFocusInput, onChangeTime
9435
9532
  onChangeTime(formattedTime);
9436
9533
  }
9437
9534
  };
9438
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex h-[200px] p-[10px] gap-[5px] border border-neutral-main rounded-md bg-background shadow-lg", children: [
9439
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(list_default, { ref: periodRef, classNames: { base: "overflow-y-auto scrollbar-hide" }, children: PERIODS.map((period, index) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
9535
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex h-[200px] p-[10px] gap-[5px] border border-neutral-main rounded-md bg-background shadow-lg", children: [
9536
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(list_default, { ref: periodRef, classNames: { base: "overflow-y-auto scrollbar-hide" }, children: PERIODS.map((period, index) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
9440
9537
  listItem_default,
9441
9538
  {
9442
9539
  color,
@@ -9450,7 +9547,7 @@ var TimePicker = ({ color = "primary", selectedTime, isFocusInput, onChangeTime
9450
9547
  },
9451
9548
  `${period}-${index}`
9452
9549
  )) }),
9453
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(list_default, { ref: hourRef, classNames: { base: "overflow-y-auto scrollbar-hide" }, children: hoursArray.map((hour, index) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
9550
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(list_default, { ref: hourRef, classNames: { base: "overflow-y-auto scrollbar-hide" }, children: hoursArray.map((hour, index) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
9454
9551
  listItem_default,
9455
9552
  {
9456
9553
  color,
@@ -9464,7 +9561,7 @@ var TimePicker = ({ color = "primary", selectedTime, isFocusInput, onChangeTime
9464
9561
  },
9465
9562
  `${hour}-${index}`
9466
9563
  )) }),
9467
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(list_default, { ref: minuteRef, classNames: { base: "overflow-y-auto scrollbar-hide" }, children: minutesArray.map((minute, index) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
9564
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(list_default, { ref: minuteRef, classNames: { base: "overflow-y-auto scrollbar-hide" }, children: minutesArray.map((minute, index) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
9468
9565
  listItem_default,
9469
9566
  {
9470
9567
  color,
@@ -9483,7 +9580,7 @@ var TimePicker = ({ color = "primary", selectedTime, isFocusInput, onChangeTime
9483
9580
  var timePicker_default = TimePicker;
9484
9581
 
9485
9582
  // src/components/dateTimePicker/dateTimePicker.tsx
9486
- var import_jsx_runtime32 = require("react/jsx-runtime");
9583
+ var import_jsx_runtime33 = require("react/jsx-runtime");
9487
9584
  var DatePicker = (0, import_react33.forwardRef)((originalProps, ref) => {
9488
9585
  const [props, variantProps] = mapPropsVariants(originalProps, dateTimePickerStyle.variantKeys);
9489
9586
  const {
@@ -9598,10 +9695,10 @@ var DatePicker = (0, import_react33.forwardRef)((originalProps, ref) => {
9598
9695
  return import_react33.default.cloneElement(startContent, mergedProps);
9599
9696
  } else {
9600
9697
  const contentProps = getContentProps();
9601
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { ...contentProps, children: startContent });
9698
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { ...contentProps, children: startContent });
9602
9699
  }
9603
9700
  };
9604
- const renderDateTimePickerIcon = () => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { ...getContentProps(), onClick: handleToggleDatePicker, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
9701
+ const renderDateTimePickerIcon = () => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { ...getContentProps(), onClick: handleToggleDatePicker, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
9605
9702
  Icon_default,
9606
9703
  {
9607
9704
  name: type === "time" ? "clock" : "calendar",
@@ -9620,9 +9717,9 @@ var DatePicker = (0, import_react33.forwardRef)((originalProps, ref) => {
9620
9717
  return import_react33.default.cloneElement(endContent, mergedProps);
9621
9718
  } else if (errorMessage) {
9622
9719
  const iconProps = { ...getContentProps(), className: getContentProps().className };
9623
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { ...iconProps, children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Icon_default, { name: "exclamation-circle", fill: true, size: originalProps.size }) });
9720
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { ...iconProps, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Icon_default, { name: "exclamation-circle", fill: true, size: originalProps.size }) });
9624
9721
  } else {
9625
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_jsx_runtime32.Fragment, {});
9722
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, {});
9626
9723
  }
9627
9724
  };
9628
9725
  const renderEndContent = () => {
@@ -9637,20 +9734,20 @@ var DatePicker = (0, import_react33.forwardRef)((originalProps, ref) => {
9637
9734
  return renderContentWithIcon();
9638
9735
  }
9639
9736
  };
9640
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
9641
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { ...getBaseProps(), children: [
9642
- label && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("label", { ...getLabelProps(), children: label }),
9643
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { ...getInnerWrapperProps(), children: [
9644
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { ...getInputWrapperProps(), children: [
9737
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
9738
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { ...getBaseProps(), children: [
9739
+ label && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("label", { ...getLabelProps(), children: label }),
9740
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { ...getInnerWrapperProps(), children: [
9741
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { ...getInputWrapperProps(), children: [
9645
9742
  startContent && renderStartContent(),
9646
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("input", { ...getInputProps() }),
9743
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("input", { ...getInputProps() }),
9647
9744
  renderEndContent()
9648
9745
  ] }),
9649
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { ...getErrorMessageProps(), children: errorMessage })
9746
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { ...getErrorMessageProps(), children: errorMessage })
9650
9747
  ] })
9651
9748
  ] }),
9652
- targetRect && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_jsx_runtime32.Fragment, { children: (0, import_react_dom4.createPortal)(
9653
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
9749
+ targetRect && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_jsx_runtime33.Fragment, { children: (0, import_react_dom4.createPortal)(
9750
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
9654
9751
  "div",
9655
9752
  {
9656
9753
  ref: datePickerWrapperRef,
@@ -9661,7 +9758,7 @@ var DatePicker = (0, import_react33.forwardRef)((originalProps, ref) => {
9661
9758
  zIndex: 1e3
9662
9759
  },
9663
9760
  children: [
9664
- type === "date" && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
9761
+ type === "date" && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
9665
9762
  calendar_default,
9666
9763
  {
9667
9764
  color: originalProps.color,
@@ -9673,7 +9770,7 @@ var DatePicker = (0, import_react33.forwardRef)((originalProps, ref) => {
9673
9770
  }
9674
9771
  }
9675
9772
  ),
9676
- type === "time" && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
9773
+ type === "time" && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
9677
9774
  timePicker_default,
9678
9775
  {
9679
9776
  color: originalProps.color,
@@ -9839,6 +9936,7 @@ var dateTimePickerStyle = tv({
9839
9936
  Modal,
9840
9937
  Pagination,
9841
9938
  Radio,
9939
+ ScrollArea,
9842
9940
  Select,
9843
9941
  Switch,
9844
9942
  Table,