@xyo-network/react-card 2.82.0 → 2.83.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (210) hide show
  1. package/dist/browser/index.d.ts +52 -2
  2. package/package.json +9 -25
  3. package/xy.config.ts +12 -0
  4. package/dist/browser/components/CardContentEx.d.cts +0 -11
  5. package/dist/browser/components/CardContentEx.d.cts.map +0 -1
  6. package/dist/browser/components/CardContentEx.d.mts +0 -11
  7. package/dist/browser/components/CardContentEx.d.mts.map +0 -1
  8. package/dist/browser/components/CardContentEx.d.ts +0 -11
  9. package/dist/browser/components/CardContentEx.d.ts.map +0 -1
  10. package/dist/browser/components/CardEx.d.cts +0 -8
  11. package/dist/browser/components/CardEx.d.cts.map +0 -1
  12. package/dist/browser/components/CardEx.d.mts +0 -8
  13. package/dist/browser/components/CardEx.d.mts.map +0 -1
  14. package/dist/browser/components/CardEx.d.ts +0 -8
  15. package/dist/browser/components/CardEx.d.ts.map +0 -1
  16. package/dist/browser/components/FullWidthCard/FullWidthCard.d.cts +0 -15
  17. package/dist/browser/components/FullWidthCard/FullWidthCard.d.cts.map +0 -1
  18. package/dist/browser/components/FullWidthCard/FullWidthCard.d.mts +0 -15
  19. package/dist/browser/components/FullWidthCard/FullWidthCard.d.mts.map +0 -1
  20. package/dist/browser/components/FullWidthCard/FullWidthCard.d.ts +0 -15
  21. package/dist/browser/components/FullWidthCard/FullWidthCard.d.ts.map +0 -1
  22. package/dist/browser/components/FullWidthCard/index.d.cts +0 -2
  23. package/dist/browser/components/FullWidthCard/index.d.cts.map +0 -1
  24. package/dist/browser/components/FullWidthCard/index.d.mts +0 -2
  25. package/dist/browser/components/FullWidthCard/index.d.mts.map +0 -1
  26. package/dist/browser/components/FullWidthCard/index.d.ts +0 -2
  27. package/dist/browser/components/FullWidthCard/index.d.ts.map +0 -1
  28. package/dist/browser/components/PageCard.d.cts +0 -10
  29. package/dist/browser/components/PageCard.d.cts.map +0 -1
  30. package/dist/browser/components/PageCard.d.mts +0 -10
  31. package/dist/browser/components/PageCard.d.mts.map +0 -1
  32. package/dist/browser/components/PageCard.d.ts +0 -10
  33. package/dist/browser/components/PageCard.d.ts.map +0 -1
  34. package/dist/browser/components/SimpleCard/SimpleCard.d.cts +0 -16
  35. package/dist/browser/components/SimpleCard/SimpleCard.d.cts.map +0 -1
  36. package/dist/browser/components/SimpleCard/SimpleCard.d.mts +0 -16
  37. package/dist/browser/components/SimpleCard/SimpleCard.d.mts.map +0 -1
  38. package/dist/browser/components/SimpleCard/SimpleCard.d.ts +0 -16
  39. package/dist/browser/components/SimpleCard/SimpleCard.d.ts.map +0 -1
  40. package/dist/browser/components/SimpleCard/index.d.cts +0 -2
  41. package/dist/browser/components/SimpleCard/index.d.cts.map +0 -1
  42. package/dist/browser/components/SimpleCard/index.d.mts +0 -2
  43. package/dist/browser/components/SimpleCard/index.d.mts.map +0 -1
  44. package/dist/browser/components/SimpleCard/index.d.ts +0 -2
  45. package/dist/browser/components/SimpleCard/index.d.ts.map +0 -1
  46. package/dist/browser/components/SimpleCardGrid/SimpleCardGrid.d.cts +0 -8
  47. package/dist/browser/components/SimpleCardGrid/SimpleCardGrid.d.cts.map +0 -1
  48. package/dist/browser/components/SimpleCardGrid/SimpleCardGrid.d.mts +0 -8
  49. package/dist/browser/components/SimpleCardGrid/SimpleCardGrid.d.mts.map +0 -1
  50. package/dist/browser/components/SimpleCardGrid/SimpleCardGrid.d.ts +0 -8
  51. package/dist/browser/components/SimpleCardGrid/SimpleCardGrid.d.ts.map +0 -1
  52. package/dist/browser/components/SimpleCardGrid/index.d.cts +0 -2
  53. package/dist/browser/components/SimpleCardGrid/index.d.cts.map +0 -1
  54. package/dist/browser/components/SimpleCardGrid/index.d.mts +0 -2
  55. package/dist/browser/components/SimpleCardGrid/index.d.mts.map +0 -1
  56. package/dist/browser/components/SimpleCardGrid/index.d.ts +0 -2
  57. package/dist/browser/components/SimpleCardGrid/index.d.ts.map +0 -1
  58. package/dist/browser/components/index.d.cts +0 -6
  59. package/dist/browser/components/index.d.cts.map +0 -1
  60. package/dist/browser/components/index.d.mts +0 -6
  61. package/dist/browser/components/index.d.mts.map +0 -1
  62. package/dist/browser/components/index.d.ts +0 -6
  63. package/dist/browser/components/index.d.ts.map +0 -1
  64. package/dist/browser/index.cjs +0 -309
  65. package/dist/browser/index.cjs.map +0 -1
  66. package/dist/browser/index.d.cts +0 -2
  67. package/dist/browser/index.d.cts.map +0 -1
  68. package/dist/browser/index.d.mts +0 -2
  69. package/dist/browser/index.d.mts.map +0 -1
  70. package/dist/browser/index.d.ts.map +0 -1
  71. package/dist/neutral/components/CardContentEx.d.cts +0 -11
  72. package/dist/neutral/components/CardContentEx.d.cts.map +0 -1
  73. package/dist/neutral/components/CardContentEx.d.mts +0 -11
  74. package/dist/neutral/components/CardContentEx.d.mts.map +0 -1
  75. package/dist/neutral/components/CardContentEx.d.ts +0 -11
  76. package/dist/neutral/components/CardContentEx.d.ts.map +0 -1
  77. package/dist/neutral/components/CardEx.d.cts +0 -8
  78. package/dist/neutral/components/CardEx.d.cts.map +0 -1
  79. package/dist/neutral/components/CardEx.d.mts +0 -8
  80. package/dist/neutral/components/CardEx.d.mts.map +0 -1
  81. package/dist/neutral/components/CardEx.d.ts +0 -8
  82. package/dist/neutral/components/CardEx.d.ts.map +0 -1
  83. package/dist/neutral/components/FullWidthCard/FullWidthCard.d.cts +0 -15
  84. package/dist/neutral/components/FullWidthCard/FullWidthCard.d.cts.map +0 -1
  85. package/dist/neutral/components/FullWidthCard/FullWidthCard.d.mts +0 -15
  86. package/dist/neutral/components/FullWidthCard/FullWidthCard.d.mts.map +0 -1
  87. package/dist/neutral/components/FullWidthCard/FullWidthCard.d.ts +0 -15
  88. package/dist/neutral/components/FullWidthCard/FullWidthCard.d.ts.map +0 -1
  89. package/dist/neutral/components/FullWidthCard/index.d.cts +0 -2
  90. package/dist/neutral/components/FullWidthCard/index.d.cts.map +0 -1
  91. package/dist/neutral/components/FullWidthCard/index.d.mts +0 -2
  92. package/dist/neutral/components/FullWidthCard/index.d.mts.map +0 -1
  93. package/dist/neutral/components/FullWidthCard/index.d.ts +0 -2
  94. package/dist/neutral/components/FullWidthCard/index.d.ts.map +0 -1
  95. package/dist/neutral/components/PageCard.d.cts +0 -10
  96. package/dist/neutral/components/PageCard.d.cts.map +0 -1
  97. package/dist/neutral/components/PageCard.d.mts +0 -10
  98. package/dist/neutral/components/PageCard.d.mts.map +0 -1
  99. package/dist/neutral/components/PageCard.d.ts +0 -10
  100. package/dist/neutral/components/PageCard.d.ts.map +0 -1
  101. package/dist/neutral/components/SimpleCard/SimpleCard.d.cts +0 -16
  102. package/dist/neutral/components/SimpleCard/SimpleCard.d.cts.map +0 -1
  103. package/dist/neutral/components/SimpleCard/SimpleCard.d.mts +0 -16
  104. package/dist/neutral/components/SimpleCard/SimpleCard.d.mts.map +0 -1
  105. package/dist/neutral/components/SimpleCard/SimpleCard.d.ts +0 -16
  106. package/dist/neutral/components/SimpleCard/SimpleCard.d.ts.map +0 -1
  107. package/dist/neutral/components/SimpleCard/index.d.cts +0 -2
  108. package/dist/neutral/components/SimpleCard/index.d.cts.map +0 -1
  109. package/dist/neutral/components/SimpleCard/index.d.mts +0 -2
  110. package/dist/neutral/components/SimpleCard/index.d.mts.map +0 -1
  111. package/dist/neutral/components/SimpleCard/index.d.ts +0 -2
  112. package/dist/neutral/components/SimpleCard/index.d.ts.map +0 -1
  113. package/dist/neutral/components/SimpleCardGrid/SimpleCardGrid.d.cts +0 -8
  114. package/dist/neutral/components/SimpleCardGrid/SimpleCardGrid.d.cts.map +0 -1
  115. package/dist/neutral/components/SimpleCardGrid/SimpleCardGrid.d.mts +0 -8
  116. package/dist/neutral/components/SimpleCardGrid/SimpleCardGrid.d.mts.map +0 -1
  117. package/dist/neutral/components/SimpleCardGrid/SimpleCardGrid.d.ts +0 -8
  118. package/dist/neutral/components/SimpleCardGrid/SimpleCardGrid.d.ts.map +0 -1
  119. package/dist/neutral/components/SimpleCardGrid/index.d.cts +0 -2
  120. package/dist/neutral/components/SimpleCardGrid/index.d.cts.map +0 -1
  121. package/dist/neutral/components/SimpleCardGrid/index.d.mts +0 -2
  122. package/dist/neutral/components/SimpleCardGrid/index.d.mts.map +0 -1
  123. package/dist/neutral/components/SimpleCardGrid/index.d.ts +0 -2
  124. package/dist/neutral/components/SimpleCardGrid/index.d.ts.map +0 -1
  125. package/dist/neutral/components/index.d.cts +0 -6
  126. package/dist/neutral/components/index.d.cts.map +0 -1
  127. package/dist/neutral/components/index.d.mts +0 -6
  128. package/dist/neutral/components/index.d.mts.map +0 -1
  129. package/dist/neutral/components/index.d.ts +0 -6
  130. package/dist/neutral/components/index.d.ts.map +0 -1
  131. package/dist/neutral/index.cjs +0 -309
  132. package/dist/neutral/index.cjs.map +0 -1
  133. package/dist/neutral/index.d.cts +0 -2
  134. package/dist/neutral/index.d.cts.map +0 -1
  135. package/dist/neutral/index.d.mts +0 -2
  136. package/dist/neutral/index.d.mts.map +0 -1
  137. package/dist/neutral/index.d.ts +0 -2
  138. package/dist/neutral/index.d.ts.map +0 -1
  139. package/dist/neutral/index.mjs +0 -278
  140. package/dist/neutral/index.mjs.map +0 -1
  141. package/dist/node/components/CardContentEx.d.cts +0 -11
  142. package/dist/node/components/CardContentEx.d.cts.map +0 -1
  143. package/dist/node/components/CardContentEx.d.mts +0 -11
  144. package/dist/node/components/CardContentEx.d.mts.map +0 -1
  145. package/dist/node/components/CardContentEx.d.ts +0 -11
  146. package/dist/node/components/CardContentEx.d.ts.map +0 -1
  147. package/dist/node/components/CardEx.d.cts +0 -8
  148. package/dist/node/components/CardEx.d.cts.map +0 -1
  149. package/dist/node/components/CardEx.d.mts +0 -8
  150. package/dist/node/components/CardEx.d.mts.map +0 -1
  151. package/dist/node/components/CardEx.d.ts +0 -8
  152. package/dist/node/components/CardEx.d.ts.map +0 -1
  153. package/dist/node/components/FullWidthCard/FullWidthCard.d.cts +0 -15
  154. package/dist/node/components/FullWidthCard/FullWidthCard.d.cts.map +0 -1
  155. package/dist/node/components/FullWidthCard/FullWidthCard.d.mts +0 -15
  156. package/dist/node/components/FullWidthCard/FullWidthCard.d.mts.map +0 -1
  157. package/dist/node/components/FullWidthCard/FullWidthCard.d.ts +0 -15
  158. package/dist/node/components/FullWidthCard/FullWidthCard.d.ts.map +0 -1
  159. package/dist/node/components/FullWidthCard/index.d.cts +0 -2
  160. package/dist/node/components/FullWidthCard/index.d.cts.map +0 -1
  161. package/dist/node/components/FullWidthCard/index.d.mts +0 -2
  162. package/dist/node/components/FullWidthCard/index.d.mts.map +0 -1
  163. package/dist/node/components/FullWidthCard/index.d.ts +0 -2
  164. package/dist/node/components/FullWidthCard/index.d.ts.map +0 -1
  165. package/dist/node/components/PageCard.d.cts +0 -10
  166. package/dist/node/components/PageCard.d.cts.map +0 -1
  167. package/dist/node/components/PageCard.d.mts +0 -10
  168. package/dist/node/components/PageCard.d.mts.map +0 -1
  169. package/dist/node/components/PageCard.d.ts +0 -10
  170. package/dist/node/components/PageCard.d.ts.map +0 -1
  171. package/dist/node/components/SimpleCard/SimpleCard.d.cts +0 -16
  172. package/dist/node/components/SimpleCard/SimpleCard.d.cts.map +0 -1
  173. package/dist/node/components/SimpleCard/SimpleCard.d.mts +0 -16
  174. package/dist/node/components/SimpleCard/SimpleCard.d.mts.map +0 -1
  175. package/dist/node/components/SimpleCard/SimpleCard.d.ts +0 -16
  176. package/dist/node/components/SimpleCard/SimpleCard.d.ts.map +0 -1
  177. package/dist/node/components/SimpleCard/index.d.cts +0 -2
  178. package/dist/node/components/SimpleCard/index.d.cts.map +0 -1
  179. package/dist/node/components/SimpleCard/index.d.mts +0 -2
  180. package/dist/node/components/SimpleCard/index.d.mts.map +0 -1
  181. package/dist/node/components/SimpleCard/index.d.ts +0 -2
  182. package/dist/node/components/SimpleCard/index.d.ts.map +0 -1
  183. package/dist/node/components/SimpleCardGrid/SimpleCardGrid.d.cts +0 -8
  184. package/dist/node/components/SimpleCardGrid/SimpleCardGrid.d.cts.map +0 -1
  185. package/dist/node/components/SimpleCardGrid/SimpleCardGrid.d.mts +0 -8
  186. package/dist/node/components/SimpleCardGrid/SimpleCardGrid.d.mts.map +0 -1
  187. package/dist/node/components/SimpleCardGrid/SimpleCardGrid.d.ts +0 -8
  188. package/dist/node/components/SimpleCardGrid/SimpleCardGrid.d.ts.map +0 -1
  189. package/dist/node/components/SimpleCardGrid/index.d.cts +0 -2
  190. package/dist/node/components/SimpleCardGrid/index.d.cts.map +0 -1
  191. package/dist/node/components/SimpleCardGrid/index.d.mts +0 -2
  192. package/dist/node/components/SimpleCardGrid/index.d.mts.map +0 -1
  193. package/dist/node/components/SimpleCardGrid/index.d.ts +0 -2
  194. package/dist/node/components/SimpleCardGrid/index.d.ts.map +0 -1
  195. package/dist/node/components/index.d.cts +0 -6
  196. package/dist/node/components/index.d.cts.map +0 -1
  197. package/dist/node/components/index.d.mts +0 -6
  198. package/dist/node/components/index.d.mts.map +0 -1
  199. package/dist/node/components/index.d.ts +0 -6
  200. package/dist/node/components/index.d.ts.map +0 -1
  201. package/dist/node/index.cjs +0 -320
  202. package/dist/node/index.cjs.map +0 -1
  203. package/dist/node/index.d.cts +0 -2
  204. package/dist/node/index.d.cts.map +0 -1
  205. package/dist/node/index.d.mts +0 -2
  206. package/dist/node/index.d.mts.map +0 -1
  207. package/dist/node/index.d.ts +0 -2
  208. package/dist/node/index.d.ts.map +0 -1
  209. package/dist/node/index.mjs +0 -279
  210. package/dist/node/index.mjs.map +0 -1
@@ -1,279 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
3
-
4
- // src/components/CardContentEx.tsx
5
- import { CardContent, styled } from "@mui/material";
6
- import { useShareForwardedRef } from "@xyo-network/react-shared";
7
- import React, { forwardRef, useEffect } from "react";
8
- var CardContentExRoot = styled(CardContent, {
9
- name: "CardContentEx",
10
- shouldForwardProp: /* @__PURE__ */ __name((prop) => ![
11
- "variant",
12
- "removePadding"
13
- ].includes(prop), "shouldForwardProp"),
14
- slot: "Root"
15
- })(({ variant, removePadding }) => ({
16
- ...(variant === "scrollable" || removePadding) && {
17
- [":last-child"]: {
18
- paddingBottom: 0
19
- },
20
- overflow: "auto",
21
- paddingTop: 0,
22
- ...removePadding && {
23
- padding: 0
24
- }
25
- }
26
- }));
27
- var CardContentExWithRef = /* @__PURE__ */ forwardRef(({ scrollToTop = 0, refreshRef = 0, ...props }, ref) => {
28
- const sharedRef = useShareForwardedRef(ref, refreshRef);
29
- useEffect(() => {
30
- var _a;
31
- if (sharedRef && scrollToTop) {
32
- (_a = sharedRef.current) == null ? void 0 : _a.scroll({
33
- behavior: "smooth",
34
- top: 0
35
- });
36
- }
37
- }, [
38
- sharedRef,
39
- scrollToTop
40
- ]);
41
- return /* @__PURE__ */ React.createElement(CardContentExRoot, {
42
- ref: sharedRef,
43
- ...props
44
- });
45
- });
46
- CardContentExWithRef.displayName = "CardContentEx";
47
- var CardContentEx = CardContentExWithRef;
48
-
49
- // src/components/CardEx.tsx
50
- import { Card } from "@mui/material";
51
- import { useGradientStyles } from "@xyo-network/react-shared";
52
- import React2, { forwardRef as forwardRef2 } from "react";
53
- var CardExWithRef = /* @__PURE__ */ forwardRef2(({ style, gradient, ...props }, ref) => {
54
- const { styles } = useGradientStyles();
55
- const gradientStyle = gradient === "border" ? styles.border : gradient === "background" ? styles.background : {};
56
- return /* @__PURE__ */ React2.createElement(Card, {
57
- style: {
58
- ...gradientStyle,
59
- ...style
60
- },
61
- ref,
62
- ...props
63
- });
64
- });
65
- CardExWithRef.displayName = "CardEx";
66
- var CardEx = CardExWithRef;
67
-
68
- // src/components/FullWidthCard/FullWidthCard.tsx
69
- import { ArrowForwardRounded as ArrowForwardRoundedIcon } from "@mui/icons-material";
70
- import { alpha, Card as Card2, CardActions, CardContent as CardContent2, CardMedia, Grid, IconButton, Typography, useTheme, Zoom } from "@mui/material";
71
- import { FlexGrowCol } from "@xylabs/react-flexbox";
72
- import { useIsMobile } from "@xyo-network/react-shared";
73
- import React3, { useState } from "react";
74
- import { useNavigate } from "react-router-dom";
75
- var FullWidthCard = /* @__PURE__ */ __name(({ cardIsButton, desc, href, media, name, small, to, ...props }) => {
76
- const theme = useTheme();
77
- const [raised, setRaised] = useState(false);
78
- const navigate = useNavigate();
79
- const isMobile = useIsMobile();
80
- const localRouteChange = /* @__PURE__ */ __name((to2) => {
81
- to2 ? navigate(to2) : navigate("/404");
82
- }, "localRouteChange");
83
- const externalRouteChange = /* @__PURE__ */ __name((href2) => {
84
- href2 ? window.open(href2) : navigate("/404");
85
- }, "externalRouteChange");
86
- return /* @__PURE__ */ React3.createElement(Card2, {
87
- elevation: raised ? 3 : 0,
88
- style: {
89
- height: "100%",
90
- width: "100%"
91
- },
92
- ...props,
93
- sx: {
94
- "&:hover": {
95
- cursor: "pointer"
96
- },
97
- "backgroundColor": alpha(theme.palette.primary.light, 0.05)
98
- },
99
- onMouseEnter: /* @__PURE__ */ __name(() => isMobile ? null : cardIsButton ? setRaised(true) : null, "onMouseEnter"),
100
- onMouseLeave: /* @__PURE__ */ __name(() => isMobile ? null : cardIsButton ? setRaised(false) : null, "onMouseLeave"),
101
- onClick: /* @__PURE__ */ __name(() => cardIsButton ? href ? externalRouteChange(href) : to ? localRouteChange(to) : navigate("/404") : null, "onClick")
102
- }, media ? /* @__PURE__ */ React3.createElement(CardMedia, {
103
- component: "img",
104
- height: "100",
105
- image: media,
106
- alt: ""
107
- }) : null, /* @__PURE__ */ React3.createElement(CardContent2, null, /* @__PURE__ */ React3.createElement(Grid, {
108
- container: true,
109
- alignItems: "center",
110
- paddingY: 2,
111
- paddingX: 2
112
- }, /* @__PURE__ */ React3.createElement(Grid, {
113
- item: true,
114
- xs: 12,
115
- md: 6
116
- }, typeof name === "string" ? /* @__PURE__ */ React3.createElement(Typography, {
117
- fontWeight: 700,
118
- variant: "h2",
119
- textAlign: "left",
120
- paddingBottom: 1
121
- }, name) : name), /* @__PURE__ */ React3.createElement(Grid, {
122
- item: true,
123
- xs: 12,
124
- md: 5
125
- }, /* @__PURE__ */ React3.createElement(Typography, {
126
- variant: "body1",
127
- fontWeight: 400,
128
- textAlign: "left"
129
- }, desc)), /* @__PURE__ */ React3.createElement(Grid, {
130
- item: true,
131
- xs: 1,
132
- display: isMobile ? "none" : "flex",
133
- justifyContent: "center"
134
- }, /* @__PURE__ */ React3.createElement(Zoom, {
135
- in: raised
136
- }, /* @__PURE__ */ React3.createElement(IconButton, {
137
- color: "primary",
138
- size: small ? "small" : "medium",
139
- onClick: /* @__PURE__ */ __name(() => href ? externalRouteChange(href) : to ? localRouteChange(to) : navigate("/404"), "onClick"),
140
- disableFocusRipple: true,
141
- disableRipple: true,
142
- disableTouchRipple: true
143
- }, /* @__PURE__ */ React3.createElement(ArrowForwardRoundedIcon, {
144
- fontSize: small ? "small" : "medium"
145
- })))))), /* @__PURE__ */ React3.createElement(CardActions, {
146
- sx: {
147
- display: {
148
- md: isMobile ? "flex" : "none"
149
- }
150
- }
151
- }, /* @__PURE__ */ React3.createElement(FlexGrowCol, {
152
- alignItems: "flex-end"
153
- }, /* @__PURE__ */ React3.createElement(IconButton, {
154
- color: "primary",
155
- size: small ? "small" : "medium",
156
- onClick: /* @__PURE__ */ __name(() => href ? externalRouteChange(href) : to ? localRouteChange(to) : navigate("/404"), "onClick"),
157
- disableFocusRipple: true,
158
- disableRipple: true,
159
- disableTouchRipple: true
160
- }, /* @__PURE__ */ React3.createElement(ArrowForwardRoundedIcon, {
161
- fontSize: small ? "small" : "medium"
162
- })))));
163
- }, "FullWidthCard");
164
-
165
- // src/components/PageCard.tsx
166
- import { Refresh as RefreshIcon } from "@mui/icons-material";
167
- import { CardHeader, IconButton as IconButton2 } from "@mui/material";
168
- import { TypographyEx } from "@xyo-network/react-shared";
169
- import React4, { forwardRef as forwardRef3 } from "react";
170
- var PageCardWithRef = /* @__PURE__ */ forwardRef3(({ subheader, title, onRefresh, children, action, style, ...props }, ref) => {
171
- return /* @__PURE__ */ React4.createElement(CardEx, {
172
- style: {
173
- backgroundColor: "transparent",
174
- position: "relative",
175
- ...style
176
- },
177
- elevation: 0,
178
- ref,
179
- ...props
180
- }, /* @__PURE__ */ React4.createElement(CardHeader, {
181
- title: /* @__PURE__ */ React4.createElement(TypographyEx, {
182
- variant: "h5",
183
- gutterBottom: true
184
- }, title),
185
- subheader: /* @__PURE__ */ React4.createElement(TypographyEx, {
186
- variant: "subtitle1"
187
- }, subheader),
188
- action: action ?? /* @__PURE__ */ React4.createElement(React4.Fragment, null, onRefresh ? /* @__PURE__ */ React4.createElement(IconButton2, {
189
- onClick: /* @__PURE__ */ __name(() => onRefresh == null ? void 0 : onRefresh(), "onClick")
190
- }, /* @__PURE__ */ React4.createElement(RefreshIcon, null)) : null)
191
- }), children);
192
- });
193
- PageCardWithRef.displayName = "PageCard";
194
- var PageCard = PageCardWithRef;
195
-
196
- // src/components/SimpleCard/SimpleCard.tsx
197
- import { ArrowForwardRounded as ArrowForwardRoundedIcon2 } from "@mui/icons-material";
198
- import { alpha as alpha2, CardActions as CardActions2, CardContent as CardContent3, CardMedia as CardMedia2, IconButton as IconButton3, Typography as Typography2, useTheme as useTheme2 } from "@mui/material";
199
- import { FlexCol, FlexGrowCol as FlexGrowCol2 } from "@xylabs/react-flexbox";
200
- import { useIsMobile as useIsMobile2 } from "@xyo-network/react-shared";
201
- import React5, { useState as useState2 } from "react";
202
- import { useNavigate as useNavigate2 } from "react-router-dom";
203
- var SimpleCard = /* @__PURE__ */ __name(({ desc, iconImage, interactionVariant = "card", headline, href, media, small, subtitle, sx, to, ...props }) => {
204
- const theme = useTheme2();
205
- const [raised, setRaised] = useState2(false);
206
- const navigate = useNavigate2();
207
- const isMobile = useIsMobile2();
208
- const localRouteChange = /* @__PURE__ */ __name((to2) => {
209
- to2 ? navigate(to2) : navigate("/404");
210
- }, "localRouteChange");
211
- const externalRouteChange = /* @__PURE__ */ __name((href2) => {
212
- href2 ? window.open(href2) : navigate("/404");
213
- }, "externalRouteChange");
214
- return /* @__PURE__ */ React5.createElement(CardEx, {
215
- elevation: raised ? 3 : 0,
216
- sx: {
217
- "&:hover": {
218
- cursor: interactionVariant == "button" ? "pointer" : null
219
- },
220
- "backgroundColor": alpha2(theme.palette.primary.light, 0.05),
221
- ...sx
222
- },
223
- onMouseEnter: /* @__PURE__ */ __name(() => isMobile ? null : interactionVariant == "button" ? setRaised(true) : null, "onMouseEnter"),
224
- onMouseLeave: /* @__PURE__ */ __name(() => isMobile ? null : interactionVariant == "button" ? setRaised(false) : null, "onMouseLeave"),
225
- onClick: /* @__PURE__ */ __name(() => interactionVariant == "button" ? href ? externalRouteChange(href) : to ? localRouteChange(to) : navigate("/404") : null, "onClick"),
226
- ...props
227
- }, media ? /* @__PURE__ */ React5.createElement(CardMedia2, {
228
- component: "img",
229
- height: "100",
230
- image: media,
231
- alt: ""
232
- }) : null, /* @__PURE__ */ React5.createElement(CardContent3, {
233
- sx: {
234
- height: "100%"
235
- }
236
- }, /* @__PURE__ */ React5.createElement(FlexCol, {
237
- width: "100%",
238
- alignItems: "flex-start"
239
- }, iconImage ? /* @__PURE__ */ React5.createElement("img", {
240
- src: iconImage,
241
- height: "40px",
242
- style: {
243
- paddingBottom: "8px"
244
- }
245
- }) : null, typeof headline === "string" ? /* @__PURE__ */ React5.createElement(Typography2, {
246
- variant: small ? "body1" : "h6",
247
- textAlign: "left",
248
- gutterBottom: true
249
- }, headline) : headline, subtitle ? /* @__PURE__ */ React5.createElement(Typography2, {
250
- variant: "subtitle2",
251
- textAlign: "left",
252
- gutterBottom: true
253
- }, subtitle) : null, /* @__PURE__ */ React5.createElement(Typography2, {
254
- variant: small ? "caption" : "body1",
255
- textAlign: "left",
256
- gutterBottom: true
257
- }, desc))), interactionVariant == "button" ? /* @__PURE__ */ React5.createElement(CardActions2, null, /* @__PURE__ */ React5.createElement(FlexGrowCol2, {
258
- alignItems: "flex-end"
259
- }, /* @__PURE__ */ React5.createElement(IconButton3, {
260
- color: raised ? "secondary" : "primary",
261
- size: small ? "small" : "medium",
262
- onClick: /* @__PURE__ */ __name(() => href ? externalRouteChange(href) : to ? localRouteChange(to) : navigate("/404"), "onClick"),
263
- disableFocusRipple: true,
264
- disableRipple: true,
265
- disableTouchRipple: true
266
- }, /* @__PURE__ */ React5.createElement(ArrowForwardRoundedIcon2, {
267
- fontSize: small ? "small" : "medium"
268
- })))) : null);
269
- }, "SimpleCard");
270
- export {
271
- CardContentEx,
272
- CardContentExWithRef,
273
- CardEx,
274
- CardExWithRef,
275
- FullWidthCard,
276
- PageCard,
277
- SimpleCard
278
- };
279
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/components/CardContentEx.tsx","../../src/components/CardEx.tsx","../../src/components/FullWidthCard/FullWidthCard.tsx","../../src/components/PageCard.tsx","../../src/components/SimpleCard/SimpleCard.tsx"],"sourcesContent":["import { CardContent, CardContentProps, styled } from '@mui/material'\nimport { useShareForwardedRef } from '@xyo-network/react-shared'\nimport React, { forwardRef, 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']: {\n paddingBottom: 0,\n },\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 = forwardRef<HTMLDivElement | null, CardContentExProps>(({ scrollToTop = 0, refreshRef = 0, ...props }, ref) => {\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 { Card, CardProps } from '@mui/material'\nimport { useGradientStyles } from '@xyo-network/react-shared'\nimport React, { forwardRef } from 'react'\n\nexport interface CardExProps extends CardProps {\n gradient?: 'border' | 'background'\n}\n\nexport const CardExWithRef = forwardRef<HTMLDivElement, CardExProps>(({ style, gradient, ...props }, ref) => {\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 { ArrowForwardRounded as ArrowForwardRoundedIcon } from '@mui/icons-material'\nimport { alpha, Card, CardActions, CardContent, CardMedia, CardProps, Grid, IconButton, Typography, useTheme, Zoom } from '@mui/material'\nimport { FlexGrowCol } from '@xylabs/react-flexbox'\nimport { useIsMobile } from '@xyo-network/react-shared'\nimport React, { ReactNode, useState } from 'react'\nimport { To, 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> = ({ cardIsButton, desc, href, media, name, small, to, ...props }) => {\n const theme = useTheme()\n const [raised, setRaised] = useState(false)\n const navigate = useNavigate()\n const isMobile = useIsMobile()\n\n const localRouteChange = (to: To | undefined) => {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n to ? navigate(to) : navigate('/404')\n }\n const externalRouteChange = (href: string | undefined) => {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n href ? window.open(href) : 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': {\n cursor: 'pointer',\n },\n 'backgroundColor': alpha(theme.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 ? <CardMedia component=\"img\" height=\"100\" image={media} alt=\"\" />\n : null}\n\n <CardContent>\n <Grid container alignItems=\"center\" paddingY={2} paddingX={2}>\n <Grid item xs={12} md={6}>\n {typeof name === 'string'\n ? (\n <Typography fontWeight={700} variant=\"h2\" textAlign=\"left\" paddingBottom={1}>\n {name}\n </Typography>\n )\n : name}\n </Grid>\n <Grid item xs={12} md={5}>\n <Typography variant=\"body1\" fontWeight={400} textAlign=\"left\">\n {desc}\n </Typography>\n </Grid>\n <Grid item xs={1} display={isMobile ? 'none' : 'flex'} justifyContent=\"center\">\n <Zoom in={raised}>\n <IconButton\n color=\"primary\"\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 >\n <ArrowForwardRoundedIcon fontSize={small ? 'small' : 'medium'} />\n </IconButton>\n </Zoom>\n </Grid>\n </Grid>\n </CardContent>\n <CardActions sx={{ display: { md: isMobile ? 'flex' : 'none' } }}>\n <FlexGrowCol alignItems=\"flex-end\">\n <IconButton\n color=\"primary\"\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 >\n <ArrowForwardRoundedIcon fontSize={small ? 'small' : 'medium'} />\n </IconButton>\n </FlexGrowCol>\n </CardActions>\n </Card>\n )\n}\n","import { Refresh as RefreshIcon } from '@mui/icons-material'\nimport { CardHeader, CardHeaderProps, IconButton } from '@mui/material'\nimport { TypographyEx } from '@xyo-network/react-shared'\nimport React, { forwardRef, ReactNode } from 'react'\n\nimport { CardEx, CardExProps } from './CardEx.tsx'\n\nexport interface PageCardProps extends CardExProps {\n action?: ReactNode\n onRefresh?: () => void\n subheader?: CardHeaderProps['subheader']\n}\n\nconst PageCardWithRef = forwardRef<HTMLDivElement, PageCardProps>(({ subheader, title, onRefresh, children, action, style, ...props }, ref) => {\n return (\n <CardEx style={{ backgroundColor: 'transparent', position: 'relative', ...style }} elevation={0} ref={ref} {...props}>\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 { ArrowForwardRounded as ArrowForwardRoundedIcon } from '@mui/icons-material'\nimport { alpha, CardActions, CardContent, CardMedia, IconButton, Typography, useTheme } from '@mui/material'\nimport { FlexCol, FlexGrowCol } from '@xylabs/react-flexbox'\nimport { useIsMobile } from '@xyo-network/react-shared'\nimport React, { ReactNode, useState } from 'react'\nimport { To, useNavigate } from 'react-router-dom'\n\nimport { CardEx, CardExProps } 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 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 isMobile = useIsMobile()\n const localRouteChange = (to: To | undefined) => {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n to ? navigate(to) : navigate('/404')\n }\n const externalRouteChange = (href: string | undefined) => {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n href ? window.open(href) : navigate('/404')\n }\n return (\n <CardEx\n elevation={raised ? 3 : 0}\n sx={{\n '&:hover': {\n cursor: interactionVariant == 'button' ? 'pointer' : null,\n },\n 'backgroundColor': alpha(theme.palette.primary.light, 0.05),\n ...sx,\n }}\n onMouseEnter={() =>\n isMobile\n ? null\n : interactionVariant == 'button'\n ? setRaised(true)\n : null}\n onMouseLeave={() =>\n isMobile\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 ? <CardMedia component=\"img\" height=\"100\" image={media} alt=\"\" />\n : null}\n\n <CardContent sx={{ height: '100%' }}>\n <FlexCol width=\"100%\" alignItems=\"flex-start\">\n {iconImage\n ? <img src={iconImage} height=\"40px\" style={{ paddingBottom: '8px' }} />\n : null}\n {typeof headline === 'string'\n ? (\n <Typography variant={small ? 'body1' : 'h6'} textAlign=\"left\" gutterBottom>\n {headline}\n </Typography>\n )\n : headline}\n {subtitle\n ? (\n <Typography variant=\"subtitle2\" textAlign=\"left\" gutterBottom>\n {subtitle}\n </Typography>\n )\n : null}\n <Typography variant={small ? 'caption' : 'body1'} textAlign=\"left\" gutterBottom>\n {desc}\n </Typography>\n </FlexCol>\n </CardContent>\n {interactionVariant == 'button'\n ? (\n <CardActions>\n <FlexGrowCol alignItems=\"flex-end\">\n <IconButton\n color={raised ? 'secondary' : 'primary'}\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 >\n <ArrowForwardRoundedIcon fontSize={small ? 'small' : 'medium'} />\n </IconBut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AGN;KAEHL,QACG,gBAAAmB,OAAA,cAACW,YAAAA;IAAUC,WAAU;IAAMC,QAAO;IAAMC,OAAOjC;IAAOkC,KAAI;OAC1D,MAEJ,gBAAAf,OAAA,cAACgB,cAAAA;IAAYhC,IAAI;MAAE6B,QAAQ;IAAO;KAChC,gBAAAb,OAAA,cAACiB,SAAAA;IAAQC,OAAM;IAAOC,YAAW;KAC9B1C,YACG,gBAAAuB,OAAA,cAACoB,OAAAA;IAAIC,KAAK5C;IAAWoC,QAAO;IAAOS,OAAO;MAAEC,eAAe;IAAM;OACjE,MACH,OAAO5C,aAAa,WAEf,gBAAAqB,OAAA,cAACwB,aAAAA;IAAWC,SAAS3C,QAAQ,UAAU;IAAM4C,WAAU;IAAOC,cAAAA;KAC3DhD,QAAAA,IAGLA,UACHI,WAEK,gBAAAiB,OAAA,cAACwB,aAAAA;IAAWC,SAAQ;IAAYC,WAAU;IAAOC,cAAAA;KAC9C5C,QAAAA,IAGL,MACJ,gBAAAiB,OAAA,cAACwB,aAAAA;IAAWC,SAAS3C,QAAQ,YAAY;IAAS4C,WAAU;IAAOC,cAAAA;KAChEnD,IAAAA,CAAAA,CAAAA,GAINE,sBAAsB,WAEjB,gBAAAsB,OAAA,cAAC4B,cAAAA,MACC,gBAAA5B,OAAA,cAAC6B,cAAAA;IAAYV,YAAW;KACtB,gBAAAnB,OAAA,cAAC8B,aAAAA;IACCC,OAAO1C,SAAS,cAAc;IAC9B2C,MAAMlD,QAAQ,UAAU;IACxB4B,SAAS,6BACP9B,OACIiB,oBAAoBjB,IAAAA,IACpBK,KACEW,iBAAiBX,EAAAA,IACjBO,SAAS,MAAA,GALR;IAMTyC,oBAAAA;IACAC,eAAAA;IACAC,oBAAAA;KAEA,gBAAAnC,OAAA,cAACoC,0BAAAA;IAAwBC,UAAUvD,QAAQ,UAAU;UAK7D,IAAA;AAGV,GA9GqD;","names":["CardContent","styled","useShareForwardedRef","React","forwardRef","useEffect","CardContentExRoot","styled","CardContent","name","shouldForwardProp","prop","includes","slot","variant","removePadding","paddingBottom","overflow","paddingTop","padding","CardContentExWithRef","forwardRef","scrollToTop","refreshRef","props","ref","sharedRef","useShareForwardedRef","useEffect","current","scroll","behavior","top","displayName","CardContentEx","Card","useGradientStyles","React","forwardRef","CardExWithRef","style","gradient","props","ref","styles","gradientStyle","border","background","displayName","CardEx","ArrowForwardRounded","ArrowForwardRoundedIcon","alpha","Card","CardActions","CardContent","CardMedia","Grid","IconButton","Typography","useTheme","Zoom","FlexGrowCol","useIsMobile","React","useState","useNavigate","FullWidthCard","cardIsButton","desc","href","media","name","small","to","props","theme","useTheme","raised","setRaised","useState","navigate","useNavigate","isMobile","useIsMobile","localRouteChange","externalRouteChange","window","open","React","Card","elevation","style","height","width","sx","cursor","alpha","palette","primary","light","onMouseEnter","onMouseLeave","onClick","CardMedia","component","image","alt","CardContent","Grid","container","alignItems","paddingY","paddingX","item","xs","md","Typography","fontWeight","variant","textAlign","paddingBottom","display","justifyContent","Zoom","in","IconButton","color","size","disableFocusRipple","disableRipple","disableTouchRipple","ArrowForwardRoundedIcon","fontSize","CardActions","FlexGrowCol","Refresh","RefreshIcon","CardHeader","IconButton","TypographyEx","React","forwardRef","PageCardWithRef","forwardRef","subheader","title","onRefresh","children","action","style","props","ref","React","CardEx","backgroundColor","position","elevation","CardHeader","TypographyEx","variant","gutterBottom","IconButton","onClick","RefreshIcon","displayName","PageCard","ArrowForwardRounded","ArrowForwardRoundedIcon","alpha","CardActions","CardContent","CardMedia","IconButton","Typography","useTheme","FlexCol","FlexGrowCol","useIsMobile","React","useState","useNavigate","SimpleCard","desc","iconImage","interactionVariant","headline","href","media","small","subtitle","sx","to","props","theme","useTheme","raised","setRaised","useState","navigate","useNavigate","isMobile","useIsMobile","localRouteChange","externalRouteChange","window","open","React","CardEx","elevation","cursor","alpha","palette","primary","light","onMouseEnter","onMouseLeave","onClick","CardMedia","component","height","image","alt","CardContent","FlexCol","width","alignItems","img","src","style","paddingBottom","Typography","variant","textAlign","gutterBottom","CardActions","FlexGrowCol","IconButton","color","size","disableFocusRipple","disableRipple","disableTouchRipple","ArrowForwardRoundedIcon","fontSize"]}