@eluan/core 0.5.0 → 0.6.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 (340) hide show
  1. package/README.md +33 -1
  2. package/dist/{action-popover-D6K9aVFk.cjs → action-popover-DrHKPGqw.cjs} +1 -1
  3. package/dist/{action-popover-BVJQBuky.js → action-popover-NkXDAHJT.js} +1 -1
  4. package/dist/action-popover.cjs +1 -1
  5. package/dist/action-popover.js +1 -1
  6. package/dist/{avatar-Co-k8KqV.cjs → avatar-B-t3ctR4.cjs} +1 -1
  7. package/dist/{avatar-CS5f1irF.js → avatar-kDEa0rjF.js} +1 -1
  8. package/dist/avatar.cjs +1 -1
  9. package/dist/avatar.js +1 -1
  10. package/dist/{badge-D9NYZFWH.js → badge-BLZ8V-KC.js} +10 -10
  11. package/dist/{badge-DXKWztL-.cjs → badge-D1A0Tc79.cjs} +1 -1
  12. package/dist/badge.cjs +1 -1
  13. package/dist/badge.js +1 -1
  14. package/dist/{banner-COlEFRuK.cjs → banner-CNdwDPqA.cjs} +1 -1
  15. package/dist/{banner-CyYFLZXw.js → banner-DzSp5WfQ.js} +9 -9
  16. package/dist/banner.cjs +1 -1
  17. package/dist/banner.js +1 -1
  18. package/dist/box-DG-tkaYi.cjs +1 -0
  19. package/dist/box-DKbNgGGG.js +17 -0
  20. package/dist/box.cjs +1 -0
  21. package/dist/box.d.ts +1 -0
  22. package/dist/box.js +5 -0
  23. package/dist/{breadcrumb-NWXeCH5q.cjs → breadcrumb-BuxXkm6O.cjs} +1 -1
  24. package/dist/{breadcrumb-Cm1nb9Xj.js → breadcrumb-C6qj-tDx.js} +1 -1
  25. package/dist/breadcrumb.cjs +1 -1
  26. package/dist/breadcrumb.js +1 -1
  27. package/dist/button--_WI-fM6.cjs +1 -0
  28. package/dist/{button-ANAPDrvs.js → button-DNSNShUc.js} +28 -26
  29. package/dist/button.cjs +1 -1
  30. package/dist/button.js +1 -1
  31. package/dist/{calendar-BpBsomy5.js → calendar-BA2tSwZD.js} +6 -6
  32. package/dist/{calendar-7LX5YGGT.cjs → calendar-DS5821-k.cjs} +3 -3
  33. package/dist/calendar.cjs +1 -1
  34. package/dist/calendar.js +1 -1
  35. package/dist/{card-C88--zB4.cjs → card-BNdR5aDa.cjs} +1 -1
  36. package/dist/{card-BC_4C3ns.js → card-BSgN7WSe.js} +1 -1
  37. package/dist/card.cjs +1 -1
  38. package/dist/card.js +1 -1
  39. package/dist/{carousel-BfL7oy_q.cjs → carousel-4AERgboz.cjs} +1 -1
  40. package/dist/{carousel-DuP0hvF-.js → carousel-Bb7jpzep.js} +1 -1
  41. package/dist/carousel.cjs +1 -1
  42. package/dist/carousel.js +1 -1
  43. package/dist/{checkbox-Bi0Kmuut.js → checkbox-CGUTGery.js} +1 -1
  44. package/dist/{checkbox-M8DmWKiC.cjs → checkbox-Cq9sHU_S.cjs} +1 -1
  45. package/dist/{checkbox-group-KBwPhjmW.cjs → checkbox-group-DGXZ4o2-.cjs} +1 -1
  46. package/dist/{checkbox-group-CQMEJnhD.js → checkbox-group-Tkio3IhK.js} +1 -1
  47. package/dist/checkbox-group.cjs +1 -1
  48. package/dist/checkbox-group.js +1 -1
  49. package/dist/checkbox.cjs +1 -1
  50. package/dist/checkbox.js +1 -1
  51. package/dist/{command-BCl0seLL.cjs → command-D02vvta9.cjs} +1 -1
  52. package/dist/{command-Chs5VlBL.js → command-sUMAxm8S.js} +1 -1
  53. package/dist/command.cjs +1 -1
  54. package/dist/command.js +1 -1
  55. package/dist/components/box.d.ts +12 -0
  56. package/dist/components/grid.d.ts +35 -0
  57. package/dist/components/hover-card.d.ts +14 -2
  58. package/dist/components/icon.d.ts +26 -0
  59. package/dist/components/layout-shared.d.ts +307 -0
  60. package/dist/components/multi-select.d.ts +1 -1
  61. package/dist/components/navigation-drawer.d.ts +25 -5
  62. package/dist/components/row.d.ts +18 -0
  63. package/dist/components/stack.d.ts +14 -0
  64. package/dist/components/tone-shared.d.ts +39 -0
  65. package/dist/components/tooltip.d.ts +14 -2
  66. package/dist/components/typography.d.ts +22 -2
  67. package/dist/components/visually-hidden.d.ts +11 -0
  68. package/dist/{credit-card-input-DN-8vaFj.js → credit-card-input-9VPlzvDm.js} +1 -1
  69. package/dist/{credit-card-input-CUqA9CX3.cjs → credit-card-input-DppPJBne.cjs} +1 -1
  70. package/dist/credit-card-input.cjs +1 -1
  71. package/dist/credit-card-input.js +1 -1
  72. package/dist/{date-picker-ni8td8Ru.js → date-picker-M5hLx_1s.js} +2 -2
  73. package/dist/{date-picker-DGBsfZXx.cjs → date-picker-hE7cDg2B.cjs} +1 -1
  74. package/dist/date-picker.cjs +1 -1
  75. package/dist/date-picker.js +1 -1
  76. package/dist/{datetime-picker-C1d63MaA.cjs → datetime-picker-BeRUPJ7s.cjs} +1 -1
  77. package/dist/{datetime-picker-DsnHYRK-.js → datetime-picker-CIqBZYMH.js} +3 -3
  78. package/dist/datetime-picker.cjs +1 -1
  79. package/dist/datetime-picker.js +1 -1
  80. package/dist/{decimal-input-yTk35W_5.js → decimal-input-Bg2BPKIr.js} +38 -38
  81. package/dist/decimal-input-CkTEjo2J.cjs +1 -0
  82. package/dist/decimal-input.cjs +1 -1
  83. package/dist/decimal-input.js +1 -1
  84. package/dist/{dialog-B8eWKqzS.js → dialog-Bsfviqvy.js} +2 -2
  85. package/dist/dialog-DRAoumvB.cjs +1 -0
  86. package/dist/dialog.cjs +1 -1
  87. package/dist/dialog.js +1 -1
  88. package/dist/{email-input-DFI4h_KN.cjs → email-input-CehmtNUq.cjs} +1 -1
  89. package/dist/{email-input-pX0hlYV3.js → email-input-DIiY9Q3S.js} +1 -1
  90. package/dist/email-input.cjs +1 -1
  91. package/dist/email-input.js +1 -1
  92. package/dist/{footer-DB0_-IwN.cjs → footer-fovIsy-0.cjs} +1 -1
  93. package/dist/{footer-B3KUIwXW.js → footer-jWaFq3qk.js} +9 -9
  94. package/dist/footer.cjs +1 -1
  95. package/dist/footer.js +1 -1
  96. package/dist/grid-BDz4Xs6M.cjs +1 -0
  97. package/dist/grid-BX5vZjDo.js +612 -0
  98. package/dist/grid.cjs +1 -0
  99. package/dist/grid.d.ts +1 -0
  100. package/dist/grid.js +5 -0
  101. package/dist/{header-CDOWlOAR.js → header-Dnf8AnIx.js} +2 -2
  102. package/dist/{header-CiZQY_7S.cjs → header-DzItWqW4.cjs} +1 -1
  103. package/dist/header.cjs +1 -1
  104. package/dist/header.js +1 -1
  105. package/dist/hover-card-C5KsTSZR.cjs +1 -0
  106. package/dist/hover-card-C_FCzE41.js +21 -0
  107. package/dist/hover-card.cjs +1 -1
  108. package/dist/hover-card.js +1 -1
  109. package/dist/icon-BmLOodCQ.cjs +1 -0
  110. package/dist/icon-BwDfkIdR.js +153 -0
  111. package/dist/icon.cjs +1 -0
  112. package/dist/icon.d.ts +1 -0
  113. package/dist/icon.js +5 -0
  114. package/dist/index.cjs +10 -5
  115. package/dist/index.d.ts +6 -0
  116. package/dist/index.js +612 -541
  117. package/dist/{input-BrGJn-D9.cjs → input-BcjL2oxv.cjs} +1 -1
  118. package/dist/{input-Cccufiqn.js → input-CPb9yVU5.js} +8 -8
  119. package/dist/input-otp-BhJ3ERrY.cjs +1 -0
  120. package/dist/{input-otp-DmEGB1nu.js → input-otp-CTvJztkH.js} +32 -32
  121. package/dist/input-otp.cjs +1 -1
  122. package/dist/input-otp.js +1 -1
  123. package/dist/input.cjs +1 -1
  124. package/dist/input.js +1 -1
  125. package/dist/layout-shared-B_1iX4Hj.js +319 -0
  126. package/dist/layout-shared-CsBZcT4V.cjs +1 -0
  127. package/dist/multi-select-CVxkWW29.js +85 -0
  128. package/dist/multi-select-DBFINH3F.cjs +1 -0
  129. package/dist/multi-select.cjs +1 -1
  130. package/dist/multi-select.js +1 -1
  131. package/dist/navigation-drawer-BCBFtLEq.cjs +1 -0
  132. package/dist/navigation-drawer-BMyHXhhX.js +198 -0
  133. package/dist/navigation-drawer.cjs +1 -1
  134. package/dist/navigation-drawer.js +1 -1
  135. package/dist/{number-input-vICbRc2y.js → number-input-Cm9YPBOX.js} +1 -1
  136. package/dist/{number-input-Bc7jUsu-.cjs → number-input-Dr9MbuRV.cjs} +1 -1
  137. package/dist/number-input.cjs +1 -1
  138. package/dist/number-input.js +1 -1
  139. package/dist/{pagination-DTWRjiOm.js → pagination-D2tjMpVU.js} +2 -2
  140. package/dist/{pagination-4IuE_APs.cjs → pagination-yKmFlFMR.cjs} +1 -1
  141. package/dist/pagination.cjs +1 -1
  142. package/dist/pagination.js +1 -1
  143. package/dist/{password-input-BwnlHPbX.cjs → password-input-CmHubHuU.cjs} +1 -1
  144. package/dist/{password-input-B9V45d3Q.js → password-input-ljwdGCO6.js} +2 -2
  145. package/dist/password-input.cjs +1 -1
  146. package/dist/password-input.js +1 -1
  147. package/dist/{phone-input-BQjZj5jI.cjs → phone-input-B8VksCer.cjs} +1 -1
  148. package/dist/{phone-input-CSBpGHvI.js → phone-input-qTL6K8rT.js} +2 -2
  149. package/dist/phone-input.cjs +1 -1
  150. package/dist/phone-input.js +1 -1
  151. package/dist/progress-BpdmBGaX.cjs +1 -0
  152. package/dist/{progress-Dz_it5I-.js → progress-ChFf9bIq.js} +1 -1
  153. package/dist/progress.cjs +1 -1
  154. package/dist/progress.js +1 -1
  155. package/dist/providers/create-theme.d.ts +10 -1
  156. package/dist/providers/eluan-provider.d.ts +2 -1
  157. package/dist/providers/portal-container.d.ts +1 -1
  158. package/dist/{radio-group-C--1neiq.cjs → radio-group-9gozRouT.cjs} +1 -1
  159. package/dist/{radio-group-CNMPZx_2.js → radio-group-Bs9933bk.js} +6 -6
  160. package/dist/radio-group.cjs +1 -1
  161. package/dist/radio-group.js +1 -1
  162. package/dist/{rich-text-BZSyuYSo.js → rich-text-DImwK9hN.js} +1 -1
  163. package/dist/{rich-text-DerWxzdn.cjs → rich-text-DzHLeG7W.cjs} +1 -1
  164. package/dist/rich-text.cjs +1 -1
  165. package/dist/rich-text.js +1 -1
  166. package/dist/row-BYAk7G5d.js +37 -0
  167. package/dist/row-Bjn-GQAC.cjs +1 -0
  168. package/dist/row.cjs +1 -0
  169. package/dist/row.d.ts +1 -0
  170. package/dist/row.js +5 -0
  171. package/dist/{search-input-Dmmo-BEL.cjs → search-input-BKTjebg7.cjs} +1 -1
  172. package/dist/{search-input-bFNW6oiE.js → search-input-Dgr9kT1a.js} +1 -1
  173. package/dist/search-input.cjs +1 -1
  174. package/dist/search-input.js +1 -1
  175. package/dist/select-Cdh991T-.cjs +1 -0
  176. package/dist/{select-DDSYjKtj.js → select-Dp5AJ6I-.js} +15 -15
  177. package/dist/select.cjs +1 -1
  178. package/dist/select.js +1 -1
  179. package/dist/sheet-CkXjinUG.cjs +1 -0
  180. package/dist/{sheet-D5HWF66e.js → sheet-uiyHNKEw.js} +6 -6
  181. package/dist/sheet.cjs +1 -1
  182. package/dist/sheet.js +1 -1
  183. package/dist/{slider-CZQBAXup.js → slider-BQmbh0Nl.js} +1 -1
  184. package/dist/{slider-DdEOapYP.cjs → slider-DK2yk-YK.cjs} +1 -1
  185. package/dist/slider.cjs +1 -1
  186. package/dist/slider.js +1 -1
  187. package/dist/stack-Ck1w2iJu.cjs +1 -0
  188. package/dist/stack-D2btWM1t.js +27 -0
  189. package/dist/stack.cjs +1 -0
  190. package/dist/stack.d.ts +1 -0
  191. package/dist/stack.js +5 -0
  192. package/dist/{stepper-D5nDwJUz.cjs → stepper-ByYKX7qw.cjs} +1 -1
  193. package/dist/{stepper-BtlKiHtd.js → stepper-Copsj87A.js} +4 -4
  194. package/dist/stepper.cjs +1 -1
  195. package/dist/stepper.js +1 -1
  196. package/dist/styles.css +935 -59
  197. package/dist/{switch-KzBijHMJ.cjs → switch-C2OPCq5Z.cjs} +1 -1
  198. package/dist/{switch-C7EBLT5H.js → switch-CXBWUZcq.js} +3 -3
  199. package/dist/switch.cjs +1 -1
  200. package/dist/switch.js +1 -1
  201. package/dist/{tabs-DztJ2iVc.cjs → tabs-D8p6Tr5i.cjs} +1 -1
  202. package/dist/{tabs-C9NKBmH0.js → tabs-TV4_2wi1.js} +9 -9
  203. package/dist/tabs.cjs +1 -1
  204. package/dist/tabs.js +1 -1
  205. package/dist/{textarea-Dl-daLHR.cjs → textarea-BnpQmE74.cjs} +1 -1
  206. package/dist/{textarea-DXUk1b_-.js → textarea-CJRmnazN.js} +1 -1
  207. package/dist/textarea.cjs +1 -1
  208. package/dist/textarea.js +1 -1
  209. package/dist/{time-input-BPoFvoeM.js → time-input-A603mEFQ.js} +38 -38
  210. package/dist/time-input-qxljhdEb.cjs +1 -0
  211. package/dist/time-input.cjs +1 -1
  212. package/dist/time-input.js +1 -1
  213. package/dist/{toggle-Dv1VZ5Le.js → toggle-Bx3q15Pu.js} +6 -6
  214. package/dist/{toggle-Bvh1v32T.cjs → toggle-Z3t4jPdv.cjs} +1 -1
  215. package/dist/{toggle-group-SyHMwO90.cjs → toggle-group-BZIW4wJp.cjs} +1 -1
  216. package/dist/{toggle-group-DE8BPZih.js → toggle-group-LaZmOMx_.js} +7 -7
  217. package/dist/toggle-group.cjs +1 -1
  218. package/dist/toggle-group.js +1 -1
  219. package/dist/toggle.cjs +1 -1
  220. package/dist/toggle.js +1 -1
  221. package/dist/tooltip-DZqn4wKl.js +23 -0
  222. package/dist/tooltip-faf1dIXp.cjs +1 -0
  223. package/dist/tooltip.cjs +1 -1
  224. package/dist/tooltip.js +1 -1
  225. package/dist/{tree-view-CyeJR7cW.js → tree-view-DRmm6oL6.js} +23 -23
  226. package/dist/tree-view-DVQyRQDg.cjs +1 -0
  227. package/dist/tree-view.cjs +1 -1
  228. package/dist/tree-view.js +1 -1
  229. package/dist/visually-hidden-BQMRYGxP.js +14 -0
  230. package/dist/visually-hidden-DzxxOswl.cjs +1 -0
  231. package/dist/visually-hidden.cjs +1 -0
  232. package/dist/visually-hidden.d.ts +1 -0
  233. package/dist/visually-hidden.js +5 -0
  234. package/package.json +8 -8
  235. package/skills/eluan/DESIGN.md +409 -0
  236. package/skills/eluan/SKILL.md +166 -0
  237. package/skills/eluan/components/accordion.md +212 -0
  238. package/skills/eluan/components/action-popover.md +266 -0
  239. package/skills/eluan/components/aspect-ratio.md +169 -0
  240. package/skills/eluan/components/avatar.md +277 -0
  241. package/skills/eluan/components/badge.md +190 -0
  242. package/skills/eluan/components/banner.md +247 -0
  243. package/skills/eluan/components/box.md +166 -0
  244. package/skills/eluan/components/breadcrumb.md +240 -0
  245. package/skills/eluan/components/button.md +214 -0
  246. package/skills/eluan/components/calendar.md +192 -0
  247. package/skills/eluan/components/card.md +270 -0
  248. package/skills/eluan/components/carousel.md +274 -0
  249. package/skills/eluan/components/checkbox-group.md +228 -0
  250. package/skills/eluan/components/checkbox.md +226 -0
  251. package/skills/eluan/components/code-block.md +193 -0
  252. package/skills/eluan/components/collapsible.md +240 -0
  253. package/skills/eluan/components/command.md +359 -0
  254. package/skills/eluan/components/context-menu.md +296 -0
  255. package/skills/eluan/components/credit-card-input.md +217 -0
  256. package/skills/eluan/components/date-picker.md +255 -0
  257. package/skills/eluan/components/date-time-picker.md +196 -0
  258. package/skills/eluan/components/decimal-input.md +232 -0
  259. package/skills/eluan/components/dialog.md +322 -0
  260. package/skills/eluan/components/drawer.md +292 -0
  261. package/skills/eluan/components/dropdown-menu.md +450 -0
  262. package/skills/eluan/components/email-input.md +200 -0
  263. package/skills/eluan/components/fieldset.md +219 -0
  264. package/skills/eluan/components/file-input.md +249 -0
  265. package/skills/eluan/components/footer.md +290 -0
  266. package/skills/eluan/components/form-label.md +254 -0
  267. package/skills/eluan/components/grid.md +192 -0
  268. package/skills/eluan/components/header.md +242 -0
  269. package/skills/eluan/components/hover-card.md +215 -0
  270. package/skills/eluan/components/icon.md +161 -0
  271. package/skills/eluan/components/input-otp.md +227 -0
  272. package/skills/eluan/components/input.md +249 -0
  273. package/skills/eluan/components/kbd.md +216 -0
  274. package/skills/eluan/components/media.md +244 -0
  275. package/skills/eluan/components/menubar.md +300 -0
  276. package/skills/eluan/components/multi-select.md +221 -0
  277. package/skills/eluan/components/navigation-drawer.md +297 -0
  278. package/skills/eluan/components/navigation-menu.md +291 -0
  279. package/skills/eluan/components/number-input.md +190 -0
  280. package/skills/eluan/components/pagination.md +262 -0
  281. package/skills/eluan/components/password-input.md +218 -0
  282. package/skills/eluan/components/phone-input.md +205 -0
  283. package/skills/eluan/components/popover.md +250 -0
  284. package/skills/eluan/components/progress.md +185 -0
  285. package/skills/eluan/components/radio-group.md +232 -0
  286. package/skills/eluan/components/rich-text.md +195 -0
  287. package/skills/eluan/components/row.md +174 -0
  288. package/skills/eluan/components/scroll-area.md +203 -0
  289. package/skills/eluan/components/search-input.md +281 -0
  290. package/skills/eluan/components/segmented-control.md +201 -0
  291. package/skills/eluan/components/select.md +296 -0
  292. package/skills/eluan/components/separator.md +179 -0
  293. package/skills/eluan/components/sheet.md +326 -0
  294. package/skills/eluan/components/skeleton.md +202 -0
  295. package/skills/eluan/components/slider.md +195 -0
  296. package/skills/eluan/components/spinner.md +187 -0
  297. package/skills/eluan/components/stack.md +158 -0
  298. package/skills/eluan/components/stepper.md +236 -0
  299. package/skills/eluan/components/switch.md +218 -0
  300. package/skills/eluan/components/table.md +348 -0
  301. package/skills/eluan/components/tabs.md +277 -0
  302. package/skills/eluan/components/textarea.md +202 -0
  303. package/skills/eluan/components/time-input.md +181 -0
  304. package/skills/eluan/components/toast.md +251 -0
  305. package/skills/eluan/components/toggle-group.md +241 -0
  306. package/skills/eluan/components/toggle.md +198 -0
  307. package/skills/eluan/components/tooltip.md +222 -0
  308. package/skills/eluan/components/tree-view.md +213 -0
  309. package/skills/eluan/components/typography.md +207 -0
  310. package/skills/eluan/components/visually-hidden.md +132 -0
  311. package/skills/eluan/foundations/colour.md +252 -0
  312. package/skills/eluan/foundations/elevation.md +57 -0
  313. package/skills/eluan/foundations/iconography.md +70 -0
  314. package/skills/eluan/foundations/motion.md +60 -0
  315. package/skills/eluan/foundations/radius.md +61 -0
  316. package/skills/eluan/foundations/spacing.md +98 -0
  317. package/skills/eluan/foundations/theming.md +197 -0
  318. package/skills/eluan/foundations/typography.md +163 -0
  319. package/skills/eluan/patterns/empty-states.md +84 -0
  320. package/skills/eluan/patterns/feedback.md +95 -0
  321. package/skills/eluan/patterns/forms.md +138 -0
  322. package/skills/eluan/patterns/navigation.md +95 -0
  323. package/skills/eluan/patterns/page-layout.md +101 -0
  324. package/dist/button-Ny6OF8Un.cjs +0 -1
  325. package/dist/decimal-input-BLmifKF2.cjs +0 -1
  326. package/dist/dialog-DWYtFhZl.cjs +0 -1
  327. package/dist/hover-card-BN7Ew2Y1.js +0 -16
  328. package/dist/hover-card-Dft-08Ha.cjs +0 -1
  329. package/dist/input-otp-DcZ7wyjs.cjs +0 -1
  330. package/dist/multi-select-DPoOHWSC.js +0 -74
  331. package/dist/multi-select-fX5FXYEY.cjs +0 -1
  332. package/dist/navigation-drawer-BbeDYPhu.js +0 -171
  333. package/dist/navigation-drawer-DOOHfbY3.cjs +0 -1
  334. package/dist/progress-DpQjGEyn.cjs +0 -1
  335. package/dist/select-1Eb3NSrR.cjs +0 -1
  336. package/dist/sheet-7NP1LuHy.cjs +0 -1
  337. package/dist/time-input-DR2snTgB.cjs +0 -1
  338. package/dist/tooltip-BlCQKhUE.js +0 -18
  339. package/dist/tooltip-Cyu7fWYZ.cjs +0 -1
  340. package/dist/tree-view-CNvEc1TT.cjs +0 -1
@@ -0,0 +1,307 @@
1
+ import * as React from "react";
2
+ import * as stylex from "@stylexjs/stylex";
3
+ /**
4
+ * A `--spacing-*` token name. Every step is density-aware, so switching
5
+ * `data-spacing` re-flows any layout built from these. `none` is 0.
6
+ */
7
+ export type LayoutSpacing = "none" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl";
8
+ /** A `--size-*` token name (control heights, icon boxes). Density-aware. */
9
+ export type LayoutSize = "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl";
10
+ /** Cross-axis alignment of the children (`align-items`). */
11
+ export type LayoutAlign = "start" | "center" | "end" | "stretch" | "baseline";
12
+ /** Main-axis distribution of the children (`justify-content`). */
13
+ export type LayoutJustify = "start" | "center" | "end" | "between";
14
+ /** `full` is the parent's height (100%), `screen` the viewport's. */
15
+ export type LayoutHeight = "full" | "screen";
16
+ /** `relative` anchors overlays; `absolute` takes the element out of flow. */
17
+ export type LayoutPosition = "relative" | "absolute";
18
+ /** Where an overlay sits in its anchor: covering it, or along one edge. */
19
+ export type LayoutInset = "fill" | "top" | "bottom";
20
+ /** `hidden` clips content that doesn't fit; `auto` scrolls it. */
21
+ export type LayoutOverflow = "hidden" | "auto";
22
+ /** Elements a layout primitive can render as. `asChild` covers anything else. */
23
+ export type LayoutElement = "div" | "span" | "section" | "article" | "aside" | "header" | "footer" | "main" | "nav" | "form" | "fieldset" | "label" | "p" | "ul" | "ol" | "li" | "dl" | "dt" | "dd";
24
+ /** Props every flow primitive shares with `Box`. */
25
+ export interface LayoutBoxProps extends Omit<React.HTMLAttributes<HTMLElement>, "className" | "style"> {
26
+ /** Element override. Defaults to `div`. */
27
+ as?: LayoutElement;
28
+ /** Render the child element instead (Radix Slot); the layout styles move onto it. */
29
+ asChild?: boolean;
30
+ /** Padding on every side. `padX` / `padY` override it per axis. */
31
+ pad?: LayoutSpacing;
32
+ /** Inline padding (left and right in LTR). */
33
+ padX?: LayoutSpacing;
34
+ /** Block padding (top and bottom). */
35
+ padY?: LayoutSpacing;
36
+ /** Take the remaining space in a flex parent: `flex: 1 1 0` with `min-width: 0`. */
37
+ grow?: boolean;
38
+ /** `false` keeps the element at its content size in a flex parent (`flex-shrink: 0`). */
39
+ shrink?: boolean;
40
+ /** `full` fills the parent's height; `screen` fills the viewport (`100dvh`, so mobile browser bars don't cover the bottom). */
41
+ height?: LayoutHeight;
42
+ /** At least the parent's height (`full`) or the viewport's (`screen`). */
43
+ minHeight?: LayoutHeight;
44
+ /** `relative` makes this the anchor for `inset` children; `absolute` takes it out of flow. */
45
+ position?: LayoutPosition;
46
+ /**
47
+ * Pin to the nearest positioned ancestor: `fill` covers it, `top` and
48
+ * `bottom` run along that edge at full width. Sets `position: absolute`.
49
+ */
50
+ inset?: LayoutInset;
51
+ /** `hidden` clips the content; `auto` scrolls it when it doesn't fit. */
52
+ overflow?: LayoutOverflow;
53
+ }
54
+ /** The props `boxStyle` reads; every flow primitive passes them through. */
55
+ export type LayoutBoxStyleProps = Pick<LayoutBoxProps, "pad" | "padX" | "padY" | "grow" | "shrink" | "height" | "minHeight" | "position" | "inset" | "overflow">;
56
+ export declare const gapStyles: Readonly<{
57
+ readonly none: Readonly<{
58
+ readonly gap: stylex.StyleXClassNameFor<"gap", 0>;
59
+ }>;
60
+ readonly xxs: Readonly<{
61
+ readonly gap: stylex.StyleXClassNameFor<"gap", "var(--spacing-xxs)">;
62
+ }>;
63
+ readonly xs: Readonly<{
64
+ readonly gap: stylex.StyleXClassNameFor<"gap", "var(--spacing-xs)">;
65
+ }>;
66
+ readonly sm: Readonly<{
67
+ readonly gap: stylex.StyleXClassNameFor<"gap", "var(--spacing-sm)">;
68
+ }>;
69
+ readonly md: Readonly<{
70
+ readonly gap: stylex.StyleXClassNameFor<"gap", "var(--spacing-md)">;
71
+ }>;
72
+ readonly lg: Readonly<{
73
+ readonly gap: stylex.StyleXClassNameFor<"gap", "var(--spacing-lg)">;
74
+ }>;
75
+ readonly xl: Readonly<{
76
+ readonly gap: stylex.StyleXClassNameFor<"gap", "var(--spacing-xl)">;
77
+ }>;
78
+ readonly "2xl": Readonly<{
79
+ readonly gap: stylex.StyleXClassNameFor<"gap", "var(--spacing-2xl)">;
80
+ }>;
81
+ readonly "3xl": Readonly<{
82
+ readonly gap: stylex.StyleXClassNameFor<"gap", "var(--spacing-3xl)">;
83
+ }>;
84
+ readonly "4xl": Readonly<{
85
+ readonly gap: stylex.StyleXClassNameFor<"gap", "var(--spacing-4xl)">;
86
+ }>;
87
+ }>;
88
+ export declare const alignStyles: Readonly<{
89
+ readonly start: Readonly<{
90
+ readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "flex-start">;
91
+ }>;
92
+ readonly center: Readonly<{
93
+ readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "center">;
94
+ }>;
95
+ readonly end: Readonly<{
96
+ readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "flex-end">;
97
+ }>;
98
+ readonly stretch: Readonly<{
99
+ readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "stretch">;
100
+ }>;
101
+ readonly baseline: Readonly<{
102
+ readonly alignItems: stylex.StyleXClassNameFor<"alignItems", "baseline">;
103
+ }>;
104
+ }>;
105
+ export declare const justifyStyles: Readonly<{
106
+ readonly start: Readonly<{
107
+ readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "flex-start">;
108
+ }>;
109
+ readonly center: Readonly<{
110
+ readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "center">;
111
+ }>;
112
+ readonly end: Readonly<{
113
+ readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "flex-end">;
114
+ }>;
115
+ readonly between: Readonly<{
116
+ readonly justifyContent: stylex.StyleXClassNameFor<"justifyContent", "space-between">;
117
+ }>;
118
+ }>;
119
+ /** Padding, flex, size, position and overflow styles, in `stylex.props` order. */
120
+ export declare function boxStyle({ pad, padX, padY, grow, shrink, height, minHeight, position, inset, overflow, }: LayoutBoxStyleProps): readonly [false | Readonly<{
121
+ readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", 0>;
122
+ }> | Readonly<{
123
+ readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", "var(--spacing-sm)">;
124
+ }> | Readonly<{
125
+ readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", "var(--spacing-lg)">;
126
+ }> | Readonly<{
127
+ readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", "var(--spacing-xxs)">;
128
+ }> | Readonly<{
129
+ readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", "var(--spacing-xs)">;
130
+ }> | Readonly<{
131
+ readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", "var(--spacing-md)">;
132
+ }> | Readonly<{
133
+ readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", "var(--spacing-xl)">;
134
+ }> | Readonly<{
135
+ readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", "var(--spacing-2xl)">;
136
+ }> | Readonly<{
137
+ readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", "var(--spacing-3xl)">;
138
+ }> | Readonly<{
139
+ readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", "var(--spacing-4xl)">;
140
+ }>, false | Readonly<{
141
+ readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", 0>;
142
+ }> | Readonly<{
143
+ readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", "var(--spacing-sm)">;
144
+ }> | Readonly<{
145
+ readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", "var(--spacing-lg)">;
146
+ }> | Readonly<{
147
+ readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", "var(--spacing-xxs)">;
148
+ }> | Readonly<{
149
+ readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", "var(--spacing-xs)">;
150
+ }> | Readonly<{
151
+ readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", "var(--spacing-md)">;
152
+ }> | Readonly<{
153
+ readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", "var(--spacing-xl)">;
154
+ }> | Readonly<{
155
+ readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", "var(--spacing-2xl)">;
156
+ }> | Readonly<{
157
+ readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", "var(--spacing-3xl)">;
158
+ }> | Readonly<{
159
+ readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", "var(--spacing-4xl)">;
160
+ }>, false | Readonly<{
161
+ readonly flexBasis: stylex.StyleXClassNameFor<"flexBasis", 0>;
162
+ readonly flexGrow: stylex.StyleXClassNameFor<"flexGrow", 1>;
163
+ readonly flexShrink: stylex.StyleXClassNameFor<"flexShrink", 1>;
164
+ readonly minWidth: stylex.StyleXClassNameFor<"minWidth", 0>;
165
+ }>, false | Readonly<{
166
+ readonly flexShrink: stylex.StyleXClassNameFor<"flexShrink", 1>;
167
+ }> | Readonly<{
168
+ readonly flexShrink: stylex.StyleXClassNameFor<"flexShrink", 0>;
169
+ }>, false | Readonly<{
170
+ readonly height: stylex.StyleXClassNameFor<"height", "100dvh">;
171
+ }> | Readonly<{
172
+ readonly height: stylex.StyleXClassNameFor<"height", "100%">;
173
+ }>, false | Readonly<{
174
+ readonly minHeight: stylex.StyleXClassNameFor<"minHeight", "100dvh">;
175
+ }> | Readonly<{
176
+ readonly minHeight: stylex.StyleXClassNameFor<"minHeight", "100%">;
177
+ }>, false | Readonly<{
178
+ readonly bottom: stylex.StyleXClassNameFor<"bottom", 0>;
179
+ readonly insetInlineEnd: stylex.StyleXClassNameFor<"insetInlineEnd", 0>;
180
+ readonly insetInlineStart: stylex.StyleXClassNameFor<"insetInlineStart", 0>;
181
+ readonly position: stylex.StyleXClassNameFor<"position", "absolute">;
182
+ }> | Readonly<{
183
+ readonly bottom: stylex.StyleXClassNameFor<"bottom", 0>;
184
+ readonly insetInlineEnd: stylex.StyleXClassNameFor<"insetInlineEnd", 0>;
185
+ readonly insetInlineStart: stylex.StyleXClassNameFor<"insetInlineStart", 0>;
186
+ readonly position: stylex.StyleXClassNameFor<"position", "absolute">;
187
+ readonly top: stylex.StyleXClassNameFor<"top", 0>;
188
+ }> | Readonly<{
189
+ readonly insetInlineEnd: stylex.StyleXClassNameFor<"insetInlineEnd", 0>;
190
+ readonly insetInlineStart: stylex.StyleXClassNameFor<"insetInlineStart", 0>;
191
+ readonly position: stylex.StyleXClassNameFor<"position", "absolute">;
192
+ readonly top: stylex.StyleXClassNameFor<"top", 0>;
193
+ }>, false | Readonly<{
194
+ readonly position: stylex.StyleXClassNameFor<"position", "relative">;
195
+ }> | Readonly<{
196
+ readonly position: stylex.StyleXClassNameFor<"position", "absolute">;
197
+ }>, false | Readonly<{
198
+ readonly overflow: stylex.StyleXClassNameFor<"overflow", "hidden">;
199
+ }> | Readonly<{
200
+ readonly overflow: stylex.StyleXClassNameFor<"overflow", "auto">;
201
+ }>];
202
+ /**
203
+ * Split the `boxStyle` props off the rest, so a primitive spreads only
204
+ * native attributes onto its element.
205
+ */
206
+ export declare function splitBoxProps<P extends LayoutBoxStyleProps>(props: P): readonly [readonly [false | Readonly<{
207
+ readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", 0>;
208
+ }> | Readonly<{
209
+ readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", "var(--spacing-sm)">;
210
+ }> | Readonly<{
211
+ readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", "var(--spacing-lg)">;
212
+ }> | Readonly<{
213
+ readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", "var(--spacing-xxs)">;
214
+ }> | Readonly<{
215
+ readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", "var(--spacing-xs)">;
216
+ }> | Readonly<{
217
+ readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", "var(--spacing-md)">;
218
+ }> | Readonly<{
219
+ readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", "var(--spacing-xl)">;
220
+ }> | Readonly<{
221
+ readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", "var(--spacing-2xl)">;
222
+ }> | Readonly<{
223
+ readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", "var(--spacing-3xl)">;
224
+ }> | Readonly<{
225
+ readonly paddingBlock: stylex.StyleXClassNameFor<"paddingBlock", "var(--spacing-4xl)">;
226
+ }>, false | Readonly<{
227
+ readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", 0>;
228
+ }> | Readonly<{
229
+ readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", "var(--spacing-sm)">;
230
+ }> | Readonly<{
231
+ readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", "var(--spacing-lg)">;
232
+ }> | Readonly<{
233
+ readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", "var(--spacing-xxs)">;
234
+ }> | Readonly<{
235
+ readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", "var(--spacing-xs)">;
236
+ }> | Readonly<{
237
+ readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", "var(--spacing-md)">;
238
+ }> | Readonly<{
239
+ readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", "var(--spacing-xl)">;
240
+ }> | Readonly<{
241
+ readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", "var(--spacing-2xl)">;
242
+ }> | Readonly<{
243
+ readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", "var(--spacing-3xl)">;
244
+ }> | Readonly<{
245
+ readonly paddingInline: stylex.StyleXClassNameFor<"paddingInline", "var(--spacing-4xl)">;
246
+ }>, false | Readonly<{
247
+ readonly flexBasis: stylex.StyleXClassNameFor<"flexBasis", 0>;
248
+ readonly flexGrow: stylex.StyleXClassNameFor<"flexGrow", 1>;
249
+ readonly flexShrink: stylex.StyleXClassNameFor<"flexShrink", 1>;
250
+ readonly minWidth: stylex.StyleXClassNameFor<"minWidth", 0>;
251
+ }>, false | Readonly<{
252
+ readonly flexShrink: stylex.StyleXClassNameFor<"flexShrink", 1>;
253
+ }> | Readonly<{
254
+ readonly flexShrink: stylex.StyleXClassNameFor<"flexShrink", 0>;
255
+ }>, false | Readonly<{
256
+ readonly height: stylex.StyleXClassNameFor<"height", "100dvh">;
257
+ }> | Readonly<{
258
+ readonly height: stylex.StyleXClassNameFor<"height", "100%">;
259
+ }>, false | Readonly<{
260
+ readonly minHeight: stylex.StyleXClassNameFor<"minHeight", "100dvh">;
261
+ }> | Readonly<{
262
+ readonly minHeight: stylex.StyleXClassNameFor<"minHeight", "100%">;
263
+ }>, false | Readonly<{
264
+ readonly bottom: stylex.StyleXClassNameFor<"bottom", 0>;
265
+ readonly insetInlineEnd: stylex.StyleXClassNameFor<"insetInlineEnd", 0>;
266
+ readonly insetInlineStart: stylex.StyleXClassNameFor<"insetInlineStart", 0>;
267
+ readonly position: stylex.StyleXClassNameFor<"position", "absolute">;
268
+ }> | Readonly<{
269
+ readonly bottom: stylex.StyleXClassNameFor<"bottom", 0>;
270
+ readonly insetInlineEnd: stylex.StyleXClassNameFor<"insetInlineEnd", 0>;
271
+ readonly insetInlineStart: stylex.StyleXClassNameFor<"insetInlineStart", 0>;
272
+ readonly position: stylex.StyleXClassNameFor<"position", "absolute">;
273
+ readonly top: stylex.StyleXClassNameFor<"top", 0>;
274
+ }> | Readonly<{
275
+ readonly insetInlineEnd: stylex.StyleXClassNameFor<"insetInlineEnd", 0>;
276
+ readonly insetInlineStart: stylex.StyleXClassNameFor<"insetInlineStart", 0>;
277
+ readonly position: stylex.StyleXClassNameFor<"position", "absolute">;
278
+ readonly top: stylex.StyleXClassNameFor<"top", 0>;
279
+ }>, false | Readonly<{
280
+ readonly position: stylex.StyleXClassNameFor<"position", "relative">;
281
+ }> | Readonly<{
282
+ readonly position: stylex.StyleXClassNameFor<"position", "absolute">;
283
+ }>, false | Readonly<{
284
+ readonly overflow: stylex.StyleXClassNameFor<"overflow", "hidden">;
285
+ }> | Readonly<{
286
+ readonly overflow: stylex.StyleXClassNameFor<"overflow", "auto">;
287
+ }>], Omit<P, "height" | "inset" | "minHeight" | "overflow" | "position" | "shrink" | "pad" | "padX" | "padY" | "grow">];
288
+ /** The element to render: the Slot under `asChild`, else `as`, else a div. */
289
+ export declare function layoutElement(as: LayoutElement | undefined, asChild: boolean): React.ElementType;
290
+ /**
291
+ * Drop `className` / `style`. They're already typed out of every layout
292
+ * primitive; this stops a cast from smuggling them past the token system.
293
+ */
294
+ export declare function withoutStyling<P extends object>(props: P): P;
295
+ /**
296
+ * `stylex.props(...)` plus a static class hook, for the few rules StyleX
297
+ * can't express (child selectors). The hook's rules live in the `base`
298
+ * layer of globals.css, below every StyleX layer, so a child's own
299
+ * component styles still win over them.
300
+ */
301
+ export declare function withClassHook(hook: string, props: ReturnType<typeof stylex.props>): {
302
+ className: string;
303
+ 'data-style-src'?: string;
304
+ style?: Readonly<{
305
+ [$$Key$$: string]: string | number;
306
+ }>;
307
+ };
@@ -16,5 +16,5 @@ export interface MultiSelectProps {
16
16
  searchPlaceholder?: string;
17
17
  value?: string[];
18
18
  }
19
- declare const MultiSelect: React.ForwardRefExoticComponent<MultiSelectProps & React.RefAttributes<HTMLButtonElement>>;
19
+ declare const MultiSelect: React.ForwardRefExoticComponent<MultiSelectProps & React.RefAttributes<HTMLDivElement>>;
20
20
  export { MultiSelect };
@@ -3,12 +3,28 @@ declare const useNavigationDrawer: () => {
3
3
  collapsed: boolean;
4
4
  setCollapsed: (collapsed: boolean) => void;
5
5
  isMobile: boolean;
6
+ /** Whether the mobile (< 768px) sheet is open. Always `false` on desktop. */
7
+ mobileOpen: boolean;
8
+ setMobileOpen: (open: boolean) => void;
6
9
  };
7
- interface NavigationDrawerProviderProps {
10
+ export interface NavigationDrawerProviderProps {
8
11
  children: React.ReactNode;
9
12
  defaultCollapsed?: boolean;
13
+ /**
14
+ * Controlled open state of the mobile (< 768px) sheet. Leave it unset and
15
+ * the provider manages it: the menu button opens the sheet, and clicking a
16
+ * `NavigationDrawerItem` closes it.
17
+ */
18
+ mobileOpen?: boolean;
19
+ /** Initial open state of the mobile sheet when uncontrolled. */
20
+ defaultMobileOpen?: boolean;
21
+ /**
22
+ * Called whenever the mobile sheet opens or closes — from the menu button,
23
+ * Escape, an overlay click, or a `NavigationDrawerItem` click.
24
+ */
25
+ onMobileOpenChange?: (open: boolean) => void;
10
26
  }
11
- declare const NavigationDrawerProvider: ({ children, defaultCollapsed, }: NavigationDrawerProviderProps) => import("react/jsx-runtime").JSX.Element;
27
+ declare const NavigationDrawerProvider: ({ children, defaultCollapsed, mobileOpen: mobileOpenProp, defaultMobileOpen, onMobileOpenChange, }: NavigationDrawerProviderProps) => import("react/jsx-runtime").JSX.Element;
12
28
  declare const NavigationDrawer: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "style" | "className"> & React.RefAttributes<HTMLDivElement>>;
13
29
  declare const NavigationDrawerHeader: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "style" | "className"> & React.RefAttributes<HTMLDivElement>>;
14
30
  declare const NavigationDrawerContent: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement>, "style" | "className"> & React.RefAttributes<HTMLDivElement>>;
@@ -16,6 +32,11 @@ declare const NavigationDrawerFooter: React.ForwardRefExoticComponent<Omit<React
16
32
  declare const NavigationDrawerToggle: React.ForwardRefExoticComponent<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "style" | "className"> & React.RefAttributes<HTMLButtonElement>>;
17
33
  export interface NavigationDrawerItemProps extends Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "className" | "style"> {
18
34
  icon?: React.ReactNode;
35
+ /**
36
+ * Render the item as its single child element — typically a router link
37
+ * such as Next.js `<Link>` — instead of an `<a>`. The icon and the
38
+ * truncating label wrapper are placed inside that element.
39
+ */
19
40
  asChild?: boolean;
20
41
  active?: boolean;
21
42
  }
@@ -45,13 +66,12 @@ declare const NavigationDrawerGroup: React.ForwardRefExoticComponent<Omit<React.
45
66
  * </NavigationDrawerLayout>
46
67
  * ```
47
68
  */
48
- interface NavigationDrawerLayoutProps {
69
+ export interface NavigationDrawerLayoutProps extends Omit<NavigationDrawerProviderProps, "children"> {
49
70
  children: React.ReactNode;
50
71
  sidebar: React.ReactNode;
51
- defaultCollapsed?: boolean;
52
72
  }
53
73
  declare const NavigationDrawerLayout: {
54
- ({ children, sidebar, defaultCollapsed, }: NavigationDrawerLayoutProps): import("react/jsx-runtime").JSX.Element;
74
+ ({ children, sidebar, ...providerProps }: NavigationDrawerLayoutProps): import("react/jsx-runtime").JSX.Element;
55
75
  displayName: string;
56
76
  };
57
77
  export { NavigationDrawerProvider, NavigationDrawer, NavigationDrawerHeader, NavigationDrawerContent, NavigationDrawerFooter, NavigationDrawerToggle, NavigationDrawerItem, NavigationDrawerGroup, NavigationDrawerLayout, useNavigationDrawer, };
@@ -0,0 +1,18 @@
1
+ import * as React from "react";
2
+ import { type LayoutAlign, type LayoutBoxProps, type LayoutJustify, type LayoutSpacing } from "./layout-shared";
3
+ export type { LayoutAlign, LayoutElement, LayoutJustify, LayoutSpacing, } from "./layout-shared";
4
+ export interface RowProps extends LayoutBoxProps {
5
+ /** Cross-axis alignment. Rows centre their children by default. */
6
+ align?: LayoutAlign;
7
+ /** Space between children, as a `--spacing-*` token name. */
8
+ gap?: LayoutSpacing;
9
+ /** Render as `inline-flex`, so the row sits in a line of text. */
10
+ inline?: boolean;
11
+ /** Main-axis distribution. `between` pushes the first and last child apart. */
12
+ justify?: LayoutJustify;
13
+ /** Let children wrap onto further lines (the gap applies between lines too). */
14
+ wrap?: boolean;
15
+ }
16
+ /** Horizontal flow: children in a line, vertically centred by default. */
17
+ declare const Row: React.ForwardRefExoticComponent<RowProps & React.RefAttributes<HTMLElement>>;
18
+ export { Row };
@@ -0,0 +1,14 @@
1
+ import * as React from "react";
2
+ import { type LayoutAlign, type LayoutBoxProps, type LayoutJustify, type LayoutSpacing } from "./layout-shared";
3
+ export type { LayoutAlign, LayoutElement, LayoutJustify, LayoutSpacing, } from "./layout-shared";
4
+ export interface StackProps extends LayoutBoxProps {
5
+ /** Cross-axis alignment. Unset, children stretch to the stack's width. */
6
+ align?: LayoutAlign;
7
+ /** Space between children, as a `--spacing-*` token name. */
8
+ gap?: LayoutSpacing;
9
+ /** Main-axis distribution. */
10
+ justify?: LayoutJustify;
11
+ }
12
+ /** Vertical flow: children stacked with a token gap. */
13
+ declare const Stack: React.ForwardRefExoticComponent<StackProps & React.RefAttributes<HTMLElement>>;
14
+ export { Stack };
@@ -0,0 +1,39 @@
1
+ import * as stylex from "@stylexjs/stylex";
2
+ /**
3
+ * A foreground colour from the theme.
4
+ *
5
+ * - `default`, `muted`, `inverse`: body text, secondary text, text on an
6
+ * inverse surface (`--container-fg*`).
7
+ * - `inherit`: the parent's colour, for text inside a Banner, Button or link.
8
+ * - `positive`, `destructive`: status text, such as a success or error
9
+ * message (`--positive-fg`, `--destructive-fg`, both held to 4.5:1).
10
+ * - `interactive`, `interactive-muted`: text on a control you build
11
+ * yourself, such as a custom menu trigger (`--interactive-fg*`).
12
+ */
13
+ export type Tone = "default" | "muted" | "inverse" | "inherit" | "positive" | "destructive" | "interactive" | "interactive-muted";
14
+ export declare const toneStyles: Readonly<{
15
+ readonly default: Readonly<{
16
+ readonly color: stylex.StyleXClassNameFor<"color", "var(--container-fg)">;
17
+ }>;
18
+ readonly muted: Readonly<{
19
+ readonly color: stylex.StyleXClassNameFor<"color", "var(--container-fg-alt)">;
20
+ }>;
21
+ readonly inverse: Readonly<{
22
+ readonly color: stylex.StyleXClassNameFor<"color", "var(--container-fg-inverse)">;
23
+ }>;
24
+ readonly inherit: Readonly<{
25
+ readonly color: stylex.StyleXClassNameFor<"color", "inherit">;
26
+ }>;
27
+ readonly positive: Readonly<{
28
+ readonly color: stylex.StyleXClassNameFor<"color", "var(--positive-fg)">;
29
+ }>;
30
+ readonly destructive: Readonly<{
31
+ readonly color: stylex.StyleXClassNameFor<"color", "var(--destructive-fg)">;
32
+ }>;
33
+ readonly interactive: Readonly<{
34
+ readonly color: stylex.StyleXClassNameFor<"color", "var(--interactive-fg)">;
35
+ }>;
36
+ readonly "interactive-muted": Readonly<{
37
+ readonly color: stylex.StyleXClassNameFor<"color", "var(--interactive-fg-alt)">;
38
+ }>;
39
+ }>;
@@ -3,7 +3,19 @@ import * as TooltipPrimitive from "@radix-ui/react-tooltip";
3
3
  declare const TooltipProvider: ({ delayDuration, ...props }: React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Provider>) => import("react/jsx-runtime").JSX.Element;
4
4
  declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
5
5
  declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
6
- export type TooltipContentProps = Omit<React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>, "className" | "style">;
7
- declare const TooltipContent: React.ForwardRefExoticComponent<TooltipContentProps & React.RefAttributes<HTMLDivElement>>;
6
+ export type TooltipContentProps = Omit<React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content>, "className" | "style"> & {
7
+ /**
8
+ * Element to portal into, overriding `PortalContainerProvider`.
9
+ * Defaults to the nearest provider's container, then `document.body`.
10
+ */
11
+ container?: HTMLElement | null;
12
+ };
13
+ declare const TooltipContent: React.ForwardRefExoticComponent<Omit<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref">, "style" | "className"> & {
14
+ /**
15
+ * Element to portal into, overriding `PortalContainerProvider`.
16
+ * Defaults to the nearest provider's container, then `document.body`.
17
+ */
18
+ container?: HTMLElement | null;
19
+ } & React.RefAttributes<HTMLDivElement>>;
8
20
  export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
9
21
  export type TooltipProps = React.ComponentProps<typeof Tooltip>;
@@ -1,4 +1,5 @@
1
1
  import * as React from "react";
2
+ import { type Tone } from "./tone-shared";
2
3
  export type TypographyVariant = "display" | "title" | "heading" | "subheading" | "lead" | "body" | "label" | "caption";
3
4
  /**
4
5
  * A rung on the fluid typeset (typeset.css). Names mirror the CSS token
@@ -9,7 +10,17 @@ export type TypographyElement = "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" |
9
10
  /** The full Inter Variable weight axis — every step is a real face. */
10
11
  export type TypographyWeight = "thin" | "extralight" | "light" | "normal" | "medium" | "semibold" | "bold" | "extrabold" | "black";
11
12
  export type TypographyFamily = "heading" | "body" | "mono";
12
- export type TypographyTone = "default" | "muted" | "inverse";
13
+ /**
14
+ * `inherit` takes the parent's colour, for text inside a Banner, Button or
15
+ * link; `positive` and `destructive` are status text; `interactive` and
16
+ * `interactive-muted` are text on a control you build yourself.
17
+ */
18
+ export type TypographyTone = Tone;
19
+ /**
20
+ * A density-aware size: the `--font-size-*` aliases, which sit one typeset
21
+ * step lower in compact spacing and one higher in wide.
22
+ */
23
+ export type TypographySize = "xs" | "sm" | "base" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl";
13
24
  export type TypographyAlign = "start" | "center" | "end";
14
25
  export interface TypographyProps extends Omit<React.HTMLAttributes<HTMLElement>, "className" | "style"> {
15
26
  /** Render the child element instead of the default one (Radix Slot). */
@@ -20,13 +31,22 @@ export interface TypographyProps extends Omit<React.HTMLAttributes<HTMLElement>,
20
31
  as?: TypographyElement;
21
32
  /** Font family override; each variant already picks a sensible one. */
22
33
  family?: TypographyFamily;
34
+ /**
35
+ * Size the text by the spacing density instead of a fixed step, so it
36
+ * re-flows with `data-spacing` like the components around it. Reads the
37
+ * `--font-size-*`, `--line-height-*` and `--letter-spacing-*` aliases
38
+ * together. Takes precedence over `step`.
39
+ */
40
+ size?: TypographySize;
23
41
  /**
24
42
  * Override the typeset step, keeping the variant's family and weight.
25
43
  * Swaps all three of size / line-height / letter-spacing together, so the
26
44
  * heading tracking stays matched to the size.
27
45
  */
28
46
  step?: TypographyStep;
29
- /** Foreground token. */
47
+ /** Tabular figures: every digit the same width, so numbers line up in columns. */
48
+ tabular?: boolean;
49
+ /** Foreground token. Defaults to `"default"`. */
30
50
  tone?: TypographyTone;
31
51
  /** Single-line ellipsis. */
32
52
  truncate?: boolean;
@@ -0,0 +1,11 @@
1
+ import * as React from "react";
2
+ export type VisuallyHiddenElement = "span" | "div" | "p" | "label" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
3
+ export interface VisuallyHiddenProps extends Omit<React.HTMLAttributes<HTMLElement>, "className" | "style"> {
4
+ /** Element override. Defaults to `span`. */
5
+ as?: VisuallyHiddenElement;
6
+ /** Hide the child element instead of wrapping it (Radix Slot). */
7
+ asChild?: boolean;
8
+ }
9
+ /** Content for screen readers only: removed from view, kept in the accessibility tree. */
10
+ declare const VisuallyHidden: React.ForwardRefExoticComponent<VisuallyHiddenProps & React.RefAttributes<HTMLElement>>;
11
+ export { VisuallyHidden };
@@ -2,7 +2,7 @@
2
2
  import { jsx as C, jsxs as s } from "react/jsx-runtime";
3
3
  import * as H from "react";
4
4
  import { Lock as D, Calendar as z, CreditCard as E } from "lucide-react";
5
- import { I as f } from "./input-Cccufiqn.js";
5
+ import { I as f } from "./input-CPb9yVU5.js";
6
6
  const P = [{
7
7
  type: "visa",
8
8
  name: "Visa",