@slotted/react 0.1.0-beta.46 → 0.1.0-beta.47

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 (487) hide show
  1. package/dist/{action-bar-BSUuY6pJ.js → action-bar-CZAowvra.js} +1 -1
  2. package/dist/action-bar.js +1 -1
  3. package/dist/action-sheet-D5XBXFe2.js +359 -0
  4. package/dist/action-sheet.js +1 -1
  5. package/dist/{calendar-BO5teotM.js → calendar-MztDEqAz.js} +13 -12
  6. package/dist/calendar.js +1 -1
  7. package/dist/cascader-Bf0CzPu-.js +1305 -0
  8. package/dist/cascader.js +1 -1
  9. package/dist/{chart-sewqbbm-.js → chart-C6NdybXy.js} +6 -6
  10. package/dist/chart.js +1 -1
  11. package/dist/{checkbox-D8HZG0be.js → checkbox-Bv1b6qh_.js} +3 -3
  12. package/dist/{checkbox-group-5zuE2Kd1.js → checkbox-group-BnxPixJG.js} +2 -2
  13. package/dist/checkbox-group.js +1 -1
  14. package/dist/checkbox.js +1 -1
  15. package/dist/{color-picker-fiLSUBjj.js → color-picker-B66gG2WU.js} +12 -11
  16. package/dist/color-picker.js +1 -1
  17. package/dist/column-manager-BtzX-KIk.js +589 -0
  18. package/dist/column-manager.js +1 -1
  19. package/dist/{combobox-DMtXrMYE.js → combobox-BpBFn5wM.js} +2 -2
  20. package/dist/combobox.js +1 -1
  21. package/dist/{command-palette-DwjkexvN.js → command-palette-Bk94SEuy.js} +2 -1
  22. package/dist/command-palette.js +1 -1
  23. package/dist/{context-menu-CRRp-PhP.js → context-menu-DoH2mtbN.js} +1 -1
  24. package/dist/context-menu.js +1 -1
  25. package/dist/{currency-field-Cxr8MT75.js → currency-field-D7LKgNcS.js} +1 -1
  26. package/dist/currency-field.js +1 -1
  27. package/dist/{dashboard-grid-CBqqgiKr.js → dashboard-grid-C3XZRM2i.js} +8 -8
  28. package/dist/dashboard-grid.js +1 -1
  29. package/dist/{data-grid-BlElqHOU.js → data-grid-udreCRZy.js} +1352 -1355
  30. package/dist/data-grid.js +1 -1
  31. package/dist/{data-list-5zvM-DUz.js → data-list-BMIQwNKA.js} +13 -13
  32. package/dist/data-list.js +1 -1
  33. package/dist/date-field-BTbbf38h.js +313 -0
  34. package/dist/date-field.js +1 -1
  35. package/dist/date-picker-ClZMRCJ1.js +347 -0
  36. package/dist/date-picker.js +2 -2
  37. package/dist/{date-range-picker-DzuuvudX.js → date-range-picker-DN2It6LA.js} +75 -71
  38. package/dist/date-range-picker.js +1 -1
  39. package/dist/datetime-field-DmgZDYhb.js +438 -0
  40. package/dist/datetime-field.js +1 -1
  41. package/dist/{datetime-picker-BUhSr8yp.js → datetime-picker-vVXAefqf.js} +158 -154
  42. package/dist/datetime-picker.js +1 -1
  43. package/dist/{datetime-range-picker-DXllehEN.js → datetime-range-picker-B4GYh_jU.js} +149 -145
  44. package/dist/datetime-range-picker.js +1 -1
  45. package/dist/dialog-lceAPWMr.js +591 -0
  46. package/dist/dialog.js +1 -1
  47. package/dist/docs/action-sheet.json +1 -3
  48. package/dist/docs/action-sheet.md +1 -1
  49. package/dist/docs/calendar.json +1 -1
  50. package/dist/docs/calendar.md +1 -1
  51. package/dist/docs/cascader.json +73 -2
  52. package/dist/docs/cascader.md +10 -1
  53. package/dist/docs/collapsible.examples.md +1 -1
  54. package/dist/docs/collapsible.json +2 -2
  55. package/dist/docs/collapsible.md +1 -1
  56. package/dist/docs/color-picker.json +1 -1
  57. package/dist/docs/column-manager.json +6 -4
  58. package/dist/docs/column-manager.md +3 -3
  59. package/dist/docs/combobox.json +1 -0
  60. package/dist/docs/combobox.md +1 -1
  61. package/dist/docs/data-grid.json +2 -1
  62. package/dist/docs/data-grid.md +1 -1
  63. package/dist/docs/date-picker.json +10 -2
  64. package/dist/docs/date-picker.md +3 -2
  65. package/dist/docs/date-range-picker.json +10 -1
  66. package/dist/docs/date-range-picker.md +3 -2
  67. package/dist/docs/datetime-picker.json +9 -1
  68. package/dist/docs/datetime-picker.md +2 -1
  69. package/dist/docs/datetime-range-picker.json +10 -1
  70. package/dist/docs/datetime-range-picker.md +3 -2
  71. package/dist/docs/dialog.json +56 -8
  72. package/dist/docs/dialog.md +3 -0
  73. package/dist/docs/dialog.props.md +6 -2
  74. package/dist/docs/drawer.examples.md +108 -1
  75. package/dist/docs/drawer.json +70 -13
  76. package/dist/docs/drawer.md +31 -21
  77. package/dist/docs/entity-picker.examples.md +1 -1
  78. package/dist/docs/entity-picker.json +112 -4
  79. package/dist/docs/entity-picker.md +16 -2
  80. package/dist/docs/field.json +1 -1
  81. package/dist/docs/field.md +1 -1
  82. package/dist/docs/filter-bar.examples.md +215 -0
  83. package/dist/docs/filter-bar.json +232 -6
  84. package/dist/docs/filter-bar.md +32 -4
  85. package/dist/docs/guidelines/index.md +1 -0
  86. package/dist/docs/guidelines/shell-composition.md +13 -0
  87. package/dist/docs/list-item.examples.md +50 -0
  88. package/dist/docs/list-item.json +20 -3
  89. package/dist/docs/list-item.md +4 -3
  90. package/dist/docs/list.examples.md +93 -0
  91. package/dist/docs/list.json +41 -1
  92. package/dist/docs/list.md +4 -0
  93. package/dist/docs/menu.examples.md +39 -0
  94. package/dist/docs/menu.json +25 -12
  95. package/dist/docs/menu.md +3 -2
  96. package/dist/docs/multi-select.json +89 -3
  97. package/dist/docs/multi-select.md +14 -2
  98. package/dist/docs/popover.json +31 -14
  99. package/dist/docs/popover.md +5 -2
  100. package/dist/docs/saved-views.json +3 -3
  101. package/dist/docs/saved-views.md +1 -1
  102. package/dist/docs/select.examples.md +51 -0
  103. package/dist/docs/select.json +37 -15
  104. package/dist/docs/select.md +5 -3
  105. package/dist/docs/table.json +2 -1
  106. package/dist/docs/table.md +1 -1
  107. package/dist/docs/time-picker.json +9 -1
  108. package/dist/docs/time-picker.md +2 -1
  109. package/dist/docs/time-range-picker.json +10 -1
  110. package/dist/docs/time-range-picker.md +3 -2
  111. package/dist/docs/toast.examples.md +57 -1
  112. package/dist/docs/toast.json +15 -6
  113. package/dist/docs/toast.md +3 -3
  114. package/dist/drawer-Bx08Xyos.js +923 -0
  115. package/dist/drawer.js +2 -2
  116. package/dist/entity-picker-DFQxelpt.js +1499 -0
  117. package/dist/entity-picker.js +1 -1
  118. package/dist/{event-calendar-Bxx8eoGK.js → event-calendar-BkGLOaea.js} +527 -527
  119. package/dist/event-calendar.js +1 -1
  120. package/dist/{field-N0TiMbaI.js → field-C85R0vVs.js} +6 -6
  121. package/dist/{field-group-BrnE6FvP.js → field-group-QR1buowc.js} +1 -1
  122. package/dist/field-group.js +1 -1
  123. package/dist/field.js +1 -1
  124. package/dist/filter-bar-CQ0CjZCJ.js +1881 -0
  125. package/dist/filter-bar.js +1 -1
  126. package/dist/{hover-card-D9-rb9ts.js → hover-card-DCgVwHxC.js} +25 -25
  127. package/dist/hover-card.js +1 -1
  128. package/dist/{import-export-center-BpGga5jr.js → import-export-center-DycVct7z.js} +2 -2
  129. package/dist/import-export-center.js +1 -1
  130. package/dist/index.js +132 -132
  131. package/dist/{list-CvwJXjA0.js → list-DBKKu3Ql.js} +26 -19
  132. package/dist/{list-item-DHKlkY65.js → list-item-B4W0cAQZ.js} +18 -9
  133. package/dist/list-item.js +2 -2
  134. package/dist/list.js +1 -1
  135. package/dist/{listbox-3XVusnCr.js → listbox-CHa-ekIV.js} +1 -1
  136. package/dist/listbox.js +1 -1
  137. package/dist/{markdown-BMda5ino.js → markdown-QdcPI0nq.js} +1 -1
  138. package/dist/markdown.js +1 -1
  139. package/dist/{media-viewer-C_cbuAq-.js → media-viewer-_hsM_dLR.js} +1 -1
  140. package/dist/media-viewer.js +1 -1
  141. package/dist/menu-parts-KmGR46Np.js +940 -0
  142. package/dist/menu.js +1 -1
  143. package/dist/{menubar-CVoAFc6r.js → menubar-3ij92kyN.js} +1 -1
  144. package/dist/menubar.js +1 -1
  145. package/dist/multi-select-kY7LFJqS.js +1489 -0
  146. package/dist/multi-select.js +1 -1
  147. package/dist/{number-field-Cp33JMGB.js → number-field-D65B-uRs.js} +1 -1
  148. package/dist/number-field.js +1 -1
  149. package/dist/{otp-input-CEP60HOi.js → otp-input-DN8jHJnY.js} +1 -1
  150. package/dist/otp-input.js +1 -1
  151. package/dist/{picker-frame-C3Fhjfaj.js → picker-frame--0zIvoSA.js} +1 -1
  152. package/dist/{picker-range-head-B4tsDOc5.js → picker-range-head-BLoTsTRu.js} +13 -5
  153. package/dist/popover-CUsTCP0m.js +632 -0
  154. package/dist/popover.js +2 -2
  155. package/dist/{prompt-composer-CwjvdgBR.js → prompt-composer-i5y3qaDA.js} +1 -1
  156. package/dist/prompt-composer.js +1 -1
  157. package/dist/{radio-group-D6bOV_ea.js → radio-group-DLr2C-XS.js} +2 -2
  158. package/dist/radio-group.js +1 -1
  159. package/dist/{rating-D8BvDdjM.js → rating-Bb5srSz4.js} +1 -1
  160. package/dist/rating.js +1 -1
  161. package/dist/saved-views-w9GpSo76.js +526 -0
  162. package/dist/saved-views.js +1 -1
  163. package/dist/{segmented-control-BLcGhQ4J.js → segmented-control-Cpx_RYQ6.js} +2 -2
  164. package/dist/segmented-control.js +1 -1
  165. package/dist/select-CAUuknw3.js +1160 -0
  166. package/dist/select.js +1 -1
  167. package/dist/{slider-COLWTaxi.js → slider-CAd6tQlw.js} +1 -1
  168. package/dist/slider.js +1 -1
  169. package/dist/{split-button-Czr2D3HP.js → split-button-CNNYK9zU.js} +1 -1
  170. package/dist/split-button.js +1 -1
  171. package/dist/styles/action-bar.css +3 -1
  172. package/dist/styles/action-sheet.css +4 -2
  173. package/dist/styles/calendar.css +1 -1
  174. package/dist/styles/cascader.css +4 -2
  175. package/dist/styles/chart.css +3 -1
  176. package/dist/styles/checkbox-group.css +3 -1
  177. package/dist/styles/checkbox.css +3 -1
  178. package/dist/styles/collapsible.css +1 -1
  179. package/dist/styles/color-picker.css +5 -3
  180. package/dist/styles/column-manager.css +6 -4
  181. package/dist/styles/combobox.css +4 -2
  182. package/dist/styles/command-palette.css +8 -4
  183. package/dist/styles/context-menu.css +3 -1
  184. package/dist/styles/currency-field.css +3 -1
  185. package/dist/styles/dashboard-grid.css +4 -2
  186. package/dist/styles/data-grid.css +15 -13
  187. package/dist/styles/data-list.css +6 -4
  188. package/dist/styles/date-field.css +4 -2
  189. package/dist/styles/date-picker.css +6 -4
  190. package/dist/styles/date-range-picker.css +7 -5
  191. package/dist/styles/datetime-field.css +4 -2
  192. package/dist/styles/datetime-picker.css +7 -5
  193. package/dist/styles/datetime-range-picker.css +7 -5
  194. package/dist/styles/dialog.css +7 -1
  195. package/dist/styles/drawer.css +3 -1
  196. package/dist/styles/entity-picker.css +8 -6
  197. package/dist/styles/event-calendar.css +5 -3
  198. package/dist/styles/field-group.css +3 -1
  199. package/dist/styles/field.css +3 -1
  200. package/dist/styles/filter-bar.css +18 -16
  201. package/dist/styles/hover-card.css +3 -1
  202. package/dist/styles/import-export-center.css +14 -12
  203. package/dist/styles/index.css +31 -29
  204. package/dist/styles/list-item.css +2 -2
  205. package/dist/styles/list.css +1 -1
  206. package/dist/styles/listbox.css +3 -1
  207. package/dist/styles/markdown.css +3 -1
  208. package/dist/styles/media-viewer.css +7 -1
  209. package/dist/styles/menu.css +3 -1
  210. package/dist/styles/menubar.css +3 -1
  211. package/dist/styles/multi-select.css +7 -5
  212. package/dist/styles/number-field.css +3 -1
  213. package/dist/styles/otp-input.css +3 -1
  214. package/dist/styles/popover.css +3 -1
  215. package/dist/styles/prompt-composer.css +3 -1
  216. package/dist/styles/radio-group.css +3 -1
  217. package/dist/styles/rating.css +3 -1
  218. package/dist/styles/saved-views.css +7 -3
  219. package/dist/styles/segmented-control.css +3 -1
  220. package/dist/styles/select.css +7 -5
  221. package/dist/styles/slider.css +3 -1
  222. package/dist/styles/split-button.css +3 -1
  223. package/dist/styles/switch.css +3 -1
  224. package/dist/styles/table.css +13 -11
  225. package/dist/styles/tags-input.css +3 -1
  226. package/dist/styles/text-field.css +3 -1
  227. package/dist/styles/textarea.css +3 -1
  228. package/dist/styles/time-field.css +4 -2
  229. package/dist/styles/time-picker.css +5 -3
  230. package/dist/styles/time-range-picker.css +6 -4
  231. package/dist/styles/toast.css +1 -1
  232. package/dist/styles/toggle-group.css +3 -1
  233. package/dist/styles/toolbar.css +3 -1
  234. package/dist/styles/transfer.css +3 -1
  235. package/dist/styles/upload.css +4 -2
  236. package/dist/styles.css +1 -1
  237. package/dist/{switch-CEbZkLlX.js → switch-DQF6Qg4y.js} +1 -1
  238. package/dist/switch.js +1 -1
  239. package/dist/{table-BU7XsbQX.js → table-BHTF9AZK.js} +302 -290
  240. package/dist/table.js +1 -1
  241. package/dist/{tags-input-BdjkB19P.js → tags-input-Dp_9HJjh.js} +1 -1
  242. package/dist/tags-input.js +1 -1
  243. package/dist/{text-field-QJnu-rln.js → text-field-CEBNOMlK.js} +1 -1
  244. package/dist/text-field.js +1 -1
  245. package/dist/{textarea-DsrXI3xB.js → textarea-B9hyx3D3.js} +1 -1
  246. package/dist/textarea.js +1 -1
  247. package/dist/time-field-B8KPjZBf.js +380 -0
  248. package/dist/time-field.js +1 -1
  249. package/dist/{time-picker-WmeCIySv.js → time-picker-aw-WIlPe.js} +35 -31
  250. package/dist/time-picker.js +1 -1
  251. package/dist/{time-range-picker-CwSbsJPt.js → time-range-picker-BN5speYJ.js} +106 -102
  252. package/dist/time-range-picker.js +1 -1
  253. package/dist/toast-D7G0-9nW.js +467 -0
  254. package/dist/toast.js +1 -1
  255. package/dist/{toggle-group-SP_W-yeh.js → toggle-group-K1U5TQ5h.js} +1 -1
  256. package/dist/toggle-group.js +1 -1
  257. package/dist/{toolbar-BniP4i1C.js → toolbar-B6ijf51c.js} +1 -1
  258. package/dist/toolbar.js +1 -1
  259. package/dist/{transfer-DX6umI2M.js → transfer-A6dqhEGq.js} +5 -5
  260. package/dist/transfer.js +1 -1
  261. package/dist/types/action-sheet/action-sheet-parts.d.ts.map +1 -1
  262. package/dist/types/calendar/calendar.d.ts.map +1 -1
  263. package/dist/types/calendar/calendar.types.d.ts +6 -3
  264. package/dist/types/calendar/calendar.types.d.ts.map +1 -1
  265. package/dist/types/cascader/cascader-defaults.d.ts.map +1 -1
  266. package/dist/types/cascader/cascader-sheet-panel.d.ts +29 -0
  267. package/dist/types/cascader/cascader-sheet-panel.d.ts.map +1 -0
  268. package/dist/types/cascader/cascader.d.ts +1 -0
  269. package/dist/types/cascader/cascader.d.ts.map +1 -1
  270. package/dist/types/cascader/cascader.types.d.ts +8 -0
  271. package/dist/types/cascader/cascader.types.d.ts.map +1 -1
  272. package/dist/types/cascader/index.d.ts +1 -1
  273. package/dist/types/cascader/index.d.ts.map +1 -1
  274. package/dist/types/cascader/use-cascader-sheet.d.ts +25 -0
  275. package/dist/types/cascader/use-cascader-sheet.d.ts.map +1 -0
  276. package/dist/types/color-picker/color-picker.d.ts +1 -1
  277. package/dist/types/color-picker/color-picker.d.ts.map +1 -1
  278. package/dist/types/column-manager/column-manager.d.ts.map +1 -1
  279. package/dist/types/column-manager/column-manager.types.d.ts +5 -2
  280. package/dist/types/column-manager/column-manager.types.d.ts.map +1 -1
  281. package/dist/types/combobox/combobox-parts.d.ts.map +1 -1
  282. package/dist/types/command-palette/command-palette.d.ts.map +1 -1
  283. package/dist/types/data-grid/data-grid-filter.d.ts.map +1 -1
  284. package/dist/types/date-field/date-field.d.ts.map +1 -1
  285. package/dist/types/date-picker/date-picker-defaults.d.ts.map +1 -1
  286. package/dist/types/date-picker/date-picker.d.ts.map +1 -1
  287. package/dist/types/date-picker/date-picker.types.d.ts +5 -0
  288. package/dist/types/date-picker/date-picker.types.d.ts.map +1 -1
  289. package/dist/types/date-picker/index.d.ts +1 -1
  290. package/dist/types/date-picker/index.d.ts.map +1 -1
  291. package/dist/types/date-picker/use-date-picker.d.ts +2 -1
  292. package/dist/types/date-picker/use-date-picker.d.ts.map +1 -1
  293. package/dist/types/date-range-picker/date-range-picker-defaults.d.ts.map +1 -1
  294. package/dist/types/date-range-picker/date-range-picker.d.ts.map +1 -1
  295. package/dist/types/date-range-picker/date-range-picker.types.d.ts +5 -0
  296. package/dist/types/date-range-picker/date-range-picker.types.d.ts.map +1 -1
  297. package/dist/types/date-range-picker/index.d.ts +1 -1
  298. package/dist/types/date-range-picker/index.d.ts.map +1 -1
  299. package/dist/types/date-range-picker/use-date-range-picker.d.ts +1 -0
  300. package/dist/types/date-range-picker/use-date-range-picker.d.ts.map +1 -1
  301. package/dist/types/datetime-field/datetime-field.d.ts.map +1 -1
  302. package/dist/types/datetime-picker/datetime-picker-defaults.d.ts.map +1 -1
  303. package/dist/types/datetime-picker/datetime-picker.d.ts.map +1 -1
  304. package/dist/types/datetime-picker/datetime-picker.types.d.ts +5 -0
  305. package/dist/types/datetime-picker/datetime-picker.types.d.ts.map +1 -1
  306. package/dist/types/datetime-picker/index.d.ts +1 -1
  307. package/dist/types/datetime-picker/index.d.ts.map +1 -1
  308. package/dist/types/datetime-picker/use-datetime-picker.d.ts +1 -0
  309. package/dist/types/datetime-picker/use-datetime-picker.d.ts.map +1 -1
  310. package/dist/types/datetime-range-picker/datetime-range-picker-defaults.d.ts.map +1 -1
  311. package/dist/types/datetime-range-picker/datetime-range-picker.d.ts.map +1 -1
  312. package/dist/types/datetime-range-picker/datetime-range-picker.types.d.ts +5 -0
  313. package/dist/types/datetime-range-picker/datetime-range-picker.types.d.ts.map +1 -1
  314. package/dist/types/datetime-range-picker/index.d.ts +1 -1
  315. package/dist/types/datetime-range-picker/index.d.ts.map +1 -1
  316. package/dist/types/datetime-range-picker/use-datetime-range-picker.d.ts +1 -0
  317. package/dist/types/datetime-range-picker/use-datetime-range-picker.d.ts.map +1 -1
  318. package/dist/types/dialog/dialog-defaults.d.ts.map +1 -1
  319. package/dist/types/dialog/dialog-parts.d.ts +1 -1
  320. package/dist/types/dialog/dialog-parts.d.ts.map +1 -1
  321. package/dist/types/dialog/dialog-sheet-footer.d.ts +7 -0
  322. package/dist/types/dialog/dialog-sheet-footer.d.ts.map +1 -0
  323. package/dist/types/dialog/dialog.d.ts +1 -0
  324. package/dist/types/dialog/dialog.d.ts.map +1 -1
  325. package/dist/types/dialog/dialog.types.d.ts +25 -0
  326. package/dist/types/dialog/dialog.types.d.ts.map +1 -1
  327. package/dist/types/dialog/index.d.ts +1 -1
  328. package/dist/types/dialog/index.d.ts.map +1 -1
  329. package/dist/types/dialog/use-dialog-sheet.d.ts +8 -0
  330. package/dist/types/dialog/use-dialog-sheet.d.ts.map +1 -0
  331. package/dist/types/drawer/drawer-parts.d.ts +10 -2
  332. package/dist/types/drawer/drawer-parts.d.ts.map +1 -1
  333. package/dist/types/drawer/drawer.d.ts +2 -1
  334. package/dist/types/drawer/drawer.d.ts.map +1 -1
  335. package/dist/types/drawer/drawer.types.d.ts +21 -0
  336. package/dist/types/drawer/drawer.types.d.ts.map +1 -1
  337. package/dist/types/drawer/index.d.ts +2 -2
  338. package/dist/types/drawer/index.d.ts.map +1 -1
  339. package/dist/types/entity-picker/entity-picker-defaults.d.ts.map +1 -1
  340. package/dist/types/entity-picker/entity-picker-popup.d.ts.map +1 -1
  341. package/dist/types/entity-picker/entity-picker-sheet-panel.d.ts +17 -0
  342. package/dist/types/entity-picker/entity-picker-sheet-panel.d.ts.map +1 -0
  343. package/dist/types/entity-picker/entity-picker.d.ts +3 -0
  344. package/dist/types/entity-picker/entity-picker.d.ts.map +1 -1
  345. package/dist/types/entity-picker/entity-picker.types.d.ts +8 -0
  346. package/dist/types/entity-picker/entity-picker.types.d.ts.map +1 -1
  347. package/dist/types/entity-picker/index.d.ts +1 -1
  348. package/dist/types/entity-picker/index.d.ts.map +1 -1
  349. package/dist/types/entity-picker/sheet-keys.d.ts +9 -0
  350. package/dist/types/entity-picker/sheet-keys.d.ts.map +1 -0
  351. package/dist/types/entity-picker/use-entity-picker-sheet.d.ts +16 -0
  352. package/dist/types/entity-picker/use-entity-picker-sheet.d.ts.map +1 -0
  353. package/dist/types/filter-bar/filter-bar-sheet-editor.d.ts +21 -0
  354. package/dist/types/filter-bar/filter-bar-sheet-editor.d.ts.map +1 -0
  355. package/dist/types/filter-bar/filter-bar-sheet-list.d.ts +19 -0
  356. package/dist/types/filter-bar/filter-bar-sheet-list.d.ts.map +1 -0
  357. package/dist/types/filter-bar/filter-bar-sheet-notice.d.ts +17 -0
  358. package/dist/types/filter-bar/filter-bar-sheet-notice.d.ts.map +1 -0
  359. package/dist/types/filter-bar/filter-bar-sheet-operands.d.ts +22 -0
  360. package/dist/types/filter-bar/filter-bar-sheet-operands.d.ts.map +1 -0
  361. package/dist/types/filter-bar/filter-bar-sheet-option.d.ts +12 -0
  362. package/dist/types/filter-bar/filter-bar-sheet-option.d.ts.map +1 -0
  363. package/dist/types/filter-bar/filter-bar-sheet-row.d.ts +15 -0
  364. package/dist/types/filter-bar/filter-bar-sheet-row.d.ts.map +1 -0
  365. package/dist/types/filter-bar/filter-bar-sheet-words.d.ts +11 -0
  366. package/dist/types/filter-bar/filter-bar-sheet-words.d.ts.map +1 -0
  367. package/dist/types/filter-bar/filter-bar-sheet.d.ts +36 -0
  368. package/dist/types/filter-bar/filter-bar-sheet.d.ts.map +1 -0
  369. package/dist/types/filter-bar/filter-bar.d.ts +1 -1
  370. package/dist/types/filter-bar/filter-bar.d.ts.map +1 -1
  371. package/dist/types/filter-bar/filter-bar.types.d.ts +59 -1
  372. package/dist/types/filter-bar/filter-bar.types.d.ts.map +1 -1
  373. package/dist/types/filter-bar/index.d.ts +1 -1
  374. package/dist/types/filter-bar/index.d.ts.map +1 -1
  375. package/dist/types/filter-bar/use-sheet-draft.d.ts +12 -0
  376. package/dist/types/filter-bar/use-sheet-draft.d.ts.map +1 -0
  377. package/dist/types/list/index.d.ts +1 -1
  378. package/dist/types/list/index.d.ts.map +1 -1
  379. package/dist/types/list/list-defaults.d.ts.map +1 -1
  380. package/dist/types/list/list.d.ts +1 -1
  381. package/dist/types/list/list.d.ts.map +1 -1
  382. package/dist/types/list/list.types.d.ts +28 -0
  383. package/dist/types/list/list.types.d.ts.map +1 -1
  384. package/dist/types/list-item/index.d.ts +1 -1
  385. package/dist/types/list-item/index.d.ts.map +1 -1
  386. package/dist/types/list-item/list-item-parts.d.ts +7 -0
  387. package/dist/types/list-item/list-item-parts.d.ts.map +1 -1
  388. package/dist/types/list-item/list-item.d.ts.map +1 -1
  389. package/dist/types/menu/menu-parts.d.ts.map +1 -1
  390. package/dist/types/menu/menu.d.ts +1 -0
  391. package/dist/types/menu/menu.d.ts.map +1 -1
  392. package/dist/types/menu/menu.types.d.ts +6 -2
  393. package/dist/types/menu/menu.types.d.ts.map +1 -1
  394. package/dist/types/menu/use-menu-sheet.d.ts +7 -5
  395. package/dist/types/menu/use-menu-sheet.d.ts.map +1 -1
  396. package/dist/types/multi-select/index.d.ts +1 -1
  397. package/dist/types/multi-select/index.d.ts.map +1 -1
  398. package/dist/types/multi-select/multi-select-chips.d.ts.map +1 -1
  399. package/dist/types/multi-select/multi-select-defaults.d.ts.map +1 -1
  400. package/dist/types/multi-select/multi-select-items.d.ts.map +1 -1
  401. package/dist/types/multi-select/multi-select-parts.d.ts.map +1 -1
  402. package/dist/types/multi-select/multi-select-sheet-panel.d.ts +21 -0
  403. package/dist/types/multi-select/multi-select-sheet-panel.d.ts.map +1 -0
  404. package/dist/types/multi-select/multi-select.d.ts +5 -0
  405. package/dist/types/multi-select/multi-select.d.ts.map +1 -1
  406. package/dist/types/multi-select/multi-select.types.d.ts +7 -0
  407. package/dist/types/multi-select/multi-select.types.d.ts.map +1 -1
  408. package/dist/types/multi-select/use-multi-select-sheet.d.ts +16 -0
  409. package/dist/types/multi-select/use-multi-select-sheet.d.ts.map +1 -0
  410. package/dist/types/picker-panel/picker-layer.d.ts +1 -0
  411. package/dist/types/picker-panel/picker-layer.d.ts.map +1 -1
  412. package/dist/types/picker-panel/use-picker-layer.d.ts +2 -0
  413. package/dist/types/picker-panel/use-picker-layer.d.ts.map +1 -1
  414. package/dist/types/popover/index.d.ts +2 -2
  415. package/dist/types/popover/index.d.ts.map +1 -1
  416. package/dist/types/popover/popover-parts.d.ts +4 -2
  417. package/dist/types/popover/popover-parts.d.ts.map +1 -1
  418. package/dist/types/popover/popover.d.ts +1 -0
  419. package/dist/types/popover/popover.d.ts.map +1 -1
  420. package/dist/types/popover/popover.types.d.ts +10 -0
  421. package/dist/types/popover/popover.types.d.ts.map +1 -1
  422. package/dist/types/saved-views/saved-views-name-field.d.ts +11 -0
  423. package/dist/types/saved-views/saved-views-name-field.d.ts.map +1 -0
  424. package/dist/types/saved-views/saved-views-name-sheet.d.ts +23 -0
  425. package/dist/types/saved-views/saved-views-name-sheet.d.ts.map +1 -0
  426. package/dist/types/saved-views/saved-views.d.ts.map +1 -1
  427. package/dist/types/select/select-parts.d.ts.map +1 -1
  428. package/dist/types/select/select-sheet-panel.d.ts +21 -0
  429. package/dist/types/select/select-sheet-panel.d.ts.map +1 -0
  430. package/dist/types/select/select.d.ts +2 -1
  431. package/dist/types/select/select.d.ts.map +1 -1
  432. package/dist/types/select/select.types.d.ts +3 -3
  433. package/dist/types/select/use-select-sheet.d.ts +7 -3
  434. package/dist/types/select/use-select-sheet.d.ts.map +1 -1
  435. package/dist/types/sheet/use-sheet.d.ts +22 -0
  436. package/dist/types/sheet/use-sheet.d.ts.map +1 -0
  437. package/dist/types/table/table-filter.d.ts.map +1 -1
  438. package/dist/types/time-field/time-field.d.ts.map +1 -1
  439. package/dist/types/time-picker/index.d.ts +1 -1
  440. package/dist/types/time-picker/index.d.ts.map +1 -1
  441. package/dist/types/time-picker/time-picker-defaults.d.ts.map +1 -1
  442. package/dist/types/time-picker/time-picker.d.ts.map +1 -1
  443. package/dist/types/time-picker/time-picker.types.d.ts +5 -0
  444. package/dist/types/time-picker/time-picker.types.d.ts.map +1 -1
  445. package/dist/types/time-picker/use-time-picker.d.ts +1 -0
  446. package/dist/types/time-picker/use-time-picker.d.ts.map +1 -1
  447. package/dist/types/time-range-picker/index.d.ts +1 -1
  448. package/dist/types/time-range-picker/index.d.ts.map +1 -1
  449. package/dist/types/time-range-picker/time-range-picker-defaults.d.ts.map +1 -1
  450. package/dist/types/time-range-picker/time-range-picker.d.ts.map +1 -1
  451. package/dist/types/time-range-picker/time-range-picker.types.d.ts +5 -0
  452. package/dist/types/time-range-picker/time-range-picker.types.d.ts.map +1 -1
  453. package/dist/types/time-range-picker/use-time-range-picker.d.ts +1 -0
  454. package/dist/types/time-range-picker/use-time-range-picker.d.ts.map +1 -1
  455. package/dist/types/toast/toast-parts.d.ts.map +1 -1
  456. package/dist/types/toast/toast.d.ts.map +1 -1
  457. package/dist/types/toast/toast.types.d.ts +6 -2
  458. package/dist/types/toast/toast.types.d.ts.map +1 -1
  459. package/dist/types/toast/use-toast-keyboard-inset.d.ts +7 -0
  460. package/dist/types/toast/use-toast-keyboard-inset.d.ts.map +1 -0
  461. package/dist/types/toast/use-toast-reach.d.ts +28 -0
  462. package/dist/types/toast/use-toast-reach.d.ts.map +1 -0
  463. package/dist/types/toast/use-toast-swipe.d.ts +6 -0
  464. package/dist/types/toast/use-toast-swipe.d.ts.map +1 -0
  465. package/dist/{upload-BtD1nLHa.js → upload-BUNMpgbU.js} +2 -2
  466. package/dist/upload.js +1 -1
  467. package/dist/{use-date-picker-CwH791Jm.js → use-date-picker-CXtGSr7_.js} +5 -2
  468. package/dist/{use-picker-draft-BnLS4lDY.js → use-picker-draft-DBzDfMwd.js} +110 -109
  469. package/dist/use-sheet-DFy3znDR.js +44 -0
  470. package/package.json +13 -8
  471. package/dist/action-sheet-q1UXXruJ.js +0 -360
  472. package/dist/cascader-BbhADVGt.js +0 -1160
  473. package/dist/column-manager-Cc72e1j-.js +0 -586
  474. package/dist/date-field-CjlOWVRA.js +0 -299
  475. package/dist/date-picker-BoIHK8_U.js +0 -346
  476. package/dist/datetime-field-PSEOgzfN.js +0 -424
  477. package/dist/dialog-CjOBjHrL.js +0 -537
  478. package/dist/drawer-JP3p-QZB.js +0 -879
  479. package/dist/entity-picker-BWpuo-mp.js +0 -1292
  480. package/dist/filter-bar-nQH58RVl.js +0 -1358
  481. package/dist/menu-parts-DXs5YuUA.js +0 -932
  482. package/dist/multi-select-IpsZvoQ2.js +0 -1259
  483. package/dist/popover-DED1MTi-.js +0 -615
  484. package/dist/saved-views-D-CP7JIE.js +0 -459
  485. package/dist/select-Dbc3ng0M.js +0 -1124
  486. package/dist/time-field-DlZdMsNw.js +0 -366
  487. package/dist/toast-C3xLEFDE.js +0 -474
@@ -206,6 +206,7 @@
206
206
  "search-icon",
207
207
  "search-input",
208
208
  "list",
209
+ "footer",
209
210
  "chosen",
210
211
  "group",
211
212
  "group-label",
@@ -298,13 +299,13 @@
298
299
  "part": "grip",
299
300
  "element": "span",
300
301
  "required": false,
301
- "purpose": "The bar at the top of the sheet, aria-hidden. A pull down on it dismisses the sheet; Escape, the scrim and the platform’s way back are the other ways out."
302
+ "purpose": "The bar at the top of the sheet, aria-hidden. A mouse pulls the sheet by it; a touch moves the sheet anywhere on it, and a release past the threshold, Escape, the scrim and the platform’s way back close it."
302
303
  },
303
304
  {
304
305
  "part": "header",
305
306
  "element": "div",
306
307
  "required": false,
307
- "purpose": "The row above the list of the sheet, holding its title."
308
+ "purpose": "The row above the list of the sheet, holding its title and, under search, the search field."
308
309
  },
309
310
  {
310
311
  "part": "title",
@@ -336,11 +337,17 @@
336
337
  "required": false,
337
338
  "purpose": "The listbox inside the dialog when search is set. It scrolls under the fixed search row and defines the option columns in place of the surface."
338
339
  },
340
+ {
341
+ "part": "footer",
342
+ "element": "footer, drawn only in the sheet of a multiple select",
343
+ "required": false,
344
+ "purpose": "The foot of the sheet, holding a full-width Done that closes it with the choices as they were made."
345
+ },
339
346
  {
340
347
  "part": "chosen",
341
- "element": "div, aria-hidden, drawn while several values are chosen",
348
+ "element": "div, aria-hidden, drawn in a multiple list from the open on",
342
349
  "required": false,
343
- "purpose": "Every chosen value of a multiple select, as tags at the top of the list. The control holds one line, so it may show three tags and a count; this band shows them all, wraps, and scrolls after two rows. It is aria-hidden and holds no buttons: without search focus never reaches the list, and with search Tab leaves the control, so a remove button here would answer only the pointer. A value is removed from its option or from its tag in the control."
350
+ "purpose": "Every chosen value of a multiple select, as tags at the top of the list. The control holds one line, so it may show three tags and a count; this band shows them all on one line that scrolls sideways, drawn from the open on so a choice never moves the options. It is aria-hidden and holds no buttons: without search focus never reaches the list, and with search Tab leaves the control, so a remove button here would answer only the pointer. A value is removed from its option or from its tag in the control. The edge that has more chips fades them into the band, marked by data-scrollable."
344
351
  },
345
352
  {
346
353
  "part": "match",
@@ -673,7 +680,7 @@
673
680
  "type": "'popover' | 'auto'",
674
681
  "defaultValue": "popover",
675
682
  "appliesTo": "Select, SelectDefaultsProvider",
676
- "description": "auto draws the listbox in a bottom sheet under (max-width: 480px) and (pointer: coarse): modal, headed by the field’s label, every option at least --slotted-target-min tall, dismissed by a pull down on its grip or its body, its scrim, Escape and the platform’s way back, with focus given back to the trigger. A select with search keeps its anchored list, because the on-screen keyboard covers the bottom of the screen."
683
+ "description": "popover, the default, keeps the anchored list on every screen. auto draws the listbox in a bottom sheet under (max-width: 480px) and (pointer: coarse): modal, headed by the field’s label, every option at least --slotted-target-min tall, moved as every bottom sheet is and closed by a release past the threshold, its scrim, Escape and the platform’s way back, each by one slide down in the --slotted-sheet-* tokens, with focus given back to the trigger. A single select commits on a choice and draws no Close; a multiple one ends in a full-width Done. With search the sheet stands at full height, the field under the label, and the keyboard rises on a touch on the field. An application turns the sheet on for every select with SelectDefaultsProvider presentation=\"auto\"."
677
684
  },
678
685
  {
679
686
  "name": "fullWidth",
@@ -884,6 +891,7 @@
884
891
  ],
885
892
  "accessibility": [
886
893
  "The trigger is a button with role=\"combobox\", aria-haspopup=\"listbox\" and aria-expanded. The list is a listbox with an option for each row.",
894
+ "A press of the mouse or a key opens the list onto the selected option, or the first. A tap of a finger or a pen highlights no option, since the finger has chosen nothing yet; the chosen option keeps its check, and ArrowDown and ArrowUp start from the first and the last.",
887
895
  "DOM focus stays on the trigger. aria-activedescendant names the highlighted option, which also carries data-current; chosen options carry aria-selected and data-selected. The highlight is where the keyboard is; the selection is what was chosen.",
888
896
  "A disabled option carries aria-disabled, keeps its place in the list, and is skipped by every movement key, typeahead included.",
889
897
  "Inside a field, the trigger carries the field’s control id, so a press on the label focuses it without opening the list. The trigger also takes the label through aria-labelledby, because the name a label gives a button does not reliably reach a button with role=\"combobox\". Outside a field, give SelectTrigger an aria-label.",
@@ -895,6 +903,7 @@
895
903
  "tokens": [
896
904
  "--slotted-border-strong",
897
905
  "--slotted-border-subtle",
906
+ "--slotted-border-width-thick",
898
907
  "--slotted-border-width-thin",
899
908
  "--slotted-control-border-color",
900
909
  "--slotted-control-border-width",
@@ -928,16 +937,7 @@
928
937
  "--slotted-disabled-background",
929
938
  "--slotted-disabled-border",
930
939
  "--slotted-disabled-foreground",
931
- "--slotted-drawer-border-color",
932
- "--slotted-drawer-radius",
933
- "--slotted-drawer-resizer-line-color",
934
- "--slotted-drawer-scrim",
935
- "--slotted-drawer-scrim-backdrop-filter",
936
- "--slotted-drawer-slide-duration",
937
- "--slotted-drawer-slide-easing",
938
- "--slotted-drawer-slide-exit-duration",
939
- "--slotted-drawer-slide-exit-easing",
940
- "--slotted-drawer-surface",
940
+ "--slotted-duration-instant",
941
941
  "--slotted-duration-long",
942
942
  "--slotted-duration-medium",
943
943
  "--slotted-duration-short",
@@ -1005,11 +1005,25 @@
1005
1005
  "--slotted-select-surface",
1006
1006
  "--slotted-shadow-lg",
1007
1007
  "--slotted-shadow-md",
1008
+ "--slotted-sheet-border-color",
1009
+ "--slotted-sheet-exit-duration",
1010
+ "--slotted-sheet-exit-easing",
1011
+ "--slotted-sheet-grip-color",
1012
+ "--slotted-sheet-inline-size",
1013
+ "--slotted-sheet-radius",
1014
+ "--slotted-sheet-scrim",
1015
+ "--slotted-sheet-scrim-backdrop-filter",
1016
+ "--slotted-sheet-slide-duration",
1017
+ "--slotted-sheet-slide-easing",
1018
+ "--slotted-sheet-surface",
1008
1019
  "--slotted-space-1",
1009
1020
  "--slotted-space-11",
1021
+ "--slotted-space-12",
1010
1022
  "--slotted-space-2",
1011
1023
  "--slotted-space-3",
1024
+ "--slotted-space-4",
1012
1025
  "--slotted-space-5",
1026
+ "--slotted-space-7",
1013
1027
  "--slotted-surface-raised",
1014
1028
  "--slotted-surface-sunken",
1015
1029
  "--slotted-target-comfortable",
@@ -1225,6 +1239,14 @@
1225
1239
  "source": "import { Field, FieldLabel } from '@slotted/react/field';\nimport {\n Select,\n SelectContent,\n SelectItem,\n type SelectOption,\n SelectTrigger,\n SelectValue,\n} from '@slotted/react/select';\nimport { Stack } from '@slotted/react/stack';\n\nconst STATUSES: SelectOption[] = [\n { value: 'open', label: 'Open' },\n { value: 'on-hold', label: 'On hold' },\n { value: 'shipped', label: 'Shipped' },\n];\n\nconst CHANNELS: SelectOption[] = [\n { value: 'web', label: 'Web store' },\n { value: 'marketplace', label: 'Marketplace' },\n { value: 'wholesale', label: 'Wholesale' },\n { value: 'phone', label: 'Phone orders' },\n];\n\nconst WAREHOUSES: SelectOption[] = [\n { value: 'RNO', label: 'Reno, NV' },\n { value: 'CMH', label: 'Columbus, OH' },\n { value: 'SAV', label: 'Savannah, GA' },\n];\n\nexport default function SelectNarrow() {\n return (\n <Stack gap={4} style={{ inlineSize: '7rem' }}>\n <Field>\n <FieldLabel>Status</FieldLabel>\n <Select size=\"sm\" defaultValue=\"on-hold\" items={STATUSES}>\n <SelectTrigger>\n <SelectValue />\n </SelectTrigger>\n <SelectContent>\n {STATUSES.map((status) => (\n <SelectItem key={status.value} value={status.value}>\n {status.label}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n </Field>\n <Field>\n <FieldLabel>Channels</FieldLabel>\n <Select\n size=\"sm\"\n multiple\n defaultValue={['web', 'marketplace', 'wholesale']}\n items={CHANNELS}\n >\n <SelectTrigger>\n <SelectValue />\n </SelectTrigger>\n <SelectContent>\n {CHANNELS.map((channel) => (\n <SelectItem key={channel.value} value={channel.value}>\n {channel.label}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n </Field>\n <Field>\n <FieldLabel>Warehouse</FieldLabel>\n <Select size=\"sm\" width=\"content\" defaultValue=\"CMH\" items={WAREHOUSES}>\n <SelectTrigger>\n <SelectValue />\n </SelectTrigger>\n <SelectContent>\n {WAREHOUSES.map((warehouse) => (\n <SelectItem key={warehouse.value} value={warehouse.value}>\n {warehouse.label}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n </Field>\n </Stack>\n );\n}\n",
1226
1240
  "verdict": "example"
1227
1241
  },
1242
+ {
1243
+ "id": "phone-sheet",
1244
+ "title": "phone-sheet.tsx",
1245
+ "note": null,
1246
+ "language": "tsx",
1247
+ "source": "import { Field, FieldLabel } from '@slotted/react/field';\nimport {\n Select,\n SelectContent,\n SelectDefaultsProvider,\n SelectItem,\n type SelectOption,\n SelectTrigger,\n SelectValue,\n} from '@slotted/react/select';\n\nconst WAREHOUSES: SelectOption[] = [\n { value: 'atl', label: 'Atlanta, GA' },\n { value: 'chi', label: 'Chicago, IL' },\n { value: 'dal', label: 'Dallas, TX' },\n { value: 'den', label: 'Denver, CO' },\n { value: 'lax', label: 'Los Angeles, CA' },\n { value: 'mia', label: 'Miami, FL' },\n { value: 'nyc', label: 'New York, NY' },\n { value: 'phx', label: 'Phoenix, AZ' },\n { value: 'sea', label: 'Seattle, WA' },\n];\n\nexport default function SelectPhoneSheet() {\n return (\n <SelectDefaultsProvider presentation=\"auto\">\n <Field>\n <FieldLabel>Ship from</FieldLabel>\n <Select defaultValue=\"chi\" items={WAREHOUSES}>\n <SelectTrigger>\n <SelectValue placeholder=\"Choose a warehouse\" />\n </SelectTrigger>\n <SelectContent>\n {WAREHOUSES.map((warehouse) => (\n <SelectItem key={warehouse.value} value={warehouse.value}>\n {warehouse.label}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n </Field>\n </SelectDefaultsProvider>\n );\n}\n",
1248
+ "verdict": "example"
1249
+ },
1228
1250
  {
1229
1251
  "id": "status-filter",
1230
1252
  "title": "status-filter.tsx",
@@ -73,7 +73,8 @@ export default function SelectBasic() {
73
73
  | `search-icon` | span, aria-hidden | no |
74
74
  | `search-input` | input with role="combobox" | no |
75
75
  | `list` | div with role="listbox", drawn only under search | no |
76
- | `chosen` | div, aria-hidden, drawn while several values are chosen | no |
76
+ | `footer` | footer, drawn only in the sheet of a multiple select | no |
77
+ | `chosen` | div, aria-hidden, drawn in a multiple list from the open on | no |
77
78
  | `match` | mark, the match part of the highlight family, whose root sits inside label | no |
78
79
  | `group` | div with role="group" | no |
79
80
  | `group-label` | div | no |
@@ -127,7 +128,7 @@ export default function SelectBasic() {
127
128
  | `shift` | `boolean` | true | Select | Whether the list may slide along its edge to stay in view. |
128
129
  | `hideWhenDetached` | `boolean` | true | Select | Whether the list hides while its control is scrolled out of view. |
129
130
  | `portal` | `boolean` | true | Select | Whether the list renders at the end of the document instead of inside the control. |
130
- | `presentation` | `'popover' \| 'auto'` | popover | Select, SelectDefaultsProvider | auto draws the listbox in a bottom sheet under (max-width: 480px) and (pointer: coarse): modal, headed by the field’s label, every option at least --slotted-target-min tall, dismissed by a pull down on its grip or its body, its scrim, Escape and the platform’s way back, with focus given back to the trigger. A select with search keeps its anchored list, because the on-screen keyboard covers the bottom of the screen. |
131
+ | `presentation` | `'popover' \| 'auto'` | popover | Select, SelectDefaultsProvider | popover, the default, keeps the anchored list on every screen. auto draws the listbox in a bottom sheet under (max-width: 480px) and (pointer: coarse): modal, headed by the field’s label, every option at least --slotted-target-min tall, moved as every bottom sheet is and closed by a release past the threshold, its scrim, Escape and the platform’s way back, each by one slide down in the --slotted-sheet-* tokens, with focus given back to the trigger. A single select commits on a choice and draws no Close; a multiple one ends in a full-width Done. With search the sheet stands at full height, the field under the label, and the keyboard rises on a touch on the field. An application turns the sheet on for every select with SelectDefaultsProvider presentation="auto". |
131
132
  | `fullWidth` | `boolean` | true | Select | Whether the control fills its container. false sizes it to its widest value. |
132
133
  | `disabled` | `boolean` | false | Select | Disables the control and takes it out of the tab order. When unset, the select takes the state of its field. |
133
134
  | `readOnly` | `boolean` | false | Select | Keeps the value visible and focusable and never opens the list. When unset, the select takes the state of its field. |
@@ -198,6 +199,7 @@ export default function SelectBasic() {
198
199
  ## Rules
199
200
 
200
201
  - The trigger is a button with role="combobox", aria-haspopup="listbox" and aria-expanded. The list is a listbox with an option for each row.
202
+ - A press of the mouse or a key opens the list onto the selected option, or the first. A tap of a finger or a pen highlights no option, since the finger has chosen nothing yet; the chosen option keeps its check, and ArrowDown and ArrowUp start from the first and the last.
201
203
  - DOM focus stays on the trigger. aria-activedescendant names the highlighted option, which also carries data-current; chosen options carry aria-selected and data-selected. The highlight is where the keyboard is; the selection is what was chosen.
202
204
  - A disabled option carries aria-disabled, keeps its place in the list, and is skipped by every movement key, typeahead included.
203
205
  - Inside a field, the trigger carries the field’s control id, so a press on the label focuses it without opening the list. The trigger also takes the label through aria-labelledby, because the name a label gives a button does not reliably reach a button with role="combobox". Outside a field, give SelectTrigger an aria-label.
@@ -206,7 +208,7 @@ export default function SelectBasic() {
206
208
 
207
209
  ## Tokens
208
210
 
209
- `--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-focus-ring-offset`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-inner-size-lg`, `--slotted-control-inner-size-md`, `--slotted-control-inner-size-sm`, `--slotted-control-invalid-edge-width`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-shadow`, `--slotted-control-shadow-focus-geometry`, `--slotted-control-surface`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-drawer-border-color`, `--slotted-drawer-radius`, `--slotted-drawer-resizer-line-color`, `--slotted-drawer-scrim`, `--slotted-drawer-scrim-backdrop-filter`, `--slotted-drawer-slide-duration`, `--slotted-drawer-slide-easing`, `--slotted-drawer-slide-exit-duration`, `--slotted-drawer-slide-exit-easing`, `--slotted-drawer-surface`, `--slotted-duration-long`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-md`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-overlay-max-block-size`, `--slotted-radius-lg`, `--slotted-radius-none`, `--slotted-scrim`, `--slotted-select-action-active-background`, `--slotted-select-action-color`, `--slotted-select-action-hover-background`, `--slotted-select-action-size`, `--slotted-select-arrow-color`, `--slotted-select-background`, `--slotted-select-border-color`, `--slotted-select-color`, `--slotted-select-content-backdrop-filter`, `--slotted-select-content-border-color`, `--slotted-select-content-padding-block`, `--slotted-select-content-padding-inline`, `--slotted-select-content-radius`, `--slotted-select-content-shadow`, `--slotted-select-content-text`, `--slotted-select-content-text-muted`, `--slotted-select-disabled-background`, `--slotted-select-disabled-border-color`, `--slotted-select-disabled-color`, `--slotted-select-group-label-height`, `--slotted-select-highlight`, `--slotted-select-highlight-active`, `--slotted-select-highlight-ring`, `--slotted-select-hover-border-color`, `--slotted-select-icon-size-min`, `--slotted-select-invalid-border-color`, `--slotted-select-invalid-edge-width`, `--slotted-select-invalid-focus-ring-color`, `--slotted-select-item-radius`, `--slotted-select-measure`, `--slotted-select-open-border-color`, `--slotted-select-placeholder-color`, `--slotted-select-plain-hover-background`, `--slotted-select-radius`, `--slotted-select-readonly-background`, `--slotted-select-search-icon-color`, `--slotted-select-selected-color`, `--slotted-select-separator-color`, `--slotted-select-shadow`, `--slotted-select-subtle-background`, `--slotted-select-subtle-border-color`, `--slotted-select-subtle-hover-background`, `--slotted-select-surface`, `--slotted-shadow-lg`, `--slotted-shadow-md`, `--slotted-space-1`, `--slotted-space-11`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-5`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-popover`
211
+ `--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thick`, `--slotted-border-width-thin`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-focus-ring-offset`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-inner-size-lg`, `--slotted-control-inner-size-md`, `--slotted-control-inner-size-sm`, `--slotted-control-invalid-edge-width`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-shadow`, `--slotted-control-shadow-focus-geometry`, `--slotted-control-surface`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-duration-instant`, `--slotted-duration-long`, `--slotted-duration-medium`, `--slotted-duration-short`, `--slotted-easing-enter`, `--slotted-easing-exit`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-family-heading`, `--slotted-font-family-sans`, `--slotted-font-size-md`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-semibold`, `--slotted-line-height-md`, `--slotted-line-height-sm`, `--slotted-overlay-max-block-size`, `--slotted-radius-lg`, `--slotted-radius-none`, `--slotted-scrim`, `--slotted-select-action-active-background`, `--slotted-select-action-color`, `--slotted-select-action-hover-background`, `--slotted-select-action-size`, `--slotted-select-arrow-color`, `--slotted-select-background`, `--slotted-select-border-color`, `--slotted-select-color`, `--slotted-select-content-backdrop-filter`, `--slotted-select-content-border-color`, `--slotted-select-content-padding-block`, `--slotted-select-content-padding-inline`, `--slotted-select-content-radius`, `--slotted-select-content-shadow`, `--slotted-select-content-text`, `--slotted-select-content-text-muted`, `--slotted-select-disabled-background`, `--slotted-select-disabled-border-color`, `--slotted-select-disabled-color`, `--slotted-select-group-label-height`, `--slotted-select-highlight`, `--slotted-select-highlight-active`, `--slotted-select-highlight-ring`, `--slotted-select-hover-border-color`, `--slotted-select-icon-size-min`, `--slotted-select-invalid-border-color`, `--slotted-select-invalid-edge-width`, `--slotted-select-invalid-focus-ring-color`, `--slotted-select-item-radius`, `--slotted-select-measure`, `--slotted-select-open-border-color`, `--slotted-select-placeholder-color`, `--slotted-select-plain-hover-background`, `--slotted-select-radius`, `--slotted-select-readonly-background`, `--slotted-select-search-icon-color`, `--slotted-select-selected-color`, `--slotted-select-separator-color`, `--slotted-select-shadow`, `--slotted-select-subtle-background`, `--slotted-select-subtle-border-color`, `--slotted-select-subtle-hover-background`, `--slotted-select-surface`, `--slotted-shadow-lg`, `--slotted-shadow-md`, `--slotted-sheet-border-color`, `--slotted-sheet-exit-duration`, `--slotted-sheet-exit-easing`, `--slotted-sheet-grip-color`, `--slotted-sheet-inline-size`, `--slotted-sheet-radius`, `--slotted-sheet-scrim`, `--slotted-sheet-scrim-backdrop-filter`, `--slotted-sheet-slide-duration`, `--slotted-sheet-slide-easing`, `--slotted-sheet-surface`, `--slotted-space-1`, `--slotted-space-11`, `--slotted-space-12`, `--slotted-space-2`, `--slotted-space-3`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-7`, `--slotted-surface-raised`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-border`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-danger-border`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-popover`
210
212
 
211
213
  ## Examples
212
214
 
@@ -322,7 +322,7 @@
322
322
  "part": "filter-actions",
323
323
  "element": "div",
324
324
  "required": false,
325
- "purpose": "The footer: Clear at the leading edge and Apply at the trailing one."
325
+ "purpose": "Clear at the leading edge and Apply at the trailing one, inside the popover's own footer."
326
326
  },
327
327
  {
328
328
  "part": "selection",
@@ -863,6 +863,7 @@
863
863
  "--slotted-space-2",
864
864
  "--slotted-space-4",
865
865
  "--slotted-space-5",
866
+ "--slotted-space-7",
866
867
  "--slotted-space-9",
867
868
  "--slotted-surface",
868
869
  "--slotted-table-border-color",
@@ -277,7 +277,7 @@ export default function TableBasic() {
277
277
 
278
278
  ## Tokens
279
279
 
280
- `--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-md`, `--slotted-control-gap-md`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-md`, `--slotted-control-padding-inline-md`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-foreground`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-font-weight-semibold`, `--slotted-ground`, `--slotted-line-height-md`, `--slotted-radius-md`, `--slotted-radius-sm`, `--slotted-shadow-xs`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-9`, `--slotted-surface`, `--slotted-table-border-color`, `--slotted-table-border-color-strong`, `--slotted-table-border-width`, `--slotted-table-branch-size`, `--slotted-table-caption-surface`, `--slotted-table-cell-padding-block`, `--slotted-table-cell-padding-inline`, `--slotted-table-color`, `--slotted-table-color-muted`, `--slotted-table-column-actions-size`, `--slotted-table-control-radius`, `--slotted-table-edge-inset`, `--slotted-table-font-family`, `--slotted-table-font-size`, `--slotted-table-gap`, `--slotted-table-group-color`, `--slotted-table-group-sticky-offset`, `--slotted-table-group-surface`, `--slotted-table-guide-color`, `--slotted-table-header-backdrop-filter`, `--slotted-table-header-surface`, `--slotted-table-header-surface-hover`, `--slotted-table-icon-size`, `--slotted-table-mark-child-size`, `--slotted-table-mark-size`, `--slotted-table-radius`, `--slotted-table-row-color-selected`, `--slotted-table-row-min-block-size`, `--slotted-table-row-surface-current`, `--slotted-table-row-surface-hover`, `--slotted-table-row-surface-selected`, `--slotted-table-row-surface-selected-hover`, `--slotted-table-row-surface-stripe`, `--slotted-table-selection-size`, `--slotted-table-shadow`, `--slotted-table-sticky-inset`, `--slotted-table-sticky-offset`, `--slotted-table-sticky-offset-end`, `--slotted-table-sticky-surface`, `--slotted-table-surface`, `--slotted-table-tree-indent`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-sticky`
280
+ `--slotted-border-strong`, `--slotted-border-subtle`, `--slotted-border-width-thin`, `--slotted-control-font-family`, `--slotted-control-font-size-md`, `--slotted-control-gap-md`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-md`, `--slotted-control-padding-inline-md`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-foreground`, `--slotted-duration-short`, `--slotted-easing-standard`, `--slotted-focus-ring-color`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-font-size-xs`, `--slotted-font-weight-medium`, `--slotted-font-weight-regular`, `--slotted-font-weight-semibold`, `--slotted-ground`, `--slotted-line-height-md`, `--slotted-radius-md`, `--slotted-radius-sm`, `--slotted-shadow-xs`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-space-4`, `--slotted-space-5`, `--slotted-space-7`, `--slotted-space-9`, `--slotted-surface`, `--slotted-table-border-color`, `--slotted-table-border-color-strong`, `--slotted-table-border-width`, `--slotted-table-branch-size`, `--slotted-table-caption-surface`, `--slotted-table-cell-padding-block`, `--slotted-table-cell-padding-inline`, `--slotted-table-color`, `--slotted-table-color-muted`, `--slotted-table-column-actions-size`, `--slotted-table-control-radius`, `--slotted-table-edge-inset`, `--slotted-table-font-family`, `--slotted-table-font-size`, `--slotted-table-gap`, `--slotted-table-group-color`, `--slotted-table-group-sticky-offset`, `--slotted-table-group-surface`, `--slotted-table-guide-color`, `--slotted-table-header-backdrop-filter`, `--slotted-table-header-surface`, `--slotted-table-header-surface-hover`, `--slotted-table-icon-size`, `--slotted-table-mark-child-size`, `--slotted-table-mark-size`, `--slotted-table-radius`, `--slotted-table-row-color-selected`, `--slotted-table-row-min-block-size`, `--slotted-table-row-surface-current`, `--slotted-table-row-surface-hover`, `--slotted-table-row-surface-selected`, `--slotted-table-row-surface-selected-hover`, `--slotted-table-row-surface-stripe`, `--slotted-table-selection-size`, `--slotted-table-shadow`, `--slotted-table-sticky-inset`, `--slotted-table-sticky-offset`, `--slotted-table-sticky-offset-end`, `--slotted-table-sticky-surface`, `--slotted-table-surface`, `--slotted-table-tree-indent`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-tone-accent-subtle-hover`, `--slotted-tone-accent-surface`, `--slotted-tone-accent-text`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`, `--slotted-z-index-sticky`
281
281
 
282
282
  ## Examples
283
283
 
@@ -46,6 +46,7 @@
46
46
  "size": "md",
47
47
  "variant": "outline",
48
48
  "placement": "bottom-start",
49
+ "presentation": "auto",
49
50
  "confirm": true,
50
51
  "step": 900,
51
52
  "granularity": "minute",
@@ -241,6 +242,13 @@
241
242
  "appliesTo": "TimePicker",
242
243
  "description": "Where the panel opens when there is room for it. The positioner turns it when there is not."
243
244
  },
245
+ {
246
+ "name": "presentation",
247
+ "type": "'auto' | 'popover'",
248
+ "defaultValue": "auto",
249
+ "appliesTo": "TimePicker",
250
+ "description": "auto, the default, draws the panel in a modal bottom sheet under (max-width: 480px) and (pointer: coarse), headed by the field’s label and taking the screen’s width. popover keeps the anchored panel on every screen. The defaults provider sets it once for the application."
251
+ },
244
252
  {
245
253
  "name": "size",
246
254
  "type": "'sm' | 'md' | 'lg'",
@@ -311,7 +319,7 @@
311
319
  "type": "component",
312
320
  "defaultValue": "—",
313
321
  "appliesTo": "application",
314
- "description": "Sets confirm, granularity, hourCycle, placement, size, step, timeZone and variant once."
322
+ "description": "Sets confirm, granularity, hourCycle, placement, presentation, size, step, timeZone and variant once."
315
323
  },
316
324
  {
317
325
  "name": "renderSlot",
@@ -59,6 +59,7 @@ export default function TimePickerBasic() {
59
59
  | `open` | `boolean` | — | TimePicker | Whether the panel is showing. When it is set, the consumer owns the open state. |
60
60
  | `defaultOpen` | `boolean` | false | TimePicker | Whether the panel starts open. Read once. |
61
61
  | `placement` | `'bottom-start' \| 'bottom' \| 'bottom-end' \| 'top-start' \| 'top' \| 'top-end'` | bottom-start | TimePicker | Where the panel opens when there is room for it. The positioner turns it when there is not. |
62
+ | `presentation` | `'auto' \| 'popover'` | auto | TimePicker | auto, the default, draws the panel in a modal bottom sheet under (max-width: 480px) and (pointer: coarse), headed by the field’s label and taking the screen’s width. popover keeps the anchored panel on every screen. The defaults provider sets it once for the application. |
62
63
  | `size` | `'sm' \| 'md' \| 'lg'` | md | TimePicker | The height of the control. Unset, it follows the surrounding field, then the defaults, then md. |
63
64
  | `variant` | `'outline' \| 'subtle' \| 'plain'` | outline | TimePicker | How the control draws its frame. |
64
65
  | `locale` | `string` | the language in force | TimePicker | A BCP 47 tag. Writes the field, the panel and the name of the trigger. Unset, the language in force decides. |
@@ -68,7 +69,7 @@ export default function TimePickerBasic() {
68
69
  | `required` | `boolean` | — | TimePicker | Marks the time as needed by the form. |
69
70
  | `clearable` | `boolean` | false | TimePicker | Draws a clear button on the control and in the panel. Neither is drawn when required is set. |
70
71
  | `messages` | `Partial<TimePickerMessages>` | — | TimePicker | Replaces words of the language in force: the two names of the trigger, and what the panel says of a refused time. |
71
- | `TimePickerDefaultsProvider` | `component` | — | application | Sets confirm, granularity, hourCycle, placement, size, step, timeZone and variant once. |
72
+ | `TimePickerDefaultsProvider` | `component` | — | application | Sets confirm, granularity, hourCycle, placement, presentation, size, step, timeZone and variant once. |
72
73
  | `renderSlot` | `(state: ClockSlotState) => ReactNode` | — | TimePicker | What one whole time of options draws inside its button. |
73
74
  | `footer` | `ReactNode` | the step | TimePicker | What the footer says when nothing is wrong. |
74
75
  | `render` | `(props: TimePickerRootProps) => ReactNode` | — | TimePicker | Substitutes the element the root renders. |
@@ -50,6 +50,7 @@
50
50
  "size": "md",
51
51
  "variant": "outline",
52
52
  "placement": "bottom-start",
53
+ "presentation": "auto",
53
54
  "confirm": true,
54
55
  "step": 900,
55
56
  "granularity": "minute",
@@ -317,6 +318,13 @@
317
318
  "appliesTo": "TimeRangePicker",
318
319
  "description": "The side and alignment where the panel opens, before the positioner has read the room."
319
320
  },
321
+ {
322
+ "name": "presentation",
323
+ "type": "'auto' | 'popover'",
324
+ "defaultValue": "auto",
325
+ "appliesTo": "TimeRangePicker",
326
+ "description": "auto, the default, draws the panel in a modal bottom sheet under (max-width: 480px) and (pointer: coarse), headed by the field’s label and taking the screen’s width. popover keeps the anchored panel on every screen. The defaults provider sets it once for the application."
327
+ },
320
328
  {
321
329
  "name": "size",
322
330
  "type": "'sm' | 'md' | 'lg'",
@@ -387,7 +395,7 @@
387
395
  "type": "component",
388
396
  "defaultValue": "—",
389
397
  "appliesTo": "application",
390
- "description": "Sets confirm, granularity, hourCycle, lengthLabel, placement, size, step, timeZone and variant once, for every picker under it. A prop on a picker wins."
398
+ "description": "Sets confirm, granularity, hourCycle, lengthLabel, placement, presentation, size, step, timeZone and variant once, for every picker under it. A prop on a picker wins."
391
399
  },
392
400
  {
393
401
  "name": "footer",
@@ -450,6 +458,7 @@
450
458
  "--slotted-border-subtle",
451
459
  "--slotted-control-border-color",
452
460
  "--slotted-control-border-width",
461
+ "--slotted-control-focus-ring-offset",
453
462
  "--slotted-control-font-family",
454
463
  "--slotted-control-font-size-lg",
455
464
  "--slotted-control-font-size-md",
@@ -73,6 +73,7 @@ export default function TimeRangePickerBasic() {
73
73
  | `open` | `boolean` | — | TimeRangePicker | Whether the panel is showing. When set, the consumer owns it. |
74
74
  | `defaultOpen` | `boolean` | false | TimeRangePicker | Whether the panel starts open while open is not set. Read once. |
75
75
  | `placement` | `'bottom-start' \| 'bottom' \| 'bottom-end' \| 'top-start' \| 'top' \| 'top-end'` | bottom-start | TimeRangePicker | The side and alignment where the panel opens, before the positioner has read the room. |
76
+ | `presentation` | `'auto' \| 'popover'` | auto | TimeRangePicker | auto, the default, draws the panel in a modal bottom sheet under (max-width: 480px) and (pointer: coarse), headed by the field’s label and taking the screen’s width. popover keeps the anchored panel on every screen. The defaults provider sets it once for the application. |
76
77
  | `size` | `'sm' \| 'md' \| 'lg'` | md | TimeRangePicker | The height of the control. Unset, the enclosing field decides, then the defaults, then md. |
77
78
  | `variant` | `'outline' \| 'subtle' \| 'plain'` | outline | TimeRangePicker | How the control draws its frame: outline, subtle or plain. |
78
79
  | `locale` | `string` | the language in force | TimeRangePicker | BCP 47 tag. Writes the times, the panel and the trigger name. Unset, the language in force decides. |
@@ -82,7 +83,7 @@ export default function TimeRangePickerBasic() {
82
83
  | `required` | `boolean` | — | TimeRangePicker | Requires a value in a form. Removes the clear button. |
83
84
  | `clearable` | `boolean` | false | TimeRangePicker | Draws one clear button on the frame and one in the panel, which empty both ends. Not drawn while required is set. |
84
85
  | `messages` | `Partial<TimeRangePickerMessages>` | — | TimeRangePicker | Words laid over the language in force, key by key: the trigger names, the two ends, the limits and the reason a run is refused. |
85
- | `TimeRangePickerDefaultsProvider` | `component` | — | application | Sets confirm, granularity, hourCycle, lengthLabel, placement, size, step, timeZone and variant once, for every picker under it. A prop on a picker wins. |
86
+ | `TimeRangePickerDefaultsProvider` | `component` | — | application | Sets confirm, granularity, hourCycle, lengthLabel, placement, presentation, size, step, timeZone and variant once, for every picker under it. A prop on a picker wins. |
86
87
  | `footer` | `ReactNode` | the limits, or the step | TimeRangePicker | The text of the panel footer when nothing is wrong. Unset, the footer shows the limits, or the step. |
87
88
  | `renderSlot` | `(state: ClockSlotState) => ReactNode` | the time | TimeRangePicker | Draws one whole time of options inside its clock button. |
88
89
  | `render` | `(props: TimeRangePickerRootProps) => ReactNode` | — | TimeRangePicker | Replaces the element the root renders. |
@@ -120,7 +121,7 @@ export default function TimeRangePickerBasic() {
120
121
 
121
122
  ## Tokens
122
123
 
123
- `--slotted-border-subtle`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-invalid-edge-width`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-shadow`, `--slotted-control-shadow-focus-geometry`, `--slotted-control-surface`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-radius-none`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-time-range-picker-action-active-background`, `--slotted-time-range-picker-action-color`, `--slotted-time-range-picker-action-hover-background`, `--slotted-time-range-picker-action-size`, `--slotted-time-range-picker-background`, `--slotted-time-range-picker-border-color`, `--slotted-time-range-picker-color`, `--slotted-time-range-picker-disabled-background`, `--slotted-time-range-picker-disabled-border-color`, `--slotted-time-range-picker-disabled-color`, `--slotted-time-range-picker-hover-border-color`, `--slotted-time-range-picker-invalid-border-color`, `--slotted-time-range-picker-invalid-edge-width`, `--slotted-time-range-picker-invalid-focus-ring-color`, `--slotted-time-range-picker-placeholder-color`, `--slotted-time-range-picker-plain-hover-background`, `--slotted-time-range-picker-radius`, `--slotted-time-range-picker-readonly-background`, `--slotted-time-range-picker-shadow`, `--slotted-time-range-picker-subtle-background`, `--slotted-time-range-picker-subtle-border-color`, `--slotted-time-range-picker-subtle-hover-background`, `--slotted-tone-accent-border`, `--slotted-tone-danger-border`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`
124
+ `--slotted-border-subtle`, `--slotted-control-border-color`, `--slotted-control-border-width`, `--slotted-control-focus-ring-offset`, `--slotted-control-font-family`, `--slotted-control-font-size-lg`, `--slotted-control-font-size-md`, `--slotted-control-font-size-sm`, `--slotted-control-gap-lg`, `--slotted-control-gap-md`, `--slotted-control-gap-sm`, `--slotted-control-height-lg`, `--slotted-control-height-md`, `--slotted-control-height-sm`, `--slotted-control-icon-size-lg`, `--slotted-control-icon-size-md`, `--slotted-control-icon-size-sm`, `--slotted-control-invalid-edge-width`, `--slotted-control-padding-inline-lg`, `--slotted-control-padding-inline-md`, `--slotted-control-padding-inline-sm`, `--slotted-control-radius`, `--slotted-control-shadow`, `--slotted-control-shadow-focus-geometry`, `--slotted-control-surface`, `--slotted-control-transition-duration`, `--slotted-control-transition-easing`, `--slotted-disabled-background`, `--slotted-disabled-border`, `--slotted-disabled-foreground`, `--slotted-focus-ring-color`, `--slotted-focus-ring-color-invalid`, `--slotted-focus-ring-offset`, `--slotted-focus-ring-width`, `--slotted-radius-none`, `--slotted-space-1`, `--slotted-space-2`, `--slotted-surface-sunken`, `--slotted-target-comfortable`, `--slotted-target-min`, `--slotted-text`, `--slotted-text-muted`, `--slotted-time-range-picker-action-active-background`, `--slotted-time-range-picker-action-color`, `--slotted-time-range-picker-action-hover-background`, `--slotted-time-range-picker-action-size`, `--slotted-time-range-picker-background`, `--slotted-time-range-picker-border-color`, `--slotted-time-range-picker-color`, `--slotted-time-range-picker-disabled-background`, `--slotted-time-range-picker-disabled-border-color`, `--slotted-time-range-picker-disabled-color`, `--slotted-time-range-picker-hover-border-color`, `--slotted-time-range-picker-invalid-border-color`, `--slotted-time-range-picker-invalid-edge-width`, `--slotted-time-range-picker-invalid-focus-ring-color`, `--slotted-time-range-picker-placeholder-color`, `--slotted-time-range-picker-plain-hover-background`, `--slotted-time-range-picker-radius`, `--slotted-time-range-picker-readonly-background`, `--slotted-time-range-picker-shadow`, `--slotted-time-range-picker-subtle-background`, `--slotted-time-range-picker-subtle-border-color`, `--slotted-time-range-picker-subtle-hover-background`, `--slotted-tone-accent-border`, `--slotted-tone-danger-border`, `--slotted-tone-secondary-subtle-active`, `--slotted-tone-secondary-subtle-hover`
124
125
 
125
126
  ## Examples
126
127
 
@@ -306,7 +306,7 @@ export default function ToastQueue() {
306
306
 
307
307
  ### A pile that opens
308
308
 
309
- Four messages at full height fill a phone. stack puts them one behind another at the edge the placement names and opens the pile when the pointer is over it or the keyboard is inside — the same two conditions that stop the clock, because both mean the reader is reading.
309
+ Three messages at full height fill a phone. stack puts them one behind another at the edge the placement names and opens the pile when the pointer is over it or the keyboard is inside — the same two conditions that stop the clock, because both mean the reader is reading. auto, the default, is the pile on a phone and the column elsewhere; a finger opens it with a tap.
310
310
 
311
311
  Example
312
312
 
@@ -342,6 +342,62 @@ export default function ToastStacking() {
342
342
  }
343
343
  ```
344
344
 
345
+ ### On a phone
346
+
347
+ Under 481 pixels on a finger the region spans the screen at the block edge the placement names, clear of the notch, the gesture bar and the virtual keyboard. A message follows the finger on one axis, leaves by either side or toward its edge, and goes on off the screen at the speed it was thrown; one that was not thrown far or fast enough springs back. A finger on the region holds the clock.
348
+
349
+ Example
350
+
351
+ ```tsx
352
+ import { Button } from '@slotted/react/button';
353
+ import { Field, FieldLabel } from '@slotted/react/field';
354
+ import { Inline } from '@slotted/react/inline';
355
+ import { Stack } from '@slotted/react/stack';
356
+ import { TextField } from '@slotted/react/text-field';
357
+ import { createToaster, ToastRegion } from '@slotted/react/toast';
358
+
359
+ const SHIPMENTS = ['SH-2201', 'SH-2202', 'SH-2203'];
360
+ /* A queue for this example. The shared `toast` serves the whole application. */
361
+ const toaster = createToaster();
362
+
363
+ export default function ToastPhone() {
364
+ return (
365
+ <>
366
+ <ToastRegion toaster={toaster} placement="bottom" />
367
+ <Stack gap={3}>
368
+ <Field>
369
+ <FieldLabel>Delivery note</FieldLabel>
370
+ <TextField defaultValue="Leave at dock 4 before noon" />
371
+ </Field>
372
+ <Inline gap={2}>
373
+ <Button
374
+ onClick={() =>
375
+ toaster.show({
376
+ title: 'Note saved',
377
+ description: 'The driver sees it on the next stop.',
378
+ tone: 'success',
379
+ })
380
+ }
381
+ >
382
+ Save the note
383
+ </Button>
384
+ <Button
385
+ variant="outline"
386
+ onClick={() =>
387
+ SHIPMENTS.forEach((shipment) =>
388
+ toaster.show({ title: `${shipment} received`, tone: 'success', duration: 0 }),
389
+ )
390
+ }
391
+ >
392
+ Receive three shipments
393
+ </Button>
394
+ </Inline>
395
+ </Stack>
396
+ </>
397
+ );
398
+ }
399
+ ```
400
+
345
401
  ### The ways a message leaves
346
402
 
347
403
  Four, and each carries its own reason: the close control says dismiss, Escape inside the message says escape, a swipe toward the edge says pointer, and the timer says timeout. A page that has to tell them apart reads the reason rather than guessing.
@@ -21,6 +21,7 @@
21
21
  "inline"
22
22
  ],
23
23
  "stacking": [
24
+ "auto",
24
25
  "list",
25
26
  "stack"
26
27
  ],
@@ -68,7 +69,7 @@
68
69
  "defaults": {
69
70
  "placement": "bottom-end",
70
71
  "attach": "portal",
71
- "stacking": "list",
72
+ "stacking": "auto",
72
73
  "tone": "accent",
73
74
  "variant": "raised",
74
75
  "priority": "polite",
@@ -198,10 +199,10 @@
198
199
  },
199
200
  {
200
201
  "name": "stacking",
201
- "type": "'list' | 'stack'",
202
- "defaultValue": "list",
202
+ "type": "'auto' | 'list' | 'stack'",
203
+ "defaultValue": "auto",
203
204
  "appliesTo": "ToastRegion",
204
- "description": "How the messages are arranged. list is a column at their own height; stack is a pile that opens while the pointer is over it or focus is inside it."
205
+ "description": "How the messages are arranged. list is a column at their own height; stack is a pile that opens while the pointer is over it or focus is inside it; auto is the pile on a phone and the column elsewhere."
205
206
  },
206
207
  {
207
208
  "name": "limit",
@@ -222,7 +223,7 @@
222
223
  "type": "boolean",
223
224
  "defaultValue": "true",
224
225
  "appliesTo": "ToastRegion",
225
- "description": "Whether a message can be dragged toward the edge of the placement to dismiss it. A drag that starts on a control is not a swipe."
226
+ "description": "Whether a message can be swiped off the edge of the placement: past 48 pixels, or flicked from any distance. On a phone either side is an edge. A drag that starts on a control is not a swipe."
226
227
  },
227
228
  {
228
229
  "name": "pauseOnHover",
@@ -599,11 +600,19 @@
599
600
  {
600
601
  "id": "stacking",
601
602
  "title": "A pile that opens",
602
- "note": "Four messages at full height fill a phone. stack puts them one behind another at the edge the placement names and opens the pile when the pointer is over it or the keyboard is inside — the same two conditions that stop the clock, because both mean the reader is reading.",
603
+ "note": "Three messages at full height fill a phone. stack puts them one behind another at the edge the placement names and opens the pile when the pointer is over it or the keyboard is inside — the same two conditions that stop the clock, because both mean the reader is reading. auto, the default, is the pile on a phone and the column elsewhere; a finger opens it with a tap.",
603
604
  "language": "tsx",
604
605
  "source": "import { Button } from '@slotted/react/button';\nimport { Inline } from '@slotted/react/inline';\nimport { createToaster, ToastRegion } from '@slotted/react/toast';\n\nconst SHIPMENTS = ['SH-2201', 'SH-2202', 'SH-2203', 'SH-2204'];\n/* A queue for this example. The shared `toast` serves the whole application. */\nconst toaster = createToaster();\n\nexport default function ToastStacking() {\n return (\n <>\n <ToastRegion toaster={toaster} limit={4} stacking=\"stack\" />\n <Inline gap={2}>\n <Button\n onClick={() =>\n SHIPMENTS.forEach((shipment) =>\n toaster.show({ title: `${shipment} received`, tone: 'success', duration: 0 }),\n )\n }\n >\n Receive four shipments\n </Button>\n <Button variant=\"outline\" onClick={() => toaster.clear()}>\n Clear\n </Button>\n </Inline>\n </>\n );\n}\n",
605
606
  "verdict": "example"
606
607
  },
608
+ {
609
+ "id": "phone",
610
+ "title": "On a phone",
611
+ "note": "Under 481 pixels on a finger the region spans the screen at the block edge the placement names, clear of the notch, the gesture bar and the virtual keyboard. A message follows the finger on one axis, leaves by either side or toward its edge, and goes on off the screen at the speed it was thrown; one that was not thrown far or fast enough springs back. A finger on the region holds the clock.",
612
+ "language": "tsx",
613
+ "source": "import { Button } from '@slotted/react/button';\nimport { Field, FieldLabel } from '@slotted/react/field';\nimport { Inline } from '@slotted/react/inline';\nimport { Stack } from '@slotted/react/stack';\nimport { TextField } from '@slotted/react/text-field';\nimport { createToaster, ToastRegion } from '@slotted/react/toast';\n\nconst SHIPMENTS = ['SH-2201', 'SH-2202', 'SH-2203'];\n/* A queue for this example. The shared `toast` serves the whole application. */\nconst toaster = createToaster();\n\nexport default function ToastPhone() {\n return (\n <>\n <ToastRegion toaster={toaster} placement=\"bottom\" />\n <Stack gap={3}>\n <Field>\n <FieldLabel>Delivery note</FieldLabel>\n <TextField defaultValue=\"Leave at dock 4 before noon\" />\n </Field>\n <Inline gap={2}>\n <Button\n onClick={() =>\n toaster.show({\n title: 'Note saved',\n description: 'The driver sees it on the next stop.',\n tone: 'success',\n })\n }\n >\n Save the note\n </Button>\n <Button\n variant=\"outline\"\n onClick={() =>\n SHIPMENTS.forEach((shipment) =>\n toaster.show({ title: `${shipment} received`, tone: 'success', duration: 0 }),\n )\n }\n >\n Receive three shipments\n </Button>\n </Inline>\n </Stack>\n </>\n );\n}\n",
614
+ "verdict": "example"
615
+ },
607
616
  {
608
617
  "id": "dismissal",
609
618
  "title": "The ways a message leaves",
@@ -65,10 +65,10 @@ export default function ToastBasic() {
65
65
  | --- | --- | --- | --- | --- |
66
66
  | `placement` | `'top-start' \| 'top' \| 'top-end' \| 'bottom-start' \| 'bottom' \| 'bottom-end'` | bottom-end | ToastRegion | The edge the region sits at. The names are logical, so a right-to-left document mirrors them. |
67
67
  | `attach` | `'portal' \| 'viewport' \| 'inline'` | portal | ToastRegion | Where the region is rendered. portal places it at the end of the document with the theme it came from, viewport fixes it where it is written, and inline positions it in the nearest positioned ancestor. |
68
- | `stacking` | `'list' \| 'stack'` | list | ToastRegion | How the messages are arranged. list is a column at their own height; stack is a pile that opens while the pointer is over it or focus is inside it. |
68
+ | `stacking` | `'auto' \| 'list' \| 'stack'` | auto | ToastRegion | How the messages are arranged. list is a column at their own height; stack is a pile that opens while the pointer is over it or focus is inside it; auto is the pile on a phone and the column elsewhere. |
69
69
  | `limit` | `number` | 3 | ToastRegion | How many messages are on screen at once. The rest wait, and a waiting message has no timer. |
70
70
  | `duration` | `number` | 5000 | ToastRegion, toast.show | The milliseconds a message stays on screen, counted from the moment it appears. 0 never expires. |
71
- | `swipe` | `boolean` | true | ToastRegion | Whether a message can be dragged toward the edge of the placement to dismiss it. A drag that starts on a control is not a swipe. |
71
+ | `swipe` | `boolean` | true | ToastRegion | Whether a message can be swiped off the edge of the placement: past 48 pixels, or flicked from any distance. On a phone either side is an edge. A drag that starts on a control is not a swipe. |
72
72
  | `pauseOnHover` | `boolean` | true | ToastRegion | Whether the timers stop while the pointer is over the region. Focus inside the region always stops them. |
73
73
  | `pauseWhenHidden` | `boolean` | true | ToastRegion | Whether the timers stop while the tab is hidden. |
74
74
  | `hotkey` | `string` | F6 | ToastRegion | The key that moves focus into the region, such as F6, Alt+T or Shift+F8. |
@@ -109,7 +109,7 @@ export default function ToastBasic() {
109
109
  | --- | --- | --- |
110
110
  | `placement` | `top-start`, `top`, `top-end`, `bottom-start`, `bottom`, `bottom-end` | `bottom-end` |
111
111
  | `attach` | `portal`, `viewport`, `inline` | `portal` |
112
- | `stacking` | `list`, `stack` | `list` |
112
+ | `stacking` | `auto`, `list`, `stack` | `auto` |
113
113
  | `tone` | `accent`, `secondary`, `info`, `success`, `warning`, `danger` | `accent` |
114
114
  | `variant` | `raised`, `soft`, `solid` | `raised` |
115
115
  | `priority` | `polite`, `assertive` | `polite` |