@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.
@@ -8,4 +8,4 @@ function Portal(props) {
8
8
  export {
9
9
  Portal
10
10
  };
11
- //# sourceMappingURL=chunk-2VX52EEJ.js.map
11
+ //# sourceMappingURL=chunk-5IVINNV2.js.map
@@ -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-2VX52EEJ.js";
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-NUGDTZCL.js.map
162
+ //# sourceMappingURL=chunk-6GAIXCCO.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Portal
3
- } from "./chunk-2VX52EEJ.js";
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-E6QFLLXH.js.map
232
+ //# sourceMappingURL=chunk-KDFCISMF.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Portal
3
- } from "./chunk-2VX52EEJ.js";
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-ILZKQP6R.js.map
179
+ //# sourceMappingURL=chunk-VYDHM3XL.js.map
@@ -1,6 +1,7 @@
1
+ "use client";
1
2
  import {
2
3
  Portal
3
- } from "../chunk-2VX52EEJ.js";
4
+ } from "../chunk-5IVINNV2.js";
4
5
  export {
5
6
  Portal
6
7
  };
@@ -2,8 +2,8 @@
2
2
  import {
3
3
  ConfirmModal,
4
4
  useConfirmModal
5
- } from "../chunk-ILZKQP6R.js";
6
- import "../chunk-2VX52EEJ.js";
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-NUGDTZCL.js";
6
- import "../chunk-2VX52EEJ.js";
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-E6QFLLXH.js";
6
- import "../chunk-2VX52EEJ.js";
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";
@@ -8,15 +8,15 @@ import {
8
8
  import {
9
9
  ConfirmModal,
10
10
  useConfirmModal
11
- } from "./chunk-ILZKQP6R.js";
11
+ } from "./chunk-VYDHM3XL.js";
12
12
  import {
13
13
  NotificationCenter,
14
14
  useNotificationCenter
15
- } from "./chunk-NUGDTZCL.js";
15
+ } from "./chunk-6GAIXCCO.js";
16
16
  import {
17
17
  PromptModal,
18
18
  usePromptModal
19
- } from "./chunk-E6QFLLXH.js";
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-2VX52EEJ.js";
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.1",
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.1"
29
+ "@cerberus-design/styled-system": "0.10.2"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public"
@@ -1,3 +1,5 @@
1
+ 'use client'
2
+
1
3
  import type { PropsWithChildren } from 'react'
2
4
  import { createPortal } from 'react-dom'
3
5
 
@@ -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":[]}