@askrjs/themes 0.0.9 → 0.0.10

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 (472) hide show
  1. package/README.md +19 -13
  2. package/THEMING.md +24 -18
  3. package/dist/components/_internal/block-layout.d.ts +49 -0
  4. package/dist/components/_internal/block-layout.js +210 -0
  5. package/dist/components/_internal/block-layout.js.map +1 -0
  6. package/dist/components/alert/alert.js +2 -2
  7. package/dist/components/alert/alert.js.map +1 -1
  8. package/dist/components/alert/alert.types.d.ts +0 -1
  9. package/dist/components/aside/aside.d.ts +7 -0
  10. package/dist/components/aside/aside.js +16 -0
  11. package/dist/components/aside/aside.js.map +1 -0
  12. package/dist/components/aside/aside.types.d.ts +6 -0
  13. package/dist/components/aside/index.d.ts +2 -0
  14. package/dist/components/aspect-ratio/aspect-ratio.js +1 -1
  15. package/dist/components/aspect-ratio/aspect-ratio.js.map +1 -1
  16. package/dist/components/badge/index.d.ts +1 -2
  17. package/dist/components/block/block.d.ts +2 -3
  18. package/dist/components/block/block.js +16 -46
  19. package/dist/components/block/block.js.map +1 -1
  20. package/dist/components/block/block.types.d.ts +13 -23
  21. package/dist/components/block/index.d.ts +3 -3
  22. package/dist/components/brand/brand.d.ts +9 -0
  23. package/dist/components/brand/brand.js +49 -0
  24. package/dist/components/brand/brand.js.map +1 -0
  25. package/dist/components/brand/brand.types.d.ts +31 -0
  26. package/dist/components/brand/index.d.ts +2 -0
  27. package/dist/components/card/card.d.ts +3 -3
  28. package/dist/components/card/card.js +6 -11
  29. package/dist/components/card/card.js.map +1 -1
  30. package/dist/components/card/card.types.d.ts +10 -12
  31. package/dist/components/card/index.d.ts +2 -2
  32. package/dist/components/catalog.d.ts +156 -0
  33. package/dist/components/catalog.js +723 -0
  34. package/dist/components/catalog.js.map +1 -0
  35. package/dist/components/container/container.d.ts +2 -3
  36. package/dist/components/container/container.js +8 -71
  37. package/dist/components/container/container.js.map +1 -1
  38. package/dist/components/container/container.types.d.ts +5 -24
  39. package/dist/components/container/index.d.ts +2 -3
  40. package/dist/components/empty-state/empty-state.js +34 -28
  41. package/dist/components/empty-state/empty-state.js.map +1 -1
  42. package/dist/components/empty-state/empty-state.types.d.ts +3 -6
  43. package/dist/components/field/field.js +4 -2
  44. package/dist/components/field/field.js.map +1 -1
  45. package/dist/components/field/field.types.d.ts +1 -0
  46. package/dist/components/footer/footer.d.ts +13 -0
  47. package/dist/components/footer/footer.js +86 -0
  48. package/dist/components/footer/footer.js.map +1 -0
  49. package/dist/components/footer/footer.types.d.ts +37 -0
  50. package/dist/components/footer/index.d.ts +2 -0
  51. package/dist/components/grid/grid.d.ts +7 -0
  52. package/dist/components/grid/grid.js +76 -0
  53. package/dist/components/grid/grid.js.map +1 -0
  54. package/dist/components/grid/grid.types.d.ts +19 -0
  55. package/dist/components/grid/index.d.ts +2 -0
  56. package/dist/components/header/header.js +9 -6
  57. package/dist/components/header/header.js.map +1 -1
  58. package/dist/components/header/header.types.d.ts +5 -5
  59. package/dist/components/header/index.d.ts +2 -0
  60. package/dist/components/main/index.d.ts +2 -0
  61. package/dist/components/main/main.d.ts +7 -0
  62. package/dist/components/main/main.js +17 -0
  63. package/dist/components/main/main.js.map +1 -0
  64. package/dist/components/main/main.types.d.ts +6 -0
  65. package/dist/components/nav/index.d.ts +2 -2
  66. package/dist/components/nav/nav.d.ts +8 -6
  67. package/dist/components/nav/nav.js +93 -58
  68. package/dist/components/nav/nav.js.map +1 -1
  69. package/dist/components/nav/nav.types.d.ts +16 -20
  70. package/dist/components/navbar/index.d.ts +4 -5
  71. package/dist/components/navbar/navbar.d.ts +3 -38
  72. package/dist/components/navbar/navbar.js +103 -210
  73. package/dist/components/navbar/navbar.js.map +1 -1
  74. package/dist/components/navbar/navbar.types.d.ts +14 -24
  75. package/dist/components/page/index.d.ts +2 -0
  76. package/dist/components/page/page.d.ts +7 -0
  77. package/dist/components/page/page.js +22 -0
  78. package/dist/components/page/page.js.map +1 -0
  79. package/dist/components/page/page.types.d.ts +6 -0
  80. package/dist/components/page-header/index.d.ts +2 -0
  81. package/dist/components/page-header/page-header.d.ts +7 -0
  82. package/dist/components/page-header/page-header.js +37 -0
  83. package/dist/components/page-header/page-header.js.map +1 -0
  84. package/dist/components/page-header/page-header.types.d.ts +10 -0
  85. package/dist/components/section/index.d.ts +2 -3
  86. package/dist/components/section/section.d.ts +2 -3
  87. package/dist/components/section/section.js +7 -30
  88. package/dist/components/section/section.js.map +1 -1
  89. package/dist/components/section/section.types.d.ts +3 -20
  90. package/dist/components/separator/index.d.ts +1 -2
  91. package/dist/components/sidebar/index.d.ts +2 -0
  92. package/dist/components/sidebar/sidebar.d.ts +17 -2
  93. package/dist/components/sidebar/sidebar.js +115 -225
  94. package/dist/components/sidebar/sidebar.js.map +1 -1
  95. package/dist/components/sidebar/sidebar.types.d.ts +21 -23
  96. package/dist/components/skeleton/index.d.ts +1 -2
  97. package/dist/components/skeleton/skeleton.js +12 -1
  98. package/dist/components/skeleton/skeleton.js.map +1 -1
  99. package/dist/components/skeleton/skeleton.types.d.ts +2 -0
  100. package/dist/components/spinner/index.d.ts +1 -1
  101. package/dist/components/spinner/spinner.js +6 -3
  102. package/dist/components/spinner/spinner.js.map +1 -1
  103. package/dist/components/spinner/spinner.types.d.ts +3 -1
  104. package/dist/components/stat/index.d.ts +2 -0
  105. package/dist/components/stat/stat.d.ts +10 -0
  106. package/dist/components/stat/stat.js +52 -0
  107. package/dist/components/stat/stat.js.map +1 -0
  108. package/dist/components/stat/stat.types.d.ts +24 -0
  109. package/dist/components/text/index.d.ts +2 -0
  110. package/dist/components/text/text.d.ts +7 -0
  111. package/dist/components/text/text.js +28 -0
  112. package/dist/components/text/text.js.map +1 -0
  113. package/dist/components/text/text.types.d.ts +26 -0
  114. package/dist/components/theme/theme.js +50 -8
  115. package/dist/components/theme/theme.js.map +1 -1
  116. package/dist/components/toolbar/index.d.ts +2 -0
  117. package/dist/components/toolbar/toolbar.d.ts +7 -0
  118. package/dist/components/toolbar/toolbar.js +30 -0
  119. package/dist/components/toolbar/toolbar.js.map +1 -0
  120. package/dist/components/toolbar/toolbar.types.d.ts +9 -0
  121. package/dist/components.d.ts +60 -0
  122. package/dist/components.js +35 -0
  123. package/dist/controls.d.ts +2 -2
  124. package/dist/controls.js +3 -3
  125. package/dist/core.d.ts +36 -0
  126. package/dist/core.js +19 -0
  127. package/dist/navs.d.ts +3 -15
  128. package/dist/navs.js +2 -8
  129. package/dist/overlays.d.ts +2 -2
  130. package/dist/overlays.js +2 -2
  131. package/dist/surfaces.d.ts +10 -8
  132. package/dist/surfaces.js +6 -4
  133. package/dist/themes/default/index.css +3661 -3945
  134. package/package.json +235 -69
  135. package/src/components/_internal/block-layout.ts +354 -0
  136. package/src/components/alert/alert.tsx +1 -2
  137. package/src/components/alert/alert.types.ts +0 -1
  138. package/src/components/aside/aside.tsx +12 -0
  139. package/src/components/aside/aside.types.ts +3 -0
  140. package/src/components/aside/index.ts +2 -0
  141. package/src/components/aspect-ratio/aspect-ratio.tsx +1 -1
  142. package/src/components/badge/index.ts +0 -1
  143. package/src/components/block/block.a11y.ts +0 -6
  144. package/src/components/block/block.tsx +40 -56
  145. package/src/components/block/block.types.ts +59 -41
  146. package/src/components/block/index.ts +1 -10
  147. package/src/components/brand/brand.tsx +61 -0
  148. package/src/components/brand/brand.types.ts +39 -0
  149. package/src/components/brand/index.ts +2 -0
  150. package/src/components/card/card.tsx +6 -18
  151. package/src/components/card/card.types.ts +9 -11
  152. package/src/components/card/index.ts +2 -3
  153. package/src/components/catalog.tsx +713 -0
  154. package/src/components/container/container.a11y.ts +0 -5
  155. package/src/components/container/container.tsx +18 -128
  156. package/src/components/container/container.types.ts +3 -32
  157. package/src/components/container/index.ts +1 -8
  158. package/src/components/empty-state/empty-state.tsx +17 -35
  159. package/src/components/empty-state/empty-state.types.ts +3 -5
  160. package/src/components/field/field.tsx +3 -1
  161. package/src/components/field/field.types.ts +1 -0
  162. package/src/components/footer/footer.tsx +88 -0
  163. package/src/components/footer/footer.types.ts +40 -0
  164. package/src/components/footer/index.ts +10 -0
  165. package/src/components/grid/grid.tsx +113 -0
  166. package/src/components/grid/grid.types.ts +20 -0
  167. package/src/components/grid/index.ts +2 -0
  168. package/src/components/header/header.tsx +10 -7
  169. package/src/components/header/header.types.ts +4 -4
  170. package/src/components/header/index.ts +1 -2
  171. package/src/components/main/index.ts +2 -0
  172. package/src/components/main/main.tsx +12 -0
  173. package/src/components/main/main.types.ts +3 -0
  174. package/src/components/nav/index.ts +7 -9
  175. package/src/components/nav/nav.tsx +153 -110
  176. package/src/components/nav/nav.types.ts +26 -27
  177. package/src/components/navbar/index.ts +4 -11
  178. package/src/components/navbar/navbar.tsx +103 -265
  179. package/src/components/navbar/navbar.types.ts +16 -42
  180. package/src/components/page/index.ts +2 -0
  181. package/src/components/page/page.tsx +17 -0
  182. package/src/components/page/page.types.ts +3 -0
  183. package/src/components/page-header/index.ts +2 -0
  184. package/src/components/page-header/page-header.tsx +29 -0
  185. package/src/components/page-header/page-header.types.ts +7 -0
  186. package/src/components/section/index.ts +1 -7
  187. package/src/components/section/section.a11y.ts +0 -1
  188. package/src/components/section/section.tsx +9 -35
  189. package/src/components/section/section.types.ts +2 -22
  190. package/src/components/separator/index.ts +4 -9
  191. package/src/components/sidebar/index.ts +27 -5
  192. package/src/components/sidebar/sidebar.tsx +146 -336
  193. package/src/components/sidebar/sidebar.types.ts +21 -28
  194. package/src/components/skeleton/index.ts +1 -2
  195. package/src/components/skeleton/skeleton.tsx +33 -1
  196. package/src/components/skeleton/skeleton.types.ts +2 -0
  197. package/src/components/spinner/index.ts +1 -1
  198. package/src/components/spinner/spinner.tsx +7 -2
  199. package/src/components/spinner/spinner.types.ts +3 -0
  200. package/src/components/stat/index.ts +2 -0
  201. package/src/components/stat/stat.tsx +47 -0
  202. package/src/components/stat/stat.types.ts +24 -0
  203. package/src/components/text/index.ts +2 -0
  204. package/src/components/text/text.tsx +39 -0
  205. package/src/components/text/text.types.ts +35 -0
  206. package/src/components/theme/theme.tsx +83 -9
  207. package/src/components/toolbar/index.ts +2 -0
  208. package/src/components/toolbar/toolbar.tsx +24 -0
  209. package/src/components/toolbar/toolbar.types.ts +6 -0
  210. package/src/components.ts +289 -0
  211. package/src/controls.ts +69 -2
  212. package/src/core.ts +42 -0
  213. package/src/navs.ts +9 -24
  214. package/src/overlays.ts +101 -59
  215. package/src/parity.ts +125 -0
  216. package/src/surfaces.ts +60 -13
  217. package/src/themes/default/index.css +11 -14
  218. package/src/themes/default/styles/actions/button-group.css +6 -6
  219. package/src/themes/default/styles/actions/button.css +98 -60
  220. package/src/themes/default/styles/actions/toggle-group.css +61 -25
  221. package/src/themes/default/styles/base/text.css +87 -0
  222. package/src/themes/default/styles/base/typography.css +24 -117
  223. package/src/themes/default/styles/base/utilities.css +0 -250
  224. package/src/themes/default/styles/disclosure/accordion.css +35 -28
  225. package/src/themes/default/styles/display/alert.css +7 -7
  226. package/src/themes/default/styles/display/badge.css +8 -9
  227. package/src/themes/default/styles/display/card.css +10 -47
  228. package/src/themes/default/styles/display/catalog.css +753 -0
  229. package/src/themes/default/styles/display/coverage.css +30 -305
  230. package/src/themes/default/styles/display/progress-circle.css +2 -0
  231. package/src/themes/default/styles/display/scroll-area.css +29 -24
  232. package/src/themes/default/styles/display/spinner.css +38 -1
  233. package/src/themes/default/styles/display/stat.css +21 -0
  234. package/src/themes/default/styles/display/table.css +37 -12
  235. package/src/themes/default/styles/display/virtual-list.css +24 -13
  236. package/src/themes/default/styles/display/virtual-table.css +58 -36
  237. package/src/themes/default/styles/forms/checkbox.css +12 -21
  238. package/src/themes/default/styles/forms/input-group.css +2 -1
  239. package/src/themes/default/styles/forms/input.css +11 -12
  240. package/src/themes/default/styles/forms/radio-group.css +44 -27
  241. package/src/themes/default/styles/forms/select.css +27 -35
  242. package/src/themes/default/styles/forms/slider.css +61 -47
  243. package/src/themes/default/styles/forms/switch.css +18 -23
  244. package/src/themes/default/styles/forms/textarea.css +12 -12
  245. package/src/themes/default/styles/layout/block.css +96 -12
  246. package/src/themes/default/styles/layout/grid.css +78 -0
  247. package/src/themes/default/styles/layout/layout.css +502 -772
  248. package/src/themes/default/styles/layout/patterns.css +0 -155
  249. package/src/themes/default/styles/navigation/nav.css +104 -154
  250. package/src/themes/default/styles/overlays/alert-dialog.css +2 -2
  251. package/src/themes/default/styles/overlays/dialog.css +76 -22
  252. package/src/themes/default/styles/overlays/dropdown.css +108 -31
  253. package/src/themes/default/styles/overlays/hover-card.css +39 -17
  254. package/src/themes/default/styles/overlays/menubar.css +223 -0
  255. package/src/themes/default/styles/overlays/popover.css +69 -23
  256. package/src/themes/default/styles/overlays/toast.css +91 -33
  257. package/src/themes/default/styles/overlays/tooltip.css +88 -14
  258. package/src/themes/default/styles/shell/brand.css +48 -0
  259. package/src/themes/default/styles/shell/footer.css +72 -0
  260. package/src/themes/default/styles/shell/header.css +7 -50
  261. package/src/themes/default/styles/shell/navbar.css +226 -454
  262. package/src/themes/default/styles/shell/sidebar.css +243 -829
  263. package/src/themes/default/tokens.css +145 -98
  264. package/templates/theme/index.css +11 -14
  265. package/templates/theme/styles/actions/button-group.css +6 -6
  266. package/templates/theme/styles/actions/button.css +98 -60
  267. package/templates/theme/styles/actions/toggle-group.css +61 -25
  268. package/templates/theme/styles/base/text.css +87 -0
  269. package/templates/theme/styles/base/typography.css +24 -117
  270. package/templates/theme/styles/disclosure/accordion.css +35 -28
  271. package/templates/theme/styles/display/alert.css +7 -7
  272. package/templates/theme/styles/display/badge.css +8 -9
  273. package/templates/theme/styles/display/card.css +10 -47
  274. package/templates/theme/styles/display/catalog.css +753 -0
  275. package/templates/theme/styles/display/coverage.css +30 -305
  276. package/templates/theme/styles/display/scroll-area.css +29 -24
  277. package/templates/theme/styles/display/spinner.css +38 -1
  278. package/templates/theme/styles/display/stat.css +21 -0
  279. package/templates/theme/styles/display/table.css +37 -12
  280. package/templates/theme/styles/display/virtual-list.css +24 -13
  281. package/templates/theme/styles/display/virtual-table.css +58 -36
  282. package/templates/theme/styles/forms/checkbox.css +12 -21
  283. package/templates/theme/styles/forms/input.css +11 -12
  284. package/templates/theme/styles/forms/radio-group.css +44 -27
  285. package/templates/theme/styles/forms/select.css +27 -35
  286. package/templates/theme/styles/forms/slider.css +61 -47
  287. package/templates/theme/styles/forms/switch.css +18 -23
  288. package/templates/theme/styles/forms/textarea.css +12 -12
  289. package/templates/theme/styles/layout/block.css +96 -12
  290. package/templates/theme/styles/layout/grid.css +78 -0
  291. package/templates/theme/styles/layout/layout.css +676 -1
  292. package/templates/theme/styles/layout/patterns.css +0 -155
  293. package/templates/theme/styles/navigation/nav.css +104 -154
  294. package/templates/theme/styles/overlays/alert-dialog.css +2 -2
  295. package/templates/theme/styles/overlays/dialog.css +76 -22
  296. package/templates/theme/styles/overlays/dropdown.css +108 -31
  297. package/templates/theme/styles/overlays/hover-card.css +39 -17
  298. package/templates/theme/styles/overlays/menubar.css +223 -0
  299. package/templates/theme/styles/overlays/popover.css +69 -23
  300. package/templates/theme/styles/overlays/toast.css +80 -33
  301. package/templates/theme/styles/overlays/tooltip.css +88 -14
  302. package/templates/theme/styles/shell/brand.css +48 -0
  303. package/templates/theme/styles/shell/footer.css +72 -0
  304. package/templates/theme/styles/shell/header.css +7 -50
  305. package/templates/theme/styles/shell/navbar.css +226 -454
  306. package/templates/theme/styles/shell/sidebar.css +197 -779
  307. package/templates/theme/tokens.css +145 -98
  308. package/dist/components/_internal/box-layout.js +0 -116
  309. package/dist/components/_internal/box-layout.js.map +0 -1
  310. package/dist/components/_internal/layout.d.ts +0 -9
  311. package/dist/components/_internal/layout.js +0 -142
  312. package/dist/components/_internal/layout.js.map +0 -1
  313. package/dist/components/badge/badge.a11y.d.ts +0 -17
  314. package/dist/components/block/block.a11y.d.ts +0 -20
  315. package/dist/components/box/box.a11y.d.ts +0 -14
  316. package/dist/components/box/box.d.ts +0 -9
  317. package/dist/components/box/box.js +0 -36
  318. package/dist/components/box/box.js.map +0 -1
  319. package/dist/components/box/box.types.d.ts +0 -72
  320. package/dist/components/box/index.d.ts +0 -3
  321. package/dist/components/breadcrumb/breadcrumb.a11y.d.ts +0 -17
  322. package/dist/components/breadcrumb/breadcrumb.a11y.js +0 -15
  323. package/dist/components/breadcrumb/breadcrumb.a11y.js.map +0 -1
  324. package/dist/components/breadcrumb/breadcrumb.d.ts +0 -18
  325. package/dist/components/breadcrumb/breadcrumb.js +0 -113
  326. package/dist/components/breadcrumb/breadcrumb.js.map +0 -1
  327. package/dist/components/breadcrumb/breadcrumb.types.d.ts +0 -65
  328. package/dist/components/breadcrumb/index.d.ts +0 -3
  329. package/dist/components/container/container.a11y.d.ts +0 -19
  330. package/dist/components/flex/flex.a11y.d.ts +0 -22
  331. package/dist/components/flex/flex.d.ts +0 -9
  332. package/dist/components/flex/flex.js +0 -115
  333. package/dist/components/flex/flex.js.map +0 -1
  334. package/dist/components/flex/flex.types.d.ts +0 -42
  335. package/dist/components/flex/index.d.ts +0 -3
  336. package/dist/components/header/header.a11y.d.ts +0 -14
  337. package/dist/components/header/header.a11y.js +0 -12
  338. package/dist/components/header/header.a11y.js.map +0 -1
  339. package/dist/components/inline/index.d.ts +0 -8
  340. package/dist/components/inline/index.js +0 -13
  341. package/dist/components/inline/index.js.map +0 -1
  342. package/dist/components/list-group/index.d.ts +0 -2
  343. package/dist/components/list-group/list-group.d.ts +0 -9
  344. package/dist/components/list-group/list-group.js +0 -43
  345. package/dist/components/list-group/list-group.js.map +0 -1
  346. package/dist/components/list-group/list-group.types.d.ts +0 -32
  347. package/dist/components/navbar/navbar-panel.js +0 -42
  348. package/dist/components/navbar/navbar-panel.js.map +0 -1
  349. package/dist/components/navbar/navbar.context.js +0 -13
  350. package/dist/components/navbar/navbar.context.js.map +0 -1
  351. package/dist/components/navbar/navbar.render.js +0 -26
  352. package/dist/components/navbar/navbar.render.js.map +0 -1
  353. package/dist/components/navbar/navbar.shared.js +0 -18
  354. package/dist/components/navbar/navbar.shared.js.map +0 -1
  355. package/dist/components/pagination/index.d.ts +0 -2
  356. package/dist/components/pagination/pagination.d.ts +0 -11
  357. package/dist/components/pagination/pagination.js +0 -95
  358. package/dist/components/pagination/pagination.js.map +0 -1
  359. package/dist/components/pagination/pagination.types.d.ts +0 -40
  360. package/dist/components/section/section.a11y.d.ts +0 -15
  361. package/dist/components/separator/separator.a11y.d.ts +0 -17
  362. package/dist/components/separator/separator.a11y.js +0 -15
  363. package/dist/components/separator/separator.a11y.js.map +0 -1
  364. package/dist/components/shell/index.d.ts +0 -3
  365. package/dist/components/shell/shell-nav.types.d.ts +0 -7
  366. package/dist/components/shell/shell-panel.js +0 -54
  367. package/dist/components/shell/shell-panel.js.map +0 -1
  368. package/dist/components/shell/shell-responsive.js +0 -141
  369. package/dist/components/shell/shell-responsive.js.map +0 -1
  370. package/dist/components/shell/shell.a11y.d.ts +0 -23
  371. package/dist/components/shell/shell.a11y.js +0 -23
  372. package/dist/components/shell/shell.a11y.js.map +0 -1
  373. package/dist/components/shell/shell.d.ts +0 -13
  374. package/dist/components/shell/shell.js +0 -69
  375. package/dist/components/shell/shell.js.map +0 -1
  376. package/dist/components/shell/shell.types.d.ts +0 -58
  377. package/dist/components/sidebar/sidebar-panel.d.ts +0 -7
  378. package/dist/components/sidebar/sidebar-panel.js +0 -49
  379. package/dist/components/sidebar/sidebar-panel.js.map +0 -1
  380. package/dist/components/sidebar/sidebar-toggle.d.ts +0 -7
  381. package/dist/components/sidebar/sidebar-toggle.js +0 -8
  382. package/dist/components/sidebar/sidebar-toggle.js.map +0 -1
  383. package/dist/components/sidebar/sidebar.context.js +0 -21
  384. package/dist/components/sidebar/sidebar.context.js.map +0 -1
  385. package/dist/components/sidebar/sidebar.shared.js +0 -12
  386. package/dist/components/sidebar/sidebar.shared.js.map +0 -1
  387. package/dist/components/skeleton/skeleton.a11y.d.ts +0 -16
  388. package/dist/components/spacer/index.d.ts +0 -3
  389. package/dist/components/spacer/spacer.a11y.d.ts +0 -17
  390. package/dist/components/spacer/spacer.d.ts +0 -8
  391. package/dist/components/spacer/spacer.js +0 -49
  392. package/dist/components/spacer/spacer.js.map +0 -1
  393. package/dist/components/spacer/spacer.types.d.ts +0 -26
  394. package/dist/components/stack/index.d.ts +0 -3
  395. package/dist/components/stack/stack.a11y.d.ts +0 -18
  396. package/dist/components/stack/stack.d.ts +0 -8
  397. package/dist/components/stack/stack.js +0 -16
  398. package/dist/components/stack/stack.js.map +0 -1
  399. package/dist/components/stack/stack.types.d.ts +0 -22
  400. package/dist/feedback.d.ts +0 -5
  401. package/dist/feedback.js +0 -4
  402. package/dist/layouts.d.ts +0 -25
  403. package/dist/layouts.js +0 -11
  404. package/dist/shells.d.ts +0 -16
  405. package/dist/shells.js +0 -11
  406. package/src/components/_internal/box-layout.ts +0 -164
  407. package/src/components/_internal/layout.ts +0 -202
  408. package/src/components/box/box.a11y.ts +0 -11
  409. package/src/components/box/box.tsx +0 -38
  410. package/src/components/box/box.types.ts +0 -76
  411. package/src/components/box/index.ts +0 -11
  412. package/src/components/breadcrumb/breadcrumb.a11y.ts +0 -15
  413. package/src/components/breadcrumb/breadcrumb.tsx +0 -123
  414. package/src/components/breadcrumb/breadcrumb.types.ts +0 -74
  415. package/src/components/breadcrumb/index.ts +0 -24
  416. package/src/components/flex/flex.a11y.ts +0 -19
  417. package/src/components/flex/flex.tsx +0 -162
  418. package/src/components/flex/flex.types.ts +0 -51
  419. package/src/components/flex/index.ts +0 -16
  420. package/src/components/inline/index.tsx +0 -28
  421. package/src/components/list-group/index.ts +0 -7
  422. package/src/components/list-group/list-group.tsx +0 -74
  423. package/src/components/list-group/list-group.types.ts +0 -32
  424. package/src/components/navbar/navbar-panel.tsx +0 -62
  425. package/src/components/navbar/navbar.context.ts +0 -22
  426. package/src/components/navbar/navbar.render.tsx +0 -32
  427. package/src/components/navbar/navbar.shared.ts +0 -21
  428. package/src/components/pagination/index.ts +0 -8
  429. package/src/components/pagination/pagination.tsx +0 -158
  430. package/src/components/pagination/pagination.types.ts +0 -41
  431. package/src/components/shell/index.ts +0 -16
  432. package/src/components/shell/shell-nav.types.ts +0 -3
  433. package/src/components/shell/shell-panel.tsx +0 -85
  434. package/src/components/shell/shell-responsive.tsx +0 -262
  435. package/src/components/shell/shell.a11y.ts +0 -20
  436. package/src/components/shell/shell.tsx +0 -74
  437. package/src/components/shell/shell.types.ts +0 -71
  438. package/src/components/sidebar/sidebar-panel.tsx +0 -67
  439. package/src/components/sidebar/sidebar-toggle.tsx +0 -5
  440. package/src/components/sidebar/sidebar.context.ts +0 -40
  441. package/src/components/sidebar/sidebar.shared.ts +0 -12
  442. package/src/components/spacer/index.ts +0 -9
  443. package/src/components/spacer/spacer.a11y.ts +0 -14
  444. package/src/components/spacer/spacer.tsx +0 -61
  445. package/src/components/spacer/spacer.types.ts +0 -31
  446. package/src/components/stack/index.ts +0 -3
  447. package/src/components/stack/stack.a11y.ts +0 -15
  448. package/src/components/stack/stack.tsx +0 -13
  449. package/src/components/stack/stack.types.ts +0 -22
  450. package/src/feedback.ts +0 -6
  451. package/src/layouts.ts +0 -19
  452. package/src/shells.ts +0 -13
  453. package/src/themes/default/styles/actions/toggle.css +0 -50
  454. package/src/themes/default/styles/disclosure/collapsible.css +0 -58
  455. package/src/themes/default/styles/display/list-group.css +0 -84
  456. package/src/themes/default/styles/forms/form.css +0 -5
  457. package/src/themes/default/styles/layout/responsive-layout.css +0 -230
  458. package/src/themes/default/styles/navigation/breadcrumb.css +0 -45
  459. package/src/themes/default/styles/navigation/menu.css +0 -203
  460. package/src/themes/default/styles/navigation/menubar.css +0 -255
  461. package/src/themes/default/styles/navigation/pagination.css +0 -91
  462. package/src/themes/default/styles/shell/theme.css +0 -37
  463. package/templates/theme/styles/actions/toggle.css +0 -50
  464. package/templates/theme/styles/disclosure/collapsible.css +0 -58
  465. package/templates/theme/styles/display/list-group.css +0 -84
  466. package/templates/theme/styles/forms/form.css +0 -5
  467. package/templates/theme/styles/layout/responsive-layout.css +0 -230
  468. package/templates/theme/styles/navigation/breadcrumb.css +0 -45
  469. package/templates/theme/styles/navigation/menu.css +0 -203
  470. package/templates/theme/styles/navigation/menubar.css +0 -255
  471. package/templates/theme/styles/navigation/pagination.css +0 -91
  472. package/templates/theme/styles/shell/theme.css +0 -37
@@ -17,7 +17,6 @@ export function Alert(props: AlertProps): JSX.Element {
17
17
  class: className,
18
18
  description,
19
19
  dismissLabel = "Dismiss alert",
20
- dismissible = false,
21
20
  icon,
22
21
  onDismiss,
23
22
  ref,
@@ -27,7 +26,7 @@ export function Alert(props: AlertProps): JSX.Element {
27
26
  role,
28
27
  ...rest
29
28
  } = props;
30
- const shouldRenderDismiss = dismissible && onDismiss !== undefined;
29
+ const shouldRenderDismiss = onDismiss !== undefined;
31
30
  const resolvedRole = role ?? resolveAlertRole(variant);
32
31
  const hasVariant = variant !== "default";
33
32
 
@@ -10,7 +10,6 @@ export type AlertProps = DivProps & {
10
10
  children?: unknown;
11
11
  description?: unknown;
12
12
  dismissLabel?: string;
13
- dismissible?: boolean;
14
13
  icon?: unknown;
15
14
  onDismiss?: () => void;
16
15
  title?: unknown;
@@ -0,0 +1,12 @@
1
+ import { Block } from "../block";
2
+ import type { AsideProps } from "./aside.types";
3
+
4
+ export function Aside(props: AsideProps): JSX.Element {
5
+ const { children, ...rest } = props;
6
+
7
+ return (
8
+ <Block as="aside" {...rest} data-slot="aside">
9
+ {children}
10
+ </Block>
11
+ );
12
+ }
@@ -0,0 +1,3 @@
1
+ import type { BlockElementProps } from "../block";
2
+
3
+ export type AsideProps = Omit<BlockElementProps<"aside">, "as">;
@@ -0,0 +1,2 @@
1
+ export { Aside } from "./aside";
2
+ export type { AsideProps } from "./aside.types";
@@ -1,6 +1,6 @@
1
1
  import { Slot } from "@askrjs/askr/foundations";
2
2
  import { mergeProps } from "../_internal/merge-props";
3
- import { mergeLayoutStyles } from "../_internal/layout";
3
+ import { mergeLayoutStyles } from "../_internal/block-layout";
4
4
  import { styleDeclarationsToClass } from "../_internal/style";
5
5
  import type { AspectRatioAsChildProps, AspectRatioProps } from "./aspect-ratio.types";
6
6
 
@@ -1,3 +1,2 @@
1
1
  export { Badge } from "./badge";
2
- export { BADGE_A11Y_CONTRACT, type BadgeA11yContract } from "./badge.a11y";
3
2
  export type { BadgeOwnProps, BadgeProps, BadgeAsChildProps } from "./badge.types";
@@ -2,12 +2,6 @@ export const BLOCK_A11Y_CONTRACT = {
2
2
  DATA_ATTRIBUTES: {
3
3
  slot: "data-slot" as const,
4
4
  layout: "data-ak-layout" as const,
5
- gap: "data-gap" as const,
6
- gapX: "data-gap-x" as const,
7
- gapY: "data-gap-y" as const,
8
- align: "data-align" as const,
9
- justify: "data-justify" as const,
10
- size: "data-size" as const,
11
5
  },
12
6
  SLOT_VALUES: {
13
7
  root: "block" as const,
@@ -1,71 +1,55 @@
1
1
  import { Slot } from "@askrjs/askr/foundations";
2
+ import { classes } from "../_internal/classes";
3
+ import {
4
+ applyBlockLayoutStyles,
5
+ mergeLayoutStyles,
6
+ splitBlockLayoutProps,
7
+ } from "../_internal/block-layout";
2
8
  import { mergeProps } from "../_internal/merge-props";
3
- import { serializeResponsiveValueIf } from "../_internal/layout";
4
- import type { BlockAsChildProps, BlockDivProps, BlockSpanProps } from "./block.types";
9
+ import { styleDeclarationsToClass } from "../_internal/style";
10
+ import type { BlockAsChildProps, BlockNativeProps } from "./block.types";
5
11
 
6
- const SPACE_TOKENS = new Set([
7
- "1",
8
- "2",
9
- "3",
10
- "4",
11
- "5",
12
- "6",
13
- "7",
14
- "8",
15
- "9",
16
- "xs",
17
- "sm",
18
- "md",
19
- "lg",
20
- "xl",
21
- "2xl",
22
- "3xl",
23
- ]);
12
+ const DEFAULT_ELEMENT = "div";
24
13
 
25
- export function Block(props: BlockDivProps): JSX.Element;
26
- export function Block(props: BlockSpanProps): JSX.Element;
14
+ export function Block(props: BlockNativeProps): JSX.Element;
27
15
  export function Block(props: BlockAsChildProps): JSX.Element;
28
- export function Block(props: BlockDivProps | BlockSpanProps | BlockAsChildProps) {
29
- const as = "as" in props ? props.as : "div";
30
- const { asChild, children, gap, gapX, gapY, align, justify, size = "md", ref, ...rest } = props;
16
+ export function Block(props: BlockNativeProps | BlockAsChildProps) {
17
+ const as = "as" in props ? props.as : DEFAULT_ELEMENT;
18
+ const {
19
+ asChild,
20
+ children,
21
+ ref,
22
+ class: classProp,
23
+ className,
24
+ style: userStyle,
25
+ ...rest
26
+ } = props as (BlockNativeProps | BlockAsChildProps) & {
27
+ class?: unknown;
28
+ className?: unknown;
29
+ style?: unknown;
30
+ };
31
+
32
+ const { blockProps, rest: passthroughProps } = splitBlockLayoutProps(rest);
33
+ const layoutStyle: Record<string, string | number> = {};
34
+ applyBlockLayoutStyles(layoutStyle, blockProps);
35
+
36
+ const layoutClass = styleDeclarationsToClass(mergeLayoutStyles(layoutStyle, userStyle));
37
+ const slot =
38
+ typeof (passthroughProps as Record<string, unknown>)["data-slot"] === "string"
39
+ ? String((passthroughProps as Record<string, unknown>)["data-slot"])
40
+ : "block";
31
41
 
32
- const finalProps = mergeProps(rest, {
42
+ const finalProps = mergeProps(passthroughProps, {
33
43
  ref,
34
- "data-slot": "block",
44
+ class: classes(classProp, className, layoutClass),
45
+ "data-slot": slot,
35
46
  "data-ak-layout": "true",
36
- "data-gap": serializeResponsiveValueIf(
37
- gap,
38
- (value) => typeof value === "string" && SPACE_TOKENS.has(value.trim()),
39
- ),
40
- "data-gap-x": serializeResponsiveValueIf(
41
- gapX,
42
- (value) => typeof value === "string" && SPACE_TOKENS.has(value.trim()),
43
- ),
44
- "data-gap-y": serializeResponsiveValueIf(
45
- gapY,
46
- (value) => typeof value === "string" && SPACE_TOKENS.has(value.trim()),
47
- ),
48
- "data-align": serializeResponsiveValueIf(
49
- align,
50
- (value) =>
51
- typeof value === "string" &&
52
- ["start", "end", "center", "stretch", "baseline"].includes(value.trim()),
53
- ),
54
- "data-justify": serializeResponsiveValueIf(
55
- justify,
56
- (value) =>
57
- typeof value === "string" && ["start", "end", "center", "between"].includes(value.trim()),
58
- ),
59
- "data-size": `initial:${size}`,
60
47
  });
61
48
 
62
49
  if (asChild) {
63
50
  return <Slot asChild {...finalProps} children={children as JSX.Element} />;
64
51
  }
65
52
 
66
- if (as === "span") {
67
- return <span {...finalProps}>{children}</span>;
68
- }
69
-
70
- return <div {...finalProps}>{children}</div>;
53
+ const Element = (as ?? DEFAULT_ELEMENT) as keyof JSX.IntrinsicElements;
54
+ return <Element {...finalProps}>{children}</Element>;
71
55
  }
@@ -1,54 +1,71 @@
1
1
  import type { JSXElement } from "@askrjs/askr/foundations";
2
2
  import type { Ref } from "@askrjs/askr/foundations/utilities";
3
+ import type {
4
+ BlockAlign,
5
+ BlockBackground,
6
+ BlockDirection,
7
+ BlockJustify,
8
+ BlockLayoutProps,
9
+ BlockMargin,
10
+ BlockRadius,
11
+ BlockRowFrom,
12
+ BlockShadow,
13
+ BlockSize,
14
+ BlockSpace,
15
+ BlockZIndex,
16
+ ResponsiveValue,
17
+ } from "../_internal/block-layout";
3
18
 
4
- export type BlockSize = "xs" | "sm" | "md" | "lg" | "xl";
5
-
6
- export type BlockSpace =
7
- | "1"
8
- | "2"
9
- | "3"
10
- | "4"
11
- | "5"
12
- | "6"
13
- | "7"
14
- | "8"
15
- | "9"
16
- | "xs"
17
- | "sm"
18
- | "md"
19
- | "lg"
20
- | "xl"
21
- | "2xl"
22
- | "3xl";
23
-
24
- export type BlockAlign = "start" | "end" | "center" | "stretch" | "baseline";
19
+ export type {
20
+ BlockAlign,
21
+ BlockBackground,
22
+ BlockDirection,
23
+ BlockJustify,
24
+ BlockMargin,
25
+ BlockRadius,
26
+ BlockRowFrom,
27
+ BlockShadow,
28
+ BlockSize,
29
+ BlockSpace,
30
+ BlockZIndex,
31
+ ResponsiveValue as BlockResponsiveValue,
32
+ };
25
33
 
26
- export type BlockJustify = "start" | "end" | "center" | "between";
34
+ export type BlockElement =
35
+ | "div"
36
+ | "span"
37
+ | "main"
38
+ | "header"
39
+ | "footer"
40
+ | "section"
41
+ | "aside"
42
+ | "nav"
43
+ | "a"
44
+ | "ul"
45
+ | "ol"
46
+ | "li"
47
+ | "form"
48
+ | "article";
27
49
 
28
- export type BlockOwnProps = {
29
- gap?: BlockSpace;
30
- gapX?: BlockSpace;
31
- gapY?: BlockSpace;
32
- align?: BlockAlign;
33
- justify?: BlockJustify;
34
- size?: BlockSize;
35
- as?: "div" | "span";
50
+ export type BlockOwnProps = BlockLayoutProps & {
51
+ as?: BlockElement;
36
52
  children?: unknown;
53
+ className?: string;
37
54
  };
38
55
 
39
- export type BlockNativeProps = Omit<JSX.IntrinsicElements["div"], "children" | "ref"> &
56
+ export type BlockElementProps<TElement extends BlockElement> = Omit<
57
+ JSX.IntrinsicElements[TElement],
58
+ "children" | "ref"
59
+ > &
40
60
  BlockOwnProps & {
41
- as?: "div";
61
+ as?: TElement;
42
62
  asChild?: false;
43
- ref?: Ref<HTMLDivElement>;
63
+ ref?: Ref<unknown>;
44
64
  };
45
65
 
46
- export type BlockSpanProps = Omit<JSX.IntrinsicElements["span"], "children" | "ref"> &
47
- BlockOwnProps & {
48
- as: "span";
49
- asChild?: false;
50
- ref?: Ref<HTMLSpanElement>;
51
- };
66
+ export type BlockNativeProps = {
67
+ [TElement in BlockElement]: BlockElementProps<TElement>;
68
+ }[BlockElement];
52
69
 
53
70
  export type BlockAsChildProps = Omit<BlockOwnProps, "as"> & {
54
71
  asChild: true;
@@ -56,5 +73,6 @@ export type BlockAsChildProps = Omit<BlockOwnProps, "as"> & {
56
73
  ref?: Ref<unknown>;
57
74
  };
58
75
 
59
- export type BlockDivProps = BlockNativeProps;
60
- export type BlockProps = BlockDivProps | BlockSpanProps | BlockAsChildProps;
76
+ export type BlockDivProps = BlockElementProps<"div">;
77
+ export type BlockSpanProps = BlockElementProps<"span">;
78
+ export type BlockProps = BlockNativeProps | BlockAsChildProps;
@@ -1,11 +1,2 @@
1
1
  export { Block } from "./block";
2
- export { BLOCK_A11Y_CONTRACT, type BlockA11yContract } from "./block.a11y";
3
- export type {
4
- BlockAsChildProps,
5
- BlockDivProps,
6
- BlockNativeProps,
7
- BlockOwnProps,
8
- BlockProps,
9
- BlockSize,
10
- BlockSpanProps,
11
- } from "./block.types";
2
+ export type * from "./block.types";
@@ -0,0 +1,61 @@
1
+ import { Slot } from "@askrjs/askr/foundations";
2
+ import { classes } from "../_internal/classes";
3
+ import { mergeProps } from "../_internal/merge-props";
4
+ import type {
5
+ BrandAsChildProps,
6
+ BrandLabelProps,
7
+ BrandMarkProps,
8
+ BrandNativeProps,
9
+ BrandProps,
10
+ } from "./brand.types";
11
+
12
+ const DEFAULT_ELEMENT = "div";
13
+
14
+ export function Brand<TElement extends "div" | "a" | "span" = "div">(
15
+ props: BrandProps<TElement>,
16
+ ): JSX.Element {
17
+ const {
18
+ as,
19
+ asChild,
20
+ children,
21
+ class: classProp,
22
+ className,
23
+ ref,
24
+ ...rest
25
+ } = props as BrandNativeProps | BrandAsChildProps;
26
+
27
+ const finalProps = mergeProps(rest, {
28
+ ref,
29
+ class: classes("brand", classProp, className),
30
+ "data-slot": "brand",
31
+ });
32
+
33
+ if (asChild) {
34
+ return <Slot asChild {...finalProps} children={children as JSX.Element} />;
35
+ }
36
+
37
+ const Element = (as ?? DEFAULT_ELEMENT) as keyof JSX.IntrinsicElements;
38
+ return <Element {...finalProps}>{children}</Element>;
39
+ }
40
+
41
+ export function BrandMark(props: BrandMarkProps): JSX.Element {
42
+ const { children, class: className, ref, ...rest } = props;
43
+ const finalProps = mergeProps(rest, {
44
+ ref,
45
+ class: classes("brand-mark", className),
46
+ "data-slot": "brand-mark",
47
+ });
48
+
49
+ return <span {...finalProps}>{children}</span>;
50
+ }
51
+
52
+ export function BrandLabel(props: BrandLabelProps): JSX.Element {
53
+ const { children, class: className, ref, ...rest } = props;
54
+ const finalProps = mergeProps(rest, {
55
+ ref,
56
+ class: classes("brand-label", className),
57
+ "data-slot": "brand-label",
58
+ });
59
+
60
+ return <span {...finalProps}>{children}</span>;
61
+ }
@@ -0,0 +1,39 @@
1
+ import type { Ref } from "@askrjs/askr/foundations/utilities";
2
+
3
+ export type BrandElement = "div" | "a" | "span";
4
+
5
+ type BrandIntrinsicProps<TElement extends BrandElement> = Omit<
6
+ JSX.IntrinsicElements[TElement],
7
+ "children" | "ref"
8
+ >;
9
+ type SpanProps = Omit<JSX.IntrinsicElements["span"], "children" | "ref">;
10
+
11
+ export type BrandNativeProps<TElement extends BrandElement = "div"> =
12
+ BrandIntrinsicProps<TElement> & {
13
+ as?: TElement;
14
+ asChild?: false;
15
+ children?: unknown;
16
+ ref?: Ref<HTMLElement>;
17
+ };
18
+
19
+ export type BrandAsChildProps = {
20
+ asChild: true;
21
+ children: JSX.Element;
22
+ class?: string;
23
+ className?: string;
24
+ ref?: Ref<HTMLElement>;
25
+ };
26
+
27
+ export type BrandProps<TElement extends BrandElement = "div"> =
28
+ | BrandNativeProps<TElement>
29
+ | BrandAsChildProps;
30
+
31
+ export type BrandMarkProps = SpanProps & {
32
+ children?: unknown;
33
+ ref?: Ref<HTMLSpanElement>;
34
+ };
35
+
36
+ export type BrandLabelProps = SpanProps & {
37
+ children?: unknown;
38
+ ref?: Ref<HTMLSpanElement>;
39
+ };
@@ -0,0 +1,2 @@
1
+ export { Brand, BrandLabel, BrandMark } from "./brand";
2
+ export type * from "./brand.types";
@@ -1,39 +1,27 @@
1
1
  import { classes } from "../_internal/classes";
2
2
  import { mergeProps } from "../_internal/merge-props";
3
3
  import type {
4
- CardActionsProps,
4
+ CardActionProps,
5
5
  CardContentProps,
6
6
  CardDescriptionProps,
7
7
  CardFooterProps,
8
8
  CardHeaderProps,
9
- CardPadding,
10
9
  CardProps,
11
10
  CardTitleProps,
12
11
  CardVariant,
13
12
  } from "./card.types";
14
13
 
15
- function normalizePadding(padding: CardPadding | undefined) {
16
- return padding && padding !== "md" ? padding : undefined;
17
- }
18
-
19
14
  function normalizeVariant(variant: CardVariant | undefined) {
20
15
  return variant && variant !== "default" ? variant : undefined;
21
16
  }
22
17
 
23
18
  export function Card(props: CardProps): JSX.Element {
24
- const { children, class: className, variant, padding = "md", ref, ...rest } = props;
19
+ const { children, class: className, variant, ref, ...rest } = props;
25
20
  const normalizedVariant = normalizeVariant(variant);
26
- const normalizedPadding = normalizePadding(padding);
27
21
 
28
22
  const finalProps = mergeProps(rest, {
29
23
  ref,
30
- class: classes(
31
- "card",
32
- normalizedVariant && `card-${normalizedVariant}`,
33
- normalizedPadding && `card-${normalizedPadding}`,
34
- className,
35
- ),
36
- "data-padding": normalizedPadding,
24
+ class: classes("card", normalizedVariant && `card-${normalizedVariant}`, className),
37
25
  "data-slot": "card",
38
26
  "data-variant": normalizedVariant,
39
27
  });
@@ -96,12 +84,12 @@ export function CardFooter(props: CardFooterProps): JSX.Element {
96
84
  return <div {...finalProps}>{children}</div>;
97
85
  }
98
86
 
99
- export function CardActions(props: CardActionsProps): JSX.Element {
87
+ export function CardAction(props: CardActionProps): JSX.Element {
100
88
  const { children, class: className, ref, ...rest } = props;
101
89
  const finalProps = mergeProps(rest, {
102
90
  ref,
103
- class: classes("card-actions", className),
104
- "data-slot": "card-actions",
91
+ class: classes("card-action", className),
92
+ "data-slot": "card-action",
105
93
  });
106
94
 
107
95
  return <div {...finalProps}>{children}</div>;
@@ -1,7 +1,6 @@
1
1
  import type { Ref } from "@askrjs/askr/foundations/utilities";
2
2
 
3
3
  export type CardVariant = "default" | "raised";
4
- export type CardPadding = "sm" | "md" | "lg";
5
4
 
6
5
  type DivProps = Omit<JSX.IntrinsicElements["div"], "children" | "ref">;
7
6
  type HeadingProps = Omit<JSX.IntrinsicElements["h3"], "children" | "ref">;
@@ -10,7 +9,6 @@ type ParagraphProps = Omit<JSX.IntrinsicElements["p"], "children" | "ref">;
10
9
  export type CardProps = DivProps & {
11
10
  children?: unknown;
12
11
  variant?: CardVariant;
13
- padding?: CardPadding;
14
12
  ref?: Ref<HTMLDivElement>;
15
13
  };
16
14
 
@@ -19,27 +17,27 @@ export type CardHeaderProps = DivProps & {
19
17
  ref?: Ref<HTMLDivElement>;
20
18
  };
21
19
 
22
- export type CardContentProps = DivProps & {
20
+ export type CardTitleProps = HeadingProps & {
23
21
  children?: unknown;
24
- ref?: Ref<HTMLDivElement>;
22
+ ref?: Ref<HTMLHeadingElement>;
25
23
  };
26
24
 
27
- export type CardFooterProps = DivProps & {
25
+ export type CardDescriptionProps = ParagraphProps & {
28
26
  children?: unknown;
29
- ref?: Ref<HTMLDivElement>;
27
+ ref?: Ref<HTMLParagraphElement>;
30
28
  };
31
29
 
32
- export type CardActionsProps = DivProps & {
30
+ export type CardContentProps = DivProps & {
33
31
  children?: unknown;
34
32
  ref?: Ref<HTMLDivElement>;
35
33
  };
36
34
 
37
- export type CardTitleProps = HeadingProps & {
35
+ export type CardFooterProps = DivProps & {
38
36
  children?: unknown;
39
- ref?: Ref<HTMLHeadingElement>;
37
+ ref?: Ref<HTMLDivElement>;
40
38
  };
41
39
 
42
- export type CardDescriptionProps = ParagraphProps & {
40
+ export type CardActionProps = DivProps & {
43
41
  children?: unknown;
44
- ref?: Ref<HTMLParagraphElement>;
42
+ ref?: Ref<HTMLDivElement>;
45
43
  };
@@ -1,6 +1,6 @@
1
1
  export {
2
2
  Card,
3
- CardActions,
3
+ CardAction,
4
4
  CardContent,
5
5
  CardDescription,
6
6
  CardFooter,
@@ -9,12 +9,11 @@ export {
9
9
  } from "./card";
10
10
 
11
11
  export type {
12
- CardActionsProps,
12
+ CardActionProps,
13
13
  CardContentProps,
14
14
  CardDescriptionProps,
15
15
  CardFooterProps,
16
16
  CardHeaderProps,
17
- CardPadding,
18
17
  CardProps,
19
18
  CardTitleProps,
20
19
  CardVariant,