@slotted/react 0.1.0-beta.10 → 0.1.0-beta.12

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 (329) hide show
  1. package/dist/action-bar-z2DPc1Wy.js +285 -0
  2. package/dist/action-bar.js +1 -1
  3. package/dist/action-sheet-BnedGewu.js +360 -0
  4. package/dist/action-sheet.js +1 -1
  5. package/dist/{alert-BTcqbG8w.js → alert-BTAXJ69M.js} +5 -5
  6. package/dist/alert.js +1 -1
  7. package/dist/{app-shell-BlkqQrOx.js → app-shell-Cb_kDBeV.js} +232 -173
  8. package/dist/app-shell.js +1 -1
  9. package/dist/{attachment-zlOPJvIm.js → attachment-D1O4qS8H.js} +28 -28
  10. package/dist/attachment.js +1 -1
  11. package/dist/{breadcrumb-DCGynpkb.js → breadcrumb-CnFjxxI2.js} +10 -10
  12. package/dist/breadcrumb.js +1 -1
  13. package/dist/{button-BCVjdzkn.js → button-D31perSu.js} +2 -2
  14. package/dist/button.js +2 -2
  15. package/dist/{calendar-qGUJ-kAy.js → calendar-DZyC1gAT.js} +8 -8
  16. package/dist/calendar.js +1 -1
  17. package/dist/{carousel-CjRTu8m7.js → carousel-Dso3gcYd.js} +14 -14
  18. package/dist/carousel.js +1 -1
  19. package/dist/cascader-BbajBwsX.js +1157 -0
  20. package/dist/cascader.js +1 -1
  21. package/dist/{chart-CPFq3jIE.js → chart-Bb6ctahn.js} +9 -9
  22. package/dist/chart.js +1 -1
  23. package/dist/{checkbox-CMY2KIih.js → checkbox-C_8GVtjD.js} +3 -3
  24. package/dist/{checkbox-group-DzMtLF7f.js → checkbox-group-DXCcusol.js} +2 -2
  25. package/dist/checkbox-group.js +1 -1
  26. package/dist/checkbox.js +1 -1
  27. package/dist/{code-block-Bh_2Eg3M.js → code-block-C4mtsROE.js} +8 -8
  28. package/dist/code-block.js +1 -1
  29. package/dist/{color-picker-DlepH5co.js → color-picker-JZPnPb7s.js} +49 -49
  30. package/dist/color-picker.js +1 -1
  31. package/dist/{column-manager-CV9tCnKa.js → column-manager-BDUj-WIs.js} +31 -31
  32. package/dist/column-manager.js +1 -1
  33. package/dist/combobox-Dn69QwGX.js +904 -0
  34. package/dist/combobox.js +1 -1
  35. package/dist/command-palette-Dh1HKz_F.js +744 -0
  36. package/dist/command-palette.js +1 -1
  37. package/dist/{context-menu-Dbc0KkFp.js → context-menu-uJjEmAN3.js} +1 -1
  38. package/dist/context-menu.js +1 -1
  39. package/dist/{currency-field--wIfgVAx.js → currency-field-lHcrNJ7X.js} +13 -13
  40. package/dist/currency-field.js +1 -1
  41. package/dist/{dashboard-grid-D_LbWfdZ.js → dashboard-grid-z-SOm9H0.js} +65 -65
  42. package/dist/dashboard-grid.js +1 -1
  43. package/dist/{data-grid-XH5fGoGj.js → data-grid-Kj1b9RD-.js} +1316 -1272
  44. package/dist/data-grid.js +1 -1
  45. package/dist/data-list-BgdkA3bD.js +587 -0
  46. package/dist/data-list.js +1 -1
  47. package/dist/{date-field-BrNyJBiJ.js → date-field-B2lQzE3p.js} +5 -5
  48. package/dist/date-field.js +1 -1
  49. package/dist/{date-picker-Nl55so0C.js → date-picker-DpTRb-Y1.js} +16 -16
  50. package/dist/date-picker.js +1 -1
  51. package/dist/{date-range-picker-DLkvfUJD.js → date-range-picker-CBUPJep5.js} +17 -17
  52. package/dist/date-range-picker.js +1 -1
  53. package/dist/{datetime-field-CZRhRDPb.js → datetime-field-BZ44uJ_B.js} +7 -7
  54. package/dist/datetime-field.js +1 -1
  55. package/dist/{datetime-picker-_GHra2WL.js → datetime-picker-BK_bV3Yr.js} +21 -21
  56. package/dist/datetime-picker.js +1 -1
  57. package/dist/{datetime-range-picker-Dy1A0Wqy.js → datetime-range-picker-ChdbRgzQ.js} +21 -21
  58. package/dist/datetime-range-picker.js +1 -1
  59. package/dist/{description-list-Cc4JYZ-3.js → description-list-CYlfHDwx.js} +11 -11
  60. package/dist/description-list.js +1 -1
  61. package/dist/{detail-panel-BI_wHSoz.js → detail-panel-DimjnPI8.js} +91 -91
  62. package/dist/detail-panel.js +1 -1
  63. package/dist/{dialog-B6MP7GYI.js → dialog-BB5MdJex.js} +108 -108
  64. package/dist/dialog.js +1 -1
  65. package/dist/docs/action-bar.json +4 -4
  66. package/dist/docs/action-bar.md +3 -3
  67. package/dist/docs/calendar.md +2 -2
  68. package/dist/docs/command-palette.json +1 -0
  69. package/dist/docs/command-palette.md +1 -1
  70. package/dist/docs/data-grid.examples.md +8 -2
  71. package/dist/docs/data-grid.json +12 -2
  72. package/dist/docs/data-grid.md +3 -1
  73. package/dist/docs/detail-panel.json +4 -2
  74. package/dist/docs/detail-panel.md +15 -5
  75. package/dist/docs/dialog.json +1 -0
  76. package/dist/docs/dialog.md +1 -1
  77. package/dist/docs/drawer.json +6 -4
  78. package/dist/docs/drawer.md +3 -3
  79. package/dist/docs/event-calendar.md +2 -2
  80. package/dist/docs/guidelines/index.md +4 -3
  81. package/dist/docs/guidelines/layout-alignment.md +17 -7
  82. package/dist/docs/guidelines/list-pages.md +3 -3
  83. package/dist/docs/page-header.json +18 -2
  84. package/dist/docs/page-header.md +5 -3
  85. package/dist/docs/page.json +1 -0
  86. package/dist/docs/page.md +1 -1
  87. package/dist/docs/rating.md +1 -1
  88. package/dist/docs/section.json +1 -1
  89. package/dist/docs/section.md +1 -1
  90. package/dist/docs/skills/compose-screen/SKILL.md +12 -4
  91. package/dist/docs/skills/review-screen/SKILL.md +20 -18
  92. package/dist/docs/skills/theme-app/SKILL.md +12 -1
  93. package/dist/docs/toast.json +1 -0
  94. package/dist/docs/toast.md +1 -1
  95. package/dist/docs/tokens.md +1 -1
  96. package/dist/docs/toolbar.json +1 -1
  97. package/dist/docs/toolbar.md +1 -1
  98. package/dist/docs/typography.md +1 -1
  99. package/dist/{drawer-CkpFlKYa.js → drawer-fyPyxnYQ.js} +216 -206
  100. package/dist/drawer.js +1 -1
  101. package/dist/entity-picker-ClyhBTyK.js +1283 -0
  102. package/dist/entity-picker.js +1 -1
  103. package/dist/{event-calendar-BDjI5T44.js → event-calendar-COgC24UG.js} +23 -23
  104. package/dist/event-calendar.js +1 -1
  105. package/dist/{field-group-CCM2vPKL.js → field-group-Bj-EbPIU.js} +2 -2
  106. package/dist/field-group.js +1 -1
  107. package/dist/{field-CzSGs7wo.js → field-tnEZiRLg.js} +19 -19
  108. package/dist/field.js +1 -1
  109. package/dist/filter-bar-BRuCz79-.js +1342 -0
  110. package/dist/filter-bar.js +1 -1
  111. package/dist/{form-CDq04WDY.js → form-DEcJ7tHf.js} +1 -1
  112. package/dist/form.js +1 -1
  113. package/dist/{fullscreen-6GW4naDP.js → fullscreen-BwweNj3-.js} +13 -13
  114. package/dist/fullscreen.js +1 -1
  115. package/dist/{hover-card-aadyPXzF.js → hover-card-BWcU37Yp.js} +1 -1
  116. package/dist/hover-card.js +1 -1
  117. package/dist/{i18n-DpW8lqJ1.js → i18n-D7xXDd8-.js} +11 -4
  118. package/dist/i18n.js +1 -1
  119. package/dist/{icon-button-CRB218_z.js → icon-button-DbSZKGT4.js} +73 -71
  120. package/dist/{import-export-center-DUrNwRKP.js → import-export-center-CYf0Qxl_.js} +291 -289
  121. package/dist/import-export-center.js +1 -1
  122. package/dist/index.js +100 -100
  123. package/dist/{kbd-Z4YmSPRy.js → kbd-dNz8QHfL.js} +1 -1
  124. package/dist/kbd.js +1 -1
  125. package/dist/{link-BsSlZ1ts.js → link-DLPyg54C.js} +5 -5
  126. package/dist/link.js +1 -1
  127. package/dist/{listbox-VFcfZT70.js → listbox-BSqx_ARf.js} +1 -1
  128. package/dist/listbox.js +1 -1
  129. package/dist/{loading-overlay-BZPBDK4w.js → loading-overlay-BLIrcaoj.js} +9 -9
  130. package/dist/loading-overlay.js +1 -1
  131. package/dist/{markdown-BmCU_sOv.js → markdown-DccRb1xf.js} +17 -17
  132. package/dist/markdown.js +1 -1
  133. package/dist/{menu-parts-DS9JEUCt.js → menu-parts-CNNHRduK.js} +42 -42
  134. package/dist/menu.js +1 -1
  135. package/dist/{menubar-BV43BKep.js → menubar-Bdr6zigi.js} +1 -1
  136. package/dist/menubar.js +1 -1
  137. package/dist/message-BkTiWsUp.js +436 -0
  138. package/dist/message-scroller-akQEtQLn.js +218 -0
  139. package/dist/message-scroller.js +1 -1
  140. package/dist/message.js +1 -1
  141. package/dist/{multi-select-YaxhhH9y.js → multi-select-BvlJIEtz.js} +445 -443
  142. package/dist/multi-select.js +1 -1
  143. package/dist/{navigation-menu-parts-B64gKl8B.js → navigation-menu-parts-CEW4fgCo.js} +12 -12
  144. package/dist/navigation-menu.js +1 -1
  145. package/dist/{notification-center-Ci-OLWTO.js → notification-center-BQO0Ey3h.js} +40 -40
  146. package/dist/notification-center.js +1 -1
  147. package/dist/{number-field-BYQmPyM-.js → number-field-D1MqT8_A.js} +13 -13
  148. package/dist/number-field.js +1 -1
  149. package/dist/{otp-input-BKO0WPZc.js → otp-input-Cub9H9Di.js} +1 -1
  150. package/dist/otp-input.js +1 -1
  151. package/dist/{page-CfjGviUA.js → page-CwYmBoZQ.js} +1 -1
  152. package/dist/{page-header-w_PFLnLG.js → page-header-CMxCQqu_.js} +117 -114
  153. package/dist/page-header.js +1 -1
  154. package/dist/page.js +1 -1
  155. package/dist/{pagination-Cm9665gb.js → pagination-IEuos7H1.js} +12 -12
  156. package/dist/pagination.js +1 -1
  157. package/dist/{popover-D1krYeP-.js → popover-C7NpEzq6.js} +22 -22
  158. package/dist/popover.js +1 -1
  159. package/dist/prompt-composer-Cu8bj1Vb.js +276 -0
  160. package/dist/prompt-composer.js +1 -1
  161. package/dist/{prose-Bl5OjXTb.js → prose-CQN4Bqqh.js} +1 -1
  162. package/dist/prose.js +1 -1
  163. package/dist/{radio-group-D9VTBLUB.js → radio-group-BHlDgCLk.js} +2 -2
  164. package/dist/radio-group.js +1 -1
  165. package/dist/{rating-BRqsV5OF.js → rating-Cr0lXaAV.js} +15 -15
  166. package/dist/rating.js +1 -1
  167. package/dist/{saved-views-C_76obIv.js → saved-views-CyLSn8a2.js} +151 -151
  168. package/dist/saved-views.js +1 -1
  169. package/dist/{scroll-area-vrm2bbtZ.js → scroll-area-Fr0PmnRS.js} +1 -1
  170. package/dist/scroll-area.js +1 -1
  171. package/dist/{segmented-control-5DTOKO3g.js → segmented-control-uPnQYklX.js} +2 -2
  172. package/dist/segmented-control.js +1 -1
  173. package/dist/select-C0JYHwBy.js +1020 -0
  174. package/dist/select.js +1 -1
  175. package/dist/{side-navigation-MNMSkj9b.js → side-navigation-D8lRpHwj.js} +64 -64
  176. package/dist/side-navigation.js +1 -1
  177. package/dist/{skeleton-DyOwgYmF.js → skeleton-DeEOmm1y.js} +1 -1
  178. package/dist/skeleton.js +1 -1
  179. package/dist/{slider-OMe1DAC-.js → slider-BSI1xvjw.js} +2 -2
  180. package/dist/slider.js +1 -1
  181. package/dist/{sparkline-ChkaLVdY.js → sparkline-CYU4_lCD.js} +1 -1
  182. package/dist/sparkline.js +1 -1
  183. package/dist/spinner-ring-DyfaYloA.js +19 -0
  184. package/dist/{split-button-DbmRwfMC.js → split-button-CkbylOMN.js} +2 -2
  185. package/dist/split-button.js +1 -1
  186. package/dist/{stat-card-BSnsTmsq.js → stat-card-CAh4SdeY.js} +16 -16
  187. package/dist/stat-card.js +1 -1
  188. package/dist/{status-indicator-CyKhBdvN.js → status-indicator-BVMnpcm8.js} +4 -4
  189. package/dist/status-indicator.js +1 -1
  190. package/dist/{stepper-Cw1Auv3n.js → stepper-BLfvMz04.js} +16 -16
  191. package/dist/stepper.js +1 -1
  192. package/dist/styles/action-bar.css +1 -1
  193. package/dist/styles/action-sheet.css +2 -2
  194. package/dist/styles/button.css +2 -2
  195. package/dist/styles/cascader.css +2 -2
  196. package/dist/styles/chart.css +1 -1
  197. package/dist/styles/column-manager.css +3 -3
  198. package/dist/styles/command-palette.css +3 -3
  199. package/dist/styles/dashboard-grid.css +2 -2
  200. package/dist/styles/data-grid.css +3 -3
  201. package/dist/styles/data-list.css +2 -2
  202. package/dist/styles/detail-panel.css +4 -4
  203. package/dist/styles/dialog.css +1 -1
  204. package/dist/styles/drawer.css +1 -1
  205. package/dist/styles/entity-picker.css +1 -1
  206. package/dist/styles/event-calendar.css +1 -1
  207. package/dist/styles/filter-bar.css +3 -3
  208. package/dist/styles/import-export-center.css +4 -4
  209. package/dist/styles/index.css +12 -12
  210. package/dist/styles/markdown.css +2 -2
  211. package/dist/styles/multi-select.css +1 -1
  212. package/dist/styles/notification-center.css +3 -3
  213. package/dist/styles/page-header.css +2 -2
  214. package/dist/styles/page.css +1 -1
  215. package/dist/styles/prompt-composer.css +1 -1
  216. package/dist/styles/saved-views.css +2 -2
  217. package/dist/styles/split-button.css +2 -2
  218. package/dist/styles/table.css +2 -2
  219. package/dist/styles/tabs.css +1 -1
  220. package/dist/styles/timeline.css +1 -1
  221. package/dist/styles/toast.css +1 -1
  222. package/dist/styles/tour.css +2 -2
  223. package/dist/styles/transfer.css +2 -2
  224. package/dist/styles/upload.css +1 -1
  225. package/dist/styles/wizard.css +2 -2
  226. package/dist/styles.css +1 -1
  227. package/dist/{switch-CQ1rpuKa.js → switch-BHyKHqeI.js} +5 -5
  228. package/dist/switch.js +1 -1
  229. package/dist/{table-DpGTPtnb.js → table-C8zOHDcY.js} +30 -30
  230. package/dist/{table-of-contents-BFVERMZy.js → table-of-contents-BAIuPCdy.js} +8 -8
  231. package/dist/table-of-contents.js +1 -1
  232. package/dist/table.js +1 -1
  233. package/dist/{tag-aX7uyAN0.js → tag-XYGEPUHR.js} +14 -14
  234. package/dist/tag.js +1 -1
  235. package/dist/{tags-input-BgpS22sf.js → tags-input-ClYSd-No.js} +40 -40
  236. package/dist/tags-input.js +1 -1
  237. package/dist/text-field-Cguj75tn.js +205 -0
  238. package/dist/text-field.js +1 -1
  239. package/dist/{textarea-DNCjsQYd.js → textarea-BKsh_jAo.js} +1 -1
  240. package/dist/textarea.js +1 -1
  241. package/dist/{time-field-Cm6iBjwH.js → time-field-BIE4WMpS.js} +7 -7
  242. package/dist/time-field.js +1 -1
  243. package/dist/{time-picker-Ce18FSO2.js → time-picker-CNfafRDF.js} +18 -18
  244. package/dist/time-picker.js +1 -1
  245. package/dist/{time-range-picker-kDnw4PQ3.js → time-range-picker-D7gM_Wno.js} +20 -20
  246. package/dist/time-range-picker.js +1 -1
  247. package/dist/timeline-BLadNUkS.js +449 -0
  248. package/dist/timeline.js +1 -1
  249. package/dist/{toast-58ex8PDK.js → toast-CjbiXiza.js} +16 -16
  250. package/dist/toast.js +1 -1
  251. package/dist/{toggle-group-YxVJlCnI.js → toggle-group-BZmghKac.js} +1 -1
  252. package/dist/toggle-group.js +1 -1
  253. package/dist/toolbar-BI4ZepBs.js +243 -0
  254. package/dist/toolbar.js +1 -1
  255. package/dist/{top-navigation-DorkYBnR.js → top-navigation-BTZpx5VA.js} +13 -13
  256. package/dist/top-navigation.js +1 -1
  257. package/dist/{tour-CwK_m_Jp.js → tour-_CQ1kYov.js} +23 -23
  258. package/dist/tour.js +1 -1
  259. package/dist/{transfer-DxGDWIEt.js → transfer-BVhBdIGp.js} +59 -59
  260. package/dist/transfer.js +1 -1
  261. package/dist/tree-DfI9UWLA.js +794 -0
  262. package/dist/tree.js +1 -1
  263. package/dist/types/action-bar/action-bar-overflow.d.ts.map +1 -1
  264. package/dist/types/action-bar/action-bar.types.d.ts +2 -2
  265. package/dist/types/action-sheet/action-sheet-parts.d.ts.map +1 -1
  266. package/dist/types/app-shell/app-shell-parts.d.ts.map +1 -1
  267. package/dist/types/app-shell/app-shell.d.ts.map +1 -1
  268. package/dist/types/app-shell/app-shell.types.d.ts +21 -14
  269. package/dist/types/app-shell/app-shell.types.d.ts.map +1 -1
  270. package/dist/types/app-shell/index.d.ts +1 -1
  271. package/dist/types/app-shell/index.d.ts.map +1 -1
  272. package/dist/types/button/button-indicator.d.ts.map +1 -1
  273. package/dist/types/button/spinner-ring.d.ts +8 -0
  274. package/dist/types/button/spinner-ring.d.ts.map +1 -0
  275. package/dist/types/cascader/cascader-surface.d.ts.map +1 -1
  276. package/dist/types/cascader/cascader.d.ts.map +1 -1
  277. package/dist/types/combobox/combobox-parts.d.ts.map +1 -1
  278. package/dist/types/command-palette/command-palette.d.ts.map +1 -1
  279. package/dist/types/data-grid/data-grid-body.d.ts +7 -2
  280. package/dist/types/data-grid/data-grid-body.d.ts.map +1 -1
  281. package/dist/types/data-grid/data-grid-header.d.ts.map +1 -1
  282. package/dist/types/data-grid/data-grid.d.ts +1 -1
  283. package/dist/types/data-grid/data-grid.d.ts.map +1 -1
  284. package/dist/types/detail-panel/detail-panel-parts.d.ts +2 -1
  285. package/dist/types/detail-panel/detail-panel-parts.d.ts.map +1 -1
  286. package/dist/types/drawer/drawer-parts.d.ts.map +1 -1
  287. package/dist/types/entity-picker/entity-picker-control.d.ts.map +1 -1
  288. package/dist/types/filter-bar/filter-bar.d.ts.map +1 -1
  289. package/dist/types/i18n/slotted-provider.d.ts +6 -0
  290. package/dist/types/i18n/slotted-provider.d.ts.map +1 -1
  291. package/dist/types/import-export-center/import-export-center.d.ts.map +1 -1
  292. package/dist/types/message/message-parts.d.ts.map +1 -1
  293. package/dist/types/message-scroller/message-scroller.d.ts.map +1 -1
  294. package/dist/types/multi-select/multi-select-parts.d.ts.map +1 -1
  295. package/dist/types/page-header/page-header-defaults.d.ts +1 -1
  296. package/dist/types/page-header/page-header-defaults.d.ts.map +1 -1
  297. package/dist/types/page-header/page-header.d.ts +1 -1
  298. package/dist/types/page-header/page-header.d.ts.map +1 -1
  299. package/dist/types/page-header/page-header.types.d.ts +9 -0
  300. package/dist/types/page-header/page-header.types.d.ts.map +1 -1
  301. package/dist/types/prompt-composer/prompt-composer.d.ts.map +1 -1
  302. package/dist/types/select/select-parts.d.ts.map +1 -1
  303. package/dist/types/text-field/text-field.d.ts.map +1 -1
  304. package/dist/types/timeline/timeline-parts.d.ts.map +1 -1
  305. package/dist/types/timeline/timeline.d.ts.map +1 -1
  306. package/dist/types/toolbar/toolbar-overflow.d.ts.map +1 -1
  307. package/dist/types/toolbar/toolbar.types.d.ts +2 -2
  308. package/dist/types/tree/tree-parts.d.ts.map +1 -1
  309. package/dist/{upload-CEDsfMWz.js → upload-N2-nyO8x.js} +65 -65
  310. package/dist/upload.js +1 -1
  311. package/dist/{wizard-B3p7zCSj.js → wizard-CK1x2fs3.js} +16 -16
  312. package/dist/wizard.js +1 -1
  313. package/package.json +6 -6
  314. package/dist/action-bar-CJgBierN.js +0 -283
  315. package/dist/action-sheet-tRrjm7WQ.js +0 -358
  316. package/dist/cascader-DqlC1z5b.js +0 -1154
  317. package/dist/combobox-YWFkxaQ3.js +0 -902
  318. package/dist/command-palette-DXNq-zKN.js +0 -741
  319. package/dist/data-list-DZCN_uW1.js +0 -587
  320. package/dist/entity-picker-CFwLGQeU.js +0 -1281
  321. package/dist/filter-bar-G50WdRac.js +0 -1340
  322. package/dist/message-Dtck9RJy.js +0 -434
  323. package/dist/message-scroller-niUJ8RoL.js +0 -216
  324. package/dist/prompt-composer-sh_TXKYZ.js +0 -273
  325. package/dist/select-BFx5EgAa.js +0 -1018
  326. package/dist/text-field-DL_uhNXV.js +0 -203
  327. package/dist/timeline-pEL30Jp8.js +0 -446
  328. package/dist/toolbar-BtIyVbs4.js +0 -241
  329. package/dist/tree-DbLRyItM.js +0 -792
@@ -1,19 +1,19 @@
1
- import { n as e, t } from "./icon-DjqSEQ-o.js";
2
- import { r as n } from "./i18n-DpW8lqJ1.js";
1
+ import { r as e } from "./i18n-D7xXDd8-.js";
2
+ import { n as t, t as n } from "./icon-DjqSEQ-o.js";
3
3
  import { i as r, n as i, o as a } from "./progress-indicator-D0acshNn.js";
4
4
  import { keyedProps as o } from "@slotted/core/selector-key";
5
5
  import { createFocusScope as s, focusTarget as c } from "@slotted/core/focus";
6
6
  import { createControllable as l } from "@slotted/core/state";
7
7
  import { createContext as u, isValidElement as d, useCallback as f, useContext as p, useEffect as m, useId as h, useImperativeHandle as g, useLayoutEffect as _, useMemo as v, useRef as y, useState as b } from "react";
8
8
  import { Fragment as ee, jsx as x, jsxs as te } from "react/jsx-runtime";
9
- import { createPresence as S } from "@slotted/core/presence";
10
- import { setPortalContainer as C } from "@slotted/core/portal";
11
- import { createDismissableLayer as ne } from "@slotted/core/dismissable-layer";
9
+ import { createPresence as ne } from "@slotted/core/presence";
12
10
  import { appShellMessages as re } from "@slotted/core/i18n";
13
- import { EXTENT_LARGE_STEP_PX as ie, EXTENT_STEP_PX as ae, anchorsAtStart as oe, extentAtPoint as se, holdResizeGesture as ce, stepAmountFromPixels as le, stepExtent as ue } from "@slotted/core/extent";
14
- import { COMPACT_BELOW as de, clamp as w, createWidthGate as fe } from "@slotted/core/measure";
11
+ import { setPortalContainer as ie } from "@slotted/core/portal";
12
+ import { createDismissableLayer as ae } from "@slotted/core/dismissable-layer";
13
+ import { EXTENT_LARGE_STEP_PX as oe, EXTENT_STEP_PX as se, anchorsAtStart as ce, extentAtPoint as le, holdResizeGesture as ue, stepAmountFromPixels as de, stepExtent as fe } from "@slotted/core/extent";
14
+ import { COMPACT_BELOW as pe, clamp as S, createWidthGate as me } from "@slotted/core/measure";
15
15
  //#region src/app-shell/app-shell-defaults.tsx
16
- var pe = u({
16
+ var he = u({
17
17
  asideMode: "auto",
18
18
  asideSize: "md",
19
19
  canvas: "inset",
@@ -30,12 +30,12 @@ var pe = u({
30
30
  scroll: "content",
31
31
  separation: "rule"
32
32
  });
33
- function T() {
34
- return p(pe);
33
+ function C() {
34
+ return p(he);
35
35
  }
36
- function me({ children: e, ...t }) {
37
- let n = T();
38
- return /* @__PURE__ */ x(pe.Provider, {
36
+ function ge({ children: e, ...t }) {
37
+ let n = C();
38
+ return /* @__PURE__ */ x(he.Provider, {
39
39
  value: {
40
40
  asideMode: t.asideMode ?? n.asideMode,
41
41
  asideSize: t.asideSize ?? n.asideSize,
@@ -58,8 +58,8 @@ function me({ children: e, ...t }) {
58
58
  }
59
59
  //#endregion
60
60
  //#region src/app-shell/app-shell-parts.tsx
61
- function E(e, t) {
62
- let n = I();
61
+ function w(e, t) {
62
+ let n = L();
63
63
  return f((r) => {
64
64
  n.nodes[e] = r, typeof t == "function" ? t(r) : t != null && (t.current = r);
65
65
  }, [
@@ -68,68 +68,85 @@ function E(e, t) {
68
68
  e
69
69
  ]);
70
70
  }
71
- function D(e) {
72
- let t = I();
71
+ function T(e) {
72
+ return f((t) => {
73
+ typeof e == "function" ? e(t) : e != null && (e.current = t);
74
+ }, [e]);
75
+ }
76
+ function E(e) {
77
+ let t = L();
73
78
  m(() => t.register(e), [e, t]);
74
79
  }
75
- function O(e, t) {
80
+ function D(e, t) {
76
81
  return t === void 0 ? null : t(e);
77
82
  }
78
- function he({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
79
- let s = E("banner", n), c = o({
83
+ function _e({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
84
+ let s = w("banner", n), c = o({
80
85
  ...a,
81
86
  children: e,
82
87
  className: t,
83
88
  "data-part": "banner",
84
89
  style: i
85
90
  });
86
- return O(c, r) ?? /* @__PURE__ */ x("header", {
91
+ return D({
92
+ ...c,
93
+ ref: s
94
+ }, r) ?? /* @__PURE__ */ x("header", {
87
95
  ...c,
88
96
  ref: s
89
97
  });
90
98
  }
91
- function ge({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
99
+ function ve({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
92
100
  let s = o({
93
101
  ...a,
94
102
  children: e,
95
103
  className: t,
96
104
  "data-part": "brand",
97
105
  style: i
98
- });
99
- return O(s, r) ?? /* @__PURE__ */ x("div", {
106
+ }), c = T(n);
107
+ return D({
108
+ ...s,
109
+ ref: c
110
+ }, r) ?? /* @__PURE__ */ x("div", {
100
111
  ...s,
101
- ref: n
112
+ ref: c
102
113
  });
103
114
  }
104
- function _e({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
115
+ function ye({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
105
116
  let s = o({
106
117
  ...a,
107
118
  children: e,
108
119
  className: t,
109
120
  "data-part": "centre",
110
121
  style: i
111
- });
112
- return O(s, r) ?? /* @__PURE__ */ x("div", {
122
+ }), c = T(n);
123
+ return D({
113
124
  ...s,
114
- ref: n
125
+ ref: c
126
+ }, r) ?? /* @__PURE__ */ x("div", {
127
+ ...s,
128
+ ref: c
115
129
  });
116
130
  }
117
- function ve({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
131
+ function be({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
118
132
  let s = o({
119
133
  ...a,
120
134
  children: e,
121
135
  className: t,
122
136
  "data-part": "actions",
123
137
  style: i
124
- });
125
- return O(s, r) ?? /* @__PURE__ */ x("div", {
138
+ }), c = T(n);
139
+ return D({
140
+ ...s,
141
+ ref: c
142
+ }, r) ?? /* @__PURE__ */ x("div", {
126
143
  ...s,
127
- ref: n
144
+ ref: c
128
145
  });
129
146
  }
130
- function ye({ "aria-label": e, children: t, className: n, id: r, ref: i, render: a, style: s, ...c }) {
131
- let l = I(), u = E("nav", i);
132
- D("nav");
147
+ function xe({ "aria-label": e, children: t, className: n, id: r, ref: i, render: a, style: s, ...c }) {
148
+ let l = L(), u = w("nav", i);
149
+ E("nav");
133
150
  let d = o({
134
151
  ...c,
135
152
  "aria-label": e ?? l.t("nav"),
@@ -139,66 +156,81 @@ function ye({ "aria-label": e, children: t, className: n, id: r, ref: i, render:
139
156
  id: r ?? l.navId,
140
157
  style: s
141
158
  });
142
- return O(d, a) ?? /* @__PURE__ */ x("nav", {
159
+ return D({
160
+ ...d,
161
+ ref: u
162
+ }, a) ?? /* @__PURE__ */ x("nav", {
143
163
  ...d,
144
164
  ref: u
145
165
  });
146
166
  }
147
- function be({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
167
+ function Se({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
148
168
  let s = o({
149
169
  ...a,
150
170
  children: e,
151
171
  className: t,
152
172
  "data-part": "nav-rail",
153
173
  style: i
154
- });
155
- return O(s, r) ?? /* @__PURE__ */ x("div", {
174
+ }), c = T(n);
175
+ return D({
176
+ ...s,
177
+ ref: c
178
+ }, r) ?? /* @__PURE__ */ x("div", {
156
179
  ...s,
157
- ref: n
180
+ ref: c
158
181
  });
159
182
  }
160
- function xe({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
183
+ function Ce({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
161
184
  let s = o({
162
185
  ...a,
163
186
  children: e,
164
187
  className: t,
165
188
  "data-part": "nav-header",
166
189
  style: i
167
- });
168
- return O(s, r) ?? /* @__PURE__ */ x("div", {
190
+ }), c = T(n);
191
+ return D({
192
+ ...s,
193
+ ref: c
194
+ }, r) ?? /* @__PURE__ */ x("div", {
169
195
  ...s,
170
- ref: n
196
+ ref: c
171
197
  });
172
198
  }
173
- function Se({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
199
+ function we({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
174
200
  let s = o({
175
201
  ...a,
176
202
  children: e,
177
203
  className: t,
178
204
  "data-part": "nav-body",
179
205
  style: i
180
- });
181
- return O(s, r) ?? /* @__PURE__ */ x("div", {
206
+ }), c = T(n);
207
+ return D({
182
208
  ...s,
183
- ref: n
209
+ ref: c
210
+ }, r) ?? /* @__PURE__ */ x("div", {
211
+ ...s,
212
+ ref: c
184
213
  });
185
214
  }
186
- function Ce({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
215
+ function Te({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
187
216
  let s = o({
188
217
  ...a,
189
218
  children: e,
190
219
  className: t,
191
220
  "data-part": "nav-footer",
192
221
  style: i
193
- });
194
- return O(s, r) ?? /* @__PURE__ */ x("div", {
222
+ }), c = T(n);
223
+ return D({
224
+ ...s,
225
+ ref: c
226
+ }, r) ?? /* @__PURE__ */ x("div", {
195
227
  ...s,
196
- ref: n
228
+ ref: c
197
229
  });
198
230
  }
199
- function we({ children: e, className: t, id: n, ref: r, render: i, style: a, ...s }) {
200
- let c = I(), l = E("main", r);
201
- D("main");
231
+ function O({ children: e, className: t, id: n, ref: r, render: i, style: a, ...s }) {
232
+ let c = L(), l = w("main", r);
233
+ E("main");
202
234
  let u = o({
203
235
  ...c.busy ? { "aria-busy": !0 } : {},
204
236
  ...s,
@@ -208,13 +240,16 @@ function we({ children: e, className: t, id: n, ref: r, render: i, style: a, ...
208
240
  id: n ?? c.mainId,
209
241
  style: a
210
242
  });
211
- return O(u, i) ?? /* @__PURE__ */ x("main", {
243
+ return D({
244
+ ...u,
245
+ ref: l
246
+ }, i) ?? /* @__PURE__ */ x("main", {
212
247
  ...u,
213
248
  ref: l
214
249
  });
215
250
  }
216
- function Te({ delay: e, label: t, loading: n = !0, minDuration: o, onWithdraw: s, size: c, ...l }) {
217
- let u = I(), d = a(), f = r({
251
+ function k({ delay: e, label: t, loading: n = !0, minDuration: o, onWithdraw: s, size: c, ...l }) {
252
+ let u = L(), d = a(), f = r({
218
253
  delay: e ?? d.delay ?? 200,
219
254
  loading: n,
220
255
  minDuration: o ?? d.minDuration ?? 400,
@@ -236,9 +271,9 @@ function Te({ delay: e, label: t, loading: n = !0, minDuration: o, onWithdraw: s
236
271
  })
237
272
  });
238
273
  }
239
- function k({ "aria-label": e, children: t, className: n, id: r, ref: i, render: a, style: s, ...c }) {
240
- let l = I(), u = E("aside", i);
241
- D("aside");
274
+ function A({ "aria-label": e, children: t, className: n, id: r, ref: i, render: a, style: s, ...c }) {
275
+ let l = L(), u = w("aside", i);
276
+ E("aside");
242
277
  let d = l.asideExtent, f = o({
243
278
  ...c,
244
279
  "aria-label": e ?? l.t("aside"),
@@ -252,25 +287,31 @@ function k({ "aria-label": e, children: t, className: n, id: r, ref: i, render:
252
287
  "--slotted-app-shell-aside-extent": `${Math.round(d * 1e4) / 100}cqi`
253
288
  }
254
289
  });
255
- return O(f, a) ?? /* @__PURE__ */ x("aside", {
290
+ return D({
291
+ ...f,
292
+ ref: u
293
+ }, a) ?? /* @__PURE__ */ x("aside", {
256
294
  ...f,
257
295
  ref: u
258
296
  });
259
297
  }
260
- function A({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
298
+ function Ee({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
261
299
  let s = o({
262
300
  ...a,
263
301
  children: e,
264
302
  className: t,
265
303
  "data-part": "aside-header",
266
304
  style: i
267
- });
268
- return O(s, r) ?? /* @__PURE__ */ x("div", {
305
+ }), c = T(n);
306
+ return D({
269
307
  ...s,
270
- ref: n
308
+ ref: c
309
+ }, r) ?? /* @__PURE__ */ x("div", {
310
+ ...s,
311
+ ref: c
271
312
  });
272
313
  }
273
- function Ee({ children: e, className: t, inset: n, ref: r, render: i, style: a, ...s }) {
314
+ function De({ children: e, className: t, inset: n, ref: r, render: i, style: a, ...s }) {
274
315
  let c = o({
275
316
  ...s,
276
317
  children: e,
@@ -278,14 +319,17 @@ function Ee({ children: e, className: t, inset: n, ref: r, render: i, style: a,
278
319
  ...n === void 0 ? {} : { "data-inset": n },
279
320
  "data-part": "aside-body",
280
321
  style: a
281
- });
282
- return O(c, i) ?? /* @__PURE__ */ x("div", {
322
+ }), l = T(r);
323
+ return D({
283
324
  ...c,
284
- ref: r
325
+ ref: l
326
+ }, i) ?? /* @__PURE__ */ x("div", {
327
+ ...c,
328
+ ref: l
285
329
  });
286
330
  }
287
- var De = typeof document > "u" ? m : _;
288
- function j(e) {
331
+ var j = typeof document > "u" ? m : _;
332
+ function Oe(e) {
289
333
  return e !== null && getComputedStyle(e).direction === "rtl";
290
334
  }
291
335
  function M(e) {
@@ -298,10 +342,10 @@ function M(e) {
298
342
  y: t.y
299
343
  };
300
344
  }
301
- var Oe = 3;
302
- function N({ "aria-label": e, className: t, onKeyDown: n, onPointerDown: r, ref: i, render: a, style: s, ...c }) {
303
- let l = I(), u = y(null), d = y(null), f = y(null), [p, h] = b(void 0), g = l.navSide === "end" ? "start" : "end", _ = l.asideMode === "inline" && l.asideOpen, { asideExtent: v, nodes: ee, root: te } = l;
304
- if (De(() => {
345
+ var N = 3;
346
+ function ke({ "aria-label": e, className: t, onKeyDown: n, onPointerDown: r, ref: i, render: a, style: s, ...c }) {
347
+ let l = L(), u = y(null), d = y(null), f = y(null), [p, h] = b(void 0), g = l.navSide === "end" ? "start" : "end", _ = l.asideMode === "inline" && l.asideOpen, { asideExtent: v, nodes: ee, root: te } = l;
348
+ if (j(() => {
305
349
  let e = ee.aside;
306
350
  if (!_ || v !== void 0 || e === null) return;
307
351
  let t = () => {
@@ -318,49 +362,49 @@ function N({ "aria-label": e, className: t, onKeyDown: n, onPointerDown: r, ref:
318
362
  te,
319
363
  _
320
364
  ]), m(() => () => f.current?.(), []), !_) return null;
321
- let S = w(l.asideExtent ?? p ?? l.minAsideExtent, l.minAsideExtent, l.maxAsideExtent), C = (e) => Math.round(w(e, 0, 1) * 100), ne = (e, t) => se({
365
+ let ne = S(l.asideExtent ?? p ?? l.minAsideExtent, l.minAsideExtent, l.maxAsideExtent), re = (e) => Math.round(S(e, 0, 1) * 100), ie = (e, t) => le({
322
366
  point: {
323
367
  x: e.clientX,
324
368
  y: e.clientY
325
369
  },
326
370
  rect: t,
327
- rtl: j(u.current),
371
+ rtl: Oe(u.current),
328
372
  side: g
329
- }), re = (e) => {
373
+ }), ae = (e) => {
330
374
  if (r?.(e), e.defaultPrevented || e.button !== 0) return;
331
375
  let t = M(l.root);
332
376
  t === null || t.width <= 0 || (e.preventDefault(), e.currentTarget.setPointerCapture(e.pointerId), e.currentTarget.focus(), d.current = {
333
377
  moved: !1,
334
- offset: S - ne(e, t),
378
+ offset: ne - ie(e, t),
335
379
  x: e.clientX
336
380
  });
337
- }, de = (e) => {
381
+ }, pe = (e) => {
338
382
  let t = d.current;
339
383
  if (t === null) return;
340
384
  let n = M(l.root);
341
385
  if (!(n === null || n.width <= 0)) {
342
386
  if (!t.moved) {
343
- if (Math.abs(e.clientX - t.x) < Oe) return;
344
- t.moved = !0, f.current?.(), f.current = ce(u.current?.ownerDocument, "col-resize"), l.setAsideDragging(!0);
387
+ if (Math.abs(e.clientX - t.x) < N) return;
388
+ t.moved = !0, f.current?.(), f.current = ue(u.current?.ownerDocument, "col-resize"), l.setAsideDragging(!0);
345
389
  }
346
- l.setAsideExtent(ne(e, n) + t.offset, "pointer", e);
390
+ l.setAsideExtent(ie(e, n) + t.offset, "pointer", e);
347
391
  }
348
- }, fe = (e) => {
392
+ }, me = (e) => {
349
393
  let t = d.current;
350
394
  t !== null && (d.current = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId), t.moved && (f.current?.(), f.current = null, l.setAsideDragging(!1)));
351
- }, pe = (e) => {
395
+ }, he = (e) => {
352
396
  if (n?.(e), e.defaultPrevented) return;
353
- let t = oe(g, j(u.current)), r = (t) => {
397
+ let t = ce(g, Oe(u.current)), r = (t) => {
354
398
  e.preventDefault();
355
- let n = M(l.root), r = n === null ? 0 : le({
356
- pixels: e.shiftKey ? ie : ae,
399
+ let n = M(l.root), r = n === null ? 0 : de({
400
+ pixels: e.shiftKey ? oe : se,
357
401
  rect: n,
358
402
  side: g
359
403
  });
360
- l.setAsideExtent(ue({
404
+ l.setAsideExtent(fe({
361
405
  amount: r,
362
406
  direction: t,
363
- fraction: S,
407
+ fraction: ne,
364
408
  max: l.maxAsideExtent,
365
409
  min: l.minAsideExtent
366
410
  }), "keyboard", e);
@@ -372,72 +416,78 @@ function N({ "aria-label": e, className: t, onKeyDown: n, onPointerDown: r, ref:
372
416
  case "End": return e.preventDefault(), l.setAsideExtent(l.maxAsideExtent, "keyboard", e);
373
417
  default: return;
374
418
  }
375
- }, T = (e) => {
419
+ }, C = (e) => {
376
420
  u.current = e, typeof i == "function" ? i(e) : i && (i.current = e);
377
- }, me = o({
421
+ }, ge = o({
378
422
  ...c,
379
423
  "aria-controls": l.asideId,
380
424
  "aria-label": e ?? l.t("resizeAside"),
381
425
  "aria-orientation": "vertical",
382
- "aria-valuemax": C(l.maxAsideExtent),
383
- "aria-valuemin": C(l.minAsideExtent),
384
- "aria-valuenow": C(S),
426
+ "aria-valuemax": re(l.maxAsideExtent),
427
+ "aria-valuemin": re(l.minAsideExtent),
428
+ "aria-valuenow": re(ne),
385
429
  className: t,
386
430
  "data-part": "aside-resizer",
387
- onKeyDown: pe,
388
- onLostPointerCapture: fe,
389
- onPointerDown: re,
390
- onPointerMove: de,
391
- onPointerUp: fe,
431
+ onKeyDown: he,
432
+ onLostPointerCapture: me,
433
+ onPointerDown: ae,
434
+ onPointerMove: pe,
435
+ onPointerUp: me,
392
436
  role: "separator",
393
437
  style: s,
394
438
  tabIndex: 0
395
439
  });
396
440
  return a === void 0 ? /* @__PURE__ */ x("div", {
397
- ...me,
398
- ref: T
441
+ ...ge,
442
+ ref: C
399
443
  }) : a({
400
- ...me,
401
- ref: T
444
+ ...ge,
445
+ ref: C
402
446
  });
403
447
  }
404
- function ke({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
448
+ function Ae({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
405
449
  let s = o({
406
450
  ...a,
407
451
  children: e,
408
452
  className: t,
409
453
  "data-part": "aside-footer",
410
454
  style: i
411
- });
412
- return O(s, r) ?? /* @__PURE__ */ x("div", {
455
+ }), c = T(n);
456
+ return D({
413
457
  ...s,
414
- ref: n
458
+ ref: c
459
+ }, r) ?? /* @__PURE__ */ x("div", {
460
+ ...s,
461
+ ref: c
415
462
  });
416
463
  }
417
- function Ae({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
418
- let s = E("footer", n), c = o({
464
+ function P({ children: e, className: t, ref: n, render: r, style: i, ...a }) {
465
+ let s = w("footer", n), c = o({
419
466
  ...a,
420
467
  children: e,
421
468
  className: t,
422
469
  "data-part": "footer",
423
470
  style: i
424
471
  });
425
- return O(c, r) ?? /* @__PURE__ */ x("footer", {
472
+ return D({
473
+ ...c,
474
+ ref: s
475
+ }, r) ?? /* @__PURE__ */ x("footer", {
426
476
  ...c,
427
477
  ref: s
428
478
  });
429
479
  }
430
- function P({ "aria-controls": n, "aria-label": r, children: i, className: a, id: s, onClick: c, ref: l, render: u, style: d, type: p, ...m }) {
431
- let h = I(), g = E("toggle", l), _ = f((e) => {
480
+ function F({ "aria-controls": e, "aria-label": r, children: i, className: a, id: s, onClick: c, ref: l, render: u, style: d, type: p, ...m }) {
481
+ let h = L(), g = w("toggle", l), _ = f((e) => {
432
482
  if (c?.(e), e.defaultPrevented) return;
433
483
  let t = e.detail === 0 ? "keyboard" : "pointer";
434
484
  h.setOpen(!h.open, t, e.nativeEvent);
435
485
  }, [c, h]), v = o({
436
486
  ...m,
437
- "aria-controls": n ?? h.navId,
487
+ "aria-controls": e ?? h.navId,
438
488
  "aria-expanded": h.open,
439
489
  "aria-label": r ?? (h.open ? h.t("close") : h.t("open")),
440
- children: i ?? /* @__PURE__ */ x(t, { children: /* @__PURE__ */ x(e, { name: h.open ? "panel-close" : "panel-open" }) }),
490
+ children: i ?? /* @__PURE__ */ x(n, { children: /* @__PURE__ */ x(t, { name: h.open ? "panel-close" : "panel-open" }) }),
441
491
  className: a,
442
492
  "data-part": "nav-toggle",
443
493
  id: s ?? h.toggleId,
@@ -445,22 +495,25 @@ function P({ "aria-controls": n, "aria-label": r, children: i, className: a, id:
445
495
  style: d,
446
496
  type: p ?? "button"
447
497
  });
448
- return O(v, u) ?? /* @__PURE__ */ x("button", {
498
+ return D({
499
+ ...v,
500
+ ref: g
501
+ }, u) ?? /* @__PURE__ */ x("button", {
449
502
  ...v,
450
503
  ref: g
451
504
  });
452
505
  }
453
- function F({ "aria-controls": n, "aria-label": r, children: i, className: a, id: s, onClick: c, ref: l, render: u, style: d, type: p, ...m }) {
454
- let h = I(), g = E("asideToggle", l), _ = f((e) => {
506
+ function I({ "aria-controls": e, "aria-label": r, children: i, className: a, id: s, onClick: c, ref: l, render: u, style: d, type: p, ...m }) {
507
+ let h = L(), g = w("asideToggle", l), _ = f((e) => {
455
508
  if (c?.(e), e.defaultPrevented) return;
456
509
  let t = e.detail === 0 ? "keyboard" : "pointer";
457
510
  h.setAsideOpen(!h.asideOpen, t, e.nativeEvent);
458
511
  }, [c, h]), v = o({
459
512
  ...m,
460
- "aria-controls": n ?? h.asideId,
513
+ "aria-controls": e ?? h.asideId,
461
514
  "aria-expanded": h.asideOpen,
462
515
  "aria-label": r ?? (h.asideOpen ? h.t("closeAside") : h.t("openAside")),
463
- children: i ?? /* @__PURE__ */ x(t, { children: /* @__PURE__ */ x(e, { name: h.asideOpen ? "panel-close" : "panel-open" }) }),
516
+ children: i ?? /* @__PURE__ */ x(n, { children: /* @__PURE__ */ x(t, { name: h.asideOpen ? "panel-close" : "panel-open" }) }),
464
517
  className: a,
465
518
  "data-part": "aside-toggle",
466
519
  id: s ?? h.asideToggleId,
@@ -468,31 +521,34 @@ function F({ "aria-controls": n, "aria-label": r, children: i, className: a, id:
468
521
  style: d,
469
522
  type: p ?? "button"
470
523
  });
471
- return O(v, u) ?? /* @__PURE__ */ x("button", {
524
+ return D({
525
+ ...v,
526
+ ref: g
527
+ }, u) ?? /* @__PURE__ */ x("button", {
472
528
  ...v,
473
529
  ref: g
474
530
  });
475
531
  }
476
532
  //#endregion
477
533
  //#region src/app-shell/app-shell.tsx
478
- var je = de, Me = u(void 0);
534
+ var je = pe, Me = u(void 0);
479
535
  function Ne(e, t) {
480
536
  if (Array.isArray(e)) {
481
537
  for (let n of e) Ne(n, t);
482
538
  return t;
483
539
  }
484
- return !d(e) || e.type === Pe || (e.type === we ? t.main = !0 : e.type === ye ? t.nav = !0 : e.type === k ? t.aside = !0 : Ne(e.props.children, t)), t;
540
+ return !d(e) || e.type === R || (e.type === O ? t.main = !0 : e.type === xe ? t.nav = !0 : e.type === A ? t.aside = !0 : Ne(e.props.children, t)), t;
485
541
  }
486
- function I() {
542
+ function L() {
487
543
  let e = p(Me);
488
544
  if (e === void 0) throw Error("Every app-shell part must be rendered inside AppShell.");
489
545
  return e;
490
546
  }
491
- function L() {
547
+ function Pe() {
492
548
  return p(Me);
493
549
  }
494
- function Pe({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas: a, children: u, className: d, closeOnNavigate: p, collapsedTo: _, defaultAsideExtent: ie, defaultAsideOpen: ae, defaultNavOpen: oe, escape: se, back: ce, maxAsideExtent: le, messages: ue, minAsideExtent: de, modal: pe, navMode: me, navOpen: E, navSide: D, navSize: O, onAsideExtentChange: he, onAsideOpenChange: ge, onNavOpenChange: _e, outsidePress: ve, primary: ye, ref: be, render: xe, scroll: Se, separation: Ce, style: we, ...Te }) {
495
- let k = T(), A = h(), [Ee, De] = b(oe ?? !0), j = E ?? Ee, [M, Oe] = b(ae ?? !0), N = r ?? M, [ke, Ae] = b(ie), P = e ?? ke, F = w(de ?? .16, 0, 1), I = w(le ?? .6, F, 1), [L, Pe] = b(!1), Fe = i ?? k.asideSize, Ie = t ?? k.asideMode, Le = a ?? k.canvas, R = p ?? k.closeOnNavigate, Re = _ ?? k.collapsedTo, ze = Ce ?? k.separation, z = se ?? k.escape, Be = ce ?? k.back, B = pe ?? k.modal, Ve = D ?? k.navSide, He = O ?? k.navSize, V = ve ?? k.outsidePress, Ue = ye ?? k.primary, We = Se ?? k.scroll, Ge = me ?? k.navMode, H = n(re, ue), [U, Ke] = b(null), [W, qe] = b(void 0), G = Ge === "auto" ? W === void 0 ? void 0 : W ? "overlay" : "inline" : Ge, K = Ie === "auto" ? W === void 0 ? void 0 : W ? "overlay" : "inline" : Ie, q = y({
550
+ function R({ asideExtent: t, asideMode: n, asideOpen: r, asideSize: i, canvas: a, children: u, className: d, closeOnNavigate: p, collapsedTo: _, defaultAsideExtent: oe, defaultAsideOpen: se, defaultNavOpen: ce, escape: le, back: ue, maxAsideExtent: de, messages: fe, minAsideExtent: pe, modal: he, navMode: ge, navOpen: w, navSide: T, navSize: E, onAsideExtentChange: D, onAsideOpenChange: _e, onNavOpenChange: ve, outsidePress: ye, primary: be, ref: xe, render: Se, scroll: Ce, separation: we, style: Te, ...O }) {
551
+ let k = C(), A = h(), [Ee, De] = b(ce ?? !0), j = w ?? Ee, [Oe, M] = b(se ?? !0), N = r ?? Oe, [ke, Ae] = b(oe), P = t ?? ke, F = S(pe ?? .16, 0, 1), I = S(de ?? .6, F, 1), [L, Pe] = b(!1), R = i ?? k.asideSize, Fe = n ?? k.asideMode, Ie = a ?? k.canvas, z = p ?? k.closeOnNavigate, Le = _ ?? k.collapsedTo, Re = we ?? k.separation, ze = le ?? k.escape, Be = ue ?? k.back, B = he ?? k.modal, Ve = T ?? k.navSide, He = E ?? k.navSize, V = ye ?? k.outsidePress, Ue = be ?? k.primary, We = Ce ?? k.scroll, Ge = ge ?? k.navMode, H = e(re, fe), [U, Ke] = b(null), [W, qe] = b(void 0), G = Ge === "auto" ? W === void 0 ? void 0 : W ? "overlay" : "inline" : Ge, K = Fe === "auto" ? W === void 0 ? void 0 : W ? "overlay" : "inline" : Fe, q = y({
496
552
  aside: null,
497
553
  asideToggle: null,
498
554
  banner: null,
@@ -519,10 +575,10 @@ function Pe({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas:
519
575
  }))), []), Y = f((e, t, n) => {
520
576
  if (e === j) return;
521
577
  let r = !1, i = l({
522
- controlled: E,
578
+ controlled: w,
523
579
  initial: j,
524
580
  onRequest: (e) => {
525
- r = e.cancelled, _e?.(e.value, {
581
+ r = e.cancelled, ve?.(e.value, {
526
582
  get cancelled() {
527
583
  return e.cancelled;
528
584
  },
@@ -537,15 +593,15 @@ function Pe({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas:
537
593
  r || i && De(e);
538
594
  }, [
539
595
  j,
540
- E,
541
- _e
596
+ w,
597
+ ve
542
598
  ]), X = f((e, t, n) => {
543
599
  if (e === N) return;
544
600
  let i = !1, a = l({
545
601
  controlled: r,
546
602
  initial: N,
547
603
  onRequest: (e) => {
548
- i = e.cancelled, ge?.(e.value, {
604
+ i = e.cancelled, _e?.(e.value, {
549
605
  get cancelled() {
550
606
  return e.cancelled;
551
607
  },
@@ -557,19 +613,19 @@ function Pe({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas:
557
613
  });
558
614
  }
559
615
  }).request(e, t, n);
560
- i || a && Oe(e);
616
+ i || a && M(e);
561
617
  }, [
562
618
  r,
563
619
  N,
564
- ge
565
- ]), tt = f((t, n, r) => {
566
- let i = t === void 0 ? void 0 : w(t, F, I);
620
+ _e
621
+ ]), tt = f((e, n, r) => {
622
+ let i = e === void 0 ? void 0 : S(e, F, I);
567
623
  if (i === P) return;
568
624
  let a = !1, o = l({
569
- controlled: e,
625
+ controlled: t,
570
626
  initial: P,
571
627
  onRequest: (e) => {
572
- a = e.cancelled, he?.(e.value, {
628
+ a = e.cancelled, D?.(e.value, {
573
629
  get cancelled() {
574
630
  return e.cancelled;
575
631
  },
@@ -583,18 +639,18 @@ function Pe({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas:
583
639
  }).request(i, n, r);
584
640
  a || o && Ae(i);
585
641
  }, [
586
- e,
642
+ t,
587
643
  P,
588
- he,
644
+ D,
589
645
  I,
590
646
  F
591
- ]), nt = Ge === "auto" || Ie === "auto";
647
+ ]), nt = Ge === "auto" || Fe === "auto";
592
648
  m(() => {
593
649
  if (U === null || !nt) {
594
650
  nt || qe(void 0);
595
651
  return;
596
652
  }
597
- let e = fe(U, {
653
+ let e = me(U, {
598
654
  at: je,
599
655
  onChange: qe
600
656
  });
@@ -611,7 +667,7 @@ function Pe({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas:
611
667
  at.current = e, K !== void 0 && (e && N && (t || W === !0) ? (ot.current = !0, X(!1, "resize")) : n && ot.current && (ot.current = !1, N || X(!0, "resize")));
612
668
  }, [K]);
613
669
  let st = j && (!Xe || Je.nav), Z = G === "overlay" && j && J.nav, ct = K === "overlay" && N && J.aside, lt = (Z || ct) && B, [ut, dt] = b(lt ? "open" : "unmounted"), Q = y(null);
614
- Q.current === null && (Q.current = S({
670
+ Q.current === null && (Q.current = ne({
615
671
  present: lt,
616
672
  onStatusChange: dt
617
673
  })), m(() => {
@@ -623,11 +679,11 @@ function Pe({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas:
623
679
  let ft = f((e) => {
624
680
  Q.current?.setNode(e);
625
681
  }, []), pt = f((e, t, n, r) => {
626
- let i = ne(e, {
682
+ let i = ae(e, {
627
683
  ...t === null ? {} : { branches: [t] },
628
684
  back: B && Be === "close",
629
685
  content: e,
630
- escape: z === "close",
686
+ escape: ze === "close",
631
687
  modal: B,
632
688
  onDismiss: (e) => {
633
689
  if (e.reason === "outsidePress" && V === "none") return e.cancel();
@@ -649,7 +705,7 @@ function Pe({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas:
649
705
  };
650
706
  }, [
651
707
  Be,
652
- z,
708
+ ze,
653
709
  B,
654
710
  V
655
711
  ]);
@@ -683,18 +739,18 @@ function Pe({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas:
683
739
  X
684
740
  ]);
685
741
  let mt = f((e) => {
686
- if (Te.onClick?.(e), !Z || !R) return;
742
+ if (O.onClick?.(e), !Z || !z) return;
687
743
  let t = e.target?.closest?.("a[href]");
688
744
  t != null && q.current.nav?.contains(t) === !0 && t.getAttribute("aria-disabled") !== "true" && Y(!1, "select", e.nativeEvent);
689
745
  }, [
690
- Te,
746
+ O,
691
747
  Z,
692
- R,
748
+ z,
693
749
  Y
694
750
  ]), [ht, gt] = b(null);
695
751
  m(() => {
696
- if (ht !== null) return C(ht), () => C(null, ht.ownerDocument);
697
- }, [ht]), g(be, () => ({
752
+ if (ht !== null) return ie(ht), () => ie(null, ht.ownerDocument);
753
+ }, [ht]), g(xe, () => ({
698
754
  openNav: () => Y(!0, "programmatic"),
699
755
  closeNav: () => Y(!1, "programmatic"),
700
756
  openAside: () => X(!0, "programmatic"),
@@ -716,12 +772,12 @@ function Pe({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas:
716
772
  asideId: yt,
717
773
  asideMode: K,
718
774
  asideOpen: N,
719
- asideSize: Fe,
775
+ asideSize: R,
720
776
  asideToggleId: `${A}aside-toggle`,
721
- canvas: Le,
722
- closeOnNavigate: R,
723
- collapsedTo: Re,
724
- escape: z,
777
+ canvas: Ie,
778
+ closeOnNavigate: z,
779
+ collapsedTo: Le,
780
+ escape: ze,
725
781
  back: Be,
726
782
  busy: Qe,
727
783
  mainId: _t,
@@ -739,7 +795,7 @@ function Pe({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas:
739
795
  register: et,
740
796
  root: U,
741
797
  scroll: We,
742
- separation: ze,
798
+ separation: Re,
743
799
  setAsideDragging: Pe,
744
800
  setBusy: $e,
745
801
  setAsideExtent: tt,
@@ -759,12 +815,12 @@ function Pe({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas:
759
815
  vt,
760
816
  et,
761
817
  K,
762
- Fe,
763
- Le,
764
818
  R,
765
- Re,
766
- Be,
819
+ Ie,
767
820
  z,
821
+ Le,
822
+ Be,
823
+ ze,
768
824
  G,
769
825
  B,
770
826
  Ve,
@@ -772,7 +828,7 @@ function Pe({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas:
772
828
  V,
773
829
  Ue,
774
830
  We,
775
- ze,
831
+ Re,
776
832
  I,
777
833
  F,
778
834
  U,
@@ -795,7 +851,7 @@ function Pe({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas:
795
851
  children: H("skipToAside")
796
852
  }, "aside"));
797
853
  let xt = o({
798
- ...Te,
854
+ ...O,
799
855
  children: /* @__PURE__ */ te(ee, { children: [
800
856
  $.length > 0 ? /* @__PURE__ */ x("div", {
801
857
  "data-part": "skip",
@@ -817,9 +873,9 @@ function Pe({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas:
817
873
  ] }),
818
874
  className: d,
819
875
  ...K === void 0 ? {} : { "data-aside-mode": K },
820
- "data-aside-size": Fe,
821
- "data-canvas": Le,
822
- "data-collapsed-to": Re,
876
+ "data-aside-size": R,
877
+ "data-canvas": Ie,
878
+ "data-collapsed-to": Le,
823
879
  ...L ? { "data-dragging": "" } : {},
824
880
  ...G === void 0 ? {} : { "data-nav-mode": G },
825
881
  "data-nav-side": Ve,
@@ -828,18 +884,21 @@ function Pe({ asideExtent: e, asideMode: t, asideOpen: r, asideSize: i, canvas:
828
884
  "data-part": "root",
829
885
  "data-primary": Ue,
830
886
  "data-scroll": We,
831
- "data-separation": ze,
887
+ "data-separation": Re,
832
888
  "data-ui": "app-shell",
833
889
  onClick: mt,
834
- style: we
890
+ style: Te
835
891
  });
836
892
  return /* @__PURE__ */ x(Me.Provider, {
837
893
  value: bt,
838
- children: xe === void 0 ? /* @__PURE__ */ x("div", {
894
+ children: Se === void 0 ? /* @__PURE__ */ x("div", {
895
+ ...xt,
896
+ ref: Ke
897
+ }) : Se({
839
898
  ...xt,
840
899
  ref: Ke
841
- }) : xe(xt)
900
+ })
842
901
  });
843
902
  }
844
903
  //#endregion
845
- export { Te as C, P as S, T, ye as _, ve as a, xe as b, ke as c, F as d, he as f, we as g, Ae as h, L as i, A as l, _e as m, Pe as n, k as o, ge as p, I as r, Ee as s, je as t, N as u, Se as v, me as w, be as x, Ce as y };
904
+ export { k as C, F as S, C as T, xe as _, be as a, Ce as b, Ae as c, I as d, _e as f, O as g, P as h, Pe as i, Ee as l, ye as m, R as n, A as o, ve as p, L as r, De as s, je as t, ke as u, we as v, ge as w, Se as x, Te as y };