@cerberus-design/react 0.10.1 → 0.10.2
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/build/legacy/components/Portal.cjs +1 -0
- package/build/legacy/components/Portal.cjs.map +1 -1
- package/build/legacy/context/confirm-modal.cjs.map +1 -1
- package/build/legacy/context/notification-center.cjs.map +1 -1
- package/build/legacy/context/prompt-modal.cjs.map +1 -1
- package/build/legacy/index.cjs.map +1 -1
- package/build/modern/{chunk-2VX52EEJ.js → chunk-5IVINNV2.js} +1 -1
- package/build/modern/chunk-5IVINNV2.js.map +1 -0
- package/build/modern/{chunk-NUGDTZCL.js → chunk-6GAIXCCO.js} +2 -2
- package/build/modern/{chunk-E6QFLLXH.js → chunk-KDFCISMF.js} +2 -2
- package/build/modern/{chunk-ILZKQP6R.js → chunk-VYDHM3XL.js} +2 -2
- package/build/modern/components/Portal.js +2 -1
- package/build/modern/context/confirm-modal.js +2 -2
- package/build/modern/context/notification-center.js +2 -2
- package/build/modern/context/prompt-modal.js +2 -2
- package/build/modern/index.js +4 -4
- package/package.json +2 -2
- package/src/components/Portal.tsx +2 -0
- package/build/modern/chunk-2VX52EEJ.js.map +0 -1
- /package/build/modern/{chunk-NUGDTZCL.js.map → chunk-6GAIXCCO.js.map} +0 -0
- /package/build/modern/{chunk-E6QFLLXH.js.map → chunk-KDFCISMF.js.map} +0 -0
- /package/build/modern/{chunk-ILZKQP6R.js.map → chunk-VYDHM3XL.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/components/Portal.tsx"],"sourcesContent":["'use client'\n\nimport type { PropsWithChildren } from 'react'\nimport { createPortal } from 'react-dom'\n\n/**\n * This module is the Portal component.\n * @module\n */\n\nexport interface PortalProps {\n /**\n * The root container to render the children into.\n * @default document.body\n */\n container?: Element | DocumentFragment\n /**\n * An optional key to use for the Portal component.\n */\n key?: null | string\n}\n\n/**\n * The Portal component is used to render children into a DOM node that exists outside the DOM hierarchy of the parent component.\n * @see https://cerberus.digitalu.design/react/portal\n * @definition [React Portal Docs](https://react.dev/reference/react-dom/createPortal)\n */\nexport function Portal(props: PropsWithChildren<PortalProps>) {\n const container = props.container || document.body\n return createPortal(props.children, container, props.key)\n}\n"],"mappings":";AAGA,SAAS,oBAAoB;AAwBtB,SAAS,OAAO,OAAuC;AAC5D,QAAM,YAAY,MAAM,aAAa,SAAS;AAC9C,SAAO,aAAa,MAAM,UAAU,WAAW,MAAM,GAAG;AAC1D;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Portal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5IVINNV2.js";
|
|
4
4
|
import {
|
|
5
5
|
Notification
|
|
6
6
|
} from "./chunk-VG46RHBJ.js";
|
|
@@ -159,4 +159,4 @@ export {
|
|
|
159
159
|
NotificationCenter,
|
|
160
160
|
useNotificationCenter
|
|
161
161
|
};
|
|
162
|
-
//# sourceMappingURL=chunk-
|
|
162
|
+
//# sourceMappingURL=chunk-6GAIXCCO.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Portal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5IVINNV2.js";
|
|
4
4
|
import {
|
|
5
5
|
ModalHeader
|
|
6
6
|
} from "./chunk-WLEX22KS.js";
|
|
@@ -229,4 +229,4 @@ export {
|
|
|
229
229
|
PromptModal,
|
|
230
230
|
usePromptModal
|
|
231
231
|
};
|
|
232
|
-
//# sourceMappingURL=chunk-
|
|
232
|
+
//# sourceMappingURL=chunk-KDFCISMF.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Portal
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5IVINNV2.js";
|
|
4
4
|
import {
|
|
5
5
|
ModalHeader
|
|
6
6
|
} from "./chunk-WLEX22KS.js";
|
|
@@ -176,4 +176,4 @@ export {
|
|
|
176
176
|
ConfirmModal,
|
|
177
177
|
useConfirmModal
|
|
178
178
|
};
|
|
179
|
-
//# sourceMappingURL=chunk-
|
|
179
|
+
//# sourceMappingURL=chunk-VYDHM3XL.js.map
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ConfirmModal,
|
|
4
4
|
useConfirmModal
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-VYDHM3XL.js";
|
|
6
|
+
import "../chunk-5IVINNV2.js";
|
|
7
7
|
import "../chunk-WLEX22KS.js";
|
|
8
8
|
import "../chunk-2UXE5PDG.js";
|
|
9
9
|
import "../chunk-BE4EOU2P.js";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import {
|
|
3
3
|
NotificationCenter,
|
|
4
4
|
useNotificationCenter
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-6GAIXCCO.js";
|
|
6
|
+
import "../chunk-5IVINNV2.js";
|
|
7
7
|
import "../chunk-VG46RHBJ.js";
|
|
8
8
|
import "../chunk-XEW6TJJ4.js";
|
|
9
9
|
import "../chunk-SXIXDXG3.js";
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import {
|
|
3
3
|
PromptModal,
|
|
4
4
|
usePromptModal
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-KDFCISMF.js";
|
|
6
|
+
import "../chunk-5IVINNV2.js";
|
|
7
7
|
import "../chunk-WLEX22KS.js";
|
|
8
8
|
import "../chunk-2UXE5PDG.js";
|
|
9
9
|
import "../chunk-WZOYPFUU.js";
|
package/build/modern/index.js
CHANGED
|
@@ -8,15 +8,15 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
ConfirmModal,
|
|
10
10
|
useConfirmModal
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-VYDHM3XL.js";
|
|
12
12
|
import {
|
|
13
13
|
NotificationCenter,
|
|
14
14
|
useNotificationCenter
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-6GAIXCCO.js";
|
|
16
16
|
import {
|
|
17
17
|
PromptModal,
|
|
18
18
|
usePromptModal
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-KDFCISMF.js";
|
|
20
20
|
import {
|
|
21
21
|
TabPanel
|
|
22
22
|
} from "./chunk-HHVQ6LCA.js";
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
} from "./chunk-PKY46RRA.js";
|
|
45
45
|
import {
|
|
46
46
|
Portal
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-5IVINNV2.js";
|
|
48
48
|
import {
|
|
49
49
|
Radio
|
|
50
50
|
} from "./chunk-LJYCFFX7.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cerberus-design/react",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.2",
|
|
4
4
|
"description": "The Cerberus Design React component library.",
|
|
5
5
|
"browserslist": "> 0.25%, not dead",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"react-dom": "^18",
|
|
27
27
|
"tsup": "^8.1.0",
|
|
28
28
|
"@cerberus-design/configs": "0.0.0",
|
|
29
|
-
"@cerberus-design/styled-system": "0.10.
|
|
29
|
+
"@cerberus-design/styled-system": "0.10.2"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/Portal.tsx"],"sourcesContent":["import type { PropsWithChildren } from 'react'\nimport { createPortal } from 'react-dom'\n\n/**\n * This module is the Portal component.\n * @module\n */\n\nexport interface PortalProps {\n /**\n * The root container to render the children into.\n * @default document.body\n */\n container?: Element | DocumentFragment\n /**\n * An optional key to use for the Portal component.\n */\n key?: null | string\n}\n\n/**\n * The Portal component is used to render children into a DOM node that exists outside the DOM hierarchy of the parent component.\n * @see https://cerberus.digitalu.design/react/portal\n * @definition [React Portal Docs](https://react.dev/reference/react-dom/createPortal)\n */\nexport function Portal(props: PropsWithChildren<PortalProps>) {\n const container = props.container || document.body\n return createPortal(props.children, container, props.key)\n}\n"],"mappings":";AACA,SAAS,oBAAoB;AAwBtB,SAAS,OAAO,OAAuC;AAC5D,QAAM,YAAY,MAAM,aAAa,SAAS;AAC9C,SAAO,aAAa,MAAM,UAAU,WAAW,MAAM,GAAG;AAC1D;","names":[]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|