@servicetitan/anvil2 1.29.0 → 1.31.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/CHANGELOG.md +43 -0
- package/dist/{Alert-CRv6t4jJ-g1uOIz5i.js → Alert-BW0jYz7s-C_bALro8.js} +6 -7
- package/dist/{Alert-CRv6t4jJ-g1uOIz5i.js.map → Alert-BW0jYz7s-C_bALro8.js.map} +1 -1
- package/dist/{Alert-DPNaYO2Q.js → Alert-KVBpZzAt.js} +2 -2
- package/dist/{Alert-DPNaYO2Q.js.map → Alert-KVBpZzAt.js.map} +1 -1
- package/dist/Alert.js +1 -1
- package/dist/{Announcement-CJmTMhbr.js → Announcement-DnaX0j_E.js} +5 -6
- package/dist/{Announcement-CJmTMhbr.js.map → Announcement-DnaX0j_E.js.map} +1 -1
- package/dist/Announcement.js +1 -1
- package/dist/{AnvilProvider-C7Li86-d.js → AnvilProvider-C3E7FZAC.js} +2 -2
- package/dist/{AnvilProvider-C7Li86-d.js.map → AnvilProvider-C3E7FZAC.js.map} +1 -1
- package/dist/AnvilProvider.js +1 -1
- package/dist/{Avatar-BbOnZyM_.js → Avatar-CylY-nHK.js} +5 -5
- package/dist/Avatar-CylY-nHK.js.map +1 -0
- package/dist/Avatar.js +1 -1
- package/dist/{Badge-CH8sBsJh.js → Badge-Lt1iCyYK.js} +2 -2
- package/dist/{Badge-CH8sBsJh.js.map → Badge-Lt1iCyYK.js.map} +1 -1
- package/dist/Badge.js +1 -1
- package/dist/{Breadcrumbs-ByNGkX5w.js → Breadcrumbs-DicsW4mk.js} +5 -5
- package/dist/{Breadcrumbs-ByNGkX5w.js.map → Breadcrumbs-DicsW4mk.js.map} +1 -1
- package/dist/Breadcrumbs.js +1 -1
- package/dist/{Button-3sLNiaQN.js → Button-CRGbkHTO.js} +2 -2
- package/dist/{Button-3sLNiaQN.js.map → Button-CRGbkHTO.js.map} +1 -1
- package/dist/{Button-Ce--YZ9L-Csh0Zzuf.js → Button-CpDA5JHI-DOaf7xjY.js} +7 -33
- package/dist/Button-CpDA5JHI-DOaf7xjY.js.map +1 -0
- package/dist/Button.js +1 -1
- package/dist/Button.module-BdSA8wlr-BdSA8wlr.js +25 -0
- package/dist/Button.module-BdSA8wlr-BdSA8wlr.js.map +1 -0
- package/dist/{ButtonCompound-CGci3MbQ.js → ButtonCompound-DbOF1Uyo-D4_cdbXr.js} +5 -23
- package/dist/ButtonCompound-DbOF1Uyo-D4_cdbXr.js.map +1 -0
- package/dist/ButtonCompound-Dq-3iCqQ.js +24 -0
- package/dist/ButtonCompound-Dq-3iCqQ.js.map +1 -0
- package/dist/ButtonCompound.js +1 -1
- package/dist/{ButtonLink-DcFTS_ob.js → ButtonLink-B1b4NVwl.js} +2 -2
- package/dist/{ButtonLink-DcFTS_ob.js.map → ButtonLink-B1b4NVwl.js.map} +1 -1
- package/dist/ButtonLink.js +1 -1
- package/dist/{ButtonToggle-CEHlQT_K.js → ButtonToggle-BdIwMXdH.js} +2 -2
- package/dist/{ButtonToggle-CEHlQT_K.js.map → ButtonToggle-BdIwMXdH.js.map} +1 -1
- package/dist/{ButtonToggle-BYwKq0iP-B4gHrxUt.js → ButtonToggle-D5b-K9BR-g1A3w7M3.js} +6 -5
- package/dist/ButtonToggle-D5b-K9BR-g1A3w7M3.js.map +1 -0
- package/dist/ButtonToggle.js +1 -1
- package/dist/{Calendar-CFsWEulW.js → Calendar-CqEPLYlk.js} +2 -2
- package/dist/{Calendar-CFsWEulW.js.map → Calendar-CqEPLYlk.js.map} +1 -1
- package/dist/{Calendar-9iYMS0Iw-D_XWYjOE.js → Calendar-DGlqu1W3-Bi5Q7PZR.js} +22 -26
- package/dist/{Calendar-9iYMS0Iw-D_XWYjOE.js.map → Calendar-DGlqu1W3-Bi5Q7PZR.js.map} +1 -1
- package/dist/Calendar.js +1 -1
- package/dist/{Card-CWGAMe-7.js → Card-D-ntWPsN.js} +2 -2
- package/dist/{Card-CWGAMe-7.js.map → Card-D-ntWPsN.js.map} +1 -1
- package/dist/{Card-js75vKLt-Bk6ujopM.js → Card-DukbBYaA-JN-eYW_v.js} +11 -11
- package/dist/{Card-js75vKLt-Bk6ujopM.js.map → Card-DukbBYaA-JN-eYW_v.js.map} +1 -1
- package/dist/{Card-js75vKLt.css → Card-DukbBYaA.css} +25 -10
- package/dist/Card.js +1 -1
- package/dist/{Checkbox-D6-kiZ0g-6jox0aDW.js → Checkbox-B1OkhWY6-DAwwh6to.js} +13 -10
- package/dist/Checkbox-B1OkhWY6-DAwwh6to.js.map +1 -0
- package/dist/{Checkbox-DJguu7Kw.js → Checkbox-K1ZrRTEZ.js} +2 -2
- package/dist/{Checkbox-DJguu7Kw.js.map → Checkbox-K1ZrRTEZ.js.map} +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/{Checkbox.module-DMrZNVpb-DL8zOKBQ.js → Checkbox.module-DMrZNVpb-DOdjd86H.js} +2 -2
- package/dist/{Checkbox.module-DMrZNVpb-DL8zOKBQ.js.map → Checkbox.module-DMrZNVpb-DOdjd86H.js.map} +1 -1
- package/dist/{Chip-CAxTyjIZ-DfkCTnYy.js → Chip-DX922SMw-13SW9xaV.js} +7 -9
- package/dist/Chip-DX922SMw-13SW9xaV.js.map +1 -0
- package/dist/{Chip-C5ElPVsb.js → Chip-i-OBdpYm.js} +2 -2
- package/dist/{Chip-C5ElPVsb.js.map → Chip-i-OBdpYm.js.map} +1 -1
- package/dist/Chip.js +1 -1
- package/dist/{Combobox-DCrEfyl2.js → Combobox-3SWKXAYu.js} +119 -135
- package/dist/Combobox-3SWKXAYu.js.map +1 -0
- package/dist/Combobox.js +1 -1
- package/dist/{DateField-4jR9NvbC.js → DateField-YjnaTpA4.js} +63 -41
- package/dist/DateField-YjnaTpA4.js.map +1 -0
- package/dist/DateField.js +1 -1
- package/dist/{Details-B1wMLkdg.js → Details-CtCidzce.js} +8 -8
- package/dist/Details-CtCidzce.js.map +1 -0
- package/dist/Details.js +1 -1
- package/dist/{Dialog-CL3bfZuB.js → Dialog-DDF9Xyrs.js} +2 -2
- package/dist/{Dialog-CL3bfZuB.js.map → Dialog-DDF9Xyrs.js.map} +1 -1
- package/dist/Dialog.js +1 -1
- package/dist/{Divider-CLnPwn7z.js → Divider-By5PjW0_.js} +2 -2
- package/dist/{Divider-CLnPwn7z.js.map → Divider-By5PjW0_.js.map} +1 -1
- package/dist/Divider.js +1 -1
- package/dist/DndSort.css +148 -0
- package/dist/DndSort.d.ts +2 -0
- package/dist/DndSort.js +5622 -0
- package/dist/DndSort.js.map +1 -0
- package/dist/{Drawer-8nHrKktU.js → Drawer-Bffoaren.js} +2 -2
- package/dist/{Drawer-8nHrKktU.js.map → Drawer-Bffoaren.js.map} +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/{EditCard-Nwz2BjY0.js → EditCard-DripZNiC.js} +21 -23
- package/dist/EditCard-DripZNiC.js.map +1 -0
- package/dist/EditCard.css +15 -12
- package/dist/EditCard.js +1 -1
- package/dist/{Flex-D92F03lr.js → Flex-CbkDTKfn.js} +2 -2
- package/dist/{Flex-D92F03lr.js.map → Flex-CbkDTKfn.js.map} +1 -1
- package/dist/{Flex-pdHNcZrF-CdQdYhOU.js → Flex-DlNiHX1G-DiUzqGqj.js} +3 -3
- package/dist/{Flex-pdHNcZrF-CdQdYhOU.js.map → Flex-DlNiHX1G-DiUzqGqj.js.map} +1 -1
- package/dist/Flex.js +1 -1
- package/dist/{Grid-DaeLjn0g.js → Grid-LhlvpLTc.js} +2 -2
- package/dist/{Grid-DaeLjn0g.js.map → Grid-LhlvpLTc.js.map} +1 -1
- package/dist/Grid.js +1 -1
- package/dist/{HammerProvider-DuxhW0gv-C2voN5ro.js → HammerProvider-B4ULvVBh-DKGRrw3q.js} +4 -3
- package/dist/{HammerProvider-DuxhW0gv-C2voN5ro.js.map → HammerProvider-B4ULvVBh-DKGRrw3q.js.map} +1 -1
- package/dist/{Helper-Ba5DBS51-DBtASfJG.js → Helper-DBmwQvEP-Z2T8bXHx.js} +3 -3
- package/dist/{Helper-Ba5DBS51-DBtASfJG.js.map → Helper-DBmwQvEP-Z2T8bXHx.js.map} +1 -1
- package/dist/{Icon-DbHA5GV1-DwO2aGkj.js → Icon-DuwR7O2z-DwPHQiBF.js} +4 -4
- package/dist/Icon-DuwR7O2z-DwPHQiBF.js.map +1 -0
- package/dist/{Icon-CrE5UgZV.js → Icon-U0zxixxg.js} +2 -2
- package/dist/{Icon-CrE5UgZV.js.map → Icon-U0zxixxg.js.map} +1 -1
- package/dist/Icon.js +1 -1
- package/dist/{InputMask-jsL7rSOk.js → InputMask-DdF90b0D.js} +2 -2
- package/dist/{InputMask-jsL7rSOk.js.map → InputMask-DdF90b0D.js.map} +1 -1
- package/dist/{InputMask-B8N8PP1W-DlUKpMR4.js → InputMask-MW0aui2v-d0ziTRnR.js} +4 -4
- package/dist/InputMask-MW0aui2v-d0ziTRnR.js.map +1 -0
- package/dist/InputMask.js +1 -1
- package/dist/{Link-CBkwLJrX.js → Link-DDBu_8WX.js} +2 -2
- package/dist/{Link-CBkwLJrX.js.map → Link-DDBu_8WX.js.map} +1 -1
- package/dist/{Link-BZ7vy96e-DolN6mMF.js → Link-DIyZHRIV-DXK6prKs.js} +4 -4
- package/dist/{Link-BZ7vy96e-DolN6mMF.js.map → Link-DIyZHRIV-DXK6prKs.js.map} +1 -1
- package/dist/Link.js +1 -1
- package/dist/{ListView-DX7NxNSw.js → ListView-BU0TCQ4k.js} +5 -5
- package/dist/{ListView-DX7NxNSw.js.map → ListView-BU0TCQ4k.js.map} +1 -1
- package/dist/ListView.js +1 -1
- package/dist/{ListView.module-BqvHsIQ9-BqvHsIQ9.js → ListView.module-3I2M0Pia-3I2M0Pia.js} +2 -4
- package/dist/ListView.module-3I2M0Pia-3I2M0Pia.js.map +1 -0
- package/dist/{Listbox-DcMJEUMo.js → Listbox-BQP8FRTF.js} +2 -2
- package/dist/{Listbox-DcMJEUMo.js.map → Listbox-BQP8FRTF.js.map} +1 -1
- package/dist/{Listbox-CCUnPdBn-DwvTVF0i.js → Listbox-CthJSHQ3-Zsuei4zJ.js} +12 -12
- package/dist/Listbox-CthJSHQ3-Zsuei4zJ.js.map +1 -0
- package/dist/Listbox.js +1 -1
- package/dist/{LocalizationProvider-wckXpCYz-BnJmp0tU.js → LocalizationProvider-BrxC1a2D-B1iQENoJ.js} +2 -2
- package/dist/{LocalizationProvider-wckXpCYz-BnJmp0tU.js.map → LocalizationProvider-BrxC1a2D-B1iQENoJ.js.map} +1 -1
- package/dist/LocalizationProvider.js +1 -1
- package/dist/{Menu-CsfX8-_z.js → Menu-BtinbJQ_.js} +11 -20
- package/dist/Menu-BtinbJQ_.js.map +1 -0
- package/dist/Menu.js +1 -1
- package/dist/{Overflow-Codc9CEy.js → Overflow-CKVmrb1N.js} +2 -2
- package/dist/{Overflow-Codc9CEy.js.map → Overflow-CKVmrb1N.js.map} +1 -1
- package/dist/{Overflow-Cv9sOPm3-AYGUgSQn.js → Overflow-DXWJ1gWT-tN8GInwt.js} +7 -7
- package/dist/Overflow-DXWJ1gWT-tN8GInwt.js.map +1 -0
- package/dist/Overflow.js +1 -1
- package/dist/{Page-vKi5JkDS.js → Page-DnroZYyr.js} +20 -16
- package/dist/Page-DnroZYyr.js.map +1 -0
- package/dist/Page.js +1 -1
- package/dist/{Popover-OFlyW8gN.js → Popover-C7aIgvIl.js} +2 -2
- package/dist/{Popover-OFlyW8gN.js.map → Popover-C7aIgvIl.js.map} +1 -1
- package/dist/{Popover-tu_N1aS6-CSLR1Xzc.js → Popover-DDhjaX2z-waNj8Iba.js} +13 -16
- package/dist/Popover-DDhjaX2z-waNj8Iba.js.map +1 -0
- package/dist/Popover.js +1 -1
- package/dist/{ProgressBar-gVRLaKPz.js → ProgressBar-BfdgLTrw.js} +2 -2
- package/dist/{ProgressBar-gVRLaKPz.js.map → ProgressBar-BfdgLTrw.js.map} +1 -1
- package/dist/ProgressBar-YrCJtlvK-BlhqSUr-.js +2539 -0
- package/dist/ProgressBar-YrCJtlvK-BlhqSUr-.js.map +1 -0
- package/dist/ProgressBar-YrCJtlvK.css +736 -0
- package/dist/ProgressBar.js +1 -1
- package/dist/{Radio-BBwG1fqT-vopD4gzD.js → Radio-DE79qJFW-Dt9tFahU.js} +6 -6
- package/dist/{Radio-BBwG1fqT-vopD4gzD.js.map → Radio-DE79qJFW-Dt9tFahU.js.map} +1 -1
- package/dist/{Radio-CtFSLOYa.js → Radio-vM4P73jb.js} +2 -2
- package/dist/{Radio-CtFSLOYa.js.map → Radio-vM4P73jb.js.map} +1 -1
- package/dist/Radio.js +1 -1
- package/dist/{SearchField-C-4icPUa.js → SearchField-DMx9YWba.js} +6 -9
- package/dist/SearchField-DMx9YWba.js.map +1 -0
- package/dist/SearchField.js +1 -1
- package/dist/{SegmentedControl-DyeWOOF3.js → SegmentedControl-D-kdk7BJ.js} +5 -5
- package/dist/{SegmentedControl-DyeWOOF3.js.map → SegmentedControl-D-kdk7BJ.js.map} +1 -1
- package/dist/SegmentedControl.js +1 -1
- package/dist/SelectCard.js +1 -1
- package/dist/{SelectCardGroup-Ch56Mp-k.js → SelectCardGroup-u0bbiRwe.js} +13 -10
- package/dist/SelectCardGroup-u0bbiRwe.js.map +1 -0
- package/dist/{SideNav-Mdwo6zfi.js → SideNav-BIV-c-1o.js} +10 -31
- package/dist/SideNav-BIV-c-1o.js.map +1 -0
- package/dist/SideNav.js +1 -1
- package/dist/{Skeleton-DHDzs9qd.js → Skeleton-CO1kBH8A.js} +2 -2
- package/dist/{Skeleton-DHDzs9qd.js.map → Skeleton-CO1kBH8A.js.map} +1 -1
- package/dist/Skeleton.js +1 -1
- package/dist/{Spinner-DdirfhPp-c7cDfIit.js → Spinner-B55mSnmk-B3oOSVLo.js} +3 -6
- package/dist/Spinner-B55mSnmk-B3oOSVLo.js.map +1 -0
- package/dist/{Spinner-C0SZj1Xr.js → Spinner-DUXjTDlr.js} +2 -2
- package/dist/{Spinner-C0SZj1Xr.js.map → Spinner-DUXjTDlr.js.map} +1 -1
- package/dist/Spinner.js +1 -1
- package/dist/{Stepper-c7C22LVq.js → Stepper-tJSGpsW1.js} +14 -14
- package/dist/Stepper-tJSGpsW1.js.map +1 -0
- package/dist/Stepper.js +1 -1
- package/dist/{Switch-D2mURCX4.js → Switch-CksM88Ks.js} +3 -3
- package/dist/{Switch-D2mURCX4.js.map → Switch-CksM88Ks.js.map} +1 -1
- package/dist/Switch.js +1 -1
- package/dist/{Tab-x6_xtr13.js → Tab-qn_tnvF4.js} +11 -11
- package/dist/Tab-qn_tnvF4.js.map +1 -0
- package/dist/Tab.js +1 -1
- package/dist/{Text-C2n3GDdC-rz_AelM0.js → Text-BCRKWTMM-BvIdEgVR.js} +3 -3
- package/dist/{Text-C2n3GDdC-rz_AelM0.js.map → Text-BCRKWTMM-BvIdEgVR.js.map} +1 -1
- package/dist/{Text-BnRrIF-W.js → Text-CF2KcnWA.js} +2 -2
- package/dist/{Text-BnRrIF-W.js.map → Text-CF2KcnWA.js.map} +1 -1
- package/dist/Text.js +1 -1
- package/dist/{TextField-DgxJO1a7.js → TextField-B7Asq1aB.js} +2 -2
- package/dist/{TextField-DgxJO1a7.js.map → TextField-B7Asq1aB.js.map} +1 -1
- package/dist/{TextField-B8LHWOoC-DSV9zY-z.js → TextField-BTgxdt7I-Da1U7oOT.js} +8 -8
- package/dist/{TextField-B8LHWOoC-DSV9zY-z.js.map → TextField-BTgxdt7I-Da1U7oOT.js.map} +1 -1
- package/dist/TextField.js +1 -1
- package/dist/{TextField.module-B411p3ST-B411p3ST.js → TextField.module-ZWACK1yV-ZWACK1yV.js} +2 -4
- package/dist/TextField.module-ZWACK1yV-ZWACK1yV.js.map +1 -0
- package/dist/{Textarea-B-Dv2RXs.js → Textarea-CaMvxI9Y.js} +10 -12
- package/dist/Textarea-CaMvxI9Y.js.map +1 -0
- package/dist/Textarea.js +1 -1
- package/dist/{ThemeProvider-CioBp3gk-B6HyDICa.js → ThemeProvider-DKkyZPDr-BH0VGW7C.js} +6 -6
- package/dist/ThemeProvider-DKkyZPDr-BH0VGW7C.js.map +1 -0
- package/dist/{ThemeProvider-CioBp3gk.css → ThemeProvider-DKkyZPDr.css} +912 -120
- package/dist/{ThemeProvider-CRXKTOvG.js → ThemeProvider-Drjj0EtN.js} +2 -2
- package/dist/{ThemeProvider-CRXKTOvG.js.map → ThemeProvider-Drjj0EtN.js.map} +1 -1
- package/dist/ThemeProvider.js +1 -1
- package/dist/Toast.js +1 -1
- package/dist/{Toolbar-7BeCY61H.js → Toolbar-OYgCC3Up.js} +14 -14
- package/dist/Toolbar-OYgCC3Up.js.map +1 -0
- package/dist/Toolbar.js +1 -1
- package/dist/{Tooltip-BVBq-KxK.js → Tooltip-rDXwk4az.js} +2 -2
- package/dist/{Tooltip-BVBq-KxK.js.map → Tooltip-rDXwk4az.js.map} +1 -1
- package/dist/Tooltip.js +1 -1
- package/dist/assets/css-utils/border.css +4 -0
- package/dist/assets/css-utils/color.css +12 -0
- package/dist/assets/css-utils/utils.css +14 -0
- package/dist/{check_circle-C3DDoVXp.js → check_circle-BGfigqq-.js} +4 -2
- package/dist/check_circle-BGfigqq-.js.map +1 -0
- package/dist/components/DateField/DateField.d.ts +3 -1
- package/dist/components/DndSort/index.d.ts +2 -0
- package/dist/components/SelectCard/SelectCard.d.ts +4 -1
- package/dist/components/Toast/Toaster.d.ts +11 -5
- package/dist/components/Toast/toast.d.ts +1 -4
- package/dist/{floating-ui.react-4AwURJA3.js → floating-ui.react-Domgunz0.js} +667 -124
- package/dist/floating-ui.react-Domgunz0.js.map +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useBreakpoint/index.d.ts +1 -0
- package/dist/index.js +54 -53
- package/dist/index.js.map +1 -1
- package/dist/internal/components/Shadow.d.ts +3 -0
- package/dist/{proxy-Cy56d5Wf.js → proxy-CreWmH-e.js} +64 -53
- package/dist/proxy-CreWmH-e.js.map +1 -0
- package/dist/toast-KF3GWYbk.js +96 -0
- package/dist/toast-KF3GWYbk.js.map +1 -0
- package/dist/token/core/css-utils/border.css +4 -0
- package/dist/token/core/css-utils/color.css +12 -0
- package/dist/token/core/css-utils/utils.css +14 -0
- package/dist/token/core/raw.js +6 -0
- package/dist/token/core/semantic-variables.scss +6 -0
- package/dist/token/core/semantic.js +30 -0
- package/dist/token/core/semantic.scss +3 -0
- package/dist/token.js +33 -0
- package/dist/token.js.map +1 -1
- package/dist/{use-reduced-motion-BR76mHGj.js → use-reduced-motion-znCm41qB.js} +2 -2
- package/dist/{use-reduced-motion-BR76mHGj.js.map → use-reduced-motion-znCm41qB.js.map} +1 -1
- package/dist/{useAccessibleColor-CR4Gw85S-D9BFnrDq.js → useAccessibleColor-Dc6B_M-Z-BYKjkGRg.js} +4 -4
- package/dist/useAccessibleColor-Dc6B_M-Z-BYKjkGRg.js.map +1 -0
- package/dist/useAccessibleColor.js +1 -1
- package/dist/useBreakpoint-7QkBkSeP-Cv5fnZxs.js +50 -0
- package/dist/useBreakpoint-7QkBkSeP-Cv5fnZxs.js.map +1 -0
- package/dist/useBreakpoint.d.ts +6 -0
- package/dist/useBreakpoint.js +2 -0
- package/dist/useBreakpoint.js.map +1 -0
- package/dist/{useLayoutPropsUtil-C6qizVc6-BkgAan7h.js → useLayoutPropsUtil-3B2XYWSr-ChuzrydG.js} +9 -50
- package/dist/useLayoutPropsUtil-3B2XYWSr-ChuzrydG.js.map +1 -0
- package/dist/useLinkStyles.js +1 -1
- package/dist/useSize.js +4 -4
- package/dist/useSize.js.map +1 -1
- package/dist/useTrackingId.js +1 -1
- package/dist/useTrackingId.js.map +1 -1
- package/package.json +3 -6
- package/dist/Avatar-BbOnZyM_.js.map +0 -1
- package/dist/Button-Ce--YZ9L-Csh0Zzuf.js.map +0 -1
- package/dist/ButtonCompound-CGci3MbQ.js.map +0 -1
- package/dist/ButtonToggle-BYwKq0iP-B4gHrxUt.js.map +0 -1
- package/dist/Checkbox-D6-kiZ0g-6jox0aDW.js.map +0 -1
- package/dist/Chip-CAxTyjIZ-DfkCTnYy.js.map +0 -1
- package/dist/Combobox-DCrEfyl2.js.map +0 -1
- package/dist/DateField-4jR9NvbC.js.map +0 -1
- package/dist/Details-B1wMLkdg.js.map +0 -1
- package/dist/Dialog-CYBt_JdP-CmF0MUHL.js +0 -307
- package/dist/Dialog-CYBt_JdP-CmF0MUHL.js.map +0 -1
- package/dist/Dialog-CYBt_JdP.css +0 -140
- package/dist/Drawer-UQlX-LQG-BSCnMRad.js +0 -297
- package/dist/Drawer-UQlX-LQG-BSCnMRad.js.map +0 -1
- package/dist/Drawer-UQlX-LQG.css +0 -153
- package/dist/EditCard-Nwz2BjY0.js.map +0 -1
- package/dist/Icon-DbHA5GV1-DwO2aGkj.js.map +0 -1
- package/dist/InputMask-B8N8PP1W-DlUKpMR4.js.map +0 -1
- package/dist/Label-CUVr-jvI-BXhER5eQ.js +0 -51
- package/dist/Label-CUVr-jvI-BXhER5eQ.js.map +0 -1
- package/dist/Label-CUVr-jvI.css +0 -62
- package/dist/ListView.module-BqvHsIQ9-BqvHsIQ9.js.map +0 -1
- package/dist/Listbox-CCUnPdBn-DwvTVF0i.js.map +0 -1
- package/dist/Menu-CsfX8-_z.js.map +0 -1
- package/dist/Overflow-Cv9sOPm3-AYGUgSQn.js.map +0 -1
- package/dist/Page-vKi5JkDS.js.map +0 -1
- package/dist/Popover-tu_N1aS6-CSLR1Xzc.js.map +0 -1
- package/dist/ProgressBar-DQ1lsFk2-Ci4eqzM0.js +0 -130
- package/dist/ProgressBar-DQ1lsFk2-Ci4eqzM0.js.map +0 -1
- package/dist/ProgressBar-DQ1lsFk2.css +0 -91
- package/dist/SearchField-C-4icPUa.js.map +0 -1
- package/dist/SelectCardGroup-Ch56Mp-k.js.map +0 -1
- package/dist/SideNav-Mdwo6zfi.js.map +0 -1
- package/dist/Spinner-DdirfhPp-c7cDfIit.js.map +0 -1
- package/dist/Stepper-c7C22LVq.js.map +0 -1
- package/dist/Tab-x6_xtr13.js.map +0 -1
- package/dist/TextField.module-B411p3ST-B411p3ST.js.map +0 -1
- package/dist/Textarea-B-Dv2RXs.js.map +0 -1
- package/dist/ThemeProvider-CioBp3gk-B6HyDICa.js.map +0 -1
- package/dist/Toolbar-7BeCY61H.js.map +0 -1
- package/dist/Tooltip-C8sCGmKM-CLrDofvy.js +0 -631
- package/dist/Tooltip-C8sCGmKM-CLrDofvy.js.map +0 -1
- package/dist/Tooltip-C8sCGmKM.css +0 -102
- package/dist/check_circle-C3DDoVXp.js.map +0 -1
- package/dist/floating-ui.react-4AwURJA3.js.map +0 -1
- package/dist/index.esm-CunAFnrh.js +0 -546
- package/dist/index.esm-CunAFnrh.js.map +0 -1
- package/dist/info-CYpG6tcI.js +0 -6
- package/dist/info-CYpG6tcI.js.map +0 -1
- package/dist/proxy-Cy56d5Wf.js.map +0 -1
- package/dist/supportsPopover-8aJR37cf-8aJR37cf.js +0 -6
- package/dist/supportsPopover-8aJR37cf-8aJR37cf.js.map +0 -1
- package/dist/toast-CbokOkfo.js +0 -937
- package/dist/toast-CbokOkfo.js.map +0 -1
- package/dist/toast.css +0 -216
- package/dist/useAccessibleColor-CR4Gw85S-D9BFnrDq.js.map +0 -1
- package/dist/useKeyboardFocusables-CwVMAe5C-DtjYOAmt.js +0 -61
- package/dist/useKeyboardFocusables-CwVMAe5C-DtjYOAmt.js.map +0 -1
- package/dist/useLayoutPropsUtil-C6qizVc6-BkgAan7h.js.map +0 -1
- /package/dist/{Alert-CRv6t4jJ.css → Alert-BW0jYz7s.css} +0 -0
- /package/dist/{Button-Ce--YZ9L.css → Button.css} +0 -0
- /package/dist/{Calendar-9iYMS0Iw.css → Calendar-DGlqu1W3.css} +0 -0
- /package/dist/{Chip-CAxTyjIZ.css → Chip-DX922SMw.css} +0 -0
- /package/dist/{Flex-pdHNcZrF.css → Flex-DlNiHX1G.css} +0 -0
- /package/dist/{Helper-Ba5DBS51.css → Helper-DBmwQvEP.css} +0 -0
- /package/dist/{Icon-DbHA5GV1.css → Icon-DuwR7O2z.css} +0 -0
- /package/dist/{Link-BZ7vy96e.css → Link-DIyZHRIV.css} +0 -0
- /package/dist/{Overflow-Cv9sOPm3.css → Overflow-DXWJ1gWT.css} +0 -0
- /package/dist/{Popover-tu_N1aS6.css → Popover-DDhjaX2z.css} +0 -0
- /package/dist/{Radio-BBwG1fqT.css → Radio-DE79qJFW.css} +0 -0
- /package/dist/{Spinner-DdirfhPp.css → Spinner-B55mSnmk.css} +0 -0
- /package/dist/{Text-C2n3GDdC.css → Text-BCRKWTMM.css} +0 -0
package/dist/hooks/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useBreakpoint, useBreakpoint as default, type BreakpointReturnProps, } from '@servicetitan/hammer-react';
|
package/dist/index.js
CHANGED
|
@@ -1,64 +1,65 @@
|
|
|
1
|
-
export { A as Alert } from './Alert-
|
|
2
|
-
export { A as Announcement } from './Announcement-
|
|
3
|
-
export { A as Avatar, a as AvatarGroup } from './Avatar-
|
|
4
|
-
export { B as Badge } from './Badge-
|
|
5
|
-
export { B as Breadcrumbs, a as BreadcrumbsElement, b as BreadcrumbsLink } from './Breadcrumbs-
|
|
6
|
-
export { B as Button } from './Button-
|
|
7
|
-
export { B as ButtonCompound } from './ButtonCompound-
|
|
8
|
-
export { B as ButtonLink } from './ButtonLink-
|
|
9
|
-
export { B as ButtonToggle } from './ButtonToggle-
|
|
10
|
-
export { C as Calendar, b as CalendarMonth, c as CalendarNext, a as CalendarNow, d as CalendarPrev } from './Calendar-
|
|
11
|
-
export { C as Card } from './Card-
|
|
12
|
-
export { C as Checkbox, a as CheckboxGroup } from './Checkbox-
|
|
13
|
-
export { C as Chip } from './Chip-
|
|
14
|
-
export { C as Combobox, e as ComboboxContent, a as ComboboxElement, i as ComboboxEmpty, g as ComboboxItem, h as ComboboxItemAddNew, f as ComboboxList, c as ComboboxSearchField, b as ComboboxSelect, d as ComboboxSelectTrigger, u as useInfiniteCombobox } from './Combobox-
|
|
15
|
-
export { D as DateField } from './DateField-
|
|
16
|
-
export { D as Details, b as DetailsContent, a as DetailsSummary } from './Details-
|
|
17
|
-
export { D as Dialog, d as DialogCancelButton, c as DialogContent, b as DialogFooter, a as DialogHeader } from './Dialog-
|
|
18
|
-
export { D as Divider } from './Divider-
|
|
19
|
-
export { D as Drawer, a as DrawerCancelButton, d as DrawerContent, b as DrawerFooter, c as DrawerHeader } from './Drawer-
|
|
20
|
-
export { E as EditCard } from './EditCard-
|
|
21
|
-
export { F as Flex } from './Flex-
|
|
22
|
-
export { G as Grid } from './Grid-
|
|
23
|
-
export { I as Icon } from './Icon-
|
|
24
|
-
export { I as InputMask } from './InputMask-
|
|
1
|
+
export { A as Alert } from './Alert-KVBpZzAt.js';
|
|
2
|
+
export { A as Announcement } from './Announcement-DnaX0j_E.js';
|
|
3
|
+
export { A as Avatar, a as AvatarGroup } from './Avatar-CylY-nHK.js';
|
|
4
|
+
export { B as Badge } from './Badge-Lt1iCyYK.js';
|
|
5
|
+
export { B as Breadcrumbs, a as BreadcrumbsElement, b as BreadcrumbsLink } from './Breadcrumbs-DicsW4mk.js';
|
|
6
|
+
export { B as Button } from './Button-CRGbkHTO.js';
|
|
7
|
+
export { B as ButtonCompound } from './ButtonCompound-Dq-3iCqQ.js';
|
|
8
|
+
export { B as ButtonLink } from './ButtonLink-B1b4NVwl.js';
|
|
9
|
+
export { B as ButtonToggle } from './ButtonToggle-BdIwMXdH.js';
|
|
10
|
+
export { C as Calendar, b as CalendarMonth, c as CalendarNext, a as CalendarNow, d as CalendarPrev } from './Calendar-CqEPLYlk.js';
|
|
11
|
+
export { C as Card } from './Card-D-ntWPsN.js';
|
|
12
|
+
export { C as Checkbox, a as CheckboxGroup } from './Checkbox-K1ZrRTEZ.js';
|
|
13
|
+
export { C as Chip } from './Chip-i-OBdpYm.js';
|
|
14
|
+
export { C as Combobox, e as ComboboxContent, a as ComboboxElement, i as ComboboxEmpty, g as ComboboxItem, h as ComboboxItemAddNew, f as ComboboxList, c as ComboboxSearchField, b as ComboboxSelect, d as ComboboxSelectTrigger, u as useInfiniteCombobox } from './Combobox-3SWKXAYu.js';
|
|
15
|
+
export { D as DateField } from './DateField-YjnaTpA4.js';
|
|
16
|
+
export { D as Details, b as DetailsContent, a as DetailsSummary } from './Details-CtCidzce.js';
|
|
17
|
+
export { D as Dialog, d as DialogCancelButton, c as DialogContent, b as DialogFooter, a as DialogHeader } from './Dialog-DDF9Xyrs.js';
|
|
18
|
+
export { D as Divider } from './Divider-By5PjW0_.js';
|
|
19
|
+
export { D as Drawer, a as DrawerCancelButton, d as DrawerContent, b as DrawerFooter, c as DrawerHeader } from './Drawer-Bffoaren.js';
|
|
20
|
+
export { E as EditCard } from './EditCard-DripZNiC.js';
|
|
21
|
+
export { F as Flex } from './Flex-CbkDTKfn.js';
|
|
22
|
+
export { G as Grid } from './Grid-LhlvpLTc.js';
|
|
23
|
+
export { I as Icon } from './Icon-U0zxixxg.js';
|
|
24
|
+
export { I as InputMask } from './InputMask-DdF90b0D.js';
|
|
25
25
|
export { L as Layout, a as LayoutElement, b as LayoutItem } from './Layout-CUUb2PVr.js';
|
|
26
|
-
export { L as Link } from './Link-
|
|
27
|
-
export { L as Listbox, a as ListboxOption, b as ListboxOptionGroup } from './Listbox-
|
|
28
|
-
export { L as ListView, a as ListViewOption, b as ListViewOptionCell } from './ListView-
|
|
29
|
-
export { M as Menu, a as MenuItem } from './Menu-
|
|
30
|
-
export { O as Overflow, a as OverflowText } from './Overflow-
|
|
31
|
-
export { P as Page, e as PageContent, d as PageHeader, c as PagePanel, a as PageSidebar, b as PageSidebarHeader } from './Page-
|
|
32
|
-
export { P as Popover, d as PopoverButton, c as PopoverClose, b as PopoverContent, a as PopoverTrigger } from './Popover-
|
|
33
|
-
export { P as ProgressBar } from './ProgressBar-
|
|
34
|
-
export { R as Radio, a as RadioGroup } from './Radio-
|
|
35
|
-
export { S as SearchField } from './SearchField-
|
|
36
|
-
export { S as SegmentedControl, a as SegmentedControlSegment } from './SegmentedControl-
|
|
37
|
-
export { S as SelectCard, a as SelectCardGroup } from './SelectCardGroup-
|
|
38
|
-
export { S as SideNav, a as SideNavCollapsible, b as SideNavGroup, c as SideNavLink } from './SideNav-
|
|
39
|
-
export { S as Skeleton, a as SkeletonCircle, b as SkeletonPill, c as SkeletonRectangle, d as SkeletonText } from './Skeleton-
|
|
40
|
-
export { S as Spinner } from './Spinner-
|
|
26
|
+
export { L as Link } from './Link-DDBu_8WX.js';
|
|
27
|
+
export { L as Listbox, a as ListboxOption, b as ListboxOptionGroup } from './Listbox-BQP8FRTF.js';
|
|
28
|
+
export { L as ListView, a as ListViewOption, b as ListViewOptionCell } from './ListView-BU0TCQ4k.js';
|
|
29
|
+
export { M as Menu, a as MenuItem } from './Menu-BtinbJQ_.js';
|
|
30
|
+
export { O as Overflow, a as OverflowText } from './Overflow-CKVmrb1N.js';
|
|
31
|
+
export { P as Page, e as PageContent, d as PageHeader, c as PagePanel, a as PageSidebar, b as PageSidebarHeader } from './Page-DnroZYyr.js';
|
|
32
|
+
export { P as Popover, d as PopoverButton, c as PopoverClose, b as PopoverContent, a as PopoverTrigger } from './Popover-C7aIgvIl.js';
|
|
33
|
+
export { P as ProgressBar } from './ProgressBar-BfdgLTrw.js';
|
|
34
|
+
export { R as Radio, a as RadioGroup } from './Radio-vM4P73jb.js';
|
|
35
|
+
export { S as SearchField } from './SearchField-DMx9YWba.js';
|
|
36
|
+
export { S as SegmentedControl, a as SegmentedControlSegment } from './SegmentedControl-D-kdk7BJ.js';
|
|
37
|
+
export { S as SelectCard, b as SelectCardElement, a as SelectCardGroup } from './SelectCardGroup-u0bbiRwe.js';
|
|
38
|
+
export { S as SideNav, a as SideNavCollapsible, b as SideNavGroup, c as SideNavLink } from './SideNav-BIV-c-1o.js';
|
|
39
|
+
export { S as Skeleton, a as SkeletonCircle, b as SkeletonPill, c as SkeletonRectangle, d as SkeletonText } from './Skeleton-CO1kBH8A.js';
|
|
40
|
+
export { S as Spinner } from './Spinner-DUXjTDlr.js';
|
|
41
41
|
export { S as SrOnly } from './SrOnly-DcDlKd4y.js';
|
|
42
|
-
export { S as Stepper, d as StepperFinalPanel, a as StepperList, e as StepperNextButton, c as StepperPanel, f as StepperPrevButton, b as StepperStep } from './Stepper-
|
|
43
|
-
export { S as Switch } from './Switch-
|
|
44
|
-
export { T as Tab, a as TabButton, b as TabList, c as TabPanel } from './Tab-
|
|
45
|
-
export { T as Text } from './Text-
|
|
46
|
-
export { T as Textarea } from './Textarea-
|
|
47
|
-
export { T as TextField } from './TextField-
|
|
48
|
-
export { T as Toaster, t as toast } from './toast-
|
|
49
|
-
export { T as Toolbar, b as ToolbarButton, d as ToolbarButtonLink, c as ToolbarButtonToggle, a as ToolbarElement, e as ToolbarSelect } from './Toolbar-
|
|
50
|
-
export { T as Tooltip, b as TooltipContent, a as TooltipTrigger } from './Tooltip-
|
|
51
|
-
export { u as useAccessibleColor } from './useAccessibleColor-
|
|
52
|
-
export { u as
|
|
42
|
+
export { S as Stepper, d as StepperFinalPanel, a as StepperList, e as StepperNextButton, c as StepperPanel, f as StepperPrevButton, b as StepperStep } from './Stepper-tJSGpsW1.js';
|
|
43
|
+
export { S as Switch } from './Switch-CksM88Ks.js';
|
|
44
|
+
export { T as Tab, a as TabButton, b as TabList, c as TabPanel } from './Tab-qn_tnvF4.js';
|
|
45
|
+
export { T as Text } from './Text-CF2KcnWA.js';
|
|
46
|
+
export { T as Textarea } from './Textarea-CaMvxI9Y.js';
|
|
47
|
+
export { T as TextField } from './TextField-B7Asq1aB.js';
|
|
48
|
+
export { T as Toaster, t as toast } from './toast-KF3GWYbk.js';
|
|
49
|
+
export { T as Toolbar, b as ToolbarButton, d as ToolbarButtonLink, c as ToolbarButtonToggle, a as ToolbarElement, e as ToolbarSelect } from './Toolbar-OYgCC3Up.js';
|
|
50
|
+
export { T as Tooltip, b as TooltipContent, a as TooltipTrigger } from './Tooltip-rDXwk4az.js';
|
|
51
|
+
export { u as useAccessibleColor } from './useAccessibleColor-Dc6B_M-Z-BYKjkGRg.js';
|
|
52
|
+
export { u as useBreakpoint } from './useBreakpoint-7QkBkSeP-Cv5fnZxs.js';
|
|
53
|
+
export { u as useLinkStyles } from './Link-DIyZHRIV-DXK6prKs.js';
|
|
53
54
|
export { u as useMergeRefs } from './useMergeRefs-Bde85AWI-Bde85AWI.js';
|
|
54
55
|
export { u as usePrefersColorScheme } from './usePrefersColorScheme-_hT7dK7_-_hT7dK7_.js';
|
|
55
56
|
export { u as useSwipe } from './useSwipe-DIUHs7T5-DIUHs7T5.js';
|
|
56
57
|
export { useTrackingId } from './useTrackingId.js';
|
|
57
|
-
export { A as AnvilProvider, a as AnvilProviderContext } from './AnvilProvider-
|
|
58
|
-
export { L as LocalizationProvider } from './LocalizationProvider-
|
|
58
|
+
export { A as AnvilProvider, a as AnvilProviderContext } from './AnvilProvider-C3E7FZAC.js';
|
|
59
|
+
export { L as LocalizationProvider } from './LocalizationProvider-BrxC1a2D-B1iQENoJ.js';
|
|
59
60
|
export { L as LocalizationContext, u as useLocalizationContext } from './LocalizationContext-UsmB5mnR-BUIYgNp2.js';
|
|
60
61
|
export { P as PortalProvider, a as PortalProviderContext } from './PortalProvider-9lXkQ0xY-BKoGegS1.js';
|
|
61
|
-
export { T as ThemeProvider } from './ThemeProvider-
|
|
62
|
+
export { T as ThemeProvider } from './ThemeProvider-Drjj0EtN.js';
|
|
62
63
|
export { T as TrackingProvider } from './TrackingProvider-BtSjkmpM.js';
|
|
63
64
|
export { u as useTrackingContext } from './useTrackingContext-DRwDL8DE.js';
|
|
64
65
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -96,7 +96,6 @@ if (process.env.NODE_ENV !== "production") {
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
const MotionGlobalConfig = {
|
|
99
|
-
skipAnimations: false,
|
|
100
99
|
useManualTiming: false,
|
|
101
100
|
};
|
|
102
101
|
|
|
@@ -109,6 +108,9 @@ const stepsOrder = [
|
|
|
109
108
|
"postRender", // Compute
|
|
110
109
|
];
|
|
111
110
|
|
|
111
|
+
const statsBuffer = {
|
|
112
|
+
value: null};
|
|
113
|
+
|
|
112
114
|
function createRenderStep(runNextFrame, stepName) {
|
|
113
115
|
/**
|
|
114
116
|
* We create and reuse two queues, one to queue jobs for the current frame
|
|
@@ -131,11 +133,13 @@ function createRenderStep(runNextFrame, stepName) {
|
|
|
131
133
|
timestamp: 0.0,
|
|
132
134
|
isProcessing: false,
|
|
133
135
|
};
|
|
136
|
+
let numCalls = 0;
|
|
134
137
|
function triggerCallback(callback) {
|
|
135
138
|
if (toKeepAlive.has(callback)) {
|
|
136
139
|
step.schedule(callback);
|
|
137
140
|
runNextFrame();
|
|
138
141
|
}
|
|
142
|
+
numCalls++;
|
|
139
143
|
callback(latestFrameData);
|
|
140
144
|
}
|
|
141
145
|
const step = {
|
|
@@ -176,6 +180,13 @@ function createRenderStep(runNextFrame, stepName) {
|
|
|
176
180
|
[thisFrame, nextFrame] = [nextFrame, thisFrame];
|
|
177
181
|
// Execute this frame
|
|
178
182
|
thisFrame.forEach(triggerCallback);
|
|
183
|
+
/**
|
|
184
|
+
* If we're recording stats then
|
|
185
|
+
*/
|
|
186
|
+
if (stepName && statsBuffer.value) {
|
|
187
|
+
statsBuffer.value.frameloop[stepName].push(numCalls);
|
|
188
|
+
}
|
|
189
|
+
numCalls = 0;
|
|
179
190
|
// Clear the frame so no callbacks remain. This is to avoid
|
|
180
191
|
// memory leaks should this render step not run for a while.
|
|
181
192
|
thisFrame.clear();
|
|
@@ -200,7 +211,7 @@ function createRenderBatcher(scheduleNextBatch, allowKeepAlive) {
|
|
|
200
211
|
};
|
|
201
212
|
const flagRunNextFrame = () => (runNextFrame = true);
|
|
202
213
|
const steps = stepsOrder.reduce((acc, key) => {
|
|
203
|
-
acc[key] = createRenderStep(flagRunNextFrame);
|
|
214
|
+
acc[key] = createRenderStep(flagRunNextFrame, allowKeepAlive ? key : undefined);
|
|
204
215
|
return acc;
|
|
205
216
|
}, {});
|
|
206
217
|
const { read, resolveKeyframes, update, preRender, render, postRender } = steps;
|
|
@@ -551,7 +562,7 @@ const camelToDash = (str) => str.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCas
|
|
|
551
562
|
const optimizedAppearDataId = "framerAppearId";
|
|
552
563
|
const optimizedAppearDataAttribute = "data-" + camelToDash(optimizedAppearDataId);
|
|
553
564
|
|
|
554
|
-
const { schedule: microtask
|
|
565
|
+
const { schedule: microtask} = createRenderBatcher(queueMicrotask, false);
|
|
555
566
|
|
|
556
567
|
/**
|
|
557
568
|
* Internal, exported only for usage in Framer
|
|
@@ -609,8 +620,8 @@ function useVisualElement(Component, visualState, props, createVisualElement, Pr
|
|
|
609
620
|
*/
|
|
610
621
|
const optimisedAppearId = props[optimizedAppearDataAttribute];
|
|
611
622
|
const wantsHandoff = useRef(Boolean(optimisedAppearId) &&
|
|
612
|
-
!((_a = window.MotionHandoffIsComplete) === null || _a ===
|
|
613
|
-
((_b = window.MotionHasOptimisedAnimation) === null || _b ===
|
|
623
|
+
!((_a = window.MotionHandoffIsComplete) === null || _a === void 0 ? void 0 : _a.call(window, optimisedAppearId)) &&
|
|
624
|
+
((_b = window.MotionHasOptimisedAnimation) === null || _b === void 0 ? void 0 : _b.call(window, optimisedAppearId)));
|
|
614
625
|
useIsomorphicLayoutEffect(() => {
|
|
615
626
|
if (!visualElement)
|
|
616
627
|
return;
|
|
@@ -642,7 +653,7 @@ function useVisualElement(Component, visualState, props, createVisualElement, Pr
|
|
|
642
653
|
// This ensures all future calls to animateChanges() in this component will run in useEffect
|
|
643
654
|
queueMicrotask(() => {
|
|
644
655
|
var _a;
|
|
645
|
-
(_a = window.MotionHandoffMarkAsComplete) === null || _a ===
|
|
656
|
+
(_a = window.MotionHandoffMarkAsComplete) === null || _a === void 0 ? void 0 : _a.call(window, optimisedAppearId);
|
|
646
657
|
});
|
|
647
658
|
wantsHandoff.current = false;
|
|
648
659
|
}
|
|
@@ -726,7 +737,7 @@ function createRendererMotionComponent({ preloadedFeatures, createVisualElement,
|
|
|
726
737
|
}
|
|
727
738
|
MotionComponent.displayName = `motion.${typeof Component === "string"
|
|
728
739
|
? Component
|
|
729
|
-
: `create(${(_b = (_a = Component.displayName) !== null && _a !==
|
|
740
|
+
: `create(${(_b = (_a = Component.displayName) !== null && _a !== void 0 ? _a : Component.name) !== null && _b !== void 0 ? _b : ""})`}`;
|
|
730
741
|
const ForwardRefMotionComponent = forwardRef(MotionComponent);
|
|
731
742
|
ForwardRefMotionComponent[motionComponentSymbol] = Component;
|
|
732
743
|
return ForwardRefMotionComponent;
|
|
@@ -758,7 +769,7 @@ function getProjectionFunctionality(props) {
|
|
|
758
769
|
return {};
|
|
759
770
|
const combined = { ...drag, ...layout };
|
|
760
771
|
return {
|
|
761
|
-
MeasureLayout: (drag === null || drag ===
|
|
772
|
+
MeasureLayout: (drag === null || drag === void 0 ? void 0 : drag.isEnabled(props)) || (layout === null || layout === void 0 ? void 0 : layout.isEnabled(props))
|
|
762
773
|
? combined.MeasureLayout
|
|
763
774
|
: undefined,
|
|
764
775
|
ProjectionNode: combined.ProjectionNode,
|
|
@@ -1326,7 +1337,7 @@ function createUseRender(forwardMotionProps = false) {
|
|
|
1326
1337
|
|
|
1327
1338
|
function getValueState(visualElement) {
|
|
1328
1339
|
const state = [{}, {}];
|
|
1329
|
-
visualElement === null || visualElement ===
|
|
1340
|
+
visualElement === null || visualElement === void 0 ? void 0 : visualElement.values.forEach((value, key) => {
|
|
1330
1341
|
state[0][key] = value.get();
|
|
1331
1342
|
state[1][key] = value.getVelocity();
|
|
1332
1343
|
});
|
|
@@ -1470,7 +1481,7 @@ function scrapeMotionValuesFromProps$1(props, prevProps, visualElement) {
|
|
|
1470
1481
|
(prevProps.style &&
|
|
1471
1482
|
isMotionValue(prevProps.style[key])) ||
|
|
1472
1483
|
isForcedMotionValue(key, props) ||
|
|
1473
|
-
((_a = visualElement === null || visualElement ===
|
|
1484
|
+
((_a = visualElement === null || visualElement === void 0 ? void 0 : visualElement.getValue(key)) === null || _a === void 0 ? void 0 : _a.liveStyle) !== undefined) {
|
|
1474
1485
|
newValues[key] = style[key];
|
|
1475
1486
|
}
|
|
1476
1487
|
}
|
|
@@ -2209,7 +2220,7 @@ const supportsFlags = {
|
|
|
2209
2220
|
|
|
2210
2221
|
function memoSupports(callback, supportsFlag) {
|
|
2211
2222
|
const memoized = memo(callback);
|
|
2212
|
-
return () => { var _a; return (_a = supportsFlags[supportsFlag]) !== null && _a !==
|
|
2223
|
+
return () => { var _a; return (_a = supportsFlags[supportsFlag]) !== null && _a !== void 0 ? _a : memoized(); };
|
|
2213
2224
|
}
|
|
2214
2225
|
|
|
2215
2226
|
const supportsLinearEasing = /*@__PURE__*/ memoSupports(() => {
|
|
@@ -2510,8 +2521,8 @@ function test(v) {
|
|
|
2510
2521
|
var _a, _b;
|
|
2511
2522
|
return (isNaN(v) &&
|
|
2512
2523
|
typeof v === "string" &&
|
|
2513
|
-
(((_a = v.match(floatRegex)) === null || _a ===
|
|
2514
|
-
(((_b = v.match(colorRegex)) === null || _b ===
|
|
2524
|
+
(((_a = v.match(floatRegex)) === null || _a === void 0 ? void 0 : _a.length) || 0) +
|
|
2525
|
+
(((_b = v.match(colorRegex)) === null || _b === void 0 ? void 0 : _b.length) || 0) >
|
|
2515
2526
|
0);
|
|
2516
2527
|
}
|
|
2517
2528
|
const NUMBER_TOKEN = "number";
|
|
@@ -2755,7 +2766,7 @@ function measureAllKeyframes() {
|
|
|
2755
2766
|
if (restore) {
|
|
2756
2767
|
restore.forEach(([key, value]) => {
|
|
2757
2768
|
var _a;
|
|
2758
|
-
(_a = element.getValue(key)) === null || _a ===
|
|
2769
|
+
(_a = element.getValue(key)) === null || _a === void 0 ? void 0 : _a.set(value);
|
|
2759
2770
|
});
|
|
2760
2771
|
}
|
|
2761
2772
|
});
|
|
@@ -2842,7 +2853,7 @@ class KeyframeResolver {
|
|
|
2842
2853
|
* If the first keyframe is null, we need to find its value by sampling the element
|
|
2843
2854
|
*/
|
|
2844
2855
|
if (i === 0) {
|
|
2845
|
-
const currentValue = motionValue === null || motionValue ===
|
|
2856
|
+
const currentValue = motionValue === null || motionValue === void 0 ? void 0 : motionValue.get();
|
|
2846
2857
|
const finalKeyframe = unresolvedKeyframes[unresolvedKeyframes.length - 1];
|
|
2847
2858
|
if (currentValue !== undefined) {
|
|
2848
2859
|
unresolvedKeyframes[0] = currentValue;
|
|
@@ -2909,7 +2920,7 @@ function parseCSSVariable(current) {
|
|
|
2909
2920
|
if (!match)
|
|
2910
2921
|
return [,];
|
|
2911
2922
|
const [, token1, token2, fallback] = match;
|
|
2912
|
-
return [`--${token1 !== null && token1 !==
|
|
2923
|
+
return [`--${token1 !== null && token1 !== void 0 ? token1 : token2}`, fallback];
|
|
2913
2924
|
}
|
|
2914
2925
|
const maxDepth = 4;
|
|
2915
2926
|
function getVariableValue(current, element, depth = 1) {
|
|
@@ -3061,7 +3072,7 @@ class DOMKeyframesResolver extends KeyframeResolver {
|
|
|
3061
3072
|
this.finalKeyframe = finalKeyframe;
|
|
3062
3073
|
}
|
|
3063
3074
|
// If we removed transform values, reapply them before the next render
|
|
3064
|
-
if ((_a = this.removedTransforms) === null || _a ===
|
|
3075
|
+
if ((_a = this.removedTransforms) === null || _a === void 0 ? void 0 : _a.length) {
|
|
3065
3076
|
this.removedTransforms.forEach(([unsetTransformName, unsetTransformValue]) => {
|
|
3066
3077
|
element
|
|
3067
3078
|
.getValue(unsetTransformName)
|
|
@@ -3462,7 +3473,7 @@ function matchOrder(origin, target) {
|
|
|
3462
3473
|
for (let i = 0; i < target.values.length; i++) {
|
|
3463
3474
|
const type = target.types[i];
|
|
3464
3475
|
const originIndex = origin.indexes[type][pointers[type]];
|
|
3465
|
-
const originValue = (_a = origin.values[originIndex]) !== null && _a !==
|
|
3476
|
+
const originValue = (_a = origin.values[originIndex]) !== null && _a !== void 0 ? _a : 0;
|
|
3466
3477
|
orderedOrigin[i] = originValue;
|
|
3467
3478
|
pointers[type]++;
|
|
3468
3479
|
}
|
|
@@ -4090,7 +4101,7 @@ class MainThreadAnimation extends BaseAnimation {
|
|
|
4090
4101
|
onStop && onStop();
|
|
4091
4102
|
};
|
|
4092
4103
|
const { name, motionValue, element, keyframes } = this.options;
|
|
4093
|
-
const KeyframeResolver$1 = (element === null || element ===
|
|
4104
|
+
const KeyframeResolver$1 = (element === null || element === void 0 ? void 0 : element.KeyframeResolver) || KeyframeResolver;
|
|
4094
4105
|
const onResolved = (resolvedKeyframes, finalKeyframe) => this.onKeyframesResolved(resolvedKeyframes, finalKeyframe);
|
|
4095
4106
|
this.resolver = new KeyframeResolver$1(keyframes, onResolved, name, motionValue, element);
|
|
4096
4107
|
this.resolver.scheduleResolve();
|
|
@@ -4339,7 +4350,7 @@ class MainThreadAnimation extends BaseAnimation {
|
|
|
4339
4350
|
this.startTime = now - this.holdTime;
|
|
4340
4351
|
}
|
|
4341
4352
|
else if (!this.startTime) {
|
|
4342
|
-
this.startTime = startTime !== null && startTime !==
|
|
4353
|
+
this.startTime = startTime !== null && startTime !== void 0 ? startTime : this.calcStartTime();
|
|
4343
4354
|
}
|
|
4344
4355
|
else if (this.state === "finished") {
|
|
4345
4356
|
this.startTime = now;
|
|
@@ -4363,7 +4374,7 @@ class MainThreadAnimation extends BaseAnimation {
|
|
|
4363
4374
|
return;
|
|
4364
4375
|
}
|
|
4365
4376
|
this.state = "paused";
|
|
4366
|
-
this.holdTime = (_a = this.currentTime) !== null && _a !==
|
|
4377
|
+
this.holdTime = (_a = this.currentTime) !== null && _a !== void 0 ? _a : 0;
|
|
4367
4378
|
}
|
|
4368
4379
|
complete() {
|
|
4369
4380
|
if (this.state !== "running") {
|
|
@@ -4549,7 +4560,7 @@ class AcceleratedAnimation extends BaseAnimation {
|
|
|
4549
4560
|
const animation = startWaapiAnimation(motionValue.owner.current, name, keyframes, { ...this.options, duration, times, ease });
|
|
4550
4561
|
// Override the browser calculated startTime with one synchronised to other JS
|
|
4551
4562
|
// and WAAPI animations starting this event loop.
|
|
4552
|
-
animation.startTime = startTime !== null && startTime !==
|
|
4563
|
+
animation.startTime = startTime !== null && startTime !== void 0 ? startTime : this.calcStartTime();
|
|
4553
4564
|
if (this.pendingTimeline) {
|
|
4554
4565
|
attachTimeline(animation, this.pendingTimeline);
|
|
4555
4566
|
this.pendingTimeline = undefined;
|
|
@@ -4905,7 +4916,7 @@ function animateTarget(visualElement, targetAndTransition, { delay = 0, transiti
|
|
|
4905
4916
|
visualElement.animationState &&
|
|
4906
4917
|
visualElement.animationState.getState()[type];
|
|
4907
4918
|
for (const key in target) {
|
|
4908
|
-
const value = visualElement.getValue(key, (_a = visualElement.latestValues[key]) !== null && _a !==
|
|
4919
|
+
const value = visualElement.getValue(key, (_a = visualElement.latestValues[key]) !== null && _a !== void 0 ? _a : null);
|
|
4909
4920
|
const valueTarget = target[key];
|
|
4910
4921
|
if (valueTarget === undefined ||
|
|
4911
4922
|
(animationTypeState &&
|
|
@@ -4953,7 +4964,7 @@ function animateTarget(visualElement, targetAndTransition, { delay = 0, transiti
|
|
|
4953
4964
|
function animateVariant(visualElement, variant, options = {}) {
|
|
4954
4965
|
var _a;
|
|
4955
4966
|
const resolved = resolveVariant(visualElement, variant, options.type === "exit"
|
|
4956
|
-
? (_a = visualElement.presenceContext) === null || _a ===
|
|
4967
|
+
? (_a = visualElement.presenceContext) === null || _a === void 0 ? void 0 : _a.custom
|
|
4957
4968
|
: undefined);
|
|
4958
4969
|
let { transition = visualElement.getDefaultTransition() || {} } = resolved || {};
|
|
4959
4970
|
if (options.transitionOverride) {
|
|
@@ -5086,7 +5097,7 @@ function createAnimationState(visualElement) {
|
|
|
5086
5097
|
const buildResolvedTypeValues = (type) => (acc, definition) => {
|
|
5087
5098
|
var _a;
|
|
5088
5099
|
const resolved = resolveVariant(visualElement, definition, type === "exit"
|
|
5089
|
-
? (_a = visualElement.presenceContext) === null || _a ===
|
|
5100
|
+
? (_a = visualElement.presenceContext) === null || _a === void 0 ? void 0 : _a.custom
|
|
5090
5101
|
: undefined);
|
|
5091
5102
|
if (resolved) {
|
|
5092
5103
|
const { transition, transitionEnd, ...target } = resolved;
|
|
@@ -5334,7 +5345,7 @@ function createAnimationState(visualElement) {
|
|
|
5334
5345
|
if (motionValue)
|
|
5335
5346
|
motionValue.liveStyle = true;
|
|
5336
5347
|
// @ts-expect-error - @mattgperry to figure if we should do something here
|
|
5337
|
-
fallbackAnimation[key] = fallbackTarget !== null && fallbackTarget !==
|
|
5348
|
+
fallbackAnimation[key] = fallbackTarget !== null && fallbackTarget !== void 0 ? fallbackTarget : null;
|
|
5338
5349
|
});
|
|
5339
5350
|
animations.push({ animation: fallbackAnimation });
|
|
5340
5351
|
}
|
|
@@ -5356,7 +5367,7 @@ function createAnimationState(visualElement) {
|
|
|
5356
5367
|
if (state[type].isActive === isActive)
|
|
5357
5368
|
return Promise.resolve();
|
|
5358
5369
|
// Propagate active change to children
|
|
5359
|
-
(_a = visualElement.variantChildren) === null || _a ===
|
|
5370
|
+
(_a = visualElement.variantChildren) === null || _a === void 0 ? void 0 : _a.forEach((child) => { var _a; return (_a = child.animationState) === null || _a === void 0 ? void 0 : _a.setActive(type, isActive); });
|
|
5360
5371
|
state[type].isActive = isActive;
|
|
5361
5372
|
const animations = animateChanges(type);
|
|
5362
5373
|
for (const key in state) {
|
|
@@ -5444,7 +5455,7 @@ class AnimationFeature extends Feature {
|
|
|
5444
5455
|
unmount() {
|
|
5445
5456
|
var _a;
|
|
5446
5457
|
this.node.animationState.reset();
|
|
5447
|
-
(_a = this.unmountControls) === null || _a ===
|
|
5458
|
+
(_a = this.unmountControls) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
5448
5459
|
}
|
|
5449
5460
|
}
|
|
5450
5461
|
|
|
@@ -6251,7 +6262,7 @@ class VisualElementDragControls {
|
|
|
6251
6262
|
const resumeAnimation = () => eachAxis((axis) => {
|
|
6252
6263
|
var _a;
|
|
6253
6264
|
return this.getAnimationState(axis) === "paused" &&
|
|
6254
|
-
((_a = this.getAxisMotionValue(axis).animation) === null || _a ===
|
|
6265
|
+
((_a = this.getAxisMotionValue(axis).animation) === null || _a === void 0 ? void 0 : _a.play());
|
|
6255
6266
|
});
|
|
6256
6267
|
const { dragSnapToOrigin } = this.getProps();
|
|
6257
6268
|
this.panSession = new PanSession(originEvent, {
|
|
@@ -6311,7 +6322,7 @@ class VisualElementDragControls {
|
|
|
6311
6322
|
const layout = this.visualElement.projection &&
|
|
6312
6323
|
!this.visualElement.projection.layout
|
|
6313
6324
|
? this.visualElement.projection.measure(false)
|
|
6314
|
-
: (_a = this.visualElement.projection) === null || _a ===
|
|
6325
|
+
: (_a = this.visualElement.projection) === null || _a === void 0 ? void 0 : _a.layout;
|
|
6315
6326
|
const prevConstraints = this.constraints;
|
|
6316
6327
|
if (dragConstraints && isRefObject(dragConstraints)) {
|
|
6317
6328
|
if (!this.constraints) {
|
|
@@ -6375,7 +6386,7 @@ class VisualElementDragControls {
|
|
|
6375
6386
|
if (!shouldDrag(axis, drag, this.currentDirection)) {
|
|
6376
6387
|
return;
|
|
6377
6388
|
}
|
|
6378
|
-
let transition = (constraints[axis]) || {};
|
|
6389
|
+
let transition = (constraints && constraints[axis]) || {};
|
|
6379
6390
|
if (dragSnapToOrigin)
|
|
6380
6391
|
transition = { min: 0, max: 0 };
|
|
6381
6392
|
/**
|
|
@@ -6414,11 +6425,11 @@ class VisualElementDragControls {
|
|
|
6414
6425
|
eachAxis((axis) => this.getAxisMotionValue(axis).stop());
|
|
6415
6426
|
}
|
|
6416
6427
|
pauseAnimation() {
|
|
6417
|
-
eachAxis((axis) => { var _a; return (_a = this.getAxisMotionValue(axis).animation) === null || _a ===
|
|
6428
|
+
eachAxis((axis) => { var _a; return (_a = this.getAxisMotionValue(axis).animation) === null || _a === void 0 ? void 0 : _a.pause(); });
|
|
6418
6429
|
}
|
|
6419
6430
|
getAnimationState(axis) {
|
|
6420
6431
|
var _a;
|
|
6421
|
-
return (_a = this.getAxisMotionValue(axis).animation) === null || _a ===
|
|
6432
|
+
return (_a = this.getAxisMotionValue(axis).animation) === null || _a === void 0 ? void 0 : _a.state;
|
|
6422
6433
|
}
|
|
6423
6434
|
/**
|
|
6424
6435
|
* Drag works differently depending on which props are provided.
|
|
@@ -7224,7 +7235,7 @@ function buildProjectionTransform(delta, treeScale, latestTransform) {
|
|
|
7224
7235
|
*/
|
|
7225
7236
|
const xTranslate = delta.x.translate / treeScale.x;
|
|
7226
7237
|
const yTranslate = delta.y.translate / treeScale.y;
|
|
7227
|
-
const zTranslate = (latestTransform === null || latestTransform ===
|
|
7238
|
+
const zTranslate = (latestTransform === null || latestTransform === void 0 ? void 0 : latestTransform.z) || 0;
|
|
7228
7239
|
if (xTranslate || yTranslate || zTranslate) {
|
|
7229
7240
|
transform = `translate3d(${xTranslate}px, ${yTranslate}px, ${zTranslate}px) `;
|
|
7230
7241
|
}
|
|
@@ -7300,7 +7311,7 @@ function cancelTreeOptimisedTransformAnimations(projectionNode) {
|
|
|
7300
7311
|
}
|
|
7301
7312
|
function createProjectionNode({ attachResizeListener, defaultParent, measureScroll, checkIsScrollRoot, resetTransform, }) {
|
|
7302
7313
|
return class ProjectionNode {
|
|
7303
|
-
constructor(latestValues = {}, parent = defaultParent === null || defaultParent ===
|
|
7314
|
+
constructor(latestValues = {}, parent = defaultParent === null || defaultParent === void 0 ? void 0 : defaultParent()) {
|
|
7304
7315
|
/**
|
|
7305
7316
|
* A unique ID generated for every projection node.
|
|
7306
7317
|
*/
|
|
@@ -7823,7 +7834,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
7823
7834
|
if (!visualElement)
|
|
7824
7835
|
return createBox();
|
|
7825
7836
|
const box = visualElement.measureViewportBox();
|
|
7826
|
-
const wasInScrollRoot = ((_a = this.scroll) === null || _a ===
|
|
7837
|
+
const wasInScrollRoot = ((_a = this.scroll) === null || _a === void 0 ? void 0 : _a.wasRoot) || this.path.some(checkNodeWasScrollRoot);
|
|
7827
7838
|
if (!wasInScrollRoot) {
|
|
7828
7839
|
// Remove viewport scroll to give page-relative coordinates
|
|
7829
7840
|
const { scroll } = this.root;
|
|
@@ -7838,7 +7849,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
7838
7849
|
var _a;
|
|
7839
7850
|
const boxWithoutScroll = createBox();
|
|
7840
7851
|
copyBoxInto(boxWithoutScroll, box);
|
|
7841
|
-
if ((_a = this.scroll) === null || _a ===
|
|
7852
|
+
if ((_a = this.scroll) === null || _a === void 0 ? void 0 : _a.wasRoot) {
|
|
7842
7853
|
return boxWithoutScroll;
|
|
7843
7854
|
}
|
|
7844
7855
|
/**
|
|
@@ -7959,7 +7970,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
7959
7970
|
const canSkip = !(forceRecalculation ||
|
|
7960
7971
|
(isShared && this.isSharedProjectionDirty) ||
|
|
7961
7972
|
this.isProjectionDirty ||
|
|
7962
|
-
((_a = this.parent) === null || _a ===
|
|
7973
|
+
((_a = this.parent) === null || _a === void 0 ? void 0 : _a.isProjectionDirty) ||
|
|
7963
7974
|
this.attemptToResolveRelativeTarget ||
|
|
7964
7975
|
this.root.updateBlockedByResize);
|
|
7965
7976
|
if (canSkip)
|
|
@@ -8086,7 +8097,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
8086
8097
|
* If this is a normal layout animation and neither this node nor its nearest projecting
|
|
8087
8098
|
* is dirty then we can't skip.
|
|
8088
8099
|
*/
|
|
8089
|
-
if (this.isProjectionDirty || ((_a = this.parent) === null || _a ===
|
|
8100
|
+
if (this.isProjectionDirty || ((_a = this.parent) === null || _a === void 0 ? void 0 : _a.isProjectionDirty)) {
|
|
8090
8101
|
canSkip = false;
|
|
8091
8102
|
}
|
|
8092
8103
|
/**
|
|
@@ -8193,7 +8204,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
8193
8204
|
}
|
|
8194
8205
|
scheduleRender(notifyAll = true) {
|
|
8195
8206
|
var _a;
|
|
8196
|
-
(_a = this.options.visualElement) === null || _a ===
|
|
8207
|
+
(_a = this.options.visualElement) === null || _a === void 0 ? void 0 : _a.scheduleRender();
|
|
8197
8208
|
if (notifyAll) {
|
|
8198
8209
|
const stack = this.getStack();
|
|
8199
8210
|
stack && stack.scheduleRender();
|
|
@@ -8379,12 +8390,12 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
8379
8390
|
getLead() {
|
|
8380
8391
|
var _a;
|
|
8381
8392
|
const { layoutId } = this.options;
|
|
8382
|
-
return layoutId ? ((_a = this.getStack()) === null || _a ===
|
|
8393
|
+
return layoutId ? ((_a = this.getStack()) === null || _a === void 0 ? void 0 : _a.lead) || this : this;
|
|
8383
8394
|
}
|
|
8384
8395
|
getPrevLead() {
|
|
8385
8396
|
var _a;
|
|
8386
8397
|
const { layoutId } = this.options;
|
|
8387
|
-
return layoutId ? (_a = this.getStack()) === null || _a ===
|
|
8398
|
+
return layoutId ? (_a = this.getStack()) === null || _a === void 0 ? void 0 : _a.prevLead : undefined;
|
|
8388
8399
|
}
|
|
8389
8400
|
getStack() {
|
|
8390
8401
|
const { layoutId } = this.options;
|
|
@@ -8472,7 +8483,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
8472
8483
|
this.needsReset = false;
|
|
8473
8484
|
styles.opacity = "";
|
|
8474
8485
|
styles.pointerEvents =
|
|
8475
|
-
resolveMotionValue(styleProp === null || styleProp ===
|
|
8486
|
+
resolveMotionValue(styleProp === null || styleProp === void 0 ? void 0 : styleProp.pointerEvents) || "";
|
|
8476
8487
|
styles.transform = transformTemplate
|
|
8477
8488
|
? transformTemplate(this.latestValues, "")
|
|
8478
8489
|
: "none";
|
|
@@ -8487,7 +8498,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
8487
8498
|
? this.latestValues.opacity
|
|
8488
8499
|
: 1;
|
|
8489
8500
|
emptyStyles.pointerEvents =
|
|
8490
|
-
resolveMotionValue(styleProp === null || styleProp ===
|
|
8501
|
+
resolveMotionValue(styleProp === null || styleProp === void 0 ? void 0 : styleProp.pointerEvents) || "";
|
|
8491
8502
|
}
|
|
8492
8503
|
if (this.hasProjected && !hasTransform(this.latestValues)) {
|
|
8493
8504
|
emptyStyles.transform = transformTemplate
|
|
@@ -8512,7 +8523,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
8512
8523
|
*/
|
|
8513
8524
|
styles.opacity =
|
|
8514
8525
|
lead === this
|
|
8515
|
-
? (_b = (_a = valuesToRender.opacity) !== null && _a !==
|
|
8526
|
+
? (_b = (_a = valuesToRender.opacity) !== null && _a !== void 0 ? _a : this.latestValues.opacity) !== null && _b !== void 0 ? _b : 1
|
|
8516
8527
|
: this.preserveOpacity
|
|
8517
8528
|
? this.latestValues.opacity
|
|
8518
8529
|
: valuesToRender.opacityExit;
|
|
@@ -8573,7 +8584,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
8573
8584
|
if (this.options.layoutId) {
|
|
8574
8585
|
styles.pointerEvents =
|
|
8575
8586
|
lead === this
|
|
8576
|
-
? resolveMotionValue(styleProp === null || styleProp ===
|
|
8587
|
+
? resolveMotionValue(styleProp === null || styleProp === void 0 ? void 0 : styleProp.pointerEvents) || ""
|
|
8577
8588
|
: "none";
|
|
8578
8589
|
}
|
|
8579
8590
|
return styles;
|
|
@@ -8583,7 +8594,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
8583
8594
|
}
|
|
8584
8595
|
// Only run on root
|
|
8585
8596
|
resetTree() {
|
|
8586
|
-
this.root.nodes.forEach((node) => { var _a; return (_a = node.currentAnimation) === null || _a ===
|
|
8597
|
+
this.root.nodes.forEach((node) => { var _a; return (_a = node.currentAnimation) === null || _a === void 0 ? void 0 : _a.stop(); });
|
|
8587
8598
|
this.root.nodes.forEach(clearMeasurements);
|
|
8588
8599
|
this.root.sharedNodes.clear();
|
|
8589
8600
|
}
|
|
@@ -8594,7 +8605,7 @@ function updateLayout(node) {
|
|
|
8594
8605
|
}
|
|
8595
8606
|
function notifyLayoutUpdate(node) {
|
|
8596
8607
|
var _a;
|
|
8597
|
-
const snapshot = ((_a = node.resumeFrom) === null || _a ===
|
|
8608
|
+
const snapshot = ((_a = node.resumeFrom) === null || _a === void 0 ? void 0 : _a.snapshot) || node.snapshot;
|
|
8598
8609
|
if (node.isLead() &&
|
|
8599
8610
|
node.layout &&
|
|
8600
8611
|
snapshot &&
|
|
@@ -8795,7 +8806,7 @@ function shouldAnimatePositionOnly(animationType, snapshot, layout) {
|
|
|
8795
8806
|
}
|
|
8796
8807
|
function checkNodeWasScrollRoot(node) {
|
|
8797
8808
|
var _a;
|
|
8798
|
-
return node !== node.root && ((_a = node.scroll) === null || _a ===
|
|
8809
|
+
return node !== node.root && ((_a = node.scroll) === null || _a === void 0 ? void 0 : _a.wasRoot);
|
|
8799
8810
|
}
|
|
8800
8811
|
|
|
8801
8812
|
const DocumentProjectionNode = createProjectionNode({
|
|
@@ -8848,7 +8859,7 @@ function resolveElements(elementOrSelector, scope, selectorCache) {
|
|
|
8848
8859
|
}
|
|
8849
8860
|
else if (typeof elementOrSelector === "string") {
|
|
8850
8861
|
let root = document;
|
|
8851
|
-
const elements = (_a =
|
|
8862
|
+
const elements = (_a = void 0 ) !== null && _a !== void 0 ? _a : root.querySelectorAll(elementOrSelector);
|
|
8852
8863
|
return elements ? Array.from(elements) : [];
|
|
8853
8864
|
}
|
|
8854
8865
|
return Array.from(elementOrSelector);
|
|
@@ -9761,7 +9772,7 @@ class VisualElement {
|
|
|
9761
9772
|
var _a;
|
|
9762
9773
|
let value = this.latestValues[key] !== undefined || !this.current
|
|
9763
9774
|
? this.latestValues[key]
|
|
9764
|
-
: (_a = this.getBaseTargetFromProps(this.props, key)) !== null && _a !==
|
|
9775
|
+
: (_a = this.getBaseTargetFromProps(this.props, key)) !== null && _a !== void 0 ? _a : this.readValueFromInstance(this.current, key, this.options);
|
|
9765
9776
|
if (value !== undefined && value !== null) {
|
|
9766
9777
|
if (typeof value === "string" &&
|
|
9767
9778
|
(isNumericalString(value) || isZeroValueString(value))) {
|
|
@@ -9791,7 +9802,7 @@ class VisualElement {
|
|
|
9791
9802
|
const { initial } = this.props;
|
|
9792
9803
|
let valueFromInitial;
|
|
9793
9804
|
if (typeof initial === "string" || typeof initial === "object") {
|
|
9794
|
-
const variant = resolveVariantFromProps(this.props, initial, (_a = this.presenceContext) === null || _a ===
|
|
9805
|
+
const variant = resolveVariantFromProps(this.props, initial, (_a = this.presenceContext) === null || _a === void 0 ? void 0 : _a.custom);
|
|
9795
9806
|
if (variant) {
|
|
9796
9807
|
valueFromInitial = variant[key];
|
|
9797
9808
|
}
|
|
@@ -9963,4 +9974,4 @@ const createMotionComponent = /*@__PURE__*/ createMotionComponentFactory({
|
|
|
9963
9974
|
const motion = /*@__PURE__*/ createDOMMotionComponentProxy(createMotionComponent);
|
|
9964
9975
|
|
|
9965
9976
|
export { LayoutGroupContext as L, MotionConfigContext as M, PresenceContext as P, usePresence as a, useIsomorphicLayoutEffect as b, hasReducedMotionListener as h, initPrefersReducedMotion as i, motion as m, prefersReducedMotion as p, useConstant as u, warnOnce as w };
|
|
9966
|
-
//# sourceMappingURL=proxy-
|
|
9977
|
+
//# sourceMappingURL=proxy-CreWmH-e.js.map
|