@xyo-network/react-card 4.4.2 → 4.4.4
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/browser/index.d.ts +52 -2
- package/package.json +12 -12
- package/dist/browser/components/CardContentEx.d.ts +0 -11
- package/dist/browser/components/CardContentEx.d.ts.map +0 -1
- package/dist/browser/components/CardEx.d.ts +0 -8
- package/dist/browser/components/CardEx.d.ts.map +0 -1
- package/dist/browser/components/FullWidthCard/FullWidthCard.d.ts +0 -16
- package/dist/browser/components/FullWidthCard/FullWidthCard.d.ts.map +0 -1
- package/dist/browser/components/FullWidthCard/index.d.ts +0 -2
- package/dist/browser/components/FullWidthCard/index.d.ts.map +0 -1
- package/dist/browser/components/PageCard.d.ts +0 -11
- package/dist/browser/components/PageCard.d.ts.map +0 -1
- package/dist/browser/components/SimpleCard/SimpleCard.d.ts +0 -17
- package/dist/browser/components/SimpleCard/SimpleCard.d.ts.map +0 -1
- package/dist/browser/components/SimpleCard/index.d.ts +0 -2
- package/dist/browser/components/SimpleCard/index.d.ts.map +0 -1
- package/dist/browser/components/SimpleCardGrid/SimpleCardGrid.d.ts +0 -8
- package/dist/browser/components/SimpleCardGrid/SimpleCardGrid.d.ts.map +0 -1
- package/dist/browser/components/SimpleCardGrid/index.d.ts +0 -2
- package/dist/browser/components/SimpleCardGrid/index.d.ts.map +0 -1
- package/dist/browser/components/index.d.ts +0 -6
- package/dist/browser/components/index.d.ts.map +0 -1
- package/dist/browser/index.d.ts.map +0 -1
package/dist/browser/index.d.ts
CHANGED
@@ -1,2 +1,52 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
import { CardContentProps, CardProps, CardHeaderProps } from '@mui/material';
|
2
|
+
import React, { ReactNode } from 'react';
|
3
|
+
import { To } from 'react-router-dom';
|
4
|
+
|
5
|
+
type CardContentExProps = CardContentProps & {
|
6
|
+
refreshRef?: number;
|
7
|
+
removePadding?: boolean;
|
8
|
+
scrollToTop?: number;
|
9
|
+
variant?: 'scrollable' | 'normal';
|
10
|
+
};
|
11
|
+
declare const CardContentExWithRef: React.ForwardRefExoticComponent<Omit<CardContentExProps, "ref"> & React.RefAttributes<HTMLDivElement | null>>;
|
12
|
+
declare const CardContentEx: React.ForwardRefExoticComponent<Omit<CardContentExProps, "ref"> & React.RefAttributes<HTMLDivElement | null>>;
|
13
|
+
|
14
|
+
interface CardExProps extends CardProps {
|
15
|
+
gradient?: 'border' | 'background';
|
16
|
+
}
|
17
|
+
declare const CardExWithRef: React.ForwardRefExoticComponent<Omit<CardExProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
18
|
+
declare const CardEx: React.ForwardRefExoticComponent<Omit<CardExProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
19
|
+
|
20
|
+
interface FullWidthCardProps extends CardProps {
|
21
|
+
cardIsButton?: boolean;
|
22
|
+
desc?: ReactNode;
|
23
|
+
href?: string;
|
24
|
+
linkText?: string;
|
25
|
+
media?: string;
|
26
|
+
name: ReactNode;
|
27
|
+
small?: boolean;
|
28
|
+
to?: To;
|
29
|
+
}
|
30
|
+
declare const FullWidthCard: React.FC<FullWidthCardProps>;
|
31
|
+
|
32
|
+
interface PageCardProps extends CardExProps {
|
33
|
+
action?: ReactNode;
|
34
|
+
onRefresh?: () => void;
|
35
|
+
subheader?: CardHeaderProps['subheader'];
|
36
|
+
}
|
37
|
+
declare const PageCard: React.ForwardRefExoticComponent<Omit<PageCardProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
38
|
+
|
39
|
+
interface SimpleCardProps extends CardExProps {
|
40
|
+
desc?: ReactNode;
|
41
|
+
headline?: ReactNode;
|
42
|
+
href?: string;
|
43
|
+
iconImage?: string;
|
44
|
+
interactionVariant?: 'button' | 'card';
|
45
|
+
media?: string;
|
46
|
+
small?: boolean;
|
47
|
+
subtitle?: string;
|
48
|
+
to?: To;
|
49
|
+
}
|
50
|
+
declare const SimpleCard: React.FC<SimpleCardProps>;
|
51
|
+
|
52
|
+
export { CardContentEx, type CardContentExProps, CardContentExWithRef, CardEx, type CardExProps, CardExWithRef, FullWidthCard, type FullWidthCardProps, PageCard, type PageCardProps, SimpleCard, type SimpleCardProps };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@xyo-network/react-card",
|
3
|
-
"version": "4.4.
|
3
|
+
"version": "4.4.4",
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
5
5
|
"keywords": [
|
6
6
|
"xyo",
|
@@ -43,21 +43,21 @@
|
|
43
43
|
"lint-pkg": "npmPkgJsonLint ."
|
44
44
|
},
|
45
45
|
"dependencies": {
|
46
|
-
"@xylabs/react-flexbox": "^5.3.
|
47
|
-
"@xyo-network/react-shared": "^4.4.
|
48
|
-
"react-router-dom": "^7.1.
|
46
|
+
"@xylabs/react-flexbox": "^5.3.23",
|
47
|
+
"@xyo-network/react-shared": "^4.4.4",
|
48
|
+
"react-router-dom": "^7.1.5"
|
49
49
|
},
|
50
50
|
"devDependencies": {
|
51
|
-
"@mui/icons-material": "^6.4.
|
52
|
-
"@mui/material": "^6.4.
|
53
|
-
"@mui/styles": "^6.4.
|
54
|
-
"@storybook/react": "^8.5.
|
55
|
-
"@xylabs/ts-scripts-yarn3": "^
|
56
|
-
"@xylabs/tsconfig-react": "^
|
57
|
-
"@xyo-network/react-storybook": "^4.4.
|
51
|
+
"@mui/icons-material": "^6.4.4",
|
52
|
+
"@mui/material": "^6.4.4",
|
53
|
+
"@mui/styles": "^6.4.4",
|
54
|
+
"@storybook/react": "^8.5.5",
|
55
|
+
"@xylabs/ts-scripts-yarn3": "^5.0.24",
|
56
|
+
"@xylabs/tsconfig-react": "^5.0.24",
|
57
|
+
"@xyo-network/react-storybook": "^4.4.4",
|
58
58
|
"react": "^18.3.1",
|
59
59
|
"react-dom": "^18.3.1",
|
60
|
-
"storybook": "^8.5.
|
60
|
+
"storybook": "^8.5.5",
|
61
61
|
"typescript": "^5.7.3"
|
62
62
|
},
|
63
63
|
"peerDependencies": {
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import type { CardContentProps } from '@mui/material';
|
2
|
-
import React from 'react';
|
3
|
-
export type CardContentExProps = CardContentProps & {
|
4
|
-
refreshRef?: number;
|
5
|
-
removePadding?: boolean;
|
6
|
-
scrollToTop?: number;
|
7
|
-
variant?: 'scrollable' | 'normal';
|
8
|
-
};
|
9
|
-
export declare const CardContentExWithRef: React.ForwardRefExoticComponent<Omit<CardContentExProps, "ref"> & React.RefAttributes<HTMLDivElement | null>>;
|
10
|
-
export declare const CardContentEx: React.ForwardRefExoticComponent<Omit<CardContentExProps, "ref"> & React.RefAttributes<HTMLDivElement | null>>;
|
11
|
-
//# sourceMappingURL=CardContentEx.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"CardContentEx.d.ts","sourceRoot":"","sources":["../../../src/components/CardContentEx.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAGrD,OAAO,KAAgC,MAAM,OAAO,CAAA;AAepD,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,+GAY/B,CAAA;AAIF,eAAO,MAAM,aAAa,+GAAuB,CAAA"}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import type { CardProps } from '@mui/material';
|
2
|
-
import React from 'react';
|
3
|
-
export interface CardExProps extends CardProps {
|
4
|
-
gradient?: 'border' | 'background';
|
5
|
-
}
|
6
|
-
export declare const CardExWithRef: React.ForwardRefExoticComponent<Omit<CardExProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
7
|
-
export declare const CardEx: React.ForwardRefExoticComponent<Omit<CardExProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
8
|
-
//# sourceMappingURL=CardEx.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"CardEx.d.ts","sourceRoot":"","sources":["../../../src/components/CardEx.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAG9C,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,QAAQ,CAAC,EAAE,QAAQ,GAAG,YAAY,CAAA;CACnC;AAED,eAAO,MAAM,aAAa,iGAoBxB,CAAA;AAIF,eAAO,MAAM,MAAM,iGAAgB,CAAA"}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import type { CardProps } from '@mui/material';
|
2
|
-
import type { ReactNode } from 'react';
|
3
|
-
import React from 'react';
|
4
|
-
import type { To } from 'react-router-dom';
|
5
|
-
export interface FullWidthCardProps extends CardProps {
|
6
|
-
cardIsButton?: boolean;
|
7
|
-
desc?: ReactNode;
|
8
|
-
href?: string;
|
9
|
-
linkText?: string;
|
10
|
-
media?: string;
|
11
|
-
name: ReactNode;
|
12
|
-
small?: boolean;
|
13
|
-
to?: To;
|
14
|
-
}
|
15
|
-
export declare const FullWidthCard: React.FC<FullWidthCardProps>;
|
16
|
-
//# sourceMappingURL=FullWidthCard.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"FullWidthCard.d.ts","sourceRoot":"","sources":["../../../../src/components/FullWidthCard/FullWidthCard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAM9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAmB,MAAM,OAAO,CAAA;AACvC,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AAG1C,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,CA6GtD,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/FullWidthCard/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA"}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import type { CardHeaderProps } from '@mui/material';
|
2
|
-
import type { ReactNode } from 'react';
|
3
|
-
import React from 'react';
|
4
|
-
import type { CardExProps } from './CardEx.tsx';
|
5
|
-
export interface PageCardProps extends CardExProps {
|
6
|
-
action?: ReactNode;
|
7
|
-
onRefresh?: () => void;
|
8
|
-
subheader?: CardHeaderProps['subheader'];
|
9
|
-
}
|
10
|
-
export declare const PageCard: React.ForwardRefExoticComponent<Omit<PageCardProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
11
|
-
//# sourceMappingURL=PageCard.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"PageCard.d.ts","sourceRoot":"","sources":["../../../src/components/PageCard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAGpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAG/C,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;AA0CD,eAAO,MAAM,QAAQ,mGAAkB,CAAA"}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
import type { ReactNode } from 'react';
|
2
|
-
import React from 'react';
|
3
|
-
import type { To } from 'react-router-dom';
|
4
|
-
import type { CardExProps } from '../CardEx.tsx';
|
5
|
-
export interface SimpleCardProps extends CardExProps {
|
6
|
-
desc?: ReactNode;
|
7
|
-
headline?: ReactNode;
|
8
|
-
href?: string;
|
9
|
-
iconImage?: string;
|
10
|
-
interactionVariant?: 'button' | 'card';
|
11
|
-
media?: string;
|
12
|
-
small?: boolean;
|
13
|
-
subtitle?: string;
|
14
|
-
to?: To;
|
15
|
-
}
|
16
|
-
export declare const SimpleCard: React.FC<SimpleCardProps>;
|
17
|
-
//# sourceMappingURL=SimpleCard.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"SimpleCard.d.ts","sourceRoot":"","sources":["../../../../src/components/SimpleCard/SimpleCard.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAmB,MAAM,OAAO,CAAA;AACvC,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AAG1C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAGhD,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,CA8GhD,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SimpleCard/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import type { GridProps } from '@mui/material';
|
2
|
-
import React from 'react';
|
3
|
-
import type { SimpleCardProps } from '../SimpleCard/index.ts';
|
4
|
-
export interface SimpleCardGridProps extends GridProps {
|
5
|
-
cards?: SimpleCardProps[];
|
6
|
-
}
|
7
|
-
export declare const SimpleCardGrid: React.FC<SimpleCardGridProps>;
|
8
|
-
//# sourceMappingURL=SimpleCardGrid.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"SimpleCardGrid.d.ts","sourceRoot":"","sources":["../../../../src/components/SimpleCardGrid/SimpleCardGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAG7D,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD,KAAK,CAAC,EAAE,eAAe,EAAE,CAAA;CAC1B;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAaxD,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SimpleCardGrid/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,cAAc,CAAA;AAC5B,cAAc,0BAA0B,CAAA;AACxC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,uBAAuB,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA"}
|