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

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 (336) 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-DQCvXMJA.js} +1330 -1278
  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 +25 -3
  72. package/dist/docs/data-grid.md +4 -1
  73. package/dist/docs/data-grid.props.md +2 -1
  74. package/dist/docs/detail-panel.json +4 -2
  75. package/dist/docs/detail-panel.md +15 -5
  76. package/dist/docs/dialog.json +1 -0
  77. package/dist/docs/dialog.md +1 -1
  78. package/dist/docs/drawer.json +6 -4
  79. package/dist/docs/drawer.md +3 -3
  80. package/dist/docs/event-calendar.md +2 -2
  81. package/dist/docs/guidelines/index.md +4 -3
  82. package/dist/docs/guidelines/layout-alignment.md +17 -7
  83. package/dist/docs/guidelines/list-pages.md +3 -3
  84. package/dist/docs/page-header.json +18 -2
  85. package/dist/docs/page-header.md +5 -3
  86. package/dist/docs/page.json +1 -0
  87. package/dist/docs/page.md +1 -1
  88. package/dist/docs/rating.md +1 -1
  89. package/dist/docs/section.json +1 -1
  90. package/dist/docs/section.md +1 -1
  91. package/dist/docs/skills/compose-screen/SKILL.md +12 -4
  92. package/dist/docs/skills/review-screen/SKILL.md +20 -18
  93. package/dist/docs/skills/theme-app/SKILL.md +12 -1
  94. package/dist/docs/toast.json +1 -0
  95. package/dist/docs/toast.md +1 -1
  96. package/dist/docs/tokens.md +1 -1
  97. package/dist/docs/toolbar.json +1 -1
  98. package/dist/docs/toolbar.md +1 -1
  99. package/dist/docs/typography.md +1 -1
  100. package/dist/{drawer-CkpFlKYa.js → drawer-fyPyxnYQ.js} +216 -206
  101. package/dist/drawer.js +1 -1
  102. package/dist/entity-picker-ClyhBTyK.js +1283 -0
  103. package/dist/entity-picker.js +1 -1
  104. package/dist/{event-calendar-BDjI5T44.js → event-calendar-COgC24UG.js} +23 -23
  105. package/dist/event-calendar.js +1 -1
  106. package/dist/{field-group-CCM2vPKL.js → field-group-Bj-EbPIU.js} +2 -2
  107. package/dist/field-group.js +1 -1
  108. package/dist/{field-CzSGs7wo.js → field-tnEZiRLg.js} +19 -19
  109. package/dist/field.js +1 -1
  110. package/dist/filter-bar-BRuCz79-.js +1342 -0
  111. package/dist/filter-bar.js +1 -1
  112. package/dist/{form-CDq04WDY.js → form-DEcJ7tHf.js} +1 -1
  113. package/dist/form.js +1 -1
  114. package/dist/{fullscreen-6GW4naDP.js → fullscreen-BwweNj3-.js} +13 -13
  115. package/dist/fullscreen.js +1 -1
  116. package/dist/{hover-card-aadyPXzF.js → hover-card-BWcU37Yp.js} +1 -1
  117. package/dist/hover-card.js +1 -1
  118. package/dist/{i18n-DpW8lqJ1.js → i18n-D7xXDd8-.js} +11 -4
  119. package/dist/i18n.js +1 -1
  120. package/dist/{icon-button-CRB218_z.js → icon-button-DbSZKGT4.js} +73 -71
  121. package/dist/{import-export-center-DUrNwRKP.js → import-export-center-CYf0Qxl_.js} +291 -289
  122. package/dist/import-export-center.js +1 -1
  123. package/dist/index.js +100 -100
  124. package/dist/{kbd-Z4YmSPRy.js → kbd-dNz8QHfL.js} +1 -1
  125. package/dist/kbd.js +1 -1
  126. package/dist/{link-BsSlZ1ts.js → link-DLPyg54C.js} +5 -5
  127. package/dist/link.js +1 -1
  128. package/dist/{listbox-VFcfZT70.js → listbox-BSqx_ARf.js} +1 -1
  129. package/dist/listbox.js +1 -1
  130. package/dist/{loading-overlay-BZPBDK4w.js → loading-overlay-BLIrcaoj.js} +9 -9
  131. package/dist/loading-overlay.js +1 -1
  132. package/dist/{markdown-BmCU_sOv.js → markdown-DccRb1xf.js} +17 -17
  133. package/dist/markdown.js +1 -1
  134. package/dist/{menu-parts-DS9JEUCt.js → menu-parts-CNNHRduK.js} +42 -42
  135. package/dist/menu.js +1 -1
  136. package/dist/{menubar-BV43BKep.js → menubar-Bdr6zigi.js} +1 -1
  137. package/dist/menubar.js +1 -1
  138. package/dist/message-BkTiWsUp.js +436 -0
  139. package/dist/message-scroller-akQEtQLn.js +218 -0
  140. package/dist/message-scroller.js +1 -1
  141. package/dist/message.js +1 -1
  142. package/dist/{multi-select-YaxhhH9y.js → multi-select-BvlJIEtz.js} +445 -443
  143. package/dist/multi-select.js +1 -1
  144. package/dist/{navigation-menu-parts-B64gKl8B.js → navigation-menu-parts-CEW4fgCo.js} +12 -12
  145. package/dist/navigation-menu.js +1 -1
  146. package/dist/{notification-center-Ci-OLWTO.js → notification-center-BQO0Ey3h.js} +40 -40
  147. package/dist/notification-center.js +1 -1
  148. package/dist/{number-field-BYQmPyM-.js → number-field-D1MqT8_A.js} +13 -13
  149. package/dist/number-field.js +1 -1
  150. package/dist/{otp-input-BKO0WPZc.js → otp-input-Cub9H9Di.js} +1 -1
  151. package/dist/otp-input.js +1 -1
  152. package/dist/{page-CfjGviUA.js → page-CwYmBoZQ.js} +1 -1
  153. package/dist/{page-header-w_PFLnLG.js → page-header-CMxCQqu_.js} +117 -114
  154. package/dist/page-header.js +1 -1
  155. package/dist/page.js +1 -1
  156. package/dist/{pagination-Cm9665gb.js → pagination-IEuos7H1.js} +12 -12
  157. package/dist/pagination.js +1 -1
  158. package/dist/{popover-D1krYeP-.js → popover-C7NpEzq6.js} +22 -22
  159. package/dist/popover.js +1 -1
  160. package/dist/prompt-composer-Cu8bj1Vb.js +276 -0
  161. package/dist/prompt-composer.js +1 -1
  162. package/dist/{prose-Bl5OjXTb.js → prose-CQN4Bqqh.js} +1 -1
  163. package/dist/prose.js +1 -1
  164. package/dist/{radio-group-D9VTBLUB.js → radio-group-BHlDgCLk.js} +2 -2
  165. package/dist/radio-group.js +1 -1
  166. package/dist/{rating-BRqsV5OF.js → rating-Cr0lXaAV.js} +15 -15
  167. package/dist/rating.js +1 -1
  168. package/dist/{saved-views-C_76obIv.js → saved-views-CyLSn8a2.js} +151 -151
  169. package/dist/saved-views.js +1 -1
  170. package/dist/{scroll-area-vrm2bbtZ.js → scroll-area-Fr0PmnRS.js} +1 -1
  171. package/dist/scroll-area.js +1 -1
  172. package/dist/{segmented-control-5DTOKO3g.js → segmented-control-uPnQYklX.js} +2 -2
  173. package/dist/segmented-control.js +1 -1
  174. package/dist/select-C0JYHwBy.js +1020 -0
  175. package/dist/select.js +1 -1
  176. package/dist/{side-navigation-MNMSkj9b.js → side-navigation-D8lRpHwj.js} +64 -64
  177. package/dist/side-navigation.js +1 -1
  178. package/dist/{skeleton-DyOwgYmF.js → skeleton-DeEOmm1y.js} +1 -1
  179. package/dist/skeleton.js +1 -1
  180. package/dist/{slider-OMe1DAC-.js → slider-BSI1xvjw.js} +2 -2
  181. package/dist/slider.js +1 -1
  182. package/dist/{sparkline-ChkaLVdY.js → sparkline-CYU4_lCD.js} +1 -1
  183. package/dist/sparkline.js +1 -1
  184. package/dist/spinner-ring-DyfaYloA.js +19 -0
  185. package/dist/{split-button-DbmRwfMC.js → split-button-CkbylOMN.js} +2 -2
  186. package/dist/split-button.js +1 -1
  187. package/dist/{stat-card-BSnsTmsq.js → stat-card-CAh4SdeY.js} +16 -16
  188. package/dist/stat-card.js +1 -1
  189. package/dist/{status-indicator-CyKhBdvN.js → status-indicator-BVMnpcm8.js} +4 -4
  190. package/dist/status-indicator.js +1 -1
  191. package/dist/{stepper-Cw1Auv3n.js → stepper-BLfvMz04.js} +16 -16
  192. package/dist/stepper.js +1 -1
  193. package/dist/styles/action-bar.css +1 -1
  194. package/dist/styles/action-sheet.css +2 -2
  195. package/dist/styles/button.css +2 -2
  196. package/dist/styles/cascader.css +2 -2
  197. package/dist/styles/chart.css +1 -1
  198. package/dist/styles/column-manager.css +3 -3
  199. package/dist/styles/command-palette.css +3 -3
  200. package/dist/styles/dashboard-grid.css +2 -2
  201. package/dist/styles/data-grid.css +3 -3
  202. package/dist/styles/data-list.css +2 -2
  203. package/dist/styles/detail-panel.css +4 -4
  204. package/dist/styles/dialog.css +1 -1
  205. package/dist/styles/drawer.css +1 -1
  206. package/dist/styles/entity-picker.css +1 -1
  207. package/dist/styles/event-calendar.css +1 -1
  208. package/dist/styles/filter-bar.css +3 -3
  209. package/dist/styles/import-export-center.css +4 -4
  210. package/dist/styles/index.css +12 -12
  211. package/dist/styles/markdown.css +2 -2
  212. package/dist/styles/multi-select.css +1 -1
  213. package/dist/styles/notification-center.css +3 -3
  214. package/dist/styles/page-header.css +2 -2
  215. package/dist/styles/page.css +1 -1
  216. package/dist/styles/prompt-composer.css +1 -1
  217. package/dist/styles/saved-views.css +2 -2
  218. package/dist/styles/split-button.css +2 -2
  219. package/dist/styles/table.css +2 -2
  220. package/dist/styles/tabs.css +1 -1
  221. package/dist/styles/timeline.css +1 -1
  222. package/dist/styles/toast.css +1 -1
  223. package/dist/styles/tour.css +2 -2
  224. package/dist/styles/transfer.css +2 -2
  225. package/dist/styles/upload.css +1 -1
  226. package/dist/styles/wizard.css +2 -2
  227. package/dist/styles.css +1 -1
  228. package/dist/{switch-CQ1rpuKa.js → switch-BHyKHqeI.js} +5 -5
  229. package/dist/switch.js +1 -1
  230. package/dist/{table-DpGTPtnb.js → table-C8zOHDcY.js} +30 -30
  231. package/dist/{table-of-contents-BFVERMZy.js → table-of-contents-BAIuPCdy.js} +8 -8
  232. package/dist/table-of-contents.js +1 -1
  233. package/dist/table.js +1 -1
  234. package/dist/{tag-aX7uyAN0.js → tag-XYGEPUHR.js} +14 -14
  235. package/dist/tag.js +1 -1
  236. package/dist/{tags-input-BgpS22sf.js → tags-input-ClYSd-No.js} +40 -40
  237. package/dist/tags-input.js +1 -1
  238. package/dist/text-field-Cguj75tn.js +205 -0
  239. package/dist/text-field.js +1 -1
  240. package/dist/{textarea-DNCjsQYd.js → textarea-BKsh_jAo.js} +1 -1
  241. package/dist/textarea.js +1 -1
  242. package/dist/{time-field-Cm6iBjwH.js → time-field-BIE4WMpS.js} +7 -7
  243. package/dist/time-field.js +1 -1
  244. package/dist/{time-picker-Ce18FSO2.js → time-picker-CNfafRDF.js} +18 -18
  245. package/dist/time-picker.js +1 -1
  246. package/dist/{time-range-picker-kDnw4PQ3.js → time-range-picker-D7gM_Wno.js} +20 -20
  247. package/dist/time-range-picker.js +1 -1
  248. package/dist/timeline-BLadNUkS.js +449 -0
  249. package/dist/timeline.js +1 -1
  250. package/dist/{toast-58ex8PDK.js → toast-CjbiXiza.js} +16 -16
  251. package/dist/toast.js +1 -1
  252. package/dist/{toggle-group-YxVJlCnI.js → toggle-group-BZmghKac.js} +1 -1
  253. package/dist/toggle-group.js +1 -1
  254. package/dist/toolbar-BI4ZepBs.js +243 -0
  255. package/dist/toolbar.js +1 -1
  256. package/dist/{top-navigation-DorkYBnR.js → top-navigation-BTZpx5VA.js} +13 -13
  257. package/dist/top-navigation.js +1 -1
  258. package/dist/{tour-CwK_m_Jp.js → tour-_CQ1kYov.js} +23 -23
  259. package/dist/tour.js +1 -1
  260. package/dist/{transfer-DxGDWIEt.js → transfer-BVhBdIGp.js} +59 -59
  261. package/dist/transfer.js +1 -1
  262. package/dist/tree-DfI9UWLA.js +794 -0
  263. package/dist/tree.js +1 -1
  264. package/dist/types/action-bar/action-bar-overflow.d.ts.map +1 -1
  265. package/dist/types/action-bar/action-bar.types.d.ts +2 -2
  266. package/dist/types/action-sheet/action-sheet-parts.d.ts.map +1 -1
  267. package/dist/types/app-shell/app-shell-parts.d.ts.map +1 -1
  268. package/dist/types/app-shell/app-shell.d.ts.map +1 -1
  269. package/dist/types/app-shell/app-shell.types.d.ts +21 -14
  270. package/dist/types/app-shell/app-shell.types.d.ts.map +1 -1
  271. package/dist/types/app-shell/index.d.ts +1 -1
  272. package/dist/types/app-shell/index.d.ts.map +1 -1
  273. package/dist/types/button/button-indicator.d.ts.map +1 -1
  274. package/dist/types/button/spinner-ring.d.ts +8 -0
  275. package/dist/types/button/spinner-ring.d.ts.map +1 -0
  276. package/dist/types/cascader/cascader-surface.d.ts.map +1 -1
  277. package/dist/types/cascader/cascader.d.ts.map +1 -1
  278. package/dist/types/combobox/combobox-parts.d.ts.map +1 -1
  279. package/dist/types/command-palette/command-palette.d.ts.map +1 -1
  280. package/dist/types/data-grid/data-grid-body.d.ts +7 -2
  281. package/dist/types/data-grid/data-grid-body.d.ts.map +1 -1
  282. package/dist/types/data-grid/data-grid-context.d.ts +2 -1
  283. package/dist/types/data-grid/data-grid-context.d.ts.map +1 -1
  284. package/dist/types/data-grid/data-grid-header.d.ts.map +1 -1
  285. package/dist/types/data-grid/data-grid.d.ts +1 -1
  286. package/dist/types/data-grid/data-grid.d.ts.map +1 -1
  287. package/dist/types/data-grid/data-grid.types.d.ts +12 -0
  288. package/dist/types/data-grid/data-grid.types.d.ts.map +1 -1
  289. package/dist/types/data-grid/index.d.ts +1 -1
  290. package/dist/types/data-grid/index.d.ts.map +1 -1
  291. package/dist/types/detail-panel/detail-panel-parts.d.ts +2 -1
  292. package/dist/types/detail-panel/detail-panel-parts.d.ts.map +1 -1
  293. package/dist/types/drawer/drawer-parts.d.ts.map +1 -1
  294. package/dist/types/entity-picker/entity-picker-control.d.ts.map +1 -1
  295. package/dist/types/filter-bar/filter-bar.d.ts.map +1 -1
  296. package/dist/types/i18n/slotted-provider.d.ts +6 -0
  297. package/dist/types/i18n/slotted-provider.d.ts.map +1 -1
  298. package/dist/types/import-export-center/import-export-center.d.ts.map +1 -1
  299. package/dist/types/message/message-parts.d.ts.map +1 -1
  300. package/dist/types/message-scroller/message-scroller.d.ts.map +1 -1
  301. package/dist/types/multi-select/multi-select-parts.d.ts.map +1 -1
  302. package/dist/types/page-header/page-header-defaults.d.ts +1 -1
  303. package/dist/types/page-header/page-header-defaults.d.ts.map +1 -1
  304. package/dist/types/page-header/page-header.d.ts +1 -1
  305. package/dist/types/page-header/page-header.d.ts.map +1 -1
  306. package/dist/types/page-header/page-header.types.d.ts +9 -0
  307. package/dist/types/page-header/page-header.types.d.ts.map +1 -1
  308. package/dist/types/prompt-composer/prompt-composer.d.ts.map +1 -1
  309. package/dist/types/select/select-parts.d.ts.map +1 -1
  310. package/dist/types/text-field/text-field.d.ts.map +1 -1
  311. package/dist/types/timeline/timeline-parts.d.ts.map +1 -1
  312. package/dist/types/timeline/timeline.d.ts.map +1 -1
  313. package/dist/types/toolbar/toolbar-overflow.d.ts.map +1 -1
  314. package/dist/types/toolbar/toolbar.types.d.ts +2 -2
  315. package/dist/types/tree/tree-parts.d.ts.map +1 -1
  316. package/dist/{upload-CEDsfMWz.js → upload-N2-nyO8x.js} +65 -65
  317. package/dist/upload.js +1 -1
  318. package/dist/{wizard-B3p7zCSj.js → wizard-CK1x2fs3.js} +16 -16
  319. package/dist/wizard.js +1 -1
  320. package/package.json +6 -6
  321. package/dist/action-bar-CJgBierN.js +0 -283
  322. package/dist/action-sheet-tRrjm7WQ.js +0 -358
  323. package/dist/cascader-DqlC1z5b.js +0 -1154
  324. package/dist/combobox-YWFkxaQ3.js +0 -902
  325. package/dist/command-palette-DXNq-zKN.js +0 -741
  326. package/dist/data-list-DZCN_uW1.js +0 -587
  327. package/dist/entity-picker-CFwLGQeU.js +0 -1281
  328. package/dist/filter-bar-G50WdRac.js +0 -1340
  329. package/dist/message-Dtck9RJy.js +0 -434
  330. package/dist/message-scroller-niUJ8RoL.js +0 -216
  331. package/dist/prompt-composer-sh_TXKYZ.js +0 -273
  332. package/dist/select-BFx5EgAa.js +0 -1018
  333. package/dist/text-field-DL_uhNXV.js +0 -203
  334. package/dist/timeline-pEL30Jp8.js +0 -446
  335. package/dist/toolbar-BtIyVbs4.js +0 -241
  336. 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 { keyedProps as r } from "@slotted/core/selector-key";
4
4
  import { createFocusScope as i } from "@slotted/core/focus";
5
5
  import { createControllable as a } from "@slotted/core/state";
6
6
  import { createContext as o, useCallback as s, useContext as c, useEffect as l, useId as u, useImperativeHandle as d, useLayoutEffect as f, useMemo as p, useRef as m, useState as h, useSyncExternalStore as g } from "react";
7
- import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
8
- import { createPresence as b } from "@slotted/core/presence";
9
- import { createPortalRoot as x } from "@slotted/core/portal";
10
- import { createDismissableLayer as S } from "@slotted/core/dismissable-layer";
11
- import { createPortal as C } from "react-dom";
12
- import { drawerMessages as w } from "@slotted/core/i18n";
13
- import { EXTENT_LARGE_STEP_PX as T, EXTENT_STEP_PX as E, SHEET_FLING_PX_PER_S as ee, anchorsAtStart as te, attachSheetDrag as D, dampenExtent as O, extentAtPoint as k, extentBounds as ne, extentVelocity as A, holdResizeGesture as re, isInlineSide as ie, measureSheetStops as j, sameStop as ae, settleExtent as oe, stepAmountFromPixels as M, stepExtent as N, stopAsExtent as P } from "@slotted/core/extent";
14
- import { clamp as F, observeKeyboardInset as I } from "@slotted/core/measure";
7
+ import { Fragment as ee, jsx as _, jsxs as v } from "react/jsx-runtime";
8
+ import { createPresence as te } from "@slotted/core/presence";
9
+ import { drawerMessages as y } from "@slotted/core/i18n";
10
+ import { createPortalRoot as b } from "@slotted/core/portal";
11
+ import { createDismissableLayer as x } from "@slotted/core/dismissable-layer";
12
+ import { createPortal as S } from "react-dom";
13
+ import { EXTENT_LARGE_STEP_PX as C, EXTENT_STEP_PX as w, SHEET_FLING_PX_PER_S as ne, anchorsAtStart as re, attachSheetDrag as T, dampenExtent as E, extentAtPoint as D, extentBounds as ie, extentVelocity as O, holdResizeGesture as ae, isInlineSide as oe, measureSheetStops as k, sameStop as A, settleExtent as se, stepAmountFromPixels as j, stepExtent as M, stopAsExtent as N } from "@slotted/core/extent";
14
+ import { clamp as P, observeKeyboardInset as F } from "@slotted/core/measure";
15
15
  //#region src/drawer/drawer-defaults.tsx
16
- var L = o({
16
+ var I = o({
17
17
  back: "close",
18
18
  escape: "close",
19
19
  modal: !0,
@@ -24,12 +24,12 @@ var L = o({
24
24
  size: void 0,
25
25
  drag: "panel"
26
26
  });
27
- function R() {
28
- return c(L);
27
+ function L() {
28
+ return c(I);
29
29
  }
30
- function z({ children: e, ...t }) {
31
- let n = R();
32
- return /* @__PURE__ */ v(L.Provider, {
30
+ function R({ children: e, ...t }) {
31
+ let n = L();
32
+ return /* @__PURE__ */ _(I.Provider, {
33
33
  value: {
34
34
  back: t.back ?? n.back,
35
35
  escape: t.escape ?? n.escape,
@@ -46,42 +46,42 @@ function z({ children: e, ...t }) {
46
46
  }
47
47
  //#endregion
48
48
  //#region src/drawer/drawer.tsx
49
- var B = o(void 0);
50
- function V() {
51
- let e = c(B);
49
+ var ce = o(void 0);
50
+ function z() {
51
+ let e = c(ce);
52
52
  if (e === void 0) throw Error("Every drawer part must be rendered inside Drawer.");
53
53
  return e;
54
54
  }
55
- var se = [];
56
- function ce({ children: e, back: t, container: r, defaultExtent: i, defaultOpen: o, drag: c, escape: f, extent: g, finalFocus: _, initialFocus: y, loading: x, maxExtent: S, messages: C, minExtent: T, modal: E, mode: ee, mount: te, onExtentChange: D, onOpenChange: O, onOpenChangeComplete: k, open: A, outsidePress: re, ref: ie, scrimFrom: j, side: ae, size: oe, snapPoints: M }) {
57
- let N = R(), P = n(w, C), I = u(), [L, z] = h(o ?? !1), V = A ?? L, [ce, H] = h(i), U = g ?? ce, [le, ue] = h(!1), [W, de] = h(null), [fe, pe] = h(void 0), G = ee ?? N.mode, me = G === "inline" ? !1 : E ?? N.modal, K = te ?? N.mount, q = ae ?? N.side, J = oe ?? N.size ?? (q === "top" || q === "bottom" ? "content" : "md"), he = G === "inline" ? "none" : f ?? N.escape, ge = G === "inline" ? "none" : t ?? N.back, _e = G === "inline" ? "none" : re ?? N.outsidePress, Y = M ?? se, X = p(() => {
58
- let e = ne(Y, T ?? .2, S ?? 1);
55
+ var B = [];
56
+ function V({ children: t, back: n, container: r, defaultExtent: i, defaultOpen: o, drag: c, escape: f, extent: g, finalFocus: ee, initialFocus: v, loading: b, maxExtent: x, messages: S, minExtent: C, modal: w, mode: ne, mount: re, onExtentChange: T, onOpenChange: E, onOpenChangeComplete: D, open: O, outsidePress: ae, ref: oe, scrimFrom: k, side: A, size: se, snapPoints: j }) {
57
+ let M = L(), N = e(y, S), F = u(), [I, R] = h(o ?? !1), z = O ?? I, [V, H] = h(i), U = g ?? V, [le, ue] = h(!1), [W, de] = h(null), [fe, pe] = h(void 0), G = ne ?? M.mode, me = G === "inline" ? !1 : w ?? M.modal, K = re ?? M.mount, q = A ?? M.side, J = se ?? M.size ?? (q === "top" || q === "bottom" ? "content" : "md"), he = G === "inline" ? "none" : f ?? M.escape, ge = G === "inline" ? "none" : n ?? M.back, _e = G === "inline" ? "none" : ae ?? M.outsidePress, Y = j ?? B, X = p(() => {
58
+ let e = ie(Y, C ?? .2, x ?? 1);
59
59
  return J === "content" ? {
60
60
  ...e,
61
- max: Math.max(e.max, S ?? 1)
61
+ max: Math.max(e.max, x ?? 1)
62
62
  } : e;
63
63
  }, [
64
- S,
65
- T,
64
+ x,
65
+ C,
66
66
  J,
67
67
  Y
68
- ]), [Z, ve] = h(V ? "entering" : "unmounted"), Q = m(null), ye = m(k);
69
- ye.current = k, Q.current === null && (Q.current = b({
68
+ ]), [Z, ve] = h(z ? "entering" : "unmounted"), Q = m(null), ye = m(D);
69
+ ye.current = D, Q.current === null && (Q.current = te({
70
70
  onEnterComplete: () => ye.current?.(!0),
71
71
  onExitComplete: () => ye.current?.(!1),
72
72
  onStatusChange: ve,
73
- present: V,
73
+ present: z,
74
74
  skipInitialAnimation: !1
75
75
  })), l(() => {
76
- Q.current?.sync(V);
77
- }, [V]), l(() => {
78
- V && de(null);
79
- }, [V]), l(() => {
76
+ Q.current?.sync(z);
77
+ }, [z]), l(() => {
78
+ z && de(null);
79
+ }, [z]), l(() => {
80
80
  let e = Q.current;
81
81
  return () => e?.stop();
82
82
  }, []);
83
- let be = m(V);
84
- V && (be.current = !0);
83
+ let be = m(z);
84
+ z && (be.current = !0);
85
85
  let xe = G === "inline" || K === "eager" ? !0 : K === "lazy" ? be.current : Z !== "unmounted", Se = m({
86
86
  layer: null,
87
87
  panel: null,
@@ -91,12 +91,12 @@ function ce({ children: e, back: t, container: r, defaultExtent: i, defaultOpen:
91
91
  }), []), Oe = s((e) => {
92
92
  Se.current.layer = e, Q.current?.setNode(e);
93
93
  }, []), $ = s((e, t, n, r) => {
94
- if (e === V) return;
94
+ if (e === z) return;
95
95
  let i = !1, o = a({
96
- controlled: A,
97
- initial: V,
96
+ controlled: O,
97
+ initial: z,
98
98
  onRequest: (e) => {
99
- i = e.cancelled, O?.(e.value, {
99
+ i = e.cancelled, E?.(e.value, {
100
100
  get cancelled() {
101
101
  return e.cancelled;
102
102
  },
@@ -109,19 +109,19 @@ function ce({ children: e, back: t, container: r, defaultExtent: i, defaultOpen:
109
109
  });
110
110
  }
111
111
  }).request(e, t, r);
112
- i || o && z(e);
112
+ i || o && R(e);
113
113
  }, [
114
- V,
115
- O,
116
- A
114
+ z,
115
+ E,
116
+ O
117
117
  ]), ke = s((e, t, n) => {
118
- let r = e === void 0 ? void 0 : F(e, 0, X.max);
118
+ let r = e === void 0 ? void 0 : P(e, 0, X.max);
119
119
  if (r === U) return;
120
120
  let i = !1, o = a({
121
121
  controlled: g,
122
122
  initial: U,
123
123
  onRequest: (e) => {
124
- i = e.cancelled, D?.(e.value, {
124
+ i = e.cancelled, T?.(e.value, {
125
125
  get cancelled() {
126
126
  return e.cancelled;
127
127
  },
@@ -138,9 +138,9 @@ function ce({ children: e, back: t, container: r, defaultExtent: i, defaultOpen:
138
138
  X.max,
139
139
  U,
140
140
  g,
141
- D
141
+ T
142
142
  ]);
143
- d(ie, () => ({
143
+ d(oe, () => ({
144
144
  open: () => $(!0, "programmatic", void 0, void 0),
145
145
  close: (e) => $(!1, "programmatic", e, void 0),
146
146
  focus: () => Se.current.panel?.focus(),
@@ -152,10 +152,10 @@ function ce({ children: e, back: t, container: r, defaultExtent: i, defaultOpen:
152
152
  announce: De,
153
153
  close: (e, t, n) => $(!1, e, t, n),
154
154
  container: r,
155
- descriptionId: Te ? `${I}description` : "",
155
+ descriptionId: Te ? `${F}description` : "",
156
156
  dragging: le,
157
- drag: c ?? N.drag,
158
- scrimFrom: j ?? 0,
157
+ drag: c ?? M.drag,
158
+ scrimFrom: k ?? 0,
159
159
  live: W,
160
160
  setLive: de,
161
161
  rest: fe,
@@ -163,9 +163,9 @@ function ce({ children: e, back: t, container: r, defaultExtent: i, defaultOpen:
163
163
  back: ge,
164
164
  escape: he,
165
165
  extent: U,
166
- finalFocus: _,
167
- initialFocus: y ?? "first",
168
- loading: x === !0,
166
+ finalFocus: ee,
167
+ initialFocus: v ?? "first",
168
+ loading: b === !0,
169
169
  defaultExtent: i,
170
170
  maxExtent: X.max,
171
171
  minExtent: X.min,
@@ -174,40 +174,40 @@ function ce({ children: e, back: t, container: r, defaultExtent: i, defaultOpen:
174
174
  mounted: xe,
175
175
  mount: K,
176
176
  nodes: Se.current,
177
- open: V,
177
+ open: z,
178
178
  openWith: (e, t) => $(!0, e, void 0, t),
179
179
  outsidePress: _e,
180
- panelId: `${I}panel`,
180
+ panelId: `${F}panel`,
181
181
  registerLayer: Oe,
182
182
  requestExtent: ke,
183
183
  setDragging: ue,
184
184
  side: q,
185
185
  size: J,
186
186
  snapPoints: Y,
187
- t: P,
188
- titleId: Ce ? `${I}title` : "",
189
- triggerId: `${I}trigger`,
190
- visible: G === "inline" ? V : Z === "open",
191
- interactive: G === "inline" ? V : Z === "entering" || Z === "open"
187
+ t: N,
188
+ titleId: Ce ? `${F}title` : "",
189
+ triggerId: `${F}trigger`,
190
+ visible: G === "inline" ? z : Z === "open",
191
+ interactive: G === "inline" ? z : Z === "entering" || Z === "open"
192
192
  }), [
193
193
  De,
194
- I,
194
+ F,
195
195
  X.max,
196
196
  X.min,
197
197
  r,
198
198
  U,
199
199
  i,
200
- V,
200
+ z,
201
201
  Te,
202
- N.drag,
202
+ M.drag,
203
203
  c,
204
204
  le,
205
205
  W,
206
206
  fe,
207
- j,
208
- _,
209
- y,
210
- x,
207
+ k,
208
+ ee,
209
+ v,
210
+ b,
211
211
  xe,
212
212
  Oe,
213
213
  ke,
@@ -222,12 +222,12 @@ function ce({ children: e, back: t, container: r, defaultExtent: i, defaultOpen:
222
222
  J,
223
223
  Y,
224
224
  Z,
225
- P,
225
+ N,
226
226
  Ce
227
227
  ]);
228
- return /* @__PURE__ */ v(B.Provider, {
228
+ return /* @__PURE__ */ _(ce.Provider, {
229
229
  value: Ae,
230
- children: e
230
+ children: t
231
231
  });
232
232
  }
233
233
  //#endregion
@@ -251,7 +251,7 @@ function fe() {
251
251
  return g(de, () => !0, () => !1);
252
252
  }
253
253
  function pe({ children: e, className: t, onClick: n, ref: i, render: a, style: o, ...s }) {
254
- let c = V(), l = r({
254
+ let c = z(), l = r({
255
255
  ...s,
256
256
  "aria-controls": c.mounted ? c.panelId : void 0,
257
257
  "aria-expanded": c.open,
@@ -270,13 +270,13 @@ function pe({ children: e, className: t, onClick: n, ref: i, render: a, style: o
270
270
  style: o,
271
271
  type: "button"
272
272
  });
273
- return a === void 0 ? /* @__PURE__ */ v("button", { ...l }) : a(l);
273
+ return a === void 0 ? /* @__PURE__ */ _("button", { ...l }) : a(l);
274
274
  }
275
275
  function G(e) {
276
276
  let [t, n] = h(null);
277
277
  return U(() => {
278
278
  if (e.mode === "inline" || !e.mounted) return;
279
- let t = x({
279
+ let t = b({
280
280
  origin: e.nodes.trigger,
281
281
  ...e.container === void 0 ? {} : { container: e.container }
282
282
  });
@@ -299,7 +299,7 @@ function me(e, t) {
299
299
  return;
300
300
  }
301
301
  let n = () => {
302
- let t = e.getBoundingClientRect(), n = ie(a) ? t.width : t.height;
302
+ let t = e.getBoundingClientRect(), n = oe(a) ? t.width : t.height;
303
303
  n > 0 && r(`${Math.round(o * n)}px`);
304
304
  };
305
305
  if (n(), typeof ResizeObserver > "u") return;
@@ -314,7 +314,7 @@ function me(e, t) {
314
314
  }
315
315
  var K = "var(--slotted-space-12, 4rem)";
316
316
  function q(e, t, n) {
317
- return j({
317
+ return k({
318
318
  atRest: e.extent === void 0 && e.live === null,
319
319
  content: e.size === "content",
320
320
  panel: t,
@@ -325,45 +325,45 @@ function q(e, t, n) {
325
325
  });
326
326
  }
327
327
  function J(e, t, n) {
328
- return P(t, n, e.size === "content");
328
+ return N(t, n, e.size === "content");
329
329
  }
330
330
  function he({ children: e, className: t, ref: n, render: a, style: o, ...c }) {
331
- let u = V(), d = G(u), [f, p] = h(null), [g, b] = h(null), x = me(u, f), w = u.mode === "overlay", T = fe(), [E] = h(() => {
331
+ let u = z(), d = G(u), [f, p] = h(null), [g, te] = h(null), y = me(u, f), b = u.mode === "overlay", C = fe(), [w] = h(() => {
332
332
  if (typeof document > "u") return null;
333
333
  let e = document.createElement("div");
334
334
  return e.style.display = "contents", W.add(e), e;
335
- }), ee = s((e) => {
336
- e !== null && E !== null && (W.add(e), w ? d !== null && d.append(E) : e.append(E));
335
+ }), ne = s((e) => {
336
+ e !== null && w !== null && (W.add(e), b ? d !== null && d.append(w) : e.append(w));
337
337
  }, [
338
- E,
339
338
  w,
339
+ b,
340
340
  d
341
- ]), te = m(!1), k = T && E !== null && u.mounted && (!w || d !== null || te.current);
341
+ ]), re = m(!1), D = C && w !== null && u.mounted && (!b || d !== null || re.current);
342
342
  U(() => {
343
- te.current = k;
343
+ re.current = D;
344
344
  });
345
- let ne = !w || d !== null, A = u.titleId !== "" && c["aria-label"] === void 0 && (w || c.role !== void 0), { registerLayer: re } = u, j = s((e) => {
346
- p(e), re(e);
347
- }, [re]), M = m(u);
348
- M.current = u, l(() => {
349
- if (g === null || f === null || !u.open || !ne) return;
350
- let e = u.nodes.trigger === null ? [] : [u.nodes.trigger], t = w ? S(f, {
345
+ let ie = !b || d !== null, O = u.titleId !== "" && c["aria-label"] === void 0 && (b || c.role !== void 0), { registerLayer: ae } = u, k = s((e) => {
346
+ p(e), ae(e);
347
+ }, [ae]), j = m(u);
348
+ j.current = u, l(() => {
349
+ if (g === null || f === null || !u.open || !ie) return;
350
+ let e = u.nodes.trigger === null ? [] : [u.nodes.trigger], t = b ? x(f, {
351
351
  back: u.modal && u.back === "close",
352
352
  branches: e,
353
353
  content: g,
354
354
  escape: u.escape === "close",
355
355
  modal: u.modal,
356
356
  onDismiss: (e) => {
357
- if (e.reason === "outsidePress" && M.current.outsidePress === "none") return e.cancel();
358
- M.current.close(e.reason, void 0, e.source);
357
+ if (e.reason === "outsidePress" && j.current.outsidePress === "none") return e.cancel();
358
+ j.current.close(e.reason, void 0, e.source);
359
359
  },
360
360
  outsidePress: u.outsidePress === "close",
361
361
  outsidePressEvent: "click"
362
362
  }) : null, n = u.initialFocus, r = u.finalFocus, a = g.ownerDocument.activeElement, o = a?.parentElement ?? null, s = i(g, {
363
- contain: w && u.modal,
364
- initial: w ? typeof n == "object" && n ? () => n.current : n : !1,
363
+ contain: b && u.modal,
364
+ initial: b ? typeof n == "object" && n ? () => n.current : n : !1,
365
365
  restore: r === void 0 ? () => {
366
- if (a === null || a === a.ownerDocument.body) return M.current.nodes.trigger;
366
+ if (a === null || a === a.ownerDocument.body) return j.current.nodes.trigger;
367
367
  if (a.isConnected) return a;
368
368
  let e = o;
369
369
  for (; e !== null && !e.isConnected;) e = e.parentElement;
@@ -382,19 +382,19 @@ function he({ children: e, className: t, ref: n, render: a, style: o, ...c }) {
382
382
  u.open,
383
383
  u.outsidePress,
384
384
  f,
385
- w,
385
+ b,
386
386
  g,
387
- ne
387
+ ie
388
388
  ]);
389
- let { setRest: N, open: P, extent: F, live: L } = u;
389
+ let { setRest: M, open: N, extent: P, live: I, dragging: L } = u;
390
390
  U(() => {
391
391
  let e = ue(f, u.mode);
392
- if (g === null || e === null || !P || F !== void 0 || L !== null) return;
393
- let t = ie(u.side), n = () => {
392
+ if (g === null || e === null || !N || P !== void 0 || I !== null || L) return;
393
+ let t = oe(u.side), n = () => {
394
394
  let n = e.getBoundingClientRect(), r = t ? n.width : n.height;
395
395
  if (r <= 0) return;
396
396
  let i = t ? g.offsetWidth : g.offsetHeight;
397
- N(Math.round(i / r * 1e3) / 1e3);
397
+ M(Math.round(i / r * 1e3) / 1e3);
398
398
  };
399
399
  if (typeof ResizeObserver > "u") {
400
400
  n();
@@ -406,88 +406,97 @@ function he({ children: e, className: t, ref: n, render: a, style: o, ...c }) {
406
406
  f,
407
407
  u.mode,
408
408
  u.side,
409
- F,
410
- P,
411
409
  L,
410
+ P,
411
+ N,
412
+ I,
412
413
  g,
413
- N
414
+ M
414
415
  ]), l(() => {
415
- if (!w || f === null || !P) return;
416
- let e = I(f.ownerDocument.defaultView, (e) => {
416
+ if (!b || f === null || !N) return;
417
+ let e = F(f.ownerDocument.defaultView, (e) => {
417
418
  e === 0 ? f.style.removeProperty("--slotted-keyboard-inset") : f.style.setProperty("--slotted-keyboard-inset", `${e}px`);
418
419
  });
419
420
  return () => {
420
421
  e(), f.style.removeProperty("--slotted-keyboard-inset");
421
422
  };
422
423
  }, [
423
- P,
424
+ N,
424
425
  f,
425
- w
426
+ b
426
427
  ]);
427
- let R = w && u.side === "bottom" && u.drag === "panel";
428
+ let R = b && u.side === "bottom" && u.drag === "panel";
428
429
  if (l(() => {
429
- if (!R || g === null || f === null || !P) return;
430
+ if (!R || g === null || f === null || !N) return;
430
431
  let e = 0, t = 0, n = 0, r = {
431
432
  rest: void 0,
432
433
  stops: []
433
- }, i = () => (e = f.getBoundingClientRect().height, e > 0 ? g.offsetHeight / e : 0);
434
- return D(g, {
435
- enabled: () => M.current.open,
434
+ }, i = {
435
+ extent: "",
436
+ undimmed: !1
437
+ }, a = () => {
438
+ i.extent === "" ? f.style.removeProperty("--slotted-drawer-extent") : f.style.setProperty("--slotted-drawer-extent", i.extent), f.toggleAttribute("data-undimmed", i.undimmed);
439
+ }, o = () => (e = f.getBoundingClientRect().height, e > 0 ? g.offsetHeight / e : 0);
440
+ return T(g, {
441
+ enabled: () => j.current.open,
436
442
  canGrow: () => {
437
- let t = i(), n = q(M.current, g, e).stops.at(-1);
438
- return n !== void 0 && t < n && !ae(t, n);
443
+ let t = o(), n = q(j.current, g, e).stops.at(-1);
444
+ return n !== void 0 && t < n && !A(t, n);
439
445
  },
440
446
  onStart: () => {
441
- t = i(), n = t, r = q(M.current, g, e), M.current.setDragging(!0), M.current.setLive(t);
447
+ t = o(), n = t, r = q(j.current, g, e), i = {
448
+ extent: f.style.getPropertyValue("--slotted-drawer-extent"),
449
+ undimmed: f.hasAttribute("data-undimmed")
450
+ }, j.current.setDragging(!0);
442
451
  },
443
452
  onMove: (i) => {
444
453
  if (e <= 0) return;
445
454
  n = Math.max(0, t + i / e);
446
- let a = r.stops.at(-1) ?? t;
447
- M.current.setLive(O(n, a));
455
+ let a = r.stops.at(-1) ?? t, o = E(n, a);
456
+ f.style.setProperty("--slotted-drawer-extent", `${String(Math.round(o * e))}px`), f.toggleAttribute("data-undimmed", o < j.current.scrimFrom);
448
457
  },
449
458
  onEnd: (t) => {
450
- let i = M.current;
459
+ let i = j.current;
451
460
  i.setDragging(!1);
452
- let a = oe({
461
+ let o = se({
453
462
  fraction: Math.min(n, r.stops.at(-1) ?? n),
454
463
  span: e,
455
464
  stops: r.stops,
456
465
  velocity: e > 0 ? t / e : 0
457
466
  });
458
- if (a === "close") {
467
+ if (o === "close") {
459
468
  i.close("pointer", void 0, null), requestAnimationFrame(() => {
460
- M.current.open && M.current.setLive(null);
469
+ j.current.open && a();
461
470
  });
462
471
  return;
463
472
  }
464
- i.setLive(null), i.requestExtent(J(i, a, r.rest), "pointer", null);
473
+ a(), i.requestExtent(J(i, o, r.rest), "pointer", null);
465
474
  }
466
475
  });
467
476
  }, [
468
- P,
477
+ N,
469
478
  f,
470
479
  g,
471
480
  R
472
481
  ]), !u.mounted) return null;
473
- if (!T || E === null) {
474
- if (w) return null;
475
- } else if (!k) return null;
476
- let z = r({
482
+ if (!C || w === null) {
483
+ if (b) return null;
484
+ } else if (!D) return null;
485
+ let ce = b && u.side === "bottom" && (u.size === "full" || u.extent !== void 0 && A(u.extent, 1)), B = r({
477
486
  ...c,
478
487
  ...u.descriptionId === "" ? {} : { "aria-describedby": u.descriptionId },
479
- ...A ? { "aria-labelledby": u.titleId } : {},
488
+ ...O ? { "aria-labelledby": u.titleId } : {},
480
489
  ...u.modal ? { "aria-modal": !0 } : {},
481
490
  children: e,
482
491
  className: t,
483
492
  "data-part": "panel",
484
493
  id: u.panelId,
485
494
  ref: (e) => {
486
- b(e), u.nodes.panel = e, typeof n == "function" ? n(e) : n && (n.current = e);
495
+ te(e), u.nodes.panel = e, typeof n == "function" ? n(e) : n && (n.current = e);
487
496
  },
488
- ...w ? { role: "dialog" } : {},
497
+ ...b ? { role: "dialog" } : {},
489
498
  style: o
490
- }), B = /* @__PURE__ */ y("div", {
499
+ }), V = /* @__PURE__ */ v("div", {
491
500
  "data-mode": u.mode,
492
501
  "data-mount": u.mount,
493
502
  "data-part": "root",
@@ -497,41 +506,42 @@ function he({ children: e, className: t, ref: n, render: a, style: o, ...c }) {
497
506
  "data-ui": "drawer",
498
507
  "data-ui-drawer": "",
499
508
  ...u.dragging ? { "data-dragging": "" } : {},
500
- ...w && u.side === "bottom" ? { "data-drag": u.drag } : {},
501
- ...w && (u.live ?? u.extent ?? u.rest ?? 1) < u.scrimFrom ? { "data-undimmed": "" } : {},
509
+ ...b && u.side === "bottom" ? { "data-drag": u.drag } : {},
510
+ ...ce ? { "data-expanded": "" } : {},
511
+ ...b && (u.live ?? u.extent ?? u.rest ?? 1) < u.scrimFrom ? { "data-undimmed": "" } : {},
502
512
  ...u.loading ? { "data-loading": "" } : {},
503
513
  ...u.modal ? { "data-modal": "" } : {},
504
514
  ...u.interactive ? {} : { inert: !0 },
505
515
  ...u.visible ? { "data-open": "" } : {},
506
- ref: j,
507
- style: x === void 0 ? void 0 : { "--slotted-drawer-extent": x },
508
- children: [w ? /* @__PURE__ */ v("div", {
516
+ ref: k,
517
+ style: y === void 0 ? void 0 : { "--slotted-drawer-extent": y },
518
+ children: [b ? /* @__PURE__ */ _("div", {
509
519
  "data-part": "backdrop",
510
520
  "data-part-backdrop": ""
511
- }) : null, a === void 0 ? /* @__PURE__ */ v("div", { ...z }) : a(z)]
521
+ }) : null, a === void 0 ? /* @__PURE__ */ _("div", { ...B }) : a(B)]
512
522
  });
513
- return !T || E === null ? /* @__PURE__ */ v("div", {
523
+ return !C || w === null ? /* @__PURE__ */ _("div", {
514
524
  style: ge,
515
- children: B
516
- }) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("div", {
517
- ref: ee,
525
+ children: V
526
+ }) : /* @__PURE__ */ v(ee, { children: [/* @__PURE__ */ _("div", {
527
+ ref: ne,
518
528
  style: ge
519
- }), C(B, E)] });
529
+ }), S(V, w)] });
520
530
  }
521
531
  var ge = { display: "contents" }, _e = 3;
522
- function Y({ className: e, largeStep: t = T, onDoubleClick: n, onKeyDown: i, onPointerDown: a, ref: o, render: s, step: c = E, style: l, ...u }) {
523
- let d = V(), f = m(null), p = m(null), h = m([]), g = m(null), b = m(null), x = m(null), S = ie(d.side), C = d.live ?? d.extent ?? d.rest ?? d.minExtent, w = (e) => Math.round(F(e, 0, 1) * 100), D = () => {
532
+ function Y({ className: e, largeStep: t = C, onDoubleClick: n, onKeyDown: i, onPointerDown: a, ref: o, render: s, step: c = w, style: l, ...u }) {
533
+ let d = z(), f = m(null), p = m(null), h = m([]), g = m(null), te = m(null), y = m(null), b = oe(d.side), x = d.live ?? d.extent ?? d.rest ?? d.minExtent, S = (e) => Math.round(P(e, 0, 1) * 100), T = () => {
524
534
  let e = ue(d.nodes.layer, d.mode);
525
535
  return e === null ? null : e.getBoundingClientRect();
526
- }, O = () => {
527
- let e = d.nodes.panel, t = D();
536
+ }, E = () => {
537
+ let e = d.nodes.panel, t = T();
528
538
  return e === null || t === null || d.snapPoints.length === 0 ? {
529
539
  rest: d.rest,
530
540
  stops: []
531
- } : q(d, e, S ? t.width : t.height);
532
- }, ne = (e, t) => {
541
+ } : q(d, e, b ? t.width : t.height);
542
+ }, ie = (e, t) => {
533
543
  p.current = e, d.requestExtent(e, "pointer", t);
534
- }, j = (e, t) => k({
544
+ }, k = (e, t) => D({
535
545
  point: {
536
546
  x: e.clientX,
537
547
  y: e.clientY
@@ -539,47 +549,47 @@ function Y({ className: e, largeStep: t = T, onDoubleClick: n, onKeyDown: i, onP
539
549
  rect: t,
540
550
  rtl: le(f.current),
541
551
  side: d.side
542
- }), P = (e) => {
552
+ }), N = (e) => {
543
553
  if (a?.(e), e.defaultPrevented || e.button !== 0) return;
544
- let t = D();
554
+ let t = T();
545
555
  t !== null && (e.preventDefault(), e.currentTarget.setPointerCapture(e.pointerId), e.currentTarget.focus(), g.current = {
546
556
  moved: !1,
547
- offset: C - j(e, t),
557
+ offset: x - k(e, t),
548
558
  x: e.clientX,
549
559
  y: e.clientY
550
560
  }, h.current = []);
551
- }, I = (e) => {
561
+ }, F = (e) => {
552
562
  let t = g.current;
553
563
  if (t === null) return;
554
- let n = D();
564
+ let n = T();
555
565
  if (n === null) return;
556
566
  if (!t.moved) {
557
567
  if (Math.hypot(e.clientX - t.x, e.clientY - t.y) < _e) return;
558
- t.moved = !0, x.current?.(), x.current = re(f.current?.ownerDocument, S ? "col-resize" : "row-resize"), d.setDragging(!0);
568
+ t.moved = !0, y.current?.(), y.current = ae(f.current?.ownerDocument, b ? "col-resize" : "row-resize"), d.setDragging(!0);
559
569
  }
560
- let r = F(j(e, n) + t.offset, 0, 1);
570
+ let r = P(k(e, n) + t.offset, 0, 1);
561
571
  h.current = [...h.current, {
562
572
  at: e.timeStamp,
563
573
  fraction: r
564
- }].slice(-3), ne(r, e);
565
- }, L = (e) => {
566
- let { rest: t, stops: n } = O();
574
+ }].slice(-3), ie(r, e);
575
+ }, I = (e) => {
576
+ let { rest: t, stops: n } = E();
567
577
  if (n.length < 2) return;
568
- let r = d.live ?? d.extent ?? t ?? C, i = n.find((e) => e > r && !ae(e, r)) ?? n[0];
578
+ let r = d.live ?? d.extent ?? t ?? x, i = n.find((e) => e > r && !A(e, r)) ?? n[0];
569
579
  d.requestExtent(J(d, i, t), "pointer", e);
570
- }, R = (e) => {
580
+ }, L = (e) => {
571
581
  let t = g.current;
572
582
  if (t === null) return;
573
583
  if (g.current = null, e.currentTarget.hasPointerCapture(e.pointerId) && e.currentTarget.releasePointerCapture(e.pointerId), !t.moved) {
574
- e.type === "pointerup" && L(e);
584
+ e.type === "pointerup" && I(e);
575
585
  return;
576
586
  }
577
- x.current?.(), x.current = null, d.setDragging(!1);
578
- let n = D(), r = n === null ? 0 : S ? n.width : n.height, i = p.current ?? C, a = A(h.current);
587
+ y.current?.(), y.current = null, d.setDragging(!1);
588
+ let n = T(), r = n === null ? 0 : b ? n.width : n.height, i = p.current ?? x, a = O(h.current);
579
589
  p.current = null, h.current = [];
580
- let { rest: o, stops: s } = O();
590
+ let { rest: o, stops: s } = E();
581
591
  if (s.length > 0) {
582
- let t = oe({
592
+ let t = se({
583
593
  fraction: i,
584
594
  span: r,
585
595
  stops: s,
@@ -592,23 +602,23 @@ function Y({ className: e, largeStep: t = T, onDoubleClick: n, onKeyDown: i, onP
592
602
  d.requestExtent(J(d, t, o), "pointer", e);
593
603
  return;
594
604
  }
595
- if (i < d.minExtent || a * r <= -ee) {
605
+ if (i < d.minExtent || a * r <= -ne) {
596
606
  d.close("pointer", void 0, e), d.requestExtent(d.minExtent, "pointer", e);
597
607
  return;
598
608
  }
599
- d.requestExtent(F(i, d.minExtent, d.maxExtent), "pointer", e);
600
- }, z = (e) => {
609
+ d.requestExtent(P(i, d.minExtent, d.maxExtent), "pointer", e);
610
+ }, R = (e) => {
601
611
  if (i?.(e), e.defaultPrevented) return;
602
- let n = te(d.side, le(f.current)), r = S ? "ArrowLeft" : "ArrowUp", a = S ? "ArrowRight" : "ArrowDown", o = (n) => {
612
+ let n = re(d.side, le(f.current)), r = b ? "ArrowLeft" : "ArrowUp", a = b ? "ArrowRight" : "ArrowDown", o = (n) => {
603
613
  e.preventDefault();
604
- let r = D(), i = r === null ? 0 : M({
614
+ let r = T(), i = r === null ? 0 : j({
605
615
  pixels: e.shiftKey ? t : c,
606
616
  rect: r,
607
617
  side: d.side
608
- }), { rest: a, stops: o } = O(), s = N({
618
+ }), { rest: a, stops: o } = E(), s = M({
609
619
  amount: i,
610
620
  direction: n,
611
- fraction: C,
621
+ fraction: x,
612
622
  max: o.at(-1) ?? d.maxExtent,
613
623
  min: o[0] ?? d.minExtent,
614
624
  snapPoints: o
@@ -616,7 +626,7 @@ function Y({ className: e, largeStep: t = T, onDoubleClick: n, onKeyDown: i, onP
616
626
  d.requestExtent(J(d, s, a), "keyboard", e);
617
627
  }, s = (t) => {
618
628
  e.preventDefault();
619
- let { rest: n, stops: r } = O(), i = t === "first" ? r[0] ?? d.minExtent : r.at(-1) ?? d.maxExtent;
629
+ let { rest: n, stops: r } = E(), i = t === "first" ? r[0] ?? d.minExtent : r.at(-1) ?? d.maxExtent;
620
630
  d.requestExtent(J(d, i, n), "keyboard", e);
621
631
  };
622
632
  switch (e.key) {
@@ -624,55 +634,55 @@ function Y({ className: e, largeStep: t = T, onDoubleClick: n, onKeyDown: i, onP
624
634
  case a: return o(n ? 1 : -1);
625
635
  case "Home": return s("first");
626
636
  case "End": return s("last");
627
- case "Enter": return e.preventDefault(), C > d.minExtent ? (b.current = C, d.requestExtent(d.minExtent, "keyboard", e)) : d.requestExtent(b.current ?? d.maxExtent, "keyboard", e);
637
+ case "Enter": return e.preventDefault(), x > d.minExtent ? (te.current = x, d.requestExtent(d.minExtent, "keyboard", e)) : d.requestExtent(te.current ?? d.maxExtent, "keyboard", e);
628
638
  default: return;
629
639
  }
630
- }, B = (e) => {
640
+ }, ce = (e) => {
631
641
  n?.(e), !e.defaultPrevented && (e.preventDefault(), d.requestExtent(d.defaultExtent, "pointer", e));
632
- }, se = d.size === "content" && d.rest !== void 0 ? Math.min(d.minExtent, d.rest) : d.minExtent, ce = r({
642
+ }, B = d.size === "content" && d.rest !== void 0 ? Math.min(d.minExtent, d.rest) : d.minExtent, V = r({
633
643
  "aria-controls": d.panelId,
634
644
  ...d.titleId === "" ? {} : { "aria-labelledby": d.titleId },
635
- "aria-orientation": S ? "vertical" : "horizontal",
636
- "aria-valuemax": w(d.maxExtent),
637
- "aria-valuemin": w(se),
638
- "aria-valuenow": w(F(C, se, d.maxExtent)),
645
+ "aria-orientation": b ? "vertical" : "horizontal",
646
+ "aria-valuemax": S(d.maxExtent),
647
+ "aria-valuemin": S(B),
648
+ "aria-valuenow": S(P(x, B, d.maxExtent)),
639
649
  ...u,
640
650
  className: e,
641
651
  "data-part": "resizer",
642
- onDoubleClick: B,
643
- onKeyDown: z,
644
- onLostPointerCapture: R,
645
- onPointerDown: P,
646
- onPointerMove: I,
647
- onPointerUp: R,
652
+ onDoubleClick: ce,
653
+ onKeyDown: R,
654
+ onLostPointerCapture: L,
655
+ onPointerDown: N,
656
+ onPointerMove: F,
657
+ onPointerUp: L,
648
658
  role: "separator",
649
659
  style: l,
650
660
  tabIndex: 0
651
661
  }), H = (e) => {
652
662
  f.current = e, typeof o == "function" ? o(e) : o && (o.current = e);
653
- }, U = /* @__PURE__ */ y(_, { children: [
654
- /* @__PURE__ */ v("span", {
663
+ }, U = /* @__PURE__ */ v(ee, { children: [
664
+ /* @__PURE__ */ _("span", {
655
665
  "aria-hidden": "true",
656
666
  "data-part": "line",
657
667
  "data-part-line": ""
658
668
  }),
659
- /* @__PURE__ */ v("span", {
669
+ /* @__PURE__ */ _("span", {
660
670
  "aria-hidden": "true",
661
671
  "data-part": "grip",
662
672
  "data-part-grip": ""
663
673
  }),
664
- /* @__PURE__ */ v("span", {
674
+ /* @__PURE__ */ _("span", {
665
675
  "aria-hidden": "true",
666
676
  "data-part": "line",
667
677
  "data-part-line": ""
668
678
  })
669
679
  ] });
670
- return s === void 0 ? /* @__PURE__ */ v("div", {
671
- ...ce,
680
+ return s === void 0 ? /* @__PURE__ */ _("div", {
681
+ ...V,
672
682
  ref: H,
673
683
  children: U
674
684
  }) : s({
675
- ...ce,
685
+ ...V,
676
686
  children: U,
677
687
  ref: H
678
688
  });
@@ -685,13 +695,13 @@ function X({ children: e, className: t, ref: n, render: i, style: a, ...o }) {
685
695
  "data-part": "header",
686
696
  style: a
687
697
  });
688
- return i === void 0 ? /* @__PURE__ */ v("header", {
698
+ return i === void 0 ? /* @__PURE__ */ _("header", {
689
699
  ...s,
690
700
  ref: n
691
701
  }) : i(s);
692
702
  }
693
703
  function Z({ children: e, className: t, ref: n, render: i, style: a, ...o }) {
694
- let s = V();
704
+ let s = z();
695
705
  l(() => s.announce("title"), [s]);
696
706
  let c = r({
697
707
  ...o,
@@ -701,13 +711,13 @@ function Z({ children: e, className: t, ref: n, render: i, style: a, ...o }) {
701
711
  id: s.titleId === "" ? void 0 : s.titleId,
702
712
  style: a
703
713
  });
704
- return i === void 0 ? /* @__PURE__ */ v("h2", {
714
+ return i === void 0 ? /* @__PURE__ */ _("h2", {
705
715
  ...c,
706
716
  ref: n
707
717
  }) : i(c);
708
718
  }
709
719
  function ve({ children: e, className: t, ref: n, render: i, style: a, ...o }) {
710
- let s = V();
720
+ let s = z();
711
721
  l(() => s.announce("description"), [s]);
712
722
  let c = r({
713
723
  ...o,
@@ -717,13 +727,13 @@ function ve({ children: e, className: t, ref: n, render: i, style: a, ...o }) {
717
727
  id: s.descriptionId === "" ? void 0 : s.descriptionId,
718
728
  style: a
719
729
  });
720
- return i === void 0 ? /* @__PURE__ */ v("p", {
730
+ return i === void 0 ? /* @__PURE__ */ _("p", {
721
731
  ...c,
722
732
  ref: n
723
733
  }) : i(c);
724
734
  }
725
735
  function Q({ children: e, className: t, inset: n, ref: i, render: a, style: o, ...s }) {
726
- let c = V(), l = r({
736
+ let c = z(), l = r({
727
737
  ...s,
728
738
  ...c.loading ? { "aria-busy": !0 } : {},
729
739
  children: e,
@@ -732,7 +742,7 @@ function Q({ children: e, className: t, inset: n, ref: i, render: a, style: o, .
732
742
  "data-part": "body",
733
743
  style: o
734
744
  });
735
- return a === void 0 ? /* @__PURE__ */ v("div", {
745
+ return a === void 0 ? /* @__PURE__ */ _("div", {
736
746
  ...l,
737
747
  ref: i
738
748
  }) : a(l);
@@ -745,16 +755,16 @@ function ye({ children: e, className: t, ref: n, render: i, style: a, ...o }) {
745
755
  "data-part": "footer",
746
756
  style: a
747
757
  });
748
- return i === void 0 ? /* @__PURE__ */ v("footer", {
758
+ return i === void 0 ? /* @__PURE__ */ _("footer", {
749
759
  ...s,
750
760
  ref: n
751
761
  }) : i(s);
752
762
  }
753
- function be({ children: n, className: i, onClick: a, ref: o, render: s, style: c, value: l, ...u }) {
754
- let d = V(), f = r({
763
+ function be({ children: e, className: i, onClick: a, ref: o, render: s, style: c, value: l, ...u }) {
764
+ let d = z(), f = r({
755
765
  "aria-label": d.t("close"),
756
766
  ...u,
757
- children: n ?? /* @__PURE__ */ v(t, { children: /* @__PURE__ */ v(e, { name: "x" }) }),
767
+ children: e ?? /* @__PURE__ */ _(n, { children: /* @__PURE__ */ _(t, { name: "x" }) }),
758
768
  className: i,
759
769
  "data-part": "close",
760
770
  onClick: (e) => {
@@ -763,10 +773,10 @@ function be({ children: n, className: i, onClick: a, ref: o, render: s, style: c
763
773
  style: c,
764
774
  type: "button"
765
775
  });
766
- return s === void 0 ? /* @__PURE__ */ v("button", {
776
+ return s === void 0 ? /* @__PURE__ */ _("button", {
767
777
  ...f,
768
778
  ref: o
769
779
  }) : s(f);
770
780
  }
771
781
  //#endregion
772
- export { X as a, Z as c, V as d, z as f, ye as i, pe as l, be as n, he as o, R as p, ve as r, Y as s, Q as t, ce as u };
782
+ export { X as a, Z as c, z as d, R as f, ye as i, pe as l, be as n, he as o, L as p, ve as r, Y as s, Q as t, V as u };