@xyo-network/react-card 2.63.1 → 2.64.0-rc.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/dist/components/CardContentEx.d.mts.map +1 -0
- package/dist/components/CardContentEx.d.ts +11 -0
- package/dist/components/CardContentEx.d.ts.map +1 -0
- package/dist/components/CardContentEx.stories.d.mts +9 -0
- package/dist/components/CardContentEx.stories.d.mts.map +1 -0
- package/dist/components/CardContentEx.stories.d.ts +9 -0
- package/dist/components/CardContentEx.stories.d.ts.map +1 -0
- package/dist/components/CardEx.d.mts.map +1 -0
- package/dist/components/CardEx.d.ts +8 -0
- package/dist/components/CardEx.d.ts.map +1 -0
- package/dist/components/FullWidthCard/FullWidthCard.d.mts.map +1 -0
- package/dist/components/FullWidthCard/FullWidthCard.d.ts +15 -0
- package/dist/components/FullWidthCard/FullWidthCard.d.ts.map +1 -0
- package/dist/components/FullWidthCard/FullWidthCard.stories.d.mts +5 -0
- package/dist/components/FullWidthCard/FullWidthCard.stories.d.mts.map +1 -0
- package/dist/components/FullWidthCard/FullWidthCard.stories.d.ts +5 -0
- package/dist/components/FullWidthCard/FullWidthCard.stories.d.ts.map +1 -0
- package/dist/components/FullWidthCard/index.d.mts.map +1 -0
- package/dist/components/FullWidthCard/index.d.ts +2 -0
- package/dist/components/FullWidthCard/index.d.ts.map +1 -0
- package/dist/components/PageCard.d.mts.map +1 -0
- package/dist/components/PageCard.d.ts +10 -0
- package/dist/components/PageCard.d.ts.map +1 -0
- package/dist/components/PageCard.stories.d.mts +8 -0
- package/dist/components/PageCard.stories.d.mts.map +1 -0
- package/dist/components/PageCard.stories.d.ts +8 -0
- package/dist/components/PageCard.stories.d.ts.map +1 -0
- package/dist/components/SimpleCard/SimpleCard.d.mts.map +1 -0
- package/dist/components/SimpleCard/SimpleCard.d.ts +16 -0
- package/dist/components/SimpleCard/SimpleCard.d.ts.map +1 -0
- package/dist/components/SimpleCard/SimpleCard.stories.d.mts +10 -0
- package/dist/components/SimpleCard/SimpleCard.stories.d.mts.map +1 -0
- package/dist/components/SimpleCard/SimpleCard.stories.d.ts +10 -0
- package/dist/components/SimpleCard/SimpleCard.stories.d.ts.map +1 -0
- package/dist/components/SimpleCard/index.d.mts.map +1 -0
- package/dist/components/SimpleCard/index.d.ts +2 -0
- package/dist/components/SimpleCard/index.d.ts.map +1 -0
- package/dist/components/SimpleCardGrid/SimpleCardGrid.d.mts.map +1 -0
- package/dist/components/SimpleCardGrid/SimpleCardGrid.d.ts +8 -0
- package/dist/components/SimpleCardGrid/SimpleCardGrid.d.ts.map +1 -0
- package/dist/components/SimpleCardGrid/SimpleCardGrid.stories.d.mts +5 -0
- package/dist/components/SimpleCardGrid/SimpleCardGrid.stories.d.mts.map +1 -0
- package/dist/components/SimpleCardGrid/SimpleCardGrid.stories.d.ts +5 -0
- package/dist/components/SimpleCardGrid/SimpleCardGrid.stories.d.ts.map +1 -0
- package/dist/components/SimpleCardGrid/index.d.mts.map +1 -0
- package/dist/components/SimpleCardGrid/index.d.ts +2 -0
- package/dist/components/SimpleCardGrid/index.d.ts.map +1 -0
- package/dist/components/index.d.mts.map +1 -0
- package/dist/{esm/components/index.js → components/index.d.ts} +1 -1
- package/dist/components/index.d.ts.map +1 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/{types/index.d.ts.map → index.d.ts.map} +1 -1
- package/dist/index.js +258 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +225 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +27 -18
- package/src/components/FullWidthCard/FullWidthCard.tsx +1 -1
- package/src/components/PageCard.tsx +1 -1
- package/src/components/SimpleCard/SimpleCard.tsx +1 -1
- package/dist/cjs/components/CardContentEx.js +0 -29
- package/dist/cjs/components/CardContentEx.js.map +0 -1
- package/dist/cjs/components/CardEx.js +0 -17
- package/dist/cjs/components/CardEx.js.map +0 -1
- package/dist/cjs/components/FullWidthCard/FullWidthCard.js +0 -32
- package/dist/cjs/components/FullWidthCard/FullWidthCard.js.map +0 -1
- package/dist/cjs/components/FullWidthCard/index.js +0 -5
- package/dist/cjs/components/FullWidthCard/index.js.map +0 -1
- package/dist/cjs/components/PageCard.js +0 -17
- package/dist/cjs/components/PageCard.js.map +0 -1
- package/dist/cjs/components/SimpleCard/SimpleCard.js +0 -30
- package/dist/cjs/components/SimpleCard/SimpleCard.js.map +0 -1
- package/dist/cjs/components/SimpleCard/coinbase-wallet.svg +0 -1
- package/dist/cjs/components/SimpleCard/index.js +0 -5
- package/dist/cjs/components/SimpleCard/index.js.map +0 -1
- package/dist/cjs/components/SimpleCard/money.jpg +0 -0
- package/dist/cjs/components/SimpleCardGrid/SimpleCardGrid.js +0 -13
- package/dist/cjs/components/SimpleCardGrid/SimpleCardGrid.js.map +0 -1
- package/dist/cjs/components/SimpleCardGrid/coinbase-wallet.svg +0 -1
- package/dist/cjs/components/SimpleCardGrid/index.js +0 -5
- package/dist/cjs/components/SimpleCardGrid/index.js.map +0 -1
- package/dist/cjs/components/SimpleCardGrid/money.jpg +0 -0
- package/dist/cjs/components/index.js +0 -9
- package/dist/cjs/components/index.js.map +0 -1
- package/dist/cjs/index.js +0 -5
- package/dist/cjs/index.js.map +0 -1
- package/dist/docs.json +0 -1998
- package/dist/esm/components/CardContentEx.js +0 -30
- package/dist/esm/components/CardContentEx.js.map +0 -1
- package/dist/esm/components/CardEx.js +0 -15
- package/dist/esm/components/CardEx.js.map +0 -1
- package/dist/esm/components/FullWidthCard/FullWidthCard.js +0 -26
- package/dist/esm/components/FullWidthCard/FullWidthCard.js.map +0 -1
- package/dist/esm/components/FullWidthCard/index.js +0 -2
- package/dist/esm/components/FullWidthCard/index.js.map +0 -1
- package/dist/esm/components/PageCard.js +0 -12
- package/dist/esm/components/PageCard.js.map +0 -1
- package/dist/esm/components/SimpleCard/SimpleCard.js +0 -28
- package/dist/esm/components/SimpleCard/SimpleCard.js.map +0 -1
- package/dist/esm/components/SimpleCard/coinbase-wallet.svg +0 -1
- package/dist/esm/components/SimpleCard/index.js +0 -2
- package/dist/esm/components/SimpleCard/index.js.map +0 -1
- package/dist/esm/components/SimpleCard/money.jpg +0 -0
- package/dist/esm/components/SimpleCardGrid/SimpleCardGrid.js +0 -7
- package/dist/esm/components/SimpleCardGrid/SimpleCardGrid.js.map +0 -1
- package/dist/esm/components/SimpleCardGrid/coinbase-wallet.svg +0 -1
- package/dist/esm/components/SimpleCardGrid/index.js +0 -2
- package/dist/esm/components/SimpleCardGrid/index.js.map +0 -1
- package/dist/esm/components/SimpleCardGrid/money.jpg +0 -0
- package/dist/esm/components/index.js.map +0 -1
- package/dist/esm/index.js +0 -2
- package/dist/esm/index.js.map +0 -1
- package/dist/types/components/CardContentEx.d.ts.map +0 -1
- package/dist/types/components/CardEx.d.ts.map +0 -1
- package/dist/types/components/FullWidthCard/FullWidthCard.d.ts.map +0 -1
- package/dist/types/components/FullWidthCard/index.d.ts.map +0 -1
- package/dist/types/components/PageCard.d.ts.map +0 -1
- package/dist/types/components/SimpleCard/SimpleCard.d.ts.map +0 -1
- package/dist/types/components/SimpleCard/index.d.ts.map +0 -1
- package/dist/types/components/SimpleCardGrid/SimpleCardGrid.d.ts.map +0 -1
- package/dist/types/components/SimpleCardGrid/index.d.ts.map +0 -1
- package/dist/types/components/index.d.ts.map +0 -1
- /package/dist/{types/components/CardContentEx.d.ts → components/CardContentEx.d.mts} +0 -0
- /package/dist/{types/components/CardEx.d.ts → components/CardEx.d.mts} +0 -0
- /package/dist/{types/components/FullWidthCard/FullWidthCard.d.ts → components/FullWidthCard/FullWidthCard.d.mts} +0 -0
- /package/dist/{types/components/FullWidthCard/index.d.ts → components/FullWidthCard/index.d.mts} +0 -0
- /package/dist/{types/components/PageCard.d.ts → components/PageCard.d.mts} +0 -0
- /package/dist/{types/components/SimpleCard/SimpleCard.d.ts → components/SimpleCard/SimpleCard.d.mts} +0 -0
- /package/dist/{types/components/SimpleCard/index.d.ts → components/SimpleCard/index.d.mts} +0 -0
- /package/dist/{types/components/SimpleCardGrid/SimpleCardGrid.d.ts → components/SimpleCardGrid/SimpleCardGrid.d.mts} +0 -0
- /package/dist/{types/components/SimpleCardGrid/index.d.ts → components/SimpleCardGrid/index.d.mts} +0 -0
- /package/dist/{types/components/index.d.ts → components/index.d.mts} +0 -0
- /package/dist/{types/index.d.ts → index.d.mts} +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CardContentEx.d.ts","sourceRoot":"","sources":["../../src/components/CardContentEx.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAe,gBAAgB,EAAU,MAAM,eAAe,CAAA;AAmBrE,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,GAAG;IAClD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,YAAY,GAAG,QAAQ,CAAA;CAClC,CAAA;AAED,eAAO,MAAM,oBAAoB,mIAU/B,CAAA;AAIF,eAAO,MAAM,aAAa,mIAAuB,CAAA"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { CardContentProps } from '@mui/material';
|
3
|
+
export type CardContentExProps = CardContentProps & {
|
4
|
+
refreshRef?: number;
|
5
|
+
removePadding?: boolean;
|
6
|
+
scrollToTop?: number;
|
7
|
+
variant?: 'scrollable' | 'normal';
|
8
|
+
};
|
9
|
+
export declare const CardContentExWithRef: import("react").ForwardRefExoticComponent<Omit<CardContentExProps, "ref"> & import("react").RefAttributes<HTMLDivElement | null>>;
|
10
|
+
export declare const CardContentEx: import("react").ForwardRefExoticComponent<Omit<CardContentExProps, "ref"> & import("react").RefAttributes<HTMLDivElement | null>>;
|
11
|
+
//# sourceMappingURL=CardContentEx.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CardContentEx.d.ts","sourceRoot":"","sources":["../../src/components/CardContentEx.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAe,gBAAgB,EAAU,MAAM,eAAe,CAAA;AAmBrE,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,GAAG;IAClD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,YAAY,GAAG,QAAQ,CAAA;CAClC,CAAA;AAED,eAAO,MAAM,oBAAoB,mIAU/B,CAAA;AAIF,eAAO,MAAM,aAAa,mIAAuB,CAAA"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { Meta } from '@storybook/react';
|
3
|
+
declare const StorybookEntry: Meta;
|
4
|
+
declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<import("./CardContentEx").CardContentExProps, "ref"> & import("react").RefAttributes<HTMLDivElement | null>>;
|
5
|
+
declare const WithRef: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<import("./CardContentEx").CardContentExProps, "ref"> & import("react").RefAttributes<HTMLDivElement | null>>;
|
6
|
+
declare const WithVariant: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<import("./CardContentEx").CardContentExProps, "ref"> & import("react").RefAttributes<HTMLDivElement | null>>;
|
7
|
+
export { Default, WithRef, WithVariant };
|
8
|
+
export default StorybookEntry;
|
9
|
+
//# sourceMappingURL=CardContentEx.stories.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CardContentEx.stories.d.ts","sourceRoot":"","sources":["../../src/components/CardContentEx.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAa,IAAI,EAAW,MAAM,kBAAkB,CAAA;AA4B3D,QAAA,MAAM,cAAc,EAAE,IASrB,CAAA;AAcD,QAAA,MAAM,OAAO,iNAAoB,CAAA;AAGjC,QAAA,MAAM,OAAO,iNAAoB,CAAA;AAGjC,QAAA,MAAM,WAAW,iNAAoB,CAAA;AAIrC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,CAAA;AAGxC,eAAe,cAAc,CAAA"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { Meta } from '@storybook/react';
|
3
|
+
declare const StorybookEntry: Meta;
|
4
|
+
declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<import("./CardContentEx").CardContentExProps, "ref"> & import("react").RefAttributes<HTMLDivElement | null>>;
|
5
|
+
declare const WithRef: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<import("./CardContentEx").CardContentExProps, "ref"> & import("react").RefAttributes<HTMLDivElement | null>>;
|
6
|
+
declare const WithVariant: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<import("./CardContentEx").CardContentExProps, "ref"> & import("react").RefAttributes<HTMLDivElement | null>>;
|
7
|
+
export { Default, WithRef, WithVariant };
|
8
|
+
export default StorybookEntry;
|
9
|
+
//# sourceMappingURL=CardContentEx.stories.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CardContentEx.stories.d.ts","sourceRoot":"","sources":["../../src/components/CardContentEx.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAa,IAAI,EAAW,MAAM,kBAAkB,CAAA;AA4B3D,QAAA,MAAM,cAAc,EAAE,IASrB,CAAA;AAcD,QAAA,MAAM,OAAO,iNAAoB,CAAA;AAGjC,QAAA,MAAM,OAAO,iNAAoB,CAAA;AAGjC,QAAA,MAAM,WAAW,iNAAoB,CAAA;AAIrC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,CAAA;AAGxC,eAAe,cAAc,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CardEx.d.ts","sourceRoot":"","sources":["../../src/components/CardEx.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAQ,SAAS,EAAE,MAAM,eAAe,CAAA;AAI/C,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG;IACpC,QAAQ,CAAC,EAAE,QAAQ,GAAG,YAAY,CAAA;CACnC,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAa9C,CAAA;AAIF,eAAO,MAAM,MAAM,iCAAgB,CAAA"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { CardProps } from '@mui/material';
|
3
|
+
export type CardExProps = CardProps & {
|
4
|
+
gradient?: 'border' | 'background';
|
5
|
+
};
|
6
|
+
export declare const CardExWithRef: React.FC<CardExProps>;
|
7
|
+
export declare const CardEx: import("react").FC<CardExProps>;
|
8
|
+
//# sourceMappingURL=CardEx.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"CardEx.d.ts","sourceRoot":"","sources":["../../src/components/CardEx.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAQ,SAAS,EAAE,MAAM,eAAe,CAAA;AAI/C,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG;IACpC,QAAQ,CAAC,EAAE,QAAQ,GAAG,YAAY,CAAA;CACnC,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAa9C,CAAA;AAIF,eAAO,MAAM,MAAM,iCAAgB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"FullWidthCard.d.ts","sourceRoot":"","sources":["../../../src/components/FullWidthCard/FullWidthCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAoD,SAAS,EAAgD,MAAM,eAAe,CAAA;AAGzI,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAA;AAC3C,OAAO,EAAE,EAAE,EAAe,MAAM,kBAAkB,CAAA;AAElD,MAAM,WAAW,kBAAmB,SAAQ,SAAS;IACnD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,SAAS,CAAA;IACf,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,EAAE,CAAC,EAAE,EAAE,CAAA;CACR;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA8EtD,CAAA"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { CardProps } from '@mui/material';
|
2
|
+
import { ReactNode } from 'react';
|
3
|
+
import { To } from 'react-router-dom';
|
4
|
+
export interface FullWidthCardProps extends CardProps {
|
5
|
+
cardIsButton?: boolean;
|
6
|
+
desc?: ReactNode;
|
7
|
+
href?: string;
|
8
|
+
linkText?: string;
|
9
|
+
media?: string;
|
10
|
+
name: ReactNode;
|
11
|
+
small?: boolean;
|
12
|
+
to?: To;
|
13
|
+
}
|
14
|
+
export declare const FullWidthCard: React.FC<FullWidthCardProps>;
|
15
|
+
//# sourceMappingURL=FullWidthCard.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"FullWidthCard.d.ts","sourceRoot":"","sources":["../../../src/components/FullWidthCard/FullWidthCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAoD,SAAS,EAAgD,MAAM,eAAe,CAAA;AAGzI,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAA;AAC3C,OAAO,EAAE,EAAE,EAAe,MAAM,kBAAkB,CAAA;AAElD,MAAM,WAAW,kBAAmB,SAAQ,SAAS;IACnD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,SAAS,CAAA;IACf,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,EAAE,CAAC,EAAE,EAAE,CAAA;CACR;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA8EtD,CAAA"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
declare const StorybookEntry: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./FullWidthCard").FullWidthCardProps>;
|
2
|
+
declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./FullWidthCard").FullWidthCardProps>;
|
3
|
+
export { Default };
|
4
|
+
export default StorybookEntry;
|
5
|
+
//# sourceMappingURL=FullWidthCard.stories.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"FullWidthCard.stories.d.ts","sourceRoot":"","sources":["../../../src/components/FullWidthCard/FullWidthCard.stories.tsx"],"names":[],"mappings":"AAIA,QAAA,MAAM,cAAc,iJASW,CAAA;AAQ/B,QAAA,MAAM,OAAO,6IAAoB,CAAA;AASjC,OAAO,EAAE,OAAO,EAAE,CAAA;AAGlB,eAAe,cAAc,CAAA"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
declare const StorybookEntry: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./FullWidthCard").FullWidthCardProps>;
|
2
|
+
declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./FullWidthCard").FullWidthCardProps>;
|
3
|
+
export { Default };
|
4
|
+
export default StorybookEntry;
|
5
|
+
//# sourceMappingURL=FullWidthCard.stories.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"FullWidthCard.stories.d.ts","sourceRoot":"","sources":["../../../src/components/FullWidthCard/FullWidthCard.stories.tsx"],"names":[],"mappings":"AAIA,QAAA,MAAM,cAAc,iJASW,CAAA;AAQ/B,QAAA,MAAM,OAAO,6IAAoB,CAAA;AASjC,OAAO,EAAE,OAAO,EAAE,CAAA;AAGlB,eAAe,cAAc,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FullWidthCard/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FullWidthCard/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"PageCard.d.ts","sourceRoot":"","sources":["../../src/components/PageCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAc,eAAe,EAAc,MAAM,eAAe,CAAA;AAEvE,OAAO,EAAc,SAAS,EAAE,MAAM,OAAO,CAAA;AAE7C,OAAO,EAAU,WAAW,EAAE,MAAM,UAAU,CAAA;AAE9C,MAAM,WAAW,aAAc,SAAQ,WAAW;IAChD,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,SAAS,CAAC,EAAE,eAAe,CAAC,WAAW,CAAC,CAAA;CACzC;AAiCD,eAAO,MAAM,QAAQ,mCAAkB,CAAA"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { CardHeaderProps } from '@mui/material';
|
2
|
+
import { ReactNode } from 'react';
|
3
|
+
import { CardExProps } from './CardEx';
|
4
|
+
export interface PageCardProps extends CardExProps {
|
5
|
+
action?: ReactNode;
|
6
|
+
onRefresh?: () => void;
|
7
|
+
subheader?: CardHeaderProps['subheader'];
|
8
|
+
}
|
9
|
+
export declare const PageCard: import("react").FC<PageCardProps>;
|
10
|
+
//# sourceMappingURL=PageCard.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"PageCard.d.ts","sourceRoot":"","sources":["../../src/components/PageCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAc,eAAe,EAAc,MAAM,eAAe,CAAA;AAEvE,OAAO,EAAc,SAAS,EAAE,MAAM,OAAO,CAAA;AAE7C,OAAO,EAAU,WAAW,EAAE,MAAM,UAAU,CAAA;AAE9C,MAAM,WAAW,aAAc,SAAQ,WAAW;IAChD,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,SAAS,CAAC,EAAE,eAAe,CAAC,WAAW,CAAC,CAAA;CACzC;AAiCD,eAAO,MAAM,QAAQ,mCAAkB,CAAA"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
declare const StorybookEntry: Meta;
|
3
|
+
declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./PageCard").PageCardProps>;
|
4
|
+
declare const WithNoOnRefresh: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./PageCard").PageCardProps>;
|
5
|
+
declare const WithRef: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./PageCard").PageCardProps>;
|
6
|
+
export { Default, WithNoOnRefresh, WithRef };
|
7
|
+
export default StorybookEntry;
|
8
|
+
//# sourceMappingURL=PageCard.stories.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"PageCard.stories.d.ts","sourceRoot":"","sources":["../../src/components/PageCard.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAA;AAMhD,QAAA,MAAM,cAAc,EAAE,IAerB,CAAA;AAwBD,QAAA,MAAM,OAAO,mIAAoB,CAAA;AAMjC,QAAA,MAAM,eAAe,mIAAmC,CAAA;AAMxD,QAAA,MAAM,OAAO,mIAAoB,CAAA;AAGjC,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,CAAA;AAG5C,eAAe,cAAc,CAAA"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { Meta } from '@storybook/react';
|
2
|
+
declare const StorybookEntry: Meta;
|
3
|
+
declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./PageCard").PageCardProps>;
|
4
|
+
declare const WithNoOnRefresh: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./PageCard").PageCardProps>;
|
5
|
+
declare const WithRef: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./PageCard").PageCardProps>;
|
6
|
+
export { Default, WithNoOnRefresh, WithRef };
|
7
|
+
export default StorybookEntry;
|
8
|
+
//# sourceMappingURL=PageCard.stories.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"PageCard.stories.d.ts","sourceRoot":"","sources":["../../src/components/PageCard.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAW,MAAM,kBAAkB,CAAA;AAMhD,QAAA,MAAM,cAAc,EAAE,IAerB,CAAA;AAwBD,QAAA,MAAM,OAAO,mIAAoB,CAAA;AAMjC,QAAA,MAAM,eAAe,mIAAmC,CAAA;AAMxD,QAAA,MAAM,OAAO,mIAAoB,CAAA;AAGjC,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,OAAO,EAAE,CAAA;AAG5C,eAAe,cAAc,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SimpleCard.d.ts","sourceRoot":"","sources":["../../../src/components/SimpleCard/SimpleCard.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAA;AAC3C,OAAO,EAAE,EAAE,EAAe,MAAM,kBAAkB,CAAA;AAElD,OAAO,EAAU,WAAW,EAAE,MAAM,WAAW,CAAA;AAE/C,MAAM,WAAW,eAAgB,SAAQ,WAAW;IAClD,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,kBAAkB,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAA;IACtC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,EAAE,CAAC,EAAE,EAAE,CAAA;CACR;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA8EhD,CAAA"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
import { To } from 'react-router-dom';
|
3
|
+
import { CardExProps } from '../CardEx';
|
4
|
+
export interface SimpleCardProps extends CardExProps {
|
5
|
+
desc?: ReactNode;
|
6
|
+
headline?: ReactNode;
|
7
|
+
href?: string;
|
8
|
+
iconImage?: string;
|
9
|
+
interactionVariant?: 'button' | 'card';
|
10
|
+
media?: string;
|
11
|
+
small?: boolean;
|
12
|
+
subtitle?: string;
|
13
|
+
to?: To;
|
14
|
+
}
|
15
|
+
export declare const SimpleCard: React.FC<SimpleCardProps>;
|
16
|
+
//# sourceMappingURL=SimpleCard.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SimpleCard.d.ts","sourceRoot":"","sources":["../../../src/components/SimpleCard/SimpleCard.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAA;AAC3C,OAAO,EAAE,EAAE,EAAe,MAAM,kBAAkB,CAAA;AAElD,OAAO,EAAU,WAAW,EAAE,MAAM,WAAW,CAAA;AAE/C,MAAM,WAAW,eAAgB,SAAQ,WAAW;IAClD,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,kBAAkB,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAA;IACtC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,EAAE,CAAC,EAAE,EAAE,CAAA;CACR;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA8EhD,CAAA"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
declare const StorybookEntry: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./SimpleCard").SimpleCardProps>;
|
2
|
+
declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./SimpleCard").SimpleCardProps>;
|
3
|
+
declare const DefaultWithImage: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./SimpleCard").SimpleCardProps>;
|
4
|
+
declare const VariantButton: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./SimpleCard").SimpleCardProps>;
|
5
|
+
declare const DefaultSmallCard: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./SimpleCard").SimpleCardProps>;
|
6
|
+
declare const DefaultMediaCard: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./SimpleCard").SimpleCardProps>;
|
7
|
+
declare const CardWithAllParameters: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./SimpleCard").SimpleCardProps>;
|
8
|
+
export { CardWithAllParameters, Default, DefaultMediaCard, DefaultSmallCard, DefaultWithImage, VariantButton };
|
9
|
+
export default StorybookEntry;
|
10
|
+
//# sourceMappingURL=SimpleCard.stories.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SimpleCard.stories.d.ts","sourceRoot":"","sources":["../../../src/components/SimpleCard/SimpleCard.stories.tsx"],"names":[],"mappings":"AAOA,QAAA,MAAM,cAAc,2IASQ,CAAA;AAqB5B,QAAA,MAAM,OAAO,uIAAoB,CAAA;AAMjC,QAAA,MAAM,gBAAgB,uIAAoB,CAAA;AAO1C,QAAA,MAAM,aAAa,uIAAoB,CAAA;AAOvC,QAAA,MAAM,gBAAgB,uIAAoB,CAAA;AAO1C,QAAA,MAAM,gBAAgB,uIAAoB,CAAA;AAO1C,QAAA,MAAM,qBAAqB,uIAAoB,CAAA;AAa/C,OAAO,EAAE,qBAAqB,EAAE,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,aAAa,EAAE,CAAA;AAG9G,eAAe,cAAc,CAAA"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
declare const StorybookEntry: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./SimpleCard").SimpleCardProps>;
|
2
|
+
declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./SimpleCard").SimpleCardProps>;
|
3
|
+
declare const DefaultWithImage: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./SimpleCard").SimpleCardProps>;
|
4
|
+
declare const VariantButton: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./SimpleCard").SimpleCardProps>;
|
5
|
+
declare const DefaultSmallCard: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./SimpleCard").SimpleCardProps>;
|
6
|
+
declare const DefaultMediaCard: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./SimpleCard").SimpleCardProps>;
|
7
|
+
declare const CardWithAllParameters: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./SimpleCard").SimpleCardProps>;
|
8
|
+
export { CardWithAllParameters, Default, DefaultMediaCard, DefaultSmallCard, DefaultWithImage, VariantButton };
|
9
|
+
export default StorybookEntry;
|
10
|
+
//# sourceMappingURL=SimpleCard.stories.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SimpleCard.stories.d.ts","sourceRoot":"","sources":["../../../src/components/SimpleCard/SimpleCard.stories.tsx"],"names":[],"mappings":"AAOA,QAAA,MAAM,cAAc,2IASQ,CAAA;AAqB5B,QAAA,MAAM,OAAO,uIAAoB,CAAA;AAMjC,QAAA,MAAM,gBAAgB,uIAAoB,CAAA;AAO1C,QAAA,MAAM,aAAa,uIAAoB,CAAA;AAOvC,QAAA,MAAM,gBAAgB,uIAAoB,CAAA;AAO1C,QAAA,MAAM,gBAAgB,uIAAoB,CAAA;AAO1C,QAAA,MAAM,qBAAqB,uIAAoB,CAAA;AAa/C,OAAO,EAAE,qBAAqB,EAAE,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,aAAa,EAAE,CAAA;AAG9G,eAAe,cAAc,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SimpleCard/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SimpleCard/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SimpleCardGrid.d.ts","sourceRoot":"","sources":["../../../src/components/SimpleCardGrid/SimpleCardGrid.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAQ,SAAS,EAAE,MAAM,eAAe,CAAA;AAE/C,OAAO,EAAc,eAAe,EAAE,MAAM,eAAe,CAAA;AAE3D,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD,KAAK,CAAC,EAAE,eAAe,EAAE,CAAA;CAC1B;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAUxD,CAAA"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { GridProps } from '@mui/material';
|
3
|
+
import { SimpleCardProps } from '../SimpleCard';
|
4
|
+
export interface SimpleCardGridProps extends GridProps {
|
5
|
+
cards?: SimpleCardProps[];
|
6
|
+
}
|
7
|
+
export declare const SimpleCardGrid: React.FC<SimpleCardGridProps>;
|
8
|
+
//# sourceMappingURL=SimpleCardGrid.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SimpleCardGrid.d.ts","sourceRoot":"","sources":["../../../src/components/SimpleCardGrid/SimpleCardGrid.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAQ,SAAS,EAAE,MAAM,eAAe,CAAA;AAE/C,OAAO,EAAc,eAAe,EAAE,MAAM,eAAe,CAAA;AAE3D,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD,KAAK,CAAC,EAAE,eAAe,EAAE,CAAA;CAC1B;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAUxD,CAAA"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
declare const StorybookEntry: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./SimpleCardGrid").SimpleCardGridProps>;
|
2
|
+
declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./SimpleCardGrid").SimpleCardGridProps>;
|
3
|
+
export { Default };
|
4
|
+
export default StorybookEntry;
|
5
|
+
//# sourceMappingURL=SimpleCardGrid.stories.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SimpleCardGrid.stories.d.ts","sourceRoot":"","sources":["../../../src/components/SimpleCardGrid/SimpleCardGrid.stories.tsx"],"names":[],"mappings":"AAMA,QAAA,MAAM,cAAc,mJASY,CAAA;AAQhC,QAAA,MAAM,OAAO,+IAAoB,CAAA;AAkDjC,OAAO,EAAE,OAAO,EAAE,CAAA;AAGlB,eAAe,cAAc,CAAA"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
declare const StorybookEntry: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("./SimpleCardGrid").SimpleCardGridProps>;
|
2
|
+
declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, import("./SimpleCardGrid").SimpleCardGridProps>;
|
3
|
+
export { Default };
|
4
|
+
export default StorybookEntry;
|
5
|
+
//# sourceMappingURL=SimpleCardGrid.stories.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SimpleCardGrid.stories.d.ts","sourceRoot":"","sources":["../../../src/components/SimpleCardGrid/SimpleCardGrid.stories.tsx"],"names":[],"mappings":"AAMA,QAAA,MAAM,cAAc,mJASY,CAAA;AAQhC,QAAA,MAAM,OAAO,+IAAoB,CAAA;AAkDjC,OAAO,EAAE,OAAO,EAAE,CAAA;AAGlB,eAAe,cAAc,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SimpleCardGrid/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SimpleCardGrid/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
|
package/dist/index.d.ts
ADDED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
|
package/dist/index.js
ADDED
@@ -0,0 +1,258 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __defProp = Object.defineProperty;
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
+
var __export = (target, all) => {
|
7
|
+
for (var name in all)
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
9
|
+
};
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
12
|
+
for (let key of __getOwnPropNames(from))
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
15
|
+
}
|
16
|
+
return to;
|
17
|
+
};
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
|
+
|
20
|
+
// src/index.ts
|
21
|
+
var src_exports = {};
|
22
|
+
__export(src_exports, {
|
23
|
+
CardContentEx: () => CardContentEx,
|
24
|
+
CardContentExWithRef: () => CardContentExWithRef,
|
25
|
+
CardEx: () => CardEx,
|
26
|
+
CardExWithRef: () => CardExWithRef,
|
27
|
+
FullWidthCard: () => FullWidthCard,
|
28
|
+
PageCard: () => PageCard,
|
29
|
+
SimpleCard: () => SimpleCard
|
30
|
+
});
|
31
|
+
module.exports = __toCommonJS(src_exports);
|
32
|
+
|
33
|
+
// src/components/CardContentEx.tsx
|
34
|
+
var import_material = require("@mui/material");
|
35
|
+
var import_react_shared = require("@xyo-network/react-shared");
|
36
|
+
var import_react = require("react");
|
37
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
38
|
+
var CardContentExRoot = (0, import_material.styled)(import_material.CardContent, {
|
39
|
+
name: "CardContentEx",
|
40
|
+
shouldForwardProp: (prop) => !["variant", "removePadding"].includes(prop),
|
41
|
+
slot: "Root"
|
42
|
+
})(({ variant, removePadding }) => ({
|
43
|
+
...(variant === "scrollable" || removePadding) && {
|
44
|
+
[":last-child"]: {
|
45
|
+
paddingBottom: 0
|
46
|
+
},
|
47
|
+
overflow: "auto",
|
48
|
+
paddingTop: 0,
|
49
|
+
...removePadding && { padding: 0 }
|
50
|
+
}
|
51
|
+
}));
|
52
|
+
var CardContentExWithRef = (0, import_react.forwardRef)(({ scrollToTop = 0, refreshRef = 0, ...props }, ref) => {
|
53
|
+
const sharedRef = (0, import_react_shared.useShareForwardedRef)(ref, refreshRef);
|
54
|
+
(0, import_react.useEffect)(() => {
|
55
|
+
if (sharedRef && scrollToTop) {
|
56
|
+
sharedRef.current?.scroll({ behavior: "smooth", top: 0 });
|
57
|
+
}
|
58
|
+
}, [sharedRef, scrollToTop]);
|
59
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardContentExRoot, { ref: sharedRef, ...props });
|
60
|
+
});
|
61
|
+
CardContentExWithRef.displayName = "CardContentEx";
|
62
|
+
var CardContentEx = CardContentExWithRef;
|
63
|
+
|
64
|
+
// src/components/CardEx.tsx
|
65
|
+
var import_material2 = require("@mui/material");
|
66
|
+
var import_react_shared2 = require("@xyo-network/react-shared");
|
67
|
+
var import_react2 = require("react");
|
68
|
+
var import_jsx_runtime2 = require("react/jsx-runtime");
|
69
|
+
var CardExWithRef = (0, import_react2.forwardRef)(({ style, gradient, ...props }, ref) => {
|
70
|
+
const { styles } = (0, import_react_shared2.useGradientStyles)();
|
71
|
+
const gradientStyle = gradient === "border" ? styles.border : gradient === "background" ? styles.background : {};
|
72
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
73
|
+
import_material2.Card,
|
74
|
+
{
|
75
|
+
style: {
|
76
|
+
...gradientStyle,
|
77
|
+
...style
|
78
|
+
},
|
79
|
+
ref,
|
80
|
+
...props
|
81
|
+
}
|
82
|
+
);
|
83
|
+
});
|
84
|
+
CardExWithRef.displayName = "CardEx";
|
85
|
+
var CardEx = CardExWithRef;
|
86
|
+
|
87
|
+
// src/components/FullWidthCard/FullWidthCard.tsx
|
88
|
+
var import_icons_material = require("@mui/icons-material");
|
89
|
+
var import_material3 = require("@mui/material");
|
90
|
+
var import_react_flexbox = require("@xylabs/react-flexbox");
|
91
|
+
var import_react_shared3 = require("@xyo-network/react-shared");
|
92
|
+
var import_react3 = require("react");
|
93
|
+
var import_react_router_dom = require("react-router-dom");
|
94
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
95
|
+
var FullWidthCard = ({ cardIsButton, desc, href, media, name, small, to, ...props }) => {
|
96
|
+
const theme = (0, import_material3.useTheme)();
|
97
|
+
const [raised, setRaised] = (0, import_react3.useState)(false);
|
98
|
+
const navigate = (0, import_react_router_dom.useNavigate)();
|
99
|
+
const isMobile = (0, import_react_shared3.useIsMobile)();
|
100
|
+
const localRouteChange = (to2) => {
|
101
|
+
to2 ? navigate(to2) : navigate("/404");
|
102
|
+
};
|
103
|
+
const externalRouteChange = (href2) => {
|
104
|
+
href2 ? window.open(href2) : navigate("/404");
|
105
|
+
};
|
106
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
107
|
+
import_material3.Card,
|
108
|
+
{
|
109
|
+
elevation: raised ? 3 : 0,
|
110
|
+
style: { height: "100%", width: "100%" },
|
111
|
+
...props,
|
112
|
+
sx: {
|
113
|
+
"&:hover": {
|
114
|
+
cursor: "pointer"
|
115
|
+
},
|
116
|
+
backgroundColor: (0, import_material3.alpha)(theme.palette.primary.light, 0.05)
|
117
|
+
},
|
118
|
+
onMouseEnter: () => isMobile ? null : cardIsButton ? setRaised(true) : null,
|
119
|
+
onMouseLeave: () => isMobile ? null : cardIsButton ? setRaised(false) : null,
|
120
|
+
onClick: () => cardIsButton ? href ? externalRouteChange(href) : to ? localRouteChange(to) : navigate("/404") : null,
|
121
|
+
children: [
|
122
|
+
media ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.CardMedia, { component: "img", height: "100", image: media, alt: "" }) : null,
|
123
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.CardContent, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_material3.Grid, { container: true, alignItems: "center", paddingY: 2, paddingX: 2, children: [
|
124
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.Grid, { item: true, xs: 12, md: 6, children: typeof name === "string" ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.Typography, { fontWeight: 700, variant: "h2", textAlign: "left", paddingBottom: 1, children: name }) : name }),
|
125
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.Grid, { item: true, xs: 12, md: 5, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.Typography, { variant: "body1", fontWeight: 400, textAlign: "left", children: desc }) }),
|
126
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.Grid, { item: true, xs: 1, display: isMobile ? "none" : "flex", justifyContent: "center", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.Zoom, { in: raised, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
127
|
+
import_material3.IconButton,
|
128
|
+
{
|
129
|
+
color: "primary",
|
130
|
+
size: small ? "small" : "medium",
|
131
|
+
onClick: () => href ? externalRouteChange(href) : to ? localRouteChange(to) : navigate("/404"),
|
132
|
+
disableFocusRipple: true,
|
133
|
+
disableRipple: true,
|
134
|
+
disableTouchRipple: true,
|
135
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_icons_material.ArrowForwardRounded, { fontSize: small ? "small" : "medium" })
|
136
|
+
}
|
137
|
+
) }) })
|
138
|
+
] }) }),
|
139
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.CardActions, { sx: { display: { md: isMobile ? "flex" : "none" } }, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react_flexbox.FlexGrowCol, { alignItems: "flex-end", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
140
|
+
import_material3.IconButton,
|
141
|
+
{
|
142
|
+
color: "primary",
|
143
|
+
size: small ? "small" : "medium",
|
144
|
+
onClick: () => href ? externalRouteChange(href) : to ? localRouteChange(to) : navigate("/404"),
|
145
|
+
disableFocusRipple: true,
|
146
|
+
disableRipple: true,
|
147
|
+
disableTouchRipple: true,
|
148
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_icons_material.ArrowForwardRounded, { fontSize: small ? "small" : "medium" })
|
149
|
+
}
|
150
|
+
) }) })
|
151
|
+
]
|
152
|
+
}
|
153
|
+
);
|
154
|
+
};
|
155
|
+
|
156
|
+
// src/components/PageCard.tsx
|
157
|
+
var import_icons_material2 = require("@mui/icons-material");
|
158
|
+
var import_material4 = require("@mui/material");
|
159
|
+
var import_react_shared4 = require("@xyo-network/react-shared");
|
160
|
+
var import_react4 = require("react");
|
161
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
162
|
+
var PageCardWithRef = (0, import_react4.forwardRef)(({ subheader, title, onRefresh, children, action, style, ...props }, ref) => {
|
163
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(CardEx, { style: { backgroundColor: "transparent", position: "relative", ...style }, elevation: 0, ref, ...props, children: [
|
164
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
165
|
+
import_material4.CardHeader,
|
166
|
+
{
|
167
|
+
title: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react_shared4.TypographyEx, { variant: "h5", gutterBottom: true, children: title }),
|
168
|
+
subheader: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react_shared4.TypographyEx, { variant: "subtitle1", children: subheader }),
|
169
|
+
action: action ? action : /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_jsx_runtime4.Fragment, { children: onRefresh ? /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_material4.IconButton, { onClick: () => onRefresh?.(), children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_icons_material2.Refresh, {}) }) : null })
|
170
|
+
}
|
171
|
+
),
|
172
|
+
children
|
173
|
+
] });
|
174
|
+
});
|
175
|
+
PageCardWithRef.displayName = "PageCard";
|
176
|
+
var PageCard = PageCardWithRef;
|
177
|
+
|
178
|
+
// src/components/SimpleCard/SimpleCard.tsx
|
179
|
+
var import_icons_material3 = require("@mui/icons-material");
|
180
|
+
var import_material5 = require("@mui/material");
|
181
|
+
var import_react_flexbox2 = require("@xylabs/react-flexbox");
|
182
|
+
var import_react_shared5 = require("@xyo-network/react-shared");
|
183
|
+
var import_react5 = require("react");
|
184
|
+
var import_react_router_dom2 = require("react-router-dom");
|
185
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
186
|
+
var SimpleCard = ({
|
187
|
+
desc,
|
188
|
+
iconImage,
|
189
|
+
interactionVariant = "card",
|
190
|
+
headline,
|
191
|
+
href,
|
192
|
+
media,
|
193
|
+
small,
|
194
|
+
subtitle,
|
195
|
+
sx,
|
196
|
+
to,
|
197
|
+
...props
|
198
|
+
}) => {
|
199
|
+
const theme = (0, import_material5.useTheme)();
|
200
|
+
const [raised, setRaised] = (0, import_react5.useState)(false);
|
201
|
+
const navigate = (0, import_react_router_dom2.useNavigate)();
|
202
|
+
const isMobile = (0, import_react_shared5.useIsMobile)();
|
203
|
+
const localRouteChange = (to2) => {
|
204
|
+
to2 ? navigate(to2) : navigate("/404");
|
205
|
+
};
|
206
|
+
const externalRouteChange = (href2) => {
|
207
|
+
href2 ? window.open(href2) : navigate("/404");
|
208
|
+
};
|
209
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
210
|
+
CardEx,
|
211
|
+
{
|
212
|
+
elevation: raised ? 3 : 0,
|
213
|
+
sx: {
|
214
|
+
"&:hover": {
|
215
|
+
cursor: interactionVariant == "button" ? "pointer" : null
|
216
|
+
},
|
217
|
+
backgroundColor: (0, import_material5.alpha)(theme.palette.primary.light, 0.05),
|
218
|
+
...sx
|
219
|
+
},
|
220
|
+
onMouseEnter: () => isMobile ? null : interactionVariant == "button" ? setRaised(true) : null,
|
221
|
+
onMouseLeave: () => isMobile ? null : interactionVariant == "button" ? setRaised(false) : null,
|
222
|
+
onClick: () => interactionVariant == "button" ? href ? externalRouteChange(href) : to ? localRouteChange(to) : navigate("/404") : null,
|
223
|
+
...props,
|
224
|
+
children: [
|
225
|
+
media ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_material5.CardMedia, { component: "img", height: "100", image: media, alt: "" }) : null,
|
226
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_material5.CardContent, { sx: { height: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_react_flexbox2.FlexCol, { width: "100%", alignItems: "flex-start", children: [
|
227
|
+
iconImage ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("img", { src: iconImage, height: "40px", style: { paddingBottom: "8px" } }) : null,
|
228
|
+
typeof headline === "string" ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_material5.Typography, { variant: small ? "body1" : "h6", textAlign: "left", gutterBottom: true, children: headline }) : headline,
|
229
|
+
subtitle ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_material5.Typography, { variant: "subtitle2", textAlign: "left", gutterBottom: true, children: subtitle }) : null,
|
230
|
+
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_material5.Typography, { variant: small ? "caption" : "body1", textAlign: "left", gutterBottom: true, children: desc })
|
231
|
+
] }) }),
|
232
|
+
interactionVariant == "button" ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_material5.CardActions, { children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react_flexbox2.FlexGrowCol, { alignItems: "flex-end", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
233
|
+
import_material5.IconButton,
|
234
|
+
{
|
235
|
+
color: raised ? "secondary" : "primary",
|
236
|
+
size: small ? "small" : "medium",
|
237
|
+
onClick: () => href ? externalRouteChange(href) : to ? localRouteChange(to) : navigate("/404"),
|
238
|
+
disableFocusRipple: true,
|
239
|
+
disableRipple: true,
|
240
|
+
disableTouchRipple: true,
|
241
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_icons_material3.ArrowForwardRounded, { fontSize: small ? "small" : "medium" })
|
242
|
+
}
|
243
|
+
) }) }) : null
|
244
|
+
]
|
245
|
+
}
|
246
|
+
);
|
247
|
+
};
|
248
|
+
// Annotate the CommonJS export names for ESM import in node:
|
249
|
+
0 && (module.exports = {
|
250
|
+
CardContentEx,
|
251
|
+
CardContentExWithRef,
|
252
|
+
CardEx,
|
253
|
+
CardExWithRef,
|
254
|
+
FullWidthCard,
|
255
|
+
PageCard,
|
256
|
+
SimpleCard
|
257
|
+
});
|
258
|
+
//# sourceMappingURL=index.js.map
|