@deepnoid/ui 0.1.120 → 0.1.122

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 (108) hide show
  1. package/.turbo/turbo-build.log +157 -157
  2. package/dist/{chunk-IJS5AWD2.mjs → chunk-27K5BTEL.mjs} +1 -1
  3. package/dist/{chunk-EXUHHLSA.mjs → chunk-2IOTRPCS.mjs} +1 -1
  4. package/dist/{chunk-CMMVXFHD.mjs → chunk-3F6OF2QS.mjs} +1 -1
  5. package/dist/{chunk-YLHOBT6S.mjs → chunk-5MINOKNM.mjs} +1 -1
  6. package/dist/{chunk-NV5Z6ZUO.mjs → chunk-6JLHCQH7.mjs} +1 -1
  7. package/dist/{chunk-YUS5SELP.mjs → chunk-AT6GNVOQ.mjs} +1 -1
  8. package/dist/{chunk-CTWYY7Z2.mjs → chunk-BG4DIGKH.mjs} +14 -8
  9. package/dist/{chunk-3M6VYLOU.mjs → chunk-D6MHTE5L.mjs} +6 -6
  10. package/dist/{chunk-NMZFSNPE.mjs → chunk-DD6HAIW3.mjs} +1 -1
  11. package/dist/{chunk-OBMO6LRA.mjs → chunk-DLNGJVFS.mjs} +1 -1
  12. package/dist/{chunk-MHZ4BO5M.mjs → chunk-E2LGBO2H.mjs} +2 -2
  13. package/dist/{chunk-MIVGSJFF.mjs → chunk-GZEAMYAO.mjs} +190 -94
  14. package/dist/{chunk-BBQNVDIA.mjs → chunk-HX64P3XQ.mjs} +2 -2
  15. package/dist/{chunk-KCOS2KC6.mjs → chunk-LOYDOCOR.mjs} +2 -2
  16. package/dist/{chunk-Q5634WTM.mjs → chunk-RVFSQFWS.mjs} +3 -3
  17. package/dist/{chunk-27WK5334.mjs → chunk-VEBJS4SC.mjs} +2 -2
  18. package/dist/{chunk-RJPBLIEF.mjs → chunk-VOKDAIUY.mjs} +1 -1
  19. package/dist/{chunk-NITERGU5.mjs → chunk-WB7Z54CF.mjs} +4 -4
  20. package/dist/{chunk-SS6EG5JO.mjs → chunk-XOUAUSP4.mjs} +1 -1
  21. package/dist/{chunk-EM2NIGNZ.mjs → chunk-YZ57UYAS.mjs} +1 -1
  22. package/dist/components/avatar/avatar.js +14 -8
  23. package/dist/components/avatar/avatar.mjs +2 -2
  24. package/dist/components/avatar/index.js +14 -8
  25. package/dist/components/avatar/index.mjs +2 -2
  26. package/dist/components/breadcrumb/breadcrumb.js +14 -8
  27. package/dist/components/breadcrumb/breadcrumb.mjs +5 -5
  28. package/dist/components/breadcrumb/index.js +14 -8
  29. package/dist/components/breadcrumb/index.mjs +5 -5
  30. package/dist/components/button/button.js +14 -8
  31. package/dist/components/button/button.mjs +3 -3
  32. package/dist/components/button/icon-button.js +14 -8
  33. package/dist/components/button/icon-button.mjs +3 -3
  34. package/dist/components/button/index.js +14 -8
  35. package/dist/components/button/index.mjs +4 -4
  36. package/dist/components/chip/chip.js +14 -8
  37. package/dist/components/chip/chip.mjs +3 -3
  38. package/dist/components/chip/index.js +14 -8
  39. package/dist/components/chip/index.mjs +3 -3
  40. package/dist/components/fileUpload/fileUpload.js +14 -8
  41. package/dist/components/fileUpload/fileUpload.mjs +6 -6
  42. package/dist/components/fileUpload/index.js +14 -8
  43. package/dist/components/fileUpload/index.mjs +6 -6
  44. package/dist/components/icon/Icon.d.mts +1 -1
  45. package/dist/components/icon/Icon.d.ts +1 -1
  46. package/dist/components/icon/Icon.js +14 -8
  47. package/dist/components/icon/Icon.mjs +2 -2
  48. package/dist/components/icon/index.js +14 -8
  49. package/dist/components/icon/index.mjs +2 -2
  50. package/dist/components/icon/template.d.mts +1 -1
  51. package/dist/components/icon/template.d.ts +1 -1
  52. package/dist/components/icon/template.js +14 -8
  53. package/dist/components/icon/template.mjs +1 -1
  54. package/dist/components/input/index.js +14 -8
  55. package/dist/components/input/index.mjs +3 -3
  56. package/dist/components/input/input.js +14 -8
  57. package/dist/components/input/input.mjs +3 -3
  58. package/dist/components/list/index.js +14 -8
  59. package/dist/components/list/index.mjs +4 -4
  60. package/dist/components/list/listItem.js +14 -8
  61. package/dist/components/list/listItem.mjs +4 -4
  62. package/dist/components/modal/index.js +14 -8
  63. package/dist/components/modal/index.mjs +5 -5
  64. package/dist/components/modal/modal.js +14 -8
  65. package/dist/components/modal/modal.mjs +5 -5
  66. package/dist/components/pagination/index.js +14 -8
  67. package/dist/components/pagination/index.mjs +4 -4
  68. package/dist/components/pagination/pagination.js +14 -8
  69. package/dist/components/pagination/pagination.mjs +4 -4
  70. package/dist/components/picker/datePicker.js +14 -8
  71. package/dist/components/picker/datePicker.mjs +6 -6
  72. package/dist/components/picker/index.js +203 -101
  73. package/dist/components/picker/index.mjs +8 -8
  74. package/dist/components/picker/timePicker.js +203 -101
  75. package/dist/components/picker/timePicker.mjs +4 -4
  76. package/dist/components/select/index.d.mts +3 -0
  77. package/dist/components/select/index.d.ts +3 -0
  78. package/dist/components/select/index.js +203 -101
  79. package/dist/components/select/index.mjs +3 -3
  80. package/dist/components/select/select.d.mts +79 -9
  81. package/dist/components/select/select.d.ts +79 -9
  82. package/dist/components/select/select.js +203 -101
  83. package/dist/components/select/select.mjs +3 -3
  84. package/dist/components/table/definition-table.d.mts +2 -2
  85. package/dist/components/table/definition-table.d.ts +2 -2
  86. package/dist/components/table/definition-table.js +6 -6
  87. package/dist/components/table/definition-table.mjs +1 -1
  88. package/dist/components/table/index.js +20 -14
  89. package/dist/components/table/index.mjs +6 -6
  90. package/dist/components/table/table-body.js +14 -8
  91. package/dist/components/table/table-body.mjs +5 -5
  92. package/dist/components/table/table-head.js +14 -8
  93. package/dist/components/table/table-head.mjs +5 -5
  94. package/dist/components/table/table.js +14 -8
  95. package/dist/components/table/table.mjs +5 -5
  96. package/dist/components/toast/index.js +14 -8
  97. package/dist/components/toast/index.mjs +4 -4
  98. package/dist/components/toast/toast.js +14 -8
  99. package/dist/components/toast/toast.mjs +3 -3
  100. package/dist/components/toast/use-toast.js +14 -8
  101. package/dist/components/toast/use-toast.mjs +4 -4
  102. package/dist/components/tree/index.js +14 -8
  103. package/dist/components/tree/index.mjs +3 -3
  104. package/dist/components/tree/tree.js +14 -8
  105. package/dist/components/tree/tree.mjs +3 -3
  106. package/dist/index.js +209 -107
  107. package/dist/index.mjs +24 -24
  108. package/package.json +1 -1
@@ -1723,22 +1723,28 @@ var template = {
1723
1723
  }
1724
1724
  );
1725
1725
  },
1726
- // ----------------------------------- old ---------------------------------
1727
- // ** Status **
1728
- check: ({ className, fill }) => {
1726
+ check: ({ className }) => {
1729
1727
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1730
1728
  "svg",
1731
1729
  {
1732
- width: "24",
1733
- height: "24",
1734
- viewBox: "0 0 24 24",
1735
- fill: "none",
1736
1730
  xmlns: "http://www.w3.org/2000/svg",
1731
+ width: "27",
1732
+ height: "28",
1733
+ viewBox: "0 0 27 28",
1734
+ fill: "none",
1737
1735
  className,
1738
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M4.5 12.75L10.5 18.75L19.5 5.25", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
1736
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1737
+ "path",
1738
+ {
1739
+ d: "M21.9264 5.20931C22.1812 5.39338 22.3846 5.59774 22.4858 5.90334C22.5588 6.45228 22.3415 6.78579 22.0286 7.20666C21.9576 7.30047 21.8864 7.39405 21.8151 7.48762C21.6895 7.65415 21.5677 7.8235 21.4454 7.99253C21.2259 8.29482 21.0028 8.59408 20.7773 8.89185C20.4766 9.2892 20.1815 9.69044 19.889 10.094C19.8125 10.1993 19.7358 10.3044 19.659 10.4094C19.4079 10.7529 19.1577 11.0971 18.91 11.4431C18.8896 11.4716 18.8692 11.5001 18.8482 11.5294C18.7754 11.6314 18.703 11.7337 18.6307 11.8361C18.6035 11.8747 18.6035 11.8747 18.5756 11.9141C18.2362 12.3955 17.9059 12.8824 17.5821 13.3746C17.5478 13.4267 17.5478 13.4267 17.5128 13.4798C16.951 14.3338 16.425 15.1996 15.9364 16.0988C15.8817 16.1993 15.8266 16.2995 15.7713 16.3996C14.803 18.183 14.0974 20.1792 13.8032 22.1948C13.7275 22.4843 13.5304 22.7004 13.2862 22.8603C12.8671 23.0504 12.4792 23.0344 12.0524 22.8851C11.7159 22.6982 11.4492 22.3832 11.1807 22.1105C11.1305 22.06 11.1305 22.06 11.0793 22.0085C11.0463 21.9751 11.0133 21.9417 10.9793 21.9072C10.9355 21.8629 10.9355 21.8629 10.8908 21.8177C10.812 21.7336 10.738 21.6487 10.664 21.5606C10.4051 21.26 10.1208 20.9832 9.84198 20.7018C9.77941 20.6385 9.71685 20.5753 9.65429 20.512C9.52361 20.3798 9.39285 20.2478 9.26203 20.1158C9.0951 19.9473 8.92837 19.7787 8.76169 19.61C8.63267 19.4794 8.50355 19.349 8.37439 19.2186C8.3129 19.1564 8.25145 19.0943 8.19002 19.0321C7.78034 18.6148 7.78034 18.6148 7.3481 18.2218C7.26354 18.1493 7.18628 18.0708 7.1093 17.9902C6.97131 17.8488 6.8284 17.7169 6.67944 17.5876C6.56805 17.4895 6.45958 17.3885 6.35088 17.2873C6.15574 17.1075 5.95513 16.937 5.74972 16.7694C5.52338 16.5822 5.30225 16.3888 5.08115 16.1954C5.02902 16.1502 4.97647 16.1055 4.92361 16.0611C4.88291 16.0268 4.88291 16.0268 4.84139 15.9918C4.81684 15.9713 4.79228 15.9509 4.76699 15.9298C4.5693 15.7391 4.51301 15.5207 4.5 15.2507C4.5151 14.872 4.65787 14.6052 4.92439 14.3431C5.23566 14.0858 5.58225 13.9705 5.98399 13.9889C6.39409 14.0467 6.67261 14.2696 6.97788 14.5368C7.04531 14.5941 7.11275 14.6513 7.18024 14.7085C7.27801 14.7916 7.37519 14.8755 7.47238 14.9593C7.54704 15.0235 7.62196 15.0874 7.69694 15.1513C8.02915 15.4353 8.34957 15.7298 8.66619 16.0314C8.78965 16.1489 8.91524 16.2635 9.04232 16.3769C9.24098 16.556 9.42848 16.745 9.61441 16.9374C9.73206 17.0583 9.85175 17.1731 9.97956 17.283C10.2352 17.5064 10.4711 17.7507 10.7095 17.9925C10.7917 18.0758 10.8741 18.1589 10.9566 18.2419C11.4347 18.7249 11.4347 18.7249 11.6464 18.9799C11.7218 19.0675 11.8025 19.1485 11.8843 19.2299C11.898 19.1896 11.9116 19.1493 11.9257 19.1078C12.2024 18.2927 12.4869 17.488 12.8481 16.7062C12.8687 16.6616 12.8892 16.617 12.9104 16.571C13.6549 14.9617 14.5337 13.4385 15.5204 11.9689C15.553 11.9203 15.553 11.9203 15.5863 11.8707C16.0931 11.1161 16.6136 10.3732 17.1508 9.6404C17.2538 9.49984 17.3564 9.35903 17.4591 9.2182C17.5357 9.11296 17.6125 9.00777 17.6892 8.90257C17.7905 8.76367 17.8916 8.62462 17.9924 8.48543C18.2637 8.11165 18.5381 7.74072 18.8169 7.37269C19.0086 7.11969 19.1989 6.86631 19.381 6.6062C19.4144 6.55854 19.4478 6.51089 19.4823 6.46179C19.5085 6.42434 19.5085 6.42434 19.5353 6.38614C19.6584 6.21085 19.782 6.03602 19.9066 5.86184C19.9313 5.8267 19.9559 5.79157 19.9813 5.75537C20.4573 5.09349 21.1643 4.75205 21.9264 5.20931Z",
1740
+ fill: "currentColor"
1741
+ }
1742
+ )
1739
1743
  }
1740
1744
  );
1741
1745
  },
1746
+ // ----------------------------------- old ---------------------------------
1747
+ // ** Status **
1742
1748
  "plus-circle": ({ className, fill }) => {
1743
1749
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1744
1750
  "svg",
@@ -5095,6 +5101,9 @@ var Select = (0, import_react.forwardRef)((originalProps, ref) => {
5095
5101
  defaultSelectedOptions,
5096
5102
  onChange,
5097
5103
  multiple,
5104
+ dropdownIconName = "brace-up",
5105
+ optionIconName,
5106
+ optionIconPlacement,
5098
5107
  ...inputProps
5099
5108
  } = props;
5100
5109
  const slots = (0, import_react.useMemo)(() => select({ ...variantProps }), [variantProps]);
@@ -5105,19 +5114,22 @@ var Select = (0, import_react.forwardRef)((originalProps, ref) => {
5105
5114
  const [isOpen, setIsOpen] = (0, import_react.useState)(false);
5106
5115
  const selectWrapperRef = (0, import_react.useRef)(null);
5107
5116
  const optionWrapperRef = (0, import_react.useRef)(null);
5108
- const handleToggleSelect = () => {
5109
- if (isOpen) {
5110
- setIsOpen(false);
5111
- setTimeout(() => setIsVisible(false), 150);
5112
- } else {
5113
- if (selectWrapperRef.current) {
5114
- const rect = selectWrapperRef.current.getBoundingClientRect();
5115
- setTargetRect(rect);
5116
- setIsVisible(true);
5117
- requestAnimationFrame(() => setIsOpen(true));
5118
- }
5117
+ const isControlled = originalProps.value !== void 0;
5118
+ const openSelect = () => {
5119
+ if (selectWrapperRef.current) {
5120
+ const rect = selectWrapperRef.current.getBoundingClientRect();
5121
+ setTargetRect(rect);
5122
+ setIsVisible(true);
5123
+ requestAnimationFrame(() => setIsOpen(true));
5119
5124
  }
5120
5125
  };
5126
+ const closeSelect = () => {
5127
+ setIsOpen(false);
5128
+ setTimeout(() => setIsVisible(false), 150);
5129
+ };
5130
+ const handleToggleSelect = () => {
5131
+ isOpen ? closeSelect() : openSelect();
5132
+ };
5121
5133
  const calculatePositionWithScroll = (rect, height) => {
5122
5134
  const scrollTop = window.scrollY;
5123
5135
  const scrollLeft = window.scrollX;
@@ -5136,8 +5148,7 @@ var Select = (0, import_react.forwardRef)((originalProps, ref) => {
5136
5148
  nextOptions = exists ? selectedOptions.filter((o) => o.value !== option.value) : [...selectedOptions, option];
5137
5149
  } else {
5138
5150
  nextOptions = [option];
5139
- setIsOpen(false);
5140
- setTimeout(() => setIsVisible(false), 150);
5151
+ closeSelect();
5141
5152
  }
5142
5153
  setSelectedOptions(nextOptions);
5143
5154
  onChange == null ? void 0 : onChange(nextOptions);
@@ -5145,9 +5156,9 @@ var Select = (0, import_react.forwardRef)((originalProps, ref) => {
5145
5156
  (0, import_react.useEffect)(() => {
5146
5157
  const handleClickOutside = (e) => {
5147
5158
  var _a2;
5148
- if (optionWrapperRef.current && !optionWrapperRef.current.contains(e.target) && !((_a2 = selectWrapperRef.current) == null ? void 0 : _a2.contains(e.target))) {
5149
- setIsOpen(false);
5150
- setTimeout(() => setIsVisible(false), 150);
5159
+ const target = e.target;
5160
+ if (optionWrapperRef.current && !optionWrapperRef.current.contains(target) && !((_a2 = selectWrapperRef.current) == null ? void 0 : _a2.contains(target))) {
5161
+ closeSelect();
5151
5162
  }
5152
5163
  };
5153
5164
  window.addEventListener("mousedown", handleClickOutside);
@@ -5158,42 +5169,63 @@ var Select = (0, import_react.forwardRef)((originalProps, ref) => {
5158
5169
  setOptionWrapperHeight(optionWrapperRef.current.getBoundingClientRect().height);
5159
5170
  }
5160
5171
  }, [targetRect]);
5161
- const position = targetRect ? calculatePositionWithScroll(targetRect, optionWrapperHeight) : null;
5162
- const displayValue = multiple ? selectedOptions.map((opt) => opt.label).join(", ") : ((_a = selectedOptions[0]) == null ? void 0 : _a.label) || "";
5163
- const selectedValue = multiple ? selectedOptions.map((opt) => opt.value).join(", ") : ((_b = selectedOptions[0]) == null ? void 0 : _b.value) || "";
5164
- const Option = ({
5165
- option,
5166
- isSelected,
5167
- onClick
5168
- }) => {
5169
- const slot = select({ ...variantProps, isSelected });
5170
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
5171
- "div",
5172
- {
5173
- role: "option",
5174
- title: option.label,
5175
- onClick,
5176
- className: clsx(slot.option({ class: classNames == null ? void 0 : classNames.option })),
5177
- children: [
5178
- option.label,
5179
- isSelected && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: "check", size: originalProps.size })
5180
- ]
5181
- }
5182
- );
5183
- };
5184
- const isControlled = originalProps.value !== void 0;
5185
5172
  (0, import_react.useEffect)(() => {
5186
5173
  if (isControlled) {
5187
5174
  const valueArray = Array.isArray(originalProps.value) ? originalProps.value : [originalProps.value];
5188
- const matchedOptions = options.filter((opt) => valueArray.includes(opt.value));
5189
- setSelectedOptions(matchedOptions);
5190
- }
5191
- }, [originalProps.value, options]);
5192
- (0, import_react.useEffect)(() => {
5193
- if (!isControlled && defaultSelectedOptions) {
5175
+ const matched = options.filter((opt) => valueArray.includes(opt.value));
5176
+ setSelectedOptions(matched);
5177
+ } else if (defaultSelectedOptions) {
5194
5178
  setSelectedOptions(defaultSelectedOptions);
5195
5179
  }
5196
- }, [defaultSelectedOptions]);
5180
+ }, [originalProps.value, defaultSelectedOptions, options]);
5181
+ const position = targetRect ? calculatePositionWithScroll(targetRect, optionWrapperHeight) : null;
5182
+ const displayValue = multiple ? selectedOptions.map((opt) => opt.label).join(", ") : ((_a = selectedOptions[0]) == null ? void 0 : _a.label) || "";
5183
+ const selectedValue = multiple ? selectedOptions.map((opt) => opt.value).join(",") : ((_b = selectedOptions[0]) == null ? void 0 : _b.value) || "";
5184
+ const renderOptions = () => {
5185
+ if (!isVisible) return null;
5186
+ return (0, import_react_dom.createPortal)(
5187
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
5188
+ "div",
5189
+ {
5190
+ ref: optionWrapperRef,
5191
+ role: "listbox",
5192
+ className: slots.optionsWrapper({ class: classNames == null ? void 0 : classNames.optionsWrapper }),
5193
+ style: {
5194
+ position: "absolute",
5195
+ top: position == null ? void 0 : position.top,
5196
+ left: position == null ? void 0 : position.left,
5197
+ width: targetRect == null ? void 0 : targetRect.width,
5198
+ zIndex: 1e3,
5199
+ opacity: isOpen ? 1 : 0,
5200
+ transform: isOpen ? "translateY(0)" : "translateY(-0.25rem)",
5201
+ transition: "opacity 150ms ease-out, transform 150ms ease-out"
5202
+ },
5203
+ children: options.map((option) => {
5204
+ const isSelected = selectedOptions.some((o) => o.value === option.value);
5205
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
5206
+ "div",
5207
+ {
5208
+ role: "option",
5209
+ title: option.label,
5210
+ onClick: () => handleChangeOption(option),
5211
+ className: clsx(
5212
+ select({ ...variantProps, isSelected }).option({ class: classNames == null ? void 0 : classNames.option }),
5213
+ optionIconPlacement === "end" ? "justify-between" : ""
5214
+ ),
5215
+ children: [
5216
+ optionIconName && optionIconPlacement === "start" && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: optionIconName, size: originalProps.size }),
5217
+ option.label,
5218
+ optionIconName && optionIconPlacement === "end" && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: optionIconName, size: originalProps.size })
5219
+ ]
5220
+ },
5221
+ option.value
5222
+ );
5223
+ })
5224
+ }
5225
+ ),
5226
+ document.body
5227
+ );
5228
+ };
5197
5229
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
5198
5230
  /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
5199
5231
  "div",
@@ -5235,7 +5267,7 @@ var Select = (0, import_react.forwardRef)((originalProps, ref) => {
5235
5267
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
5236
5268
  Icon_default,
5237
5269
  {
5238
- name: "brace-up",
5270
+ name: dropdownIconName,
5239
5271
  size: originalProps.size,
5240
5272
  className: `transition-transform duration-200 ${isOpen ? "rotate-0" : "rotate-180"}`
5241
5273
  }
@@ -5249,39 +5281,7 @@ var Select = (0, import_react.forwardRef)((originalProps, ref) => {
5249
5281
  ]
5250
5282
  }
5251
5283
  ),
5252
- isVisible && (0, import_react_dom.createPortal)(
5253
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
5254
- "div",
5255
- {
5256
- ref: optionWrapperRef,
5257
- role: "listbox",
5258
- className: slots.optionsWrapper({ class: classNames == null ? void 0 : classNames.optionsWrapper }),
5259
- style: {
5260
- position: "absolute",
5261
- top: position == null ? void 0 : position.top,
5262
- left: position == null ? void 0 : position.left,
5263
- width: targetRect == null ? void 0 : targetRect.width,
5264
- zIndex: 1e3,
5265
- opacity: isOpen ? 1 : 0,
5266
- transform: isOpen ? "translateY(0)" : "translateY(-0.25rem)",
5267
- transition: "opacity 150ms ease-out, transform 150ms ease-out"
5268
- },
5269
- children: options.map((option) => {
5270
- const isSelected = selectedOptions.some((o) => o.value === option.value);
5271
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
5272
- Option,
5273
- {
5274
- option,
5275
- isSelected,
5276
- onClick: () => handleChangeOption(option)
5277
- },
5278
- option.value
5279
- );
5280
- })
5281
- }
5282
- ),
5283
- document.body
5284
- )
5284
+ renderOptions()
5285
5285
  ] });
5286
5286
  });
5287
5287
  Select.displayName = "Select";
@@ -5297,9 +5297,9 @@ var select = tv({
5297
5297
  "flex",
5298
5298
  "items-center",
5299
5299
  "justify-between",
5300
- "border",
5301
5300
  "cursor-pointer",
5302
5301
  "text-neutral-main",
5302
+ "bg-body-background",
5303
5303
  "hover:bg-trans-soft",
5304
5304
  "group-has-[p.error]/select:border-danger-main",
5305
5305
  "group-has-[p.error]/select:bg-danger-soft",
@@ -5315,22 +5315,59 @@ var select = tv({
5315
5315
  "group-has-[p.error]/select:text-danger-main",
5316
5316
  "group-has-[p.error]/select:placeholder:text-danger-main"
5317
5317
  ],
5318
- optionsWrapper: ["border", "rounded", "bg-body-background", "shadow", "overflow-auto"],
5319
- option: ["flex", "justify-between", "items-center", "cursor-pointer"],
5318
+ optionsWrapper: ["bg-body-background", "overflow-auto", "flex", "flex-col", "gap-[10px]"],
5319
+ option: [
5320
+ "flex",
5321
+ "items-center",
5322
+ "cursor-pointer",
5323
+ "text-neutral-dark",
5324
+ "hover:bg-trans-soft",
5325
+ "hover:text-neutral-strong"
5326
+ ],
5320
5327
  helperMessage: ["text-neutral-main"],
5321
5328
  errorMessage: ["text-danger-main"],
5322
5329
  readonly: ["pointer-events-none", "!bg-trans-soft"]
5323
5330
  },
5324
5331
  variants: {
5332
+ variant: {
5333
+ solid: {
5334
+ selectWrapper: ["border-transparent", "bg-trans-soft"],
5335
+ option: [],
5336
+ readonlyWrapper: ["!bg-trans-light"]
5337
+ },
5338
+ outline: {
5339
+ selectWrapper: [
5340
+ "border-neutral-light",
5341
+ "border",
5342
+ "group-has-[:hover]/select:bg-trans-soft",
5343
+ "group-has-[:focus]/select:bg-body-background",
5344
+ "group-has-[p.error]/select:border-danger-main"
5345
+ ],
5346
+ option: [],
5347
+ readonlyWrapper: ["!bg-trans-soft"]
5348
+ },
5349
+ underline: {
5350
+ selectWrapper: [
5351
+ "bg-transparent",
5352
+ "border-neutral-light",
5353
+ "!rounded-none",
5354
+ "group-has-[:hover]/select:bg-trans-soft",
5355
+ "group-has-[:focus]/select:bg-body-background",
5356
+ "group-has-[p.error]/select:border-danger-main"
5357
+ ],
5358
+ option: ["!rounded-none"],
5359
+ readonlyWrapper: ["!bg-trans-soft"]
5360
+ }
5361
+ },
5325
5362
  color: {
5326
5363
  primary: {
5327
5364
  selectWrapper: ["text-primary-main"],
5328
- option: ["hover:bg-primary-soft", "hover:text-primary-main"],
5365
+ option: [],
5329
5366
  helperMessage: ["text-primary-main"]
5330
5367
  },
5331
5368
  secondary: {
5332
5369
  selectWrapper: ["text-secondary-main"],
5333
- option: ["hover:bg-secondary-soft", "hover:text-secondary-main"],
5370
+ option: [],
5334
5371
  helperMessage: ["text-secondary-main"]
5335
5372
  }
5336
5373
  },
@@ -5341,7 +5378,8 @@ var select = tv({
5341
5378
  wrapper: ["gap-[4px]"],
5342
5379
  selectWrapper: ["w-[240px]", "h-[24px]", "rounded-sm", "px-[4px]"],
5343
5380
  select: ["text-sm"],
5344
- option: ["px-[4px]", "py-[3px]", "text-sm"],
5381
+ optionsWrapper: ["shadow-drop-sm", "rounded-sm", "p-[4px]"],
5382
+ option: ["px-[4px]", "py-[3px]", "rounded-sm", "text-sm", "gap-[4px]"],
5345
5383
  helperMessage: ["text-sm"],
5346
5384
  errorMessage: ["text-sm"]
5347
5385
  },
@@ -5351,7 +5389,8 @@ var select = tv({
5351
5389
  wrapper: ["gap-[6px]"],
5352
5390
  selectWrapper: ["w-[240px]", "h-[32px]", "rounded-md", "px-[6px]"],
5353
5391
  select: ["text-md"],
5354
- option: ["px-[6px]", "py-[5.5px]", "text-md"],
5392
+ optionsWrapper: ["shadow-drop-md", "rounded-md", "p-[6px]"],
5393
+ option: ["px-[6px]", "py-[5.5px]", "rounded-md", "text-md", "gap-[6px]"],
5355
5394
  helperMessage: ["text-sm"],
5356
5395
  errorMessage: ["text-sm"]
5357
5396
  },
@@ -5361,7 +5400,8 @@ var select = tv({
5361
5400
  wrapper: ["gap-[8px]"],
5362
5401
  selectWrapper: ["w-[240px]", "h-[40px]", "rounded-lg", "px-[8px]"],
5363
5402
  select: ["text-lg"],
5364
- option: ["px-[8px]", "py-[8px]", "text-lg"],
5403
+ optionsWrapper: ["shadow-drop-lg", "rounded-lg", "p-[8px]"],
5404
+ option: ["px-[8px]", "py-[8px]", "rounded-lg", "text-lg", "gap-[8px]"],
5365
5405
  helperMessage: ["text-md"],
5366
5406
  errorMessage: ["text-md"]
5367
5407
  },
@@ -5369,9 +5409,10 @@ var select = tv({
5369
5409
  base: ["text-xl", "gap-[10px]"],
5370
5410
  label: ["text-xl"],
5371
5411
  wrapper: ["gap-[10px]"],
5372
- selectWrapper: ["w-[240px]", "h-[50px]", "rounded-lg", "px-[10px]"],
5412
+ selectWrapper: ["w-[240px]", "h-[50px]", "rounded-xl", "px-[10px]"],
5373
5413
  select: ["text-xl"],
5374
- option: ["px-[10px]", "py-[11.5px]"],
5414
+ optionsWrapper: ["shadow-drop-xl", "rounded-xl", "p-[10px]"],
5415
+ option: ["px-[10px]", "py-[11.5px]", , "rounded-xl", "text-xl", "gap-[10px]"],
5375
5416
  helperMessage: ["text-md"],
5376
5417
  errorMessage: ["text-md"]
5377
5418
  }
@@ -5413,22 +5454,83 @@ var select = tv({
5413
5454
  }
5414
5455
  },
5415
5456
  compoundVariants: [
5457
+ {
5458
+ variant: "outline",
5459
+ size: "sm",
5460
+ class: {
5461
+ option: ["hover:shadow-[inset_0_0_0_1px_var(--dn-neutral-light)]"]
5462
+ }
5463
+ },
5464
+ {
5465
+ variant: "outline",
5466
+ size: "md",
5467
+ class: {
5468
+ option: ["hover:shadow-[inset_0_0_0_1.25px_var(--dn-neutral-light)]"]
5469
+ }
5470
+ },
5471
+ {
5472
+ variant: "outline",
5473
+ size: "lg",
5474
+ class: {
5475
+ option: ["hover:shadow-[inset_0_0_0_1.5px_var(--dn-neutral-light)]"]
5476
+ }
5477
+ },
5478
+ {
5479
+ variant: "outline",
5480
+ size: "xl",
5481
+ class: {
5482
+ option: ["hover:shadow-[inset_0_0_0_1.75px_var(--dn-neutral-light)]"]
5483
+ }
5484
+ },
5485
+ {
5486
+ variant: "underline",
5487
+ size: "sm",
5488
+ class: {
5489
+ selectWrapper: ["border-b-sm"],
5490
+ option: ["hover:shadow-[inset_0_-1px_0_0_var(--dn-neutral-light)]"]
5491
+ }
5492
+ },
5493
+ {
5494
+ variant: "underline",
5495
+ size: "md",
5496
+ class: {
5497
+ selectWrapper: ["border-b-md"],
5498
+ option: ["hover:shadow-[inset_0_-1.25px_0_0_var(--dn-neutral-light)]"]
5499
+ }
5500
+ },
5501
+ {
5502
+ variant: "underline",
5503
+ size: "lg",
5504
+ class: {
5505
+ selectWrapper: ["border-b-lg"],
5506
+ option: ["hover:shadow-[inset_0_-1.5px_0_0_var(--dn-neutral-light)]"]
5507
+ }
5508
+ },
5509
+ {
5510
+ variant: "underline",
5511
+ size: "xl",
5512
+ class: {
5513
+ selectWrapper: ["border-b-xl"],
5514
+ option: ["hover:shadow-[inset_0_-1.75px_0_0_var(--dn-neutral-light)]"]
5515
+ }
5516
+ },
5416
5517
  {
5417
5518
  color: "primary",
5418
5519
  isSelected: true,
5419
5520
  class: {
5420
- option: "bg-primary-soft text-primary-main"
5521
+ option: ["text-primary-main"]
5421
5522
  }
5422
5523
  },
5423
5524
  {
5424
5525
  color: "secondary",
5425
5526
  isSelected: true,
5426
5527
  class: {
5427
- option: "bg-secondary-soft text-secondary-main"
5528
+ option: ["text-secondary-main"]
5428
5529
  }
5429
5530
  }
5430
5531
  ],
5431
5532
  defaultVariants: {
5533
+ variant: "solid",
5432
5534
  color: "primary",
5433
5535
  size: "md",
5434
5536
  direction: "vertical",
@@ -2,13 +2,13 @@
2
2
  import {
3
3
  timePickerStyle,
4
4
  timePicker_default
5
- } from "../../chunk-MHZ4BO5M.mjs";
5
+ } from "../../chunk-E2LGBO2H.mjs";
6
6
  import "../../chunk-QCEKPS7U.mjs";
7
- import "../../chunk-MIVGSJFF.mjs";
7
+ import "../../chunk-GZEAMYAO.mjs";
8
8
  import "../../chunk-ZYIIXWVY.mjs";
9
- import "../../chunk-EM2NIGNZ.mjs";
9
+ import "../../chunk-YZ57UYAS.mjs";
10
10
  import "../../chunk-E3G5QXSH.mjs";
11
- import "../../chunk-CTWYY7Z2.mjs";
11
+ import "../../chunk-BG4DIGKH.mjs";
12
12
  import "../../chunk-CDXBML6O.mjs";
13
13
  import "../../chunk-27Y6K5NK.mjs";
14
14
  import "../../chunk-AC6TWLRT.mjs";
@@ -2,3 +2,6 @@ export { default as Select, SelectOption, SelectProps } from './select.mjs';
2
2
  import 'tailwind-variants';
3
3
  import 'react';
4
4
  import '../../utils/types.mjs';
5
+ import '../icon/Icon.mjs';
6
+ import 'react/jsx-runtime';
7
+ import '../icon/template.mjs';
@@ -2,3 +2,6 @@ export { default as Select, SelectOption, SelectProps } from './select.js';
2
2
  import 'tailwind-variants';
3
3
  import 'react';
4
4
  import '../../utils/types.js';
5
+ import '../icon/Icon.js';
6
+ import 'react/jsx-runtime';
7
+ import '../icon/template.js';