@deepnoid/ui 0.1.120 → 0.1.121

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 +178 -178
  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-MIVGSJFF.mjs → chunk-3YT4YJNJ.mjs} +189 -94
  6. package/dist/{chunk-YLHOBT6S.mjs → chunk-5MINOKNM.mjs} +1 -1
  7. package/dist/{chunk-NV5Z6ZUO.mjs → chunk-6JLHCQH7.mjs} +1 -1
  8. package/dist/{chunk-YUS5SELP.mjs → chunk-AT6GNVOQ.mjs} +1 -1
  9. package/dist/{chunk-CTWYY7Z2.mjs → chunk-BG4DIGKH.mjs} +14 -8
  10. package/dist/{chunk-3M6VYLOU.mjs → chunk-D6MHTE5L.mjs} +6 -6
  11. package/dist/{chunk-NMZFSNPE.mjs → chunk-DD6HAIW3.mjs} +1 -1
  12. package/dist/{chunk-OBMO6LRA.mjs → chunk-DLNGJVFS.mjs} +1 -1
  13. package/dist/{chunk-BBQNVDIA.mjs → chunk-HX64P3XQ.mjs} +2 -2
  14. package/dist/{chunk-KCOS2KC6.mjs → chunk-LOYDOCOR.mjs} +2 -2
  15. package/dist/{chunk-Q5634WTM.mjs → chunk-RVFSQFWS.mjs} +3 -3
  16. package/dist/{chunk-MHZ4BO5M.mjs → chunk-UEJJBAHG.mjs} +2 -2
  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 +202 -101
  73. package/dist/components/picker/index.mjs +8 -8
  74. package/dist/components/picker/timePicker.js +202 -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 +202 -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 +202 -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 +208 -107
  107. package/dist/index.mjs +30 -30
  108. package/package.json +1 -1
@@ -1724,22 +1724,28 @@ var template = {
1724
1724
  }
1725
1725
  );
1726
1726
  },
1727
- // ----------------------------------- old ---------------------------------
1728
- // ** Status **
1729
- check: ({ className, fill }) => {
1727
+ check: ({ className }) => {
1730
1728
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1731
1729
  "svg",
1732
1730
  {
1733
- width: "24",
1734
- height: "24",
1735
- viewBox: "0 0 24 24",
1736
- fill: "none",
1737
1731
  xmlns: "http://www.w3.org/2000/svg",
1732
+ width: "27",
1733
+ height: "28",
1734
+ viewBox: "0 0 27 28",
1735
+ fill: "none",
1738
1736
  className,
1739
- 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" })
1737
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1738
+ "path",
1739
+ {
1740
+ 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",
1741
+ fill: "currentColor"
1742
+ }
1743
+ )
1740
1744
  }
1741
1745
  );
1742
1746
  },
1747
+ // ----------------------------------- old ---------------------------------
1748
+ // ** Status **
1743
1749
  "plus-circle": ({ className, fill }) => {
1744
1750
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1745
1751
  "svg",
@@ -5092,6 +5098,9 @@ var Select = (0, import_react.forwardRef)((originalProps, ref) => {
5092
5098
  defaultSelectedOptions,
5093
5099
  onChange,
5094
5100
  multiple,
5101
+ dropdownIconName = "brace-up",
5102
+ optionIconName,
5103
+ optionIconPlacement,
5095
5104
  ...inputProps
5096
5105
  } = props;
5097
5106
  const slots = (0, import_react.useMemo)(() => select({ ...variantProps }), [variantProps]);
@@ -5102,19 +5111,22 @@ var Select = (0, import_react.forwardRef)((originalProps, ref) => {
5102
5111
  const [isOpen, setIsOpen] = (0, import_react.useState)(false);
5103
5112
  const selectWrapperRef = (0, import_react.useRef)(null);
5104
5113
  const optionWrapperRef = (0, import_react.useRef)(null);
5105
- const handleToggleSelect = () => {
5106
- if (isOpen) {
5107
- setIsOpen(false);
5108
- setTimeout(() => setIsVisible(false), 150);
5109
- } else {
5110
- if (selectWrapperRef.current) {
5111
- const rect = selectWrapperRef.current.getBoundingClientRect();
5112
- setTargetRect(rect);
5113
- setIsVisible(true);
5114
- requestAnimationFrame(() => setIsOpen(true));
5115
- }
5114
+ const isControlled = originalProps.value !== void 0;
5115
+ const openSelect = () => {
5116
+ if (selectWrapperRef.current) {
5117
+ const rect = selectWrapperRef.current.getBoundingClientRect();
5118
+ setTargetRect(rect);
5119
+ setIsVisible(true);
5120
+ requestAnimationFrame(() => setIsOpen(true));
5116
5121
  }
5117
5122
  };
5123
+ const closeSelect = () => {
5124
+ setIsOpen(false);
5125
+ setTimeout(() => setIsVisible(false), 150);
5126
+ };
5127
+ const handleToggleSelect = () => {
5128
+ isOpen ? closeSelect() : openSelect();
5129
+ };
5118
5130
  const calculatePositionWithScroll = (rect, height) => {
5119
5131
  const scrollTop = window.scrollY;
5120
5132
  const scrollLeft = window.scrollX;
@@ -5133,8 +5145,7 @@ var Select = (0, import_react.forwardRef)((originalProps, ref) => {
5133
5145
  nextOptions = exists ? selectedOptions.filter((o) => o.value !== option.value) : [...selectedOptions, option];
5134
5146
  } else {
5135
5147
  nextOptions = [option];
5136
- setIsOpen(false);
5137
- setTimeout(() => setIsVisible(false), 150);
5148
+ closeSelect();
5138
5149
  }
5139
5150
  setSelectedOptions(nextOptions);
5140
5151
  onChange == null ? void 0 : onChange(nextOptions);
@@ -5142,9 +5153,9 @@ var Select = (0, import_react.forwardRef)((originalProps, ref) => {
5142
5153
  (0, import_react.useEffect)(() => {
5143
5154
  const handleClickOutside = (e) => {
5144
5155
  var _a2;
5145
- if (optionWrapperRef.current && !optionWrapperRef.current.contains(e.target) && !((_a2 = selectWrapperRef.current) == null ? void 0 : _a2.contains(e.target))) {
5146
- setIsOpen(false);
5147
- setTimeout(() => setIsVisible(false), 150);
5156
+ const target = e.target;
5157
+ if (optionWrapperRef.current && !optionWrapperRef.current.contains(target) && !((_a2 = selectWrapperRef.current) == null ? void 0 : _a2.contains(target))) {
5158
+ closeSelect();
5148
5159
  }
5149
5160
  };
5150
5161
  window.addEventListener("mousedown", handleClickOutside);
@@ -5155,42 +5166,63 @@ var Select = (0, import_react.forwardRef)((originalProps, ref) => {
5155
5166
  setOptionWrapperHeight(optionWrapperRef.current.getBoundingClientRect().height);
5156
5167
  }
5157
5168
  }, [targetRect]);
5158
- const position = targetRect ? calculatePositionWithScroll(targetRect, optionWrapperHeight) : null;
5159
- const displayValue = multiple ? selectedOptions.map((opt) => opt.label).join(", ") : ((_a = selectedOptions[0]) == null ? void 0 : _a.label) || "";
5160
- const selectedValue = multiple ? selectedOptions.map((opt) => opt.value).join(", ") : ((_b = selectedOptions[0]) == null ? void 0 : _b.value) || "";
5161
- const Option = ({
5162
- option,
5163
- isSelected,
5164
- onClick
5165
- }) => {
5166
- const slot = select({ ...variantProps, isSelected });
5167
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
5168
- "div",
5169
- {
5170
- role: "option",
5171
- title: option.label,
5172
- onClick,
5173
- className: clsx(slot.option({ class: classNames == null ? void 0 : classNames.option })),
5174
- children: [
5175
- option.label,
5176
- isSelected && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: "check", size: originalProps.size })
5177
- ]
5178
- }
5179
- );
5180
- };
5181
- const isControlled = originalProps.value !== void 0;
5182
5169
  (0, import_react.useEffect)(() => {
5183
5170
  if (isControlled) {
5184
5171
  const valueArray = Array.isArray(originalProps.value) ? originalProps.value : [originalProps.value];
5185
- const matchedOptions = options.filter((opt) => valueArray.includes(opt.value));
5186
- setSelectedOptions(matchedOptions);
5187
- }
5188
- }, [originalProps.value, options]);
5189
- (0, import_react.useEffect)(() => {
5190
- if (!isControlled && defaultSelectedOptions) {
5172
+ const matched = options.filter((opt) => valueArray.includes(opt.value));
5173
+ setSelectedOptions(matched);
5174
+ } else if (defaultSelectedOptions) {
5191
5175
  setSelectedOptions(defaultSelectedOptions);
5192
5176
  }
5193
- }, [defaultSelectedOptions]);
5177
+ }, [originalProps.value, defaultSelectedOptions, options]);
5178
+ const position = targetRect ? calculatePositionWithScroll(targetRect, optionWrapperHeight) : null;
5179
+ const displayValue = multiple ? selectedOptions.map((opt) => opt.label).join(", ") : ((_a = selectedOptions[0]) == null ? void 0 : _a.label) || "";
5180
+ const selectedValue = multiple ? selectedOptions.map((opt) => opt.value).join(",") : ((_b = selectedOptions[0]) == null ? void 0 : _b.value) || "";
5181
+ const renderOptions = () => {
5182
+ if (!isVisible) return null;
5183
+ return (0, import_react_dom.createPortal)(
5184
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
5185
+ "div",
5186
+ {
5187
+ ref: optionWrapperRef,
5188
+ role: "listbox",
5189
+ className: slots.optionsWrapper({ class: classNames == null ? void 0 : classNames.optionsWrapper }),
5190
+ style: {
5191
+ position: "absolute",
5192
+ top: position == null ? void 0 : position.top,
5193
+ left: position == null ? void 0 : position.left,
5194
+ width: targetRect == null ? void 0 : targetRect.width,
5195
+ zIndex: 1e3,
5196
+ opacity: isOpen ? 1 : 0,
5197
+ transform: isOpen ? "translateY(0)" : "translateY(-0.25rem)",
5198
+ transition: "opacity 150ms ease-out, transform 150ms ease-out"
5199
+ },
5200
+ children: options.map((option) => {
5201
+ const isSelected = selectedOptions.some((o) => o.value === option.value);
5202
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
5203
+ "div",
5204
+ {
5205
+ role: "option",
5206
+ title: option.label,
5207
+ onClick: () => handleChangeOption(option),
5208
+ className: clsx(
5209
+ select({ ...variantProps, isSelected }).option({ class: classNames == null ? void 0 : classNames.option }),
5210
+ optionIconPlacement === "end" ? "justify-between" : ""
5211
+ ),
5212
+ children: [
5213
+ optionIconName && optionIconPlacement === "start" && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: optionIconName, size: originalProps.size }),
5214
+ option.label,
5215
+ optionIconName && optionIconPlacement === "end" && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: optionIconName, size: originalProps.size })
5216
+ ]
5217
+ },
5218
+ option.value
5219
+ );
5220
+ })
5221
+ }
5222
+ ),
5223
+ document.body
5224
+ );
5225
+ };
5194
5226
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_jsx_runtime3.Fragment, { children: [
5195
5227
  /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
5196
5228
  "div",
@@ -5232,7 +5264,7 @@ var Select = (0, import_react.forwardRef)((originalProps, ref) => {
5232
5264
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
5233
5265
  Icon_default,
5234
5266
  {
5235
- name: "brace-up",
5267
+ name: dropdownIconName,
5236
5268
  size: originalProps.size,
5237
5269
  className: `transition-transform duration-200 ${isOpen ? "rotate-0" : "rotate-180"}`
5238
5270
  }
@@ -5246,39 +5278,7 @@ var Select = (0, import_react.forwardRef)((originalProps, ref) => {
5246
5278
  ]
5247
5279
  }
5248
5280
  ),
5249
- isVisible && (0, import_react_dom.createPortal)(
5250
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
5251
- "div",
5252
- {
5253
- ref: optionWrapperRef,
5254
- role: "listbox",
5255
- className: slots.optionsWrapper({ class: classNames == null ? void 0 : classNames.optionsWrapper }),
5256
- style: {
5257
- position: "absolute",
5258
- top: position == null ? void 0 : position.top,
5259
- left: position == null ? void 0 : position.left,
5260
- width: targetRect == null ? void 0 : targetRect.width,
5261
- zIndex: 1e3,
5262
- opacity: isOpen ? 1 : 0,
5263
- transform: isOpen ? "translateY(0)" : "translateY(-0.25rem)",
5264
- transition: "opacity 150ms ease-out, transform 150ms ease-out"
5265
- },
5266
- children: options.map((option) => {
5267
- const isSelected = selectedOptions.some((o) => o.value === option.value);
5268
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
5269
- Option,
5270
- {
5271
- option,
5272
- isSelected,
5273
- onClick: () => handleChangeOption(option)
5274
- },
5275
- option.value
5276
- );
5277
- })
5278
- }
5279
- ),
5280
- document.body
5281
- )
5281
+ renderOptions()
5282
5282
  ] });
5283
5283
  });
5284
5284
  Select.displayName = "Select";
@@ -5294,7 +5294,6 @@ var select = tv({
5294
5294
  "flex",
5295
5295
  "items-center",
5296
5296
  "justify-between",
5297
- "border",
5298
5297
  "cursor-pointer",
5299
5298
  "text-neutral-main",
5300
5299
  "hover:bg-trans-soft",
@@ -5312,22 +5311,59 @@ var select = tv({
5312
5311
  "group-has-[p.error]/select:text-danger-main",
5313
5312
  "group-has-[p.error]/select:placeholder:text-danger-main"
5314
5313
  ],
5315
- optionsWrapper: ["border", "rounded", "bg-body-background", "shadow", "overflow-auto"],
5316
- option: ["flex", "justify-between", "items-center", "cursor-pointer"],
5314
+ optionsWrapper: ["bg-body-background", "overflow-auto", "flex", "flex-col", "gap-[10px]"],
5315
+ option: [
5316
+ "flex",
5317
+ "items-center",
5318
+ "cursor-pointer",
5319
+ "text-neutral-dark",
5320
+ "hover:bg-trans-soft",
5321
+ "hover:text-neutral-strong"
5322
+ ],
5317
5323
  helperMessage: ["text-neutral-main"],
5318
5324
  errorMessage: ["text-danger-main"],
5319
5325
  readonly: ["pointer-events-none", "!bg-trans-soft"]
5320
5326
  },
5321
5327
  variants: {
5328
+ variant: {
5329
+ solid: {
5330
+ selectWrapper: ["border-transparent", "bg-trans-soft"],
5331
+ option: [],
5332
+ readonlyWrapper: ["!bg-trans-light"]
5333
+ },
5334
+ outline: {
5335
+ selectWrapper: [
5336
+ "border-neutral-light",
5337
+ "border",
5338
+ "group-has-[:hover]/select:bg-trans-soft",
5339
+ "group-has-[:focus]/select:bg-body-background",
5340
+ "group-has-[p.error]/select:border-danger-main"
5341
+ ],
5342
+ option: [],
5343
+ readonlyWrapper: ["!bg-trans-soft"]
5344
+ },
5345
+ underline: {
5346
+ selectWrapper: [
5347
+ "bg-transparent",
5348
+ "border-neutral-light",
5349
+ "!rounded-none",
5350
+ "group-has-[:hover]/select:bg-trans-soft",
5351
+ "group-has-[:focus]/select:bg-body-background",
5352
+ "group-has-[p.error]/select:border-danger-main"
5353
+ ],
5354
+ option: ["!rounded-none"],
5355
+ readonlyWrapper: ["!bg-trans-soft"]
5356
+ }
5357
+ },
5322
5358
  color: {
5323
5359
  primary: {
5324
5360
  selectWrapper: ["text-primary-main"],
5325
- option: ["hover:bg-primary-soft", "hover:text-primary-main"],
5361
+ option: [],
5326
5362
  helperMessage: ["text-primary-main"]
5327
5363
  },
5328
5364
  secondary: {
5329
5365
  selectWrapper: ["text-secondary-main"],
5330
- option: ["hover:bg-secondary-soft", "hover:text-secondary-main"],
5366
+ option: [],
5331
5367
  helperMessage: ["text-secondary-main"]
5332
5368
  }
5333
5369
  },
@@ -5338,7 +5374,8 @@ var select = tv({
5338
5374
  wrapper: ["gap-[4px]"],
5339
5375
  selectWrapper: ["w-[240px]", "h-[24px]", "rounded-sm", "px-[4px]"],
5340
5376
  select: ["text-sm"],
5341
- option: ["px-[4px]", "py-[3px]", "text-sm"],
5377
+ optionsWrapper: ["shadow-drop-sm", "rounded-sm", "p-[4px]"],
5378
+ option: ["px-[4px]", "py-[3px]", "rounded-sm", "text-sm", "gap-[4px]"],
5342
5379
  helperMessage: ["text-sm"],
5343
5380
  errorMessage: ["text-sm"]
5344
5381
  },
@@ -5348,7 +5385,8 @@ var select = tv({
5348
5385
  wrapper: ["gap-[6px]"],
5349
5386
  selectWrapper: ["w-[240px]", "h-[32px]", "rounded-md", "px-[6px]"],
5350
5387
  select: ["text-md"],
5351
- option: ["px-[6px]", "py-[5.5px]", "text-md"],
5388
+ optionsWrapper: ["shadow-drop-md", "rounded-md", "p-[6px]"],
5389
+ option: ["px-[6px]", "py-[5.5px]", "rounded-md", "text-md", "gap-[6px]"],
5352
5390
  helperMessage: ["text-sm"],
5353
5391
  errorMessage: ["text-sm"]
5354
5392
  },
@@ -5358,7 +5396,8 @@ var select = tv({
5358
5396
  wrapper: ["gap-[8px]"],
5359
5397
  selectWrapper: ["w-[240px]", "h-[40px]", "rounded-lg", "px-[8px]"],
5360
5398
  select: ["text-lg"],
5361
- option: ["px-[8px]", "py-[8px]", "text-lg"],
5399
+ optionsWrapper: ["shadow-drop-lg", "rounded-lg", "p-[8px]"],
5400
+ option: ["px-[8px]", "py-[8px]", "rounded-lg", "text-lg", "gap-[8px]"],
5362
5401
  helperMessage: ["text-md"],
5363
5402
  errorMessage: ["text-md"]
5364
5403
  },
@@ -5366,9 +5405,10 @@ var select = tv({
5366
5405
  base: ["text-xl", "gap-[10px]"],
5367
5406
  label: ["text-xl"],
5368
5407
  wrapper: ["gap-[10px]"],
5369
- selectWrapper: ["w-[240px]", "h-[50px]", "rounded-lg", "px-[10px]"],
5408
+ selectWrapper: ["w-[240px]", "h-[50px]", "rounded-xl", "px-[10px]"],
5370
5409
  select: ["text-xl"],
5371
- option: ["px-[10px]", "py-[11.5px]"],
5410
+ optionsWrapper: ["shadow-drop-xl", "rounded-xl", "p-[10px]"],
5411
+ option: ["px-[10px]", "py-[11.5px]", , "rounded-xl", "text-xl", "gap-[10px]"],
5372
5412
  helperMessage: ["text-md"],
5373
5413
  errorMessage: ["text-md"]
5374
5414
  }
@@ -5410,22 +5450,83 @@ var select = tv({
5410
5450
  }
5411
5451
  },
5412
5452
  compoundVariants: [
5453
+ {
5454
+ variant: "outline",
5455
+ size: "sm",
5456
+ class: {
5457
+ option: ["hover:shadow-[inset_0_0_0_1px_var(--dn-neutral-light)]"]
5458
+ }
5459
+ },
5460
+ {
5461
+ variant: "outline",
5462
+ size: "md",
5463
+ class: {
5464
+ option: ["hover:shadow-[inset_0_0_0_1.25px_var(--dn-neutral-light)]"]
5465
+ }
5466
+ },
5467
+ {
5468
+ variant: "outline",
5469
+ size: "lg",
5470
+ class: {
5471
+ option: ["hover:shadow-[inset_0_0_0_1.5px_var(--dn-neutral-light)]"]
5472
+ }
5473
+ },
5474
+ {
5475
+ variant: "outline",
5476
+ size: "xl",
5477
+ class: {
5478
+ option: ["hover:shadow-[inset_0_0_0_1.75px_var(--dn-neutral-light)]"]
5479
+ }
5480
+ },
5481
+ {
5482
+ variant: "underline",
5483
+ size: "sm",
5484
+ class: {
5485
+ selectWrapper: ["border-b-sm"],
5486
+ option: ["hover:shadow-[inset_0_-1px_0_0_var(--dn-neutral-light)]"]
5487
+ }
5488
+ },
5489
+ {
5490
+ variant: "underline",
5491
+ size: "md",
5492
+ class: {
5493
+ selectWrapper: ["border-b-md"],
5494
+ option: ["hover:shadow-[inset_0_-1.25px_0_0_var(--dn-neutral-light)]"]
5495
+ }
5496
+ },
5497
+ {
5498
+ variant: "underline",
5499
+ size: "lg",
5500
+ class: {
5501
+ selectWrapper: ["border-b-lg"],
5502
+ option: ["hover:shadow-[inset_0_-1.5px_0_0_var(--dn-neutral-light)]"]
5503
+ }
5504
+ },
5505
+ {
5506
+ variant: "underline",
5507
+ size: "xl",
5508
+ class: {
5509
+ selectWrapper: ["border-b-xl"],
5510
+ option: ["hover:shadow-[inset_0_-1.75px_0_0_var(--dn-neutral-light)]"]
5511
+ }
5512
+ },
5413
5513
  {
5414
5514
  color: "primary",
5415
5515
  isSelected: true,
5416
5516
  class: {
5417
- option: "bg-primary-soft text-primary-main"
5517
+ option: ["text-primary-main"]
5418
5518
  }
5419
5519
  },
5420
5520
  {
5421
5521
  color: "secondary",
5422
5522
  isSelected: true,
5423
5523
  class: {
5424
- option: "bg-secondary-soft text-secondary-main"
5524
+ option: ["text-secondary-main"]
5425
5525
  }
5426
5526
  }
5427
5527
  ],
5428
5528
  defaultVariants: {
5529
+ variant: "solid",
5429
5530
  color: "primary",
5430
5531
  size: "md",
5431
5532
  direction: "vertical",
@@ -2,11 +2,11 @@
2
2
  import "../../chunk-QCEKPS7U.mjs";
3
3
  import {
4
4
  select_default
5
- } from "../../chunk-MIVGSJFF.mjs";
5
+ } from "../../chunk-3YT4YJNJ.mjs";
6
6
  import "../../chunk-ZYIIXWVY.mjs";
7
- import "../../chunk-EM2NIGNZ.mjs";
7
+ import "../../chunk-YZ57UYAS.mjs";
8
8
  import "../../chunk-E3G5QXSH.mjs";
9
- import "../../chunk-CTWYY7Z2.mjs";
9
+ import "../../chunk-BG4DIGKH.mjs";
10
10
  import "../../chunk-CDXBML6O.mjs";
11
11
  import "../../chunk-27Y6K5NK.mjs";
12
12
  import "../../chunk-AC6TWLRT.mjs";