@kismet-ux/constellation 1.9.0 → 1.11.0

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 (406) hide show
  1. package/dist/brand/Logo/logo.css +4 -1
  2. package/dist/form/Checkbox/checkbox.css +48 -34
  3. package/dist/form/Checkbox/checkbox.d.ts +5 -0
  4. package/dist/form/Checkbox/checkbox.d.ts.map +1 -1
  5. package/dist/form/Checkbox/checkbox.js +6 -55
  6. package/dist/form/Checkbox/checkbox.js.map +1 -1
  7. package/dist/form/Checkbox/checkbox.module.scss.js +1 -1
  8. package/dist/form/Combobox/combobox.css +35 -0
  9. package/dist/form/Combobox/combobox.d.ts +41 -0
  10. package/dist/form/Combobox/combobox.d.ts.map +1 -0
  11. package/dist/form/Combobox/combobox.js +152 -0
  12. package/dist/form/Combobox/combobox.js.map +1 -0
  13. package/dist/form/Combobox/combobox.module.scss.js +6 -0
  14. package/dist/form/Combobox/combobox.module.scss.js.map +1 -0
  15. package/dist/form/Combobox/index.d.ts +2 -0
  16. package/dist/form/Combobox/index.d.ts.map +1 -0
  17. package/dist/form/DatePicker/date-picker.d.ts.map +1 -1
  18. package/dist/form/DatePicker/date-picker.js +5 -53
  19. package/dist/form/DatePicker/date-picker.js.map +1 -1
  20. package/dist/form/Input/input.css +12 -0
  21. package/dist/form/Input/input.d.ts +1 -1
  22. package/dist/form/Input/input.d.ts.map +1 -1
  23. package/dist/form/Input/input.js +23 -3
  24. package/dist/form/Input/input.js.map +1 -1
  25. package/dist/form/Select/select.css +46 -2
  26. package/dist/form/Select/select.d.ts +31 -3
  27. package/dist/form/Select/select.d.ts.map +1 -1
  28. package/dist/form/Select/select.js +35 -21
  29. package/dist/form/Select/select.js.map +1 -1
  30. package/dist/form/Select/select.module.scss.js +2 -2
  31. package/dist/form/index.d.ts +1 -0
  32. package/dist/form/index.d.ts.map +1 -1
  33. package/dist/form.d.ts +1 -1
  34. package/dist/form.js +2 -1
  35. package/dist/form.js.map +1 -1
  36. package/dist/hooks/index.d.ts +1 -0
  37. package/dist/hooks/index.d.ts.map +1 -1
  38. package/dist/hooks/layout/index.d.ts +1 -0
  39. package/dist/hooks/layout/index.d.ts.map +1 -1
  40. package/dist/hooks/layout/use-flip.d.ts +37 -0
  41. package/dist/hooks/layout/use-flip.d.ts.map +1 -0
  42. package/dist/hooks/layout/use-flip.js +128 -0
  43. package/dist/hooks/layout/use-flip.js.map +1 -0
  44. package/dist/hooks/use-motion.d.ts +30 -0
  45. package/dist/hooks/use-motion.d.ts.map +1 -0
  46. package/dist/hooks/use-motion.js +93 -0
  47. package/dist/hooks/use-motion.js.map +1 -0
  48. package/dist/index-2nHZOukj.d.ts +200 -0
  49. package/dist/index-3Ui8TAHy.d.ts +200 -0
  50. package/dist/index-59JuNTZm.d.ts +537 -0
  51. package/dist/index-5QXWn0de.d.ts +200 -0
  52. package/dist/index-98ozinMf.d.ts +498 -0
  53. package/dist/index-Ah3YQTri.d.ts +566 -0
  54. package/dist/index-As2iBOIu.d.ts +527 -0
  55. package/dist/index-B1Vw0zoR.d.ts +566 -0
  56. package/dist/index-B25sLBMr.d.ts +498 -0
  57. package/dist/index-B4B8aA9X.d.ts +272 -0
  58. package/dist/index-B97hn7Xp.d.ts +514 -0
  59. package/dist/index-B9B7JjTb.d.ts +204 -0
  60. package/dist/index-BFWt_pYt.d.ts +566 -0
  61. package/dist/index-BFZp_Pu6.d.ts +566 -0
  62. package/dist/index-BGL4DvKQ.d.ts +293 -0
  63. package/dist/index-BGP_J4I2.d.ts +498 -0
  64. package/dist/index-BHhoIUD_.d.ts +354 -0
  65. package/dist/index-BI0iaWmp.d.ts +222 -0
  66. package/dist/index-BMSRpHb6.d.ts +273 -0
  67. package/dist/index-BRQWKmfq.d.ts +566 -0
  68. package/dist/index-BTARYt96.d.ts +537 -0
  69. package/dist/index-BTrpuZdU.d.ts +566 -0
  70. package/dist/index-BWTwKQsp.d.ts +354 -0
  71. package/dist/index-B_05Skyi.d.ts +566 -0
  72. package/dist/index-BcQqBGNu.d.ts +200 -0
  73. package/dist/index-Be23E9xD.d.ts +298 -0
  74. package/dist/index-Bf44Z8ak.d.ts +514 -0
  75. package/dist/index-Bg42sKjg.d.ts +498 -0
  76. package/dist/index-Bg_0OPMx.d.ts +566 -0
  77. package/dist/index-BgjRk9l7.d.ts +537 -0
  78. package/dist/index-BhLEMn3N.d.ts +537 -0
  79. package/dist/index-BiqECuUj.d.ts +204 -0
  80. package/dist/index-BjUQiAs1.d.ts +130 -0
  81. package/dist/index-BlKqvax0.d.ts +204 -0
  82. package/dist/index-Bnb0JFqx.d.ts +514 -0
  83. package/dist/index-BpSD6t7A.d.ts +566 -0
  84. package/dist/index-BpxKwrv_.d.ts +537 -0
  85. package/dist/index-Brh7JZAQ.d.ts +514 -0
  86. package/dist/index-C-n7hM4G.d.ts +354 -0
  87. package/dist/index-C0wKb28S.d.ts +514 -0
  88. package/dist/index-C129uthr.d.ts +566 -0
  89. package/dist/index-C1ef0QtQ.d.ts +204 -0
  90. package/dist/index-C4BACHGE.d.ts +272 -0
  91. package/dist/index-C5JU8WTE.d.ts +514 -0
  92. package/dist/index-C63UYi-T.d.ts +195 -0
  93. package/dist/index-C8LoYkC7.d.ts +250 -0
  94. package/dist/index-C9-ECLyr.d.ts +566 -0
  95. package/dist/index-C9B1F-mr.d.ts +293 -0
  96. package/dist/index-CAVmbwa8.d.ts +514 -0
  97. package/dist/index-CBz-v5eM.d.ts +184 -0
  98. package/dist/index-CCpdo0n4.d.ts +130 -0
  99. package/dist/index-CDC_ZncW.d.ts +566 -0
  100. package/dist/index-CFQj-KtR.d.ts +184 -0
  101. package/dist/index-CFaxW5hv.d.ts +184 -0
  102. package/dist/index-CG9DKbG9.d.ts +498 -0
  103. package/dist/index-CGhG7YeI.d.ts +354 -0
  104. package/dist/index-CHC6kRbR.d.ts +537 -0
  105. package/dist/index-CH_q-5fk.d.ts +537 -0
  106. package/dist/index-CIK_SmBm.d.ts +200 -0
  107. package/dist/index-CJ1KPFOf.d.ts +537 -0
  108. package/dist/index-CJ5FEGRG.d.ts +537 -0
  109. package/dist/index-CKX2VNKk.d.ts +240 -0
  110. package/dist/index-CL7kYZ90.d.ts +231 -0
  111. package/dist/index-CNl03fCW.d.ts +498 -0
  112. package/dist/index-CO8Jq0pz.d.ts +298 -0
  113. package/dist/index-CQ-aS-rp.d.ts +566 -0
  114. package/dist/index-CQjzBv4q.d.ts +537 -0
  115. package/dist/index-CRVO4SlF.d.ts +537 -0
  116. package/dist/index-CSQFy2xe.d.ts +195 -0
  117. package/dist/index-CWM2ewRz.d.ts +566 -0
  118. package/dist/index-CY6Xq36O.d.ts +204 -0
  119. package/dist/index-CYGOs6JT.d.ts +273 -0
  120. package/dist/index-CYPFkjfk.d.ts +204 -0
  121. package/dist/index-C_hJJ1fH.d.ts +527 -0
  122. package/dist/index-CcM-XHTL.d.ts +273 -0
  123. package/dist/index-CdGF_eEO.d.ts +514 -0
  124. package/dist/index-CdJTE9Lh.d.ts +566 -0
  125. package/dist/index-CdOt-pqR.d.ts +537 -0
  126. package/dist/index-CgeR_2Gi.d.ts +220 -0
  127. package/dist/index-CjUoZbDi.d.ts +354 -0
  128. package/dist/index-CjV6KsFc.d.ts +263 -0
  129. package/dist/index-Ck8LtgBW.d.ts +557 -0
  130. package/dist/index-Cknm9FUU.d.ts +299 -0
  131. package/dist/index-Clv3CnXv.d.ts +184 -0
  132. package/dist/index-Cm4wnJ29.d.ts +514 -0
  133. package/dist/index-Cmz3q-CI.d.ts +273 -0
  134. package/dist/index-CnMBzCft.d.ts +514 -0
  135. package/dist/index-CnVW0FnZ.d.ts +272 -0
  136. package/dist/index-CpIHT-uo.d.ts +231 -0
  137. package/dist/index-CtBEDM0b.d.ts +514 -0
  138. package/dist/index-CtVSiQeY.d.ts +130 -0
  139. package/dist/index-Cu107rOs.d.ts +293 -0
  140. package/dist/index-CxyTd3Ag.d.ts +354 -0
  141. package/dist/index-CywSNvOU.d.ts +200 -0
  142. package/dist/index-CzJL7Lro.d.ts +566 -0
  143. package/dist/index-CzJnKY3r.d.ts +272 -0
  144. package/dist/index-D-R9eOxe.d.ts +354 -0
  145. package/dist/index-D-hdgIbs.d.ts +273 -0
  146. package/dist/index-D-slQ9w4.d.ts +537 -0
  147. package/dist/index-D0jdNDaH.d.ts +204 -0
  148. package/dist/index-D1ir--Li.d.ts +566 -0
  149. package/dist/index-D29_-MCZ.d.ts +354 -0
  150. package/dist/index-D2glATpo.d.ts +273 -0
  151. package/dist/index-D6ATtbor.d.ts +298 -0
  152. package/dist/index-D6HktSlo.d.ts +514 -0
  153. package/dist/index-DB4UBCvy.d.ts +537 -0
  154. package/dist/index-DBd0PU9y.d.ts +222 -0
  155. package/dist/index-DE2Nm-iT.d.ts +354 -0
  156. package/dist/index-DEeJuuvm.d.ts +231 -0
  157. package/dist/index-DHhzBSfL.d.ts +498 -0
  158. package/dist/index-DKpWNCb6.d.ts +204 -0
  159. package/dist/index-DMewi97i.d.ts +566 -0
  160. package/dist/index-DN0gtpck.d.ts +354 -0
  161. package/dist/index-DO23vZ-R.d.ts +514 -0
  162. package/dist/index-DTb2-z6E.d.ts +130 -0
  163. package/dist/index-DV-CN7c0.d.ts +231 -0
  164. package/dist/index-DWgCs62z.d.ts +566 -0
  165. package/dist/index-D_6Qu6ia.d.ts +200 -0
  166. package/dist/index-D_vn8O-I.d.ts +293 -0
  167. package/dist/index-Daq4m4Rf.d.ts +514 -0
  168. package/dist/index-Db6cXpr6.d.ts +537 -0
  169. package/dist/index-DbZ1s2E-.d.ts +514 -0
  170. package/dist/index-DbevJPuY.d.ts +354 -0
  171. package/dist/index-DepmPwP7.d.ts +537 -0
  172. package/dist/index-DfnTWQCz.d.ts +514 -0
  173. package/dist/index-Dfu8WhiS.d.ts +273 -0
  174. package/dist/index-DggMYd7c.d.ts +298 -0
  175. package/dist/index-DhS2nQjt.d.ts +200 -0
  176. package/dist/index-Dn3bC8Ki.d.ts +222 -0
  177. package/dist/index-Dn9bGZvU.d.ts +195 -0
  178. package/dist/index-DnDt7A4Y.d.ts +354 -0
  179. package/dist/index-DpdYKBP2.d.ts +498 -0
  180. package/dist/index-DunP9qIK.d.ts +537 -0
  181. package/dist/index-DxO6-qt5.d.ts +498 -0
  182. package/dist/index-ESQ8WM_8.d.ts +130 -0
  183. package/dist/index-GVz409cm.d.ts +222 -0
  184. package/dist/index-HAx-aLZ0.d.ts +273 -0
  185. package/dist/index-Iuzs6nt9.d.ts +498 -0
  186. package/dist/index-LnEpnlTq.d.ts +566 -0
  187. package/dist/index-Mm1i2OdU.d.ts +537 -0
  188. package/dist/index-P0oxVi77.d.ts +537 -0
  189. package/dist/index-Q5JuPFoN.d.ts +293 -0
  190. package/dist/index-RJviLtvo.d.ts +566 -0
  191. package/dist/index-SnQCbfte.d.ts +498 -0
  192. package/dist/index-Th9It0ZT.d.ts +354 -0
  193. package/dist/index-UHHmyQM5.d.ts +272 -0
  194. package/dist/index-VyGmJYQZ.d.ts +537 -0
  195. package/dist/index-WYH70le_.d.ts +195 -0
  196. package/dist/index-Wj9RYtTX.d.ts +273 -0
  197. package/dist/index-Y-wMZeUG.d.ts +298 -0
  198. package/dist/index-Zo2rSdXz.d.ts +273 -0
  199. package/dist/index-ZwpWgV4n.d.ts +272 -0
  200. package/dist/index-_oZ4knIl.d.ts +272 -0
  201. package/dist/index-an222nAK.d.ts +354 -0
  202. package/dist/index-daV0QTe0.d.ts +537 -0
  203. package/dist/index-eGZu2HLC.d.ts +231 -0
  204. package/dist/index-eswPA0Un.d.ts +204 -0
  205. package/dist/index-gf6-wf_1.d.ts +566 -0
  206. package/dist/index-hdVr9Wrv.d.ts +566 -0
  207. package/dist/index-iygiXYw2.d.ts +537 -0
  208. package/dist/index-jR29ZGLD.d.ts +514 -0
  209. package/dist/index-kHgI28TP.d.ts +272 -0
  210. package/dist/index-lY4_UCOs.d.ts +566 -0
  211. package/dist/index-miXK87yJ.d.ts +231 -0
  212. package/dist/index-mwbGtZkk.d.ts +273 -0
  213. package/dist/index-ru2DFXcm.d.ts +195 -0
  214. package/dist/index-uj1ll_u-.d.ts +204 -0
  215. package/dist/index-vfq-aH7U.d.ts +537 -0
  216. package/dist/index-xqUz9XjP.d.ts +537 -0
  217. package/dist/index.css +74 -18
  218. package/dist/index.d.ts +121 -13
  219. package/dist/index.js +34 -28
  220. package/dist/index.js.map +1 -1
  221. package/dist/internal/use-scroll-lock.d.ts +15 -0
  222. package/dist/internal/use-scroll-lock.d.ts.map +1 -1
  223. package/dist/internal/use-scroll-lock.js +26 -8
  224. package/dist/internal/use-scroll-lock.js.map +1 -1
  225. package/dist/layout/AppContent/app-content.css +1 -1
  226. package/dist/layout/AppContentBands/app-content-bands.css +21 -0
  227. package/dist/layout/AppContentBands/app-content-bands.d.ts +26 -0
  228. package/dist/layout/AppContentBands/app-content-bands.d.ts.map +1 -0
  229. package/dist/layout/AppContentBands/app-content-bands.js +65 -0
  230. package/dist/layout/AppContentBands/app-content-bands.js.map +1 -0
  231. package/dist/layout/AppContentBands/app-content-bands.module.scss.js +6 -0
  232. package/dist/layout/AppContentBands/app-content-bands.module.scss.js.map +1 -0
  233. package/dist/layout/AppContentBands/index.d.ts +2 -0
  234. package/dist/layout/AppContentBands/index.d.ts.map +1 -0
  235. package/dist/layout/AppContentFooter/app-content-footer.css +9 -0
  236. package/dist/layout/AppContentFooter/app-content-footer.d.ts +38 -0
  237. package/dist/layout/AppContentFooter/app-content-footer.d.ts.map +1 -0
  238. package/dist/layout/AppContentFooter/app-content-footer.js +42 -0
  239. package/dist/layout/AppContentFooter/app-content-footer.js.map +1 -0
  240. package/dist/layout/AppContentFooter/app-content-footer.module.scss.js +6 -0
  241. package/dist/layout/AppContentFooter/app-content-footer.module.scss.js.map +1 -0
  242. package/dist/layout/AppContentFooter/index.d.ts +2 -0
  243. package/dist/layout/AppContentFooter/index.d.ts.map +1 -0
  244. package/dist/layout/AppContentMain/app-content-main.css +6 -0
  245. package/dist/layout/AppContentMain/app-content-main.d.ts +37 -0
  246. package/dist/layout/AppContentMain/app-content-main.d.ts.map +1 -0
  247. package/dist/layout/AppContentMain/app-content-main.js +41 -0
  248. package/dist/layout/AppContentMain/app-content-main.js.map +1 -0
  249. package/dist/layout/AppContentMain/app-content-main.module.scss.js +6 -0
  250. package/dist/layout/AppContentMain/app-content-main.module.scss.js.map +1 -0
  251. package/dist/layout/AppContentMain/index.d.ts +2 -0
  252. package/dist/layout/AppContentMain/index.d.ts.map +1 -0
  253. package/dist/layout/AppFooter/app-footer.js +1 -1
  254. package/dist/layout/AppSidebar/app-sidebar.js +1 -1
  255. package/dist/layout/AppSidebarHeader/app-sidebar-header.css +2 -3
  256. package/dist/layout/AppSidebarHeader/app-sidebar-header.d.ts +10 -2
  257. package/dist/layout/AppSidebarHeader/app-sidebar-header.d.ts.map +1 -1
  258. package/dist/layout/AppSidebarHeader/app-sidebar-header.js +12 -32
  259. package/dist/layout/AppSidebarHeader/app-sidebar-header.js.map +1 -1
  260. package/dist/layout/Collapse/collapse.css +4 -1
  261. package/dist/layout/Column/column.css +6 -0
  262. package/dist/layout/Column/column.d.ts.map +1 -1
  263. package/dist/layout/Column/column.js +3 -1
  264. package/dist/layout/Column/column.js.map +1 -1
  265. package/dist/layout/Column/column.module.scss.js +1 -1
  266. package/dist/layout/Container/container.css +42 -0
  267. package/dist/layout/Container/container.d.ts.map +1 -1
  268. package/dist/layout/Container/container.js +37 -9
  269. package/dist/layout/Container/container.js.map +1 -1
  270. package/dist/layout/Container/container.module.scss.js +1 -1
  271. package/dist/layout/Grid/grid.css +28 -0
  272. package/dist/layout/Grid/grid.d.ts.map +1 -1
  273. package/dist/layout/Grid/grid.js +40 -4
  274. package/dist/layout/Grid/grid.js.map +1 -1
  275. package/dist/layout/Grid/grid.module.scss.js +1 -1
  276. package/dist/layout/Row/row.css +42 -0
  277. package/dist/layout/Row/row.d.ts.map +1 -1
  278. package/dist/layout/Row/row.js +5 -3
  279. package/dist/layout/Row/row.js.map +1 -1
  280. package/dist/layout/Row/row.module.scss.js +1 -1
  281. package/dist/layout/Sidebar/sidebar.css +4 -2
  282. package/dist/layout/Sidebar/sidebar.js +1 -1
  283. package/dist/layout/index.d.ts +2 -0
  284. package/dist/layout/index.d.ts.map +1 -1
  285. package/dist/layout.d.ts +3 -3
  286. package/dist/layout.js +2 -0
  287. package/dist/layout.js.map +1 -1
  288. package/dist/navigation/DropdownMenu/dropdown-menu.d.ts.map +1 -1
  289. package/dist/navigation/DropdownMenu/dropdown-menu.js +1 -1
  290. package/dist/navigation/DropdownMenu/dropdown-menu.js.map +1 -1
  291. package/dist/navigation/NavUser/nav-user.js +2 -2
  292. package/dist/navigation/Sheet/sheet.css +40 -6
  293. package/dist/navigation/Sheet/sheet.d.ts +22 -0
  294. package/dist/navigation/Sheet/sheet.d.ts.map +1 -1
  295. package/dist/navigation/Sheet/sheet.js +5 -30
  296. package/dist/navigation/Sheet/sheet.js.map +1 -1
  297. package/dist/navigation/Sheet/sheet.module.scss.js +1 -1
  298. package/dist/navigation.d.ts +22 -0
  299. package/dist/row-CuhTBQhK.d.ts +21 -0
  300. package/dist/settings/AppearanceDropdown/appearance-dropdown.js +1 -1
  301. package/dist/settings/AppearanceTabs/appearance-tabs.js +2 -27
  302. package/dist/settings/AppearanceTabs/appearance-tabs.js.map +1 -1
  303. package/dist/tokens.css +59 -17
  304. package/dist/tooltip-1qYeAGE9.d.ts +45 -0
  305. package/dist/tooltip-3IOkYFQ-.d.ts +45 -0
  306. package/dist/tooltip-540OmbEG.d.ts +46 -0
  307. package/dist/tooltip-91Nq_Hl8.d.ts +46 -0
  308. package/dist/tooltip-B56sWYK0.d.ts +46 -0
  309. package/dist/tooltip-BIrIF-4z.d.ts +45 -0
  310. package/dist/tooltip-BOipKW5l.d.ts +46 -0
  311. package/dist/tooltip-BPC0RH8i.d.ts +46 -0
  312. package/dist/tooltip-BST1BOCn.d.ts +45 -0
  313. package/dist/tooltip-BhuxNQwX.d.ts +45 -0
  314. package/dist/tooltip-BpAJwi3K.d.ts +46 -0
  315. package/dist/tooltip-C0LBu2Iu.d.ts +45 -0
  316. package/dist/tooltip-C1ZwALiG.d.ts +45 -0
  317. package/dist/tooltip-C55-HA0w.d.ts +45 -0
  318. package/dist/tooltip-CHn6WuDv.d.ts +46 -0
  319. package/dist/tooltip-CNjH7zKO.d.ts +45 -0
  320. package/dist/tooltip-CSBby1OT.d.ts +45 -0
  321. package/dist/tooltip-CXFRzR0L.d.ts +45 -0
  322. package/dist/tooltip-ChpsbkOU.d.ts +46 -0
  323. package/dist/tooltip-CspTy2ZW.d.ts +46 -0
  324. package/dist/tooltip-CvComAZD.d.ts +46 -0
  325. package/dist/tooltip-D19vhhRn.d.ts +45 -0
  326. package/dist/tooltip-D32S1g-7.d.ts +46 -0
  327. package/dist/tooltip-DAvBN683.d.ts +45 -0
  328. package/dist/tooltip-DQz4_i4m.d.ts +45 -0
  329. package/dist/tooltip-DVYPUAb1.d.ts +46 -0
  330. package/dist/tooltip-DXoSckt9.d.ts +46 -0
  331. package/dist/tooltip-Dtoq3bn_.d.ts +46 -0
  332. package/dist/tooltip-DxO_DWMO.d.ts +46 -0
  333. package/dist/tooltip-DxdGb3dX.d.ts +45 -0
  334. package/dist/tooltip-DzAzC0d7.d.ts +45 -0
  335. package/dist/tooltip-Lk4RpuSh.d.ts +45 -0
  336. package/dist/tooltip-ReFyHDhU.d.ts +45 -0
  337. package/dist/tooltip-_wdlSYAb.d.ts +46 -0
  338. package/dist/tooltip-nKcM19C9.d.ts +45 -0
  339. package/dist/types/layout/container.d.ts +28 -1
  340. package/dist/types/layout/container.d.ts.map +1 -1
  341. package/dist/types/layout/grid.d.ts +42 -0
  342. package/dist/types/layout/grid.d.ts.map +1 -1
  343. package/dist/types/layout/row.d.ts +7 -0
  344. package/dist/types/layout/row.d.ts.map +1 -1
  345. package/dist/typography/Typography/typography-variants.d.ts +3 -0
  346. package/dist/typography/Typography/typography-variants.d.ts.map +1 -1
  347. package/dist/typography/Typography/typography-variants.js +25 -0
  348. package/dist/typography/Typography/typography-variants.js.map +1 -1
  349. package/dist/typography/Typography/typography.css +105 -41
  350. package/dist/typography/Typography/typography.d.ts +20 -0
  351. package/dist/typography/Typography/typography.d.ts.map +1 -1
  352. package/dist/typography/Typography/typography.js +11 -2
  353. package/dist/typography/Typography/typography.js.map +1 -1
  354. package/dist/typography/Typography/typography.module.scss.js +1 -1
  355. package/dist/typography-CTGVc_Gg.d.ts +41 -0
  356. package/dist/typography.d.ts +2 -2
  357. package/dist/ui/Alert/alert-provider.d.ts.map +1 -1
  358. package/dist/ui/Alert/alert-provider.js +1 -1
  359. package/dist/ui/Alert/alert-provider.js.map +1 -1
  360. package/dist/ui/Button/button-variants.d.ts +1 -0
  361. package/dist/ui/Button/button-variants.d.ts.map +1 -1
  362. package/dist/ui/Button/button-variants.js +3 -0
  363. package/dist/ui/Button/button-variants.js.map +1 -1
  364. package/dist/ui/Button/button.css +68 -14
  365. package/dist/ui/Button/button.d.ts.map +1 -1
  366. package/dist/ui/Button/button.js +2 -2
  367. package/dist/ui/Button/button.js.map +1 -1
  368. package/dist/ui/Button/button.module.scss.js +1 -1
  369. package/dist/ui/Chip/chip.css +32 -11
  370. package/dist/ui/Chip/chip.d.ts +16 -0
  371. package/dist/ui/Chip/chip.d.ts.map +1 -1
  372. package/dist/ui/Chip/chip.js +4 -2
  373. package/dist/ui/Chip/chip.js.map +1 -1
  374. package/dist/ui/CodeBlock/code-block.css +8 -3
  375. package/dist/ui/Dialog/dialog.css +70 -0
  376. package/dist/ui/Dialog/dialog.d.ts +45 -2
  377. package/dist/ui/Dialog/dialog.d.ts.map +1 -1
  378. package/dist/ui/Dialog/dialog.js +256 -7
  379. package/dist/ui/Dialog/dialog.js.map +1 -1
  380. package/dist/ui/Dialog/dialog.module.scss.js +1 -1
  381. package/dist/ui/Icon/icon.css +14 -7
  382. package/dist/ui/ProgressBar/progress-bar.css +10 -3
  383. package/dist/ui/StatCard/stat-card.css +13 -0
  384. package/dist/ui/StatCard/stat-card.d.ts +9 -0
  385. package/dist/ui/StatCard/stat-card.d.ts.map +1 -1
  386. package/dist/ui/StatCard/stat-card.js +2 -2
  387. package/dist/ui/StatCard/stat-card.js.map +1 -1
  388. package/dist/ui/StatusDot/status-dot.css +4 -1
  389. package/dist/ui/StepProgress/step-progress.css +12 -4
  390. package/dist/ui/Switch/switch.css +6 -2
  391. package/dist/ui/Tooltip/tooltip.d.ts.map +1 -1
  392. package/dist/ui/Tooltip/tooltip.js +1 -1
  393. package/dist/ui/Tooltip/tooltip.js.map +1 -1
  394. package/dist/ui.d.ts +3 -3
  395. package/dist/user/UserInfo/user-info.js +1 -1
  396. package/dist/utils/index.d.ts +1 -0
  397. package/dist/utils/index.d.ts.map +1 -1
  398. package/dist/utils/portal.d.ts +34 -0
  399. package/dist/utils/portal.d.ts.map +1 -0
  400. package/dist/utils/portal.js +40 -0
  401. package/dist/utils/portal.js.map +1 -0
  402. package/dist/utils.d.ts +35 -1
  403. package/dist/utils.js +1 -0
  404. package/dist/utils.js.map +1 -1
  405. package/package.json +3 -2
  406. package/src/styles/_mixins.scss +30 -0
@@ -1,3 +1,15 @@
1
+ @charset "UTF-8";
2
+ /*
3
+ * Capped and centred; see ContainerProps.measure. Outside `.styled` on
4
+ * purpose — a measure is a layout decision and applies whether or not the
5
+ * container paints itself.
6
+ */
7
+ .container-module_measure__2XZpb {
8
+ margin-inline: auto;
9
+ max-width: var(--container-measure);
10
+ width: 100%;
11
+ }
12
+
1
13
  .container-module_styled__lBvLX {
2
14
  border-width: 0;
3
15
  display: flex;
@@ -162,12 +174,34 @@
162
174
  .container-module_styled__lBvLX.container-module_padding-sm__6zyxP {
163
175
  padding: 0.75rem 1rem;
164
176
  }
177
+ .container-module_styled__lBvLX.container-module_padding-xs__tMiKO {
178
+ padding: 0.5rem 0.75rem;
179
+ }
165
180
  .container-module_styled__lBvLX.container-module_padding-none__9BcyG {
166
181
  padding: 0;
167
182
  }
183
+ .container-module_styled__lBvLX {
184
+ /*
185
+ * One edge as a rule, in `--container-color`. Deliberately drawn with
186
+ * `border-<edge>` rather than a pseudo-element so it participates in the
187
+ * box model and cannot overlap rounded corners.
188
+ */
189
+ }
168
190
  .container-module_styled__lBvLX.container-module_outlined__cT6vl {
169
191
  border: 1px solid var(--container-color, var(--divider));
170
192
  }
193
+ .container-module_styled__lBvLX.container-module_accent-left__nbg_w {
194
+ border-left: 3px solid var(--container-accent, var(--container-color, var(--divider)));
195
+ }
196
+ .container-module_styled__lBvLX.container-module_accent-right__BnLgK {
197
+ border-right: 3px solid var(--container-accent, var(--container-color, var(--divider)));
198
+ }
199
+ .container-module_styled__lBvLX.container-module_accent-top__ayLtX {
200
+ border-top: 3px solid var(--container-accent, var(--container-color, var(--divider)));
201
+ }
202
+ .container-module_styled__lBvLX.container-module_accent-bottom__J4gt7 {
203
+ border-bottom: 3px solid var(--container-accent, var(--container-color, var(--divider)));
204
+ }
171
205
  .container-module_styled__lBvLX.container-module_primary__j-bXY {
172
206
  --themed-main: var(--primary-main);
173
207
  --themed-dark: var(--primary-dark);
@@ -433,10 +467,18 @@ html:not(.dark) .container-module_styled__lBvLX.dark.container-module_light-slat
433
467
  gap: 0;
434
468
  }
435
469
 
470
+ .container-module_gap-0-5__X21UC {
471
+ gap: var(--size-0-5);
472
+ }
473
+
436
474
  .container-module_gap-1__VruMY {
437
475
  gap: var(--size-1);
438
476
  }
439
477
 
478
+ .container-module_gap-1-5__DyCqd {
479
+ gap: var(--size-1-5);
480
+ }
481
+
440
482
  .container-module_gap-2__DyVIE {
441
483
  gap: var(--size-2);
442
484
  }
@@ -1 +1 @@
1
- {"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../src/layout/Container/container.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,eAAO,MAAM,SAAS,uFAuFrB,CAAC"}
1
+ {"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../src/layout/Container/container.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,eAAO,MAAM,SAAS,uFA2HrB,CAAC"}
@@ -3,15 +3,29 @@ import cn from 'clsx';
3
3
  import * as React from 'react';
4
4
  import s from './container.module.scss.js';
5
5
 
6
- const Container = React.forwardRef(({ children, className, style, el, styled = true, direction = 'column', align, justify, full = false, rounded = true, theme, elevation, outlined, color, padding = 'lg', darkMode = false, gap = 0, ...props }, ref) => {
6
+ const Container = React.forwardRef(({ children, className, style, el, styled = true, direction = 'column', align, justify, full = false, rounded = true, theme, elevation, outlined, color, padding = 'md', darkMode = false, gap = 0, accent, accentColor, measure, appear = false, ...props }, ref) => {
7
7
  const Component = (el ?? 'div');
8
- const gapClass = gap ? s[`gap-${gap}`] : undefined;
9
- const rootClassName = cn(className, darkMode && 'dark', styled && s.styled, s[direction], align && s[`align-${align}`], justify && s[`justify-${justify}`], full && s.full, (styled && rounded === 'extra' && s['extra-rounded']) || (rounded && s.rounded), styled && outlined && s['outlined'], styled && typeof padding === 'number'
8
+ // `0.5` -> `gap-0-5`: a dot is not valid in a class name, so the numeric
9
+ // prop is sanitised here rather than making callers write the string.
10
+ const gapClass = gap ? s[`gap-${String(gap).replace('.', '-')}`] : undefined;
11
+ const rootClassName = cn(className, darkMode && 'dark', styled && s.styled, s[direction], align && s[`align-${align}`], justify && s[`justify-${justify}`], full && s.full, (styled && rounded === 'extra' && s['extra-rounded']) || (rounded && s.rounded), styled && outlined && s['outlined'], measure && measure !== 'full' && s.measure, styled && accent && s[`accent-${accent}`], styled && typeof padding === 'number'
10
12
  ? s[`padding-${padding}`]
11
13
  : styled && padding !== 'lg' && s[`padding-${padding}`], styled && elevation && s[`elevation-${elevation}`], styled && theme && s[`${theme}`], gapClass);
12
- const [opacity, setOpacity] = React.useState(0);
13
- const [transition, setTransition] = React.useState('all 1s ease');
14
+ /*
15
+ * The mount fade is OPT-IN (`appear`), and it used to be automatic on every
16
+ * `outlined` container.
17
+ *
18
+ * That meant an outlined container rendered at `opacity: 0` and stayed
19
+ * invisible for 500ms — fine for one hero panel on a landing page, wrong
20
+ * for anything that repeats. A list of outlined cards blinked in half a
21
+ * second after the data arrived, and a card mounted by a toggle appeared to
22
+ * do nothing at all when tapped.
23
+ */
24
+ const [opacity, setOpacity] = React.useState(appear ? 0 : 1);
25
+ const [transition, setTransition] = React.useState(appear ? 'all 1s ease' : undefined);
14
26
  React.useEffect(() => {
27
+ if (!appear)
28
+ return undefined;
15
29
  const showTimeout = window.setTimeout(() => {
16
30
  setOpacity(1);
17
31
  }, 500);
@@ -22,10 +36,24 @@ const Container = React.forwardRef(({ children, className, style, el, styled = t
22
36
  window.clearTimeout(showTimeout);
23
37
  window.clearTimeout(resetTimeout);
24
38
  };
25
- }, []);
26
- const base = outlined ? { opacity, transition, ...style } : style;
27
- const mergedStyle = color
28
- ? { ...base, '--container-color': color }
39
+ }, [appear]);
40
+ const base = appear ? { opacity, transition, ...style } : style;
41
+ /*
42
+ * The named steps resolve to tokens; anything else is taken as a length,
43
+ * so a caller with a genuinely odd requirement is not stuck.
44
+ */
45
+ const measureValue = !measure || measure === 'full'
46
+ ? undefined
47
+ : ['text', 'content', 'wide'].includes(measure)
48
+ ? `var(--measure-${measure})`
49
+ : measure;
50
+ const mergedStyle = color || accentColor || measureValue
51
+ ? {
52
+ ...base,
53
+ ...(color ? { '--container-color': color } : null),
54
+ ...(accentColor ? { '--container-accent': accentColor } : null),
55
+ ...(measureValue ? { '--container-measure': measureValue } : null),
56
+ }
29
57
  : base;
30
58
  if (!el || el === 'div') {
31
59
  return (jsx("div", { "data-slot": 'container', ref: ref, style: mergedStyle, className: rootClassName, ...props, children: children }));
@@ -1 +1 @@
1
- {"version":3,"file":"container.js","sources":["../../../src/layout/Container/container.tsx"],"sourcesContent":["import { type ContainerProps } from '@constellation/types';\nimport cn from 'clsx';\nimport * as React from 'react';\nimport s from './container.module.scss';\n\nexport const Container = React.forwardRef<HTMLDivElement, ContainerProps>(\n (\n {\n children,\n className,\n style,\n el,\n styled = true,\n direction = 'column',\n align,\n justify,\n full = false,\n rounded = true,\n theme,\n elevation,\n outlined,\n color,\n padding = 'lg',\n darkMode = false,\n gap = 0,\n ...props\n },\n ref,\n ) => {\n const Component = (el ?? 'div') as React.ElementType<React.HTMLAttributes<HTMLDivElement>>;\n const gapClass = gap ? s[`gap-${gap}` as keyof typeof s] : undefined;\n\n const rootClassName = cn(\n className,\n darkMode && 'dark',\n styled && s.styled,\n s[direction],\n align && s[`align-${align}` as keyof typeof s],\n justify && s[`justify-${justify}` as keyof typeof s],\n full && s.full,\n (styled && rounded === 'extra' && s['extra-rounded']) || (rounded && s.rounded),\n styled && outlined && s['outlined'],\n styled && typeof padding === 'number'\n ? s[`padding-${padding}` as keyof typeof s]\n : styled && padding !== 'lg' && s[`padding-${padding}` as keyof typeof s],\n styled && elevation && s[`elevation-${elevation}` as keyof typeof s],\n styled && theme && s[`${theme}` as keyof typeof s],\n gapClass,\n );\n\n const [opacity, setOpacity] = React.useState(0);\n const [transition, setTransition] = React.useState('all 1s ease');\n\n React.useEffect(() => {\n const showTimeout = window.setTimeout(() => {\n setOpacity(1);\n }, 500);\n const resetTimeout = window.setTimeout(() => {\n setTransition('all .2s ease');\n }, 1500);\n\n return () => {\n window.clearTimeout(showTimeout);\n window.clearTimeout(resetTimeout);\n };\n }, []);\n\n const base = outlined ? { opacity, transition, ...style } : style;\n const mergedStyle = color\n ? ({ ...base, '--container-color': color } as React.CSSProperties)\n : base;\n\n if (!el || el === 'div') {\n return (\n <div\n data-slot={'container'}\n ref={ref}\n style={mergedStyle}\n className={rootClassName}\n {...props}\n >\n {children}\n </div>\n );\n }\n\n return (\n <Component data-slot={'container'} style={mergedStyle} className={rootClassName} {...props}>\n {children}\n </Component>\n );\n },\n);\n\nContainer.displayName = 'Container';\n"],"names":["_jsx"],"mappings":";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,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,EAAA,GAAM,KAAK,YACvF,QAAQ,EAAA,CACC;AAEhB,CAAC;AAGH,SAAS,CAAC,WAAW,GAAG,WAAW;;"}
1
+ {"version":3,"file":"container.js","sources":["../../../src/layout/Container/container.tsx"],"sourcesContent":["import { type ContainerProps } from '@constellation/types';\nimport cn from 'clsx';\nimport * as React from 'react';\nimport s from './container.module.scss';\n\nexport const Container = React.forwardRef<HTMLDivElement, ContainerProps>(\n (\n {\n children,\n className,\n style,\n el,\n styled = true,\n direction = 'column',\n align,\n justify,\n full = false,\n rounded = true,\n theme,\n elevation,\n outlined,\n color,\n padding = 'md',\n darkMode = false,\n gap = 0,\n accent,\n accentColor,\n measure,\n appear = false,\n ...props\n },\n ref,\n ) => {\n const Component = (el ?? 'div') as React.ElementType<React.HTMLAttributes<HTMLDivElement>>;\n // `0.5` -> `gap-0-5`: a dot is not valid in a class name, so the numeric\n // prop is sanitised here rather than making callers write the string.\n const gapClass = gap ? s[`gap-${String(gap).replace('.', '-')}` as keyof typeof s] : undefined;\n\n const rootClassName = cn(\n className,\n darkMode && 'dark',\n styled && s.styled,\n s[direction],\n align && s[`align-${align}` as keyof typeof s],\n justify && s[`justify-${justify}` as keyof typeof s],\n full && s.full,\n (styled && rounded === 'extra' && s['extra-rounded']) || (rounded && s.rounded),\n styled && outlined && s['outlined'],\n measure && measure !== 'full' && s.measure,\n styled && accent && s[`accent-${accent}` as keyof typeof s],\n styled && typeof padding === 'number'\n ? s[`padding-${padding}` as keyof typeof s]\n : styled && padding !== 'lg' && s[`padding-${padding}` as keyof typeof s],\n styled && elevation && s[`elevation-${elevation}` as keyof typeof s],\n styled && theme && s[`${theme}` as keyof typeof s],\n gapClass,\n );\n\n /*\n * The mount fade is OPT-IN (`appear`), and it used to be automatic on every\n * `outlined` container.\n *\n * That meant an outlined container rendered at `opacity: 0` and stayed\n * invisible for 500ms — fine for one hero panel on a landing page, wrong\n * for anything that repeats. A list of outlined cards blinked in half a\n * second after the data arrived, and a card mounted by a toggle appeared to\n * do nothing at all when tapped.\n */\n const [opacity, setOpacity] = React.useState(appear ? 0 : 1);\n const [transition, setTransition] = React.useState(appear ? 'all 1s ease' : undefined);\n\n React.useEffect(() => {\n if (!appear) return undefined;\n const showTimeout = window.setTimeout(() => {\n setOpacity(1);\n }, 500);\n const resetTimeout = window.setTimeout(() => {\n setTransition('all .2s ease');\n }, 1500);\n\n return () => {\n window.clearTimeout(showTimeout);\n window.clearTimeout(resetTimeout);\n };\n }, [appear]);\n\n const base = appear ? { opacity, transition, ...style } : style;\n /*\n * The named steps resolve to tokens; anything else is taken as a length,\n * so a caller with a genuinely odd requirement is not stuck.\n */\n const measureValue =\n !measure || measure === 'full'\n ? undefined\n : ['text', 'content', 'wide'].includes(measure)\n ? `var(--measure-${measure})`\n : measure;\n\n const mergedStyle =\n color || accentColor || measureValue\n ? ({\n ...base,\n ...(color ? { '--container-color': color } : null),\n ...(accentColor ? { '--container-accent': accentColor } : null),\n ...(measureValue ? { '--container-measure': measureValue } : null),\n } as React.CSSProperties)\n : base;\n\n if (!el || el === 'div') {\n return (\n <div\n data-slot={'container'}\n ref={ref}\n style={mergedStyle}\n className={rootClassName}\n {...props}\n >\n {children}\n </div>\n );\n }\n\n return (\n <Component data-slot={'container'} style={mergedStyle} className={rootClassName} {...props}>\n {children}\n </Component>\n );\n },\n);\n\nContainer.displayName = 'Container';\n"],"names":["_jsx"],"mappings":";;;;;AAKO,MAAM,SAAS,GAAG,KAAK,CAAC,UAAU,CACvC,CACE,EACE,QAAQ,EACR,SAAS,EACT,KAAK,EACL,EAAE,EACF,MAAM,GAAG,IAAI,EACb,SAAS,GAAG,QAAQ,EACpB,KAAK,EACL,OAAO,EACP,IAAI,GAAG,KAAK,EACZ,OAAO,GAAG,IAAI,EACd,KAAK,EACL,SAAS,EACT,QAAQ,EACR,KAAK,EACL,OAAO,GAAG,IAAI,EACd,QAAQ,GAAG,KAAK,EA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AI,WAAW,IAAI;AACtB,UAAG;AACC,YAAA,GAAG,IAAI;AACP,YAAA,IAAI,KAAK,GAAG,EAAE,mBAAmB,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;AAClD,YAAA,IAAI,WAAW,GAAG,EAAE,oBAAoB,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC;AAC/D,YAAA,IAAI,YAAY,GAAG,EAAE,qBAAqB,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC;AAC3C;UACzB,IAAI;AAEV,IAAA,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,KAAK,EAAE;QACvB,QACEA,0BACa,WAAW,EACtB,GAAG,EAAE,GAAG,EACR,KAAK,EAAE,WAAW,EAClB,SAAS,EAAE,aAAa,EAAA,GACpB,KAAK,EAAA,QAAA,EAER,QAAQ,EAAA,CACL;IAEV;AAEA,IAAA,QACEA,GAAA,CAAC,SAAS,iBAAY,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,aAAa,EAAA,GAAM,KAAK,YACvF,QAAQ,EAAA,CACC;AAEhB,CAAC;AAGH,SAAS,CAAC,WAAW,GAAG,WAAW;;"}
@@ -1,6 +1,6 @@
1
1
  import './container.css';
2
2
 
3
- var s = {"styled":"container-module_styled__lBvLX","rounded":"container-module_rounded__j2TbF","extra-rounded":"container-module_extra-rounded__04Oru","elevation-1":"container-module_elevation-1__Gls_E","elevation-2":"container-module_elevation-2__BP2A6","elevation-3":"container-module_elevation-3__Jnc3A","elevation-4":"container-module_elevation-4__XOU5A","elevation-5":"container-module_elevation-5__P605X","elevation-6":"container-module_elevation-6__VpOO_","elevation-7":"container-module_elevation-7__xUwng","elevation-8":"container-module_elevation-8__DTCqj","elevation-9":"container-module_elevation-9__pzOOc","elevation-10":"container-module_elevation-10__3zyk3","elevation-11":"container-module_elevation-11__1kq7j","elevation-12":"container-module_elevation-12__-6bNZ","elevation-13":"container-module_elevation-13__mFicp","elevation-14":"container-module_elevation-14__rCXVn","elevation-15":"container-module_elevation-15__LFDwM","elevation-16":"container-module_elevation-16__PjotT","elevation-17":"container-module_elevation-17__Tkks4","elevation-18":"container-module_elevation-18__zhwIQ","elevation-19":"container-module_elevation-19__F9Ei0","elevation-20":"container-module_elevation-20__g0WjD","elevation-21":"container-module_elevation-21__k38TV","elevation-22":"container-module_elevation-22__4tiyl","elevation-23":"container-module_elevation-23__ML86a","elevation-24":"container-module_elevation-24___1ib1","padding-0":"container-module_padding-0__Fl8df","padding-1":"container-module_padding-1__tcmeu","padding-2":"container-module_padding-2__Y0b2q","padding-3":"container-module_padding-3__ago8q","padding-4":"container-module_padding-4__UI7f2","padding-5":"container-module_padding-5__fWxbp","padding-6":"container-module_padding-6__5SY-X","padding-xl":"container-module_padding-xl__69Jep","padding-md":"container-module_padding-md__BHqfC","padding-sm":"container-module_padding-sm__6zyxP","padding-none":"container-module_padding-none__9BcyG","outlined":"container-module_outlined__cT6vl","primary":"container-module_primary__j-bXY","secondary":"container-module_secondary__c1vzm","success":"container-module_success__Qh4CL","destructive":"container-module_destructive__SrF2d","warning":"container-module_warning__G2wA2","info":"container-module_info__VNxa7","slate":"container-module_slate__5mtBR","light-slate":"container-module_light-slate__A9QXm","column":"container-module_column__kRhyo","row":"container-module_row__1yar2","full":"container-module_full__BAlAD","justify-start":"container-module_justify-start__cUoBd","justify-center":"container-module_justify-center__9-nLN","justify-end":"container-module_justify-end__eSKIv","justify-space-between":"container-module_justify-space-between__HMIot","justify-space-around":"container-module_justify-space-around___rF8Y","justify-space-evenly":"container-module_justify-space-evenly__JlaKV","align-start":"container-module_align-start__FWX-N","align-center":"container-module_align-center__RCT1y","align-end":"container-module_align-end__qAUCJ","align-stretch":"container-module_align-stretch__w7-RN","gap-0":"container-module_gap-0__p8PTC","gap-1":"container-module_gap-1__VruMY","gap-2":"container-module_gap-2__DyVIE","gap-3":"container-module_gap-3__yhOun","gap-4":"container-module_gap-4__ywQck","gap-5":"container-module_gap-5__qxrxN","gap-6":"container-module_gap-6__2rxyO","gap-7":"container-module_gap-7__olqOQ","gap-8":"container-module_gap-8__nQElT","gap-9":"container-module_gap-9__x2u8f","gap-10":"container-module_gap-10__xM7iG","gap-11":"container-module_gap-11__M_6mJ","gap-12":"container-module_gap-12__O_F2K"};
3
+ var s = {"measure":"container-module_measure__2XZpb","styled":"container-module_styled__lBvLX","rounded":"container-module_rounded__j2TbF","extra-rounded":"container-module_extra-rounded__04Oru","elevation-1":"container-module_elevation-1__Gls_E","elevation-2":"container-module_elevation-2__BP2A6","elevation-3":"container-module_elevation-3__Jnc3A","elevation-4":"container-module_elevation-4__XOU5A","elevation-5":"container-module_elevation-5__P605X","elevation-6":"container-module_elevation-6__VpOO_","elevation-7":"container-module_elevation-7__xUwng","elevation-8":"container-module_elevation-8__DTCqj","elevation-9":"container-module_elevation-9__pzOOc","elevation-10":"container-module_elevation-10__3zyk3","elevation-11":"container-module_elevation-11__1kq7j","elevation-12":"container-module_elevation-12__-6bNZ","elevation-13":"container-module_elevation-13__mFicp","elevation-14":"container-module_elevation-14__rCXVn","elevation-15":"container-module_elevation-15__LFDwM","elevation-16":"container-module_elevation-16__PjotT","elevation-17":"container-module_elevation-17__Tkks4","elevation-18":"container-module_elevation-18__zhwIQ","elevation-19":"container-module_elevation-19__F9Ei0","elevation-20":"container-module_elevation-20__g0WjD","elevation-21":"container-module_elevation-21__k38TV","elevation-22":"container-module_elevation-22__4tiyl","elevation-23":"container-module_elevation-23__ML86a","elevation-24":"container-module_elevation-24___1ib1","padding-0":"container-module_padding-0__Fl8df","padding-1":"container-module_padding-1__tcmeu","padding-2":"container-module_padding-2__Y0b2q","padding-3":"container-module_padding-3__ago8q","padding-4":"container-module_padding-4__UI7f2","padding-5":"container-module_padding-5__fWxbp","padding-6":"container-module_padding-6__5SY-X","padding-xl":"container-module_padding-xl__69Jep","padding-md":"container-module_padding-md__BHqfC","padding-sm":"container-module_padding-sm__6zyxP","padding-xs":"container-module_padding-xs__tMiKO","padding-none":"container-module_padding-none__9BcyG","outlined":"container-module_outlined__cT6vl","accent-left":"container-module_accent-left__nbg_w","accent-right":"container-module_accent-right__BnLgK","accent-top":"container-module_accent-top__ayLtX","accent-bottom":"container-module_accent-bottom__J4gt7","primary":"container-module_primary__j-bXY","secondary":"container-module_secondary__c1vzm","success":"container-module_success__Qh4CL","destructive":"container-module_destructive__SrF2d","warning":"container-module_warning__G2wA2","info":"container-module_info__VNxa7","slate":"container-module_slate__5mtBR","light-slate":"container-module_light-slate__A9QXm","column":"container-module_column__kRhyo","row":"container-module_row__1yar2","full":"container-module_full__BAlAD","justify-start":"container-module_justify-start__cUoBd","justify-center":"container-module_justify-center__9-nLN","justify-end":"container-module_justify-end__eSKIv","justify-space-between":"container-module_justify-space-between__HMIot","justify-space-around":"container-module_justify-space-around___rF8Y","justify-space-evenly":"container-module_justify-space-evenly__JlaKV","align-start":"container-module_align-start__FWX-N","align-center":"container-module_align-center__RCT1y","align-end":"container-module_align-end__qAUCJ","align-stretch":"container-module_align-stretch__w7-RN","gap-0":"container-module_gap-0__p8PTC","gap-0-5":"container-module_gap-0-5__X21UC","gap-1":"container-module_gap-1__VruMY","gap-1-5":"container-module_gap-1-5__DyCqd","gap-2":"container-module_gap-2__DyVIE","gap-3":"container-module_gap-3__yhOun","gap-4":"container-module_gap-4__ywQck","gap-5":"container-module_gap-5__qxrxN","gap-6":"container-module_gap-6__2rxyO","gap-7":"container-module_gap-7__olqOQ","gap-8":"container-module_gap-8__nQElT","gap-9":"container-module_gap-9__x2u8f","gap-10":"container-module_gap-10__xM7iG","gap-11":"container-module_gap-11__M_6mJ","gap-12":"container-module_gap-12__O_F2K"};
4
4
 
5
5
  export { s as default };
6
6
  //# sourceMappingURL=container.module.scss.js.map
@@ -1,3 +1,25 @@
1
+ .grid-module_grid__URZOP.grid-module_auto__vjfH2 {
2
+ grid-template-columns: repeat(auto-fit, minmax(var(--grid-min, 8rem), 1fr));
3
+ }
4
+ .grid-module_grid__URZOP.grid-module_auto-fill__Z6bcz {
5
+ grid-template-columns: repeat(auto-fill, minmax(var(--grid-min, 8rem), 1fr));
6
+ }
7
+ .grid-module_grid__URZOP {
8
+ /*
9
+ * See GridProps.masonry. Multi-column rather than grid: it is the only
10
+ * masonry with universal support, and it happens to give exactly the
11
+ * "as many columns as fit this width" behaviour `min` already describes.
12
+ * `display` has to leave grid for this to mean anything.
13
+ */
14
+ }
15
+ .grid-module_grid__URZOP.grid-module_masonry__ITaiI {
16
+ columns: var(--grid-min, 17rem);
17
+ display: block;
18
+ }
19
+ .grid-module_grid__URZOP.grid-module_masonry__ITaiI > * {
20
+ break-inside: avoid;
21
+ margin-bottom: var(--grid-masonry-gap, var(--size-2));
22
+ }
1
23
  .grid-module_grid__URZOP {
2
24
  display: grid;
3
25
  width: 100%;
@@ -5,9 +27,15 @@
5
27
  .grid-module_grid__URZOP.grid-module_gap-0__iRAf0 {
6
28
  gap: 0;
7
29
  }
30
+ .grid-module_grid__URZOP.grid-module_gap-0-5__3w5Z4 {
31
+ gap: var(--size-0-5);
32
+ }
8
33
  .grid-module_grid__URZOP.grid-module_gap-1__OwDWN {
9
34
  gap: var(--size-1);
10
35
  }
36
+ .grid-module_grid__URZOP.grid-module_gap-1-5__o1Xrf {
37
+ gap: var(--size-1-5);
38
+ }
11
39
  .grid-module_grid__URZOP.grid-module_gap-2__1Jw0p {
12
40
  gap: var(--size-2);
13
41
  }
@@ -1 +1 @@
1
- {"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../../src/layout/Grid/grid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEtD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,QAAA,MAAM,IAAI,kFA0CT,CAAC;AAGF,OAAO,EAAE,IAAI,EAAE,CAAC"}
1
+ {"version":3,"file":"grid.d.ts","sourceRoot":"","sources":["../../../src/layout/Grid/grid.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEtD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,QAAA,MAAM,IAAI,kFA4FT,CAAC;AAGF,OAAO,EAAE,IAAI,EAAE,CAAC"}
@@ -1,13 +1,49 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
2
  import cn from 'clsx';
3
3
  import * as React from 'react';
4
+ import { useFlip } from '../../hooks/layout/use-flip.js';
4
5
  import s from './grid.module.scss.js';
5
6
 
6
- const Grid = React.forwardRef(({ children, className, el, columns = 1, sm, md, lg, xl, gap = 2, align, justify, full = true, ...props }, ref) => {
7
+ const Grid = React.forwardRef(({ children, className, el, columns = 1, sm, md, lg, xl, gap = 2, min, fill, masonry, animate, style, align, justify, full = true, ...props }, ref) => {
7
8
  const Component = (el ?? 'div');
8
- const gapClass = gap != null ? s[`gap-${gap}`] : undefined;
9
- const rootClassName = cn(s.grid, s[`cols-${columns}`], sm && s[`sm-${sm}`], md && s[`md-${md}`], lg && s[`lg-${lg}`], xl && s[`xl-${xl}`], gapClass, align && s[`align-${align}`], justify && s[`justify-${justify}`], full && s.full, className);
10
- return (jsx(Component, { "data-slot": 'grid', ref: ref, className: rootClassName, ...props, children: children }));
9
+ /*
10
+ * The hook needs a ref to the element it is animating the children of, and
11
+ * the caller may have asked for one too, so both are kept pointed at it.
12
+ */
13
+ const innerRef = React.useRef(null);
14
+ useFlip(innerRef, { enabled: !!animate });
15
+ const setRef = React.useCallback((node) => {
16
+ innerRef.current = node;
17
+ if (typeof ref === 'function')
18
+ ref(node);
19
+ else if (ref)
20
+ ref.current = node;
21
+ }, [ref]);
22
+ // `0.5` -> `gap-0-5`: a dot is not valid in a class name, so the numeric
23
+ // prop is sanitised here rather than making callers write the string.
24
+ const gapClass = gap != null ? s[`gap-${String(gap).replace('.', '-')}`] : undefined;
25
+ /*
26
+ * `min` wins over `columns`: a track floor is a different question from a
27
+ * column count, and answering both at once is how you get a grid that
28
+ * claims three columns and shows two.
29
+ */
30
+ const rootClassName = cn(s.grid, masonry
31
+ ? s.masonry
32
+ : min
33
+ ? fill
34
+ ? s['auto-fill']
35
+ : s.auto
36
+ : s[`cols-${columns}`], !min && sm && s[`sm-${sm}`], !min && md && s[`md-${md}`], !min && lg && s[`lg-${lg}`], !min && xl && s[`xl-${xl}`], gapClass, align && s[`align-${align}`], justify && s[`justify-${justify}`], full && s.full, className);
37
+ return (jsx(Component, { "data-slot": 'grid', ref: setRef, className: rootClassName, style: min || masonry
38
+ ? {
39
+ ...style,
40
+ ...(min ? { '--grid-min': min } : null),
41
+ // Column gaps come from `gap`, but the vertical rhythm in a
42
+ // multi-column flow is a margin on each item, so it needs the
43
+ // same number as a length.
44
+ ...(masonry ? { '--grid-masonry-gap': `var(--size-${gap})` } : null),
45
+ }
46
+ : style, ...props, children: children }));
11
47
  });
12
48
  Grid.displayName = 'Grid';
13
49
 
@@ -1 +1 @@
1
- {"version":3,"file":"grid.js","sources":["../../../src/layout/Grid/grid.tsx"],"sourcesContent":["import { type GridProps } from '@constellation/types';\nimport cn from 'clsx';\nimport * as React from 'react';\nimport s from './grid.module.scss';\n\nconst Grid = React.forwardRef<HTMLDivElement, GridProps>(\n (\n {\n children,\n className,\n el,\n columns = 1,\n sm,\n md,\n lg,\n xl,\n gap = 2,\n align,\n justify,\n full = true,\n ...props\n },\n ref,\n ) => {\n const Component = (el ?? 'div') as 'div';\n const gapClass = gap != null ? s[`gap-${gap}` as keyof typeof s] : undefined;\n\n const rootClassName = cn(\n s.grid,\n s[`cols-${columns}` as keyof typeof s],\n sm && s[`sm-${sm}` as keyof typeof s],\n md && s[`md-${md}` as keyof typeof s],\n lg && s[`lg-${lg}` as keyof typeof s],\n xl && s[`xl-${xl}` as keyof typeof s],\n gapClass,\n align && s[`align-${align}` as keyof typeof s],\n justify && s[`justify-${justify}` as keyof typeof s],\n full && s.full,\n className,\n );\n\n return (\n <Component data-slot={'grid'} ref={ref} className={rootClassName} {...props}>\n {children}\n </Component>\n );\n },\n);\nGrid.displ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AAI,CAAC,WAAW,GAAG,MAAM;;"}
1
+ {"version":3,"file":"grid.js","sources":["../../../src/layout/Grid/grid.tsx"],"sourcesContent":["import { type GridProps } from '@constellation/types';\nimport cn from 'clsx';\nimport * as React from 'react';\nimport { useFlip } from '../../hooks/layout/use-flip';\nimport s from './grid.module.scss';\n\nconst Grid = React.forwardRef<HTMLDivElement, GridProps>(\n (\n {\n children,\n className,\n el,\n columns = 1,\n sm,\n md,\n lg,\n xl,\n gap = 2,\n min,\n fill,\n masonry,\n animate,\n style,\n align,\n justify,\n full = true,\n ...props\n },\n ref,\n ) => {\n const Component = (el ?? 'div') as 'div';\n /*\n * The hook needs a ref to the element it is animating the children of, and\n * the caller may have asked for one too, so both are kept pointed at it.\n */\n const innerRef = React.useRef<HTMLDivElement | null>(null);\n useFlip(innerRef, { enabled: !!animate });\n const setRef = React.useCallback(\n (node: HTMLDivElement | null) => {\n innerRef.current = node;\n if (typeof ref === 'function') ref(node);\n else if (ref) (ref as React.MutableRefObject<HTMLDivElement | null>).current = node;\n },\n [ref],\n );\n // `0.5` -> `gap-0-5`: a dot is not valid in a class name, so the numeric\n // prop is sanitised here rather than making callers write the string.\n const gapClass =\n gap != null ? s[`gap-${String(gap).replace('.', '-')}` as keyof typeof s] : undefined;\n\n /*\n * `min` wins over `columns`: a track floor is a different question from a\n * column count, and answering both at once is how you get a grid that\n * claims three columns and shows two.\n */\n const rootClassName = cn(\n s.grid,\n masonry\n ? s.masonry\n : min\n ? fill\n ? s['auto-fill']\n : s.auto\n : s[`cols-${columns}` as keyof typeof s],\n !min && sm && s[`sm-${sm}` as keyof typeof s],\n !min && md && s[`md-${md}` as keyof typeof s],\n !min && lg && s[`lg-${lg}` as keyof typeof s],\n !min && xl && s[`xl-${xl}` as keyof typeof s],\n gapClass,\n align && s[`align-${align}` as keyof typeof s],\n justify && s[`justify-${justify}` as keyof typeof s],\n full && s.full,\n className,\n );\n\n return (\n <Component\n data-slot={'grid'}\n ref={setRef}\n className={rootClassName}\n style={\n min || masonry\n ? ({\n ...style,\n ...(min ? { '--grid-min': min } : null),\n // Column gaps come from `gap`, but the vertical rhythm in a\n // multi-column flow is a margin on each item, so it needs the\n // same number as a length.\n ...(masonry ? { '--grid-masonry-gap': `var(--size-${gap})` } : null),\n } as React.CSSProperties)\n : style\n }\n {...props}\n >\n {children}\n </Component>\n );\n },\n);\nGrid.displayName = 'Grid';\n\nexport { Grid };\n"],"names":["_jsx"],"mappings":";;;;;;AAMA,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAC3B,CACE,EACE,QAAQ,EACR,SAAS,EACT,EAAE,EACF,OAAO,GAAG,CAAC,EACX,EAAE,EACF,EAAE,EACF,EAAE,EACF,EAAE,EACF,GAAG,GAAG,CAAC,EACP,GAAG,EACH,IAAI,EACJ,OAAO,EACP,OAAO,EACP,KAAK,EACL,KAAK,EACL,OAAO,EACP,IAAI,GAAG,IAAI,EACX,GAAG,KAAK,EACT,EACD,GAAG,KACD;AACF,IAAA,MAAM,SAAS,IAAI,EAAE,IAAI,KAAK,CAAU;AACxC;;;AAGG;IACH,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAwB,IAAI,CAAC;IAC1D,OAAO,CAAC,QAAQ,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC;IACzC,MAAM,MAAM,GAAG,KAAK,CAAC,WAAW,CAC9B,CAAC,IAA2B,KAAI;AAC9B,QAAA,QAAQ,CAAC,OAAO,GAAG,IAAI;QACvB,IAAI,OAAO,GAAG,KAAK,UAAU;YAAE,GAAG,CAAC,IAAI,CAAC;AACnC,aAAA,IAAI,GAAG;AAAG,YAAA,GAAqD,CAAC,OAAO,GAAG,IAAI;AACrF,IAAA,CAAC,EACD,CAAC,GAAG,CAAC,CACN;;;AAGD,IAAA,MAAM,QAAQ,GACZ,GAAG,IAAI,IAAI,GAAG,CAAC,CAAC,CAAA,IAAA,EAAO,MAAM,CAAC,GAAG,CAAC,CAAC,OAAO,CAA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AQ,EAAA,CACC;AAEhB,CAAC;AAEH,IAAI,CAAC,WAAW,GAAG,MAAM;;"}
@@ -1,6 +1,6 @@
1
1
  import './grid.css';
2
2
 
3
- var s = {"grid":"grid-module_grid__URZOP","gap-0":"grid-module_gap-0__iRAf0","gap-1":"grid-module_gap-1__OwDWN","gap-2":"grid-module_gap-2__1Jw0p","gap-3":"grid-module_gap-3__70iEG","gap-4":"grid-module_gap-4__U1761","gap-5":"grid-module_gap-5__CEdka","gap-6":"grid-module_gap-6__4y75R","gap-7":"grid-module_gap-7__u3368","gap-8":"grid-module_gap-8__cgz4p","gap-9":"grid-module_gap-9__mM214","gap-10":"grid-module_gap-10__vpyiI","gap-11":"grid-module_gap-11__AM-Si","gap-12":"grid-module_gap-12__D0Agl","cols-1":"grid-module_cols-1__tDyLx","cols-2":"grid-module_cols-2__Aabcv","cols-3":"grid-module_cols-3__9qlO2","cols-4":"grid-module_cols-4___jysa","cols-5":"grid-module_cols-5__ydWoG","cols-6":"grid-module_cols-6__E7LZ5","cols-7":"grid-module_cols-7__a4q39","cols-8":"grid-module_cols-8__zHglg","cols-9":"grid-module_cols-9__SiCSD","cols-10":"grid-module_cols-10__gClfi","cols-11":"grid-module_cols-11__sJlaU","cols-12":"grid-module_cols-12__o8LoO","sm-1":"grid-module_sm-1__D8Lls","md-1":"grid-module_md-1__455Mc","lg-1":"grid-module_lg-1__5W2k8","xl-1":"grid-module_xl-1__rAkG_","sm-2":"grid-module_sm-2__yR0Fc","md-2":"grid-module_md-2__0DmLp","lg-2":"grid-module_lg-2__CUQgJ","xl-2":"grid-module_xl-2__xCLrj","sm-3":"grid-module_sm-3__vrTa-","md-3":"grid-module_md-3__x3eV8","lg-3":"grid-module_lg-3__huUPl","xl-3":"grid-module_xl-3__yyfwM","sm-4":"grid-module_sm-4__Uncvx","md-4":"grid-module_md-4__FLFcT","lg-4":"grid-module_lg-4__ip-Ks","xl-4":"grid-module_xl-4__ZOpLp","sm-5":"grid-module_sm-5__KbBZQ","md-5":"grid-module_md-5__mFdLw","lg-5":"grid-module_lg-5__CF141","xl-5":"grid-module_xl-5__Fwp3k","sm-6":"grid-module_sm-6__P6ncv","md-6":"grid-module_md-6__zWNoi","lg-6":"grid-module_lg-6__C1pt0","xl-6":"grid-module_xl-6__2241T","sm-7":"grid-module_sm-7__q812T","md-7":"grid-module_md-7__zisaQ","lg-7":"grid-module_lg-7__ZZE2U","xl-7":"grid-module_xl-7__dMVdE","sm-8":"grid-module_sm-8__vljwl","md-8":"grid-module_md-8__FzUyb","lg-8":"grid-module_lg-8__Ugpvr","xl-8":"grid-module_xl-8__GVRNa","sm-9":"grid-module_sm-9__YlIuR","md-9":"grid-module_md-9__GmZlg","lg-9":"grid-module_lg-9__qBh6X","xl-9":"grid-module_xl-9__fMGsr","sm-10":"grid-module_sm-10__9EmPF","md-10":"grid-module_md-10__AHVfo","lg-10":"grid-module_lg-10__zeu56","xl-10":"grid-module_xl-10__7xkKT","sm-11":"grid-module_sm-11__Pa858","md-11":"grid-module_md-11__QcVjb","lg-11":"grid-module_lg-11__u6yCr","xl-11":"grid-module_xl-11__Ebvl8","sm-12":"grid-module_sm-12__rRstd","md-12":"grid-module_md-12__lUda6","lg-12":"grid-module_lg-12__XJzsH","xl-12":"grid-module_xl-12__hN8gf","align-start":"grid-module_align-start__r05R3","align-center":"grid-module_align-center__SdjWn","align-end":"grid-module_align-end__N43Tp","align-stretch":"grid-module_align-stretch__3MQKu","justify-start":"grid-module_justify-start__DpTS2","justify-center":"grid-module_justify-center__McRg0","justify-end":"grid-module_justify-end__TNvSn","justify-stretch":"grid-module_justify-stretch__1K88A","full":"grid-module_full__IH52K"};
3
+ var s = {"grid":"grid-module_grid__URZOP","auto":"grid-module_auto__vjfH2","auto-fill":"grid-module_auto-fill__Z6bcz","masonry":"grid-module_masonry__ITaiI","gap-0":"grid-module_gap-0__iRAf0","gap-0-5":"grid-module_gap-0-5__3w5Z4","gap-1":"grid-module_gap-1__OwDWN","gap-1-5":"grid-module_gap-1-5__o1Xrf","gap-2":"grid-module_gap-2__1Jw0p","gap-3":"grid-module_gap-3__70iEG","gap-4":"grid-module_gap-4__U1761","gap-5":"grid-module_gap-5__CEdka","gap-6":"grid-module_gap-6__4y75R","gap-7":"grid-module_gap-7__u3368","gap-8":"grid-module_gap-8__cgz4p","gap-9":"grid-module_gap-9__mM214","gap-10":"grid-module_gap-10__vpyiI","gap-11":"grid-module_gap-11__AM-Si","gap-12":"grid-module_gap-12__D0Agl","cols-1":"grid-module_cols-1__tDyLx","cols-2":"grid-module_cols-2__Aabcv","cols-3":"grid-module_cols-3__9qlO2","cols-4":"grid-module_cols-4___jysa","cols-5":"grid-module_cols-5__ydWoG","cols-6":"grid-module_cols-6__E7LZ5","cols-7":"grid-module_cols-7__a4q39","cols-8":"grid-module_cols-8__zHglg","cols-9":"grid-module_cols-9__SiCSD","cols-10":"grid-module_cols-10__gClfi","cols-11":"grid-module_cols-11__sJlaU","cols-12":"grid-module_cols-12__o8LoO","sm-1":"grid-module_sm-1__D8Lls","md-1":"grid-module_md-1__455Mc","lg-1":"grid-module_lg-1__5W2k8","xl-1":"grid-module_xl-1__rAkG_","sm-2":"grid-module_sm-2__yR0Fc","md-2":"grid-module_md-2__0DmLp","lg-2":"grid-module_lg-2__CUQgJ","xl-2":"grid-module_xl-2__xCLrj","sm-3":"grid-module_sm-3__vrTa-","md-3":"grid-module_md-3__x3eV8","lg-3":"grid-module_lg-3__huUPl","xl-3":"grid-module_xl-3__yyfwM","sm-4":"grid-module_sm-4__Uncvx","md-4":"grid-module_md-4__FLFcT","lg-4":"grid-module_lg-4__ip-Ks","xl-4":"grid-module_xl-4__ZOpLp","sm-5":"grid-module_sm-5__KbBZQ","md-5":"grid-module_md-5__mFdLw","lg-5":"grid-module_lg-5__CF141","xl-5":"grid-module_xl-5__Fwp3k","sm-6":"grid-module_sm-6__P6ncv","md-6":"grid-module_md-6__zWNoi","lg-6":"grid-module_lg-6__C1pt0","xl-6":"grid-module_xl-6__2241T","sm-7":"grid-module_sm-7__q812T","md-7":"grid-module_md-7__zisaQ","lg-7":"grid-module_lg-7__ZZE2U","xl-7":"grid-module_xl-7__dMVdE","sm-8":"grid-module_sm-8__vljwl","md-8":"grid-module_md-8__FzUyb","lg-8":"grid-module_lg-8__Ugpvr","xl-8":"grid-module_xl-8__GVRNa","sm-9":"grid-module_sm-9__YlIuR","md-9":"grid-module_md-9__GmZlg","lg-9":"grid-module_lg-9__qBh6X","xl-9":"grid-module_xl-9__fMGsr","sm-10":"grid-module_sm-10__9EmPF","md-10":"grid-module_md-10__AHVfo","lg-10":"grid-module_lg-10__zeu56","xl-10":"grid-module_xl-10__7xkKT","sm-11":"grid-module_sm-11__Pa858","md-11":"grid-module_md-11__QcVjb","lg-11":"grid-module_lg-11__u6yCr","xl-11":"grid-module_xl-11__Ebvl8","sm-12":"grid-module_sm-12__rRstd","md-12":"grid-module_md-12__lUda6","lg-12":"grid-module_lg-12__XJzsH","xl-12":"grid-module_xl-12__hN8gf","align-start":"grid-module_align-start__r05R3","align-center":"grid-module_align-center__SdjWn","align-end":"grid-module_align-end__N43Tp","align-stretch":"grid-module_align-stretch__3MQKu","justify-start":"grid-module_justify-start__DpTS2","justify-center":"grid-module_justify-center__McRg0","justify-end":"grid-module_justify-end__TNvSn","justify-stretch":"grid-module_justify-stretch__1K88A","full":"grid-module_full__IH52K"};
4
4
 
5
5
  export { s as default };
6
6
  //# sourceMappingURL=grid.module.scss.js.map
@@ -2,12 +2,54 @@
2
2
  display: flex;
3
3
  flex-direction: row;
4
4
  }
5
+ .row-module_row__tK3mg.row-module_flex-1__HUP39 {
6
+ flex: 1;
7
+ }
8
+ .row-module_row__tK3mg.row-module_flex-2__458Pn {
9
+ flex: 2;
10
+ }
11
+ .row-module_row__tK3mg.row-module_flex-3__WHhFE {
12
+ flex: 3;
13
+ }
14
+ .row-module_row__tK3mg.row-module_flex-4___duTL {
15
+ flex: 4;
16
+ }
17
+ .row-module_row__tK3mg.row-module_flex-5__Xykyf {
18
+ flex: 5;
19
+ }
20
+ .row-module_row__tK3mg.row-module_flex-6__-uJVB {
21
+ flex: 6;
22
+ }
23
+ .row-module_row__tK3mg.row-module_flex-7__mKC_G {
24
+ flex: 7;
25
+ }
26
+ .row-module_row__tK3mg.row-module_flex-8__T5bTm {
27
+ flex: 8;
28
+ }
29
+ .row-module_row__tK3mg.row-module_flex-9__jnohJ {
30
+ flex: 9;
31
+ }
32
+ .row-module_row__tK3mg.row-module_flex-10__Y9Wm- {
33
+ flex: 10;
34
+ }
35
+ .row-module_row__tK3mg.row-module_flex-11__09pfT {
36
+ flex: 11;
37
+ }
38
+ .row-module_row__tK3mg.row-module_flex-12__Fblaj {
39
+ flex: 12;
40
+ }
5
41
  .row-module_row__tK3mg.row-module_gap-0__B8drW {
6
42
  gap: 0;
7
43
  }
44
+ .row-module_row__tK3mg.row-module_gap-0-5__LnFQS {
45
+ gap: var(--size-0-5);
46
+ }
8
47
  .row-module_row__tK3mg.row-module_gap-1___Q8pm {
9
48
  gap: var(--size-1);
10
49
  }
50
+ .row-module_row__tK3mg.row-module_gap-1-5__SYfcs {
51
+ gap: var(--size-1-5);
52
+ }
11
53
  .row-module_row__tK3mg.row-module_gap-2__nvctX {
12
54
  gap: var(--size-2);
13
55
  }
@@ -1 +1 @@
1
- {"version":3,"file":"row.d.ts","sourceRoot":"","sources":["../../../src/layout/Row/row.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,eAAO,MAAM,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,CAuClC,CAAC"}
1
+ {"version":3,"file":"row.d.ts","sourceRoot":"","sources":["../../../src/layout/Row/row.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,eAAO,MAAM,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,CA2ClC,CAAC"}
@@ -2,16 +2,18 @@ import { jsx } from 'react/jsx-runtime';
2
2
  import cn from 'clsx';
3
3
  import s from './row.module.scss.js';
4
4
 
5
- const Row = ({ children, className, style, el, gap = 0, breakpoint, align = 'center', justify, full = false, wrap = false, ...props }) => {
5
+ const Row = ({ children, className, style, el, gap = 0, breakpoint, align = 'center', justify, full = false, wrap = false, flex, ...props }) => {
6
6
  const Component = (el ?? 'div');
7
- const gapClass = gap ? s[`gap-${gap}`] : undefined;
7
+ // `0.5` -> `gap-0-5`: a dot is not valid in a class name, so the numeric
8
+ // prop is sanitised here rather than making callers write the string.
9
+ const gapClass = gap ? s[`gap-${String(gap).replace('.', '-')}`] : undefined;
8
10
  const breakpointClass = breakpoint ? s[`break-${breakpoint}`] : undefined;
9
11
  const hasWrap = !!wrap;
10
12
  const wrapMinWidth = typeof wrap === 'number' ? `${wrap}px` : undefined;
11
13
  const rootStyle = wrapMinWidth
12
14
  ? { ...style, '--row-wrap-min-width': wrapMinWidth }
13
15
  : style;
14
- const rootClassName = cn(className, s.row, gapClass, align && s[`align-${align}`], justify && s[`justify-${justify}`], full && s.full, hasWrap && s.wrap, wrapMinWidth && s['wrap-fixed'], breakpointClass);
16
+ const rootClassName = cn(className, s.row, gapClass, align && s[`align-${align}`], justify && s[`justify-${justify}`], full && s.full, flex && s[`flex-${flex}`], hasWrap && s.wrap, wrapMinWidth && s['wrap-fixed'], breakpointClass);
15
17
  return (jsx(Component, { "data-slot": 'row', style: rootStyle, className: rootClassName, ...props, children: children }));
16
18
  };
17
19
 
@@ -1 +1 @@
1
- {"version":3,"file":"row.js","sources":["../../../src/layout/Row/row.tsx"],"sourcesContent":["import { type RowProps } from '@constellation/types';\nimport cn from 'clsx';\nimport * as React from 'react';\nimport s from './row.module.scss';\n\nexport const Row: React.FC<RowProps> = ({\n children,\n className,\n style,\n el,\n gap = 0,\n breakpoint,\n align = 'center',\n justify,\n full = false,\n wrap = false,\n ...props\n}) => {\n const Component = (el ?? 'div') as React.ElementType<React.HTMLAttributes<HTMLDivElement>>;\n const gapClass = gap ? s[`gap-${gap}` as keyof typeof s] : undefined;\n const breakpointClass = breakpoint ? s[`break-${breakpoint}` as keyof typeof s] : undefined;\n const hasWrap = !!wrap;\n const wrapMinWidth = typeof wrap === 'number' ? `${wrap}px` : undefined;\n const rootStyle = wrapMinWidth\n ? ({ ...style, '--row-wrap-min-width': wrapMinWidth } as React.CSSProperties)\n : style;\n\n const rootClassName = cn(\n className,\n s.row,\n gapClass,\n align && s[`align-${align}`],\n justify && s[`justify-${justify}`],\n full && s.full,\n hasWrap && s.wrap,\n wrapMinWidth && s['wrap-fixed'],\n breakpointClass,\n );\n\n return (\n <Component data-slot={'row'} style={rootStyle} className={rootClassName} {...props}>\n {children}\n </Component>\n );\n};\n"],"names":["_jsx"],"mappings":";;;;AAKO,MAAM,GAAG,GAAuB,CAAC,EACtC,QAAQ,EACR,SAAS,EACT,KAAK,EACL,EAAE,EACF,GAAG,GAAG,CAAC,EACP,UAAU,EACV,KAAK,GAAG,QAAQ,EAChB,OAAO,EACP,IAAI,GAAG,KAAK,EACZ,IAAI,GAAG,KAAK,EACZ,GAAG,KAAK,EACT,KAAI;AACH,IAAA,MAAM,SAAS,IAAI,EAAE,IAAI,KAAK,CAA4D;AAC1F,IAAA,MAAM,QAAQ,GAAG,GAAG,GAAG,CAAC,CAAC,CAAA,IAAA,EAAO,GAAG,EAAoB,CAAC,GAAG,SAAS;AACpE,IAAA,MAAM,eAAe,GAAG,UAAU,GAAG,CAAC,CAAC,CAAA,MAAA,EAAS,UAAU,EAAoB,CAAC,GAAG,SAAS;AAC3F,IAAA,MAAM,OAAO,GAAG,CAAC,CAAC,IAAI;AACtB,IAAA,MAAM,YAAY,GAAG,OAAO,IAAI,KAAK,QAAQ,GAAG,CAAA,EAAG,IAAI,CAAA,EAAA,CAAI,GAAG,SAAS;IACvE,MAAM,SAAS,GAAG;UACb,EAAE,GAAG,KAAK,EAAE,sBAAsB,EAAE,YAAY;UACjD,KAAK;IAET,MAAM,aAAa,GAAG,EAAE,CACtB,SAAS,EACT,CAAC,CAAC,GAAG,EACL,QAAQ,EACR,KAAK,IAAI,CAAC,CAAC,CAAA,MAAA,EAAS,KAAK,EAAE,CAAC,EAC5B,OAAO,IAAI,CAAC,CAAC,WAAW,OAAO,CAAA,CAAE,CAAC,EAClC,IAAI,IAAI,CAAC,CAAC,IAAI,EACd,OAAO,IAAI,CAAC,CAAC,IAAI,EACjB,YAAY,IAAI,CAAC,CAAC,YAAY,CAAC,EAC/B,eAAe,CAChB;AAED,IAAA,QACEA,GAAA,CAAC,SAAS,iBAAY,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,EAAA,GAAM,KAAK,YAC/E,QAAQ,EAAA,CACC;AAEhB;;"}
1
+ {"version":3,"file":"row.js","sources":["../../../src/layout/Row/row.tsx"],"sourcesContent":["import { type RowProps } from '@constellation/types';\nimport cn from 'clsx';\nimport * as React from 'react';\nimport s from './row.module.scss';\n\nexport const Row: React.FC<RowProps> = ({\n children,\n className,\n style,\n el,\n gap = 0,\n breakpoint,\n align = 'center',\n justify,\n full = false,\n wrap = false,\n flex,\n ...props\n}) => {\n const Component = (el ?? 'div') as React.ElementType<React.HTMLAttributes<HTMLDivElement>>;\n // `0.5` -> `gap-0-5`: a dot is not valid in a class name, so the numeric\n // prop is sanitised here rather than making callers write the string.\n const gapClass = gap ? s[`gap-${String(gap).replace('.', '-')}` as keyof typeof s] : undefined;\n const breakpointClass = breakpoint ? s[`break-${breakpoint}` as keyof typeof s] : undefined;\n const hasWrap = !!wrap;\n const wrapMinWidth = typeof wrap === 'number' ? `${wrap}px` : undefined;\n const rootStyle = wrapMinWidth\n ? ({ ...style, '--row-wrap-min-width': wrapMinWidth } as React.CSSProperties)\n : style;\n\n const rootClassName = cn(\n className,\n s.row,\n gapClass,\n align && s[`align-${align}`],\n justify && s[`justify-${justify}`],\n full && s.full,\n flex && s[`flex-${flex}` as keyof typeof s],\n hasWrap && s.wrap,\n wrapMinWidth && s['wrap-fixed'],\n breakpointClass,\n );\n\n return (\n <Component data-slot={'row'} style={rootStyle} className={rootClassName} {...props}>\n {children}\n </Component>\n );\n};\n"],"names":["_jsx"],"mappings":";;;;AAKO,MAAM,GAAG,GAAuB,CAAC,EACtC,QAAQ,EACR,SAAS,EACT,KAAK,EACL,EAAE,EACF,GAAG,GAAG,CAAC,EACP,UAAU,EACV,KAAK,GAAG,QAAQ,EAChB,OAAO,EACP,IAAI,GAAG,KAAK,EACZ,IAAI,GAAG,KAAK,EACZ,IAAI,EACJ,GAAG,KAAK,EACT,KAAI;AACH,IAAA,MAAM,SAAS,IAAI,EAAE,IAAI,KAAK,CAA4D;;;IAG1F,MAAM,QAAQ,GAAG,GAAG,GAAG,CAAC,CAAC,CAAA,IAAA,EAAO,MAAM,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC,CAAA,CAAoB,CAAC,GAAG,SAAS;AAC9F,IAAA,MAAM,eAAe,GAAG,UAAU,GAAG,CAAC,CAAC,CAAA,MAAA,EAAS,UAAU,EAAoB,CAAC,GAAG,SAAS;AAC3F,IAAA,MAAM,OAAO,GAAG,CAAC,CAAC,IAAI;AACtB,IAAA,MAAM,YAAY,GAAG,OAAO,IAAI,KAAK,QAAQ,GAAG,CAAA,EAAG,IAAI,CAAA,EAAA,CAAI,GAAG,SAAS;IACvE,MAAM,SAAS,GAAG;UACb,EAAE,GAAG,KAAK,EAAE,sBAAsB,EAAE,YAAY;UACjD,KAAK;AAET,IAAA,MAAM,aAAa,GAAG,EAAE,CACtB,SAAS,EACT,CAAC,CAAC,GAAG,EACL,QAAQ,EACR,KAAK,IAAI,CAAC,CAAC,CAAA,MAAA,EAAS,KAAK,CAAA,CAAE,CAAC,EAC5B,OAAO,IAAI,CAAC,CAAC,CAAA,QAAA,EAAW,OAAO,CAAA,CAAE,CAAC,EAClC,IAAI,IAAI,CAAC,CAAC,IAAI,EACd,IAAI,IAAI,CAAC,CAAC,CAAA,KAAA,EAAQ,IAAI,CAAA,CAAoB,CAAC,EAC3C,OAAO,IAAI,CAAC,CAAC,IAAI,EACjB,YAAY,IAAI,CAAC,CAAC,YAAY,CAAC,EAC/B,eAAe,CAChB;AAED,IAAA,QACEA,GAAA,CAAC,SAAS,iBAAY,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,EAAA,GAAM,KAAK,YAC/E,QAAQ,EAAA,CACC;AAEhB;;"}
@@ -1,6 +1,6 @@
1
1
  import './row.css';
2
2
 
3
- var s = {"row":"row-module_row__tK3mg","gap-0":"row-module_gap-0__B8drW","gap-1":"row-module_gap-1___Q8pm","gap-2":"row-module_gap-2__nvctX","gap-3":"row-module_gap-3__3NYMq","gap-4":"row-module_gap-4__ZIu3e","gap-5":"row-module_gap-5__5NlJJ","gap-6":"row-module_gap-6__HUQ3h","gap-7":"row-module_gap-7__sdw2M","gap-8":"row-module_gap-8__nwu8D","gap-9":"row-module_gap-9__Ocqqr","gap-10":"row-module_gap-10__iKEJi","gap-11":"row-module_gap-11__4hI3w","gap-12":"row-module_gap-12__Fc9cX","align-start":"row-module_align-start__vK029","align-center":"row-module_align-center__4uOPj","align-end":"row-module_align-end__5criv","align-stretch":"row-module_align-stretch__xbM75","justify-space-between":"row-module_justify-space-between__njigI","justify-space-around":"row-module_justify-space-around__7w6ID","justify-space-evenly":"row-module_justify-space-evenly__DPXuV","justify-start":"row-module_justify-start__ny3F3","justify-end":"row-module_justify-end__C9aT9","justify-center":"row-module_justify-center___1_IC","full":"row-module_full__mCYDz","wrap":"row-module_wrap__QTshh","wrap-fixed":"row-module_wrap-fixed___lusi","break-xl":"row-module_break-xl__k-TPQ","break-lg":"row-module_break-lg__2sF1P","break-md":"row-module_break-md__11DI2","break-sm":"row-module_break-sm__ndWl9","break-xs":"row-module_break-xs__xvZCE"};
3
+ var s = {"row":"row-module_row__tK3mg","flex-1":"row-module_flex-1__HUP39","flex-2":"row-module_flex-2__458Pn","flex-3":"row-module_flex-3__WHhFE","flex-4":"row-module_flex-4___duTL","flex-5":"row-module_flex-5__Xykyf","flex-6":"row-module_flex-6__-uJVB","flex-7":"row-module_flex-7__mKC_G","flex-8":"row-module_flex-8__T5bTm","flex-9":"row-module_flex-9__jnohJ","flex-10":"row-module_flex-10__Y9Wm-","flex-11":"row-module_flex-11__09pfT","flex-12":"row-module_flex-12__Fblaj","gap-0":"row-module_gap-0__B8drW","gap-0-5":"row-module_gap-0-5__LnFQS","gap-1":"row-module_gap-1___Q8pm","gap-1-5":"row-module_gap-1-5__SYfcs","gap-2":"row-module_gap-2__nvctX","gap-3":"row-module_gap-3__3NYMq","gap-4":"row-module_gap-4__ZIu3e","gap-5":"row-module_gap-5__5NlJJ","gap-6":"row-module_gap-6__HUQ3h","gap-7":"row-module_gap-7__sdw2M","gap-8":"row-module_gap-8__nwu8D","gap-9":"row-module_gap-9__Ocqqr","gap-10":"row-module_gap-10__iKEJi","gap-11":"row-module_gap-11__4hI3w","gap-12":"row-module_gap-12__Fc9cX","align-start":"row-module_align-start__vK029","align-center":"row-module_align-center__4uOPj","align-end":"row-module_align-end__5criv","align-stretch":"row-module_align-stretch__xbM75","justify-space-between":"row-module_justify-space-between__njigI","justify-space-around":"row-module_justify-space-around__7w6ID","justify-space-evenly":"row-module_justify-space-evenly__DPXuV","justify-start":"row-module_justify-start__ny3F3","justify-end":"row-module_justify-end__C9aT9","justify-center":"row-module_justify-center___1_IC","full":"row-module_full__mCYDz","wrap":"row-module_wrap__QTshh","wrap-fixed":"row-module_wrap-fixed___lusi","break-xl":"row-module_break-xl__k-TPQ","break-lg":"row-module_break-lg__2sF1P","break-md":"row-module_break-md__11DI2","break-sm":"row-module_break-sm__ndWl9","break-xs":"row-module_break-xs__xvZCE"};
4
4
 
5
5
  export { s as default };
6
6
  //# sourceMappingURL=row.module.scss.js.map
@@ -41,6 +41,7 @@
41
41
  display: none;
42
42
  height: 100svh;
43
43
  inset: 0;
44
+ overflow: auto;
44
45
  position: fixed;
45
46
  top: 0;
46
47
  transition: all var(--sidebar-transition-duration) var(--sidebar-transition-ease);
@@ -97,8 +98,8 @@
97
98
  display: flex;
98
99
  flex: 1 1 auto;
99
100
  flex-direction: column;
101
+ height: 100svh;
100
102
  max-width: 100%;
101
- min-height: 100svh;
102
103
  min-width: 0;
103
104
  position: relative;
104
105
  transition: all var(--sidebar-transition-duration) var(--sidebar-transition-ease);
@@ -548,7 +549,8 @@
548
549
  .sidebar-module_sidebar-base__8Qiqw[data-variant=inset] ~ .sidebar-module_sidebar-inset__DVzuf {
549
550
  border-radius: 1rem;
550
551
  box-shadow: var(--shadow-elevation-10);
552
+ height: calc(100svh - 1rem);
551
553
  margin: 0.5rem 0.5rem 0.5rem 0;
552
- min-height: calc(100svh - 1rem);
554
+ overflow: hidden;
553
555
  }
554
556
  }
@@ -1,8 +1,8 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import { Input } from '../../form/Input/input.js';
3
+ import * as React from 'react';
3
4
  import { useSidebar } from '../../hooks/layout/use-sidebar.js';
4
5
  import '../../ui/Alert/alert-context.js';
5
- import * as React from 'react';
6
6
  import '../../ui/Table/table-sort-context.js';
7
7
  import { useIsMobile } from '../../hooks/use-mobile.js';
8
8
  import { Skeleton } from '../Skeleton/skeleton.js';
@@ -1,4 +1,6 @@
1
1
  export * from './AppContent';
2
+ export * from './AppContentFooter';
3
+ export * from './AppContentMain';
2
4
  export * from './AppFooter';
3
5
  export * from './AppShell';
4
6
  export * from './AppSidebar';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/layout/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/layout/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC"}
package/dist/layout.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- export { A as AppContent, a as AppFooter, b as AppFooterProps, c as AppShell, d as AppShellProps, e as AppSidebar, f as AppSidebarHeader, g as AppSidebarHeaderProps, h as AppSidebarProps, C as Collapse, i as CollapseProps, j as Column, k as ColumnProps, l as Container, G as Grid, R as Row, p as Sidebar, q as SidebarContent, r as SidebarFooter, s as SidebarGroup, t as SidebarGroupAction, u as SidebarGroupContent, v as SidebarGroupLabel, w as SidebarHeader, x as SidebarInput, y as SidebarInset, z as SidebarMenu, B as SidebarMenuAction, D as SidebarMenuBadge, E as SidebarMenuButton, F as SidebarMenuItem, H as SidebarMenuSkeleton, I as SidebarMenuSub, J as SidebarMenuSubButton, K as SidebarMenuSubItem, L as SidebarProvider, M as SidebarRail, N as SidebarTrigger, P as Skeleton } from './index-Mihuyg_o.js';
2
- export { R as RowProps } from './row-CS9-talZ.js';
1
+ export { A as AppContent, a as AppContentFooter, b as AppContentFooterProps, c as AppContentMain, d as AppContentMainProps, e as AppFooter, f as AppFooterProps, g as AppShell, h as AppShellProps, i as AppSidebar, j as AppSidebarHeader, k as AppSidebarHeaderProps, l as AppSidebarProps, C as Collapse, m as CollapseProps, n as Column, o as ColumnProps, p as Container, G as Grid, R as Row, t as Sidebar, u as SidebarContent, v as SidebarFooter, w as SidebarGroup, x as SidebarGroupAction, y as SidebarGroupContent, z as SidebarGroupLabel, B as SidebarHeader, D as SidebarInput, E as SidebarInset, F as SidebarMenu, H as SidebarMenuAction, I as SidebarMenuBadge, J as SidebarMenuButton, K as SidebarMenuItem, L as SidebarMenuSkeleton, M as SidebarMenuSub, N as SidebarMenuSubButton, O as SidebarMenuSubItem, P as SidebarProvider, Q as SidebarRail, T as SidebarTrigger, V as Skeleton } from './index-BWTwKQsp.js';
2
+ export { R as RowProps } from './row-CuhTBQhK.js';
3
3
  import 'react';
4
4
  import './nav-user-CJIcWKyY.js';
5
5
  import 'lucide-react';
6
6
  import './user-menu-content-D0Ldzigm.js';
7
7
  import './input-Cp5LET5i.js';
8
- import './tooltip-cjwkBINy.js';
8
+ import './tooltip-BpAJwi3K.js';
9
9
  import 'class-variance-authority';
10
10
  import 'class-variance-authority/types';
package/dist/layout.js CHANGED
@@ -1,4 +1,6 @@
1
1
  export { AppContent } from './layout/AppContent/app-content.js';
2
+ export { AppContentFooter } from './layout/AppContentFooter/app-content-footer.js';
3
+ export { AppContentMain } from './layout/AppContentMain/app-content-main.js';
2
4
  export { AppFooter } from './layout/AppFooter/app-footer.js';
3
5
  export { AppShell } from './layout/AppShell/app-shell.js';
4
6
  export { AppSidebar } from './layout/AppSidebar/app-sidebar.js';
@@ -1 +1 @@
1
- {"version":3,"file":"layout.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
1
+ {"version":3,"file":"layout.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-menu.d.ts","sourceRoot":"","sources":["../../../src/navigation/DropdownMen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AQ5F;AAED,OAAO,EACL,YAAY,EACZ,wBAAwB,EACxB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,GACpB,CAAC"}
@@ -125,7 +125,7 @@ function DropdownMenuContent({ className, children, align = 'start', sideOffset
125
125
  }, [open, onOpenChange, triggerRef]);
126
126
  if (!mounted)
127
127
  return null;
128
- return createPortal(jsx("div", { ref: measureRef, style: positioned && state !== 'idle'
128
+ return createPortal(jsx("div", { "data-constellation-portal": '', ref: measureRef, style: positioned && state !== 'idle'
129
129
  ? position
130
130
  : { position: 'fixed', visibility: 'hidden', zIndex: 50 }, children: jsx("div", { "data-slot": 'dropdown-menu-content', "data-state": state === 'idle' ? undefined : state, "data-side": resolvedSide, role: 'menu', className: cn(s['dropdown-menu-content'], className), ...props, children: children }) }), document.body);
131
131
  }