@astryx-vue/core 0.22.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (343) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-VD9PadlM.js → AlertDialog-DXOTr1D7.js} +4 -4
  3. package/dist/AppShell/index.d.ts +1 -1
  4. package/dist/AppShell/index.js +1 -1
  5. package/dist/{AppShell-C4XGguw0.js → AppShell-Cmu6bMY6.js} +63 -23
  6. package/dist/Avatar/index.js +1 -1
  7. package/dist/{Avatar-CAweS1WY.js → Avatar-dMcn3j8Z.js} +1 -1
  8. package/dist/AvatarGroup/index.d.ts +1 -1
  9. package/dist/Banner/index.d.ts +1 -1
  10. package/dist/Banner/index.js +1 -1
  11. package/dist/{Banner-DnK7bKAb.js → Banner-CTY9qV89.js} +2 -2
  12. package/dist/BottomSheet/index.d.ts +1 -1
  13. package/dist/BottomSheet/index.js +2 -2
  14. package/dist/{BottomSheet-CM0-eaUF.js → BottomSheet-DyJJtZZU.js} +5 -5
  15. package/dist/{BottomSheet-C4OU3mJT.js → BottomSheet-ZOjuZya0.js} +3 -3
  16. package/dist/Breadcrumbs/index.js +2 -2
  17. package/dist/{Breadcrumbs-DZAgtC9c.js → Breadcrumbs-mlCoLtma.js} +2 -2
  18. package/dist/Button/index.d.ts +1 -1
  19. package/dist/Button/index.js +1 -1
  20. package/dist/{Button-Blnc0yB3.js → Button-TiYG0btL.js} +4 -4
  21. package/dist/ButtonGroup/index.d.ts +1 -1
  22. package/dist/Calendar/index.d.ts +2 -2
  23. package/dist/Calendar/index.js +3 -2
  24. package/dist/Calendar-B6TZYEge.js +105 -0
  25. package/dist/{Calendar-ydp0vJdO.js → Calendar-CUMnYIhe.js} +182 -257
  26. package/dist/Card/index.d.ts +1 -1
  27. package/dist/Card/index.js +1 -1
  28. package/dist/{Card-BbKFHWuD.js → Card-D_OJxmwD.js} +1 -1
  29. package/dist/Carousel/index.d.ts +1 -1
  30. package/dist/Carousel/index.js +1 -1
  31. package/dist/{Carousel-CB4Iap-B.js → Carousel-DsXup1mZ.js} +2 -2
  32. package/dist/Chat/index.d.ts +1 -1
  33. package/dist/Chat/index.js +1 -1
  34. package/dist/{Chat-DjJPQ9bX.js → Chat-DqYT_S9M.js} +7 -6
  35. package/dist/CheckboxInput/index.d.ts +1 -1
  36. package/dist/CheckboxInput/index.js +1 -1
  37. package/dist/{CheckboxInput-CGTPmOHs.js → CheckboxInput-BNwTTDHu.js} +3 -3
  38. package/dist/CheckboxList/index.d.ts +1 -1
  39. package/dist/CheckboxList/index.js +1 -1
  40. package/dist/{CheckboxList-CGzHkA95.js → CheckboxList-BLY16jPG.js} +3 -3
  41. package/dist/Citation/index.js +1 -1
  42. package/dist/{Citation-CSgRYxGU.js → Citation-Ijf06x0V.js} +1 -1
  43. package/dist/ClickableCard/index.d.ts +1 -1
  44. package/dist/ClickableCard/index.js +1 -1
  45. package/dist/{ClickableCard-DMX5z-QV.js → ClickableCard-CVQ7XS4L.js} +1 -1
  46. package/dist/Code/index.d.ts +1 -1
  47. package/dist/Code/index.js +2 -2
  48. package/dist/{Code-rmiC0XfO.js → Code-5rZyPwty.js} +1 -1
  49. package/dist/{CodeBlock-CwQCMSKA.js → CodeBlock-5KoJDvWd.js} +3 -3
  50. package/dist/Collapsible/index.js +1 -1
  51. package/dist/{Collapsible-BVoNZijw.js → Collapsible-B1qW6OuL.js} +3 -1
  52. package/dist/CommandPalette/index.d.ts +1 -1
  53. package/dist/CommandPalette/index.js +1 -1
  54. package/dist/{CommandPalette-DBOETNGM.js → CommandPalette-B2riNg_7.js} +3 -3
  55. package/dist/ComplexSelector/index.d.ts +1 -1
  56. package/dist/ComplexSelector/index.js +1 -1
  57. package/dist/{ComplexSelector-CNBH2t6W.js → ComplexSelector-CVCIsgAU.js} +4 -4
  58. package/dist/{ComponentIcon-BRXBBKeG.js → ComponentIcon-Dw4xQxg3.js} +3 -3
  59. package/dist/ContextMenu/index.d.ts +1 -1
  60. package/dist/ContextMenu/index.js +2 -2
  61. package/dist/{ContextMenu-CUwAPrVP.js → ContextMenu-DYLdP-Ok.js} +7 -7
  62. package/dist/DateInput/index.d.ts +1 -1
  63. package/dist/DateInput/index.js +1 -1
  64. package/dist/{DateInput-BQ-3bvV5.js → DateInput-D9Jv70H7.js} +1210 -108
  65. package/dist/DateRangeInput/index.d.ts +1 -1
  66. package/dist/DateRangeInput/index.js +1 -1
  67. package/dist/{DateRangeInput-DFXz4vNX.js → DateRangeInput-BsB2kg_q.js} +75 -55
  68. package/dist/DateTimeInput/index.d.ts +1 -1
  69. package/dist/DateTimeInput/index.js +1 -1
  70. package/dist/{DateTimeInput-BHO4nXKW.js → DateTimeInput-BDyKPKGD.js} +26 -13
  71. package/dist/Dialog/index.d.ts +1 -1
  72. package/dist/Dialog/index.js +3 -3
  73. package/dist/{Dialog-Dx6zuttb.js → Dialog-DUlWQH8R.js} +1 -1
  74. package/dist/{Dialog-BCPhWMxL.js → Dialog-JCB5s-T-.js} +4 -4
  75. package/dist/{DialogHeader-C9fp2Rti.js → DialogHeader-C6hZZxdv.js} +3 -3
  76. package/dist/Divider/index.d.ts +1 -1
  77. package/dist/Drawer/index.d.ts +1 -1
  78. package/dist/Drawer/index.js +1 -1
  79. package/dist/{Drawer--2vLSKY_.js → Drawer-BDuiw1-g.js} +2 -2
  80. package/dist/DropdownMenu/index.js +3 -3
  81. package/dist/{DropdownMenu-CskkQAAz.js → DropdownMenu-BVEOMFwc.js} +9 -9
  82. package/dist/{DropdownMenu-BImEVieZ.js → DropdownMenu-PjqSkkQs.js} +6 -6
  83. package/dist/EmptyState/index.js +1 -1
  84. package/dist/{EmptyState-Dq3NWNnG.js → EmptyState-CnFkYtcS.js} +3 -3
  85. package/dist/Field/index.js +3 -3
  86. package/dist/{Field-DsucLkyQ.js → Field-D4UmRHlD.js} +2 -2
  87. package/dist/{FieldIcon-DMtfe1Ne.js → FieldIcon-BU1ZWAuo.js} +1 -1
  88. package/dist/{FieldInfoTip-1zW3QTQG.js → FieldInfoTip-BSqcEcUx.js} +2 -2
  89. package/dist/{FieldLabel-D9uFPtXs.js → FieldLabel-CZbayYFD.js} +2 -2
  90. package/dist/FieldStatus/index.js +1 -1
  91. package/dist/{FieldStatus-DSUCli4W.js → FieldStatus-DmCWPT6U.js} +1 -1
  92. package/dist/FileInput/index.d.ts +1 -1
  93. package/dist/FileInput/index.js +1 -1
  94. package/dist/{FileInput-DLtHinlh.js → FileInput-8oYiJsq_.js} +4 -4
  95. package/dist/Grid/index.d.ts +1 -1
  96. package/dist/Grid/index.js +1 -1
  97. package/dist/{Grid-C0mp7fha.js → Grid-DTnDDT0Q.js} +2 -2
  98. package/dist/Heading/index.d.ts +1 -1
  99. package/dist/Heading/index.js +1 -1
  100. package/dist/{Heading-DBBChghq.js → Heading-COtyAhtB.js} +1 -1
  101. package/dist/HoverCard/index.d.ts +1 -1
  102. package/dist/HoverCard/index.js +1 -1
  103. package/dist/{HoverCard-BW-bOUZI.js → HoverCard-DGlOpk4x.js} +4 -4
  104. package/dist/Icon/index.js +3 -3
  105. package/dist/{Icon-BCHo7W0x.js → Icon-Dk0jccgU.js} +2 -1
  106. package/dist/{Icon-B2aULLnn.js → Icon-M1Rlknd0.js} +2 -1
  107. package/dist/IconButton/index.js +1 -1
  108. package/dist/{IconButton-CIUbkA8_.js → IconButton-CwjHTIBg.js} +1 -1
  109. package/dist/Indicator/index.js +1 -1
  110. package/dist/InfoTip/index.d.ts +1 -1
  111. package/dist/InfoTip/index.js +1 -1
  112. package/dist/{InfoTip-C71T8lv_.js → InfoTip-CNZateDb.js} +2 -2
  113. package/dist/{InputClearButton-h0BxBXu1.js → InputClearButton-CzCP41sx.js} +2 -2
  114. package/dist/InputGroup/index.js +1 -1
  115. package/dist/{InputGroup-DHPTru5v.js → InputGroup-CfUGHDNz.js} +1 -1
  116. package/dist/InternationalizationProvider/index.d.ts +1 -1
  117. package/dist/InternationalizationProvider/index.js +1 -1
  118. package/dist/{InternationalizationProvider-Ddo_-tLK.js → InternationalizationProvider-DaZS5Dch.js} +5 -2
  119. package/dist/{LayerContentBoundary-DxeAFxNJ.js → LayerContentBoundary-LCQLyxBT.js} +1 -1
  120. package/dist/Layout/index.d.ts +1 -1
  121. package/dist/Layout/index.js +2 -2
  122. package/dist/{Layout-DP2vrvTv.js → Layout-DOIeCgs4.js} +2 -2
  123. package/dist/{LayoutPanel-DuroKU_A.js → LayoutPanel-C7Wsid2W.js} +34 -14
  124. package/dist/Lightbox/index.js +1 -1
  125. package/dist/{Lightbox-B3WP06Qt.js → Lightbox-Dzzd2Vqe.js} +4 -4
  126. package/dist/Link/index.d.ts +1 -1
  127. package/dist/Link/index.js +1 -1
  128. package/dist/{Link-CQK9d_Yf.js → Link-B7OJQ0zl.js} +2 -2
  129. package/dist/List/index.d.ts +1 -1
  130. package/dist/Markdown/index.d.ts +1 -1
  131. package/dist/Markdown/index.js +1 -1
  132. package/dist/{Markdown-BVXFWJT0.js → Markdown-Cbj-nqhN.js} +4 -4
  133. package/dist/{MediaTheme-DfcdEWx-.js → MediaTheme-UM8oOqwX.js} +1 -1
  134. package/dist/MobileNav/index.js +1 -1
  135. package/dist/{MobileNavToggle-DGZPwsf9.js → MobileNavToggle-BlcdCg8M.js} +3 -3
  136. package/dist/MoreMenu/index.d.ts +1 -1
  137. package/dist/MoreMenu/index.js +1 -1
  138. package/dist/{MoreMenu-Q_KpDTNB.js → MoreMenu-DAhOiau3.js} +5 -5
  139. package/dist/MultiSelector/index.d.ts +1 -1
  140. package/dist/MultiSelector/index.js +1 -1
  141. package/dist/{MultiSelector-CzGsdjcl.js → MultiSelector-ERv5u6r4.js} +11 -10
  142. package/dist/{NavDisclosure-DIYayUrP.js → NavDisclosure-CqAThYgR.js} +1 -1
  143. package/dist/{NavHeadingSurface-bFcFpeMI.js → NavHeadingSurface-DJ4pWvEi.js} +2 -2
  144. package/dist/NavItem/index.d.ts +1 -1
  145. package/dist/NavMenu/index.js +3 -3
  146. package/dist/{NavMenu-DYvMKPU_.js → NavMenu-BtA_Xbmr.js} +3 -3
  147. package/dist/{NavMenuItem-Ccix-agv.js → NavMenuItem-BxfjAf1T.js} +2 -2
  148. package/dist/NumberInput/index.d.ts +1 -1
  149. package/dist/NumberInput/index.js +1 -1
  150. package/dist/{NumberInput-DTksMfSU.js → NumberInput-Bl5TFhGD.js} +5 -5
  151. package/dist/OverflowList/index.d.ts +1 -1
  152. package/dist/OverflowList/index.js +1 -1
  153. package/dist/{OverflowList-DKM7TeUs.js → OverflowList-CumJl6X_.js} +2 -2
  154. package/dist/Pagination/index.d.ts +1 -1
  155. package/dist/Pagination/index.js +1 -1
  156. package/dist/{Pagination-B-O21ut1.js → Pagination-DuTUReOl.js} +2 -2
  157. package/dist/Popover/index.d.ts +1 -1
  158. package/dist/Popover/index.js +1 -1
  159. package/dist/{Popover-BtfsoxXC.js → Popover-DpR4rwiW.js} +6 -6
  160. package/dist/PowerSearch/index.d.ts +1 -1
  161. package/dist/PowerSearch/index.js +1 -1
  162. package/dist/{PowerSearch-CniqThU7.js → PowerSearch-CewQJzEt.js} +34 -33
  163. package/dist/ProgressBar/index.d.ts +1 -1
  164. package/dist/ProgressBar/index.js +1 -1
  165. package/dist/{ProgressBar-DOusesCL.js → ProgressBar-Dp-0xquN.js} +1 -1
  166. package/dist/Radio/index.d.ts +1 -1
  167. package/dist/Radio/index.js +1 -1
  168. package/dist/{RadioGroup-CRwMwMw4.js → RadioGroup-DrCL5-AN.js} +3 -3
  169. package/dist/RadioList/index.d.ts +1 -1
  170. package/dist/RadioList/index.js +1 -1
  171. package/dist/{RadioList-PUlENMq5.js → RadioList-CRi4E1zq.js} +1 -1
  172. package/dist/Resizable/index.d.ts +1 -1
  173. package/dist/Resizable/index.js +1 -1
  174. package/dist/{ResizeHandle-4-krI-cQ.js → ResizeHandle-BMSbAFdP.js} +43 -27
  175. package/dist/ScrollableArea/index.d.ts +1 -1
  176. package/dist/SegmentedControl/index.d.ts +1 -1
  177. package/dist/SelectableCard/index.d.ts +1 -1
  178. package/dist/SelectableCard/index.js +1 -1
  179. package/dist/{SelectableCard-DUTtyApJ.js → SelectableCard-Dp-LsEcf.js} +1 -1
  180. package/dist/Selector/index.d.ts +1 -1
  181. package/dist/Selector/index.js +1 -1
  182. package/dist/{Selector-Qs1rFiI6.js → Selector-D6yzPO5O.js} +9 -9
  183. package/dist/SideNav/index.d.ts +1 -1
  184. package/dist/SideNav/index.js +1 -1
  185. package/dist/{SideNav-BUfUwE2P.js → SideNav-z_6FwEJy.js} +8 -58
  186. package/dist/Slider/index.js +1 -1
  187. package/dist/{Slider-BbiQbyie.js → Slider-DMHlRq7q.js} +2 -2
  188. package/dist/StatusDot/index.js +1 -1
  189. package/dist/{StatusDot-DhfcDBE7.js → StatusDot-B3oOyRF7.js} +1 -1
  190. package/dist/Stepper/index.d.ts +1 -1
  191. package/dist/Stepper/index.js +1 -1
  192. package/dist/{Stepper-CQd4YlPC.js → Stepper-CgOdL36_.js} +1 -1
  193. package/dist/Switch/index.d.ts +1 -1
  194. package/dist/Switch/index.js +1 -1
  195. package/dist/{Switch-CMK5bICl.js → Switch-OPRkoPLi.js} +2 -2
  196. package/dist/TabList/index.js +1 -1
  197. package/dist/{TabList-Bd3h7Nj3.js → TabList-FkoypUk0.js} +3 -3
  198. package/dist/Table/index.d.ts +1 -1
  199. package/dist/Table/index.js +1 -1
  200. package/dist/{Table-DN9mo-cQ.js → Table-CCjpL_Ku.js} +16 -16
  201. package/dist/Text/index.d.ts +1 -1
  202. package/dist/Text/index.js +1 -1
  203. package/dist/{Text-Dez23ltM.js → Text-v1ep26uD.js} +1 -1
  204. package/dist/TextArea/index.d.ts +1 -1
  205. package/dist/TextArea/index.js +1 -1
  206. package/dist/{TextArea-BsGUOyDg.js → TextArea-BilHnmSs.js} +5 -5
  207. package/dist/TextInput/index.d.ts +1 -1
  208. package/dist/TextInput/index.js +1 -1
  209. package/dist/{TextInput-DZi0EMh-.js → TextInput-D6tHM2sA.js} +4 -4
  210. package/dist/Theme/index.js +3 -2
  211. package/dist/{Theme-1RJVaRgz.js → Theme-BmTbbiAD.js} +6 -22
  212. package/dist/Thumbnail/index.js +1 -1
  213. package/dist/{Thumbnail-CsmF1HTP.js → Thumbnail-llGdnQM8.js} +3 -3
  214. package/dist/{TimeField-DqOPj5s2.js → TimeField-C5rcoaVu.js} +7 -7
  215. package/dist/TimeInput/index.d.ts +1 -1
  216. package/dist/TimeInput/index.js +1 -1
  217. package/dist/{TimeInput-CA3kXBWB.js → TimeInput-D0N8nwrI.js} +2 -2
  218. package/dist/Timer/index.d.ts +1 -1
  219. package/dist/Timer/index.js +1 -1
  220. package/dist/{Timer-vubjQ88x.js → Timer-65PfuoQ7.js} +1 -1
  221. package/dist/Timestamp/index.d.ts +1 -1
  222. package/dist/Timestamp/index.js +2 -2
  223. package/dist/{Timestamp-Cz_0Ofj4.js → Timestamp-rYC8mE3r.js} +20 -12
  224. package/dist/Toast/index.js +1 -1
  225. package/dist/{Toast-DhJNtBjT.js → Toast-BtQ-4Y6Z.js} +3 -3
  226. package/dist/ToggleButton/index.d.ts +1 -1
  227. package/dist/ToggleButton/index.js +1 -1
  228. package/dist/{ToggleButton-BR_qVBEt.js → ToggleButton-DTrNL430.js} +1 -1
  229. package/dist/Tokenizer/index.d.ts +1 -1
  230. package/dist/Tokenizer/index.js +1 -1
  231. package/dist/{Tokenizer-C3pXgLmC.js → Tokenizer-DdddkJb1.js} +6 -5
  232. package/dist/Toolbar/index.d.ts +1 -1
  233. package/dist/Toolbar/index.js +1 -1
  234. package/dist/{Toolbar-B4Vltu-j.js → Toolbar-DSWH8ll4.js} +25 -2
  235. package/dist/Tooltip/index.d.ts +1 -1
  236. package/dist/Tooltip/index.js +2 -2
  237. package/dist/{Tooltip-BUHvOnE1.js → Tooltip-CByjfHBZ.js} +1 -1
  238. package/dist/TopNav/index.d.ts +1 -1
  239. package/dist/TopNav/index.js +1 -1
  240. package/dist/{TopNav-klsRhS-I.js → TopNav-C1wpttKX.js} +6 -6
  241. package/dist/TreeList/index.d.ts +1 -1
  242. package/dist/TreeList/index.js +1 -1
  243. package/dist/{TreeList-DJQvL5tG.js → TreeList-DOAcS3PM.js} +1 -1
  244. package/dist/Typeahead/index.d.ts +1 -1
  245. package/dist/Typeahead/index.js +2 -2
  246. package/dist/{Typeahead-BaPqX3Ey.js → Typeahead-6y_r-VNU.js} +6 -6
  247. package/dist/adaptationTypes-Beao49TN.js +19 -0
  248. package/dist/{assertOptions-DF9pum-3.js → assertOptions-og3t30Fh.js} +2 -1
  249. package/dist/calendar-C7py_wtb.js +351 -0
  250. package/dist/calendarFormat-_CEZIMZG.js +123 -0
  251. package/dist/{componentIcons-CFr2L6o3.js → componentIcons-BBJqmilP.js} +1 -1
  252. package/dist/composables/index.js +11 -11
  253. package/dist/{composables-BDWdSCwe.js → composables-COCeg92e.js} +2 -2
  254. package/dist/context-Cws_tXTr.js +7 -0
  255. package/dist/{context-CjX2RSDn.js → context-D-Hwh-Jf.js} +1 -1
  256. package/dist/{date-input-rUD8YAow.js → date-input-CRdc2H3c.js} +6 -2
  257. package/dist/focusLeaving-Dqm8Yj4T.js +53 -0
  258. package/dist/{focusReturn-CsEp47Wa.js → focusReturn-C1cFL3WM.js} +1 -1
  259. package/dist/{format-mffyPc-L.js → format-6G9QuGy1.js} +12 -4
  260. package/dist/{formatInstant-BDWUIxS7.js → formatInstant-CjCwl6JS.js} +8 -6
  261. package/dist/{index-C93nwgTW.d.ts → index-51CkIKnI.d.ts} +1 -1
  262. package/dist/{index-CO9GW-ik.d.ts → index-B-3EGjfQ.d.ts} +1 -1
  263. package/dist/{index-BmXk_doE.d.ts → index-B3U6GJKl.d.ts} +2 -2
  264. package/dist/{index-CAKT4Kkz.d.ts → index-B5MCvW75.d.ts} +230 -72
  265. package/dist/{index-Qdbssopn.d.ts → index-B6svLvfZ.d.ts} +1 -1
  266. package/dist/{index-C3FgFPrM.d.ts → index-BDJQW9cW.d.ts} +10 -10
  267. package/dist/{index-BvW0tiei.d.ts → index-BJputYk6.d.ts} +4 -4
  268. package/dist/{index-YKCx03zD.d.ts → index-BaFphczL.d.ts} +2 -2
  269. package/dist/{index-BTljzczH.d.ts → index-C-kIxNCq.d.ts} +8 -11
  270. package/dist/{index-CKnr0JlT.d.ts → index-C4S65SAW.d.ts} +1 -1
  271. package/dist/{index-waTkqxTz.d.ts → index-C89cIh4E.d.ts} +1 -1
  272. package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
  273. package/dist/{index-DDrL_-hJ.d.ts → index-CBOv5j3c.d.ts} +2 -2
  274. package/dist/{index-BOCb89V9.d.ts → index-CP-fJFcJ.d.ts} +3 -3
  275. package/dist/{index-Bgk1Rj2A.d.ts → index-CTjkJP4x.d.ts} +1 -1
  276. package/dist/{index-DofC9Rll.d.ts → index-Cb-rvc1W.d.ts} +1 -1
  277. package/dist/{index-Bzi3A980.d.ts → index-ChqMaV6N.d.ts} +1 -1
  278. package/dist/{index-C9ZssPUV.d.ts → index-CiVrhGUJ.d.ts} +1 -1
  279. package/dist/{index-BdZCLUgY.d.ts → index-CnVjgLP5.d.ts} +9 -1
  280. package/dist/{index-CG3fD4hw.d.ts → index-CpLLSVCn.d.ts} +7 -5
  281. package/dist/{index-rdwI-mcm.d.ts → index-CtYlR9Cu.d.ts} +1 -1
  282. package/dist/{index-B1eCxBCY.d.ts → index-DCyYldjP.d.ts} +7 -1
  283. package/dist/{index-BrMtj1lT.d.ts → index-DGXCnzOL.d.ts} +4 -4
  284. package/dist/{index-BhxqUt3y.d.ts → index-DXHmlFcC.d.ts} +4 -4
  285. package/dist/{index-fd--aE4B.d.ts → index-DbNGGCM0.d.ts} +4 -3
  286. package/dist/{index--CtH4lQr.d.ts → index-Dc6mU3rv.d.ts} +6 -6
  287. package/dist/{index-DYabo8TI.d.ts → index-MvrDMqnQ.d.ts} +1 -1
  288. package/dist/{index-DMN_JVEt.d.ts → index-NOxH5oYj.d.ts} +3 -2
  289. package/dist/{index-DE1genab.d.ts → index-QnlWyUxN.d.ts} +2 -2
  290. package/dist/{index-BkxWKIV_.d.ts → index-SRA6e30Q.d.ts} +8 -8
  291. package/dist/{index-BA8exXNP.d.ts → index-X4S7_dmq.d.ts} +1 -1
  292. package/dist/{index-DIw5D3zj.d.ts → index-ZKBj_1nu.d.ts} +2 -2
  293. package/dist/{index-D0MA9x_i.d.ts → index-ZT45ZWd5.d.ts} +8 -8
  294. package/dist/{index-CQ-sq76o.d.ts → index-_FjbcSgD.d.ts} +8 -2
  295. package/dist/{index-DogWVRJi.d.ts → index-beOIC0Qk.d.ts} +2 -2
  296. package/dist/{index-rzkX36wM.d.ts → index-nk2xIHpr.d.ts} +3 -3
  297. package/dist/index.d.ts +39 -39
  298. package/dist/index.js +117 -116
  299. package/dist/inputPresentation-DES0JwkL.js +203 -0
  300. package/dist/interactionModality-CedLz5PC.js +130 -0
  301. package/dist/{interactionModality-CyU67ucP.js → layerDepth-D3Rh8T5C.js} +1 -130
  302. package/dist/{layerFocusReturn-BeCsk_4F.js → layerFocusReturn-KvH6DMFT.js} +1 -1
  303. package/dist/{loadCatalog-DsEKSY3U.js → loadCatalog-BeQt6Uq-.js} +9 -1
  304. package/dist/{loadCatalog-C4h9SmJs.d.ts → loadCatalog-C8mRnC0E.d.ts} +5 -1
  305. package/dist/locale/index.d.ts +4 -4
  306. package/dist/locale/index.js +4 -4
  307. package/dist/{locale-C-Y-13BP.js → locale-B4FpGKpc.js} +6 -2
  308. package/dist/{dateParser-BKoaawL9.js → plainDate-CaTDErKr.js} +1 -132
  309. package/dist/{power-search-CqcsJT1F.d.ts → power-search-CuMzfLwW.d.ts} +13 -1
  310. package/dist/resizableChannel-LElsNkSY.js +33 -0
  311. package/dist/{stillPointerGate-BX4vr5M-.js → stillPointerGate-1Tgkns0J.js} +1 -1
  312. package/dist/{themeIcons-CqGF0fwW.js → themeIcons-1O7ymucc.js} +1 -7
  313. package/dist/{tooltipFocusRules-BnZ1zwAm.js → tooltipFocusRules-vIH7PZh1.js} +3 -2
  314. package/dist/{tooltipTriggerRules-BLBEkBcK.js → tooltipTriggerRules-DoBAbfGc.js} +1 -1
  315. package/dist/{triggerVariant-BDVvyLtv.js → triggerVariant-DG0VhG-X.js} +1 -1
  316. package/dist/useCalendarGrid-0WvxbeFC.js +179 -0
  317. package/dist/{useCombobox-DcBbaWYj.js → useCombobox-BqkTY3bw.js} +1 -1
  318. package/dist/{useDismiss-C1dyveme.js → useDismiss-CMIsdIOQ.js} +1 -1
  319. package/dist/{useFocusTrap-DAKJJP0Z.js → useFocusTrap-DTz_d7IP.js} +3 -2
  320. package/dist/{useIndicator--9mGGlT2.js → useIndicator-PFDBNOvX.js} +2 -2
  321. package/dist/{useInputStatusIcon-BDWAijXe.js → useInputStatusIcon-CrgeMzrf.js} +2 -2
  322. package/dist/{useMenuDrillIn-RZwY55RM.js → useMenuDrillIn-f3m-59Qb.js} +1 -1
  323. package/dist/{useMenuPress-3203ryBY.js → useMenuPress-wqRDvUMW.js} +2 -2
  324. package/dist/{useResizable-wZU54yCO.js → useResizable-hv4NYIUi.js} +6 -3
  325. package/dist/{useRestoreFocus-v8-FFcQQ.js → useRestoreFocus-BxooFhas.js} +2 -2
  326. package/dist/{useTooltip-0_wOd0e5.js → useTooltip-BwqzEtoF.js} +5 -5
  327. package/dist/{useTouchTriggerInternal-DwzthF8T.js → useTouchTriggerInternal-Bdm_M4aa.js} +2 -1
  328. package/dist/{useTruncationTooltip-BDIe7-ya.js → useTruncationTooltip-CRhoPzeu.js} +4 -4
  329. package/dist/{useTypeahead-BlqvS9x9.js → useTypeahead-BGpvWkzm.js} +1 -1
  330. package/dist/{useTypeaheadMenuConfig-CIf9Ep57.js → useTypeaheadMenuConfig-GvdIymRg.js} +2 -2
  331. package/dist/utils/index.d.ts +1 -1
  332. package/dist/utils/index.js +2 -2
  333. package/package.json +1 -1
  334. package/reset.css +0 -19
  335. package/styles/app-shell.css +88 -7
  336. package/styles/aspect-ratio.css +4 -3
  337. package/styles/collapsible.css +1 -0
  338. package/styles/layout.css +22 -5
  339. package/styles/resize-handle.css +64 -35
  340. package/styles/scrollable-area.css +13 -0
  341. package/styles/toolbar.css +39 -3
  342. package/dist/inputPresentation-BOyHkCDr.js +0 -62
  343. package/dist/resizableChannel-3vivrEcT.js +0 -20
package/reset.css CHANGED
@@ -180,25 +180,6 @@
180
180
  height: auto;
181
181
  }
182
182
 
183
- /*
184
- * AspectRatio 的 fit 子元素尺寸。组件样式 `aspect-ratio.css` 里也有同样几条,
185
- * 没引入 reset 时靠那里生效。这里再写一遍,是为了让它们排在上面
186
- * `height: auto` 的后面:两者同在 reset 层、特异性都是 0,后出现的赢,
187
- * 所以不管 reset.css 和组件样式谁先加载,fit 的子元素都能填满容器。
188
- */
189
- :where([data-astryx-aspect-ratio-override='cover'], [data-astryx-aspect-ratio-override='contain']) > :where(*) {
190
- width: 100%;
191
- height: 100%;
192
- }
193
-
194
- :where([data-astryx-aspect-ratio-override='cover']) > :where(img, video) {
195
- object-fit: cover;
196
- }
197
-
198
- :where([data-astryx-aspect-ratio-override='contain']) > :where(img, video) {
199
- object-fit: contain;
200
- }
201
-
202
183
  /* ===========================================================================
203
184
  表单
204
185
  =========================================================================== */
@@ -7,6 +7,20 @@
7
7
  position: relative;
8
8
  overflow: clip;
9
9
  min-height: 0;
10
+ /* AppShell 是布局的根:外层 Card、Section、Layout 的内边距与宽度变量停在这里。 */
11
+ --container-padding-inline-start: 0px;
12
+ --container-padding-inline-end: 0px;
13
+ --container-padding-block-start: 0px;
14
+ --container-padding-block-end: 0px;
15
+ --layout-padding-outer-x: initial;
16
+ --layout-padding-outer-y: initial;
17
+ --layout-padding-own-outer-x: initial;
18
+ --layout-padding-own-outer-y: initial;
19
+ --layout-padding-inner-x: initial;
20
+ --layout-padding-inner-y: initial;
21
+ --layout-content-width: initial;
22
+ --layout-alignment-width: initial;
23
+ --_section-padding-propagated: initial;
10
24
  }
11
25
 
12
26
  .astryx-app-shell[data-variant='wash'],
@@ -89,6 +103,26 @@
89
103
  background-color: var(--astryx-color-background-surface, #fff);
90
104
  }
91
105
 
106
+ /*
107
+ * 页面设了 viewport-fit=cover 时,页头背景延伸到状态栏下面和屏幕两侧,
108
+ * 页头里的内容留在安全区内;没设时这些边距都是 0。安全区是物理方向,从右到左时内联两侧互换。
109
+ */
110
+ .astryx-app-shell__header,
111
+ .astryx-app-shell__mobile-bar {
112
+ box-sizing: border-box;
113
+ padding-inline-start: env(safe-area-inset-left, 0px);
114
+ padding-inline-end: env(safe-area-inset-right, 0px);
115
+ }
116
+
117
+ :is([dir='rtl'] .astryx-app-shell__header, [dir='rtl'] .astryx-app-shell__mobile-bar) {
118
+ padding-inline-start: env(safe-area-inset-right, 0px);
119
+ padding-inline-end: env(safe-area-inset-left, 0px);
120
+ }
121
+
122
+ .astryx-app-shell__header {
123
+ padding-block-start: env(safe-area-inset-top, 0px);
124
+ }
125
+
92
126
  .astryx-app-shell__banner {
93
127
  flex-shrink: 0;
94
128
  }
@@ -96,8 +130,18 @@
96
130
  .astryx-app-shell__mobile-bar {
97
131
  display: flex;
98
132
  align-items: center;
133
+ height: calc(var(--astryx-spacing-12, 48px) + env(safe-area-inset-top, 0px));
134
+ padding-block-start: env(safe-area-inset-top, 0px);
135
+ }
136
+
137
+ /* 横幅已经让出顶部安全区,下面的手机顶栏只留两侧;自动高度时它钉在顶部安全区下面。 */
138
+ .astryx-app-shell__header + .astryx-app-shell__mobile-bar {
99
139
  height: var(--astryx-spacing-12, 48px);
100
- padding-inline: var(--astryx-spacing-2, 8px);
140
+ padding-block-start: 0;
141
+ }
142
+
143
+ .astryx-app-shell[data-height='auto'] .astryx-app-shell__header + .astryx-app-shell__mobile-bar {
144
+ top: env(safe-area-inset-top, 0px);
101
145
  }
102
146
 
103
147
  .astryx-app-shell__mobile-bar[data-variant='wash'],
@@ -116,6 +160,8 @@
116
160
  width: 100%;
117
161
  min-width: 0;
118
162
  height: 100%;
163
+ box-sizing: border-box;
164
+ padding-inline: var(--astryx-spacing-2, 8px);
119
165
  }
120
166
 
121
167
  .astryx-app-shell__mobile-nav > .astryx-mobile-nav-toggle {
@@ -147,6 +193,11 @@
147
193
  outline: none;
148
194
  }
149
195
 
196
+ /* 主区域在内容内边距之外再加底部安全区,铺满它的子元素也停在安全区之上。 */
197
+ .astryx-app-shell .astryx-app-shell__content {
198
+ padding-block-end: calc(var(--container-padding-block-end, 0px) + env(safe-area-inset-bottom, 0px));
199
+ }
200
+
150
201
  /*
151
202
  * 内容溢出时主区域是键盘停靠点:只有 Tab 到它才画标准焦点环,往里收一圈免得被外壳裁掉;
152
203
  * 跳转链接和脚本的聚焦(data-programmatic-focus)不画。
@@ -174,39 +225,69 @@
174
225
  isolation: isolate;
175
226
  }
176
227
 
177
- /* 脚本读到窗口之前(服务端渲染的页面),整条顶栏在手机上先藏起起始和中间内容;读完窗口后由 TopNav 自己收进抽屉。 */
228
+ /*
229
+ * 脚本读到窗口之前(服务端渲染的页面),手机上先按手机布局显示:
230
+ * 顶栏藏起起始和中间内容,内联侧栏不出,抬起样式的背景板去掉圆角;
231
+ * 读完窗口后由 TopNav 收进抽屉、侧栏换成抽屉。
232
+ * 主题改过宽度点时没有对应规则,保持服务端的布局直到读到窗口。
233
+ */
178
234
  @media (width < 640px) {
179
235
  .astryx-app-shell[data-mobile-unread='sm'] .astryx-top-nav__items,
180
- .astryx-app-shell[data-mobile-unread='sm'] .astryx-top-nav__center {
236
+ .astryx-app-shell[data-mobile-unread='sm'] .astryx-top-nav__center,
237
+ .astryx-app-shell[data-mobile-unread='sm'] .astryx-app-shell__sidenav {
181
238
  display: none;
182
239
  }
240
+
241
+ .astryx-app-shell[data-mobile-unread='sm'] .astryx-app-shell__backdrop {
242
+ border-start-start-radius: 0;
243
+ }
183
244
  }
184
245
 
185
246
  @media (width < 768px) {
186
247
  .astryx-app-shell[data-mobile-unread='md'] .astryx-top-nav__items,
187
- .astryx-app-shell[data-mobile-unread='md'] .astryx-top-nav__center {
248
+ .astryx-app-shell[data-mobile-unread='md'] .astryx-top-nav__center,
249
+ .astryx-app-shell[data-mobile-unread='md'] .astryx-app-shell__sidenav {
188
250
  display: none;
189
251
  }
252
+
253
+ .astryx-app-shell[data-mobile-unread='md'] .astryx-app-shell__backdrop {
254
+ border-start-start-radius: 0;
255
+ }
190
256
  }
191
257
 
192
258
  @media (width < 1024px) {
193
259
  .astryx-app-shell[data-mobile-unread='lg'] .astryx-top-nav__items,
194
- .astryx-app-shell[data-mobile-unread='lg'] .astryx-top-nav__center {
260
+ .astryx-app-shell[data-mobile-unread='lg'] .astryx-top-nav__center,
261
+ .astryx-app-shell[data-mobile-unread='lg'] .astryx-app-shell__sidenav {
195
262
  display: none;
196
263
  }
264
+
265
+ .astryx-app-shell[data-mobile-unread='lg'] .astryx-app-shell__backdrop {
266
+ border-start-start-radius: 0;
267
+ }
197
268
  }
198
269
 
199
270
  @media (width < 1280px) {
200
271
  .astryx-app-shell[data-mobile-unread='xl'] .astryx-top-nav__items,
201
- .astryx-app-shell[data-mobile-unread='xl'] .astryx-top-nav__center {
272
+ .astryx-app-shell[data-mobile-unread='xl'] .astryx-top-nav__center,
273
+ .astryx-app-shell[data-mobile-unread='xl'] .astryx-app-shell__sidenav {
202
274
  display: none;
203
275
  }
276
+
277
+ .astryx-app-shell[data-mobile-unread='xl'] .astryx-app-shell__backdrop {
278
+ border-start-start-radius: 0;
279
+ }
204
280
  }
205
281
 
206
282
  @media (width < 1536px) {
207
283
  .astryx-app-shell[data-mobile-unread='2xl'] .astryx-top-nav__items,
208
- .astryx-app-shell[data-mobile-unread='2xl'] .astryx-top-nav__center {
284
+ .astryx-app-shell[data-mobile-unread='2xl'] .astryx-top-nav__center,
285
+ .astryx-app-shell[data-mobile-unread='2xl'] .astryx-app-shell__sidenav {
209
286
  display: none;
210
287
  }
288
+
289
+ .astryx-app-shell[data-mobile-unread='2xl'] .astryx-app-shell__backdrop {
290
+ border-start-start-radius: 0;
291
+ }
211
292
  }
212
293
  }
@@ -1,10 +1,11 @@
1
1
  @layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
2
2
 
3
3
  /*
4
- * fit 的子元素尺寸放在 reset 层,选择器特异性为零。
5
- * 子元素自己写的宽高和 object-fit 仍然能盖过这里。
4
+ * fit 的子元素尺寸放在 base 层,选择器特异性为零。
5
+ * 排在 reset 层的 `height: auto` 后面,Tailwind 等后面的层、不分层的 CSS 和子元素自己的内联样式仍然能盖过这里,
6
+ * 所以文档里写的各种 Tailwind 接法下 fit 都能填满容器。
6
7
  */
7
- @layer astryx.reset {
8
+ @layer astryx.base {
8
9
  :where([data-astryx-aspect-ratio-override='cover'], [data-astryx-aspect-ratio-override='contain']) > :where(*) {
9
10
  width: 100%;
10
11
  height: 100%;
@@ -77,6 +77,7 @@
77
77
  width: var(--astryx-text-large-size, 1rem);
78
78
  height: var(--astryx-text-large-size, 1rem);
79
79
  font-size: var(--astryx-text-large-size, 1rem);
80
+ line-height: var(--astryx-text-large-leading, 1.5);
80
81
  }
81
82
 
82
83
  .astryx-collapsible-chevron {
package/styles/layout.css CHANGED
@@ -29,7 +29,7 @@
29
29
  --container-padding-inline-end: 0px;
30
30
  --container-padding-block-start: 0px;
31
31
  --container-padding-block-end: 0px;
32
- --layout-content-width: 100cqi;
32
+ --layout-content-width: initial;
33
33
  --layout-alignment-width: 100cqi;
34
34
  --layout-padding-own-outer-x: initial;
35
35
  --layout-padding-own-outer-y: initial;
@@ -178,11 +178,11 @@
178
178
  .astryx-layout-content[data-edge-start]:not([data-explicit-padding]) {
179
179
  padding-inline-start: var(--layout-pad-outer-x);
180
180
  --container-padding-inline-start: var(--layout-pad-outer-x);
181
- --container-padding-inline-end: var(--layout-pad-outer-x);
182
181
  }
183
182
 
184
183
  .astryx-layout-content[data-edge-end]:not([data-explicit-padding]) {
185
184
  padding-inline-end: var(--layout-pad-outer-x);
185
+ --container-padding-inline-end: var(--layout-pad-outer-x);
186
186
  }
187
187
 
188
188
  .astryx-layout-content[data-edge-header]:not([data-explicit-padding]) {
@@ -195,13 +195,20 @@
195
195
  --container-padding-block-end: var(--layout-pad-outer-y);
196
196
  }
197
197
 
198
- .astryx-layout__inner:has(> .astryx-layout-header:not([data-divider])) .astryx-layout-content:not([data-explicit-padding]),
199
- .astryx-layout__inner:has(> .astryx-dialog-header[data-layout-header]:not(.astryx-dialog-header--divider)) .astryx-layout-content:not([data-explicit-padding]) {
198
+ /*
199
+ * 页头没有分隔线时,内容顶部的内边距收掉;页脚没有分隔线时收掉底部的。
200
+ * 用兄弟关系只看这一个 Layout 自己的那一行:嵌套的 Layout 不会吃到外层的收拢。
201
+ * 同时把发布给贴边子元素(Table、Divider)的容器内边距一起归零,它们才和内容的实际边距对得上。
202
+ */
203
+ .astryx-layout__inner > .astryx-layout-header:not([data-divider]) ~ .astryx-layout__middle > .astryx-layout__content-slot > .astryx-layout-content:not([data-explicit-padding]),
204
+ .astryx-layout__inner > .astryx-dialog-header[data-layout-header]:not(.astryx-dialog-header--divider) ~ .astryx-layout__middle > .astryx-layout__content-slot > .astryx-layout-content:not([data-explicit-padding]) {
200
205
  padding-block-start: 0;
206
+ --container-padding-block-start: 0px;
201
207
  }
202
208
 
203
- .astryx-layout__inner:has(> .astryx-layout-footer:not([data-divider])) .astryx-layout-content:not([data-explicit-padding]) {
209
+ .astryx-layout__middle:has(~ .astryx-layout-footer:not([data-divider])) > .astryx-layout__content-slot > .astryx-layout-content:not([data-explicit-padding]) {
204
210
  padding-block-end: 0;
211
+ --container-padding-block-end: 0px;
205
212
  }
206
213
 
207
214
  .astryx-layout-content[data-scrollable] {
@@ -243,26 +250,36 @@
243
250
  --container-padding-block-end: var(--_layout-panel-block-end, var(--layout-pad-block));
244
251
  }
245
252
 
253
+ /* 贴着 Layout 边界的那条边用 Layout 的外缘内边距,并把它发布出去,贴边子元素才和它对得上。 */
246
254
  .astryx-layout-panel[data-area='start']:not([data-explicit-padding]) {
247
255
  padding-inline-start: var(--layout-pad-outer-x);
256
+ --container-padding-inline-start: var(--layout-pad-outer-x);
248
257
  }
249
258
 
250
259
  .astryx-layout-panel[data-area='end']:not([data-explicit-padding]) {
251
260
  padding-inline-end: var(--layout-pad-outer-x);
261
+ --container-padding-inline-end: var(--layout-pad-outer-x);
252
262
  }
253
263
 
254
264
  .astryx-layout-panel[data-edge-header]:not([data-explicit-padding]) {
255
265
  padding-block-start: var(--layout-pad-outer-y);
266
+ --container-padding-block-start: var(--layout-pad-outer-y);
256
267
  }
257
268
 
258
269
  .astryx-layout-panel[data-edge-footer]:not([data-explicit-padding]) {
259
270
  padding-block-end: var(--layout-pad-outer-y);
271
+ --container-padding-block-end: var(--layout-pad-outer-y);
260
272
  }
261
273
 
262
274
  .astryx-layout-panel[data-scrollable] {
263
275
  overflow: auto;
264
276
  }
265
277
 
278
+ .astryx-layout-panel[data-zero-width][data-zero-width] {
279
+ padding-inline: 0;
280
+ overflow: clip;
281
+ }
282
+
266
283
  .astryx-layout-panel[data-area='start'][data-divider] {
267
284
  border-inline-end: 1px solid var(--astryx-color-border, #ebebeb);
268
285
  }
@@ -64,6 +64,14 @@
64
64
  height: var(--resize-handle-hit-area, 16px);
65
65
  }
66
66
 
67
+ .astryx-resize-handle[data-position='overlay'][data-pane][data-direction='horizontal'] {
68
+ width: min(var(--resize-handle-hit-area, 16px), 50%);
69
+ }
70
+
71
+ .astryx-resize-handle[data-position='overlay'][data-pane][data-direction='vertical'] {
72
+ height: min(var(--resize-handle-hit-area, 16px), 50%);
73
+ }
74
+
67
75
  .astryx-resize-handle[data-disabled] {
68
76
  cursor: default;
69
77
  pointer-events: none;
@@ -89,52 +97,28 @@
89
97
  cursor: row-resize;
90
98
  }
91
99
 
92
- /*
93
- * 抓取区跟握把走同一套物理偏移。6.5px 是 (16px - 3px) / 2,用来把更宽的抓取区中心对齐握把。
94
- * 这段位移在行内轴上,从右到左时要改号,否则抓取区会偏到握把旁边。
95
- */
96
- .astryx-resize-handle[data-direction='horizontal'] > .astryx-resize-handle__hit[data-bias='center'] {
100
+ /* 抓取区居中在分隔条上,握把摆在哪一侧都不改变它;握把自己另外接管指针。 */
101
+ .astryx-resize-handle[data-direction='horizontal'] > .astryx-resize-handle__hit {
97
102
  inset-inline-start: 50%;
103
+ width: min(var(--astryx-spacing-4, 16px), var(--_resize-pane-length, 100vw));
98
104
  transform: translateX(-50%);
99
105
  }
100
106
 
101
- .astryx-resize-handle[data-direction='vertical'] > .astryx-resize-handle__hit[data-bias='center'] {
102
- inset-block-start: 50%;
103
- transform: translateY(-50%);
104
- }
105
-
106
- .astryx-resize-handle[data-direction='horizontal'] > .astryx-resize-handle__hit[data-bias='start'] {
107
- inset-inline-start: 0;
108
- transform: translateX(calc(-1 * (3px + var(--astryx-spacing-1, 4px)) - 6.5px));
109
- }
110
-
111
- .astryx-resize-handle[data-direction='horizontal'] > .astryx-resize-handle__hit[data-bias='end'] {
112
- inset-inline-start: 0;
113
- transform: translateX(calc(1 * (3px + var(--astryx-spacing-1, 4px)) - 6.5px));
107
+ :is([dir='rtl'] .astryx-resize-handle[data-direction='horizontal'] > .astryx-resize-handle__hit) {
108
+ transform: translateX(50%);
114
109
  }
115
110
 
116
- :is([dir='rtl'] .astryx-resize-handle[data-direction='horizontal'] > .astryx-resize-handle__hit[data-bias='start']) {
117
- transform: translateX(calc(-1 * (3px + var(--astryx-spacing-1, 4px)) + 6.5px));
118
- }
119
-
120
- :is([dir='rtl'] .astryx-resize-handle[data-direction='horizontal'] > .astryx-resize-handle__hit[data-bias='end']) {
121
- transform: translateX(calc(1 * (3px + var(--astryx-spacing-1, 4px)) + 6.5px));
122
- }
123
-
124
- .astryx-resize-handle[data-direction='vertical'] > .astryx-resize-handle__hit[data-bias='start'] {
125
- inset-block-start: 0;
126
- transform: translateY(calc(-1 * (3px + var(--astryx-spacing-1, 4px)) - 6.5px));
127
- }
128
-
129
- .astryx-resize-handle[data-direction='vertical'] > .astryx-resize-handle__hit[data-bias='end'] {
130
- inset-block-start: 0;
131
- transform: translateY(calc(1 * (3px + var(--astryx-spacing-1, 4px)) - 6.5px));
111
+ .astryx-resize-handle[data-direction='vertical'] > .astryx-resize-handle__hit {
112
+ inset-block-start: 50%;
113
+ height: min(var(--astryx-spacing-4, 16px), var(--_resize-pane-length, 100vh));
114
+ transform: translateY(-50%);
132
115
  }
133
116
 
134
117
  .astryx-resize-handle-pill {
135
118
  position: absolute;
136
119
  z-index: 2;
137
- pointer-events: none;
120
+ touch-action: none;
121
+ user-select: none;
138
122
  border-radius: var(--astryx-radius-full, 9999px);
139
123
  background-color: var(--astryx-divider-color-subtle, #00000014);
140
124
  transition-property: opacity, background-color, transform;
@@ -144,21 +128,66 @@
144
128
  }
145
129
 
146
130
  .astryx-resize-handle[data-direction='horizontal'] > .astryx-resize-handle-pill {
131
+ cursor: col-resize;
147
132
  width: 3px;
148
133
  height: var(--astryx-spacing-8, 32px);
149
134
  top: 50%;
150
135
  }
151
136
 
152
137
  .astryx-resize-handle[data-direction='vertical'] > .astryx-resize-handle-pill {
138
+ cursor: row-resize;
153
139
  width: var(--astryx-spacing-8, 32px);
154
140
  height: 3px;
155
141
  inset-inline-start: 50%;
156
142
  }
157
143
 
144
+ /* 画出来的握把就是抓手,收起或禁用时不接管指针。 */
145
+ .astryx-resize-handle-pill[data-hidden],
146
+ .astryx-resize-handle[data-disabled] > .astryx-resize-handle-pill {
147
+ pointer-events: none;
148
+ }
149
+
158
150
  .astryx-resize-handle-pill[data-hidden] {
159
151
  opacity: 0;
160
152
  }
161
153
 
154
+ .astryx-resize-handle[data-active] > .astryx-resize-handle-pill[data-hidden] {
155
+ pointer-events: auto;
156
+ }
157
+
158
+ /*
159
+ * 悬停才显示的握把可能落在抓取区之外。握把带一段看不见的延伸,只朝分隔条一侧伸出那一格空隙,
160
+ * 指针从抓取区移向握把的路上悬停不会丢。握把的偏移是物理方向,所以延伸也用物理方向。
161
+ */
162
+ .astryx-resize-handle-pill[data-hidden]::before {
163
+ content: '';
164
+ position: absolute;
165
+ }
166
+
167
+ .astryx-resize-handle[data-direction='horizontal'] > .astryx-resize-handle-pill[data-hidden][data-side='start']::before {
168
+ inset-block: 0;
169
+ left: 0;
170
+ right: calc(-1 * var(--astryx-spacing-1, 4px) - 1px);
171
+ }
172
+
173
+ .astryx-resize-handle[data-direction='horizontal'] > .astryx-resize-handle-pill[data-hidden][data-side='end']::before {
174
+ inset-block: 0;
175
+ right: 0;
176
+ left: calc(-1 * var(--astryx-spacing-1, 4px) - 1px);
177
+ }
178
+
179
+ .astryx-resize-handle[data-direction='vertical'] > .astryx-resize-handle-pill[data-hidden][data-side='start']::before {
180
+ inset-inline: 0;
181
+ top: 0;
182
+ bottom: calc(-1 * var(--astryx-spacing-1, 4px) - 1px);
183
+ }
184
+
185
+ .astryx-resize-handle[data-direction='vertical'] > .astryx-resize-handle-pill[data-hidden][data-side='end']::before {
186
+ inset-inline: 0;
187
+ bottom: 0;
188
+ top: calc(-1 * var(--astryx-spacing-1, 4px) - 1px);
189
+ }
190
+
162
191
  .astryx-resize-handle[data-active] > .astryx-resize-handle-pill {
163
192
  opacity: 1;
164
193
  }
@@ -10,6 +10,19 @@
10
10
  scrollbar-width: auto;
11
11
  }
12
12
 
13
+ /* 触屏保留平台自己的滚动指示条:iOS 只在滚动时显示它;写了颜色就会变成一条淡淡的常驻条,下拉露出的空隙里也看得见。 */
14
+ @media (pointer: coarse) {
15
+ .astryx-scrollable-area {
16
+ scrollbar-color: auto;
17
+ }
18
+ }
19
+
20
+ @media (forced-colors: active) {
21
+ .astryx-scrollable-area {
22
+ scrollbar-color: auto;
23
+ }
24
+ }
25
+
13
26
  .astryx-scrollable-area:focus-visible {
14
27
  outline: var(--astryx-focus-outline-width, 2px) var(--astryx-focus-outline-style, solid) var(--astryx-focus-outline-color, currentcolor);
15
28
  outline-offset: var(--astryx-focus-outline-offset, 3px);
@@ -13,9 +13,18 @@
13
13
  min-height: var(--astryx-input-height-sm, 28px);
14
14
  }
15
15
 
16
+ /*
17
+ * 三条道:两侧的道平分中间让出的宽度,中间一条留在正中,各自放得进自己的一半。
18
+ * 挤不下时整行换行,尾部的道挪到下一行;中间一条放不进首部旁边时也跟着挪。
19
+ * 竖向工具栏里三条道仍然并排,只是交叉轴改为拉伸。
20
+ */
16
21
  .astryx-toolbar--centered {
17
- display: grid;
18
- grid-template-columns: 1fr auto 1fr;
22
+ flex-wrap: wrap;
23
+ }
24
+
25
+ .astryx-toolbar--centered.astryx-toolbar--vertical {
26
+ flex-direction: row;
27
+ align-items: stretch;
19
28
  }
20
29
 
21
30
  .astryx-toolbar--vertical {
@@ -66,9 +75,36 @@
66
75
  margin-inline-end: calc(-1 * var(--_edge-comp-inset));
67
76
  }
68
77
 
78
+ /*
79
+ * 中间一条的基准宽度是它的最小宽度,所以文字碰到两侧之前整行先换行;
80
+ * 单独占一行且比内容还窄时它会缩小,标签页因此能滚动。槽本身不裁剪,免得切掉外圈子元素的焦点环和阴影。
81
+ */
69
82
  .astryx-toolbar__slot--center {
70
83
  justify-content: center;
84
+ flex: 1000 1 min-content;
71
85
  min-width: 0;
86
+ max-width: max-content;
87
+ }
88
+
89
+ /*
90
+ * 两侧的道把控件排在一行里,所以行先换行;只有比工具栏还宽的道才折自己的控件。
91
+ * 边缘补偿用负外边距把道拉出去,flex 会把它算进这条道的份额,
92
+ * 这里用基准宽度把这部分还回去,中间一条才能留在正中。
93
+ */
94
+ .astryx-toolbar--centered > .astryx-toolbar__slot--start,
95
+ .astryx-toolbar--centered > .astryx-toolbar__slot--end {
96
+ flex: 1 1 0px;
97
+ flex-wrap: wrap;
98
+ min-width: fit-content;
99
+ }
100
+
101
+ .astryx-toolbar--centered > .astryx-toolbar__slot:has(> [data-astryx-edge-comp]:first-child),
102
+ .astryx-toolbar--centered > .astryx-toolbar__slot:has(> [data-astryx-edge-comp]:last-child:not([data-astryx-has-layer])) {
103
+ flex-basis: var(--_edge-comp-inset);
104
+ }
105
+
106
+ .astryx-toolbar--centered > .astryx-toolbar__slot:has(> [data-astryx-edge-comp]:first-child):has(> [data-astryx-edge-comp]:last-child:not([data-astryx-has-layer])) {
107
+ flex-basis: calc(2 * var(--_edge-comp-inset));
72
108
  }
73
109
  .astryx-toolbar__slot--end { justify-content: flex-end; margin-inline-start: auto; }
74
110
 
@@ -102,5 +138,5 @@
102
138
  flex-wrap: nowrap;
103
139
  min-width: 0;
104
140
  }
105
- .astryx-toolbar--centered .astryx-toolbar__slot--end { margin-inline-start: 0; }
141
+ .astryx-toolbar--centered > .astryx-toolbar__slot--end { margin-inline-start: 0; }
106
142
  }
@@ -1,62 +0,0 @@
1
- //#region src/utils/inputPresentation.ts
2
- /**
3
- * Typed as the narrower policy because the default opens a picker for every
4
- * component; it is still a valid `InputPresentation`.
5
- */
6
- const DEFAULT_INPUT_PRESENTATION = "adaptive-native";
7
- /**
8
- * Map a deprecated `nativePicker` value to its `presentation` equivalent for
9
- * a component whose every surface opens a picker (`DateInput`,
10
- * `DateTimeInput`). Their released `never` was Astryx's own pickers on every
11
- * pointer, so no value maps to `text-input` — which is what lets the return
12
- * type exclude it.
13
- */
14
- function pickerPresentationFromNativePicker(nativePicker) {
15
- switch (nativePicker) {
16
- case "touch": return "adaptive-native";
17
- case "always": return "native";
18
- case "never": return "adaptive-bottom-sheet";
19
- }
20
- }
21
- /**
22
- * Map a deprecated `nativePicker` value to its `presentation` equivalent.
23
- * `TimeInput` differs: its released `never` is the typed field on every
24
- * pointer, so it maps to `text-input`, not a sheet policy.
25
- */
26
- function presentationFromNativePicker(nativePicker, component) {
27
- if (component === "time" && nativePicker === "never") return "text-input";
28
- return pickerPresentationFromNativePicker(nativePicker);
29
- }
30
- /**
31
- * The effective picker-only policy: explicit `presentation` wins over the
32
- * deprecated prop. The narrow twin of {@link effectiveInputPresentation} for
33
- * `DateInput` and `DateTimeInput`, whose `presentation` cannot be
34
- * `text-input`.
35
- */
36
- function effectivePickerPresentation(presentation, nativePicker) {
37
- if (presentation !== void 0) return presentation;
38
- if (nativePicker !== void 0) return pickerPresentationFromNativePicker(nativePicker);
39
- return DEFAULT_INPUT_PRESENTATION;
40
- }
41
- /** The effective policy: explicit `presentation` wins over the deprecated prop. */
42
- function effectiveInputPresentation(presentation, nativePicker, component) {
43
- if (presentation !== void 0) return presentation;
44
- if (nativePicker !== void 0) return presentationFromNativePicker(nativePicker, component);
45
- return DEFAULT_INPUT_PRESENTATION;
46
- }
47
- /** Resolve a picker-only policy to the surface rendered for the current pointer. */
48
- function resolvePickerPresentation(presentation, isCoarsePointer) {
49
- switch (presentation) {
50
- case "popover": return "desktop";
51
- case "bottom-sheet": return "sheet";
52
- case "native": return "native";
53
- case "adaptive-bottom-sheet": return isCoarsePointer ? "sheet" : "desktop";
54
- case "adaptive-native": return isCoarsePointer ? "native" : "desktop";
55
- }
56
- }
57
- /** Resolve a policy to the surface rendered for the current pointer. */
58
- function resolveInputPresentation(presentation, isCoarsePointer) {
59
- return presentation === "text-input" ? "text-input" : resolvePickerPresentation(presentation, isCoarsePointer);
60
- }
61
- //#endregion
62
- export { presentationFromNativePicker as a, pickerPresentationFromNativePicker as i, effectiveInputPresentation as n, resolveInputPresentation as o, effectivePickerPresentation as r, resolvePickerPresentation as s, DEFAULT_INPUT_PRESENTATION as t };
@@ -1,20 +0,0 @@
1
- //#region src/composables/internal/resizableChannel.ts
2
- /**
3
- * Enter 和双击要恢复折叠前的尺寸。这个能力不放进导出的 `ResizableProps`,
4
- * 手写的 props 没有登记,手柄就退回「收到最小值」。
5
- */
6
- const collapseControls = /* @__PURE__ */ new WeakMap();
7
- /** 没有配置上限时,分隔条要报的那个最大值。手写 props 不在这张表里。 */
8
- const effectiveMaxima = /* @__PURE__ */ new WeakMap();
9
- function registerResizableChannel(props, controls, effectiveMax) {
10
- collapseControls.set(props, controls);
11
- if (effectiveMax != null && Number.isFinite(effectiveMax)) effectiveMaxima.set(props, effectiveMax);
12
- }
13
- function getCollapseControls(props) {
14
- return collapseControls.get(props);
15
- }
16
- function getEffectiveMaxPx(props) {
17
- return effectiveMaxima.get(props);
18
- }
19
- //#endregion
20
- export { getEffectiveMaxPx as n, registerResizableChannel as r, getCollapseControls as t };