@xyo-network/react-card 2.64.0-rc.3 → 2.64.0-rc.5

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 (243) hide show
  1. package/dist/browser/components/CardContentEx.d.mts.map +1 -0
  2. package/dist/browser/components/CardContentEx.d.ts.map +1 -0
  3. package/dist/browser/components/CardContentEx.js +34 -0
  4. package/dist/browser/components/CardContentEx.js.map +1 -0
  5. package/dist/browser/components/CardContentEx.stories.js +51 -0
  6. package/dist/browser/components/CardContentEx.stories.js.map +1 -0
  7. package/dist/browser/components/CardEx.d.mts.map +1 -0
  8. package/dist/browser/components/CardEx.d.ts.map +1 -0
  9. package/dist/browser/components/CardEx.js +26 -0
  10. package/dist/browser/components/CardEx.js.map +1 -0
  11. package/dist/browser/components/FullWidthCard/FullWidthCard.d.mts.map +1 -0
  12. package/dist/browser/components/FullWidthCard/FullWidthCard.d.ts.map +1 -0
  13. package/dist/browser/components/FullWidthCard/FullWidthCard.js +71 -0
  14. package/dist/browser/components/FullWidthCard/FullWidthCard.js.map +1 -0
  15. package/dist/browser/components/FullWidthCard/FullWidthCard.stories.js +27 -0
  16. package/dist/browser/components/FullWidthCard/FullWidthCard.stories.js.map +1 -0
  17. package/dist/browser/components/FullWidthCard/index.d.mts.map +1 -0
  18. package/dist/browser/components/FullWidthCard/index.d.ts.map +1 -0
  19. package/dist/browser/components/FullWidthCard/index.js +2 -0
  20. package/dist/browser/components/FullWidthCard/index.js.map +1 -0
  21. package/dist/browser/components/PageCard.d.mts.map +1 -0
  22. package/dist/browser/components/PageCard.d.ts.map +1 -0
  23. package/dist/browser/components/PageCard.js +25 -0
  24. package/dist/browser/components/PageCard.js.map +1 -0
  25. package/dist/browser/components/PageCard.stories.js +54 -0
  26. package/dist/browser/components/PageCard.stories.js.map +1 -0
  27. package/dist/browser/components/SimpleCard/SimpleCard.d.mts.map +1 -0
  28. package/dist/browser/components/SimpleCard/SimpleCard.d.ts.map +1 -0
  29. package/dist/browser/components/SimpleCard/SimpleCard.js +74 -0
  30. package/dist/browser/components/SimpleCard/SimpleCard.js.map +1 -0
  31. package/dist/browser/components/SimpleCard/SimpleCard.stories.js +76 -0
  32. package/dist/browser/components/SimpleCard/SimpleCard.stories.js.map +1 -0
  33. package/dist/browser/components/SimpleCard/coinbase-wallet.svg +1 -0
  34. package/dist/browser/components/SimpleCard/index.d.mts.map +1 -0
  35. package/dist/browser/components/SimpleCard/index.d.ts.map +1 -0
  36. package/dist/browser/components/SimpleCard/index.js +2 -0
  37. package/dist/browser/components/SimpleCard/index.js.map +1 -0
  38. package/dist/browser/components/SimpleCard/money.jpg +0 -0
  39. package/dist/browser/components/SimpleCardGrid/SimpleCardGrid.d.mts.map +1 -0
  40. package/dist/browser/components/SimpleCardGrid/SimpleCardGrid.d.ts.map +1 -0
  41. package/dist/browser/components/SimpleCardGrid/SimpleCardGrid.js +10 -0
  42. package/dist/browser/components/SimpleCardGrid/SimpleCardGrid.js.map +1 -0
  43. package/dist/browser/components/SimpleCardGrid/SimpleCardGrid.stories.js +68 -0
  44. package/dist/browser/components/SimpleCardGrid/SimpleCardGrid.stories.js.map +1 -0
  45. package/dist/browser/components/SimpleCardGrid/coinbase-wallet.svg +1 -0
  46. package/dist/browser/components/SimpleCardGrid/index.d.mts.map +1 -0
  47. package/dist/browser/components/SimpleCardGrid/index.d.ts.map +1 -0
  48. package/dist/browser/components/SimpleCardGrid/index.js +2 -0
  49. package/dist/browser/components/SimpleCardGrid/index.js.map +1 -0
  50. package/dist/browser/components/SimpleCardGrid/money.jpg +0 -0
  51. package/dist/browser/components/index.d.mts.map +1 -0
  52. package/dist/browser/components/index.d.ts.map +1 -0
  53. package/dist/browser/components/index.js +6 -0
  54. package/dist/browser/components/index.js.map +1 -0
  55. package/dist/{index.d.mts.map → browser/index.d.mts.map} +1 -1
  56. package/dist/{index.d.ts.map → browser/index.d.ts.map} +1 -1
  57. package/dist/browser/index.js +2 -0
  58. package/dist/browser/index.js.map +1 -0
  59. package/dist/browser/types/images.d.js +1 -0
  60. package/dist/browser/types/images.d.js.map +1 -0
  61. package/dist/node/components/CardContentEx.d.mts +11 -0
  62. package/dist/node/components/CardContentEx.d.mts.map +1 -0
  63. package/dist/node/components/CardContentEx.d.ts +11 -0
  64. package/dist/node/components/CardContentEx.d.ts.map +1 -0
  65. package/dist/node/components/CardContentEx.js +59 -0
  66. package/dist/node/components/CardContentEx.js.map +1 -0
  67. package/dist/node/components/CardContentEx.mjs +34 -0
  68. package/dist/node/components/CardContentEx.mjs.map +1 -0
  69. package/dist/node/components/CardContentEx.stories.js +77 -0
  70. package/dist/node/components/CardContentEx.stories.js.map +1 -0
  71. package/dist/node/components/CardContentEx.stories.mjs +51 -0
  72. package/dist/node/components/CardContentEx.stories.mjs.map +1 -0
  73. package/dist/node/components/CardEx.d.mts +8 -0
  74. package/dist/node/components/CardEx.d.mts.map +1 -0
  75. package/dist/node/components/CardEx.d.ts +8 -0
  76. package/dist/node/components/CardEx.d.ts.map +1 -0
  77. package/dist/node/components/CardEx.js +51 -0
  78. package/dist/node/components/CardEx.js.map +1 -0
  79. package/dist/node/components/CardEx.mjs +26 -0
  80. package/dist/node/components/CardEx.mjs.map +1 -0
  81. package/dist/node/components/FullWidthCard/FullWidthCard.d.mts +15 -0
  82. package/dist/node/components/FullWidthCard/FullWidthCard.d.mts.map +1 -0
  83. package/dist/node/components/FullWidthCard/FullWidthCard.d.ts +15 -0
  84. package/dist/node/components/FullWidthCard/FullWidthCard.d.ts.map +1 -0
  85. package/dist/node/components/FullWidthCard/FullWidthCard.js +95 -0
  86. package/dist/node/components/FullWidthCard/FullWidthCard.js.map +1 -0
  87. package/dist/node/components/FullWidthCard/FullWidthCard.mjs +71 -0
  88. package/dist/node/components/FullWidthCard/FullWidthCard.mjs.map +1 -0
  89. package/dist/node/components/FullWidthCard/FullWidthCard.stories.js +51 -0
  90. package/dist/node/components/FullWidthCard/FullWidthCard.stories.js.map +1 -0
  91. package/dist/node/components/FullWidthCard/FullWidthCard.stories.mjs +27 -0
  92. package/dist/node/components/FullWidthCard/FullWidthCard.stories.mjs.map +1 -0
  93. package/dist/node/components/FullWidthCard/index.d.mts +2 -0
  94. package/dist/node/components/FullWidthCard/index.d.mts.map +1 -0
  95. package/dist/node/components/FullWidthCard/index.d.ts +2 -0
  96. package/dist/node/components/FullWidthCard/index.d.ts.map +1 -0
  97. package/dist/node/components/FullWidthCard/index.js +23 -0
  98. package/dist/node/components/FullWidthCard/index.js.map +1 -0
  99. package/dist/node/components/FullWidthCard/index.mjs +2 -0
  100. package/dist/node/components/FullWidthCard/index.mjs.map +1 -0
  101. package/dist/node/components/PageCard.d.mts +10 -0
  102. package/dist/node/components/PageCard.d.mts.map +1 -0
  103. package/dist/node/components/PageCard.d.ts +10 -0
  104. package/dist/node/components/PageCard.d.ts.map +1 -0
  105. package/dist/node/components/PageCard.js +49 -0
  106. package/dist/node/components/PageCard.js.map +1 -0
  107. package/dist/node/components/PageCard.mjs +25 -0
  108. package/dist/node/components/PageCard.mjs.map +1 -0
  109. package/dist/node/components/PageCard.stories.js +80 -0
  110. package/dist/node/components/PageCard.stories.js.map +1 -0
  111. package/dist/node/components/PageCard.stories.mjs +54 -0
  112. package/dist/node/components/PageCard.stories.mjs.map +1 -0
  113. package/dist/node/components/SimpleCard/SimpleCard.d.mts +16 -0
  114. package/dist/node/components/SimpleCard/SimpleCard.d.mts.map +1 -0
  115. package/dist/node/components/SimpleCard/SimpleCard.d.ts +16 -0
  116. package/dist/node/components/SimpleCard/SimpleCard.d.ts.map +1 -0
  117. package/dist/node/components/SimpleCard/SimpleCard.js +98 -0
  118. package/dist/node/components/SimpleCard/SimpleCard.js.map +1 -0
  119. package/dist/node/components/SimpleCard/SimpleCard.mjs +74 -0
  120. package/dist/node/components/SimpleCard/SimpleCard.mjs.map +1 -0
  121. package/dist/node/components/SimpleCard/SimpleCard.stories.js +115 -0
  122. package/dist/node/components/SimpleCard/SimpleCard.stories.js.map +1 -0
  123. package/dist/node/components/SimpleCard/SimpleCard.stories.mjs +76 -0
  124. package/dist/node/components/SimpleCard/SimpleCard.stories.mjs.map +1 -0
  125. package/dist/node/components/SimpleCard/coinbase-wallet.svg +1 -0
  126. package/dist/node/components/SimpleCard/index.d.mts +2 -0
  127. package/dist/node/components/SimpleCard/index.d.mts.map +1 -0
  128. package/dist/node/components/SimpleCard/index.d.ts +2 -0
  129. package/dist/node/components/SimpleCard/index.d.ts.map +1 -0
  130. package/dist/node/components/SimpleCard/index.js +23 -0
  131. package/dist/node/components/SimpleCard/index.js.map +1 -0
  132. package/dist/node/components/SimpleCard/index.mjs +2 -0
  133. package/dist/node/components/SimpleCard/index.mjs.map +1 -0
  134. package/dist/node/components/SimpleCard/money.jpg +0 -0
  135. package/dist/node/components/SimpleCardGrid/SimpleCardGrid.d.mts +8 -0
  136. package/dist/node/components/SimpleCardGrid/SimpleCardGrid.d.mts.map +1 -0
  137. package/dist/node/components/SimpleCardGrid/SimpleCardGrid.d.ts +8 -0
  138. package/dist/node/components/SimpleCardGrid/SimpleCardGrid.d.ts.map +1 -0
  139. package/dist/node/components/SimpleCardGrid/SimpleCardGrid.js +34 -0
  140. package/dist/node/components/SimpleCardGrid/SimpleCardGrid.js.map +1 -0
  141. package/dist/node/components/SimpleCardGrid/SimpleCardGrid.mjs +10 -0
  142. package/dist/node/components/SimpleCardGrid/SimpleCardGrid.mjs.map +1 -0
  143. package/dist/node/components/SimpleCardGrid/SimpleCardGrid.stories.js +102 -0
  144. package/dist/node/components/SimpleCardGrid/SimpleCardGrid.stories.js.map +1 -0
  145. package/dist/node/components/SimpleCardGrid/SimpleCardGrid.stories.mjs +68 -0
  146. package/dist/node/components/SimpleCardGrid/SimpleCardGrid.stories.mjs.map +1 -0
  147. package/dist/node/components/SimpleCardGrid/coinbase-wallet.svg +1 -0
  148. package/dist/node/components/SimpleCardGrid/index.d.mts +2 -0
  149. package/dist/node/components/SimpleCardGrid/index.d.mts.map +1 -0
  150. package/dist/node/components/SimpleCardGrid/index.d.ts +2 -0
  151. package/dist/node/components/SimpleCardGrid/index.d.ts.map +1 -0
  152. package/dist/node/components/SimpleCardGrid/index.js +23 -0
  153. package/dist/node/components/SimpleCardGrid/index.js.map +1 -0
  154. package/dist/node/components/SimpleCardGrid/index.mjs +2 -0
  155. package/dist/node/components/SimpleCardGrid/index.mjs.map +1 -0
  156. package/dist/node/components/SimpleCardGrid/money.jpg +0 -0
  157. package/dist/node/components/index.d.mts +6 -0
  158. package/dist/node/components/index.d.mts.map +1 -0
  159. package/dist/node/components/index.d.ts +6 -0
  160. package/dist/node/components/index.d.ts.map +1 -0
  161. package/dist/node/components/index.js +31 -0
  162. package/dist/node/components/index.js.map +1 -0
  163. package/dist/node/components/index.mjs +6 -0
  164. package/dist/node/components/index.mjs.map +1 -0
  165. package/dist/node/index.d.mts +2 -0
  166. package/dist/node/index.d.mts.map +1 -0
  167. package/dist/node/index.d.ts +2 -0
  168. package/dist/node/index.d.ts.map +1 -0
  169. package/dist/node/index.js +23 -0
  170. package/dist/node/index.js.map +1 -0
  171. package/dist/node/index.mjs +2 -0
  172. package/dist/node/index.mjs.map +1 -0
  173. package/dist/node/types/images.d.js +2 -0
  174. package/dist/node/types/images.d.js.map +1 -0
  175. package/dist/node/types/images.d.mjs +1 -0
  176. package/dist/node/types/images.d.mjs.map +1 -0
  177. package/package.json +19 -19
  178. package/dist/components/CardContentEx.d.mts.map +0 -1
  179. package/dist/components/CardContentEx.d.ts.map +0 -1
  180. package/dist/components/CardContentEx.stories.d.mts +0 -9
  181. package/dist/components/CardContentEx.stories.d.mts.map +0 -1
  182. package/dist/components/CardContentEx.stories.d.ts +0 -9
  183. package/dist/components/CardContentEx.stories.d.ts.map +0 -1
  184. package/dist/components/CardEx.d.mts.map +0 -1
  185. package/dist/components/CardEx.d.ts.map +0 -1
  186. package/dist/components/FullWidthCard/FullWidthCard.d.mts.map +0 -1
  187. package/dist/components/FullWidthCard/FullWidthCard.d.ts.map +0 -1
  188. package/dist/components/FullWidthCard/FullWidthCard.stories.d.mts +0 -5
  189. package/dist/components/FullWidthCard/FullWidthCard.stories.d.mts.map +0 -1
  190. package/dist/components/FullWidthCard/FullWidthCard.stories.d.ts +0 -5
  191. package/dist/components/FullWidthCard/FullWidthCard.stories.d.ts.map +0 -1
  192. package/dist/components/FullWidthCard/index.d.mts.map +0 -1
  193. package/dist/components/FullWidthCard/index.d.ts.map +0 -1
  194. package/dist/components/PageCard.d.mts.map +0 -1
  195. package/dist/components/PageCard.d.ts.map +0 -1
  196. package/dist/components/PageCard.stories.d.mts +0 -8
  197. package/dist/components/PageCard.stories.d.mts.map +0 -1
  198. package/dist/components/PageCard.stories.d.ts +0 -8
  199. package/dist/components/PageCard.stories.d.ts.map +0 -1
  200. package/dist/components/SimpleCard/SimpleCard.d.mts.map +0 -1
  201. package/dist/components/SimpleCard/SimpleCard.d.ts.map +0 -1
  202. package/dist/components/SimpleCard/SimpleCard.stories.d.mts +0 -10
  203. package/dist/components/SimpleCard/SimpleCard.stories.d.mts.map +0 -1
  204. package/dist/components/SimpleCard/SimpleCard.stories.d.ts +0 -10
  205. package/dist/components/SimpleCard/SimpleCard.stories.d.ts.map +0 -1
  206. package/dist/components/SimpleCard/index.d.mts.map +0 -1
  207. package/dist/components/SimpleCard/index.d.ts.map +0 -1
  208. package/dist/components/SimpleCardGrid/SimpleCardGrid.d.mts.map +0 -1
  209. package/dist/components/SimpleCardGrid/SimpleCardGrid.d.ts.map +0 -1
  210. package/dist/components/SimpleCardGrid/SimpleCardGrid.stories.d.mts +0 -5
  211. package/dist/components/SimpleCardGrid/SimpleCardGrid.stories.d.mts.map +0 -1
  212. package/dist/components/SimpleCardGrid/SimpleCardGrid.stories.d.ts +0 -5
  213. package/dist/components/SimpleCardGrid/SimpleCardGrid.stories.d.ts.map +0 -1
  214. package/dist/components/SimpleCardGrid/index.d.mts.map +0 -1
  215. package/dist/components/SimpleCardGrid/index.d.ts.map +0 -1
  216. package/dist/components/index.d.mts.map +0 -1
  217. package/dist/components/index.d.ts.map +0 -1
  218. package/dist/index.js +0 -258
  219. package/dist/index.js.map +0 -1
  220. package/dist/index.mjs +0 -225
  221. package/dist/index.mjs.map +0 -1
  222. /package/dist/{components → browser/components}/CardContentEx.d.mts +0 -0
  223. /package/dist/{components → browser/components}/CardContentEx.d.ts +0 -0
  224. /package/dist/{components → browser/components}/CardEx.d.mts +0 -0
  225. /package/dist/{components → browser/components}/CardEx.d.ts +0 -0
  226. /package/dist/{components → browser/components}/FullWidthCard/FullWidthCard.d.mts +0 -0
  227. /package/dist/{components → browser/components}/FullWidthCard/FullWidthCard.d.ts +0 -0
  228. /package/dist/{components → browser/components}/FullWidthCard/index.d.mts +0 -0
  229. /package/dist/{components → browser/components}/FullWidthCard/index.d.ts +0 -0
  230. /package/dist/{components → browser/components}/PageCard.d.mts +0 -0
  231. /package/dist/{components → browser/components}/PageCard.d.ts +0 -0
  232. /package/dist/{components → browser/components}/SimpleCard/SimpleCard.d.mts +0 -0
  233. /package/dist/{components → browser/components}/SimpleCard/SimpleCard.d.ts +0 -0
  234. /package/dist/{components → browser/components}/SimpleCard/index.d.mts +0 -0
  235. /package/dist/{components → browser/components}/SimpleCard/index.d.ts +0 -0
  236. /package/dist/{components → browser/components}/SimpleCardGrid/SimpleCardGrid.d.mts +0 -0
  237. /package/dist/{components → browser/components}/SimpleCardGrid/SimpleCardGrid.d.ts +0 -0
  238. /package/dist/{components → browser/components}/SimpleCardGrid/index.d.mts +0 -0
  239. /package/dist/{components → browser/components}/SimpleCardGrid/index.d.ts +0 -0
  240. /package/dist/{components → browser/components}/index.d.mts +0 -0
  241. /package/dist/{components → browser/components}/index.d.ts +0 -0
  242. /package/dist/{index.d.mts → browser/index.d.mts} +0 -0
  243. /package/dist/{index.d.ts → browser/index.d.ts} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SimpleCardGrid.d.ts","sourceRoot":"","sources":["../../../../src/components/SimpleCardGrid/SimpleCardGrid.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAQ,SAAS,EAAE,MAAM,eAAe,CAAA;AAE/C,OAAO,EAAc,eAAe,EAAE,MAAM,eAAe,CAAA;AAE3D,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD,KAAK,CAAC,EAAE,eAAe,EAAE,CAAA;CAC1B;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAUxD,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SimpleCardGrid.d.ts","sourceRoot":"","sources":["../../../../src/components/SimpleCardGrid/SimpleCardGrid.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAQ,SAAS,EAAE,MAAM,eAAe,CAAA;AAE/C,OAAO,EAAc,eAAe,EAAE,MAAM,eAAe,CAAA;AAE3D,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD,KAAK,CAAC,EAAE,eAAe,EAAE,CAAA;CAC1B;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAUxD,CAAA"}
@@ -0,0 +1,10 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { Grid } from "@mui/material";
3
+ import { SimpleCard } from "../SimpleCard";
4
+ const SimpleCardGrid = ({ cards, ...props }) => {
5
+ return /* @__PURE__ */ jsx(Grid, { container: true, ...props, children: cards?.map((card, index) => /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, sm: 6, md: 4, children: /* @__PURE__ */ jsx(SimpleCard, { ...card, sx: { flexDirection: "column", height: "100%" } }) }, index)) });
6
+ };
7
+ export {
8
+ SimpleCardGrid
9
+ };
10
+ //# sourceMappingURL=SimpleCardGrid.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/SimpleCardGrid/SimpleCardGrid.tsx"],"sourcesContent":["import { Grid, GridProps } from '@mui/material'\n\nimport { SimpleCard, SimpleCardProps } from '../SimpleCard'\n\nexport interface SimpleCardGridProps extends GridProps {\n cards?: SimpleCardProps[]\n}\n\nexport const SimpleCardGrid: React.FC<SimpleCardGridProps> = ({ cards, ...props }) => {\n return (\n <Grid container {...props}>\n {cards?.map((card, index) => (\n <Grid item key={index} xs={12} sm={6} md={4}>\n <SimpleCard {...card} sx={{ flexDirection: 'column', height: '100%' }} />\n </Grid>\n ))}\n </Grid>\n )\n}\n"],"mappings":"AAaU;AAbV,SAAS,YAAuB;AAEhC,SAAS,kBAAmC;AAMrC,MAAM,iBAAgD,CAAC,EAAE,OAAO,GAAG,MAAM,MAAM;AACpF,SACE,oBAAC,QAAK,WAAS,MAAE,GAAG,OACjB,iBAAO,IAAI,CAAC,MAAM,UACjB,oBAAC,QAAK,MAAI,MAAa,IAAI,IAAI,IAAI,GAAG,IAAI,GACxC,8BAAC,cAAY,GAAG,MAAM,IAAI,EAAE,eAAe,UAAU,QAAQ,OAAO,GAAG,KADzD,KAEhB,CACD,GACH;AAEJ;","names":[]}
@@ -0,0 +1,68 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { BrowserRouter } from "react-router-dom";
3
+ import CoinbaseWalletIcon from "./coinbase-wallet.svg";
4
+ import MoneyMedia from "./money.jpg";
5
+ import { SimpleCardGrid } from "./SimpleCardGrid";
6
+ const StorybookEntry = {
7
+ argTypes: {},
8
+ component: SimpleCardGrid,
9
+ parameters: {
10
+ docs: {
11
+ page: null
12
+ }
13
+ },
14
+ title: "shared/SimpleCardGrid"
15
+ };
16
+ const Template = (args) => /* @__PURE__ */ jsx(BrowserRouter, { children: /* @__PURE__ */ jsx(SimpleCardGrid, { ...args }) });
17
+ const Default = Template.bind({});
18
+ Default.args = {
19
+ cards: [
20
+ {
21
+ desc: 'Many people believe that a card cannot be a button. But here at XYO, we say "No way, Jos\xE9" and turn our cards into buttons.',
22
+ headline: "Did you know that this card is complex?",
23
+ iconImage: CoinbaseWalletIcon,
24
+ interactionVariant: "button",
25
+ media: MoneyMedia,
26
+ subtitle: "Aug 25, 1997"
27
+ },
28
+ {
29
+ desc: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Sapiente incidunt, beatae suscipit nam consequuntur, minus facere obcaecati, recusandae totam aspernatur aut debitis. Aspernatur nisi molestiae atque? Nisi eius perspiciatis tempore?",
30
+ headline: "Did you know that this card is complex?",
31
+ iconImage: CoinbaseWalletIcon,
32
+ interactionVariant: "button",
33
+ media: MoneyMedia,
34
+ subtitle: "Aug 25, 1997"
35
+ },
36
+ {
37
+ desc: 'Many people believe that a card cannot be a button. But here at XYO, we say "No way, Jos\xE9" and turn our cards into buttons.Lorem ipsum dolor sit amet consectetur adipisicing elit.',
38
+ headline: "Did you know that this card is complex?",
39
+ iconImage: CoinbaseWalletIcon,
40
+ interactionVariant: "button",
41
+ media: MoneyMedia,
42
+ subtitle: "Aug 25, 1997"
43
+ },
44
+ {
45
+ desc: 'Many people believe that a card cannot be a button. But here at XYO, we say "No way, Jos\xE9" and turn our cards into buttons. Sapiente incidunt, beatae suscipit nam consequuntur, minus facere obcaecati, recusandae totam aspernatur aut debitis. Aspernatur nisi molestiae atque? Nisi eius perspiciatis tempore?',
46
+ headline: "Did you know that this card is complex?",
47
+ iconImage: CoinbaseWalletIcon,
48
+ interactionVariant: "button",
49
+ media: MoneyMedia,
50
+ subtitle: "Aug 25, 1997"
51
+ },
52
+ {
53
+ desc: 'Many people believe that a card cannot be a button. But here at XYO, we say "No way, Jos\xE9" and turn our cards into buttons.',
54
+ headline: "Did you know that this card is complex?",
55
+ iconImage: CoinbaseWalletIcon,
56
+ interactionVariant: "button",
57
+ media: MoneyMedia,
58
+ subtitle: "Aug 25, 1997"
59
+ }
60
+ ],
61
+ spacing: 2
62
+ };
63
+ var SimpleCardGrid_stories_default = StorybookEntry;
64
+ export {
65
+ Default,
66
+ SimpleCardGrid_stories_default as default
67
+ };
68
+ //# sourceMappingURL=SimpleCardGrid.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/SimpleCardGrid/SimpleCardGrid.stories.tsx"],"sourcesContent":["import { Meta, StoryFn } from '@storybook/react'\nimport { BrowserRouter } from 'react-router-dom'\n\nimport CoinbaseWalletIcon from './coinbase-wallet.svg'\nimport MoneyMedia from './money.jpg'\nimport { SimpleCardGrid } from './SimpleCardGrid'\nconst StorybookEntry = {\n argTypes: {},\n component: SimpleCardGrid,\n parameters: {\n docs: {\n page: null,\n },\n },\n title: 'shared/SimpleCardGrid',\n} as Meta<typeof SimpleCardGrid>\n\nconst Template: StoryFn<typeof SimpleCardGrid> = (args) => (\n <BrowserRouter>\n <SimpleCardGrid {...args}></SimpleCardGrid>\n </BrowserRouter>\n)\n\nconst Default = Template.bind({})\nDefault.args = {\n cards: [\n {\n desc: 'Many people believe that a card cannot be a button. But here at XYO, we say \"No way, José\" and turn our cards into buttons.',\n headline: 'Did you know that this card is complex?',\n iconImage: CoinbaseWalletIcon,\n interactionVariant: 'button',\n media: MoneyMedia,\n subtitle: 'Aug 25, 1997',\n },\n {\n desc: 'Lorem ipsum dolor sit amet consectetur adipisicing elit. Sapiente incidunt, beatae suscipit nam consequuntur, minus facere obcaecati, recusandae totam aspernatur aut debitis. Aspernatur nisi molestiae atque? Nisi eius perspiciatis tempore?',\n headline: 'Did you know that this card is complex?',\n iconImage: CoinbaseWalletIcon,\n interactionVariant: 'button',\n media: MoneyMedia,\n subtitle: 'Aug 25, 1997',\n },\n {\n desc: 'Many people believe that a card cannot be a button. But here at XYO, we say \"No way, José\" and turn our cards into buttons.Lorem ipsum dolor sit amet consectetur adipisicing elit.',\n headline: 'Did you know that this card is complex?',\n iconImage: CoinbaseWalletIcon,\n interactionVariant: 'button',\n media: MoneyMedia,\n subtitle: 'Aug 25, 1997',\n },\n {\n desc: 'Many people believe that a card cannot be a button. But here at XYO, we say \"No way, José\" and turn our cards into buttons. Sapiente incidunt, beatae suscipit nam consequuntur, minus facere obcaecati, recusandae totam aspernatur aut debitis. Aspernatur nisi molestiae atque? Nisi eius perspiciatis tempore?',\n headline: 'Did you know that this card is complex?',\n iconImage: CoinbaseWalletIcon,\n interactionVariant: 'button',\n media: MoneyMedia,\n subtitle: 'Aug 25, 1997',\n },\n {\n desc: 'Many people believe that a card cannot be a button. But here at XYO, we say \"No way, José\" and turn our cards into buttons.',\n headline: 'Did you know that this card is complex?',\n iconImage: CoinbaseWalletIcon,\n interactionVariant: 'button',\n media: MoneyMedia,\n subtitle: 'Aug 25, 1997',\n },\n ],\n spacing: 2,\n}\n\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n//@ts-ignore\n\nexport { Default }\n\n// eslint-disable-next-line import/no-default-export\nexport default StorybookEntry\n"],"mappings":"AAmBI;AAlBJ,SAAS,qBAAqB;AAE9B,OAAO,wBAAwB;AAC/B,OAAO,gBAAgB;AACvB,SAAS,sBAAsB;AAC/B,MAAM,iBAAiB;AAAA,EACrB,UAAU,CAAC;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,IACV,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EACA,OAAO;AACT;AAEA,MAAM,WAA2C,CAAC,SAChD,oBAAC,iBACC,8BAAC,kBAAgB,GAAG,MAAM,GAC5B;AAGF,MAAM,UAAU,SAAS,KAAK,CAAC,CAAC;AAChC,QAAQ,OAAO;AAAA,EACb,OAAO;AAAA,IACL;AAAA,MACE,MAAM;AAAA,MACN,UAAU;AAAA,MACV,WAAW;AAAA,MACX,oBAAoB;AAAA,MACpB,OAAO;AAAA,MACP,UAAU;AAAA,IACZ;AAAA,IACA;AAAA,MACE,MAAM;AAAA,MACN,UAAU;AAAA,MACV,WAAW;AAAA,MACX,oBAAoB;AAAA,MACpB,OAAO;AAAA,MACP,UAAU;AAAA,IACZ;AAAA,IACA;AAAA,MACE,MAAM;AAAA,MACN,UAAU;AAAA,MACV,WAAW;AAAA,MACX,oBAAoB;AAAA,MACpB,OAAO;AAAA,MACP,UAAU;AAAA,IACZ;AAAA,IACA;AAAA,MACE,MAAM;AAAA,MACN,UAAU;AAAA,MACV,WAAW;AAAA,MACX,oBAAoB;AAAA,MACpB,OAAO;AAAA,MACP,UAAU;AAAA,IACZ;AAAA,IACA;AAAA,MACE,MAAM;AAAA,MACN,UAAU;AAAA,MACV,WAAW;AAAA,MACX,oBAAoB;AAAA,MACpB,OAAO;AAAA,MACP,UAAU;AAAA,IACZ;AAAA,EACF;AAAA,EACA,SAAS;AACX;AAQA,IAAO,iCAAQ;","names":[]}
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><style>.cls-1{fill:#005cfe;}.cls-2{fill:#fdfdfe;}</style></defs><g id="Layer_6" data-name="Layer 6"><g id="JuvZVa"><path class="cls-1" d="M0,50C0,40.77-.1,31.58.07,22.4.22,14.9,3,8.55,9.32,4.09A22.35,22.35,0,0,1,20.3.25,56.53,56.53,0,0,1,26.12,0C42.74,0,59.37,0,76,0c5.17,0,10.15.92,14.5,4A21.42,21.42,0,0,1,99.75,20.1,55.89,55.89,0,0,1,100,26c0,17.13.11,34.26-.08,51.38-.1,8.93-3.88,16-12.11,20.15A25.49,25.49,0,0,1,76.15,100Q50,100,23.83,100c-5.37,0-10.52-1.06-14.95-4.39A21.57,21.57,0,0,1,.21,79.72,59,59,0,0,1,0,73.78Q0,61.87,0,50Zm50-35a35.07,35.07,0,1,0,35,35.13A35,35,0,0,0,50,14.92Z"/><path class="cls-2" d="M50,14.92a35.07,35.07,0,1,1-35.11,35A35,35,0,0,1,50,14.92ZM38.7,50c0,2.92,0,5.83,0,8.75a2.26,2.26,0,0,0,2.52,2.53q8.74,0,17.5,0c1.73,0,2.56-.85,2.56-2.6q0-8.68,0-17.38a2.27,2.27,0,0,0-2.57-2.59q-8.7,0-17.39,0c-1.8,0-2.61.84-2.62,2.66C38.69,44.25,38.7,47.12,38.7,50Z"/><path class="cls-1" d="M38.7,50c0-2.88,0-5.75,0-8.63,0-1.82.82-2.66,2.62-2.66q8.7,0,17.39,0a2.27,2.27,0,0,1,2.57,2.59q0,8.69,0,17.38c0,1.75-.83,2.6-2.56,2.6q-8.76,0-17.5,0a2.26,2.26,0,0,1-2.52-2.53C38.68,55.83,38.7,52.92,38.7,50Z"/></g></g></svg>
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SimpleCardGrid/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SimpleCardGrid/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from "./SimpleCardGrid";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/SimpleCardGrid/index.ts"],"sourcesContent":["export * from './SimpleCardGrid'\n"],"mappings":"AAAA,cAAc;","names":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA"}
@@ -0,0 +1,6 @@
1
+ export * from "./CardContentEx";
2
+ export * from "./CardEx";
3
+ export * from "./FullWidthCard";
4
+ export * from "./PageCard";
5
+ export * from "./SimpleCard";
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/index.ts"],"sourcesContent":["export * from './CardContentEx'\nexport * from './CardEx'\nexport * from './FullWidthCard'\nexport * from './PageCard'\nexport * from './SimpleCard'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from "./components";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from './components'\n"],"mappings":"AAAA,cAAc;","names":[]}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=images.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { CardContentProps } from '@mui/material';
3
+ export type CardContentExProps = CardContentProps & {
4
+ refreshRef?: number;
5
+ removePadding?: boolean;
6
+ scrollToTop?: number;
7
+ variant?: 'scrollable' | 'normal';
8
+ };
9
+ export declare const CardContentExWithRef: import("react").ForwardRefExoticComponent<Omit<CardContentExProps, "ref"> & import("react").RefAttributes<HTMLDivElement | null>>;
10
+ export declare const CardContentEx: import("react").ForwardRefExoticComponent<Omit<CardContentExProps, "ref"> & import("react").RefAttributes<HTMLDivElement | null>>;
11
+ //# sourceMappingURL=CardContentEx.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { CardContentProps } from '@mui/material';
3
+ export type CardContentExProps = CardContentProps & {
4
+ refreshRef?: number;
5
+ removePadding?: boolean;
6
+ scrollToTop?: number;
7
+ variant?: 'scrollable' | 'normal';
8
+ };
9
+ export declare const CardContentExWithRef: import("react").ForwardRefExoticComponent<Omit<CardContentExProps, "ref"> & import("react").RefAttributes<HTMLDivElement | null>>;
10
+ export declare const CardContentEx: import("react").ForwardRefExoticComponent<Omit<CardContentExProps, "ref"> & import("react").RefAttributes<HTMLDivElement | null>>;
11
+ //# sourceMappingURL=CardContentEx.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var CardContentEx_exports = {};
20
+ __export(CardContentEx_exports, {
21
+ CardContentEx: () => CardContentEx,
22
+ CardContentExWithRef: () => CardContentExWithRef
23
+ });
24
+ module.exports = __toCommonJS(CardContentEx_exports);
25
+ var import_jsx_runtime = require("react/jsx-runtime");
26
+ var import_material = require("@mui/material");
27
+ var import_react_shared = require("@xyo-network/react-shared");
28
+ var import_react = require("react");
29
+ const CardContentExRoot = (0, import_material.styled)(import_material.CardContent, {
30
+ name: "CardContentEx",
31
+ shouldForwardProp: (prop) => !["variant", "removePadding"].includes(prop),
32
+ slot: "Root"
33
+ })(({ variant, removePadding }) => ({
34
+ ...(variant === "scrollable" || removePadding) && {
35
+ [":last-child"]: {
36
+ paddingBottom: 0
37
+ },
38
+ overflow: "auto",
39
+ paddingTop: 0,
40
+ ...removePadding && { padding: 0 }
41
+ }
42
+ }));
43
+ const CardContentExWithRef = (0, import_react.forwardRef)(({ scrollToTop = 0, refreshRef = 0, ...props }, ref) => {
44
+ const sharedRef = (0, import_react_shared.useShareForwardedRef)(ref, refreshRef);
45
+ (0, import_react.useEffect)(() => {
46
+ if (sharedRef && scrollToTop) {
47
+ sharedRef.current?.scroll({ behavior: "smooth", top: 0 });
48
+ }
49
+ }, [sharedRef, scrollToTop]);
50
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardContentExRoot, { ref: sharedRef, ...props });
51
+ });
52
+ CardContentExWithRef.displayName = "CardContentEx";
53
+ const CardContentEx = CardContentExWithRef;
54
+ // Annotate the CommonJS export names for ESM import in node:
55
+ 0 && (module.exports = {
56
+ CardContentEx,
57
+ CardContentExWithRef
58
+ });
59
+ //# sourceMappingURL=CardContentEx.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/CardContentEx.tsx"],"sourcesContent":["import { CardContent, CardContentProps, styled } from '@mui/material'\nimport { useShareForwardedRef } from '@xyo-network/react-shared'\nimport { 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"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAmCS;AAnCT,sBAAsD;AACtD,0BAAqC;AACrC,mBAAsC;AAEtC,MAAM,wBAAoB,wBAAO,6BAAa;AAAA,EAC5C,MAAM;AAAA,EACN,mBAAmB,CAAC,SAAiB,CAAC,CAAC,WAAW,eAAe,EAAE,SAAS,IAAI;AAAA,EAChF,MAAM;AACR,CAAC,EAAsB,CAAC,EAAE,SAAS,cAAc,OAAO;AAAA,EACtD,IAAK,YAAY,gBAAgB,kBAAkB;AAAA,IACjD,CAAC,aAAa,GAAG;AAAA,MACf,eAAe;AAAA,IACjB;AAAA,IACA,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,GAAI,iBAAiB,EAAE,SAAS,EAAE;AAAA,EACpC;AACF,EAAE;AASK,MAAM,2BAAuB,yBAAsD,CAAC,EAAE,cAAc,GAAG,aAAa,GAAG,GAAG,MAAM,GAAG,QAAQ;AAChJ,QAAM,gBAAY,0CAAqC,KAAK,UAAU;AAEtE,8BAAU,MAAM;AACd,QAAI,aAAa,aAAa;AAC5B,gBAAU,SAAS,OAAO,EAAE,UAAU,UAAU,KAAK,EAAE,CAAC;AAAA,IAC1D;AAAA,EACF,GAAG,CAAC,WAAW,WAAW,CAAC;AAE3B,SAAO,4CAAC,qBAAkB,KAAK,WAAY,GAAG,OAAO;AACvD,CAAC;AAED,qBAAqB,cAAc;AAE5B,MAAM,gBAAgB;","names":[]}
@@ -0,0 +1,34 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { CardContent, styled } from "@mui/material";
3
+ import { useShareForwardedRef } from "@xyo-network/react-shared";
4
+ import { forwardRef, useEffect } from "react";
5
+ const CardContentExRoot = styled(CardContent, {
6
+ name: "CardContentEx",
7
+ shouldForwardProp: (prop) => !["variant", "removePadding"].includes(prop),
8
+ slot: "Root"
9
+ })(({ variant, removePadding }) => ({
10
+ ...(variant === "scrollable" || removePadding) && {
11
+ [":last-child"]: {
12
+ paddingBottom: 0
13
+ },
14
+ overflow: "auto",
15
+ paddingTop: 0,
16
+ ...removePadding && { padding: 0 }
17
+ }
18
+ }));
19
+ const CardContentExWithRef = forwardRef(({ scrollToTop = 0, refreshRef = 0, ...props }, ref) => {
20
+ const sharedRef = useShareForwardedRef(ref, refreshRef);
21
+ useEffect(() => {
22
+ if (sharedRef && scrollToTop) {
23
+ sharedRef.current?.scroll({ behavior: "smooth", top: 0 });
24
+ }
25
+ }, [sharedRef, scrollToTop]);
26
+ return /* @__PURE__ */ jsx(CardContentExRoot, { ref: sharedRef, ...props });
27
+ });
28
+ CardContentExWithRef.displayName = "CardContentEx";
29
+ const CardContentEx = CardContentExWithRef;
30
+ export {
31
+ CardContentEx,
32
+ CardContentExWithRef
33
+ };
34
+ //# sourceMappingURL=CardContentEx.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/CardContentEx.tsx"],"sourcesContent":["import { CardContent, CardContentProps, styled } from '@mui/material'\nimport { useShareForwardedRef } from '@xyo-network/react-shared'\nimport { 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"],"mappings":"AAmCS;AAnCT,SAAS,aAA+B,cAAc;AACtD,SAAS,4BAA4B;AACrC,SAAS,YAAY,iBAAiB;AAEtC,MAAM,oBAAoB,OAAO,aAAa;AAAA,EAC5C,MAAM;AAAA,EACN,mBAAmB,CAAC,SAAiB,CAAC,CAAC,WAAW,eAAe,EAAE,SAAS,IAAI;AAAA,EAChF,MAAM;AACR,CAAC,EAAsB,CAAC,EAAE,SAAS,cAAc,OAAO;AAAA,EACtD,IAAK,YAAY,gBAAgB,kBAAkB;AAAA,IACjD,CAAC,aAAa,GAAG;AAAA,MACf,eAAe;AAAA,IACjB;AAAA,IACA,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,GAAI,iBAAiB,EAAE,SAAS,EAAE;AAAA,EACpC;AACF,EAAE;AASK,MAAM,uBAAuB,WAAsD,CAAC,EAAE,cAAc,GAAG,aAAa,GAAG,GAAG,MAAM,GAAG,QAAQ;AAChJ,QAAM,YAAY,qBAAqC,KAAK,UAAU;AAEtE,YAAU,MAAM;AACd,QAAI,aAAa,aAAa;AAC5B,gBAAU,SAAS,OAAO,EAAE,UAAU,UAAU,KAAK,EAAE,CAAC;AAAA,IAC1D;AAAA,EACF,GAAG,CAAC,WAAW,WAAW,CAAC;AAE3B,SAAO,oBAAC,qBAAkB,KAAK,WAAY,GAAG,OAAO;AACvD,CAAC;AAED,qBAAqB,cAAc;AAE5B,MAAM,gBAAgB;","names":[]}
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var CardContentEx_stories_exports = {};
20
+ __export(CardContentEx_stories_exports, {
21
+ Default: () => Default,
22
+ WithRef: () => WithRef,
23
+ WithVariant: () => WithVariant,
24
+ default: () => CardContentEx_stories_default
25
+ });
26
+ module.exports = __toCommonJS(CardContentEx_stories_exports);
27
+ var import_jsx_runtime = require("react/jsx-runtime");
28
+ var import_material = require("@mui/material");
29
+ var import_react_flexbox = require("@xylabs/react-flexbox");
30
+ var import_react_storybook = require("@xyo-network/react-storybook");
31
+ var import_react2 = require("react");
32
+ var import_CardContentEx = require("./CardContentEx");
33
+ var import_PageCard = require("./PageCard");
34
+ const ScrollableDecorator = (Story, args) => {
35
+ const [scrollToTop, setScrollToTop] = (0, import_react2.useState)(0);
36
+ const ref = (0, import_react2.useRef)(null);
37
+ args.args.ref = ref;
38
+ args.args.scrollToTop = scrollToTop;
39
+ const onScrollToTop = () => {
40
+ setScrollToTop(scrollToTop + 1);
41
+ };
42
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react_flexbox.FlexGrowCol, { alignItems: "stretch", position: "absolute", height: "calc(100vh - 2rem)", style: { inset: 0 }, children: [
43
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Button, { variant: "contained", onClick: onScrollToTop, sx: { marginBottom: 2 }, children: "ScrollToTop" }),
44
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Story, { ...args })
45
+ ] });
46
+ };
47
+ const StorybookEntry = {
48
+ argTypes: {},
49
+ component: import_CardContentEx.CardContentEx,
50
+ parameters: {
51
+ docs: {
52
+ page: null
53
+ }
54
+ },
55
+ title: "shared/CardContentEx"
56
+ };
57
+ const Template = (props) => {
58
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_PageCard.PageCard, { title: "Page Card", subheader: "subheader", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_CardContentEx.CardContentEx, { ...props, children: [...Array(100).keys()].map((item) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Typography, { children: [
59
+ item,
60
+ ". - Item row"
61
+ ] }, item)) }) });
62
+ };
63
+ const Default = Template.bind({});
64
+ Default.args = {};
65
+ const WithRef = Template.bind({});
66
+ WithRef.decorators = [import_react_storybook.WithRefDecorator];
67
+ const WithVariant = Template.bind({});
68
+ WithVariant.args = { variant: "scrollable" };
69
+ WithVariant.decorators = [ScrollableDecorator];
70
+ var CardContentEx_stories_default = StorybookEntry;
71
+ // Annotate the CommonJS export names for ESM import in node:
72
+ 0 && (module.exports = {
73
+ Default,
74
+ WithRef,
75
+ WithVariant
76
+ });
77
+ //# sourceMappingURL=CardContentEx.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/CardContentEx.stories.tsx"],"sourcesContent":["/* eslint-disable import/no-internal-modules */\nimport { Button, Typography } from '@mui/material'\nimport { Decorator, Meta, StoryFn } from '@storybook/react'\nimport { FlexGrowCol } from '@xylabs/react-flexbox'\nimport { WithRefDecorator } from '@xyo-network/react-storybook'\nimport { useRef, useState } from 'react'\n\nimport { CardContentEx } from './CardContentEx'\nimport { PageCard } from './PageCard'\n\nconst ScrollableDecorator: Decorator = (Story, args) => {\n const [scrollToTop, setScrollToTop] = useState(0)\n const ref = useRef<HTMLDivElement | null>(null)\n\n args.args.ref = ref\n args.args.scrollToTop = scrollToTop\n\n const onScrollToTop = () => {\n setScrollToTop(scrollToTop + 1)\n }\n return (\n <FlexGrowCol alignItems=\"stretch\" position=\"absolute\" height=\"calc(100vh - 2rem)\" style={{ inset: 0 }}>\n <Button variant=\"contained\" onClick={onScrollToTop} sx={{ marginBottom: 2 }}>\n ScrollToTop\n </Button>\n <Story {...args} />\n </FlexGrowCol>\n )\n}\n\nconst StorybookEntry: Meta = {\n argTypes: {},\n component: CardContentEx,\n parameters: {\n docs: {\n page: null,\n },\n },\n title: 'shared/CardContentEx',\n}\n\nconst Template: StoryFn<typeof CardContentEx> = (props) => {\n return (\n <PageCard title=\"Page Card\" subheader=\"subheader\">\n <CardContentEx {...props}>\n {[...Array(100).keys()].map((item) => (\n <Typography key={item}>{item}. - Item row</Typography>\n ))}\n </CardContentEx>\n </PageCard>\n )\n}\n\nconst Default = Template.bind({})\nDefault.args = {}\n\nconst WithRef = Template.bind({})\nWithRef.decorators = [WithRefDecorator]\n\nconst WithVariant = Template.bind({})\nWithVariant.args = { variant: 'scrollable' }\nWithVariant.decorators = [ScrollableDecorator]\n\nexport { Default, WithRef, WithVariant }\n\n// eslint-disable-next-line import/no-default-export\nexport default StorybookEntry\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAqBI;AApBJ,sBAAmC;AAEnC,2BAA4B;AAC5B,6BAAiC;AACjC,IAAAA,gBAAiC;AAEjC,2BAA8B;AAC9B,sBAAyB;AAEzB,MAAM,sBAAiC,CAAC,OAAO,SAAS;AACtD,QAAM,CAAC,aAAa,cAAc,QAAI,wBAAS,CAAC;AAChD,QAAM,UAAM,sBAA8B,IAAI;AAE9C,OAAK,KAAK,MAAM;AAChB,OAAK,KAAK,cAAc;AAExB,QAAM,gBAAgB,MAAM;AAC1B,mBAAe,cAAc,CAAC;AAAA,EAChC;AACA,SACE,6CAAC,oCAAY,YAAW,WAAU,UAAS,YAAW,QAAO,sBAAqB,OAAO,EAAE,OAAO,EAAE,GAClG;AAAA,gDAAC,0BAAO,SAAQ,aAAY,SAAS,eAAe,IAAI,EAAE,cAAc,EAAE,GAAG,yBAE7E;AAAA,IACA,4CAAC,SAAO,GAAG,MAAM;AAAA,KACnB;AAEJ;AAEA,MAAM,iBAAuB;AAAA,EAC3B,UAAU,CAAC;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,IACV,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EACA,OAAO;AACT;AAEA,MAAM,WAA0C,CAAC,UAAU;AACzD,SACE,4CAAC,4BAAS,OAAM,aAAY,WAAU,aACpC,sDAAC,sCAAe,GAAG,OAChB,WAAC,GAAG,MAAM,GAAG,EAAE,KAAK,CAAC,EAAE,IAAI,CAAC,SAC3B,6CAAC,8BAAuB;AAAA;AAAA,IAAK;AAAA,OAAZ,IAAwB,CAC1C,GACH,GACF;AAEJ;AAEA,MAAM,UAAU,SAAS,KAAK,CAAC,CAAC;AAChC,QAAQ,OAAO,CAAC;AAEhB,MAAM,UAAU,SAAS,KAAK,CAAC,CAAC;AAChC,QAAQ,aAAa,CAAC,uCAAgB;AAEtC,MAAM,cAAc,SAAS,KAAK,CAAC,CAAC;AACpC,YAAY,OAAO,EAAE,SAAS,aAAa;AAC3C,YAAY,aAAa,CAAC,mBAAmB;AAK7C,IAAO,gCAAQ;","names":["import_react"]}
@@ -0,0 +1,51 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { Button, Typography } from "@mui/material";
3
+ import { FlexGrowCol } from "@xylabs/react-flexbox";
4
+ import { WithRefDecorator } from "@xyo-network/react-storybook";
5
+ import { useRef, useState } from "react";
6
+ import { CardContentEx } from "./CardContentEx";
7
+ import { PageCard } from "./PageCard";
8
+ const ScrollableDecorator = (Story, args) => {
9
+ const [scrollToTop, setScrollToTop] = useState(0);
10
+ const ref = useRef(null);
11
+ args.args.ref = ref;
12
+ args.args.scrollToTop = scrollToTop;
13
+ const onScrollToTop = () => {
14
+ setScrollToTop(scrollToTop + 1);
15
+ };
16
+ return /* @__PURE__ */ jsxs(FlexGrowCol, { alignItems: "stretch", position: "absolute", height: "calc(100vh - 2rem)", style: { inset: 0 }, children: [
17
+ /* @__PURE__ */ jsx(Button, { variant: "contained", onClick: onScrollToTop, sx: { marginBottom: 2 }, children: "ScrollToTop" }),
18
+ /* @__PURE__ */ jsx(Story, { ...args })
19
+ ] });
20
+ };
21
+ const StorybookEntry = {
22
+ argTypes: {},
23
+ component: CardContentEx,
24
+ parameters: {
25
+ docs: {
26
+ page: null
27
+ }
28
+ },
29
+ title: "shared/CardContentEx"
30
+ };
31
+ const Template = (props) => {
32
+ return /* @__PURE__ */ jsx(PageCard, { title: "Page Card", subheader: "subheader", children: /* @__PURE__ */ jsx(CardContentEx, { ...props, children: [...Array(100).keys()].map((item) => /* @__PURE__ */ jsxs(Typography, { children: [
33
+ item,
34
+ ". - Item row"
35
+ ] }, item)) }) });
36
+ };
37
+ const Default = Template.bind({});
38
+ Default.args = {};
39
+ const WithRef = Template.bind({});
40
+ WithRef.decorators = [WithRefDecorator];
41
+ const WithVariant = Template.bind({});
42
+ WithVariant.args = { variant: "scrollable" };
43
+ WithVariant.decorators = [ScrollableDecorator];
44
+ var CardContentEx_stories_default = StorybookEntry;
45
+ export {
46
+ Default,
47
+ WithRef,
48
+ WithVariant,
49
+ CardContentEx_stories_default as default
50
+ };
51
+ //# sourceMappingURL=CardContentEx.stories.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/CardContentEx.stories.tsx"],"sourcesContent":["/* eslint-disable import/no-internal-modules */\nimport { Button, Typography } from '@mui/material'\nimport { Decorator, Meta, StoryFn } from '@storybook/react'\nimport { FlexGrowCol } from '@xylabs/react-flexbox'\nimport { WithRefDecorator } from '@xyo-network/react-storybook'\nimport { useRef, useState } from 'react'\n\nimport { CardContentEx } from './CardContentEx'\nimport { PageCard } from './PageCard'\n\nconst ScrollableDecorator: Decorator = (Story, args) => {\n const [scrollToTop, setScrollToTop] = useState(0)\n const ref = useRef<HTMLDivElement | null>(null)\n\n args.args.ref = ref\n args.args.scrollToTop = scrollToTop\n\n const onScrollToTop = () => {\n setScrollToTop(scrollToTop + 1)\n }\n return (\n <FlexGrowCol alignItems=\"stretch\" position=\"absolute\" height=\"calc(100vh - 2rem)\" style={{ inset: 0 }}>\n <Button variant=\"contained\" onClick={onScrollToTop} sx={{ marginBottom: 2 }}>\n ScrollToTop\n </Button>\n <Story {...args} />\n </FlexGrowCol>\n )\n}\n\nconst StorybookEntry: Meta = {\n argTypes: {},\n component: CardContentEx,\n parameters: {\n docs: {\n page: null,\n },\n },\n title: 'shared/CardContentEx',\n}\n\nconst Template: StoryFn<typeof CardContentEx> = (props) => {\n return (\n <PageCard title=\"Page Card\" subheader=\"subheader\">\n <CardContentEx {...props}>\n {[...Array(100).keys()].map((item) => (\n <Typography key={item}>{item}. - Item row</Typography>\n ))}\n </CardContentEx>\n </PageCard>\n )\n}\n\nconst Default = Template.bind({})\nDefault.args = {}\n\nconst WithRef = Template.bind({})\nWithRef.decorators = [WithRefDecorator]\n\nconst WithVariant = Template.bind({})\nWithVariant.args = { variant: 'scrollable' }\nWithVariant.decorators = [ScrollableDecorator]\n\nexport { Default, WithRef, WithVariant }\n\n// eslint-disable-next-line import/no-default-export\nexport default StorybookEntry\n"],"mappings":"AAqBI,SACE,KADF;AApBJ,SAAS,QAAQ,kBAAkB;AAEnC,SAAS,mBAAmB;AAC5B,SAAS,wBAAwB;AACjC,SAAS,QAAQ,gBAAgB;AAEjC,SAAS,qBAAqB;AAC9B,SAAS,gBAAgB;AAEzB,MAAM,sBAAiC,CAAC,OAAO,SAAS;AACtD,QAAM,CAAC,aAAa,cAAc,IAAI,SAAS,CAAC;AAChD,QAAM,MAAM,OAA8B,IAAI;AAE9C,OAAK,KAAK,MAAM;AAChB,OAAK,KAAK,cAAc;AAExB,QAAM,gBAAgB,MAAM;AAC1B,mBAAe,cAAc,CAAC;AAAA,EAChC;AACA,SACE,qBAAC,eAAY,YAAW,WAAU,UAAS,YAAW,QAAO,sBAAqB,OAAO,EAAE,OAAO,EAAE,GAClG;AAAA,wBAAC,UAAO,SAAQ,aAAY,SAAS,eAAe,IAAI,EAAE,cAAc,EAAE,GAAG,yBAE7E;AAAA,IACA,oBAAC,SAAO,GAAG,MAAM;AAAA,KACnB;AAEJ;AAEA,MAAM,iBAAuB;AAAA,EAC3B,UAAU,CAAC;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,IACV,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EACA,OAAO;AACT;AAEA,MAAM,WAA0C,CAAC,UAAU;AACzD,SACE,oBAAC,YAAS,OAAM,aAAY,WAAU,aACpC,8BAAC,iBAAe,GAAG,OAChB,WAAC,GAAG,MAAM,GAAG,EAAE,KAAK,CAAC,EAAE,IAAI,CAAC,SAC3B,qBAAC,cAAuB;AAAA;AAAA,IAAK;AAAA,OAAZ,IAAwB,CAC1C,GACH,GACF;AAEJ;AAEA,MAAM,UAAU,SAAS,KAAK,CAAC,CAAC;AAChC,QAAQ,OAAO,CAAC;AAEhB,MAAM,UAAU,SAAS,KAAK,CAAC,CAAC;AAChC,QAAQ,aAAa,CAAC,gBAAgB;AAEtC,MAAM,cAAc,SAAS,KAAK,CAAC,CAAC;AACpC,YAAY,OAAO,EAAE,SAAS,aAAa;AAC3C,YAAY,aAAa,CAAC,mBAAmB;AAK7C,IAAO,gCAAQ;","names":[]}
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { CardProps } from '@mui/material';
3
+ export type CardExProps = CardProps & {
4
+ gradient?: 'border' | 'background';
5
+ };
6
+ export declare const CardExWithRef: React.FC<CardExProps>;
7
+ export declare const CardEx: import("react").FC<CardExProps>;
8
+ //# sourceMappingURL=CardEx.d.ts.map
@@ -0,0 +1 @@
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,MAAM,WAAW,GAAG,SAAS,GAAG;IACpC,QAAQ,CAAC,EAAE,QAAQ,GAAG,YAAY,CAAA;CACnC,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAa9C,CAAA;AAIF,eAAO,MAAM,MAAM,iCAAgB,CAAA"}
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { CardProps } from '@mui/material';
3
+ export type CardExProps = CardProps & {
4
+ gradient?: 'border' | 'background';
5
+ };
6
+ export declare const CardExWithRef: React.FC<CardExProps>;
7
+ export declare const CardEx: import("react").FC<CardExProps>;
8
+ //# sourceMappingURL=CardEx.d.ts.map
@@ -0,0 +1 @@
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,MAAM,WAAW,GAAG,SAAS,GAAG;IACpC,QAAQ,CAAC,EAAE,QAAQ,GAAG,YAAY,CAAA;CACnC,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAa9C,CAAA;AAIF,eAAO,MAAM,MAAM,iCAAgB,CAAA"}
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var CardEx_exports = {};
20
+ __export(CardEx_exports, {
21
+ CardEx: () => CardEx,
22
+ CardExWithRef: () => CardExWithRef
23
+ });
24
+ module.exports = __toCommonJS(CardEx_exports);
25
+ var import_jsx_runtime = require("react/jsx-runtime");
26
+ var import_material = require("@mui/material");
27
+ var import_react_shared = require("@xyo-network/react-shared");
28
+ var import_react = require("react");
29
+ const CardExWithRef = (0, import_react.forwardRef)(({ style, gradient, ...props }, ref) => {
30
+ const { styles } = (0, import_react_shared.useGradientStyles)();
31
+ const gradientStyle = gradient === "border" ? styles.border : gradient === "background" ? styles.background : {};
32
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
33
+ import_material.Card,
34
+ {
35
+ style: {
36
+ ...gradientStyle,
37
+ ...style
38
+ },
39
+ ref,
40
+ ...props
41
+ }
42
+ );
43
+ });
44
+ CardExWithRef.displayName = "CardEx";
45
+ const CardEx = CardExWithRef;
46
+ // Annotate the CommonJS export names for ESM import in node:
47
+ 0 && (module.exports = {
48
+ CardEx,
49
+ CardExWithRef
50
+ });
51
+ //# sourceMappingURL=CardEx.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/CardEx.tsx"],"sourcesContent":["import { Card, CardProps } from '@mui/material'\nimport { useGradientStyles } from '@xyo-network/react-shared'\nimport { forwardRef } from 'react'\n\nexport type CardExProps = CardProps & {\n gradient?: 'border' | 'background'\n}\n\nexport const CardExWithRef: React.FC<CardExProps> = forwardRef(({ style, gradient, ...props }, ref) => {\n const { styles } = useGradientStyles()\n const gradientStyle = gradient === 'border' ? styles.border : gradient === 'background' ? styles.background : {}\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"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAYI;AAZJ,sBAAgC;AAChC,0BAAkC;AAClC,mBAA2B;AAMpB,MAAM,oBAAuC,yBAAW,CAAC,EAAE,OAAO,UAAU,GAAG,MAAM,GAAG,QAAQ;AACrG,QAAM,EAAE,OAAO,QAAI,uCAAkB;AACrC,QAAM,gBAAgB,aAAa,WAAW,OAAO,SAAS,aAAa,eAAe,OAAO,aAAa,CAAC;AAC/G,SACE;AAAA,IAAC;AAAA;AAAA,MACC,OAAO;AAAA,QACL,GAAG;AAAA,QACH,GAAG;AAAA,MACL;AAAA,MACA;AAAA,MACC,GAAG;AAAA;AAAA,EACN;AAEJ,CAAC;AAED,cAAc,cAAc;AAErB,MAAM,SAAS;","names":[]}
@@ -0,0 +1,26 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { Card } from "@mui/material";
3
+ import { useGradientStyles } from "@xyo-network/react-shared";
4
+ import { forwardRef } from "react";
5
+ const CardExWithRef = forwardRef(({ style, gradient, ...props }, ref) => {
6
+ const { styles } = useGradientStyles();
7
+ const gradientStyle = gradient === "border" ? styles.border : gradient === "background" ? styles.background : {};
8
+ return /* @__PURE__ */ jsx(
9
+ Card,
10
+ {
11
+ style: {
12
+ ...gradientStyle,
13
+ ...style
14
+ },
15
+ ref,
16
+ ...props
17
+ }
18
+ );
19
+ });
20
+ CardExWithRef.displayName = "CardEx";
21
+ const CardEx = CardExWithRef;
22
+ export {
23
+ CardEx,
24
+ CardExWithRef
25
+ };
26
+ //# sourceMappingURL=CardEx.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/CardEx.tsx"],"sourcesContent":["import { Card, CardProps } from '@mui/material'\nimport { useGradientStyles } from '@xyo-network/react-shared'\nimport { forwardRef } from 'react'\n\nexport type CardExProps = CardProps & {\n gradient?: 'border' | 'background'\n}\n\nexport const CardExWithRef: React.FC<CardExProps> = forwardRef(({ style, gradient, ...props }, ref) => {\n const { styles } = useGradientStyles()\n const gradientStyle = gradient === 'border' ? styles.border : gradient === 'background' ? styles.background : {}\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"],"mappings":"AAYI;AAZJ,SAAS,YAAuB;AAChC,SAAS,yBAAyB;AAClC,SAAS,kBAAkB;AAMpB,MAAM,gBAAuC,WAAW,CAAC,EAAE,OAAO,UAAU,GAAG,MAAM,GAAG,QAAQ;AACrG,QAAM,EAAE,OAAO,IAAI,kBAAkB;AACrC,QAAM,gBAAgB,aAAa,WAAW,OAAO,SAAS,aAAa,eAAe,OAAO,aAAa,CAAC;AAC/G,SACE;AAAA,IAAC;AAAA;AAAA,MACC,OAAO;AAAA,QACL,GAAG;AAAA,QACH,GAAG;AAAA,MACL;AAAA,MACA;AAAA,MACC,GAAG;AAAA;AAAA,EACN;AAEJ,CAAC;AAED,cAAc,cAAc;AAErB,MAAM,SAAS;","names":[]}
@@ -0,0 +1,15 @@
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
@@ -0,0 +1 @@
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,CA8EtD,CAAA"}
@@ -0,0 +1,15 @@
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