@moondreamsdev/dreamer-ui 1.7.21-test.57 → 1.7.21-test.59

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 (214) hide show
  1. package/dist/{Toast-BlYe2qYz.js → Toast-BaAoU2u_.js} +46 -36
  2. package/dist/Toast-BaAoU2u_.js.map +1 -0
  3. package/dist/{Toast-D0230JQE.cjs → Toast-BuwJdRYj.cjs} +2 -2
  4. package/dist/Toast-BuwJdRYj.cjs.map +1 -0
  5. package/dist/components.cjs.js +2 -2
  6. package/dist/components.cjs.js.map +1 -1
  7. package/dist/components.esm.js +795 -774
  8. package/dist/components.esm.js.map +1 -1
  9. package/dist/providers.cjs.js +1 -1
  10. package/dist/providers.esm.js +1 -1
  11. package/dist/src/components/form/Form.d.ts +15 -1
  12. package/dist/src/components/form/factories.d.ts +8 -7
  13. package/dist/src/components/form/index.d.ts +1 -1
  14. package/dist/src/components/form/types.d.ts +21 -2
  15. package/package.json +2 -2
  16. package/dist/Toast-BlYe2qYz.js.map +0 -1
  17. package/dist/Toast-D0230JQE.cjs.map +0 -1
  18. package/dist/src/components/accordion/Accordion.d.ts +0 -57
  19. package/dist/src/components/accordion/AccordionItem.d.ts +0 -31
  20. package/dist/src/components/accordion/index.d.ts +0 -2
  21. package/dist/src/components/actionmodal/ActionModal.d.ts +0 -55
  22. package/dist/src/components/actionmodal/index.d.ts +0 -1
  23. package/dist/src/components/auth-form/AuthForm.d.ts +0 -141
  24. package/dist/src/components/auth-form/index.d.ts +0 -1
  25. package/dist/src/components/avatar/Avatar.d.ts +0 -39
  26. package/dist/src/components/avatar/icons.d.ts +0 -30
  27. package/dist/src/components/avatar/index.d.ts +0 -1
  28. package/dist/src/components/avatar/variants.d.ts +0 -8
  29. package/dist/src/components/badge/Badge.d.ts +0 -37
  30. package/dist/src/components/badge/index.d.ts +0 -1
  31. package/dist/src/components/badge/variants.d.ts +0 -13
  32. package/dist/src/components/button/Button.d.ts +0 -37
  33. package/dist/src/components/button/LoadingDots.d.ts +0 -10
  34. package/dist/src/components/button/index.d.ts +0 -2
  35. package/dist/src/components/button/variants.d.ts +0 -37
  36. package/dist/src/components/calendar/Calendar.d.ts +0 -105
  37. package/dist/src/components/calendar/hooks.d.ts +0 -40
  38. package/dist/src/components/calendar/index.d.ts +0 -2
  39. package/dist/src/components/calendar/variants.d.ts +0 -41
  40. package/dist/src/components/callout/Callout.d.ts +0 -44
  41. package/dist/src/components/callout/index.d.ts +0 -1
  42. package/dist/src/components/callout/variants.d.ts +0 -9
  43. package/dist/src/components/card/Card.d.ts +0 -51
  44. package/dist/src/components/card/index.d.ts +0 -1
  45. package/dist/src/components/card/variants.d.ts +0 -10
  46. package/dist/src/components/carousel/Carousel.d.ts +0 -69
  47. package/dist/src/components/carousel/hooks.d.ts +0 -21
  48. package/dist/src/components/carousel/index.d.ts +0 -1
  49. package/dist/src/components/carousel/variants.d.ts +0 -36
  50. package/dist/src/components/checkbox/Checkbox.d.ts +0 -47
  51. package/dist/src/components/checkbox/hooks.d.ts +0 -1
  52. package/dist/src/components/checkbox/index.d.ts +0 -1
  53. package/dist/src/components/clickable/Clickable.d.ts +0 -37
  54. package/dist/src/components/clickable/index.d.ts +0 -1
  55. package/dist/src/components/code/Code.d.ts +0 -27
  56. package/dist/src/components/code/hooks.d.ts +0 -8
  57. package/dist/src/components/code/index.d.ts +0 -1
  58. package/dist/src/components/code/variants.d.ts +0 -7
  59. package/dist/src/components/code-block/CodeBlock.d.ts +0 -61
  60. package/dist/src/components/code-block/classes.d.ts +0 -6
  61. package/dist/src/components/code-block/constants.d.ts +0 -2
  62. package/dist/src/components/code-block/format.d.ts +0 -6
  63. package/dist/src/components/code-block/hooks.d.ts +0 -17
  64. package/dist/src/components/code-block/index.d.ts +0 -2
  65. package/dist/src/components/code-block/tokenize.d.ts +0 -24
  66. package/dist/src/components/code-block/types.d.ts +0 -77
  67. package/dist/src/components/code-block/util.d.ts +0 -2
  68. package/dist/src/components/copy-button/CopyButton.d.ts +0 -61
  69. package/dist/src/components/copy-button/index.d.ts +0 -1
  70. package/dist/src/components/disclosure/Disclosure.d.ts +0 -43
  71. package/dist/src/components/disclosure/index.d.ts +0 -1
  72. package/dist/src/components/drawer/Drawer.d.ts +0 -60
  73. package/dist/src/components/drawer/hooks.d.ts +0 -23
  74. package/dist/src/components/drawer/index.d.ts +0 -1
  75. package/dist/src/components/dropdown-menu/DropdownContext.d.ts +0 -16
  76. package/dist/src/components/dropdown-menu/DropdownMenu.d.ts +0 -45
  77. package/dist/src/components/dropdown-menu/DropdownMenuBody.d.ts +0 -6
  78. package/dist/src/components/dropdown-menu/DropdownMenuOption.d.ts +0 -7
  79. package/dist/src/components/dropdown-menu/DropdownMenuSub.d.ts +0 -6
  80. package/dist/src/components/dropdown-menu/factories.d.ts +0 -7
  81. package/dist/src/components/dropdown-menu/hooks.d.ts +0 -12
  82. package/dist/src/components/dropdown-menu/index.d.ts +0 -3
  83. package/dist/src/components/dropdown-menu/types.d.ts +0 -26
  84. package/dist/src/components/dynamic-list/DynamicList.d.ts +0 -68
  85. package/dist/src/components/dynamic-list/hooks.d.ts +0 -19
  86. package/dist/src/components/dynamic-list/index.d.ts +0 -2
  87. package/dist/src/components/dynamic-list/markers.d.ts +0 -8
  88. package/dist/src/components/dynamic-list/variants.d.ts +0 -4
  89. package/dist/src/components/error-boundary/ErrorBoundary.d.ts +0 -48
  90. package/dist/src/components/error-boundary/index.d.ts +0 -1
  91. package/dist/src/components/error-boundary/variants.d.ts +0 -11
  92. package/dist/src/components/form/hooks.d.ts +0 -9
  93. package/dist/src/components/form/variants.d.ts +0 -32
  94. package/dist/src/components/help-icon/HelpIcon.d.ts +0 -48
  95. package/dist/src/components/help-icon/index.d.ts +0 -1
  96. package/dist/src/components/index.d.ts +0 -40
  97. package/dist/src/components/input/Input.d.ts +0 -40
  98. package/dist/src/components/input/index.d.ts +0 -1
  99. package/dist/src/components/input/variants.d.ts +0 -23
  100. package/dist/src/components/label/Label.d.ts +0 -43
  101. package/dist/src/components/label/index.d.ts +0 -1
  102. package/dist/src/components/modal/Modal.d.ts +0 -68
  103. package/dist/src/components/modal/hooks.d.ts +0 -6
  104. package/dist/src/components/modal/index.d.ts +0 -1
  105. package/dist/src/components/pagination/Pagination.d.ts +0 -55
  106. package/dist/src/components/pagination/index.d.ts +0 -1
  107. package/dist/src/components/pagination/variants.d.ts +0 -15
  108. package/dist/src/components/panel/Panel.d.ts +0 -33
  109. package/dist/src/components/panel/hooks.d.ts +0 -6
  110. package/dist/src/components/panel/index.d.ts +0 -1
  111. package/dist/src/components/popover/Popover.d.ts +0 -70
  112. package/dist/src/components/popover/hooks.d.ts +0 -12
  113. package/dist/src/components/popover/index.d.ts +0 -2
  114. package/dist/src/components/popover/variants.d.ts +0 -3
  115. package/dist/src/components/radiogroup/RadioGroup.d.ts +0 -52
  116. package/dist/src/components/radiogroup/RadioGroupItem.d.ts +0 -22
  117. package/dist/src/components/radiogroup/RadioInput.d.ts +0 -9
  118. package/dist/src/components/radiogroup/hooks.d.ts +0 -1
  119. package/dist/src/components/radiogroup/index.d.ts +0 -3
  120. package/dist/src/components/scroll-area/ScrollArea.d.ts +0 -46
  121. package/dist/src/components/scroll-area/hooks.d.ts +0 -13
  122. package/dist/src/components/scroll-area/index.d.ts +0 -1
  123. package/dist/src/components/select/Select.d.ts +0 -71
  124. package/dist/src/components/select/hooks.d.ts +0 -35
  125. package/dist/src/components/select/index.d.ts +0 -1
  126. package/dist/src/components/select/variants.d.ts +0 -15
  127. package/dist/src/components/separator/Separator.d.ts +0 -33
  128. package/dist/src/components/separator/index.d.ts +0 -1
  129. package/dist/src/components/separator/variants.d.ts +0 -7
  130. package/dist/src/components/skeleton/Skeleton.d.ts +0 -33
  131. package/dist/src/components/skeleton/index.d.ts +0 -1
  132. package/dist/src/components/skeleton/variants.d.ts +0 -20
  133. package/dist/src/components/slider/Slider.d.ts +0 -69
  134. package/dist/src/components/slider/hooks.d.ts +0 -30
  135. package/dist/src/components/slider/index.d.ts +0 -1
  136. package/dist/src/components/slider/variants.d.ts +0 -49
  137. package/dist/src/components/table/Table.d.ts +0 -96
  138. package/dist/src/components/table/hooks.d.ts +0 -28
  139. package/dist/src/components/table/index.d.ts +0 -2
  140. package/dist/src/components/table/variants.d.ts +0 -14
  141. package/dist/src/components/tabs/Tabs.d.ts +0 -71
  142. package/dist/src/components/tabs/TabsContent.d.ts +0 -11
  143. package/dist/src/components/tabs/TabsContext.d.ts +0 -12
  144. package/dist/src/components/tabs/TabsList.d.ts +0 -8
  145. package/dist/src/components/tabs/TabsTrigger.d.ts +0 -16
  146. package/dist/src/components/tabs/hooks.d.ts +0 -9
  147. package/dist/src/components/tabs/index.d.ts +0 -4
  148. package/dist/src/components/tabs/variants.d.ts +0 -18
  149. package/dist/src/components/textarea/CharacterCount.d.ts +0 -6
  150. package/dist/src/components/textarea/Textarea.d.ts +0 -50
  151. package/dist/src/components/textarea/hooks.d.ts +0 -1
  152. package/dist/src/components/textarea/index.d.ts +0 -1
  153. package/dist/src/components/textarea/variants.d.ts +0 -22
  154. package/dist/src/components/toast/Toast.d.ts +0 -64
  155. package/dist/src/components/toast/index.d.ts +0 -1
  156. package/dist/src/components/toggle/Toggle.d.ts +0 -42
  157. package/dist/src/components/toggle/index.d.ts +0 -1
  158. package/dist/src/components/toggle/variants.d.ts +0 -29
  159. package/dist/src/components/tooltip/Tooltip.d.ts +0 -64
  160. package/dist/src/components/tooltip/index.d.ts +0 -1
  161. package/dist/src/hooks/index.d.ts +0 -4
  162. package/dist/src/hooks/useActionModal.d.ts +0 -4
  163. package/dist/src/hooks/useScreenSize.d.ts +0 -15
  164. package/dist/src/hooks/useTheme.d.ts +0 -14
  165. package/dist/src/hooks/useToast.d.ts +0 -17
  166. package/dist/src/index.d.ts +0 -1
  167. package/dist/src/providers/ActionModalProvider.d.ts +0 -32
  168. package/dist/src/providers/DreamerUIProvider.d.ts +0 -12
  169. package/dist/src/providers/ThemeProvider.d.ts +0 -15
  170. package/dist/src/providers/ToastProvider.d.ts +0 -18
  171. package/dist/src/providers/index.d.ts +0 -4
  172. package/dist/src/shared/forms/StatusHelpMessage.d.ts +0 -7
  173. package/dist/src/shared/forms/index.d.ts +0 -1
  174. package/dist/src/symbols/Apple.d.ts +0 -2
  175. package/dist/src/symbols/CaretCollapse.d.ts +0 -2
  176. package/dist/src/symbols/CaretExpand.d.ts +0 -2
  177. package/dist/src/symbols/Check.d.ts +0 -2
  178. package/dist/src/symbols/CheckCircled.d.ts +0 -2
  179. package/dist/src/symbols/ChevronDoubleLeft.d.ts +0 -2
  180. package/dist/src/symbols/ChevronDoubleRight.d.ts +0 -2
  181. package/dist/src/symbols/ChevronDown.d.ts +0 -2
  182. package/dist/src/symbols/ChevronLeft.d.ts +0 -2
  183. package/dist/src/symbols/ChevronRight.d.ts +0 -2
  184. package/dist/src/symbols/ChevronUp.d.ts +0 -2
  185. package/dist/src/symbols/Copy.d.ts +0 -2
  186. package/dist/src/symbols/CrossCircled.d.ts +0 -2
  187. package/dist/src/symbols/Dash.d.ts +0 -2
  188. package/dist/src/symbols/DeepRing.d.ts +0 -2
  189. package/dist/src/symbols/DotsVertical.d.ts +0 -2
  190. package/dist/src/symbols/Download.d.ts +0 -2
  191. package/dist/src/symbols/ExclamationTriangle.d.ts +0 -2
  192. package/dist/src/symbols/ExternalLink.d.ts +0 -2
  193. package/dist/src/symbols/EyeClosed.d.ts +0 -2
  194. package/dist/src/symbols/EyeOpened.d.ts +0 -2
  195. package/dist/src/symbols/Facebook.d.ts +0 -2
  196. package/dist/src/symbols/GitHub.d.ts +0 -2
  197. package/dist/src/symbols/Google.d.ts +0 -2
  198. package/dist/src/symbols/GripVertical.d.ts +0 -2
  199. package/dist/src/symbols/InfoCircled.d.ts +0 -2
  200. package/dist/src/symbols/InfoCircledFilled.d.ts +0 -2
  201. package/dist/src/symbols/Moon.d.ts +0 -2
  202. package/dist/src/symbols/OpenInNewWindow.d.ts +0 -2
  203. package/dist/src/symbols/Plus.d.ts +0 -2
  204. package/dist/src/symbols/QuestionMarkCircled.d.ts +0 -2
  205. package/dist/src/symbols/Sun.d.ts +0 -2
  206. package/dist/src/symbols/Trash.d.ts +0 -2
  207. package/dist/src/symbols/Window.d.ts +0 -2
  208. package/dist/src/symbols/X.d.ts +0 -2
  209. package/dist/src/symbols/index.d.ts +0 -36
  210. package/dist/src/symbols/props.d.ts +0 -5
  211. package/dist/src/utils/downloadFile.d.ts +0 -8
  212. package/dist/src/utils/index.d.ts +0 -3
  213. package/dist/src/utils/join.d.ts +0 -8
  214. package/dist/src/utils/mergeRefs.d.ts +0 -2
@@ -631,6 +631,16 @@ l(null);
631
631
  l(void 0);
632
632
  l(void 0);
633
633
  l(void 0);
634
+ l(null);
635
+ l(null);
636
+ l(void 0);
637
+ l(void 0);
638
+ l(void 0);
639
+ l(null);
640
+ l(null);
641
+ l(void 0);
642
+ l(void 0);
643
+ l(void 0);
634
644
  function J() {
635
645
  const [n, e] = x(0);
636
646
  return p(() => {
@@ -684,12 +694,12 @@ function Y({
684
694
  className: t,
685
695
  ...d
686
696
  }) {
687
- let a;
688
- n === "link" && !e ? a = "fitted" : a = e || k.size;
689
- const v = y(
690
- "appearance-none not-disabled:hover:cursor-pointer outline outline-transparent disabled:opacity-50 disabled:cursor-not-allowed transition-all inline-flex items-center",
697
+ let v;
698
+ n === "link" && !e ? v = "fitted" : v = e || k.size;
699
+ const a = y(
700
+ "appearance-none not-disabled:hover:cursor-pointer outline outline-transparent disabled:opacity-50 disabled:cursor-not-allowed transition-all inline-flex items-center justify-center",
691
701
  Q[n],
692
- U[a],
702
+ U[v],
693
703
  W[u],
694
704
  i && "relative pointer-events-none",
695
705
  t
@@ -703,7 +713,7 @@ function Y({
703
713
  "aria-label": d["aria-label"],
704
714
  "aria-description": d["aria-description"],
705
715
  href: d.href,
706
- className: v,
716
+ className: a,
707
717
  children: d.children
708
718
  }
709
719
  );
@@ -726,7 +736,7 @@ function Y({
726
736
  "aria-disabled": r.disabled || i,
727
737
  "aria-busy": i,
728
738
  type: r.type ?? "button",
729
- className: v,
739
+ className: a,
730
740
  children: [
731
741
  i && /* @__PURE__ */ o(J, {}),
732
742
  s()
@@ -759,16 +769,16 @@ function nl(n, e) {
759
769
  d[0].focus();
760
770
  return;
761
771
  }
762
- const a = t.querySelectorAll(
772
+ const v = t.querySelectorAll(
763
773
  'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
764
774
  );
765
- if (a.length > 0) {
766
- const v = Array.from(a).filter((r) => !(r instanceof HTMLButtonElement && r.getAttribute("data-modal-close-button") === "true"));
767
- if (v.length > 0) {
768
- v[0].focus();
775
+ if (v.length > 0) {
776
+ const a = Array.from(v).filter((r) => !(r instanceof HTMLButtonElement && r.getAttribute("data-modal-close-button") === "true"));
777
+ if (a.length > 0) {
778
+ a[0].focus();
769
779
  return;
770
780
  }
771
- a[0].focus();
781
+ v[0].focus();
772
782
  return;
773
783
  }
774
784
  t.focus();
@@ -784,8 +794,8 @@ function il({
784
794
  title: i,
785
795
  children: t,
786
796
  contentOnly: d = !1,
787
- className: a,
788
- overlayClassName: v,
797
+ className: v,
798
+ overlayClassName: a,
789
799
  containerClassName: r,
790
800
  hideCloseButton: s = !1,
791
801
  actions: c = [],
@@ -812,13 +822,13 @@ function il({
812
822
  /* @__PURE__ */ o(
813
823
  "div",
814
824
  {
815
- className: h("fixed inset-0 bg-black/20 transition-all", v),
825
+ className: h("fixed inset-0 bg-black/20 transition-all", a),
816
826
  onClick: () => {
817
827
  f || u();
818
828
  }
819
829
  }
820
830
  ),
821
- d && /* @__PURE__ */ o("div", { className: h("relative w-fit", a), children: t }),
831
+ d && /* @__PURE__ */ o("div", { className: h("relative w-fit", v), children: t }),
822
832
  !d && /* @__PURE__ */ b(
823
833
  "div",
824
834
  {
@@ -827,7 +837,7 @@ function il({
827
837
  className: h(
828
838
  "relative w-full max-w-xl transform rounded-lg shadow-xl bg-popover text-popover-foreground transition-all p-6 focus:ring ease-in",
829
839
  A ? "opacity-100 scale-100" : "opacity-0 scale-90",
830
- a
840
+ v
831
841
  ),
832
842
  children: [
833
843
  !s && /* @__PURE__ */ o(
@@ -852,26 +862,26 @@ function il({
852
862
  document.body
853
863
  ) });
854
864
  }
855
- function vl({
865
+ function al({
856
866
  type: n,
857
867
  message: e,
858
868
  cancelText: u,
859
869
  confirmText: i,
860
870
  onConfirm: t,
861
871
  onClose: d,
862
- destructive: a = !1,
863
- title: v,
872
+ destructive: v = !1,
873
+ title: a,
864
874
  ...r
865
875
  }) {
866
876
  const s = z(() => n === "confirm" ? {
867
877
  confirm: i || "Confirm",
868
878
  cancel: u || "Cancel",
869
- defaultTitle: v || "Confirm Action"
879
+ defaultTitle: a || "Confirm Action"
870
880
  } : {
871
881
  confirm: i || "OK",
872
882
  cancel: null,
873
- defaultTitle: v || "Alert"
874
- }, [n, i, v, u]), c = z(
883
+ defaultTitle: a || "Alert"
884
+ }, [n, i, a, u]), c = z(
875
885
  () => [
876
886
  ...s.cancel ? [
877
887
  {
@@ -882,19 +892,19 @@ function vl({
882
892
  ] : [],
883
893
  {
884
894
  label: s.confirm,
885
- variant: a ? "destructive" : "primary",
895
+ variant: v ? "destructive" : "primary",
886
896
  onClick: () => {
887
897
  t == null || t(), d();
888
898
  }
889
899
  }
890
900
  ],
891
- [s, a, t, d]
901
+ [s, v, t, d]
892
902
  );
893
903
  return /* @__PURE__ */ o(
894
904
  il,
895
905
  {
896
906
  ...r,
897
- title: v || s.defaultTitle,
907
+ title: a || s.defaultTitle,
898
908
  onClose: d,
899
909
  actions: c,
900
910
  disableCloseOnOverlayClick: n === "confirm",
@@ -934,15 +944,15 @@ function fl({
934
944
  type: i = "info",
935
945
  action: t,
936
946
  duration: d = 5e3,
937
- onRemove: a,
938
- customTypes: v,
947
+ onRemove: v,
948
+ customTypes: a,
939
949
  customComponent: r
940
950
  }) {
941
951
  const [s, c] = x(!1), f = j(() => {
942
952
  c(!0), setTimeout(() => {
943
- a == null || a(n);
953
+ v == null || v(n);
944
954
  }, 150);
945
- }, [n, a]);
955
+ }, [n, v]);
946
956
  if (p(() => {
947
957
  if (d > 0) {
948
958
  const w = setTimeout(() => {
@@ -950,7 +960,7 @@ function fl({
950
960
  }, d);
951
961
  return () => clearTimeout(w);
952
962
  }
953
- }, [d, n, a, f]), r)
963
+ }, [d, n, v, f]), r)
954
964
  return /* @__PURE__ */ o(
955
965
  r,
956
966
  {
@@ -960,10 +970,10 @@ function fl({
960
970
  type: i,
961
971
  action: t,
962
972
  duration: d,
963
- onRemove: a
973
+ onRemove: v
964
974
  }
965
975
  );
966
- const m = (v == null ? void 0 : v[i]) || T[i] || T.info;
976
+ const m = (a == null ? void 0 : a[i]) || T[i] || T.info;
967
977
  return /* @__PURE__ */ b(
968
978
  "div",
969
979
  {
@@ -1002,7 +1012,7 @@ function fl({
1002
1012
  );
1003
1013
  }
1004
1014
  export {
1005
- vl as A,
1015
+ al as A,
1006
1016
  ol as D,
1007
1017
  fl as T,
1008
1018
  cl as a,
@@ -1010,4 +1020,4 @@ export {
1010
1020
  y as n,
1011
1021
  sl as u
1012
1022
  };
1013
- //# sourceMappingURL=Toast-BlYe2qYz.js.map
1023
+ //# sourceMappingURL=Toast-BaAoU2u_.js.map