@xyo-network/react-card 10.0.5 → 10.0.6
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 +1 -1
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.mjs +2 -367
- package/dist/browser/index.mjs.map +4 -4
- package/package.json +43 -11
- package/dist/browser/components/CardContentEx.d.ts +0 -21
- package/dist/browser/components/CardContentEx.d.ts.map +0 -1
- package/dist/browser/components/CardEx.d.ts +0 -14
- 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 -14
- 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
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from '
|
|
1
|
+
export * from '@xyo-network/react-sdk/card';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,cAAc,6BAA6B,CAAA"}
|
package/dist/browser/index.mjs
CHANGED
|
@@ -1,368 +1,3 @@
|
|
|
1
|
-
// src/
|
|
2
|
-
|
|
3
|
-
import { useShareForwardedRef } from "@xyo-network/react-shared";
|
|
4
|
-
import { useEffect } from "react";
|
|
5
|
-
import { jsx } from "react/jsx-runtime";
|
|
6
|
-
var CardContentExRoot = styled(CardContent, {
|
|
7
|
-
name: "CardContentEx",
|
|
8
|
-
shouldForwardProp: (prop) => !["variant", "removePadding"].includes(prop),
|
|
9
|
-
slot: "Root"
|
|
10
|
-
})(({ variant, removePadding }) => ({
|
|
11
|
-
...(variant === "scrollable" || removePadding) && {
|
|
12
|
-
[":last-child"]: { paddingBottom: 0 },
|
|
13
|
-
overflow: "auto",
|
|
14
|
-
paddingTop: 0,
|
|
15
|
-
...removePadding && { padding: 0 }
|
|
16
|
-
}
|
|
17
|
-
}));
|
|
18
|
-
var CardContentExWithRef = ({
|
|
19
|
-
ref,
|
|
20
|
-
scrollToTop = 0,
|
|
21
|
-
refreshRef = 0,
|
|
22
|
-
...props
|
|
23
|
-
}) => {
|
|
24
|
-
const sharedRef = useShareForwardedRef(ref, refreshRef);
|
|
25
|
-
useEffect(() => {
|
|
26
|
-
if (sharedRef && scrollToTop) {
|
|
27
|
-
sharedRef.current?.scroll({ behavior: "smooth", top: 0 });
|
|
28
|
-
}
|
|
29
|
-
}, [sharedRef, scrollToTop]);
|
|
30
|
-
return /* @__PURE__ */ jsx(CardContentExRoot, { ref: sharedRef, ...props });
|
|
31
|
-
};
|
|
32
|
-
CardContentExWithRef.displayName = "CardContentEx";
|
|
33
|
-
var CardContentEx = CardContentExWithRef;
|
|
34
|
-
|
|
35
|
-
// src/components/CardEx.tsx
|
|
36
|
-
import { Card } from "@mui/material";
|
|
37
|
-
import { useGradientStyles } from "@xyo-network/react-shared";
|
|
38
|
-
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
39
|
-
var CardExWithRef = ({
|
|
40
|
-
ref,
|
|
41
|
-
style,
|
|
42
|
-
gradient,
|
|
43
|
-
...props
|
|
44
|
-
}) => {
|
|
45
|
-
const styles = useGradientStyles();
|
|
46
|
-
const gradientStyle = gradient === "border" ? styles.border : gradient === "background" ? styles.background : {};
|
|
47
|
-
return /* @__PURE__ */ jsx2(
|
|
48
|
-
Card,
|
|
49
|
-
{
|
|
50
|
-
style: {
|
|
51
|
-
...gradientStyle,
|
|
52
|
-
...style
|
|
53
|
-
},
|
|
54
|
-
ref,
|
|
55
|
-
...props
|
|
56
|
-
}
|
|
57
|
-
);
|
|
58
|
-
};
|
|
59
|
-
CardExWithRef.displayName = "CardEx";
|
|
60
|
-
var CardEx = CardExWithRef;
|
|
61
|
-
|
|
62
|
-
// src/components/FullWidthCard/FullWidthCard.tsx
|
|
63
|
-
import { FlexGrowCol } from "@ariestools/sdk-react/flexbox";
|
|
64
|
-
import { alphaCss, useIsSmall } from "@ariestools/sdk-react/theme";
|
|
65
|
-
import { ArrowForwardRounded as ArrowForwardRoundedIcon } from "@mui/icons-material";
|
|
66
|
-
import {
|
|
67
|
-
Card as Card2,
|
|
68
|
-
CardActions,
|
|
69
|
-
CardContent as CardContent2,
|
|
70
|
-
CardMedia,
|
|
71
|
-
Grid,
|
|
72
|
-
IconButton,
|
|
73
|
-
Typography,
|
|
74
|
-
useTheme,
|
|
75
|
-
Zoom
|
|
76
|
-
} from "@mui/material";
|
|
77
|
-
import { useState } from "react";
|
|
78
|
-
import { useNavigate } from "react-router-dom";
|
|
79
|
-
import { jsx as jsx3, jsxs } from "react/jsx-runtime";
|
|
80
|
-
var FullWidthCard = ({
|
|
81
|
-
cardIsButton,
|
|
82
|
-
desc,
|
|
83
|
-
href,
|
|
84
|
-
media,
|
|
85
|
-
name,
|
|
86
|
-
small,
|
|
87
|
-
to,
|
|
88
|
-
...props
|
|
89
|
-
}) => {
|
|
90
|
-
const theme = useTheme();
|
|
91
|
-
const [raised, setRaised] = useState(false);
|
|
92
|
-
const navigate = useNavigate();
|
|
93
|
-
const isMobile = useIsSmall();
|
|
94
|
-
const localRouteChange = (to2) => {
|
|
95
|
-
to2 ? void navigate(to2) : void navigate("/404");
|
|
96
|
-
};
|
|
97
|
-
const externalRouteChange = (href2) => {
|
|
98
|
-
href2 ? void window.open(href2) : void navigate("/404");
|
|
99
|
-
};
|
|
100
|
-
return /* @__PURE__ */ jsxs(
|
|
101
|
-
Card2,
|
|
102
|
-
{
|
|
103
|
-
elevation: raised ? 3 : 0,
|
|
104
|
-
style: { height: "100%", width: "100%" },
|
|
105
|
-
...props,
|
|
106
|
-
sx: {
|
|
107
|
-
"&:hover": { cursor: "pointer" },
|
|
108
|
-
"backgroundColor": alphaCss(theme.vars.palette.primary.light, 0.05)
|
|
109
|
-
},
|
|
110
|
-
onMouseEnter: () => isMobile ? null : cardIsButton ? setRaised(true) : null,
|
|
111
|
-
onMouseLeave: () => isMobile ? null : cardIsButton ? setRaised(false) : null,
|
|
112
|
-
onClick: () => cardIsButton ? href ? externalRouteChange(href) : to ? localRouteChange(to) : navigate("/404") : null,
|
|
113
|
-
children: [
|
|
114
|
-
media ? /* @__PURE__ */ jsx3(
|
|
115
|
-
CardMedia,
|
|
116
|
-
{
|
|
117
|
-
component: "img",
|
|
118
|
-
image: media,
|
|
119
|
-
alt: "",
|
|
120
|
-
sx: { height: "100" }
|
|
121
|
-
}
|
|
122
|
-
) : null,
|
|
123
|
-
/* @__PURE__ */ jsx3(CardContent2, { children: /* @__PURE__ */ jsxs(
|
|
124
|
-
Grid,
|
|
125
|
-
{
|
|
126
|
-
container: true,
|
|
127
|
-
sx: {
|
|
128
|
-
alignItems: "center",
|
|
129
|
-
paddingY: 2,
|
|
130
|
-
paddingX: 2
|
|
131
|
-
},
|
|
132
|
-
children: [
|
|
133
|
-
/* @__PURE__ */ jsx3(Grid, { size: { xs: 12, md: 6 }, children: typeof name === "string" ? /* @__PURE__ */ jsx3(
|
|
134
|
-
Typography,
|
|
135
|
-
{
|
|
136
|
-
variant: "h2",
|
|
137
|
-
sx: {
|
|
138
|
-
fontWeight: 700,
|
|
139
|
-
textAlign: "left",
|
|
140
|
-
paddingBottom: 1
|
|
141
|
-
},
|
|
142
|
-
children: name
|
|
143
|
-
}
|
|
144
|
-
) : name }),
|
|
145
|
-
/* @__PURE__ */ jsx3(Grid, { size: { xs: 12, md: 5 }, children: /* @__PURE__ */ jsx3(
|
|
146
|
-
Typography,
|
|
147
|
-
{
|
|
148
|
-
variant: "body1",
|
|
149
|
-
sx: {
|
|
150
|
-
fontWeight: 400,
|
|
151
|
-
textAlign: "left"
|
|
152
|
-
},
|
|
153
|
-
children: desc
|
|
154
|
-
}
|
|
155
|
-
) }),
|
|
156
|
-
/* @__PURE__ */ jsx3(
|
|
157
|
-
Grid,
|
|
158
|
-
{
|
|
159
|
-
size: { xs: 1 },
|
|
160
|
-
sx: {
|
|
161
|
-
display: isMobile ? "none" : "flex",
|
|
162
|
-
justifyContent: "center"
|
|
163
|
-
},
|
|
164
|
-
children: /* @__PURE__ */ jsx3(Zoom, { in: raised, children: /* @__PURE__ */ jsx3(
|
|
165
|
-
IconButton,
|
|
166
|
-
{
|
|
167
|
-
size: small ? "small" : "medium",
|
|
168
|
-
onClick: () => href ? externalRouteChange(href) : to ? localRouteChange(to) : navigate("/404"),
|
|
169
|
-
disableFocusRipple: true,
|
|
170
|
-
disableRipple: true,
|
|
171
|
-
disableTouchRipple: true,
|
|
172
|
-
sx: { color: "primary" },
|
|
173
|
-
children: /* @__PURE__ */ jsx3(ArrowForwardRoundedIcon, { sx: { fontSize: small ? "small" : "medium" } })
|
|
174
|
-
}
|
|
175
|
-
) })
|
|
176
|
-
}
|
|
177
|
-
)
|
|
178
|
-
]
|
|
179
|
-
}
|
|
180
|
-
) }),
|
|
181
|
-
/* @__PURE__ */ jsx3(CardActions, { sx: { display: { md: isMobile ? "flex" : "none" } }, children: /* @__PURE__ */ jsx3(FlexGrowCol, { sx: { alignItems: "flex-end" }, children: /* @__PURE__ */ jsx3(
|
|
182
|
-
IconButton,
|
|
183
|
-
{
|
|
184
|
-
size: small ? "small" : "medium",
|
|
185
|
-
onClick: () => href ? externalRouteChange(href) : to ? localRouteChange(to) : navigate("/404"),
|
|
186
|
-
disableFocusRipple: true,
|
|
187
|
-
disableRipple: true,
|
|
188
|
-
disableTouchRipple: true,
|
|
189
|
-
sx: { color: "primary" },
|
|
190
|
-
children: /* @__PURE__ */ jsx3(ArrowForwardRoundedIcon, { sx: { fontSize: small ? "small" : "medium" } })
|
|
191
|
-
}
|
|
192
|
-
) }) })
|
|
193
|
-
]
|
|
194
|
-
}
|
|
195
|
-
);
|
|
196
|
-
};
|
|
197
|
-
|
|
198
|
-
// src/components/PageCard.tsx
|
|
199
|
-
import { Refresh as RefreshIcon } from "@mui/icons-material";
|
|
200
|
-
import { CardHeader, IconButton as IconButton2 } from "@mui/material";
|
|
201
|
-
import { TypographyEx } from "@xyo-network/react-shared";
|
|
202
|
-
import { Fragment, jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
203
|
-
var PageCardWithRef = ({
|
|
204
|
-
ref,
|
|
205
|
-
subheader,
|
|
206
|
-
title,
|
|
207
|
-
onRefresh,
|
|
208
|
-
children,
|
|
209
|
-
action,
|
|
210
|
-
style,
|
|
211
|
-
...props
|
|
212
|
-
}) => {
|
|
213
|
-
return /* @__PURE__ */ jsxs2(
|
|
214
|
-
CardEx,
|
|
215
|
-
{
|
|
216
|
-
style: {
|
|
217
|
-
backgroundColor: "transparent",
|
|
218
|
-
position: "relative",
|
|
219
|
-
...style
|
|
220
|
-
},
|
|
221
|
-
elevation: 0,
|
|
222
|
-
ref,
|
|
223
|
-
...props,
|
|
224
|
-
children: [
|
|
225
|
-
/* @__PURE__ */ jsx4(
|
|
226
|
-
CardHeader,
|
|
227
|
-
{
|
|
228
|
-
title: /* @__PURE__ */ jsx4(TypographyEx, { variant: "h5", gutterBottom: true, children: title }),
|
|
229
|
-
subheader: /* @__PURE__ */ jsx4(TypographyEx, { variant: "subtitle1", children: subheader }),
|
|
230
|
-
action: action ?? /* @__PURE__ */ jsx4(Fragment, { children: onRefresh ? /* @__PURE__ */ jsx4(IconButton2, { onClick: () => onRefresh?.(), children: /* @__PURE__ */ jsx4(RefreshIcon, {}) }) : null })
|
|
231
|
-
}
|
|
232
|
-
),
|
|
233
|
-
children
|
|
234
|
-
]
|
|
235
|
-
}
|
|
236
|
-
);
|
|
237
|
-
};
|
|
238
|
-
PageCardWithRef.displayName = "PageCard";
|
|
239
|
-
var PageCard = PageCardWithRef;
|
|
240
|
-
|
|
241
|
-
// src/components/SimpleCard/SimpleCard.tsx
|
|
242
|
-
import { FlexCol, FlexGrowCol as FlexGrowCol2 } from "@ariestools/sdk-react/flexbox";
|
|
243
|
-
import { alphaCss as alphaCss2, useIsSmall as useIsSmall2 } from "@ariestools/sdk-react/theme";
|
|
244
|
-
import { ArrowForwardRounded as ArrowForwardRoundedIcon2 } from "@mui/icons-material";
|
|
245
|
-
import {
|
|
246
|
-
CardActions as CardActions2,
|
|
247
|
-
CardContent as CardContent3,
|
|
248
|
-
CardMedia as CardMedia2,
|
|
249
|
-
IconButton as IconButton3,
|
|
250
|
-
Typography as Typography2,
|
|
251
|
-
useTheme as useTheme2
|
|
252
|
-
} from "@mui/material";
|
|
253
|
-
import { useState as useState2 } from "react";
|
|
254
|
-
import { useNavigate as useNavigate2 } from "react-router-dom";
|
|
255
|
-
import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
256
|
-
var SimpleCard = ({
|
|
257
|
-
children,
|
|
258
|
-
desc,
|
|
259
|
-
iconImage,
|
|
260
|
-
interactionVariant = "card",
|
|
261
|
-
headline,
|
|
262
|
-
href,
|
|
263
|
-
media,
|
|
264
|
-
small,
|
|
265
|
-
subtitle,
|
|
266
|
-
sx,
|
|
267
|
-
to,
|
|
268
|
-
...props
|
|
269
|
-
}) => {
|
|
270
|
-
const theme = useTheme2();
|
|
271
|
-
const [raised, setRaised] = useState2(false);
|
|
272
|
-
const navigate = useNavigate2();
|
|
273
|
-
const isSmall = useIsSmall2();
|
|
274
|
-
const localRouteChange = (to2) => {
|
|
275
|
-
to2 ? void navigate(to2) : void navigate("/404");
|
|
276
|
-
};
|
|
277
|
-
const externalRouteChange = (href2) => {
|
|
278
|
-
href2 ? void window.open(href2) : void navigate("/404");
|
|
279
|
-
};
|
|
280
|
-
return /* @__PURE__ */ jsxs3(
|
|
281
|
-
CardEx,
|
|
282
|
-
{
|
|
283
|
-
elevation: raised ? 3 : 0,
|
|
284
|
-
sx: {
|
|
285
|
-
"&:hover": { cursor: interactionVariant == "button" ? "pointer" : null },
|
|
286
|
-
"backgroundColor": alphaCss2(theme.vars.palette.primary.main, 0.05),
|
|
287
|
-
...sx
|
|
288
|
-
},
|
|
289
|
-
onMouseEnter: () => isSmall ? null : interactionVariant == "button" ? setRaised(true) : null,
|
|
290
|
-
onMouseLeave: () => isSmall ? null : interactionVariant == "button" ? setRaised(false) : null,
|
|
291
|
-
onClick: () => interactionVariant == "button" ? href ? externalRouteChange(href) : to ? localRouteChange(to) : navigate("/404") : null,
|
|
292
|
-
...props,
|
|
293
|
-
children: [
|
|
294
|
-
media ? /* @__PURE__ */ jsx5(
|
|
295
|
-
CardMedia2,
|
|
296
|
-
{
|
|
297
|
-
component: "img",
|
|
298
|
-
image: media,
|
|
299
|
-
alt: "",
|
|
300
|
-
sx: { height: "100" }
|
|
301
|
-
}
|
|
302
|
-
) : null,
|
|
303
|
-
/* @__PURE__ */ jsx5(CardContent3, { sx: { height: "100%" }, children: /* @__PURE__ */ jsxs3(
|
|
304
|
-
FlexCol,
|
|
305
|
-
{
|
|
306
|
-
sx: {
|
|
307
|
-
width: "100%",
|
|
308
|
-
alignItems: "flex-start"
|
|
309
|
-
},
|
|
310
|
-
children: [
|
|
311
|
-
iconImage ? /* @__PURE__ */ jsx5("img", { src: iconImage, height: "40px", style: { paddingBottom: "8px" } }) : null,
|
|
312
|
-
typeof headline === "string" ? /* @__PURE__ */ jsx5(
|
|
313
|
-
Typography2,
|
|
314
|
-
{
|
|
315
|
-
variant: small ? "body1" : "h6",
|
|
316
|
-
gutterBottom: true,
|
|
317
|
-
sx: { textAlign: "left" },
|
|
318
|
-
children: headline
|
|
319
|
-
}
|
|
320
|
-
) : headline,
|
|
321
|
-
subtitle ? /* @__PURE__ */ jsx5(
|
|
322
|
-
Typography2,
|
|
323
|
-
{
|
|
324
|
-
variant: "subtitle2",
|
|
325
|
-
gutterBottom: true,
|
|
326
|
-
sx: { textAlign: "left" },
|
|
327
|
-
children: subtitle
|
|
328
|
-
}
|
|
329
|
-
) : null,
|
|
330
|
-
/* @__PURE__ */ jsx5(
|
|
331
|
-
Typography2,
|
|
332
|
-
{
|
|
333
|
-
variant: small ? "caption" : "body1",
|
|
334
|
-
gutterBottom: true,
|
|
335
|
-
sx: { textAlign: "left" },
|
|
336
|
-
children: desc
|
|
337
|
-
}
|
|
338
|
-
)
|
|
339
|
-
]
|
|
340
|
-
}
|
|
341
|
-
) }),
|
|
342
|
-
children,
|
|
343
|
-
interactionVariant == "button" ? /* @__PURE__ */ jsx5(CardActions2, { children: /* @__PURE__ */ jsx5(FlexGrowCol2, { sx: { alignItems: "flex-end" }, children: /* @__PURE__ */ jsx5(
|
|
344
|
-
IconButton3,
|
|
345
|
-
{
|
|
346
|
-
size: small ? "small" : "medium",
|
|
347
|
-
onClick: () => href ? externalRouteChange(href) : to ? localRouteChange(to) : navigate("/404"),
|
|
348
|
-
disableFocusRipple: true,
|
|
349
|
-
disableRipple: true,
|
|
350
|
-
disableTouchRipple: true,
|
|
351
|
-
sx: { color: raised ? "secondary" : "primary" },
|
|
352
|
-
children: /* @__PURE__ */ jsx5(ArrowForwardRoundedIcon2, { sx: { fontSize: small ? "small" : "medium" } })
|
|
353
|
-
}
|
|
354
|
-
) }) }) : null
|
|
355
|
-
]
|
|
356
|
-
}
|
|
357
|
-
);
|
|
358
|
-
};
|
|
359
|
-
export {
|
|
360
|
-
CardContentEx,
|
|
361
|
-
CardContentExWithRef,
|
|
362
|
-
CardEx,
|
|
363
|
-
CardExWithRef,
|
|
364
|
-
FullWidthCard,
|
|
365
|
-
PageCard,
|
|
366
|
-
SimpleCard
|
|
367
|
-
};
|
|
1
|
+
// src/index.ts
|
|
2
|
+
export * from "@xyo-network/react-sdk/card";
|
|
368
3
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/
|
|
4
|
-
"sourcesContent": ["import type { CardContentProps } from '@mui/material'\nimport { CardContent, styled } from '@mui/material'\nimport { useShareForwardedRef } from '@xyo-network/react-shared'\nimport React, { useEffect } from 'react'\n\nconst CardContentExRoot = styled(CardContent, {\n name: 'CardContentEx',\n shouldForwardProp: (prop: string) => !['variant', 'removePadding'].includes(prop),\n slot: 'Root',\n})<CardContentExProps>(({ variant, removePadding }) => ({\n ...((variant === 'scrollable' || removePadding) && {\n [':last-child']: { paddingBottom: 0 },\n overflow: 'auto',\n paddingTop: 0,\n ...(removePadding && { padding: 0 }),\n }),\n}))\n\nexport type CardContentExProps = CardContentProps & {\n refreshRef?: number\n removePadding?: boolean\n scrollToTop?: number\n variant?: 'scrollable' | 'normal'\n}\n\nexport const CardContentExWithRef = ({\n ref, scrollToTop = 0, refreshRef = 0, ...props\n}: CardContentExProps & { ref?: React.RefObject<HTMLDivElement | null> }) => {\n const sharedRef = useShareForwardedRef<HTMLDivElement>(ref, refreshRef)\n\n useEffect(() => {\n if (sharedRef && scrollToTop) {\n sharedRef.current?.scroll({ behavior: 'smooth', top: 0 })\n }\n }, [sharedRef, scrollToTop])\n\n return <CardContentExRoot ref={sharedRef} {...props} />\n}\n\nCardContentExWithRef.displayName = 'CardContentEx'\n\nexport const CardContentEx = CardContentExWithRef\n", "import type { CardProps } from '@mui/material'\nimport { Card } from '@mui/material'\nimport { useGradientStyles } from '@xyo-network/react-shared'\nimport React from 'react'\n\nexport interface CardExProps extends CardProps {\n gradient?: 'border' | 'background'\n}\n\nexport const CardExWithRef = ({\n ref, style, gradient, ...props\n}: CardExProps) => {\n const styles = useGradientStyles()\n const gradientStyle\n = gradient === 'border'\n ? styles.border\n : gradient === 'background'\n ? styles.background\n : {}\n return (\n <Card\n style={{\n ...gradientStyle,\n ...style,\n }}\n ref={ref}\n {...props}\n />\n )\n}\n\nCardExWithRef.displayName = 'CardEx'\n\nexport const CardEx = CardExWithRef\n", "import { FlexGrowCol } from '@ariestools/sdk-react/flexbox'\nimport { alphaCss, useIsSmall } from '@ariestools/sdk-react/theme'\nimport { ArrowForwardRounded as ArrowForwardRoundedIcon } from '@mui/icons-material'\nimport type { CardProps } from '@mui/material'\nimport {\n Card, CardActions, CardContent, CardMedia, Grid, IconButton, Typography, useTheme, Zoom,\n} from '@mui/material'\nimport type { ReactNode } from 'react'\nimport React, { useState } from 'react'\nimport type { To } from 'react-router-dom'\nimport { useNavigate } from 'react-router-dom'\n\nexport interface FullWidthCardProps extends CardProps {\n cardIsButton?: boolean\n desc?: ReactNode\n href?: string\n linkText?: string\n media?: string\n name: ReactNode\n small?: boolean\n to?: To\n}\n\nexport const FullWidthCard: React.FC<FullWidthCardProps> = ({\n cardIsButton, desc, href, media, name, small, to, ...props\n}) => {\n const theme = useTheme()\n const [raised, setRaised] = useState(false)\n const navigate = useNavigate()\n const isMobile = useIsSmall()\n\n const localRouteChange = (to: To | undefined) => {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n to ? void navigate(to) : void navigate('/404')\n }\n const externalRouteChange = (href: string | undefined) => {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n href ? void window.open(href) : void navigate('/404')\n }\n\n return (\n <Card\n elevation={raised ? 3 : 0}\n style={{ height: '100%', width: '100%' }}\n {...props}\n sx={{\n '&:hover': { cursor: 'pointer' },\n 'backgroundColor': alphaCss(theme.vars.palette.primary.light, 0.05),\n }}\n onMouseEnter={() =>\n isMobile\n ? null\n : cardIsButton\n ? setRaised(true)\n : null}\n onMouseLeave={() =>\n isMobile\n ? null\n : cardIsButton\n ? setRaised(false)\n : null}\n onClick={() =>\n cardIsButton\n ? href\n ? externalRouteChange(href)\n : to\n ? localRouteChange(to)\n : navigate('/404')\n : null}\n >\n {media\n ? (\n <CardMedia\n component=\"img\"\n image={media}\n alt=\"\"\n sx={{ height: '100' }}\n />\n )\n : null}\n <CardContent>\n <Grid\n container\n sx={{\n alignItems: 'center',\n paddingY: 2,\n paddingX: 2,\n }}\n >\n <Grid size={{ xs: 12, md: 6 }}>\n {typeof name === 'string'\n ? (\n <Typography\n variant=\"h2\"\n sx={{\n fontWeight: 700,\n textAlign: 'left',\n paddingBottom: 1,\n }}\n >\n {name}\n </Typography>\n )\n : name}\n </Grid>\n <Grid size={{ xs: 12, md: 5 }}>\n <Typography\n variant=\"body1\"\n sx={{\n fontWeight: 400,\n textAlign: 'left',\n }}\n >\n {desc}\n </Typography>\n </Grid>\n <Grid\n size={{ xs: 1 }}\n sx={{\n display: isMobile ? 'none' : 'flex',\n justifyContent: 'center',\n }}\n >\n <Zoom in={raised}>\n <IconButton\n size={small ? 'small' : 'medium'}\n onClick={() =>\n href\n ? externalRouteChange(href)\n : to\n ? localRouteChange(to)\n : navigate('/404')}\n disableFocusRipple\n disableRipple\n disableTouchRipple\n sx={{ color: 'primary' }}\n >\n <ArrowForwardRoundedIcon sx={{ fontSize: small ? 'small' : 'medium' }} />\n </IconButton>\n </Zoom>\n </Grid>\n </Grid>\n </CardContent>\n <CardActions sx={{ display: { md: isMobile ? 'flex' : 'none' } }}>\n <FlexGrowCol sx={{ alignItems: 'flex-end' }}>\n <IconButton\n size={small ? 'small' : 'medium'}\n onClick={() =>\n href\n ? externalRouteChange(href)\n : to\n ? localRouteChange(to)\n : navigate('/404')}\n disableFocusRipple\n disableRipple\n disableTouchRipple\n sx={{ color: 'primary' }}\n >\n <ArrowForwardRoundedIcon sx={{ fontSize: small ? 'small' : 'medium' }} />\n </IconButton>\n </FlexGrowCol>\n </CardActions>\n </Card>\n )\n}\n", "import { Refresh as RefreshIcon } from '@mui/icons-material'\nimport type { CardHeaderProps } from '@mui/material'\nimport { CardHeader, IconButton } from '@mui/material'\nimport { TypographyEx } from '@xyo-network/react-shared'\nimport type { ReactNode } from 'react'\nimport React from 'react'\n\nimport type { CardExProps } from './CardEx.tsx'\nimport { CardEx } from './CardEx.tsx'\n\nexport interface PageCardProps extends CardExProps {\n action?: ReactNode\n onRefresh?: () => void\n subheader?: CardHeaderProps['subheader']\n}\n\nconst PageCardWithRef = ({\n ref, subheader, title, onRefresh, children, action, style, ...props\n}: PageCardProps) => {\n return (\n <CardEx\n style={{\n backgroundColor: 'transparent', position: 'relative', ...style,\n }}\n elevation={0}\n ref={ref}\n {...props}\n >\n <CardHeader\n title={(\n <TypographyEx variant=\"h5\" gutterBottom>\n {title}\n </TypographyEx>\n )}\n subheader={<TypographyEx variant=\"subtitle1\">{subheader}</TypographyEx>}\n action={\n action ?? (\n <>\n {onRefresh\n ? (\n <IconButton onClick={() => onRefresh?.()}>\n <RefreshIcon />\n </IconButton>\n )\n : null}\n </>\n )\n }\n />\n {children}\n </CardEx>\n )\n}\n\nPageCardWithRef.displayName = 'PageCard'\n\nexport const PageCard = PageCardWithRef\n", "import { FlexCol, FlexGrowCol } from '@ariestools/sdk-react/flexbox'\nimport { alphaCss, useIsSmall } from '@ariestools/sdk-react/theme'\nimport { ArrowForwardRounded as ArrowForwardRoundedIcon } from '@mui/icons-material'\nimport {\n CardActions, CardContent, CardMedia, IconButton, Typography, useTheme,\n} from '@mui/material'\nimport type { ReactNode } from 'react'\nimport React, { useState } from 'react'\nimport type { To } from 'react-router-dom'\nimport { useNavigate } from 'react-router-dom'\n\nimport type { CardExProps } from '../CardEx.tsx'\nimport { CardEx } from '../CardEx.tsx'\n\nexport interface SimpleCardProps extends CardExProps {\n desc?: ReactNode\n headline?: ReactNode\n href?: string\n iconImage?: string\n interactionVariant?: 'button' | 'card'\n media?: string\n small?: boolean\n subtitle?: string\n to?: To\n}\n\nexport const SimpleCard: React.FC<SimpleCardProps> = ({\n children,\n desc,\n iconImage,\n interactionVariant = 'card',\n headline,\n href,\n media,\n small,\n subtitle,\n sx,\n to,\n ...props\n}) => {\n const theme = useTheme()\n const [raised, setRaised] = useState(false)\n const navigate = useNavigate()\n const isSmall = useIsSmall()\n const localRouteChange = (to: To | undefined) => {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n to ? void navigate(to) : void navigate('/404')\n }\n const externalRouteChange = (href: string | undefined) => {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n href ? void window.open(href) : void navigate('/404')\n }\n return (\n <CardEx\n elevation={raised ? 3 : 0}\n sx={{\n '&:hover': { cursor: interactionVariant == 'button' ? 'pointer' : null },\n 'backgroundColor': alphaCss(theme.vars.palette.primary.main, 0.05),\n ...sx,\n }}\n onMouseEnter={() =>\n isSmall\n ? null\n : interactionVariant == 'button'\n ? setRaised(true)\n : null}\n onMouseLeave={() =>\n isSmall\n ? null\n : interactionVariant == 'button'\n ? setRaised(false)\n : null}\n onClick={() =>\n interactionVariant == 'button'\n ? href\n ? externalRouteChange(href)\n : to\n ? localRouteChange(to)\n : navigate('/404')\n : null}\n {...props}\n >\n {media\n ? (\n <CardMedia\n component=\"img\"\n image={media}\n alt=\"\"\n sx={{ height: '100' }}\n />\n )\n : null}\n <CardContent sx={{ height: '100%' }}>\n <FlexCol\n sx={{\n width: '100%',\n alignItems: 'flex-start',\n }}\n >\n {iconImage\n ? <img src={iconImage} height=\"40px\" style={{ paddingBottom: '8px' }} />\n : null}\n {typeof headline === 'string'\n ? (\n <Typography\n variant={small ? 'body1' : 'h6'}\n gutterBottom\n sx={{ textAlign: 'left' }}\n >\n {headline}\n </Typography>\n )\n : headline}\n {subtitle\n ? (\n <Typography\n variant=\"subtitle2\"\n gutterBottom\n sx={{ textAlign: 'left' }}\n >\n {subtitle}\n </Typography>\n )\n : null}\n <Typography\n variant={small ? 'caption' : 'body1'}\n gutterBottom\n sx={{ textAlign: 'left' }}\n >\n {desc}\n </Typography>\n </FlexCol>\n </CardContent>\n {children}\n {interactionVariant == 'button'\n ? (\n <CardActions>\n <FlexGrowCol sx={{ alignItems: 'flex-end' }}>\n <IconButton\n size={small ? 'small' : 'medium'}\n onClick={() =>\n href\n ? externalRouteChange(href)\n : to\n ? localRouteChange(to)\n : navigate('/404')}\n disableFocusRipple\n disableRipple\n disableTouchRipple\n sx={{ color: raised ? 'secondary' : 'primary' }}\n >\n <ArrowForwardRoundedIcon sx={{ fontSize: small ? 'small' : 'medium' }} />\n </IconButton>\n </FlexGrowCol>\n </CardActions>\n )\n : null}\n </CardEx>\n )\n}\n"],
|
|
5
|
-
"mappings": ";AACA,
|
|
6
|
-
"names": [
|
|
3
|
+
"sources": ["../../src/index.ts"],
|
|
4
|
+
"sourcesContent": ["// Compatibility shim: this package re-exports from @xyo-network/react-sdk.\nexport * from '@xyo-network/react-sdk/card'\n"],
|
|
5
|
+
"mappings": ";AACA,cAAc;",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-card",
|
|
3
|
-
"version": "10.0.
|
|
3
|
+
"version": "10.0.6",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"README.md"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@xyo-network/react-
|
|
44
|
+
"@xyo-network/react-sdk": "~10.0.6"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@ariestools/eth-address": "~8.0.2",
|
|
@@ -53,22 +53,35 @@
|
|
|
53
53
|
"@metamask/providers": "~22.1.1",
|
|
54
54
|
"@mui/icons-material": "~9.2.0",
|
|
55
55
|
"@mui/material": "~9.2.0",
|
|
56
|
+
"@mui/system": "~9.2.0",
|
|
57
|
+
"@mui/x-tree-view": "~9.8.0",
|
|
56
58
|
"@noble/post-quantum": "~0.6.1",
|
|
57
59
|
"@opentelemetry/api": "~1.9.1",
|
|
58
60
|
"@opentelemetry/sdk-trace-base": "~2.9.0",
|
|
59
61
|
"@react-spring/web": "~10.1.2",
|
|
60
62
|
"@scure/base": "~2.2.0",
|
|
61
63
|
"@scure/bip39": "~2.2.0",
|
|
62
|
-
"@storybook/react-vite": "~10.4.6",
|
|
63
64
|
"@types/react": "~19.2.17",
|
|
64
|
-
"@xylabs/toolchain": "~8.6.
|
|
65
|
-
"@xylabs/tsconfig": "~8.6.
|
|
66
|
-
"@xylabs/tsconfig-dom": "~8.6.
|
|
67
|
-
"@xylabs/tsconfig-react": "~8.6.
|
|
65
|
+
"@xylabs/toolchain": "~8.6.8",
|
|
66
|
+
"@xylabs/tsconfig": "~8.6.8",
|
|
67
|
+
"@xylabs/tsconfig-dom": "~8.6.8",
|
|
68
|
+
"@xylabs/tsconfig-react": "~8.6.8",
|
|
69
|
+
"@xyo-network/advertising-payload-plugins": "~7.0.2",
|
|
70
|
+
"@xyo-network/archivist-storage": "~7.0.9",
|
|
71
|
+
"@xyo-network/diviner-address-history-model": "~7.0.9",
|
|
72
|
+
"@xyo-network/diviner-hash-lease": "~7.0.9",
|
|
73
|
+
"@xyo-network/diviner-huri": "~7.0.9",
|
|
74
|
+
"@xyo-network/diviner-schema-list": "~7.0.9",
|
|
75
|
+
"@xyo-network/diviner-schema-stats": "~7.0.9",
|
|
76
|
+
"@xyo-network/node-core-types": "~4.2.2",
|
|
68
77
|
"@xyo-network/sdk": "~7.0.9",
|
|
78
|
+
"@xyo-network/sdk-geo": "~3.0.3",
|
|
69
79
|
"@xyo-network/sdk-protocol": "~7.0.14",
|
|
80
|
+
"@xyo-network/typeof": "~5.3.30",
|
|
81
|
+
"@xyo-network/xns-record-payloadset-plugins": "~7.0.2",
|
|
70
82
|
"ajv": "~8.20.0",
|
|
71
83
|
"async-mutex": "~0.5.0",
|
|
84
|
+
"card-validator": "~10.0.4",
|
|
72
85
|
"clsx": "~2.1.1",
|
|
73
86
|
"debug": "~4.4.3",
|
|
74
87
|
"eslint": "~10.6.0",
|
|
@@ -76,22 +89,22 @@
|
|
|
76
89
|
"hash-wasm": "~4.12.0",
|
|
77
90
|
"idb": "~8.0.3",
|
|
78
91
|
"lru-cache": "~11.5.1",
|
|
92
|
+
"mapbox-gl": "~3.25.0",
|
|
79
93
|
"md5": "~2.3.0",
|
|
80
94
|
"numeral": "~2.0.6",
|
|
81
95
|
"observable-fns": "~0.6.1",
|
|
82
96
|
"query-string": "~9.4.1",
|
|
83
97
|
"react": "~19.2.7",
|
|
84
98
|
"react-dom": "~19.2.7",
|
|
99
|
+
"react-icons": "~5.7.0",
|
|
85
100
|
"react-router-dom": "~7.18.1",
|
|
86
101
|
"rollbar": "~3.1.0",
|
|
87
|
-
"
|
|
102
|
+
"store2": "~2.14.4",
|
|
88
103
|
"typescript": "~6.0.3",
|
|
89
104
|
"viem": "~2.54.3",
|
|
90
|
-
"vite": "~8.1.3",
|
|
91
105
|
"webextension-polyfill": "~0.12.0",
|
|
92
106
|
"zod": "~4.4.3",
|
|
93
|
-
"zustand": "~5.0.14"
|
|
94
|
-
"@xyo-network/react-storybook": "~10.0.5"
|
|
107
|
+
"zustand": "~5.0.14"
|
|
95
108
|
},
|
|
96
109
|
"peerDependencies": {
|
|
97
110
|
"@ariestools/eth-address": "^8.0.2",
|
|
@@ -103,30 +116,48 @@
|
|
|
103
116
|
"@metamask/providers": "^22.1.1",
|
|
104
117
|
"@mui/icons-material": "^9.2.0",
|
|
105
118
|
"@mui/material": "^9.2.0",
|
|
119
|
+
"@mui/system": "^9.2.0",
|
|
120
|
+
"@mui/x-tree-view": "^9.8.0",
|
|
106
121
|
"@noble/post-quantum": "^0.6.1",
|
|
107
122
|
"@opentelemetry/api": "^1.9.1",
|
|
108
123
|
"@opentelemetry/sdk-trace-base": "^2.9.0",
|
|
109
124
|
"@react-spring/web": "^10.1.2",
|
|
110
125
|
"@scure/base": "^2.2.0",
|
|
111
126
|
"@scure/bip39": "^2.2.0",
|
|
127
|
+
"@types/react": "^19.2.17",
|
|
128
|
+
"@xyo-network/advertising-payload-plugins": "^7.0.2",
|
|
129
|
+
"@xyo-network/archivist-storage": "^7.0.9",
|
|
130
|
+
"@xyo-network/diviner-address-history-model": "^7.0.9",
|
|
131
|
+
"@xyo-network/diviner-hash-lease": "^7.0.9",
|
|
132
|
+
"@xyo-network/diviner-huri": "^7.0.9",
|
|
133
|
+
"@xyo-network/diviner-schema-list": "^7.0.9",
|
|
134
|
+
"@xyo-network/diviner-schema-stats": "^7.0.9",
|
|
135
|
+
"@xyo-network/node-core-types": "^4.2.2",
|
|
112
136
|
"@xyo-network/sdk": "^7.0.9",
|
|
137
|
+
"@xyo-network/sdk-geo": "^3.0.3",
|
|
113
138
|
"@xyo-network/sdk-protocol": "^7.0.14",
|
|
139
|
+
"@xyo-network/typeof": "^5.3.30",
|
|
140
|
+
"@xyo-network/xns-record-payloadset-plugins": "^7.0.2",
|
|
114
141
|
"ajv": "^8.20.0",
|
|
115
142
|
"async-mutex": "^0.5.0",
|
|
143
|
+
"card-validator": "^10.0.4",
|
|
116
144
|
"clsx": "^2.1.1",
|
|
117
145
|
"debug": "^4.4.3",
|
|
118
146
|
"ethers": "^6.17.0",
|
|
119
147
|
"hash-wasm": "^4.12.0",
|
|
120
148
|
"idb": "^8.0.3",
|
|
121
149
|
"lru-cache": "^11.5.1",
|
|
150
|
+
"mapbox-gl": "^3.25.0",
|
|
122
151
|
"md5": "^2.3.0",
|
|
123
152
|
"numeral": "^2.0.6",
|
|
124
153
|
"observable-fns": "^0.6.1",
|
|
125
154
|
"query-string": "^9.4.1",
|
|
126
155
|
"react": "^19.2.7",
|
|
127
156
|
"react-dom": "^19.2.7",
|
|
157
|
+
"react-icons": "^5.7.0",
|
|
128
158
|
"react-router-dom": "^7.18.1",
|
|
129
159
|
"rollbar": "^3.1.0",
|
|
160
|
+
"store2": "^2.14.4",
|
|
130
161
|
"viem": "^2.54.3",
|
|
131
162
|
"webextension-polyfill": "^0.12.0",
|
|
132
163
|
"zod": "^4.4.3",
|
|
@@ -135,5 +166,6 @@
|
|
|
135
166
|
"publishConfig": {
|
|
136
167
|
"access": "public"
|
|
137
168
|
},
|
|
169
|
+
"deprecated": "Use @xyo-network/react-sdk/card instead. Replace @xyo-network/react-card with @xyo-network/react-sdk/card. This package is a compatibility shim only and will not receive further updates.",
|
|
138
170
|
"docs": "dist/docs.json"
|
|
139
171
|
}
|
|
@@ -1,21 +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: {
|
|
10
|
-
({ ref, scrollToTop, refreshRef, ...props }: CardContentExProps & {
|
|
11
|
-
ref?: React.RefObject<HTMLDivElement | null>;
|
|
12
|
-
}): React.JSX.Element;
|
|
13
|
-
displayName: string;
|
|
14
|
-
};
|
|
15
|
-
export declare const CardContentEx: {
|
|
16
|
-
({ ref, scrollToTop, refreshRef, ...props }: CardContentExProps & {
|
|
17
|
-
ref?: React.RefObject<HTMLDivElement | null>;
|
|
18
|
-
}): React.JSX.Element;
|
|
19
|
-
displayName: string;
|
|
20
|
-
};
|
|
21
|
-
//# 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,KAAoB,MAAM,OAAO,CAAA;AAexC,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;iDAE9B,kBAAkB,GAAG;QAAE,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;KAAE;;CAUvE,CAAA;AAID,eAAO,MAAM,aAAa;iDAdvB,kBAAkB,GAAG;QAAE,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,GAAG,IAAI,CAAC,CAAA;KAAE;;CAcvB,CAAA"}
|
|
@@ -1,14 +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: {
|
|
7
|
-
({ ref, style, gradient, ...props }: CardExProps): React.JSX.Element;
|
|
8
|
-
displayName: string;
|
|
9
|
-
};
|
|
10
|
-
export declare const CardEx: {
|
|
11
|
-
({ ref, style, gradient, ...props }: CardExProps): React.JSX.Element;
|
|
12
|
-
displayName: string;
|
|
13
|
-
};
|
|
14
|
-
//# 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,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,QAAQ,CAAC,EAAE,QAAQ,GAAG,YAAY,CAAA;CACnC;AAED,eAAO,MAAM,aAAa;yCAEvB,WAAW;;CAkBb,CAAA;AAID,eAAO,MAAM,MAAM;yCAtBhB,WAAW;;CAsBqB,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":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAI9C,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,CA6ItD,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,14 +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: {
|
|
11
|
-
({ ref, subheader, title, onRefresh, children, action, style, ...props }: PageCardProps): React.JSX.Element;
|
|
12
|
-
displayName: string;
|
|
13
|
-
};
|
|
14
|
-
//# 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,KAAK,MAAM,OAAO,CAAA;AAEzB,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;8EAtClB,aAAa;;CAsCuB,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,CAqIhD,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,CAkBxD,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"}
|