@moondreamsdev/dreamer-ui 1.7.6 → 1.7.7-test.1

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 (51) hide show
  1. package/dist/{QuestionMarkCircled-JRFAPLtT.js → QuestionMarkCircled-B6xdNcJl.js} +5 -29
  2. package/dist/QuestionMarkCircled-B6xdNcJl.js.map +1 -0
  3. package/dist/QuestionMarkCircled-Dh6Bl18_.cjs +2 -0
  4. package/dist/QuestionMarkCircled-Dh6Bl18_.cjs.map +1 -0
  5. package/dist/Toast-Bn0CCsLY.js +380 -0
  6. package/dist/Toast-Bn0CCsLY.js.map +1 -0
  7. package/dist/Toast-uzg_Sy4r.cjs +2 -0
  8. package/dist/Toast-uzg_Sy4r.cjs.map +1 -0
  9. package/dist/X-JuXyHwMp.cjs +2 -0
  10. package/dist/X-JuXyHwMp.cjs.map +1 -0
  11. package/dist/X-aXWqJhiz.js +52 -0
  12. package/dist/X-aXWqJhiz.js.map +1 -0
  13. package/dist/components.cjs.js +1 -1
  14. package/dist/components.cjs.js.map +1 -1
  15. package/dist/components.esm.js +55 -53
  16. package/dist/components.esm.js.map +1 -1
  17. package/dist/hooks.cjs.js +1 -1
  18. package/dist/hooks.esm.js +4 -3
  19. package/dist/providers.cjs.js +1 -1
  20. package/dist/providers.cjs.js.map +1 -1
  21. package/dist/providers.esm.js +75 -25
  22. package/dist/providers.esm.js.map +1 -1
  23. package/dist/src/components/index.d.ts +1 -0
  24. package/dist/src/components/toast/Toast.d.ts +24 -0
  25. package/dist/src/components/toast/index.d.ts +2 -0
  26. package/dist/src/hooks/index.d.ts +1 -0
  27. package/dist/src/hooks/useToast.d.ts +16 -0
  28. package/dist/src/providers/ToastProvider.d.ts +14 -0
  29. package/dist/src/providers/index.d.ts +1 -0
  30. package/dist/src/symbols/CrossCircled.d.ts +4 -0
  31. package/dist/src/symbols/InfoCircled.d.ts +4 -0
  32. package/dist/src/symbols/index.d.ts +3 -1
  33. package/dist/symbols.cjs.js +1 -1
  34. package/dist/symbols.esm.js +11 -8
  35. package/dist/symbols.esm.js.map +1 -1
  36. package/dist/useToast-CEKvEJVB.js +22 -0
  37. package/dist/useToast-CEKvEJVB.js.map +1 -0
  38. package/dist/useToast-CraVIawn.cjs +2 -0
  39. package/dist/useToast-CraVIawn.cjs.map +1 -0
  40. package/package.json +1 -1
  41. package/dist/QuestionMarkCircled-JRFAPLtT.js.map +0 -1
  42. package/dist/QuestionMarkCircled-o1tqa8ZJ.cjs +0 -2
  43. package/dist/QuestionMarkCircled-o1tqa8ZJ.cjs.map +0 -1
  44. package/dist/styles-Bxzm1DQb.cjs +0 -2
  45. package/dist/styles-Bxzm1DQb.cjs.map +0 -1
  46. package/dist/styles-eVzajhIX.js +0 -289
  47. package/dist/styles-eVzajhIX.js.map +0 -1
  48. package/dist/useActionModal-C4X_-O9_.js +0 -13
  49. package/dist/useActionModal-C4X_-O9_.js.map +0 -1
  50. package/dist/useActionModal-CqT8y2he.cjs +0 -2
  51. package/dist/useActionModal-CqT8y2he.cjs.map +0 -1
@@ -33,17 +33,6 @@ function o({ size: C = 15, color: l = "currentColor" }) {
33
33
  ) });
34
34
  }
35
35
  function r({ size: C = 15 }) {
36
- return /* @__PURE__ */ e("svg", { width: C, height: C, className: "inline", viewBox: "0 0 15 15", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e(
37
- "path",
38
- {
39
- d: "M8.4449 0.608765C8.0183 -0.107015 6.9817 -0.107015 6.55509 0.608766L0.161178 11.3368C-0.275824 12.07 0.252503 13 1.10608 13H13.8939C14.7475 13 15.2758 12.07 14.8388 11.3368L8.4449 0.608765ZM7.4141 1.12073C7.45288 1.05566 7.54712 1.05566 7.5859 1.12073L13.9798 11.8488C14.0196 11.9154 13.9715 12 13.8939 12H1.10608C1.02849 12 0.980454 11.9154 1.02018 11.8488L7.4141 1.12073ZM6.8269 4.48611C6.81221 4.10423 7.11783 3.78663 7.5 3.78663C7.88217 3.78663 8.18778 4.10423 8.1731 4.48612L8.01921 8.48701C8.00848 8.766 7.7792 8.98664 7.5 8.98664C7.2208 8.98664 6.99151 8.766 6.98078 8.48701L6.8269 4.48611ZM8.24989 10.476C8.24989 10.8902 7.9141 11.226 7.49989 11.226C7.08567 11.226 6.74989 10.8902 6.74989 10.476C6.74989 10.0618 7.08567 9.72599 7.49989 9.72599C7.9141 9.72599 8.24989 10.0618 8.24989 10.476Z",
40
- fill: "currentColor",
41
- fillRule: "evenodd",
42
- clipRule: "evenodd"
43
- }
44
- ) });
45
- }
46
- function d({ size: C = 15 }) {
47
36
  return /* @__PURE__ */ e("svg", { width: C, height: C, className: "inline", viewBox: "0 0 15 15", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e(
48
37
  "path",
49
38
  {
@@ -54,7 +43,7 @@ function d({ size: C = 15 }) {
54
43
  }
55
44
  ) });
56
45
  }
57
- function h({ size: C = 15 }) {
46
+ function d({ size: C = 15 }) {
58
47
  return /* @__PURE__ */ e("svg", { width: C, height: C, className: "inline", viewBox: "0 0 15 15", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e(
59
48
  "path",
60
49
  {
@@ -65,18 +54,7 @@ function h({ size: C = 15 }) {
65
54
  }
66
55
  ) });
67
56
  }
68
- function w({ size: C = 15, color: l = "currentColor" }) {
69
- return /* @__PURE__ */ e("svg", { width: C, height: C, className: "inline", viewBox: "0 0 15 15", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e(
70
- "path",
71
- {
72
- d: "M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",
73
- fill: l,
74
- fillRule: "evenodd",
75
- clipRule: "evenodd"
76
- }
77
- ) });
78
- }
79
- function c({ size: C = 15, color: l = "currentColor" }) {
57
+ function h({ size: C = 15, color: l = "currentColor" }) {
80
58
  return /* @__PURE__ */ e("svg", { width: C, height: C, className: "inline", viewBox: "0 0 15 15", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ e(
81
59
  "path",
82
60
  {
@@ -90,11 +68,9 @@ function c({ size: C = 15, color: l = "currentColor" }) {
90
68
  export {
91
69
  i as C,
92
70
  r as E,
93
- c as Q,
94
- w as X,
71
+ h as Q,
95
72
  t as a,
96
73
  o as b,
97
- d as c,
98
- h as d
74
+ d as c
99
75
  };
100
- //# sourceMappingURL=QuestionMarkCircled-JRFAPLtT.js.map
76
+ //# sourceMappingURL=QuestionMarkCircled-B6xdNcJl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionMarkCircled-B6xdNcJl.js","sources":["../src/symbols/Check.tsx","../src/symbols/CheckCircled.tsx","../src/symbols/ChevronDown.tsx","../src/symbols/EyeClosed.tsx","../src/symbols/EyeOpened.tsx","../src/symbols/QuestionMarkCircled.tsx"],"sourcesContent":["export default function Check({ size = 15, color = 'currentColor' }: { size?: number, color?: string }) {\n return (\n <svg width={size} height={size} className={'inline'} viewBox='0 0 15 15' xmlns='http://www.w3.org/2000/svg'>\n <path\n d='M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z'\n fill={color}\n fillRule='evenodd'\n clipRule='evenodd'\n />\n </svg>\n );\n}\n","export default function CheckCircled({ size = 15 }: { size?: number }) {\n return (\n <svg width={size} height={size} className={'inline'} viewBox='0 0 15 15' xmlns='http://www.w3.org/2000/svg'>\n <path\n d='M7.49991 0.877045C3.84222 0.877045 0.877075 3.84219 0.877075 7.49988C0.877075 11.1575 3.84222 14.1227 7.49991 14.1227C11.1576 14.1227 14.1227 11.1575 14.1227 7.49988C14.1227 3.84219 11.1576 0.877045 7.49991 0.877045ZM1.82708 7.49988C1.82708 4.36686 4.36689 1.82704 7.49991 1.82704C10.6329 1.82704 13.1727 4.36686 13.1727 7.49988C13.1727 10.6329 10.6329 13.1727 7.49991 13.1727C4.36689 13.1727 1.82708 10.6329 1.82708 7.49988ZM10.1589 5.53774C10.3178 5.31191 10.2636 5.00001 10.0378 4.84109C9.81194 4.68217 9.50004 4.73642 9.34112 4.96225L6.51977 8.97154L5.35681 7.78706C5.16334 7.59002 4.84677 7.58711 4.64973 7.78058C4.45268 7.97404 4.44978 8.29061 4.64325 8.48765L6.22658 10.1003C6.33054 10.2062 6.47617 10.2604 6.62407 10.2483C6.77197 10.2363 6.90686 10.1591 6.99226 10.0377L10.1589 5.53774Z'\n fill='currentColor'\n fillRule='evenodd'\n clipRule='evenodd'\n />\n </svg>\n );\n}\n","export default function ChevronDown({ size = 15, color = 'currentColor' }: { size?: number; color?: string }) {\n return (\n <svg width={size} height={size} className={'inline'} viewBox='0 0 15 15' xmlns='http://www.w3.org/2000/svg'>\n <path\n d='M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z'\n fill={color}\n fillRule='evenodd'\n clipRule='evenodd'\n />\n </svg>\n );\n}\n","export default function EyeClosed({ size = 15 }: { size?: number }) {\n return (\n <svg width={size} height={size} className={'inline'} viewBox='0 0 15 15' xmlns='http://www.w3.org/2000/svg'>\n <path\n d='M14.7649 6.07596C14.9991 6.22231 15.0703 6.53079 14.9239 6.76495C14.4849 7.46743 13.9632 8.10645 13.3702 8.66305L14.5712 9.86406C14.7664 10.0593 14.7664 10.3759 14.5712 10.5712C14.3759 10.7664 14.0593 10.7664 13.8641 10.5712L12.6011 9.30817C11.805 9.90283 10.9089 10.3621 9.93375 10.651L10.383 12.3277C10.4544 12.5944 10.2961 12.8685 10.0294 12.94C9.76267 13.0115 9.4885 12.8532 9.41704 12.5865L8.95917 10.8775C8.48743 10.958 8.00036 10.9999 7.50001 10.9999C6.99965 10.9999 6.51257 10.958 6.04082 10.8775L5.58299 12.5864C5.51153 12.8532 5.23737 13.0115 4.97064 12.94C4.7039 12.8686 4.5456 12.5944 4.61706 12.3277L5.06625 10.651C4.09111 10.3621 3.19503 9.90282 2.3989 9.30815L1.1359 10.5712C0.940638 10.7664 0.624058 10.7664 0.428798 10.5712C0.233537 10.3759 0.233537 10.0593 0.428798 9.86405L1.62982 8.66303C1.03682 8.10643 0.515113 7.46742 0.0760677 6.76495C-0.0702867 6.53079 0.000898544 6.22231 0.235065 6.07596C0.469231 5.9296 0.777703 6.00079 0.924058 6.23496C1.40354 7.00213 1.989 7.68057 2.66233 8.2427C2.67315 8.25096 2.6837 8.25972 2.69397 8.26898C4.00897 9.35527 5.65537 9.99991 7.50001 9.99991C10.3078 9.99991 12.6564 8.5063 14.076 6.23495C14.2223 6.00079 14.5308 5.9296 14.7649 6.07596Z'\n fill='currentColor'\n fillRule='evenodd'\n clipRule='evenodd'\n />\n </svg>\n );\n}\n","export default function EyeClosed({ size = 15 }: { size?: number }) {\n return (\n <svg width={size} height={size} className={'inline'} viewBox='0 0 15 15' xmlns='http://www.w3.org/2000/svg'>\n <path\n d='M7.5 11C4.80285 11 2.52952 9.62184 1.09622 7.50001C2.52952 5.37816 4.80285 4 7.5 4C10.1971 4 12.4705 5.37816 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11ZM7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C1.65639 10.2936 4.30786 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C13.3436 4.70638 10.6921 3 7.5 3ZM7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5Z'\n fill='currentColor'\n fillRule='evenodd'\n clipRule='evenodd'\n />\n </svg>\n );\n}\n","export default function QuestionMarkCircled({ size = 15, color = 'currentColor' }: { size?: number; color?: string }) {\n return (\n <svg width={size} height={size} className={'inline'} viewBox='0 0 15 15' xmlns='http://www.w3.org/2000/svg'>\n <path\n d='M0.877075 7.49972C0.877075 3.84204 3.84222 0.876892 7.49991 0.876892C11.1576 0.876892 14.1227 3.84204 14.1227 7.49972C14.1227 11.1574 11.1576 14.1226 7.49991 14.1226C3.84222 14.1226 0.877075 11.1574 0.877075 7.49972ZM7.49991 1.82689C4.36689 1.82689 1.82708 4.36671 1.82708 7.49972C1.82708 10.6327 4.36689 13.1726 7.49991 13.1726C10.6329 13.1726 13.1727 10.6327 13.1727 7.49972C13.1727 4.36671 10.6329 1.82689 7.49991 1.82689ZM8.24993 10.5C8.24993 10.9142 7.91414 11.25 7.49993 11.25C7.08571 11.25 6.74993 10.9142 6.74993 10.5C6.74993 10.0858 7.08571 9.75 7.49993 9.75C7.91414 9.75 8.24993 10.0858 8.24993 10.5ZM6.05003 6.25C6.05003 5.57211 6.63511 4.925 7.50003 4.925C8.36496 4.925 8.95003 5.57211 8.95003 6.25C8.95003 6.74118 8.68002 6.99212 8.21447 7.27494C8.16251 7.30651 8.10258 7.34131 8.03847 7.37854L8.03841 7.37858C7.85521 7.48497 7.63788 7.61119 7.47449 7.73849C7.23214 7.92732 6.95003 8.23198 6.95003 8.7C6.95004 9.00376 7.19628 9.25 7.50004 9.25C7.8024 9.25 8.04778 9.00601 8.05002 8.70417L8.05056 8.7033C8.05924 8.6896 8.08493 8.65735 8.15058 8.6062C8.25207 8.52712 8.36508 8.46163 8.51567 8.37436L8.51571 8.37433C8.59422 8.32883 8.68296 8.27741 8.78559 8.21506C9.32004 7.89038 10.05 7.35382 10.05 6.25C10.05 4.92789 8.93511 3.825 7.50003 3.825C6.06496 3.825 4.95003 4.92789 4.95003 6.25C4.95003 6.55376 5.19628 6.8 5.50003 6.8C5.80379 6.8 6.05003 6.55376 6.05003 6.25Z'\n fill={color}\n fillRule='evenodd'\n clipRule='evenodd'\n />\n </svg>\n );\n}\n"],"names":["Check","size","color","jsx","CheckCircled","ChevronDown","EyeClosed","QuestionMarkCircled"],"mappings":";AAAA,SAAwBA,EAAM,EAAE,MAAAC,IAAO,IAAI,OAAAC,IAAQ,kBAAqD;AAEpG,SAAA,gBAAAC,EAAC,OAAI,EAAA,OAAOF,GAAM,QAAQA,GAAM,WAAW,UAAU,SAAQ,aAAY,OAAM,8BAC7E,UAAA,gBAAAE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,GAAE;AAAA,MACF,MAAMD;AAAA,MACN,UAAS;AAAA,MACT,UAAS;AAAA,IAAA;AAAA,EAAA,GAEb;AAEJ;ACXA,SAAwBE,EAAa,EAAE,MAAAH,IAAO,MAAyB;AAEnE,SAAA,gBAAAE,EAAC,OAAI,EAAA,OAAOF,GAAM,QAAQA,GAAM,WAAW,UAAU,SAAQ,aAAY,OAAM,8BAC7E,UAAA,gBAAAE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,GAAE;AAAA,MACF,MAAK;AAAA,MACL,UAAS;AAAA,MACT,UAAS;AAAA,IAAA;AAAA,EAAA,GAEb;AAEJ;ACXA,SAAwBE,EAAY,EAAE,MAAAJ,IAAO,IAAI,OAAAC,IAAQ,kBAAqD;AAE1G,SAAA,gBAAAC,EAAC,OAAI,EAAA,OAAOF,GAAM,QAAQA,GAAM,WAAW,UAAU,SAAQ,aAAY,OAAM,8BAC7E,UAAA,gBAAAE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,GAAE;AAAA,MACF,MAAMD;AAAA,MACN,UAAS;AAAA,MACT,UAAS;AAAA,IAAA;AAAA,EAAA,GAEb;AAEJ;ACXA,SAAwBI,EAAU,EAAE,MAAAL,IAAO,MAAyB;AAEhE,SAAA,gBAAAE,EAAC,OAAI,EAAA,OAAOF,GAAM,QAAQA,GAAM,WAAW,UAAU,SAAQ,aAAY,OAAM,8BAC7E,UAAA,gBAAAE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,GAAE;AAAA,MACF,MAAK;AAAA,MACL,UAAS;AAAA,MACT,UAAS;AAAA,IAAA;AAAA,EAAA,GAEb;AAEJ;ACXA,SAAwBG,EAAU,EAAE,MAAAL,IAAO,MAAyB;AAEhE,SAAA,gBAAAE,EAAC,OAAI,EAAA,OAAOF,GAAM,QAAQA,GAAM,WAAW,UAAU,SAAQ,aAAY,OAAM,8BAC7E,UAAA,gBAAAE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,GAAE;AAAA,MACF,MAAK;AAAA,MACL,UAAS;AAAA,MACT,UAAS;AAAA,IAAA;AAAA,EAAA,GAEb;AAEJ;ACXA,SAAwBI,EAAoB,EAAE,MAAAN,IAAO,IAAI,OAAAC,IAAQ,kBAAqD;AAElH,SAAA,gBAAAC,EAAC,OAAI,EAAA,OAAOF,GAAM,QAAQA,GAAM,WAAW,UAAU,SAAQ,aAAY,OAAM,8BAC7E,UAAA,gBAAAE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,GAAE;AAAA,MACF,MAAMD;AAAA,MACN,UAAS;AAAA,MACT,UAAS;AAAA,IAAA;AAAA,EAAA,GAEb;AAEJ;"}
@@ -0,0 +1,2 @@
1
+ "use strict";const e=require("react/jsx-runtime");function n({size:C=15,color:l="currentColor"}){return e.jsx("svg",{width:C,height:C,className:"inline",viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z",fill:l,fillRule:"evenodd",clipRule:"evenodd"})})}function i({size:C=15}){return e.jsx("svg",{width:C,height:C,className:"inline",viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M7.49991 0.877045C3.84222 0.877045 0.877075 3.84219 0.877075 7.49988C0.877075 11.1575 3.84222 14.1227 7.49991 14.1227C11.1576 14.1227 14.1227 11.1575 14.1227 7.49988C14.1227 3.84219 11.1576 0.877045 7.49991 0.877045ZM1.82708 7.49988C1.82708 4.36686 4.36689 1.82704 7.49991 1.82704C10.6329 1.82704 13.1727 4.36686 13.1727 7.49988C13.1727 10.6329 10.6329 13.1727 7.49991 13.1727C4.36689 13.1727 1.82708 10.6329 1.82708 7.49988ZM10.1589 5.53774C10.3178 5.31191 10.2636 5.00001 10.0378 4.84109C9.81194 4.68217 9.50004 4.73642 9.34112 4.96225L6.51977 8.97154L5.35681 7.78706C5.16334 7.59002 4.84677 7.58711 4.64973 7.78058C4.45268 7.97404 4.44978 8.29061 4.64325 8.48765L6.22658 10.1003C6.33054 10.2062 6.47617 10.2604 6.62407 10.2483C6.77197 10.2363 6.90686 10.1591 6.99226 10.0377L10.1589 5.53774Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function t({size:C=15,color:l="currentColor"}){return e.jsx("svg",{width:C,height:C,className:"inline",viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:l,fillRule:"evenodd",clipRule:"evenodd"})})}function o({size:C=15}){return e.jsx("svg",{width:C,height:C,className:"inline",viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M14.7649 6.07596C14.9991 6.22231 15.0703 6.53079 14.9239 6.76495C14.4849 7.46743 13.9632 8.10645 13.3702 8.66305L14.5712 9.86406C14.7664 10.0593 14.7664 10.3759 14.5712 10.5712C14.3759 10.7664 14.0593 10.7664 13.8641 10.5712L12.6011 9.30817C11.805 9.90283 10.9089 10.3621 9.93375 10.651L10.383 12.3277C10.4544 12.5944 10.2961 12.8685 10.0294 12.94C9.76267 13.0115 9.4885 12.8532 9.41704 12.5865L8.95917 10.8775C8.48743 10.958 8.00036 10.9999 7.50001 10.9999C6.99965 10.9999 6.51257 10.958 6.04082 10.8775L5.58299 12.5864C5.51153 12.8532 5.23737 13.0115 4.97064 12.94C4.7039 12.8686 4.5456 12.5944 4.61706 12.3277L5.06625 10.651C4.09111 10.3621 3.19503 9.90282 2.3989 9.30815L1.1359 10.5712C0.940638 10.7664 0.624058 10.7664 0.428798 10.5712C0.233537 10.3759 0.233537 10.0593 0.428798 9.86405L1.62982 8.66303C1.03682 8.10643 0.515113 7.46742 0.0760677 6.76495C-0.0702867 6.53079 0.000898544 6.22231 0.235065 6.07596C0.469231 5.9296 0.777703 6.00079 0.924058 6.23496C1.40354 7.00213 1.989 7.68057 2.66233 8.2427C2.67315 8.25096 2.6837 8.25972 2.69397 8.26898C4.00897 9.35527 5.65537 9.99991 7.50001 9.99991C10.3078 9.99991 12.6564 8.5063 14.076 6.23495C14.2223 6.00079 14.5308 5.9296 14.7649 6.07596Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function r({size:C=15}){return e.jsx("svg",{width:C,height:C,className:"inline",viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M7.5 11C4.80285 11 2.52952 9.62184 1.09622 7.50001C2.52952 5.37816 4.80285 4 7.5 4C10.1971 4 12.4705 5.37816 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11ZM7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C1.65639 10.2936 4.30786 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C13.3436 4.70638 10.6921 3 7.5 3ZM7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function d({size:C=15,color:l="currentColor"}){return e.jsx("svg",{width:C,height:C,className:"inline",viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M0.877075 7.49972C0.877075 3.84204 3.84222 0.876892 7.49991 0.876892C11.1576 0.876892 14.1227 3.84204 14.1227 7.49972C14.1227 11.1574 11.1576 14.1226 7.49991 14.1226C3.84222 14.1226 0.877075 11.1574 0.877075 7.49972ZM7.49991 1.82689C4.36689 1.82689 1.82708 4.36671 1.82708 7.49972C1.82708 10.6327 4.36689 13.1726 7.49991 13.1726C10.6329 13.1726 13.1727 10.6327 13.1727 7.49972C13.1727 4.36671 10.6329 1.82689 7.49991 1.82689ZM8.24993 10.5C8.24993 10.9142 7.91414 11.25 7.49993 11.25C7.08571 11.25 6.74993 10.9142 6.74993 10.5C6.74993 10.0858 7.08571 9.75 7.49993 9.75C7.91414 9.75 8.24993 10.0858 8.24993 10.5ZM6.05003 6.25C6.05003 5.57211 6.63511 4.925 7.50003 4.925C8.36496 4.925 8.95003 5.57211 8.95003 6.25C8.95003 6.74118 8.68002 6.99212 8.21447 7.27494C8.16251 7.30651 8.10258 7.34131 8.03847 7.37854L8.03841 7.37858C7.85521 7.48497 7.63788 7.61119 7.47449 7.73849C7.23214 7.92732 6.95003 8.23198 6.95003 8.7C6.95004 9.00376 7.19628 9.25 7.50004 9.25C7.8024 9.25 8.04778 9.00601 8.05002 8.70417L8.05056 8.7033C8.05924 8.6896 8.08493 8.65735 8.15058 8.6062C8.25207 8.52712 8.36508 8.46163 8.51567 8.37436L8.51571 8.37433C8.59422 8.32883 8.68296 8.27741 8.78559 8.21506C9.32004 7.89038 10.05 7.35382 10.05 6.25C10.05 4.92789 8.93511 3.825 7.50003 3.825C6.06496 3.825 4.95003 4.92789 4.95003 6.25C4.95003 6.55376 5.19628 6.8 5.50003 6.8C5.80379 6.8 6.05003 6.55376 6.05003 6.25Z",fill:l,fillRule:"evenodd",clipRule:"evenodd"})})}exports.Check=n;exports.CheckCircled=i;exports.ChevronDown=t;exports.EyeClosed=o;exports.EyeClosed$1=r;exports.QuestionMarkCircled=d;
2
+ //# sourceMappingURL=QuestionMarkCircled-Dh6Bl18_.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuestionMarkCircled-Dh6Bl18_.cjs","sources":["../src/symbols/Check.tsx","../src/symbols/CheckCircled.tsx","../src/symbols/ChevronDown.tsx","../src/symbols/EyeClosed.tsx","../src/symbols/EyeOpened.tsx","../src/symbols/QuestionMarkCircled.tsx"],"sourcesContent":["export default function Check({ size = 15, color = 'currentColor' }: { size?: number, color?: string }) {\n return (\n <svg width={size} height={size} className={'inline'} viewBox='0 0 15 15' xmlns='http://www.w3.org/2000/svg'>\n <path\n d='M11.4669 3.72684C11.7558 3.91574 11.8369 4.30308 11.648 4.59198L7.39799 11.092C7.29783 11.2452 7.13556 11.3467 6.95402 11.3699C6.77247 11.3931 6.58989 11.3355 6.45446 11.2124L3.70446 8.71241C3.44905 8.48022 3.43023 8.08494 3.66242 7.82953C3.89461 7.57412 4.28989 7.55529 4.5453 7.78749L6.75292 9.79441L10.6018 3.90792C10.7907 3.61902 11.178 3.53795 11.4669 3.72684Z'\n fill={color}\n fillRule='evenodd'\n clipRule='evenodd'\n />\n </svg>\n );\n}\n","export default function CheckCircled({ size = 15 }: { size?: number }) {\n return (\n <svg width={size} height={size} className={'inline'} viewBox='0 0 15 15' xmlns='http://www.w3.org/2000/svg'>\n <path\n d='M7.49991 0.877045C3.84222 0.877045 0.877075 3.84219 0.877075 7.49988C0.877075 11.1575 3.84222 14.1227 7.49991 14.1227C11.1576 14.1227 14.1227 11.1575 14.1227 7.49988C14.1227 3.84219 11.1576 0.877045 7.49991 0.877045ZM1.82708 7.49988C1.82708 4.36686 4.36689 1.82704 7.49991 1.82704C10.6329 1.82704 13.1727 4.36686 13.1727 7.49988C13.1727 10.6329 10.6329 13.1727 7.49991 13.1727C4.36689 13.1727 1.82708 10.6329 1.82708 7.49988ZM10.1589 5.53774C10.3178 5.31191 10.2636 5.00001 10.0378 4.84109C9.81194 4.68217 9.50004 4.73642 9.34112 4.96225L6.51977 8.97154L5.35681 7.78706C5.16334 7.59002 4.84677 7.58711 4.64973 7.78058C4.45268 7.97404 4.44978 8.29061 4.64325 8.48765L6.22658 10.1003C6.33054 10.2062 6.47617 10.2604 6.62407 10.2483C6.77197 10.2363 6.90686 10.1591 6.99226 10.0377L10.1589 5.53774Z'\n fill='currentColor'\n fillRule='evenodd'\n clipRule='evenodd'\n />\n </svg>\n );\n}\n","export default function ChevronDown({ size = 15, color = 'currentColor' }: { size?: number; color?: string }) {\n return (\n <svg width={size} height={size} className={'inline'} viewBox='0 0 15 15' xmlns='http://www.w3.org/2000/svg'>\n <path\n d='M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z'\n fill={color}\n fillRule='evenodd'\n clipRule='evenodd'\n />\n </svg>\n );\n}\n","export default function EyeClosed({ size = 15 }: { size?: number }) {\n return (\n <svg width={size} height={size} className={'inline'} viewBox='0 0 15 15' xmlns='http://www.w3.org/2000/svg'>\n <path\n d='M14.7649 6.07596C14.9991 6.22231 15.0703 6.53079 14.9239 6.76495C14.4849 7.46743 13.9632 8.10645 13.3702 8.66305L14.5712 9.86406C14.7664 10.0593 14.7664 10.3759 14.5712 10.5712C14.3759 10.7664 14.0593 10.7664 13.8641 10.5712L12.6011 9.30817C11.805 9.90283 10.9089 10.3621 9.93375 10.651L10.383 12.3277C10.4544 12.5944 10.2961 12.8685 10.0294 12.94C9.76267 13.0115 9.4885 12.8532 9.41704 12.5865L8.95917 10.8775C8.48743 10.958 8.00036 10.9999 7.50001 10.9999C6.99965 10.9999 6.51257 10.958 6.04082 10.8775L5.58299 12.5864C5.51153 12.8532 5.23737 13.0115 4.97064 12.94C4.7039 12.8686 4.5456 12.5944 4.61706 12.3277L5.06625 10.651C4.09111 10.3621 3.19503 9.90282 2.3989 9.30815L1.1359 10.5712C0.940638 10.7664 0.624058 10.7664 0.428798 10.5712C0.233537 10.3759 0.233537 10.0593 0.428798 9.86405L1.62982 8.66303C1.03682 8.10643 0.515113 7.46742 0.0760677 6.76495C-0.0702867 6.53079 0.000898544 6.22231 0.235065 6.07596C0.469231 5.9296 0.777703 6.00079 0.924058 6.23496C1.40354 7.00213 1.989 7.68057 2.66233 8.2427C2.67315 8.25096 2.6837 8.25972 2.69397 8.26898C4.00897 9.35527 5.65537 9.99991 7.50001 9.99991C10.3078 9.99991 12.6564 8.5063 14.076 6.23495C14.2223 6.00079 14.5308 5.9296 14.7649 6.07596Z'\n fill='currentColor'\n fillRule='evenodd'\n clipRule='evenodd'\n />\n </svg>\n );\n}\n","export default function EyeClosed({ size = 15 }: { size?: number }) {\n return (\n <svg width={size} height={size} className={'inline'} viewBox='0 0 15 15' xmlns='http://www.w3.org/2000/svg'>\n <path\n d='M7.5 11C4.80285 11 2.52952 9.62184 1.09622 7.50001C2.52952 5.37816 4.80285 4 7.5 4C10.1971 4 12.4705 5.37816 13.9038 7.50001C12.4705 9.62183 10.1971 11 7.5 11ZM7.5 3C4.30786 3 1.65639 4.70638 0.0760002 7.23501C-0.0253338 7.39715 -0.0253334 7.60288 0.0760014 7.76501C1.65639 10.2936 4.30786 12 7.5 12C10.6921 12 13.3436 10.2936 14.924 7.76501C15.0253 7.60288 15.0253 7.39715 14.924 7.23501C13.3436 4.70638 10.6921 3 7.5 3ZM7.5 9.5C8.60457 9.5 9.5 8.60457 9.5 7.5C9.5 6.39543 8.60457 5.5 7.5 5.5C6.39543 5.5 5.5 6.39543 5.5 7.5C5.5 8.60457 6.39543 9.5 7.5 9.5Z'\n fill='currentColor'\n fillRule='evenodd'\n clipRule='evenodd'\n />\n </svg>\n );\n}\n","export default function QuestionMarkCircled({ size = 15, color = 'currentColor' }: { size?: number; color?: string }) {\n return (\n <svg width={size} height={size} className={'inline'} viewBox='0 0 15 15' xmlns='http://www.w3.org/2000/svg'>\n <path\n d='M0.877075 7.49972C0.877075 3.84204 3.84222 0.876892 7.49991 0.876892C11.1576 0.876892 14.1227 3.84204 14.1227 7.49972C14.1227 11.1574 11.1576 14.1226 7.49991 14.1226C3.84222 14.1226 0.877075 11.1574 0.877075 7.49972ZM7.49991 1.82689C4.36689 1.82689 1.82708 4.36671 1.82708 7.49972C1.82708 10.6327 4.36689 13.1726 7.49991 13.1726C10.6329 13.1726 13.1727 10.6327 13.1727 7.49972C13.1727 4.36671 10.6329 1.82689 7.49991 1.82689ZM8.24993 10.5C8.24993 10.9142 7.91414 11.25 7.49993 11.25C7.08571 11.25 6.74993 10.9142 6.74993 10.5C6.74993 10.0858 7.08571 9.75 7.49993 9.75C7.91414 9.75 8.24993 10.0858 8.24993 10.5ZM6.05003 6.25C6.05003 5.57211 6.63511 4.925 7.50003 4.925C8.36496 4.925 8.95003 5.57211 8.95003 6.25C8.95003 6.74118 8.68002 6.99212 8.21447 7.27494C8.16251 7.30651 8.10258 7.34131 8.03847 7.37854L8.03841 7.37858C7.85521 7.48497 7.63788 7.61119 7.47449 7.73849C7.23214 7.92732 6.95003 8.23198 6.95003 8.7C6.95004 9.00376 7.19628 9.25 7.50004 9.25C7.8024 9.25 8.04778 9.00601 8.05002 8.70417L8.05056 8.7033C8.05924 8.6896 8.08493 8.65735 8.15058 8.6062C8.25207 8.52712 8.36508 8.46163 8.51567 8.37436L8.51571 8.37433C8.59422 8.32883 8.68296 8.27741 8.78559 8.21506C9.32004 7.89038 10.05 7.35382 10.05 6.25C10.05 4.92789 8.93511 3.825 7.50003 3.825C6.06496 3.825 4.95003 4.92789 4.95003 6.25C4.95003 6.55376 5.19628 6.8 5.50003 6.8C5.80379 6.8 6.05003 6.55376 6.05003 6.25Z'\n fill={color}\n fillRule='evenodd'\n clipRule='evenodd'\n />\n </svg>\n );\n}\n"],"names":["Check","size","color","jsx","CheckCircled","ChevronDown","EyeClosed","QuestionMarkCircled"],"mappings":"kDAAA,SAAwBA,EAAM,CAAE,KAAAC,EAAO,GAAI,MAAAC,EAAQ,gBAAqD,CAEpG,OAAAC,EAAAA,IAAC,MAAI,CAAA,MAAOF,EAAM,OAAQA,EAAM,UAAW,SAAU,QAAQ,YAAY,MAAM,6BAC7E,SAAAE,EAAA,IAAC,OAAA,CACC,EAAE,gXACF,KAAMD,EACN,SAAS,UACT,SAAS,SAAA,CAAA,EAEb,CAEJ,CCXA,SAAwBE,EAAa,CAAE,KAAAH,EAAO,IAAyB,CAEnE,OAAAE,EAAAA,IAAC,MAAI,CAAA,MAAOF,EAAM,OAAQA,EAAM,UAAW,SAAU,QAAQ,YAAY,MAAM,6BAC7E,SAAAE,EAAA,IAAC,OAAA,CACC,EAAE,6xBACF,KAAK,eACL,SAAS,UACT,SAAS,SAAA,CAAA,EAEb,CAEJ,CCXA,SAAwBE,EAAY,CAAE,KAAAJ,EAAO,GAAI,MAAAC,EAAQ,gBAAqD,CAE1G,OAAAC,EAAAA,IAAC,MAAI,CAAA,MAAOF,EAAM,OAAQA,EAAM,UAAW,SAAU,QAAQ,YAAY,MAAM,6BAC7E,SAAAE,EAAA,IAAC,OAAA,CACC,EAAE,6TACF,KAAMD,EACN,SAAS,UACT,SAAS,SAAA,CAAA,EAEb,CAEJ,CCXA,SAAwBI,EAAU,CAAE,KAAAL,EAAO,IAAyB,CAEhE,OAAAE,EAAAA,IAAC,MAAI,CAAA,MAAOF,EAAM,OAAQA,EAAM,UAAW,SAAU,QAAQ,YAAY,MAAM,6BAC7E,SAAAE,EAAA,IAAC,OAAA,CACC,EAAE,irCACF,KAAK,eACL,SAAS,UACT,SAAS,SAAA,CAAA,EAEb,CAEJ,CCXA,SAAwBG,EAAU,CAAE,KAAAL,EAAO,IAAyB,CAEhE,OAAAE,EAAAA,IAAC,MAAI,CAAA,MAAOF,EAAM,OAAQA,EAAM,UAAW,SAAU,QAAQ,YAAY,MAAM,6BAC7E,SAAAE,EAAA,IAAC,OAAA,CACC,EAAE,ijBACF,KAAK,eACL,SAAS,UACT,SAAS,SAAA,CAAA,EAEb,CAEJ,CCXA,SAAwBI,EAAoB,CAAE,KAAAN,EAAO,GAAI,MAAAC,EAAQ,gBAAqD,CAElH,OAAAC,EAAAA,IAAC,MAAI,CAAA,MAAOF,EAAM,OAAQA,EAAM,UAAW,SAAU,QAAQ,YAAY,MAAM,6BAC7E,SAAAE,EAAA,IAAC,OAAA,CACC,EAAE,w2CACF,KAAMD,EACN,SAAS,UACT,SAAS,SAAA,CAAA,EAEb,CAEJ"}
@@ -0,0 +1,380 @@
1
+ import { jsx as r, Fragment as M, jsxs as f } from "react/jsx-runtime";
2
+ import q, { createContext as $, useId as H, useState as p, useEffect as b, useRef as K, useCallback as E, useMemo as C } from "react";
3
+ import { createPortal as P } from "react-dom";
4
+ import { X as D, C as F, E as V, I as X } from "./X-aXWqJhiz.js";
5
+ import { join as Z } from "./utils.esm.js";
6
+ function w(...e) {
7
+ return e.filter((l) => typeof l == "string" && l).join(" ").trim() || void 0;
8
+ }
9
+ function G({ size: e = 15, color: l = "currentColor" }) {
10
+ return /* @__PURE__ */ r("svg", { width: e, height: e, className: "inline", viewBox: "0 0 15 15", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ r(
11
+ "path",
12
+ {
13
+ d: "M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",
14
+ fill: l,
15
+ fillRule: "evenodd",
16
+ clipRule: "evenodd"
17
+ }
18
+ ) });
19
+ }
20
+ function y(...e) {
21
+ return e.filter((l) => typeof l == "string" && l).join(" ").trim() || void 0;
22
+ }
23
+ $(void 0);
24
+ function J() {
25
+ const [e, l] = p(0);
26
+ return b(() => {
27
+ const n = setInterval(() => {
28
+ l((t) => (t + 1) % 3);
29
+ }, 500);
30
+ return () => clearInterval(n);
31
+ }, []), /* @__PURE__ */ r("div", { className: "absolute inset-0 inline-flex items-center justify-center gap-x-2 align-middle", children: [0, 1, 2].map((n) => /* @__PURE__ */ r(
32
+ "div",
33
+ {
34
+ className: w(
35
+ "rounded-full transition-all duration-500 ease-in-out size-[0.35em] bg-current",
36
+ e === n && "transform -translate-y-1"
37
+ )
38
+ },
39
+ n
40
+ )) });
41
+ }
42
+ const Q = {
43
+ base: "",
44
+ primary: "bg-primary text-primary-foreground hover:bg-primary/85 disabled:bg-muted disabled:text-muted-foreground",
45
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/85 disabled:bg-muted/80 disabled:text-muted-foreground/80",
46
+ tertiary: "text-primary hover:text-primary-foreground disabled:text-muted",
47
+ outline: "border border-primary text-primary hover:border-primary-foreground hover:text-primary-foreground disabled:border-muted disabled:text-muted",
48
+ link: "underline-offset-4 hover:underline disabled:underline disabled:text-muted",
49
+ destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/85 disabled:bg-muted disabled:text-muted-foreground"
50
+ }, R = {
51
+ stripped: "",
52
+ fitted: "size-fit",
53
+ sm: "px-2 py-1 text-sm",
54
+ md: "px-4 py-2 text-base",
55
+ lg: "px-6 py-3 text-lg",
56
+ icon: "p-1 w-fit aspect-square",
57
+ full: "p-2 w-full"
58
+ }, U = {
59
+ none: "rounded-none",
60
+ sm: "rounded-sm",
61
+ md: "rounded-md",
62
+ lg: "rounded-lg",
63
+ full: "rounded-full"
64
+ }, x = {
65
+ variant: "primary",
66
+ size: "md",
67
+ rounded: "md"
68
+ };
69
+ function W({
70
+ variant: e = x.variant,
71
+ size: l,
72
+ rounded: n = x.rounded,
73
+ loading: t,
74
+ linkTo: i,
75
+ linkProps: a,
76
+ type: o = "button",
77
+ className: d,
78
+ ...s
79
+ }) {
80
+ let c;
81
+ e === "link" && !l ? c = "fitted" : c = l || x.size;
82
+ const u = w(
83
+ "appearance-none focus:outline-none focus:ring not-disabled:hover:cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed transition-all",
84
+ Q[e],
85
+ R[c],
86
+ U[n],
87
+ t && "relative pointer-events-none",
88
+ i && "relative",
89
+ d
90
+ );
91
+ return /* @__PURE__ */ f(
92
+ "button",
93
+ {
94
+ ...s,
95
+ role: i ? "link" : s.role,
96
+ "aria-label": s["aria-label"] || (a == null ? void 0 : a["aria-label"]),
97
+ "aria-description": s["aria-description"] || (a == null ? void 0 : a["aria-description"]),
98
+ "aria-disabled": s.disabled || t,
99
+ "aria-busy": t,
100
+ type: o,
101
+ className: u,
102
+ children: [
103
+ t && /* @__PURE__ */ r(J, {}),
104
+ /* @__PURE__ */ r("span", { className: w(t && "invisible"), children: s.children }),
105
+ i && !s.disabled && /* @__PURE__ */ r(
106
+ "a",
107
+ {
108
+ ...a,
109
+ "aria-hidden": !0,
110
+ href: i,
111
+ rel: (a == null ? void 0 : a.rel) || "noreferrer",
112
+ className: "absolute inset-0"
113
+ }
114
+ )
115
+ ]
116
+ }
117
+ );
118
+ }
119
+ function Y(e) {
120
+ const [l, n] = p(!1), [t, i] = p(!1);
121
+ return b(() => {
122
+ e ? (i(!0), setTimeout(() => n(!0), 10)) : (n(!1), setTimeout(() => i(!1), 150));
123
+ }, [e]), { show: l, shouldRender: t };
124
+ }
125
+ function _(e, l) {
126
+ b(() => {
127
+ const n = (t) => {
128
+ t.key === "Escape" && e && l();
129
+ };
130
+ return document.addEventListener("keydown", n), e && (document.body.style.overflow = "hidden"), () => {
131
+ document.removeEventListener("keydown", n), document.body.style.overflow = "auto";
132
+ };
133
+ }, [e, l]);
134
+ }
135
+ function ee(e, l) {
136
+ const n = K(null), t = E(() => {
137
+ const i = document.getElementById(e);
138
+ if (!i) return;
139
+ const a = i.querySelectorAll('[data-modal-action="true"]');
140
+ if (a.length > 0) {
141
+ a[0].focus();
142
+ return;
143
+ }
144
+ const o = i.querySelectorAll(
145
+ 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
146
+ );
147
+ if (o.length > 0) {
148
+ const d = Array.from(o).filter((s) => !(s instanceof HTMLButtonElement && s.getAttribute("data-modal-close-button") === "true"));
149
+ if (d.length > 0) {
150
+ d[0].focus();
151
+ return;
152
+ }
153
+ o[0].focus();
154
+ return;
155
+ }
156
+ i.focus();
157
+ }, [e]);
158
+ b(() => (l && (n.current = document.activeElement, t()), () => {
159
+ document.body.style.overflow = "auto", n.current instanceof HTMLElement && n.current.focus();
160
+ }), [l, t]);
161
+ }
162
+ function te({
163
+ id: e,
164
+ isOpen: l,
165
+ onClose: n,
166
+ title: t,
167
+ children: i,
168
+ contentOnly: a = !1,
169
+ className: o,
170
+ overlayClassName: d,
171
+ hideCloseButton: s = !1,
172
+ actions: c = [],
173
+ disableCloseOnOverlayClick: u = !1,
174
+ ariaLabelledBy: m,
175
+ ariaDescribedBy: g
176
+ }) {
177
+ const h = H(), N = e || `modal-${h}`, k = e ? `${e}-title` : `modal-title-${h}`, { show: z, shouldRender: v } = Y(l);
178
+ if (ee(N, v), _(v, n), !v) return null;
179
+ const T = () => t ? q.isValidElement(t) ? /* @__PURE__ */ r("div", { className: "mb-4", children: t }) : /* @__PURE__ */ r("h2", { className: "mb-4 text-xl font-semibold", id: k, children: t }) : null, j = () => c.length === 0 ? null : /* @__PURE__ */ r("div", { className: "mt-6 not-sm:grid gap-y-2 sm:flex sm:justify-start sm:flex-row-reverse sm:gap-x-3", children: c.map((A, I) => {
180
+ const { label: B, className: O, ...S } = A;
181
+ return /* @__PURE__ */ r(W, { className: O, type: "button", ...S, "data-modal-action": "true", children: B }, I);
182
+ }) });
183
+ return /* @__PURE__ */ r(M, { children: P(
184
+ /* @__PURE__ */ r(
185
+ "div",
186
+ {
187
+ "aria-labelledby": m ?? t ? k : void 0,
188
+ "aria-describedby": g,
189
+ role: "dialog",
190
+ "aria-modal": "true",
191
+ className: "fixed inset-0 z-[100] overflow-y-auto",
192
+ children: /* @__PURE__ */ f("div", { className: "flex min-h-screen items-center justify-center p-4", children: [
193
+ /* @__PURE__ */ r(
194
+ "div",
195
+ {
196
+ className: y("fixed inset-0 bg-black/20 transition-all", d),
197
+ onClick: () => {
198
+ u || n();
199
+ }
200
+ }
201
+ ),
202
+ a && /* @__PURE__ */ r("div", { className: y("relative w-fit", o), children: i }),
203
+ !a && /* @__PURE__ */ f(
204
+ "div",
205
+ {
206
+ id: N,
207
+ tabIndex: -1,
208
+ className: y(
209
+ "relative w-full max-w-xl transform rounded-lg shadow-xl transition-all p-6 bg-inherit focus:ring ease-in duration-75",
210
+ z ? "opacity-100 scale-100" : "opacity-0 scale-90",
211
+ o
212
+ ),
213
+ children: [
214
+ !s && /* @__PURE__ */ r(
215
+ "button",
216
+ {
217
+ type: "button",
218
+ onClick: n,
219
+ "data-modal-close-button": "true",
220
+ className: "rounded-md p-0.5 top-2.5 right-2.5 absolute opacity-80 hover:opacity-100 transition-opacity focus:outline-none focus:ring-2 focus:ring-gray-500 leading-0",
221
+ children: /* @__PURE__ */ r(G, { size: 18 })
222
+ }
223
+ ),
224
+ T(),
225
+ i,
226
+ j()
227
+ ]
228
+ }
229
+ )
230
+ ] })
231
+ }
232
+ ),
233
+ document.body
234
+ ) });
235
+ }
236
+ function oe({
237
+ type: e,
238
+ message: l,
239
+ cancelText: n,
240
+ confirmText: t,
241
+ onConfirm: i,
242
+ onClose: a,
243
+ destructive: o = !1,
244
+ title: d,
245
+ ...s
246
+ }) {
247
+ const c = C(() => e === "confirm" ? {
248
+ confirm: t || "Confirm",
249
+ cancel: n || "Cancel",
250
+ defaultTitle: d || "Confirm Action"
251
+ } : {
252
+ confirm: t || "OK",
253
+ cancel: null,
254
+ defaultTitle: d || "Alert"
255
+ }, [e, t, d, n]), u = C(
256
+ () => [
257
+ ...c.cancel ? [
258
+ {
259
+ label: c.cancel,
260
+ variant: "secondary",
261
+ onClick: a
262
+ }
263
+ ] : [],
264
+ {
265
+ label: c.confirm,
266
+ variant: o ? "destructive" : "primary",
267
+ onClick: () => {
268
+ i == null || i(), a();
269
+ }
270
+ }
271
+ ],
272
+ [c, o, i, a]
273
+ );
274
+ return /* @__PURE__ */ r(
275
+ te,
276
+ {
277
+ ...s,
278
+ title: d || c.defaultTitle,
279
+ onClose: a,
280
+ actions: u,
281
+ disableCloseOnOverlayClick: e === "confirm",
282
+ hideCloseButton: e === "confirm",
283
+ children: typeof l == "string" ? /* @__PURE__ */ r("p", { className: "text-sm", children: l }) : l
284
+ }
285
+ );
286
+ }
287
+ const L = {
288
+ info: {
289
+ className: "bg-blue-50 border-blue-200 text-blue-900 dark:bg-blue-800 dark:border-blue-950 dark:text-blue-100",
290
+ icon: /* @__PURE__ */ r(X, { size: 20 })
291
+ },
292
+ warning: {
293
+ className: "bg-yellow-50 border-yellow-200 text-yellow-900 dark:bg-yellow-800 dark:border-yellow-950 dark:text-yellow-100",
294
+ icon: /* @__PURE__ */ r(V, { size: 20 })
295
+ },
296
+ error: {
297
+ className: "bg-red-50 border-red-200 text-red-900 dark:bg-red-800 dark:border-red-950 dark:text-red-100",
298
+ icon: /* @__PURE__ */ r(F, { size: 20 })
299
+ }
300
+ };
301
+ function se({
302
+ id: e,
303
+ title: l,
304
+ description: n,
305
+ type: t = "info",
306
+ action: i,
307
+ duration: a = 5e3,
308
+ onRemove: o,
309
+ customTypes: d,
310
+ customComponent: s
311
+ }) {
312
+ const [c, u] = p(!1), m = E(() => {
313
+ u(!0), setTimeout(() => {
314
+ o == null || o(e);
315
+ }, 150);
316
+ }, [e, o]);
317
+ if (b(() => {
318
+ if (a > 0) {
319
+ const h = setTimeout(() => {
320
+ m();
321
+ }, a);
322
+ return () => clearTimeout(h);
323
+ }
324
+ }, [a, e, o, m]), s)
325
+ return /* @__PURE__ */ r(
326
+ s,
327
+ {
328
+ id: e,
329
+ title: l,
330
+ description: n,
331
+ type: t,
332
+ action: i,
333
+ duration: a,
334
+ onRemove: o
335
+ }
336
+ );
337
+ const g = (d == null ? void 0 : d[t]) || L[t] || L.info;
338
+ return /* @__PURE__ */ f(
339
+ "div",
340
+ {
341
+ role: t === "error" ? "alert" : "status",
342
+ "aria-live": t === "error" ? void 0 : "polite",
343
+ className: Z(
344
+ "relative flex items-start p-4 rounded-lg border shadow-lg transition-all duration-150 ease-in-out",
345
+ i && "pb-3",
346
+ g.className,
347
+ c ? "opacity-0 translate-x-full" : "opacity-100 translate-x-0"
348
+ ),
349
+ children: [
350
+ /* @__PURE__ */ r("div", { className: "flex-shrink-0 mr-3", children: g.icon }),
351
+ /* @__PURE__ */ f("div", { className: "flex-grow min-w-0", children: [
352
+ /* @__PURE__ */ r("div", { className: "font-medium text-sm leading-5", children: l }),
353
+ n && /* @__PURE__ */ r("div", { className: "mt-1 text-sm opacity-90 leading-5", children: n }),
354
+ i && /* @__PURE__ */ r("div", { className: "mt-1.5", children: /* @__PURE__ */ r(
355
+ "button",
356
+ {
357
+ onClick: i.onClick,
358
+ className: "text-sm font-medium underline hover:no-underline focus:outline-none focus:ring-1 focus:ring-current rounded px-1 py-0.5 hover:cursor-pointer",
359
+ children: i.label
360
+ }
361
+ ) })
362
+ ] }),
363
+ /* @__PURE__ */ r(
364
+ "button",
365
+ {
366
+ onClick: m,
367
+ className: "flex-shrink-0 ml-3 p-1 rounded-md hover:bg-black/10 dark:hover:bg-white/10 focus:outline-none focus:ring-1 focus:ring-current leading-0",
368
+ children: /* @__PURE__ */ r(D, { size: 16 })
369
+ }
370
+ )
371
+ ]
372
+ }
373
+ );
374
+ }
375
+ export {
376
+ oe as A,
377
+ se as T,
378
+ w as n
379
+ };
380
+ //# sourceMappingURL=Toast-Bn0CCsLY.js.map