@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
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Icon_default
4
- } from "./chunk-EM2NIGNZ.mjs";
4
+ } from "./chunk-YZ57UYAS.mjs";
5
5
  import {
6
6
  mapPropsVariants
7
7
  } from "./chunk-E3G5QXSH.mjs";
@@ -28,6 +28,9 @@ var Select = forwardRef((originalProps, ref) => {
28
28
  defaultSelectedOptions,
29
29
  onChange,
30
30
  multiple,
31
+ dropdownIconName = "brace-up",
32
+ optionIconName,
33
+ optionIconPlacement,
31
34
  ...inputProps
32
35
  } = props;
33
36
  const slots = useMemo(() => select({ ...variantProps }), [variantProps]);
@@ -38,19 +41,22 @@ var Select = forwardRef((originalProps, ref) => {
38
41
  const [isOpen, setIsOpen] = useState(false);
39
42
  const selectWrapperRef = useRef(null);
40
43
  const optionWrapperRef = useRef(null);
41
- const handleToggleSelect = () => {
42
- if (isOpen) {
43
- setIsOpen(false);
44
- setTimeout(() => setIsVisible(false), 150);
45
- } else {
46
- if (selectWrapperRef.current) {
47
- const rect = selectWrapperRef.current.getBoundingClientRect();
48
- setTargetRect(rect);
49
- setIsVisible(true);
50
- requestAnimationFrame(() => setIsOpen(true));
51
- }
44
+ const isControlled = originalProps.value !== void 0;
45
+ const openSelect = () => {
46
+ if (selectWrapperRef.current) {
47
+ const rect = selectWrapperRef.current.getBoundingClientRect();
48
+ setTargetRect(rect);
49
+ setIsVisible(true);
50
+ requestAnimationFrame(() => setIsOpen(true));
52
51
  }
53
52
  };
53
+ const closeSelect = () => {
54
+ setIsOpen(false);
55
+ setTimeout(() => setIsVisible(false), 150);
56
+ };
57
+ const handleToggleSelect = () => {
58
+ isOpen ? closeSelect() : openSelect();
59
+ };
54
60
  const calculatePositionWithScroll = (rect, height) => {
55
61
  const scrollTop = window.scrollY;
56
62
  const scrollLeft = window.scrollX;
@@ -69,8 +75,7 @@ var Select = forwardRef((originalProps, ref) => {
69
75
  nextOptions = exists ? selectedOptions.filter((o) => o.value !== option.value) : [...selectedOptions, option];
70
76
  } else {
71
77
  nextOptions = [option];
72
- setIsOpen(false);
73
- setTimeout(() => setIsVisible(false), 150);
78
+ closeSelect();
74
79
  }
75
80
  setSelectedOptions(nextOptions);
76
81
  onChange == null ? void 0 : onChange(nextOptions);
@@ -78,9 +83,9 @@ var Select = forwardRef((originalProps, ref) => {
78
83
  useEffect(() => {
79
84
  const handleClickOutside = (e) => {
80
85
  var _a2;
81
- if (optionWrapperRef.current && !optionWrapperRef.current.contains(e.target) && !((_a2 = selectWrapperRef.current) == null ? void 0 : _a2.contains(e.target))) {
82
- setIsOpen(false);
83
- setTimeout(() => setIsVisible(false), 150);
86
+ const target = e.target;
87
+ if (optionWrapperRef.current && !optionWrapperRef.current.contains(target) && !((_a2 = selectWrapperRef.current) == null ? void 0 : _a2.contains(target))) {
88
+ closeSelect();
84
89
  }
85
90
  };
86
91
  window.addEventListener("mousedown", handleClickOutside);
@@ -91,42 +96,63 @@ var Select = forwardRef((originalProps, ref) => {
91
96
  setOptionWrapperHeight(optionWrapperRef.current.getBoundingClientRect().height);
92
97
  }
93
98
  }, [targetRect]);
94
- const position = targetRect ? calculatePositionWithScroll(targetRect, optionWrapperHeight) : null;
95
- const displayValue = multiple ? selectedOptions.map((opt) => opt.label).join(", ") : ((_a = selectedOptions[0]) == null ? void 0 : _a.label) || "";
96
- const selectedValue = multiple ? selectedOptions.map((opt) => opt.value).join(", ") : ((_b = selectedOptions[0]) == null ? void 0 : _b.value) || "";
97
- const Option = ({
98
- option,
99
- isSelected,
100
- onClick
101
- }) => {
102
- const slot = select({ ...variantProps, isSelected });
103
- return /* @__PURE__ */ jsxs(
104
- "div",
105
- {
106
- role: "option",
107
- title: option.label,
108
- onClick,
109
- className: clsx(slot.option({ class: classNames == null ? void 0 : classNames.option })),
110
- children: [
111
- option.label,
112
- isSelected && /* @__PURE__ */ jsx(Icon_default, { name: "check", size: originalProps.size })
113
- ]
114
- }
115
- );
116
- };
117
- const isControlled = originalProps.value !== void 0;
118
99
  useEffect(() => {
119
100
  if (isControlled) {
120
101
  const valueArray = Array.isArray(originalProps.value) ? originalProps.value : [originalProps.value];
121
- const matchedOptions = options.filter((opt) => valueArray.includes(opt.value));
122
- setSelectedOptions(matchedOptions);
123
- }
124
- }, [originalProps.value, options]);
125
- useEffect(() => {
126
- if (!isControlled && defaultSelectedOptions) {
102
+ const matched = options.filter((opt) => valueArray.includes(opt.value));
103
+ setSelectedOptions(matched);
104
+ } else if (defaultSelectedOptions) {
127
105
  setSelectedOptions(defaultSelectedOptions);
128
106
  }
129
- }, [defaultSelectedOptions]);
107
+ }, [originalProps.value, defaultSelectedOptions, options]);
108
+ const position = targetRect ? calculatePositionWithScroll(targetRect, optionWrapperHeight) : null;
109
+ const displayValue = multiple ? selectedOptions.map((opt) => opt.label).join(", ") : ((_a = selectedOptions[0]) == null ? void 0 : _a.label) || "";
110
+ const selectedValue = multiple ? selectedOptions.map((opt) => opt.value).join(",") : ((_b = selectedOptions[0]) == null ? void 0 : _b.value) || "";
111
+ const renderOptions = () => {
112
+ if (!isVisible) return null;
113
+ return createPortal(
114
+ /* @__PURE__ */ jsx(
115
+ "div",
116
+ {
117
+ ref: optionWrapperRef,
118
+ role: "listbox",
119
+ className: slots.optionsWrapper({ class: classNames == null ? void 0 : classNames.optionsWrapper }),
120
+ style: {
121
+ position: "absolute",
122
+ top: position == null ? void 0 : position.top,
123
+ left: position == null ? void 0 : position.left,
124
+ width: targetRect == null ? void 0 : targetRect.width,
125
+ zIndex: 1e3,
126
+ opacity: isOpen ? 1 : 0,
127
+ transform: isOpen ? "translateY(0)" : "translateY(-0.25rem)",
128
+ transition: "opacity 150ms ease-out, transform 150ms ease-out"
129
+ },
130
+ children: options.map((option) => {
131
+ const isSelected = selectedOptions.some((o) => o.value === option.value);
132
+ return /* @__PURE__ */ jsxs(
133
+ "div",
134
+ {
135
+ role: "option",
136
+ title: option.label,
137
+ onClick: () => handleChangeOption(option),
138
+ className: clsx(
139
+ select({ ...variantProps, isSelected }).option({ class: classNames == null ? void 0 : classNames.option }),
140
+ optionIconPlacement === "end" ? "justify-between" : ""
141
+ ),
142
+ children: [
143
+ optionIconName && optionIconPlacement === "start" && /* @__PURE__ */ jsx(Icon_default, { name: optionIconName, size: originalProps.size }),
144
+ option.label,
145
+ optionIconName && optionIconPlacement === "end" && /* @__PURE__ */ jsx(Icon_default, { name: optionIconName, size: originalProps.size })
146
+ ]
147
+ },
148
+ option.value
149
+ );
150
+ })
151
+ }
152
+ ),
153
+ document.body
154
+ );
155
+ };
130
156
  return /* @__PURE__ */ jsxs(Fragment, { children: [
131
157
  /* @__PURE__ */ jsxs(
132
158
  "div",
@@ -168,7 +194,7 @@ var Select = forwardRef((originalProps, ref) => {
168
194
  /* @__PURE__ */ jsx(
169
195
  Icon_default,
170
196
  {
171
- name: "brace-up",
197
+ name: dropdownIconName,
172
198
  size: originalProps.size,
173
199
  className: `transition-transform duration-200 ${isOpen ? "rotate-0" : "rotate-180"}`
174
200
  }
@@ -182,39 +208,7 @@ var Select = forwardRef((originalProps, ref) => {
182
208
  ]
183
209
  }
184
210
  ),
185
- isVisible && createPortal(
186
- /* @__PURE__ */ jsx(
187
- "div",
188
- {
189
- ref: optionWrapperRef,
190
- role: "listbox",
191
- className: slots.optionsWrapper({ class: classNames == null ? void 0 : classNames.optionsWrapper }),
192
- style: {
193
- position: "absolute",
194
- top: position == null ? void 0 : position.top,
195
- left: position == null ? void 0 : position.left,
196
- width: targetRect == null ? void 0 : targetRect.width,
197
- zIndex: 1e3,
198
- opacity: isOpen ? 1 : 0,
199
- transform: isOpen ? "translateY(0)" : "translateY(-0.25rem)",
200
- transition: "opacity 150ms ease-out, transform 150ms ease-out"
201
- },
202
- children: options.map((option) => {
203
- const isSelected = selectedOptions.some((o) => o.value === option.value);
204
- return /* @__PURE__ */ jsx(
205
- Option,
206
- {
207
- option,
208
- isSelected,
209
- onClick: () => handleChangeOption(option)
210
- },
211
- option.value
212
- );
213
- })
214
- }
215
- ),
216
- document.body
217
- )
211
+ renderOptions()
218
212
  ] });
219
213
  });
220
214
  Select.displayName = "Select";
@@ -230,7 +224,6 @@ var select = tv({
230
224
  "flex",
231
225
  "items-center",
232
226
  "justify-between",
233
- "border",
234
227
  "cursor-pointer",
235
228
  "text-neutral-main",
236
229
  "hover:bg-trans-soft",
@@ -248,22 +241,59 @@ var select = tv({
248
241
  "group-has-[p.error]/select:text-danger-main",
249
242
  "group-has-[p.error]/select:placeholder:text-danger-main"
250
243
  ],
251
- optionsWrapper: ["border", "rounded", "bg-body-background", "shadow", "overflow-auto"],
252
- option: ["flex", "justify-between", "items-center", "cursor-pointer"],
244
+ optionsWrapper: ["bg-body-background", "overflow-auto", "flex", "flex-col", "gap-[10px]"],
245
+ option: [
246
+ "flex",
247
+ "items-center",
248
+ "cursor-pointer",
249
+ "text-neutral-dark",
250
+ "hover:bg-trans-soft",
251
+ "hover:text-neutral-strong"
252
+ ],
253
253
  helperMessage: ["text-neutral-main"],
254
254
  errorMessage: ["text-danger-main"],
255
255
  readonly: ["pointer-events-none", "!bg-trans-soft"]
256
256
  },
257
257
  variants: {
258
+ variant: {
259
+ solid: {
260
+ selectWrapper: ["border-transparent", "bg-trans-soft"],
261
+ option: [],
262
+ readonlyWrapper: ["!bg-trans-light"]
263
+ },
264
+ outline: {
265
+ selectWrapper: [
266
+ "border-neutral-light",
267
+ "border",
268
+ "group-has-[:hover]/select:bg-trans-soft",
269
+ "group-has-[:focus]/select:bg-body-background",
270
+ "group-has-[p.error]/select:border-danger-main"
271
+ ],
272
+ option: [],
273
+ readonlyWrapper: ["!bg-trans-soft"]
274
+ },
275
+ underline: {
276
+ selectWrapper: [
277
+ "bg-transparent",
278
+ "border-neutral-light",
279
+ "!rounded-none",
280
+ "group-has-[:hover]/select:bg-trans-soft",
281
+ "group-has-[:focus]/select:bg-body-background",
282
+ "group-has-[p.error]/select:border-danger-main"
283
+ ],
284
+ option: ["!rounded-none"],
285
+ readonlyWrapper: ["!bg-trans-soft"]
286
+ }
287
+ },
258
288
  color: {
259
289
  primary: {
260
290
  selectWrapper: ["text-primary-main"],
261
- option: ["hover:bg-primary-soft", "hover:text-primary-main"],
291
+ option: [],
262
292
  helperMessage: ["text-primary-main"]
263
293
  },
264
294
  secondary: {
265
295
  selectWrapper: ["text-secondary-main"],
266
- option: ["hover:bg-secondary-soft", "hover:text-secondary-main"],
296
+ option: [],
267
297
  helperMessage: ["text-secondary-main"]
268
298
  }
269
299
  },
@@ -274,7 +304,8 @@ var select = tv({
274
304
  wrapper: ["gap-[4px]"],
275
305
  selectWrapper: ["w-[240px]", "h-[24px]", "rounded-sm", "px-[4px]"],
276
306
  select: ["text-sm"],
277
- option: ["px-[4px]", "py-[3px]", "text-sm"],
307
+ optionsWrapper: ["shadow-drop-sm", "rounded-sm", "p-[4px]"],
308
+ option: ["px-[4px]", "py-[3px]", "rounded-sm", "text-sm", "gap-[4px]"],
278
309
  helperMessage: ["text-sm"],
279
310
  errorMessage: ["text-sm"]
280
311
  },
@@ -284,7 +315,8 @@ var select = tv({
284
315
  wrapper: ["gap-[6px]"],
285
316
  selectWrapper: ["w-[240px]", "h-[32px]", "rounded-md", "px-[6px]"],
286
317
  select: ["text-md"],
287
- option: ["px-[6px]", "py-[5.5px]", "text-md"],
318
+ optionsWrapper: ["shadow-drop-md", "rounded-md", "p-[6px]"],
319
+ option: ["px-[6px]", "py-[5.5px]", "rounded-md", "text-md", "gap-[6px]"],
288
320
  helperMessage: ["text-sm"],
289
321
  errorMessage: ["text-sm"]
290
322
  },
@@ -294,7 +326,8 @@ var select = tv({
294
326
  wrapper: ["gap-[8px]"],
295
327
  selectWrapper: ["w-[240px]", "h-[40px]", "rounded-lg", "px-[8px]"],
296
328
  select: ["text-lg"],
297
- option: ["px-[8px]", "py-[8px]", "text-lg"],
329
+ optionsWrapper: ["shadow-drop-lg", "rounded-lg", "p-[8px]"],
330
+ option: ["px-[8px]", "py-[8px]", "rounded-lg", "text-lg", "gap-[8px]"],
298
331
  helperMessage: ["text-md"],
299
332
  errorMessage: ["text-md"]
300
333
  },
@@ -302,9 +335,10 @@ var select = tv({
302
335
  base: ["text-xl", "gap-[10px]"],
303
336
  label: ["text-xl"],
304
337
  wrapper: ["gap-[10px]"],
305
- selectWrapper: ["w-[240px]", "h-[50px]", "rounded-lg", "px-[10px]"],
338
+ selectWrapper: ["w-[240px]", "h-[50px]", "rounded-xl", "px-[10px]"],
306
339
  select: ["text-xl"],
307
- option: ["px-[10px]", "py-[11.5px]"],
340
+ optionsWrapper: ["shadow-drop-xl", "rounded-xl", "p-[10px]"],
341
+ option: ["px-[10px]", "py-[11.5px]", , "rounded-xl", "text-xl", "gap-[10px]"],
308
342
  helperMessage: ["text-md"],
309
343
  errorMessage: ["text-md"]
310
344
  }
@@ -346,22 +380,83 @@ var select = tv({
346
380
  }
347
381
  },
348
382
  compoundVariants: [
383
+ {
384
+ variant: "outline",
385
+ size: "sm",
386
+ class: {
387
+ option: ["hover:shadow-[inset_0_0_0_1px_var(--dn-neutral-light)]"]
388
+ }
389
+ },
390
+ {
391
+ variant: "outline",
392
+ size: "md",
393
+ class: {
394
+ option: ["hover:shadow-[inset_0_0_0_1.25px_var(--dn-neutral-light)]"]
395
+ }
396
+ },
397
+ {
398
+ variant: "outline",
399
+ size: "lg",
400
+ class: {
401
+ option: ["hover:shadow-[inset_0_0_0_1.5px_var(--dn-neutral-light)]"]
402
+ }
403
+ },
404
+ {
405
+ variant: "outline",
406
+ size: "xl",
407
+ class: {
408
+ option: ["hover:shadow-[inset_0_0_0_1.75px_var(--dn-neutral-light)]"]
409
+ }
410
+ },
411
+ {
412
+ variant: "underline",
413
+ size: "sm",
414
+ class: {
415
+ selectWrapper: ["border-b-sm"],
416
+ option: ["hover:shadow-[inset_0_-1px_0_0_var(--dn-neutral-light)]"]
417
+ }
418
+ },
419
+ {
420
+ variant: "underline",
421
+ size: "md",
422
+ class: {
423
+ selectWrapper: ["border-b-md"],
424
+ option: ["hover:shadow-[inset_0_-1.25px_0_0_var(--dn-neutral-light)]"]
425
+ }
426
+ },
427
+ {
428
+ variant: "underline",
429
+ size: "lg",
430
+ class: {
431
+ selectWrapper: ["border-b-lg"],
432
+ option: ["hover:shadow-[inset_0_-1.5px_0_0_var(--dn-neutral-light)]"]
433
+ }
434
+ },
435
+ {
436
+ variant: "underline",
437
+ size: "xl",
438
+ class: {
439
+ selectWrapper: ["border-b-xl"],
440
+ option: ["hover:shadow-[inset_0_-1.75px_0_0_var(--dn-neutral-light)]"]
441
+ }
442
+ },
349
443
  {
350
444
  color: "primary",
351
445
  isSelected: true,
352
446
  class: {
353
- option: "bg-primary-soft text-primary-main"
447
+ option: ["text-primary-main"]
354
448
  }
355
449
  },
356
450
  {
357
451
  color: "secondary",
358
452
  isSelected: true,
359
453
  class: {
360
- option: "bg-secondary-soft text-secondary-main"
454
+ option: ["text-secondary-main"]
361
455
  }
362
456
  }
363
457
  ],
364
458
  defaultVariants: {
459
+ variant: "solid",
365
460
  color: "primary",
366
461
  size: "md",
367
462
  direction: "vertical",
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Icon_default
4
- } from "./chunk-EM2NIGNZ.mjs";
4
+ } from "./chunk-YZ57UYAS.mjs";
5
5
  import {
6
6
  tv
7
7
  } from "./chunk-CDXBML6O.mjs";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-SZL743JC.mjs";
8
8
  import {
9
9
  Icon_default
10
- } from "./chunk-EM2NIGNZ.mjs";
10
+ } from "./chunk-YZ57UYAS.mjs";
11
11
  import {
12
12
  mapPropsVariants
13
13
  } from "./chunk-E3G5QXSH.mjs";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Icon_default
4
- } from "./chunk-EM2NIGNZ.mjs";
4
+ } from "./chunk-YZ57UYAS.mjs";
5
5
  import {
6
6
  mapPropsVariants
7
7
  } from "./chunk-E3G5QXSH.mjs";
@@ -1354,22 +1354,28 @@ var template = {
1354
1354
  }
1355
1355
  );
1356
1356
  },
1357
- // ----------------------------------- old ---------------------------------
1358
- // ** Status **
1359
- check: ({ className, fill }) => {
1357
+ check: ({ className }) => {
1360
1358
  return /* @__PURE__ */ jsx(
1361
1359
  "svg",
1362
1360
  {
1363
- width: "24",
1364
- height: "24",
1365
- viewBox: "0 0 24 24",
1366
- fill: "none",
1367
1361
  xmlns: "http://www.w3.org/2000/svg",
1362
+ width: "27",
1363
+ height: "28",
1364
+ viewBox: "0 0 27 28",
1365
+ fill: "none",
1368
1366
  className,
1369
- children: /* @__PURE__ */ jsx("path", { d: "M4.5 12.75L10.5 18.75L19.5 5.25", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round" })
1367
+ children: /* @__PURE__ */ jsx(
1368
+ "path",
1369
+ {
1370
+ 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",
1371
+ fill: "currentColor"
1372
+ }
1373
+ )
1370
1374
  }
1371
1375
  );
1372
1376
  },
1377
+ // ----------------------------------- old ---------------------------------
1378
+ // ** Status **
1373
1379
  "plus-circle": ({ className, fill }) => {
1374
1380
  return /* @__PURE__ */ jsx(
1375
1381
  "svg",
@@ -9,7 +9,7 @@ import {
9
9
  // src/components/table/definition-table.tsx
10
10
  import { forwardRef, useMemo } from "react";
11
11
  import { jsx, jsxs } from "react/jsx-runtime";
12
- var DEFAULT_CELL_CLASSES = "px-[10px] py-[9.5px] text-md border-r border-neutral-light";
12
+ var DEFAULT_CELL_CLASSES = "px-[10px] py-[8px] text-md border-r border-neutral-light h-[50px]";
13
13
  var FIRST_CELL_WIDTH_CLASS = "w-[120px] font-bold text-md text-body-foreground";
14
14
  var renderColGroup = (rows) => {
15
15
  let maxCols = 0;
@@ -38,7 +38,7 @@ var renderColGroup = (rows) => {
38
38
  }
39
39
  return /* @__PURE__ */ jsx("colgroup", { children: cols });
40
40
  };
41
- var DefinitionTableRow = ({ cells, className }) => /* @__PURE__ */ jsx("tr", { className: `border-neutral-light min-h-[50px] border-b ${className || ""}`, children: cells.map((cell, colIndex) => {
41
+ var DefinitionTableRow = ({ cells, className }) => /* @__PURE__ */ jsx("tr", { className: `border-neutral-light border-b ${className || ""}`, children: cells.map((cell, colIndex) => {
42
42
  const isFirstCell = colIndex === 0;
43
43
  const combinedClassName = [isFirstCell ? FIRST_CELL_WIDTH_CLASS : "", clsx(DEFAULT_CELL_CLASSES, cell.className)].filter(Boolean).join(" ");
44
44
  let cellStyle;
@@ -55,13 +55,13 @@ var DefinitionTableRow = ({ cells, className }) => /* @__PURE__ */ jsx("tr", { c
55
55
  className: combinedClassName,
56
56
  colSpan: cell.colSpan,
57
57
  rowSpan: cell.rowSpan,
58
- style: cellStyle,
58
+ style: { ...cellStyle, height: "50px" },
59
59
  children: cell.content
60
60
  },
61
61
  colIndex
62
62
  );
63
63
  }) });
64
- var DefinitionTable2 = forwardRef(({ rows = [], footer, classNames }, ref) => {
64
+ var DefinitionTable = forwardRef(({ rows = [], footer, classNames }, ref) => {
65
65
  const slots = useMemo(() => DefinitionTableStyle(), []);
66
66
  return /* @__PURE__ */ jsxs("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: [
67
67
  /* @__PURE__ */ jsxs("table", { className: slots.table({ class: classNames == null ? void 0 : classNames.table }), children: [
@@ -71,8 +71,8 @@ var DefinitionTable2 = forwardRef(({ rows = [], footer, classNames }, ref) => {
71
71
  footer && /* @__PURE__ */ jsx("div", { children: footer })
72
72
  ] });
73
73
  });
74
- DefinitionTable2.displayName = "DefinitionTable2";
75
- var definition_table_default = DefinitionTable2;
74
+ DefinitionTable.displayName = "DefinitionTable";
75
+ var definition_table_default = DefinitionTable;
76
76
  var DefinitionTableStyle = tv({
77
77
  slots: {
78
78
  base: ["flex", "flex-col", "gap-[30px]"],
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-ZOTHPHXA.mjs";
5
5
  import {
6
6
  toast_default
7
- } from "./chunk-OBMO6LRA.mjs";
7
+ } from "./chunk-DLNGJVFS.mjs";
8
8
 
9
9
  // src/components/toast/use-toast.tsx
10
10
  import { createContext, useContext, useState, useCallback, useEffect, useRef } from "react";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Icon_default
4
- } from "./chunk-EM2NIGNZ.mjs";
4
+ } from "./chunk-YZ57UYAS.mjs";
5
5
  import {
6
6
  mapPropsVariants
7
7
  } from "./chunk-E3G5QXSH.mjs";
@@ -4,10 +4,10 @@ import {
4
4
  } from "./chunk-F3HENRVM.mjs";
5
5
  import {
6
6
  input_default
7
- } from "./chunk-CMMVXFHD.mjs";
7
+ } from "./chunk-3F6OF2QS.mjs";
8
8
  import {
9
9
  Icon_default
10
- } from "./chunk-EM2NIGNZ.mjs";
10
+ } from "./chunk-YZ57UYAS.mjs";
11
11
  import {
12
12
  mapPropsVariants
13
13
  } from "./chunk-E3G5QXSH.mjs";
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import {
3
3
  Icon_default
4
- } from "./chunk-EM2NIGNZ.mjs";
4
+ } from "./chunk-YZ57UYAS.mjs";
5
5
  import {
6
6
  mapPropsVariants
7
7
  } from "./chunk-E3G5QXSH.mjs";
8
8
  import {
9
9
  avatar_default
10
- } from "./chunk-RJPBLIEF.mjs";
10
+ } from "./chunk-VOKDAIUY.mjs";
11
11
  import {
12
12
  tv
13
13
  } from "./chunk-CDXBML6O.mjs";
@@ -4,13 +4,13 @@ import {
4
4
  } from "./chunk-2CLPU5LR.mjs";
5
5
  import {
6
6
  input_default
7
- } from "./chunk-CMMVXFHD.mjs";
7
+ } from "./chunk-3F6OF2QS.mjs";
8
8
  import {
9
9
  button_default
10
- } from "./chunk-SS6EG5JO.mjs";
10
+ } from "./chunk-XOUAUSP4.mjs";
11
11
  import {
12
12
  icon_button_default
13
- } from "./chunk-NV5Z6ZUO.mjs";
13
+ } from "./chunk-6JLHCQH7.mjs";
14
14
 
15
15
  // src/components/fileUpload/fileUpload.tsx
16
16
  import { useRef, useState, useEffect } from "react";
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  select_default
4
- } from "./chunk-MIVGSJFF.mjs";
4
+ } from "./chunk-3YT4YJNJ.mjs";
5
5
  import {
6
6
  Icon_default
7
- } from "./chunk-EM2NIGNZ.mjs";
7
+ } from "./chunk-YZ57UYAS.mjs";
8
8
  import {
9
9
  mapPropsVariants
10
10
  } from "./chunk-E3G5QXSH.mjs";
@@ -4,10 +4,10 @@ import {
4
4
  } from "./chunk-AF4I7ZQS.mjs";
5
5
  import {
6
6
  button_default
7
- } from "./chunk-SS6EG5JO.mjs";
7
+ } from "./chunk-XOUAUSP4.mjs";
8
8
  import {
9
9
  Icon_default
10
- } from "./chunk-EM2NIGNZ.mjs";
10
+ } from "./chunk-YZ57UYAS.mjs";
11
11
  import {
12
12
  mapPropsVariants
13
13
  } from "./chunk-E3G5QXSH.mjs";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  template
4
- } from "./chunk-CTWYY7Z2.mjs";
4
+ } from "./chunk-BG4DIGKH.mjs";
5
5
  import {
6
6
  tv
7
7
  } from "./chunk-CDXBML6O.mjs";
@@ -8,19 +8,19 @@ import {
8
8
  } from "./chunk-FWFEKWWD.mjs";
9
9
  import {
10
10
  input_default
11
- } from "./chunk-CMMVXFHD.mjs";
11
+ } from "./chunk-3F6OF2QS.mjs";
12
12
  import {
13
13
  text_button_default
14
14
  } from "./chunk-Q364C3FI.mjs";
15
15
  import {
16
16
  button_default
17
- } from "./chunk-SS6EG5JO.mjs";
17
+ } from "./chunk-XOUAUSP4.mjs";
18
18
  import {
19
19
  icon_button_default
20
- } from "./chunk-NV5Z6ZUO.mjs";
20
+ } from "./chunk-6JLHCQH7.mjs";
21
21
  import {
22
22
  Icon_default
23
- } from "./chunk-EM2NIGNZ.mjs";
23
+ } from "./chunk-YZ57UYAS.mjs";
24
24
  import {
25
25
  mapPropsVariants
26
26
  } from "./chunk-E3G5QXSH.mjs";