@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
@@ -0,0 +1,205 @@
1
+ import { r as e } from "./i18n-D7xXDd8-.js";
2
+ import { n as t, t as n } from "./icon-DjqSEQ-o.js";
3
+ import { t as r } from "./spinner-ring-DyfaYloA.js";
4
+ import { b as i, h as a } from "./field-tnEZiRLg.js";
5
+ import { keyedProps as o, withSelectorKey as ee } from "@slotted/core/selector-key";
6
+ import { createControllable as s } from "@slotted/core/state";
7
+ import { createContext as c, useContext as l, useEffect as u, useLayoutEffect as te, useRef as d, useState as f } from "react";
8
+ import { Fragment as ne, jsx as p, jsxs as re } from "react/jsx-runtime";
9
+ import { textFieldMessages as ie } from "@slotted/core/i18n";
10
+ import { getLiveAnnouncer as ae } from "@slotted/core/live-announcer";
11
+ import { writeToClipboard as oe } from "@slotted/core/clipboard";
12
+ //#region src/text-field/text-field-defaults.tsx
13
+ var m = c({
14
+ mono: !1,
15
+ size: "md",
16
+ variant: "outline"
17
+ });
18
+ function h() {
19
+ return l(m);
20
+ }
21
+ function g({ children: e, ...t }) {
22
+ let n = h();
23
+ return /* @__PURE__ */ p(m.Provider, {
24
+ value: {
25
+ mono: t.mono ?? n.mono,
26
+ size: t.size ?? n.size,
27
+ variant: t.variant ?? n.variant
28
+ },
29
+ children: e
30
+ });
31
+ }
32
+ //#endregion
33
+ //#region src/text-field/text-field.tsx
34
+ var se = 2e3;
35
+ function _(e) {
36
+ return e.detail === 0 ? "keyboard" : "pointer";
37
+ }
38
+ function v({ "aria-describedby": a, "aria-invalid": c, "aria-required": l, className: m, clearable: g = !1, copyable: v = !1, countMax: y, defaultRevealed: ce = !1, defaultValue: b, disabled: le, end: ue, id: de, invalid: fe, loading: x, maxLength: S, messages: pe, mono: me, onBlur: he, onChange: ge, onKeyDown: _e, onKeyUp: ve, onRevealedChange: ye, onValueChange: be, onValueCopy: xe, readOnly: Se, ref: C, render: w, revealable: Ce = !1, revealed: T, showCount: E = !1, size: we, start: D, style: Te, type: O = "text", value: k, variant: Ee, ...De }) {
39
+ let A = i(), j = h(), M = e(ie, pe), N = d(null), [Oe, P] = f(b ?? ""), [ke, Ae] = f(ce), [F, I] = f(!1), [L, R] = f(!1), z = d(void 0);
40
+ u(() => () => clearTimeout(z.current), []);
41
+ let B = k ?? Oe, V = T ?? ke, je = we ?? A?.size ?? j.size, Me = Ee ?? j.variant, Ne = me ?? j.mono, H = le ?? A?.disabled, U = Se ?? A?.readOnly, W = fe ?? A?.invalid, G = A?.registerControl;
42
+ u(() => G?.(), [G]), u(() => {
43
+ let e = N.current?.form;
44
+ if (e == null) return;
45
+ let t = () => P(b ?? "");
46
+ return e.addEventListener("reset", t), () => e.removeEventListener("reset", t);
47
+ }, [b]);
48
+ let K = A?.setCount, q = y ?? S ?? void 0;
49
+ u(() => {
50
+ if (E && K !== void 0) return K({
51
+ length: B.length,
52
+ max: q
53
+ }), () => K(void 0);
54
+ }, [
55
+ B,
56
+ q,
57
+ K,
58
+ E
59
+ ]);
60
+ let J = d(null);
61
+ te(() => {
62
+ let e = J.current, t = N.current;
63
+ e !== null && t !== null && (J.current = null, t.focus(), t.setSelectionRange(e[0], e[1]));
64
+ }, [V]);
65
+ let Y = (e, t, n) => {
66
+ s({
67
+ controlled: k,
68
+ initial: B,
69
+ onRequest: (e) => be?.(e.value, e)
70
+ }).request(e, t, n) && P(e);
71
+ }, Pe = (e) => {
72
+ let t = N.current;
73
+ k === void 0 && t !== null && (t.value = ""), Y("", "clear", e), t?.focus();
74
+ }, Fe = (e) => {
75
+ let t = N.current;
76
+ J.current = t === null ? null : [t.selectionStart ?? 0, t.selectionEnd ?? 0], s({
77
+ controlled: T,
78
+ initial: V,
79
+ onRequest: (e) => ye?.(e.value, e)
80
+ }).request(!V, _(e), e) && Ae(!V);
81
+ }, X = (e) => ae(N.current?.ownerDocument).announce(e), Ie = async (e) => {
82
+ let t = _(e), n = await oe(B) !== "refused";
83
+ n && (I(!0), clearTimeout(z.current), z.current = setTimeout(() => I(!1), se)), X(M(n ? "copied" : "copyFailed")), xe?.({
84
+ copied: n,
85
+ reason: t,
86
+ source: e,
87
+ value: B
88
+ });
89
+ }, Z = O === "password", Q = (e) => {
90
+ if (!Z || typeof e.getModifierState != "function") return;
91
+ let t = e.getModifierState("CapsLock");
92
+ t && !L && X(M("capsLock")), t !== L && R(t);
93
+ }, Le = g && B !== "" && H !== !0 && U !== !0, Re = v && B !== "" && H !== !0, ze = Ce && Z && H !== !0, Be = /* @__PURE__ */ p("input", {
94
+ ...ee(De, "part", "input"),
95
+ "aria-busy": x === !0 || void 0,
96
+ "aria-describedby": [a, A?.describedBy].filter(Boolean).join(" ") || void 0,
97
+ "aria-invalid": c ?? (W === !0 || void 0),
98
+ "aria-required": l ?? (A?.required === !0 || void 0),
99
+ disabled: H,
100
+ id: de ?? A?.ids.control,
101
+ maxLength: S,
102
+ onBlur: (e) => {
103
+ he?.(e), R(!1);
104
+ },
105
+ onKeyDown: (e) => {
106
+ _e?.(e), Q(e);
107
+ },
108
+ onKeyUp: (e) => {
109
+ ve?.(e), Q(e);
110
+ },
111
+ onChange: (e) => {
112
+ ge?.(e), Y(e.currentTarget.value, "keyboard", e);
113
+ },
114
+ readOnly: U,
115
+ ref: (e) => {
116
+ N.current = e, typeof C == "function" ? C(e) : C != null && (C.current = e);
117
+ },
118
+ type: Z && V ? "text" : O,
119
+ ...k === void 0 ? { defaultValue: b } : { value: k }
120
+ }), Ve = /* @__PURE__ */ re(ne, { children: [
121
+ D === void 0 ? null : /* @__PURE__ */ p("span", {
122
+ "data-part": "start",
123
+ "data-part-start": "",
124
+ children: D
125
+ }),
126
+ Be,
127
+ x === void 0 ? null : /* @__PURE__ */ p("span", {
128
+ "aria-hidden": "true",
129
+ "data-part": "busy",
130
+ "data-part-busy": "",
131
+ "data-ui": "spinner",
132
+ "data-ui-spinner": "",
133
+ hidden: !x,
134
+ children: r
135
+ }),
136
+ Z ? /* @__PURE__ */ p("span", {
137
+ "aria-hidden": "true",
138
+ "data-part": "caps-lock",
139
+ "data-part-caps-lock": "",
140
+ hidden: !L,
141
+ children: /* @__PURE__ */ p(n, { children: /* @__PURE__ */ p(t, { name: "caps-lock" }) })
142
+ }) : null,
143
+ g ? /* @__PURE__ */ p("button", {
144
+ "aria-label": M("clear"),
145
+ "data-part": "clear",
146
+ "data-part-clear": "",
147
+ hidden: !Le,
148
+ onClick: Pe,
149
+ type: "button",
150
+ children: /* @__PURE__ */ p(n, { children: /* @__PURE__ */ p(t, { name: "x" }) })
151
+ }) : null,
152
+ v ? /* @__PURE__ */ p("button", {
153
+ "aria-label": M("copy"),
154
+ "data-part": "copy",
155
+ "data-part-copy": "",
156
+ hidden: !Re,
157
+ onClick: (e) => void Ie(e),
158
+ type: "button",
159
+ ...F ? { "data-complete": "" } : {},
160
+ children: /* @__PURE__ */ p(n, { children: /* @__PURE__ */ p(t, { name: F ? "check" : "copy" }) }, F ? "check" : "copy")
161
+ }) : null,
162
+ ze ? /* @__PURE__ */ p("button", {
163
+ "aria-label": M("reveal"),
164
+ "aria-pressed": V,
165
+ "data-part": "reveal",
166
+ "data-part-reveal": "",
167
+ onClick: Fe,
168
+ type: "button",
169
+ children: /* @__PURE__ */ p(n, { children: /* @__PURE__ */ p(t, { name: V ? "eye-off" : "eye" }) }, V ? "eye-off" : "eye")
170
+ }) : null,
171
+ ue === void 0 ? null : /* @__PURE__ */ p("span", {
172
+ "data-part": "end",
173
+ "data-part-end": "",
174
+ children: ue
175
+ })
176
+ ] }), $ = o({
177
+ children: Ve,
178
+ className: m,
179
+ style: Te,
180
+ ...H === !0 ? { "data-disabled": "" } : {},
181
+ ...W === !0 ? { "data-invalid": "" } : {},
182
+ ...x === !0 ? { "data-loading": "" } : {},
183
+ ...Ne ? { "data-mono": "" } : {},
184
+ ...U === !0 ? { "data-readonly": "" } : {},
185
+ "data-part": "root",
186
+ "data-size": je,
187
+ "data-ui": "text-field",
188
+ "data-variant": Me
189
+ });
190
+ return w === void 0 ? /* @__PURE__ */ p("div", { ...$ }) : w($);
191
+ }
192
+ function y({ render: e, type: t = "button", ...n }) {
193
+ let r = o({
194
+ ...n,
195
+ "data-part": "action",
196
+ type: t
197
+ });
198
+ return e === void 0 ? /* @__PURE__ */ p("button", { ...r }) : e(r);
199
+ }
200
+ a(v, ({ countMax: e, defaultValue: t, maxLength: n, showCount: r, value: i }) => r === !0 ? {
201
+ length: (i ?? t ?? "").length,
202
+ max: e ?? n ?? void 0
203
+ } : void 0);
204
+ //#endregion
205
+ export { h as i, y as n, g as r, v as t };
@@ -1,2 +1,2 @@
1
- import { i as e, n as t, r as n, t as r } from "./text-field-DL_uhNXV.js";
1
+ import { i as e, n as t, r as n, t as r } from "./text-field-Cguj75tn.js";
2
2
  export { r as TextField, t as TextFieldAction, n as TextFieldDefaultsProvider, e as useTextFieldDefaults };
@@ -1,4 +1,4 @@
1
- import { b as e, h as t } from "./field-CzSGs7wo.js";
1
+ import { b as e, h as t } from "./field-tnEZiRLg.js";
2
2
  import { keyedProps as n } from "@slotted/core/selector-key";
3
3
  import { createControllable as r } from "@slotted/core/state";
4
4
  import { createContext as i, useContext as a, useEffect as o, useRef as s, useState as c } from "react";
package/dist/textarea.js CHANGED
@@ -1,2 +1,2 @@
1
- import { n as e, r as t, t as n } from "./textarea-DNCjsQYd.js";
1
+ import { n as e, r as t, t as n } from "./textarea-BKsh_jAo.js";
2
2
  export { n as Textarea, e as TextareaDefaultsProvider, t as useTextareaDefaults };
@@ -1,6 +1,6 @@
1
- import { n as e, t } from "./icon-DjqSEQ-o.js";
2
- import { n, r } from "./i18n-DpW8lqJ1.js";
3
- import { b as i } from "./field-CzSGs7wo.js";
1
+ import { n as e, r as t } from "./i18n-D7xXDd8-.js";
2
+ import { n, t as r } from "./icon-DjqSEQ-o.js";
3
+ import { b as i } from "./field-tnEZiRLg.js";
4
4
  import { keyedProps as ee } from "@slotted/core/selector-key";
5
5
  import { createControllable as te } from "@slotted/core/state";
6
6
  import { createContext as a, useCallback as o, useContext as s, useEffect as c, useId as l, useImperativeHandle as ne, useMemo as u, useRef as d, useState as f } from "react";
@@ -46,7 +46,7 @@ var ye = {
46
46
  second: 0
47
47
  };
48
48
  function Se({ "aria-describedby": a, "aria-label": s, "aria-labelledby": se, className: pe, clearable: x = !1, defaultValue: ve, disabled: Se, end: C, granularity: we, hourCycle: Te, id: Ee, invalid: De, isTimeUnavailable: Oe, locale: ke, max: Ae, messages: je, min: Me, name: Ne, onKeyDown: Pe, onPaste: Fe, onValueChange: Ie, readOnly: Le, ref: Re, referenceTime: ze, relative: Be, render: w, required: Ve, size: He, start: T, style: Ue, timeZone: We, value: E, variant: Ge, ...Ke }) {
49
- let D = i(), O = S(), qe = n(), k = r(re, je), A = d(null), Je = d(null), Ye = l(), Xe = ke ?? qe, Ze = We ?? O.timeZone, j = we ?? O.granularity, Qe = Te ?? O.hourCycle, $e = Be ?? O.relative, et = He ?? D?.size ?? O.size, tt = Ge ?? O.variant, M = Se ?? D?.disabled, N = Le ?? D?.readOnly, nt = De ?? D?.invalid, P = Ve ?? D?.required, F = u(() => oe({
49
+ let D = i(), O = S(), qe = e(), k = t(re, je), A = d(null), Je = d(null), Ye = l(), Xe = ke ?? qe, Ze = We ?? O.timeZone, j = we ?? O.granularity, Qe = Te ?? O.hourCycle, $e = Be ?? O.relative, et = He ?? D?.size ?? O.size, tt = Ge ?? O.variant, M = Se ?? D?.disabled, N = Le ?? D?.readOnly, nt = De ?? D?.invalid, P = Ve ?? D?.required, F = u(() => oe({
50
50
  granularity: j,
51
51
  hourCycle: Qe,
52
52
  locale: Xe
@@ -243,9 +243,9 @@ function Se({ "aria-describedby": a, "aria-label": s, "aria-labelledby": se, cla
243
243
  role: "status",
244
244
  ...Q === null ? {} : { "data-resolved": "" },
245
245
  ...Q !== null && Q.days !== 0 ? { "data-crosses-midnight": "" } : {},
246
- children: [/* @__PURE__ */ m(t, {
246
+ children: [/* @__PURE__ */ m(r, {
247
247
  directional: !0,
248
- children: /* @__PURE__ */ m(e, { name: "chevron-right" })
248
+ children: /* @__PURE__ */ m(n, { name: "chevron-right" })
249
249
  }), Q === null ? "" : Q.days === 0 ? F.format(Q.time) : k("nextDay", { time: F.format(Q.time) })]
250
250
  })] }) : /* @__PURE__ */ m("div", {
251
251
  "aria-describedby": [a, D?.describedBy].filter(Boolean).join(" ") || void 0,
@@ -295,7 +295,7 @@ function Se({ "aria-describedby": a, "aria-label": s, "aria-labelledby": se, cla
295
295
  "data-part-clear": "",
296
296
  onClick: ht,
297
297
  type: "button",
298
- children: /* @__PURE__ */ m(t, { children: /* @__PURE__ */ m(e, { name: "x" }) })
298
+ children: /* @__PURE__ */ m(r, { children: /* @__PURE__ */ m(n, { name: "x" }) })
299
299
  }) : null,
300
300
  C === void 0 ? null : /* @__PURE__ */ m("span", {
301
301
  "data-part": "end",
@@ -1,2 +1,2 @@
1
- import { n as e, r as t, t as n } from "./time-field-Cm6iBjwH.js";
1
+ import { n as e, r as t, t as n } from "./time-field-BIE4WMpS.js";
2
2
  export { n as TimeField, e as TimeFieldDefaultsProvider, t as useTimeFieldDefaults };
@@ -1,18 +1,18 @@
1
- import { n as e, t } from "./icon-DjqSEQ-o.js";
2
- import { n, r } from "./i18n-DpW8lqJ1.js";
3
- import { b as i } from "./field-CzSGs7wo.js";
4
- import { t as ee } from "./time-field-Cm6iBjwH.js";
1
+ import { n as e, r as t } from "./i18n-D7xXDd8-.js";
2
+ import { n, t as r } from "./icon-DjqSEQ-o.js";
3
+ import { b as i } from "./field-tnEZiRLg.js";
4
+ import { t as ee } from "./time-field-BIE4WMpS.js";
5
5
  import { keyedProps as te } from "@slotted/core/selector-key";
6
6
  import { createControllable as a } from "@slotted/core/state";
7
7
  import { createContext as ne, useCallback as o, useContext as re, useEffect as s, useId as ie, useImperativeHandle as ae, useLayoutEffect as oe, useMemo as c, useRef as l, useState as u } from "react";
8
8
  import { Fragment as se, jsx as d, jsxs as f } from "react/jsx-runtime";
9
9
  import { createPresence as ce } from "@slotted/core/presence";
10
- import { createPortalRoot as le } from "@slotted/core/portal";
11
- import { createDismissableLayer as ue } from "@slotted/core/dismissable-layer";
12
- import { createPositioner as de } from "@slotted/core/positioner";
13
- import { createTypeahead as fe, isPrintable as pe } from "@slotted/core/typeahead";
14
- import { createPortal as me } from "react-dom";
15
- import { timePickerMessages as he } from "@slotted/core/i18n";
10
+ import { timePickerMessages as le } from "@slotted/core/i18n";
11
+ import { createPortalRoot as ue } from "@slotted/core/portal";
12
+ import { createDismissableLayer as de } from "@slotted/core/dismissable-layer";
13
+ import { createPositioner as fe } from "@slotted/core/positioner";
14
+ import { createTypeahead as pe, isPrintable as me } from "@slotted/core/typeahead";
15
+ import { createPortal as he } from "react-dom";
16
16
  import { createTimeFormat as ge, hourJump as _e, isSameTime as p, isTimeInRange as ve, isTruncated as ye, nearestIndex as be, nowIn as xe, timeList as Se, toISOTime as Ce } from "@slotted/core/date";
17
17
  //#region src/time-picker/time-picker-defaults.tsx
18
18
  var we = 900, m = 1440, h = ne({
@@ -56,7 +56,7 @@ var Ee = "(max-width: 480px) and (pointer: coarse)", De = {
56
56
  second: 0
57
57
  };
58
58
  function Oe({ className: ne, clearable: re = !1, closeOnSelect: we, defaultHighlightedValue: m, defaultOpen: h = !1, defaultValue: Te, disabled: Oe, footer: ke, granularity: Ae, highlightedValue: _, hourCycle: je, invalid: Me, isTimeUnavailable: v, locale: Ne, max: y, maxOptions: Pe, messages: Fe, min: b, name: Ie, onHighlightedValueChange: Le, onKeyDown: x, onOpenChange: Re, onValueChange: ze, open: S, options: Be, placement: Ve, presets: He, readOnly: Ue, ref: We, referenceTime: Ge, relative: Ke, render: qe, renderOption: Je, required: Ye, size: Xe, step: Ze, style: Qe, timeZone: $e, unavailableOptions: et, value: tt, variant: nt, ...rt }) {
59
- let C = i(), w = g(), it = n(), T = r(he, Fe), E = l(null), at = l(null), D = l(null), O = l(null), ot = ie(), [k, st] = u(null), [A, ct] = u(null), [lt, ut] = u("unmounted"), [j, dt] = u(!1), [M, ft] = u(!1), [pt, mt] = u(h), N = S ?? pt, [ht, gt] = u(Te ?? null), P = tt ?? ht, F = Ne ?? it, _t = $e ?? w.timeZone, I = Ae ?? w.granularity, L = je ?? w.hourCycle, vt = Xe ?? C?.size ?? w.size, yt = nt ?? w.variant, bt = Ve ?? w.placement, xt = we ?? w.closeOnSelect, St = Ze ?? w.step, Ct = Pe ?? w.maxOptions, wt = et ?? w.unavailableOptions, R = Oe ?? C?.disabled, z = Ue ?? C?.readOnly, Tt = Ye ?? C?.required, B = R !== !0 && z !== !0, V = c(() => ge({
59
+ let C = i(), w = g(), it = e(), T = t(le, Fe), E = l(null), at = l(null), D = l(null), O = l(null), ot = ie(), [k, st] = u(null), [A, ct] = u(null), [lt, ut] = u("unmounted"), [j, dt] = u(!1), [M, ft] = u(!1), [pt, mt] = u(h), N = S ?? pt, [ht, gt] = u(Te ?? null), P = tt ?? ht, F = Ne ?? it, _t = $e ?? w.timeZone, I = Ae ?? w.granularity, L = je ?? w.hourCycle, vt = Xe ?? C?.size ?? w.size, yt = nt ?? w.variant, bt = Ve ?? w.placement, xt = we ?? w.closeOnSelect, St = Ze ?? w.step, Ct = Pe ?? w.maxOptions, wt = et ?? w.unavailableOptions, R = Oe ?? C?.disabled, z = Ue ?? C?.readOnly, Tt = Ye ?? C?.required, B = R !== !0 && z !== !0, V = c(() => ge({
60
60
  granularity: I,
61
61
  hourCycle: L,
62
62
  locale: F
@@ -153,7 +153,7 @@ function Oe({ className: ne, clearable: re = !1, closeOnSelect: we, defaultHighl
153
153
  ct(null);
154
154
  return;
155
155
  }
156
- let e = le({
156
+ let e = ue({
157
157
  origin: D.current,
158
158
  disabled: !1
159
159
  });
@@ -164,7 +164,7 @@ function Oe({ className: ne, clearable: re = !1, closeOnSelect: we, defaultHighl
164
164
  return t(), e.addEventListener("change", t), () => e.removeEventListener("change", t);
165
165
  }, []), oe(() => {
166
166
  if (k === null || E.current === null || M) return;
167
- let e = E.current.querySelector("[data-part=\"control\"]") ?? E.current, [t, n = "center"] = bt.split("-"), r = de(e, k, {
167
+ let e = E.current.querySelector("[data-part=\"control\"]") ?? E.current, [t, n = "center"] = bt.split("-"), r = fe(e, k, {
168
168
  align: n,
169
169
  side: t
170
170
  });
@@ -177,7 +177,7 @@ function Oe({ className: ne, clearable: re = !1, closeOnSelect: we, defaultHighl
177
177
  M
178
178
  ]), s(() => {
179
179
  if (k === null || !N) return;
180
- let e = D.current === null ? [] : [D.current], t = ue(k, {
180
+ let e = D.current === null ? [] : [D.current], t = de(k, {
181
181
  branches: e,
182
182
  escape: !0,
183
183
  focusOutside: !1,
@@ -200,7 +200,7 @@ function Oe({ className: ne, clearable: re = !1, closeOnSelect: we, defaultHighl
200
200
  }, [N, W]), s(() => {
201
201
  !N || q < 0 || (O.current?.querySelectorAll("[data-part=\"option\"]")[q])?.scrollIntoView?.({ block: "nearest" });
202
202
  }, [q, N]);
203
- let It = l(fe({ locale: () => F }));
203
+ let It = l(pe({ locale: () => F }));
204
204
  s(() => {
205
205
  let e = It.current;
206
206
  return () => e.destroy();
@@ -268,7 +268,7 @@ function Oe({ className: ne, clearable: re = !1, closeOnSelect: we, defaultHighl
268
268
  return;
269
269
  }
270
270
  }
271
- if (pe(e.key, It.current.query.length > 0)) {
271
+ if (me(e.key, It.current.query.length > 0)) {
272
272
  let n = It.current.match(e.key, jt, t);
273
273
  if (n < 0) return;
274
274
  e.preventDefault(), Y(n, e), $(n);
@@ -371,7 +371,7 @@ function Oe({ className: ne, clearable: re = !1, closeOnSelect: we, defaultHighl
371
371
  onKeyDown: Vt,
372
372
  ref: D,
373
373
  type: "button",
374
- children: /* @__PURE__ */ d(t, { children: /* @__PURE__ */ d(e, { name: "clock" }) })
374
+ children: /* @__PURE__ */ d(r, { children: /* @__PURE__ */ d(n, { name: "clock" }) })
375
375
  }),
376
376
  granularity: I,
377
377
  invalid: kt,
@@ -409,7 +409,7 @@ function Oe({ className: ne, clearable: re = !1, closeOnSelect: we, defaultHighl
409
409
  "data-variant": yt,
410
410
  ref: E
411
411
  });
412
- return /* @__PURE__ */ f(se, { children: [qe === void 0 ? /* @__PURE__ */ d("div", { ...Kt }) : qe(Kt), A === null ? null : me(Wt, A)] });
412
+ return /* @__PURE__ */ f(se, { children: [qe === void 0 ? /* @__PURE__ */ d("div", { ...Kt }) : qe(Kt), A === null ? null : he(Wt, A)] });
413
413
  }
414
414
  //#endregion
415
415
  export { g as a, Te as i, m as n, we as r, Oe as t };
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, r, t as i } from "./time-picker-Ce18FSO2.js";
1
+ import { a as e, i as t, n, r, t as i } from "./time-picker-CNfafRDF.js";
2
2
  export { n as TIME_PICKER_MAX_OPTIONS, r as TIME_PICKER_STEP, i as TimePicker, t as TimePickerDefaultsProvider, e as useTimePickerDefaults };
@@ -1,18 +1,18 @@
1
- import { n as e, t } from "./icon-DjqSEQ-o.js";
2
- import { n, r } from "./i18n-DpW8lqJ1.js";
3
- import { b as i } from "./field-CzSGs7wo.js";
4
- import { t as a } from "./time-field-Cm6iBjwH.js";
1
+ import { n as e, r as t } from "./i18n-D7xXDd8-.js";
2
+ import { n, t as r } from "./icon-DjqSEQ-o.js";
3
+ import { b as i } from "./field-tnEZiRLg.js";
4
+ import { t as a } from "./time-field-BIE4WMpS.js";
5
5
  import { keyedProps as o } from "@slotted/core/selector-key";
6
6
  import { createControllable as s } from "@slotted/core/state";
7
7
  import { createContext as c, useCallback as l, useContext as ee, useEffect as u, useId as te, useImperativeHandle as ne, useLayoutEffect as re, useMemo as d, useRef as f, useState as p } from "react";
8
8
  import { Fragment as ie, jsx as m, jsxs as h } from "react/jsx-runtime";
9
9
  import { createPresence as ae } from "@slotted/core/presence";
10
- import { createPortalRoot as oe } from "@slotted/core/portal";
11
- import { createDismissableLayer as se } from "@slotted/core/dismissable-layer";
12
- import { createPositioner as ce } from "@slotted/core/positioner";
13
- import { createTypeahead as le, isPrintable as ue } from "@slotted/core/typeahead";
14
- import { createPortal as de } from "react-dom";
15
- import { timeRangePickerMessages as fe } from "@slotted/core/i18n";
10
+ import { timeRangePickerMessages as oe } from "@slotted/core/i18n";
11
+ import { createPortalRoot as se } from "@slotted/core/portal";
12
+ import { createDismissableLayer as ce } from "@slotted/core/dismissable-layer";
13
+ import { createPositioner as le } from "@slotted/core/positioner";
14
+ import { createTypeahead as ue, isPrintable as de } from "@slotted/core/typeahead";
15
+ import { createPortal as fe } from "react-dom";
16
16
  import { compareTime as g, createTimeFormat as pe, durationLabel as me, firstUnavailableIndex as he, hourJump as ge, isSameTime as _, isTruncated as _e, nearestIndex as ve, nowIn as ye, openingIndex as be, runRefusal as xe, secondsOfDay as Se, timeList as Ce, timeRangeProblems as we, timeRangeSeconds as v, toISOTime as Te } from "@slotted/core/date";
17
17
  //#region src/time-range-picker/time-range-picker-defaults.tsx
18
18
  var Ee = 900, De = 1440;
@@ -83,7 +83,7 @@ function Be(e) {
83
83
  return e === "start" ? "end" : "start";
84
84
  }
85
85
  function Ve({ className: c, clearable: ee = !1, closeOnSelect: me, contiguous: Ee = !0, defaultHighlighted: De, defaultOpen: Oe = !1, defaultPosition: ke = "start", defaultValue: je, disabled: Ve, endName: Ue, footer: We, granularity: Ge, highlighted: Ke, hourCycle: qe, invalid: Je, isTimeUnavailable: y, lengthLabel: Ye, locale: Xe, max: b, maxLength: x, maxOptions: Ze, messages: Qe, min: S, minLength: C, onHighlightedChange: $e, onKeyDown: et, onOpenChange: tt, onPositionChange: nt, onValueChange: rt, open: it, options: at, placement: ot, position: st, presets: ct, readOnly: lt, ref: ut, referenceTime: dt, relative: ft, render: pt, renderOption: mt, required: ht, size: gt, startName: _t, step: vt, style: yt, timeZone: bt, unavailableOptions: xt, value: w, variant: St, ...Ct }) {
86
- let T = i(), E = Ae(), wt = n(), D = r(fe, Qe), O = f(null), k = f(null), Tt = f(null), Et = f(null), Dt = f(null), Ot = f({
86
+ let T = i(), E = Ae(), wt = e(), D = t(oe, Qe), O = f(null), k = f(null), Tt = f(null), Et = f(null), Dt = f(null), Ot = f({
87
87
  start: null,
88
88
  end: null
89
89
  }), A = te(), [j, kt] = p(null), [At, jt] = p(null), [Mt, Nt] = p("unmounted"), [Pt, Ft] = p(!1), [It, Lt] = p(!1), [Rt, zt] = p(Oe), M = it ?? Rt, [Bt, Vt] = p(Le(je ?? null)), N = w === void 0 ? Bt : Le(w), [Ht, Ut] = p(ke), P = st ?? Ht, [Wt, Gt] = p(De ?? Fe), F = Ke ?? Wt, [I, L] = p(N ?? Pe), [Kt, qt] = p(null), [Jt, Yt] = p(!1), R = Xe ?? wt, Xt = bt ?? E.timeZone, Zt = Ge ?? E.granularity, z = qe ?? E.hourCycle, Qt = gt ?? T?.size ?? E.size, $t = St ?? E.variant, en = ot ?? E.placement, tn = me ?? E.closeOnSelect, nn = vt ?? E.step, rn = Ze ?? E.maxOptions, an = xt ?? E.unavailableOptions, on = Ye ?? E.lengthLabel, B = l((e) => on(e, R), [on, R]), sn = (e) => D(e), cn = Ve ?? T?.disabled, ln = lt ?? T?.readOnly, un = ht ?? T?.required, V = cn !== !0 && ln !== !0, H = d(() => pe({
@@ -259,8 +259,8 @@ function Ve({ className: c, clearable: ee = !1, closeOnSelect: me, contiguous: E
259
259
  j
260
260
  ]);
261
261
  let Dn = f({
262
- start: le({ locale: () => R }),
263
- end: le({ locale: () => R })
262
+ start: ue({ locale: () => R }),
263
+ end: ue({ locale: () => R })
264
264
  });
265
265
  u(() => {
266
266
  let e = Dn.current;
@@ -293,7 +293,7 @@ function Ve({ className: c, clearable: ee = !1, closeOnSelect: me, contiguous: E
293
293
  jt(null);
294
294
  return;
295
295
  }
296
- let e = oe({
296
+ let e = se({
297
297
  origin: k.current,
298
298
  disabled: !1
299
299
  });
@@ -304,7 +304,7 @@ function Ve({ className: c, clearable: ee = !1, closeOnSelect: me, contiguous: E
304
304
  return t(), e.addEventListener("change", t), () => e.removeEventListener("change", t);
305
305
  }, []), re(() => {
306
306
  if (j === null || O.current === null || It) return;
307
- let e = O.current.querySelector("[data-part=\"control\"]") ?? O.current, [t, n = "center"] = en.split("-"), r = ce(e, j, {
307
+ let e = O.current.querySelector("[data-part=\"control\"]") ?? O.current, [t, n = "center"] = en.split("-"), r = le(e, j, {
308
308
  align: n,
309
309
  side: t
310
310
  });
@@ -317,7 +317,7 @@ function Ve({ className: c, clearable: ee = !1, closeOnSelect: me, contiguous: E
317
317
  It
318
318
  ]), u(() => {
319
319
  if (j === null || !M) return;
320
- let e = k.current === null ? [] : [k.current], t = se(j, {
320
+ let e = k.current === null ? [] : [k.current], t = ce(j, {
321
321
  branches: e,
322
322
  escape: !0,
323
323
  focusOutside: !1,
@@ -457,7 +457,7 @@ function Ve({ className: c, clearable: ee = !1, closeOnSelect: me, contiguous: E
457
457
  }
458
458
  }
459
459
  let a = Dn.current[e];
460
- if (ue(t.key, a.query.length > 0)) {
460
+ if (de(t.key, a.query.length > 0)) {
461
461
  let n = a.match(t.key, Cn[e], i);
462
462
  if (n < 0) return;
463
463
  t.preventDefault(), X(e, n, t), Z(n);
@@ -707,7 +707,7 @@ function Ve({ className: c, clearable: ee = !1, closeOnSelect: me, contiguous: E
707
707
  "data-part-summary": "",
708
708
  ...Zn === null ? { "data-placeholder": "" } : {},
709
709
  children: Zn ?? D("choose")
710
- }), /* @__PURE__ */ m(t, { children: /* @__PURE__ */ m(e, { name: "clock" }) })]
710
+ }), /* @__PURE__ */ m(r, { children: /* @__PURE__ */ m(n, { name: "clock" }) })]
711
711
  }),
712
712
  ee && N !== null ? /* @__PURE__ */ m("button", {
713
713
  "aria-label": D("clear"),
@@ -718,7 +718,7 @@ function Ve({ className: c, clearable: ee = !1, closeOnSelect: me, contiguous: E
718
718
  L(Pe), K(null, "clear", e), q("start", "clear", e), k.current?.focus();
719
719
  },
720
720
  type: "button",
721
- children: /* @__PURE__ */ m(t, { children: /* @__PURE__ */ m(e, { name: "x" }) })
721
+ children: /* @__PURE__ */ m(r, { children: /* @__PURE__ */ m(n, { name: "x" }) })
722
722
  }) : null,
723
723
  /* @__PURE__ */ m("input", {
724
724
  "data-part": "hidden-input",
@@ -752,7 +752,7 @@ function Ve({ className: c, clearable: ee = !1, closeOnSelect: me, contiguous: E
752
752
  "data-variant": $t,
753
753
  ref: O
754
754
  });
755
- return /* @__PURE__ */ h(ie, { children: [pt === void 0 ? /* @__PURE__ */ m("div", { ...cr }) : pt(cr), At === null ? null : de(or, At)] });
755
+ return /* @__PURE__ */ h(ie, { children: [pt === void 0 ? /* @__PURE__ */ m("div", { ...cr }) : pt(cr), At === null ? null : fe(or, At)] });
756
756
  }
757
757
  function He(e, t) {
758
758
  let n = t[e];
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./time-range-picker-kDnw4PQ3.js";
1
+ import { a as e, c as t, i as n, n as r, o as i, r as a, s as o, t as s } from "./time-range-picker-D7gM_Wno.js";
2
2
  export { n as TIME_RANGE_PICKER_MAX_OPTIONS, e as TIME_RANGE_PICKER_STEP, s as TimeRangePicker, i as TimeRangePickerDefaultsProvider, r as TimeRangePickerPreset, a as isSameTimeRange, o as timeRangePickerLengthLabel, t as useTimeRangePickerDefaults };