@mezo-org/mezo-clay 0.1.0-dev.8 → 0.2.0-dev.1

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 (530) hide show
  1. package/README.md +160 -9
  2. package/dist/_virtual/ResizeObserver.es.js +6 -0
  3. package/dist/_virtual/_commonjsHelpers.js +26 -0
  4. package/dist/_virtual/index.js +7 -0
  5. package/dist/assets/fonts/RiformaLLWeb-Bold.woff2 +0 -0
  6. package/dist/assets/fonts/RiformaLLWeb-Heavy.woff2 +0 -0
  7. package/dist/assets/fonts/RiformaLLWeb-Light.woff2 +0 -0
  8. package/dist/assets/fonts/RiformaLLWeb-Medium.woff2 +0 -0
  9. package/dist/assets/fonts/RiformaLLWeb-Regular.woff2 +0 -0
  10. package/dist/assets/fonts/RiformaMonoLLWeb-Bold.woff2 +0 -0
  11. package/dist/assets/fonts/RiformaMonoLLWeb-Regular.woff2 +0 -0
  12. package/dist/assets/fonts/font-face.css +62 -0
  13. package/dist/assets/fonts/riforma/RiformaLLWeb-Bold.woff2 +0 -0
  14. package/dist/assets/fonts/riforma/RiformaLLWeb-Heavy.woff2 +0 -0
  15. package/dist/assets/fonts/riforma/RiformaLLWeb-Light.woff2 +0 -0
  16. package/dist/assets/fonts/riforma/RiformaLLWeb-Medium.woff2 +0 -0
  17. package/dist/assets/fonts/riforma/RiformaLLWeb-Regular.woff2 +0 -0
  18. package/dist/assets/fonts/riforma/RiformaMonoLLWeb-Bold.woff2 +0 -0
  19. package/dist/assets/fonts/riforma/RiformaMonoLLWeb-Regular.woff2 +0 -0
  20. package/dist/assets/fonts/riforma/font-face.css +62 -0
  21. package/dist/components/accordion/accordion.d.ts +4 -1
  22. package/dist/components/accordion/accordion.js +71 -0
  23. package/dist/components/accordion/constants.js +12 -0
  24. package/dist/components/accordion/index.js +10 -0
  25. package/dist/components/accordion/panel.d.ts +18 -1
  26. package/dist/components/accordion/panel.js +119 -0
  27. package/dist/components/accordion/shared-overrides.d.ts +4 -0
  28. package/dist/components/accordion/shared-overrides.js +11 -0
  29. package/dist/components/accordion/types.d.ts +5 -2
  30. package/dist/components/avatar/avatar.d.ts +22 -0
  31. package/dist/components/avatar/avatar.js +102 -0
  32. package/dist/components/avatar/index.d.ts +1 -0
  33. package/dist/components/avatar/index.js +6 -0
  34. package/dist/components/badge/hint.js +23 -0
  35. package/dist/components/badge/index.js +6 -0
  36. package/dist/components/badge/notification.js +32 -0
  37. package/dist/components/banner/banner.d.ts +4 -2
  38. package/dist/components/banner/banner.js +282 -0
  39. package/dist/components/banner/index.js +13 -0
  40. package/dist/components/banner/types.d.ts +2 -0
  41. package/dist/components/banner/utils.d.ts +36 -0
  42. package/dist/components/block/index.d.ts +1 -0
  43. package/dist/components/block/index.js +4 -0
  44. package/dist/components/breadcrumbs/breadcrumbs.js +51 -0
  45. package/dist/components/breadcrumbs/index.js +6 -0
  46. package/dist/components/button/button.d.ts +4 -1
  47. package/dist/components/button/button.js +48 -0
  48. package/dist/components/button/constants.js +16 -0
  49. package/dist/components/button/index.d.ts +1 -1
  50. package/dist/components/button/index.js +14 -0
  51. package/dist/components/button/overrides.d.ts +3 -2
  52. package/dist/components/button/overrides.js +47 -0
  53. package/dist/components/button/types.d.ts +6 -1
  54. package/dist/components/button-group/button-group.js +61 -0
  55. package/dist/components/button-group/index.d.ts +1 -1
  56. package/dist/components/button-group/index.js +8 -0
  57. package/dist/components/button-group/types.d.ts +2 -3
  58. package/dist/components/button-icon/button-icon.d.ts +4 -1
  59. package/dist/components/button-icon/button-icon.js +57 -0
  60. package/dist/components/button-icon/constants.js +17 -0
  61. package/dist/components/button-icon/index.d.ts +0 -1
  62. package/dist/components/button-icon/index.js +8 -0
  63. package/dist/components/callout-card/callout-card-subcomponents.d.ts +31 -0
  64. package/dist/components/callout-card/callout-card-subcomponents.js +104 -0
  65. package/dist/components/callout-card/callout-card.d.ts +11 -0
  66. package/dist/components/callout-card/callout-card.js +132 -0
  67. package/dist/components/callout-card/context.d.ts +9 -0
  68. package/dist/components/callout-card/context.js +13 -0
  69. package/dist/components/callout-card/index.d.ts +4 -0
  70. package/dist/components/callout-card/index.js +13 -0
  71. package/dist/components/callout-card/skeletons.d.ts +3 -0
  72. package/dist/components/callout-card/skeletons.js +44 -0
  73. package/dist/components/callout-card/types.d.ts +1 -0
  74. package/dist/components/card/card-skeletons.d.ts +19 -0
  75. package/dist/components/card/card-skeletons.js +123 -0
  76. package/dist/components/card/card.d.ts +28 -6
  77. package/dist/components/card/card.js +216 -0
  78. package/dist/components/card/context.d.ts +7 -0
  79. package/dist/components/card/context.js +12 -0
  80. package/dist/components/card/index.d.ts +5 -3
  81. package/dist/components/card/index.js +13 -0
  82. package/dist/components/card/product-card.d.ts +14 -0
  83. package/dist/components/card/product-card.js +125 -0
  84. package/dist/components/card/types.d.ts +12 -0
  85. package/dist/components/checkbox/checkbox.js +57 -0
  86. package/dist/components/checkbox/index.js +4 -0
  87. package/dist/components/content-stepper/content-stepper.d.ts +44 -0
  88. package/dist/components/content-stepper/content-stepper.js +107 -0
  89. package/dist/components/content-stepper/index.d.ts +2 -0
  90. package/dist/components/content-stepper/index.js +14 -0
  91. package/dist/components/content-stepper/skeletons.d.ts +3 -0
  92. package/dist/components/content-stepper/skeletons.js +38 -0
  93. package/dist/components/content-stepper/styled-components.d.ts +21 -0
  94. package/dist/components/content-stepper/styled-components.js +117 -0
  95. package/dist/components/divider/index.js +30 -0
  96. package/dist/components/flex-grid/index.js +5 -0
  97. package/dist/components/form-control/constants.d.ts +1 -1
  98. package/dist/components/form-control/form-control-character-count.js +39 -0
  99. package/dist/components/form-control/form-control.d.ts +1 -1
  100. package/dist/components/form-control/form-control.js +103 -0
  101. package/dist/components/form-control/index.js +8 -0
  102. package/dist/components/form-control/overrides.d.ts +2 -1
  103. package/dist/components/form-control/overrides.js +65 -0
  104. package/dist/components/form-control/types.d.ts +1 -0
  105. package/dist/components/icon/index.d.ts +2 -0
  106. package/dist/components/icon/index.js +4 -0
  107. package/dist/components/icons/_docs/icon-gallery.d.ts +9 -0
  108. package/dist/components/icons/index.d.ts +2 -56
  109. package/dist/components/icons/index.js +198 -0
  110. package/dist/components/icons/line/arrow-left/index.d.ts +9 -0
  111. package/dist/components/icons/line/arrow-left/index.js +41 -0
  112. package/dist/components/icons/line/arrow-right/index.d.ts +9 -0
  113. package/dist/components/icons/line/arrow-right/index.js +41 -0
  114. package/dist/components/icons/{user → line/bell}/index.d.ts +2 -2
  115. package/dist/components/icons/line/bell/index.js +41 -0
  116. package/dist/components/icons/line/building/index.js +50 -0
  117. package/dist/components/icons/line/check/index.d.ts +9 -0
  118. package/dist/components/icons/line/check/index.js +44 -0
  119. package/dist/components/icons/line/check-done/index.d.ts +9 -0
  120. package/dist/components/icons/line/check-done/index.js +52 -0
  121. package/dist/components/icons/line/circle-cut/index.js +49 -0
  122. package/dist/components/icons/line/close/index.js +49 -0
  123. package/dist/components/icons/line/coins-hand/index.js +50 -0
  124. package/dist/components/icons/line/coins-stacked/index.d.ts +8 -0
  125. package/dist/components/icons/line/coins-stacked/index.js +52 -0
  126. package/dist/components/icons/line/coins-swap/index.js +50 -0
  127. package/dist/components/icons/line/compass/index.d.ts +8 -0
  128. package/dist/components/icons/line/compass/index.js +63 -0
  129. package/dist/components/icons/line/copy/index.js +49 -0
  130. package/dist/components/icons/line/cryptocurrency/index.js +51 -0
  131. package/dist/components/icons/line/cube/index.js +50 -0
  132. package/dist/components/icons/line/dots/index.d.ts +8 -0
  133. package/dist/components/icons/line/dots/index.js +70 -0
  134. package/dist/components/icons/line/dots-grid/index.d.ts +9 -0
  135. package/dist/components/icons/line/dots-grid/index.js +41 -0
  136. package/dist/components/icons/{menu → line/drop}/index.d.ts +2 -2
  137. package/dist/components/icons/line/drop/index.js +49 -0
  138. package/dist/components/icons/line/email/index.js +50 -0
  139. package/dist/components/icons/line/gas-fee/index.js +74 -0
  140. package/dist/components/icons/line/handshake/index.js +48 -0
  141. package/dist/components/icons/line/help-circle-line/index.d.ts +8 -0
  142. package/dist/components/icons/line/help-circle-line/index.js +43 -0
  143. package/dist/components/icons/line/home-smile/index.js +50 -0
  144. package/dist/components/icons/line/index.d.ts +43 -0
  145. package/dist/components/icons/line/lightning/index.js +50 -0
  146. package/dist/components/icons/line/link/index.d.ts +8 -0
  147. package/dist/components/icons/line/link/index.js +50 -0
  148. package/dist/components/icons/line/link-external/index.js +52 -0
  149. package/dist/components/icons/line/log-in/index.js +50 -0
  150. package/dist/components/icons/line/log-out/index.d.ts +8 -0
  151. package/dist/components/icons/line/log-out/index.js +50 -0
  152. package/dist/components/icons/line/message-question-circle/index.js +52 -0
  153. package/dist/components/icons/line/percent/index.d.ts +8 -0
  154. package/dist/components/icons/line/percent/index.js +49 -0
  155. package/dist/components/icons/line/pie-chart/index.d.ts +8 -0
  156. package/dist/components/icons/line/pie-chart/index.js +50 -0
  157. package/dist/components/icons/line/plus/index.js +49 -0
  158. package/dist/components/icons/line/receipt/index.js +50 -0
  159. package/dist/components/icons/line/safe/index.d.ts +9 -0
  160. package/dist/components/icons/line/safe/index.js +49 -0
  161. package/dist/components/icons/{settings → line/settings}/index.d.ts +2 -2
  162. package/dist/components/icons/line/settings/index.js +112 -0
  163. package/dist/components/icons/line/square/index.js +50 -0
  164. package/dist/components/icons/line/star/index.d.ts +15 -0
  165. package/dist/components/icons/line/star/index.js +96 -0
  166. package/dist/components/icons/line/switch-vertical/index.d.ts +8 -0
  167. package/dist/components/icons/line/switch-vertical/index.js +43 -0
  168. package/dist/components/icons/line/tag/index.js +49 -0
  169. package/dist/components/icons/line/trophy/index.d.ts +8 -0
  170. package/dist/components/icons/line/trophy/index.js +52 -0
  171. package/dist/components/icons/line/upload/index.js +50 -0
  172. package/dist/components/icons/line/user/index.d.ts +8 -0
  173. package/dist/components/icons/line/user/index.js +54 -0
  174. package/dist/components/icons/line/wallet/index.js +92 -0
  175. package/dist/components/icons/solid/alert-circle/index.js +39 -0
  176. package/dist/components/icons/solid/alert-triangle/index.js +88 -0
  177. package/dist/components/icons/solid/apple/index.js +42 -0
  178. package/dist/components/icons/solid/arrow-circle-down/index.d.ts +9 -0
  179. package/dist/components/icons/solid/arrow-circle-down/index.js +40 -0
  180. package/dist/components/icons/solid/arrow-circle-up/index.d.ts +9 -0
  181. package/dist/components/icons/solid/arrow-circle-up/index.js +38 -0
  182. package/dist/components/icons/solid/arrow-narrow-left/index.js +40 -0
  183. package/dist/components/icons/solid/arrow-narrow-right/index.js +40 -0
  184. package/dist/components/icons/solid/bezier-curve/index.d.ts +9 -0
  185. package/dist/components/icons/solid/bezier-curve/index.js +42 -0
  186. package/dist/components/icons/solid/bitcoin-circle/index.d.ts +14 -0
  187. package/dist/components/icons/solid/bitcoin-circle/index.js +40 -0
  188. package/dist/components/icons/solid/check-circle/index.d.ts +12 -0
  189. package/dist/components/icons/solid/check-circle/index.js +73 -0
  190. package/dist/components/icons/solid/check-square/index.js +40 -0
  191. package/dist/components/icons/solid/chevron-down/index.js +40 -0
  192. package/dist/components/icons/solid/chevron-left/index.js +40 -0
  193. package/dist/components/icons/solid/chevron-right/index.js +40 -0
  194. package/dist/components/icons/solid/chevron-selector-horizontal/index.js +42 -0
  195. package/dist/components/icons/solid/chevron-selector-vertical/index.js +42 -0
  196. package/dist/components/icons/solid/chevron-up/index.js +40 -0
  197. package/dist/components/icons/solid/discord/index.js +39 -0
  198. package/dist/components/icons/solid/eth-circle/index.d.ts +14 -0
  199. package/dist/components/icons/solid/eth-circle/index.js +54 -0
  200. package/dist/components/icons/solid/eye/index.js +43 -0
  201. package/dist/components/icons/solid/eye-off/index.js +49 -0
  202. package/dist/components/icons/solid/google/index.js +39 -0
  203. package/dist/components/icons/solid/heart/index.js +40 -0
  204. package/dist/components/icons/solid/help-circle/index.d.ts +8 -0
  205. package/dist/components/icons/solid/help-circle/index.js +38 -0
  206. package/dist/components/icons/solid/index.d.ts +50 -0
  207. package/dist/components/icons/solid/info-circle/index.js +86 -0
  208. package/dist/components/icons/solid/loading/index.js +40 -0
  209. package/dist/components/icons/solid/lock/index.js +41 -0
  210. package/dist/components/icons/solid/mats/index.js +39 -0
  211. package/dist/components/icons/solid/mats-circle/index.d.ts +15 -0
  212. package/dist/components/icons/solid/mats-circle/index.js +57 -0
  213. package/dist/components/icons/solid/menu/index.d.ts +9 -0
  214. package/dist/components/icons/solid/menu/index.js +40 -0
  215. package/dist/components/icons/solid/mezo-circle/index.d.ts +14 -0
  216. package/dist/components/icons/solid/mezo-circle/index.js +42 -0
  217. package/dist/components/icons/solid/minus-circle/index.js +40 -0
  218. package/dist/components/icons/solid/minus-square/index.js +40 -0
  219. package/dist/components/icons/{check-circle → solid/musd-circle}/index.d.ts +15 -2
  220. package/dist/components/icons/solid/musd-circle/index.js +93 -0
  221. package/dist/components/icons/solid/plus-circle/index.js +40 -0
  222. package/dist/components/icons/solid/plus-square/index.d.ts +9 -0
  223. package/dist/components/icons/solid/plus-square/index.js +38 -0
  224. package/dist/components/icons/solid/power/index.d.ts +9 -0
  225. package/dist/components/icons/solid/power/index.js +75 -0
  226. package/dist/components/icons/solid/search/index.js +117 -0
  227. package/dist/components/icons/solid/settings/index.d.ts +8 -0
  228. package/dist/components/icons/solid/settings/index.js +36 -0
  229. package/dist/components/icons/solid/shield/index.js +39 -0
  230. package/dist/components/icons/{mats-circle → solid/star}/index.d.ts +2 -2
  231. package/dist/components/icons/solid/star/index.js +71 -0
  232. package/dist/components/icons/solid/tbtc-circle/index.d.ts +14 -0
  233. package/dist/components/icons/solid/tbtc-circle/index.js +48 -0
  234. package/dist/components/icons/solid/thusd-circle/index.d.ts +14 -0
  235. package/dist/components/icons/solid/thusd-circle/index.js +57 -0
  236. package/dist/components/icons/solid/trend-down/index.d.ts +9 -0
  237. package/dist/components/icons/solid/trend-down/index.js +36 -0
  238. package/dist/components/icons/solid/trend-up/index.d.ts +9 -0
  239. package/dist/components/icons/solid/trend-up/index.js +36 -0
  240. package/dist/components/icons/solid/trophy/index.js +57 -0
  241. package/dist/components/icons/solid/user/index.d.ts +8 -0
  242. package/dist/components/icons/solid/user/index.js +39 -0
  243. package/dist/components/icons/solid/vbtc-circle/index.d.ts +14 -0
  244. package/dist/components/icons/solid/vbtc-circle/index.js +51 -0
  245. package/dist/components/icons/solid/x-circle/index.js +41 -0
  246. package/dist/components/icons/solid/x-twitter/index.js +39 -0
  247. package/dist/components/index.d.ts +20 -5
  248. package/dist/components/input/constants.d.ts +38 -0
  249. package/dist/components/input/constants.js +26 -0
  250. package/dist/components/input/index.d.ts +2 -2
  251. package/dist/components/input/index.js +17 -0
  252. package/dist/components/input/input.d.ts +3 -3
  253. package/dist/components/input/input.js +82 -0
  254. package/dist/components/input/overrides.d.ts +11 -1
  255. package/dist/components/input/overrides.js +181 -0
  256. package/dist/components/input/password-input.js +89 -0
  257. package/dist/components/input/search-input.js +85 -0
  258. package/dist/components/input/types.d.ts +7 -4
  259. package/dist/components/input-group/index.d.ts +5 -0
  260. package/dist/components/input-group/index.js +10 -0
  261. package/dist/components/layer/index.d.ts +2 -0
  262. package/dist/components/layer/index.js +8 -0
  263. package/dist/components/layout-grid/index.d.ts +2 -0
  264. package/dist/components/layout-grid/index.js +5 -0
  265. package/dist/components/link/index.js +32 -0
  266. package/dist/components/list/index.js +11 -0
  267. package/dist/components/list/list-heading.js +53 -0
  268. package/dist/components/list/list-item-label.js +44 -0
  269. package/dist/components/list/list.d.ts +6 -2
  270. package/dist/components/list/list.js +76 -0
  271. package/dist/components/menu/context.d.ts +7 -0
  272. package/dist/components/menu/context.js +10 -0
  273. package/dist/components/menu/index.d.ts +4 -0
  274. package/dist/components/menu/index.js +11 -0
  275. package/dist/components/menu/menu-items.d.ts +18 -0
  276. package/dist/components/menu/menu-items.js +143 -0
  277. package/dist/components/menu/menu.d.ts +28 -0
  278. package/dist/components/menu/menu.js +104 -0
  279. package/dist/components/menu/types.d.ts +1 -0
  280. package/dist/components/message-card/index.d.ts +1 -1
  281. package/dist/components/message-card/index.js +4 -0
  282. package/dist/components/message-card/message-card.d.ts +2 -1
  283. package/dist/components/message-card/message-card.js +51 -0
  284. package/dist/components/message-card/overrides.d.ts +4 -1
  285. package/dist/components/message-card/overrides.js +165 -0
  286. package/dist/components/mobile-header/index.d.ts +1 -0
  287. package/dist/components/mobile-header/index.js +4 -0
  288. package/dist/components/mobile-header/mobile-header.d.ts +15 -0
  289. package/dist/components/mobile-header/mobile-header.js +184 -0
  290. package/dist/components/modal/index.js +15 -0
  291. package/dist/components/modal/modal.d.ts +4 -2
  292. package/dist/components/modal/modal.js +193 -0
  293. package/dist/components/page-control/index.d.ts +3 -0
  294. package/dist/components/page-control/index.js +4 -0
  295. package/dist/components/page-control/page-control.d.ts +6 -0
  296. package/dist/components/page-control/page-control.js +59 -0
  297. package/dist/components/pagination/index.d.ts +3 -0
  298. package/dist/components/pagination/index.js +5 -0
  299. package/dist/components/pagination/pagination-without-dropdown.d.ts +3 -0
  300. package/dist/components/pagination/pagination-without-dropdown.js +134 -0
  301. package/dist/components/pagination/pagination.d.ts +3 -0
  302. package/dist/components/pagination/pagination.js +187 -0
  303. package/dist/components/pagination/stateful-pagination-without-dropdown.d.ts +2 -0
  304. package/dist/components/pagination/stateful-pagination-without-dropdown.js +32 -0
  305. package/dist/components/pagination/types.d.ts +9 -0
  306. package/dist/components/phone-input/default-args.d.ts +27 -0
  307. package/dist/components/phone-input/index.d.ts +4 -0
  308. package/dist/components/phone-input/index.js +13 -0
  309. package/dist/components/phone-input/overrides.d.ts +9 -0
  310. package/dist/components/phone-input/overrides.js +50 -0
  311. package/dist/components/phone-input/phone-input.d.ts +7 -0
  312. package/dist/components/phone-input/phone-input.js +32 -0
  313. package/dist/components/phone-input/stateful-phone-input.d.ts +6 -0
  314. package/dist/components/phone-input/stateful-phone-input.js +32 -0
  315. package/dist/components/popover/index.d.ts +8 -0
  316. package/dist/components/popover/index.js +14 -0
  317. package/dist/components/popover/popover-body.d.ts +3 -0
  318. package/dist/components/popover/popover-body.js +27 -0
  319. package/dist/components/popover/popover-footer.d.ts +3 -0
  320. package/dist/components/popover/popover-footer.js +24 -0
  321. package/dist/components/popover/popover-header.d.ts +20 -0
  322. package/dist/components/popover/popover-header.js +95 -0
  323. package/dist/components/popover/popover.d.ts +3 -0
  324. package/dist/components/popover/popover.js +48 -0
  325. package/dist/components/popover/stepper-popover.d.ts +14 -0
  326. package/dist/components/popover/stepper-popover.js +31 -0
  327. package/dist/components/progress-bar/index.d.ts +1 -1
  328. package/dist/components/progress-bar/index.js +6 -0
  329. package/dist/components/progress-bar/progress-bar.d.ts +4 -1
  330. package/dist/components/progress-bar/progress-bar.js +91 -0
  331. package/dist/components/progress-steps/index.d.ts +7 -0
  332. package/dist/components/progress-steps/index.js +25 -0
  333. package/dist/components/progress-steps/numbered-step-title.d.ts +15 -0
  334. package/dist/components/progress-steps/numbered-step-title.js +41 -0
  335. package/dist/components/progress-steps/numbered-step.d.ts +22 -0
  336. package/dist/components/progress-steps/numbered-step.js +108 -0
  337. package/dist/components/progress-steps/progress-steps.d.ts +5 -0
  338. package/dist/components/progress-steps/progress-steps.js +28 -0
  339. package/dist/components/progress-steps/step.d.ts +6 -0
  340. package/dist/components/progress-steps/step.js +54 -0
  341. package/dist/components/radio/index.d.ts +1 -1
  342. package/dist/components/radio/index.js +6 -0
  343. package/dist/components/radio/overrides.d.ts +17 -0
  344. package/dist/components/radio/overrides.js +16 -0
  345. package/dist/components/radio/radio.d.ts +4 -1
  346. package/dist/components/radio/radio.js +31 -0
  347. package/dist/components/section-heading/index.d.ts +1 -0
  348. package/dist/components/section-heading/index.js +4 -0
  349. package/dist/components/section-heading/section-heading.d.ts +5 -0
  350. package/dist/components/section-heading/section-heading.js +75 -0
  351. package/dist/components/segmented-control/index.d.ts +0 -2
  352. package/dist/components/segmented-control/index.js +5 -0
  353. package/dist/components/segmented-control/segmented-control.d.ts +9 -2
  354. package/dist/components/segmented-control/segmented-control.js +78 -0
  355. package/dist/components/segmented-progress-bar/index.d.ts +1 -0
  356. package/dist/components/segmented-progress-bar/index.js +4 -0
  357. package/dist/components/segmented-progress-bar/segmented-progress-bar.d.ts +2 -0
  358. package/dist/components/segmented-progress-bar/segmented-progress-bar.js +164 -0
  359. package/dist/components/segmented-progress-bar/types.d.ts +53 -0
  360. package/dist/components/select/index.d.ts +3 -0
  361. package/dist/components/select/index.js +6 -0
  362. package/dist/components/select/overrides.d.ts +90 -0
  363. package/dist/components/select/overrides.js +91 -0
  364. package/dist/components/select/select.d.ts +9 -0
  365. package/dist/components/select/select.js +62 -0
  366. package/dist/components/side-navigation/index.d.ts +1 -1
  367. package/dist/components/side-navigation/index.js +8 -0
  368. package/dist/components/side-navigation/overrides.d.ts +2 -1
  369. package/dist/components/side-navigation/overrides.js +39 -0
  370. package/dist/components/side-navigation/side-navigation.d.ts +15 -3
  371. package/dist/components/side-navigation/side-navigation.js +68 -0
  372. package/dist/components/skeleton/index.js +4 -0
  373. package/dist/components/skeleton/skeleton.d.ts +1 -1
  374. package/dist/components/skeleton/skeleton.js +28 -0
  375. package/dist/components/slider/index.d.ts +1 -0
  376. package/dist/components/slider/index.js +4 -0
  377. package/dist/components/slider/slider.d.ts +6 -0
  378. package/dist/components/slider/slider.js +39 -0
  379. package/dist/components/snackbar/index.js +7 -0
  380. package/dist/components/snackbar/snackbar.js +51 -0
  381. package/dist/components/spinner/index.js +4 -0
  382. package/dist/components/spinner/spinner.js +55 -0
  383. package/dist/components/stepper/index.d.ts +2 -0
  384. package/dist/components/stepper/index.js +4 -0
  385. package/dist/components/stepper/stepper.d.ts +5 -0
  386. package/dist/components/stepper/stepper.js +62 -0
  387. package/dist/components/table/index.d.ts +6 -0
  388. package/dist/components/table/index.js +39 -0
  389. package/dist/components/table/table-builder.d.ts +9 -0
  390. package/dist/components/table/table-builder.js +93 -0
  391. package/dist/components/table/table-cells/index.d.ts +40 -0
  392. package/dist/components/table/table-cells/index.js +228 -0
  393. package/dist/components/tabs/index.d.ts +1 -2
  394. package/dist/components/tabs/index.js +7 -0
  395. package/dist/components/tabs/tab-title.js +27 -0
  396. package/dist/components/tabs/tabs.d.ts +9 -0
  397. package/dist/components/tabs/tabs.js +58 -0
  398. package/dist/components/tag/constants.js +77 -0
  399. package/dist/components/tag/index.js +8 -0
  400. package/dist/components/tag/overrides.js +68 -0
  401. package/dist/components/tag/tag.js +58 -0
  402. package/dist/components/textarea/index.js +6 -0
  403. package/dist/components/textarea/overrides.js +62 -0
  404. package/dist/components/textarea/textarea.js +144 -0
  405. package/dist/components/tile/constants.d.ts +5 -0
  406. package/dist/components/tile/constants.js +8 -0
  407. package/dist/components/tile/index.d.ts +9 -0
  408. package/dist/components/tile/index.js +20 -0
  409. package/dist/components/tile/skeletons.d.ts +7 -0
  410. package/dist/components/tile/skeletons.js +18 -0
  411. package/dist/components/tile/styled-components.d.ts +3 -0
  412. package/dist/components/tile/styled-components.js +11 -0
  413. package/dist/components/tile/tile-group.d.ts +7 -0
  414. package/dist/components/tile/tile-group.js +67 -0
  415. package/dist/components/tile/tile.d.ts +11 -0
  416. package/dist/components/tile/tile.js +72 -0
  417. package/dist/components/tooltip/index.d.ts +3 -0
  418. package/dist/components/tooltip/index.js +6 -0
  419. package/dist/components/tooltip/tooltip.d.ts +13 -0
  420. package/dist/components/tooltip/tooltip.js +109 -0
  421. package/dist/components/tooltip/types.d.ts +1 -0
  422. package/dist/components/top-navigation/index.d.ts +3 -0
  423. package/dist/components/top-navigation/index.js +6 -0
  424. package/dist/components/top-navigation/mobile-menu.d.ts +7 -0
  425. package/dist/components/top-navigation/mobile-menu.js +45 -0
  426. package/dist/components/top-navigation/styled-components.d.ts +6 -0
  427. package/dist/components/top-navigation/styled-components.js +60 -0
  428. package/dist/components/top-navigation/top-navigation.d.ts +14 -0
  429. package/dist/components/top-navigation/top-navigation.js +100 -0
  430. package/dist/components/top-navigation/types.d.ts +16 -0
  431. package/dist/components/top-navigation/user-menu.d.ts +7 -0
  432. package/dist/components/top-navigation/user-menu.js +112 -0
  433. package/dist/components/top-navigation/user-profile-tile.d.ts +4 -0
  434. package/dist/components/top-navigation/user-profile-tile.js +27 -0
  435. package/dist/components/typography/index.js +39 -0
  436. package/dist/docs/guides/animations.d.ts +2 -0
  437. package/dist/docs/guides/borders.d.ts +2 -0
  438. package/dist/docs/guides/breakpoints.d.ts +2 -0
  439. package/dist/docs/guides/colors.d.ts +3 -0
  440. package/dist/docs/guides/grid.d.ts +2 -0
  441. package/dist/docs/guides/lighting.d.ts +2 -0
  442. package/dist/docs/guides/media-queries.d.ts +2 -0
  443. package/dist/docs/guides/sizing.d.ts +2 -0
  444. package/dist/docs/guides/theme-property.d.ts +13 -0
  445. package/dist/docs/guides/typography.d.ts +2 -0
  446. package/dist/docs/index.d.ts +13 -0
  447. package/dist/index.d.ts +1 -0
  448. package/dist/index.js +580 -0
  449. package/dist/node_modules/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +290 -0
  450. package/dist/node_modules/.pnpm/use-fit-text@2.4.0_react@18.3.1/node_modules/use-fit-text/dist/index.js +49 -0
  451. package/dist/ssr/index.d.ts +17 -0
  452. package/dist/ssr/index.js +27 -0
  453. package/dist/styles/helpers.d.ts +2 -0
  454. package/dist/styles/helpers.js +20 -0
  455. package/dist/styles/index.d.ts +2 -1
  456. package/dist/styles/index.js +8 -0
  457. package/dist/themes/borders.js +15 -0
  458. package/dist/themes/clay-dark-theme.d.ts +1 -0
  459. package/dist/themes/clay-dark-theme.js +52 -0
  460. package/dist/themes/clay-light-theme.d.ts +3 -0
  461. package/dist/themes/clay-light-theme.js +60 -0
  462. package/dist/themes/color-tokens.js +73 -0
  463. package/dist/themes/index.d.ts +2 -0
  464. package/dist/themes/index.js +14 -0
  465. package/dist/themes/provider.d.ts +10 -3
  466. package/dist/themes/provider.js +31 -0
  467. package/dist/themes/typography.js +184 -0
  468. package/dist/utils/console.d.ts +2 -0
  469. package/dist/utils/console.js +23 -0
  470. package/dist/utils/index.d.ts +6 -1
  471. package/dist/utils/index.js +45 -0
  472. package/package.json +281 -33
  473. package/dist/components/button-group/constants.d.ts +0 -5
  474. package/dist/components/button-icon/overrides.d.ts +0 -5
  475. package/dist/components/icons/star/index.d.ts +0 -29
  476. package/dist/components/icons/utils.d.ts +0 -46
  477. package/dist/mezo-clay.css +0 -1
  478. package/dist/mezo-clay.es.js +0 -32719
  479. package/dist/mezo-clay.umd.js +0 -294
  480. /package/dist/components/icons/{building → line/building}/index.d.ts +0 -0
  481. /package/dist/components/icons/{circle-cut → line/circle-cut}/index.d.ts +0 -0
  482. /package/dist/components/icons/{close → line/close}/index.d.ts +0 -0
  483. /package/dist/components/icons/{coins-hand → line/coins-hand}/index.d.ts +0 -0
  484. /package/dist/components/icons/{coins-swap → line/coins-swap}/index.d.ts +0 -0
  485. /package/dist/components/icons/{copy → line/copy}/index.d.ts +0 -0
  486. /package/dist/components/icons/{cryptocurrency → line/cryptocurrency}/index.d.ts +0 -0
  487. /package/dist/components/icons/{cube → line/cube}/index.d.ts +0 -0
  488. /package/dist/components/icons/{email → line/email}/index.d.ts +0 -0
  489. /package/dist/components/icons/{gas-fee → line/gas-fee}/index.d.ts +0 -0
  490. /package/dist/components/icons/{handshake → line/handshake}/index.d.ts +0 -0
  491. /package/dist/components/icons/{home-smile → line/home-smile}/index.d.ts +0 -0
  492. /package/dist/components/icons/{lightning → line/lightning}/index.d.ts +0 -0
  493. /package/dist/components/icons/{link-external → line/link-external}/index.d.ts +0 -0
  494. /package/dist/components/icons/{log-in → line/log-in}/index.d.ts +0 -0
  495. /package/dist/components/icons/{message-question-circle → line/message-question-circle}/index.d.ts +0 -0
  496. /package/dist/components/icons/{plus → line/plus}/index.d.ts +0 -0
  497. /package/dist/components/icons/{receipt → line/receipt}/index.d.ts +0 -0
  498. /package/dist/components/icons/{square → line/square}/index.d.ts +0 -0
  499. /package/dist/components/icons/{tag → line/tag}/index.d.ts +0 -0
  500. /package/dist/components/icons/{upload → line/upload}/index.d.ts +0 -0
  501. /package/dist/components/icons/{wallet → line/wallet}/index.d.ts +0 -0
  502. /package/dist/components/icons/{alert-circle → solid/alert-circle}/index.d.ts +0 -0
  503. /package/dist/components/icons/{alert-triangle → solid/alert-triangle}/index.d.ts +0 -0
  504. /package/dist/components/icons/{apple → solid/apple}/index.d.ts +0 -0
  505. /package/dist/components/icons/{arrow-narrow-left → solid/arrow-narrow-left}/index.d.ts +0 -0
  506. /package/dist/components/icons/{arrow-narrow-right → solid/arrow-narrow-right}/index.d.ts +0 -0
  507. /package/dist/components/icons/{check-square → solid/check-square}/index.d.ts +0 -0
  508. /package/dist/components/icons/{chevron-down → solid/chevron-down}/index.d.ts +0 -0
  509. /package/dist/components/icons/{chevron-left → solid/chevron-left}/index.d.ts +0 -0
  510. /package/dist/components/icons/{chevron-right → solid/chevron-right}/index.d.ts +0 -0
  511. /package/dist/components/icons/{chevron-selector-horizontal → solid/chevron-selector-horizontal}/index.d.ts +0 -0
  512. /package/dist/components/icons/{chevron-selector-vertical → solid/chevron-selector-vertical}/index.d.ts +0 -0
  513. /package/dist/components/icons/{chevron-up → solid/chevron-up}/index.d.ts +0 -0
  514. /package/dist/components/icons/{discord → solid/discord}/index.d.ts +0 -0
  515. /package/dist/components/icons/{eye → solid/eye}/index.d.ts +0 -0
  516. /package/dist/components/icons/{eye-off → solid/eye-off}/index.d.ts +0 -0
  517. /package/dist/components/icons/{google → solid/google}/index.d.ts +0 -0
  518. /package/dist/components/icons/{heart → solid/heart}/index.d.ts +0 -0
  519. /package/dist/components/icons/{info-circle → solid/info-circle}/index.d.ts +0 -0
  520. /package/dist/components/icons/{loading → solid/loading}/index.d.ts +0 -0
  521. /package/dist/components/icons/{lock → solid/lock}/index.d.ts +0 -0
  522. /package/dist/components/icons/{mats → solid/mats}/index.d.ts +0 -0
  523. /package/dist/components/icons/{minus-circle → solid/minus-circle}/index.d.ts +0 -0
  524. /package/dist/components/icons/{minus-square → solid/minus-square}/index.d.ts +0 -0
  525. /package/dist/components/icons/{plus-circle → solid/plus-circle}/index.d.ts +0 -0
  526. /package/dist/components/icons/{search → solid/search}/index.d.ts +0 -0
  527. /package/dist/components/icons/{shield → solid/shield}/index.d.ts +0 -0
  528. /package/dist/components/icons/{trophy → solid/trophy}/index.d.ts +0 -0
  529. /package/dist/components/icons/{x-circle → solid/x-circle}/index.d.ts +0 -0
  530. /package/dist/components/icons/{x-twitter → solid/x-twitter}/index.d.ts +0 -0
@@ -0,0 +1,104 @@
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { useStyletron as m, mergeOverrides as u } from "baseui";
3
+ import { Block as d } from "baseui/block";
4
+ import c from "../button/button.js";
5
+ import "baseui/card";
6
+ import { CardFooter as C } from "../card/card.js";
7
+ import { useCalloutCardContext as n } from "./context.js";
8
+ import { CalloutCardBodySkeleton as p, CalloutCardFooterSkeleton as s } from "./skeletons.js";
9
+ import { CardTitleSkeleton as y } from "../card/card-skeletons.js";
10
+ function g({
11
+ $style: o = {},
12
+ children: r
13
+ }) {
14
+ const [a, t] = m(), { kind: i, loading: l } = n();
15
+ return l ? /* @__PURE__ */ e(y, {}) : /* @__PURE__ */ e(
16
+ d,
17
+ {
18
+ className: a({
19
+ margin: 0,
20
+ marginBottom: t.sizing.scale500,
21
+ paddding: 0,
22
+ color: t.colors.contentPrimary,
23
+ ...t.typography[i === "tertiary" ? "HeadingXSmall" : "HeadingSmall"],
24
+ ...o
25
+ }),
26
+ children: r
27
+ }
28
+ );
29
+ }
30
+ g.displayName = "CalloutCardTitle";
31
+ function f({
32
+ $style: o = {},
33
+ children: r
34
+ }) {
35
+ const [a, t] = m(), { kind: i, loading: l } = n();
36
+ return l ? /* @__PURE__ */ e(p, {}) : /* @__PURE__ */ e(
37
+ d,
38
+ {
39
+ className: a({
40
+ marginBottom: t.sizing.scale600,
41
+ color: t.colors.contentPrimary,
42
+ ...t.typography[i === "tertiary" ? "ParagraphXSmall" : "ParagraphMedium"],
43
+ ...o
44
+ }),
45
+ children: r
46
+ }
47
+ );
48
+ }
49
+ f.displayName = "CalloutCardBody";
50
+ function B({
51
+ justifyContent: o,
52
+ ...r
53
+ }) {
54
+ const { kind: a, loading: t } = n();
55
+ return t ? /* @__PURE__ */ e(s, {}) : /* @__PURE__ */ e(
56
+ C,
57
+ {
58
+ justifyContent: o || (a === "tertiary" ? "start" : "end"),
59
+ ...r
60
+ }
61
+ );
62
+ }
63
+ B.displayName = "CalloutCardFooter";
64
+ function k({ children: o }) {
65
+ const { loading: r } = n();
66
+ return r ? /* @__PURE__ */ e(s, {}) : /* @__PURE__ */ e(d, { children: o });
67
+ }
68
+ k.displayName = "CalloutCardAction";
69
+ function v({
70
+ overrides: o,
71
+ ...r
72
+ }) {
73
+ const { kind: a } = n();
74
+ return /* @__PURE__ */ e(
75
+ c,
76
+ {
77
+ kind: a,
78
+ size: a === "secondary" ? "medium" : "xsmall",
79
+ shape: "pill",
80
+ overrides: u(
81
+ {
82
+ BaseButton: {
83
+ style: ({ $theme: t }) => ({
84
+ ...a === "tertiary" && {
85
+ // We want to button text to align with the left edge of the card -
86
+ // This compensates for the xsmall button's padding
87
+ marginLeft: `-${t.sizing.scale300}`
88
+ }
89
+ })
90
+ }
91
+ },
92
+ o
93
+ ),
94
+ ...r
95
+ }
96
+ );
97
+ }
98
+ export {
99
+ k as CalloutCardAction,
100
+ f as CalloutCardBody,
101
+ B as CalloutCardFooter,
102
+ v as CalloutCardFooterButton,
103
+ g as CalloutCardTitle
104
+ };
@@ -0,0 +1,11 @@
1
+ import { CardProps } from '../card';
2
+ import { ContentStep, ContentStepperProps, ContentStepperOverrides } from '../content-stepper';
3
+ import { CalloutCardKind } from './types';
4
+ export type CalloutCardProps = Omit<CardProps, "backgroundImage" | "loadingHeaderImageHeight" | "headerImage" | "thumbnail" | "hasThumbnail"> & Omit<ContentStepperProps, "steps" | "overrides" | "onClose" | "onStepsCompleted"> & {
5
+ kind?: CalloutCardKind;
6
+ steps?: ContentStep[];
7
+ contentStepperOverrides?: ContentStepperOverrides;
8
+ onClose?: () => void;
9
+ onStepsCompleted?: () => void;
10
+ };
11
+ export declare function CalloutCard({ action, children, kind, contentStepperOverrides, overrides, steps, withStepCount, onClose, onStepsCompleted, previousButtonAlwaysEnabled, loading, ...restProps }: CalloutCardProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,132 @@
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import s, { useMemo as B } from "react";
3
+ import { mergeOverrides as p } from "baseui";
4
+ import i from "../../themes/typography.js";
5
+ import "baseui/card";
6
+ import { Card as v } from "../card/card.js";
7
+ import { ContentStepper as x } from "../content-stepper/content-stepper.js";
8
+ import { CalloutCardContext as S } from "./context.js";
9
+ import { CalloutCardAction as A, CalloutCardBody as P } from "./callout-card-subcomponents.js";
10
+ function H(t, a, r) {
11
+ return t === "tertiary" ? {
12
+ Body: {
13
+ style: {
14
+ ...i.ParagraphXSmall
15
+ }
16
+ },
17
+ Action: {
18
+ style: {
19
+ textAlign: "left"
20
+ }
21
+ }
22
+ } : a ? {
23
+ Contents: {
24
+ style: () => ({
25
+ ...!r && { margin: 0 }
26
+ })
27
+ },
28
+ Body: {
29
+ style: () => ({
30
+ marginBottom: 0
31
+ })
32
+ }
33
+ } : {
34
+ Title: {
35
+ style: {
36
+ ...i.HeadingSmall
37
+ }
38
+ },
39
+ Action: {
40
+ style: {
41
+ textAlign: "right"
42
+ }
43
+ }
44
+ };
45
+ }
46
+ function z(t) {
47
+ return typeof t == "string" || s.isValidElement(t) && t.type === s.Fragment ? /* @__PURE__ */ o(P, { children: t }) : t;
48
+ }
49
+ function V({
50
+ action: t,
51
+ children: a,
52
+ kind: r = "secondary",
53
+ contentStepperOverrides: d,
54
+ overrides: u,
55
+ steps: n,
56
+ withStepCount: y,
57
+ onClose: f,
58
+ onStepsCompleted: C,
59
+ previousButtonAlwaysEnabled: g = !1,
60
+ loading: e,
61
+ ...c
62
+ }) {
63
+ const l = n && n.length > 0, m = {
64
+ shape: "pill",
65
+ size: "medium"
66
+ };
67
+ return /* @__PURE__ */ o(
68
+ S.Provider,
69
+ {
70
+ value: B(() => ({ kind: r, loading: e }), [r, e]),
71
+ children: /* @__PURE__ */ o(
72
+ v,
73
+ {
74
+ ...t && {
75
+ action: /* @__PURE__ */ o(A, { children: t })
76
+ },
77
+ overrides: p(
78
+ H(r, l, e),
79
+ u
80
+ ),
81
+ loading: e,
82
+ ...c,
83
+ children: l ? /* @__PURE__ */ o(
84
+ x,
85
+ {
86
+ steps: n,
87
+ onClose: f,
88
+ onStepsCompleted: C,
89
+ withStepCount: y,
90
+ previousButtonAlwaysEnabled: g,
91
+ loading: e,
92
+ overrides: p(
93
+ {
94
+ Header: {
95
+ style: {
96
+ ...i.HeadingSmall
97
+ }
98
+ },
99
+ Body: {
100
+ style: ({ $theme: h }) => ({
101
+ paddingTop: h.sizing.scale500
102
+ })
103
+ },
104
+ StepCount: {
105
+ style: {
106
+ ...i.ParagraphMedium
107
+ }
108
+ },
109
+ NextButton: {
110
+ props: {
111
+ kind: "secondary",
112
+ ...m
113
+ }
114
+ },
115
+ PrevButton: {
116
+ props: {
117
+ ...m
118
+ }
119
+ }
120
+ },
121
+ d
122
+ )
123
+ }
124
+ ) : z(a)
125
+ }
126
+ )
127
+ }
128
+ );
129
+ }
130
+ export {
131
+ V as CalloutCard
132
+ };
@@ -0,0 +1,9 @@
1
+ import { CalloutCardKind } from './types';
2
+ export declare const CalloutCardContext: import('react').Context<{
3
+ kind: CalloutCardKind;
4
+ loading: boolean;
5
+ }>;
6
+ export declare const useCalloutCardContext: () => {
7
+ kind: CalloutCardKind;
8
+ loading: boolean;
9
+ };
@@ -0,0 +1,13 @@
1
+ import { createContext as o, useContext as r } from "react";
2
+ import { checkForContextError as e } from "../../utils/index.js";
3
+ const n = o({
4
+ kind: "secondary",
5
+ loading: !1
6
+ }), c = () => {
7
+ const t = r(n);
8
+ return e(t, "CalloutCard"), t;
9
+ };
10
+ export {
11
+ n as CalloutCardContext,
12
+ c as useCalloutCardContext
13
+ };
@@ -0,0 +1,4 @@
1
+ export * from './callout-card';
2
+ export * from './callout-card-subcomponents';
3
+ export * from './context';
4
+ export * from './types';
@@ -0,0 +1,13 @@
1
+ import { CalloutCard as C } from "./callout-card.js";
2
+ import { CalloutCardAction as a, CalloutCardBody as r, CalloutCardFooter as u, CalloutCardFooterButton as d, CalloutCardTitle as e } from "./callout-card-subcomponents.js";
3
+ import { CalloutCardContext as n, useCalloutCardContext as f } from "./context.js";
4
+ export {
5
+ C as CalloutCard,
6
+ a as CalloutCardAction,
7
+ r as CalloutCardBody,
8
+ n as CalloutCardContext,
9
+ u as CalloutCardFooter,
10
+ d as CalloutCardFooterButton,
11
+ e as CalloutCardTitle,
12
+ f as useCalloutCardContext
13
+ };
@@ -0,0 +1,3 @@
1
+ export { CardTitleSkeleton as CalloutCardTitleSkeleton } from '../card/card-skeletons';
2
+ export declare function CalloutCardBodySkeleton(): import("react/jsx-runtime").JSX.Element;
3
+ export declare function CalloutCardFooterSkeleton(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,44 @@
1
+ import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
+ import { Block as l } from "baseui/block";
3
+ import { useStyletron as i } from "baseui";
4
+ import { CardBodySkeleton as s, CardFooterSkeleton as d } from "../card/card-skeletons.js";
5
+ import { CardTitleSkeleton as S } from "../card/card-skeletons.js";
6
+ import r from "../skeleton/skeleton.js";
7
+ import { useCalloutCardContext as n } from "./context.js";
8
+ function k() {
9
+ const [, t] = i(), { kind: o } = n();
10
+ return o === "tertiary" ? /* @__PURE__ */ a(l, { children: [
11
+ /* @__PURE__ */ e(
12
+ r,
13
+ {
14
+ animation: !0,
15
+ height: t.sizing.scale600,
16
+ width: "80%",
17
+ overrides: {
18
+ Root: {
19
+ style: {
20
+ marginBottom: t.sizing.scale300
21
+ }
22
+ }
23
+ }
24
+ }
25
+ ),
26
+ /* @__PURE__ */ e(r, { animation: !0, height: t.sizing.scale600, width: "50%" })
27
+ ] }) : /* @__PURE__ */ e(s, { width: "80%" });
28
+ }
29
+ function y() {
30
+ const [, t] = i(), { kind: o } = n();
31
+ return /* @__PURE__ */ e(
32
+ d,
33
+ {
34
+ justifyContent: o === "tertiary" ? "start" : "end",
35
+ height: o === "tertiary" ? t.sizing.scale850 : void 0,
36
+ width: o === "tertiary" ? "40%" : void 0
37
+ }
38
+ );
39
+ }
40
+ export {
41
+ k as CalloutCardBodySkeleton,
42
+ y as CalloutCardFooterSkeleton,
43
+ S as CalloutCardTitleSkeleton
44
+ };
@@ -0,0 +1 @@
1
+ export type CalloutCardKind = "secondary" | "tertiary";
@@ -0,0 +1,19 @@
1
+ import { ReactElement } from 'react';
2
+ import { StyleObject } from 'styletron-react';
3
+ export declare function CardTitleSkeleton(): import("react/jsx-runtime").JSX.Element;
4
+ export declare function CardBodySkeleton({ width }: {
5
+ width: string;
6
+ }): import("react/jsx-runtime").JSX.Element;
7
+ export declare function CardBodyFullWidthSkeleton({ $style, }: {
8
+ $style?: StyleObject;
9
+ }): import("react/jsx-runtime").JSX.Element;
10
+ export declare function CardFooterSkeleton({ justifyContent, width, height, }: {
11
+ justifyContent?: string;
12
+ width?: string;
13
+ height?: string;
14
+ }): import("react/jsx-runtime").JSX.Element;
15
+ export declare function CardThumbnailSkeleton(): import("react/jsx-runtime").JSX.Element;
16
+ export declare function CardHeaderImageSkeleton({ height, }: {
17
+ height?: string;
18
+ }): import("react/jsx-runtime").JSX.Element;
19
+ export declare function getCardSkeleton(component: ReactElement): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,123 @@
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { Block as c } from "baseui/block";
3
+ import { useStyletron as s } from "baseui";
4
+ import { getComponentName as d } from "../../utils/index.js";
5
+ import a from "../skeleton/skeleton.js";
6
+ import { useCardContext as m } from "./context.js";
7
+ function g() {
8
+ const [t, e] = s();
9
+ return /* @__PURE__ */ i(c, { className: t({ marginBottom: e.sizing.scale600 }), children: /* @__PURE__ */ i(a, { animation: !0, height: e.sizing.scale900, width: "50%" }) });
10
+ }
11
+ function h({ width: t }) {
12
+ const [, e] = s();
13
+ return /* @__PURE__ */ i(a, { animation: !0, height: e.sizing.scale800, width: t });
14
+ }
15
+ function u({
16
+ $style: t = {}
17
+ }) {
18
+ const [e, n] = s(), { format: o } = m(), r = o === "feed";
19
+ return /* @__PURE__ */ i(
20
+ c,
21
+ {
22
+ className: e({
23
+ marginTop: n.sizing.scale600,
24
+ marginBottom: n.sizing.scale600,
25
+ marginLeft: r ? 0 : `-${n.sizing.scale600}`,
26
+ width: r ? "100%" : `calc(100% + ${n.sizing.scale900})`,
27
+ ...t
28
+ }),
29
+ children: /* @__PURE__ */ i(a, { animation: !0, width: "100%", height: "216px" })
30
+ }
31
+ );
32
+ }
33
+ function f({
34
+ justifyContent: t = "center",
35
+ width: e,
36
+ height: n
37
+ }) {
38
+ const [o, r] = s();
39
+ return /* @__PURE__ */ i(
40
+ c,
41
+ {
42
+ className: o({
43
+ display: "flex",
44
+ justifyContent: t,
45
+ marginTop: r.sizing.scale600
46
+ }),
47
+ children: /* @__PURE__ */ i(
48
+ a,
49
+ {
50
+ animation: !0,
51
+ width: e || r.sizing.scale2400,
52
+ height: n || r.sizing.scale1200
53
+ }
54
+ )
55
+ }
56
+ );
57
+ }
58
+ function z() {
59
+ const [t, e] = s();
60
+ return /* @__PURE__ */ i(
61
+ c,
62
+ {
63
+ className: t({
64
+ width: e.sizing.scale1400,
65
+ height: e.sizing.scale1400,
66
+ float: "right",
67
+ margin: `0 0 ${e.sizing.scale500} ${e.sizing.scale500}`
68
+ }),
69
+ children: /* @__PURE__ */ i(
70
+ a,
71
+ {
72
+ animation: !0,
73
+ width: e.sizing.scale1400,
74
+ height: e.sizing.scale1400
75
+ }
76
+ )
77
+ }
78
+ );
79
+ }
80
+ function B({
81
+ height: t = "220px"
82
+ }) {
83
+ const [e, n] = s(), { format: o } = m(), r = o === "feed", l = `-${n.sizing[r ? "scale600" : "scale300"]}`;
84
+ return /* @__PURE__ */ i(
85
+ c,
86
+ {
87
+ className: e({
88
+ marginTop: l,
89
+ marginLeft: l,
90
+ marginBottom: n.sizing.scale600,
91
+ width: `calc(100% + ${n.sizing[r ? "scale900" : "scale600"]})`
92
+ }),
93
+ children: /* @__PURE__ */ i(
94
+ a,
95
+ {
96
+ animation: !0,
97
+ width: "100%",
98
+ height: t,
99
+ overrides: {
100
+ Root: {
101
+ style: {
102
+ borderRadius: r ? 0 : n.borders.radius300
103
+ }
104
+ }
105
+ }
106
+ }
107
+ )
108
+ }
109
+ );
110
+ }
111
+ function x(t) {
112
+ const e = d(t);
113
+ return e === "CardTitle" || e === "Title" ? /* @__PURE__ */ i(g, {}) : e === "CardFooter" || e === "Action" ? /* @__PURE__ */ i(f, {}) : e === "CardThumbnail" ? /* @__PURE__ */ i(z, {}) : e === "CardBodyFullWidth" ? /* @__PURE__ */ i(u, {}) : e === "ListItem" || e === "ContentStepper" || e != null && e.includes("CalloutCard") ? t : /* @__PURE__ */ i(h, { width: "79%" });
114
+ }
115
+ export {
116
+ u as CardBodyFullWidthSkeleton,
117
+ h as CardBodySkeleton,
118
+ f as CardFooterSkeleton,
119
+ B as CardHeaderImageSkeleton,
120
+ z as CardThumbnailSkeleton,
121
+ g as CardTitleSkeleton,
122
+ x as getCardSkeleton
123
+ };
@@ -1,6 +1,28 @@
1
- import { CardProps as BaseUiCardProps } from 'baseui/card';
2
- export type CardProps = {
3
- withBorder?: boolean;
4
- backgroundColor?: string;
5
- } & BaseUiCardProps;
6
- export default function Card({ withBorder, backgroundColor, overrides, children, ...props }: CardProps): import("react/jsx-runtime").JSX.Element;
1
+ import { ComponentProps } from 'react';
2
+ import { StyledAction as BaseUiStyledAction, StyledThumbnail as BaseUiStyledThumbnail } from 'baseui/card';
3
+ import { ButtonProps } from '../button';
4
+ import { CardProps } from './types';
5
+ export declare const CardTitle: import('styletron-react').StyletronComponent<"h1", {}>;
6
+ export type CardTitleProps = ComponentProps<typeof CardTitle>;
7
+ export declare function Card({ withBorder, backgroundColor, backgroundImage, loading, loadingHeaderImageHeight, format, overrides, title, children, headerImage, thumbnail, action, id, width, ...props }: CardProps): import("react/jsx-runtime").JSX.Element;
8
+ export type CardBodyFullWidthProps = ComponentProps<typeof BaseUiStyledAction>;
9
+ export declare function CardBodyFullWidth({ children, $style, ...restProps }: CardBodyFullWidthProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare namespace CardBodyFullWidth {
11
+ var displayName: string;
12
+ }
13
+ export type CardFooterProps = ComponentProps<typeof BaseUiStyledAction> & {
14
+ justifyContent?: string;
15
+ };
16
+ export declare function CardFooter({ justifyContent, children, $style, ...restProps }: CardFooterProps): import("react/jsx-runtime").JSX.Element;
17
+ export declare namespace CardFooter {
18
+ var displayName: string;
19
+ }
20
+ export declare function CardFooterButton({ children, ...restProps }: ButtonProps): import("react/jsx-runtime").JSX.Element;
21
+ export declare namespace CardFooterButton {
22
+ var displayName: string;
23
+ }
24
+ export type CardThumbnailProps = ComponentProps<typeof BaseUiStyledThumbnail>;
25
+ export declare function CardThumbnail({ $style, ...restProps }: CardThumbnailProps): import("react/jsx-runtime").JSX.Element;
26
+ export declare namespace CardThumbnail {
27
+ var displayName: string;
28
+ }