@deepnoid/ui 0.0.87 → 0.0.89

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 (169) hide show
  1. package/dist/{chunk-4DLTBZUQ.mjs → chunk-3DRIHQOM.mjs} +7 -5
  2. package/dist/{chunk-4SWFYTMR.mjs → chunk-6YE26GOI.mjs} +10 -8
  3. package/dist/{chunk-QX6VJLEM.mjs → chunk-7HHFRKJU.mjs} +2 -2
  4. package/dist/{chunk-H2HUJ4N2.mjs → chunk-A3RWT3JJ.mjs} +9 -4
  5. package/dist/{chunk-BE2OG6M4.mjs → chunk-ANYPMQH4.mjs} +28 -21
  6. package/dist/{chunk-5HSZ5AYM.mjs → chunk-B4KZBOGT.mjs} +16 -16
  7. package/dist/{chunk-QIZOXBOY.mjs → chunk-DWROPKZW.mjs} +4 -4
  8. package/dist/{chunk-PHQY5T3E.mjs → chunk-HFVZFUC3.mjs} +7 -14
  9. package/dist/{chunk-IOV7MEPG.mjs → chunk-IOCRFIQF.mjs} +30 -0
  10. package/dist/{chunk-4VIEZ5FT.mjs → chunk-JN7EGKJL.mjs} +8 -7
  11. package/dist/{chunk-SFNR4F3J.mjs → chunk-L6BQA6GI.mjs} +2 -2
  12. package/dist/{chunk-PRUAIZTU.mjs → chunk-LCI6RPWE.mjs} +1 -1
  13. package/dist/{chunk-IZOMH2SL.mjs → chunk-MOINJECK.mjs} +16 -15
  14. package/dist/{chunk-QVGXHUYW.mjs → chunk-N2JULHST.mjs} +9 -9
  15. package/dist/chunk-OJ2OEI5B.mjs +202 -0
  16. package/dist/{chunk-2COCX2VX.mjs → chunk-PXUBPWKU.mjs} +2 -2
  17. package/dist/{chunk-PCIONGEJ.mjs → chunk-QWFOYO3D.mjs} +37 -19
  18. package/dist/{chunk-LY6LJRUX.mjs → chunk-RZZWHI6O.mjs} +1 -1
  19. package/dist/chunk-UR64ZUAU.mjs +671 -0
  20. package/dist/{chunk-PUFNT5LS.mjs → chunk-VG4644BG.mjs} +1 -1
  21. package/dist/components/accordion/accordion.d.mts +1 -1
  22. package/dist/components/accordion/accordion.d.ts +1 -1
  23. package/dist/components/accordion/accordion.test.mjs +3 -3
  24. package/dist/components/accordion/accordionItem.d.mts +1 -1
  25. package/dist/components/accordion/accordionItem.d.ts +1 -1
  26. package/dist/components/accordion/accordionItem.js +31 -1
  27. package/dist/components/accordion/accordionItem.mjs +3 -3
  28. package/dist/components/accordion/index.js +31 -1
  29. package/dist/components/accordion/index.mjs +3 -3
  30. package/dist/components/button/button-group.test.js +4103 -167
  31. package/dist/components/button/button-group.test.mjs +7 -3
  32. package/dist/components/button/button.d.mts +360 -12
  33. package/dist/components/button/button.d.ts +360 -12
  34. package/dist/components/button/button.js +4054 -110
  35. package/dist/components/button/button.mjs +5 -1
  36. package/dist/components/button/button.test.js +4059 -125
  37. package/dist/components/button/button.test.mjs +7 -3
  38. package/dist/components/button/index.d.mts +3 -0
  39. package/dist/components/button/index.d.ts +3 -0
  40. package/dist/components/button/index.js +4046 -112
  41. package/dist/components/button/index.mjs +5 -1
  42. package/dist/components/card/card.d.mts +1 -1
  43. package/dist/components/card/card.d.ts +1 -1
  44. package/dist/components/checkbox/checkbox.d.mts +69 -69
  45. package/dist/components/checkbox/checkbox.d.ts +69 -69
  46. package/dist/components/checkbox/checkbox.js +28 -21
  47. package/dist/components/checkbox/checkbox.mjs +1 -1
  48. package/dist/components/checkbox/checkbox.test.js +28 -21
  49. package/dist/components/checkbox/checkbox.test.mjs +3 -3
  50. package/dist/components/checkbox/index.js +28 -21
  51. package/dist/components/checkbox/index.mjs +1 -1
  52. package/dist/components/icon/Icon.d.mts +4 -0
  53. package/dist/components/icon/Icon.d.ts +4 -0
  54. package/dist/components/icon/Icon.js +30 -0
  55. package/dist/components/icon/Icon.mjs +2 -2
  56. package/dist/components/icon/index.js +30 -0
  57. package/dist/components/icon/index.mjs +2 -2
  58. package/dist/components/icon/template.d.mts +1 -0
  59. package/dist/components/icon/template.d.ts +1 -0
  60. package/dist/components/icon/template.js +30 -0
  61. package/dist/components/icon/template.mjs +1 -1
  62. package/dist/components/input/index.js +36 -4
  63. package/dist/components/input/index.mjs +3 -3
  64. package/dist/components/input/input.d.mts +7 -2
  65. package/dist/components/input/input.d.ts +7 -2
  66. package/dist/components/input/input.js +36 -4
  67. package/dist/components/input/input.mjs +3 -3
  68. package/dist/components/input/input.test.js +36 -4
  69. package/dist/components/input/input.test.mjs +4 -4
  70. package/dist/components/list/list.d.mts +1 -1
  71. package/dist/components/list/list.d.ts +1 -1
  72. package/dist/components/list/listItem.d.mts +1 -1
  73. package/dist/components/list/listItem.d.ts +1 -1
  74. package/dist/components/modal/index.js +505 -127
  75. package/dist/components/modal/index.mjs +5 -4
  76. package/dist/components/modal/modal.js +505 -127
  77. package/dist/components/modal/modal.mjs +5 -4
  78. package/dist/components/modal/modal.test.js +497 -129
  79. package/dist/components/modal/modal.test.mjs +5 -4
  80. package/dist/components/pagination/index.js +16 -16
  81. package/dist/components/pagination/index.mjs +1 -1
  82. package/dist/components/pagination/pagination.js +16 -16
  83. package/dist/components/pagination/pagination.mjs +1 -1
  84. package/dist/components/pagination/pagination.test.js +16 -16
  85. package/dist/components/pagination/pagination.test.mjs +1 -1
  86. package/dist/components/progress/index.js +9 -9
  87. package/dist/components/progress/index.mjs +1 -1
  88. package/dist/components/progress/progress.d.mts +33 -33
  89. package/dist/components/progress/progress.d.ts +33 -33
  90. package/dist/components/progress/progress.js +9 -9
  91. package/dist/components/progress/progress.mjs +1 -1
  92. package/dist/components/progress/progress.test.js +9 -9
  93. package/dist/components/progress/progress.test.mjs +1 -1
  94. package/dist/components/radio/index.js +37 -19
  95. package/dist/components/radio/index.mjs +1 -1
  96. package/dist/components/radio/radio.d.mts +33 -33
  97. package/dist/components/radio/radio.d.ts +33 -33
  98. package/dist/components/radio/radio.js +37 -19
  99. package/dist/components/radio/radio.mjs +1 -1
  100. package/dist/components/radio/radio.test.js +37 -19
  101. package/dist/components/radio/radio.test.mjs +1 -1
  102. package/dist/components/select/index.js +36 -5
  103. package/dist/components/select/index.mjs +4 -4
  104. package/dist/components/select/option.js +30 -0
  105. package/dist/components/select/option.mjs +3 -3
  106. package/dist/components/select/select.d.mts +2 -2
  107. package/dist/components/select/select.d.ts +2 -2
  108. package/dist/components/select/select.js +36 -5
  109. package/dist/components/select/select.mjs +4 -4
  110. package/dist/components/select/select.test.js +36 -5
  111. package/dist/components/select/select.test.mjs +7 -7
  112. package/dist/components/slider/index.js +9 -4
  113. package/dist/components/slider/index.mjs +1 -1
  114. package/dist/components/slider/slider.d.mts +26 -0
  115. package/dist/components/slider/slider.d.ts +26 -0
  116. package/dist/components/slider/slider.js +9 -4
  117. package/dist/components/slider/slider.mjs +1 -1
  118. package/dist/components/slider/slider.test.js +9 -4
  119. package/dist/components/slider/slider.test.mjs +1 -1
  120. package/dist/components/switch/index.js +16 -15
  121. package/dist/components/switch/index.mjs +1 -1
  122. package/dist/components/switch/switch.d.mts +48 -48
  123. package/dist/components/switch/switch.d.ts +48 -48
  124. package/dist/components/switch/switch.js +16 -15
  125. package/dist/components/switch/switch.mjs +1 -1
  126. package/dist/components/switch/switch.test.js +16 -15
  127. package/dist/components/switch/switch.test.mjs +1 -1
  128. package/dist/components/table/index.js +66 -27
  129. package/dist/components/table/index.mjs +6 -6
  130. package/dist/components/table/table-body.js +60 -23
  131. package/dist/components/table/table-body.mjs +4 -4
  132. package/dist/components/table/table-head.js +28 -21
  133. package/dist/components/table/table-head.mjs +2 -2
  134. package/dist/components/table/table.d.mts +21 -7
  135. package/dist/components/table/table.d.ts +21 -7
  136. package/dist/components/table/table.js +66 -27
  137. package/dist/components/table/table.mjs +6 -6
  138. package/dist/components/table/table.test.js +66 -27
  139. package/dist/components/table/table.test.mjs +6 -6
  140. package/dist/components/tabs/tabs.d.mts +1 -1
  141. package/dist/components/tabs/tabs.d.ts +1 -1
  142. package/dist/components/tabs/tabs.test.mjs +3 -3
  143. package/dist/components/textarea/index.d.mts +3 -0
  144. package/dist/components/textarea/index.d.ts +3 -0
  145. package/dist/components/textarea/index.js +89 -30
  146. package/dist/components/textarea/index.mjs +2 -1
  147. package/dist/components/textarea/textarea.d.mts +510 -9
  148. package/dist/components/textarea/textarea.d.ts +510 -9
  149. package/dist/components/textarea/textarea.js +89 -30
  150. package/dist/components/textarea/textarea.mjs +2 -1
  151. package/dist/components/textarea/textarea.test.js +89 -30
  152. package/dist/components/textarea/textarea.test.mjs +3 -2
  153. package/dist/components/toast/index.js +32 -2
  154. package/dist/components/toast/index.mjs +4 -4
  155. package/dist/components/toast/toast.js +31 -1
  156. package/dist/components/toast/toast.mjs +3 -3
  157. package/dist/components/toast/toast.test.js +31 -1
  158. package/dist/components/toast/toast.test.mjs +3 -3
  159. package/dist/components/toast/use-toast.js +32 -2
  160. package/dist/components/toast/use-toast.mjs +4 -4
  161. package/dist/components/tooltip/tooltip.test.js +4034 -118
  162. package/dist/components/tooltip/tooltip.test.mjs +6 -3
  163. package/dist/index.d.mts +1 -1
  164. package/dist/index.d.ts +1 -1
  165. package/dist/index.js +2773 -2334
  166. package/dist/index.mjs +33 -33
  167. package/package.json +1 -1
  168. package/dist/chunk-66WCZEEU.mjs +0 -320
  169. package/dist/chunk-WOX3SLJB.mjs +0 -162
@@ -18824,24 +18824,79 @@ expect.extend(extensions);
18824
18824
  // src/components/textarea/textarea.tsx
18825
18825
  var import_react = require("react");
18826
18826
  var import_tailwind_variants = require("tailwind-variants");
18827
+
18828
+ // src/utils/props.ts
18829
+ var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
18830
+ if (!variantKeys) {
18831
+ return [props, {}];
18832
+ }
18833
+ const picked = variantKeys.reduce((acc, key) => {
18834
+ if (key in props) {
18835
+ return { ...acc, [key]: props[key] };
18836
+ } else {
18837
+ return acc;
18838
+ }
18839
+ }, {});
18840
+ if (removeVariantProps) {
18841
+ const omitted = Object.keys(props).filter((key) => !variantKeys.includes(key)).reduce((acc, key) => ({ ...acc, [key]: props[key] }), {});
18842
+ return [omitted, picked];
18843
+ } else {
18844
+ return [props, picked];
18845
+ }
18846
+ };
18847
+
18848
+ // src/components/textarea/textarea.tsx
18827
18849
  var import_jsx_runtime = require("react/jsx-runtime");
18828
- var Textarea = (0, import_react.forwardRef)((props, ref) => {
18829
- const { base, label, textareaWrapper, textarea, innerWrapper, errorMessageText } = textareaStyle(props);
18830
- const { errorMessage, isRequired, isDisabled: isDisabled2, ...textareaProps } = props;
18831
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: base(), children: [
18832
- props.label && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("label", { className: label(), children: props.label }),
18833
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: innerWrapper(), children: [
18834
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: textareaWrapper(), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
18835
- "textarea",
18836
- {
18837
- ref,
18838
- className: textarea(),
18839
- disabled: props.isDisabled,
18840
- required: props.isRequired,
18841
- ...textareaProps
18842
- }
18843
- ) }),
18844
- props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: errorMessageText(), children: props.errorMessage })
18850
+ var Textarea = (0, import_react.forwardRef)((originalProps, ref) => {
18851
+ const [props, variantProps] = mapPropsVariants(originalProps, textareaStyle.variantKeys);
18852
+ const { classNames, label, errorMessage, ...textareaProps } = props;
18853
+ const slots = (0, import_react.useMemo)(() => textareaStyle({ ...variantProps }), [variantProps]);
18854
+ const getBaseProps = (0, import_react.useCallback)(
18855
+ () => ({
18856
+ className: slots.base({ class: classNames == null ? void 0 : classNames.base })
18857
+ }),
18858
+ [slots, classNames]
18859
+ );
18860
+ const getLabelProps = (0, import_react.useCallback)(
18861
+ () => ({
18862
+ className: slots.label({ class: classNames == null ? void 0 : classNames.label })
18863
+ }),
18864
+ [slots, classNames]
18865
+ );
18866
+ const getInnerWrapperProps = (0, import_react.useCallback)(
18867
+ () => ({
18868
+ className: slots.innerWrapper({ class: classNames == null ? void 0 : classNames.innerWrapper })
18869
+ }),
18870
+ [slots, classNames]
18871
+ );
18872
+ const getTextareaWrapperProps = (0, import_react.useCallback)(
18873
+ () => ({
18874
+ className: slots.textareaWrapper({ class: classNames == null ? void 0 : classNames.textareaWrapper })
18875
+ }),
18876
+ [slots, classNames]
18877
+ );
18878
+ const getTextareaProps = (0, import_react.useCallback)(
18879
+ () => ({
18880
+ ...textareaProps,
18881
+ ref,
18882
+ className: slots.textarea({ class: classNames == null ? void 0 : classNames.textarea }),
18883
+ disabled: originalProps.isDisabled,
18884
+ required: originalProps.isRequired,
18885
+ size: 0
18886
+ }),
18887
+ [textareaProps, ref, slots, classNames == null ? void 0 : classNames.textarea, originalProps.isDisabled, originalProps.isRequired]
18888
+ );
18889
+ const getErrorMessageProps = (0, import_react.useCallback)(
18890
+ () => ({
18891
+ className: slots.errorMessage({ class: classNames == null ? void 0 : classNames.errorMessage })
18892
+ }),
18893
+ [slots, classNames]
18894
+ );
18895
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { ...getBaseProps(), children: [
18896
+ props.label && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("label", { ...getLabelProps(), children: props.label }),
18897
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { ...getInnerWrapperProps(), children: [
18898
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ...getTextareaWrapperProps(), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("textarea", { ...getTextareaProps() }) }),
18899
+ props.errorMessage && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { ...getErrorMessageProps(), children: props.errorMessage })
18845
18900
  ] })
18846
18901
  ] });
18847
18902
  });
@@ -18849,15 +18904,15 @@ Textarea.displayName = "Textarea";
18849
18904
  var textarea_default = Textarea;
18850
18905
  var textareaStyle = (0, import_tailwind_variants.tv)({
18851
18906
  slots: {
18852
- base: ["group", "flex", "flex-col", "gap-[10px]"],
18907
+ base: ["group/textarea", "flex", "flex-col", "gap-[10px]", "select-none"],
18853
18908
  label: ["flex", "items-center"],
18854
18909
  innerWrapper: ["flex", "flex-col", "gap-[6px]"],
18855
18910
  textareaWrapper: [
18856
18911
  "flex",
18857
18912
  "bg-transparent",
18858
18913
  "border-neutral-main",
18859
- "p-[10px]",
18860
- "group-has-[p]:border-danger-main",
18914
+ "group-has-[p]/textarea:border-danger-main",
18915
+ "group-has-[p]/textarea:bg-danger-soft",
18861
18916
  "transition duration-200"
18862
18917
  ],
18863
18918
  textarea: [
@@ -18867,7 +18922,7 @@ var textareaStyle = (0, import_tailwind_variants.tv)({
18867
18922
  "focus-visible:outline-none",
18868
18923
  "resize-none"
18869
18924
  ],
18870
- errorMessageText: ["text-s", "text-danger-main"]
18925
+ errorMessage: ["text-danger-main"]
18871
18926
  },
18872
18927
  variants: {
18873
18928
  variant: {
@@ -18885,21 +18940,24 @@ var textareaStyle = (0, import_tailwind_variants.tv)({
18885
18940
  size: {
18886
18941
  sm: {
18887
18942
  base: "gap-[6px]",
18888
- textareaWrapper: "w-[240px] rounded-sm",
18943
+ textareaWrapper: "w-[240px] rounded-sm p-[6px]",
18889
18944
  textarea: "text-sm rounded-sm",
18890
- label: "text-sm"
18945
+ label: "text-sm",
18946
+ errorMessage: "text-sm"
18891
18947
  },
18892
18948
  md: {
18893
18949
  base: "gap-[8px]",
18894
- textareaWrapper: "w-[240px] rounded-md",
18950
+ textareaWrapper: "w-[240px] rounded-md p-[8px]",
18895
18951
  textarea: "text-md rounded-md",
18896
- label: "text-md"
18952
+ label: "text-md",
18953
+ errorMessage: "text-md"
18897
18954
  },
18898
18955
  lg: {
18899
18956
  base: "gap-[10px]",
18900
- textareaWrapper: "w-[240px] rounded-lg",
18957
+ textareaWrapper: "w-[240px] rounded-lg p-[10px]",
18901
18958
  textarea: "text-lg rounded-lg",
18902
- label: "text-lg"
18959
+ label: "text-lg",
18960
+ errorMessage: "text-lg"
18903
18961
  }
18904
18962
  },
18905
18963
  radius: {
@@ -18923,9 +18981,10 @@ var textareaStyle = (0, import_tailwind_variants.tv)({
18923
18981
  isDisabled: {
18924
18982
  true: {
18925
18983
  base: ["opacity-disabled", "pointer-events-none"],
18926
- textareaWrapper: ["border-neutral-light", "pointer-events-none"],
18927
- textarea: ["bg-neutral-soft", "text-neutral-light placeholder:text-neutral-light", "border-neutral-light"],
18928
- label: ["text-neutral-light", "pointer-events-none"]
18984
+ textareaWrapper: ["bg-neutral-soft", "border-neutral-light", "pointer-events-none"],
18985
+ textarea: ["text-neutral-light placeholder:text-neutral-light", "border-neutral-light"],
18986
+ label: ["text-neutral-light", "pointer-events-none"],
18987
+ errorMessage: "text-danger-light"
18929
18988
  }
18930
18989
  },
18931
18990
  isRequired: {
@@ -1,12 +1,13 @@
1
1
  "use client";
2
- import "../../chunk-H7BLXC5M.mjs";
3
2
  import {
4
3
  textarea_default
5
- } from "../../chunk-WOX3SLJB.mjs";
4
+ } from "../../chunk-OJ2OEI5B.mjs";
5
+ import "../../chunk-H7BLXC5M.mjs";
6
6
  import {
7
7
  render,
8
8
  waitForWrapper
9
9
  } from "../../chunk-FNPWLOGV.mjs";
10
+ import "../../chunk-E3G5QXSH.mjs";
10
11
  import "../../chunk-IZ6II3QA.mjs";
11
12
 
12
13
  // src/components/textarea/textarea.test.tsx
@@ -355,6 +355,36 @@ var template = {
355
355
  }
356
356
  );
357
357
  },
358
+ loading: ({ className, fill }) => {
359
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
360
+ "svg",
361
+ {
362
+ width: "24",
363
+ height: "24",
364
+ viewBox: "0 0 24 24",
365
+ fill: "none",
366
+ xmlns: "http://www.w3.org/2000/svg",
367
+ className,
368
+ children: [
369
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
370
+ "path",
371
+ {
372
+ d: "M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM6.6 12C6.6 14.9823 9.01766 17.4 12 17.4C14.9823 17.4 17.4 14.9823 17.4 12C17.4 9.01766 14.9823 6.6 12 6.6C9.01766 6.6 6.6 9.01766 6.6 12Z",
373
+ fill: "currentColor",
374
+ fillOpacity: "0.1"
375
+ }
376
+ ),
377
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
378
+ "path",
379
+ {
380
+ d: "M21 12C21 13.9006 20.3983 15.7524 19.2812 17.2901C18.164 18.8277 16.5887 19.9722 14.7812 20.5595C12.9736 21.1468 11.0264 21.1468 9.21885 20.5595C7.41126 19.9722 5.836 18.8277 4.71885 17.2901C3.60169 15.7524 3 13.9006 3 12C3 10.0994 3.60169 8.24756 4.71885 6.70993C5.836 5.1723 7.41126 4.02781 9.21885 3.44049C11.0264 2.85317 12.9736 2.85317 14.7812 3.44049L13.6687 6.8643C12.5841 6.5119 11.4159 6.5119 10.3313 6.86429C9.24675 7.21669 8.3016 7.90338 7.63131 8.82596C6.96102 9.74854 6.6 10.8596 6.6 12C6.6 13.1404 6.96102 14.2515 7.63131 15.174C8.3016 16.0966 9.24675 16.7833 10.3313 17.1357C11.4159 17.4881 12.5841 17.4881 13.6687 17.1357C14.7532 16.7833 15.6984 16.0966 16.3687 15.174C17.039 14.2515 17.4 13.1404 17.4 12H21Z",
381
+ fill: "currentColor"
382
+ }
383
+ )
384
+ ]
385
+ }
386
+ );
387
+ },
358
388
  // ** User **
359
389
  "user-circle": ({ className, fill }) => {
360
390
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
@@ -3640,7 +3670,7 @@ var Toast = (0, import_react.forwardRef)((originalProps, ref) => {
3640
3670
  );
3641
3671
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { ref: toastRef, ...getBaseProps(), children: [
3642
3672
  showIcon && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: originalProps.icon || "info-circle", fill: true, className: "mt-[2px]" }),
3643
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "flex-1", children: props.content }),
3673
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "flex-1 select-none", children: props.content }),
3644
3674
  showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: "close", className: "cursor-pointer mt-[2px]", onClick: onClose })
3645
3675
  ] });
3646
3676
  });
@@ -3767,7 +3797,7 @@ var ToastProvider = ({
3767
3797
  const [containerStyle, setContainerStyle] = (0, import_react2.useState)({});
3768
3798
  const toastRef = (0, import_react2.useRef)();
3769
3799
  const addToast = (0, import_react2.useCallback)((content, options) => {
3770
- const id = Date.now() + toasts.length;
3800
+ const id = Date.now() + Math.floor(Math.random() * 1e5);
3771
3801
  const newToast = {
3772
3802
  id,
3773
3803
  content,
@@ -3,14 +3,14 @@ import "../../chunk-LUWGOKLG.mjs";
3
3
  import {
4
4
  ToastProvider,
5
5
  useToast
6
- } from "../../chunk-QX6VJLEM.mjs";
6
+ } from "../../chunk-7HHFRKJU.mjs";
7
7
  import "../../chunk-ZOTHPHXA.mjs";
8
8
  import {
9
9
  toast_default
10
- } from "../../chunk-2COCX2VX.mjs";
10
+ } from "../../chunk-PXUBPWKU.mjs";
11
11
  import "../../chunk-ZYIIXWVY.mjs";
12
- import "../../chunk-PRUAIZTU.mjs";
13
- import "../../chunk-IOV7MEPG.mjs";
12
+ import "../../chunk-LCI6RPWE.mjs";
13
+ import "../../chunk-IOCRFIQF.mjs";
14
14
  import "../../chunk-E3G5QXSH.mjs";
15
15
  import "../../chunk-J725QONZ.mjs";
16
16
  import "../../chunk-IZ6II3QA.mjs";
@@ -351,6 +351,36 @@ var template = {
351
351
  }
352
352
  );
353
353
  },
354
+ loading: ({ className, fill }) => {
355
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
356
+ "svg",
357
+ {
358
+ width: "24",
359
+ height: "24",
360
+ viewBox: "0 0 24 24",
361
+ fill: "none",
362
+ xmlns: "http://www.w3.org/2000/svg",
363
+ className,
364
+ children: [
365
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
366
+ "path",
367
+ {
368
+ d: "M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM6.6 12C6.6 14.9823 9.01766 17.4 12 17.4C14.9823 17.4 17.4 14.9823 17.4 12C17.4 9.01766 14.9823 6.6 12 6.6C9.01766 6.6 6.6 9.01766 6.6 12Z",
369
+ fill: "currentColor",
370
+ fillOpacity: "0.1"
371
+ }
372
+ ),
373
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
374
+ "path",
375
+ {
376
+ d: "M21 12C21 13.9006 20.3983 15.7524 19.2812 17.2901C18.164 18.8277 16.5887 19.9722 14.7812 20.5595C12.9736 21.1468 11.0264 21.1468 9.21885 20.5595C7.41126 19.9722 5.836 18.8277 4.71885 17.2901C3.60169 15.7524 3 13.9006 3 12C3 10.0994 3.60169 8.24756 4.71885 6.70993C5.836 5.1723 7.41126 4.02781 9.21885 3.44049C11.0264 2.85317 12.9736 2.85317 14.7812 3.44049L13.6687 6.8643C12.5841 6.5119 11.4159 6.5119 10.3313 6.86429C9.24675 7.21669 8.3016 7.90338 7.63131 8.82596C6.96102 9.74854 6.6 10.8596 6.6 12C6.6 13.1404 6.96102 14.2515 7.63131 15.174C8.3016 16.0966 9.24675 16.7833 10.3313 17.1357C11.4159 17.4881 12.5841 17.4881 13.6687 17.1357C14.7532 16.7833 15.6984 16.0966 16.3687 15.174C17.039 14.2515 17.4 13.1404 17.4 12H21Z",
377
+ fill: "currentColor"
378
+ }
379
+ )
380
+ ]
381
+ }
382
+ );
383
+ },
354
384
  // ** User **
355
385
  "user-circle": ({ className, fill }) => {
356
386
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
@@ -3636,7 +3666,7 @@ var Toast = (0, import_react.forwardRef)((originalProps, ref) => {
3636
3666
  );
3637
3667
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { ref: toastRef, ...getBaseProps(), children: [
3638
3668
  showIcon && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: originalProps.icon || "info-circle", fill: true, className: "mt-[2px]" }),
3639
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "flex-1", children: props.content }),
3669
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "flex-1 select-none", children: props.content }),
3640
3670
  showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: "close", className: "cursor-pointer mt-[2px]", onClick: onClose })
3641
3671
  ] });
3642
3672
  });
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  toast_default
4
- } from "../../chunk-2COCX2VX.mjs";
4
+ } from "../../chunk-PXUBPWKU.mjs";
5
5
  import "../../chunk-ZYIIXWVY.mjs";
6
- import "../../chunk-PRUAIZTU.mjs";
7
- import "../../chunk-IOV7MEPG.mjs";
6
+ import "../../chunk-LCI6RPWE.mjs";
7
+ import "../../chunk-IOCRFIQF.mjs";
8
8
  import "../../chunk-E3G5QXSH.mjs";
9
9
  import "../../chunk-J725QONZ.mjs";
10
10
  import "../../chunk-IZ6II3QA.mjs";
@@ -13198,6 +13198,36 @@ var template = {
13198
13198
  }
13199
13199
  );
13200
13200
  },
13201
+ loading: ({ className, fill }) => {
13202
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
13203
+ "svg",
13204
+ {
13205
+ width: "24",
13206
+ height: "24",
13207
+ viewBox: "0 0 24 24",
13208
+ fill: "none",
13209
+ xmlns: "http://www.w3.org/2000/svg",
13210
+ className,
13211
+ children: [
13212
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
13213
+ "path",
13214
+ {
13215
+ d: "M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM6.6 12C6.6 14.9823 9.01766 17.4 12 17.4C14.9823 17.4 17.4 14.9823 17.4 12C17.4 9.01766 14.9823 6.6 12 6.6C9.01766 6.6 6.6 9.01766 6.6 12Z",
13216
+ fill: "currentColor",
13217
+ fillOpacity: "0.1"
13218
+ }
13219
+ ),
13220
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
13221
+ "path",
13222
+ {
13223
+ d: "M21 12C21 13.9006 20.3983 15.7524 19.2812 17.2901C18.164 18.8277 16.5887 19.9722 14.7812 20.5595C12.9736 21.1468 11.0264 21.1468 9.21885 20.5595C7.41126 19.9722 5.836 18.8277 4.71885 17.2901C3.60169 15.7524 3 13.9006 3 12C3 10.0994 3.60169 8.24756 4.71885 6.70993C5.836 5.1723 7.41126 4.02781 9.21885 3.44049C11.0264 2.85317 12.9736 2.85317 14.7812 3.44049L13.6687 6.8643C12.5841 6.5119 11.4159 6.5119 10.3313 6.86429C9.24675 7.21669 8.3016 7.90338 7.63131 8.82596C6.96102 9.74854 6.6 10.8596 6.6 12C6.6 13.1404 6.96102 14.2515 7.63131 15.174C8.3016 16.0966 9.24675 16.7833 10.3313 17.1357C11.4159 17.4881 12.5841 17.4881 13.6687 17.1357C14.7532 16.7833 15.6984 16.0966 16.3687 15.174C17.039 14.2515 17.4 13.1404 17.4 12H21Z",
13224
+ fill: "currentColor"
13225
+ }
13226
+ )
13227
+ ]
13228
+ }
13229
+ );
13230
+ },
13201
13231
  // ** User **
13202
13232
  "user-circle": ({ className, fill }) => {
13203
13233
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
@@ -16483,7 +16513,7 @@ var Toast = (0, import_react.forwardRef)((originalProps, ref) => {
16483
16513
  );
16484
16514
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { ref: toastRef, ...getBaseProps(), children: [
16485
16515
  showIcon && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: originalProps.icon || "info-circle", fill: true, className: "mt-[2px]" }),
16486
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "flex-1", children: props.content }),
16516
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "flex-1 select-none", children: props.content }),
16487
16517
  showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: "close", className: "cursor-pointer mt-[2px]", onClick: onClose })
16488
16518
  ] });
16489
16519
  });
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
  import {
3
3
  toast_default
4
- } from "../../chunk-2COCX2VX.mjs";
4
+ } from "../../chunk-PXUBPWKU.mjs";
5
5
  import {
6
6
  render
7
7
  } from "../../chunk-FNPWLOGV.mjs";
8
8
  import "../../chunk-ZYIIXWVY.mjs";
9
- import "../../chunk-PRUAIZTU.mjs";
10
- import "../../chunk-IOV7MEPG.mjs";
9
+ import "../../chunk-LCI6RPWE.mjs";
10
+ import "../../chunk-IOCRFIQF.mjs";
11
11
  import "../../chunk-E3G5QXSH.mjs";
12
12
  import "../../chunk-J725QONZ.mjs";
13
13
  import "../../chunk-IZ6II3QA.mjs";
@@ -391,6 +391,36 @@ var template = {
391
391
  }
392
392
  );
393
393
  },
394
+ loading: ({ className, fill }) => {
395
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
396
+ "svg",
397
+ {
398
+ width: "24",
399
+ height: "24",
400
+ viewBox: "0 0 24 24",
401
+ fill: "none",
402
+ xmlns: "http://www.w3.org/2000/svg",
403
+ className,
404
+ children: [
405
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
406
+ "path",
407
+ {
408
+ d: "M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12ZM6.6 12C6.6 14.9823 9.01766 17.4 12 17.4C14.9823 17.4 17.4 14.9823 17.4 12C17.4 9.01766 14.9823 6.6 12 6.6C9.01766 6.6 6.6 9.01766 6.6 12Z",
409
+ fill: "currentColor",
410
+ fillOpacity: "0.1"
411
+ }
412
+ ),
413
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
414
+ "path",
415
+ {
416
+ d: "M21 12C21 13.9006 20.3983 15.7524 19.2812 17.2901C18.164 18.8277 16.5887 19.9722 14.7812 20.5595C12.9736 21.1468 11.0264 21.1468 9.21885 20.5595C7.41126 19.9722 5.836 18.8277 4.71885 17.2901C3.60169 15.7524 3 13.9006 3 12C3 10.0994 3.60169 8.24756 4.71885 6.70993C5.836 5.1723 7.41126 4.02781 9.21885 3.44049C11.0264 2.85317 12.9736 2.85317 14.7812 3.44049L13.6687 6.8643C12.5841 6.5119 11.4159 6.5119 10.3313 6.86429C9.24675 7.21669 8.3016 7.90338 7.63131 8.82596C6.96102 9.74854 6.6 10.8596 6.6 12C6.6 13.1404 6.96102 14.2515 7.63131 15.174C8.3016 16.0966 9.24675 16.7833 10.3313 17.1357C11.4159 17.4881 12.5841 17.4881 13.6687 17.1357C14.7532 16.7833 15.6984 16.0966 16.3687 15.174C17.039 14.2515 17.4 13.1404 17.4 12H21Z",
417
+ fill: "currentColor"
418
+ }
419
+ )
420
+ ]
421
+ }
422
+ );
423
+ },
394
424
  // ** User **
395
425
  "user-circle": ({ className, fill }) => {
396
426
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
@@ -3676,7 +3706,7 @@ var Toast = (0, import_react.forwardRef)((originalProps, ref) => {
3676
3706
  );
3677
3707
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { ref: toastRef, ...getBaseProps(), children: [
3678
3708
  showIcon && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: originalProps.icon || "info-circle", fill: true, className: "mt-[2px]" }),
3679
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "flex-1", children: props.content }),
3709
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("div", { className: "flex-1 select-none", children: props.content }),
3680
3710
  showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Icon_default, { name: "close", className: "cursor-pointer mt-[2px]", onClick: onClose })
3681
3711
  ] });
3682
3712
  });
@@ -3764,7 +3794,7 @@ var ToastProvider = ({
3764
3794
  const [containerStyle, setContainerStyle] = (0, import_react2.useState)({});
3765
3795
  const toastRef = (0, import_react2.useRef)();
3766
3796
  const addToast = (0, import_react2.useCallback)((content, options) => {
3767
- const id = Date.now() + toasts.length;
3797
+ const id = Date.now() + Math.floor(Math.random() * 1e5);
3768
3798
  const newToast = {
3769
3799
  id,
3770
3800
  content,
@@ -2,12 +2,12 @@
2
2
  import {
3
3
  ToastProvider,
4
4
  useToast
5
- } from "../../chunk-QX6VJLEM.mjs";
5
+ } from "../../chunk-7HHFRKJU.mjs";
6
6
  import "../../chunk-ZOTHPHXA.mjs";
7
- import "../../chunk-2COCX2VX.mjs";
7
+ import "../../chunk-PXUBPWKU.mjs";
8
8
  import "../../chunk-ZYIIXWVY.mjs";
9
- import "../../chunk-PRUAIZTU.mjs";
10
- import "../../chunk-IOV7MEPG.mjs";
9
+ import "../../chunk-LCI6RPWE.mjs";
10
+ import "../../chunk-IOCRFIQF.mjs";
11
11
  import "../../chunk-E3G5QXSH.mjs";
12
12
  import "../../chunk-J725QONZ.mjs";
13
13
  import "../../chunk-IZ6II3QA.mjs";