@askrjs/themes 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (423) hide show
  1. package/LICENSE +201 -0
  2. package/THEMING.md +930 -0
  3. package/dist/_internal/box-layout.js +115 -0
  4. package/dist/_internal/box-layout.js.map +1 -0
  5. package/dist/_internal/classes.js +8 -0
  6. package/dist/_internal/classes.js.map +1 -0
  7. package/dist/_internal/jsx.js +12 -0
  8. package/dist/_internal/jsx.js.map +1 -0
  9. package/dist/_internal/layout.d.ts +9 -0
  10. package/dist/_internal/layout.js +156 -0
  11. package/dist/_internal/layout.js.map +1 -0
  12. package/dist/_internal/merge-props.js +50 -0
  13. package/dist/_internal/merge-props.js.map +1 -0
  14. package/dist/accessible-icon/accessible-icon.d.ts +7 -0
  15. package/dist/accessible-icon/accessible-icon.js +20 -0
  16. package/dist/accessible-icon/accessible-icon.js.map +1 -0
  17. package/dist/accessible-icon/accessible-icon.types.d.ts +9 -0
  18. package/dist/askr/dist/common/jsx.d.ts +16 -0
  19. package/dist/askr/dist/common/props.d.ts +22 -0
  20. package/dist/askr-themes/src/themes/default/index.css +3736 -0
  21. package/dist/aspect-ratio/aspect-ratio.d.ts +8 -0
  22. package/dist/aspect-ratio/aspect-ratio.js +36 -0
  23. package/dist/aspect-ratio/aspect-ratio.js.map +1 -0
  24. package/dist/aspect-ratio/aspect-ratio.types.d.ts +20 -0
  25. package/dist/aspect-ratio/index.d.ts +2 -0
  26. package/dist/badge/badge.d.ts +8 -0
  27. package/dist/badge/badge.js +26 -0
  28. package/dist/badge/badge.js.map +1 -0
  29. package/dist/badge/badge.types.d.ts +20 -0
  30. package/dist/badge/index.d.ts +2 -0
  31. package/dist/box/box.d.ts +9 -0
  32. package/dist/box/box.js +35 -0
  33. package/dist/box/box.js.map +1 -0
  34. package/dist/box/box.types.d.ts +71 -0
  35. package/dist/box/index.d.ts +2 -0
  36. package/dist/breadcrumb/breadcrumb.d.ts +18 -0
  37. package/dist/breadcrumb/breadcrumb.js +113 -0
  38. package/dist/breadcrumb/breadcrumb.js.map +1 -0
  39. package/dist/breadcrumb/breadcrumb.types.d.ts +64 -0
  40. package/dist/breadcrumb/index.d.ts +2 -0
  41. package/dist/card/card.d.ts +12 -0
  42. package/dist/card/card.js +68 -0
  43. package/dist/card/card.js.map +1 -0
  44. package/dist/card/card.types.d.ts +37 -0
  45. package/dist/card/index.d.ts +2 -0
  46. package/dist/components/_internal/box-layout.d.ts +7 -0
  47. package/dist/components/_internal/classes.d.ts +1 -0
  48. package/dist/components/_internal/jsx.d.ts +8 -0
  49. package/dist/components/_internal/layout.d.ts +31 -0
  50. package/dist/components/_internal/merge-props.d.ts +1 -0
  51. package/dist/components/_internal/style.d.ts +1 -0
  52. package/dist/components/accessible-icon/accessible-icon.d.ts +2 -0
  53. package/dist/components/accessible-icon/accessible-icon.types.d.ts +5 -0
  54. package/dist/components/accessible-icon/index.d.ts +2 -0
  55. package/dist/components/aspect-ratio/aspect-ratio.d.ts +3 -0
  56. package/dist/components/aspect-ratio/aspect-ratio.types.d.ts +15 -0
  57. package/dist/components/aspect-ratio/index.d.ts +2 -0
  58. package/dist/components/badge/badge.a11y.d.ts +13 -0
  59. package/dist/components/badge/badge.d.ts +3 -0
  60. package/dist/components/badge/badge.types.d.ts +15 -0
  61. package/dist/components/badge/index.d.ts +3 -0
  62. package/dist/components/box/box.a11y.d.ts +10 -0
  63. package/dist/components/box/box.d.ts +4 -0
  64. package/dist/components/box/box.types.d.ts +66 -0
  65. package/dist/components/box/index.d.ts +3 -0
  66. package/dist/components/breadcrumb/breadcrumb.a11y.d.ts +13 -0
  67. package/dist/components/breadcrumb/breadcrumb.d.ts +13 -0
  68. package/dist/components/breadcrumb/breadcrumb.types.d.ts +59 -0
  69. package/dist/components/breadcrumb/index.d.ts +3 -0
  70. package/dist/components/card/card.d.ts +7 -0
  71. package/dist/components/card/card.types.d.ts +33 -0
  72. package/dist/components/card/index.d.ts +2 -0
  73. package/dist/components/container/container.a11y.d.ts +16 -0
  74. package/dist/components/container/container.d.ts +3 -0
  75. package/dist/components/container/container.types.d.ts +29 -0
  76. package/dist/components/container/index.d.ts +3 -0
  77. package/dist/components/empty-state/empty-state.d.ts +2 -0
  78. package/dist/components/empty-state/empty-state.types.d.ts +9 -0
  79. package/dist/components/empty-state/index.d.ts +2 -0
  80. package/dist/components/flex/flex.a11y.d.ts +18 -0
  81. package/dist/components/flex/flex.d.ts +4 -0
  82. package/dist/components/flex/flex.types.d.ts +41 -0
  83. package/dist/components/flex/index.d.ts +3 -0
  84. package/dist/components/grid/grid.a11y.d.ts +21 -0
  85. package/dist/components/grid/grid.d.ts +4 -0
  86. package/dist/components/grid/grid.types.d.ts +37 -0
  87. package/dist/components/grid/index.d.ts +3 -0
  88. package/dist/components/header/header.a11y.d.ts +10 -0
  89. package/dist/components/header/header.d.ts +2 -0
  90. package/dist/components/header/header.types.d.ts +5 -0
  91. package/dist/components/header/index.d.ts +3 -0
  92. package/dist/components/index.d.ts +49 -0
  93. package/dist/components/index.js +28 -0
  94. package/dist/components/inline/index.d.ts +6 -0
  95. package/dist/components/logos/create-logo.d.ts +5 -0
  96. package/dist/components/logos/github-logo.d.ts +4 -0
  97. package/dist/components/logos/google-logo.d.ts +4 -0
  98. package/dist/components/logos/index.d.ts +5 -0
  99. package/dist/components/logos/microsoft-logo.d.ts +4 -0
  100. package/dist/components/logos/types.d.ts +14 -0
  101. package/dist/components/navbar/index.d.ts +2 -0
  102. package/dist/components/navbar/navbar.d.ts +6 -0
  103. package/dist/components/navbar/navbar.types.d.ts +24 -0
  104. package/dist/components/section/index.d.ts +3 -0
  105. package/dist/components/section/section.a11y.d.ts +11 -0
  106. package/dist/components/section/section.d.ts +3 -0
  107. package/dist/components/section/section.types.d.ts +17 -0
  108. package/dist/components/separator/index.d.ts +3 -0
  109. package/dist/components/separator/separator.a11y.d.ts +13 -0
  110. package/dist/components/separator/separator.d.ts +3 -0
  111. package/dist/components/separator/separator.types.d.ts +16 -0
  112. package/dist/components/sidebar-layout/index.d.ts +3 -0
  113. package/dist/components/sidebar-layout/sidebar-layout.a11y.d.ts +15 -0
  114. package/dist/components/sidebar-layout/sidebar-layout.d.ts +2 -0
  115. package/dist/components/sidebar-layout/sidebar-layout.types.d.ts +20 -0
  116. package/dist/components/skeleton/index.d.ts +3 -0
  117. package/dist/components/skeleton/skeleton.a11y.d.ts +12 -0
  118. package/dist/components/skeleton/skeleton.d.ts +3 -0
  119. package/dist/components/skeleton/skeleton.types.d.ts +13 -0
  120. package/dist/components/spacer/index.d.ts +3 -0
  121. package/dist/components/spacer/spacer.a11y.d.ts +13 -0
  122. package/dist/components/spacer/spacer.d.ts +3 -0
  123. package/dist/components/spacer/spacer.types.d.ts +24 -0
  124. package/dist/components/spinner/index.d.ts +2 -0
  125. package/dist/components/spinner/spinner.d.ts +2 -0
  126. package/dist/components/spinner/spinner.types.d.ts +5 -0
  127. package/dist/components/stack/index.d.ts +3 -0
  128. package/dist/components/stack/stack.a11y.d.ts +14 -0
  129. package/dist/components/stack/stack.d.ts +3 -0
  130. package/dist/components/stack/stack.types.d.ts +16 -0
  131. package/dist/components/theme/index.d.ts +2 -0
  132. package/dist/components/theme/theme.d.ts +40 -0
  133. package/dist/components/topbar-layout/index.d.ts +3 -0
  134. package/dist/components/topbar-layout/topbar-layout.a11y.d.ts +13 -0
  135. package/dist/components/topbar-layout/topbar-layout.d.ts +2 -0
  136. package/dist/components/topbar-layout/topbar-layout.types.d.ts +12 -0
  137. package/dist/container/container.d.ts +8 -0
  138. package/dist/container/container.js +82 -0
  139. package/dist/container/container.js.map +1 -0
  140. package/dist/container/container.types.d.ts +28 -0
  141. package/dist/container/index.d.ts +2 -0
  142. package/dist/empty-state/empty-state.d.ts +7 -0
  143. package/dist/empty-state/empty-state.js +39 -0
  144. package/dist/empty-state/empty-state.js.map +1 -0
  145. package/dist/empty-state/empty-state.types.d.ts +13 -0
  146. package/dist/flex/flex.d.ts +9 -0
  147. package/dist/flex/flex.js +114 -0
  148. package/dist/flex/flex.js.map +1 -0
  149. package/dist/flex/flex.types.d.ts +41 -0
  150. package/dist/flex/index.d.ts +2 -0
  151. package/dist/grid/grid.d.ts +9 -0
  152. package/dist/grid/grid.js +115 -0
  153. package/dist/grid/grid.js.map +1 -0
  154. package/dist/grid/grid.types.d.ts +40 -0
  155. package/dist/grid/index.d.ts +2 -0
  156. package/dist/header/header.d.ts +7 -0
  157. package/dist/header/header.js +18 -0
  158. package/dist/header/header.js.map +1 -0
  159. package/dist/header/header.types.d.ts +9 -0
  160. package/dist/inline/index.d.ts +7 -0
  161. package/dist/inline/index.js +13 -0
  162. package/dist/inline/index.js.map +1 -0
  163. package/dist/logos/create-logo.js +75 -0
  164. package/dist/logos/create-logo.js.map +1 -0
  165. package/dist/logos/github-logo.d.ts +18 -0
  166. package/dist/logos/github-logo.js +9 -0
  167. package/dist/logos/github-logo.js.map +1 -0
  168. package/dist/logos/google-logo.d.ts +18 -0
  169. package/dist/logos/google-logo.js +23 -0
  170. package/dist/logos/google-logo.js.map +1 -0
  171. package/dist/logos/microsoft-logo.d.ts +18 -0
  172. package/dist/logos/microsoft-logo.js +35 -0
  173. package/dist/logos/microsoft-logo.js.map +1 -0
  174. package/dist/logos/types.d.ts +16 -0
  175. package/dist/navbar/index.d.ts +2 -0
  176. package/dist/navbar/navbar.d.ts +11 -0
  177. package/dist/navbar/navbar.js +57 -0
  178. package/dist/navbar/navbar.js.map +1 -0
  179. package/dist/navbar/navbar.types.d.ts +29 -0
  180. package/dist/section/index.d.ts +2 -0
  181. package/dist/section/section.d.ts +8 -0
  182. package/dist/section/section.js +40 -0
  183. package/dist/section/section.js.map +1 -0
  184. package/dist/section/section.types.d.ts +22 -0
  185. package/dist/separator/index.d.ts +2 -0
  186. package/dist/separator/separator.d.ts +8 -0
  187. package/dist/separator/separator.js +27 -0
  188. package/dist/separator/separator.js.map +1 -0
  189. package/dist/separator/separator.types.d.ts +21 -0
  190. package/dist/sidebar-layout/index.d.ts +2 -0
  191. package/dist/sidebar-layout/sidebar-layout.d.ts +7 -0
  192. package/dist/sidebar-layout/sidebar-layout.js +51 -0
  193. package/dist/sidebar-layout/sidebar-layout.js.map +1 -0
  194. package/dist/sidebar-layout/sidebar-layout.types.d.ts +20 -0
  195. package/dist/skeleton/index.d.ts +2 -0
  196. package/dist/skeleton/skeleton.d.ts +8 -0
  197. package/dist/skeleton/skeleton.js +26 -0
  198. package/dist/skeleton/skeleton.js.map +1 -0
  199. package/dist/skeleton/skeleton.types.d.ts +18 -0
  200. package/dist/spacer/index.d.ts +2 -0
  201. package/dist/spacer/spacer.d.ts +8 -0
  202. package/dist/spacer/spacer.js +47 -0
  203. package/dist/spacer/spacer.js.map +1 -0
  204. package/dist/spacer/spacer.types.d.ts +25 -0
  205. package/dist/spinner/index.d.ts +2 -0
  206. package/dist/spinner/spinner.d.ts +7 -0
  207. package/dist/spinner/spinner.js +16 -0
  208. package/dist/spinner/spinner.js.map +1 -0
  209. package/dist/spinner/spinner.types.d.ts +10 -0
  210. package/dist/stack/index.d.ts +2 -0
  211. package/dist/stack/stack.d.ts +8 -0
  212. package/dist/stack/stack.js +16 -0
  213. package/dist/stack/stack.js.map +1 -0
  214. package/dist/stack/stack.types.d.ts +21 -0
  215. package/dist/theme/index.d.ts +1 -0
  216. package/dist/theme/theme.d.ts +44 -0
  217. package/dist/theme/theme.js +159 -0
  218. package/dist/theme/theme.js.map +1 -0
  219. package/dist/topbar-layout/index.d.ts +2 -0
  220. package/dist/topbar-layout/topbar-layout.d.ts +7 -0
  221. package/dist/topbar-layout/topbar-layout.js +37 -0
  222. package/dist/topbar-layout/topbar-layout.js.map +1 -0
  223. package/dist/topbar-layout/topbar-layout.types.d.ts +13 -0
  224. package/package.json +122 -0
  225. package/scripts/new-theme.js +87 -0
  226. package/src/askr-compat.d.ts +110 -0
  227. package/src/components/_internal/box-layout.ts +156 -0
  228. package/src/components/_internal/classes.ts +5 -0
  229. package/src/components/_internal/jsx.ts +141 -0
  230. package/src/components/_internal/layout.ts +223 -0
  231. package/src/components/_internal/merge-props.ts +89 -0
  232. package/src/components/_internal/style.ts +18 -0
  233. package/src/components/accessible-icon/accessible-icon.tsx +18 -0
  234. package/src/components/accessible-icon/accessible-icon.types.ts +5 -0
  235. package/src/components/accessible-icon/index.ts +2 -0
  236. package/src/components/aspect-ratio/aspect-ratio.tsx +48 -0
  237. package/src/components/aspect-ratio/aspect-ratio.types.ts +19 -0
  238. package/src/components/aspect-ratio/index.ts +2 -0
  239. package/src/components/badge/badge.a11y.ts +15 -0
  240. package/src/components/badge/badge.tsx +21 -0
  241. package/src/components/badge/badge.types.ts +27 -0
  242. package/src/components/badge/index.ts +3 -0
  243. package/src/components/box/box.a11y.ts +11 -0
  244. package/src/components/box/box.tsx +37 -0
  245. package/src/components/box/box.types.ts +75 -0
  246. package/src/components/box/index.ts +11 -0
  247. package/src/components/breadcrumb/breadcrumb.a11y.ts +15 -0
  248. package/src/components/breadcrumb/breadcrumb.tsx +123 -0
  249. package/src/components/breadcrumb/breadcrumb.types.ts +73 -0
  250. package/src/components/breadcrumb/index.ts +24 -0
  251. package/src/components/card/card.tsx +79 -0
  252. package/src/components/card/card.types.ts +40 -0
  253. package/src/components/card/index.ts +12 -0
  254. package/src/components/container/container.a11y.ts +17 -0
  255. package/src/components/container/container.tsx +139 -0
  256. package/src/components/container/container.types.ts +35 -0
  257. package/src/components/container/index.ts +9 -0
  258. package/src/components/empty-state/empty-state.tsx +42 -0
  259. package/src/components/empty-state/empty-state.types.ts +10 -0
  260. package/src/components/empty-state/index.ts +2 -0
  261. package/src/components/flex/flex.a11y.ts +19 -0
  262. package/src/components/flex/flex.tsx +160 -0
  263. package/src/components/flex/flex.types.ts +50 -0
  264. package/src/components/flex/index.ts +16 -0
  265. package/src/components/grid/grid.a11y.ts +22 -0
  266. package/src/components/grid/grid.tsx +172 -0
  267. package/src/components/grid/grid.types.ts +45 -0
  268. package/src/components/grid/index.ts +10 -0
  269. package/src/components/header/header.a11y.ts +11 -0
  270. package/src/components/header/header.tsx +18 -0
  271. package/src/components/header/header.types.ts +6 -0
  272. package/src/components/header/index.ts +3 -0
  273. package/src/components/index.ts +107 -0
  274. package/src/components/inline/index.tsx +28 -0
  275. package/src/components/logos/create-logo.tsx +103 -0
  276. package/src/components/logos/github-logo.tsx +13 -0
  277. package/src/components/logos/google-logo.tsx +34 -0
  278. package/src/components/logos/index.ts +5 -0
  279. package/src/components/logos/microsoft-logo.tsx +10 -0
  280. package/src/components/logos/types.ts +24 -0
  281. package/src/components/navbar/index.ts +9 -0
  282. package/src/components/navbar/navbar.tsx +59 -0
  283. package/src/components/navbar/navbar.types.ts +33 -0
  284. package/src/components/section/index.ts +8 -0
  285. package/src/components/section/section.a11y.ts +12 -0
  286. package/src/components/section/section.tsx +37 -0
  287. package/src/components/section/section.types.ts +22 -0
  288. package/src/components/separator/index.ts +12 -0
  289. package/src/components/separator/separator.a11y.ts +15 -0
  290. package/src/components/separator/separator.tsx +23 -0
  291. package/src/components/separator/separator.types.ts +21 -0
  292. package/src/components/sidebar-layout/index.ts +6 -0
  293. package/src/components/sidebar-layout/sidebar-layout.a11y.ts +16 -0
  294. package/src/components/sidebar-layout/sidebar-layout.tsx +59 -0
  295. package/src/components/sidebar-layout/sidebar-layout.types.ts +22 -0
  296. package/src/components/skeleton/index.ts +3 -0
  297. package/src/components/skeleton/skeleton.a11y.ts +14 -0
  298. package/src/components/skeleton/skeleton.tsx +21 -0
  299. package/src/components/skeleton/skeleton.types.ts +17 -0
  300. package/src/components/spacer/index.ts +9 -0
  301. package/src/components/spacer/spacer.a11y.ts +14 -0
  302. package/src/components/spacer/spacer.tsx +58 -0
  303. package/src/components/spacer/spacer.types.ts +30 -0
  304. package/src/components/spinner/index.ts +2 -0
  305. package/src/components/spinner/spinner.tsx +21 -0
  306. package/src/components/spinner/spinner.types.ts +7 -0
  307. package/src/components/stack/index.ts +3 -0
  308. package/src/components/stack/stack.a11y.ts +15 -0
  309. package/src/components/stack/stack.tsx +13 -0
  310. package/src/components/stack/stack.types.ts +21 -0
  311. package/src/components/theme/index.ts +10 -0
  312. package/src/components/theme/theme.tsx +260 -0
  313. package/src/components/topbar-layout/index.ts +3 -0
  314. package/src/components/topbar-layout/topbar-layout.a11y.ts +14 -0
  315. package/src/components/topbar-layout/topbar-layout.tsx +39 -0
  316. package/src/components/topbar-layout/topbar-layout.types.ts +13 -0
  317. package/src/css.d.ts +1 -0
  318. package/src/index.css +1 -0
  319. package/src/jsx.d.ts +23 -0
  320. package/src/themes/default/index.css +48 -0
  321. package/src/themes/default/styles/actions/button.css +196 -0
  322. package/src/themes/default/styles/actions/toggle-group.css +52 -0
  323. package/src/themes/default/styles/actions/toggle.css +44 -0
  324. package/src/themes/default/styles/base/icon.css +10 -0
  325. package/src/themes/default/styles/base/typography.css +208 -0
  326. package/src/themes/default/styles/base/utilities.css +223 -0
  327. package/src/themes/default/styles/disclosure/accordion.css +62 -0
  328. package/src/themes/default/styles/disclosure/collapsible.css +47 -0
  329. package/src/themes/default/styles/display/avatar.css +25 -0
  330. package/src/themes/default/styles/display/badge.css +51 -0
  331. package/src/themes/default/styles/display/card.css +53 -0
  332. package/src/themes/default/styles/display/coverage.css +248 -0
  333. package/src/themes/default/styles/display/progress-circle.css +18 -0
  334. package/src/themes/default/styles/display/progress.css +18 -0
  335. package/src/themes/default/styles/display/scroll-area.css +34 -0
  336. package/src/themes/default/styles/display/separator.css +15 -0
  337. package/src/themes/default/styles/display/skeleton.css +6 -0
  338. package/src/themes/default/styles/display/spinner.css +9 -0
  339. package/src/themes/default/styles/display/table.css +63 -0
  340. package/src/themes/default/styles/forms/checkbox.css +64 -0
  341. package/src/themes/default/styles/forms/form.css +5 -0
  342. package/src/themes/default/styles/forms/input.css +49 -0
  343. package/src/themes/default/styles/forms/label.css +6 -0
  344. package/src/themes/default/styles/forms/radio-group.css +53 -0
  345. package/src/themes/default/styles/forms/select.css +143 -0
  346. package/src/themes/default/styles/forms/slider.css +75 -0
  347. package/src/themes/default/styles/forms/switch.css +70 -0
  348. package/src/themes/default/styles/forms/textarea.css +37 -0
  349. package/src/themes/default/styles/layout/aspect-ratio.css +5 -0
  350. package/src/themes/default/styles/layout/dashboard-layout.css +15 -0
  351. package/src/themes/default/styles/layout/docs-layout.css +10 -0
  352. package/src/themes/default/styles/layout/layout.css +946 -0
  353. package/src/themes/default/styles/layout/patterns.css +43 -0
  354. package/src/themes/default/styles/layout/responsive-layout.css +209 -0
  355. package/src/themes/default/styles/layout/sidebar.css +10 -0
  356. package/src/themes/default/styles/navigation/breadcrumb.css +39 -0
  357. package/src/themes/default/styles/navigation/menu.css +60 -0
  358. package/src/themes/default/styles/navigation/menubar.css +89 -0
  359. package/src/themes/default/styles/navigation/navigation-menu.css +90 -0
  360. package/src/themes/default/styles/navigation/tabs.css +61 -0
  361. package/src/themes/default/styles/overlays/alert-dialog.css +9 -0
  362. package/src/themes/default/styles/overlays/dialog.css +116 -0
  363. package/src/themes/default/styles/overlays/dropdown-menu.css +109 -0
  364. package/src/themes/default/styles/overlays/hover-card.css +46 -0
  365. package/src/themes/default/styles/overlays/popover.css +72 -0
  366. package/src/themes/default/styles/overlays/toast.css +123 -0
  367. package/src/themes/default/styles/overlays/tooltip.css +83 -0
  368. package/src/themes/default/styles/shell/header.css +36 -0
  369. package/src/themes/default/styles/shell/navbar.css +158 -0
  370. package/src/themes/default/styles/shell/theme.css +35 -0
  371. package/src/themes/default/tokens.css +316 -0
  372. package/templates/theme/index.css +48 -0
  373. package/templates/theme/styles/actions/button.css +196 -0
  374. package/templates/theme/styles/actions/toggle-group.css +52 -0
  375. package/templates/theme/styles/actions/toggle.css +44 -0
  376. package/templates/theme/styles/base/icon.css +10 -0
  377. package/templates/theme/styles/base/typography.css +208 -0
  378. package/templates/theme/styles/base/utilities.css +19 -0
  379. package/templates/theme/styles/disclosure/accordion.css +62 -0
  380. package/templates/theme/styles/disclosure/collapsible.css +47 -0
  381. package/templates/theme/styles/display/avatar.css +25 -0
  382. package/templates/theme/styles/display/badge.css +51 -0
  383. package/templates/theme/styles/display/card.css +53 -0
  384. package/templates/theme/styles/display/coverage.css +146 -0
  385. package/templates/theme/styles/display/progress-circle.css +18 -0
  386. package/templates/theme/styles/display/progress.css +18 -0
  387. package/templates/theme/styles/display/scroll-area.css +34 -0
  388. package/templates/theme/styles/display/separator.css +15 -0
  389. package/templates/theme/styles/display/skeleton.css +6 -0
  390. package/templates/theme/styles/display/spinner.css +9 -0
  391. package/templates/theme/styles/display/table.css +63 -0
  392. package/templates/theme/styles/forms/checkbox.css +64 -0
  393. package/templates/theme/styles/forms/form.css +5 -0
  394. package/templates/theme/styles/forms/input.css +49 -0
  395. package/templates/theme/styles/forms/label.css +6 -0
  396. package/templates/theme/styles/forms/radio-group.css +53 -0
  397. package/templates/theme/styles/forms/select.css +143 -0
  398. package/templates/theme/styles/forms/slider.css +75 -0
  399. package/templates/theme/styles/forms/switch.css +70 -0
  400. package/templates/theme/styles/forms/textarea.css +37 -0
  401. package/templates/theme/styles/layout/aspect-ratio.css +5 -0
  402. package/templates/theme/styles/layout/dashboard-layout.css +16 -0
  403. package/templates/theme/styles/layout/docs-layout.css +11 -0
  404. package/templates/theme/styles/layout/layout.css +1 -0
  405. package/templates/theme/styles/layout/patterns.css +43 -0
  406. package/templates/theme/styles/layout/responsive-layout.css +209 -0
  407. package/templates/theme/styles/layout/sidebar.css +11 -0
  408. package/templates/theme/styles/navigation/breadcrumb.css +31 -0
  409. package/templates/theme/styles/navigation/menu.css +60 -0
  410. package/templates/theme/styles/navigation/menubar.css +89 -0
  411. package/templates/theme/styles/navigation/navigation-menu.css +90 -0
  412. package/templates/theme/styles/navigation/tabs.css +61 -0
  413. package/templates/theme/styles/overlays/alert-dialog.css +9 -0
  414. package/templates/theme/styles/overlays/dialog.css +116 -0
  415. package/templates/theme/styles/overlays/dropdown-menu.css +109 -0
  416. package/templates/theme/styles/overlays/hover-card.css +46 -0
  417. package/templates/theme/styles/overlays/popover.css +72 -0
  418. package/templates/theme/styles/overlays/toast.css +123 -0
  419. package/templates/theme/styles/overlays/tooltip.css +83 -0
  420. package/templates/theme/styles/shell/header.css +36 -0
  421. package/templates/theme/styles/shell/navbar.css +158 -0
  422. package/templates/theme/styles/shell/theme.css +35 -0
  423. package/templates/theme/tokens.css +316 -0
@@ -0,0 +1,75 @@
1
+ import { jsx, jsxs } from "@askrjs/askr/jsx-runtime";
2
+ //#region src/components/logos/create-logo.tsx
3
+ const ICON_SIZE_TOKENS = [
4
+ "sm",
5
+ "md",
6
+ "lg",
7
+ "xl"
8
+ ];
9
+ function isIconSizeToken(value) {
10
+ return typeof value === "string" && ICON_SIZE_TOKENS.includes(value);
11
+ }
12
+ function normalizeIconSizeValue(size) {
13
+ if (typeof size === "number") return `${size}px`;
14
+ return size;
15
+ }
16
+ function resolveIconSizeVariable(size) {
17
+ if (isIconSizeToken(size)) return `var(--ak-icon-size-${size}, var(--ak-icon-size-md, 1.25rem))`;
18
+ return normalizeIconSizeValue(size);
19
+ }
20
+ function camelToKebab(key) {
21
+ return key.replace(/([A-Z])/g, (match) => `-${match.toLowerCase()}`);
22
+ }
23
+ function serializeLogoStyle(style) {
24
+ if (!style) return "";
25
+ if (typeof style === "string") return style.trim();
26
+ return Object.entries(style).filter(([, value]) => value !== void 0 && value !== null).map(([key, value]) => `${camelToKebab(key)}:${String(value)}`).join(";");
27
+ }
28
+ function joinLogoStyle(...styles) {
29
+ const merged = styles.map((style) => style?.trim()).filter(Boolean);
30
+ return merged.length > 0 ? merged.join(";") : void 0;
31
+ }
32
+ function getLogoContractProps({ size = 20, title, style, iconName }) {
33
+ const sizeToken = isIconSizeToken(size) ? size : void 0;
34
+ const decorative = title ? void 0 : "true";
35
+ const logoStyle = joinLogoStyle(`--ak-icon-size:${resolveIconSizeVariable(size)}`, "display:inline-block", "flex-shrink:0", "width:var(--ak-icon-size)", "height:var(--ak-icon-size)", serializeLogoStyle(style));
36
+ return { attrs: {
37
+ xmlns: "http://www.w3.org/2000/svg",
38
+ width: "24",
39
+ height: "24",
40
+ role: "img",
41
+ "aria-hidden": title ? void 0 : "true",
42
+ style: logoStyle,
43
+ "data-slot": "icon",
44
+ "data-icon": iconName,
45
+ "data-size": sizeToken,
46
+ "data-decorative": decorative
47
+ } };
48
+ }
49
+ function createLogo(displayName, viewBox, logoNode) {
50
+ function Logo({ size = 20, title, class: className, style, ref, ...rest }) {
51
+ const { attrs } = getLogoContractProps({
52
+ size,
53
+ title,
54
+ style,
55
+ iconName: displayName
56
+ });
57
+ const children = logoNode.map(([tag, nodeAttrs], index) => jsx(tag, nodeAttrs, index));
58
+ return jsxs("svg", {
59
+ ...rest,
60
+ ...attrs,
61
+ viewBox,
62
+ fill: "none",
63
+ stroke: "none",
64
+ class: className,
65
+ ref,
66
+ children: title ? [jsx("title", { children: title }), ...children] : children
67
+ });
68
+ }
69
+ Logo.displayName = displayName;
70
+ return Logo;
71
+ }
72
+ //#endregion
73
+ export { createLogo };
74
+
75
+ //# sourceMappingURL=create-logo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-logo.js","names":["createSvgNode","createSvgNodes"],"sources":["../../src/components/logos/create-logo.tsx"],"sourcesContent":["import { jsx as createSvgNode, jsxs as createSvgNodes } from \"@askrjs/askr/jsx-runtime\";\nimport type { IconSizeToken, LogoNode, LogoProps, LogoStyleObject } from \"./types\";\n\nconst ICON_SIZE_TOKENS: readonly IconSizeToken[] = [\"sm\", \"md\", \"lg\", \"xl\"];\n\nfunction isIconSizeToken(value: unknown): value is IconSizeToken {\n return typeof value === \"string\" && ICON_SIZE_TOKENS.includes(value as IconSizeToken);\n}\n\nfunction normalizeIconSizeValue(size: number | string): string {\n if (typeof size === \"number\") return `${size}px`;\n return size;\n}\n\nfunction resolveIconSizeVariable(size: number | string): string {\n if (isIconSizeToken(size)) {\n return `var(--ak-icon-size-${size}, var(--ak-icon-size-md, 1.25rem))`;\n }\n\n return normalizeIconSizeValue(size);\n}\n\nfunction camelToKebab(key: string): string {\n return key.replace(/([A-Z])/g, (match) => `-${match.toLowerCase()}`);\n}\n\nfunction serializeLogoStyle(style: string | LogoStyleObject | undefined): string {\n if (!style) return \"\";\n if (typeof style === \"string\") return style.trim();\n\n return Object.entries(style)\n .filter(([, value]) => value !== undefined && value !== null)\n .map(([key, value]) => `${camelToKebab(key)}:${String(value)}`)\n .join(\";\");\n}\n\nfunction joinLogoStyle(...styles: Array<string | undefined>): string | undefined {\n const merged = styles.map((style) => style?.trim()).filter(Boolean);\n return merged.length > 0 ? merged.join(\";\") : undefined;\n}\n\nfunction getLogoContractProps({\n size = 20,\n title,\n style,\n iconName,\n}: Pick<LogoProps, \"iconName\" | \"size\" | \"style\" | \"title\">) {\n const sizeToken = isIconSizeToken(size) ? size : undefined;\n const decorative = title ? undefined : \"true\";\n const resolvedSize = resolveIconSizeVariable(size);\n const logoStyle = joinLogoStyle(\n `--ak-icon-size:${resolvedSize}`,\n \"display:inline-block\",\n \"flex-shrink:0\",\n \"width:var(--ak-icon-size)\",\n \"height:var(--ak-icon-size)\",\n serializeLogoStyle(style),\n );\n\n return {\n attrs: {\n xmlns: \"http://www.w3.org/2000/svg\",\n width: \"24\",\n height: \"24\",\n role: \"img\",\n \"aria-hidden\": title ? undefined : \"true\",\n style: logoStyle,\n \"data-slot\": \"icon\",\n \"data-icon\": iconName,\n \"data-size\": sizeToken,\n \"data-decorative\": decorative,\n },\n };\n}\n\nexport function createLogo(displayName: string, viewBox: string, logoNode: LogoNode) {\n function Logo({ size = 20, title, class: className, style, ref, ...rest }: LogoProps) {\n const { attrs } = getLogoContractProps({\n size,\n title,\n style,\n iconName: displayName,\n });\n\n const children = logoNode.map(([tag, nodeAttrs], index) =>\n createSvgNode(tag, nodeAttrs as Record<string, unknown>, index),\n );\n\n return createSvgNodes(\"svg\", {\n ...rest,\n ...attrs,\n viewBox,\n fill: \"none\",\n stroke: \"none\",\n class: className,\n ref,\n children: title ? [createSvgNode(\"title\", { children: title }), ...children] : children,\n });\n }\n\n Logo.displayName = displayName;\n return Logo;\n}\n"],"mappings":";;AAGA,MAAM,mBAA6C;CAAC;CAAM;CAAM;CAAM;CAAK;AAE3E,SAAS,gBAAgB,OAAwC;AAC/D,QAAO,OAAO,UAAU,YAAY,iBAAiB,SAAS,MAAuB;;AAGvF,SAAS,uBAAuB,MAA+B;AAC7D,KAAI,OAAO,SAAS,SAAU,QAAO,GAAG,KAAK;AAC7C,QAAO;;AAGT,SAAS,wBAAwB,MAA+B;AAC9D,KAAI,gBAAgB,KAAK,CACvB,QAAO,sBAAsB,KAAK;AAGpC,QAAO,uBAAuB,KAAK;;AAGrC,SAAS,aAAa,KAAqB;AACzC,QAAO,IAAI,QAAQ,aAAa,UAAU,IAAI,MAAM,aAAa,GAAG;;AAGtE,SAAS,mBAAmB,OAAqD;AAC/E,KAAI,CAAC,MAAO,QAAO;AACnB,KAAI,OAAO,UAAU,SAAU,QAAO,MAAM,MAAM;AAElD,QAAO,OAAO,QAAQ,MAAM,CACzB,QAAQ,GAAG,WAAW,UAAU,KAAA,KAAa,UAAU,KAAK,CAC5D,KAAK,CAAC,KAAK,WAAW,GAAG,aAAa,IAAI,CAAC,GAAG,OAAO,MAAM,GAAG,CAC9D,KAAK,IAAI;;AAGd,SAAS,cAAc,GAAG,QAAuD;CAC/E,MAAM,SAAS,OAAO,KAAK,UAAU,OAAO,MAAM,CAAC,CAAC,OAAO,QAAQ;AACnE,QAAO,OAAO,SAAS,IAAI,OAAO,KAAK,IAAI,GAAG,KAAA;;AAGhD,SAAS,qBAAqB,EAC5B,OAAO,IACP,OACA,OACA,YAC2D;CAC3D,MAAM,YAAY,gBAAgB,KAAK,GAAG,OAAO,KAAA;CACjD,MAAM,aAAa,QAAQ,KAAA,IAAY;CAEvC,MAAM,YAAY,cAChB,kBAFmB,wBAAwB,KAEb,IAC9B,wBACA,iBACA,6BACA,8BACA,mBAAmB,MAAM,CAC1B;AAED,QAAO,EACL,OAAO;EACL,OAAO;EACP,OAAO;EACP,QAAQ;EACR,MAAM;EACN,eAAe,QAAQ,KAAA,IAAY;EACnC,OAAO;EACP,aAAa;EACb,aAAa;EACb,aAAa;EACb,mBAAmB;EACpB,EACF;;AAGH,SAAgB,WAAW,aAAqB,SAAiB,UAAoB;CACnF,SAAS,KAAK,EAAE,OAAO,IAAI,OAAO,OAAO,WAAW,OAAO,KAAK,GAAG,QAAmB;EACpF,MAAM,EAAE,UAAU,qBAAqB;GACrC;GACA;GACA;GACA,UAAU;GACX,CAAC;EAEF,MAAM,WAAW,SAAS,KAAK,CAAC,KAAK,YAAY,UAC/CA,IAAc,KAAK,WAAsC,MAAM,CAChE;AAED,SAAOC,KAAe,OAAO;GAC3B,GAAG;GACH,GAAG;GACH;GACA,MAAM;GACN,QAAQ;GACR,OAAO;GACP;GACA,UAAU,QAAQ,CAACD,IAAc,SAAS,EAAE,UAAU,OAAO,CAAC,EAAE,GAAG,SAAS,GAAG;GAChF,CAAC;;AAGJ,MAAK,cAAc;AACnB,QAAO"}
@@ -0,0 +1,18 @@
1
+ import { JSXElement } from "../askr/dist/common/jsx.js";
2
+ import { LogoProps } from "./types.js";
3
+
4
+ //#region src/components/logos/github-logo.d.ts
5
+ declare const GitHubLogo: {
6
+ ({
7
+ size,
8
+ title,
9
+ class: className,
10
+ style,
11
+ ref,
12
+ ...rest
13
+ }: LogoProps): JSXElement;
14
+ displayName: string;
15
+ };
16
+ //#endregion
17
+ export { GitHubLogo };
18
+ //# sourceMappingURL=github-logo.d.ts.map
@@ -0,0 +1,9 @@
1
+ import { createLogo } from "./create-logo.js";
2
+ const GitHubLogo = createLogo("GitHubLogo", "0 0 24 24", [["path", {
3
+ fill: "#181717",
4
+ d: "M12 1C5.923 1 1 5.924 1 12.002c0 4.862 3.151 8.987 7.521 10.443.55.102.751-.239.751-.53 0-.262-.01-.956-.015-1.876-3.059.665-3.706-1.475-3.706-1.475-.5-1.271-1.22-1.609-1.22-1.609-.998-.682.076-.668.076-.668 1.104.078 1.685 1.134 1.685 1.134.981 1.682 2.575 1.196 3.203.915.1-.711.384-1.196.698-1.471-2.442-.278-5.01-1.221-5.01-5.436 0-1.201.429-2.184 1.133-2.954-.114-.278-.491-1.397.107-2.913 0 0 .924-.296 3.026 1.128A10.52 10.52 0 0 1 12 6.32c.935.004 1.876.127 2.755.373 2.1-1.424 3.023-1.128 3.023-1.128.6 1.516.223 2.635.109 2.913.706.77 1.131 1.753 1.131 2.954 0 4.225-2.572 5.155-5.02 5.427.395.34.746 1.011.746 2.038 0 1.472-.013 2.659-.013 3.021 0 .294.198.637.757.529C19.851 20.985 23 16.862 23 12.002 23 5.924 18.075 1 12 1Z"
5
+ }]]);
6
+ //#endregion
7
+ export { GitHubLogo };
8
+
9
+ //# sourceMappingURL=github-logo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"github-logo.js","names":[],"sources":["../../src/components/logos/github-logo.tsx"],"sourcesContent":["import { createLogo } from \"./create-logo\";\n\nconst GITHUB_LOGO_NODE = [\n [\n \"path\",\n {\n fill: \"#181717\",\n d: \"M12 1C5.923 1 1 5.924 1 12.002c0 4.862 3.151 8.987 7.521 10.443.55.102.751-.239.751-.53 0-.262-.01-.956-.015-1.876-3.059.665-3.706-1.475-3.706-1.475-.5-1.271-1.22-1.609-1.22-1.609-.998-.682.076-.668.076-.668 1.104.078 1.685 1.134 1.685 1.134.981 1.682 2.575 1.196 3.203.915.1-.711.384-1.196.698-1.471-2.442-.278-5.01-1.221-5.01-5.436 0-1.201.429-2.184 1.133-2.954-.114-.278-.491-1.397.107-2.913 0 0 .924-.296 3.026 1.128A10.52 10.52 0 0 1 12 6.32c.935.004 1.876.127 2.755.373 2.1-1.424 3.023-1.128 3.023-1.128.6 1.516.223 2.635.109 2.913.706.77 1.131 1.753 1.131 2.954 0 4.225-2.572 5.155-5.02 5.427.395.34.746 1.011.746 2.038 0 1.472-.013 2.659-.013 3.021 0 .294.198.637.757.529C19.851 20.985 23 16.862 23 12.002 23 5.924 18.075 1 12 1Z\",\n },\n ],\n] as const;\n\nexport const GitHubLogo = createLogo(\"GitHubLogo\", \"0 0 24 24\", GITHUB_LOGO_NODE);\n"],"mappings":";AAYA,MAAa,aAAa,WAAW,cAAc,aAAa,CAT9D,CACE,QACA;CACE,MAAM;CACN,GAAG;CACJ,CACF,CAG6D,CAAiB"}
@@ -0,0 +1,18 @@
1
+ import { JSXElement } from "../askr/dist/common/jsx.js";
2
+ import { LogoProps } from "./types.js";
3
+
4
+ //#region src/components/logos/google-logo.d.ts
5
+ declare const GoogleLogo: {
6
+ ({
7
+ size,
8
+ title,
9
+ class: className,
10
+ style,
11
+ ref,
12
+ ...rest
13
+ }: LogoProps): JSXElement;
14
+ displayName: string;
15
+ };
16
+ //#endregion
17
+ export { GoogleLogo };
18
+ //# sourceMappingURL=google-logo.d.ts.map
@@ -0,0 +1,23 @@
1
+ import { createLogo } from "./create-logo.js";
2
+ const GoogleLogo = createLogo("GoogleLogo", "0 0 24 24", [
3
+ ["path", {
4
+ fill: "#4285F4",
5
+ d: "M23.49 12.276c0-.816-.073-1.6-.209-2.351H12v4.451h6.437a5.505 5.505 0 0 1-2.387 3.613v2.997h3.861c2.259-2.079 3.579-5.142 3.579-8.71Z"
6
+ }],
7
+ ["path", {
8
+ fill: "#34A853",
9
+ d: "M12 24c3.24 0 5.957-1.074 7.943-2.914l-3.861-2.997c-1.074.72-2.448 1.146-4.082 1.146-3.136 0-5.793-2.118-6.741-4.965H1.267v3.092A11.997 11.997 0 0 0 12 24Z"
10
+ }],
11
+ ["path", {
12
+ fill: "#FBBC05",
13
+ d: "M5.259 14.27A7.192 7.192 0 0 1 4.882 12c0-.788.135-1.553.377-2.27V6.638H1.267A11.997 11.997 0 0 0 0 12c0 1.937.464 3.771 1.267 5.362L5.259 14.27Z"
14
+ }],
15
+ ["path", {
16
+ fill: "#EA4335",
17
+ d: "M12 4.765c1.762 0 3.344.606 4.589 1.795l3.44-3.44C17.952 1.181 15.236 0 12 0 7.307 0 3.267 2.691 1.267 6.638L5.259 9.73c.948-2.847 3.605-4.965 6.741-4.965Z"
18
+ }]
19
+ ]);
20
+ //#endregion
21
+ export { GoogleLogo };
22
+
23
+ //# sourceMappingURL=google-logo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"google-logo.js","names":[],"sources":["../../src/components/logos/google-logo.tsx"],"sourcesContent":["import { createLogo } from \"./create-logo\";\n\nconst GOOGLE_LOGO_NODE = [\n [\n \"path\",\n {\n fill: \"#4285F4\",\n d: \"M23.49 12.276c0-.816-.073-1.6-.209-2.351H12v4.451h6.437a5.505 5.505 0 0 1-2.387 3.613v2.997h3.861c2.259-2.079 3.579-5.142 3.579-8.71Z\",\n },\n ],\n [\n \"path\",\n {\n fill: \"#34A853\",\n d: \"M12 24c3.24 0 5.957-1.074 7.943-2.914l-3.861-2.997c-1.074.72-2.448 1.146-4.082 1.146-3.136 0-5.793-2.118-6.741-4.965H1.267v3.092A11.997 11.997 0 0 0 12 24Z\",\n },\n ],\n [\n \"path\",\n {\n fill: \"#FBBC05\",\n d: \"M5.259 14.27A7.192 7.192 0 0 1 4.882 12c0-.788.135-1.553.377-2.27V6.638H1.267A11.997 11.997 0 0 0 0 12c0 1.937.464 3.771 1.267 5.362L5.259 14.27Z\",\n },\n ],\n [\n \"path\",\n {\n fill: \"#EA4335\",\n d: \"M12 4.765c1.762 0 3.344.606 4.589 1.795l3.44-3.44C17.952 1.181 15.236 0 12 0 7.307 0 3.267 2.691 1.267 6.638L5.259 9.73c.948-2.847 3.605-4.965 6.741-4.965Z\",\n },\n ],\n] as const;\n\nexport const GoogleLogo = createLogo(\"GoogleLogo\", \"0 0 24 24\", GOOGLE_LOGO_NODE);\n"],"mappings":";AAiCA,MAAa,aAAa,WAAW,cAAc,aAAa;CA9B9D,CACE,QACA;EACE,MAAM;EACN,GAAG;EACJ,CACF;CACD,CACE,QACA;EACE,MAAM;EACN,GAAG;EACJ,CACF;CACD,CACE,QACA;EACE,MAAM;EACN,GAAG;EACJ,CACF;CACD,CACE,QACA;EACE,MAAM;EACN,GAAG;EACJ,CACF;CAG6D,CAAiB"}
@@ -0,0 +1,18 @@
1
+ import { JSXElement } from "../askr/dist/common/jsx.js";
2
+ import { LogoProps } from "./types.js";
3
+
4
+ //#region src/components/logos/microsoft-logo.d.ts
5
+ declare const MicrosoftLogo: {
6
+ ({
7
+ size,
8
+ title,
9
+ class: className,
10
+ style,
11
+ ref,
12
+ ...rest
13
+ }: LogoProps): JSXElement;
14
+ displayName: string;
15
+ };
16
+ //#endregion
17
+ export { MicrosoftLogo };
18
+ //# sourceMappingURL=microsoft-logo.d.ts.map
@@ -0,0 +1,35 @@
1
+ import { createLogo } from "./create-logo.js";
2
+ const MicrosoftLogo = createLogo("MicrosoftLogo", "0 0 24 24", [
3
+ ["rect", {
4
+ x: "2",
5
+ y: "2",
6
+ width: "9",
7
+ height: "9",
8
+ fill: "#F25022"
9
+ }],
10
+ ["rect", {
11
+ x: "13",
12
+ y: "2",
13
+ width: "9",
14
+ height: "9",
15
+ fill: "#7FBA00"
16
+ }],
17
+ ["rect", {
18
+ x: "2",
19
+ y: "13",
20
+ width: "9",
21
+ height: "9",
22
+ fill: "#00A4EF"
23
+ }],
24
+ ["rect", {
25
+ x: "13",
26
+ y: "13",
27
+ width: "9",
28
+ height: "9",
29
+ fill: "#FFB900"
30
+ }]
31
+ ]);
32
+ //#endregion
33
+ export { MicrosoftLogo };
34
+
35
+ //# sourceMappingURL=microsoft-logo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"microsoft-logo.js","names":[],"sources":["../../src/components/logos/microsoft-logo.tsx"],"sourcesContent":["import { createLogo } from \"./create-logo\";\n\nconst MICROSOFT_LOGO_NODE = [\n [\"rect\", { x: \"2\", y: \"2\", width: \"9\", height: \"9\", fill: \"#F25022\" }],\n [\"rect\", { x: \"13\", y: \"2\", width: \"9\", height: \"9\", fill: \"#7FBA00\" }],\n [\"rect\", { x: \"2\", y: \"13\", width: \"9\", height: \"9\", fill: \"#00A4EF\" }],\n [\"rect\", { x: \"13\", y: \"13\", width: \"9\", height: \"9\", fill: \"#FFB900\" }],\n] as const;\n\nexport const MicrosoftLogo = createLogo(\"MicrosoftLogo\", \"0 0 24 24\", MICROSOFT_LOGO_NODE);\n"],"mappings":";AASA,MAAa,gBAAgB,WAAW,iBAAiB,aAAa;CANpE,CAAC,QAAQ;EAAE,GAAG;EAAK,GAAG;EAAK,OAAO;EAAK,QAAQ;EAAK,MAAM;EAAW,CAAC;CACtE,CAAC,QAAQ;EAAE,GAAG;EAAM,GAAG;EAAK,OAAO;EAAK,QAAQ;EAAK,MAAM;EAAW,CAAC;CACvE,CAAC,QAAQ;EAAE,GAAG;EAAK,GAAG;EAAM,OAAO;EAAK,QAAQ;EAAK,MAAM;EAAW,CAAC;CACvE,CAAC,QAAQ;EAAE,GAAG;EAAM,GAAG;EAAM,OAAO;EAAK,QAAQ;EAAK,MAAM;EAAW,CAAC;CAGJ,CAAoB"}
@@ -0,0 +1,16 @@
1
+ //#region src/components/logos/types.d.ts
2
+ type LogoStyleObject = Record<string, unknown>;
3
+ type LogoOwnProps = {
4
+ size?: number | string;
5
+ title?: string;
6
+ class?: string;
7
+ style?: string | LogoStyleObject;
8
+ iconName?: string;
9
+ };
10
+ type LogoProps = Omit<JSX.IntrinsicElements["svg"], "children" | "class" | "height" | "ref" | "role" | "stroke" | "style" | "title" | "width"> & LogoOwnProps & {
11
+ children?: unknown;
12
+ ref?: unknown;
13
+ };
14
+ //#endregion
15
+ export { LogoProps };
16
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1,2 @@
1
+ import { NavBrandProps, NavGroupProps, NavItemAsChildProps, NavItemProps, NavItemVariant, NavbarProps } from "./navbar.types.js";
2
+ import { NavBrand, NavGroup, NavItem, Navbar } from "./navbar.js";
@@ -0,0 +1,11 @@
1
+ import { NavBrandProps, NavGroupProps, NavItemAsChildProps, NavItemProps, NavbarProps } from "./navbar.types.js";
2
+
3
+ //#region src/components/navbar/navbar.d.ts
4
+ declare function Navbar(props: NavbarProps): JSX.Element;
5
+ declare function NavBrand(props: NavBrandProps): JSX.Element;
6
+ declare function NavGroup(props: NavGroupProps): JSX.Element;
7
+ declare function NavItem(props: NavItemProps): JSX.Element;
8
+ declare function NavItem(props: NavItemAsChildProps): JSX.Element;
9
+ //#endregion
10
+ export { NavBrand, NavGroup, NavItem, Navbar };
11
+ //# sourceMappingURL=navbar.d.ts.map
@@ -0,0 +1,57 @@
1
+ import { mergeProps } from "../_internal/merge-props.js";
2
+ import { classes } from "../_internal/classes.js";
3
+ import { jsx } from "@askrjs/askr/jsx-runtime";
4
+ import { Slot } from "@askrjs/askr/foundations";
5
+ //#region src/components/navbar/navbar.tsx
6
+ function Navbar(props) {
7
+ const { children, ref, class: className, ...rest } = props;
8
+ return /* @__PURE__ */ jsx("nav", {
9
+ ...rest,
10
+ ref,
11
+ class: classes("navbar", className),
12
+ "data-slot": "navbar",
13
+ children
14
+ });
15
+ }
16
+ function NavBrand(props) {
17
+ const { children, ref, class: className, ...rest } = props;
18
+ return /* @__PURE__ */ jsx("div", {
19
+ ...rest,
20
+ ref,
21
+ class: classes("navbar-brand", className),
22
+ "data-slot": "navbar-brand",
23
+ children
24
+ });
25
+ }
26
+ function NavGroup(props) {
27
+ const { children, ref, class: className, ...rest } = props;
28
+ return /* @__PURE__ */ jsx("div", {
29
+ ...rest,
30
+ ref,
31
+ class: classes("navbar-group", className),
32
+ "data-slot": "navbar-group",
33
+ children
34
+ });
35
+ }
36
+ function NavItem(props) {
37
+ const { asChild, children, ref, class: className, variant = "default", ...rest } = props;
38
+ const finalProps = mergeProps(rest, {
39
+ ref,
40
+ class: classes("navbar-item", variant === "icon" && "navbar-item-icon", className),
41
+ "data-slot": "nav-item",
42
+ "data-variant": variant
43
+ });
44
+ if (asChild) return /* @__PURE__ */ jsx(Slot, {
45
+ asChild: true,
46
+ ...finalProps,
47
+ children
48
+ });
49
+ return /* @__PURE__ */ jsx("a", {
50
+ ...finalProps,
51
+ children
52
+ });
53
+ }
54
+ //#endregion
55
+ export { NavBrand, NavGroup, NavItem, Navbar };
56
+
57
+ //# sourceMappingURL=navbar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navbar.js","names":[],"sources":["../../src/components/navbar/navbar.tsx"],"sourcesContent":["import { Slot } from \"@askrjs/askr/foundations\";\nimport { mergeProps } from \"../_internal/merge-props\";\nimport type {\n NavBrandProps,\n NavGroupProps,\n NavItemAsChildProps,\n NavItemProps,\n NavbarProps,\n} from \"./navbar.types\";\nimport { classes } from \"../_internal/classes\";\n\nexport function Navbar(props: NavbarProps): JSX.Element {\n const { children, ref, class: className, ...rest } = props;\n\n return (\n <nav {...rest} ref={ref} class={classes(\"navbar\", className)} data-slot=\"navbar\">\n {children}\n </nav>\n );\n}\n\nexport function NavBrand(props: NavBrandProps): JSX.Element {\n const { children, ref, class: className, ...rest } = props;\n\n return (\n <div {...rest} ref={ref} class={classes(\"navbar-brand\", className)} data-slot=\"navbar-brand\">\n {children}\n </div>\n );\n}\n\nexport function NavGroup(props: NavGroupProps): JSX.Element {\n const { children, ref, class: className, ...rest } = props;\n\n return (\n <div {...rest} ref={ref} class={classes(\"navbar-group\", className)} data-slot=\"navbar-group\">\n {children}\n </div>\n );\n}\n\nexport function NavItem(props: NavItemProps): JSX.Element;\nexport function NavItem(props: NavItemAsChildProps): JSX.Element;\nexport function NavItem(props: NavItemProps | NavItemAsChildProps): JSX.Element {\n const { asChild, children, ref, class: className, variant = \"default\", ...rest } = props;\n\n const finalProps = mergeProps(rest, {\n ref,\n class: classes(\"navbar-item\", variant === \"icon\" && \"navbar-item-icon\", className),\n \"data-slot\": \"nav-item\",\n \"data-variant\": variant,\n });\n\n if (asChild) {\n return <Slot asChild {...finalProps} children={children} />;\n }\n\n return <a {...finalProps}>{children}</a>;\n}\n"],"mappings":";;;;;AAWA,SAAgB,OAAO,OAAiC;CACtD,MAAM,EAAE,UAAU,KAAK,OAAO,WAAW,GAAG,SAAS;AAErD,QACE,oBAAC,OAAD;EAAK,GAAI;EAAW;EAAK,OAAO,QAAQ,UAAU,UAAU;EAAE,aAAU;EACrE;EACG,CAAA;;AAIV,SAAgB,SAAS,OAAmC;CAC1D,MAAM,EAAE,UAAU,KAAK,OAAO,WAAW,GAAG,SAAS;AAErD,QACE,oBAAC,OAAD;EAAK,GAAI;EAAW;EAAK,OAAO,QAAQ,gBAAgB,UAAU;EAAE,aAAU;EAC3E;EACG,CAAA;;AAIV,SAAgB,SAAS,OAAmC;CAC1D,MAAM,EAAE,UAAU,KAAK,OAAO,WAAW,GAAG,SAAS;AAErD,QACE,oBAAC,OAAD;EAAK,GAAI;EAAW;EAAK,OAAO,QAAQ,gBAAgB,UAAU;EAAE,aAAU;EAC3E;EACG,CAAA;;AAMV,SAAgB,QAAQ,OAAwD;CAC9E,MAAM,EAAE,SAAS,UAAU,KAAK,OAAO,WAAW,UAAU,WAAW,GAAG,SAAS;CAEnF,MAAM,aAAa,WAAW,MAAM;EAClC;EACA,OAAO,QAAQ,eAAe,YAAY,UAAU,oBAAoB,UAAU;EAClF,aAAa;EACb,gBAAgB;EACjB,CAAC;AAEF,KAAI,QACF,QAAO,oBAAC,MAAD;EAAM,SAAA;EAAQ,GAAI;EAAsB;EAAY,CAAA;AAG7D,QAAO,oBAAC,KAAD;EAAG,GAAI;EAAa;EAAa,CAAA"}
@@ -0,0 +1,29 @@
1
+ import { JSXElement, Ref } from "@askrjs/askr/foundations";
2
+
3
+ //#region src/components/navbar/navbar.types.d.ts
4
+ type NavbarProps = Omit<JSX.IntrinsicElements["nav"], "children"> & {
5
+ children?: unknown;
6
+ };
7
+ type NavBrandProps = Omit<JSX.IntrinsicElements["div"], "children"> & {
8
+ children?: unknown;
9
+ };
10
+ type NavGroupProps = Omit<JSX.IntrinsicElements["div"], "children"> & {
11
+ children?: unknown;
12
+ };
13
+ type NavItemVariant = "default" | "icon";
14
+ type NavItemOwnProps = {
15
+ children?: unknown;
16
+ variant?: NavItemVariant;
17
+ };
18
+ type NavItemProps = Omit<JSX.IntrinsicElements["a"], "children" | "ref"> & NavItemOwnProps & {
19
+ asChild?: false;
20
+ ref?: Ref<HTMLAnchorElement>;
21
+ };
22
+ type NavItemAsChildProps = Omit<JSX.IntrinsicElements["a"], "children" | "ref"> & NavItemOwnProps & {
23
+ asChild: true;
24
+ children: JSXElement;
25
+ ref?: Ref<unknown>;
26
+ };
27
+ //#endregion
28
+ export { NavBrandProps, NavGroupProps, NavItemAsChildProps, NavItemProps, NavItemVariant, NavbarProps };
29
+ //# sourceMappingURL=navbar.types.d.ts.map
@@ -0,0 +1,2 @@
1
+ import { SectionAsChildProps, SectionElementProps, SectionOwnProps, SectionProps } from "./section.types.js";
2
+ import { Section } from "./section.js";
@@ -0,0 +1,8 @@
1
+ import { SectionAsChildProps, SectionElementProps } from "./section.types.js";
2
+
3
+ //#region src/components/section/section.d.ts
4
+ declare function Section(props: SectionElementProps): JSX.Element;
5
+ declare function Section(props: SectionAsChildProps): JSX.Element;
6
+ //#endregion
7
+ export { Section };
8
+ //# sourceMappingURL=section.d.ts.map
@@ -0,0 +1,40 @@
1
+ import { mergeProps } from "../_internal/merge-props.js";
2
+ import { serializeResponsiveValueIf } from "../_internal/layout.js";
3
+ import { applyBoxLayoutStyles, splitBoxLayoutProps, withBoxLayoutStyle } from "../_internal/box-layout.js";
4
+ import { jsx } from "@askrjs/askr/jsx-runtime";
5
+ import { Slot } from "@askrjs/askr/foundations";
6
+ //#region src/components/section/section.tsx
7
+ function isSectionSizeToken(value) {
8
+ return typeof value === "string" && [
9
+ "1",
10
+ "2",
11
+ "3",
12
+ "4"
13
+ ].includes(value.trim());
14
+ }
15
+ function Section(props) {
16
+ const { asChild, children, size = "3", ref, style: userStyle, ...rest } = props;
17
+ const { boxProps, rest: passthroughProps } = splitBoxLayoutProps(rest);
18
+ const layoutStyle = {};
19
+ applyBoxLayoutStyles(layoutStyle, boxProps);
20
+ const finalProps = mergeProps(passthroughProps, {
21
+ ref,
22
+ "data-slot": "section",
23
+ "data-ak-layout": "true",
24
+ "data-size": serializeResponsiveValueIf(size, isSectionSizeToken),
25
+ style: withBoxLayoutStyle(layoutStyle, userStyle)
26
+ });
27
+ if (asChild) return /* @__PURE__ */ jsx(Slot, {
28
+ asChild: true,
29
+ ...finalProps,
30
+ children
31
+ });
32
+ return /* @__PURE__ */ jsx("section", {
33
+ ...finalProps,
34
+ children
35
+ });
36
+ }
37
+ //#endregion
38
+ export { Section };
39
+
40
+ //# sourceMappingURL=section.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"section.js","names":[],"sources":["../../src/components/section/section.tsx"],"sourcesContent":["import { Slot } from \"@askrjs/askr/foundations\";\nimport { mergeProps } from \"../_internal/merge-props\";\nimport {\n applyBoxLayoutStyles,\n splitBoxLayoutProps,\n withBoxLayoutStyle,\n} from \"../_internal/box-layout\";\nimport { serializeResponsiveValueIf } from \"../_internal/layout\";\nimport type { SectionAsChildProps, SectionElementProps } from \"./section.types\";\n\nfunction isSectionSizeToken(value: unknown): value is string {\n return typeof value === \"string\" && [\"1\", \"2\", \"3\", \"4\"].includes(value.trim());\n}\n\nexport function Section(props: SectionElementProps): JSX.Element;\nexport function Section(props: SectionAsChildProps): JSX.Element;\nexport function Section(props: SectionElementProps | SectionAsChildProps) {\n const { asChild, children, size = \"3\", ref, style: userStyle, ...rest } = props;\n\n const { boxProps, rest: passthroughProps } = splitBoxLayoutProps(rest);\n const layoutStyle: Record<string, string | number> = {};\n applyBoxLayoutStyles(layoutStyle, boxProps);\n\n const finalProps = mergeProps(passthroughProps, {\n ref,\n \"data-slot\": \"section\",\n \"data-ak-layout\": \"true\",\n \"data-size\": serializeResponsiveValueIf(size, isSectionSizeToken),\n style: withBoxLayoutStyle(layoutStyle, userStyle),\n });\n\n if (asChild) {\n return <Slot asChild {...finalProps} children={children} />;\n }\n\n return <section {...finalProps}>{children}</section>;\n}\n"],"mappings":";;;;;;AAUA,SAAS,mBAAmB,OAAiC;AAC3D,QAAO,OAAO,UAAU,YAAY;EAAC;EAAK;EAAK;EAAK;EAAI,CAAC,SAAS,MAAM,MAAM,CAAC;;AAKjF,SAAgB,QAAQ,OAAkD;CACxE,MAAM,EAAE,SAAS,UAAU,OAAO,KAAK,KAAK,OAAO,WAAW,GAAG,SAAS;CAE1E,MAAM,EAAE,UAAU,MAAM,qBAAqB,oBAAoB,KAAK;CACtE,MAAM,cAA+C,EAAE;AACvD,sBAAqB,aAAa,SAAS;CAE3C,MAAM,aAAa,WAAW,kBAAkB;EAC9C;EACA,aAAa;EACb,kBAAkB;EAClB,aAAa,2BAA2B,MAAM,mBAAmB;EACjE,OAAO,mBAAmB,aAAa,UAAU;EAClD,CAAC;AAEF,KAAI,QACF,QAAO,oBAAC,MAAD;EAAM,SAAA;EAAQ,GAAI;EAAsB;EAAY,CAAA;AAG7D,QAAO,oBAAC,WAAD;EAAS,GAAI;EAAa;EAAmB,CAAA"}
@@ -0,0 +1,22 @@
1
+ import { BoxLayoutOwnProps, LayoutResponsive } from "../box/box.types.js";
2
+ import { JSXElement, Ref } from "@askrjs/askr/foundations";
3
+
4
+ //#region src/components/section/section.types.d.ts
5
+ type SectionOwnProps = BoxLayoutOwnProps & {
6
+ size?: LayoutResponsive<"1" | "2" | "3" | "4">;
7
+ children?: unknown;
8
+ };
9
+ type SectionElementProps = Omit<JSX.IntrinsicElements["section"], "children" | "ref"> & SectionOwnProps & {
10
+ asChild?: false;
11
+ ref?: Ref<HTMLElement>;
12
+ };
13
+ type SectionAsChildProps = SectionOwnProps & {
14
+ asChild: true;
15
+ children: JSXElement;
16
+ ref?: Ref<unknown>;
17
+ style?: JSX.IntrinsicElements["section"]["style"];
18
+ };
19
+ type SectionProps = SectionElementProps | SectionAsChildProps;
20
+ //#endregion
21
+ export { SectionAsChildProps, SectionElementProps, SectionOwnProps, SectionProps };
22
+ //# sourceMappingURL=section.types.d.ts.map
@@ -0,0 +1,2 @@
1
+ import { SeparatorAsChildProps, SeparatorNativeProps, SeparatorOwnProps, SeparatorProps } from "./separator.types.js";
2
+ import { Separator } from "./separator.js";
@@ -0,0 +1,8 @@
1
+ import { SeparatorAsChildProps, SeparatorNativeProps } from "./separator.types.js";
2
+
3
+ //#region src/components/separator/separator.d.ts
4
+ declare function Separator(props: SeparatorNativeProps): JSX.Element;
5
+ declare function Separator(props: SeparatorAsChildProps): JSX.Element;
6
+ //#endregion
7
+ export { Separator };
8
+ //# sourceMappingURL=separator.d.ts.map
@@ -0,0 +1,27 @@
1
+ import { mergeProps } from "../_internal/merge-props.js";
2
+ import { jsx } from "@askrjs/askr/jsx-runtime";
3
+ import { Slot } from "@askrjs/askr/foundations";
4
+ //#region src/components/separator/separator.tsx
5
+ function Separator(props) {
6
+ const { asChild, children, decorative = false, orientation = "horizontal", ref, ...rest } = props;
7
+ const finalProps = mergeProps(rest, {
8
+ ref,
9
+ "data-slot": "separator",
10
+ "data-orientation": orientation,
11
+ role: decorative ? "presentation" : "separator",
12
+ "aria-orientation": decorative ? void 0 : orientation
13
+ });
14
+ if (asChild) return /* @__PURE__ */ jsx(Slot, {
15
+ asChild: true,
16
+ ...finalProps,
17
+ children
18
+ });
19
+ return /* @__PURE__ */ jsx("div", {
20
+ ...finalProps,
21
+ children
22
+ });
23
+ }
24
+ //#endregion
25
+ export { Separator };
26
+
27
+ //# sourceMappingURL=separator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"separator.js","names":[],"sources":["../../src/components/separator/separator.tsx"],"sourcesContent":["import { Slot } from \"@askrjs/askr/foundations\";\nimport { mergeProps } from \"../_internal/merge-props\";\nimport type { SeparatorAsChildProps, SeparatorNativeProps } from \"./separator.types\";\n\nexport function Separator(props: SeparatorNativeProps): JSX.Element;\nexport function Separator(props: SeparatorAsChildProps): JSX.Element;\nexport function Separator(props: SeparatorNativeProps | SeparatorAsChildProps) {\n const { asChild, children, decorative = false, orientation = \"horizontal\", ref, ...rest } = props;\n\n const finalProps = mergeProps(rest, {\n ref,\n \"data-slot\": \"separator\",\n \"data-orientation\": orientation,\n role: decorative ? \"presentation\" : \"separator\",\n \"aria-orientation\": decorative ? undefined : orientation,\n });\n\n if (asChild) {\n return <Slot asChild {...finalProps} children={children} />;\n }\n\n return <div {...finalProps}>{children}</div>;\n}\n"],"mappings":";;;;AAMA,SAAgB,UAAU,OAAqD;CAC7E,MAAM,EAAE,SAAS,UAAU,aAAa,OAAO,cAAc,cAAc,KAAK,GAAG,SAAS;CAE5F,MAAM,aAAa,WAAW,MAAM;EAClC;EACA,aAAa;EACb,oBAAoB;EACpB,MAAM,aAAa,iBAAiB;EACpC,oBAAoB,aAAa,KAAA,IAAY;EAC9C,CAAC;AAEF,KAAI,QACF,QAAO,oBAAC,MAAD;EAAM,SAAA;EAAQ,GAAI;EAAsB;EAAY,CAAA;AAG7D,QAAO,oBAAC,OAAD;EAAK,GAAI;EAAa;EAAe,CAAA"}
@@ -0,0 +1,21 @@
1
+ import { JSXElement, Ref } from "@askrjs/askr/foundations";
2
+
3
+ //#region src/components/separator/separator.types.d.ts
4
+ type SeparatorOwnProps = {
5
+ decorative?: boolean;
6
+ orientation?: "horizontal" | "vertical";
7
+ children?: unknown;
8
+ };
9
+ type SeparatorNativeProps = Omit<JSX.IntrinsicElements["div"], "children" | "ref"> & SeparatorOwnProps & {
10
+ asChild?: false;
11
+ ref?: Ref<HTMLDivElement>;
12
+ };
13
+ type SeparatorAsChildProps = SeparatorOwnProps & {
14
+ asChild: true;
15
+ children: JSXElement;
16
+ ref?: Ref<unknown>;
17
+ };
18
+ type SeparatorProps = SeparatorNativeProps | SeparatorAsChildProps;
19
+ //#endregion
20
+ export { SeparatorAsChildProps, SeparatorNativeProps, SeparatorOwnProps, SeparatorProps };
21
+ //# sourceMappingURL=separator.types.d.ts.map
@@ -0,0 +1,2 @@
1
+ import { SidebarLayoutProps, SidebarPosition } from "./sidebar-layout.types.js";
2
+ import { SidebarLayout } from "./sidebar-layout.js";
@@ -0,0 +1,7 @@
1
+ import { SidebarLayoutProps } from "./sidebar-layout.types.js";
2
+
3
+ //#region src/components/sidebar-layout/sidebar-layout.d.ts
4
+ declare function SidebarLayout(props: SidebarLayoutProps): JSX.Element;
5
+ //#endregion
6
+ export { SidebarLayout };
7
+ //# sourceMappingURL=sidebar-layout.d.ts.map
@@ -0,0 +1,51 @@
1
+ import { isCssLength, mergeLayoutStyles, serializeValueIf } from "../_internal/layout.js";
2
+ import { jsx } from "@askrjs/askr/jsx-runtime";
3
+ //#region src/components/sidebar-layout/sidebar-layout.tsx
4
+ function isThemeGapToken(value) {
5
+ return typeof value === "string" && [
6
+ "sm",
7
+ "md",
8
+ "lg",
9
+ "xl"
10
+ ].includes(value.trim());
11
+ }
12
+ function isThemeSidebarWidthToken(value) {
13
+ return typeof value === "string" && [
14
+ "sm",
15
+ "md",
16
+ "lg",
17
+ "xl"
18
+ ].includes(value.trim());
19
+ }
20
+ function SidebarLayout(props) {
21
+ const { sidebar, children, sidebarPosition = "start", sidebarWidth, gap, collapseBelow, ref, style: userStyle, ...rest } = props;
22
+ const wrapperStyle = {};
23
+ if (isCssLength(gap)) wrapperStyle.gap = gap;
24
+ const sidebarStyle = {};
25
+ if (isCssLength(sidebarWidth)) {
26
+ sidebarStyle.width = sidebarWidth;
27
+ sidebarStyle.flexBasis = sidebarWidth;
28
+ }
29
+ return /* @__PURE__ */ jsx("div", {
30
+ ...rest,
31
+ ref,
32
+ "data-slot": "sidebar-layout",
33
+ "data-sidebar-position": sidebarPosition,
34
+ "data-sidebar-width": serializeValueIf(sidebarWidth, isThemeSidebarWidthToken),
35
+ "data-gap": serializeValueIf(gap, isThemeGapToken),
36
+ "data-collapse-below": collapseBelow,
37
+ style: mergeLayoutStyles(wrapperStyle, userStyle),
38
+ children: [/* @__PURE__ */ jsx("aside", {
39
+ "data-slot": "sidebar",
40
+ style: mergeLayoutStyles(sidebarStyle, void 0),
41
+ children: sidebar
42
+ }, "sidebar-layout-sidebar"), /* @__PURE__ */ jsx("main", {
43
+ "data-slot": "main",
44
+ children
45
+ }, "sidebar-layout-main")]
46
+ });
47
+ }
48
+ //#endregion
49
+ export { SidebarLayout };
50
+
51
+ //# sourceMappingURL=sidebar-layout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar-layout.js","names":[],"sources":["../../src/components/sidebar-layout/sidebar-layout.tsx"],"sourcesContent":["import { isCssLength, mergeLayoutStyles, serializeValueIf } from \"../_internal/layout\";\nimport type { SidebarLayoutProps } from \"./sidebar-layout.types\";\n\nfunction isThemeGapToken(value: unknown): value is string {\n return typeof value === \"string\" && [\"sm\", \"md\", \"lg\", \"xl\"].includes(value.trim());\n}\n\nfunction isThemeSidebarWidthToken(value: unknown): value is string {\n return typeof value === \"string\" && [\"sm\", \"md\", \"lg\", \"xl\"].includes(value.trim());\n}\n\nexport function SidebarLayout(props: SidebarLayoutProps): JSX.Element {\n const {\n sidebar,\n children,\n sidebarPosition = \"start\",\n sidebarWidth,\n gap,\n collapseBelow,\n ref,\n style: userStyle,\n ...rest\n } = props;\n\n const wrapperStyle: Record<string, string | number> = {};\n if (isCssLength(gap)) wrapperStyle.gap = gap!;\n\n const sidebarStyle: Record<string, string | number> = {};\n if (isCssLength(sidebarWidth)) {\n sidebarStyle.width = sidebarWidth!;\n sidebarStyle.flexBasis = sidebarWidth!;\n }\n\n return (\n <div\n {...rest}\n ref={ref}\n data-slot=\"sidebar-layout\"\n data-sidebar-position={sidebarPosition}\n data-sidebar-width={serializeValueIf(sidebarWidth, isThemeSidebarWidthToken)}\n data-gap={serializeValueIf(gap, isThemeGapToken)}\n data-collapse-below={collapseBelow}\n style={mergeLayoutStyles(wrapperStyle, userStyle)}\n >\n {[\n <aside\n key=\"sidebar-layout-sidebar\"\n data-slot=\"sidebar\"\n style={mergeLayoutStyles(sidebarStyle, undefined)}\n >\n {sidebar}\n </aside>,\n <main key=\"sidebar-layout-main\" data-slot=\"main\">\n {children}\n </main>,\n ]}\n </div>\n );\n}\n"],"mappings":";;;AAGA,SAAS,gBAAgB,OAAiC;AACxD,QAAO,OAAO,UAAU,YAAY;EAAC;EAAM;EAAM;EAAM;EAAK,CAAC,SAAS,MAAM,MAAM,CAAC;;AAGrF,SAAS,yBAAyB,OAAiC;AACjE,QAAO,OAAO,UAAU,YAAY;EAAC;EAAM;EAAM;EAAM;EAAK,CAAC,SAAS,MAAM,MAAM,CAAC;;AAGrF,SAAgB,cAAc,OAAwC;CACpE,MAAM,EACJ,SACA,UACA,kBAAkB,SAClB,cACA,KACA,eACA,KACA,OAAO,WACP,GAAG,SACD;CAEJ,MAAM,eAAgD,EAAE;AACxD,KAAI,YAAY,IAAI,CAAE,cAAa,MAAM;CAEzC,MAAM,eAAgD,EAAE;AACxD,KAAI,YAAY,aAAa,EAAE;AAC7B,eAAa,QAAQ;AACrB,eAAa,YAAY;;AAG3B,QACE,oBAAC,OAAD;EACE,GAAI;EACC;EACL,aAAU;EACV,yBAAuB;EACvB,sBAAoB,iBAAiB,cAAc,yBAAyB;EAC5E,YAAU,iBAAiB,KAAK,gBAAgB;EAChD,uBAAqB;EACrB,OAAO,kBAAkB,cAAc,UAAU;YAEhD,CACC,oBAAC,SAAD;GAEE,aAAU;GACV,OAAO,kBAAkB,cAAc,KAAA,EAAU;aAEhD;GACK,EALF,yBAKE,EACR,oBAAC,QAAD;GAAgC,aAAU;GACvC;GACI,EAFG,sBAEH,CACR;EACG,CAAA"}
@@ -0,0 +1,20 @@
1
+ import { Ref } from "@askrjs/askr/foundations";
2
+
3
+ //#region src/components/sidebar-layout/sidebar-layout.types.d.ts
4
+ type SidebarPosition = "start" | "end";
5
+ type SidebarLayoutProps = Omit<JSX.IntrinsicElements["div"], "children" | "ref"> & {
6
+ /** Content rendered into the sidebar slot (aside). */sidebar?: unknown; /** Content rendered into the main slot. */
7
+ children?: unknown; /** Which side the sidebar appears on. Defaults to 'start'. */
8
+ sidebarPosition?: SidebarPosition; /** CSS width for the sidebar. Applied as inline style only when it is a real CSS length. */
9
+ sidebarWidth?: string; /** CSS gap between sidebar and main. Applied as inline style only when it is a real CSS length. */
10
+ gap?: string;
11
+ /**
12
+ * Named breakpoint below which the layout collapses to a single column.
13
+ * Official themes recognize `sm`, `md`, `lg`, and `xl`.
14
+ */
15
+ collapseBelow?: string;
16
+ ref?: Ref<HTMLDivElement>;
17
+ };
18
+ //#endregion
19
+ export { SidebarLayoutProps, SidebarPosition };
20
+ //# sourceMappingURL=sidebar-layout.types.d.ts.map
@@ -0,0 +1,2 @@
1
+ import { SkeletonAsChildProps, SkeletonOwnProps, SkeletonProps } from "./skeleton.types.js";
2
+ import { Skeleton } from "./skeleton.js";
@@ -0,0 +1,8 @@
1
+ import { SkeletonAsChildProps, SkeletonProps } from "./skeleton.types.js";
2
+
3
+ //#region src/components/skeleton/skeleton.d.ts
4
+ declare function Skeleton(props: SkeletonProps): JSX.Element;
5
+ declare function Skeleton(props: SkeletonAsChildProps): JSX.Element;
6
+ //#endregion
7
+ export { Skeleton };
8
+ //# sourceMappingURL=skeleton.d.ts.map