@stack-spot/portal-layout 0.0.43 → 0.0.44

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/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export { Layout, RawLayout } from './Layout.js';
2
2
  export { overlay } from './LayoutOverlayManager.js';
3
3
  export { Dialog } from './components/Dialog.js';
4
+ export { Toaster } from './components/Toaster.js';
4
5
  export { Header, HeaderProps } from './components/Header.js';
5
6
  export { OverlayContent } from './components/OverlayContent.js';
6
7
  export { PortalSwitcher } from './components/PortalSwitcher.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAC5D,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAC1F,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAA;AACzF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAA;AAC7D,cAAc,yBAAyB,CAAA;AACvC,cAAc,oBAAoB,CAAA;AAClC,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,OAAO,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,YAAY,CAAA;AAClD,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAC9C,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAA;AAC5D,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAC1F,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAA;AACzF,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAA;AAC7D,cAAc,yBAAyB,CAAA;AACvC,cAAc,oBAAoB,CAAA;AAClC,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,OAAO,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,YAAY,CAAA;AAClD,cAAc,SAAS,CAAA"}
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export { Layout, RawLayout } from './Layout.js';
2
2
  export { overlay } from './LayoutOverlayManager.js';
3
3
  export { Dialog } from './components/Dialog.js';
4
+ export { Toaster } from './components/Toaster.js';
4
5
  export { Header } from './components/Header.js';
5
6
  export { OverlayContent } from './components/OverlayContent.js';
6
7
  export { PortalSwitcher } from './components/PortalSwitcher.js';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO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gCAAgC,CAAA;AAC7D,cAAc,yBAAyB,CAAA;AACvC,cAAc,oBAAoB,CAAA;AAClC,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,OAAO,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,YAAY,CAAA;AAClD,cAAc,SAAS,CAAA"}
package/dist/svg/AI.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  export declare const AI: ({ className, style }: {
3
- className?: string | undefined;
4
- style?: import("react").CSSProperties | undefined;
2
+ className?: string;
3
+ style?: React.CSSProperties;
5
4
  }) => import("react/jsx-runtime").JSX.Element;
6
5
  //# sourceMappingURL=AI.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AI.d.ts","sourceRoot":"","sources":["../../src/svg/AI.tsx"],"names":[],"mappings":";AAIA,eAAO,MAAM,EAAE;;;6CAgCd,CAAA"}
1
+ {"version":3,"file":"AI.d.ts","sourceRoot":"","sources":["../../src/svg/AI.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,EAAE,yBAA0B;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,aAAa,CAAA;CAAE,4CAgC3F,CAAA"}
package/dist/svg/EDP.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  export declare const EDP: ({ className, style }: {
3
- className?: string | undefined;
4
- style?: import("react").CSSProperties | undefined;
2
+ className?: string;
3
+ style?: React.CSSProperties;
5
4
  }) => import("react/jsx-runtime").JSX.Element;
6
5
  //# sourceMappingURL=EDP.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EDP.d.ts","sourceRoot":"","sources":["../../src/svg/EDP.tsx"],"names":[],"mappings":";AAGA,eAAO,MAAM,GAAG;;;6CA+Bf,CAAA"}
1
+ {"version":3,"file":"EDP.d.ts","sourceRoot":"","sources":["../../src/svg/EDP.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,GAAG,yBAA0B;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,aAAa,CAAA;CAAE,4CA+B5F,CAAA"}
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  export declare const Forbidden: ({ className, style }: {
3
- className?: string | undefined;
4
- style?: import("react").CSSProperties | undefined;
2
+ className?: string;
3
+ style?: React.CSSProperties;
5
4
  }) => import("react/jsx-runtime").JSX.Element;
6
5
  //# sourceMappingURL=Forbidden.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Forbidden.d.ts","sourceRoot":"","sources":["../../src/svg/Forbidden.tsx"],"names":[],"mappings":";AAEA,eAAO,MAAM,SAAS;;;6CAmBrB,CAAA"}
1
+ {"version":3,"file":"Forbidden.d.ts","sourceRoot":"","sources":["../../src/svg/Forbidden.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,yBAA0B;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,aAAa,CAAA;CAAE,4CAmBlG,CAAA"}
package/dist/svg/HUB.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  export declare const HUB: ({ className, style }: {
3
- className?: string | undefined;
4
- style?: import("react").CSSProperties | undefined;
2
+ className?: string;
3
+ style?: React.CSSProperties;
5
4
  }) => import("react/jsx-runtime").JSX.Element;
6
5
  //# sourceMappingURL=HUB.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HUB.d.ts","sourceRoot":"","sources":["../../src/svg/HUB.tsx"],"names":[],"mappings":";AAGA,eAAO,MAAM,GAAG;;;6CA+Bf,CAAA"}
1
+ {"version":3,"file":"HUB.d.ts","sourceRoot":"","sources":["../../src/svg/HUB.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,GAAG,yBAA0B;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,aAAa,CAAA;CAAE,4CA+B5F,CAAA"}
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  export declare const NotFound: ({ className, style }: {
3
- className?: string | undefined;
4
- style?: import("react").CSSProperties | undefined;
2
+ className?: string;
3
+ style?: React.CSSProperties;
5
4
  }) => import("react/jsx-runtime").JSX.Element;
6
5
  //# sourceMappingURL=NotFound.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NotFound.d.ts","sourceRoot":"","sources":["../../src/svg/NotFound.tsx"],"names":[],"mappings":";AAEA,eAAO,MAAM,QAAQ;;;6CAapB,CAAA"}
1
+ {"version":3,"file":"NotFound.d.ts","sourceRoot":"","sources":["../../src/svg/NotFound.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,yBAA0B;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,aAAa,CAAA;CAAE,4CAajG,CAAA"}
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  export declare const ServerError: ({ className, style }: {
3
- className?: string | undefined;
4
- style?: import("react").CSSProperties | undefined;
2
+ className?: string;
3
+ style?: React.CSSProperties;
5
4
  }) => import("react/jsx-runtime").JSX.Element;
6
5
  //# sourceMappingURL=ServerError.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ServerError.d.ts","sourceRoot":"","sources":["../../src/svg/ServerError.tsx"],"names":[],"mappings":";AAEA,eAAO,MAAM,WAAW;;;6CA8BvB,CAAA"}
1
+ {"version":3,"file":"ServerError.d.ts","sourceRoot":"","sources":["../../src/svg/ServerError.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,yBAA0B;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,aAAa,CAAA;CAAE,4CA8BpG,CAAA"}
@@ -1,6 +1,5 @@
1
- /// <reference types="react" />
2
1
  export declare const Unauthenticated: ({ className, style }: {
3
- className?: string | undefined;
4
- style?: import("react").CSSProperties | undefined;
2
+ className?: string;
3
+ style?: React.CSSProperties;
5
4
  }) => import("react/jsx-runtime").JSX.Element;
6
5
  //# sourceMappingURL=Unauthenticated.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Unauthenticated.d.ts","sourceRoot":"","sources":["../../src/svg/Unauthenticated.tsx"],"names":[],"mappings":";AAEA,eAAO,MAAM,eAAe;;;6CAa3B,CAAA"}
1
+ {"version":3,"file":"Unauthenticated.d.ts","sourceRoot":"","sources":["../../src/svg/Unauthenticated.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,yBAA0B;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,aAAa,CAAA;CAAE,4CAaxG,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stack-spot/portal-layout",
3
- "version": "0.0.43",
3
+ "version": "0.0.44",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export { Layout, RawLayout } from './Layout'
2
2
  export { overlay } from './LayoutOverlayManager'
3
3
  export { Dialog } from './components/Dialog'
4
+ export { Toaster } from './components/Toaster'
4
5
  export { Header, HeaderProps } from './components/Header'
5
6
  export { OverlayContent } from './components/OverlayContent'
6
7
  export { PortalSwitcher } from './components/PortalSwitcher'
@@ -1,4 +0,0 @@
1
- export declare const BannerWarning: ({ children }: {
2
- children: React.ReactNode;
3
- }) => import("react/jsx-runtime").JSX.Element;
4
- //# sourceMappingURL=BannerWarning.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BannerWarning.d.ts","sourceRoot":"","sources":["../../src/components/BannerWarning.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa;cAA8B,MAAM,SAAS;6CAgBtE,CAAA"}
@@ -1,6 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Flex, IconBox, Text } from '@citric/core';
3
- import { ExclamationTriangle } from '@citric/icons';
4
- import { Alert } from '@citric/ui';
5
- export const BannerWarning = ({ children }) => (_jsx(Flex, { sx: { position: 'fixed', top: 0, zIndex: '999', w: 12, left: 0 }, children: _jsxs(Alert, { colorScheme: "warning", sx: { p: 2, w: 12, justifyContent: 'center', height: ['60px', '100px'] }, children: [_jsx(IconBox, { size: "md", colorScheme: "light", sx: { display: ['block', 'none'] }, children: _jsx(ExclamationTriangle, {}) }), _jsx(Flex, { sx: { py: [5, 3] }, children: _jsx(Text, { sx: { fontSize: ['16px', '14px'], whiteSpace: 'pre-line' }, colorScheme: "warning.contrastText", children: children }) }), _jsx(IconBox, { size: "md", colorScheme: "light", sx: { display: ['block', 'none'] }, children: _jsx(ExclamationTriangle, {}) })] }) }));
6
- //# sourceMappingURL=BannerWarning.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BannerWarning.js","sourceRoot":"","sources":["../../src/components/BannerWarning.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAElC,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,EAAE,QAAQ,EAAiC,EAAE,EAAE,CAAC,CAC5E,KAAC,IAAI,IAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,YACpE,MAAC,KAAK,IAAC,WAAW,EAAC,SAAS,EAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,aACnG,KAAC,OAAO,IAAC,IAAI,EAAC,IAAI,EAAC,WAAW,EAAC,OAAO,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,YACvE,KAAC,mBAAmB,KAAG,GACf,EACV,KAAC,IAAI,IAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,YACtB,KAAC,IAAI,IAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,UAAU,EAAE,UAAU,EAAE,EAAE,WAAW,EAAC,sBAAsB,YACjG,QAAQ,GACJ,GACF,EACP,KAAC,OAAO,IAAC,IAAI,EAAC,IAAI,EAAC,WAAW,EAAC,OAAO,EAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,YACvE,KAAC,mBAAmB,KAAG,GACf,IACJ,GACH,CACR,CAAA"}
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function useCheckTextOverflow(): {
3
- overflow: boolean;
4
- ref: import("react").RefObject<HTMLParagraphElement>;
5
- };
6
- //# sourceMappingURL=useCheckTextOverflow.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useCheckTextOverflow.d.ts","sourceRoot":"","sources":["../../../src/components/menu/useCheckTextOverflow.tsx"],"names":[],"mappings":";AAEA,wBAAgB,oBAAoB;;;EAuBnC"}
@@ -1,20 +0,0 @@
1
- import { useState, useRef, useEffect } from 'react';
2
- export function useCheckTextOverflow() {
3
- const [overflow, setOverflow] = useState(false);
4
- const ref = useRef(null);
5
- const checkOverflow = () => {
6
- if (!ref.current) {
7
- return;
8
- }
9
- const hasOverflow = ref.current.offsetWidth < ref.current.scrollWidth;
10
- if (hasOverflow === overflow) {
11
- return;
12
- }
13
- setOverflow(hasOverflow);
14
- };
15
- useEffect(() => {
16
- checkOverflow();
17
- }, [ref.current]);
18
- return { overflow, ref };
19
- }
20
- //# sourceMappingURL=useCheckTextOverflow.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useCheckTextOverflow.js","sourceRoot":"","sources":["../../../src/components/menu/useCheckTextOverflow.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEpD,MAAM,UAAU,oBAAoB;IAClC,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAU,KAAK,CAAC,CAAA;IACxD,MAAM,GAAG,GAAG,MAAM,CAAuB,IAAI,CAAC,CAAA;IAE9C,MAAM,aAAa,GAAG,GAAG,EAAE;QACzB,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC;YACjB,OAAM;QACR,CAAC;QAED,MAAM,WAAW,GAAG,GAAG,CAAC,OAAO,CAAC,WAAW,GAAG,GAAG,CAAC,OAAO,CAAC,WAAW,CAAA;QAErE,IAAI,WAAW,KAAK,QAAQ,EAAE,CAAC;YAC7B,OAAM;QACR,CAAC;QAED,WAAW,CAAC,WAAW,CAAC,CAAA;IAC1B,CAAC,CAAA;IAED,SAAS,CAAC,GAAG,EAAE;QACb,aAAa,EAAE,CAAA;IACjB,CAAC,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAA;IAEjB,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAA;AAC1B,CAAC"}