@xyo-network/react-card 2.81.10 → 2.83.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.
Files changed (230) hide show
  1. package/dist/browser/index.d.ts +52 -2
  2. package/dist/browser/index.mjs +278 -0
  3. package/dist/browser/index.mjs.map +1 -0
  4. package/package.json +14 -30
  5. package/src/components/CardContentEx.stories.tsx +8 -7
  6. package/src/components/CardContentEx.tsx +1 -1
  7. package/src/components/CardEx.tsx +7 -5
  8. package/src/components/FullWidthCard/FullWidthCard.stories.tsx +3 -3
  9. package/src/components/FullWidthCard/FullWidthCard.tsx +41 -32
  10. package/src/components/FullWidthCard/index.ts +1 -1
  11. package/src/components/PageCard.stories.tsx +6 -5
  12. package/src/components/PageCard.tsx +11 -9
  13. package/src/components/SimpleCard/SimpleCard.stories.tsx +4 -4
  14. package/src/components/SimpleCard/SimpleCard.tsx +65 -53
  15. package/src/components/SimpleCard/index.ts +1 -1
  16. package/src/components/SimpleCardGrid/SimpleCardGrid.stories.tsx +4 -4
  17. package/src/components/SimpleCardGrid/SimpleCardGrid.tsx +2 -1
  18. package/src/components/SimpleCardGrid/index.ts +1 -1
  19. package/src/components/index.ts +5 -5
  20. package/src/index.ts +1 -1
  21. package/xy.config.ts +12 -0
  22. package/dist/browser/components/CardContentEx.d.cts +0 -10
  23. package/dist/browser/components/CardContentEx.d.cts.map +0 -1
  24. package/dist/browser/components/CardContentEx.d.mts +0 -10
  25. package/dist/browser/components/CardContentEx.d.mts.map +0 -1
  26. package/dist/browser/components/CardContentEx.d.ts +0 -10
  27. package/dist/browser/components/CardContentEx.d.ts.map +0 -1
  28. package/dist/browser/components/CardEx.d.cts +0 -7
  29. package/dist/browser/components/CardEx.d.cts.map +0 -1
  30. package/dist/browser/components/CardEx.d.mts +0 -7
  31. package/dist/browser/components/CardEx.d.mts.map +0 -1
  32. package/dist/browser/components/CardEx.d.ts +0 -7
  33. package/dist/browser/components/CardEx.d.ts.map +0 -1
  34. package/dist/browser/components/FullWidthCard/FullWidthCard.d.cts +0 -15
  35. package/dist/browser/components/FullWidthCard/FullWidthCard.d.cts.map +0 -1
  36. package/dist/browser/components/FullWidthCard/FullWidthCard.d.mts +0 -15
  37. package/dist/browser/components/FullWidthCard/FullWidthCard.d.mts.map +0 -1
  38. package/dist/browser/components/FullWidthCard/FullWidthCard.d.ts +0 -15
  39. package/dist/browser/components/FullWidthCard/FullWidthCard.d.ts.map +0 -1
  40. package/dist/browser/components/FullWidthCard/index.d.cts +0 -2
  41. package/dist/browser/components/FullWidthCard/index.d.cts.map +0 -1
  42. package/dist/browser/components/FullWidthCard/index.d.mts +0 -2
  43. package/dist/browser/components/FullWidthCard/index.d.mts.map +0 -1
  44. package/dist/browser/components/FullWidthCard/index.d.ts +0 -2
  45. package/dist/browser/components/FullWidthCard/index.d.ts.map +0 -1
  46. package/dist/browser/components/PageCard.d.cts +0 -10
  47. package/dist/browser/components/PageCard.d.cts.map +0 -1
  48. package/dist/browser/components/PageCard.d.mts +0 -10
  49. package/dist/browser/components/PageCard.d.mts.map +0 -1
  50. package/dist/browser/components/PageCard.d.ts +0 -10
  51. package/dist/browser/components/PageCard.d.ts.map +0 -1
  52. package/dist/browser/components/SimpleCard/SimpleCard.d.cts +0 -16
  53. package/dist/browser/components/SimpleCard/SimpleCard.d.cts.map +0 -1
  54. package/dist/browser/components/SimpleCard/SimpleCard.d.mts +0 -16
  55. package/dist/browser/components/SimpleCard/SimpleCard.d.mts.map +0 -1
  56. package/dist/browser/components/SimpleCard/SimpleCard.d.ts +0 -16
  57. package/dist/browser/components/SimpleCard/SimpleCard.d.ts.map +0 -1
  58. package/dist/browser/components/SimpleCard/index.d.cts +0 -2
  59. package/dist/browser/components/SimpleCard/index.d.cts.map +0 -1
  60. package/dist/browser/components/SimpleCard/index.d.mts +0 -2
  61. package/dist/browser/components/SimpleCard/index.d.mts.map +0 -1
  62. package/dist/browser/components/SimpleCard/index.d.ts +0 -2
  63. package/dist/browser/components/SimpleCard/index.d.ts.map +0 -1
  64. package/dist/browser/components/SimpleCardGrid/SimpleCardGrid.d.cts +0 -7
  65. package/dist/browser/components/SimpleCardGrid/SimpleCardGrid.d.cts.map +0 -1
  66. package/dist/browser/components/SimpleCardGrid/SimpleCardGrid.d.mts +0 -7
  67. package/dist/browser/components/SimpleCardGrid/SimpleCardGrid.d.mts.map +0 -1
  68. package/dist/browser/components/SimpleCardGrid/SimpleCardGrid.d.ts +0 -7
  69. package/dist/browser/components/SimpleCardGrid/SimpleCardGrid.d.ts.map +0 -1
  70. package/dist/browser/components/SimpleCardGrid/index.d.cts +0 -2
  71. package/dist/browser/components/SimpleCardGrid/index.d.cts.map +0 -1
  72. package/dist/browser/components/SimpleCardGrid/index.d.mts +0 -2
  73. package/dist/browser/components/SimpleCardGrid/index.d.mts.map +0 -1
  74. package/dist/browser/components/SimpleCardGrid/index.d.ts +0 -2
  75. package/dist/browser/components/SimpleCardGrid/index.d.ts.map +0 -1
  76. package/dist/browser/components/index.d.cts +0 -6
  77. package/dist/browser/components/index.d.cts.map +0 -1
  78. package/dist/browser/components/index.d.mts +0 -6
  79. package/dist/browser/components/index.d.mts.map +0 -1
  80. package/dist/browser/components/index.d.ts +0 -6
  81. package/dist/browser/components/index.d.ts.map +0 -1
  82. package/dist/browser/index.cjs +0 -248
  83. package/dist/browser/index.cjs.map +0 -1
  84. package/dist/browser/index.d.cts +0 -2
  85. package/dist/browser/index.d.cts.map +0 -1
  86. package/dist/browser/index.d.mts +0 -2
  87. package/dist/browser/index.d.mts.map +0 -1
  88. package/dist/browser/index.d.ts.map +0 -1
  89. package/dist/browser/index.js +0 -225
  90. package/dist/browser/index.js.map +0 -1
  91. package/dist/neutral/components/CardContentEx.d.cts +0 -10
  92. package/dist/neutral/components/CardContentEx.d.cts.map +0 -1
  93. package/dist/neutral/components/CardContentEx.d.mts +0 -10
  94. package/dist/neutral/components/CardContentEx.d.mts.map +0 -1
  95. package/dist/neutral/components/CardContentEx.d.ts +0 -10
  96. package/dist/neutral/components/CardContentEx.d.ts.map +0 -1
  97. package/dist/neutral/components/CardEx.d.cts +0 -7
  98. package/dist/neutral/components/CardEx.d.cts.map +0 -1
  99. package/dist/neutral/components/CardEx.d.mts +0 -7
  100. package/dist/neutral/components/CardEx.d.mts.map +0 -1
  101. package/dist/neutral/components/CardEx.d.ts +0 -7
  102. package/dist/neutral/components/CardEx.d.ts.map +0 -1
  103. package/dist/neutral/components/FullWidthCard/FullWidthCard.d.cts +0 -15
  104. package/dist/neutral/components/FullWidthCard/FullWidthCard.d.cts.map +0 -1
  105. package/dist/neutral/components/FullWidthCard/FullWidthCard.d.mts +0 -15
  106. package/dist/neutral/components/FullWidthCard/FullWidthCard.d.mts.map +0 -1
  107. package/dist/neutral/components/FullWidthCard/FullWidthCard.d.ts +0 -15
  108. package/dist/neutral/components/FullWidthCard/FullWidthCard.d.ts.map +0 -1
  109. package/dist/neutral/components/FullWidthCard/index.d.cts +0 -2
  110. package/dist/neutral/components/FullWidthCard/index.d.cts.map +0 -1
  111. package/dist/neutral/components/FullWidthCard/index.d.mts +0 -2
  112. package/dist/neutral/components/FullWidthCard/index.d.mts.map +0 -1
  113. package/dist/neutral/components/FullWidthCard/index.d.ts +0 -2
  114. package/dist/neutral/components/FullWidthCard/index.d.ts.map +0 -1
  115. package/dist/neutral/components/PageCard.d.cts +0 -10
  116. package/dist/neutral/components/PageCard.d.cts.map +0 -1
  117. package/dist/neutral/components/PageCard.d.mts +0 -10
  118. package/dist/neutral/components/PageCard.d.mts.map +0 -1
  119. package/dist/neutral/components/PageCard.d.ts +0 -10
  120. package/dist/neutral/components/PageCard.d.ts.map +0 -1
  121. package/dist/neutral/components/SimpleCard/SimpleCard.d.cts +0 -16
  122. package/dist/neutral/components/SimpleCard/SimpleCard.d.cts.map +0 -1
  123. package/dist/neutral/components/SimpleCard/SimpleCard.d.mts +0 -16
  124. package/dist/neutral/components/SimpleCard/SimpleCard.d.mts.map +0 -1
  125. package/dist/neutral/components/SimpleCard/SimpleCard.d.ts +0 -16
  126. package/dist/neutral/components/SimpleCard/SimpleCard.d.ts.map +0 -1
  127. package/dist/neutral/components/SimpleCard/index.d.cts +0 -2
  128. package/dist/neutral/components/SimpleCard/index.d.cts.map +0 -1
  129. package/dist/neutral/components/SimpleCard/index.d.mts +0 -2
  130. package/dist/neutral/components/SimpleCard/index.d.mts.map +0 -1
  131. package/dist/neutral/components/SimpleCard/index.d.ts +0 -2
  132. package/dist/neutral/components/SimpleCard/index.d.ts.map +0 -1
  133. package/dist/neutral/components/SimpleCardGrid/SimpleCardGrid.d.cts +0 -7
  134. package/dist/neutral/components/SimpleCardGrid/SimpleCardGrid.d.cts.map +0 -1
  135. package/dist/neutral/components/SimpleCardGrid/SimpleCardGrid.d.mts +0 -7
  136. package/dist/neutral/components/SimpleCardGrid/SimpleCardGrid.d.mts.map +0 -1
  137. package/dist/neutral/components/SimpleCardGrid/SimpleCardGrid.d.ts +0 -7
  138. package/dist/neutral/components/SimpleCardGrid/SimpleCardGrid.d.ts.map +0 -1
  139. package/dist/neutral/components/SimpleCardGrid/index.d.cts +0 -2
  140. package/dist/neutral/components/SimpleCardGrid/index.d.cts.map +0 -1
  141. package/dist/neutral/components/SimpleCardGrid/index.d.mts +0 -2
  142. package/dist/neutral/components/SimpleCardGrid/index.d.mts.map +0 -1
  143. package/dist/neutral/components/SimpleCardGrid/index.d.ts +0 -2
  144. package/dist/neutral/components/SimpleCardGrid/index.d.ts.map +0 -1
  145. package/dist/neutral/components/index.d.cts +0 -6
  146. package/dist/neutral/components/index.d.cts.map +0 -1
  147. package/dist/neutral/components/index.d.mts +0 -6
  148. package/dist/neutral/components/index.d.mts.map +0 -1
  149. package/dist/neutral/components/index.d.ts +0 -6
  150. package/dist/neutral/components/index.d.ts.map +0 -1
  151. package/dist/neutral/index.cjs +0 -248
  152. package/dist/neutral/index.cjs.map +0 -1
  153. package/dist/neutral/index.d.cts +0 -2
  154. package/dist/neutral/index.d.cts.map +0 -1
  155. package/dist/neutral/index.d.mts +0 -2
  156. package/dist/neutral/index.d.mts.map +0 -1
  157. package/dist/neutral/index.d.ts +0 -2
  158. package/dist/neutral/index.d.ts.map +0 -1
  159. package/dist/neutral/index.js +0 -225
  160. package/dist/neutral/index.js.map +0 -1
  161. package/dist/node/components/CardContentEx.d.cts +0 -10
  162. package/dist/node/components/CardContentEx.d.cts.map +0 -1
  163. package/dist/node/components/CardContentEx.d.mts +0 -10
  164. package/dist/node/components/CardContentEx.d.mts.map +0 -1
  165. package/dist/node/components/CardContentEx.d.ts +0 -10
  166. package/dist/node/components/CardContentEx.d.ts.map +0 -1
  167. package/dist/node/components/CardEx.d.cts +0 -7
  168. package/dist/node/components/CardEx.d.cts.map +0 -1
  169. package/dist/node/components/CardEx.d.mts +0 -7
  170. package/dist/node/components/CardEx.d.mts.map +0 -1
  171. package/dist/node/components/CardEx.d.ts +0 -7
  172. package/dist/node/components/CardEx.d.ts.map +0 -1
  173. package/dist/node/components/FullWidthCard/FullWidthCard.d.cts +0 -15
  174. package/dist/node/components/FullWidthCard/FullWidthCard.d.cts.map +0 -1
  175. package/dist/node/components/FullWidthCard/FullWidthCard.d.mts +0 -15
  176. package/dist/node/components/FullWidthCard/FullWidthCard.d.mts.map +0 -1
  177. package/dist/node/components/FullWidthCard/FullWidthCard.d.ts +0 -15
  178. package/dist/node/components/FullWidthCard/FullWidthCard.d.ts.map +0 -1
  179. package/dist/node/components/FullWidthCard/index.d.cts +0 -2
  180. package/dist/node/components/FullWidthCard/index.d.cts.map +0 -1
  181. package/dist/node/components/FullWidthCard/index.d.mts +0 -2
  182. package/dist/node/components/FullWidthCard/index.d.mts.map +0 -1
  183. package/dist/node/components/FullWidthCard/index.d.ts +0 -2
  184. package/dist/node/components/FullWidthCard/index.d.ts.map +0 -1
  185. package/dist/node/components/PageCard.d.cts +0 -10
  186. package/dist/node/components/PageCard.d.cts.map +0 -1
  187. package/dist/node/components/PageCard.d.mts +0 -10
  188. package/dist/node/components/PageCard.d.mts.map +0 -1
  189. package/dist/node/components/PageCard.d.ts +0 -10
  190. package/dist/node/components/PageCard.d.ts.map +0 -1
  191. package/dist/node/components/SimpleCard/SimpleCard.d.cts +0 -16
  192. package/dist/node/components/SimpleCard/SimpleCard.d.cts.map +0 -1
  193. package/dist/node/components/SimpleCard/SimpleCard.d.mts +0 -16
  194. package/dist/node/components/SimpleCard/SimpleCard.d.mts.map +0 -1
  195. package/dist/node/components/SimpleCard/SimpleCard.d.ts +0 -16
  196. package/dist/node/components/SimpleCard/SimpleCard.d.ts.map +0 -1
  197. package/dist/node/components/SimpleCard/index.d.cts +0 -2
  198. package/dist/node/components/SimpleCard/index.d.cts.map +0 -1
  199. package/dist/node/components/SimpleCard/index.d.mts +0 -2
  200. package/dist/node/components/SimpleCard/index.d.mts.map +0 -1
  201. package/dist/node/components/SimpleCard/index.d.ts +0 -2
  202. package/dist/node/components/SimpleCard/index.d.ts.map +0 -1
  203. package/dist/node/components/SimpleCardGrid/SimpleCardGrid.d.cts +0 -7
  204. package/dist/node/components/SimpleCardGrid/SimpleCardGrid.d.cts.map +0 -1
  205. package/dist/node/components/SimpleCardGrid/SimpleCardGrid.d.mts +0 -7
  206. package/dist/node/components/SimpleCardGrid/SimpleCardGrid.d.mts.map +0 -1
  207. package/dist/node/components/SimpleCardGrid/SimpleCardGrid.d.ts +0 -7
  208. package/dist/node/components/SimpleCardGrid/SimpleCardGrid.d.ts.map +0 -1
  209. package/dist/node/components/SimpleCardGrid/index.d.cts +0 -2
  210. package/dist/node/components/SimpleCardGrid/index.d.cts.map +0 -1
  211. package/dist/node/components/SimpleCardGrid/index.d.mts +0 -2
  212. package/dist/node/components/SimpleCardGrid/index.d.mts.map +0 -1
  213. package/dist/node/components/SimpleCardGrid/index.d.ts +0 -2
  214. package/dist/node/components/SimpleCardGrid/index.d.ts.map +0 -1
  215. package/dist/node/components/index.d.cts +0 -6
  216. package/dist/node/components/index.d.cts.map +0 -1
  217. package/dist/node/components/index.d.mts +0 -6
  218. package/dist/node/components/index.d.mts.map +0 -1
  219. package/dist/node/components/index.d.ts +0 -6
  220. package/dist/node/components/index.d.ts.map +0 -1
  221. package/dist/node/index.cjs +0 -259
  222. package/dist/node/index.cjs.map +0 -1
  223. package/dist/node/index.d.cts +0 -2
  224. package/dist/node/index.d.cts.map +0 -1
  225. package/dist/node/index.d.mts +0 -2
  226. package/dist/node/index.d.mts.map +0 -1
  227. package/dist/node/index.d.ts +0 -2
  228. package/dist/node/index.d.ts.map +0 -1
  229. package/dist/node/index.js +0 -226
  230. package/dist/node/index.js.map +0 -1
@@ -2,7 +2,7 @@ import { ArrowForwardRounded as ArrowForwardRoundedIcon } from '@mui/icons-mater
2
2
  import { alpha, Card, CardActions, CardContent, CardMedia, CardProps, Grid, IconButton, Typography, useTheme, Zoom } from '@mui/material'
3
3
  import { FlexGrowCol } from '@xylabs/react-flexbox'
4
4
  import { useIsMobile } from '@xyo-network/react-shared'
5
- import { ReactNode, useState } from 'react'
5
+ import React, { ReactNode, useState } from 'react'
6
6
  import { To, useNavigate } from 'react-router-dom'
7
7
 
8
8
  export interface FullWidthCardProps extends CardProps {
@@ -23,9 +23,11 @@ export const FullWidthCard: React.FC<FullWidthCardProps> = ({ cardIsButton, desc
23
23
  const isMobile = useIsMobile()
24
24
 
25
25
  const localRouteChange = (to: To | undefined) => {
26
+ // eslint-disable-next-line @typescript-eslint/no-unused-expressions
26
27
  to ? navigate(to) : navigate('/404')
27
28
  }
28
29
  const externalRouteChange = (href: string | undefined) => {
30
+ // eslint-disable-next-line @typescript-eslint/no-unused-expressions
29
31
  href ? window.open(href) : navigate('/404')
30
32
  }
31
33
 
@@ -38,38 +40,43 @@ export const FullWidthCard: React.FC<FullWidthCardProps> = ({ cardIsButton, desc
38
40
  '&:hover': {
39
41
  cursor: 'pointer',
40
42
  },
41
- backgroundColor: alpha(theme.palette.primary.light, 0.05),
43
+ 'backgroundColor': alpha(theme.palette.primary.light, 0.05),
42
44
  }}
43
45
  onMouseEnter={() =>
44
- isMobile ? null
45
- : cardIsButton ? setRaised(true)
46
- : null
47
- }
46
+ isMobile
47
+ ? null
48
+ : cardIsButton
49
+ ? setRaised(true)
50
+ : null}
48
51
  onMouseLeave={() =>
49
- isMobile ? null
50
- : cardIsButton ? setRaised(false)
51
- : null
52
- }
52
+ isMobile
53
+ ? null
54
+ : cardIsButton
55
+ ? setRaised(false)
56
+ : null}
53
57
  onClick={() =>
54
- cardIsButton ?
55
- href ? externalRouteChange(href)
56
- : to ? localRouteChange(to)
57
- : navigate('/404')
58
- : null
59
- }
58
+ cardIsButton
59
+ ? href
60
+ ? externalRouteChange(href)
61
+ : to
62
+ ? localRouteChange(to)
63
+ : navigate('/404')
64
+ : null}
60
65
  >
61
- {media ?
62
- <CardMedia component="img" height="100" image={media} alt="" />
63
- : null}
66
+ {media
67
+ ? <CardMedia component="img" height="100" image={media} alt="" />
68
+ : null}
64
69
 
65
70
  <CardContent>
66
71
  <Grid container alignItems="center" paddingY={2} paddingX={2}>
67
72
  <Grid item xs={12} md={6}>
68
- {typeof name === 'string' ?
69
- <Typography fontWeight={700} variant="h2" textAlign="left" paddingBottom={1}>
70
- {name}
71
- </Typography>
72
- : name}
73
+ {typeof name === 'string'
74
+ ? (
75
+ <Typography fontWeight={700} variant="h2" textAlign="left" paddingBottom={1}>
76
+ {name}
77
+ </Typography>
78
+ )
79
+ : name}
73
80
  </Grid>
74
81
  <Grid item xs={12} md={5}>
75
82
  <Typography variant="body1" fontWeight={400} textAlign="left">
@@ -82,10 +89,11 @@ export const FullWidthCard: React.FC<FullWidthCardProps> = ({ cardIsButton, desc
82
89
  color="primary"
83
90
  size={small ? 'small' : 'medium'}
84
91
  onClick={() =>
85
- href ? externalRouteChange(href)
86
- : to ? localRouteChange(to)
87
- : navigate('/404')
88
- }
92
+ href
93
+ ? externalRouteChange(href)
94
+ : to
95
+ ? localRouteChange(to)
96
+ : navigate('/404')}
89
97
  disableFocusRipple
90
98
  disableRipple
91
99
  disableTouchRipple
@@ -102,10 +110,11 @@ export const FullWidthCard: React.FC<FullWidthCardProps> = ({ cardIsButton, desc
102
110
  color="primary"
103
111
  size={small ? 'small' : 'medium'}
104
112
  onClick={() =>
105
- href ? externalRouteChange(href)
106
- : to ? localRouteChange(to)
107
- : navigate('/404')
108
- }
113
+ href
114
+ ? externalRouteChange(href)
115
+ : to
116
+ ? localRouteChange(to)
117
+ : navigate('/404')}
109
118
  disableFocusRipple
110
119
  disableRipple
111
120
  disableTouchRipple
@@ -1 +1 @@
1
- export * from './FullWidthCard.js'
1
+ export * from './FullWidthCard.tsx'
@@ -1,10 +1,9 @@
1
- /* eslint-disable import/no-internal-modules */
2
1
  import { CardContent, Typography } from '@mui/material'
3
2
  import { Meta, StoryFn } from '@storybook/react'
4
3
  import { WithRefDecorator } from '@xyo-network/react-storybook'
5
- import { useState } from 'react'
4
+ import React, { useState } from 'react'
6
5
 
7
- import { PageCard } from './PageCard.js'
6
+ import { PageCard } from './PageCard.tsx'
8
7
 
9
8
  const StorybookEntry: Meta = {
10
9
  argTypes: {
@@ -29,7 +28,10 @@ const Template: StoryFn<typeof PageCard> = (props) => {
29
28
  <PageCard title="Page Card" subheader="subheader" onRefresh={() => setRefreshedValue(Math.random())} {...props}>
30
29
  <CardContent>
31
30
  <Typography variant="body1">Page Card Content</Typography>
32
- <Typography variant="body1">Refreshed Value: {refreshedValue?.toString()}</Typography>
31
+ <Typography variant="body1">
32
+ Refreshed Value:
33
+ {refreshedValue?.toString()}
34
+ </Typography>
33
35
  </CardContent>
34
36
  </PageCard>
35
37
  )
@@ -62,5 +64,4 @@ WithRef.decorators = [WithRefDecorator]
62
64
 
63
65
  export { Default, WithNoOnRefresh, WithRef }
64
66
 
65
- // eslint-disable-next-line import/no-default-export
66
67
  export default StorybookEntry
@@ -1,9 +1,9 @@
1
1
  import { Refresh as RefreshIcon } from '@mui/icons-material'
2
2
  import { CardHeader, CardHeaderProps, IconButton } from '@mui/material'
3
3
  import { TypographyEx } from '@xyo-network/react-shared'
4
- import { forwardRef, ReactNode } from 'react'
4
+ import React, { forwardRef, ReactNode } from 'react'
5
5
 
6
- import { CardEx, CardExProps } from './CardEx.js'
6
+ import { CardEx, CardExProps } from './CardEx.tsx'
7
7
 
8
8
  export interface PageCardProps extends CardExProps {
9
9
  action?: ReactNode
@@ -15,20 +15,22 @@ const PageCardWithRef = forwardRef<HTMLDivElement, PageCardProps>(({ subheader,
15
15
  return (
16
16
  <CardEx style={{ backgroundColor: 'transparent', position: 'relative', ...style }} elevation={0} ref={ref} {...props}>
17
17
  <CardHeader
18
- title={
18
+ title={(
19
19
  <TypographyEx variant="h5" gutterBottom>
20
20
  {title}
21
21
  </TypographyEx>
22
- }
22
+ )}
23
23
  subheader={<TypographyEx variant="subtitle1">{subheader}</TypographyEx>}
24
24
  action={
25
25
  action ?? (
26
26
  <>
27
- {onRefresh ?
28
- <IconButton onClick={() => onRefresh?.()}>
29
- <RefreshIcon />
30
- </IconButton>
31
- : null}
27
+ {onRefresh
28
+ ? (
29
+ <IconButton onClick={() => onRefresh?.()}>
30
+ <RefreshIcon />
31
+ </IconButton>
32
+ )
33
+ : null}
32
34
  </>
33
35
  )
34
36
  }
@@ -1,10 +1,11 @@
1
1
  import { Grid } from '@mui/material'
2
2
  import { Meta, StoryFn } from '@storybook/react'
3
+ import React from 'react'
3
4
  import { BrowserRouter } from 'react-router-dom'
4
5
 
5
6
  import CoinbaseWalletIcon from './coinbase-wallet.svg'
6
7
  import MoneyMedia from './money.jpg'
7
- import { SimpleCard } from './SimpleCard.js'
8
+ import { SimpleCard } from './SimpleCard.tsx'
8
9
  const StorybookEntry = {
9
10
  argTypes: {},
10
11
  component: SimpleCard,
@@ -16,7 +17,7 @@ const StorybookEntry = {
16
17
  title: 'shared/SimpleCard',
17
18
  } as Meta<typeof SimpleCard>
18
19
 
19
- const Template: StoryFn<typeof SimpleCard> = (args) => (
20
+ const Template: StoryFn<typeof SimpleCard> = args => (
20
21
  <BrowserRouter>
21
22
  <Grid container spacing={2}>
22
23
  <Grid item xs={12} sm={6} md={3}>
@@ -80,9 +81,8 @@ CardWithAllParameters.args = {
80
81
  }
81
82
 
82
83
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
83
- //@ts-ignore
84
+ // @ts-ignore
84
85
 
85
86
  export { CardWithAllParameters, Default, DefaultMediaCard, DefaultSmallCard, DefaultWithImage, VariantButton }
86
87
 
87
- // eslint-disable-next-line import/no-default-export
88
88
  export default StorybookEntry
@@ -2,10 +2,10 @@ import { ArrowForwardRounded as ArrowForwardRoundedIcon } from '@mui/icons-mater
2
2
  import { alpha, CardActions, CardContent, CardMedia, IconButton, Typography, useTheme } from '@mui/material'
3
3
  import { FlexCol, FlexGrowCol } from '@xylabs/react-flexbox'
4
4
  import { useIsMobile } from '@xyo-network/react-shared'
5
- import { ReactNode, useState } from 'react'
5
+ import React, { ReactNode, useState } from 'react'
6
6
  import { To, useNavigate } from 'react-router-dom'
7
7
 
8
- import { CardEx, CardExProps } from '../CardEx.js'
8
+ import { CardEx, CardExProps } from '../CardEx.tsx'
9
9
 
10
10
  export interface SimpleCardProps extends CardExProps {
11
11
  desc?: ReactNode
@@ -37,9 +37,11 @@ export const SimpleCard: React.FC<SimpleCardProps> = ({
37
37
  const navigate = useNavigate()
38
38
  const isMobile = useIsMobile()
39
39
  const localRouteChange = (to: To | undefined) => {
40
+ // eslint-disable-next-line @typescript-eslint/no-unused-expressions
40
41
  to ? navigate(to) : navigate('/404')
41
42
  }
42
43
  const externalRouteChange = (href: string | undefined) => {
44
+ // eslint-disable-next-line @typescript-eslint/no-unused-expressions
43
45
  href ? window.open(href) : navigate('/404')
44
46
  }
45
47
  return (
@@ -49,72 +51,82 @@ export const SimpleCard: React.FC<SimpleCardProps> = ({
49
51
  '&:hover': {
50
52
  cursor: interactionVariant == 'button' ? 'pointer' : null,
51
53
  },
52
- backgroundColor: alpha(theme.palette.primary.light, 0.05),
54
+ 'backgroundColor': alpha(theme.palette.primary.light, 0.05),
53
55
  ...sx,
54
56
  }}
55
57
  onMouseEnter={() =>
56
- isMobile ? null
57
- : interactionVariant == 'button' ? setRaised(true)
58
- : null
59
- }
58
+ isMobile
59
+ ? null
60
+ : interactionVariant == 'button'
61
+ ? setRaised(true)
62
+ : null}
60
63
  onMouseLeave={() =>
61
- isMobile ? null
62
- : interactionVariant == 'button' ? setRaised(false)
63
- : null
64
- }
64
+ isMobile
65
+ ? null
66
+ : interactionVariant == 'button'
67
+ ? setRaised(false)
68
+ : null}
65
69
  onClick={() =>
66
- interactionVariant == 'button' ?
67
- href ? externalRouteChange(href)
68
- : to ? localRouteChange(to)
69
- : navigate('/404')
70
- : null
71
- }
70
+ interactionVariant == 'button'
71
+ ? href
72
+ ? externalRouteChange(href)
73
+ : to
74
+ ? localRouteChange(to)
75
+ : navigate('/404')
76
+ : null}
72
77
  {...props}
73
78
  >
74
- {media ?
75
- <CardMedia component="img" height="100" image={media} alt="" />
76
- : null}
79
+ {media
80
+ ? <CardMedia component="img" height="100" image={media} alt="" />
81
+ : null}
77
82
 
78
83
  <CardContent sx={{ height: '100%' }}>
79
84
  <FlexCol width="100%" alignItems="flex-start">
80
- {iconImage ?
81
- <img src={iconImage} height="40px" style={{ paddingBottom: '8px' }} />
82
- : null}
83
- {typeof headline === 'string' ?
84
- <Typography variant={small ? 'body1' : 'h6'} textAlign="left" gutterBottom>
85
- {headline}
86
- </Typography>
87
- : headline}
88
- {subtitle ?
89
- <Typography variant="subtitle2" textAlign="left" gutterBottom>
90
- {subtitle}
91
- </Typography>
92
- : null}
85
+ {iconImage
86
+ ? <img src={iconImage} height="40px" style={{ paddingBottom: '8px' }} />
87
+ : null}
88
+ {typeof headline === 'string'
89
+ ? (
90
+ <Typography variant={small ? 'body1' : 'h6'} textAlign="left" gutterBottom>
91
+ {headline}
92
+ </Typography>
93
+ )
94
+ : headline}
95
+ {subtitle
96
+ ? (
97
+ <Typography variant="subtitle2" textAlign="left" gutterBottom>
98
+ {subtitle}
99
+ </Typography>
100
+ )
101
+ : null}
93
102
  <Typography variant={small ? 'caption' : 'body1'} textAlign="left" gutterBottom>
94
103
  {desc}
95
104
  </Typography>
96
105
  </FlexCol>
97
106
  </CardContent>
98
- {interactionVariant == 'button' ?
99
- <CardActions>
100
- <FlexGrowCol alignItems="flex-end">
101
- <IconButton
102
- color={raised ? 'secondary' : 'primary'}
103
- size={small ? 'small' : 'medium'}
104
- onClick={() =>
105
- href ? externalRouteChange(href)
106
- : to ? localRouteChange(to)
107
- : navigate('/404')
108
- }
109
- disableFocusRipple
110
- disableRipple
111
- disableTouchRipple
112
- >
113
- <ArrowForwardRoundedIcon fontSize={small ? 'small' : 'medium'} />
114
- </IconButton>
115
- </FlexGrowCol>
116
- </CardActions>
117
- : null}
107
+ {interactionVariant == 'button'
108
+ ? (
109
+ <CardActions>
110
+ <FlexGrowCol alignItems="flex-end">
111
+ <IconButton
112
+ color={raised ? 'secondary' : 'primary'}
113
+ size={small ? 'small' : 'medium'}
114
+ onClick={() =>
115
+ href
116
+ ? externalRouteChange(href)
117
+ : to
118
+ ? localRouteChange(to)
119
+ : navigate('/404')}
120
+ disableFocusRipple
121
+ disableRipple
122
+ disableTouchRipple
123
+ >
124
+ <ArrowForwardRoundedIcon fontSize={small ? 'small' : 'medium'} />
125
+ </IconButton>
126
+ </FlexGrowCol>
127
+ </CardActions>
128
+ )
129
+ : null}
118
130
  </CardEx>
119
131
  )
120
132
  }
@@ -1 +1 @@
1
- export * from './SimpleCard.js'
1
+ export * from './SimpleCard.tsx'
@@ -1,9 +1,10 @@
1
1
  import { Meta, StoryFn } from '@storybook/react'
2
+ import React from 'react'
2
3
  import { BrowserRouter } from 'react-router-dom'
3
4
 
4
5
  import CoinbaseWalletIcon from './coinbase-wallet.svg'
5
6
  import MoneyMedia from './money.jpg'
6
- import { SimpleCardGrid } from './SimpleCardGrid.js'
7
+ import { SimpleCardGrid } from './SimpleCardGrid.tsx'
7
8
  const StorybookEntry = {
8
9
  argTypes: {},
9
10
  component: SimpleCardGrid,
@@ -15,7 +16,7 @@ const StorybookEntry = {
15
16
  title: 'shared/SimpleCardGrid',
16
17
  } as Meta<typeof SimpleCardGrid>
17
18
 
18
- const Template: StoryFn<typeof SimpleCardGrid> = (args) => (
19
+ const Template: StoryFn<typeof SimpleCardGrid> = args => (
19
20
  <BrowserRouter>
20
21
  <SimpleCardGrid {...args}></SimpleCardGrid>
21
22
  </BrowserRouter>
@@ -69,9 +70,8 @@ Default.args = {
69
70
  }
70
71
 
71
72
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
72
- //@ts-ignore
73
+ // @ts-ignore
73
74
 
74
75
  export { Default }
75
76
 
76
- // eslint-disable-next-line import/no-default-export
77
77
  export default StorybookEntry
@@ -1,6 +1,7 @@
1
1
  import { Grid, GridProps } from '@mui/material'
2
+ import React from 'react'
2
3
 
3
- import { SimpleCard, SimpleCardProps } from '../SimpleCard/index.js'
4
+ import { SimpleCard, SimpleCardProps } from '../SimpleCard/index.ts'
4
5
 
5
6
  export interface SimpleCardGridProps extends GridProps {
6
7
  cards?: SimpleCardProps[]
@@ -1 +1 @@
1
- export * from './SimpleCardGrid.js'
1
+ export * from './SimpleCardGrid.tsx'
@@ -1,5 +1,5 @@
1
- export * from './CardContentEx.js'
2
- export * from './CardEx.js'
3
- export * from './FullWidthCard/index.js'
4
- export * from './PageCard.js'
5
- export * from './SimpleCard/index.js'
1
+ export * from './CardContentEx.tsx'
2
+ export * from './CardEx.tsx'
3
+ export * from './FullWidthCard/index.ts'
4
+ export * from './PageCard.tsx'
5
+ export * from './SimpleCard/index.ts'
package/src/index.ts CHANGED
@@ -1 +1 @@
1
- export * from './components/index.js'
1
+ export * from './components/index.ts'
package/xy.config.ts ADDED
@@ -0,0 +1,12 @@
1
+ import { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
2
+ const config: XyTsupConfig = {
3
+ compile: {
4
+ browser: {
5
+ src: true,
6
+ },
7
+ node: {},
8
+ neutral: {},
9
+ },
10
+ }
11
+
12
+ export default config
@@ -1,10 +0,0 @@
1
- import { CardContentProps } from '@mui/material';
2
- export type CardContentExProps = CardContentProps & {
3
- refreshRef?: number;
4
- removePadding?: boolean;
5
- scrollToTop?: number;
6
- variant?: 'scrollable' | 'normal';
7
- };
8
- export declare const CardContentExWithRef: import("react").ForwardRefExoticComponent<Omit<CardContentExProps, "ref"> & import("react").RefAttributes<HTMLDivElement | null>>;
9
- export declare const CardContentEx: import("react").ForwardRefExoticComponent<Omit<CardContentExProps, "ref"> & import("react").RefAttributes<HTMLDivElement | null>>;
10
- //# 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,EAAe,gBAAgB,EAAU,MAAM,eAAe,CAAA;AAmBrE,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,GAAG;IAClD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,YAAY,GAAG,QAAQ,CAAA;CAClC,CAAA;AAED,eAAO,MAAM,oBAAoB,mIAU/B,CAAA;AAIF,eAAO,MAAM,aAAa,mIAAuB,CAAA"}
@@ -1,10 +0,0 @@
1
- import { CardContentProps } from '@mui/material';
2
- export type CardContentExProps = CardContentProps & {
3
- refreshRef?: number;
4
- removePadding?: boolean;
5
- scrollToTop?: number;
6
- variant?: 'scrollable' | 'normal';
7
- };
8
- export declare const CardContentExWithRef: import("react").ForwardRefExoticComponent<Omit<CardContentExProps, "ref"> & import("react").RefAttributes<HTMLDivElement | null>>;
9
- export declare const CardContentEx: import("react").ForwardRefExoticComponent<Omit<CardContentExProps, "ref"> & import("react").RefAttributes<HTMLDivElement | null>>;
10
- //# 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,EAAe,gBAAgB,EAAU,MAAM,eAAe,CAAA;AAmBrE,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,GAAG;IAClD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,YAAY,GAAG,QAAQ,CAAA;CAClC,CAAA;AAED,eAAO,MAAM,oBAAoB,mIAU/B,CAAA;AAIF,eAAO,MAAM,aAAa,mIAAuB,CAAA"}
@@ -1,10 +0,0 @@
1
- import { CardContentProps } from '@mui/material';
2
- export type CardContentExProps = CardContentProps & {
3
- refreshRef?: number;
4
- removePadding?: boolean;
5
- scrollToTop?: number;
6
- variant?: 'scrollable' | 'normal';
7
- };
8
- export declare const CardContentExWithRef: import("react").ForwardRefExoticComponent<Omit<CardContentExProps, "ref"> & import("react").RefAttributes<HTMLDivElement | null>>;
9
- export declare const CardContentEx: import("react").ForwardRefExoticComponent<Omit<CardContentExProps, "ref"> & import("react").RefAttributes<HTMLDivElement | null>>;
10
- //# 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,EAAe,gBAAgB,EAAU,MAAM,eAAe,CAAA;AAmBrE,MAAM,MAAM,kBAAkB,GAAG,gBAAgB,GAAG;IAClD,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,YAAY,GAAG,QAAQ,CAAA;CAClC,CAAA;AAED,eAAO,MAAM,oBAAoB,mIAU/B,CAAA;AAIF,eAAO,MAAM,aAAa,mIAAuB,CAAA"}
@@ -1,7 +0,0 @@
1
- import { CardProps } from '@mui/material';
2
- export interface CardExProps extends CardProps {
3
- gradient?: 'border' | 'background';
4
- }
5
- export declare const CardExWithRef: import("react").ForwardRefExoticComponent<Omit<CardExProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
6
- export declare const CardEx: import("react").ForwardRefExoticComponent<Omit<CardExProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
7
- //# 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,EAAQ,SAAS,EAAE,MAAM,eAAe,CAAA;AAI/C,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,QAAQ,CAAC,EAAE,QAAQ,GAAG,YAAY,CAAA;CACnC;AAED,eAAO,MAAM,aAAa,qHAgBxB,CAAA;AAIF,eAAO,MAAM,MAAM,qHAAgB,CAAA"}
@@ -1,7 +0,0 @@
1
- import { CardProps } from '@mui/material';
2
- export interface CardExProps extends CardProps {
3
- gradient?: 'border' | 'background';
4
- }
5
- export declare const CardExWithRef: import("react").ForwardRefExoticComponent<Omit<CardExProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
6
- export declare const CardEx: import("react").ForwardRefExoticComponent<Omit<CardExProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
7
- //# 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,EAAQ,SAAS,EAAE,MAAM,eAAe,CAAA;AAI/C,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,QAAQ,CAAC,EAAE,QAAQ,GAAG,YAAY,CAAA;CACnC;AAED,eAAO,MAAM,aAAa,qHAgBxB,CAAA;AAIF,eAAO,MAAM,MAAM,qHAAgB,CAAA"}
@@ -1,7 +0,0 @@
1
- import { CardProps } from '@mui/material';
2
- export interface CardExProps extends CardProps {
3
- gradient?: 'border' | 'background';
4
- }
5
- export declare const CardExWithRef: import("react").ForwardRefExoticComponent<Omit<CardExProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
6
- export declare const CardEx: import("react").ForwardRefExoticComponent<Omit<CardExProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
7
- //# 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,EAAQ,SAAS,EAAE,MAAM,eAAe,CAAA;AAI/C,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,QAAQ,CAAC,EAAE,QAAQ,GAAG,YAAY,CAAA;CACnC;AAED,eAAO,MAAM,aAAa,qHAgBxB,CAAA;AAIF,eAAO,MAAM,MAAM,qHAAgB,CAAA"}
@@ -1,15 +0,0 @@
1
- import { CardProps } from '@mui/material';
2
- import { ReactNode } from 'react';
3
- import { To } from 'react-router-dom';
4
- export interface FullWidthCardProps extends CardProps {
5
- cardIsButton?: boolean;
6
- desc?: ReactNode;
7
- href?: string;
8
- linkText?: string;
9
- media?: string;
10
- name: ReactNode;
11
- small?: boolean;
12
- to?: To;
13
- }
14
- export declare const FullWidthCard: React.FC<FullWidthCardProps>;
15
- //# sourceMappingURL=FullWidthCard.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FullWidthCard.d.ts","sourceRoot":"","sources":["../../../../src/components/FullWidthCard/FullWidthCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAoD,SAAS,EAAgD,MAAM,eAAe,CAAA;AAGzI,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAA;AAC3C,OAAO,EAAE,EAAE,EAAe,MAAM,kBAAkB,CAAA;AAElD,MAAM,WAAW,kBAAmB,SAAQ,SAAS;IACnD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,SAAS,CAAA;IACf,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,EAAE,CAAC,EAAE,EAAE,CAAA;CACR;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAoGtD,CAAA"}
@@ -1,15 +0,0 @@
1
- import { CardProps } from '@mui/material';
2
- import { ReactNode } from 'react';
3
- import { To } from 'react-router-dom';
4
- export interface FullWidthCardProps extends CardProps {
5
- cardIsButton?: boolean;
6
- desc?: ReactNode;
7
- href?: string;
8
- linkText?: string;
9
- media?: string;
10
- name: ReactNode;
11
- small?: boolean;
12
- to?: To;
13
- }
14
- export declare const FullWidthCard: React.FC<FullWidthCardProps>;
15
- //# sourceMappingURL=FullWidthCard.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FullWidthCard.d.ts","sourceRoot":"","sources":["../../../../src/components/FullWidthCard/FullWidthCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAoD,SAAS,EAAgD,MAAM,eAAe,CAAA;AAGzI,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAA;AAC3C,OAAO,EAAE,EAAE,EAAe,MAAM,kBAAkB,CAAA;AAElD,MAAM,WAAW,kBAAmB,SAAQ,SAAS;IACnD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,SAAS,CAAA;IACf,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,EAAE,CAAC,EAAE,EAAE,CAAA;CACR;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAoGtD,CAAA"}
@@ -1,15 +0,0 @@
1
- import { CardProps } from '@mui/material';
2
- import { ReactNode } from 'react';
3
- import { To } from 'react-router-dom';
4
- export interface FullWidthCardProps extends CardProps {
5
- cardIsButton?: boolean;
6
- desc?: ReactNode;
7
- href?: string;
8
- linkText?: string;
9
- media?: string;
10
- name: ReactNode;
11
- small?: boolean;
12
- to?: To;
13
- }
14
- export declare const FullWidthCard: React.FC<FullWidthCardProps>;
15
- //# sourceMappingURL=FullWidthCard.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FullWidthCard.d.ts","sourceRoot":"","sources":["../../../../src/components/FullWidthCard/FullWidthCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAoD,SAAS,EAAgD,MAAM,eAAe,CAAA;AAGzI,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAA;AAC3C,OAAO,EAAE,EAAE,EAAe,MAAM,kBAAkB,CAAA;AAElD,MAAM,WAAW,kBAAmB,SAAQ,SAAS;IACnD,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,SAAS,CAAA;IACf,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,EAAE,CAAC,EAAE,EAAE,CAAA;CACR;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAoGtD,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './FullWidthCard.js';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/FullWidthCard/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './FullWidthCard.js';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/FullWidthCard/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA"}