@astryx-vue/core 0.33.1 → 0.33.3
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-C9mhy7gH.js → AlertDialog-BwH9WU-t.js} +9 -9
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-B4S-gbL3.js → AppShell-BwzRYOky.js} +5 -5
- package/dist/Avatar/index.js +1 -1
- package/dist/{Avatar-B93MdEmI.js → Avatar-C6E6TYbe.js} +1 -1
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/AvatarGroup/index.js +1 -1
- package/dist/{AvatarGroup-CCFMtKks.js → AvatarGroup-C0V--ipx.js} +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Banner/index.js +1 -1
- package/dist/{Banner-DfsrHUDP.js → Banner-Ds5KIeES.js} +36 -16
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/BottomSheet/index.js +2 -2
- package/dist/{BottomSheet-E_OjhAa7.js → BottomSheet-BmmGemH5.js} +1 -1
- package/dist/{BottomSheet-DxqAIVZ3.js → BottomSheet-DKEUVLe5.js} +9 -9
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/{Breadcrumbs-DMytkhxA.js → Breadcrumbs-DWAYp-JJ.js} +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/index.js +1 -1
- package/dist/{Button-BoZJv7eb.js → Button-X-Q_ghg8.js} +4 -4
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/ButtonGroup/index.js +1 -1
- package/dist/{ButtonGroup-D5E7QLWI.js → ButtonGroup-DsYdUmF1.js} +2 -2
- package/dist/Calendar/index.d.ts +1 -1
- package/dist/Carousel/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-TvReEgJA.js → Carousel-D8uVV1J_.js} +1 -1
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-C_tNbXbn.js → Chat-Dy-icS2C.js} +6 -6
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-D6KNni6p.js → CheckboxInput-CiUtutIS.js} +4 -4
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxListItem-wNOHsMMr.js → CheckboxListItem-B6sV7-Og.js} +5 -5
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/ClickableCard/index.js +1 -1
- package/dist/{ClickableCard-CLXCxaxo.js → ClickableCard-DDk_RtHd.js} +1 -1
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-U2zFJsc5.js → CodeBlock-r2-MlpBB.js} +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-Cf9evVsQ.js → Collapsible-0XI3tKgj.js} +3 -3
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-D5PGSXWz.js → CommandPalette-BYR0Lxxd.js} +3 -3
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-Co1jUTYQ.js → ComplexSelector-CIXrqCoX.js} +3 -3
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +2 -2
- package/dist/{ContextMenu-DBvZgAbg.js → ContextMenu-CfVyaP5v.js} +7 -7
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-XLGBkH4g.js → DateInput-DRzZ8dY7.js} +5 -5
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-BNpkwtVh.js → DateRangeInput-DL2aOQXJ.js} +4 -4
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-CewV_JRI.js → DateTimeInput-KWkpamG4.js} +6 -6
- package/dist/Dialog/index.js +3 -3
- package/dist/{Dialog-BbDjvBqX.js → Dialog-BM5VEE8z.js} +2 -2
- package/dist/{Dialog-CYcDiMtZ.js → Dialog-CJzq1gms.js} +1 -1
- package/dist/{DialogHeader-efWB4QQA.js → DialogHeader-Do4EOX2f.js} +2 -2
- package/dist/Divider/index.d.ts +1 -1
- package/dist/Drawer/index.d.ts +1 -1
- package/dist/Drawer/index.js +1 -1
- package/dist/{Drawer-BswIXZSo.js → Drawer-DuQ620WO.js} +2 -2
- package/dist/DropdownMenu/index.js +2 -2
- package/dist/{DropdownMenu-CCOjKL7v.js → DropdownMenu-CbENfJOq.js} +10 -10
- package/dist/EmptyState/index.js +1 -1
- package/dist/{EmptyState-BkQ3jktt.js → EmptyState-BAP8BpDj.js} +2 -2
- package/dist/Field/index.js +3 -3
- package/dist/{Field-CYfzJEFg.js → Field-B1fsgAqp.js} +1 -1
- package/dist/{FieldInfoTip-DccDjDnf.js → FieldInfoTip-CntJCcnM.js} +1 -1
- package/dist/{FieldLabel-SiRzxGz8.js → FieldLabel-D56uJrRE.js} +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-BxeGABmG.js → FileInput-EjlruVVX.js} +4 -4
- package/dist/Heading/index.js +1 -1
- package/dist/{Heading-D_7K6-23.js → Heading-D94VFJtm.js} +1 -1
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/HoverCard/index.js +1 -1
- package/dist/{HoverCard-Bkh1HZ3b.js → HoverCard-rwpyd6nt.js} +4 -4
- package/dist/IconButton/index.js +1 -1
- package/dist/{IconButton-DEhvVDmO.js → IconButton-CXg9qTRM.js} +1 -1
- package/dist/InfoTip/index.d.ts +1 -1
- package/dist/InfoTip/index.js +1 -1
- package/dist/{InfoTip-BZDG21HF.js → InfoTip-jFet-iAx.js} +2 -2
- package/dist/{InputClearButton-DezS64Mz.js → InputClearButton-DBTrsrSH.js} +1 -1
- package/dist/InputGroup/index.js +1 -1
- package/dist/{InputGroup-CENlnU_O.js → InputGroup-D7UBxktR.js} +1 -1
- package/dist/InternationalizationProvider/index.d.ts +1 -1
- package/dist/InternationalizationProvider/index.js +1 -1
- package/dist/{InternationalizationProvider-BAUKUK7N.js → InternationalizationProvider-BGtwZDY0.js} +1 -1
- package/dist/{Item-tVHjgQDe.js → Item-DbalBZXc.js} +2 -2
- package/dist/{LayerContentBoundary-D6GcF2T3.js → LayerContentBoundary-CTjEpdM4.js} +1 -1
- package/dist/Layout/index.js +2 -2
- package/dist/{Layout-DJ6CQLw2.js → Layout-BEJwZon4.js} +1 -1
- package/dist/{LayoutPanel-Bqh82ULc.js → LayoutPanel-BgJdL0KV.js} +1 -1
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-Dbwep-L-.js → Lightbox-DJXB22k0.js} +1 -1
- package/dist/Link/index.d.ts +1 -1
- package/dist/Link/index.js +1 -1
- package/dist/{Link-Csw2YXAQ.js → Link-eXwB0Hjg.js} +2 -2
- package/dist/List/index.d.ts +1 -1
- package/dist/List/index.js +2 -2
- package/dist/{ListItem-B60jTcXy.js → ListItem-C5B8uYyn.js} +4 -4
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-CTRMjOpY.js → Markdown-COub2yng.js} +3 -3
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-Ce8cVqzp.js → MobileNavToggle-DI5yDKfp.js} +2 -2
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-CfUKxxnB.js → MoreMenu-C7gie2PE.js} +8 -8
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-BG0oQjhR.js → MultiSelector-CnGUU8P3.js} +7 -7
- package/dist/{NavDisclosure-lQVs4eJB.js → NavDisclosure-CSnUZY3k.js} +1 -1
- package/dist/{NavHeadingSurface-CkDdgQV1.js → NavHeadingSurface-C3fTf5--.js} +1 -1
- package/dist/NavItem/index.js +1 -1
- package/dist/{NavItem-B7xpLk_x.js → NavItem-Cciu9aok.js} +1 -1
- package/dist/NavMenu/index.js +3 -3
- package/dist/{NavMenu-Bf_rGSbX.js → NavMenu--iyy_m84.js} +2 -2
- package/dist/{NavMenuItem-BblWAGof.js → NavMenuItem-BmAm-Cv8.js} +3 -3
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-CLQ1dgsb.js → NumberInput-CD9sHbON.js} +3 -3
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-coqRQ06s.js → Outline-vieAJS2J.js} +3 -3
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-V728L06i.js → OverflowList-YLVHypB3.js} +2 -2
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-B71t50Xl.js → Pagination-Bnkp4oAA.js} +2 -2
- package/dist/PanGestureRecognizer-CzIWpazn.js +681 -0
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-BX8Qy08n.js → Popover-CYJ1z_7L.js} +10 -10
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-ZfZNn-68.js → PowerSearch-DEpXEmgs.js} +27 -27
- package/dist/PressTracker-L5-Ark_9.js +190 -0
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/ProgressBar/index.js +1 -1
- package/dist/ProgressBar-ChgsiVRR.js +325 -0
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-8KAVhDTz.js → RadioGroup-BdO-xZv0.js} +5 -5
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioListItem-FY0cSKWR.js → RadioListItem-DzGPuWTt.js} +1 -1
- package/dist/Resizable/index.d.ts +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{ResizeHandle-ezvpdXTS.js → ResizeHandle-Dcel1HkU.js} +2 -2
- 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-BdbqWErg.js → SegmentedControl-BURyE9XU.js} +2 -2
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/SelectableCard/index.js +1 -1
- package/dist/{SelectableCard-Dj2fRvfe.js → SelectableCard-BZTF6qw-.js} +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-DjZSKGCz.js → Selector-SkwSbf4j.js} +5 -5
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +2 -2
- package/dist/{SideNav-DjPwCh4O.js → SideNav-BxJfJU95.js} +9 -9
- package/dist/Skeleton/index.d.ts +1 -1
- package/dist/Slider/index.js +1 -1
- package/dist/Slider-ORmi7QJ7.js +1785 -0
- package/dist/Spinner/index.d.ts +1 -1
- package/dist/Spinner/index.js +1 -1
- package/dist/Spinner-D1adu3uH.js +266 -0
- package/dist/Stack/index.d.ts +1 -1
- package/dist/StatusDot/index.js +1 -1
- package/dist/{StatusDot-C4_Zj3oZ.js → StatusDot-D7nVuPg7.js} +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-C3ZFN-Gp.js → Stepper-C4-wtxn4.js} +149 -103
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/Switch-Cw1UKVjQ.js +1468 -0
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-D70Pl_ob.js → TabList-DNDe2ipJ.js} +3 -3
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +1 -1
- package/dist/{Table-8Vj50mYm.js → Table-CqppyRk8.js} +14 -14
- package/dist/Text/index.js +1 -1
- package/dist/{Text-6_wt88Br.js → Text-kwsIut3C.js} +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-DMMHiOEb.js → TextArea-I3ghDb9r.js} +4 -4
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-JuggLbDZ.js → TextInput-Xz_ibpOl.js} +4 -4
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-Sq-2e8zN.js → Thumbnail-bS62Tr_f.js} +4 -4
- package/dist/{TimeField-CuRkZZlx.js → TimeField-Bsb8n22d.js} +4 -4
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-CREpxTpG.js → TimeInput-D40_6GrX.js} +2 -2
- package/dist/Timer/index.d.ts +1 -1
- package/dist/Timer/index.js +1 -1
- package/dist/{Timer-C18tBgls.js → Timer-B-9sSJWK.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-BL8R7ZQ8.js → Timestamp-Bt9ZR975.js} +3 -3
- package/dist/Toast/index.js +1 -1
- package/dist/{Toast-BtJHuIen.js → Toast-BQxfIeVU.js} +5 -3
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/ToggleButton/index.js +1 -1
- package/dist/{ToggleButton-DrnT3-jX.js → ToggleButton-IFhFMpQh.js} +3 -3
- package/dist/Token/index.js +1 -1
- package/dist/{Token-DZmmnHEj.js → Token-CpmqfG4i.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-BRFlVyMv.js → Tokenizer-Dvr7ICpS.js} +16 -15
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/Tooltip/index.js +2 -2
- package/dist/{Tooltip-Dwr0XREF.js → Tooltip-DyGaJUbl.js} +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-GwsSkeei.js → TopNav-Cw_dcKpf.js} +5 -5
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-BGHHEcg1.js → TreeList-CBfKKbUQ.js} +4 -4
- package/dist/Typeahead/index.js +2 -2
- package/dist/{Typeahead-H3uWMS7i.js → Typeahead-D9-WjsCU.js} +6 -6
- package/dist/{VelocityTracker-DVbtTSXR.js → VelocityTracker-CPFBHDpy.js} +1 -1
- package/dist/{accessibleName-Bjt5L8jX.js → accessibleName-Cw9s1690.js} +2 -2
- package/dist/{animator-DLWdws2R.js → animator-ozeBZ_zC.js} +4 -3
- package/dist/{assertOptions-BdLvkG6M.js → assertOptions-V_jJxpn9.js} +1 -1
- package/dist/{clickGuard-C3VmOLhI.js → clickGuard-CxqcfBCJ.js} +2 -2
- package/dist/{coarsePointer-BfMx3H23.js → coarsePointer-DGnAPIcU.js} +1 -1
- package/dist/composables/index.js +10 -10
- package/dist/{composables-OL_sC9Qy.js → composables-BJoAw6XA.js} +12 -10
- package/dist/{context-BcJmSPj1.js → context-WDet15_N.js} +1 -1
- package/dist/{useAttachment-BohgLE3o.js → geometry-CoQRz-F1.js} +12 -710
- package/dist/{gestures-C8VhWve7.js → gestures-yKyyMqeQ.js} +226 -2
- package/dist/{holdEntranceInput-DgimbgGm.js → holdEntranceInput-BsusS3bM.js} +2 -2
- package/dist/{index-Dpz-JUMl.d.ts → index--kbwaSXW.d.ts} +2 -2
- package/dist/{index-X4S7_dmq.d.ts → index-BA8exXNP.d.ts} +1 -1
- package/dist/{index-0RIgvtdm.d.ts → index-BI1QLuYB.d.ts} +1 -1
- package/dist/{index-yaS9_EpM.d.ts → index-BVi16JNo.d.ts} +2 -2
- package/dist/{index-DvrrgBYc.d.ts → index-BVx-HFp8.d.ts} +1 -1
- package/dist/{index-BB9acgK8.d.ts → index-BgT6mH3U.d.ts} +1 -1
- package/dist/{index-QC9FDUDA.d.ts → index-BqQlY3fL.d.ts} +2 -2
- package/dist/{index-Cb-rvc1W.d.ts → index-BtqvPjAf.d.ts} +2 -2
- package/dist/{index-CZ29Xu_E.d.ts → index-Bwh8O-v8.d.ts} +1 -1
- package/dist/{index-D05JGsT3.d.ts → index-C8wfe0Mr.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-BaFphczL.d.ts → index-COgrQZIL.d.ts} +1 -1
- package/dist/{index-AgTJRqUY.d.ts → index-CQi9WGWE.d.ts} +2 -2
- package/dist/{index-D33x3IfY.d.ts → index-CTv55aOa.d.ts} +1 -1
- package/dist/{index-18IUS3l0.d.ts → index-CY0KtUSC.d.ts} +53 -53
- package/dist/{index-CUwmD3Ph.d.ts → index-D1JOMiI5.d.ts} +3 -3
- package/dist/{index-MvrDMqnQ.d.ts → index-DPhQZXYw.d.ts} +2 -2
- package/dist/{index-B2XndRvV.d.ts → index-DuxRUPMc.d.ts} +2 -2
- package/dist/{index-EAKu_r6h.d.ts → index-GyRgg1-v.d.ts} +3 -3
- package/dist/{index-DVX2jlTQ.d.ts → index-JE1HrzdJ.d.ts} +2 -2
- package/dist/{index-Dt_9IR_M.d.ts → index-JGPd3Ghy.d.ts} +1 -1
- package/dist/{index-Q1oG9yIT.d.ts → index-Pad9p8CU.d.ts} +3 -1
- package/dist/index.d.ts +24 -24
- package/dist/index.js +107 -107
- package/dist/{inputHold-DW2LYHb5.js → inputHold-BJtjc9iI.js} +4 -4
- package/dist/{inputHoldState-xntIqr5W.js → inputHoldState-BYi5FKZl.js} +2 -2
- package/dist/{inputStream-bPd9eB2b.js → inputStream-HXw2lZ-3.js} +1 -1
- package/dist/{landing-Dx9vPF0t.js → landing-Qk_FHR-s.js} +1 -1
- package/dist/{layerDepth-D-80Ay8B.js → layerDepth-SGFJ5L6X.js} +1 -1
- package/dist/{lazyBottomSheet-s0ckIf0f.js → lazyBottomSheet-Bg5E8lr3.js} +1 -1
- package/dist/{linearEasing-BxWjPql6.js → linearEasing-VHwy6xl_.js} +136 -87
- package/dist/{loadCatalog-VYidi1Xi.d.ts → loadCatalog-BODWYaNy.d.ts} +2 -0
- package/dist/{loadCatalog-zJKVLZ89.js → loadCatalog-DMOOMWtw.js} +3 -2
- package/dist/locale/index.d.ts +2 -2
- package/dist/locale/index.js +3 -3
- package/dist/{locale-C9LWi1y1.js → locale-C8X7gJlc.js} +1 -1
- package/dist/{presentation-Cy_yf56y.js → presentation-twEOzzJq.js} +1 -1
- package/dist/{presentationHold-B4tK68sd.js → presentationHold-CZsVmjlY.js} +1 -1
- package/dist/{pressFeedback-CPzGi_88.js → pressFeedback-9ogipvI4.js} +4 -4
- package/dist/{pressGesture-BV4fYPIG.js → pressGesture-B3Efxs_z.js} +1 -1
- package/dist/{rubberBand-DecgmtDj.js → projection-qPcLQcwK.js} +2 -50
- package/dist/{reportChange-BkOEttEP.js → reportChange-BUTgduu-.js} +5 -4
- package/dist/{resizableChannel-DS0idC-X.js → resizableChannel-_j_AW2B6.js} +5 -5
- package/dist/{resolveMotion-BLdMNTpf.js → resolveMotion-DftkGFw6.js} +2 -2
- package/dist/{resolveSnapPoint-DygD-wmL.js → resolveSnapPoint-A4dhS5jj.js} +1 -1
- package/dist/{roles-CPMsH5Ob.js → roles-DWH31Bn3.js} +126 -1
- package/dist/rubberBand-DDd5ElTe.js +65 -0
- package/dist/{sharedRealm-H1OrlP0V.js → sharedRealm-DBtNH73I.js} +9 -1
- package/dist/{springs-BR66JuIm.js → springs-DjAn_oV5.js} +2 -2
- package/dist/{stepper-BMSGF96H.js → stepper-D7L_3xxU.js} +4 -2
- package/dist/{stillPointerGate-CrsrgFyo.js → stillPointerGate-BvCX7ddI.js} +1 -1
- package/dist/{themeTiming-BA_wpgEn.js → themeTiming-ClYaZxGf.js} +1 -1
- package/dist/{tooltipFocusRules-BWcYZXu8.js → tooltipFocusRules-CxIlSnHw.js} +2 -2
- package/dist/{tooltipTriggerRules-DFPKbHJc.js → tooltipTriggerRules-CHNpQ6RL.js} +1 -1
- package/dist/{touchHold-DXtx7npm.js → touchHold-CjNjGH7O.js} +1 -1
- package/dist/{useActionGroupTracking-iv0p__dY.js → useActionGroupTracking-ByLJoM-8.js} +3 -3
- package/dist/{useAnimatedLayout-BC1mJaxA.js → useAnimatedLayout-IcX0UfS4.js} +1 -1
- package/dist/useAttachment-CGiD9rt6.js +24 -0
- package/dist/{useChatStreamScroll-CuMzkXgD.js → useChatStreamScroll-DcNKcNTj.js} +1 -1
- package/dist/{useDismiss-Di0mkAl_.js → useDismiss-6SGAlkB_.js} +1 -1
- package/dist/{useHeldPresentation-BF5vGVUn.js → useHeldPresentation-DJEthuMT.js} +1 -1
- package/dist/{useInputStatusIcon-Dese9hBA.js → useInputStatusIcon-D0q4S1Ye.js} +1 -1
- package/dist/{useMenuEntranceHold-HznOwIry.js → useMenuEntranceHold-B7f9ShX2.js} +1 -1
- package/dist/{useMenuPress-RFwJ3jGS.js → useMenuPress-cBIQyTsN.js} +4 -4
- package/dist/{usePressFeedback-BuyFZkQO.js → usePressFeedback-Dx-a3i82.js} +1 -1
- package/dist/{useResizable-K9hlQr8i.js → useResizable-JvgYydox.js} +6 -5
- package/dist/{useTooltip-48Smw61m.js → useTooltip-owvVSn_m.js} +4 -4
- package/dist/{useTouchHitArea-Dsz80HzY.js → useTouchHitArea-BGkvMAyp.js} +2 -2
- package/dist/{useTouchTriggerInternal-CUiq_FYD.js → useTouchTriggerInternal-5ExaYYSy.js} +1 -1
- package/dist/{useTruncationTooltip-D1Iwku73.js → useTruncationTooltip-DHI6q_EV.js} +3 -3
- package/dist/{useTypeaheadMenuConfig-CiTAlquw.js → useTypeaheadMenuConfig-COiZ4isy.js} +2 -2
- package/package.json +1 -1
- package/styles/progress-bar.css +69 -5
- package/styles/skeleton.css +62 -5
- package/styles/slider.css +59 -12
- package/styles/spinner.css +30 -7
- package/styles/switch.css +101 -34
- package/dist/ProgressBar-jtD4zcDW.js +0 -166
- package/dist/Slider-TpbMaQ4Q.js +0 -735
- package/dist/Spinner-DEVPDsD0.js +0 -201
- package/dist/Switch-CW27rVAy.js +0 -355
|
@@ -1,89 +1,4 @@
|
|
|
1
|
-
import { a as registerMotionTable } from "./roles-
|
|
2
|
-
//#region src/motion/springParameters.ts
|
|
3
|
-
/**
|
|
4
|
-
* @file springParameters.ts
|
|
5
|
-
* @output The `Spring` model and the conversions between Apple's spring
|
|
6
|
-
* vocabularies (duration and bounce, response and damping ratio, mass,
|
|
7
|
-
* stiffness and damping), and UIKit's relative velocity
|
|
8
|
-
* @position Pure math under spring.ts, which re-exports all of it. See
|
|
9
|
-
* spring.ts for the sources of each conversion.
|
|
10
|
-
*/
|
|
11
|
-
const TAU = 2 * Math.PI;
|
|
12
|
-
function assertPositiveFinite(name, value) {
|
|
13
|
-
if (!(Number.isFinite(value) && value > 0)) throw new RangeError(`spring: ${name} must be a positive number, got ${value}`);
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* SwiftUI's `Spring(duration:bounce:)` and UIKit's
|
|
17
|
-
* `UIView.animate(springDuration:bounce:…)`: the WWDC23 equations. Bounce is
|
|
18
|
-
* clamped to SwiftUI's documented range (−1, 1].
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* ```
|
|
22
|
-
* springFromDurationBounce({duration: 0.5, bounce: 0}); // SwiftUI .smooth
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
function springFromDurationBounce({ duration, bounce }) {
|
|
26
|
-
assertPositiveFinite("duration", duration);
|
|
27
|
-
if (!Number.isFinite(bounce)) throw new RangeError(`spring: bounce must be finite, got ${bounce}`);
|
|
28
|
-
const b = Math.min(1, Math.max(-.999999, bounce));
|
|
29
|
-
return {
|
|
30
|
-
mass: 1,
|
|
31
|
-
stiffness: (TAU / duration) ** 2,
|
|
32
|
-
damping: b >= 0 ? (1 - b) * 2 * TAU / duration : 2 * TAU / (duration * (1 + b))
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* SwiftUI's `Spring(response:dampingRatio:)` and
|
|
37
|
-
* `Animation.spring(response:dampingFraction:)`. Overdamping (ratio > 1) is
|
|
38
|
-
* kept, as SwiftUI keeps it for this initializer.
|
|
39
|
-
*/
|
|
40
|
-
function springFromResponse({ response, dampingRatio }) {
|
|
41
|
-
assertPositiveFinite("response", response);
|
|
42
|
-
if (!(Number.isFinite(dampingRatio) && dampingRatio >= 0)) throw new RangeError(`spring: dampingRatio must be ≥ 0, got ${dampingRatio}`);
|
|
43
|
-
const omega = TAU / response;
|
|
44
|
-
return {
|
|
45
|
-
mass: 1,
|
|
46
|
-
stiffness: omega * omega,
|
|
47
|
-
damping: 2 * dampingRatio * omega
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* `CASpringAnimation` / `UISpringTimingParameters(mass:stiffness:damping:)`
|
|
52
|
-
* / SwiftUI `Spring(mass:stiffness:damping:allowOverDamping:)`. Like SwiftUI,
|
|
53
|
-
* an overdamped spring is treated as critically damped unless
|
|
54
|
-
* `allowOverdamping` is set: "a value of false specifies that such cases
|
|
55
|
-
* should instead be treated as critically damped".
|
|
56
|
-
*/
|
|
57
|
-
function springFromPhysics({ mass = 1, stiffness, damping, allowOverdamping = false }) {
|
|
58
|
-
assertPositiveFinite("mass", mass);
|
|
59
|
-
assertPositiveFinite("stiffness", stiffness);
|
|
60
|
-
if (!(Number.isFinite(damping) && damping >= 0)) throw new RangeError(`spring: damping must be ≥ 0, got ${damping}`);
|
|
61
|
-
const critical = 2 * Math.sqrt(stiffness * mass);
|
|
62
|
-
return {
|
|
63
|
-
mass,
|
|
64
|
-
stiffness,
|
|
65
|
-
damping: allowOverdamping ? damping : Math.min(damping, critical)
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
/** Undamped angular frequency ω₀ = √(k/m), rad/s. */
|
|
69
|
-
function naturalFrequency(spring) {
|
|
70
|
-
return Math.sqrt(spring.stiffness / spring.mass);
|
|
71
|
-
}
|
|
72
|
-
/** Damping ratio ζ = c / (2·√(k·m)). */
|
|
73
|
-
function dampingRatioOf(spring) {
|
|
74
|
-
return spring.damping / (2 * Math.sqrt(spring.stiffness * spring.mass));
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Normalizes a description to the physical `Spring`. A physical description
|
|
78
|
-
* gets `springFromPhysics`' treatment: overdamping is clamped to critical, as
|
|
79
|
-
* SwiftUI and Core Animation do by default.
|
|
80
|
-
*/
|
|
81
|
-
function toSpring(description) {
|
|
82
|
-
if ("stiffness" in description) return springFromPhysics(description);
|
|
83
|
-
if ("bounce" in description) return springFromDurationBounce(description);
|
|
84
|
-
return springFromResponse(description);
|
|
85
|
-
}
|
|
86
|
-
//#endregion
|
|
1
|
+
import { a as registerMotionTable, l as dampingRatioOf, u as naturalFrequency } from "./roles-DWH31Bn3.js";
|
|
87
2
|
//#region src/motion/spring.ts
|
|
88
3
|
/**
|
|
89
4
|
* Closed-form solution of the spring released at `from` with
|
|
@@ -203,6 +118,69 @@ function settlingDuration(spring, { initialVelocity = 0, epsilon = SETTLING_EPSI
|
|
|
203
118
|
* [x1, y1, x2, y2].
|
|
204
119
|
*/
|
|
205
120
|
/**
|
|
121
|
+
* The touch press clocks, its own export so a reader of one clock does not
|
|
122
|
+
* bundle the rest of the table (`architecture:component-style-authoring`
|
|
123
|
+
* INV6).
|
|
124
|
+
*/
|
|
125
|
+
const press = {
|
|
126
|
+
/**
|
|
127
|
+
* Highlight onset once a press is believed: none, the highlight is
|
|
128
|
+
* painted in the frame the touch is accepted (after
|
|
129
|
+
* `scroll.delaysContentTouchesMs` inside a scroller).
|
|
130
|
+
* @source measured: Settings and Contacts, iOS 26.2, simulator driven
|
|
131
|
+
* with real HID touches at 60 fps (touch press model,
|
|
132
|
+
* packages/core/src/utils/pressGesture.ts, 2026-10-06)
|
|
133
|
+
*/
|
|
134
|
+
highlightInMs: 0,
|
|
135
|
+
/**
|
|
136
|
+
* A tap released before the onset delay still flashes the highlight at
|
|
137
|
+
* full strength for this long before fading.
|
|
138
|
+
* @source measured: Settings and Contacts, iOS 26.2, simulator driven
|
|
139
|
+
* with real HID touches at 60 fps (PRESS_FLASH_MS,
|
|
140
|
+
* packages/core/src/utils/pressGesture.ts, 2026-10-06)
|
|
141
|
+
*/
|
|
142
|
+
flashMs: 100,
|
|
143
|
+
/**
|
|
144
|
+
* Highlight fade after release: UIKit's deselect cross-fade. Reference
|
|
145
|
+
* only, not played: a press release plays the theme's exit motion tokens
|
|
146
|
+
* (`--duration-exit`, `--ease-exit`).
|
|
147
|
+
* @source measured: Settings and Contacts, iOS 26.2, simulator driven
|
|
148
|
+
* with real HID touches at 60 fps (touch press model,
|
|
149
|
+
* packages/core/src/utils/pressGesture.ts, 2026-10-06)
|
|
150
|
+
*/
|
|
151
|
+
highlightOutMs: 200,
|
|
152
|
+
/**
|
|
153
|
+
* The highlight fade's curve after release: an ease-out that spends the
|
|
154
|
+
* whole clock fading (strength about 0.2 at the midpoint). Reference only,
|
|
155
|
+
* not played: a press release plays the theme's `--ease-exit`.
|
|
156
|
+
* @source GUESS — the release curve the touch press model shipped with,
|
|
157
|
+
* chosen to read as UIKit's deselect cross-fade, not read from UIKit
|
|
158
|
+
* @measure M-PR1
|
|
159
|
+
*/
|
|
160
|
+
highlightOutCurve: [
|
|
161
|
+
0,
|
|
162
|
+
0,
|
|
163
|
+
.2,
|
|
164
|
+
1
|
|
165
|
+
],
|
|
166
|
+
/**
|
|
167
|
+
* A touch on a scroller that moved this recently brakes it instead of
|
|
168
|
+
* pressing.
|
|
169
|
+
* @source measured: Settings and Contacts, iOS 26.2, simulator driven
|
|
170
|
+
* with real HID touches at 60 fps (PRESS_SCROLL_BRAKE_MS,
|
|
171
|
+
* packages/core/src/utils/pressGesture.ts, 2026-10-06)
|
|
172
|
+
*/
|
|
173
|
+
scrollBrakeMs: 150,
|
|
174
|
+
/**
|
|
175
|
+
* UIButton (filled configuration) release: the label cross-fade and the
|
|
176
|
+
* background color both run 0.25 s on `curves.move`.
|
|
177
|
+
* @source measured: UIKit lab (injected host app), iOS 26.2 simulator,
|
|
178
|
+
* iPhone 17 Pro, CAAnimation read (CATransition fade and backgroundColor),
|
|
179
|
+
* Oct 23 2026
|
|
180
|
+
*/
|
|
181
|
+
buttonReleaseMs: 250
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
206
184
|
* The Reduce Motion fade, its own export so the animator reads it without
|
|
207
185
|
* the rest of the table (`architecture:component-style-authoring` INV6).
|
|
208
186
|
* `timing` composes it under its table paths, `reducedMotionCrossFadeMs` and
|
|
@@ -240,6 +218,77 @@ const reducedMotionCrossFade = {
|
|
|
240
218
|
]
|
|
241
219
|
};
|
|
242
220
|
const { durationMs: reducedMotionCrossFadeMs, curve: move } = reducedMotionCrossFade;
|
|
221
|
+
const timing = {
|
|
222
|
+
press,
|
|
223
|
+
curves: {
|
|
224
|
+
/**
|
|
225
|
+
* `CAMediaTimingFunctionName.default`: "the timing of … most system
|
|
226
|
+
* animations" that are not springs.
|
|
227
|
+
* @source apple-docs https://developer.apple.com/documentation/quartzcore/camediatimingfunctionname/default
|
|
228
|
+
* @source measured: UIKit lab (injected host app), iOS 26.2 simulator,
|
|
229
|
+
* iPhone 17 Pro, CAMediaTimingFunction read from UIView.animate,
|
|
230
|
+
* Oct 23 2026
|
|
231
|
+
*/
|
|
232
|
+
viewChange: [
|
|
233
|
+
.25,
|
|
234
|
+
.1,
|
|
235
|
+
.25,
|
|
236
|
+
1
|
|
237
|
+
],
|
|
238
|
+
move,
|
|
239
|
+
/**
|
|
240
|
+
* `easeIn`.
|
|
241
|
+
* @source apple-docs https://developer.apple.com/documentation/quartzcore/camediatimingfunctionname/easein
|
|
242
|
+
* @source measured: UIKit lab (injected host app), iOS 26.2 simulator,
|
|
243
|
+
* iPhone 17 Pro, CAMediaTimingFunction read from UIView.animate,
|
|
244
|
+
* Oct 23 2026
|
|
245
|
+
*/
|
|
246
|
+
exit: [
|
|
247
|
+
.42,
|
|
248
|
+
0,
|
|
249
|
+
1,
|
|
250
|
+
1
|
|
251
|
+
],
|
|
252
|
+
/**
|
|
253
|
+
* `easeOut`.
|
|
254
|
+
* @source apple-docs https://developer.apple.com/documentation/quartzcore/camediatimingfunctionname/easeout
|
|
255
|
+
* @source measured: UIKit lab (injected host app), iOS 26.2 simulator,
|
|
256
|
+
* iPhone 17 Pro, CAMediaTimingFunction read from UIView.animate,
|
|
257
|
+
* Oct 23 2026
|
|
258
|
+
*/
|
|
259
|
+
entrance: [
|
|
260
|
+
0,
|
|
261
|
+
0,
|
|
262
|
+
.58,
|
|
263
|
+
1
|
|
264
|
+
]
|
|
265
|
+
},
|
|
266
|
+
/**
|
|
267
|
+
* `UINavigationController.hideShowBarDuration`, in ms.
|
|
268
|
+
* @source apple-docs https://developer.apple.com/documentation/uikit/uinavigationcontroller/hideshowbarduration
|
|
269
|
+
* (the constant, not its value)
|
|
270
|
+
* @source measured: UIKit lab (injected host app), iOS 26.2 simulator,
|
|
271
|
+
* iPhone 17 Pro, read, Oct 23 2026
|
|
272
|
+
*/
|
|
273
|
+
navigationBarHideShowMs: 200,
|
|
274
|
+
/**
|
|
275
|
+
* The duration the keyboard notifications report
|
|
276
|
+
* (UIKeyboardAnimationDurationUserInfoKey, with curve 7), show and hide
|
|
277
|
+
* alike, in ms. The frame follows `springs.keyboard`, cut at this time.
|
|
278
|
+
* @source measured: UIKit lab (injected host app), iOS 26.2 simulator,
|
|
279
|
+
* iPhone 17 Pro, UIKeyboardWillShow / WillHide / WillChangeFrame read,
|
|
280
|
+
* Oct 23 2026
|
|
281
|
+
*/
|
|
282
|
+
keyboardNotificationMs: 383.3,
|
|
283
|
+
/**
|
|
284
|
+
* Core Animation's implicit animation duration
|
|
285
|
+
* (`CATransaction.animationDuration()`), in ms.
|
|
286
|
+
* @source measured: UIKit lab (injected host app), iOS 26.2 simulator,
|
|
287
|
+
* iPhone 17 Pro, read, Oct 23 2026
|
|
288
|
+
*/
|
|
289
|
+
stateChangeMs: 250,
|
|
290
|
+
reducedMotionCrossFadeMs
|
|
291
|
+
};
|
|
243
292
|
const reducedMotionCrossFadeRoles = { curves: { move } };
|
|
244
293
|
/**
|
|
245
294
|
* Registers only the Reduce Motion fade's curve as its role,
|
|
@@ -279,4 +328,4 @@ function linearEasing(durationMs, done) {
|
|
|
279
328
|
return `linear(${stops.join(", ")})`;
|
|
280
329
|
}
|
|
281
330
|
//#endregion
|
|
282
|
-
export {
|
|
331
|
+
export { registerReducedMotionCrossFade as a, solveSpring as c, reducedMotionCrossFade as i, sampleCount as n, timing as o, press as r, settlingDuration as s, linearEasing as t };
|
|
@@ -35,7 +35,7 @@ import { t as numberInputMessages } from "./number-input-DTjrRWmU.js";
|
|
|
35
35
|
import { t as outlineMessages } from "./outline-BflaJV62.js";
|
|
36
36
|
import { t as paginationMessages } from "./pagination-CxZBYsPu.js";
|
|
37
37
|
import { t as sliderMessages } from "./slider-6ZlGhyPD.js";
|
|
38
|
-
import { t as stepperMessages } from "./stepper-
|
|
38
|
+
import { t as stepperMessages } from "./stepper-D7L_3xxU.js";
|
|
39
39
|
import { t as switchMessages } from "./switch-B9xwxdOU.js";
|
|
40
40
|
import { t as tabListMessages } from "./tab-list-B_q2n-9d.js";
|
|
41
41
|
import { t as textAreaMessages } from "./text-area-CsnUYtMk.js";
|
|
@@ -2233,7 +2233,8 @@ const navigationUpstreamMap = {
|
|
|
2233
2233
|
}],
|
|
2234
2234
|
"@astryx.step.status.completed": [{ path: "stepper.status.completed" }],
|
|
2235
2235
|
"@astryx.step.status.warning": [{ path: "stepper.status.warning" }],
|
|
2236
|
-
"@astryx.step.status.error": [{ path: "stepper.status.error" }]
|
|
2236
|
+
"@astryx.step.status.error": [{ path: "stepper.status.error" }],
|
|
2237
|
+
"@astryx.step.status.unavailable": [{ path: "stepper.status.unavailable" }]
|
|
2237
2238
|
};
|
|
2238
2239
|
//#endregion
|
|
2239
2240
|
//#region src/locale/upstream/overlays.ts
|
package/dist/locale/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as PopoverMessages, $t as CodeBlockMessages, A as TextAreaMessages, At as infoTipMessages, B as SpinnerMessages, Bt as dialogMessages, C as timestampMessages, Cn as AstryxLocale, Ct as KeyboardHintMessages, D as thumbnailMessages, Dt as InputMessages, E as ThumbnailMessages, Et as kbdMessages, F as tabListMessages, Ft as EmojiPickerMessages, G as selectorMessages, Gt as ContextMenuMessages, H as SliderMessages, Ht as dateTimeInputMessages, I as SwitchMessages, It as emojiPickerMessages, J as PowerSearchMessages, Jt as commentsMessages, K as RichTextEditorMessages, Kt as contextMenuMessages, L as switchMessages, Lt as DropdownMenuMessages, M as TableMessages, Mt as fileInputMessages, N as tableMessages, Nt as FieldMessages, O as TextInputMessages, Ot as inputMessages, P as TabListMessages, Pt as fieldMessages, Q as powerSearchSheetMessages, Qt as commandPaletteMessages, R as StepperMessages, Rt as dropdownMenuMessages, S as TimestampMessages, Sn as dateInputMessages, St as layoutMessages, T as timeInputMessages, Tt as KbdMessages, U as sliderMessages, Ut as DateRangeInputMessages, V as spinnerMessages, Vt as DateTimeInputMessages, W as SelectorMessages, Wt as dateRangeInputMessages, X as powerSearchMessages, Xt as commentComposerMessages, Y as PowerSearchOperatorMessages, Yt as CommentComposerMessages, Z as PowerSearchSheetMessages, Zt as CommandPaletteMessages, _ as tokenizerMessages, _n as AvatarGroupMessages, _t as ListInputMessages, a as UnmappedUpstreamReason, an as ChatMessages, at as NumberInputMessages, b as ToastMessages, bn as alertDialogMessages, bt as lightboxMessages, c as TypeaheadMessages, cn as carouselMessages, ct as navMessages, d as treeListMessages, dn as ButtonMessages, dt as MoreMenuMessages, en as codeBlockMessages, et as popoverMessages, f as TransferListMessages, fn as buttonMessages, ft as moreMenuMessages, g as TokenizerMessages, gn as bannerMessages, gt as markdownMessages, h as transferListSelectorMessages, hn as BannerMessages, ht as MarkdownMessages, i as UnmappedUpstreamEntry, in as checkboxListMessages, it as outlineMessages, j as textAreaMessages, jt as FileInputMessages, k as textInputMessages, kt as InfoTipMessages, l as typeaheadMessages, ln as CalendarMessages, lt as MultiSelectorMessages, m as TransferListSelectorMessages, mn as breadcrumbsMessages, mt as metadataListMessages, n as AstryxUpstreamMessage, nn as citationMessages, nt as paginationMessages, o as loadAstryxCatalog, on as chatMessages, ot as numberInputMessages, p as transferListMessages, pn as BreadcrumbsMessages, pt as MetadataListMessages, q as richTextEditorMessages, qt as CommentsMessages, r as LoadedAstryxLocale, rn as CheckboxListMessages, rt as OutlineMessages, s as AstryxMessages, sn as CarouselMessages, st as NavMessages, t as AstryxUpstreamCatalog, tn as CitationMessages, tt as PaginationMessages, u as TreeListMessages, un as calendarMessages, ut as multiSelectorMessages, v as TokenMessages, vn as avatarGroupMessages, vt as listInputMessages, w as TimeInputMessages, wn as CalendarSystem, wt as keyboardHintMessages, x as toastMessages, xn as DateInputMessages, xt as LayoutMessages, y as tokenMessages, yn as AlertDialogMessages, yt as LightboxMessages, z as stepperMessages, zt as DialogMessages } from "../loadCatalog-
|
|
2
|
-
import { _ as useAstryxLocale, a as UseLocaleReturn, c as useAstryxMessages, d as ComponentMessageDefaults, f as ComponentMessages, g as provideAstryxLocale, h as normalizeLocale, i as useTranslator, l as formatCalendarMonth, m as astryxMessagesKey, n as TranslatorValues, o as useLocale, p as astryxLocaleKey, r as UseTranslatorReturn, s as useCollator, t as Translator, u as weekdayNames, v as useComponentMessages } from "../index-
|
|
1
|
+
import { $ as PopoverMessages, $t as CodeBlockMessages, A as TextAreaMessages, At as infoTipMessages, B as SpinnerMessages, Bt as dialogMessages, C as timestampMessages, Cn as AstryxLocale, Ct as KeyboardHintMessages, D as thumbnailMessages, Dt as InputMessages, E as ThumbnailMessages, Et as kbdMessages, F as tabListMessages, Ft as EmojiPickerMessages, G as selectorMessages, Gt as ContextMenuMessages, H as SliderMessages, Ht as dateTimeInputMessages, I as SwitchMessages, It as emojiPickerMessages, J as PowerSearchMessages, Jt as commentsMessages, K as RichTextEditorMessages, Kt as contextMenuMessages, L as switchMessages, Lt as DropdownMenuMessages, M as TableMessages, Mt as fileInputMessages, N as tableMessages, Nt as FieldMessages, O as TextInputMessages, Ot as inputMessages, P as TabListMessages, Pt as fieldMessages, Q as powerSearchSheetMessages, Qt as commandPaletteMessages, R as StepperMessages, Rt as dropdownMenuMessages, S as TimestampMessages, Sn as dateInputMessages, St as layoutMessages, T as timeInputMessages, Tt as KbdMessages, U as sliderMessages, Ut as DateRangeInputMessages, V as spinnerMessages, Vt as DateTimeInputMessages, W as SelectorMessages, Wt as dateRangeInputMessages, X as powerSearchMessages, Xt as commentComposerMessages, Y as PowerSearchOperatorMessages, Yt as CommentComposerMessages, Z as PowerSearchSheetMessages, Zt as CommandPaletteMessages, _ as tokenizerMessages, _n as AvatarGroupMessages, _t as ListInputMessages, a as UnmappedUpstreamReason, an as ChatMessages, at as NumberInputMessages, b as ToastMessages, bn as alertDialogMessages, bt as lightboxMessages, c as TypeaheadMessages, cn as carouselMessages, ct as navMessages, d as treeListMessages, dn as ButtonMessages, dt as MoreMenuMessages, en as codeBlockMessages, et as popoverMessages, f as TransferListMessages, fn as buttonMessages, ft as moreMenuMessages, g as TokenizerMessages, gn as bannerMessages, gt as markdownMessages, h as transferListSelectorMessages, hn as BannerMessages, ht as MarkdownMessages, i as UnmappedUpstreamEntry, in as checkboxListMessages, it as outlineMessages, j as textAreaMessages, jt as FileInputMessages, k as textInputMessages, kt as InfoTipMessages, l as typeaheadMessages, ln as CalendarMessages, lt as MultiSelectorMessages, m as TransferListSelectorMessages, mn as breadcrumbsMessages, mt as metadataListMessages, n as AstryxUpstreamMessage, nn as citationMessages, nt as paginationMessages, o as loadAstryxCatalog, on as chatMessages, ot as numberInputMessages, p as transferListMessages, pn as BreadcrumbsMessages, pt as MetadataListMessages, q as richTextEditorMessages, qt as CommentsMessages, r as LoadedAstryxLocale, rn as CheckboxListMessages, rt as OutlineMessages, s as AstryxMessages, sn as CarouselMessages, st as NavMessages, t as AstryxUpstreamCatalog, tn as CitationMessages, tt as PaginationMessages, u as TreeListMessages, un as calendarMessages, ut as multiSelectorMessages, v as TokenMessages, vn as avatarGroupMessages, vt as listInputMessages, w as TimeInputMessages, wn as CalendarSystem, wt as keyboardHintMessages, x as toastMessages, xn as DateInputMessages, xt as LayoutMessages, y as tokenMessages, yn as AlertDialogMessages, yt as LightboxMessages, z as stepperMessages, zt as DialogMessages } from "../loadCatalog-BODWYaNy.js";
|
|
2
|
+
import { _ as useAstryxLocale, a as UseLocaleReturn, c as useAstryxMessages, d as ComponentMessageDefaults, f as ComponentMessages, g as provideAstryxLocale, h as normalizeLocale, i as useTranslator, l as formatCalendarMonth, m as astryxMessagesKey, n as TranslatorValues, o as useLocale, p as astryxLocaleKey, r as UseTranslatorReturn, s as useCollator, t as Translator, u as weekdayNames, v as useComponentMessages } from "../index-BVx-HFp8.js";
|
|
3
3
|
export { type AlertDialogMessages, type AstryxLocale, type AstryxMessages, type AstryxUpstreamCatalog, type AstryxUpstreamMessage, type AvatarGroupMessages, type BannerMessages, type BreadcrumbsMessages, type ButtonMessages, type CalendarMessages, type CalendarSystem, type CarouselMessages, type ChatMessages, type CheckboxListMessages, type CitationMessages, type CodeBlockMessages, type CommandPaletteMessages, type CommentComposerMessages, type CommentsMessages, type ComponentMessageDefaults, type ComponentMessages, type ContextMenuMessages, type DateInputMessages, type DateRangeInputMessages, type DateTimeInputMessages, type DialogMessages, type DropdownMenuMessages, type EmojiPickerMessages, type FieldMessages, type FileInputMessages, type InfoTipMessages, type InputMessages, type KbdMessages, type KeyboardHintMessages, type LayoutMessages, type LightboxMessages, type ListInputMessages, type LoadedAstryxLocale, type MarkdownMessages, type MetadataListMessages, type MoreMenuMessages, type MultiSelectorMessages, type NavMessages, type NumberInputMessages, type OutlineMessages, type PaginationMessages, type PopoverMessages, type PowerSearchMessages, type PowerSearchOperatorMessages, type PowerSearchSheetMessages, type RichTextEditorMessages, type SelectorMessages, type SliderMessages, type SpinnerMessages, type StepperMessages, type SwitchMessages, type TabListMessages, type TableMessages, type TextAreaMessages, type TextInputMessages, type ThumbnailMessages, type TimeInputMessages, type TimestampMessages, type ToastMessages, type TokenMessages, type TokenizerMessages, type TransferListMessages, type TransferListSelectorMessages, type Translator, type TranslatorValues, type TreeListMessages, type TypeaheadMessages, type UnmappedUpstreamEntry, type UnmappedUpstreamReason, type UseLocaleReturn, type UseTranslatorReturn, alertDialogMessages, astryxLocaleKey, astryxMessagesKey, avatarGroupMessages, bannerMessages, breadcrumbsMessages, buttonMessages, calendarMessages, carouselMessages, chatMessages, checkboxListMessages, citationMessages, codeBlockMessages, commandPaletteMessages, commentComposerMessages, commentsMessages, contextMenuMessages, dateInputMessages, dateRangeInputMessages, dateTimeInputMessages, dialogMessages, dropdownMenuMessages, emojiPickerMessages, fieldMessages, fileInputMessages, formatCalendarMonth, infoTipMessages, inputMessages, kbdMessages, keyboardHintMessages, layoutMessages, lightboxMessages, listInputMessages, loadAstryxCatalog, markdownMessages, metadataListMessages, moreMenuMessages, multiSelectorMessages, navMessages, normalizeLocale, numberInputMessages, outlineMessages, paginationMessages, popoverMessages, powerSearchMessages, powerSearchSheetMessages, provideAstryxLocale, richTextEditorMessages, selectorMessages, sliderMessages, spinnerMessages, stepperMessages, switchMessages, tabListMessages, tableMessages, textAreaMessages, textInputMessages, thumbnailMessages, timeInputMessages, timestampMessages, toastMessages, tokenMessages, tokenizerMessages, transferListMessages, transferListSelectorMessages, treeListMessages, typeaheadMessages, useAstryxLocale, useAstryxMessages, useCollator, useComponentMessages, useLocale, useTranslator, weekdayNames };
|
package/dist/locale/index.js
CHANGED
|
@@ -23,7 +23,7 @@ import { t as popoverMessages } from "../popover-DxCyd_Ua.js";
|
|
|
23
23
|
import { t as contextMenuMessages } from "../context-menu-9i6CObx3.js";
|
|
24
24
|
import { t as dateInputMessages } from "../date-input-CRdc2H3c.js";
|
|
25
25
|
import { n as alertDialogMessages, t as tokenizerMessages } from "../tokenizer-C1y-55Ft.js";
|
|
26
|
-
import { _ as codeBlockMessages, a as transferListMessages, c as richTextEditorMessages, d as listInputMessages, f as emojiPickerMessages, g as commentComposerMessages, i as useAstryxMessages, l as powerSearchMessages, o as transferListSelectorMessages, p as commentsMessages, s as tableMessages, t as loadAstryxCatalog, u as powerSearchSheetMessages, v as buttonMessages, y as breadcrumbsMessages } from "../loadCatalog-
|
|
26
|
+
import { _ as codeBlockMessages, a as transferListMessages, c as richTextEditorMessages, d as listInputMessages, f as emojiPickerMessages, g as commentComposerMessages, i as useAstryxMessages, l as powerSearchMessages, o as transferListSelectorMessages, p as commentsMessages, s as tableMessages, t as loadAstryxCatalog, u as powerSearchSheetMessages, v as buttonMessages, y as breadcrumbsMessages } from "../loadCatalog-DMOOMWtw.js";
|
|
27
27
|
import { t as dateRangeInputMessages } from "../date-range-input-WnkVv8HN.js";
|
|
28
28
|
import { n as dateTimeInputMessages, t as timeInputMessages } from "../time-input-CKOsh84E.js";
|
|
29
29
|
import { t as dialogMessages } from "../dialog-CNjGcdd1.js";
|
|
@@ -36,7 +36,7 @@ import { t as numberInputMessages } from "../number-input-DTjrRWmU.js";
|
|
|
36
36
|
import { t as outlineMessages } from "../outline-BflaJV62.js";
|
|
37
37
|
import { t as paginationMessages } from "../pagination-CxZBYsPu.js";
|
|
38
38
|
import { t as sliderMessages } from "../slider-6ZlGhyPD.js";
|
|
39
|
-
import { t as stepperMessages } from "../stepper-
|
|
39
|
+
import { t as stepperMessages } from "../stepper-D7L_3xxU.js";
|
|
40
40
|
import { t as switchMessages } from "../switch-B9xwxdOU.js";
|
|
41
41
|
import { t as tabListMessages } from "../tab-list-B_q2n-9d.js";
|
|
42
42
|
import { t as textAreaMessages } from "../text-area-CsnUYtMk.js";
|
|
@@ -47,5 +47,5 @@ import { t as toastMessages } from "../toast-BvAnX6Vc.js";
|
|
|
47
47
|
import { t as tokenMessages } from "../token-DcbdjdZ2.js";
|
|
48
48
|
import { t as treeListMessages } from "../tree-list-NZ1EZhtd.js";
|
|
49
49
|
import { t as typeaheadMessages } from "../typeahead-BgfLP7vR.js";
|
|
50
|
-
import { n as useLocale, r as useCollator, t as useTranslator } from "../locale-
|
|
50
|
+
import { n as useLocale, r as useCollator, t as useTranslator } from "../locale-C8X7gJlc.js";
|
|
51
51
|
export { alertDialogMessages, astryxLocaleKey, astryxMessagesKey, avatarGroupMessages, bannerMessages, breadcrumbsMessages, buttonMessages, calendarMessages, carouselMessages, chatMessages, checkboxListMessages, citationMessages, codeBlockMessages, commandPaletteMessages, commentComposerMessages, commentsMessages, contextMenuMessages, dateInputMessages, dateRangeInputMessages, dateTimeInputMessages, dialogMessages, dropdownMenuMessages, emojiPickerMessages, fieldMessages, fileInputMessages, formatCalendarMonth, infoTipMessages, inputMessages, kbdMessages, keyboardHintMessages, layoutMessages, lightboxMessages, listInputMessages, loadAstryxCatalog, markdownMessages, metadataListMessages, moreMenuMessages, multiSelectorMessages, navMessages, normalizeLocale, numberInputMessages, outlineMessages, paginationMessages, popoverMessages, powerSearchMessages, powerSearchSheetMessages, provideAstryxLocale, richTextEditorMessages, selectorMessages, sliderMessages, spinnerMessages, stepperMessages, switchMessages, tabListMessages, tableMessages, textAreaMessages, textInputMessages, thumbnailMessages, timeInputMessages, timestampMessages, toastMessages, tokenMessages, tokenizerMessages, transferListMessages, transferListSelectorMessages, treeListMessages, typeaheadMessages, useAstryxLocale, useAstryxMessages, useCollator, useComponentMessages, useLocale, useTranslator, weekdayNames };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as useAstryxLocale } from "./context-B8IEFCDR.js";
|
|
2
2
|
import { r as useCalendarSystem } from "./calendar-C7py_wtb.js";
|
|
3
|
-
import { i as useAstryxMessages, n as upstreamMessageMap } from "./loadCatalog-
|
|
3
|
+
import { i as useAstryxMessages, n as upstreamMessageMap } from "./loadCatalog-DMOOMWtw.js";
|
|
4
4
|
import { computed, toValue } from "vue";
|
|
5
5
|
//#region src/locale/useCollator.ts
|
|
6
6
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as isElement, n as sharedKey, t as realmValue, u as parentAcrossShadow } from "./sharedRealm-DBtNH73I.js";
|
|
2
2
|
//#region src/motion/presentation.ts
|
|
3
3
|
/**
|
|
4
4
|
* @file presentation.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as watchMediaQuery, n as matchesMediaQuery } from "./coarsePointer-
|
|
1
|
+
import { i as watchMediaQuery, n as matchesMediaQuery } from "./coarsePointer-DGnAPIcU.js";
|
|
2
2
|
import { r as useCompactDefinition } from "./compactDefinition-BeFUKEFg.js";
|
|
3
3
|
import { computed, getCurrentInstance, onMounted, onScopeDispose, shallowRef, toValue, watch } from "vue";
|
|
4
4
|
//#region src/composables/internal/presentation.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as subscribeInput } from "./inputStream-
|
|
3
|
-
import {
|
|
4
|
-
import { a as idlePressGesture, n as PRESS_ONSET_MS, o as pressGestureStep, r as PRESS_SCROLL_BRAKE_MS, t as PRESS_FLASH_MS } from "./pressGesture-
|
|
1
|
+
import { g as isNode, m as isElement, p as isDocument, u as parentAcrossShadow } from "./sharedRealm-DBtNH73I.js";
|
|
2
|
+
import { i as subscribeInput } from "./inputStream-HXw2lZ-3.js";
|
|
3
|
+
import { o as UIKIT_PRESS } from "./gestures-yKyyMqeQ.js";
|
|
4
|
+
import { a as idlePressGesture, n as PRESS_ONSET_MS, o as pressGestureStep, r as PRESS_SCROLL_BRAKE_MS, t as PRESS_FLASH_MS } from "./pressGesture-B3Efxs_z.js";
|
|
5
5
|
import { n as hasInteractiveAncestor } from "./useClickableContainer-Dtjg-nkm.js";
|
|
6
6
|
//#region src/utils/inputAge.ts
|
|
7
7
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { u as scroll } from "./gestures-yKyyMqeQ.js";
|
|
2
2
|
//#region src/motion/projection.ts
|
|
3
3
|
/**
|
|
4
4
|
* @file projection.ts
|
|
@@ -72,52 +72,4 @@ function selectSnapPoint(points, { position, velocity, rate = scroll.deceleratio
|
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
74
|
//#endregion
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* @file rubberBand.ts
|
|
78
|
-
* @input An overflow past an edge, the scroll view's dimension and UIKit's
|
|
79
|
-
* rubber-band coefficient
|
|
80
|
-
* @output Exports `rubberBand` (finger overflow → displayed overflow), its
|
|
81
|
-
* inverse, its slope, and the clamp/unclamp pair over a [min, max] range
|
|
82
|
-
* @position Pure math; no DOM, no React
|
|
83
|
-
*
|
|
84
|
-
* UIScrollView resists a drag past its content edge with
|
|
85
|
-
* b = (1 − 1 ÷ (x·c ÷ d + 1))·d
|
|
86
|
-
* where x is how far the finger has gone past the edge, d the scroll view's
|
|
87
|
-
* size on that axis and c = 0.55 (uikit/scroll.ts records the sources). The
|
|
88
|
-
* displayed overflow b approaches d but never reaches it, and its slope at
|
|
89
|
-
* the edge is c: the first points of overflow move at 55 % of the finger.
|
|
90
|
-
*
|
|
91
|
-
* The inverse matters for spec:AST-094 FR6 (a finger catches any animation
|
|
92
|
-
* mid-flight): a finger that lands on content still bouncing back has to
|
|
93
|
-
* resume the drag from the finger position that would produce the overflow
|
|
94
|
-
* on screen, or the content jumps.
|
|
95
|
-
*/
|
|
96
|
-
/**
|
|
97
|
-
* Displayed overflow for a finger `overflow` past the edge (signed: the sign
|
|
98
|
-
* is kept). `dimension` is the scroll view's size on the axis.
|
|
99
|
-
*/
|
|
100
|
-
function rubberBand(overflow, dimension, coefficient = scroll.rubberBand.coefficient) {
|
|
101
|
-
if (!(dimension > 0)) return 0;
|
|
102
|
-
const banded = (1 - 1 / (Math.abs(overflow) * coefficient / dimension + 1)) * dimension;
|
|
103
|
-
return overflow < 0 ? -banded : banded;
|
|
104
|
-
}
|
|
105
|
-
/** The finger overflow that displays `displayed`; ±Infinity at ±dimension. */
|
|
106
|
-
function rubberBandInverse(displayed, dimension, coefficient = scroll.rubberBand.coefficient) {
|
|
107
|
-
if (!(dimension > 0)) return 0;
|
|
108
|
-
const b = Math.abs(displayed);
|
|
109
|
-
if (b >= dimension) return displayed < 0 ? -Infinity : Infinity;
|
|
110
|
-
const x = dimension / coefficient * b / (dimension - b);
|
|
111
|
-
return displayed < 0 ? -x : x;
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* d(displayed) ÷ d(finger) at a finger overflow: what a finger velocity
|
|
115
|
-
* becomes on screen while banding (c at the edge, falling toward 0).
|
|
116
|
-
*/
|
|
117
|
-
function rubberBandSlope(overflow, dimension, coefficient = scroll.rubberBand.coefficient) {
|
|
118
|
-
if (!(dimension > 0)) return 0;
|
|
119
|
-
const u = Math.abs(overflow) * coefficient / dimension + 1;
|
|
120
|
-
return coefficient / (u * u);
|
|
121
|
-
}
|
|
122
|
-
//#endregion
|
|
123
|
-
export { selectSnapPoint as a, project as i, rubberBandInverse as n, rubberBandSlope as r, rubberBand as t };
|
|
75
|
+
export { projectDistance as n, selectSnapPoint as r, project as t };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import {
|
|
1
|
+
import { a as sharedState, n as sharedKey, o as sharedWeakMap, r as sharedMap, s as sharedWeakSet } from "./sharedRealm-DBtNH73I.js";
|
|
2
|
+
import { d as toSpring } from "./roles-DWH31Bn3.js";
|
|
3
|
+
import { c as solveSpring, i as reducedMotionCrossFade, n as sampleCount, s as settlingDuration, t as linearEasing } from "./linearEasing-VHwy6xl_.js";
|
|
3
4
|
import { r as themeReducesMotion } from "./reducedMotionMark-CYSyfURo.js";
|
|
4
|
-
import { a as registerPresentedOffset, c as writePresentedResolve, n as clearPresentedResolve, t as batchPresented } from "./presentation-
|
|
5
|
-
import { r as readThemeTokenText, t as readThemeTiming } from "./themeTiming-
|
|
5
|
+
import { a as registerPresentedOffset, c as writePresentedResolve, n as clearPresentedResolve, t as batchPresented } from "./presentation-twEOzzJq.js";
|
|
6
|
+
import { r as readThemeTokenText, t as readThemeTiming } from "./themeTiming-ClYaZxGf.js";
|
|
6
7
|
//#region src/motion/layout/glides.ts
|
|
7
8
|
/**
|
|
8
9
|
* @file glides.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as resolveMotion } from "./resolveMotion-
|
|
3
|
-
import {
|
|
4
|
-
import { C as safeAnimate, D as scaleOf, E as intersects, O as visibleRect, _ as layoutMotion, a as placeOf, b as springGlide, c as areaOf, d as extentOf, f as isRtl, g as glideNextChange, h as changeStartIn, i as nextInFlow, k as glideOf, l as createAnimatedLayout, m as pxClip, n as rideNeighbour, p as previousInFlow, t as reportLayoutChange, x as beginChange, y as sampleOver } from "./reportChange-
|
|
5
|
-
import { n as landLayoutGlide } from "./landing-
|
|
1
|
+
import { o as sharedWeakMap } from "./sharedRealm-DBtNH73I.js";
|
|
2
|
+
import { t as resolveMotion } from "./resolveMotion-DftkGFw6.js";
|
|
3
|
+
import { o as springs } from "./springs-DjAn_oV5.js";
|
|
4
|
+
import { C as safeAnimate, D as scaleOf, E as intersects, O as visibleRect, _ as layoutMotion, a as placeOf, b as springGlide, c as areaOf, d as extentOf, f as isRtl, g as glideNextChange, h as changeStartIn, i as nextInFlow, k as glideOf, l as createAnimatedLayout, m as pxClip, n as rideNeighbour, p as previousInFlow, t as reportLayoutChange, x as beginChange, y as sampleOver } from "./reportChange-BUTgduu-.js";
|
|
5
|
+
import { n as landLayoutGlide } from "./landing-Qk_FHR-s.js";
|
|
6
6
|
//#region src/motion/layout/edgeReport.ts
|
|
7
7
|
const resizeReveals = sharedWeakMap("motion/animated-layout/resize-reveals", 1);
|
|
8
8
|
/** The inline properties a size hold sets, by axis. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { c as isSpring, d as toSpring, n as motionRoleOf, t as motionRoleIn } from "./roles-DWH31Bn3.js";
|
|
2
|
+
import { c as solveSpring, t as linearEasing } from "./linearEasing-VHwy6xl_.js";
|
|
3
3
|
//#region src/motion/themeTempo.ts
|
|
4
4
|
/**
|
|
5
5
|
* @file themeTempo.ts
|
|
@@ -1,3 +1,100 @@
|
|
|
1
|
+
//#region src/motion/springParameters.ts
|
|
2
|
+
/**
|
|
3
|
+
* @file springParameters.ts
|
|
4
|
+
* @output The `Spring` model and the conversions between Apple's spring
|
|
5
|
+
* vocabularies (duration and bounce, response and damping ratio, mass,
|
|
6
|
+
* stiffness and damping), and UIKit's relative velocity
|
|
7
|
+
* @position Pure math under spring.ts, which re-exports all of it. See
|
|
8
|
+
* spring.ts for the sources of each conversion.
|
|
9
|
+
*/
|
|
10
|
+
const TAU = 2 * Math.PI;
|
|
11
|
+
function assertPositiveFinite(name, value) {
|
|
12
|
+
if (!(Number.isFinite(value) && value > 0)) throw new RangeError(`spring: ${name} must be a positive number, got ${value}`);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* SwiftUI's `Spring(duration:bounce:)` and UIKit's
|
|
16
|
+
* `UIView.animate(springDuration:bounce:…)`: the WWDC23 equations. Bounce is
|
|
17
|
+
* clamped to SwiftUI's documented range (−1, 1].
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```
|
|
21
|
+
* springFromDurationBounce({duration: 0.5, bounce: 0}); // SwiftUI .smooth
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
function springFromDurationBounce({ duration, bounce }) {
|
|
25
|
+
assertPositiveFinite("duration", duration);
|
|
26
|
+
if (!Number.isFinite(bounce)) throw new RangeError(`spring: bounce must be finite, got ${bounce}`);
|
|
27
|
+
const b = Math.min(1, Math.max(-.999999, bounce));
|
|
28
|
+
return {
|
|
29
|
+
mass: 1,
|
|
30
|
+
stiffness: (TAU / duration) ** 2,
|
|
31
|
+
damping: b >= 0 ? (1 - b) * 2 * TAU / duration : 2 * TAU / (duration * (1 + b))
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* SwiftUI's `Spring(response:dampingRatio:)` and
|
|
36
|
+
* `Animation.spring(response:dampingFraction:)`. Overdamping (ratio > 1) is
|
|
37
|
+
* kept, as SwiftUI keeps it for this initializer.
|
|
38
|
+
*/
|
|
39
|
+
function springFromResponse({ response, dampingRatio }) {
|
|
40
|
+
assertPositiveFinite("response", response);
|
|
41
|
+
if (!(Number.isFinite(dampingRatio) && dampingRatio >= 0)) throw new RangeError(`spring: dampingRatio must be ≥ 0, got ${dampingRatio}`);
|
|
42
|
+
const omega = TAU / response;
|
|
43
|
+
return {
|
|
44
|
+
mass: 1,
|
|
45
|
+
stiffness: omega * omega,
|
|
46
|
+
damping: 2 * dampingRatio * omega
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* `CASpringAnimation` / `UISpringTimingParameters(mass:stiffness:damping:)`
|
|
51
|
+
* / SwiftUI `Spring(mass:stiffness:damping:allowOverDamping:)`. Like SwiftUI,
|
|
52
|
+
* an overdamped spring is treated as critically damped unless
|
|
53
|
+
* `allowOverdamping` is set: "a value of false specifies that such cases
|
|
54
|
+
* should instead be treated as critically damped".
|
|
55
|
+
*/
|
|
56
|
+
function springFromPhysics({ mass = 1, stiffness, damping, allowOverdamping = false }) {
|
|
57
|
+
assertPositiveFinite("mass", mass);
|
|
58
|
+
assertPositiveFinite("stiffness", stiffness);
|
|
59
|
+
if (!(Number.isFinite(damping) && damping >= 0)) throw new RangeError(`spring: damping must be ≥ 0, got ${damping}`);
|
|
60
|
+
const critical = 2 * Math.sqrt(stiffness * mass);
|
|
61
|
+
return {
|
|
62
|
+
mass,
|
|
63
|
+
stiffness,
|
|
64
|
+
damping: allowOverdamping ? damping : Math.min(damping, critical)
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
/** Undamped angular frequency ω₀ = √(k/m), rad/s. */
|
|
68
|
+
function naturalFrequency(spring) {
|
|
69
|
+
return Math.sqrt(spring.stiffness / spring.mass);
|
|
70
|
+
}
|
|
71
|
+
/** Damping ratio ζ = c / (2·√(k·m)). */
|
|
72
|
+
function dampingRatioOf(spring) {
|
|
73
|
+
return spring.damping / (2 * Math.sqrt(spring.stiffness * spring.mass));
|
|
74
|
+
}
|
|
75
|
+
/** Response (period of the undamped spring), seconds. */
|
|
76
|
+
function responseOf(spring) {
|
|
77
|
+
return TAU / naturalFrequency(spring);
|
|
78
|
+
}
|
|
79
|
+
/** The spring as SwiftUI's (duration, bounce), inverting the WWDC23 equations. */
|
|
80
|
+
function durationBounceOf(spring) {
|
|
81
|
+
const zeta = dampingRatioOf(spring);
|
|
82
|
+
return {
|
|
83
|
+
duration: responseOf(spring),
|
|
84
|
+
bounce: zeta <= 1 ? 1 - zeta : 1 / zeta - 1
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Normalizes a description to the physical `Spring`. A physical description
|
|
89
|
+
* gets `springFromPhysics`' treatment: overdamping is clamped to critical, as
|
|
90
|
+
* SwiftUI and Core Animation do by default.
|
|
91
|
+
*/
|
|
92
|
+
function toSpring(description) {
|
|
93
|
+
if ("stiffness" in description) return springFromPhysics(description);
|
|
94
|
+
if ("bounce" in description) return springFromDurationBounce(description);
|
|
95
|
+
return springFromResponse(description);
|
|
96
|
+
}
|
|
97
|
+
//#endregion
|
|
1
98
|
//#region src/motion/roleValue.ts
|
|
2
99
|
const ROLE_ID = /^[a-z][A-Za-z0-9]*(?:\.[a-z][A-Za-z0-9]*)+$/;
|
|
3
100
|
/** Whether `id` is a well-formed role name (a dotted table path). */
|
|
@@ -16,6 +113,34 @@ function isSpring(value) {
|
|
|
16
113
|
function isCurve(value) {
|
|
17
114
|
return Array.isArray(value) && value.length === 4 && value.every((n) => typeof n === "number");
|
|
18
115
|
}
|
|
116
|
+
/** Six significant digits: enough for any motion, free of float noise. */
|
|
117
|
+
function short(n) {
|
|
118
|
+
return String(Number(n.toPrecision(6)));
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* A role value as its CSS custom property holds it:
|
|
122
|
+
* - spring: SwiftUI's duration and bounce, `0.5s 0.15` (exact for every
|
|
123
|
+
* spring: mass folds into the duration, overdamping into a negative bounce);
|
|
124
|
+
* - duration: `250ms`;
|
|
125
|
+
* - curve: `cubic-bezier(0.42, 0, 0.58, 1)`, usable as is in CSS.
|
|
126
|
+
* Throws on a value that is not a valid value of its kind, a spring that
|
|
127
|
+
* never settles included.
|
|
128
|
+
*/
|
|
129
|
+
function formatMotionRoleValue(kind, value) {
|
|
130
|
+
if (kind === "spring") {
|
|
131
|
+
if (!isSpring(value)) throw new TypeError("a spring is {response, dampingRatio}, {duration, bounce} or {mass?, stiffness, damping}");
|
|
132
|
+
const { duration, bounce } = durationBounceOf(toSpring(value));
|
|
133
|
+
if (!(bounce < 1)) throw new RangeError("a spring must settle: its bounce must be below 1 (a damping ratio above 0)");
|
|
134
|
+
return `${short(duration)}s ${short(bounce)}`;
|
|
135
|
+
}
|
|
136
|
+
if (kind === "duration") {
|
|
137
|
+
if (!(typeof value === "number" && Number.isFinite(value) && value >= 0)) throw new TypeError("a duration is a finite number of milliseconds ≥ 0");
|
|
138
|
+
return `${short(value)}ms`;
|
|
139
|
+
}
|
|
140
|
+
if (!isCurve(value) || !value.every(Number.isFinite)) throw new TypeError("a curve is four finite numbers [x1, y1, x2, y2]");
|
|
141
|
+
if (value[0] < 0 || value[0] > 1 || value[2] < 0 || value[2] > 1) throw new RangeError("a curve's x1 and x2 must lie in [0, 1]");
|
|
142
|
+
return `cubic-bezier(${value.map(short).join(", ")})`;
|
|
143
|
+
}
|
|
19
144
|
//#endregion
|
|
20
145
|
//#region src/motion/roles.ts
|
|
21
146
|
const rolesById = /* @__PURE__ */ new Map();
|
|
@@ -193,4 +318,4 @@ function parseCssEasing(text) {
|
|
|
193
318
|
return EASING_KEYWORDS[value] ?? parseMotionRoleValue("curve", value);
|
|
194
319
|
}
|
|
195
320
|
//#endregion
|
|
196
|
-
export { registerMotionTable as a, parseMotionRoleValue as i, motionRoleOf as n, registerSpringRole as o, parseCssEasing as r,
|
|
321
|
+
export { registerMotionTable as a, isSpring as c, toSpring as d, parseMotionRoleValue as i, dampingRatioOf as l, motionRoleOf as n, registerSpringRole as o, parseCssEasing as r, formatMotionRoleValue as s, motionRoleIn as t, naturalFrequency as u };
|