@moondreamsdev/dreamer-ui 1.7.12 → 1.7.13

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 (34) hide show
  1. package/dist/{Toast-Dj3X8g0Q.cjs → Toast-BJPMjPG-.cjs} +2 -2
  2. package/dist/Toast-BJPMjPG-.cjs.map +1 -0
  3. package/dist/{Toast-DUpf_XxS.js → Toast-DXhZLxdl.js} +16 -12
  4. package/dist/Toast-DXhZLxdl.js.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 +702 -717
  8. package/dist/components.esm.js.map +1 -1
  9. package/dist/hooks.cjs.js +1 -1
  10. package/dist/hooks.esm.js +8 -6
  11. package/dist/providers.cjs.js +1 -1
  12. package/dist/providers.cjs.js.map +1 -1
  13. package/dist/providers.esm.js +116 -68
  14. package/dist/providers.esm.js.map +1 -1
  15. package/dist/src/components/panel/Panel.d.ts +1 -4
  16. package/dist/src/hooks/index.d.ts +1 -0
  17. package/dist/src/hooks/useTheme.d.ts +9 -0
  18. package/dist/src/providers/ActionModalProvider.d.ts +11 -0
  19. package/dist/src/providers/DreamerUIProvider.d.ts +12 -0
  20. package/dist/src/providers/ThemeProvider.d.ts +15 -0
  21. package/dist/src/providers/ToastProvider.d.ts +6 -2
  22. package/dist/src/providers/index.d.ts +3 -1
  23. package/dist/useTheme-Bdg1t0Zr.cjs +2 -0
  24. package/dist/useTheme-Bdg1t0Zr.cjs.map +1 -0
  25. package/dist/useTheme-CYIEopvl.js +31 -0
  26. package/dist/useTheme-CYIEopvl.js.map +1 -0
  27. package/package.json +1 -1
  28. package/dist/Toast-DUpf_XxS.js.map +0 -1
  29. package/dist/Toast-Dj3X8g0Q.cjs.map +0 -1
  30. package/dist/src/components/panel/variants.d.ts +0 -12
  31. package/dist/useToast-CEKvEJVB.js +0 -22
  32. package/dist/useToast-CEKvEJVB.js.map +0 -1
  33. package/dist/useToast-CraVIawn.cjs +0 -2
  34. package/dist/useToast-CraVIawn.cjs.map +0 -1
@@ -1,12 +0,0 @@
1
- export declare const panelVariants: {
2
- readonly size: {
3
- readonly sm: "max-w-sm";
4
- readonly md: "max-w-md";
5
- readonly lg: "max-w-lg";
6
- readonly xl: "max-w-xl";
7
- readonly '2xl': "max-w-2xl";
8
- readonly full: "w-full";
9
- readonly screen: "w-screen";
10
- };
11
- };
12
- export type PanelSize = keyof typeof panelVariants.size;
@@ -1,22 +0,0 @@
1
- import { createContext as o, useContext as n } from "react";
2
- const e = o(void 0);
3
- function i() {
4
- const t = n(e);
5
- if (!t)
6
- throw new Error("useActionModal must be used within an ActionModalProvider");
7
- return t;
8
- }
9
- const s = o(void 0);
10
- function a() {
11
- const t = n(s);
12
- if (!t)
13
- throw new Error("useToast must be used within a ToastProvider");
14
- return t;
15
- }
16
- export {
17
- e as A,
18
- s as T,
19
- a,
20
- i as u
21
- };
22
- //# sourceMappingURL=useToast-CEKvEJVB.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useToast-CEKvEJVB.js","sources":["../src/hooks/useActionModal.ts","../src/hooks/useToast.ts"],"sourcesContent":["import { createContext, useContext } from 'react';\nimport { ActionModalContextValue } from '../providers';\n\nexport const ActionModalContext = createContext<ActionModalContextValue | undefined>(undefined);\n\nexport function useActionModal(): ActionModalContextValue {\n const context = useContext(ActionModalContext);\n if (!context) {\n throw new Error('useActionModal must be used within an ActionModalProvider');\n }\n return context;\n}\n","import { createContext, useContext } from 'react';\nimport { ToastAction, ToastData, ToastType } from '../components/toast';\n\nexport interface AddToastOptions {\n id?: string;\n title: string;\n description?: string;\n type?: ToastType | string;\n action?: ToastAction;\n duration?: number;\n}\n\nexport interface ToastContextValue {\n addToast: (options: AddToastOptions) => string;\n removeToast: (id: string) => void;\n toasts: ToastData[];\n}\n\nexport const ToastContext = createContext<ToastContextValue | undefined>(undefined);\n\nexport function useToast(): ToastContextValue {\n const context = useContext(ToastContext);\n if (!context) {\n throw new Error('useToast must be used within a ToastProvider');\n }\n return context;\n}\n"],"names":["ActionModalContext","createContext","useActionModal","context","useContext","ToastContext","useToast"],"mappings":";AAGa,MAAAA,IAAqBC,EAAmD,MAAS;AAEvF,SAASC,IAA0C;AAClD,QAAAC,IAAUC,EAAWJ,CAAkB;AAC7C,MAAI,CAACG;AACG,UAAA,IAAI,MAAM,2DAA2D;AAEtE,SAAAA;AACT;ACOa,MAAAE,IAAeJ,EAA6C,MAAS;AAE3E,SAASK,IAA8B;AACtC,QAAAH,IAAUC,EAAWC,CAAY;AACvC,MAAI,CAACF;AACG,UAAA,IAAI,MAAM,8CAA8C;AAEzD,SAAAA;AACT;"}
@@ -1,2 +0,0 @@
1
- "use strict";const o=require("react"),e=o.createContext(void 0);function s(){const t=o.useContext(e);if(!t)throw new Error("useActionModal must be used within an ActionModalProvider");return t}const n=o.createContext(void 0);function r(){const t=o.useContext(n);if(!t)throw new Error("useToast must be used within a ToastProvider");return t}exports.ActionModalContext=e;exports.ToastContext=n;exports.useActionModal=s;exports.useToast=r;
2
- //# sourceMappingURL=useToast-CraVIawn.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useToast-CraVIawn.cjs","sources":["../src/hooks/useActionModal.ts","../src/hooks/useToast.ts"],"sourcesContent":["import { createContext, useContext } from 'react';\nimport { ActionModalContextValue } from '../providers';\n\nexport const ActionModalContext = createContext<ActionModalContextValue | undefined>(undefined);\n\nexport function useActionModal(): ActionModalContextValue {\n const context = useContext(ActionModalContext);\n if (!context) {\n throw new Error('useActionModal must be used within an ActionModalProvider');\n }\n return context;\n}\n","import { createContext, useContext } from 'react';\nimport { ToastAction, ToastData, ToastType } from '../components/toast';\n\nexport interface AddToastOptions {\n id?: string;\n title: string;\n description?: string;\n type?: ToastType | string;\n action?: ToastAction;\n duration?: number;\n}\n\nexport interface ToastContextValue {\n addToast: (options: AddToastOptions) => string;\n removeToast: (id: string) => void;\n toasts: ToastData[];\n}\n\nexport const ToastContext = createContext<ToastContextValue | undefined>(undefined);\n\nexport function useToast(): ToastContextValue {\n const context = useContext(ToastContext);\n if (!context) {\n throw new Error('useToast must be used within a ToastProvider');\n }\n return context;\n}\n"],"names":["ActionModalContext","createContext","useActionModal","context","useContext","ToastContext","useToast"],"mappings":"sCAGaA,EAAqBC,gBAAmD,MAAS,EAEvF,SAASC,GAA0C,CAClD,MAAAC,EAAUC,aAAWJ,CAAkB,EAC7C,GAAI,CAACG,EACG,MAAA,IAAI,MAAM,2DAA2D,EAEtE,OAAAA,CACT,CCOa,MAAAE,EAAeJ,gBAA6C,MAAS,EAE3E,SAASK,GAA8B,CACtC,MAAAH,EAAUC,aAAWC,CAAY,EACvC,GAAI,CAACF,EACG,MAAA,IAAI,MAAM,8CAA8C,EAEzD,OAAAA,CACT"}