@deepnoid/ui 0.1.124 → 0.1.127

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 (125) hide show
  1. package/.turbo/turbo-build.log +469 -461
  2. package/dist/{chunk-WUGITHV6.mjs → chunk-4WHX4RXX.mjs} +3 -3
  3. package/dist/{chunk-QXYGQPY3.mjs → chunk-4X67BUPA.mjs} +2 -2
  4. package/dist/{chunk-TSBG5FXL.mjs → chunk-5R3ARH2N.mjs} +1 -1
  5. package/dist/{chunk-3ZF7LQOM.mjs → chunk-ANILRUAS.mjs} +5 -4
  6. package/dist/{chunk-OL22LVBG.mjs → chunk-BBEOPH6B.mjs} +1 -1
  7. package/dist/{chunk-C5IJSWWJ.mjs → chunk-BD4M2FZM.mjs} +3 -3
  8. package/dist/{chunk-Y3CGQN3I.mjs → chunk-DDK4NEDX.mjs} +2 -2
  9. package/dist/{chunk-WNNOVISA.mjs → chunk-FQJD2IY3.mjs} +79 -37
  10. package/dist/{chunk-BG4DIGKH.mjs → chunk-GQFNYXJZ.mjs} +30 -0
  11. package/dist/{chunk-KRGI6HW7.mjs → chunk-IBYQBC6D.mjs} +114 -33
  12. package/dist/{chunk-WOGNHRNX.mjs → chunk-IT6RD6KS.mjs} +1 -1
  13. package/dist/{chunk-2GFE25AI.mjs → chunk-JC6635TJ.mjs} +1 -1
  14. package/dist/{chunk-KJ7L6CO6.mjs → chunk-KP2KOY5Z.mjs} +1 -1
  15. package/dist/{chunk-HO533YTO.mjs → chunk-MPUZ5T7X.mjs} +10 -10
  16. package/dist/{chunk-5XW5QDIW.mjs → chunk-NCK5E2NL.mjs} +1 -1
  17. package/dist/{chunk-6UKNZTOL.mjs → chunk-OLQJXFHU.mjs} +1 -1
  18. package/dist/{chunk-F4ORNNYB.mjs → chunk-ORZW6F6E.mjs} +2 -2
  19. package/dist/{chunk-3HY74IGR.mjs → chunk-TRLIC34S.mjs} +1 -1
  20. package/dist/chunk-WC5PVVT6.mjs +138 -0
  21. package/dist/{chunk-YZ57UYAS.mjs → chunk-XX2PHROM.mjs} +1 -1
  22. package/dist/{chunk-LX7NPKFE.mjs → chunk-YWLC7KRK.mjs} +1 -2
  23. package/dist/{chunk-HKONMHXA.mjs → chunk-ZI3MLO7X.mjs} +1 -1
  24. package/dist/components/avatar/avatar.js +30 -0
  25. package/dist/components/avatar/avatar.mjs +2 -2
  26. package/dist/components/avatar/index.js +30 -0
  27. package/dist/components/avatar/index.mjs +2 -2
  28. package/dist/components/breadcrumb/breadcrumb.js +30 -0
  29. package/dist/components/breadcrumb/breadcrumb.mjs +6 -6
  30. package/dist/components/breadcrumb/index.js +30 -0
  31. package/dist/components/breadcrumb/index.mjs +6 -6
  32. package/dist/components/button/button.js +30 -0
  33. package/dist/components/button/button.mjs +3 -3
  34. package/dist/components/button/icon-button.js +30 -0
  35. package/dist/components/button/icon-button.mjs +3 -3
  36. package/dist/components/button/index.js +30 -0
  37. package/dist/components/button/index.mjs +7 -7
  38. package/dist/components/charts/barChart.d.mts +4 -4
  39. package/dist/components/charts/barChart.d.ts +4 -4
  40. package/dist/components/charts/barChart.js +79 -39
  41. package/dist/components/charts/barChart.mjs +1 -1
  42. package/dist/components/charts/circularProgress.js +1 -1
  43. package/dist/components/charts/circularProgress.mjs +1 -1
  44. package/dist/components/charts/index.js +79 -37
  45. package/dist/components/charts/index.mjs +5 -5
  46. package/dist/components/chip/chip.js +30 -0
  47. package/dist/components/chip/chip.mjs +3 -3
  48. package/dist/components/chip/index.js +30 -0
  49. package/dist/components/chip/index.mjs +3 -3
  50. package/dist/components/fileUpload/fileUpload.js +30 -0
  51. package/dist/components/fileUpload/fileUpload.mjs +7 -7
  52. package/dist/components/fileUpload/index.js +30 -0
  53. package/dist/components/fileUpload/index.mjs +7 -7
  54. package/dist/components/icon/Icon.d.mts +4 -0
  55. package/dist/components/icon/Icon.d.ts +4 -0
  56. package/dist/components/icon/Icon.js +30 -0
  57. package/dist/components/icon/Icon.mjs +2 -2
  58. package/dist/components/icon/index.js +30 -0
  59. package/dist/components/icon/index.mjs +2 -2
  60. package/dist/components/icon/template.d.mts +1 -0
  61. package/dist/components/icon/template.d.ts +1 -0
  62. package/dist/components/icon/template.js +30 -0
  63. package/dist/components/icon/template.mjs +1 -1
  64. package/dist/components/input/index.js +30 -0
  65. package/dist/components/input/index.mjs +3 -3
  66. package/dist/components/input/input.js +30 -0
  67. package/dist/components/input/input.mjs +3 -3
  68. package/dist/components/list/index.js +30 -0
  69. package/dist/components/list/index.mjs +4 -4
  70. package/dist/components/list/listItem.js +30 -0
  71. package/dist/components/list/listItem.mjs +4 -4
  72. package/dist/components/modal/index.js +30 -0
  73. package/dist/components/modal/index.mjs +6 -6
  74. package/dist/components/modal/modal.js +30 -0
  75. package/dist/components/modal/modal.mjs +6 -6
  76. package/dist/components/pagination/index.js +141 -29
  77. package/dist/components/pagination/index.mjs +4 -4
  78. package/dist/components/pagination/pagination.d.mts +1 -1
  79. package/dist/components/pagination/pagination.d.ts +1 -1
  80. package/dist/components/pagination/pagination.js +142 -35
  81. package/dist/components/pagination/pagination.mjs +5 -7
  82. package/dist/components/picker/datePicker.js +30 -0
  83. package/dist/components/picker/datePicker.mjs +8 -8
  84. package/dist/components/picker/index.js +30 -1
  85. package/dist/components/picker/index.mjs +10 -10
  86. package/dist/components/picker/timePicker.js +30 -1
  87. package/dist/components/picker/timePicker.mjs +4 -4
  88. package/dist/components/select/index.js +30 -1
  89. package/dist/components/select/index.mjs +3 -3
  90. package/dist/components/select/select.js +30 -1
  91. package/dist/components/select/select.mjs +3 -3
  92. package/dist/components/table/definition-table.d.mts +2 -0
  93. package/dist/components/table/definition-table.d.ts +2 -0
  94. package/dist/components/table/definition-table.js +67 -14
  95. package/dist/components/table/definition-table.mjs +1 -1
  96. package/dist/components/table/index.js +209 -43
  97. package/dist/components/table/index.mjs +10 -10
  98. package/dist/components/table/table-body.js +142 -29
  99. package/dist/components/table/table-body.mjs +7 -7
  100. package/dist/components/table/table-head.js +142 -29
  101. package/dist/components/table/table-head.mjs +7 -7
  102. package/dist/components/table/table.js +142 -29
  103. package/dist/components/table/table.mjs +7 -7
  104. package/dist/components/timePicker/calendar.d.mts +72 -0
  105. package/dist/components/timePicker/calendar.d.ts +72 -0
  106. package/dist/components/timePicker/calendar.js +5360 -0
  107. package/dist/components/timePicker/calendar.mjs +300 -0
  108. package/dist/components/timePicker/useDateTimePicker.d.mts +38 -0
  109. package/dist/components/timePicker/useDateTimePicker.d.ts +38 -0
  110. package/dist/components/timePicker/useDateTimePicker.js +126 -0
  111. package/dist/components/timePicker/useDateTimePicker.mjs +96 -0
  112. package/dist/components/toast/index.js +30 -0
  113. package/dist/components/toast/index.mjs +4 -4
  114. package/dist/components/toast/toast.js +30 -0
  115. package/dist/components/toast/toast.mjs +3 -3
  116. package/dist/components/toast/use-toast.js +30 -0
  117. package/dist/components/toast/use-toast.mjs +4 -4
  118. package/dist/components/tree/index.js +30 -0
  119. package/dist/components/tree/index.mjs +3 -3
  120. package/dist/components/tree/tree.js +30 -0
  121. package/dist/components/tree/tree.mjs +3 -3
  122. package/dist/index.js +288 -81
  123. package/dist/index.mjs +54 -54
  124. package/package.json +1 -1
  125. package/dist/chunk-SJNXRXV5.mjs +0 -85
@@ -4,10 +4,10 @@ import {
4
4
  } from "./chunk-F3HENRVM.mjs";
5
5
  import {
6
6
  input_default
7
- } from "./chunk-HKONMHXA.mjs";
7
+ } from "./chunk-ZI3MLO7X.mjs";
8
8
  import {
9
9
  Icon_default
10
- } from "./chunk-YZ57UYAS.mjs";
10
+ } from "./chunk-XX2PHROM.mjs";
11
11
  import {
12
12
  mapPropsVariants
13
13
  } from "./chunk-E3G5QXSH.mjs";
@@ -60,7 +60,7 @@ var Pagination = forwardRef((originalProps, ref) => {
60
60
  "data-is-active": currentPage > 1,
61
61
  className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
62
62
  onClick: currentPage > 1 ? handleClickMovePage(1) : void 0,
63
- children: /* @__PURE__ */ jsx(Icon_default, { name: "left-double-chevron" })
63
+ children: /* @__PURE__ */ jsx(Icon_default, { name: "left-double-chevron", size })
64
64
  }
65
65
  ),
66
66
  /* @__PURE__ */ jsx(
@@ -70,7 +70,7 @@ var Pagination = forwardRef((originalProps, ref) => {
70
70
  "data-is-active": currentPage > 1,
71
71
  className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
72
72
  onClick: currentPage > 1 ? handleClickMovePage(currentPage - 1) : void 0,
73
- children: /* @__PURE__ */ jsx(Icon_default, { name: "left-chevron" })
73
+ children: /* @__PURE__ */ jsx(Icon_default, { name: "left-chevron", size })
74
74
  }
75
75
  ),
76
76
  showPageNumber && pageList.map((page, index) => /* @__PURE__ */ jsx(
@@ -90,7 +90,7 @@ var Pagination = forwardRef((originalProps, ref) => {
90
90
  "data-is-active": currentPage < totalPage,
91
91
  className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
92
92
  onClick: currentPage < totalPage ? handleClickMovePage(currentPage + 1) : void 0,
93
- children: /* @__PURE__ */ jsx(Icon_default, { name: "right-chevron" })
93
+ children: /* @__PURE__ */ jsx(Icon_default, { name: "right-chevron", size })
94
94
  }
95
95
  ),
96
96
  showFirstLastButtons && /* @__PURE__ */ jsx(
@@ -100,7 +100,7 @@ var Pagination = forwardRef((originalProps, ref) => {
100
100
  "data-is-active": currentPage < totalPage,
101
101
  className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
102
102
  onClick: currentPage < totalPage ? handleClickMovePage(totalPage) : void 0,
103
- children: /* @__PURE__ */ jsx(Icon_default, { name: "right-double-chevron" })
103
+ children: /* @__PURE__ */ jsx(Icon_default, { name: "right-double-chevron", size })
104
104
  }
105
105
  )
106
106
  ] }),
@@ -108,6 +108,7 @@ var Pagination = forwardRef((originalProps, ref) => {
108
108
  /* @__PURE__ */ jsx(
109
109
  input_default,
110
110
  {
111
+ variant: variant === "underline" ? "outline" : variant,
111
112
  value: inputPage || 1,
112
113
  onChange: (e) => setInputPage(Number(e.target.value)),
113
114
  onKeyDown: handleKeyDown,
@@ -115,10 +116,7 @@ var Pagination = forwardRef((originalProps, ref) => {
115
116
  height: 24,
116
117
  size: "sm",
117
118
  classNames: {
118
- inputWrapper: clsx(
119
- "w-[50px] h-[24px] rounded-sm",
120
- variant === "solid" ? "" : "bg-body-background border border-neutral-light"
121
- )
119
+ inputWrapper: clsx("w-[50px] h-[24px] rounded-sm")
122
120
  }
123
121
  }
124
122
  ),
@@ -159,24 +157,24 @@ var paginationStyle = tv(
159
157
  variants: {
160
158
  variant: {
161
159
  solid: {
162
- button: ["rounded-[5px]", "border-transparent"]
160
+ button: ["rounded-[5px]"]
163
161
  },
164
162
  underline: {
165
- button: ["rounded-0", "border-transparent"]
163
+ button: ["rounded-0", "bg-body-background"]
166
164
  }
167
165
  },
168
166
  size: {
169
167
  sm: {
170
- button: ["text-sm", "data-[selected=true]:border-sm"]
168
+ button: ["text-sm"]
171
169
  },
172
170
  md: {
173
- button: ["text-md", "data-[selected=true]:border-md"]
171
+ button: ["text-md"]
174
172
  },
175
173
  lg: {
176
- button: ["text-lg", "data-[selected=true]:border-lg"]
174
+ button: ["text-lg"]
177
175
  },
178
176
  xl: {
179
- button: ["text-xl", "data-[selected=true]:border-xl"]
177
+ button: ["text-xl"]
180
178
  }
181
179
  },
182
180
  color: {
@@ -232,37 +230,121 @@ var paginationStyle = tv(
232
230
  variant: "underline",
233
231
  color: "primary",
234
232
  class: {
235
- button: [
236
- "hover:text-primary-main",
237
- "data-[selected=true]:text-primary-main",
238
- "data-[selected=true]:border-b-primary-main"
239
- ],
233
+ button: ["hover:text-primary-main", "data-[selected=true]:text-primary-main"],
240
234
  icon: ["hover:text-primary-main"]
241
235
  }
242
236
  },
237
+ {
238
+ variant: "underline",
239
+ color: "primary",
240
+ size: "sm",
241
+ class: {
242
+ button: ["data-[selected=true]:shadow-[inset_0_-1px_0_0_var(--dn-primary-main)]"]
243
+ }
244
+ },
245
+ {
246
+ variant: "underline",
247
+ color: "primary",
248
+ size: "md",
249
+ class: {
250
+ button: ["data-[selected=true]:shadow-[inset_0_-1.25px_0_0_var(--dn-primary-main)]"]
251
+ }
252
+ },
253
+ {
254
+ variant: "underline",
255
+ color: "primary",
256
+ size: "lg",
257
+ class: {
258
+ button: ["data-[selected=true]:shadow-[inset_0_-1.5px_0_0_var(--dn-primary-main)]"]
259
+ }
260
+ },
261
+ {
262
+ variant: "underline",
263
+ color: "primary",
264
+ size: "xl",
265
+ class: {
266
+ button: ["data-[selected=true]:shadow-[inset_0_-1.75px_0_0_var(--dn-primary-main)]"]
267
+ }
268
+ },
243
269
  {
244
270
  variant: "underline",
245
271
  color: "secondary",
246
272
  class: {
247
- button: [
248
- "hover:text-secondary-main",
249
- "data-[selected=true]:text-secondary-main",
250
- "data-[selected=true]:border-b-secondary-main"
251
- ],
273
+ button: ["hover:text-secondary-main", "data-[selected=true]:text-secondary-main"],
252
274
  icon: ["hover:text-secondary-main"]
253
275
  }
254
276
  },
277
+ {
278
+ variant: "underline",
279
+ color: "secondary",
280
+ size: "sm",
281
+ class: {
282
+ button: ["data-[selected=true]:shadow-[inset_0_-1px_0_0_var(--dn-secondary-main)]"]
283
+ }
284
+ },
285
+ {
286
+ variant: "underline",
287
+ color: "secondary",
288
+ size: "md",
289
+ class: {
290
+ button: ["data-[selected=true]:shadow-[inset_0_-1.25px_0_0_var(--dn-secondary-main)]"]
291
+ }
292
+ },
293
+ {
294
+ variant: "underline",
295
+ color: "secondary",
296
+ size: "lg",
297
+ class: {
298
+ button: ["data-[selected=true]:shadow-[inset_0_-1.5px_0_0_var(--dn-secondary-main)]"]
299
+ }
300
+ },
301
+ {
302
+ variant: "underline",
303
+ color: "secondary",
304
+ size: "xl",
305
+ class: {
306
+ button: ["data-[selected=true]:shadow-[inset_0_-1.75px_0_0_var(--dn-secondary-main)]"]
307
+ }
308
+ },
255
309
  {
256
310
  variant: "underline",
257
311
  color: "neutral",
258
312
  class: {
259
- button: [
260
- "hover:text-neutral-dark",
261
- "data-[selected=true]:text-neutral-dark",
262
- "data-[selected=true]:border-b-neutral-main"
263
- ],
313
+ button: ["hover:text-neutral-dark", "data-[selected=true]:text-neutral-dark"],
264
314
  icon: ["hover:text-neutral-dark"]
265
315
  }
316
+ },
317
+ {
318
+ variant: "underline",
319
+ color: "neutral",
320
+ size: "sm",
321
+ class: {
322
+ button: ["data-[selected=true]:shadow-[inset_0_-1px_0_0_var(--dn-neutral-main)]"]
323
+ }
324
+ },
325
+ {
326
+ variant: "underline",
327
+ color: "neutral",
328
+ size: "md",
329
+ class: {
330
+ button: ["data-[selected=true]:shadow-[inset_0_-1.25px_0_0_var(--dn-neutral-main)]"]
331
+ }
332
+ },
333
+ {
334
+ variant: "underline",
335
+ color: "neutral",
336
+ size: "lg",
337
+ class: {
338
+ button: ["data-[selected=true]:shadow-[inset_0_-1.5px_0_0_var(--dn-neutral-main)]"]
339
+ }
340
+ },
341
+ {
342
+ variant: "underline",
343
+ color: "neutral",
344
+ size: "xl",
345
+ class: {
346
+ button: ["data-[selected=true]:shadow-[inset_0_-1.75px_0_0_var(--dn-neutral-main)]"]
347
+ }
266
348
  }
267
349
  ],
268
350
  defaultVariants: {
@@ -278,6 +360,5 @@ var paginationStyle = tv(
278
360
  );
279
361
 
280
362
  export {
281
- pagination_default,
282
- paginationStyle
363
+ pagination_default
283
364
  };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Icon_default
4
- } from "./chunk-YZ57UYAS.mjs";
4
+ } from "./chunk-XX2PHROM.mjs";
5
5
  import {
6
6
  mapPropsVariants
7
7
  } from "./chunk-E3G5QXSH.mjs";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Icon_default
4
- } from "./chunk-YZ57UYAS.mjs";
4
+ } from "./chunk-XX2PHROM.mjs";
5
5
  import {
6
6
  tv
7
7
  } from "./chunk-76QIZILI.mjs";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-ZOTHPHXA.mjs";
5
5
  import {
6
6
  toast_default
7
- } from "./chunk-TSBG5FXL.mjs";
7
+ } from "./chunk-5R3ARH2N.mjs";
8
8
 
9
9
  // src/components/toast/use-toast.tsx
10
10
  import { createContext, useContext, useState, useCallback, useEffect, useRef } from "react";
@@ -1,26 +1,26 @@
1
1
  "use client";
2
+ import {
3
+ day_default
4
+ } from "./chunk-2TDHQLVV.mjs";
2
5
  import {
3
6
  formatDateToString,
4
7
  formatStringToDate
5
8
  } from "./chunk-FWFEKWWD.mjs";
6
- import {
7
- day_default
8
- } from "./chunk-2TDHQLVV.mjs";
9
9
  import {
10
10
  input_default
11
- } from "./chunk-HKONMHXA.mjs";
11
+ } from "./chunk-ZI3MLO7X.mjs";
12
+ import {
13
+ text_button_default
14
+ } from "./chunk-SDUDU3CU.mjs";
12
15
  import {
13
16
  button_default
14
- } from "./chunk-3HY74IGR.mjs";
17
+ } from "./chunk-TRLIC34S.mjs";
15
18
  import {
16
19
  icon_button_default
17
- } from "./chunk-6UKNZTOL.mjs";
20
+ } from "./chunk-OLQJXFHU.mjs";
18
21
  import {
19
22
  Icon_default
20
- } from "./chunk-YZ57UYAS.mjs";
21
- import {
22
- text_button_default
23
- } from "./chunk-SDUDU3CU.mjs";
23
+ } from "./chunk-XX2PHROM.mjs";
24
24
  import {
25
25
  mapPropsVariants
26
26
  } from "./chunk-E3G5QXSH.mjs";
@@ -69,7 +69,7 @@ var CircularProgress = forwardRef((originalProps, ref) => {
69
69
  cx: size / 2,
70
70
  cy: size / 2,
71
71
  r: OUTER_RADIUS + BORDER_MARGIN,
72
- fill: "none",
72
+ fill: "#fff",
73
73
  stroke: "#DFE2E7",
74
74
  strokeWidth: "1"
75
75
  }
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-SZL743JC.mjs";
8
8
  import {
9
9
  Icon_default
10
- } from "./chunk-YZ57UYAS.mjs";
10
+ } from "./chunk-XX2PHROM.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-YZ57UYAS.mjs";
4
+ } from "./chunk-XX2PHROM.mjs";
5
5
  import {
6
6
  mapPropsVariants
7
7
  } from "./chunk-E3G5QXSH.mjs";
8
8
  import {
9
9
  avatar_default
10
- } from "./chunk-OL22LVBG.mjs";
10
+ } from "./chunk-BBEOPH6B.mjs";
11
11
  import {
12
12
  tv
13
13
  } from "./chunk-76QIZILI.mjs";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-SZL743JC.mjs";
8
8
  import {
9
9
  Icon_default
10
- } from "./chunk-YZ57UYAS.mjs";
10
+ } from "./chunk-XX2PHROM.mjs";
11
11
  import {
12
12
  mapPropsVariants
13
13
  } from "./chunk-E3G5QXSH.mjs";
@@ -0,0 +1,138 @@
1
+ "use client";
2
+ import {
3
+ tv
4
+ } from "./chunk-76QIZILI.mjs";
5
+ import {
6
+ clsx
7
+ } from "./chunk-27Y6K5NK.mjs";
8
+
9
+ // src/components/table/definition-table.tsx
10
+ import { forwardRef, useMemo } from "react";
11
+ import { jsx, jsxs } from "react/jsx-runtime";
12
+ var DEFAULT_CELL_CLASSES = "px-[10px] py-[8px] text-md border-r border-neutral-light h-[50px]";
13
+ var FIRST_CELL_WIDTH_CLASS = "w-[120px] font-bold text-md text-body-foreground";
14
+ var renderColGroup = (rows) => {
15
+ let maxCols = 0;
16
+ const colWidths = [];
17
+ rows.forEach((row) => {
18
+ let currentColCount = 0;
19
+ row.cells.forEach((cell) => {
20
+ currentColCount += cell.colSpan || 1;
21
+ });
22
+ maxCols = Math.max(maxCols, currentColCount);
23
+ });
24
+ colWidths[0] = "120px";
25
+ rows.forEach((row) => {
26
+ let colIndex = 0;
27
+ row.cells.forEach((cell) => {
28
+ const span = cell.colSpan || 1;
29
+ if (colIndex > 0 && cell.width && cell.width !== "auto" && colIndex < maxCols) {
30
+ colWidths[colIndex] = cell.width;
31
+ }
32
+ colIndex += span;
33
+ });
34
+ });
35
+ const cols = [];
36
+ for (let i = 0; i < maxCols; i++) {
37
+ cols.push(/* @__PURE__ */ jsx("col", { style: { width: colWidths[i] || "auto" } }, i));
38
+ }
39
+ return /* @__PURE__ */ jsx("colgroup", { children: cols });
40
+ };
41
+ var getHighlightColumnIndex = (rows, key) => {
42
+ if (!key) return null;
43
+ for (const row of rows) {
44
+ let colIndex = 0;
45
+ for (const cell of row.cells) {
46
+ const span = cell.colSpan || 1;
47
+ if (cell.key === key) return colIndex;
48
+ colIndex += span;
49
+ }
50
+ }
51
+ return null;
52
+ };
53
+ var DefinitionTableRow = ({
54
+ cells,
55
+ className,
56
+ rowIndex = 0,
57
+ rowCount = 0,
58
+ highlightColumnIndex
59
+ }) => /* @__PURE__ */ jsx("tr", { className: clsx("border-neutral-light border-b", className), children: cells.map((cell, colIndex) => {
60
+ const isFirstCell = colIndex === 0;
61
+ const isHighlighted = colIndex === highlightColumnIndex;
62
+ const isFirstRow = rowIndex === 0;
63
+ const isLastRow = rowIndex === rowCount - 1;
64
+ const borderHighlightClass = isHighlighted ? clsx(
65
+ "border-l-[2px] border-r-[2px] border-primary-main bg-neutral-soft",
66
+ isFirstRow && "border-t-[2px]",
67
+ isLastRow && "border-b-[2px]"
68
+ ) : "";
69
+ const combinedClassName = clsx(
70
+ DEFAULT_CELL_CLASSES,
71
+ isFirstCell && FIRST_CELL_WIDTH_CLASS,
72
+ cell.className,
73
+ borderHighlightClass
74
+ );
75
+ let cellStyle;
76
+ if (isFirstCell) {
77
+ cellStyle = {
78
+ width: "120px",
79
+ minWidth: "120px",
80
+ maxWidth: "120px"
81
+ };
82
+ } else if (cell.width && cell.width !== "auto") {
83
+ cellStyle = {
84
+ width: cell.width,
85
+ minWidth: cell.width,
86
+ maxWidth: cell.width
87
+ };
88
+ } else {
89
+ cellStyle = { width: "100%" };
90
+ }
91
+ return /* @__PURE__ */ jsx(
92
+ "td",
93
+ {
94
+ className: combinedClassName,
95
+ colSpan: cell.colSpan,
96
+ rowSpan: cell.rowSpan,
97
+ style: { ...cellStyle, height: "50px" },
98
+ children: cell.content
99
+ },
100
+ colIndex
101
+ );
102
+ }) });
103
+ var DefinitionTable = forwardRef(
104
+ ({ rows = [], footer, highlightColumnKey, classNames }, ref) => {
105
+ const slots = useMemo(() => DefinitionTableStyle(), []);
106
+ const highlightColumnIndex = useMemo(
107
+ () => getHighlightColumnIndex(rows, highlightColumnKey),
108
+ [rows, highlightColumnKey]
109
+ );
110
+ return /* @__PURE__ */ jsx("div", { ref, className: clsx(slots.base(), classNames == null ? void 0 : classNames.base), children: /* @__PURE__ */ jsxs("table", { className: clsx(slots.table(), classNames == null ? void 0 : classNames.table), children: [
111
+ renderColGroup(rows),
112
+ /* @__PURE__ */ jsx("tbody", { children: rows.map((row, i) => /* @__PURE__ */ jsx(
113
+ DefinitionTableRow,
114
+ {
115
+ ...row,
116
+ rowIndex: i,
117
+ rowCount: rows.length,
118
+ highlightColumnIndex,
119
+ className: row.className
120
+ },
121
+ i
122
+ )) }),
123
+ footer && /* @__PURE__ */ jsx("tfoot", { children: footer })
124
+ ] }) });
125
+ }
126
+ );
127
+ DefinitionTable.displayName = "DefinitionTable";
128
+ var definition_table_default = DefinitionTable;
129
+ var DefinitionTableStyle = tv({
130
+ slots: {
131
+ base: ["flex", "flex-col", "gap-[30px]"],
132
+ table: ["w-full", "table-auto", "border", "border-neutral-light"]
133
+ }
134
+ });
135
+
136
+ export {
137
+ definition_table_default
138
+ };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  template
4
- } from "./chunk-BG4DIGKH.mjs";
4
+ } from "./chunk-GQFNYXJZ.mjs";
5
5
 
6
6
  // src/components/icon/Icon.tsx
7
7
  import { jsx } from "react/jsx-runtime";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Icon_default
4
- } from "./chunk-YZ57UYAS.mjs";
4
+ } from "./chunk-XX2PHROM.mjs";
5
5
  import {
6
6
  mapPropsVariants
7
7
  } from "./chunk-E3G5QXSH.mjs";
@@ -133,7 +133,6 @@ var Select = forwardRef((originalProps, ref) => {
133
133
  "div",
134
134
  {
135
135
  role: "option",
136
- title: option.label,
137
136
  onClick: () => handleChangeOption(option),
138
137
  className: clsx(
139
138
  select({ ...variantProps, isSelected }).option({ class: classNames == null ? void 0 : classNames.option }),
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Icon_default
4
- } from "./chunk-YZ57UYAS.mjs";
4
+ } from "./chunk-XX2PHROM.mjs";
5
5
  import {
6
6
  mapPropsVariants
7
7
  } from "./chunk-E3G5QXSH.mjs";