@deepnoid/ui 0.0.83 → 0.0.84

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 (207) hide show
  1. package/dist/{chunk-KWOLWE6I.mjs → chunk-463XE4SI.mjs} +4 -4
  2. package/dist/chunk-5T5F5WVS.mjs +32 -0
  3. package/dist/{chunk-S4DTK5GI.mjs → chunk-ADDUBJ4I.mjs} +1 -1
  4. package/dist/{chunk-GJKNTX2T.mjs → chunk-AHORH5PH.mjs} +6 -4
  5. package/dist/{chunk-7LYJAJIS.mjs → chunk-EWKYBS7I.mjs} +13 -6
  6. package/dist/{chunk-H7BLXC5M.mjs → chunk-ILMIS63S.mjs} +14 -14
  7. package/dist/{chunk-H737LHAY.mjs → chunk-KA4L5SCT.mjs} +8 -8
  8. package/dist/{chunk-BHSCW5D6.mjs → chunk-LGELMZCN.mjs} +1 -1
  9. package/dist/chunk-LXPWTJ3F.mjs +58 -0
  10. package/dist/{chunk-FNPWLOGV.mjs → chunk-NTTHTGDK.mjs} +39 -37
  11. package/dist/{chunk-WIKB37T7.mjs → chunk-QCOPD2HG.mjs} +1 -1
  12. package/dist/{chunk-TLYAFXE2.mjs → chunk-QURXBWKK.mjs} +1902 -746
  13. package/dist/{chunk-6U736HAX.mjs → chunk-RTH3FPAS.mjs} +3 -3
  14. package/dist/chunk-SDNTEP5C.mjs +61 -0
  15. package/dist/{chunk-FLJ4ZZXV.mjs → chunk-SQLRQTFC.mjs} +1 -1
  16. package/dist/chunk-W7ABNK3K.mjs +1 -0
  17. package/dist/chunk-XTJL67KM.mjs +127 -0
  18. package/dist/chunk-ZYIIXWVY.mjs +1 -0
  19. package/dist/components/accordion/accordion.test.js +39 -37
  20. package/dist/components/accordion/accordion.test.mjs +1 -1
  21. package/dist/components/accordion/accordionItem.js +1905 -749
  22. package/dist/components/accordion/accordionItem.mjs +4 -4
  23. package/dist/components/accordion/index.js +1905 -749
  24. package/dist/components/accordion/index.mjs +4 -4
  25. package/dist/components/button/button-group.test.js +39 -37
  26. package/dist/components/button/button-group.test.mjs +2 -2
  27. package/dist/components/button/button.test.js +52 -50
  28. package/dist/components/button/button.test.mjs +2 -2
  29. package/dist/components/card/card.test.js +39 -37
  30. package/dist/components/card/card.test.mjs +1 -1
  31. package/dist/components/checkbox/checkbox.test.js +39 -37
  32. package/dist/components/checkbox/checkbox.test.mjs +2 -2
  33. package/dist/components/{list/list.d.mts → dropdown/dropdown.d.ts} +9 -9
  34. package/dist/components/dropdown/dropdown.js +122 -0
  35. package/dist/components/dropdown/dropdown.mjs +10 -0
  36. package/dist/components/dropdown/dropdown.test.js +12997 -0
  37. package/dist/components/dropdown/dropdown.test.mjs +25 -0
  38. package/dist/components/dropdown/index.js +128 -0
  39. package/dist/components/dropdown/index.mjs +11 -0
  40. package/dist/components/icon/Icon.d.ts +499 -1
  41. package/dist/components/icon/Icon.js +1940 -778
  42. package/dist/components/icon/Icon.mjs +6 -4
  43. package/dist/components/icon/index.js +1910 -751
  44. package/dist/components/icon/index.mjs +7 -5
  45. package/dist/components/icon/template.d.ts +98 -61
  46. package/dist/components/icon/template.js +1902 -746
  47. package/dist/components/icon/template.mjs +1 -1
  48. package/dist/components/input/index.js +1912 -756
  49. package/dist/components/input/index.mjs +4 -4
  50. package/dist/components/input/input.js +1912 -756
  51. package/dist/components/input/input.mjs +4 -4
  52. package/dist/components/input/input.test.js +1983 -825
  53. package/dist/components/input/input.test.mjs +6 -6
  54. package/dist/components/list/index.mjs +3 -3
  55. package/dist/components/list/list.test.js +39 -37
  56. package/dist/components/list/list.test.mjs +1 -1
  57. package/dist/components/modal/index.js +1942 -779
  58. package/dist/components/modal/index.mjs +3 -3
  59. package/dist/components/modal/modal.js +1942 -779
  60. package/dist/components/modal/modal.mjs +3 -3
  61. package/dist/components/modal/modal.test.js +1981 -816
  62. package/dist/components/modal/modal.test.mjs +4 -4
  63. package/dist/components/pagination/pagination.test.js +39 -37
  64. package/dist/components/pagination/pagination.test.mjs +1 -1
  65. package/dist/components/progress/progress.test.d.ts +0 -2
  66. package/dist/components/progress/progress.test.js +39 -37
  67. package/dist/components/progress/progress.test.mjs +1 -1
  68. package/dist/components/radio/radio.test.js +39 -37
  69. package/dist/components/radio/radio.test.mjs +1 -1
  70. package/dist/components/select/index.js +1905 -749
  71. package/dist/components/select/index.mjs +5 -5
  72. package/dist/components/select/option.js +1905 -749
  73. package/dist/components/select/option.mjs +4 -4
  74. package/dist/components/select/select.js +1905 -749
  75. package/dist/components/select/select.mjs +5 -5
  76. package/dist/components/select/select.test.js +1951 -793
  77. package/dist/components/select/select.test.mjs +7 -7
  78. package/dist/components/slider/slider.test.d.ts +0 -2
  79. package/dist/components/slider/slider.test.js +39 -37
  80. package/dist/components/slider/slider.test.mjs +1 -1
  81. package/dist/components/switch/switch.test.d.ts +0 -2
  82. package/dist/components/switch/switch.test.js +39 -37
  83. package/dist/components/switch/switch.test.mjs +1 -1
  84. package/dist/components/table/index.js +1905 -749
  85. package/dist/components/table/index.mjs +5 -5
  86. package/dist/components/table/table-body.js +1905 -749
  87. package/dist/components/table/table-body.mjs +4 -4
  88. package/dist/components/table/table.js +1905 -749
  89. package/dist/components/table/table.mjs +5 -5
  90. package/dist/components/table/table.test.d.ts +0 -2
  91. package/dist/components/table/table.test.js +1951 -793
  92. package/dist/components/table/table.test.mjs +6 -6
  93. package/dist/components/tabs/tabs.test.d.ts +0 -2
  94. package/dist/components/tabs/tabs.test.js +39 -37
  95. package/dist/components/tabs/tabs.test.mjs +2 -2
  96. package/dist/components/textarea/textarea.test.d.ts +0 -2
  97. package/dist/components/textarea/textarea.test.js +52 -50
  98. package/dist/components/textarea/textarea.test.mjs +2 -2
  99. package/dist/components/toast/index.js +3810 -0
  100. package/dist/components/toast/index.mjs +16 -0
  101. package/dist/components/toast/toast-utils.js +84 -0
  102. package/dist/components/toast/toast-utils.mjs +8 -0
  103. package/dist/components/toast/toast.d.ts +204 -0
  104. package/dist/components/toast/toast.js +3804 -0
  105. package/dist/components/toast/toast.mjs +15 -0
  106. package/dist/components/toast/toast.test.d.ts +0 -0
  107. package/dist/components/toast/toast.test.js +16689 -0
  108. package/dist/components/toast/toast.test.mjs +30 -0
  109. package/dist/components/toast/useToast.d.ts +0 -0
  110. package/dist/components/toast/useToast.js +110 -0
  111. package/dist/components/toast/useToast.mjs +9 -0
  112. package/dist/components/tooltip/tooltip-utils.d.ts +0 -2
  113. package/dist/components/tooltip/tooltip.test.d.ts +0 -2
  114. package/dist/components/tooltip/tooltip.test.js +39 -37
  115. package/dist/components/tooltip/tooltip.test.mjs +1 -1
  116. package/dist/components/tooltip/useTooltip.d.ts +0 -2
  117. package/dist/index.d.ts +4 -1
  118. package/dist/index.js +2172 -761
  119. package/dist/index.mjs +44 -30
  120. package/package.json +4 -3
  121. package/dist/components/accordion/accordion.d.mts +0 -154
  122. package/dist/components/accordion/accordionItem.d.mts +0 -282
  123. package/dist/components/accordion/index.d.mts +0 -6
  124. package/dist/components/button/button-group.d.mts +0 -14
  125. package/dist/components/button/button-group.test.d.mts +0 -2
  126. package/dist/components/button/button.d.mts +0 -18
  127. package/dist/components/button/button.test.d.mts +0 -2
  128. package/dist/components/button/index.d.mts +0 -3
  129. package/dist/components/card/card.d.mts +0 -124
  130. package/dist/components/card/card.test.d.mts +0 -2
  131. package/dist/components/card/index.d.mts +0 -5
  132. package/dist/components/card/index.d.ts +0 -5
  133. package/dist/components/checkbox/checkbox.d.mts +0 -349
  134. package/dist/components/checkbox/checkbox.test.d.mts +0 -2
  135. package/dist/components/checkbox/index.d.mts +0 -5
  136. package/dist/components/checkbox/index.d.ts +0 -5
  137. package/dist/components/icon/Icon.d.mts +0 -15
  138. package/dist/components/icon/index.d.mts +0 -4
  139. package/dist/components/icon/index.d.ts +0 -4
  140. package/dist/components/icon/template.d.mts +0 -97
  141. package/dist/components/input/index.d.mts +0 -5
  142. package/dist/components/input/index.d.ts +0 -5
  143. package/dist/components/input/input.d.mts +0 -437
  144. package/dist/components/input/input.test.d.mts +0 -2
  145. package/dist/components/list/index.d.mts +0 -6
  146. package/dist/components/list/list.test.d.mts +0 -2
  147. package/dist/components/list/listItem.d.mts +0 -183
  148. package/dist/components/modal/index.d.mts +0 -8
  149. package/dist/components/modal/index.d.ts +0 -8
  150. package/dist/components/modal/modal.d.mts +0 -214
  151. package/dist/components/modal/modal.test.d.mts +0 -2
  152. package/dist/components/pagination/index.d.mts +0 -4
  153. package/dist/components/pagination/index.d.ts +0 -4
  154. package/dist/components/pagination/pagination.d.mts +0 -186
  155. package/dist/components/pagination/pagination.test.d.mts +0 -2
  156. package/dist/components/pagination/usePagination.d.mts +0 -16
  157. package/dist/components/progress/index.d.mts +0 -5
  158. package/dist/components/progress/index.d.ts +0 -5
  159. package/dist/components/progress/progress.d.mts +0 -281
  160. package/dist/components/progress/progress.test.d.mts +0 -2
  161. package/dist/components/radio/index.d.mts +0 -5
  162. package/dist/components/radio/index.d.ts +0 -5
  163. package/dist/components/radio/radio.d.mts +0 -278
  164. package/dist/components/radio/radio.test.d.mts +0 -2
  165. package/dist/components/select/index.d.mts +0 -5
  166. package/dist/components/select/index.d.ts +0 -5
  167. package/dist/components/select/option.d.mts +0 -18
  168. package/dist/components/select/select.d.mts +0 -449
  169. package/dist/components/select/select.test.d.mts +0 -2
  170. package/dist/components/select/useSelect.d.mts +0 -32
  171. package/dist/components/slider/index.d.mts +0 -5
  172. package/dist/components/slider/index.d.ts +0 -5
  173. package/dist/components/slider/slider.d.mts +0 -333
  174. package/dist/components/slider/slider.test.d.mts +0 -2
  175. package/dist/components/switch/index.d.mts +0 -5
  176. package/dist/components/switch/index.d.ts +0 -5
  177. package/dist/components/switch/switch.d.mts +0 -304
  178. package/dist/components/switch/switch.test.d.mts +0 -2
  179. package/dist/components/table/index.d.mts +0 -5
  180. package/dist/components/table/index.d.ts +0 -5
  181. package/dist/components/table/table-body.d.mts +0 -26
  182. package/dist/components/table/table-head.d.mts +0 -21
  183. package/dist/components/table/table.d.mts +0 -583
  184. package/dist/components/table/table.test.d.mts +0 -2
  185. package/dist/components/tabs/index.d.mts +0 -5
  186. package/dist/components/tabs/index.d.ts +0 -5
  187. package/dist/components/tabs/tabs.d.mts +0 -241
  188. package/dist/components/tabs/tabs.test.d.mts +0 -2
  189. package/dist/components/textarea/index.d.mts +0 -2
  190. package/dist/components/textarea/index.d.ts +0 -2
  191. package/dist/components/textarea/textarea.d.mts +0 -17
  192. package/dist/components/textarea/textarea.test.d.mts +0 -2
  193. package/dist/components/tooltip/index.d.mts +0 -6
  194. package/dist/components/tooltip/index.d.ts +0 -6
  195. package/dist/components/tooltip/tooltip-utils.d.mts +0 -2
  196. package/dist/components/tooltip/tooltip.d.mts +0 -143
  197. package/dist/components/tooltip/tooltip.test.d.mts +0 -2
  198. package/dist/components/tooltip/useTooltip.d.mts +0 -2
  199. package/dist/index.d.mts +0 -30
  200. package/dist/tooltip-utils-DCKA5gnI.d.mts +0 -30
  201. package/dist/tooltip-utils-DCKA5gnI.d.ts +0 -30
  202. package/dist/utils/clsx.d.mts +0 -3
  203. package/dist/utils/props.d.mts +0 -3
  204. package/dist/utils/tailwind-variants.d.mts +0 -26
  205. package/dist/utils/types.d.mts +0 -10
  206. /package/dist/{chunk-M5PMA3CT.mjs → chunk-RDEWIZV3.mjs} +0 -0
  207. /package/dist/components/{accordion/accordion.test.d.mts → dropdown/dropdown.test.d.ts} +0 -0
@@ -1,13 +1,13 @@
1
1
  "use client";
2
- import {
3
- option_default
4
- } from "./chunk-FLJ4ZZXV.mjs";
5
2
  import {
6
3
  useSelect
7
4
  } from "./chunk-S3QS5B7F.mjs";
5
+ import {
6
+ option_default
7
+ } from "./chunk-SQLRQTFC.mjs";
8
8
  import {
9
9
  Icon_default
10
- } from "./chunk-GJKNTX2T.mjs";
10
+ } from "./chunk-AHORH5PH.mjs";
11
11
  import {
12
12
  mapPropsVariants
13
13
  } from "./chunk-E3G5QXSH.mjs";
@@ -0,0 +1,32 @@
1
+ "use client";
2
+ import {
3
+ getToastPosition
4
+ } from "./chunk-SDNTEP5C.mjs";
5
+
6
+ // src/components/toast/useToast.ts
7
+ import { useState, useEffect, useRef } from "react";
8
+ var useToast = ({ placement, offset, targetRect }) => {
9
+ const [toastPosition, setToastPosition] = useState({ x: 0, y: 0 });
10
+ const toastRef = useRef(null);
11
+ useEffect(() => {
12
+ if (targetRect && toastRef.current) {
13
+ const { width, height } = toastRef.current.getBoundingClientRect();
14
+ const scrollX = window.scrollX;
15
+ const scrollY = window.scrollY;
16
+ const adjustedTargetRect = {
17
+ ...targetRect,
18
+ left: targetRect.left + scrollX,
19
+ top: targetRect.top + scrollY,
20
+ right: targetRect.right + scrollX,
21
+ bottom: targetRect.bottom + scrollY
22
+ };
23
+ const { toastX, toastY } = getToastPosition(placement, adjustedTargetRect, width, height, offset);
24
+ setToastPosition({ x: toastX, y: toastY });
25
+ }
26
+ }, [placement, offset, targetRect]);
27
+ return { toastPosition, toastRef };
28
+ };
29
+
30
+ export {
31
+ useToast
32
+ };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  getConfig
4
- } from "./chunk-FNPWLOGV.mjs";
4
+ } from "./chunk-NTTHTGDK.mjs";
5
5
  import {
6
6
  __export
7
7
  } from "./chunk-IZ6II3QA.mjs";
@@ -1,10 +1,11 @@
1
1
  "use client";
2
2
  import {
3
3
  template
4
- } from "./chunk-TLYAFXE2.mjs";
4
+ } from "./chunk-QURXBWKK.mjs";
5
5
 
6
6
  // src/components/icon/Icon.tsx
7
7
  import { jsx } from "react/jsx-runtime";
8
+ var iconTemplate = template;
8
9
  var Icon = ({ name, size = "md", fill = false, className, onClick, ...props }) => {
9
10
  const SVGIcon = template[name];
10
11
  const getInputIconSize = (size2) => {
@@ -12,12 +13,12 @@ var Icon = ({ name, size = "md", fill = false, className, onClick, ...props }) =
12
13
  case "sm":
13
14
  return "size-[15px]";
14
15
  case "md":
15
- return "size-[17px]";
16
+ return "size-[17px] stroke-[1.25px]";
16
17
  case "lg":
17
- return "size-[20px]";
18
+ return "size-[20px] stroke-[1.5px]";
18
19
  }
19
20
  };
20
- return /* @__PURE__ */ jsx("div", { onClick, children: /* @__PURE__ */ jsx(
21
+ return /* @__PURE__ */ jsx("div", { className: "w-fit h-fit", onClick, children: /* @__PURE__ */ jsx(
21
22
  SVGIcon,
22
23
  {
23
24
  fill,
@@ -29,5 +30,6 @@ var Icon = ({ name, size = "md", fill = false, className, onClick, ...props }) =
29
30
  var Icon_default = Icon;
30
31
 
31
32
  export {
33
+ iconTemplate,
32
34
  Icon_default
33
35
  };
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-66WCZEEU.mjs";
5
5
  import {
6
6
  Icon_default
7
- } from "./chunk-GJKNTX2T.mjs";
7
+ } from "./chunk-AHORH5PH.mjs";
8
8
  import {
9
9
  mapPropsVariants
10
10
  } from "./chunk-E3G5QXSH.mjs";
@@ -150,15 +150,22 @@ var modal_default = Modal;
150
150
  var modal = tv({
151
151
  slots: {
152
152
  backdrop: ["relative w-screen h-screen fixed inset-0 bg-black/60", "z-[9999]"],
153
- modalWrapper: ["group", "absolute", "top-1/2", "-translate-y-1/2", "left-1/2", "-translate-x-1/2"],
154
- icon: ["absolute", "top-[20px]", "left-1/2", "-translate-x-1/2", "z-10"],
153
+ modalWrapper: ["group/modal", "absolute", "top-1/2", "-translate-y-1/2", "left-1/2", "-translate-x-1/2"],
154
+ icon: [
155
+ "absolute",
156
+ "top-[20px]",
157
+ "left-1/2",
158
+ "-translate-x-1/2",
159
+ "z-10",
160
+ "group-data-[modal-icon-visibility=true]/modal:top-[80px]"
161
+ ],
155
162
  closeIcon: [
156
163
  "absolute",
157
164
  "top-[20px]",
158
165
  "right-[20px]",
159
166
  "cursor-pointer",
160
167
  "z-10",
161
- "group-data-[icon-visibility=true]:top-[80px]"
168
+ "group-data-[modal-icon-visibility=true]/modal:top-[80px]"
162
169
  ],
163
170
  titleWrapper: ["relative", "flex", "flex-col", "gap-[10px]"],
164
171
  title: "text-h5 text-center text-foreground",
@@ -170,8 +177,8 @@ var modal = tv({
170
177
  "bg-background",
171
178
  "shadow-drop shadow-foreground/20 rounded-xxlg",
172
179
  "overflow-hidden",
173
- "group-data-[icon-visibility=true]:mt-[60px]",
174
- "group-data-[icon-visibility=true]:pt-[60px]"
180
+ "group-data-[modal-icon-visibility=true]/modal:mt-[60px]",
181
+ "group-data-[modal-icon-visibility=true]/modal:pt-[60px]"
175
182
  ],
176
183
  body: ["flex", "flex-col", "gap-[20px]"],
177
184
  content: ["text-md text-center", "break-words", "bg-neutral-soft", "rounded-[5px]", "p-[10px]"],
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  require_lib
4
- } from "./chunk-FNPWLOGV.mjs";
4
+ } from "./chunk-NTTHTGDK.mjs";
5
5
  import {
6
6
  __commonJS,
7
7
  __require,
@@ -1044,9 +1044,9 @@ var require_color_convert = __commonJS({
1044
1044
  }
1045
1045
  });
1046
1046
 
1047
- // ../../node_modules/@testing-library/jest-dom/node_modules/ansi-styles/index.js
1047
+ // ../../node_modules/ansi-styles/index.js
1048
1048
  var require_ansi_styles = __commonJS({
1049
- "../../node_modules/@testing-library/jest-dom/node_modules/ansi-styles/index.js"(exports, module) {
1049
+ "../../node_modules/ansi-styles/index.js"(exports, module) {
1050
1050
  "use strict";
1051
1051
  var wrapAnsi16 = (fn, offset) => (...args) => {
1052
1052
  const code = fn(...args);
@@ -1186,9 +1186,9 @@ var require_ansi_styles = __commonJS({
1186
1186
  }
1187
1187
  });
1188
1188
 
1189
- // ../../node_modules/@testing-library/jest-dom/node_modules/has-flag/index.js
1189
+ // ../../node_modules/has-flag/index.js
1190
1190
  var require_has_flag = __commonJS({
1191
- "../../node_modules/@testing-library/jest-dom/node_modules/has-flag/index.js"(exports, module) {
1191
+ "../../node_modules/has-flag/index.js"(exports, module) {
1192
1192
  "use strict";
1193
1193
  module.exports = (flag, argv = process.argv) => {
1194
1194
  const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
@@ -1199,9 +1199,9 @@ var require_has_flag = __commonJS({
1199
1199
  }
1200
1200
  });
1201
1201
 
1202
- // ../../node_modules/@testing-library/jest-dom/node_modules/supports-color/index.js
1202
+ // ../../node_modules/supports-color/index.js
1203
1203
  var require_supports_color = __commonJS({
1204
- "../../node_modules/@testing-library/jest-dom/node_modules/supports-color/index.js"(exports, module) {
1204
+ "../../node_modules/supports-color/index.js"(exports, module) {
1205
1205
  "use strict";
1206
1206
  var os = __require("os");
1207
1207
  var tty = __require("tty");
@@ -3761,7 +3761,7 @@ function $d708735ed1303b43$var$addParent(obj, parent) {
3761
3761
  var $d708735ed1303b43$export$2e2bcd8739ae039 = $d708735ed1303b43$export$98e6a39c04603d36;
3762
3762
  var $149c1bd638913645$export$98e6a39c04603d36 = (0, $d708735ed1303b43$export$2e2bcd8739ae039);
3763
3763
 
3764
- // ../../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/polyfills/array.from.mjs
3764
+ // ../../node_modules/dom-accessibility-api/dist/polyfills/array.from.mjs
3765
3765
  var toStr = Object.prototype.toString;
3766
3766
  function isCallable(fn) {
3767
3767
  return typeof fn === "function" || toStr.call(fn) === "[object Function]";
@@ -3809,7 +3809,7 @@ function arrayFrom(arrayLike, mapFn) {
3809
3809
  return A;
3810
3810
  }
3811
3811
 
3812
- // ../../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/polyfills/SetLike.mjs
3812
+ // ../../node_modules/dom-accessibility-api/dist/polyfills/SetLike.mjs
3813
3813
  function _typeof(o) {
3814
3814
  "@babel/helpers - typeof";
3815
3815
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
@@ -3913,7 +3913,7 @@ var SetLike = /* @__PURE__ */ function() {
3913
3913
  }();
3914
3914
  var SetLike_default = typeof Set === "undefined" ? Set : SetLike;
3915
3915
 
3916
- // ../../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/getRole.mjs
3916
+ // ../../node_modules/dom-accessibility-api/dist/getRole.mjs
3917
3917
  function getLocalName(element) {
3918
3918
  var _element$localName;
3919
3919
  return (
@@ -4098,7 +4098,7 @@ function getExplicitRole(element) {
4098
4098
  return null;
4099
4099
  }
4100
4100
 
4101
- // ../../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/util.mjs
4101
+ // ../../node_modules/dom-accessibility-api/dist/util.mjs
4102
4102
  var presentationRoles = ["presentation", "none"];
4103
4103
  function isElement(node) {
4104
4104
  return node !== null && node.nodeType === node.ELEMENT_NODE;
@@ -4168,7 +4168,7 @@ function hasAnyConcreteRoles(node, roles2) {
4168
4168
  return false;
4169
4169
  }
4170
4170
 
4171
- // ../../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/accessible-name-and-description.mjs
4171
+ // ../../node_modules/dom-accessibility-api/dist/accessible-name-and-description.mjs
4172
4172
  function asFlatString(s) {
4173
4173
  return s.trim().replace(/\s\s+/g, " ");
4174
4174
  }
@@ -4537,7 +4537,7 @@ function computeTextAlternative(root) {
4537
4537
  }));
4538
4538
  }
4539
4539
 
4540
- // ../../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/accessible-description.mjs
4540
+ // ../../node_modules/dom-accessibility-api/dist/accessible-description.mjs
4541
4541
  function _typeof2(o) {
4542
4542
  "@babel/helpers - typeof";
4543
4543
  return _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
@@ -4608,7 +4608,7 @@ function computeAccessibleDescription(root) {
4608
4608
  return description;
4609
4609
  }
4610
4610
 
4611
- // ../../node_modules/@testing-library/jest-dom/node_modules/dom-accessibility-api/dist/accessible-name.mjs
4611
+ // ../../node_modules/dom-accessibility-api/dist/accessible-name.mjs
4612
4612
  function prohibitsNaming(node) {
4613
4613
  return hasAnyConcreteRoles(node, ["caption", "code", "deletion", "emphasis", "generic", "insertion", "none", "paragraph", "presentation", "strong", "subscript", "superscript"]);
4614
4614
  }
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Icon_default
4
- } from "./chunk-GJKNTX2T.mjs";
4
+ } from "./chunk-AHORH5PH.mjs";
5
5
  import {
6
6
  mapPropsVariants
7
7
  } from "./chunk-E3G5QXSH.mjs";
@@ -131,18 +131,18 @@ Input.displayName = "Input";
131
131
  var input_default = Input;
132
132
  var inputStyle = tv({
133
133
  slots: {
134
- base: ["group", "flex", "flex-col"],
134
+ base: ["group/input", "flex", "flex-col"],
135
135
  label: ["flex", "items-center"],
136
136
  innerWrapper: ["flex", "flex-col"],
137
137
  inputWrapper: [
138
138
  "flex",
139
139
  "items-center",
140
- "group-has-[p]:border-danger-main",
141
- "group-has-[p]:bg-danger-soft",
140
+ "group-has-[p]/input:border-danger-main",
141
+ "group-has-[p]/input:bg-danger-soft",
142
142
  "transition duration-200"
143
143
  ],
144
144
  input: ["w-full", "h-full", "bg-transparent", "placeholder:text-neutral-main", "focus-visible:outline-none"],
145
- content: ["flex", "items-center", "group-has-[p]:text-danger-main", "select-none"],
145
+ content: ["flex", "items-center", "group-has-[p]/input:text-danger-main", "select-none"],
146
146
  errorMessage: ["text-danger-main"]
147
147
  },
148
148
  variants: {
@@ -183,19 +183,19 @@ var inputStyle = tv({
183
183
  size: {
184
184
  sm: {
185
185
  base: ["text-sm", "gap-[6px]"],
186
- innerWrapper: ["group-has-[p]:gap-[6px]"],
186
+ innerWrapper: ["group-has-[p]/input:gap-[6px]"],
187
187
  inputWrapper: ["w-[240px]", "h-[24px]", "rounded-sm", "px-[6px]", "py-[4.5px]", "gap-[6px]"],
188
188
  errorMessage: ["text-sm"]
189
189
  },
190
190
  md: {
191
191
  base: ["text-md", "gap-[8px]"],
192
- innerWrapper: ["group-has-[p]:gap-[8px]"],
192
+ innerWrapper: ["group-has-[p]/input:gap-[8px]"],
193
193
  inputWrapper: ["w-[240px]", "h-[30px]", "rounded-md", "px-[8px]", "py-[6.5px]", "gap-[8px]"],
194
194
  errorMessage: ["text-md"]
195
195
  },
196
196
  lg: {
197
197
  base: ["text-lg", "gap-[10px]"],
198
- innerWrapper: ["group-has-[p]:gap-[10px]"],
198
+ innerWrapper: ["group-has-[p]/input:gap-[10px]"],
199
199
  inputWrapper: ["w-[240px]", "h-[36px]", "rounded-lg", "px-[10px]", "py-[8px]", "gap-[10px]"],
200
200
  errorMessage: ["text-lg"]
201
201
  }
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-27Y6K5NK.mjs";
8
8
  import {
9
9
  Icon_default
10
- } from "./chunk-GJKNTX2T.mjs";
10
+ } from "./chunk-AHORH5PH.mjs";
11
11
 
12
12
  // src/components/table/table-body.tsx
13
13
  import React, { useState, useCallback, useEffect } from "react";
@@ -0,0 +1,58 @@
1
+ "use client";
2
+ import {
3
+ mapPropsVariants
4
+ } from "./chunk-E3G5QXSH.mjs";
5
+ import {
6
+ tv
7
+ } from "./chunk-J725QONZ.mjs";
8
+
9
+ // src/components/dropdown/dropdown.tsx
10
+ import React, { forwardRef, useCallback, useMemo } from "react";
11
+ import { jsx } from "react/jsx-runtime";
12
+ var Dropdown = forwardRef((originalProps, ref) => {
13
+ const [props, variantProps] = mapPropsVariants(originalProps, dropdown.variantKeys);
14
+ const { children, classNames } = props;
15
+ const slots = useMemo(() => dropdown({ ...variantProps }), [...Object.values(variantProps)]);
16
+ const getBaseProps = useCallback(() => {
17
+ return {
18
+ className: slots.base({ class: classNames == null ? void 0 : classNames.base })
19
+ };
20
+ }, [slots, classNames == null ? void 0 : classNames.base]);
21
+ return /* @__PURE__ */ jsx("div", { ref, ...getBaseProps(), children: React.Children.map(children, (child, index) => {
22
+ return React.cloneElement(child, {
23
+ ...variantProps,
24
+ ...child.props
25
+ });
26
+ }) });
27
+ });
28
+ Dropdown.displayName = "Dropdown";
29
+ var dropdown_default = Dropdown;
30
+ var dropdown = tv({
31
+ slots: {
32
+ base: ["flex", "flex-col"]
33
+ },
34
+ variants: {
35
+ variant: {
36
+ solid: {},
37
+ line: {}
38
+ },
39
+ size: {
40
+ sm: {},
41
+ md: {},
42
+ lg: {}
43
+ },
44
+ color: {
45
+ primary: {},
46
+ secondary: {}
47
+ }
48
+ },
49
+ defaultVariants: {
50
+ variant: "solid",
51
+ color: "primary",
52
+ size: "md"
53
+ }
54
+ });
55
+
56
+ export {
57
+ dropdown_default
58
+ };
@@ -4,9 +4,9 @@ import {
4
4
  __toESM
5
5
  } from "./chunk-IZ6II3QA.mjs";
6
6
 
7
- // ../../node_modules/pretty-format/node_modules/ansi-styles/index.js
7
+ // ../../node_modules/@testing-library/dom/node_modules/ansi-styles/index.js
8
8
  var require_ansi_styles = __commonJS({
9
- "../../node_modules/pretty-format/node_modules/ansi-styles/index.js"(exports, module2) {
9
+ "../../node_modules/@testing-library/dom/node_modules/ansi-styles/index.js"(exports, module2) {
10
10
  "use strict";
11
11
  var ANSI_BACKGROUND_OFFSET = 10;
12
12
  var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
@@ -142,9 +142,9 @@ var require_ansi_styles = __commonJS({
142
142
  }
143
143
  });
144
144
 
145
- // ../../node_modules/pretty-format/build/collections.js
145
+ // ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/collections.js
146
146
  var require_collections = __commonJS({
147
- "../../node_modules/pretty-format/build/collections.js"(exports) {
147
+ "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/collections.js"(exports) {
148
148
  "use strict";
149
149
  Object.defineProperty(exports, "__esModule", {
150
150
  value: true
@@ -260,9 +260,9 @@ var require_collections = __commonJS({
260
260
  }
261
261
  });
262
262
 
263
- // ../../node_modules/pretty-format/build/plugins/AsymmetricMatcher.js
263
+ // ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js
264
264
  var require_AsymmetricMatcher = __commonJS({
265
- "../../node_modules/pretty-format/build/plugins/AsymmetricMatcher.js"(exports) {
265
+ "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js"(exports) {
266
266
  "use strict";
267
267
  Object.defineProperty(exports, "__esModule", {
268
268
  value: true
@@ -347,9 +347,9 @@ var require_ansi_regex = __commonJS({
347
347
  }
348
348
  });
349
349
 
350
- // ../../node_modules/pretty-format/build/plugins/ConvertAnsi.js
350
+ // ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ConvertAnsi.js
351
351
  var require_ConvertAnsi = __commonJS({
352
- "../../node_modules/pretty-format/build/plugins/ConvertAnsi.js"(exports) {
352
+ "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ConvertAnsi.js"(exports) {
353
353
  "use strict";
354
354
  Object.defineProperty(exports, "__esModule", {
355
355
  value: true
@@ -418,9 +418,9 @@ var require_ConvertAnsi = __commonJS({
418
418
  }
419
419
  });
420
420
 
421
- // ../../node_modules/pretty-format/build/plugins/DOMCollection.js
421
+ // ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMCollection.js
422
422
  var require_DOMCollection = __commonJS({
423
- "../../node_modules/pretty-format/build/plugins/DOMCollection.js"(exports) {
423
+ "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMCollection.js"(exports) {
424
424
  "use strict";
425
425
  Object.defineProperty(exports, "__esModule", {
426
426
  value: true
@@ -468,9 +468,9 @@ var require_DOMCollection = __commonJS({
468
468
  }
469
469
  });
470
470
 
471
- // ../../node_modules/pretty-format/build/plugins/lib/escapeHTML.js
471
+ // ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/escapeHTML.js
472
472
  var require_escapeHTML = __commonJS({
473
- "../../node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(exports) {
473
+ "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(exports) {
474
474
  "use strict";
475
475
  Object.defineProperty(exports, "__esModule", {
476
476
  value: true
@@ -482,9 +482,9 @@ var require_escapeHTML = __commonJS({
482
482
  }
483
483
  });
484
484
 
485
- // ../../node_modules/pretty-format/build/plugins/lib/markup.js
485
+ // ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/markup.js
486
486
  var require_markup = __commonJS({
487
- "../../node_modules/pretty-format/build/plugins/lib/markup.js"(exports) {
487
+ "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/markup.js"(exports) {
488
488
  "use strict";
489
489
  Object.defineProperty(exports, "__esModule", {
490
490
  value: true
@@ -537,9 +537,9 @@ var require_markup = __commonJS({
537
537
  }
538
538
  });
539
539
 
540
- // ../../node_modules/pretty-format/build/plugins/DOMElement.js
540
+ // ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMElement.js
541
541
  var require_DOMElement = __commonJS({
542
- "../../node_modules/pretty-format/build/plugins/DOMElement.js"(exports) {
542
+ "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMElement.js"(exports) {
543
543
  "use strict";
544
544
  Object.defineProperty(exports, "__esModule", {
545
545
  value: true
@@ -625,9 +625,9 @@ var require_DOMElement = __commonJS({
625
625
  }
626
626
  });
627
627
 
628
- // ../../node_modules/pretty-format/build/plugins/Immutable.js
628
+ // ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/Immutable.js
629
629
  var require_Immutable = __commonJS({
630
- "../../node_modules/pretty-format/build/plugins/Immutable.js"(exports) {
630
+ "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/Immutable.js"(exports) {
631
631
  "use strict";
632
632
  Object.defineProperty(exports, "__esModule", {
633
633
  value: true
@@ -782,9 +782,9 @@ var require_Immutable = __commonJS({
782
782
  }
783
783
  });
784
784
 
785
- // ../../node_modules/react-is/cjs/react-is.production.min.js
785
+ // ../../node_modules/@testing-library/dom/node_modules/react-is/cjs/react-is.production.min.js
786
786
  var require_react_is_production_min = __commonJS({
787
- "../../node_modules/react-is/cjs/react-is.production.min.js"(exports) {
787
+ "../../node_modules/@testing-library/dom/node_modules/react-is/cjs/react-is.production.min.js"(exports) {
788
788
  "use strict";
789
789
  var b = 60103;
790
790
  var c = 60106;
@@ -920,9 +920,9 @@ var require_react_is_production_min = __commonJS({
920
920
  }
921
921
  });
922
922
 
923
- // ../../node_modules/react-is/cjs/react-is.development.js
923
+ // ../../node_modules/@testing-library/dom/node_modules/react-is/cjs/react-is.development.js
924
924
  var require_react_is_development = __commonJS({
925
- "../../node_modules/react-is/cjs/react-is.development.js"(exports) {
925
+ "../../node_modules/@testing-library/dom/node_modules/react-is/cjs/react-is.development.js"(exports) {
926
926
  "use strict";
927
927
  if (process.env.NODE_ENV !== "production") {
928
928
  (function() {
@@ -1112,9 +1112,9 @@ var require_react_is_development = __commonJS({
1112
1112
  }
1113
1113
  });
1114
1114
 
1115
- // ../../node_modules/react-is/index.js
1115
+ // ../../node_modules/@testing-library/dom/node_modules/react-is/index.js
1116
1116
  var require_react_is = __commonJS({
1117
- "../../node_modules/react-is/index.js"(exports, module2) {
1117
+ "../../node_modules/@testing-library/dom/node_modules/react-is/index.js"(exports, module2) {
1118
1118
  "use strict";
1119
1119
  if (process.env.NODE_ENV === "production") {
1120
1120
  module2.exports = require_react_is_production_min();
@@ -1124,9 +1124,9 @@ var require_react_is = __commonJS({
1124
1124
  }
1125
1125
  });
1126
1126
 
1127
- // ../../node_modules/pretty-format/build/plugins/ReactElement.js
1127
+ // ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactElement.js
1128
1128
  var require_ReactElement = __commonJS({
1129
- "../../node_modules/pretty-format/build/plugins/ReactElement.js"(exports) {
1129
+ "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactElement.js"(exports) {
1130
1130
  "use strict";
1131
1131
  Object.defineProperty(exports, "__esModule", {
1132
1132
  value: true
@@ -1254,9 +1254,9 @@ var require_ReactElement = __commonJS({
1254
1254
  }
1255
1255
  });
1256
1256
 
1257
- // ../../node_modules/pretty-format/build/plugins/ReactTestComponent.js
1257
+ // ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactTestComponent.js
1258
1258
  var require_ReactTestComponent = __commonJS({
1259
- "../../node_modules/pretty-format/build/plugins/ReactTestComponent.js"(exports) {
1259
+ "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactTestComponent.js"(exports) {
1260
1260
  "use strict";
1261
1261
  Object.defineProperty(exports, "__esModule", {
1262
1262
  value: true
@@ -1316,9 +1316,9 @@ var require_ReactTestComponent = __commonJS({
1316
1316
  }
1317
1317
  });
1318
1318
 
1319
- // ../../node_modules/pretty-format/build/index.js
1319
+ // ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/index.js
1320
1320
  var require_build = __commonJS({
1321
- "../../node_modules/pretty-format/build/index.js"(exports) {
1321
+ "../../node_modules/@testing-library/dom/node_modules/pretty-format/build/index.js"(exports) {
1322
1322
  "use strict";
1323
1323
  Object.defineProperty(exports, "__esModule", {
1324
1324
  value: true
@@ -8749,7 +8749,9 @@ var require_lz_string = __commonJS({
8749
8749
  return keyStrBase64.charAt(a);
8750
8750
  });
8751
8751
  switch (res.length % 4) {
8752
+ // To produce valid Base64
8752
8753
  default:
8754
+ // When could this happen ?
8753
8755
  case 0:
8754
8756
  return res;
8755
8757
  case 1:
@@ -9182,7 +9184,7 @@ var require_lz_string = __commonJS({
9182
9184
  // ../../node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js
9183
9185
  var prettyFormat = __toESM(require_build());
9184
9186
 
9185
- // ../../node_modules/dom-accessibility-api/dist/polyfills/array.from.mjs
9187
+ // ../../node_modules/@testing-library/dom/node_modules/dom-accessibility-api/dist/polyfills/array.from.mjs
9186
9188
  var toStr = Object.prototype.toString;
9187
9189
  function isCallable(fn) {
9188
9190
  return typeof fn === "function" || toStr.call(fn) === "[object Function]";
@@ -9230,7 +9232,7 @@ function arrayFrom(arrayLike, mapFn) {
9230
9232
  return A;
9231
9233
  }
9232
9234
 
9233
- // ../../node_modules/dom-accessibility-api/dist/polyfills/SetLike.mjs
9235
+ // ../../node_modules/@testing-library/dom/node_modules/dom-accessibility-api/dist/polyfills/SetLike.mjs
9234
9236
  function _typeof(obj) {
9235
9237
  "@babel/helpers - typeof";
9236
9238
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
@@ -9334,7 +9336,7 @@ var SetLike = /* @__PURE__ */ function() {
9334
9336
  }();
9335
9337
  var SetLike_default = typeof Set === "undefined" ? Set : SetLike;
9336
9338
 
9337
- // ../../node_modules/dom-accessibility-api/dist/getRole.mjs
9339
+ // ../../node_modules/@testing-library/dom/node_modules/dom-accessibility-api/dist/getRole.mjs
9338
9340
  function getLocalName(element) {
9339
9341
  var _element$localName;
9340
9342
  return (
@@ -9517,7 +9519,7 @@ function getExplicitRole(element) {
9517
9519
  return null;
9518
9520
  }
9519
9521
 
9520
- // ../../node_modules/dom-accessibility-api/dist/util.mjs
9522
+ // ../../node_modules/@testing-library/dom/node_modules/dom-accessibility-api/dist/util.mjs
9521
9523
  function isElement(node) {
9522
9524
  return node !== null && node.nodeType === node.ELEMENT_NODE;
9523
9525
  }
@@ -9586,7 +9588,7 @@ function hasAnyConcreteRoles(node, roles2) {
9586
9588
  return false;
9587
9589
  }
9588
9590
 
9589
- // ../../node_modules/dom-accessibility-api/dist/accessible-name-and-description.mjs
9591
+ // ../../node_modules/@testing-library/dom/node_modules/dom-accessibility-api/dist/accessible-name-and-description.mjs
9590
9592
  function asFlatString(s) {
9591
9593
  return s.trim().replace(/\s\s+/g, " ");
9592
9594
  }
@@ -9955,7 +9957,7 @@ function computeTextAlternative(root) {
9955
9957
  }));
9956
9958
  }
9957
9959
 
9958
- // ../../node_modules/dom-accessibility-api/dist/accessible-description.mjs
9960
+ // ../../node_modules/@testing-library/dom/node_modules/dom-accessibility-api/dist/accessible-description.mjs
9959
9961
  function _typeof2(obj) {
9960
9962
  "@babel/helpers - typeof";
9961
9963
  return _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
@@ -10022,7 +10024,7 @@ function computeAccessibleDescription(root) {
10022
10024
  return description;
10023
10025
  }
10024
10026
 
10025
- // ../../node_modules/dom-accessibility-api/dist/accessible-name.mjs
10027
+ // ../../node_modules/@testing-library/dom/node_modules/dom-accessibility-api/dist/accessible-name.mjs
10026
10028
  function prohibitsNaming(node) {
10027
10029
  return hasAnyConcreteRoles(node, ["caption", "code", "deletion", "emphasis", "generic", "insertion", "paragraph", "presentation", "strong", "subscript", "superscript"]);
10028
10030
  }
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Icon_default
4
- } from "./chunk-GJKNTX2T.mjs";
4
+ } from "./chunk-AHORH5PH.mjs";
5
5
  import {
6
6
  mapPropsVariants
7
7
  } from "./chunk-E3G5QXSH.mjs";