@oliasoft-open-source/react-ui-library 7.4.0-beta-3 → 7.5.0-beta-1

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.
@@ -0,0 +1,16 @@
1
+ import { default as React } from 'react';
2
+ type ErrorBoundaryOptions = {
3
+ ErrorComponent?: React.ComponentType;
4
+ isSideBar?: boolean;
5
+ isRightSideBar?: boolean;
6
+ isPage?: boolean;
7
+ style?: React.CSSProperties;
8
+ };
9
+ type ErrorBoundaryProps = React.PropsWithChildren<{
10
+ options?: ErrorBoundaryOptions;
11
+ }>;
12
+ export declare const ErrorBoundary: ({ children, options }: ErrorBoundaryProps) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const withErrorBoundary: <T extends React.JSXElementConstructor<any>>(Component: T, options?: ErrorBoundaryOptions) => T;
14
+ export declare const withChainableErrorBoundary: (options?: ErrorBoundaryOptions) => <T extends React.JSXElementConstructor<any>>(Component: T) => T;
15
+ export {};
16
+ //# sourceMappingURL=error-boundary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-boundary.d.ts","sourceRoot":"","sources":["../../../src/components/error-boundary/error-boundary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,KAAK,oBAAoB,GAAG;IAC1B,cAAc,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACrC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,CAAC;AAqDF,KAAK,kBAAkB,GAAG,KAAK,CAAC,iBAAiB,CAAC;IAChD,OAAO,CAAC,EAAE,oBAAoB,CAAC;CAChC,CAAC,CAAC;AAEH,eAAO,MAAM,aAAa,GAAI,uBAAuB,kBAAkB,4CAStE,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,KAAK,CAAC,qBAAqB,CAAC,GAAG,CAAC,EAC1E,WAAW,CAAC,EACZ,UAAS,oBAAyB,KACjC,CAQF,CAAC;AAEF,eAAO,MAAM,0BAA0B,GACpC,UAAS,oBAAyB,MAClC,CAAC,SAAS,KAAK,CAAC,qBAAqB,CAAC,GAAG,CAAC,EAAE,WAAW,CAAC,KAAG,CACrB,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { default as React } from 'react';
2
+ import { Meta } from '@storybook/react-vite';
3
+ declare const _default: Meta;
4
+ export default _default;
5
+ export declare const Default: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, {
6
+ options?: {
7
+ ErrorComponent?: React.ComponentType;
8
+ isSideBar?: boolean;
9
+ isRightSideBar?: boolean;
10
+ isPage?: boolean;
11
+ style?: React.CSSProperties;
12
+ };
13
+ } & {
14
+ children?: React.ReactNode | undefined;
15
+ }>;
16
+ export declare const CaughtError: () => import("react/jsx-runtime").JSX.Element;
17
+ export declare const Page: () => import("react/jsx-runtime").JSX.Element;
18
+ export declare const SideBar: () => import("react/jsx-runtime").JSX.Element;
19
+ export declare const RightSideBar: () => import("react/jsx-runtime").JSX.Element;
20
+ export declare const CustomErrorComponent: () => import("react/jsx-runtime").JSX.Element;
21
+ //# sourceMappingURL=error-boundary.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error-boundary.stories.d.ts","sourceRoot":"","sources":["../../../src/components/error-boundary/error-boundary.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAC;wBAWjD,IAAI;AAHT,wBAGU;AAQV,eAAO,MAAM,OAAO;;;;;;;;;;EAAoB,CAAC;AAEzC,eAAO,MAAM,WAAW,+CAIvB,CAAC;AAEF,eAAO,MAAM,IAAI,+CAIhB,CAAC;AAEF,eAAO,MAAM,OAAO,+CAMnB,CAAC;AAEF,eAAO,MAAM,YAAY,+CAMxB,CAAC;AAEF,eAAO,MAAM,oBAAoB,+CAIhC,CAAC"}