@mage-ui/components 1.0.60 → 1.0.61
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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ModalRegistry } from "../components/overlays/modal/modal-registry.mjs";
|
|
1
2
|
import { ToastProviderProps } from "../components/overlays/toast/toast.mjs";
|
|
2
3
|
import "../components/overlays/index.mjs";
|
|
3
4
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
@@ -6,22 +7,22 @@ import { DayOfWeek } from "@mantine/dates";
|
|
|
6
7
|
|
|
7
8
|
//#region src/providers/MageUiProvider.d.ts
|
|
8
9
|
type MageUiProviderProps = {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
consistentWeeks: boolean;
|
|
16
|
-
};
|
|
10
|
+
dates: {
|
|
11
|
+
locale: string;
|
|
12
|
+
firstDayOfWeek: DayOfWeek;
|
|
13
|
+
weekendDays: DayOfWeek[];
|
|
14
|
+
labelSeparator: string;
|
|
15
|
+
consistentWeeks: boolean;
|
|
17
16
|
};
|
|
18
|
-
children: ReactNode;
|
|
19
17
|
toast?: ToastProviderProps;
|
|
18
|
+
modals?: ModalRegistry;
|
|
19
|
+
children: ReactNode;
|
|
20
20
|
};
|
|
21
21
|
declare const MageUiProvider: ({
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
dates,
|
|
23
|
+
toast,
|
|
24
|
+
modals,
|
|
25
|
+
children
|
|
25
26
|
}: MageUiProviderProps) => react_jsx_runtime0.JSX.Element;
|
|
26
27
|
//#endregion
|
|
27
28
|
export { MageUiProvider, MageUiProviderProps };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MageUiProvider.d.mts","names":[],"sources":["../../src/providers/MageUiProvider.tsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"MageUiProvider.d.mts","names":[],"sources":["../../src/providers/MageUiProvider.tsx"],"mappings":";;;;;;;;KAWY,mBAAA;EACV,KAAA;IACE,MAAA;IACA,cAAA,EAAgB,SAAA;IAChB,WAAA,EAAa,SAAA;IACb,cAAA;IACA,eAAA;EAAA;EAEF,KAAA,GAAQ,kBAAA;EACR,MAAA,GAAS,aAAA;EACT,QAAA,EAAU,SAAA;AAAA;AAAA,cAGC,cAAA;EAAkB,KAAA;EAAA,KAAA;EAAA,MAAA;EAAA;AAAA,GAK5B,mBAAA,KAAmB,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Modal as e}from"../components/overlays/modal/Modal.mjs";import{Toast as t}from"../components/overlays/toast/toast.mjs";import{HeadlessMantineProvider as n}from"@mantine/core";import{jsx as r,jsxs as i}from"react/jsx-runtime";import{DatesProvider as a}from"@mantine/dates";const o=({
|
|
1
|
+
import{Modal as e}from"../components/overlays/modal/Modal.mjs";import{Toast as t}from"../components/overlays/toast/toast.mjs";import{HeadlessMantineProvider as n}from"@mantine/core";import{jsx as r,jsxs as i}from"react/jsx-runtime";import{DatesProvider as a}from"@mantine/dates";const o=({dates:o,toast:s,modals:c,children:l})=>r(n,{children:i(a,{settings:o,children:[r(t.Provider,{...s}),r(e.Provider,{...c,children:l})]})});export{o as MageUiProvider};
|
|
2
2
|
//# sourceMappingURL=MageUiProvider.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MageUiProvider.mjs","names":["Modal"],"sources":["../../src/providers/MageUiProvider.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport { HeadlessMantineProvider } from '@mantine/core';\nimport { DatesProvider, type DayOfWeek } from '@mantine/dates';\nimport {
|
|
1
|
+
{"version":3,"file":"MageUiProvider.mjs","names":["Modal"],"sources":["../../src/providers/MageUiProvider.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport { HeadlessMantineProvider } from '@mantine/core';\nimport { DatesProvider, type DayOfWeek } from '@mantine/dates';\nimport {\n Modal,\n type ModalRegistry,\n Toast,\n type ToastProviderProps,\n} from '@/components/overlays';\n\nexport type MageUiProviderProps = {\n dates: {\n locale: string;\n firstDayOfWeek: DayOfWeek;\n weekendDays: DayOfWeek[];\n labelSeparator: string;\n consistentWeeks: boolean;\n };\n toast?: ToastProviderProps;\n modals?: ModalRegistry;\n children: ReactNode;\n};\n\nexport const MageUiProvider = ({\n dates,\n toast,\n modals,\n children,\n}: MageUiProviderProps) => {\n return (\n <HeadlessMantineProvider>\n <DatesProvider settings={dates}>\n <Toast.Provider {...toast} />\n <Modal.Provider {...modals}>{children}</Modal.Provider>\n </DatesProvider>\n </HeadlessMantineProvider>\n );\n};\n"],"mappings":"uRAwBA,MAAa,GAAkB,CAC7B,QACA,QACA,SACA,cAGE,EAAC,EAAA,CAAA,SACC,EAAC,EAAA,CAAc,SAAU,YACvB,EAAC,EAAM,SAAA,CAAS,GAAI,EAAA,CAAS,CAC7B,EAACA,EAAM,SAAA,CAAS,GAAI,EAAS,YAA0B,CAAA,EACzC,CAAA,CACQ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mage-ui/components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.61",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [],
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"rimraf": "^6.1.3",
|
|
26
26
|
"tsdown": "^0.20.3",
|
|
27
27
|
"typescript": "^5.9.3",
|
|
28
|
-
"@mage-ui/preset": "1.0.
|
|
28
|
+
"@mage-ui/preset": "1.0.61",
|
|
29
29
|
"@mage-ui/styled-system": "1.0.8"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|