@askrjs/themes 0.0.8 → 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 (479) 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/_internal/jsx.js.map +1 -1
  7. package/dist/components/_internal/style.js +25 -1
  8. package/dist/components/_internal/style.js.map +1 -1
  9. package/dist/components/alert/alert.js +2 -2
  10. package/dist/components/alert/alert.js.map +1 -1
  11. package/dist/components/alert/alert.types.d.ts +0 -1
  12. package/dist/components/aside/aside.d.ts +7 -0
  13. package/dist/components/aside/aside.js +16 -0
  14. package/dist/components/aside/aside.js.map +1 -0
  15. package/dist/components/aside/aside.types.d.ts +6 -0
  16. package/dist/components/aside/index.d.ts +2 -0
  17. package/dist/components/aspect-ratio/aspect-ratio.js +1 -1
  18. package/dist/components/aspect-ratio/aspect-ratio.js.map +1 -1
  19. package/dist/components/badge/index.d.ts +1 -2
  20. package/dist/components/block/block.d.ts +2 -3
  21. package/dist/components/block/block.js +16 -46
  22. package/dist/components/block/block.js.map +1 -1
  23. package/dist/components/block/block.types.d.ts +13 -23
  24. package/dist/components/block/index.d.ts +3 -3
  25. package/dist/components/brand/brand.d.ts +9 -0
  26. package/dist/components/brand/brand.js +49 -0
  27. package/dist/components/brand/brand.js.map +1 -0
  28. package/dist/components/brand/brand.types.d.ts +31 -0
  29. package/dist/components/brand/index.d.ts +2 -0
  30. package/dist/components/card/card.d.ts +3 -3
  31. package/dist/components/card/card.js +6 -11
  32. package/dist/components/card/card.js.map +1 -1
  33. package/dist/components/card/card.types.d.ts +10 -12
  34. package/dist/components/card/index.d.ts +2 -2
  35. package/dist/components/catalog.d.ts +156 -0
  36. package/dist/components/catalog.js +723 -0
  37. package/dist/components/catalog.js.map +1 -0
  38. package/dist/components/container/container.d.ts +2 -3
  39. package/dist/components/container/container.js +8 -71
  40. package/dist/components/container/container.js.map +1 -1
  41. package/dist/components/container/container.types.d.ts +5 -24
  42. package/dist/components/container/index.d.ts +2 -3
  43. package/dist/components/empty-state/empty-state.js +34 -28
  44. package/dist/components/empty-state/empty-state.js.map +1 -1
  45. package/dist/components/empty-state/empty-state.types.d.ts +3 -6
  46. package/dist/components/field/field.js +4 -2
  47. package/dist/components/field/field.js.map +1 -1
  48. package/dist/components/field/field.types.d.ts +1 -0
  49. package/dist/components/footer/footer.d.ts +13 -0
  50. package/dist/components/footer/footer.js +86 -0
  51. package/dist/components/footer/footer.js.map +1 -0
  52. package/dist/components/footer/footer.types.d.ts +37 -0
  53. package/dist/components/footer/index.d.ts +2 -0
  54. package/dist/components/grid/grid.d.ts +7 -0
  55. package/dist/components/grid/grid.js +76 -0
  56. package/dist/components/grid/grid.js.map +1 -0
  57. package/dist/components/grid/grid.types.d.ts +19 -0
  58. package/dist/components/grid/index.d.ts +2 -0
  59. package/dist/components/header/header.js +9 -6
  60. package/dist/components/header/header.js.map +1 -1
  61. package/dist/components/header/header.types.d.ts +5 -5
  62. package/dist/components/header/index.d.ts +2 -0
  63. package/dist/components/main/index.d.ts +2 -0
  64. package/dist/components/main/main.d.ts +7 -0
  65. package/dist/components/main/main.js +17 -0
  66. package/dist/components/main/main.js.map +1 -0
  67. package/dist/components/main/main.types.d.ts +6 -0
  68. package/dist/components/nav/index.d.ts +2 -2
  69. package/dist/components/nav/nav.d.ts +8 -6
  70. package/dist/components/nav/nav.js +93 -58
  71. package/dist/components/nav/nav.js.map +1 -1
  72. package/dist/components/nav/nav.types.d.ts +16 -20
  73. package/dist/components/navbar/index.d.ts +4 -5
  74. package/dist/components/navbar/navbar.d.ts +3 -38
  75. package/dist/components/navbar/navbar.js +102 -198
  76. package/dist/components/navbar/navbar.js.map +1 -1
  77. package/dist/components/navbar/navbar.types.d.ts +14 -24
  78. package/dist/components/page/index.d.ts +2 -0
  79. package/dist/components/page/page.d.ts +7 -0
  80. package/dist/components/page/page.js +22 -0
  81. package/dist/components/page/page.js.map +1 -0
  82. package/dist/components/page/page.types.d.ts +6 -0
  83. package/dist/components/page-header/index.d.ts +2 -0
  84. package/dist/components/page-header/page-header.d.ts +7 -0
  85. package/dist/components/page-header/page-header.js +37 -0
  86. package/dist/components/page-header/page-header.js.map +1 -0
  87. package/dist/components/page-header/page-header.types.d.ts +10 -0
  88. package/dist/components/section/index.d.ts +2 -3
  89. package/dist/components/section/section.d.ts +2 -3
  90. package/dist/components/section/section.js +7 -30
  91. package/dist/components/section/section.js.map +1 -1
  92. package/dist/components/section/section.types.d.ts +3 -20
  93. package/dist/components/separator/index.d.ts +1 -2
  94. package/dist/components/sidebar/index.d.ts +2 -0
  95. package/dist/components/sidebar/sidebar.d.ts +17 -2
  96. package/dist/components/sidebar/sidebar.js +115 -211
  97. package/dist/components/sidebar/sidebar.js.map +1 -1
  98. package/dist/components/sidebar/sidebar.types.d.ts +21 -23
  99. package/dist/components/skeleton/index.d.ts +1 -2
  100. package/dist/components/skeleton/skeleton.js +12 -1
  101. package/dist/components/skeleton/skeleton.js.map +1 -1
  102. package/dist/components/skeleton/skeleton.types.d.ts +2 -0
  103. package/dist/components/spinner/index.d.ts +1 -1
  104. package/dist/components/spinner/spinner.js +6 -3
  105. package/dist/components/spinner/spinner.js.map +1 -1
  106. package/dist/components/spinner/spinner.types.d.ts +3 -1
  107. package/dist/components/stat/index.d.ts +2 -0
  108. package/dist/components/stat/stat.d.ts +10 -0
  109. package/dist/components/stat/stat.js +52 -0
  110. package/dist/components/stat/stat.js.map +1 -0
  111. package/dist/components/stat/stat.types.d.ts +24 -0
  112. package/dist/components/text/index.d.ts +2 -0
  113. package/dist/components/text/text.d.ts +7 -0
  114. package/dist/components/text/text.js +28 -0
  115. package/dist/components/text/text.js.map +1 -0
  116. package/dist/components/text/text.types.d.ts +26 -0
  117. package/dist/components/theme/theme.js +97 -18
  118. package/dist/components/theme/theme.js.map +1 -1
  119. package/dist/components/toolbar/index.d.ts +2 -0
  120. package/dist/components/toolbar/toolbar.d.ts +7 -0
  121. package/dist/components/toolbar/toolbar.js +30 -0
  122. package/dist/components/toolbar/toolbar.js.map +1 -0
  123. package/dist/components/toolbar/toolbar.types.d.ts +9 -0
  124. package/dist/components.d.ts +60 -0
  125. package/dist/components.js +35 -0
  126. package/dist/controls.d.ts +2 -2
  127. package/dist/controls.js +3 -3
  128. package/dist/core.d.ts +36 -0
  129. package/dist/core.js +19 -0
  130. package/dist/navs.d.ts +3 -15
  131. package/dist/navs.js +2 -8
  132. package/dist/overlays.d.ts +2 -2
  133. package/dist/overlays.js +2 -2
  134. package/dist/surfaces.d.ts +10 -8
  135. package/dist/surfaces.js +6 -4
  136. package/dist/themes/default/index.css +3691 -3959
  137. package/package.json +239 -73
  138. package/src/components/_internal/block-layout.ts +354 -0
  139. package/src/components/_internal/jsx.ts +18 -6
  140. package/src/components/_internal/style.ts +42 -4
  141. package/src/components/alert/alert.tsx +1 -2
  142. package/src/components/alert/alert.types.ts +0 -1
  143. package/src/components/aside/aside.tsx +12 -0
  144. package/src/components/aside/aside.types.ts +3 -0
  145. package/src/components/aside/index.ts +2 -0
  146. package/src/components/aspect-ratio/aspect-ratio.tsx +1 -1
  147. package/src/components/badge/index.ts +0 -1
  148. package/src/components/block/block.a11y.ts +0 -6
  149. package/src/components/block/block.tsx +40 -56
  150. package/src/components/block/block.types.ts +59 -41
  151. package/src/components/block/index.ts +1 -10
  152. package/src/components/brand/brand.tsx +61 -0
  153. package/src/components/brand/brand.types.ts +39 -0
  154. package/src/components/brand/index.ts +2 -0
  155. package/src/components/card/card.tsx +6 -18
  156. package/src/components/card/card.types.ts +9 -11
  157. package/src/components/card/index.ts +2 -3
  158. package/src/components/catalog.tsx +713 -0
  159. package/src/components/container/container.a11y.ts +0 -5
  160. package/src/components/container/container.tsx +18 -128
  161. package/src/components/container/container.types.ts +3 -32
  162. package/src/components/container/index.ts +1 -8
  163. package/src/components/empty-state/empty-state.tsx +17 -35
  164. package/src/components/empty-state/empty-state.types.ts +3 -5
  165. package/src/components/field/field.tsx +3 -1
  166. package/src/components/field/field.types.ts +1 -0
  167. package/src/components/footer/footer.tsx +88 -0
  168. package/src/components/footer/footer.types.ts +40 -0
  169. package/src/components/footer/index.ts +10 -0
  170. package/src/components/grid/grid.tsx +113 -0
  171. package/src/components/grid/grid.types.ts +20 -0
  172. package/src/components/grid/index.ts +2 -0
  173. package/src/components/header/header.tsx +10 -7
  174. package/src/components/header/header.types.ts +4 -4
  175. package/src/components/header/index.ts +1 -2
  176. package/src/components/main/index.ts +2 -0
  177. package/src/components/main/main.tsx +12 -0
  178. package/src/components/main/main.types.ts +3 -0
  179. package/src/components/nav/index.ts +7 -9
  180. package/src/components/nav/nav.tsx +153 -110
  181. package/src/components/nav/nav.types.ts +26 -27
  182. package/src/components/navbar/index.ts +4 -11
  183. package/src/components/navbar/navbar.tsx +104 -251
  184. package/src/components/navbar/navbar.types.ts +16 -42
  185. package/src/components/page/index.ts +2 -0
  186. package/src/components/page/page.tsx +17 -0
  187. package/src/components/page/page.types.ts +3 -0
  188. package/src/components/page-header/index.ts +2 -0
  189. package/src/components/page-header/page-header.tsx +29 -0
  190. package/src/components/page-header/page-header.types.ts +7 -0
  191. package/src/components/section/index.ts +1 -7
  192. package/src/components/section/section.a11y.ts +0 -1
  193. package/src/components/section/section.tsx +9 -35
  194. package/src/components/section/section.types.ts +2 -22
  195. package/src/components/separator/index.ts +4 -9
  196. package/src/components/sidebar/index.ts +27 -5
  197. package/src/components/sidebar/sidebar.tsx +145 -317
  198. package/src/components/sidebar/sidebar.types.ts +21 -28
  199. package/src/components/skeleton/index.ts +1 -2
  200. package/src/components/skeleton/skeleton.tsx +33 -1
  201. package/src/components/skeleton/skeleton.types.ts +2 -0
  202. package/src/components/spinner/index.ts +1 -1
  203. package/src/components/spinner/spinner.tsx +7 -2
  204. package/src/components/spinner/spinner.types.ts +3 -0
  205. package/src/components/stat/index.ts +2 -0
  206. package/src/components/stat/stat.tsx +47 -0
  207. package/src/components/stat/stat.types.ts +24 -0
  208. package/src/components/text/index.ts +2 -0
  209. package/src/components/text/text.tsx +39 -0
  210. package/src/components/text/text.types.ts +35 -0
  211. package/src/components/theme/theme.tsx +163 -21
  212. package/src/components/toolbar/index.ts +2 -0
  213. package/src/components/toolbar/toolbar.tsx +24 -0
  214. package/src/components/toolbar/toolbar.types.ts +6 -0
  215. package/src/components.ts +289 -0
  216. package/src/controls.ts +69 -2
  217. package/src/core.ts +42 -0
  218. package/src/navs.ts +9 -24
  219. package/src/overlays.ts +101 -59
  220. package/src/parity.ts +125 -0
  221. package/src/surfaces.ts +60 -13
  222. package/src/themes/default/index.css +11 -14
  223. package/src/themes/default/styles/actions/button-group.css +6 -6
  224. package/src/themes/default/styles/actions/button.css +98 -60
  225. package/src/themes/default/styles/actions/toggle-group.css +61 -25
  226. package/src/themes/default/styles/base/text.css +87 -0
  227. package/src/themes/default/styles/base/typography.css +24 -117
  228. package/src/themes/default/styles/base/utilities.css +0 -250
  229. package/src/themes/default/styles/disclosure/accordion.css +35 -28
  230. package/src/themes/default/styles/display/alert.css +7 -7
  231. package/src/themes/default/styles/display/avatar.css +7 -1
  232. package/src/themes/default/styles/display/badge.css +10 -10
  233. package/src/themes/default/styles/display/card.css +10 -47
  234. package/src/themes/default/styles/display/catalog.css +753 -0
  235. package/src/themes/default/styles/display/coverage.css +30 -305
  236. package/src/themes/default/styles/display/progress-circle.css +2 -0
  237. package/src/themes/default/styles/display/scroll-area.css +29 -24
  238. package/src/themes/default/styles/display/spinner.css +38 -1
  239. package/src/themes/default/styles/display/stat.css +21 -0
  240. package/src/themes/default/styles/display/table.css +39 -12
  241. package/src/themes/default/styles/display/virtual-list.css +24 -13
  242. package/src/themes/default/styles/display/virtual-table.css +58 -36
  243. package/src/themes/default/styles/forms/checkbox.css +12 -21
  244. package/src/themes/default/styles/forms/input-group.css +2 -1
  245. package/src/themes/default/styles/forms/input.css +11 -12
  246. package/src/themes/default/styles/forms/radio-group.css +44 -27
  247. package/src/themes/default/styles/forms/select.css +33 -35
  248. package/src/themes/default/styles/forms/slider.css +61 -47
  249. package/src/themes/default/styles/forms/switch.css +18 -23
  250. package/src/themes/default/styles/forms/textarea.css +12 -12
  251. package/src/themes/default/styles/layout/block.css +96 -12
  252. package/src/themes/default/styles/layout/grid.css +78 -0
  253. package/src/themes/default/styles/layout/layout.css +502 -772
  254. package/src/themes/default/styles/layout/patterns.css +0 -155
  255. package/src/themes/default/styles/navigation/nav.css +104 -154
  256. package/src/themes/default/styles/overlays/alert-dialog.css +2 -2
  257. package/src/themes/default/styles/overlays/dialog.css +76 -22
  258. package/src/themes/default/styles/overlays/dropdown.css +108 -31
  259. package/src/themes/default/styles/overlays/hover-card.css +39 -17
  260. package/src/themes/default/styles/overlays/menubar.css +223 -0
  261. package/src/themes/default/styles/overlays/popover.css +69 -23
  262. package/src/themes/default/styles/overlays/toast.css +91 -33
  263. package/src/themes/default/styles/overlays/tooltip.css +88 -14
  264. package/src/themes/default/styles/shell/brand.css +48 -0
  265. package/src/themes/default/styles/shell/footer.css +72 -0
  266. package/src/themes/default/styles/shell/header.css +7 -50
  267. package/src/themes/default/styles/shell/navbar.css +226 -453
  268. package/src/themes/default/styles/shell/sidebar.css +243 -829
  269. package/src/themes/default/tokens.css +145 -98
  270. package/templates/theme/index.css +11 -14
  271. package/templates/theme/styles/actions/button-group.css +6 -6
  272. package/templates/theme/styles/actions/button.css +98 -60
  273. package/templates/theme/styles/actions/toggle-group.css +61 -25
  274. package/templates/theme/styles/base/text.css +87 -0
  275. package/templates/theme/styles/base/typography.css +24 -117
  276. package/templates/theme/styles/disclosure/accordion.css +35 -28
  277. package/templates/theme/styles/display/alert.css +7 -7
  278. package/templates/theme/styles/display/avatar.css +7 -1
  279. package/templates/theme/styles/display/badge.css +10 -10
  280. package/templates/theme/styles/display/card.css +10 -47
  281. package/templates/theme/styles/display/catalog.css +753 -0
  282. package/templates/theme/styles/display/coverage.css +30 -305
  283. package/templates/theme/styles/display/scroll-area.css +29 -24
  284. package/templates/theme/styles/display/spinner.css +38 -1
  285. package/templates/theme/styles/display/stat.css +21 -0
  286. package/templates/theme/styles/display/table.css +39 -12
  287. package/templates/theme/styles/display/virtual-list.css +24 -13
  288. package/templates/theme/styles/display/virtual-table.css +58 -36
  289. package/templates/theme/styles/forms/checkbox.css +12 -21
  290. package/templates/theme/styles/forms/input.css +11 -12
  291. package/templates/theme/styles/forms/radio-group.css +44 -27
  292. package/templates/theme/styles/forms/select.css +33 -35
  293. package/templates/theme/styles/forms/slider.css +61 -47
  294. package/templates/theme/styles/forms/switch.css +18 -23
  295. package/templates/theme/styles/forms/textarea.css +12 -12
  296. package/templates/theme/styles/layout/block.css +96 -12
  297. package/templates/theme/styles/layout/grid.css +78 -0
  298. package/templates/theme/styles/layout/layout.css +676 -1
  299. package/templates/theme/styles/layout/patterns.css +0 -155
  300. package/templates/theme/styles/navigation/nav.css +104 -154
  301. package/templates/theme/styles/overlays/alert-dialog.css +2 -2
  302. package/templates/theme/styles/overlays/dialog.css +76 -22
  303. package/templates/theme/styles/overlays/dropdown.css +108 -31
  304. package/templates/theme/styles/overlays/hover-card.css +39 -17
  305. package/templates/theme/styles/overlays/menubar.css +223 -0
  306. package/templates/theme/styles/overlays/popover.css +69 -23
  307. package/templates/theme/styles/overlays/toast.css +80 -33
  308. package/templates/theme/styles/overlays/tooltip.css +88 -14
  309. package/templates/theme/styles/shell/brand.css +48 -0
  310. package/templates/theme/styles/shell/footer.css +72 -0
  311. package/templates/theme/styles/shell/header.css +7 -50
  312. package/templates/theme/styles/shell/navbar.css +226 -453
  313. package/templates/theme/styles/shell/sidebar.css +197 -779
  314. package/templates/theme/tokens.css +145 -98
  315. package/dist/components/_internal/box-layout.js +0 -116
  316. package/dist/components/_internal/box-layout.js.map +0 -1
  317. package/dist/components/_internal/layout.d.ts +0 -9
  318. package/dist/components/_internal/layout.js +0 -147
  319. package/dist/components/_internal/layout.js.map +0 -1
  320. package/dist/components/badge/badge.a11y.d.ts +0 -17
  321. package/dist/components/block/block.a11y.d.ts +0 -20
  322. package/dist/components/box/box.a11y.d.ts +0 -14
  323. package/dist/components/box/box.d.ts +0 -9
  324. package/dist/components/box/box.js +0 -36
  325. package/dist/components/box/box.js.map +0 -1
  326. package/dist/components/box/box.types.d.ts +0 -72
  327. package/dist/components/box/index.d.ts +0 -3
  328. package/dist/components/breadcrumb/breadcrumb.a11y.d.ts +0 -17
  329. package/dist/components/breadcrumb/breadcrumb.a11y.js +0 -15
  330. package/dist/components/breadcrumb/breadcrumb.a11y.js.map +0 -1
  331. package/dist/components/breadcrumb/breadcrumb.d.ts +0 -18
  332. package/dist/components/breadcrumb/breadcrumb.js +0 -113
  333. package/dist/components/breadcrumb/breadcrumb.js.map +0 -1
  334. package/dist/components/breadcrumb/breadcrumb.types.d.ts +0 -65
  335. package/dist/components/breadcrumb/index.d.ts +0 -3
  336. package/dist/components/container/container.a11y.d.ts +0 -19
  337. package/dist/components/flex/flex.a11y.d.ts +0 -22
  338. package/dist/components/flex/flex.d.ts +0 -9
  339. package/dist/components/flex/flex.js +0 -115
  340. package/dist/components/flex/flex.js.map +0 -1
  341. package/dist/components/flex/flex.types.d.ts +0 -42
  342. package/dist/components/flex/index.d.ts +0 -3
  343. package/dist/components/header/header.a11y.d.ts +0 -14
  344. package/dist/components/header/header.a11y.js +0 -12
  345. package/dist/components/header/header.a11y.js.map +0 -1
  346. package/dist/components/inline/index.d.ts +0 -8
  347. package/dist/components/inline/index.js +0 -13
  348. package/dist/components/inline/index.js.map +0 -1
  349. package/dist/components/list-group/index.d.ts +0 -2
  350. package/dist/components/list-group/list-group.d.ts +0 -9
  351. package/dist/components/list-group/list-group.js +0 -43
  352. package/dist/components/list-group/list-group.js.map +0 -1
  353. package/dist/components/list-group/list-group.types.d.ts +0 -32
  354. package/dist/components/navbar/navbar-panel.js +0 -42
  355. package/dist/components/navbar/navbar-panel.js.map +0 -1
  356. package/dist/components/navbar/navbar.context.js +0 -13
  357. package/dist/components/navbar/navbar.context.js.map +0 -1
  358. package/dist/components/navbar/navbar.render.js +0 -26
  359. package/dist/components/navbar/navbar.render.js.map +0 -1
  360. package/dist/components/navbar/navbar.shared.js +0 -18
  361. package/dist/components/navbar/navbar.shared.js.map +0 -1
  362. package/dist/components/pagination/index.d.ts +0 -2
  363. package/dist/components/pagination/pagination.d.ts +0 -11
  364. package/dist/components/pagination/pagination.js +0 -95
  365. package/dist/components/pagination/pagination.js.map +0 -1
  366. package/dist/components/pagination/pagination.types.d.ts +0 -40
  367. package/dist/components/section/section.a11y.d.ts +0 -15
  368. package/dist/components/separator/separator.a11y.d.ts +0 -17
  369. package/dist/components/separator/separator.a11y.js +0 -15
  370. package/dist/components/separator/separator.a11y.js.map +0 -1
  371. package/dist/components/shell/index.d.ts +0 -3
  372. package/dist/components/shell/shell-nav.types.d.ts +0 -7
  373. package/dist/components/shell/shell-panel.js +0 -54
  374. package/dist/components/shell/shell-panel.js.map +0 -1
  375. package/dist/components/shell/shell-responsive.js +0 -118
  376. package/dist/components/shell/shell-responsive.js.map +0 -1
  377. package/dist/components/shell/shell.a11y.d.ts +0 -23
  378. package/dist/components/shell/shell.a11y.js +0 -23
  379. package/dist/components/shell/shell.a11y.js.map +0 -1
  380. package/dist/components/shell/shell.d.ts +0 -13
  381. package/dist/components/shell/shell.js +0 -69
  382. package/dist/components/shell/shell.js.map +0 -1
  383. package/dist/components/shell/shell.types.d.ts +0 -58
  384. package/dist/components/sidebar/sidebar-panel.d.ts +0 -7
  385. package/dist/components/sidebar/sidebar-panel.js +0 -49
  386. package/dist/components/sidebar/sidebar-panel.js.map +0 -1
  387. package/dist/components/sidebar/sidebar-toggle.d.ts +0 -7
  388. package/dist/components/sidebar/sidebar-toggle.js +0 -8
  389. package/dist/components/sidebar/sidebar-toggle.js.map +0 -1
  390. package/dist/components/sidebar/sidebar.context.js +0 -21
  391. package/dist/components/sidebar/sidebar.context.js.map +0 -1
  392. package/dist/components/sidebar/sidebar.shared.js +0 -12
  393. package/dist/components/sidebar/sidebar.shared.js.map +0 -1
  394. package/dist/components/skeleton/skeleton.a11y.d.ts +0 -16
  395. package/dist/components/spacer/index.d.ts +0 -3
  396. package/dist/components/spacer/spacer.a11y.d.ts +0 -17
  397. package/dist/components/spacer/spacer.d.ts +0 -8
  398. package/dist/components/spacer/spacer.js +0 -49
  399. package/dist/components/spacer/spacer.js.map +0 -1
  400. package/dist/components/spacer/spacer.types.d.ts +0 -26
  401. package/dist/components/stack/index.d.ts +0 -3
  402. package/dist/components/stack/stack.a11y.d.ts +0 -18
  403. package/dist/components/stack/stack.d.ts +0 -8
  404. package/dist/components/stack/stack.js +0 -16
  405. package/dist/components/stack/stack.js.map +0 -1
  406. package/dist/components/stack/stack.types.d.ts +0 -22
  407. package/dist/feedback.d.ts +0 -5
  408. package/dist/feedback.js +0 -4
  409. package/dist/layouts.d.ts +0 -25
  410. package/dist/layouts.js +0 -11
  411. package/dist/shells.d.ts +0 -16
  412. package/dist/shells.js +0 -11
  413. package/src/components/_internal/box-layout.ts +0 -164
  414. package/src/components/_internal/layout.ts +0 -211
  415. package/src/components/box/box.a11y.ts +0 -11
  416. package/src/components/box/box.tsx +0 -38
  417. package/src/components/box/box.types.ts +0 -76
  418. package/src/components/box/index.ts +0 -11
  419. package/src/components/breadcrumb/breadcrumb.a11y.ts +0 -15
  420. package/src/components/breadcrumb/breadcrumb.tsx +0 -123
  421. package/src/components/breadcrumb/breadcrumb.types.ts +0 -74
  422. package/src/components/breadcrumb/index.ts +0 -24
  423. package/src/components/flex/flex.a11y.ts +0 -19
  424. package/src/components/flex/flex.tsx +0 -162
  425. package/src/components/flex/flex.types.ts +0 -51
  426. package/src/components/flex/index.ts +0 -16
  427. package/src/components/inline/index.tsx +0 -28
  428. package/src/components/list-group/index.ts +0 -7
  429. package/src/components/list-group/list-group.tsx +0 -74
  430. package/src/components/list-group/list-group.types.ts +0 -32
  431. package/src/components/navbar/navbar-panel.tsx +0 -62
  432. package/src/components/navbar/navbar.context.ts +0 -22
  433. package/src/components/navbar/navbar.render.tsx +0 -32
  434. package/src/components/navbar/navbar.shared.ts +0 -21
  435. package/src/components/pagination/index.ts +0 -8
  436. package/src/components/pagination/pagination.tsx +0 -158
  437. package/src/components/pagination/pagination.types.ts +0 -41
  438. package/src/components/shell/index.ts +0 -16
  439. package/src/components/shell/shell-nav.types.ts +0 -3
  440. package/src/components/shell/shell-panel.tsx +0 -85
  441. package/src/components/shell/shell-responsive.tsx +0 -246
  442. package/src/components/shell/shell.a11y.ts +0 -20
  443. package/src/components/shell/shell.tsx +0 -74
  444. package/src/components/shell/shell.types.ts +0 -71
  445. package/src/components/sidebar/sidebar-panel.tsx +0 -67
  446. package/src/components/sidebar/sidebar-toggle.tsx +0 -5
  447. package/src/components/sidebar/sidebar.context.ts +0 -40
  448. package/src/components/sidebar/sidebar.shared.ts +0 -12
  449. package/src/components/spacer/index.ts +0 -9
  450. package/src/components/spacer/spacer.a11y.ts +0 -14
  451. package/src/components/spacer/spacer.tsx +0 -61
  452. package/src/components/spacer/spacer.types.ts +0 -31
  453. package/src/components/stack/index.ts +0 -3
  454. package/src/components/stack/stack.a11y.ts +0 -15
  455. package/src/components/stack/stack.tsx +0 -13
  456. package/src/components/stack/stack.types.ts +0 -22
  457. package/src/feedback.ts +0 -6
  458. package/src/layouts.ts +0 -19
  459. package/src/shells.ts +0 -13
  460. package/src/themes/default/styles/actions/toggle.css +0 -50
  461. package/src/themes/default/styles/disclosure/collapsible.css +0 -58
  462. package/src/themes/default/styles/display/list-group.css +0 -84
  463. package/src/themes/default/styles/forms/form.css +0 -5
  464. package/src/themes/default/styles/layout/responsive-layout.css +0 -230
  465. package/src/themes/default/styles/navigation/breadcrumb.css +0 -45
  466. package/src/themes/default/styles/navigation/menu.css +0 -203
  467. package/src/themes/default/styles/navigation/menubar.css +0 -255
  468. package/src/themes/default/styles/navigation/pagination.css +0 -91
  469. package/src/themes/default/styles/shell/theme.css +0 -37
  470. package/templates/theme/styles/actions/toggle.css +0 -50
  471. package/templates/theme/styles/disclosure/collapsible.css +0 -58
  472. package/templates/theme/styles/display/list-group.css +0 -84
  473. package/templates/theme/styles/forms/form.css +0 -5
  474. package/templates/theme/styles/layout/responsive-layout.css +0 -230
  475. package/templates/theme/styles/navigation/breadcrumb.css +0 -45
  476. package/templates/theme/styles/navigation/menu.css +0 -203
  477. package/templates/theme/styles/navigation/menubar.css +0 -255
  478. package/templates/theme/styles/navigation/pagination.css +0 -91
  479. package/templates/theme/styles/shell/theme.css +0 -37
@@ -0,0 +1,2 @@
1
+ import { AsideProps } from "./aside.types.js";
2
+ import { Aside } from "./aside.js";
@@ -1,6 +1,6 @@
1
1
  import { mergeProps } from "../_internal/merge-props.js";
2
- import { mergeLayoutStyles } from "../_internal/layout.js";
3
2
  import { styleDeclarationsToClass } from "../_internal/style.js";
3
+ import { mergeLayoutStyles } from "../_internal/block-layout.js";
4
4
  import { jsx } from "@askrjs/askr/jsx-runtime";
5
5
  import { Slot } from "@askrjs/askr/foundations";
6
6
  //#region src/components/aspect-ratio/aspect-ratio.tsx
@@ -1 +1 @@
1
- {"version":3,"file":"aspect-ratio.js","names":[],"sources":["../../../src/components/aspect-ratio/aspect-ratio.tsx"],"sourcesContent":["import { Slot } from \"@askrjs/askr/foundations\";\nimport { mergeProps } from \"../_internal/merge-props\";\nimport { mergeLayoutStyles } from \"../_internal/layout\";\nimport { styleDeclarationsToClass } from \"../_internal/style\";\nimport type { AspectRatioAsChildProps, AspectRatioProps } from \"./aspect-ratio.types\";\n\nexport function AspectRatio(props: AspectRatioProps): JSX.Element;\nexport function AspectRatio(props: AspectRatioAsChildProps): JSX.Element;\nexport function AspectRatio(props: AspectRatioProps | AspectRatioAsChildProps) {\n const { asChild, children, ratio = 1, ref, style, ...rest } = props;\n const layoutClass = styleDeclarationsToClass(\n mergeLayoutStyles(\n {\n display: \"block\",\n width: \"100%\",\n aspectRatio: String(ratio),\n overflow: \"hidden\",\n },\n style,\n ),\n );\n\n const finalProps = mergeProps(rest, {\n ref,\n \"data-slot\": \"aspect-ratio\",\n ...(layoutClass ? { class: layoutClass } : {}),\n });\n\n if (asChild) {\n return <Slot asChild {...finalProps} children={children} />;\n }\n\n return <div {...finalProps}>{children}</div>;\n}\n"],"mappings":";;;;;;AAQA,SAAgB,YAAY,OAAmD;CAC7E,MAAM,EAAE,SAAS,UAAU,QAAQ,GAAG,KAAK,OAAO,GAAG,SAAS;CAC9D,MAAM,cAAc,yBAClB,kBACE;EACE,SAAS;EACT,OAAO;EACP,aAAa,OAAO,KAAK;EACzB,UAAU;CACZ,GACA,KACF,CACF;CAEA,MAAM,aAAa,WAAW,MAAM;EAClC;EACA,aAAa;EACb,GAAI,cAAc,EAAE,OAAO,YAAY,IAAI,CAAC;CAC9C,CAAC;CAED,IAAI,SACF,OAAO,oBAAC,MAAD;EAAM,SAAA;EAAQ,GAAI;EAAsB;CAAW,CAAA;CAG5D,OAAO,oBAAC,OAAD;EAAK,GAAI;EAAa;CAAc,CAAA;AAC7C"}
1
+ {"version":3,"file":"aspect-ratio.js","names":[],"sources":["../../../src/components/aspect-ratio/aspect-ratio.tsx"],"sourcesContent":["import { Slot } from \"@askrjs/askr/foundations\";\nimport { mergeProps } from \"../_internal/merge-props\";\nimport { mergeLayoutStyles } from \"../_internal/block-layout\";\nimport { styleDeclarationsToClass } from \"../_internal/style\";\nimport type { AspectRatioAsChildProps, AspectRatioProps } from \"./aspect-ratio.types\";\n\nexport function AspectRatio(props: AspectRatioProps): JSX.Element;\nexport function AspectRatio(props: AspectRatioAsChildProps): JSX.Element;\nexport function AspectRatio(props: AspectRatioProps | AspectRatioAsChildProps) {\n const { asChild, children, ratio = 1, ref, style, ...rest } = props;\n const layoutClass = styleDeclarationsToClass(\n mergeLayoutStyles(\n {\n display: \"block\",\n width: \"100%\",\n aspectRatio: String(ratio),\n overflow: \"hidden\",\n },\n style,\n ),\n );\n\n const finalProps = mergeProps(rest, {\n ref,\n \"data-slot\": \"aspect-ratio\",\n ...(layoutClass ? { class: layoutClass } : {}),\n });\n\n if (asChild) {\n return <Slot asChild {...finalProps} children={children} />;\n }\n\n return <div {...finalProps}>{children}</div>;\n}\n"],"mappings":";;;;;;AAQA,SAAgB,YAAY,OAAmD;CAC7E,MAAM,EAAE,SAAS,UAAU,QAAQ,GAAG,KAAK,OAAO,GAAG,SAAS;CAC9D,MAAM,cAAc,yBAClB,kBACE;EACE,SAAS;EACT,OAAO;EACP,aAAa,OAAO,KAAK;EACzB,UAAU;CACZ,GACA,KACF,CACF;CAEA,MAAM,aAAa,WAAW,MAAM;EAClC;EACA,aAAa;EACb,GAAI,cAAc,EAAE,OAAO,YAAY,IAAI,CAAC;CAC9C,CAAC;CAED,IAAI,SACF,OAAO,oBAAC,MAAD;EAAM,SAAA;EAAQ,GAAI;EAAsB;CAAW,CAAA;CAG5D,OAAO,oBAAC,OAAD;EAAK,GAAI;EAAa;CAAc,CAAA;AAC7C"}
@@ -1,3 +1,2 @@
1
1
  import { BadgeAsChildProps, BadgeOwnProps, BadgeProps } from "./badge.types.js";
2
- import { Badge } from "./badge.js";
3
- import { BADGE_A11Y_CONTRACT, BadgeA11yContract } from "./badge.a11y.js";
2
+ import { Badge } from "./badge.js";
@@ -1,8 +1,7 @@
1
- import { BlockAsChildProps, BlockDivProps, BlockSpanProps } from "./block.types.js";
1
+ import { BlockAsChildProps, BlockNativeProps } from "./block.types.js";
2
2
 
3
3
  //#region src/components/block/block.d.ts
4
- declare function Block(props: BlockDivProps): JSX.Element;
5
- declare function Block(props: BlockSpanProps): JSX.Element;
4
+ declare function Block(props: BlockNativeProps): JSX.Element;
6
5
  declare function Block(props: BlockAsChildProps): JSX.Element;
7
6
  //#endregion
8
7
  export { Block };
@@ -1,61 +1,31 @@
1
+ import { classes } from "../_internal/classes.js";
1
2
  import { mergeProps } from "../_internal/merge-props.js";
2
- import { serializeResponsiveValueIf } from "../_internal/layout.js";
3
+ import { styleDeclarationsToClass } from "../_internal/style.js";
4
+ import { applyBlockLayoutStyles, mergeLayoutStyles, splitBlockLayoutProps } from "../_internal/block-layout.js";
3
5
  import { jsx } from "@askrjs/askr/jsx-runtime";
4
6
  import { Slot } from "@askrjs/askr/foundations";
5
7
  //#region src/components/block/block.tsx
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
- ]);
8
+ const DEFAULT_ELEMENT = "div";
24
9
  function Block(props) {
25
- const as = "as" in props ? props.as : "div";
26
- const { asChild, children, gap, gapX, gapY, align, justify, size = "md", ref, ...rest } = props;
27
- const finalProps = mergeProps(rest, {
10
+ const as = "as" in props ? props.as : DEFAULT_ELEMENT;
11
+ const { asChild, children, ref, class: classProp, className, style: userStyle, ...rest } = props;
12
+ const { blockProps, rest: passthroughProps } = splitBlockLayoutProps(rest);
13
+ const layoutStyle = {};
14
+ applyBlockLayoutStyles(layoutStyle, blockProps);
15
+ const layoutClass = styleDeclarationsToClass(mergeLayoutStyles(layoutStyle, userStyle));
16
+ const slot = typeof passthroughProps["data-slot"] === "string" ? String(passthroughProps["data-slot"]) : "block";
17
+ const finalProps = mergeProps(passthroughProps, {
28
18
  ref,
29
- "data-slot": "block",
30
- "data-ak-layout": "true",
31
- "data-gap": serializeResponsiveValueIf(gap, (value) => typeof value === "string" && SPACE_TOKENS.has(value.trim())),
32
- "data-gap-x": serializeResponsiveValueIf(gapX, (value) => typeof value === "string" && SPACE_TOKENS.has(value.trim())),
33
- "data-gap-y": serializeResponsiveValueIf(gapY, (value) => typeof value === "string" && SPACE_TOKENS.has(value.trim())),
34
- "data-align": serializeResponsiveValueIf(align, (value) => typeof value === "string" && [
35
- "start",
36
- "end",
37
- "center",
38
- "stretch",
39
- "baseline"
40
- ].includes(value.trim())),
41
- "data-justify": serializeResponsiveValueIf(justify, (value) => typeof value === "string" && [
42
- "start",
43
- "end",
44
- "center",
45
- "between"
46
- ].includes(value.trim())),
47
- "data-size": `initial:${size}`
19
+ class: classes(classProp, className, layoutClass),
20
+ "data-slot": slot,
21
+ "data-ak-layout": "true"
48
22
  });
49
23
  if (asChild) return /* @__PURE__ */ jsx(Slot, {
50
24
  asChild: true,
51
25
  ...finalProps,
52
26
  children
53
27
  });
54
- if (as === "span") return /* @__PURE__ */ jsx("span", {
55
- ...finalProps,
56
- children
57
- });
58
- return /* @__PURE__ */ jsx("div", {
28
+ return /* @__PURE__ */ jsx(as ?? DEFAULT_ELEMENT, {
59
29
  ...finalProps,
60
30
  children
61
31
  });
@@ -1 +1 @@
1
- {"version":3,"file":"block.js","names":[],"sources":["../../../src/components/block/block.tsx"],"sourcesContent":["import { Slot } from \"@askrjs/askr/foundations\";\nimport { mergeProps } from \"../_internal/merge-props\";\nimport { serializeResponsiveValueIf } from \"../_internal/layout\";\nimport type { BlockAsChildProps, BlockDivProps, BlockSpanProps } from \"./block.types\";\n\nconst SPACE_TOKENS = new Set([\n \"1\",\n \"2\",\n \"3\",\n \"4\",\n \"5\",\n \"6\",\n \"7\",\n \"8\",\n \"9\",\n \"xs\",\n \"sm\",\n \"md\",\n \"lg\",\n \"xl\",\n \"2xl\",\n \"3xl\",\n]);\n\nexport function Block(props: BlockDivProps): JSX.Element;\nexport function Block(props: BlockSpanProps): JSX.Element;\nexport function Block(props: BlockAsChildProps): JSX.Element;\nexport function Block(props: BlockDivProps | BlockSpanProps | BlockAsChildProps) {\n const as = \"as\" in props ? props.as : \"div\";\n const { asChild, children, gap, gapX, gapY, align, justify, size = \"md\", ref, ...rest } = props;\n\n const finalProps = mergeProps(rest, {\n ref,\n \"data-slot\": \"block\",\n \"data-ak-layout\": \"true\",\n \"data-gap\": serializeResponsiveValueIf(\n gap,\n (value) => typeof value === \"string\" && SPACE_TOKENS.has(value.trim()),\n ),\n \"data-gap-x\": serializeResponsiveValueIf(\n gapX,\n (value) => typeof value === \"string\" && SPACE_TOKENS.has(value.trim()),\n ),\n \"data-gap-y\": serializeResponsiveValueIf(\n gapY,\n (value) => typeof value === \"string\" && SPACE_TOKENS.has(value.trim()),\n ),\n \"data-align\": serializeResponsiveValueIf(\n align,\n (value) =>\n typeof value === \"string\" &&\n [\"start\", \"end\", \"center\", \"stretch\", \"baseline\"].includes(value.trim()),\n ),\n \"data-justify\": serializeResponsiveValueIf(\n justify,\n (value) =>\n typeof value === \"string\" && [\"start\", \"end\", \"center\", \"between\"].includes(value.trim()),\n ),\n \"data-size\": `initial:${size}`,\n });\n\n if (asChild) {\n return <Slot asChild {...finalProps} children={children as JSX.Element} />;\n }\n\n if (as === \"span\") {\n return <span {...finalProps}>{children}</span>;\n }\n\n return <div {...finalProps}>{children}</div>;\n}\n"],"mappings":";;;;;AAKA,MAAM,eAAe,IAAI,IAAI;CAC3B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF,CAAC;AAKD,SAAgB,MAAM,OAA2D;CAC/E,MAAM,KAAK,QAAQ,QAAQ,MAAM,KAAK;CACtC,MAAM,EAAE,SAAS,UAAU,KAAK,MAAM,MAAM,OAAO,SAAS,OAAO,MAAM,KAAK,GAAG,SAAS;CAE1F,MAAM,aAAa,WAAW,MAAM;EAClC;EACA,aAAa;EACb,kBAAkB;EAClB,YAAY,2BACV,MACC,UAAU,OAAO,UAAU,YAAY,aAAa,IAAI,MAAM,KAAK,CAAC,CACvE;EACA,cAAc,2BACZ,OACC,UAAU,OAAO,UAAU,YAAY,aAAa,IAAI,MAAM,KAAK,CAAC,CACvE;EACA,cAAc,2BACZ,OACC,UAAU,OAAO,UAAU,YAAY,aAAa,IAAI,MAAM,KAAK,CAAC,CACvE;EACA,cAAc,2BACZ,QACC,UACC,OAAO,UAAU,YACjB;GAAC;GAAS;GAAO;GAAU;GAAW;EAAU,CAAC,CAAC,SAAS,MAAM,KAAK,CAAC,CAC3E;EACA,gBAAgB,2BACd,UACC,UACC,OAAO,UAAU,YAAY;GAAC;GAAS;GAAO;GAAU;EAAS,CAAC,CAAC,SAAS,MAAM,KAAK,CAAC,CAC5F;EACA,aAAa,WAAW;CAC1B,CAAC;CAED,IAAI,SACF,OAAO,oBAAC,MAAD;EAAM,SAAA;EAAQ,GAAI;EAAsB;CAA0B,CAAA;CAG3E,IAAI,OAAO,QACT,OAAO,oBAAC,QAAD;EAAM,GAAI;EAAa;CAAe,CAAA;CAG/C,OAAO,oBAAC,OAAD;EAAK,GAAI;EAAa;CAAc,CAAA;AAC7C"}
1
+ {"version":3,"file":"block.js","names":[],"sources":["../../../src/components/block/block.tsx"],"sourcesContent":["import { Slot } from \"@askrjs/askr/foundations\";\nimport { classes } from \"../_internal/classes\";\nimport {\n applyBlockLayoutStyles,\n mergeLayoutStyles,\n splitBlockLayoutProps,\n} from \"../_internal/block-layout\";\nimport { mergeProps } from \"../_internal/merge-props\";\nimport { styleDeclarationsToClass } from \"../_internal/style\";\nimport type { BlockAsChildProps, BlockNativeProps } from \"./block.types\";\n\nconst DEFAULT_ELEMENT = \"div\";\n\nexport function Block(props: BlockNativeProps): JSX.Element;\nexport function Block(props: BlockAsChildProps): JSX.Element;\nexport function Block(props: BlockNativeProps | BlockAsChildProps) {\n const as = \"as\" in props ? props.as : DEFAULT_ELEMENT;\n const {\n asChild,\n children,\n ref,\n class: classProp,\n className,\n style: userStyle,\n ...rest\n } = props as (BlockNativeProps | BlockAsChildProps) & {\n class?: unknown;\n className?: unknown;\n style?: unknown;\n };\n\n const { blockProps, rest: passthroughProps } = splitBlockLayoutProps(rest);\n const layoutStyle: Record<string, string | number> = {};\n applyBlockLayoutStyles(layoutStyle, blockProps);\n\n const layoutClass = styleDeclarationsToClass(mergeLayoutStyles(layoutStyle, userStyle));\n const slot =\n typeof (passthroughProps as Record<string, unknown>)[\"data-slot\"] === \"string\"\n ? String((passthroughProps as Record<string, unknown>)[\"data-slot\"])\n : \"block\";\n\n const finalProps = mergeProps(passthroughProps, {\n ref,\n class: classes(classProp, className, layoutClass),\n \"data-slot\": slot,\n \"data-ak-layout\": \"true\",\n });\n\n if (asChild) {\n return <Slot asChild {...finalProps} children={children as JSX.Element} />;\n }\n\n const Element = (as ?? DEFAULT_ELEMENT) as keyof JSX.IntrinsicElements;\n return <Element {...finalProps}>{children}</Element>;\n}\n"],"mappings":";;;;;;;AAWA,MAAM,kBAAkB;AAIxB,SAAgB,MAAM,OAA6C;CACjE,MAAM,KAAK,QAAQ,QAAQ,MAAM,KAAK;CACtC,MAAM,EACJ,SACA,UACA,KACA,OAAO,WACP,WACA,OAAO,WACP,GAAG,SACD;CAMJ,MAAM,EAAE,YAAY,MAAM,qBAAqB,sBAAsB,IAAI;CACzE,MAAM,cAA+C,CAAC;CACtD,uBAAuB,aAAa,UAAU;CAE9C,MAAM,cAAc,yBAAyB,kBAAkB,aAAa,SAAS,CAAC;CACtF,MAAM,OACJ,OAAQ,iBAA6C,iBAAiB,WAClE,OAAQ,iBAA6C,YAAY,IACjE;CAEN,MAAM,aAAa,WAAW,kBAAkB;EAC9C;EACA,OAAO,QAAQ,WAAW,WAAW,WAAW;EAChD,aAAa;EACb,kBAAkB;CACpB,CAAC;CAED,IAAI,SACF,OAAO,oBAAC,MAAD;EAAM,SAAA;EAAQ,GAAI;EAAsB;CAA0B,CAAA;CAI3E,OAAO,oBADU,MAAM,iBAChB;EAAS,GAAI;EAAa;CAAkB,CAAA;AACrD"}
@@ -1,38 +1,28 @@
1
+ import { BlockAlign, BlockBackground, BlockDirection, BlockJustify, BlockLayoutProps, BlockMargin, BlockRadius, BlockRowFrom, BlockShadow, BlockSize, BlockSpace, BlockZIndex, ResponsiveValue } from "../_internal/block-layout.js";
1
2
  import { JSXElement } from "@askrjs/askr/foundations";
2
3
  import { Ref } from "@askrjs/askr/foundations/utilities";
3
4
 
4
5
  //#region src/components/block/block.types.d.ts
5
- type BlockSize = "xs" | "sm" | "md" | "lg" | "xl";
6
- type BlockSpace = "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
7
- type BlockAlign = "start" | "end" | "center" | "stretch" | "baseline";
8
- type BlockJustify = "start" | "end" | "center" | "between";
9
- type BlockOwnProps = {
10
- gap?: BlockSpace;
11
- gapX?: BlockSpace;
12
- gapY?: BlockSpace;
13
- align?: BlockAlign;
14
- justify?: BlockJustify;
15
- size?: BlockSize;
16
- as?: "div" | "span";
6
+ type BlockElement = "div" | "span" | "main" | "header" | "footer" | "section" | "aside" | "nav" | "a" | "ul" | "ol" | "li" | "form" | "article";
7
+ type BlockOwnProps = BlockLayoutProps & {
8
+ as?: BlockElement;
17
9
  children?: unknown;
10
+ className?: string;
18
11
  };
19
- type BlockNativeProps = Omit<JSX.IntrinsicElements["div"], "children" | "ref"> & BlockOwnProps & {
20
- as?: "div";
12
+ type BlockElementProps<TElement extends BlockElement> = Omit<JSX.IntrinsicElements[TElement], "children" | "ref"> & BlockOwnProps & {
13
+ as?: TElement;
21
14
  asChild?: false;
22
- ref?: Ref<HTMLDivElement>;
23
- };
24
- type BlockSpanProps = Omit<JSX.IntrinsicElements["span"], "children" | "ref"> & BlockOwnProps & {
25
- as: "span";
26
- asChild?: false;
27
- ref?: Ref<HTMLSpanElement>;
15
+ ref?: Ref<unknown>;
28
16
  };
17
+ type BlockNativeProps = { [TElement in BlockElement]: BlockElementProps<TElement> }[BlockElement];
29
18
  type BlockAsChildProps = Omit<BlockOwnProps, "as"> & {
30
19
  asChild: true;
31
20
  children: JSXElement;
32
21
  ref?: Ref<unknown>;
33
22
  };
34
- type BlockDivProps = BlockNativeProps;
35
- type BlockProps = BlockDivProps | BlockSpanProps | BlockAsChildProps;
23
+ type BlockDivProps = BlockElementProps<"div">;
24
+ type BlockSpanProps = BlockElementProps<"span">;
25
+ type BlockProps = BlockNativeProps | BlockAsChildProps;
36
26
  //#endregion
37
- export { BlockAsChildProps, BlockDivProps, BlockNativeProps, BlockOwnProps, BlockProps, BlockSize, BlockSpanProps };
27
+ export { BlockAsChildProps, BlockDivProps, BlockElement, BlockElementProps, BlockNativeProps, BlockOwnProps, BlockProps, BlockSpanProps };
38
28
  //# sourceMappingURL=block.types.d.ts.map
@@ -1,3 +1,3 @@
1
- import { BlockAsChildProps, BlockDivProps, BlockNativeProps, BlockOwnProps, BlockProps, BlockSize, BlockSpanProps } from "./block.types.js";
2
- import { Block } from "./block.js";
3
- import { BLOCK_A11Y_CONTRACT, BlockA11yContract } from "./block.a11y.js";
1
+ import { BlockAlign, BlockBackground, BlockDirection, BlockJustify, BlockMargin, BlockRadius, BlockRowFrom, BlockShadow, BlockSize, BlockSpace, BlockZIndex, ResponsiveValue } from "../_internal/block-layout.js";
2
+ import { BlockAsChildProps, BlockDivProps, BlockElement, BlockElementProps, BlockNativeProps, BlockOwnProps, BlockProps, BlockSpanProps } from "./block.types.js";
3
+ import { Block } from "./block.js";
@@ -0,0 +1,9 @@
1
+ import { BrandLabelProps, BrandMarkProps, BrandProps } from "./brand.types.js";
2
+
3
+ //#region src/components/brand/brand.d.ts
4
+ declare function Brand<TElement extends "div" | "a" | "span" = "div">(props: BrandProps<TElement>): JSX.Element;
5
+ declare function BrandMark(props: BrandMarkProps): JSX.Element;
6
+ declare function BrandLabel(props: BrandLabelProps): JSX.Element;
7
+ //#endregion
8
+ export { Brand, BrandLabel, BrandMark };
9
+ //# sourceMappingURL=brand.d.ts.map
@@ -0,0 +1,49 @@
1
+ import { classes } from "../_internal/classes.js";
2
+ import { mergeProps } from "../_internal/merge-props.js";
3
+ import { jsx } from "@askrjs/askr/jsx-runtime";
4
+ import { Slot } from "@askrjs/askr/foundations";
5
+ //#region src/components/brand/brand.tsx
6
+ const DEFAULT_ELEMENT = "div";
7
+ function Brand(props) {
8
+ const { as, asChild, children, class: classProp, className, ref, ...rest } = props;
9
+ const finalProps = mergeProps(rest, {
10
+ ref,
11
+ class: classes("brand", classProp, className),
12
+ "data-slot": "brand"
13
+ });
14
+ if (asChild) return /* @__PURE__ */ jsx(Slot, {
15
+ asChild: true,
16
+ ...finalProps,
17
+ children
18
+ });
19
+ return /* @__PURE__ */ jsx(as ?? DEFAULT_ELEMENT, {
20
+ ...finalProps,
21
+ children
22
+ });
23
+ }
24
+ function BrandMark(props) {
25
+ const { children, class: className, ref, ...rest } = props;
26
+ return /* @__PURE__ */ jsx("span", {
27
+ ...mergeProps(rest, {
28
+ ref,
29
+ class: classes("brand-mark", className),
30
+ "data-slot": "brand-mark"
31
+ }),
32
+ children
33
+ });
34
+ }
35
+ function BrandLabel(props) {
36
+ const { children, class: className, ref, ...rest } = props;
37
+ return /* @__PURE__ */ jsx("span", {
38
+ ...mergeProps(rest, {
39
+ ref,
40
+ class: classes("brand-label", className),
41
+ "data-slot": "brand-label"
42
+ }),
43
+ children
44
+ });
45
+ }
46
+ //#endregion
47
+ export { Brand, BrandLabel, BrandMark };
48
+
49
+ //# sourceMappingURL=brand.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brand.js","names":[],"sources":["../../../src/components/brand/brand.tsx"],"sourcesContent":["import { Slot } from \"@askrjs/askr/foundations\";\nimport { classes } from \"../_internal/classes\";\nimport { mergeProps } from \"../_internal/merge-props\";\nimport type {\n BrandAsChildProps,\n BrandLabelProps,\n BrandMarkProps,\n BrandNativeProps,\n BrandProps,\n} from \"./brand.types\";\n\nconst DEFAULT_ELEMENT = \"div\";\n\nexport function Brand<TElement extends \"div\" | \"a\" | \"span\" = \"div\">(\n props: BrandProps<TElement>,\n): JSX.Element {\n const {\n as,\n asChild,\n children,\n class: classProp,\n className,\n ref,\n ...rest\n } = props as BrandNativeProps | BrandAsChildProps;\n\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"brand\", classProp, className),\n \"data-slot\": \"brand\",\n });\n\n if (asChild) {\n return <Slot asChild {...finalProps} children={children as JSX.Element} />;\n }\n\n const Element = (as ?? DEFAULT_ELEMENT) as keyof JSX.IntrinsicElements;\n return <Element {...finalProps}>{children}</Element>;\n}\n\nexport function BrandMark(props: BrandMarkProps): JSX.Element {\n const { children, class: className, ref, ...rest } = props;\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"brand-mark\", className),\n \"data-slot\": \"brand-mark\",\n });\n\n return <span {...finalProps}>{children}</span>;\n}\n\nexport function BrandLabel(props: BrandLabelProps): JSX.Element {\n const { children, class: className, ref, ...rest } = props;\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"brand-label\", className),\n \"data-slot\": \"brand-label\",\n });\n\n return <span {...finalProps}>{children}</span>;\n}\n"],"mappings":";;;;;AAWA,MAAM,kBAAkB;AAExB,SAAgB,MACd,OACa;CACb,MAAM,EACJ,IACA,SACA,UACA,OAAO,WACP,WACA,KACA,GAAG,SACD;CAEJ,MAAM,aAAa,WAAW,MAAM;EAClC;EACA,OAAO,QAAQ,SAAS,WAAW,SAAS;EAC5C,aAAa;CACf,CAAC;CAED,IAAI,SACF,OAAO,oBAAC,MAAD;EAAM,SAAA;EAAQ,GAAI;EAAsB;CAA0B,CAAA;CAI3E,OAAO,oBADU,MAAM,iBAChB;EAAS,GAAI;EAAa;CAAkB,CAAA;AACrD;AAEA,SAAgB,UAAU,OAAoC;CAC5D,MAAM,EAAE,UAAU,OAAO,WAAW,KAAK,GAAG,SAAS;CAOrD,OAAO,oBAAC,QAAD;EAAM,GANM,WAAW,MAAM;GAClC;GACA,OAAO,QAAQ,cAAc,SAAS;GACtC,aAAa;EACf,CAE0B;EAAI;CAAe,CAAA;AAC/C;AAEA,SAAgB,WAAW,OAAqC;CAC9D,MAAM,EAAE,UAAU,OAAO,WAAW,KAAK,GAAG,SAAS;CAOrD,OAAO,oBAAC,QAAD;EAAM,GANM,WAAW,MAAM;GAClC;GACA,OAAO,QAAQ,eAAe,SAAS;GACvC,aAAa;EACf,CAE0B;EAAI;CAAe,CAAA;AAC/C"}
@@ -0,0 +1,31 @@
1
+ import { Ref } from "@askrjs/askr/foundations/utilities";
2
+
3
+ //#region src/components/brand/brand.types.d.ts
4
+ type BrandElement = "div" | "a" | "span";
5
+ type BrandIntrinsicProps<TElement extends BrandElement> = Omit<JSX.IntrinsicElements[TElement], "children" | "ref">;
6
+ type SpanProps = Omit<JSX.IntrinsicElements["span"], "children" | "ref">;
7
+ type BrandNativeProps<TElement extends BrandElement = "div"> = BrandIntrinsicProps<TElement> & {
8
+ as?: TElement;
9
+ asChild?: false;
10
+ children?: unknown;
11
+ ref?: Ref<HTMLElement>;
12
+ };
13
+ type BrandAsChildProps = {
14
+ asChild: true;
15
+ children: JSX.Element;
16
+ class?: string;
17
+ className?: string;
18
+ ref?: Ref<HTMLElement>;
19
+ };
20
+ type BrandProps<TElement extends BrandElement = "div"> = BrandNativeProps<TElement> | BrandAsChildProps;
21
+ type BrandMarkProps = SpanProps & {
22
+ children?: unknown;
23
+ ref?: Ref<HTMLSpanElement>;
24
+ };
25
+ type BrandLabelProps = SpanProps & {
26
+ children?: unknown;
27
+ ref?: Ref<HTMLSpanElement>;
28
+ };
29
+ //#endregion
30
+ export { BrandAsChildProps, BrandElement, BrandLabelProps, BrandMarkProps, BrandNativeProps, BrandProps };
31
+ //# sourceMappingURL=brand.types.d.ts.map
@@ -0,0 +1,2 @@
1
+ import { BrandAsChildProps, BrandElement, BrandLabelProps, BrandMarkProps, BrandNativeProps, BrandProps } from "./brand.types.js";
2
+ import { Brand, BrandLabel, BrandMark } from "./brand.js";
@@ -1,4 +1,4 @@
1
- import { CardActionsProps, CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardProps, CardTitleProps } from "./card.types.js";
1
+ import { CardActionProps, CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardProps, CardTitleProps } from "./card.types.js";
2
2
 
3
3
  //#region src/components/card/card.d.ts
4
4
  declare function Card(props: CardProps): JSX.Element;
@@ -7,7 +7,7 @@ declare function CardTitle(props: CardTitleProps): JSX.Element;
7
7
  declare function CardDescription(props: CardDescriptionProps): JSX.Element;
8
8
  declare function CardContent(props: CardContentProps): JSX.Element;
9
9
  declare function CardFooter(props: CardFooterProps): JSX.Element;
10
- declare function CardActions(props: CardActionsProps): JSX.Element;
10
+ declare function CardAction(props: CardActionProps): JSX.Element;
11
11
  //#endregion
12
- export { Card, CardActions, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
12
+ export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
13
13
  //# sourceMappingURL=card.d.ts.map
@@ -2,21 +2,16 @@ import { classes } from "../_internal/classes.js";
2
2
  import { mergeProps } from "../_internal/merge-props.js";
3
3
  import { jsx } from "@askrjs/askr/jsx-runtime";
4
4
  //#region src/components/card/card.tsx
5
- function normalizePadding(padding) {
6
- return padding && padding !== "md" ? padding : void 0;
7
- }
8
5
  function normalizeVariant(variant) {
9
6
  return variant && variant !== "default" ? variant : void 0;
10
7
  }
11
8
  function Card(props) {
12
- const { children, class: className, variant, padding = "md", ref, ...rest } = props;
9
+ const { children, class: className, variant, ref, ...rest } = props;
13
10
  const normalizedVariant = normalizeVariant(variant);
14
- const normalizedPadding = normalizePadding(padding);
15
11
  return /* @__PURE__ */ jsx("div", {
16
12
  ...mergeProps(rest, {
17
13
  ref,
18
- class: classes("card", normalizedVariant && `card-${normalizedVariant}`, normalizedPadding && `card-${normalizedPadding}`, className),
19
- "data-padding": normalizedPadding,
14
+ class: classes("card", normalizedVariant && `card-${normalizedVariant}`, className),
20
15
  "data-slot": "card",
21
16
  "data-variant": normalizedVariant
22
17
  }),
@@ -78,18 +73,18 @@ function CardFooter(props) {
78
73
  children
79
74
  });
80
75
  }
81
- function CardActions(props) {
76
+ function CardAction(props) {
82
77
  const { children, class: className, ref, ...rest } = props;
83
78
  return /* @__PURE__ */ jsx("div", {
84
79
  ...mergeProps(rest, {
85
80
  ref,
86
- class: classes("card-actions", className),
87
- "data-slot": "card-actions"
81
+ class: classes("card-action", className),
82
+ "data-slot": "card-action"
88
83
  }),
89
84
  children
90
85
  });
91
86
  }
92
87
  //#endregion
93
- export { Card, CardActions, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
88
+ export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
94
89
 
95
90
  //# sourceMappingURL=card.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"card.js","names":[],"sources":["../../../src/components/card/card.tsx"],"sourcesContent":["import { classes } from \"../_internal/classes\";\nimport { mergeProps } from \"../_internal/merge-props\";\nimport type {\n CardActionsProps,\n CardContentProps,\n CardDescriptionProps,\n CardFooterProps,\n CardHeaderProps,\n CardPadding,\n CardProps,\n CardTitleProps,\n CardVariant,\n} from \"./card.types\";\n\nfunction normalizePadding(padding: CardPadding | undefined) {\n return padding && padding !== \"md\" ? padding : undefined;\n}\n\nfunction normalizeVariant(variant: CardVariant | undefined) {\n return variant && variant !== \"default\" ? variant : undefined;\n}\n\nexport function Card(props: CardProps): JSX.Element {\n const { children, class: className, variant, padding = \"md\", ref, ...rest } = props;\n const normalizedVariant = normalizeVariant(variant);\n const normalizedPadding = normalizePadding(padding);\n\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\n \"card\",\n normalizedVariant && `card-${normalizedVariant}`,\n normalizedPadding && `card-${normalizedPadding}`,\n className,\n ),\n \"data-padding\": normalizedPadding,\n \"data-slot\": \"card\",\n \"data-variant\": normalizedVariant,\n });\n\n return <div {...finalProps}>{children}</div>;\n}\n\nexport function CardHeader(props: CardHeaderProps): JSX.Element {\n const { children, class: className, ref, ...rest } = props;\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"card-header\", className),\n \"data-slot\": \"card-header\",\n });\n\n return <div {...finalProps}>{children}</div>;\n}\n\nexport function CardTitle(props: CardTitleProps): JSX.Element {\n const { children, class: className, ref, ...rest } = props;\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"card-title\", className),\n \"data-slot\": \"card-title\",\n });\n\n return <h3 {...finalProps}>{children}</h3>;\n}\n\nexport function CardDescription(props: CardDescriptionProps): JSX.Element {\n const { children, class: className, ref, ...rest } = props;\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"card-description\", className),\n \"data-slot\": \"card-description\",\n });\n\n return <p {...finalProps}>{children}</p>;\n}\n\nexport function CardContent(props: CardContentProps): JSX.Element {\n const { children, class: className, ref, ...rest } = props;\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"card-content\", className),\n \"data-slot\": \"card-content\",\n });\n\n return <div {...finalProps}>{children}</div>;\n}\n\nexport function CardFooter(props: CardFooterProps): JSX.Element {\n const { children, class: className, ref, ...rest } = props;\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"card-footer\", className),\n \"data-slot\": \"card-footer\",\n });\n\n return <div {...finalProps}>{children}</div>;\n}\n\nexport function CardActions(props: CardActionsProps): JSX.Element {\n const { children, class: className, ref, ...rest } = props;\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"card-actions\", className),\n \"data-slot\": \"card-actions\",\n });\n\n return <div {...finalProps}>{children}</div>;\n}\n"],"mappings":";;;;AAcA,SAAS,iBAAiB,SAAkC;CAC1D,OAAO,WAAW,YAAY,OAAO,UAAU,KAAA;AACjD;AAEA,SAAS,iBAAiB,SAAkC;CAC1D,OAAO,WAAW,YAAY,YAAY,UAAU,KAAA;AACtD;AAEA,SAAgB,KAAK,OAA+B;CAClD,MAAM,EAAE,UAAU,OAAO,WAAW,SAAS,UAAU,MAAM,KAAK,GAAG,SAAS;CAC9E,MAAM,oBAAoB,iBAAiB,OAAO;CAClD,MAAM,oBAAoB,iBAAiB,OAAO;CAelD,OAAO,oBAAC,OAAD;EAAK,GAbO,WAAW,MAAM;GAClC;GACA,OAAO,QACL,QACA,qBAAqB,QAAQ,qBAC7B,qBAAqB,QAAQ,qBAC7B,SACF;GACA,gBAAgB;GAChB,aAAa;GACb,gBAAgB;EAClB,CAEyB;EAAI;CAAc,CAAA;AAC7C;AAEA,SAAgB,WAAW,OAAqC;CAC9D,MAAM,EAAE,UAAU,OAAO,WAAW,KAAK,GAAG,SAAS;CAOrD,OAAO,oBAAC,OAAD;EAAK,GANO,WAAW,MAAM;GAClC;GACA,OAAO,QAAQ,eAAe,SAAS;GACvC,aAAa;EACf,CAEyB;EAAI;CAAc,CAAA;AAC7C;AAEA,SAAgB,UAAU,OAAoC;CAC5D,MAAM,EAAE,UAAU,OAAO,WAAW,KAAK,GAAG,SAAS;CAOrD,OAAO,oBAAC,MAAD;EAAI,GANQ,WAAW,MAAM;GAClC;GACA,OAAO,QAAQ,cAAc,SAAS;GACtC,aAAa;EACf,CAEwB;EAAI;CAAa,CAAA;AAC3C;AAEA,SAAgB,gBAAgB,OAA0C;CACxE,MAAM,EAAE,UAAU,OAAO,WAAW,KAAK,GAAG,SAAS;CAOrD,OAAO,oBAAC,KAAD;EAAG,GANS,WAAW,MAAM;GAClC;GACA,OAAO,QAAQ,oBAAoB,SAAS;GAC5C,aAAa;EACf,CAEuB;EAAI;CAAY,CAAA;AACzC;AAEA,SAAgB,YAAY,OAAsC;CAChE,MAAM,EAAE,UAAU,OAAO,WAAW,KAAK,GAAG,SAAS;CAOrD,OAAO,oBAAC,OAAD;EAAK,GANO,WAAW,MAAM;GAClC;GACA,OAAO,QAAQ,gBAAgB,SAAS;GACxC,aAAa;EACf,CAEyB;EAAI;CAAc,CAAA;AAC7C;AAEA,SAAgB,WAAW,OAAqC;CAC9D,MAAM,EAAE,UAAU,OAAO,WAAW,KAAK,GAAG,SAAS;CAOrD,OAAO,oBAAC,OAAD;EAAK,GANO,WAAW,MAAM;GAClC;GACA,OAAO,QAAQ,eAAe,SAAS;GACvC,aAAa;EACf,CAEyB;EAAI;CAAc,CAAA;AAC7C;AAEA,SAAgB,YAAY,OAAsC;CAChE,MAAM,EAAE,UAAU,OAAO,WAAW,KAAK,GAAG,SAAS;CAOrD,OAAO,oBAAC,OAAD;EAAK,GANO,WAAW,MAAM;GAClC;GACA,OAAO,QAAQ,gBAAgB,SAAS;GACxC,aAAa;EACf,CAEyB;EAAI;CAAc,CAAA;AAC7C"}
1
+ {"version":3,"file":"card.js","names":[],"sources":["../../../src/components/card/card.tsx"],"sourcesContent":["import { classes } from \"../_internal/classes\";\nimport { mergeProps } from \"../_internal/merge-props\";\nimport type {\n CardActionProps,\n CardContentProps,\n CardDescriptionProps,\n CardFooterProps,\n CardHeaderProps,\n CardProps,\n CardTitleProps,\n CardVariant,\n} from \"./card.types\";\n\nfunction normalizeVariant(variant: CardVariant | undefined) {\n return variant && variant !== \"default\" ? variant : undefined;\n}\n\nexport function Card(props: CardProps): JSX.Element {\n const { children, class: className, variant, ref, ...rest } = props;\n const normalizedVariant = normalizeVariant(variant);\n\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"card\", normalizedVariant && `card-${normalizedVariant}`, className),\n \"data-slot\": \"card\",\n \"data-variant\": normalizedVariant,\n });\n\n return <div {...finalProps}>{children}</div>;\n}\n\nexport function CardHeader(props: CardHeaderProps): JSX.Element {\n const { children, class: className, ref, ...rest } = props;\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"card-header\", className),\n \"data-slot\": \"card-header\",\n });\n\n return <div {...finalProps}>{children}</div>;\n}\n\nexport function CardTitle(props: CardTitleProps): JSX.Element {\n const { children, class: className, ref, ...rest } = props;\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"card-title\", className),\n \"data-slot\": \"card-title\",\n });\n\n return <h3 {...finalProps}>{children}</h3>;\n}\n\nexport function CardDescription(props: CardDescriptionProps): JSX.Element {\n const { children, class: className, ref, ...rest } = props;\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"card-description\", className),\n \"data-slot\": \"card-description\",\n });\n\n return <p {...finalProps}>{children}</p>;\n}\n\nexport function CardContent(props: CardContentProps): JSX.Element {\n const { children, class: className, ref, ...rest } = props;\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"card-content\", className),\n \"data-slot\": \"card-content\",\n });\n\n return <div {...finalProps}>{children}</div>;\n}\n\nexport function CardFooter(props: CardFooterProps): JSX.Element {\n const { children, class: className, ref, ...rest } = props;\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"card-footer\", className),\n \"data-slot\": \"card-footer\",\n });\n\n return <div {...finalProps}>{children}</div>;\n}\n\nexport function CardAction(props: CardActionProps): JSX.Element {\n const { children, class: className, ref, ...rest } = props;\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"card-action\", className),\n \"data-slot\": \"card-action\",\n });\n\n return <div {...finalProps}>{children}</div>;\n}\n"],"mappings":";;;;AAaA,SAAS,iBAAiB,SAAkC;CAC1D,OAAO,WAAW,YAAY,YAAY,UAAU,KAAA;AACtD;AAEA,SAAgB,KAAK,OAA+B;CAClD,MAAM,EAAE,UAAU,OAAO,WAAW,SAAS,KAAK,GAAG,SAAS;CAC9D,MAAM,oBAAoB,iBAAiB,OAAO;CASlD,OAAO,oBAAC,OAAD;EAAK,GAPO,WAAW,MAAM;GAClC;GACA,OAAO,QAAQ,QAAQ,qBAAqB,QAAQ,qBAAqB,SAAS;GAClF,aAAa;GACb,gBAAgB;EAClB,CAEyB;EAAI;CAAc,CAAA;AAC7C;AAEA,SAAgB,WAAW,OAAqC;CAC9D,MAAM,EAAE,UAAU,OAAO,WAAW,KAAK,GAAG,SAAS;CAOrD,OAAO,oBAAC,OAAD;EAAK,GANO,WAAW,MAAM;GAClC;GACA,OAAO,QAAQ,eAAe,SAAS;GACvC,aAAa;EACf,CAEyB;EAAI;CAAc,CAAA;AAC7C;AAEA,SAAgB,UAAU,OAAoC;CAC5D,MAAM,EAAE,UAAU,OAAO,WAAW,KAAK,GAAG,SAAS;CAOrD,OAAO,oBAAC,MAAD;EAAI,GANQ,WAAW,MAAM;GAClC;GACA,OAAO,QAAQ,cAAc,SAAS;GACtC,aAAa;EACf,CAEwB;EAAI;CAAa,CAAA;AAC3C;AAEA,SAAgB,gBAAgB,OAA0C;CACxE,MAAM,EAAE,UAAU,OAAO,WAAW,KAAK,GAAG,SAAS;CAOrD,OAAO,oBAAC,KAAD;EAAG,GANS,WAAW,MAAM;GAClC;GACA,OAAO,QAAQ,oBAAoB,SAAS;GAC5C,aAAa;EACf,CAEuB;EAAI;CAAY,CAAA;AACzC;AAEA,SAAgB,YAAY,OAAsC;CAChE,MAAM,EAAE,UAAU,OAAO,WAAW,KAAK,GAAG,SAAS;CAOrD,OAAO,oBAAC,OAAD;EAAK,GANO,WAAW,MAAM;GAClC;GACA,OAAO,QAAQ,gBAAgB,SAAS;GACxC,aAAa;EACf,CAEyB;EAAI;CAAc,CAAA;AAC7C;AAEA,SAAgB,WAAW,OAAqC;CAC9D,MAAM,EAAE,UAAU,OAAO,WAAW,KAAK,GAAG,SAAS;CAOrD,OAAO,oBAAC,OAAD;EAAK,GANO,WAAW,MAAM;GAClC;GACA,OAAO,QAAQ,eAAe,SAAS;GACvC,aAAa;EACf,CAEyB;EAAI;CAAc,CAAA;AAC7C;AAEA,SAAgB,WAAW,OAAqC;CAC9D,MAAM,EAAE,UAAU,OAAO,WAAW,KAAK,GAAG,SAAS;CAOrD,OAAO,oBAAC,OAAD;EAAK,GANO,WAAW,MAAM;GAClC;GACA,OAAO,QAAQ,eAAe,SAAS;GACvC,aAAa;EACf,CAEyB;EAAI;CAAc,CAAA;AAC7C"}
@@ -2,40 +2,38 @@ import { Ref } from "@askrjs/askr/foundations/utilities";
2
2
 
3
3
  //#region src/components/card/card.types.d.ts
4
4
  type CardVariant = "default" | "raised";
5
- type CardPadding = "sm" | "md" | "lg";
6
5
  type DivProps = Omit<JSX.IntrinsicElements["div"], "children" | "ref">;
7
6
  type HeadingProps = Omit<JSX.IntrinsicElements["h3"], "children" | "ref">;
8
7
  type ParagraphProps = Omit<JSX.IntrinsicElements["p"], "children" | "ref">;
9
8
  type CardProps = DivProps & {
10
9
  children?: unknown;
11
10
  variant?: CardVariant;
12
- padding?: CardPadding;
13
11
  ref?: Ref<HTMLDivElement>;
14
12
  };
15
13
  type CardHeaderProps = DivProps & {
16
14
  children?: unknown;
17
15
  ref?: Ref<HTMLDivElement>;
18
16
  };
19
- type CardContentProps = DivProps & {
17
+ type CardTitleProps = HeadingProps & {
20
18
  children?: unknown;
21
- ref?: Ref<HTMLDivElement>;
19
+ ref?: Ref<HTMLHeadingElement>;
22
20
  };
23
- type CardFooterProps = DivProps & {
21
+ type CardDescriptionProps = ParagraphProps & {
24
22
  children?: unknown;
25
- ref?: Ref<HTMLDivElement>;
23
+ ref?: Ref<HTMLParagraphElement>;
26
24
  };
27
- type CardActionsProps = DivProps & {
25
+ type CardContentProps = DivProps & {
28
26
  children?: unknown;
29
27
  ref?: Ref<HTMLDivElement>;
30
28
  };
31
- type CardTitleProps = HeadingProps & {
29
+ type CardFooterProps = DivProps & {
32
30
  children?: unknown;
33
- ref?: Ref<HTMLHeadingElement>;
31
+ ref?: Ref<HTMLDivElement>;
34
32
  };
35
- type CardDescriptionProps = ParagraphProps & {
33
+ type CardActionProps = DivProps & {
36
34
  children?: unknown;
37
- ref?: Ref<HTMLParagraphElement>;
35
+ ref?: Ref<HTMLDivElement>;
38
36
  };
39
37
  //#endregion
40
- export { CardActionsProps, CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardPadding, CardProps, CardTitleProps, CardVariant };
38
+ export { CardActionProps, CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardProps, CardTitleProps, CardVariant };
41
39
  //# sourceMappingURL=card.types.d.ts.map
@@ -1,2 +1,2 @@
1
- import { CardActionsProps, CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardPadding, CardProps, CardTitleProps, CardVariant } from "./card.types.js";
2
- import { Card, CardActions, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "./card.js";
1
+ import { CardActionProps, CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardProps, CardTitleProps, CardVariant } from "./card.types.js";
2
+ import { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "./card.js";
@@ -0,0 +1,156 @@
1
+ import { Ref } from "@askrjs/askr/foundations/utilities";
2
+
3
+ //#region src/components/catalog.d.ts
4
+ type CatalogElement = keyof JSX.IntrinsicElements;
5
+ type CatalogComponentProps = Record<string, unknown> & {
6
+ as?: CatalogElement;
7
+ asChild?: boolean;
8
+ children?: unknown;
9
+ class?: string;
10
+ ref?: Ref<HTMLElement>;
11
+ };
12
+ declare function Box(props: CatalogComponentProps): JSX.Element;
13
+ declare function Stack(props: CatalogComponentProps): JSX.Element;
14
+ declare function Inline(props: CatalogComponentProps): JSX.Element;
15
+ declare function Shell(props: CatalogComponentProps & {
16
+ variant?: unknown;
17
+ }): JSX.Element;
18
+ declare function ShellNav(props: CatalogComponentProps): JSX.Element;
19
+ declare function ShellMain(props: CatalogComponentProps): JSX.Element;
20
+ declare function AlertTitle(props: CatalogComponentProps): JSX.Element;
21
+ declare function AlertDescription(props: CatalogComponentProps): JSX.Element;
22
+ declare function Breadcrumb(props: CatalogComponentProps): JSX.Element;
23
+ declare function BreadcrumbList(props: CatalogComponentProps): JSX.Element;
24
+ declare function BreadcrumbItem(props: CatalogComponentProps): JSX.Element;
25
+ declare function BreadcrumbLink(props: CatalogComponentProps): JSX.Element;
26
+ declare function BreadcrumbPage(props: CatalogComponentProps): JSX.Element;
27
+ declare function BreadcrumbSeparator(props: CatalogComponentProps): JSX.Element;
28
+ declare function BreadcrumbEllipsis(props: CatalogComponentProps): JSX.Element;
29
+ declare function Calendar(props: CatalogComponentProps): JSX.Element;
30
+ declare function CalendarHeader(props: CatalogComponentProps): JSX.Element;
31
+ declare function CalendarCaption(props: CatalogComponentProps): JSX.Element;
32
+ declare function CalendarNav(props: CatalogComponentProps): JSX.Element;
33
+ declare function CalendarPreviousButton(props: CatalogComponentProps): JSX.Element;
34
+ declare function CalendarNextButton(props: CatalogComponentProps): JSX.Element;
35
+ declare function CalendarGrid(props: CatalogComponentProps): JSX.Element;
36
+ declare function CalendarHead(props: CatalogComponentProps): JSX.Element;
37
+ declare function CalendarBody(props: CatalogComponentProps): JSX.Element;
38
+ declare function CalendarRow(props: CatalogComponentProps): JSX.Element;
39
+ declare function CalendarCell(props: CatalogComponentProps): JSX.Element;
40
+ declare function CalendarDay(props: CatalogComponentProps & {
41
+ disabled?: boolean;
42
+ outside?: boolean;
43
+ rangeEnd?: boolean;
44
+ rangeMiddle?: boolean;
45
+ rangeStart?: boolean;
46
+ selected?: boolean;
47
+ today?: boolean;
48
+ }): JSX.Element;
49
+ declare function Carousel(props: CatalogComponentProps): JSX.Element;
50
+ declare function CarouselContent(props: CatalogComponentProps): JSX.Element;
51
+ declare function CarouselItem(props: CatalogComponentProps): JSX.Element;
52
+ declare function CarouselPrevious(props: CatalogComponentProps): JSX.Element;
53
+ declare function CarouselNext(props: CatalogComponentProps): JSX.Element;
54
+ declare function Combobox(props: CatalogComponentProps): JSX.Element;
55
+ declare function ComboboxInput(props: CatalogComponentProps): JSX.Element;
56
+ declare function ComboboxList(props: CatalogComponentProps): JSX.Element;
57
+ declare function ComboboxOption(props: CatalogComponentProps): JSX.Element;
58
+ declare function Command(props: CatalogComponentProps): JSX.Element;
59
+ declare function CommandDialog(props: CatalogComponentProps): JSX.Element;
60
+ declare function CommandInput(props: CatalogComponentProps): JSX.Element;
61
+ declare function CommandHeader(props: CatalogComponentProps): JSX.Element;
62
+ declare function CommandList(props: CatalogComponentProps): JSX.Element;
63
+ declare function CommandEmpty(props: CatalogComponentProps): JSX.Element;
64
+ declare function CommandGroup(props: CatalogComponentProps): JSX.Element;
65
+ declare function CommandGroupHeading(props: CatalogComponentProps): JSX.Element;
66
+ declare function CommandItem(props: CatalogComponentProps & {
67
+ active?: boolean;
68
+ disabled?: boolean;
69
+ selected?: boolean;
70
+ }): JSX.Element;
71
+ declare function CommandSeparator(props: CatalogComponentProps): JSX.Element;
72
+ declare function CommandShortcut(props: CatalogComponentProps): JSX.Element;
73
+ declare function DataTable(props: CatalogComponentProps): JSX.Element;
74
+ declare function DatePicker(props: CatalogComponentProps): JSX.Element;
75
+ declare function DatePickerInput(props: CatalogComponentProps): JSX.Element;
76
+ declare function Direction(props: CatalogComponentProps & {
77
+ dir?: "ltr" | "rtl";
78
+ }): JSX.Element;
79
+ declare function Empty(props: CatalogComponentProps): JSX.Element;
80
+ declare function EmptyHeader(props: CatalogComponentProps): JSX.Element;
81
+ declare function EmptyTitle(props: CatalogComponentProps): JSX.Element;
82
+ declare function EmptyDescription(props: CatalogComponentProps): JSX.Element;
83
+ declare function EmptyContent(props: CatalogComponentProps): JSX.Element;
84
+ declare function EmptyMedia(props: CatalogComponentProps): JSX.Element;
85
+ declare function FieldGroup(props: CatalogComponentProps): JSX.Element;
86
+ declare function FieldSet(props: CatalogComponentProps): JSX.Element;
87
+ declare function FieldLegend(props: CatalogComponentProps): JSX.Element;
88
+ declare function FieldLabel(props: CatalogComponentProps): JSX.Element;
89
+ declare function FieldDescription(props: CatalogComponentProps): JSX.Element;
90
+ declare function FieldContent(props: CatalogComponentProps): JSX.Element;
91
+ declare function FieldTitle(props: CatalogComponentProps): JSX.Element;
92
+ declare function FieldSeparator(props: CatalogComponentProps): JSX.Element;
93
+ declare function InputOTP(props: CatalogComponentProps): JSX.Element;
94
+ declare function InputOTPGroup(props: CatalogComponentProps): JSX.Element;
95
+ declare function InputOTPSlot(props: CatalogComponentProps): JSX.Element;
96
+ declare function InputOTPSeparator(props: CatalogComponentProps): JSX.Element;
97
+ declare function Item(props: CatalogComponentProps & {
98
+ active?: boolean;
99
+ size?: "default" | "sm" | "xs";
100
+ variant?: "default" | "outline" | "muted";
101
+ }): JSX.Element;
102
+ declare function ItemGroup(props: CatalogComponentProps): JSX.Element;
103
+ declare function ItemHeader(props: CatalogComponentProps): JSX.Element;
104
+ declare function ItemMedia(props: CatalogComponentProps): JSX.Element;
105
+ declare function ItemContent(props: CatalogComponentProps): JSX.Element;
106
+ declare function ItemTitle(props: CatalogComponentProps): JSX.Element;
107
+ declare function ItemDescription(props: CatalogComponentProps): JSX.Element;
108
+ declare function ItemActions(props: CatalogComponentProps): JSX.Element;
109
+ declare function ItemFooter(props: CatalogComponentProps): JSX.Element;
110
+ declare function Kbd(props: CatalogComponentProps): JSX.Element;
111
+ declare function NativeSelect(props: CatalogComponentProps): JSX.Element;
112
+ declare function NavigationMenu(props: CatalogComponentProps): JSX.Element;
113
+ declare function NavigationMenuList(props: CatalogComponentProps): JSX.Element;
114
+ declare function NavigationMenuItem(props: CatalogComponentProps): JSX.Element;
115
+ declare function NavigationMenuTrigger(props: CatalogComponentProps): JSX.Element;
116
+ declare function NavigationMenuContent(props: CatalogComponentProps): JSX.Element;
117
+ declare function NavigationMenuLink(props: CatalogComponentProps): JSX.Element;
118
+ declare function NavigationMenuViewport(props: CatalogComponentProps): JSX.Element;
119
+ declare function NavigationMenuIndicator(props: CatalogComponentProps): JSX.Element;
120
+ declare function Pagination(props: CatalogComponentProps): JSX.Element;
121
+ declare function PaginationContent(props: CatalogComponentProps): JSX.Element;
122
+ declare function PaginationItem(props: CatalogComponentProps): JSX.Element;
123
+ declare function PaginationLink(props: CatalogComponentProps & {
124
+ active?: boolean;
125
+ }): JSX.Element;
126
+ declare function PaginationPrevious(props: CatalogComponentProps): JSX.Element;
127
+ declare function PaginationNext(props: CatalogComponentProps): JSX.Element;
128
+ declare function PaginationEllipsis(props: CatalogComponentProps): JSX.Element;
129
+ declare function ResizablePanelGroup(props: CatalogComponentProps): JSX.Element;
130
+ declare function ResizablePanel(props: CatalogComponentProps): JSX.Element;
131
+ declare function ResizableHandle(props: CatalogComponentProps): JSX.Element;
132
+ declare function TabsList(props: CatalogComponentProps): JSX.Element;
133
+ declare function TabsTrigger(props: CatalogComponentProps): JSX.Element;
134
+ declare function TabsContent(props: CatalogComponentProps): JSX.Element;
135
+ declare function SheetContent(props: CatalogComponentProps & {
136
+ side?: "top" | "right" | "bottom" | "left";
137
+ }): JSX.Element;
138
+ declare function SheetHeader(props: CatalogComponentProps): JSX.Element;
139
+ declare function SheetFooter(props: CatalogComponentProps): JSX.Element;
140
+ declare function SheetTitle(props: CatalogComponentProps): JSX.Element;
141
+ declare function SheetDescription(props: CatalogComponentProps): JSX.Element;
142
+ declare function Toaster(props: CatalogComponentProps): JSX.Element;
143
+ declare const Sonner: typeof Toaster;
144
+ declare function Typography(props: CatalogComponentProps): JSX.Element;
145
+ declare function TypographyH1(props: CatalogComponentProps): JSX.Element;
146
+ declare function TypographyH2(props: CatalogComponentProps): JSX.Element;
147
+ declare function TypographyH3(props: CatalogComponentProps): JSX.Element;
148
+ declare function TypographyH4(props: CatalogComponentProps): JSX.Element;
149
+ declare function TypographyP(props: CatalogComponentProps): JSX.Element;
150
+ declare function TypographyBlockquote(props: CatalogComponentProps): JSX.Element;
151
+ declare function TypographyList(props: CatalogComponentProps): JSX.Element;
152
+ declare function TypographyLead(props: CatalogComponentProps): JSX.Element;
153
+ declare function TypographyMuted(props: CatalogComponentProps): JSX.Element;
154
+ //#endregion
155
+ export { AlertDescription, AlertTitle, Box, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Calendar, CalendarBody, CalendarCaption, CalendarCell, CalendarDay, CalendarGrid, CalendarHead, CalendarHeader, CalendarNav, CalendarNextButton, CalendarPreviousButton, CalendarRow, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, CatalogComponentProps, Combobox, ComboboxInput, ComboboxList, ComboboxOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandGroupHeading, CommandHeader, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DataTable, DatePicker, DatePickerInput, Direction, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FieldContent, FieldDescription, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Inline, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemTitle, Kbd, NativeSelect, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, ResizableHandle, ResizablePanel, ResizablePanelGroup, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, Shell, ShellMain, ShellNav, Sonner, Stack, TabsContent, TabsList, TabsTrigger, Toaster, Typography, TypographyBlockquote, TypographyH1, TypographyH2, TypographyH3, TypographyH4, TypographyLead, TypographyList, TypographyMuted, TypographyP };
156
+ //# sourceMappingURL=catalog.d.ts.map