@deepnoid/ui 0.1.0 → 0.1.2

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 (135) hide show
  1. package/.turbo/turbo-build.log +173 -173
  2. package/dist/{chunk-VWMXZUR2.mjs → chunk-2TJDQIKB.mjs} +1 -1
  3. package/dist/{chunk-IE2BRM7Z.mjs → chunk-2ZT6V4QR.mjs} +0 -9
  4. package/dist/{chunk-PKVQXVCS.mjs → chunk-56VCX2QR.mjs} +1 -1
  5. package/dist/{chunk-UAMIPCUD.mjs → chunk-AMA53H3C.mjs} +2 -2
  6. package/dist/{chunk-XAA5KY6A.mjs → chunk-CF6O6TCF.mjs} +1 -1
  7. package/dist/{chunk-3AMZ55Y6.mjs → chunk-DNFBQYVG.mjs} +3 -3
  8. package/dist/{chunk-QNA2GDTN.mjs → chunk-GLBASISV.mjs} +1 -1
  9. package/dist/{chunk-QJHZJRSQ.mjs → chunk-HKXUNG3H.mjs} +1 -1
  10. package/dist/{chunk-XTGRSVYO.mjs → chunk-J5WJD6XZ.mjs} +1 -1
  11. package/dist/{chunk-MW6Y3FSE.mjs → chunk-KWWYMTJP.mjs} +4 -4
  12. package/dist/chunk-M2IRRTFM.mjs +79 -0
  13. package/dist/{chunk-Q5WACGVP.mjs → chunk-N4F3R6HG.mjs} +1 -1
  14. package/dist/chunk-OELLMF2V.mjs +283 -0
  15. package/dist/{chunk-WQBOPCH6.mjs → chunk-ON5SGXHZ.mjs} +1 -1
  16. package/dist/chunk-OQS4LGZK.mjs +27 -0
  17. package/dist/chunk-OYNGJ33M.mjs +285 -0
  18. package/dist/{chunk-KCYJYS66.mjs → chunk-RCU5MLBU.mjs} +1 -1
  19. package/dist/{chunk-X2MQCISM.mjs → chunk-S65S7QZ5.mjs} +1 -1
  20. package/dist/chunk-TMSBICKB.mjs +314 -0
  21. package/dist/{chunk-RRL6KBU4.mjs → chunk-U2YKMXVG.mjs} +1 -1
  22. package/dist/{chunk-CATOSBI7.mjs → chunk-VP3NVHFU.mjs} +2 -2
  23. package/dist/{chunk-VBFXKJTI.mjs → chunk-VRGHUYRU.mjs} +2 -2
  24. package/dist/{chunk-5S4XGPBB.mjs → chunk-VVOOYDJS.mjs} +1 -1
  25. package/dist/{chunk-FYJZ7Q5L.mjs → chunk-XIHAABHB.mjs} +1 -1
  26. package/dist/{chunk-2HSK6XGZ.mjs → chunk-YZNQ2QGK.mjs} +1 -1
  27. package/dist/{chunk-P5WT7WJO.mjs → chunk-ZEZ6ZA3N.mjs} +1 -1
  28. package/dist/components/avatar/avatar.js +0 -9
  29. package/dist/components/avatar/avatar.mjs +2 -2
  30. package/dist/components/avatar/index.js +0 -9
  31. package/dist/components/avatar/index.mjs +2 -2
  32. package/dist/components/backdrop/backdrop.js +0 -9
  33. package/dist/components/backdrop/backdrop.mjs +2 -2
  34. package/dist/components/backdrop/index.js +0 -9
  35. package/dist/components/backdrop/index.mjs +2 -2
  36. package/dist/components/breadcrumb/breadcrumb.js +0 -9
  37. package/dist/components/breadcrumb/breadcrumb.mjs +2 -2
  38. package/dist/components/breadcrumb/index.js +0 -9
  39. package/dist/components/breadcrumb/index.mjs +2 -2
  40. package/dist/components/button/button-group.js +0 -9
  41. package/dist/components/button/button-group.mjs +2 -2
  42. package/dist/components/button/button.js +0 -9
  43. package/dist/components/button/button.mjs +2 -2
  44. package/dist/components/button/index.js +0 -9
  45. package/dist/components/button/index.mjs +3 -3
  46. package/dist/components/checkbox/checkbox.js +0 -9
  47. package/dist/components/checkbox/checkbox.mjs +2 -2
  48. package/dist/components/checkbox/index.js +0 -9
  49. package/dist/components/checkbox/index.mjs +2 -2
  50. package/dist/components/chip/chip.js +0 -9
  51. package/dist/components/chip/chip.mjs +2 -2
  52. package/dist/components/chip/index.js +0 -9
  53. package/dist/components/chip/index.mjs +2 -2
  54. package/dist/components/dateTimePicker/calendar.js +0 -9
  55. package/dist/components/dateTimePicker/calendar.mjs +2 -2
  56. package/dist/components/dateTimePicker/dateTimePicker.js +0 -9
  57. package/dist/components/dateTimePicker/dateTimePicker.mjs +7 -7
  58. package/dist/components/dateTimePicker/index.js +0 -9
  59. package/dist/components/dateTimePicker/index.mjs +7 -7
  60. package/dist/components/dateTimePicker/timePicker.js +0 -9
  61. package/dist/components/dateTimePicker/timePicker.mjs +5 -5
  62. package/dist/components/input/index.d.mts +1 -1
  63. package/dist/components/input/index.d.ts +1 -1
  64. package/dist/components/input/index.js +429 -379
  65. package/dist/components/input/index.mjs +3 -2
  66. package/dist/components/input/input.d.mts +96 -81
  67. package/dist/components/input/input.d.ts +96 -81
  68. package/dist/components/input/input.js +429 -379
  69. package/dist/components/input/input.mjs +3 -2
  70. package/dist/components/list/index.js +0 -9
  71. package/dist/components/list/index.mjs +4 -4
  72. package/dist/components/list/list.js +0 -9
  73. package/dist/components/list/list.mjs +2 -2
  74. package/dist/components/list/listItem.js +0 -9
  75. package/dist/components/list/listItem.mjs +3 -3
  76. package/dist/components/modal/index.js +0 -9
  77. package/dist/components/modal/index.mjs +4 -4
  78. package/dist/components/modal/modal.js +0 -9
  79. package/dist/components/modal/modal.mjs +4 -4
  80. package/dist/components/pagination/index.d.mts +1 -1
  81. package/dist/components/pagination/index.d.ts +1 -1
  82. package/dist/components/pagination/index.js +320 -292
  83. package/dist/components/pagination/index.mjs +4 -3
  84. package/dist/components/pagination/pagination.d.mts +39 -95
  85. package/dist/components/pagination/pagination.d.ts +39 -95
  86. package/dist/components/pagination/pagination.js +322 -296
  87. package/dist/components/pagination/pagination.mjs +6 -7
  88. package/dist/components/radio/index.js +0 -9
  89. package/dist/components/radio/index.mjs +2 -2
  90. package/dist/components/radio/radio.js +0 -9
  91. package/dist/components/radio/radio.mjs +2 -2
  92. package/dist/components/select/index.js +0 -9
  93. package/dist/components/select/index.mjs +3 -3
  94. package/dist/components/select/option.js +0 -9
  95. package/dist/components/select/option.mjs +2 -2
  96. package/dist/components/select/select.js +0 -9
  97. package/dist/components/select/select.mjs +3 -3
  98. package/dist/components/table/index.js +1193 -775
  99. package/dist/components/table/index.mjs +10 -5
  100. package/dist/components/table/table-body.d.mts +10 -16
  101. package/dist/components/table/table-body.d.ts +10 -16
  102. package/dist/components/table/table-body.js +54 -3792
  103. package/dist/components/table/table-body.mjs +3 -6
  104. package/dist/components/table/table-head.d.mts +4 -6
  105. package/dist/components/table/table-head.d.ts +4 -6
  106. package/dist/components/table/table-head.js +6 -44
  107. package/dist/components/table/table-head.mjs +3 -3
  108. package/dist/components/table/table.d.mts +91 -231
  109. package/dist/components/table/table.d.ts +91 -231
  110. package/dist/components/table/table.js +1193 -775
  111. package/dist/components/table/table.mjs +10 -5
  112. package/dist/components/tabs/index.js +0 -9
  113. package/dist/components/tabs/index.mjs +2 -2
  114. package/dist/components/tabs/tabs.js +0 -9
  115. package/dist/components/tabs/tabs.mjs +2 -2
  116. package/dist/components/toast/index.js +0 -9
  117. package/dist/components/toast/index.mjs +3 -3
  118. package/dist/components/toast/toast.js +0 -9
  119. package/dist/components/toast/toast.mjs +2 -2
  120. package/dist/components/toast/use-toast.js +0 -9
  121. package/dist/components/toast/use-toast.mjs +3 -3
  122. package/dist/components/tooltip/index.js +0 -9
  123. package/dist/components/tooltip/index.mjs +2 -2
  124. package/dist/components/tooltip/tooltip.js +0 -9
  125. package/dist/components/tooltip/tooltip.mjs +2 -2
  126. package/dist/index.js +822 -958
  127. package/dist/index.mjs +56 -56
  128. package/dist/utils/tailwind-variants.js +0 -9
  129. package/dist/utils/tailwind-variants.mjs +1 -1
  130. package/package.json +1 -1
  131. package/dist/chunk-5IQKKLZY.mjs +0 -139
  132. package/dist/chunk-PFYYYUJW.mjs +0 -56
  133. package/dist/chunk-RQ76IOYC.mjs +0 -300
  134. package/dist/chunk-SK2A72R2.mjs +0 -263
  135. package/dist/chunk-YGOEKSNZ.mjs +0 -345
@@ -221,35 +221,30 @@ var fontSize = {
221
221
  h1: [
222
222
  "40px",
223
223
  {
224
- letterSpacing: "-2%",
225
224
  fontWeight: "700"
226
225
  }
227
226
  ],
228
227
  h2: [
229
228
  "34px",
230
229
  {
231
- letterSpacing: "-2%",
232
230
  fontWeight: "700"
233
231
  }
234
232
  ],
235
233
  h3: [
236
234
  "28px",
237
235
  {
238
- letterSpacing: "-2%",
239
236
  fontWeight: "700"
240
237
  }
241
238
  ],
242
239
  h4: [
243
240
  "24px",
244
241
  {
245
- letterSpacing: "-2%",
246
242
  fontWeight: "700"
247
243
  }
248
244
  ],
249
245
  h5: [
250
246
  "20px",
251
247
  {
252
- letterSpacing: "-2%",
253
248
  fontWeight: "600"
254
249
  }
255
250
  ],
@@ -257,7 +252,6 @@ var fontSize = {
257
252
  "12px",
258
253
  {
259
254
  lineHeight: "18px",
260
- letterSpacing: "-2%",
261
255
  fontWeight: "400"
262
256
  }
263
257
  ],
@@ -265,7 +259,6 @@ var fontSize = {
265
259
  "14px",
266
260
  {
267
261
  lineHeight: "21px",
268
- letterSpacing: "-2%",
269
262
  fontWeight: "400"
270
263
  }
271
264
  ],
@@ -273,7 +266,6 @@ var fontSize = {
273
266
  "16px",
274
267
  {
275
268
  lineHeight: "24px",
276
- letterSpacing: "-2%",
277
269
  fontWeight: "400"
278
270
  }
279
271
  ],
@@ -281,7 +273,6 @@ var fontSize = {
281
273
  "18px",
282
274
  {
283
275
  lineHeight: "27px",
284
- letterSpacing: "-2%",
285
276
  fontWeight: "400"
286
277
  }
287
278
  ]
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  tv
4
- } from "./chunk-IE2BRM7Z.mjs";
4
+ } from "./chunk-2ZT6V4QR.mjs";
5
5
  import {
6
6
  clsx
7
7
  } from "./chunk-27Y6K5NK.mjs";
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import {
3
3
  button_default
4
- } from "./chunk-X2MQCISM.mjs";
4
+ } from "./chunk-S65S7QZ5.mjs";
5
5
  import {
6
6
  Icon_default
7
7
  } from "./chunk-24NQEB73.mjs";
8
8
  import {
9
9
  tv
10
- } from "./chunk-IE2BRM7Z.mjs";
10
+ } from "./chunk-2ZT6V4QR.mjs";
11
11
  import {
12
12
  mapPropsVariants
13
13
  } from "./chunk-E3G5QXSH.mjs";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-P2TMIZRH.mjs";
5
5
  import {
6
6
  tv
7
- } from "./chunk-IE2BRM7Z.mjs";
7
+ } from "./chunk-2ZT6V4QR.mjs";
8
8
 
9
9
  // src/components/avatar/avatar.tsx
10
10
  import { forwardRef, useMemo } from "react";
@@ -1,19 +1,19 @@
1
1
  "use client";
2
2
  import {
3
3
  timePicker_default
4
- } from "./chunk-CATOSBI7.mjs";
4
+ } from "./chunk-VP3NVHFU.mjs";
5
5
  import {
6
6
  useDatePicker
7
7
  } from "./chunk-FWJ2ZKH6.mjs";
8
8
  import {
9
9
  calendar_default
10
- } from "./chunk-QJHZJRSQ.mjs";
10
+ } from "./chunk-HKXUNG3H.mjs";
11
11
  import {
12
12
  Icon_default
13
13
  } from "./chunk-24NQEB73.mjs";
14
14
  import {
15
15
  tv
16
- } from "./chunk-IE2BRM7Z.mjs";
16
+ } from "./chunk-2ZT6V4QR.mjs";
17
17
  import {
18
18
  mapPropsVariants
19
19
  } from "./chunk-E3G5QXSH.mjs";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-ZOTHPHXA.mjs";
5
5
  import {
6
6
  toast_default
7
- } from "./chunk-FYJZ7Q5L.mjs";
7
+ } from "./chunk-XIHAABHB.mjs";
8
8
 
9
9
  // src/components/toast/use-toast.tsx
10
10
  import { createContext, useContext, useState, useCallback, useEffect, useRef } from "react";
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-24NQEB73.mjs";
9
9
  import {
10
10
  tv
11
- } from "./chunk-IE2BRM7Z.mjs";
11
+ } from "./chunk-2ZT6V4QR.mjs";
12
12
  import {
13
13
  mapPropsVariants
14
14
  } from "./chunk-E3G5QXSH.mjs";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  tv
4
- } from "./chunk-IE2BRM7Z.mjs";
4
+ } from "./chunk-2ZT6V4QR.mjs";
5
5
  import {
6
6
  clsx
7
7
  } from "./chunk-27Y6K5NK.mjs";
@@ -1,13 +1,13 @@
1
1
  "use client";
2
- import {
3
- avatar_default
4
- } from "./chunk-XAA5KY6A.mjs";
5
2
  import {
6
3
  Icon_default
7
4
  } from "./chunk-24NQEB73.mjs";
5
+ import {
6
+ avatar_default
7
+ } from "./chunk-CF6O6TCF.mjs";
8
8
  import {
9
9
  tv
10
- } from "./chunk-IE2BRM7Z.mjs";
10
+ } from "./chunk-2ZT6V4QR.mjs";
11
11
  import {
12
12
  mapPropsVariants
13
13
  } from "./chunk-E3G5QXSH.mjs";
@@ -0,0 +1,79 @@
1
+ "use client";
2
+ import {
3
+ checkbox_default
4
+ } from "./chunk-J5WJD6XZ.mjs";
5
+ import {
6
+ clsx
7
+ } from "./chunk-27Y6K5NK.mjs";
8
+
9
+ // src/components/table/table-body.tsx
10
+ import { useCallback } from "react";
11
+ import { jsx, jsxs } from "react/jsx-runtime";
12
+ import { createElement } from "react";
13
+ var TableBody = ({
14
+ slots,
15
+ columns,
16
+ rows,
17
+ size,
18
+ selectableRows,
19
+ checkedRows,
20
+ onCheckRow,
21
+ emptyContent,
22
+ classNames
23
+ }) => {
24
+ const generateColumnStyles = useCallback((column) => {
25
+ const alignClass = column.align ? `text-${column.align}` : "text-left";
26
+ return clsx(alignClass, column.className);
27
+ }, []);
28
+ const getCellProps = useCallback(
29
+ (column, row) => {
30
+ if (!column || !row) {
31
+ return {
32
+ className: slots.td({ class: classNames == null ? void 0 : classNames.td })
33
+ };
34
+ }
35
+ const value = row[column.field];
36
+ const formattedValue = column.valueFormatter ? column.valueFormatter({ id: column.field, field: column.field, value }) : value;
37
+ const children = column.renderCell ? column.renderCell({
38
+ id: column.field,
39
+ field: column.field,
40
+ value,
41
+ formattedValue,
42
+ row
43
+ }) : formattedValue;
44
+ const columnStyles = generateColumnStyles(column);
45
+ return {
46
+ children,
47
+ className: clsx(slots.td({ class: classNames == null ? void 0 : classNames.td }), columnStyles),
48
+ style: {
49
+ width: column.width ? `${column.width}px` : void 0,
50
+ minWidth: column.minWidth ? `${column.minWidth}px` : void 0,
51
+ maxWidth: column.maxWidth ? `${column.maxWidth}px` : void 0,
52
+ height: column.height ? `${column.height}px` : void 0
53
+ }
54
+ };
55
+ },
56
+ [classNames == null ? void 0 : classNames.td, generateColumnStyles, slots]
57
+ );
58
+ const hasRows = rows.length > 0;
59
+ const colSpan = (columns.length || 1) + (selectableRows ? 1 : 0);
60
+ return /* @__PURE__ */ jsx("tbody", { className: slots.tbody({ class: classNames == null ? void 0 : classNames.tbody }), children: hasRows ? rows.map((row, rowIndex) => {
61
+ const isRowChecked = checkedRows.has(rowIndex);
62
+ return /* @__PURE__ */ jsxs("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), "aria-checked": isRowChecked, children: [
63
+ columns.map((column) => /* @__PURE__ */ createElement("td", { ...getCellProps(column, row), key: column.field })),
64
+ selectableRows && /* @__PURE__ */ jsx("td", { className: slots.td({ class: classNames == null ? void 0 : classNames.td }), children: /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx(
65
+ checkbox_default,
66
+ {
67
+ size,
68
+ checked: isRowChecked,
69
+ onChange: (e) => onCheckRow(rowIndex, e.target.checked)
70
+ }
71
+ ) }) })
72
+ ] }, rowIndex);
73
+ }) : /* @__PURE__ */ jsx("tr", { className: slots.tr({ class: classNames == null ? void 0 : classNames.tr }), children: /* @__PURE__ */ jsx("td", { colSpan, className: slots.td({ class: classNames == null ? void 0 : classNames.td }), children: emptyContent || /* @__PURE__ */ jsx("div", { className: "text-neutral-dark py-4 text-center", children: "No data available" }) }) }) });
74
+ };
75
+ var table_body_default = TableBody;
76
+
77
+ export {
78
+ table_body_default
79
+ };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  tv
4
- } from "./chunk-IE2BRM7Z.mjs";
4
+ } from "./chunk-2ZT6V4QR.mjs";
5
5
 
6
6
  // src/components/button/button-group.tsx
7
7
  import React, { forwardRef } from "react";
@@ -0,0 +1,283 @@
1
+ "use client";
2
+ import {
3
+ usePagination_default
4
+ } from "./chunk-F3HENRVM.mjs";
5
+ import {
6
+ input_default
7
+ } from "./chunk-OYNGJ33M.mjs";
8
+ import {
9
+ Icon_default
10
+ } from "./chunk-24NQEB73.mjs";
11
+ import {
12
+ tv
13
+ } from "./chunk-2ZT6V4QR.mjs";
14
+ import {
15
+ clsx
16
+ } from "./chunk-27Y6K5NK.mjs";
17
+ import {
18
+ mapPropsVariants
19
+ } from "./chunk-E3G5QXSH.mjs";
20
+
21
+ // src/components/pagination/pagination.tsx
22
+ import { forwardRef, useMemo, useState } from "react";
23
+ import { jsx, jsxs } from "react/jsx-runtime";
24
+ var Pagination = forwardRef((originalProps, ref) => {
25
+ const [props, variantProps] = mapPropsVariants(originalProps, paginationStyle.variantKeys);
26
+ const {
27
+ classNames,
28
+ currentPage,
29
+ groupSize,
30
+ totalPage,
31
+ showPageNumber = true,
32
+ showPageLabel,
33
+ showFirstLastButtons,
34
+ handleChangePage,
35
+ variant,
36
+ size
37
+ } = { ...props, ...variantProps };
38
+ const [inputPage, setInputPage] = useState(currentPage);
39
+ const slots = useMemo(() => paginationStyle(variantProps), [variantProps]);
40
+ const { pageList, handleClickMovePage } = usePagination_default({
41
+ currentPage,
42
+ totalPage,
43
+ groupSize,
44
+ handleChangePage
45
+ });
46
+ const handleKeyDown = (e) => {
47
+ if (e.key === "Enter") {
48
+ const parsed = Number(inputPage);
49
+ if (!isNaN(parsed) && parsed >= 1 && parsed <= totalPage) {
50
+ handleChangePage == null ? void 0 : handleChangePage(parsed);
51
+ }
52
+ }
53
+ };
54
+ return /* @__PURE__ */ jsxs("div", { className: slots.base({ class: classNames == null ? void 0 : classNames.base }), ref, children: [
55
+ /* @__PURE__ */ jsxs("div", { className: slots.wrapper({ class: classNames == null ? void 0 : classNames.wrapper }), children: [
56
+ showFirstLastButtons && /* @__PURE__ */ jsx(
57
+ "div",
58
+ {
59
+ "aria-label": "firstPage",
60
+ "data-is-active": currentPage > 1,
61
+ className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
62
+ onClick: currentPage > 1 ? handleClickMovePage(1) : void 0,
63
+ children: /* @__PURE__ */ jsx(Icon_default, { name: "left-double-chevron" })
64
+ }
65
+ ),
66
+ /* @__PURE__ */ jsx(
67
+ "div",
68
+ {
69
+ "aria-label": "prevPage",
70
+ "data-is-active": currentPage > 1,
71
+ className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
72
+ onClick: currentPage > 1 ? handleClickMovePage(currentPage - 1) : void 0,
73
+ children: /* @__PURE__ */ jsx(Icon_default, { name: "left-chevron" })
74
+ }
75
+ ),
76
+ showPageNumber && pageList.map((page, index) => /* @__PURE__ */ jsx(
77
+ "div",
78
+ {
79
+ className: slots.button({ class: classNames == null ? void 0 : classNames.button }),
80
+ "data-selected": currentPage === page,
81
+ onClick: handleClickMovePage(page),
82
+ children: page
83
+ },
84
+ index
85
+ )),
86
+ /* @__PURE__ */ jsx(
87
+ "div",
88
+ {
89
+ "aria-label": "nextPage",
90
+ "data-is-active": currentPage < totalPage,
91
+ className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
92
+ onClick: currentPage < totalPage ? handleClickMovePage(currentPage + 1) : void 0,
93
+ children: /* @__PURE__ */ jsx(Icon_default, { name: "right-chevron" })
94
+ }
95
+ ),
96
+ showFirstLastButtons && /* @__PURE__ */ jsx(
97
+ "div",
98
+ {
99
+ "aria-label": "lastPage",
100
+ "data-is-active": currentPage < totalPage,
101
+ className: slots.icon({ class: classNames == null ? void 0 : classNames.icon }),
102
+ onClick: currentPage < totalPage ? handleClickMovePage(totalPage) : void 0,
103
+ children: /* @__PURE__ */ jsx(Icon_default, { name: "right-double-chevron" })
104
+ }
105
+ )
106
+ ] }),
107
+ showPageLabel && /* @__PURE__ */ jsxs("span", { className: slots.label({ class: classNames == null ? void 0 : classNames.label }), children: [
108
+ /* @__PURE__ */ jsx(
109
+ input_default,
110
+ {
111
+ value: inputPage || 1,
112
+ onChange: (e) => setInputPage(Number(e.target.value)),
113
+ onKeyDown: handleKeyDown,
114
+ width: 50,
115
+ height: 24,
116
+ size: "sm",
117
+ classNames: {
118
+ inputWrapper: clsx(
119
+ "w-[50px] h-[24px] rounded-sm",
120
+ variant === "solid" ? "" : "bg-body-background border border-neutral-light"
121
+ )
122
+ }
123
+ }
124
+ ),
125
+ ` of ${totalPage.toLocaleString("ko-kr")}`
126
+ ] })
127
+ ] });
128
+ });
129
+ Pagination.displayName = "Pagination";
130
+ var pagination_default = Pagination;
131
+ var paginationStyle = tv(
132
+ {
133
+ slots: {
134
+ base: ["flex", "items-center", "select-none", "gap-[20px]"],
135
+ wrapper: ["flex", "items-center", "overflow-hidden", "gap-[5px]"],
136
+ icon: [
137
+ "flex",
138
+ "items-center",
139
+ "justify-center",
140
+ "cursor-pointer",
141
+ "stroke-neutral-main",
142
+ "data-[is-active=false]:stroke-neutral-light",
143
+ "data-[is-active=false]:cursor-default"
144
+ ],
145
+ button: [
146
+ "flex",
147
+ "items-center",
148
+ "justify-center",
149
+ "cursor-pointer",
150
+ "transition",
151
+ "duration-200",
152
+ "px-[6px]",
153
+ "py-[4px]",
154
+ "text-neutral-main",
155
+ "data-[selected=true]:font-bold"
156
+ ],
157
+ label: ["whitespace-nowrap", "text-neutral-main", "flex", "items-center", "gap-[5px]", "text-sm"]
158
+ },
159
+ variants: {
160
+ variant: {
161
+ solid: {
162
+ button: ["rounded-[5px]", "border-transparent"]
163
+ },
164
+ underline: {
165
+ button: ["rounded-0", "border-transparent"]
166
+ }
167
+ },
168
+ size: {
169
+ sm: {
170
+ button: ["text-sm", "data-[selected=true]:border-sm"]
171
+ },
172
+ md: {
173
+ button: ["text-md", "data-[selected=true]:border-md"]
174
+ },
175
+ lg: {
176
+ button: ["text-lg", "data-[selected=true]:border-lg"]
177
+ },
178
+ xl: {
179
+ button: ["text-xl", "data-[selected=true]:border-xl"]
180
+ }
181
+ },
182
+ color: {
183
+ primary: {},
184
+ secondary: {},
185
+ neutral: {}
186
+ },
187
+ isDisabled: {
188
+ true: {
189
+ icon: ["!text-neutral-light", "!cursor-default"],
190
+ button: ["!text-neutral-light", "!cursor-default"]
191
+ }
192
+ }
193
+ },
194
+ compoundVariants: [
195
+ {
196
+ variant: "solid",
197
+ color: "primary",
198
+ class: {
199
+ button: [
200
+ "hover:text-primary-main",
201
+ "data-[selected=true]:text-primary-main",
202
+ "data-[selected=true]:bg-primary-soft"
203
+ ],
204
+ icon: ["hover:stroke-primary-main"]
205
+ }
206
+ },
207
+ {
208
+ variant: "solid",
209
+ color: "secondary",
210
+ class: {
211
+ button: [
212
+ "hover:text-secondary-main",
213
+ "data-[selected=true]:text-secondary-main",
214
+ "data-[selected=true]:bg-secondary-soft"
215
+ ],
216
+ icon: ["hover:stroke-secondary-main"]
217
+ }
218
+ },
219
+ {
220
+ variant: "solid",
221
+ color: "neutral",
222
+ class: {
223
+ button: [
224
+ "hover:text-neutral-dark",
225
+ "data-[selected=true]:text-neutral-dark",
226
+ "data-[selected=true]:bg-neutral-soft"
227
+ ],
228
+ icon: ["hover:stroke-neutral-main"]
229
+ }
230
+ },
231
+ {
232
+ variant: "underline",
233
+ color: "primary",
234
+ class: {
235
+ button: [
236
+ "hover:text-primary-main",
237
+ "data-[selected=true]:text-primary-main",
238
+ "data-[selected=true]:border-b-primary-main"
239
+ ],
240
+ icon: ["hover:stroke-primary-main"]
241
+ }
242
+ },
243
+ {
244
+ variant: "underline",
245
+ color: "secondary",
246
+ class: {
247
+ button: [
248
+ "hover:text-secondary-main",
249
+ "data-[selected=true]:text-secondary-main",
250
+ "data-[selected=true]:border-b-secondary-main"
251
+ ],
252
+ icon: ["hover:stroke-secondary-main"]
253
+ }
254
+ },
255
+ {
256
+ variant: "underline",
257
+ color: "neutral",
258
+ class: {
259
+ button: [
260
+ "hover:text-neutral-dark",
261
+ "data-[selected=true]:text-neutral-dark",
262
+ "data-[selected=true]:border-b-neutral-main"
263
+ ],
264
+ icon: ["hover:stroke-neutral-main"]
265
+ }
266
+ }
267
+ ],
268
+ defaultVariants: {
269
+ variant: "solid",
270
+ color: "primary",
271
+ size: "md",
272
+ isDisabled: false
273
+ }
274
+ },
275
+ {
276
+ twMerge: false
277
+ }
278
+ );
279
+
280
+ export {
281
+ pagination_default,
282
+ paginationStyle
283
+ };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  tv
4
- } from "./chunk-IE2BRM7Z.mjs";
4
+ } from "./chunk-2ZT6V4QR.mjs";
5
5
 
6
6
  // src/components/backdrop/backdrop.tsx
7
7
  import { useEffect, useState } from "react";
@@ -0,0 +1,27 @@
1
+ "use client";
2
+ import {
3
+ checkbox_default
4
+ } from "./chunk-J5WJD6XZ.mjs";
5
+ import {
6
+ clsx
7
+ } from "./chunk-27Y6K5NK.mjs";
8
+
9
+ // src/components/table/table-head.tsx
10
+ import { jsx, jsxs } from "react/jsx-runtime";
11
+ var TableHead = ({ columns, slots, size, selectableRows, isCheckedAll, classNames, onCheckAll }) => {
12
+ const handleClickCheckAll = (e) => {
13
+ e.preventDefault();
14
+ onCheckAll(!isCheckedAll);
15
+ };
16
+ const renderColumnHeaders = () => columns.map((column, index) => /* @__PURE__ */ jsx("th", { className: clsx(slots.th({ class: classNames == null ? void 0 : classNames.th }), column), children: column.headerName }, `${column.field}${index}thead`));
17
+ const renderSelectAllCheckbox = () => selectableRows && /* @__PURE__ */ jsx("th", { className: clsx(slots.th({ class: classNames == null ? void 0 : classNames.th })), onClick: handleClickCheckAll, children: /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx(checkbox_default, { size, checked: isCheckedAll }) }) });
18
+ return /* @__PURE__ */ jsx("thead", { className: clsx(slots.thead({ class: classNames == null ? void 0 : classNames.thead })), children: /* @__PURE__ */ jsxs("tr", { className: clsx(slots.tr({ class: classNames == null ? void 0 : classNames.tr })), children: [
19
+ renderColumnHeaders(),
20
+ renderSelectAllCheckbox()
21
+ ] }) });
22
+ };
23
+ var table_head_default = TableHead;
24
+
25
+ export {
26
+ table_head_default
27
+ };