@moondreamsdev/dreamer-ui 1.7.21-test.58 → 1.7.21-test.60

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-DKxlqEos.js → Toast-BgUAcBAx.js} +23 -13
  2. package/dist/Toast-BgUAcBAx.js.map +1 -0
  3. package/dist/{Toast-Dp_7Mq7I.cjs → Toast-BpN7vQTZ.cjs} +2 -2
  4. package/dist/Toast-BpN7vQTZ.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 +792 -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 +21 -2
  12. package/dist/src/components/form/index.d.ts +1 -1
  13. package/dist/src/components/form/types.d.ts +21 -2
  14. package/package.json +1 -1
  15. package/dist/Toast-DKxlqEos.js.map +0 -1
  16. package/dist/Toast-Dp_7Mq7I.cjs.map +0 -1
  17. package/dist/src/components/accordion/Accordion.d.ts +0 -57
  18. package/dist/src/components/accordion/AccordionItem.d.ts +0 -30
  19. package/dist/src/components/accordion/index.d.ts +0 -2
  20. package/dist/src/components/actionmodal/ActionModal.d.ts +0 -55
  21. package/dist/src/components/actionmodal/index.d.ts +0 -1
  22. package/dist/src/components/auth-form/AuthForm.d.ts +0 -141
  23. package/dist/src/components/auth-form/index.d.ts +0 -1
  24. package/dist/src/components/avatar/Avatar.d.ts +0 -39
  25. package/dist/src/components/avatar/icons.d.ts +0 -30
  26. package/dist/src/components/avatar/index.d.ts +0 -1
  27. package/dist/src/components/avatar/variants.d.ts +0 -8
  28. package/dist/src/components/badge/Badge.d.ts +0 -37
  29. package/dist/src/components/badge/index.d.ts +0 -1
  30. package/dist/src/components/badge/variants.d.ts +0 -13
  31. package/dist/src/components/button/Button.d.ts +0 -37
  32. package/dist/src/components/button/LoadingDots.d.ts +0 -10
  33. package/dist/src/components/button/index.d.ts +0 -2
  34. package/dist/src/components/button/variants.d.ts +0 -37
  35. package/dist/src/components/calendar/Calendar.d.ts +0 -105
  36. package/dist/src/components/calendar/hooks.d.ts +0 -40
  37. package/dist/src/components/calendar/index.d.ts +0 -2
  38. package/dist/src/components/calendar/variants.d.ts +0 -41
  39. package/dist/src/components/callout/Callout.d.ts +0 -44
  40. package/dist/src/components/callout/index.d.ts +0 -1
  41. package/dist/src/components/callout/variants.d.ts +0 -9
  42. package/dist/src/components/card/Card.d.ts +0 -50
  43. package/dist/src/components/card/index.d.ts +0 -1
  44. package/dist/src/components/card/variants.d.ts +0 -10
  45. package/dist/src/components/carousel/Carousel.d.ts +0 -69
  46. package/dist/src/components/carousel/hooks.d.ts +0 -20
  47. package/dist/src/components/carousel/index.d.ts +0 -1
  48. package/dist/src/components/carousel/variants.d.ts +0 -36
  49. package/dist/src/components/checkbox/Checkbox.d.ts +0 -47
  50. package/dist/src/components/checkbox/hooks.d.ts +0 -1
  51. package/dist/src/components/checkbox/index.d.ts +0 -1
  52. package/dist/src/components/clickable/Clickable.d.ts +0 -36
  53. package/dist/src/components/clickable/index.d.ts +0 -1
  54. package/dist/src/components/code/Code.d.ts +0 -27
  55. package/dist/src/components/code/hooks.d.ts +0 -8
  56. package/dist/src/components/code/index.d.ts +0 -1
  57. package/dist/src/components/code/variants.d.ts +0 -7
  58. package/dist/src/components/code-block/CodeBlock.d.ts +0 -60
  59. package/dist/src/components/code-block/classes.d.ts +0 -6
  60. package/dist/src/components/code-block/constants.d.ts +0 -2
  61. package/dist/src/components/code-block/format.d.ts +0 -6
  62. package/dist/src/components/code-block/hooks.d.ts +0 -16
  63. package/dist/src/components/code-block/index.d.ts +0 -2
  64. package/dist/src/components/code-block/tokenize.d.ts +0 -24
  65. package/dist/src/components/code-block/types.d.ts +0 -77
  66. package/dist/src/components/code-block/util.d.ts +0 -2
  67. package/dist/src/components/copy-button/CopyButton.d.ts +0 -61
  68. package/dist/src/components/copy-button/index.d.ts +0 -1
  69. package/dist/src/components/disclosure/Disclosure.d.ts +0 -43
  70. package/dist/src/components/disclosure/index.d.ts +0 -1
  71. package/dist/src/components/drawer/Drawer.d.ts +0 -60
  72. package/dist/src/components/drawer/hooks.d.ts +0 -23
  73. package/dist/src/components/drawer/index.d.ts +0 -1
  74. package/dist/src/components/dropdown-menu/DropdownContext.d.ts +0 -15
  75. package/dist/src/components/dropdown-menu/DropdownMenu.d.ts +0 -45
  76. package/dist/src/components/dropdown-menu/DropdownMenuBody.d.ts +0 -6
  77. package/dist/src/components/dropdown-menu/DropdownMenuOption.d.ts +0 -6
  78. package/dist/src/components/dropdown-menu/DropdownMenuSub.d.ts +0 -6
  79. package/dist/src/components/dropdown-menu/factories.d.ts +0 -7
  80. package/dist/src/components/dropdown-menu/hooks.d.ts +0 -12
  81. package/dist/src/components/dropdown-menu/index.d.ts +0 -3
  82. package/dist/src/components/dropdown-menu/types.d.ts +0 -25
  83. package/dist/src/components/dynamic-list/DynamicList.d.ts +0 -68
  84. package/dist/src/components/dynamic-list/hooks.d.ts +0 -19
  85. package/dist/src/components/dynamic-list/index.d.ts +0 -2
  86. package/dist/src/components/dynamic-list/markers.d.ts +0 -8
  87. package/dist/src/components/dynamic-list/variants.d.ts +0 -4
  88. package/dist/src/components/error-boundary/ErrorBoundary.d.ts +0 -48
  89. package/dist/src/components/error-boundary/index.d.ts +0 -1
  90. package/dist/src/components/error-boundary/variants.d.ts +0 -11
  91. package/dist/src/components/form/factories.d.ts +0 -9
  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 -11
  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 -21
  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 -12
  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 -10
  143. package/dist/src/components/tabs/TabsContext.d.ts +0 -11
  144. package/dist/src/components/tabs/TabsList.d.ts +0 -7
  145. package/dist/src/components/tabs/TabsTrigger.d.ts +0 -15
  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 -3
  163. package/dist/src/hooks/useScreenSize.d.ts +0 -15
  164. package/dist/src/hooks/useTheme.d.ts +0 -13
  165. package/dist/src/hooks/useToast.d.ts +0 -16
  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
@@ -1,5 +1,5 @@
1
1
  import { jsx as o, Fragment as q, jsxs as b } from "react/jsx-runtime";
2
- import g, { createContext as l, useId as H, useState as x, useEffect as p, useRef as V, useCallback as j, useMemo as z, useContext as M } from "react";
2
+ import g, { createContext as l, useId as H, useState as x, useEffect as p, useRef as V, useCallback as j, useMemo as z, useContext as A } from "react";
3
3
  import { createPortal as F } from "react-dom";
4
4
  import { X as J, C as K, E as P, I as X } from "./X-CIoyLewf.js";
5
5
  import { j as Z } from "./join-BmgR_f4v.js";
@@ -636,6 +636,16 @@ l(null);
636
636
  l(void 0);
637
637
  l(void 0);
638
638
  l(void 0);
639
+ l(null);
640
+ l(null);
641
+ l(void 0);
642
+ l(void 0);
643
+ l(void 0);
644
+ l(null);
645
+ l(null);
646
+ l(void 0);
647
+ l(void 0);
648
+ l(void 0);
639
649
  function G() {
640
650
  const [n, e] = x(0);
641
651
  return p(() => {
@@ -662,7 +672,7 @@ const Q = {
662
672
  outline: "border border-primary text-primary hover:border-primary/80 hover:text-primary/80 focus:outline-primary outline-offset-2 disabled:border-muted-foreground disabled:text-muted-foreground",
663
673
  link: "underline-offset-4 hover:underline disabled:underline disabled:text-muted-foreground focus:outline-current",
664
674
  destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/80 focus:outline-destructive outline-offset-2 disabled:bg-muted disabled:text-muted-foreground"
665
- }, U = {
675
+ }, R = {
666
676
  stripped: "",
667
677
  fitted: "size-fit leading-0",
668
678
  sm: "px-2 py-1 text-sm",
@@ -670,7 +680,7 @@ const Q = {
670
680
  lg: "px-6 py-3 text-lg",
671
681
  icon: "p-1 w-fit aspect-square",
672
682
  full: "p-2 w-full"
673
- }, W = {
683
+ }, U = {
674
684
  none: "rounded-none",
675
685
  sm: "rounded-sm",
676
686
  md: "rounded-md",
@@ -681,7 +691,7 @@ const Q = {
681
691
  size: "md",
682
692
  rounded: "md"
683
693
  };
684
- function Y({
694
+ function W({
685
695
  variant: n = k.variant,
686
696
  size: e,
687
697
  rounded: u = k.rounded,
@@ -694,8 +704,8 @@ function Y({
694
704
  const a = y(
695
705
  "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",
696
706
  Q[n],
697
- U[v],
698
- W[u],
707
+ R[v],
708
+ U[u],
699
709
  i && "relative pointer-events-none",
700
710
  t
701
711
  );
@@ -739,7 +749,7 @@ function Y({
739
749
  }
740
750
  );
741
751
  }
742
- function R(n) {
752
+ function Y(n) {
743
753
  const [e, u] = x(!1), [i, t] = x(!1);
744
754
  return p(() => {
745
755
  n ? (t(!0), setTimeout(() => u(!0), 10)) : (u(!1), setTimeout(() => t(!1), 150));
@@ -798,11 +808,11 @@ function il({
798
808
  ariaLabelledBy: m,
799
809
  ariaDescribedBy: w
800
810
  }) {
801
- const C = H(), E = n || `modal-${C}`, L = n ? `${n}-title` : `modal-title-${C}`, { show: A, shouldRender: N } = R(e);
811
+ const C = H(), E = n || `modal-${C}`, L = n ? `${n}-title` : `modal-title-${C}`, { show: M, shouldRender: N } = Y(e);
802
812
  if (nl(E, N), ll(N, u), !N) return null;
803
813
  const B = () => i ? g.isValidElement(i) ? /* @__PURE__ */ o("div", { className: "mb-4", children: i }) : /* @__PURE__ */ o("h2", { className: "mb-4 text-xl font-semibold", id: L, children: i }) : null, I = () => c.length === 0 ? null : /* @__PURE__ */ o("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((D, O) => {
804
814
  const { label: S, ...$ } = D;
805
- return /* @__PURE__ */ o(Y, { ...$, "data-modal-action": "true", children: S }, O);
815
+ return /* @__PURE__ */ o(W, { ...$, "data-modal-action": "true", children: S }, O);
806
816
  }) });
807
817
  return /* @__PURE__ */ o(q, { children: F(
808
818
  /* @__PURE__ */ o(
@@ -831,7 +841,7 @@ function il({
831
841
  tabIndex: -1,
832
842
  className: h(
833
843
  "relative w-full max-w-xl transform rounded-lg shadow-xl bg-popover text-popover-foreground transition-all p-6 focus:ring ease-in",
834
- A ? "opacity-100 scale-100" : "opacity-0 scale-90",
844
+ M ? "opacity-100 scale-100" : "opacity-0 scale-90",
835
845
  v
836
846
  ),
837
847
  children: [
@@ -909,12 +919,12 @@ function al({
909
919
  );
910
920
  }
911
921
  const ol = l(null), sl = () => {
912
- const n = M(ol);
922
+ const n = A(ol);
913
923
  if (!n)
914
924
  throw new Error("DropdownMenu components must be used within a DropdownMenu component");
915
925
  return n;
916
926
  }, el = l(null), cl = () => {
917
- const n = M(el);
927
+ const n = A(el);
918
928
  if (!n)
919
929
  throw new Error("Tabs components must be used within a Tabs component");
920
930
  return n;
@@ -1015,4 +1025,4 @@ export {
1015
1025
  y as n,
1016
1026
  sl as u
1017
1027
  };
1018
- //# sourceMappingURL=Toast-DKxlqEos.js.map
1028
+ //# sourceMappingURL=Toast-BgUAcBAx.js.map