@astryx-vue/core 0.20.1 → 0.22.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.
- package/dist/AlertDialog/index.js +1 -1
- package/dist/{AlertDialog-DYYA2LOe.js → AlertDialog-VD9PadlM.js} +6 -6
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-zEXmJb1h.js → AppShell-C4XGguw0.js} +23 -8
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-D85dSNpq.js → Avatar-CAweS1WY.js} +1 -1
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-AIu60Urv.js → AvatarGroup-BUXjzekw.js} +2 -2
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-C4ZICVvW.js → Banner-DnK7bKAb.js} +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-DNuzJPfQ.js → BottomSheet-C4OU3mJT.js} +3 -3
- package/dist/{BottomSheet-DV7bboru.js → BottomSheet-CM0-eaUF.js} +4 -4
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-C8nA3Ft9.js → Breadcrumbs-DZAgtC9c.js} +4 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-DOfigN38.js → Button-Blnc0yB3.js} +5 -5
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-BzrDhbMP.js → ButtonGroup-DNN4O9_-.js} +3 -3
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Card/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-CRaHAUsZ.js → Carousel-CB4Iap-B.js} +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-DTs843Ta.js → Chat-DjJPQ9bX.js} +5 -5
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-Ydl1GSBh.js → CheckboxInput-CGTPmOHs.js} +3 -3
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-Sn_ph-Xz.js → CheckboxList-CGzHkA95.js} +5 -5
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-DH-zpF7o.js → ClickableCard-DMX5z-QV.js} +1 -1
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-DXBJEZS6.js → CodeBlock-CwQCMSKA.js} +1 -1
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-BG-u5nEt.js → Collapsible-BVoNZijw.js} +3 -3
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-CV7t0ouM.js → CommandPalette-DBOETNGM.js} +3 -3
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-BKjyFdHr.js → ComplexSelector-CNBH2t6W.js} +2 -2
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-CwnY6hcJ.js → ContextMenu-CUwAPrVP.js} +6 -7
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-BaX40vSs.js → DateInput-BQ-3bvV5.js} +4 -4
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-DplhXZqK.js → DateRangeInput-DFXz4vNX.js} +3 -3
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-CrD1EEfs.js → DateTimeInput-BHO4nXKW.js} +5 -5
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-CztWmbf8.js → Dialog-BCPhWMxL.js} +3 -3
- package/dist/{Dialog-B2pOTrnQ.js → Dialog-Dx6zuttb.js} +1 -1
- package/dist/{DialogHeader-CjHTNccL.js → DialogHeader-C9fp2Rti.js} +2 -2
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-DGIuMLms.js → Drawer--2vLSKY_.js} +2 -2
- package/dist/DropdownMenu/index.js +3 -3
- package/dist/{DropdownMenu-l9c562oA.js → DropdownMenu-BImEVieZ.js} +7 -7
- package/dist/{DropdownMenu-r93pI0mD.js → DropdownMenu-CskkQAAz.js} +9 -10
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-nyV5XxMA.js → EmptyState-Dq3NWNnG.js} +3 -3
- package/dist/Field/index.js +3 -3
- package/dist/{Field-CIZdFzXr.js → Field-DsucLkyQ.js} +1 -1
- package/dist/{FieldInfoTip-eJSORVbp.js → FieldInfoTip-1zW3QTQG.js} +1 -1
- package/dist/{FieldLabel-BoMSIOLF.js → FieldLabel-D9uFPtXs.js} +1 -1
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-DvGU92Sg.js → FileInput-DLtHinlh.js} +2 -2
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-Bo6A69fA.js → Heading-DBBChghq.js} +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-FHYH3VXg.js → HoverCard-BW-bOUZI.js} +4 -4
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-oKXLxgYb.js → IconButton-CIUbkA8_.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-DWC-vnT5.js → InfoTip-C71T8lv_.js} +2 -2
- package/dist/{InputClearButton-CAitWZTk.js → InputClearButton-h0BxBXu1.js} +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-CeTKqJQn.js → InputGroup-DHPTru5v.js} +1 -1
- package/dist/{Item-BSHDEJyh.js → Item-CzKm9wxQ.js} +1 -1
- package/dist/{LayerContentBoundary-CpqXMTyU.js → LayerContentBoundary-DxeAFxNJ.js} +1 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-CesmEisI.js → Lightbox-B3WP06Qt.js} +4 -4
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-CQ-Ztuo_.js → Link-CQK9d_Yf.js} +2 -2
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-v1GFTbba.js → ListItem-Bc4snKv8.js} +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-CIA5ejYp.js → Markdown-BVXFWJT0.js} +3 -3
- package/dist/MobileNav/index.js +2 -1
- package/dist/{MobileNavToggle-CKEOroi0.js → MobileNavToggle-DGZPwsf9.js} +6 -8
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-DcImQxyp.js → MoreMenu-Q_KpDTNB.js} +5 -5
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-DedRF-RL.js → MultiSelector-CzGsdjcl.js} +8 -8
- package/dist/{NavDisclosure-Dg6U7pc7.js → NavDisclosure-DIYayUrP.js} +13 -4
- package/dist/{NavHeadingSurface-DZPa2px5.js → NavHeadingSurface-bFcFpeMI.js} +15 -14
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-CcbOJNnY.js → NavItem-CB3loauj.js} +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-CTbvZnO2.js → NavMenu-DYvMKPU_.js} +9 -7
- package/dist/{NavMenuItem-BS0oULrz.js → NavMenuItem-Ccix-agv.js} +9 -6
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-q9HP5L_V.js → NumberInput-DTksMfSU.js} +3 -3
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-eucTzyZu.js → Outline-NuPQMjxw.js} +2 -2
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-B6Alf6bi.js → OverflowList-DKM7TeUs.js} +2 -2
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-DfAHckUV.js → Pagination-B-O21ut1.js} +272 -136
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-D0jAIXkw.js → Popover-BtfsoxXC.js} +6 -6
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-CU_MBQlC.js → PowerSearch-CniqThU7.js} +17 -17
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/{ProgressBar-DgyPRxV0.js → ProgressBar-DOusesCL.js} +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-Cm2n6M5C.js → RadioGroup-CRwMwMw4.js} +4 -4
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-B5MaynOw.js → RadioList-PUlENMq5.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/{SegmentedControl-D--5X0eZ.js → SegmentedControl-DFUYTOVH.js} +2 -2
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-CLwYtbZl.js → SelectableCard-DUTtyApJ.js} +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-wcbEB7BC.js → Selector-Qs1rFiI6.js} +6 -6
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +2 -2
- package/dist/{SideNav-CYlAzvrT.js → SideNav-BUfUwE2P.js} +16 -11
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-jgmpvIDe.js → Slider-BbiQbyie.js} +3 -3
- package/dist/Stack/index.d.ts +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-Cxm-uhTD.js → StatusDot-DhfcDBE7.js} +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-CnNUZDMO.js → Stepper-CQd4YlPC.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-YNk17Lct.js → Switch-CMK5bICl.js} +2 -2
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-D_OvLcD5.js → TabList-Bd3h7Nj3.js} +63 -24
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-DcFujAPW.js → Table-DN9mo-cQ.js} +15 -15
- package/dist/Text/index.js +2 -2
- package/dist/{Text-Bv4urzOW.js → Text-Dez23ltM.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-CixgkV__.js → TextArea-BsGUOyDg.js} +4 -4
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-Bpiq3FcP.js → TextInput-DZi0EMh-.js} +4 -4
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-Bktyar_H.js → Thumbnail-CsmF1HTP.js} +3 -3
- package/dist/{TimeField-BtiLoHqW.js → TimeField-DqOPj5s2.js} +4 -4
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-eyxw3KzD.js → TimeInput-CA3kXBWB.js} +2 -2
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-C-N-sElU.js → Timer-vubjQ88x.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-BTs10ZLD.js → Timestamp-Cz_0Ofj4.js} +3 -3
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-DpMqZ72F.js → Toast-DhJNtBjT.js} +1 -1
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-W_tpgZ8k.js → ToggleButton-BR_qVBEt.js} +3 -3
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-jBbgdevV.js → Token-CPNzkSj3.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-Bs1VXinx.js → Tokenizer-C3pXgLmC.js} +6 -6
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Toolbar/index.js +1 -1
- package/dist/{Toolbar-BH_E0F0G.js → Toolbar-B4Vltu-j.js} +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +2 -2
- package/dist/{Tooltip-DQipgW1R.js → Tooltip-BUHvOnE1.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CSFUTuyI.js → TopNav-klsRhS-I.js} +169 -62
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-B8p_lI7a.js → TreeList-DJQvL5tG.js} +3 -3
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-Bh0nap5Z.js → Typeahead-BaPqX3Ey.js} +6 -6
- package/dist/{assertOptions-CK_gJ0d3.js → assertOptions-DF9pum-3.js} +1 -1
- package/dist/{batch-BJD6Bt-O.js → batch-oTkSbtVz.js} +3 -1
- package/dist/clickGuard-ChKuogmR.js +132 -0
- package/dist/closeOnActivate-D1KgKWwm.js +13 -0
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.js +14 -15
- package/dist/composables-BDWdSCwe.js +11917 -0
- package/dist/context-D8MAZio1.js +7 -0
- package/dist/{context-Cj_zItu2.js → context-DQPBIsl5.js} +2 -2
- package/dist/{edge-DIlkB7vS.js → edge-3sC8-cbB.js} +1 -1
- package/dist/{edgeRide-D0oC2JEB.js → edgeRide-DOxmVxTM.js} +4 -3
- package/dist/{focusReturn-D7Y7Pwwb.js → focusReturn-CsEp47Wa.js} +1 -1
- package/dist/handle-CSHfxBie.js +298 -0
- package/dist/{index-B63NOJRc.d.ts → index--CtH4lQr.d.ts} +5 -5
- package/dist/{index-DBu-H-vB.d.ts → index-0pBqcQXV.d.ts} +164 -7
- package/dist/{index-TXcNH86P.d.ts → index-B1eCxBCY.d.ts} +1 -1
- package/dist/{index-BgT6mH3U.d.ts → index-BB9acgK8.d.ts} +1 -1
- package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
- package/dist/{index-CTjkJP4x.d.ts → index-Bgk1Rj2A.d.ts} +1 -1
- package/dist/{index-5Hrxeq2J.d.ts → index-BhxqUt3y.d.ts} +5 -5
- package/dist/{index-LaQSu7ST.d.ts → index-BkxWKIV_.d.ts} +6 -6
- package/dist/{index-BP2SjZiM.d.ts → index-BmXk_doE.d.ts} +3 -3
- package/dist/{index-DGXCnzOL.d.ts → index-BrMtj1lT.d.ts} +4 -4
- package/dist/{index-DtZUOyCy.d.ts → index-BvW0tiei.d.ts} +2 -2
- package/dist/{index-ChqMaV6N.d.ts → index-Bzi3A980.d.ts} +1 -1
- package/dist/{index-51CkIKnI.d.ts → index-C93nwgTW.d.ts} +1 -1
- package/dist/{index-CiVrhGUJ.d.ts → index-C9ZssPUV.d.ts} +1 -1
- package/dist/{index-mK1ICsVg.d.ts → index-C9uW39Mj.d.ts} +3 -3
- package/dist/{index-CaE2cqeG.d.ts → index-CAKT4Kkz.d.ts} +78 -64
- package/dist/{index-DmAEpn5E.d.ts → index-CG3fD4hw.d.ts} +1 -1
- package/dist/{index-Q1oG9yIT.d.ts → index-CO9GW-ik.d.ts} +1 -1
- package/dist/{index-BNtSmuWg.d.ts → index-D0MA9x_i.d.ts} +5 -5
- package/dist/{index-CbA8rR_b.d.ts → index-DDrL_-hJ.d.ts} +3 -3
- package/dist/{index-QnlWyUxN.d.ts → index-DE1genab.d.ts} +2 -2
- package/dist/{index-vCRf5fyK.d.ts → index-DIw5D3zj.d.ts} +2 -2
- package/dist/{index-MvrDMqnQ.d.ts → index-DYabo8TI.d.ts} +1 -1
- package/dist/{index-Cb-rvc1W.d.ts → index-DofC9Rll.d.ts} +1 -1
- package/dist/{index-D1JXm7Et.d.ts → index-DogWVRJi.d.ts} +15 -2
- package/dist/{index-BaFphczL.d.ts → index-YKCx03zD.d.ts} +2 -2
- package/dist/{index-yQc-te9a.d.ts → index-ql9ApSTF.d.ts} +2 -2
- package/dist/{index-Y-AmNzkO.d.ts → index-rzkX36wM.d.ts} +3 -3
- package/dist/index.d.ts +30 -30
- package/dist/index.js +106 -107
- package/dist/{interactionModality-B5dR7nnb.js → interactionModality-CyU67ucP.js} +9 -3
- package/dist/{landing-C7nc9JHm.js → landing-DFC97kl9.js} +2 -2
- package/dist/{layerFocusReturn-B8Hp14ZG.js → layerFocusReturn-BeCsk_4F.js} +1 -1
- package/dist/{pressFeedback-BajhWhi1.js → pressFeedback-CEUPQWIS.js} +297 -118
- package/dist/pressGesture-BzIBmKF2.js +615 -0
- package/dist/sharedRealm-H1OrlP0V.js +124 -0
- package/dist/{stillPointerGate-0vdn-hSa.js → stillPointerGate-BX4vr5M-.js} +1 -1
- package/dist/{tooltipFocusRules-D4cJ08fk.js → tooltipFocusRules-BnZ1zwAm.js} +2 -2
- package/dist/{tooltipTriggerRules-PBxqztvn.js → tooltipTriggerRules-BLBEkBcK.js} +1 -1
- package/dist/{useActionGroupTracking-fwmxDcU3.js → useActionGroupTracking-PVBCtLUE.js} +5 -4
- package/dist/{useCombobox-DIR9yoEu.js → useCombobox-DcBbaWYj.js} +1 -1
- package/dist/{useDismiss-Dfb0Ky7T.js → useDismiss-C1dyveme.js} +1 -1
- package/dist/{useFocusTrap-DsYtRdmV.js → useFocusTrap-DAKJJP0Z.js} +2 -2
- package/dist/{useInputStatusIcon-CVGsNTi_.js → useInputStatusIcon-BDWAijXe.js} +1 -1
- package/dist/{useListFocus-CbHkLT-X.js → useListFocus-CkHfsZp0.js} +23 -5
- package/dist/{useMenuDrillIn-DaH0nhPa.js → useMenuDrillIn-RZwY55RM.js} +1 -1
- package/dist/{useMenuHover-CQYo0XCC.js → useMenuHover-CfQtWMg-.js} +1 -1
- package/dist/{useMenuPress-9dOj2hvC.js → useMenuPress-3203ryBY.js} +63 -15
- package/dist/{usePressFeedback-2YAzGB6C.js → usePressFeedback-aufF1sCH.js} +1 -1
- package/dist/{useResizable-BMlG1oxA.js → useResizable-wZU54yCO.js} +1 -1
- package/dist/{useRestoreFocus-Cz_jM_nW.js → useRestoreFocus-v8-FFcQQ.js} +2 -2
- package/dist/{useTooltip-C7gHRGEO.js → useTooltip-0_wOd0e5.js} +5 -5
- package/dist/{useTouchHitArea-BKZL6tHX.js → useTouchHitArea-BMDBe36j.js} +3 -3
- package/dist/{useTouchTriggerInternal-Bs7obOrb.js → useTouchTriggerInternal-DwzthF8T.js} +1 -1
- package/dist/{useTruncationTooltip-DeCGRmot.js → useTruncationTooltip-BDIe7-ya.js} +5 -5
- package/dist/{useTypeahead-BrWvmOu9.js → useTypeahead-BlqvS9x9.js} +1 -1
- package/dist/{useTypeaheadMenuConfig--4f7jR6G.js → useTypeaheadMenuConfig-CIf9Ep57.js} +2 -2
- package/dist/utils/index.js +1 -1
- package/package.json +1 -1
- package/styles/app-shell.css +36 -0
- package/styles/breadcrumbs.css +1 -0
- package/styles/nav-item.css +9 -3
- package/styles/nav-menu.css +3 -0
- package/styles/pagination.css +2 -2
- package/styles/tab-list.css +7 -3
- package/styles/tab-menu.css +1 -0
- package/styles/top-nav.css +141 -11
- package/dist/composables-CDrwFX0l.js +0 -5420
- package/dist/handle-ChN2TMKH.js +0 -458
- package/dist/pressGesture-B3z3W3Za.js +0 -78
- package/dist/strayClick-_QKRT5aH.js +0 -99
- package/dist/{index-BJ9Wim6J.d.ts → index-BqhgeAT4.d.ts} +1 -1
- package/dist/{useTruncation-BxYAhQtF.js → useTruncation-D_T-ezdp.js} +1 -1
|
@@ -0,0 +1,615 @@
|
|
|
1
|
+
//#region src/motion/roleValue.ts
|
|
2
|
+
const ROLE_ID = /^[a-z][A-Za-z0-9]*(?:\.[a-z][A-Za-z0-9]*)+$/;
|
|
3
|
+
/** Whether `id` is a well-formed role name (a dotted table path). */
|
|
4
|
+
function isMotionRoleId(id) {
|
|
5
|
+
return ROLE_ID.test(id);
|
|
6
|
+
}
|
|
7
|
+
/** The CSS custom property for a role: `--motion-` + the path in kebab case. */
|
|
8
|
+
function motionRoleVariable(id) {
|
|
9
|
+
if (!isMotionRoleId(id)) throw new Error(`motion role "${id}" must be a dotted table path such as "springs.sheetPresent"`);
|
|
10
|
+
return `--motion-${id.split(".").map((part) => part.replace(/[A-Z]/g, (c) => `-${c.toLowerCase()}`)).join("-")}`;
|
|
11
|
+
}
|
|
12
|
+
function isSpring(value) {
|
|
13
|
+
if (value === null || typeof value !== "object" || Array.isArray(value)) return false;
|
|
14
|
+
return "response" in value && "dampingRatio" in value || "duration" in value && "bounce" in value || "stiffness" in value && "damping" in value;
|
|
15
|
+
}
|
|
16
|
+
function isCurve(value) {
|
|
17
|
+
return Array.isArray(value) && value.length === 4 && value.every((n) => typeof n === "number");
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/motion/roles.ts
|
|
21
|
+
const rolesById = /* @__PURE__ */ new Map();
|
|
22
|
+
/** A table id → the table registered under it. */
|
|
23
|
+
const tablesById = /* @__PURE__ */ new Map();
|
|
24
|
+
/** A spring or curve leaf → its role. */
|
|
25
|
+
const roleOfLeaf = /* @__PURE__ */ new WeakMap();
|
|
26
|
+
/** A table or one of its groups → its path. */
|
|
27
|
+
const pathOfGroup = /* @__PURE__ */ new WeakMap();
|
|
28
|
+
/** A table path → the role id it is registered under, when renamed. */
|
|
29
|
+
const roleIdOfPath = /* @__PURE__ */ new Map();
|
|
30
|
+
/**
|
|
31
|
+
* Registers a motion table: each spring, `…Ms` duration and curve leaf that
|
|
32
|
+
* `roles` lists (its role name, relative to the table) becomes a role named
|
|
33
|
+
* by its path under `id`; the table's other values stay internal constants. A leaf object the table shares between
|
|
34
|
+
* two keys is replaced in the table by an equal copy, so each role has its own
|
|
35
|
+
* object (an animator resolves a role from the object it is handed).
|
|
36
|
+
* `exclude` lists paths, relative to the table, that are not motion;
|
|
37
|
+
* `rename` maps a path, relative to the table, to the role name it is
|
|
38
|
+
* registered under (relative too), so a role is named for its use while the
|
|
39
|
+
* table keeps its source's name. Registering the same table under the same id
|
|
40
|
+
* again does nothing.
|
|
41
|
+
*/
|
|
42
|
+
function registerMotionTable(id, table, { roles = [], exclude = [], rename = {} } = {}) {
|
|
43
|
+
if (!/^[a-z][A-Za-z0-9]*$/.test(id)) throw new Error(`motion table id "${id}" must be one camelCase word`);
|
|
44
|
+
if (tablesById.get(id) === table) return;
|
|
45
|
+
tablesById.set(id, table);
|
|
46
|
+
const skip = new Set(exclude.map((path) => `${id}.${path}`));
|
|
47
|
+
const listed = new Set(roles.map((name) => `${id}.${name}`));
|
|
48
|
+
const walk = (group, prefix) => {
|
|
49
|
+
pathOfGroup.set(group, prefix);
|
|
50
|
+
for (const [key, value] of Object.entries(group)) {
|
|
51
|
+
const path = `${prefix}.${key}`;
|
|
52
|
+
if (skip.has(path)) continue;
|
|
53
|
+
let kind = null;
|
|
54
|
+
if (isSpring(value)) kind = "spring";
|
|
55
|
+
else if (isCurve(value)) kind = "curve";
|
|
56
|
+
else if (typeof value === "number" && key.endsWith("Ms")) kind = "duration";
|
|
57
|
+
else if (value !== null && typeof value === "object" && !Array.isArray(value)) {
|
|
58
|
+
walk(value, path);
|
|
59
|
+
continue;
|
|
60
|
+
}
|
|
61
|
+
if (kind == null) continue;
|
|
62
|
+
const relative = path.slice(id.length + 1);
|
|
63
|
+
const roleId = relative in rename ? `${id}.${rename[relative]}` : path;
|
|
64
|
+
if (!listed.has(roleId)) continue;
|
|
65
|
+
if (roleId !== path) roleIdOfPath.set(path, roleId);
|
|
66
|
+
let leaf = value;
|
|
67
|
+
if (typeof leaf === "object") {
|
|
68
|
+
const taken = roleOfLeaf.get(leaf);
|
|
69
|
+
if (taken != null && taken.id !== roleId) {
|
|
70
|
+
leaf = Object.freeze(Array.isArray(leaf) ? [...leaf] : { ...leaf });
|
|
71
|
+
group[key] = leaf;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
const role = {
|
|
75
|
+
id: roleId,
|
|
76
|
+
kind,
|
|
77
|
+
variable: motionRoleVariable(roleId),
|
|
78
|
+
value: leaf
|
|
79
|
+
};
|
|
80
|
+
rolesById.set(roleId, role);
|
|
81
|
+
if (typeof leaf === "object") roleOfLeaf.set(leaf, role);
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
walk(table, id);
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Registers `leaf` as the spring role `id` (a table path such as
|
|
88
|
+
* `springs.settle`) and returns it, so a table row can register itself. A row
|
|
89
|
+
* that calls it under a pure annotation drops out of a bundle that does not
|
|
90
|
+
* use it, call included. Registering the same leaf under the same id again
|
|
91
|
+
* does nothing.
|
|
92
|
+
*/
|
|
93
|
+
function registerSpringRole(id, leaf) {
|
|
94
|
+
if (!isMotionRoleId(id)) throw new Error(`motion role "${id}" must be a dotted table path such as "springs.settle"`);
|
|
95
|
+
if (roleOfLeaf.get(leaf)?.id !== id) {
|
|
96
|
+
const role = {
|
|
97
|
+
id,
|
|
98
|
+
kind: "spring",
|
|
99
|
+
variable: motionRoleVariable(id),
|
|
100
|
+
value: leaf
|
|
101
|
+
};
|
|
102
|
+
rolesById.set(id, role);
|
|
103
|
+
roleOfLeaf.set(leaf, role);
|
|
104
|
+
}
|
|
105
|
+
return leaf;
|
|
106
|
+
}
|
|
107
|
+
/** The role a spring or curve leaf of a registered table plays, if any. */
|
|
108
|
+
function motionRoleOf(leaf) {
|
|
109
|
+
return leaf !== null && typeof leaf === "object" ? roleOfLeaf.get(leaf) : void 0;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* The role `group[key]` plays, for a table or one of its groups: the way to
|
|
113
|
+
* name a duration, which is a bare number.
|
|
114
|
+
*/
|
|
115
|
+
function motionRoleIn(group, key) {
|
|
116
|
+
const prefix = pathOfGroup.get(group);
|
|
117
|
+
if (prefix == null) return;
|
|
118
|
+
const path = `${prefix}.${key}`;
|
|
119
|
+
return rolesById.get(roleIdOfPath.get(path) ?? path);
|
|
120
|
+
}
|
|
121
|
+
const NUMBER = "(-?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e-?\\d+)?)";
|
|
122
|
+
const SPRING_VALUE = new RegExp(`^${NUMBER}s\\s+${NUMBER}$`);
|
|
123
|
+
const DURATION_VALUE = new RegExp(`^${NUMBER}(ms|s)$`);
|
|
124
|
+
const CURVE_VALUE = new RegExp(`^cubic-bezier\\(\\s*${NUMBER}\\s*,\\s*${NUMBER}\\s*,\\s*${NUMBER}\\s*,\\s*${NUMBER}\\s*\\)$`);
|
|
125
|
+
function parseMotionRoleValue(kind, text) {
|
|
126
|
+
const value = text.trim();
|
|
127
|
+
if (value === "") return null;
|
|
128
|
+
if (kind === "spring") {
|
|
129
|
+
const m = SPRING_VALUE.exec(value);
|
|
130
|
+
if (m == null) return null;
|
|
131
|
+
const duration = Number(m[1]);
|
|
132
|
+
const bounce = Number(m[2]);
|
|
133
|
+
return duration > 0 && bounce > -1 && bounce < 1 ? {
|
|
134
|
+
duration,
|
|
135
|
+
bounce
|
|
136
|
+
} : null;
|
|
137
|
+
}
|
|
138
|
+
if (kind === "duration") {
|
|
139
|
+
const m = DURATION_VALUE.exec(value);
|
|
140
|
+
if (m == null) return null;
|
|
141
|
+
const ms = Number(m[1]) * (m[2] === "s" ? 1e3 : 1);
|
|
142
|
+
return ms >= 0 ? ms : null;
|
|
143
|
+
}
|
|
144
|
+
const m = CURVE_VALUE.exec(value);
|
|
145
|
+
if (m == null) return null;
|
|
146
|
+
const points = [
|
|
147
|
+
m[1],
|
|
148
|
+
m[2],
|
|
149
|
+
m[3],
|
|
150
|
+
m[4]
|
|
151
|
+
].map(Number);
|
|
152
|
+
return points[0] >= 0 && points[0] <= 1 && points[2] >= 0 && points[2] <= 1 ? points : null;
|
|
153
|
+
}
|
|
154
|
+
/** The CSS easing keywords, as the control points CSS gives them. */
|
|
155
|
+
const EASING_KEYWORDS = {
|
|
156
|
+
"linear": [
|
|
157
|
+
0,
|
|
158
|
+
0,
|
|
159
|
+
1,
|
|
160
|
+
1
|
|
161
|
+
],
|
|
162
|
+
"ease": [
|
|
163
|
+
.25,
|
|
164
|
+
.1,
|
|
165
|
+
.25,
|
|
166
|
+
1
|
|
167
|
+
],
|
|
168
|
+
"ease-in": [
|
|
169
|
+
.42,
|
|
170
|
+
0,
|
|
171
|
+
1,
|
|
172
|
+
1
|
|
173
|
+
],
|
|
174
|
+
"ease-out": [
|
|
175
|
+
0,
|
|
176
|
+
0,
|
|
177
|
+
.58,
|
|
178
|
+
1
|
|
179
|
+
],
|
|
180
|
+
"ease-in-out": [
|
|
181
|
+
.42,
|
|
182
|
+
0,
|
|
183
|
+
.58,
|
|
184
|
+
1
|
|
185
|
+
]
|
|
186
|
+
};
|
|
187
|
+
/**
|
|
188
|
+
* Reads a CSS easing, a keyword or a `cubic-bezier()`, as a curve role's value
|
|
189
|
+
* is read. Returns null for any other easing, such as `steps()`.
|
|
190
|
+
*/
|
|
191
|
+
function parseCssEasing(text) {
|
|
192
|
+
const value = text.trim();
|
|
193
|
+
return EASING_KEYWORDS[value] ?? parseMotionRoleValue("curve", value);
|
|
194
|
+
}
|
|
195
|
+
const scroll = {
|
|
196
|
+
decelerationRate: {
|
|
197
|
+
/**
|
|
198
|
+
* Normal deceleration: the release velocity is multiplied by this every
|
|
199
|
+
* millisecond, as a continuous exponential (UIScrollView keeps ln r,
|
|
200
|
+
* −0.002002, and velocities in pt/ms). The scroll view's own
|
|
201
|
+
* target for a release (`scrollViewWillEndDragging`) is
|
|
202
|
+
* v · r ÷ (1 − r), within 1 %: WWDC18 803's projection function.
|
|
203
|
+
* @source apple-docs https://developer.apple.com/documentation/uikit/uiscrollview/decelerationrate-swift.struct/normal
|
|
204
|
+
* (the constant, not its number)
|
|
205
|
+
* @source measured: UIKit lab (injected host app), iOS 26.2 simulator,
|
|
206
|
+
* iPhone 17 Pro, rawValue read, Oct 23 2026 (also a new scroll view's
|
|
207
|
+
* decelerationRate)
|
|
208
|
+
* @source measured: UIKit lab (injected host app), iOS 26.2 simulator,
|
|
209
|
+
* iPhone 17 Pro, deceleration ivars read mid-coast
|
|
210
|
+
* (`_decelerationFactor` 0.998, `_decelerationLnFactorV` −0.002002, the
|
|
211
|
+
* velocity decaying 0.4343 over 400 ms) and willEndDragging targets,
|
|
212
|
+
* Oct 23 2026
|
|
213
|
+
*/
|
|
214
|
+
normal: .998,
|
|
215
|
+
/**
|
|
216
|
+
* Fast deceleration (`UIScrollView.DecelerationRate.fast`).
|
|
217
|
+
* @source apple-docs https://developer.apple.com/documentation/uikit/uiscrollview/decelerationrate-swift.struct/fast
|
|
218
|
+
* (the constant, not its number)
|
|
219
|
+
* @source measured: UIKit lab (injected host app), iOS 26.2 simulator,
|
|
220
|
+
* iPhone 17 Pro, rawValue read and `_decelerationFactor` 0.99 (ln
|
|
221
|
+
* −0.01005) mid-coast, Oct 23 2026
|
|
222
|
+
*/
|
|
223
|
+
fast: .99
|
|
224
|
+
},
|
|
225
|
+
rubberBand: {
|
|
226
|
+
/**
|
|
227
|
+
* c in b = (1 − 1 ÷ (x·c ÷ d + 1))·d, d = the scroll view's size on the
|
|
228
|
+
* axis, x = the finger's travel past the edge after the
|
|
229
|
+
* pan's 10 pt hysteresis.
|
|
230
|
+
* @source measured: UIKit lab (injected host app), iOS 26.2 simulator,
|
|
231
|
+
* iPhone 17 Pro, UIScrollView offsets released 100 / 300 / 600 pt past
|
|
232
|
+
* the edge of an 874 pt view: 47 / 135 / 236.67 against the formula's
|
|
233
|
+
* 46.85 / 134.9 / 236.6, Oct 23 2026
|
|
234
|
+
* @source measured: UIKit lab (injected host app), iOS 26.2 simulator,
|
|
235
|
+
* iPhone 17 Pro, sheet drags hooked: UISheetPresentationController
|
|
236
|
+
* passes `withRubberBandCoefficient: 0.55` on every drag, Oct 23 2026
|
|
237
|
+
*/
|
|
238
|
+
coefficient: .55 },
|
|
239
|
+
/**
|
|
240
|
+
* The spring that returns content released past an edge, and that catches
|
|
241
|
+
* a coast hitting an edge (its velocity handed to the spring).
|
|
242
|
+
* @source GUESS — critically damped as in I. Lobanov's UIScrollView
|
|
243
|
+
* reimplementation (no oscillation at the bound); pace from SwiftUI's
|
|
244
|
+
* `.smooth` default duration. Measured so far (iOS 26.2 simulator, Oct 23
|
|
245
|
+
* 2026): back to the edge in about 0.5 s with no overshoot, but no single
|
|
246
|
+
* spring from rest fits releases 47, 135 and 237 pt past the edge, so
|
|
247
|
+
* UIKit's bounce is not a plain spring; the model is still to fit
|
|
248
|
+
* @measure M-S3
|
|
249
|
+
*/
|
|
250
|
+
bounce: {
|
|
251
|
+
duration: .5,
|
|
252
|
+
bounce: 0
|
|
253
|
+
},
|
|
254
|
+
/**
|
|
255
|
+
* `delaysContentTouches`: how long a scroll view holds a touch-down from
|
|
256
|
+
* its content while it decides whether the touch is a scroll (no highlight
|
|
257
|
+
* flash on a quick scroll), in ms.
|
|
258
|
+
* @source wwdc 2014-235 "Advanced Scrollviews and Touch Handling
|
|
259
|
+
* Techniques": the touch-delay recognizer UIScrollView uses runs "a
|
|
260
|
+
* pretty short timer … Let's say .15 seconds" (presenter's example value)
|
|
261
|
+
* @source measured: Settings and Contacts, iOS 26.2, simulator driven with
|
|
262
|
+
* real HID touches at 60 fps, recorded with the touch press model
|
|
263
|
+
* (PRESS_ONSET_MS in packages/core/src/utils/pressGesture.ts, 2026-10-06)
|
|
264
|
+
*/
|
|
265
|
+
delaysContentTouchesMs: 150,
|
|
266
|
+
/**
|
|
267
|
+
* Scroll-to-top after a status-bar tap: not a spring. The offset
|
|
268
|
+
* approaches the top as 1 − e^(−9.7 t) whatever the distance (done in about
|
|
269
|
+
* 1.6 s for 500, 2000 or 8000 pt), which is a decay at this per-millisecond
|
|
270
|
+
* rate (e^(−0.0097)) whose rest point is the top: a decay with a
|
|
271
|
+
* starting velocity of 9.7 × the distance per second. A tap starts it, not
|
|
272
|
+
* a throw, so under Reduce Motion it is a transition, not a coast: it
|
|
273
|
+
* cross-fades to the top within 200 ms on a coarse pointer (DR2) and jumps
|
|
274
|
+
* there on any other (DR3). Only momentum that continues a throw keeps
|
|
275
|
+
* decaying under Reduce Motion (`design:reduced-motion` DR2, DEC-2), so a
|
|
276
|
+
* component checks for Reduce Motion before it plays this decay.
|
|
277
|
+
* @source measured: UIKit lab (injected host app), iOS 26.2 simulator,
|
|
278
|
+
* iPhone 17 Pro, setContentOffset log after status-bar taps (starts 85–95
|
|
279
|
+
* ms after the tap), Oct 23 2026
|
|
280
|
+
*/
|
|
281
|
+
scrollToTopRate: .99035
|
|
282
|
+
};
|
|
283
|
+
/**
|
|
284
|
+
* Registers this table with the motion registry (motion/roles.ts). It lists
|
|
285
|
+
* no role: spec:AST-094 FR4 names none of its values, so each plays as
|
|
286
|
+
* measured. Nothing registers on import, and a second call does nothing.
|
|
287
|
+
*/
|
|
288
|
+
function registerScrollTable() {
|
|
289
|
+
registerMotionTable("scroll", scroll, { exclude: ["delaysContentTouchesMs"] });
|
|
290
|
+
}
|
|
291
|
+
//#endregion
|
|
292
|
+
//#region src/motion/uikit/gestures.ts
|
|
293
|
+
/**
|
|
294
|
+
* @file gestures.ts
|
|
295
|
+
* @input Nothing: plain data
|
|
296
|
+
* @output Exports one constant per recognizer or domain (UIKIT_TAP,
|
|
297
|
+
* UIKIT_LONG_PRESS, UIKIT_PAN, …, UIKIT_PRESS, UIKIT_VELOCITY), the gesture
|
|
298
|
+
* thresholds recognizers read, a reader importing only its group; their
|
|
299
|
+
* union UIKIT_GESTURES; and the GestureConstant type: a value and its unit
|
|
300
|
+
* @position Gesture half of the UIKit constants table. Springs, scroll
|
|
301
|
+
* physics and timing live beside it in this folder; no component carries a
|
|
302
|
+
* gesture number of its own.
|
|
303
|
+
*
|
|
304
|
+
* Units are CSS pixels and milliseconds. On a phone with
|
|
305
|
+
* `width=device-width`, one CSS pixel is one UIKit point, so a UIKit distance
|
|
306
|
+
* in points is the same number here.
|
|
307
|
+
*
|
|
308
|
+
* Every leaf carries one or more `@source` (apple-docs | wwdc | webkit |
|
|
309
|
+
* measured | GUESS); webkit and GUESS values also carry the `@measure` task
|
|
310
|
+
* that will confirm or replace them (MEASUREMENTS.md lists them all).
|
|
311
|
+
* uikit.test.ts enforces both. Only the value and its unit ship: where a
|
|
312
|
+
* number comes from stays in its JSDoc, out of the bundle. The press clocks
|
|
313
|
+
* are the same values as `DELAYS_CONTENT_TOUCHES_MS` and timing's `press`,
|
|
314
|
+
* written as numbers so each group bundles alone; gestures.test.ts holds
|
|
315
|
+
* them equal. Safari on iOS runs UIKit's own
|
|
316
|
+
* recognizers for tap-to-click, long press, double tap and the start of a
|
|
317
|
+
* page scroll, so many guesses can be settled by measuring Safari itself.
|
|
318
|
+
*
|
|
319
|
+
* The measurements the sources name:
|
|
320
|
+
* - UIKit lab: in-process reads and touch runs of fresh UIKit recognizers
|
|
321
|
+
* (private ivars read with key-value coding, every value confirmed with HID
|
|
322
|
+
* touches and the recognizer state log), iPhone 17 Pro simulator, iOS 26.2.
|
|
323
|
+
* - Settings and Contacts: the repository's own measurement of the touch
|
|
324
|
+
* press model, recorded in packages/core/src/utils/pressGesture.ts, driven
|
|
325
|
+
* with real HID touches and filmed at 60 fps.
|
|
326
|
+
* - Mobile Safari: Safari page scroll is a UIScrollView; the distance at which
|
|
327
|
+
* it claims a slow drag is where a press becomes a scroll, and the last
|
|
328
|
+
* moment a page can still cancel the scroll.
|
|
329
|
+
*/
|
|
330
|
+
const UIKIT_TAP = {
|
|
331
|
+
/**
|
|
332
|
+
* How far each finger may travel from where it landed before a tap
|
|
333
|
+
* fails, as a distance.
|
|
334
|
+
* @source measured: UIKit lab, iOS 26.2 simulator, ivar reads confirmed
|
|
335
|
+
* with HID touches, Oct 23 2026: UITapGestureRecognizer
|
|
336
|
+
* _allowableMovement 45; 44 pt taps, 46 pt fails, the same on the
|
|
337
|
+
* diagonal
|
|
338
|
+
*/
|
|
339
|
+
allowableMovement: {
|
|
340
|
+
value: 45,
|
|
341
|
+
unit: "px"
|
|
342
|
+
},
|
|
343
|
+
/**
|
|
344
|
+
* Longest interval between one tap lifting and the next landing.
|
|
345
|
+
* @source measured: UIKit lab, iOS 26.2 simulator, ivar reads confirmed
|
|
346
|
+
* with HID touches, Oct 23 2026: _maximumIntervalBetweenSuccessiveTaps
|
|
347
|
+
* 0.35 s; 330 ms double-taps, 370 ms does not
|
|
348
|
+
*/
|
|
349
|
+
maximumIntervalBetweenTaps: {
|
|
350
|
+
value: 350,
|
|
351
|
+
unit: "ms"
|
|
352
|
+
},
|
|
353
|
+
/**
|
|
354
|
+
* How far a later tap may land from the first one of the sequence.
|
|
355
|
+
* @source measured: UIKit lab, iOS 26.2 simulator, ivar reads confirmed
|
|
356
|
+
* with HID touches, Oct 23 2026: _allowableSeparation is unbounded and
|
|
357
|
+
* the 45 pt movement rule applies between taps; 44 pt double-taps, 46
|
|
358
|
+
* does not
|
|
359
|
+
*/
|
|
360
|
+
allowableSeparation: {
|
|
361
|
+
value: 45,
|
|
362
|
+
unit: "px"
|
|
363
|
+
},
|
|
364
|
+
/**
|
|
365
|
+
* Longest a finger may stay down and still tap.
|
|
366
|
+
* @source measured: UIKit lab, iOS 26.2 simulator, ivar reads confirmed
|
|
367
|
+
* with HID touches, Oct 23 2026: maximumTapDuration 1.5 s; a 1.4 s hold
|
|
368
|
+
* taps, 1.6 s does not
|
|
369
|
+
*/
|
|
370
|
+
maximumTapDuration: {
|
|
371
|
+
value: 1500,
|
|
372
|
+
unit: "ms"
|
|
373
|
+
}
|
|
374
|
+
};
|
|
375
|
+
const UIKIT_LONG_PRESS = {
|
|
376
|
+
/**
|
|
377
|
+
* UILongPressGestureRecognizer.minimumPressDuration default.
|
|
378
|
+
* @source apple-docs
|
|
379
|
+
* https://developer.apple.com/documentation/uikit/uilongpressgesturerecognizer/minimumpressduration
|
|
380
|
+
* @source measured: UIKit lab, iOS 26.2 simulator, ivar reads confirmed
|
|
381
|
+
* with HID touches, Oct 23 2026: _minimumPressDuration 0.5
|
|
382
|
+
*/
|
|
383
|
+
minimumPressDuration: {
|
|
384
|
+
value: 500,
|
|
385
|
+
unit: "ms"
|
|
386
|
+
},
|
|
387
|
+
/**
|
|
388
|
+
* UILongPressGestureRecognizer.allowableMovement default, a distance.
|
|
389
|
+
* @source apple-docs
|
|
390
|
+
* https://developer.apple.com/documentation/uikit/uilongpressgesturerecognizer/allowablemovement
|
|
391
|
+
* @source measured: UIKit lab, iOS 26.2 simulator, ivar reads confirmed
|
|
392
|
+
* with HID touches, Oct 23 2026: a (7, 7) drift begins, (7.2, 7.2) fails
|
|
393
|
+
*/
|
|
394
|
+
allowableMovement: {
|
|
395
|
+
value: 10,
|
|
396
|
+
unit: "px"
|
|
397
|
+
}
|
|
398
|
+
};
|
|
399
|
+
const UIKIT_PAN = {
|
|
400
|
+
/**
|
|
401
|
+
* Travel before a pan begins, PER AXIS: |dx| or |dy| reaching it. The
|
|
402
|
+
* translation is reset when the pan begins, so the hysteresis is not
|
|
403
|
+
* part of it. Kept below the distance at which WebKit claims a drag for
|
|
404
|
+
* scrolling, so a pan that must cancel the native scroll still sees
|
|
405
|
+
* cancelable `touchmove`s.
|
|
406
|
+
* @source measured: UIKit lab, iOS 26.2 simulator, ivar reads confirmed
|
|
407
|
+
* with HID touches, Oct 23 2026: UIPanGestureRecognizer _hysteresis 10; x
|
|
408
|
+
* and y began at 10.0, a diagonal at (10.67, 10.67); translation(in:) is
|
|
409
|
+
* 0 at .began
|
|
410
|
+
*/
|
|
411
|
+
hysteresis: {
|
|
412
|
+
value: 10,
|
|
413
|
+
unit: "px"
|
|
414
|
+
} };
|
|
415
|
+
const UIKIT_PRESS = {
|
|
416
|
+
/**
|
|
417
|
+
* UIScrollView.delaysContentTouches: a touch in a scroller highlights after
|
|
418
|
+
* this.
|
|
419
|
+
* @source measured: Settings and Contacts, iOS 26.2 simulator, HID touches
|
|
420
|
+
* filmed at 60 fps (utils/pressGesture.ts), Oct 6 2026
|
|
421
|
+
*/
|
|
422
|
+
contentTouchDelay: {
|
|
423
|
+
value: 150,
|
|
424
|
+
unit: "ms"
|
|
425
|
+
},
|
|
426
|
+
/**
|
|
427
|
+
* A tap shorter than the delay shows the highlight at the lift for this
|
|
428
|
+
* long.
|
|
429
|
+
* @source measured: Settings and Contacts, iOS 26.2 simulator, HID touches
|
|
430
|
+
* filmed at 60 fps (utils/pressGesture.ts), Oct 6 2026
|
|
431
|
+
*/
|
|
432
|
+
quickTapFlash: {
|
|
433
|
+
value: 100,
|
|
434
|
+
unit: "ms"
|
|
435
|
+
},
|
|
436
|
+
/**
|
|
437
|
+
* Travel at which a press is a scroll, not a press.
|
|
438
|
+
* @source measured: Mobile Safari 26.2, iOS 26.2 simulator, slow HID drag
|
|
439
|
+
* on a scrollable page (1 pt steps): last cancelable touchmove at 10 px,
|
|
440
|
+
* pointercancel and the first uncancelable touchmove at 11 px, Oct 23
|
|
441
|
+
* 2026
|
|
442
|
+
*/
|
|
443
|
+
slop: {
|
|
444
|
+
value: 10,
|
|
445
|
+
unit: "px"
|
|
446
|
+
},
|
|
447
|
+
/**
|
|
448
|
+
* A touch this soon after a finger-driven scroll moved is a brake, not a
|
|
449
|
+
* press.
|
|
450
|
+
* @source measured: Settings and Contacts, iOS 26.2 simulator, HID touches
|
|
451
|
+
* filmed at 60 fps (utils/pressGesture.ts), Oct 6 2026
|
|
452
|
+
*/
|
|
453
|
+
scrollBrake: {
|
|
454
|
+
value: 150,
|
|
455
|
+
unit: "ms"
|
|
456
|
+
},
|
|
457
|
+
/**
|
|
458
|
+
* How long after a finger was down a scroll can still be that finger's
|
|
459
|
+
* momentum (the brake only counts scrolls a finger drove).
|
|
460
|
+
* @source GUESS — The press model bound (utils/pressFeedback.ts): iOS
|
|
461
|
+
* momentum runs for a second or two after the lift.
|
|
462
|
+
* @measure M-G19
|
|
463
|
+
*/
|
|
464
|
+
momentumMemory: {
|
|
465
|
+
value: 3e3,
|
|
466
|
+
unit: "ms"
|
|
467
|
+
}
|
|
468
|
+
};
|
|
469
|
+
const UIKIT_VELOCITY = {
|
|
470
|
+
/**
|
|
471
|
+
* UIPanGestureRecognizer.velocity(in:) is this times the newest event's
|
|
472
|
+
* instantaneous velocity plus the rest times the previous event's
|
|
473
|
+
* (instantaneous velocity: position change over timestamp change between
|
|
474
|
+
* consecutive events, the touch-down counting as the first). The lift
|
|
475
|
+
* does not update it, and a finger at rest sends no events, so UIKit
|
|
476
|
+
* reports the last moving value after a pause; Astryx's release reads 0
|
|
477
|
+
* once the finger has rested (`spec:AST-100` FR2).
|
|
478
|
+
* @source measured: UIKit lab, iOS 26.2 simulator, ivar reads confirmed
|
|
479
|
+
* with HID touches, Oct 23 2026: fitted to all 69 velocity(in:) values of
|
|
480
|
+
* six HID streams (constant, accelerating, pauses before the lift) to 0.0
|
|
481
|
+
* pt/s
|
|
482
|
+
*/
|
|
483
|
+
currentWeight: {
|
|
484
|
+
value: .2,
|
|
485
|
+
unit: "ratio"
|
|
486
|
+
},
|
|
487
|
+
/**
|
|
488
|
+
* A scrolling surface's release (paging, a wheel) is this times the
|
|
489
|
+
* newest pan value plus the rest times the previous one
|
|
490
|
+
* (architecture:interaction-modality INV10).
|
|
491
|
+
* @source GUESS — architecture:interaction-modality INV10 states
|
|
492
|
+
* UIScrollView's release as 0.25 x the newest pan value + 0.75 x the
|
|
493
|
+
* previous one.
|
|
494
|
+
* @measure M-G14
|
|
495
|
+
*/
|
|
496
|
+
scrollReleaseWeight: {
|
|
497
|
+
value: .25,
|
|
498
|
+
unit: "ratio"
|
|
499
|
+
},
|
|
500
|
+
/**
|
|
501
|
+
* A contact that has not moved for longer than this before it lifts
|
|
502
|
+
* releases at 0 (spec:AST-100 FR2). Not a UIKit value: UIKit's filter
|
|
503
|
+
* never decays, so it flings after a rest.
|
|
504
|
+
* @source GUESS — Android VelocityTracker and Flutter VelocityTracker
|
|
505
|
+
* treat a pointer that has not moved for 40 ms as stopped.
|
|
506
|
+
* @measure M-G16
|
|
507
|
+
*/
|
|
508
|
+
stillness: {
|
|
509
|
+
value: 40,
|
|
510
|
+
unit: "ms"
|
|
511
|
+
}
|
|
512
|
+
};
|
|
513
|
+
//#endregion
|
|
514
|
+
//#region src/composables/internal/pressGesture.ts
|
|
515
|
+
/**
|
|
516
|
+
* 触屏按压模型的纯状态机:输入「刚发生了什么」,输出「现在该画什么」。
|
|
517
|
+
*
|
|
518
|
+
* 系统原生控件(UIKit)对手指的处理:滚动视图外,手指落下的那一帧就亮;
|
|
519
|
+
* 滚动视图里按下先等 0.15 秒才认,因为这次触摸可能变成滚动。滚动一接管手势就立刻取消,
|
|
520
|
+
* 这次手势里不再亮回来;抬手后淡出。iOS Safari 的 CSS `:active` 一样都不做:
|
|
521
|
+
* 手指一碰就亮,滚动开始 1.6 秒后还亮着。所以粗指针下的按压状态由这里管,
|
|
522
|
+
* `:active` 只留给鼠标。
|
|
523
|
+
*
|
|
524
|
+
* 这里不碰 DOM、不碰时钟,测试直接喂事件就能把整套规则跑一遍。
|
|
525
|
+
* DOM 那一半在 `pressFeedback.ts`。
|
|
526
|
+
*/
|
|
527
|
+
/**
|
|
528
|
+
* 滚动视图里,手指停多久才算真按。UIKit 的 `delaysContentTouches` 就是 0.15 秒。
|
|
529
|
+
* 快速划一下在这之前就被滚动接管了,所以什么都不亮。从触摸本身的时间戳算起。
|
|
530
|
+
*/
|
|
531
|
+
const PRESS_ONSET_MS = UIKIT_PRESS.contentTouchDelay.value;
|
|
532
|
+
/** 手指最多能挪多远还算按压,单位 CSS 像素。iOS 的滚动大约在这个距离接管手势。 */
|
|
533
|
+
const PRESS_SLOP_PX = UIKIT_PRESS.slop.value;
|
|
534
|
+
/** 太快的轻点:抬手时补亮,满强度保持这么久再淡出。不然最常见的操作一点反馈都没有。 */
|
|
535
|
+
const PRESS_FLASH_MS = UIKIT_PRESS.quickTapFlash.value;
|
|
536
|
+
/** 滚动刚停不久就落下的手指是在「刹车」,不是按压。这个窗口内不亮。 */
|
|
537
|
+
const PRESS_SCROLL_BRAKE_MS = UIKIT_PRESS.scrollBrake.value;
|
|
538
|
+
const IDLE = {
|
|
539
|
+
originX: 0,
|
|
540
|
+
originY: 0,
|
|
541
|
+
phase: "idle"
|
|
542
|
+
};
|
|
543
|
+
function travelled(gesture, x, y) {
|
|
544
|
+
return Math.hypot(x - gesture.originX, y - gesture.originY) > PRESS_SLOP_PX;
|
|
545
|
+
}
|
|
546
|
+
function to(gesture, phase, paint, timer) {
|
|
547
|
+
return {
|
|
548
|
+
gesture: {
|
|
549
|
+
...gesture,
|
|
550
|
+
phase
|
|
551
|
+
},
|
|
552
|
+
paint,
|
|
553
|
+
timer
|
|
554
|
+
};
|
|
555
|
+
}
|
|
556
|
+
function stay(gesture, paint) {
|
|
557
|
+
return {
|
|
558
|
+
gesture,
|
|
559
|
+
paint,
|
|
560
|
+
timer: null
|
|
561
|
+
};
|
|
562
|
+
}
|
|
563
|
+
function stepArmed(gesture, event) {
|
|
564
|
+
switch (event.kind) {
|
|
565
|
+
case "move": return travelled(gesture, event.x, event.y) ? to(gesture, "dead", "none", null) : stay(gesture, "none");
|
|
566
|
+
case "cancel": return to(gesture, "dead", "none", null);
|
|
567
|
+
case "onset": return to(gesture, "pressed", "on", null);
|
|
568
|
+
case "up": return to(gesture, "flash", "on", "flash");
|
|
569
|
+
default: return stay(gesture, "none");
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
function stepPressed(gesture, event) {
|
|
573
|
+
if (event.kind === "move" && !travelled(gesture, event.x, event.y)) return stay(gesture, "on");
|
|
574
|
+
if (event.kind === "move" || event.kind === "cancel") return to(gesture, "dead", "none", null);
|
|
575
|
+
if (event.kind === "up") return to(gesture, "fading", "fading", "fade");
|
|
576
|
+
return stay(gesture, "on");
|
|
577
|
+
}
|
|
578
|
+
/**
|
|
579
|
+
* 一个事件,一个答案。
|
|
580
|
+
*/
|
|
581
|
+
function pressGestureStep(gesture, event) {
|
|
582
|
+
if (event.kind === "down") {
|
|
583
|
+
if (event.delayed === false) return {
|
|
584
|
+
gesture: {
|
|
585
|
+
originX: event.x,
|
|
586
|
+
originY: event.y,
|
|
587
|
+
phase: "pressed"
|
|
588
|
+
},
|
|
589
|
+
paint: "on",
|
|
590
|
+
timer: null
|
|
591
|
+
};
|
|
592
|
+
return {
|
|
593
|
+
gesture: {
|
|
594
|
+
originX: event.x,
|
|
595
|
+
originY: event.y,
|
|
596
|
+
phase: "armed"
|
|
597
|
+
},
|
|
598
|
+
paint: "none",
|
|
599
|
+
timer: "onset"
|
|
600
|
+
};
|
|
601
|
+
}
|
|
602
|
+
switch (gesture.phase) {
|
|
603
|
+
case "armed": return stepArmed(gesture, event);
|
|
604
|
+
case "pressed": return stepPressed(gesture, event);
|
|
605
|
+
case "flash": return event.kind === "flashEnd" ? to(gesture, "fading", "fading", "fade") : stay(gesture, "on");
|
|
606
|
+
case "fading": return event.kind === "fadeEnd" ? stay(IDLE, "none") : stay(gesture, "fading");
|
|
607
|
+
case "dead": return event.kind === "up" ? stay(IDLE, "none") : stay(gesture, "none");
|
|
608
|
+
case "idle": return stay(IDLE, "none");
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
function idlePressGesture() {
|
|
612
|
+
return IDLE;
|
|
613
|
+
}
|
|
614
|
+
//#endregion
|
|
615
|
+
export { parseMotionRoleValue as _, idlePressGesture as a, isSpring as b, UIKIT_PAN as c, UIKIT_VELOCITY as d, registerScrollTable as f, parseCssEasing as g, motionRoleOf as h, PRESS_SLOP_PX as i, UIKIT_PRESS as l, motionRoleIn as m, PRESS_ONSET_MS as n, pressGestureStep as o, scroll as p, PRESS_SCROLL_BRAKE_MS as r, UIKIT_LONG_PRESS as s, PRESS_FLASH_MS as t, UIKIT_TAP as u, registerMotionTable as v, registerSpringRole as y };
|