@xyo-network/react-card 6.1.4 → 6.2.0

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.
@@ -1,73 +1,2 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { CardContentProps, CardProps, CardHeaderProps } from '@mui/material';
3
- import React, { ReactNode } from 'react';
4
- import { To } from 'react-router-dom';
5
-
6
- type CardContentExProps = CardContentProps & {
7
- refreshRef?: number;
8
- removePadding?: boolean;
9
- scrollToTop?: number;
10
- variant?: 'scrollable' | 'normal';
11
- };
12
- declare const CardContentExWithRef: {
13
- ({ ref, scrollToTop, refreshRef, ...props }: CardContentExProps & {
14
- ref?: React.RefObject<HTMLDivElement | null>;
15
- }): react_jsx_runtime.JSX.Element;
16
- displayName: string;
17
- };
18
- declare const CardContentEx: {
19
- ({ ref, scrollToTop, refreshRef, ...props }: CardContentExProps & {
20
- ref?: React.RefObject<HTMLDivElement | null>;
21
- }): react_jsx_runtime.JSX.Element;
22
- displayName: string;
23
- };
24
-
25
- interface CardExProps extends CardProps {
26
- gradient?: 'border' | 'background';
27
- }
28
- declare const CardExWithRef: {
29
- ({ ref, style, gradient, ...props }: CardExProps): react_jsx_runtime.JSX.Element;
30
- displayName: string;
31
- };
32
- declare const CardEx: {
33
- ({ ref, style, gradient, ...props }: CardExProps): react_jsx_runtime.JSX.Element;
34
- displayName: string;
35
- };
36
-
37
- interface FullWidthCardProps extends CardProps {
38
- cardIsButton?: boolean;
39
- desc?: ReactNode;
40
- href?: string;
41
- linkText?: string;
42
- media?: string;
43
- name: ReactNode;
44
- small?: boolean;
45
- to?: To;
46
- }
47
- declare const FullWidthCard: React.FC<FullWidthCardProps>;
48
-
49
- interface PageCardProps extends CardExProps {
50
- action?: ReactNode;
51
- onRefresh?: () => void;
52
- subheader?: CardHeaderProps['subheader'];
53
- }
54
- declare const PageCard: {
55
- ({ ref, subheader, title, onRefresh, children, action, style, ...props }: PageCardProps): react_jsx_runtime.JSX.Element;
56
- displayName: string;
57
- };
58
-
59
- interface SimpleCardProps extends CardExProps {
60
- desc?: ReactNode;
61
- headline?: ReactNode;
62
- href?: string;
63
- iconImage?: string;
64
- interactionVariant?: 'button' | 'card';
65
- media?: string;
66
- small?: boolean;
67
- subtitle?: string;
68
- to?: To;
69
- }
70
- declare const SimpleCard: React.FC<SimpleCardProps>;
71
-
72
- export { CardContentEx, CardContentExWithRef, CardEx, CardExWithRef, FullWidthCard, PageCard, SimpleCard };
73
- export type { CardContentExProps, CardExProps, FullWidthCardProps, PageCardProps, SimpleCardProps };
1
+ export * from './components/index.ts';
2
+ //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/react-card",
3
- "version": "6.1.4",
3
+ "version": "6.2.0",
4
4
  "description": "Common React library for all XYO projects that use React",
5
5
  "keywords": [
6
6
  "xyo",
@@ -39,21 +39,21 @@
39
39
  "module": "dist/browser/index.mjs",
40
40
  "types": "dist/browser/index.d.ts",
41
41
  "dependencies": {
42
- "@xylabs/react-flexbox": "^6.3.13",
43
- "@xylabs/react-theme": "^6.3.13",
44
- "@xyo-network/react-shared": "^6.1.4",
45
- "react-router-dom": "^7.7.0"
42
+ "@xylabs/react-flexbox": "^6.4.0",
43
+ "@xylabs/react-theme": "^6.4.0",
44
+ "@xyo-network/react-shared": "^6.2.0",
45
+ "react-router-dom": "^7.7.1"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@mui/icons-material": "^7.2.0",
49
49
  "@mui/material": "^7.2.0",
50
50
  "@storybook/react-vite": "^9.0.18",
51
51
  "@types/react": "^19.1.8",
52
- "@xylabs/ts-scripts-yarn3": "next",
53
- "@xylabs/tsconfig-react": "next",
54
- "@xyo-network/react-storybook": "^6.1.4",
55
- "react": "^19.1.0",
56
- "react-dom": "^19.1.0",
52
+ "@xylabs/ts-scripts-yarn3": "^7.0.1",
53
+ "@xylabs/tsconfig-react": "^7.0.1",
54
+ "@xyo-network/react-storybook": "^6.2.0",
55
+ "react": "^19.1.1",
56
+ "react-dom": "^19.1.1",
57
57
  "storybook": "^9.0.18",
58
58
  "typescript": "^5.8.3"
59
59
  },
@@ -1 +1 @@
1
- import type {} from '@mui/material/themeCssVarsAugmentation'
1
+ import '@mui/material/themeCssVarsAugmentation'