@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.
- package/dist/{Toast-DKxlqEos.js → Toast-BgUAcBAx.js} +23 -13
- package/dist/Toast-BgUAcBAx.js.map +1 -0
- package/dist/{Toast-Dp_7Mq7I.cjs → Toast-BpN7vQTZ.cjs} +2 -2
- package/dist/Toast-BpN7vQTZ.cjs.map +1 -0
- package/dist/components.cjs.js +2 -2
- package/dist/components.cjs.js.map +1 -1
- package/dist/components.esm.js +792 -774
- package/dist/components.esm.js.map +1 -1
- package/dist/providers.cjs.js +1 -1
- package/dist/providers.esm.js +1 -1
- package/dist/src/components/form/Form.d.ts +21 -2
- package/dist/src/components/form/index.d.ts +1 -1
- package/dist/src/components/form/types.d.ts +21 -2
- package/package.json +1 -1
- package/dist/Toast-DKxlqEos.js.map +0 -1
- package/dist/Toast-Dp_7Mq7I.cjs.map +0 -1
- package/dist/src/components/accordion/Accordion.d.ts +0 -57
- package/dist/src/components/accordion/AccordionItem.d.ts +0 -30
- package/dist/src/components/accordion/index.d.ts +0 -2
- package/dist/src/components/actionmodal/ActionModal.d.ts +0 -55
- package/dist/src/components/actionmodal/index.d.ts +0 -1
- package/dist/src/components/auth-form/AuthForm.d.ts +0 -141
- package/dist/src/components/auth-form/index.d.ts +0 -1
- package/dist/src/components/avatar/Avatar.d.ts +0 -39
- package/dist/src/components/avatar/icons.d.ts +0 -30
- package/dist/src/components/avatar/index.d.ts +0 -1
- package/dist/src/components/avatar/variants.d.ts +0 -8
- package/dist/src/components/badge/Badge.d.ts +0 -37
- package/dist/src/components/badge/index.d.ts +0 -1
- package/dist/src/components/badge/variants.d.ts +0 -13
- package/dist/src/components/button/Button.d.ts +0 -37
- package/dist/src/components/button/LoadingDots.d.ts +0 -10
- package/dist/src/components/button/index.d.ts +0 -2
- package/dist/src/components/button/variants.d.ts +0 -37
- package/dist/src/components/calendar/Calendar.d.ts +0 -105
- package/dist/src/components/calendar/hooks.d.ts +0 -40
- package/dist/src/components/calendar/index.d.ts +0 -2
- package/dist/src/components/calendar/variants.d.ts +0 -41
- package/dist/src/components/callout/Callout.d.ts +0 -44
- package/dist/src/components/callout/index.d.ts +0 -1
- package/dist/src/components/callout/variants.d.ts +0 -9
- package/dist/src/components/card/Card.d.ts +0 -50
- package/dist/src/components/card/index.d.ts +0 -1
- package/dist/src/components/card/variants.d.ts +0 -10
- package/dist/src/components/carousel/Carousel.d.ts +0 -69
- package/dist/src/components/carousel/hooks.d.ts +0 -20
- package/dist/src/components/carousel/index.d.ts +0 -1
- package/dist/src/components/carousel/variants.d.ts +0 -36
- package/dist/src/components/checkbox/Checkbox.d.ts +0 -47
- package/dist/src/components/checkbox/hooks.d.ts +0 -1
- package/dist/src/components/checkbox/index.d.ts +0 -1
- package/dist/src/components/clickable/Clickable.d.ts +0 -36
- package/dist/src/components/clickable/index.d.ts +0 -1
- package/dist/src/components/code/Code.d.ts +0 -27
- package/dist/src/components/code/hooks.d.ts +0 -8
- package/dist/src/components/code/index.d.ts +0 -1
- package/dist/src/components/code/variants.d.ts +0 -7
- package/dist/src/components/code-block/CodeBlock.d.ts +0 -60
- package/dist/src/components/code-block/classes.d.ts +0 -6
- package/dist/src/components/code-block/constants.d.ts +0 -2
- package/dist/src/components/code-block/format.d.ts +0 -6
- package/dist/src/components/code-block/hooks.d.ts +0 -16
- package/dist/src/components/code-block/index.d.ts +0 -2
- package/dist/src/components/code-block/tokenize.d.ts +0 -24
- package/dist/src/components/code-block/types.d.ts +0 -77
- package/dist/src/components/code-block/util.d.ts +0 -2
- package/dist/src/components/copy-button/CopyButton.d.ts +0 -61
- package/dist/src/components/copy-button/index.d.ts +0 -1
- package/dist/src/components/disclosure/Disclosure.d.ts +0 -43
- package/dist/src/components/disclosure/index.d.ts +0 -1
- package/dist/src/components/drawer/Drawer.d.ts +0 -60
- package/dist/src/components/drawer/hooks.d.ts +0 -23
- package/dist/src/components/drawer/index.d.ts +0 -1
- package/dist/src/components/dropdown-menu/DropdownContext.d.ts +0 -15
- package/dist/src/components/dropdown-menu/DropdownMenu.d.ts +0 -45
- package/dist/src/components/dropdown-menu/DropdownMenuBody.d.ts +0 -6
- package/dist/src/components/dropdown-menu/DropdownMenuOption.d.ts +0 -6
- package/dist/src/components/dropdown-menu/DropdownMenuSub.d.ts +0 -6
- package/dist/src/components/dropdown-menu/factories.d.ts +0 -7
- package/dist/src/components/dropdown-menu/hooks.d.ts +0 -12
- package/dist/src/components/dropdown-menu/index.d.ts +0 -3
- package/dist/src/components/dropdown-menu/types.d.ts +0 -25
- package/dist/src/components/dynamic-list/DynamicList.d.ts +0 -68
- package/dist/src/components/dynamic-list/hooks.d.ts +0 -19
- package/dist/src/components/dynamic-list/index.d.ts +0 -2
- package/dist/src/components/dynamic-list/markers.d.ts +0 -8
- package/dist/src/components/dynamic-list/variants.d.ts +0 -4
- package/dist/src/components/error-boundary/ErrorBoundary.d.ts +0 -48
- package/dist/src/components/error-boundary/index.d.ts +0 -1
- package/dist/src/components/error-boundary/variants.d.ts +0 -11
- package/dist/src/components/form/factories.d.ts +0 -9
- package/dist/src/components/form/hooks.d.ts +0 -9
- package/dist/src/components/form/variants.d.ts +0 -32
- package/dist/src/components/help-icon/HelpIcon.d.ts +0 -48
- package/dist/src/components/help-icon/index.d.ts +0 -1
- package/dist/src/components/index.d.ts +0 -40
- package/dist/src/components/input/Input.d.ts +0 -40
- package/dist/src/components/input/index.d.ts +0 -1
- package/dist/src/components/input/variants.d.ts +0 -23
- package/dist/src/components/label/Label.d.ts +0 -43
- package/dist/src/components/label/index.d.ts +0 -1
- package/dist/src/components/modal/Modal.d.ts +0 -68
- package/dist/src/components/modal/hooks.d.ts +0 -6
- package/dist/src/components/modal/index.d.ts +0 -1
- package/dist/src/components/pagination/Pagination.d.ts +0 -55
- package/dist/src/components/pagination/index.d.ts +0 -1
- package/dist/src/components/pagination/variants.d.ts +0 -15
- package/dist/src/components/panel/Panel.d.ts +0 -33
- package/dist/src/components/panel/hooks.d.ts +0 -6
- package/dist/src/components/panel/index.d.ts +0 -1
- package/dist/src/components/popover/Popover.d.ts +0 -70
- package/dist/src/components/popover/hooks.d.ts +0 -11
- package/dist/src/components/popover/index.d.ts +0 -2
- package/dist/src/components/popover/variants.d.ts +0 -3
- package/dist/src/components/radiogroup/RadioGroup.d.ts +0 -52
- package/dist/src/components/radiogroup/RadioGroupItem.d.ts +0 -21
- package/dist/src/components/radiogroup/RadioInput.d.ts +0 -9
- package/dist/src/components/radiogroup/hooks.d.ts +0 -1
- package/dist/src/components/radiogroup/index.d.ts +0 -3
- package/dist/src/components/scroll-area/ScrollArea.d.ts +0 -46
- package/dist/src/components/scroll-area/hooks.d.ts +0 -12
- package/dist/src/components/scroll-area/index.d.ts +0 -1
- package/dist/src/components/select/Select.d.ts +0 -71
- package/dist/src/components/select/hooks.d.ts +0 -35
- package/dist/src/components/select/index.d.ts +0 -1
- package/dist/src/components/select/variants.d.ts +0 -15
- package/dist/src/components/separator/Separator.d.ts +0 -33
- package/dist/src/components/separator/index.d.ts +0 -1
- package/dist/src/components/separator/variants.d.ts +0 -7
- package/dist/src/components/skeleton/Skeleton.d.ts +0 -33
- package/dist/src/components/skeleton/index.d.ts +0 -1
- package/dist/src/components/skeleton/variants.d.ts +0 -20
- package/dist/src/components/slider/Slider.d.ts +0 -69
- package/dist/src/components/slider/hooks.d.ts +0 -30
- package/dist/src/components/slider/index.d.ts +0 -1
- package/dist/src/components/slider/variants.d.ts +0 -49
- package/dist/src/components/table/Table.d.ts +0 -96
- package/dist/src/components/table/hooks.d.ts +0 -28
- package/dist/src/components/table/index.d.ts +0 -2
- package/dist/src/components/table/variants.d.ts +0 -14
- package/dist/src/components/tabs/Tabs.d.ts +0 -71
- package/dist/src/components/tabs/TabsContent.d.ts +0 -10
- package/dist/src/components/tabs/TabsContext.d.ts +0 -11
- package/dist/src/components/tabs/TabsList.d.ts +0 -7
- package/dist/src/components/tabs/TabsTrigger.d.ts +0 -15
- package/dist/src/components/tabs/hooks.d.ts +0 -9
- package/dist/src/components/tabs/index.d.ts +0 -4
- package/dist/src/components/tabs/variants.d.ts +0 -18
- package/dist/src/components/textarea/CharacterCount.d.ts +0 -6
- package/dist/src/components/textarea/Textarea.d.ts +0 -50
- package/dist/src/components/textarea/hooks.d.ts +0 -1
- package/dist/src/components/textarea/index.d.ts +0 -1
- package/dist/src/components/textarea/variants.d.ts +0 -22
- package/dist/src/components/toast/Toast.d.ts +0 -64
- package/dist/src/components/toast/index.d.ts +0 -1
- package/dist/src/components/toggle/Toggle.d.ts +0 -42
- package/dist/src/components/toggle/index.d.ts +0 -1
- package/dist/src/components/toggle/variants.d.ts +0 -29
- package/dist/src/components/tooltip/Tooltip.d.ts +0 -64
- package/dist/src/components/tooltip/index.d.ts +0 -1
- package/dist/src/hooks/index.d.ts +0 -4
- package/dist/src/hooks/useActionModal.d.ts +0 -3
- package/dist/src/hooks/useScreenSize.d.ts +0 -15
- package/dist/src/hooks/useTheme.d.ts +0 -13
- package/dist/src/hooks/useToast.d.ts +0 -16
- package/dist/src/index.d.ts +0 -1
- package/dist/src/providers/ActionModalProvider.d.ts +0 -32
- package/dist/src/providers/DreamerUIProvider.d.ts +0 -12
- package/dist/src/providers/ThemeProvider.d.ts +0 -15
- package/dist/src/providers/ToastProvider.d.ts +0 -18
- package/dist/src/providers/index.d.ts +0 -4
- package/dist/src/shared/forms/StatusHelpMessage.d.ts +0 -7
- package/dist/src/shared/forms/index.d.ts +0 -1
- package/dist/src/symbols/Apple.d.ts +0 -2
- package/dist/src/symbols/CaretCollapse.d.ts +0 -2
- package/dist/src/symbols/CaretExpand.d.ts +0 -2
- package/dist/src/symbols/Check.d.ts +0 -2
- package/dist/src/symbols/CheckCircled.d.ts +0 -2
- package/dist/src/symbols/ChevronDoubleLeft.d.ts +0 -2
- package/dist/src/symbols/ChevronDoubleRight.d.ts +0 -2
- package/dist/src/symbols/ChevronDown.d.ts +0 -2
- package/dist/src/symbols/ChevronLeft.d.ts +0 -2
- package/dist/src/symbols/ChevronRight.d.ts +0 -2
- package/dist/src/symbols/ChevronUp.d.ts +0 -2
- package/dist/src/symbols/Copy.d.ts +0 -2
- package/dist/src/symbols/CrossCircled.d.ts +0 -2
- package/dist/src/symbols/Dash.d.ts +0 -2
- package/dist/src/symbols/DeepRing.d.ts +0 -2
- package/dist/src/symbols/DotsVertical.d.ts +0 -2
- package/dist/src/symbols/Download.d.ts +0 -2
- package/dist/src/symbols/ExclamationTriangle.d.ts +0 -2
- package/dist/src/symbols/ExternalLink.d.ts +0 -2
- package/dist/src/symbols/EyeClosed.d.ts +0 -2
- package/dist/src/symbols/EyeOpened.d.ts +0 -2
- package/dist/src/symbols/Facebook.d.ts +0 -2
- package/dist/src/symbols/GitHub.d.ts +0 -2
- package/dist/src/symbols/Google.d.ts +0 -2
- package/dist/src/symbols/GripVertical.d.ts +0 -2
- package/dist/src/symbols/InfoCircled.d.ts +0 -2
- package/dist/src/symbols/InfoCircledFilled.d.ts +0 -2
- package/dist/src/symbols/Moon.d.ts +0 -2
- package/dist/src/symbols/OpenInNewWindow.d.ts +0 -2
- package/dist/src/symbols/Plus.d.ts +0 -2
- package/dist/src/symbols/QuestionMarkCircled.d.ts +0 -2
- package/dist/src/symbols/Sun.d.ts +0 -2
- package/dist/src/symbols/Trash.d.ts +0 -2
- package/dist/src/symbols/Window.d.ts +0 -2
- package/dist/src/symbols/X.d.ts +0 -2
- package/dist/src/symbols/index.d.ts +0 -36
- package/dist/src/symbols/props.d.ts +0 -5
- package/dist/src/utils/downloadFile.d.ts +0 -8
- package/dist/src/utils/index.d.ts +0 -3
- package/dist/src/utils/join.d.ts +0 -8
- 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
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
|
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
|
-
|
|
698
|
-
|
|
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
|
|
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:
|
|
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(
|
|
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
|
-
|
|
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 =
|
|
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 =
|
|
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-
|
|
1028
|
+
//# sourceMappingURL=Toast-BgUAcBAx.js.map
|