@astryx-vue/core 0.43.5 → 0.44.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 (233) hide show
  1. package/dist/AlertDialog/index.js +1 -1
  2. package/dist/{AlertDialog-CbYI2lSn.js → AlertDialog-RCTKkU3N.js} +4 -4
  3. package/dist/Avatar/index.js +1 -1
  4. package/dist/{Avatar-DthdM-zn.js → Avatar-NYFG3hmj.js} +1 -1
  5. package/dist/AvatarGroup/index.d.ts +1 -1
  6. package/dist/Banner/index.d.ts +1 -1
  7. package/dist/Banner/index.js +1 -1
  8. package/dist/{Banner-DBj4G2ln.js → Banner-B4M75WYo.js} +1 -1
  9. package/dist/BottomSheet/index.d.ts +1 -1
  10. package/dist/Breadcrumbs/index.js +1 -1
  11. package/dist/{Breadcrumbs-Divj8J_1.js → Breadcrumbs-C77XPTbH.js} +1 -1
  12. package/dist/Button/index.d.ts +1 -1
  13. package/dist/Button/index.js +1 -1
  14. package/dist/{Button-cAa9AeKm.js → Button-CWzILTBG.js} +2 -2
  15. package/dist/ButtonGroup/index.d.ts +1 -1
  16. package/dist/ButtonGroup/index.js +1 -1
  17. package/dist/{ButtonGroup-CVEW53-t.js → ButtonGroup-CQKamSTm.js} +2 -2
  18. package/dist/Calendar/index.d.ts +1 -1
  19. package/dist/Carousel/index.d.ts +1 -1
  20. package/dist/Carousel/index.js +1 -1
  21. package/dist/{Carousel-Bz2GuVdq.js → Carousel-DhYAjVyA.js} +1 -1
  22. package/dist/Center/index.d.ts +1 -1
  23. package/dist/Chat/index.d.ts +1 -1
  24. package/dist/Chat/index.js +1 -1
  25. package/dist/{Chat-Cr_MEm-a.js → Chat-Bo3jDoY2.js} +3 -3
  26. package/dist/CheckboxInput/index.d.ts +1 -1
  27. package/dist/CheckboxInput/index.js +1 -1
  28. package/dist/{CheckboxInput-Bxkwj-UA.js → CheckboxInput-D7uMSWmO.js} +2 -2
  29. package/dist/CheckboxList/index.d.ts +1 -1
  30. package/dist/CheckboxList/index.js +1 -1
  31. package/dist/{CheckboxListItem-dQ1xloAV.js → CheckboxListItem-BZSjclkl.js} +4 -4
  32. package/dist/ClickableCard/index.d.ts +1 -1
  33. package/dist/Code/index.js +2 -2
  34. package/dist/{Code-Buhb8IAF.js → Code-CCVKqsZX.js} +1 -1
  35. package/dist/{CodeBlock-BGaLnVrQ.js → CodeBlock-1VBxZC5q.js} +1 -1
  36. package/dist/Collapsible/index.d.ts +1 -1
  37. package/dist/CommandPalette/index.d.ts +1 -1
  38. package/dist/ComplexSelector/index.js +1 -1
  39. package/dist/{ComplexSelector-QoKg-f6B.js → ComplexSelector-BnxKjvOf.js} +2 -2
  40. package/dist/ContextMenu/index.d.ts +1 -1
  41. package/dist/ContextMenu/index.js +1 -1
  42. package/dist/{ContextMenu-C941I0rG.js → ContextMenu-COoWQvDI.js} +1 -1
  43. package/dist/DateInput/index.d.ts +1 -1
  44. package/dist/DateInput/index.js +1 -1
  45. package/dist/{DateInput-D-QtIGlw.js → DateInput-vpZpaOqD.js} +2 -2
  46. package/dist/DateRangeInput/index.d.ts +1 -1
  47. package/dist/DateRangeInput/index.js +1 -1
  48. package/dist/{DateRangeInput-IpznCdkO.js → DateRangeInput-Bfa1Btc6.js} +3 -3
  49. package/dist/DateTimeInput/index.d.ts +1 -1
  50. package/dist/DateTimeInput/index.js +1 -1
  51. package/dist/{DateTimeInput-DMptZyjX.js → DateTimeInput-DD8euLAL.js} +4 -4
  52. package/dist/Dialog/index.js +1 -1
  53. package/dist/{DialogHeader-XUjy9Mxx.js → DialogHeader-DkpI73Rn.js} +1 -1
  54. package/dist/Divider/index.d.ts +1 -1
  55. package/dist/Drawer/index.d.ts +1 -1
  56. package/dist/Drawer/index.js +1 -1
  57. package/dist/{Drawer-BkF0RsKw.js → Drawer-BJN7f9iU.js} +1 -1
  58. package/dist/DropdownMenu/index.js +1 -1
  59. package/dist/{DropdownMenu-S8usz-Yk.js → DropdownMenu-DyRSPXZW.js} +2 -2
  60. package/dist/EmptyState/index.js +1 -1
  61. package/dist/{EmptyState-BU4RhwEo.js → EmptyState-Dd1opiK7.js} +2 -2
  62. package/dist/Field/index.js +3 -3
  63. package/dist/{Field-DIjIgiMo.js → Field-BiLdRQCq.js} +1 -1
  64. package/dist/{FieldInfoTip-D93Kcdo-.js → FieldInfoTip-DcHfO3cg.js} +1 -1
  65. package/dist/{FieldLabel-B-jJ2ETs.js → FieldLabel-VQOjytac.js} +1 -1
  66. package/dist/FileInput/index.js +1 -1
  67. package/dist/{FileInput-n0pEzUQR.js → FileInput-cbbH72PV.js} +3 -3
  68. package/dist/Heading/index.js +1 -1
  69. package/dist/{Heading-BBcdemCU.js → Heading-DHuEWiNg.js} +1 -1
  70. package/dist/HoverCard/index.js +1 -1
  71. package/dist/{HoverCard-B8q3MpjF.js → HoverCard-DWr12brr.js} +2 -2
  72. package/dist/IconButton/index.js +1 -1
  73. package/dist/{IconButton-CxVxw2hc.js → IconButton-Bd0TmKGO.js} +1 -1
  74. package/dist/InfoTip/index.d.ts +1 -1
  75. package/dist/InfoTip/index.js +1 -1
  76. package/dist/{InfoTip-BgcWXI1k.js → InfoTip-CYz0ZVbO.js} +2 -2
  77. package/dist/{InputClearButton-Bn29CBnZ.js → InputClearButton-oqum48Bd.js} +1 -1
  78. package/dist/InputGroup/index.js +1 -1
  79. package/dist/{InputGroup-B3kkylCQ.js → InputGroup-CftqWOKd.js} +1 -1
  80. package/dist/Lightbox/index.js +1 -1
  81. package/dist/{Lightbox-Ims5yQjw.js → Lightbox-zLp_V3-j.js} +1 -1
  82. package/dist/Link/index.d.ts +1 -1
  83. package/dist/Link/index.js +1 -1
  84. package/dist/{Link-DlzfqBMW.js → Link-By3uOCxb.js} +1 -1
  85. package/dist/List/index.d.ts +1 -1
  86. package/dist/List/index.js +2 -2
  87. package/dist/{List-C6Zj2WCv.js → List-DJ24b8z9.js} +1 -1
  88. package/dist/{ListItem-CXsgM4xN.js → ListItem-C-ojoRaq.js} +1 -1
  89. package/dist/Markdown/index.d.ts +1 -1
  90. package/dist/Markdown/index.js +1 -1
  91. package/dist/{Markdown-DtFXmWK6.js → Markdown-CGT2VGto.js} +3 -3
  92. package/dist/MetadataList/index.d.ts +1 -1
  93. package/dist/MoreMenu/index.d.ts +1 -1
  94. package/dist/MoreMenu/index.js +1 -1
  95. package/dist/{MoreMenu-BxC8oVyA.js → MoreMenu-B5yaI1km.js} +4 -4
  96. package/dist/MultiSelector/index.d.ts +1 -1
  97. package/dist/MultiSelector/index.js +1 -1
  98. package/dist/{MultiSelector-4N6ZQdr1.js → MultiSelector-BggYBW9X.js} +3 -3
  99. package/dist/{NavDisclosure-B1Rk9uWm.js → NavDisclosure-BZntpJLd.js} +46 -4
  100. package/dist/{NavHeadingSurface-B8vSLYn8.js → NavHeadingSurface-F2xoWvlv.js} +36 -25
  101. package/dist/NavItem/index.d.ts +1 -1
  102. package/dist/NavMenu/index.d.ts +1 -1
  103. package/dist/NavMenu/index.js +3 -3
  104. package/dist/{NavMenu-C78sH1q0.js → NavMenu-B14_ovBG.js} +1 -1
  105. package/dist/{NavMenuItem-CCWYKpRJ.js → NavMenuItem-DMXY_6AO.js} +1 -1
  106. package/dist/NumberInput/index.d.ts +1 -1
  107. package/dist/NumberInput/index.js +1 -1
  108. package/dist/{NumberInput-CO3_Suv2.js → NumberInput-CQmyAC9u.js} +3 -3
  109. package/dist/OverflowList/index.d.ts +1 -1
  110. package/dist/OverflowList/index.js +1 -1
  111. package/dist/{OverflowList-CLEZqhaM.js → OverflowList-wrh7FgSu.js} +2 -2
  112. package/dist/Overlay/index.d.ts +1 -1
  113. package/dist/Pagination/index.d.ts +1 -1
  114. package/dist/Pagination/index.js +1 -1
  115. package/dist/{Pagination-_FAAwTkY.js → Pagination-BYSzfJNC.js} +23 -10
  116. package/dist/Popover/index.d.ts +1 -1
  117. package/dist/Popover/index.js +1 -1
  118. package/dist/{Popover-Bm13yzVR.js → Popover-CzfrvUf-.js} +3 -3
  119. package/dist/PowerSearch/index.d.ts +1 -1
  120. package/dist/PowerSearch/index.js +1 -1
  121. package/dist/{PowerSearch-BxH88nbf.js → PowerSearch-2hGn7uOl.js} +24 -24
  122. package/dist/ProgressBar/index.d.ts +1 -1
  123. package/dist/ProgressBar/index.js +1 -1
  124. package/dist/{ProgressBar-BoZQV2l5.js → ProgressBar-EB4C8g83.js} +1 -1
  125. package/dist/Radio/index.d.ts +1 -1
  126. package/dist/Radio/index.js +1 -1
  127. package/dist/{RadioGroup-BpOtsMJw.js → RadioGroup-kFw6aAKj.js} +3 -3
  128. package/dist/RadioList/index.d.ts +1 -1
  129. package/dist/RadioList/index.js +1 -1
  130. package/dist/{RadioListItem-D_vekWsm.js → RadioListItem-CssFcD1Y.js} +1 -1
  131. package/dist/ScrollableArea/index.d.ts +1 -1
  132. package/dist/SegmentedControl/index.js +1 -1
  133. package/dist/{SegmentedControl-9xB-4P3G.js → SegmentedControl-C5I9xTij.js} +1 -1
  134. package/dist/SelectableCard/index.d.ts +1 -1
  135. package/dist/Selector/index.d.ts +1 -1
  136. package/dist/Selector/index.js +1 -1
  137. package/dist/{Selector-C6ESJ-zk.js → Selector-Bq-ko1bT.js} +2 -2
  138. package/dist/SideNav/index.d.ts +1 -1
  139. package/dist/SideNav/index.js +1 -1
  140. package/dist/{SideNav-BwRn6ryA.js → SideNav-gW6EWQkB.js} +71 -49
  141. package/dist/Slider/index.js +1 -1
  142. package/dist/{Slider-Bg_qnNFt.js → Slider-BWGuROfN.js} +1 -1
  143. package/dist/StatusDot/index.js +1 -1
  144. package/dist/{StatusDot-fYRbb3nd.js → StatusDot-k_LR-nCI.js} +1 -1
  145. package/dist/Stepper/index.d.ts +1 -1
  146. package/dist/Switch/index.d.ts +1 -1
  147. package/dist/Switch/index.js +1 -1
  148. package/dist/{Switch-kRxVa5oQ.js → Switch-CSxnI68c.js} +2 -2
  149. package/dist/TabList/index.d.ts +1 -1
  150. package/dist/TabList/index.js +1 -1
  151. package/dist/{TabList-B2dfG_rt.js → TabList-Bnd4Y_fr.js} +10 -3
  152. package/dist/Table/index.d.ts +1 -1
  153. package/dist/Table/index.js +1 -1
  154. package/dist/{Table-ADs9W5i_.js → Table-B_cF2VxQ.js} +10 -10
  155. package/dist/Text/index.js +1 -1
  156. package/dist/{Text-Czw1L8Zc.js → Text-S8qRNR8c.js} +1 -1
  157. package/dist/TextArea/index.d.ts +1 -1
  158. package/dist/TextArea/index.js +1 -1
  159. package/dist/{TextArea-CXeK9k3F.js → TextArea-Bp9oOJRv.js} +4 -4
  160. package/dist/TextInput/index.d.ts +1 -1
  161. package/dist/TextInput/index.js +1 -1
  162. package/dist/{TextInput-BDa8jBbY.js → TextInput-r6SGYAJV.js} +4 -4
  163. package/dist/Thumbnail/index.js +1 -1
  164. package/dist/{Thumbnail-C7Hi97ND.js → Thumbnail-CYvBjbkJ.js} +2 -2
  165. package/dist/{TimeField-DIcpNQIQ.js → TimeField-DPTZEtMO.js} +2 -2
  166. package/dist/TimeInput/index.d.ts +1 -1
  167. package/dist/TimeInput/index.js +1 -1
  168. package/dist/{TimeInput-DI2yFG9f.js → TimeInput-BXZGp51E.js} +2 -2
  169. package/dist/Timer/index.js +1 -1
  170. package/dist/{Timer-DUWtr4HW.js → Timer-8qoKxyOj.js} +1 -1
  171. package/dist/Timestamp/index.d.ts +1 -1
  172. package/dist/Timestamp/index.js +1 -1
  173. package/dist/{Timestamp-dTZ7YIWw.js → Timestamp-C1y_Uo2J.js} +3 -3
  174. package/dist/Toast/index.js +1 -1
  175. package/dist/{Toast-CUKO9z_S.js → Toast-DejhCPRQ.js} +1 -1
  176. package/dist/ToggleButton/index.d.ts +1 -1
  177. package/dist/ToggleButton/index.js +1 -1
  178. package/dist/{ToggleButton-C7D_xmkT.js → ToggleButton-CORp2QWg.js} +3 -3
  179. package/dist/Tokenizer/index.d.ts +1 -1
  180. package/dist/Tokenizer/index.js +1 -1
  181. package/dist/{Tokenizer-CLByEOf-.js → Tokenizer-C85VTMGP.js} +9 -9
  182. package/dist/Toolbar/index.d.ts +1 -1
  183. package/dist/Tooltip/index.js +2 -2
  184. package/dist/{Tooltip-BYXFoOwa.js → Tooltip-Du2qh5Oz.js} +1 -1
  185. package/dist/TopNav/index.d.ts +1 -1
  186. package/dist/TopNav/index.js +1 -1
  187. package/dist/{TopNav-C-Rxvn3-.js → TopNav-CGwj38SG.js} +30 -18
  188. package/dist/TreeList/index.d.ts +1 -1
  189. package/dist/Typeahead/index.js +2 -2
  190. package/dist/{Typeahead-DgBTcIoM.js → Typeahead-5rX0iyrv.js} +4 -4
  191. package/dist/composables/index.js +4 -4
  192. package/dist/{composables-Dr2d0LpH.js → composables-BN74Vfvk.js} +1 -1
  193. package/dist/{index-CQtvsQ1J.d.ts → index-8fseMirV.d.ts} +5 -5
  194. package/dist/{index-DgNCHxvu.d.ts → index-B7-c8UTz.d.ts} +3 -3
  195. package/dist/{index-0RIgvtdm.d.ts → index-B_XTzQhm.d.ts} +5 -5
  196. package/dist/{index-BZ_lQz43.d.ts → index-BbHuan0g.d.ts} +1 -1
  197. package/dist/{index-ZKBj_1nu.d.ts → index-BfFpUr1B.d.ts} +1 -1
  198. package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
  199. package/dist/{index-BjqoHLMq.d.ts → index-C1e8LNx2.d.ts} +1 -1
  200. package/dist/{index-CkkybuPJ.d.ts → index-C6smY0js.d.ts} +1 -1
  201. package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.d.ts} +1 -1
  202. package/dist/{index-BPnP3Abd.d.ts → index-C9iidKbL.d.ts} +2 -2
  203. package/dist/{index-COgrQZIL.d.ts → index-CdvmnNMH.d.ts} +1 -1
  204. package/dist/{index-mK1ICsVg.d.ts → index-Cm36VS1A.d.ts} +2 -2
  205. package/dist/{index-CD1-Hqm0.d.ts → index-CmqD5Ya9.d.ts} +2 -2
  206. package/dist/{index-DOlcm-Ra.d.ts → index-CtR2_TiL.d.ts} +11 -0
  207. package/dist/{index-Dno9YNVJ.d.ts → index-DCH2D3wa.d.ts} +6 -6
  208. package/dist/{index-CI-FbXLB.d.ts → index-DGVOnHpo.d.ts} +3 -3
  209. package/dist/{index-CCa_dvoF.d.ts → index-Ds4dOCSy.d.ts} +3 -3
  210. package/dist/{index-utZGF4GR.d.ts → index-NOXYEdOI.d.ts} +1 -1
  211. package/dist/{index-BZ9ki2Po.d.ts → index-YiWq-3TF.d.ts} +67 -56
  212. package/dist/{index-BKnyTWPM.d.ts → index-ZbNwGVkS.d.ts} +1 -1
  213. package/dist/{index-Ak1b0V24.d.ts → index-a6o69uPN.d.ts} +1 -1
  214. package/dist/index.d.ts +21 -21
  215. package/dist/index.js +75 -75
  216. package/dist/internal/touch.js +1 -1
  217. package/dist/{stillPointerGate-D15jGSjP.js → stillPointerGate-BMwmHp6q.js} +1 -1
  218. package/dist/{tooltipFocusRules-BBshpLxm.js → tooltipFocusRules-Bj78PQCe.js} +1 -1
  219. package/dist/{tooltipTriggerRules-BjnT3wIz.js → tooltipTriggerRules-DR2MfrQ3.js} +1 -1
  220. package/dist/{useActionGroupTracking-BxTKiVux.js → useActionGroupTracking-CXIqZDh3.js} +1 -1
  221. package/dist/{useDismiss-ChlwPVfw.js → useDismiss-BqTTrMi-.js} +6 -6
  222. package/dist/{useInputStatusIcon-C1zyUxXl.js → useInputStatusIcon-DXGI-PHr.js} +1 -1
  223. package/dist/{useTooltip-DSB9njlb.js → useTooltip-BiNOqNAV.js} +2 -2
  224. package/dist/{useTouchHitArea-gP3O_wIA.js → useTouchHitArea-Cs4K31MA.js} +38 -3
  225. package/dist/{useTruncationTooltip-D8trOJ_a.js → useTruncationTooltip-DHNvQpxv.js} +3 -3
  226. package/dist/{useTypeaheadMenuConfig-Cm5adRdf.js → useTypeaheadMenuConfig-Cry4Kgfr.js} +1 -1
  227. package/package.json +1 -1
  228. package/styles/nav-item.css +2 -1
  229. package/styles/nav-menu.css +9 -0
  230. package/styles/pagination.css +14 -0
  231. package/styles/side-nav.css +10 -0
  232. package/styles/tab-menu.css +5 -0
  233. package/styles/top-nav.css +11 -0
@@ -176,15 +176,15 @@ function isAnchorInViewport(anchor, viewport) {
176
176
  return anchor.right > 0 && anchor.bottom > 0 && anchor.left < viewport.width && anchor.top < viewport.height;
177
177
  }
178
178
  /**
179
- * 让浮层盖在锚点原位上:浮层左上角比锚点左上角各外扩 `OVERLAP_OUTSET`,
179
+ * 让浮层盖在锚点原位上:浮层左上角比锚点左上角各外扩 `outset`(默认 `OVERLAP_OUTSET`),
180
180
  * 宽度至少比锚点宽两倍外扩距离。浮层里第一行内容离浮层边缘也是这个距离时,
181
181
  * 正好落在锚点内容原来的位置上。最终位置保持在视口内。
182
182
  */
183
- function computeOverlapPosition(anchor, layer, viewport, gutter = resolveLayerGutter()) {
184
- const minWidth = anchor.width + 16;
183
+ function computeOverlapPosition(anchor, layer, viewport, gutter = resolveLayerGutter(), outset = 8) {
184
+ const minWidth = anchor.width + outset * 2;
185
185
  const width = Math.max(layer.width, minWidth);
186
- const top = anchor.top - 8;
187
- const left = anchor.left - 8;
186
+ const top = anchor.top - outset;
187
+ const left = anchor.left - outset;
188
188
  if (!isAnchorInViewport(anchor, viewport)) return {
189
189
  top,
190
190
  left,
@@ -244,7 +244,7 @@ function usePositionedLayer(options) {
244
244
  height: options.keepAnchorClear === true ? Math.max(layerEl.offsetHeight, layerEl.scrollHeight) : layerEl.offsetHeight
245
245
  };
246
246
  if (options.overlap?.value === true) {
247
- position.value = computeOverlapPosition(anchorRect, box, viewport, gutter.value);
247
+ position.value = computeOverlapPosition(anchorRect, box, viewport, gutter.value, options.overlapInset?.());
248
248
  return;
249
249
  }
250
250
  const placed = computeLayerPosition(anchorRect, box, viewport, placement.value, alignment.value, gap, gutter.value);
@@ -1,5 +1,5 @@
1
1
  import { t as _sfc_main } from "./FieldIcon-C6A69-um.js";
2
- import { t as _sfc_main$1 } from "./FieldInfoTip-D93Kcdo-.js";
2
+ import { t as _sfc_main$1 } from "./FieldInfoTip-DcHfO3cg.js";
3
3
  import { computed, toValue } from "vue";
4
4
  //#region src/composables/useInputStatusIcon.ts
5
5
  /**
@@ -2,13 +2,13 @@ import { a as holdMouseMoves, o as isMouseMove } from "./inputStream-CFvjNDgT.js
2
2
  import { o as registerLayerSurface } from "./interactiveAncestor-CEsQ_YQW.js";
3
3
  import { r as visibleText } from "./cutText-Cg1a7iug.js";
4
4
  import { r as useResolvedLayerTeleport } from "./useLayerMountTarget-zwZQglr2.js";
5
- import { n as useLayer } from "./tooltipTriggerRules-BjnT3wIz.js";
5
+ import { n as useLayer } from "./tooltipTriggerRules-DR2MfrQ3.js";
6
6
  import { t as _sfc_main$1 } from "./LayerContentBoundary-CMjCvF35.js";
7
7
  import { a as trackInteractionModality } from "./interactionModality-4Km2ibsq.js";
8
8
  import { t as renderedText } from "./renderedText-BwJdmps3.js";
9
9
  import { t as useAnnounce } from "./announce-GU01Oix2.js";
10
10
  import { t as useTouchTriggerInternal } from "./useTouchTriggerInternal-CCk8lhbz.js";
11
- import { n as opensOnFocus, r as useHoverLayerDismiss, t as createFocusGate } from "./tooltipFocusRules-BBshpLxm.js";
11
+ import { n as opensOnFocus, r as useHoverLayerDismiss, t as createFocusGate } from "./tooltipFocusRules-Bj78PQCe.js";
12
12
  import { Teleport, computed, createBlock, createCommentVNode, createElementBlock, createTextVNode, createVNode, defineComponent, inject, mergeProps, onMounted, onScopeDispose, openBlock, renderSlot, shallowRef, toDisplayString, toValue, unref, vShow, watch, withCtx, withDirectives } from "vue";
13
13
  import "../styles/tooltip.css";
14
14
  //#region src/Tooltip/TooltipSurface.vue
@@ -1,6 +1,6 @@
1
1
  import { c as pressFadeMs, f as isTrackedByGroup, t as PRESSED_ATTRIBUTE, y as PRESS_GROUP_ITEM_ATTRIBUTE } from "./pressSlot-WuaTVSU4.js";
2
2
  import { t as armClickGuard } from "./clickGuard-DOe-7mpi.js";
3
- import { toValue, watch } from "vue";
3
+ import { onScopeDispose, toValue, watch } from "vue";
4
4
  import "../styles/touch-hit-area.css";
5
5
  /** 不长:热区就是目标本身。 */
6
6
  const NO_HIT_INSETS = {
@@ -883,7 +883,8 @@ function watchHitArea(element, onInsets, { growth, checkAtPress = true } = {}) {
883
883
  * @file useTouchHitArea.ts
884
884
  * @input 一个元素、它此刻是否接受点按,以及(可选)它怎么长
885
885
  * @output `useTouchHitArea`:粗指针下把元素的热区写成 `--astryx-hit-inset-*`,
886
- * 给 touch-hit-area.css 的热区伪元素读;`GROUP_HIT_AREA`:组的长法
886
+ * 给 touch-hit-area.css 的热区伪元素读;`useTouchHitAreas`:同样看着一组元素;
887
+ * `GROUP_HIT_AREA`:组的长法
887
888
  * @position 内部组合式函数。Button 的热区画在内容包裹层的 `::after` 上,
888
889
  * ButtonGroup 和 ToggleButtonGroup 的热区画在组根的 `::before` 上(压在成员下面)。
889
890
  */
@@ -916,5 +917,39 @@ function useTouchHitArea(element, enabled, options) {
916
917
  flush: "post"
917
918
  });
918
919
  }
920
+ /**
921
+ * 同时看着一组元素(例如 Pagination 的每个圆点)。每个元素各自往 44px 长,碰到邻居时收在一半间距处。
922
+ * 元素离开这一组、`enabled` 变假或卸载时,停下它并清掉写过的值。
923
+ */
924
+ function useTouchHitAreas(elements, enabled, options) {
925
+ const watched = /* @__PURE__ */ new Map();
926
+ function sync() {
927
+ const next = new Set(toValue(enabled) ? toValue(elements) ?? [] : []);
928
+ for (const [element, stop] of watched) if (!next.has(element)) {
929
+ stop();
930
+ watched.delete(element);
931
+ }
932
+ for (const element of next) {
933
+ if (watched.has(element)) continue;
934
+ let hasWritten = false;
935
+ const stop = watchHitArea(element, (insets) => {
936
+ hasWritten = true;
937
+ writeHitInsets(element, insets);
938
+ }, options);
939
+ watched.set(element, () => {
940
+ stop();
941
+ if (hasWritten) clearHitInsets(element);
942
+ });
943
+ }
944
+ }
945
+ watch(() => [toValue(enabled), ...toValue(elements) ?? []], sync, {
946
+ immediate: true,
947
+ flush: "post"
948
+ });
949
+ onScopeDispose(() => {
950
+ for (const stop of watched.values()) stop();
951
+ watched.clear();
952
+ });
953
+ }
919
954
  //#endregion
920
- export { resolveGroupTouch as i, useTouchHitArea as n, createActionGroupTracker as r, GROUP_HIT_AREA as t };
955
+ export { resolveGroupTouch as a, createActionGroupTracker as i, useTouchHitArea as n, useTouchHitAreas as r, GROUP_HIT_AREA as t };
@@ -1,7 +1,7 @@
1
- import { t as matchesFocusVisible } from "./tooltipTriggerRules-BjnT3wIz.js";
1
+ import { t as matchesFocusVisible } from "./tooltipTriggerRules-DR2MfrQ3.js";
2
2
  import { a as trackInteractionModality, t as getInteractionModality } from "./interactionModality-4Km2ibsq.js";
3
- import { r as tooltipPresentInterestKey } from "./useTooltip-DSB9njlb.js";
4
- import { t as _sfc_main$1 } from "./Tooltip-BYXFoOwa.js";
3
+ import { r as tooltipPresentInterestKey } from "./useTooltip-BiNOqNAV.js";
4
+ import { t as _sfc_main$1 } from "./Tooltip-Du2qh5Oz.js";
5
5
  import { n as useTruncation, t as truncatePlacement } from "./useTruncation-Cn8Ohj_1.js";
6
6
  import { computed, createBlock, createCommentVNode, defineComponent, openBlock, provide, shallowRef } from "vue";
7
7
  //#region src/Text/TruncationTooltip.vue
@@ -5,7 +5,7 @@ import { t as useAnnounce } from "./announce-GU01Oix2.js";
5
5
  import { n as useAsyncSource } from "./useAsyncSource-7GTcK8ep.js";
6
6
  import { t as useCombobox } from "./useCombobox-BbDP75hw.js";
7
7
  import { t as _sfc_main$3 } from "./Spinner-CQXQ0RqS.js";
8
- import { t as createStillPointerGate } from "./stillPointerGate-D15jGSjP.js";
8
+ import { t as createStillPointerGate } from "./stillPointerGate-BMwmHp6q.js";
9
9
  import { i as isOptionAction, n as searchResultMessage, r as OptionAction, t as useOptionActionGrid } from "./useOptionActionGrid-C7ibYM_A.js";
10
10
  import { Fragment, Teleport, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, guardReactiveProps, h, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, openBlock, ref, renderList, renderSlot, toDisplayString, toValue, unref, useSlots, useTemplateRef, vShow, watch, withCtx, withDirectives, withModifiers } from "vue";
11
11
  import "../styles/layer.css";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@astryx-vue/core",
3
3
  "type": "module",
4
- "version": "0.43.5",
4
+ "version": "0.44.0",
5
5
  "description": "Vue 3 components for the unofficial astryx-vue port of Astryx. Not affiliated with Meta.",
6
6
  "author": "ShenQingchuan",
7
7
  "license": "MIT",
@@ -128,7 +128,8 @@
128
128
  flex: none;
129
129
  align-items: center;
130
130
  justify-content: center;
131
- border-radius: var(--astryx-radius-full, 9999px);
131
+ /* 和单选框的圆点一样,在任何主题下都是圆的,不跟圆角令牌走。 */
132
+ border-radius: 50%;
132
133
  background: var(--astryx-color-accent);
133
134
  color: var(--astryx-color-on-accent);
134
135
  }
@@ -75,6 +75,15 @@
75
75
  outline: none;
76
76
  }
77
77
 
78
+ /*
79
+ * 标题菜单里,悬停底色和菜单的对比不到 3:1:键盘聚焦的项另画共用的焦点环,
80
+ * 往里收一个环宽,画在行内。指针聚焦只有底色。
81
+ */
82
+ .astryx-nav-heading-menu-item:focus-visible {
83
+ outline: var(--astryx-focus-outline-width, 2px) var(--astryx-focus-outline-style, solid) var(--astryx-focus-outline-color, currentcolor);
84
+ outline-offset: calc(-1 * var(--astryx-focus-outline-width, 2px));
85
+ }
86
+
78
87
  @media not all and (pointer: coarse) {
79
88
  .astryx-nav-menu-item:active:not(:disabled, .astryx-nav-menu-item--disabled) {
80
89
  background: var(--astryx-color-overlay-pressed);
@@ -69,7 +69,9 @@
69
69
  gap: var(--astryx-spacing-2, 8px);
70
70
  }
71
71
 
72
+ /* 定位元素:粗指针下的热区伪元素以圆点为包含块。 */
72
73
  .astryx-pagination-dot {
74
+ position: relative;
73
75
  width: 8px;
74
76
  height: 8px;
75
77
  padding: 0;
@@ -77,6 +79,18 @@
77
79
  border-radius: var(--astryx-radius-full, 999px);
78
80
  background: var(--astryx-color-border, #d4d4d4);
79
81
  cursor: pointer;
82
+ transition: background-color var(--astryx-duration-fast, 130ms) var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
83
+ }
84
+
85
+ /* 减少动效时换页的圆点不渐变:系统设置,或主题对所有人减少动效。 */
86
+ @media (prefers-reduced-motion: reduce) {
87
+ .astryx-pagination-dot {
88
+ transition-duration: 0s;
89
+ }
90
+ }
91
+
92
+ :where([data-astryx-reduced-motion]) .astryx-pagination-dot {
93
+ transition-duration: 0s;
80
94
  }
81
95
 
82
96
  .astryx-pagination-dot.is-active {
@@ -492,8 +492,10 @@
492
492
  transition-delay: 0s, 0s;
493
493
  }
494
494
 
495
+ /* min-width: 0 让下级的轨道保持列表宽度:长标签截短,不把展开的分组撑出侧栏。 */
495
496
  .astryx-side-nav-item__children-inner {
496
497
  min-height: 0;
498
+ min-width: 0;
497
499
  }
498
500
 
499
501
  .astryx-side-nav-item__popover {
@@ -520,4 +522,12 @@
520
522
  transition-delay: 0s;
521
523
  }
522
524
  }
525
+
526
+ /* 主题对所有人减少动效时同样直接落位。 */
527
+ :where([data-astryx-reduced-motion]) .astryx-side-nav-item__children,
528
+ :where([data-astryx-reduced-motion]) .astryx-side-nav-item__chevron,
529
+ :where([data-astryx-reduced-motion]) .astryx-side-nav-collapse__chevron {
530
+ transition-duration: 0.01ms;
531
+ transition-delay: 0s;
532
+ }
523
533
  }
@@ -94,4 +94,9 @@
94
94
  transition: none;
95
95
  }
96
96
  }
97
+
98
+ /* 主题对所有人减少动效时,箭头同样直接转到位。 */
99
+ :where([data-astryx-reduced-motion]) .astryx-tab-menu-chevron {
100
+ transition: none;
101
+ }
97
102
  }
@@ -300,6 +300,17 @@
300
300
  transition: transform var(--astryx-duration-fast-max) var(--astryx-ease-standard);
301
301
  }
302
302
 
303
+ /* 减少动效时箭头直接转到位:系统设置,或主题对所有人减少动效。 */
304
+ @media (prefers-reduced-motion: reduce) {
305
+ .astryx-top-nav-menu__chevron {
306
+ transition-duration: 0s;
307
+ }
308
+ }
309
+
310
+ :where([data-astryx-reduced-motion]) .astryx-top-nav-menu__chevron {
311
+ transition-duration: 0s;
312
+ }
313
+
303
314
  .astryx-top-nav-menu__chevron--open { transform: rotate(180deg); }
304
315
 
305
316
  .astryx-top-nav-menu--drawer,