@servicetitan/anvil2 1.31.3 → 1.32.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 +28 -0
- package/dist/{Alert-BcjnX40X-DrPtVgrL.js → Alert-BcjnX40X-DdR5a1fS.js} +4 -4
- package/dist/{Alert-BcjnX40X-DrPtVgrL.js.map → Alert-BcjnX40X-DdR5a1fS.js.map} +1 -1
- package/dist/{Alert-DuXO_Hlq.js → Alert-S-riTJp2.js} +2 -2
- package/dist/{Alert-DuXO_Hlq.js.map → Alert-S-riTJp2.js.map} +1 -1
- package/dist/Alert.js +1 -1
- package/dist/{Announcement-6UeH2_Tp.js → Announcement-BUNvjkVo.js} +4 -4
- package/dist/{Announcement-6UeH2_Tp.js.map → Announcement-BUNvjkVo.js.map} +1 -1
- package/dist/Announcement.js +1 -1
- package/dist/{AnvilProvider-2uSjX-jw.js → AnvilProvider-CuvqXRaZ.js} +2 -2
- package/dist/{AnvilProvider-2uSjX-jw.js.map → AnvilProvider-CuvqXRaZ.js.map} +1 -1
- package/dist/AnvilProvider.js +1 -1
- package/dist/{Avatar-CXgb_ukV.js → Avatar-CuFvRBu5.js} +3 -3
- package/dist/{Avatar-CXgb_ukV.js.map → Avatar-CuFvRBu5.js.map} +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/{Badge-Lt1iCyYK.js → Badge-DsZf3iVG.js} +2 -2
- package/dist/{Badge-Lt1iCyYK.js.map → Badge-DsZf3iVG.js.map} +1 -1
- package/dist/Badge.js +1 -1
- package/dist/{Breadcrumbs-DicsW4mk.js → Breadcrumbs-B7Rs-8sE.js} +5 -5
- package/dist/{Breadcrumbs-DicsW4mk.js.map → Breadcrumbs-B7Rs-8sE.js.map} +1 -1
- package/dist/Breadcrumbs.js +1 -1
- package/dist/{Button-DV7wnDJa.js → Button-BTnyx-np.js} +2 -2
- package/dist/{Button-DV7wnDJa.js.map → Button-BTnyx-np.js.map} +1 -1
- package/dist/{Button-CEDmdZ-2-C1Jzuxyp.js → Button-CEDmdZ-2-DJVJnigb.js} +3 -3
- package/dist/{Button-CEDmdZ-2-C1Jzuxyp.js.map → Button-CEDmdZ-2-DJVJnigb.js.map} +1 -1
- package/dist/Button.js +1 -1
- package/dist/{ButtonCompound-BeUo4_Zv-YQ1rEOTh.js → ButtonCompound-BeUo4_Zv-psxZY03N.js} +2 -2
- package/dist/{ButtonCompound-BeUo4_Zv-YQ1rEOTh.js.map → ButtonCompound-BeUo4_Zv-psxZY03N.js.map} +1 -1
- package/dist/{ButtonCompound-JU7ZKO4r.js → ButtonCompound-BfrxUIu5.js} +2 -2
- package/dist/{ButtonCompound-JU7ZKO4r.js.map → ButtonCompound-BfrxUIu5.js.map} +1 -1
- package/dist/ButtonCompound.js +1 -1
- package/dist/{ButtonToggle-ZJ-yIkfu-Cz3W6KBt.js → ButtonLink-DBWcE6OF-BtCzzomr.js} +5 -54
- package/dist/ButtonLink-DBWcE6OF-BtCzzomr.js.map +1 -0
- package/dist/{ButtonLink-Dq33YCWF.js → ButtonLink-DFMrEFSO.js} +2 -2
- package/dist/{ButtonLink-Dq33YCWF.js.map → ButtonLink-DFMrEFSO.js.map} +1 -1
- package/dist/ButtonLink.js +1 -1
- package/dist/ButtonToggle-DZTrcapf-CMEhOep1.js +57 -0
- package/dist/ButtonToggle-DZTrcapf-CMEhOep1.js.map +1 -0
- package/dist/{ButtonToggle-CKP_71-9.js → ButtonToggle-kryR_Zc2.js} +2 -2
- package/dist/{ButtonToggle-CKP_71-9.js.map → ButtonToggle-kryR_Zc2.js.map} +1 -1
- package/dist/ButtonToggle.js +1 -1
- package/dist/{Calendar-DsqgewXT.js → Calendar-BzyPkdAu.js} +2 -2
- package/dist/{Calendar-DsqgewXT.js.map → Calendar-BzyPkdAu.js.map} +1 -1
- package/dist/{Calendar-Zfsv8y4j-yvdGPBHm.js → Calendar-Zfsv8y4j-Vja4BE7W.js} +3 -3
- package/dist/{Calendar-Zfsv8y4j-yvdGPBHm.js.map → Calendar-Zfsv8y4j-Vja4BE7W.js.map} +1 -1
- package/dist/Calendar.js +1 -1
- package/dist/{Card-D-ntWPsN.js → Card-DUNBw8AX.js} +2 -2
- package/dist/{Card-D-ntWPsN.js.map → Card-DUNBw8AX.js.map} +1 -1
- package/dist/{Card-DukbBYaA-JN-eYW_v.js → Card-DukbBYaA-C2a2vYKk.js} +2 -2
- package/dist/{Card-DukbBYaA-JN-eYW_v.js.map → Card-DukbBYaA-C2a2vYKk.js.map} +1 -1
- package/dist/Card.js +1 -1
- package/dist/{Checkbox-B1OkhWY6-DAwwh6to.js → Checkbox-B1OkhWY6-BXBzUXK4.js} +4 -4
- package/dist/{Checkbox-B1OkhWY6-DAwwh6to.js.map → Checkbox-B1OkhWY6-BXBzUXK4.js.map} +1 -1
- package/dist/{Checkbox-K1ZrRTEZ.js → Checkbox-DdIDGlbE.js} +2 -2
- package/dist/{Checkbox-K1ZrRTEZ.js.map → Checkbox-DdIDGlbE.js.map} +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/{Chip-BQOzhPQv-DdLdgSqD.js → Chip-BQOzhPQv-C01SLYdN.js} +4 -4
- package/dist/{Chip-BQOzhPQv-DdLdgSqD.js.map → Chip-BQOzhPQv-C01SLYdN.js.map} +1 -1
- package/dist/{Chip-DmGfVz7J.js → Chip-jA27WjrF.js} +2 -2
- package/dist/{Chip-DmGfVz7J.js.map → Chip-jA27WjrF.js.map} +1 -1
- package/dist/Chip.js +1 -1
- package/dist/{Combobox-MSspqNaT.js → Combobox-wrmxS_0C.js} +13 -13
- package/dist/{Combobox-MSspqNaT.js.map → Combobox-wrmxS_0C.js.map} +1 -1
- package/dist/Combobox.js +1 -1
- package/dist/{DateField-Bf9tjsGJ.js → DateField-Bef-bUUm.js} +7 -7
- package/dist/{DateField-Bf9tjsGJ.js.map → DateField-Bef-bUUm.js.map} +1 -1
- package/dist/DateField.js +1 -1
- package/dist/DaysOfTheWeek-DmdZW53u.js +130 -0
- package/dist/DaysOfTheWeek-DmdZW53u.js.map +1 -0
- package/dist/DaysOfTheWeek.css +30 -0
- package/dist/DaysOfTheWeek.d.ts +6 -0
- package/dist/DaysOfTheWeek.js +2 -0
- package/dist/DaysOfTheWeek.js.map +1 -0
- package/dist/{Details-CtCidzce.js → Details-Cb6t_xKu.js} +3 -3
- package/dist/{Details-CtCidzce.js.map → Details-Cb6t_xKu.js.map} +1 -1
- package/dist/Details.js +1 -1
- package/dist/{Dialog-BYrRlH_r.js → Dialog-DJUMOPjL.js} +2 -2
- package/dist/{Dialog-BYrRlH_r.js.map → Dialog-DJUMOPjL.js.map} +1 -1
- package/dist/Dialog.js +1 -1
- package/dist/{Divider-By5PjW0_.js → Divider-AD1Jb85d.js} +2 -2
- package/dist/{Divider-By5PjW0_.js.map → Divider-AD1Jb85d.js.map} +1 -1
- package/dist/Divider.js +1 -1
- package/dist/{DndSort-DXEShZiw.js → DndSort-8xmZRn1w.js} +5 -5
- package/dist/{DndSort-DXEShZiw.js.map → DndSort-8xmZRn1w.js.map} +1 -1
- package/dist/DndSort.js +1 -1
- package/dist/{Drawer-CypjgGrd.js → Drawer-BEIt_Ylz.js} +2 -2
- package/dist/{Drawer-CypjgGrd.js.map → Drawer-BEIt_Ylz.js.map} +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/{EditCard-BdJkYMfy.js → EditCard-WV9NqvY2.js} +6 -6
- package/dist/{EditCard-BdJkYMfy.js.map → EditCard-WV9NqvY2.js.map} +1 -1
- package/dist/EditCard.js +1 -1
- package/dist/{Flex-CbkDTKfn.js → Flex-CqNlL2mR.js} +2 -2
- package/dist/{Flex-CbkDTKfn.js.map → Flex-CqNlL2mR.js.map} +1 -1
- package/dist/{Flex-DlNiHX1G-DiUzqGqj.js → Flex-DlNiHX1G-CBMDzqYU.js} +2 -2
- package/dist/{Flex-DlNiHX1G-DiUzqGqj.js.map → Flex-DlNiHX1G-CBMDzqYU.js.map} +1 -1
- package/dist/Flex.js +1 -1
- package/dist/{Grid-LhlvpLTc.js → Grid-Ck2zeDY5.js} +2 -2
- package/dist/{Grid-LhlvpLTc.js.map → Grid-Ck2zeDY5.js.map} +1 -1
- package/dist/Grid.js +1 -1
- package/dist/{HammerProvider-C9QySDSZ-CLRb96CM.js → HammerProvider-C9QySDSZ-3uQ0NgD4.js} +4 -4
- package/dist/{HammerProvider-C9QySDSZ-CLRb96CM.js.map → HammerProvider-C9QySDSZ-3uQ0NgD4.js.map} +1 -1
- package/dist/{Helper-DBmwQvEP-Z2T8bXHx.js → Helper-DBmwQvEP-BB75un4q.js} +2 -2
- package/dist/{Helper-DBmwQvEP-Z2T8bXHx.js.map → Helper-DBmwQvEP-BB75un4q.js.map} +1 -1
- package/dist/{Icon-U0zxixxg.js → Icon-DS8qT4VL.js} +2 -2
- package/dist/{Icon-U0zxixxg.js.map → Icon-DS8qT4VL.js.map} +1 -1
- package/dist/{Icon-DuwR7O2z-DwPHQiBF.js → Icon-DuwR7O2z-C_rTZRSc.js} +2 -2
- package/dist/{Icon-DuwR7O2z-DwPHQiBF.js.map → Icon-DuwR7O2z-C_rTZRSc.js.map} +1 -1
- package/dist/Icon.js +1 -1
- package/dist/{InputMask-CL0U0MCd-CXS2fHOP.js → InputMask-BSchnaNh-BiWbAA0e.js} +2 -2
- package/dist/{InputMask-CL0U0MCd-CXS2fHOP.js.map → InputMask-BSchnaNh-BiWbAA0e.js.map} +1 -1
- package/dist/{InputMask-Caq_n9-G.js → InputMask-CQUSkhJk.js} +2 -2
- package/dist/{InputMask-Caq_n9-G.js.map → InputMask-CQUSkhJk.js.map} +1 -1
- package/dist/InputMask.js +1 -1
- package/dist/{Link-DIyZHRIV-DXK6prKs.js → Link-DIyZHRIV-DPk42hgW.js} +3 -3
- package/dist/{Link-DIyZHRIV-DXK6prKs.js.map → Link-DIyZHRIV-DPk42hgW.js.map} +1 -1
- package/dist/{Link-DDBu_8WX.js → Link-DTjA-qJZ.js} +2 -2
- package/dist/{Link-DDBu_8WX.js.map → Link-DTjA-qJZ.js.map} +1 -1
- package/dist/Link.js +1 -1
- package/dist/{ListView-BU0TCQ4k.js → ListView-BQ98sGH5.js} +3 -3
- package/dist/{ListView-BU0TCQ4k.js.map → ListView-BQ98sGH5.js.map} +1 -1
- package/dist/ListView.js +1 -1
- package/dist/{Listbox-CthJSHQ3-Zsuei4zJ.js → Listbox-CthJSHQ3-BnNf4vnZ.js} +5 -5
- package/dist/{Listbox-CthJSHQ3-Zsuei4zJ.js.map → Listbox-CthJSHQ3-BnNf4vnZ.js.map} +1 -1
- package/dist/{Listbox-BQP8FRTF.js → Listbox-Oz_LxoiF.js} +2 -2
- package/dist/{Listbox-BQP8FRTF.js.map → Listbox-Oz_LxoiF.js.map} +1 -1
- package/dist/Listbox.js +1 -1
- package/dist/{LocalizationProvider-BrxC1a2D-B1iQENoJ.js → LocalizationProvider-BrxC1a2D-BuTo3KlY.js} +2 -2
- package/dist/{LocalizationProvider-BrxC1a2D-B1iQENoJ.js.map → LocalizationProvider-BrxC1a2D-BuTo3KlY.js.map} +1 -1
- package/dist/LocalizationProvider.js +1 -1
- package/dist/{Menu-1-Jh9B1f.js → Menu-COy3N3q2.js} +5 -5
- package/dist/{Menu-1-Jh9B1f.js.map → Menu-COy3N3q2.js.map} +1 -1
- package/dist/Menu.js +1 -1
- package/dist/{Overflow-DXWJ1gWT-tN8GInwt.js → Overflow-DXWJ1gWT-6WRtRAc3.js} +3 -3
- package/dist/{Overflow-DXWJ1gWT-tN8GInwt.js.map → Overflow-DXWJ1gWT-6WRtRAc3.js.map} +1 -1
- package/dist/{Overflow-CKVmrb1N.js → Overflow-STQ_RpAD.js} +2 -2
- package/dist/{Overflow-CKVmrb1N.js.map → Overflow-STQ_RpAD.js.map} +1 -1
- package/dist/Overflow.js +1 -1
- package/dist/{Page-DBoX63TV.js → Page-DsRpGk2z.js} +15 -15
- package/dist/{Page-DBoX63TV.js.map → Page-DsRpGk2z.js.map} +1 -1
- package/dist/Page.js +1 -1
- package/dist/{Popover-BS2Y_Ssd.js → Popover-Dy82-soT.js} +2 -2
- package/dist/{Popover-BS2Y_Ssd.js.map → Popover-Dy82-soT.js.map} +1 -1
- package/dist/{Popover-Dt36qIDA-CiwX2ixk.js → Popover-xQT2l-O--3ITnWB47.js} +5 -5
- package/dist/{Popover-Dt36qIDA-CiwX2ixk.js.map → Popover-xQT2l-O--3ITnWB47.js.map} +1 -1
- package/dist/Popover.js +1 -1
- package/dist/{ProgressBar-CHjQZZQr-DXeFOggL.js → ProgressBar-CXUHzFT7-Chfc-aG4.js} +28 -20
- package/dist/ProgressBar-CXUHzFT7-Chfc-aG4.js.map +1 -0
- package/dist/{ProgressBar-YzDNhWli.js → ProgressBar-DiozEP49.js} +2 -2
- package/dist/{ProgressBar-YzDNhWli.js.map → ProgressBar-DiozEP49.js.map} +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/{Radio-DE79qJFW-Dt9tFahU.js → Radio-DE79qJFW-BRf9rOOV.js} +4 -4
- package/dist/{Radio-DE79qJFW-Dt9tFahU.js.map → Radio-DE79qJFW-BRf9rOOV.js.map} +1 -1
- package/dist/{Radio-vM4P73jb.js → Radio-zEofJnTU.js} +2 -2
- package/dist/{Radio-vM4P73jb.js.map → Radio-zEofJnTU.js.map} +1 -1
- package/dist/Radio.js +1 -1
- package/dist/{SearchField-DMx9YWba.js → SearchField-DFYsJWmm.js} +3 -3
- package/dist/{SearchField-DMx9YWba.js.map → SearchField-DFYsJWmm.js.map} +1 -1
- package/dist/SearchField.js +1 -1
- package/dist/{SegmentedControl-D-kdk7BJ.js → SegmentedControl-CcFyiME6.js} +36 -15
- package/dist/SegmentedControl-CcFyiME6.js.map +1 -0
- package/dist/SegmentedControl.js +1 -1
- package/dist/SelectCard.js +1 -1
- package/dist/{SelectCardGroup-u0bbiRwe.js → SelectCardGroup-B_CVDaUI.js} +4 -4
- package/dist/{SelectCardGroup-u0bbiRwe.js.map → SelectCardGroup-B_CVDaUI.js.map} +1 -1
- package/dist/{SideNav-BIV-c-1o.js → SideNav-DRlSz_Rw.js} +3 -3
- package/dist/{SideNav-BIV-c-1o.js.map → SideNav-DRlSz_Rw.js.map} +1 -1
- package/dist/SideNav.js +1 -1
- package/dist/{Skeleton-CO1kBH8A.js → Skeleton-CS6m62xI.js} +2 -2
- package/dist/{Skeleton-CO1kBH8A.js.map → Skeleton-CS6m62xI.js.map} +1 -1
- package/dist/Skeleton.js +1 -1
- package/dist/{Stepper-XUHeEfkj.js → Stepper-CeH1RiN9.js} +6 -6
- package/dist/{Stepper-XUHeEfkj.js.map → Stepper-CeH1RiN9.js.map} +1 -1
- package/dist/Stepper.js +1 -1
- package/dist/{Switch-CksM88Ks.js → Switch-DhiVhUgr.js} +3 -3
- package/dist/{Switch-CksM88Ks.js.map → Switch-DhiVhUgr.js.map} +1 -1
- package/dist/Switch.js +1 -1
- package/dist/{Tab-qn_tnvF4.js → Tab-1vRtlOFk.js} +4 -4
- package/dist/{Tab-qn_tnvF4.js.map → Tab-1vRtlOFk.js.map} +1 -1
- package/dist/Tab.js +1 -1
- package/dist/{Text-CF2KcnWA.js → Text-66f6OgUp.js} +2 -2
- package/dist/{Text-CF2KcnWA.js.map → Text-66f6OgUp.js.map} +1 -1
- package/dist/{Text-BCRKWTMM-BvIdEgVR.js → Text-BCRKWTMM-B3ftA79H.js} +2 -2
- package/dist/{Text-BCRKWTMM-BvIdEgVR.js.map → Text-BCRKWTMM-B3ftA79H.js.map} +1 -1
- package/dist/Text.js +1 -1
- package/dist/{TextField-DvJN7F8R-DGKdcYUs.js → TextField-Ca8YUPjX-BS4ojPnU.js} +4 -4
- package/dist/{TextField-DvJN7F8R-DGKdcYUs.js.map → TextField-Ca8YUPjX-BS4ojPnU.js.map} +1 -1
- package/dist/{TextField-C9RjnvLk.js → TextField-LtQFLlk6.js} +2 -2
- package/dist/{TextField-C9RjnvLk.js.map → TextField-LtQFLlk6.js.map} +1 -1
- package/dist/TextField.js +1 -1
- package/dist/{Textarea-CHFEafz4.js → Textarea-DgspneHG.js} +4 -4
- package/dist/{Textarea-CHFEafz4.js.map → Textarea-DgspneHG.js.map} +1 -1
- package/dist/Textarea.js +1 -1
- package/dist/{ThemeProvider-DzTAYEYO.js → ThemeProvider-CPGnKr9R.js} +2 -2
- package/dist/{ThemeProvider-DzTAYEYO.js.map → ThemeProvider-CPGnKr9R.js.map} +1 -1
- package/dist/{ThemeProvider-DrK12Ru--D1_n9ujr.js → ThemeProvider-DrK12Ru--CcKMzgE3.js} +2 -2
- package/dist/{ThemeProvider-DrK12Ru--D1_n9ujr.js.map → ThemeProvider-DrK12Ru--CcKMzgE3.js.map} +1 -1
- package/dist/ThemeProvider.js +1 -1
- package/dist/Toast.js +1 -1
- package/dist/{Toolbar-PoKbjDZq.js → Toolbar-5E1u00Tg.js} +51 -14
- package/dist/Toolbar-5E1u00Tg.js.map +1 -0
- package/dist/Toolbar.js +1 -1
- package/dist/{Tooltip-DlmBcWmc.js → Tooltip-D38RQJQI.js} +2 -2
- package/dist/{Tooltip-DlmBcWmc.js.map → Tooltip-D38RQJQI.js.map} +1 -1
- package/dist/Tooltip.js +1 -1
- package/dist/components/DaysOfTheWeek/DaysOfTheWeek.d.ts +7 -0
- package/dist/components/DaysOfTheWeek/index.d.ts +2 -0
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +1 -7
- package/dist/components/index.d.ts +1 -0
- package/dist/index.js +54 -53
- package/dist/index.js.map +1 -1
- package/dist/{primitive-BoyEHaOo.js → primitive-DEjVLxOV.js} +2 -2
- package/dist/{primitive-BoyEHaOo.js.map → primitive-DEjVLxOV.js.map} +1 -1
- package/dist/{toast-BJYCGpHM.js → toast-DULP2LM1.js} +2 -2
- package/dist/{toast-BJYCGpHM.js.map → toast-DULP2LM1.js.map} +1 -1
- package/dist/token.js +1 -1
- package/dist/{useBreakpoint-7QkBkSeP-Cv5fnZxs.js → useBreakpoint-7QkBkSeP-CfR8YWax.js} +2 -2
- package/dist/{useBreakpoint-7QkBkSeP-Cv5fnZxs.js.map → useBreakpoint-7QkBkSeP-CfR8YWax.js.map} +1 -1
- package/dist/useBreakpoint.js +1 -1
- package/dist/{useLayoutPropsUtil-3B2XYWSr-ChuzrydG.js → useLayoutPropsUtil-3B2XYWSr-5ZanZ8Ew.js} +3 -3
- package/dist/{useLayoutPropsUtil-3B2XYWSr-ChuzrydG.js.map → useLayoutPropsUtil-3B2XYWSr-5ZanZ8Ew.js.map} +1 -1
- package/dist/useLinkStyles.js +1 -1
- package/package.json +3 -3
- package/dist/ButtonToggle-ZJ-yIkfu-Cz3W6KBt.js.map +0 -1
- package/dist/ProgressBar-CHjQZZQr-DXeFOggL.js.map +0 -1
- package/dist/SegmentedControl-D-kdk7BJ.js.map +0 -1
- package/dist/Toolbar-PoKbjDZq.js.map +0 -1
- /package/dist/{Popover-Dt36qIDA.css → Popover-xQT2l-O-.css} +0 -0
- /package/dist/{ProgressBar-CHjQZZQr.css → ProgressBar-CXUHzFT7.css} +0 -0
|
@@ -2,7 +2,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
3
|
import { useTrackingId } from './useTrackingId.js';
|
|
4
4
|
import { c as childrenToString } from './childrenToString-Bz9MqbHb-Bz9MqbHb.js';
|
|
5
|
-
import { T as TooltipTrigger$1, j as TooltipContent$1, k as Tooltip$1 } from './ProgressBar-
|
|
5
|
+
import { T as TooltipTrigger$1, j as TooltipContent$1, k as Tooltip$1 } from './ProgressBar-CXUHzFT7-Chfc-aG4.js';
|
|
6
6
|
|
|
7
7
|
const TooltipElement = (props) => {
|
|
8
8
|
return /* @__PURE__ */ jsx(Tooltip$1, { ...props });
|
|
@@ -31,4 +31,4 @@ const Tooltip = Object.assign(TooltipElement, {
|
|
|
31
31
|
});
|
|
32
32
|
|
|
33
33
|
export { Tooltip as T, TooltipTrigger as a, TooltipContent as b };
|
|
34
|
-
//# sourceMappingURL=Tooltip-
|
|
34
|
+
//# sourceMappingURL=Tooltip-D38RQJQI.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tooltip-
|
|
1
|
+
{"version":3,"file":"Tooltip-D38RQJQI.js","sources":["../src/components/Tooltip/Tooltip.tsx"],"sourcesContent":["import {\n TooltipProps as CoreTooltipProps,\n Tooltip as CoreTooltip,\n TooltipTrigger as CoreTooltipTrigger,\n TooltipTriggerProps as CoreTooltipTriggerProps,\n TooltipContent as CoreTooltipContent,\n TooltipContentProps as CoreTooltipContentProps,\n childrenToString,\n} from \"@servicetitan/hammer-react\";\nimport { Ref, forwardRef } from \"react\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\n\nexport type TooltipProps = CoreTooltipProps;\nexport type TooltipTriggerProps = CoreTooltipTriggerProps & DataTrackingId;\nexport type TooltipContentProps = CoreTooltipContentProps;\n\nconst TooltipElement = (props: TooltipProps) => {\n return <CoreTooltip {...props} />;\n};\n\nexport const TooltipTrigger = forwardRef(\n (props: TooltipTriggerProps, ref: Ref<HTMLDivElement>) => {\n const data = {\n children: childrenToString(props.children),\n };\n\n const trackingId = useTrackingId({\n name: \"TooltipTrigger\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n\n return (\n <CoreTooltipTrigger ref={ref} data-tracking-id={trackingId} {...props} />\n );\n },\n);\n\nexport const TooltipContent = forwardRef(\n (props: TooltipContentProps, ref: Ref<HTMLDivElement>) => {\n return <CoreTooltipContent ref={ref} {...props} />;\n },\n);\n\n// export const useTooltipContext = useCoreTooltipContext;\n\nexport const Tooltip = Object.assign(TooltipElement, {\n Trigger: TooltipTrigger,\n Content: TooltipContent,\n});\n"],"names":["CoreTooltip","CoreTooltipTrigger","CoreTooltipContent"],"mappings":";;;;;;AAiBA,MAAM,cAAA,GAAiB,CAAC,KAAwB,KAAA;AAC9C,EAAO,uBAAA,GAAA,CAACA,SAAa,EAAA,EAAA,GAAG,KAAO,EAAA,CAAA;AACjC,CAAA;AAEO,MAAM,cAAiB,GAAA,UAAA;AAAA,EAC5B,CAAC,OAA4B,GAA6B,KAAA;AACxD,IAAA,MAAM,IAAO,GAAA;AAAA,MACX,QAAA,EAAU,gBAAiB,CAAA,KAAA,CAAM,QAAQ;AAAA,KAC3C;AAEA,IAAA,MAAM,aAAa,aAAc,CAAA;AAAA,MAC/B,IAAM,EAAA,gBAAA;AAAA,MACN,IAAA;AAAA,MACA,WAAa,EAAA,CAAC,CAAC,KAAA,CAAM,kBAAkB;AAAA,KACxC,CAAA;AAED,IAAA,2BACGC,gBAAmB,EAAA,EAAA,GAAA,EAAU,kBAAkB,EAAA,UAAA,EAAa,GAAG,KAAO,EAAA,CAAA;AAAA;AAG7E;AAEO,MAAM,cAAiB,GAAA,UAAA;AAAA,EAC5B,CAAC,OAA4B,GAA6B,KAAA;AACxD,IAAA,uBAAQ,GAAA,CAAAC,gBAAA,EAAA,EAAmB,GAAW,EAAA,GAAG,KAAO,EAAA,CAAA;AAAA;AAEpD;AAIa,MAAA,OAAA,GAAU,MAAO,CAAA,MAAA,CAAO,cAAgB,EAAA;AAAA,EACnD,OAAS,EAAA,cAAA;AAAA,EACT,OAAS,EAAA;AACX,CAAC;;;;"}
|
package/dist/Tooltip.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { T as Tooltip, b as TooltipContent, a as TooltipTrigger, T as default } from './Tooltip-
|
|
1
|
+
export { T as Tooltip, b as TooltipContent, a as TooltipTrigger, T as default } from './Tooltip-D38RQJQI.js';
|
|
2
2
|
//# sourceMappingURL=Tooltip.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { DaysOfTheWeekProps as CoreDaysOfTheWeekProps } from '@servicetitan/hammer-react';
|
|
2
|
+
export type DaysOfTheWeekProps = CoreDaysOfTheWeekProps & {
|
|
3
|
+
["data-tracking-id"]?: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const DaysOfTheWeek: import('react').ForwardRefExoticComponent<CoreDaysOfTheWeekProps & {
|
|
6
|
+
"data-tracking-id"?: string;
|
|
7
|
+
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -6,13 +6,7 @@ export declare const SegmentedControlSegment: import('react').ForwardRefExoticCo
|
|
|
6
6
|
icon?: import('@servicetitan/hammer-react').IconProps["svg"];
|
|
7
7
|
value: string;
|
|
8
8
|
} & DataTrackingId & import('react').RefAttributes<HTMLLabelElement>>;
|
|
9
|
-
export declare const SegmentedControl: import('react').ForwardRefExoticComponent<
|
|
10
|
-
onChange?: (value: CoreSegmentedControlSegmentProps["value"]) => void;
|
|
11
|
-
defaultSelected: CoreSegmentedControlSegmentProps["value"];
|
|
12
|
-
size?: Extract<import('@servicetitan/hammer-react').Size, "small" | "medium">;
|
|
13
|
-
fill?: boolean;
|
|
14
|
-
name?: string;
|
|
15
|
-
} & DataTrackingId & import('react').RefAttributes<HTMLDivElement>> & {
|
|
9
|
+
export declare const SegmentedControl: import('react').ForwardRefExoticComponent<SegmentedControlProps & import('react').RefAttributes<HTMLDivElement>> & {
|
|
16
10
|
Segment: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & {
|
|
17
11
|
icon?: import('@servicetitan/hammer-react').IconProps["svg"];
|
|
18
12
|
value: string;
|
package/dist/index.js
CHANGED
|
@@ -1,66 +1,67 @@
|
|
|
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
|
|
17
|
-
export { D as
|
|
18
|
-
export { D as
|
|
19
|
-
export { D as
|
|
20
|
-
export { D as
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export { I as
|
|
1
|
+
export { A as Alert } from './Alert-S-riTJp2.js';
|
|
2
|
+
export { A as Announcement } from './Announcement-BUNvjkVo.js';
|
|
3
|
+
export { A as Avatar, a as AvatarGroup } from './Avatar-CuFvRBu5.js';
|
|
4
|
+
export { B as Badge } from './Badge-DsZf3iVG.js';
|
|
5
|
+
export { B as Breadcrumbs, a as BreadcrumbsElement, b as BreadcrumbsLink } from './Breadcrumbs-B7Rs-8sE.js';
|
|
6
|
+
export { B as Button } from './Button-BTnyx-np.js';
|
|
7
|
+
export { B as ButtonCompound } from './ButtonCompound-BfrxUIu5.js';
|
|
8
|
+
export { B as ButtonLink } from './ButtonLink-DFMrEFSO.js';
|
|
9
|
+
export { B as ButtonToggle } from './ButtonToggle-kryR_Zc2.js';
|
|
10
|
+
export { C as Calendar, b as CalendarMonth, c as CalendarNext, a as CalendarNow, d as CalendarPrev } from './Calendar-BzyPkdAu.js';
|
|
11
|
+
export { C as Card } from './Card-DUNBw8AX.js';
|
|
12
|
+
export { C as Checkbox, a as CheckboxGroup } from './Checkbox-DdIDGlbE.js';
|
|
13
|
+
export { C as Chip } from './Chip-jA27WjrF.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-wrmxS_0C.js';
|
|
15
|
+
export { D as DateField } from './DateField-Bef-bUUm.js';
|
|
16
|
+
export { D as DaysOfTheWeek } from './DaysOfTheWeek-DmdZW53u.js';
|
|
17
|
+
export { D as Details, b as DetailsContent, a as DetailsSummary } from './Details-Cb6t_xKu.js';
|
|
18
|
+
export { D as Dialog, d as DialogCancelButton, c as DialogContent, b as DialogFooter, a as DialogHeader } from './Dialog-DJUMOPjL.js';
|
|
19
|
+
export { D as Divider } from './Divider-AD1Jb85d.js';
|
|
20
|
+
export { D as DndSort, a as DndSortCard, b as DndSortZone } from './DndSort-8xmZRn1w.js';
|
|
21
|
+
export { D as Drawer, a as DrawerCancelButton, d as DrawerContent, b as DrawerFooter, c as DrawerHeader } from './Drawer-BEIt_Ylz.js';
|
|
22
|
+
export { E as EditCard } from './EditCard-WV9NqvY2.js';
|
|
23
|
+
export { F as Flex } from './Flex-CqNlL2mR.js';
|
|
24
|
+
export { G as Grid } from './Grid-Ck2zeDY5.js';
|
|
25
|
+
export { I as Icon } from './Icon-DS8qT4VL.js';
|
|
26
|
+
export { I as InputMask } from './InputMask-CQUSkhJk.js';
|
|
26
27
|
export { L as Layout, a as LayoutElement, b as LayoutItem } from './Layout-CUUb2PVr.js';
|
|
27
|
-
export { L as Link } from './Link-
|
|
28
|
-
export { L as Listbox, a as ListboxOption, b as ListboxOptionGroup } from './Listbox-
|
|
29
|
-
export { L as ListView, a as ListViewOption, b as ListViewOptionCell } from './ListView-
|
|
30
|
-
export { M as Menu, a as MenuItem } from './Menu-
|
|
31
|
-
export { O as Overflow, a as OverflowText } from './Overflow-
|
|
32
|
-
export { P as Page, e as PageContent, d as PageHeader, c as PagePanel, a as PageSidebar, b as PageSidebarHeader } from './Page-
|
|
33
|
-
export { P as Popover, d as PopoverButton, c as PopoverClose, b as PopoverContent, a as PopoverTrigger } from './Popover-
|
|
34
|
-
export { P as ProgressBar } from './ProgressBar-
|
|
35
|
-
export { R as Radio, a as RadioGroup } from './Radio-
|
|
36
|
-
export { S as SearchField } from './SearchField-
|
|
37
|
-
export { S as SegmentedControl, a as SegmentedControlSegment } from './SegmentedControl-
|
|
38
|
-
export { S as SelectCard, b as SelectCardElement, a as SelectCardGroup } from './SelectCardGroup-
|
|
39
|
-
export { S as SideNav, a as SideNavCollapsible, b as SideNavGroup, c as SideNavLink } from './SideNav-
|
|
40
|
-
export { S as Skeleton, a as SkeletonCircle, b as SkeletonPill, c as SkeletonRectangle, d as SkeletonText } from './Skeleton-
|
|
28
|
+
export { L as Link } from './Link-DTjA-qJZ.js';
|
|
29
|
+
export { L as Listbox, a as ListboxOption, b as ListboxOptionGroup } from './Listbox-Oz_LxoiF.js';
|
|
30
|
+
export { L as ListView, a as ListViewOption, b as ListViewOptionCell } from './ListView-BQ98sGH5.js';
|
|
31
|
+
export { M as Menu, a as MenuItem } from './Menu-COy3N3q2.js';
|
|
32
|
+
export { O as Overflow, a as OverflowText } from './Overflow-STQ_RpAD.js';
|
|
33
|
+
export { P as Page, e as PageContent, d as PageHeader, c as PagePanel, a as PageSidebar, b as PageSidebarHeader } from './Page-DsRpGk2z.js';
|
|
34
|
+
export { P as Popover, d as PopoverButton, c as PopoverClose, b as PopoverContent, a as PopoverTrigger } from './Popover-Dy82-soT.js';
|
|
35
|
+
export { P as ProgressBar } from './ProgressBar-DiozEP49.js';
|
|
36
|
+
export { R as Radio, a as RadioGroup } from './Radio-zEofJnTU.js';
|
|
37
|
+
export { S as SearchField } from './SearchField-DFYsJWmm.js';
|
|
38
|
+
export { S as SegmentedControl, a as SegmentedControlSegment } from './SegmentedControl-CcFyiME6.js';
|
|
39
|
+
export { S as SelectCard, b as SelectCardElement, a as SelectCardGroup } from './SelectCardGroup-B_CVDaUI.js';
|
|
40
|
+
export { S as SideNav, a as SideNavCollapsible, b as SideNavGroup, c as SideNavLink } from './SideNav-DRlSz_Rw.js';
|
|
41
|
+
export { S as Skeleton, a as SkeletonCircle, b as SkeletonPill, c as SkeletonRectangle, d as SkeletonText } from './Skeleton-CS6m62xI.js';
|
|
41
42
|
export { S as Spinner } from './Spinner-DUXjTDlr.js';
|
|
42
43
|
export { S as SrOnly } from './SrOnly-DcDlKd4y.js';
|
|
43
|
-
export { S as Stepper, d as StepperFinalPanel, a as StepperList, e as StepperNextButton, c as StepperPanel, f as StepperPrevButton, b as StepperStep } from './Stepper-
|
|
44
|
-
export { S as Switch } from './Switch-
|
|
45
|
-
export { T as Tab, a as TabButton, b as TabList, c as TabPanel } from './Tab-
|
|
46
|
-
export { T as Text } from './Text-
|
|
47
|
-
export { T as Textarea } from './Textarea-
|
|
48
|
-
export { T as TextField } from './TextField-
|
|
49
|
-
export { T as Toaster, t as toast } from './toast-
|
|
50
|
-
export { T as Toolbar, b as ToolbarButton, d as ToolbarButtonLink, c as ToolbarButtonToggle, a as ToolbarElement, e as ToolbarSelect } from './Toolbar-
|
|
51
|
-
export { T as Tooltip, b as TooltipContent, a as TooltipTrigger } from './Tooltip-
|
|
44
|
+
export { S as Stepper, d as StepperFinalPanel, a as StepperList, e as StepperNextButton, c as StepperPanel, f as StepperPrevButton, b as StepperStep } from './Stepper-CeH1RiN9.js';
|
|
45
|
+
export { S as Switch } from './Switch-DhiVhUgr.js';
|
|
46
|
+
export { T as Tab, a as TabButton, b as TabList, c as TabPanel } from './Tab-1vRtlOFk.js';
|
|
47
|
+
export { T as Text } from './Text-66f6OgUp.js';
|
|
48
|
+
export { T as Textarea } from './Textarea-DgspneHG.js';
|
|
49
|
+
export { T as TextField } from './TextField-LtQFLlk6.js';
|
|
50
|
+
export { T as Toaster, t as toast } from './toast-DULP2LM1.js';
|
|
51
|
+
export { T as Toolbar, b as ToolbarButton, d as ToolbarButtonLink, c as ToolbarButtonToggle, a as ToolbarElement, e as ToolbarSelect } from './Toolbar-5E1u00Tg.js';
|
|
52
|
+
export { T as Tooltip, b as TooltipContent, a as TooltipTrigger } from './Tooltip-D38RQJQI.js';
|
|
52
53
|
export { u as useAccessibleColor } from './useAccessibleColor-Dc6B_M-Z-BYKjkGRg.js';
|
|
53
|
-
export { u as useBreakpoint } from './useBreakpoint-7QkBkSeP-
|
|
54
|
-
export { u as useLinkStyles } from './Link-DIyZHRIV-
|
|
54
|
+
export { u as useBreakpoint } from './useBreakpoint-7QkBkSeP-CfR8YWax.js';
|
|
55
|
+
export { u as useLinkStyles } from './Link-DIyZHRIV-DPk42hgW.js';
|
|
55
56
|
export { u as useMergeRefs } from './useMergeRefs-Bde85AWI-Bde85AWI.js';
|
|
56
57
|
export { u as usePrefersColorScheme } from './usePrefersColorScheme-_hT7dK7_-_hT7dK7_.js';
|
|
57
58
|
export { u as useSwipe } from './useSwipe-DIUHs7T5-DIUHs7T5.js';
|
|
58
59
|
export { useTrackingId } from './useTrackingId.js';
|
|
59
|
-
export { A as AnvilProvider, a as AnvilProviderContext } from './AnvilProvider-
|
|
60
|
-
export { L as LocalizationProvider } from './LocalizationProvider-BrxC1a2D-
|
|
60
|
+
export { A as AnvilProvider, a as AnvilProviderContext } from './AnvilProvider-CuvqXRaZ.js';
|
|
61
|
+
export { L as LocalizationProvider } from './LocalizationProvider-BrxC1a2D-BuTo3KlY.js';
|
|
61
62
|
export { L as LocalizationContext, u as useLocalizationContext } from './LocalizationContext-UsmB5mnR-BUIYgNp2.js';
|
|
62
63
|
export { P as PortalProvider, a as PortalProviderContext } from './PortalProvider-9lXkQ0xY-BKoGegS1.js';
|
|
63
|
-
export { T as ThemeProvider } from './ThemeProvider-
|
|
64
|
+
export { T as ThemeProvider } from './ThemeProvider-CPGnKr9R.js';
|
|
64
65
|
export { T as TrackingProvider } from './TrackingProvider-BtSjkmpM.js';
|
|
65
66
|
export { u as useTrackingContext } from './useTrackingContext-DRwDL8DE.js';
|
|
66
67
|
//# 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -251,5 +251,5 @@ const primitive = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty(
|
|
|
251
251
|
TransitionEaseOut
|
|
252
252
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
253
253
|
|
|
254
|
-
export { BreakpointSm as B,
|
|
255
|
-
//# sourceMappingURL=primitive-
|
|
254
|
+
export { BreakpointSm as B, DurationSlow as D, BreakpointMd as a, BreakpointLg as b, BreakpointXl as c, BreakpointXxl as d, Duration as e, primitive as p };
|
|
255
|
+
//# sourceMappingURL=primitive-DEjVLxOV.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primitive-BoyEHaOo.js","sources":["../../hammer-token/build/web/core/primitive.js"],"sourcesContent":["export const BreakpointSm = { value: \"640px\" };\nexport const BreakpointMd = { value: \"768px\" };\nexport const BreakpointLg = { value: \"1024px\" };\nexport const BreakpointXl = { value: \"1280px\" };\nexport const BreakpointXxl = { value: \"1536px\" };\nexport const ColorBlue100 = { value: \"#e0f2ff\" };\nexport const ColorBlue200 = { value: \"#b5deff\" };\nexport const ColorBlue300 = { value: \"#78bbfa\" };\nexport const ColorBlue400 = { value: \"#3892f3\" };\nexport const ColorBlue500 = { value: \"#0265dc\" };\nexport const ColorBlue600 = { value: \"#004491\" };\nexport const ColorNeutral0 = { value: \"#ffffff\" };\nexport const ColorNeutral10 = { value: \"#fcfcfc\" };\nexport const ColorNeutral20 = { value: \"#fafafa\" };\nexport const ColorNeutral30 = { value: \"#f7f7f7\" };\nexport const ColorNeutral40 = { value: \"#f5f5f5\" };\nexport const ColorNeutral50 = { value: \"#eeeeee\" };\nexport const ColorNeutral60 = { value: \"#dfe0e1\" };\nexport const ColorNeutral70 = { value: \"#bcbcbd\" };\nexport const ColorNeutral80 = { value: \"#949596\" };\nexport const ColorNeutral90 = { value: \"#737475\" };\nexport const ColorNeutral100 = { value: \"#606162\" };\nexport const ColorNeutral200 = { value: \"#444445\" };\nexport const ColorNeutral300 = { value: \"#2d2e31\" };\nexport const ColorNeutral400 = { value: \"#141414\" };\nexport const ColorNeutral500 = { value: \"#040404\" };\nexport const ColorBlueGrey100 = { value: \"#eaeff2\" };\nexport const ColorBlueGrey200 = { value: \"#d0d8dd\" };\nexport const ColorBlueGrey300 = { value: \"#b4c1c8\" };\nexport const ColorBlueGrey400 = { value: \"#8c9ca5\" };\nexport const ColorBlueGrey500 = { value: \"#6a7a85\" };\nexport const ColorBlueGrey600 = { value: \"#576671\" };\nexport const ColorOrange100 = { value: \"#ffeccc\" };\nexport const ColorOrange200 = { value: \"#fdd291\" };\nexport const ColorOrange300 = { value: \"#ffa037\" };\nexport const ColorOrange400 = { value: \"#e46f00\" };\nexport const ColorOrange500 = { value: \"#b14c00\" };\nexport const ColorOrange600 = { value: \"#7a2f00\" };\nexport const ColorYellow100 = { value: \"#fff9e2\" };\nexport const ColorYellow200 = { value: \"#fff0b1\" };\nexport const ColorYellow300 = { value: \"#ffe278\" };\nexport const ColorYellow400 = { value: \"#ffc902\" };\nexport const ColorYellow500 = { value: \"#ffbe00\" };\nexport const ColorYellow600 = { value: \"#de9500\" };\nexport const ColorGreen100 = { value: \"#cef8e0\" };\nexport const ColorGreen200 = { value: \"#89ecbc\" };\nexport const ColorGreen300 = { value: \"#49cc93\" };\nexport const ColorGreen400 = { value: \"#15a46e\" };\nexport const ColorGreen500 = { value: \"#007a4d\" };\nexport const ColorGreen600 = { value: \"#005132\" };\nexport const ColorCyan100 = { value: \"#e3fcff\" };\nexport const ColorCyan200 = { value: \"#b1f3fa\" };\nexport const ColorCyan300 = { value: \"#13ceea\" };\nexport const ColorCyan400 = { value: \"#08bfdf\" };\nexport const ColorCyan500 = { value: \"#0ca5c0\" };\nexport const ColorCyan600 = { value: \"#038299\" };\nexport const ColorPurple100 = { value: \"#f1edff\" };\nexport const ColorPurple200 = { value: \"#c1b6f2\" };\nexport const ColorPurple300 = { value: \"#8772e5\" };\nexport const ColorPurple400 = { value: \"#6954c0\" };\nexport const ColorPurple500 = { value: \"#4f3a9e\" };\nexport const ColorPurple600 = { value: \"#422799\" };\nexport const ColorRed100 = { value: \"#ffece9\" };\nexport const ColorRed200 = { value: \"#ffb2a0\" };\nexport const ColorRed300 = { value: \"#ff745f\" };\nexport const ColorRed400 = { value: \"#f94d32\" };\nexport const ColorRed500 = { value: \"#e13212\" };\nexport const ColorRed600 = { value: \"#bf2a00\" };\nexport const ColorMagenta100 = { value: \"#fbeaf5\" };\nexport const ColorMagenta200 = { value: \"#faafe2\" };\nexport const ColorMagenta300 = { value: \"#d949a9\" };\nexport const ColorMagenta400 = { value: \"#b52d88\" };\nexport const ColorMagenta500 = { value: \"#982071\" };\nexport const ColorMagenta600 = { value: \"#7d165b\" };\nexport const Duration = { value: \"200ms\" };\nexport const DurationInstant = { value: \"0ms\" };\nexport const DurationFast = { value: \"100ms\" };\nexport const DurationSlow = { value: \"300ms\" };\nexport const FontFamilyBase = { value: \"'Nunito Sans', sans-serif\" };\nexport const FontFamilyDisplay = { value: \"'Sofia Pro', SofiaPro, sans-serif\" };\nexport const FontLineHeightBase = { value: \"1.5\" };\nexport const FontLineHeightDisplay = { value: \"1.25\" };\nexport const FontWeightNormal = { value: \"400\" };\nexport const FontWeightSemibold = { value: \"600\" };\nexport const FontWeightBold = { value: \"700\" };\nexport const FontSize100 = { value: \"0.625rem\" };\nexport const FontSize200 = { value: \"0.75rem\" };\nexport const FontSize300 = { value: \"0.875rem\" };\nexport const FontSize400 = { value: \"1rem\" };\nexport const FontSize500 = { value: \"1.25rem\" };\nexport const FontSize600 = { value: \"1.5rem\" };\nexport const FontSize700 = { value: \"1.75rem\" };\nexport const FontSize800 = { value: \"2rem\" };\nexport const FontSize900 = { value: \"2.25rem\" };\nexport const Radius0 = { value: \"0\" };\nexport const Radius1 = { value: \"0.1875rem\" };\nexport const Radius2 = { value: \"0.375rem\" };\nexport const Radius3 = { value: \"0.5625rem\" };\nexport const Radius4 = { value: \"0.75rem\" };\nexport const Radius5 = { value: \"0.9375rem\" };\nexport const Radius6 = { value: \"1.125rem\" };\nexport const Radius7 = { value: \"1.3125rem\" };\nexport const Radius8 = { value: \"1.5rem\" };\nexport const Size0 = { value: \"0rem\" };\nexport const Size1 = { value: \"0.25rem\" };\nexport const Size2 = { value: \"0.5rem\" };\nexport const Size3 = { value: \"0.75rem\" };\nexport const Size4 = { value: \"1rem\" };\nexport const Size5 = { value: \"1.25rem\" };\nexport const Size6 = { value: \"1.5rem\" };\nexport const Size7 = { value: \"1.75rem\" };\nexport const Size8 = { value: \"2rem\" };\nexport const Size9 = { value: \"2.25rem\" };\nexport const Size10 = { value: \"2.5rem\" };\nexport const Size11 = { value: \"2.75rem\" };\nexport const Size12 = { value: \"3rem\" };\nexport const Size13 = { value: \"3.25rem\" };\nexport const Size14 = { value: \"3.5rem\" };\nexport const SizeQuarter = { value: \"0.0625rem\" };\nexport const SizeHalf = { value: \"0.125rem\" };\nexport const TransitionEase = { value: \"cubic-bezier(.4, 0, .2, 1)\" };\nexport const TransitionEaseIn = { value: \"cubic-bezier(.4, 0, 1, 1)\" };\nexport const TransitionEaseOut = { value: \"cubic-bezier(0, 0, .4, 1)\" };\nexport const TransitionEaseInOut = { value: \"cubic-bezier(.4, 0, .6, 1)\" };"],"names":[],"mappings":"AAAY,MAAC,YAAY,GAAG,EAAE,KAAK,EAAE,OAAO;AAChC,MAAC,YAAY,GAAG,EAAE,KAAK,EAAE,OAAO;AAChC,MAAC,YAAY,GAAG,EAAE,KAAK,EAAE,QAAQ;AACjC,MAAC,YAAY,GAAG,EAAE,KAAK,EAAE,QAAQ;AACjC,MAAC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M,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE;AACnC,MAAM,MAAM,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE;AAClC,MAAM,WAAW,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE;AAC1C,MAAM,QAAQ,GAAG,EAAE,KAAK,EAAE,UAAU,EAAE;AACtC,MAAM,cAAc,GAAG,EAAE,KAAK,EAAE,4BAA4B,EAAE;AAC9D,MAAM,gBAAgB,GAAG,EAAE,KAAK,EAAE,2BAA2B,EAAE;AAC/D,MAAM,iBAAiB,GAAG,EAAE,KAAK,EAAE,2BAA2B,EAAE;AAChE,MAAM,mBAAmB,GAAG,EAAE,KAAK,EAAE,4BAA4B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"primitive-DEjVLxOV.js","sources":["../../hammer-token/build/web/core/primitive.js"],"sourcesContent":["export const BreakpointSm = { value: \"640px\" };\nexport const BreakpointMd = { value: \"768px\" };\nexport const BreakpointLg = { value: \"1024px\" };\nexport const BreakpointXl = { value: \"1280px\" };\nexport const BreakpointXxl = { value: \"1536px\" };\nexport const ColorBlue100 = { value: \"#e0f2ff\" };\nexport const ColorBlue200 = { value: \"#b5deff\" };\nexport const ColorBlue300 = { value: \"#78bbfa\" };\nexport const ColorBlue400 = { value: \"#3892f3\" };\nexport const ColorBlue500 = { value: \"#0265dc\" };\nexport const ColorBlue600 = { value: \"#004491\" };\nexport const ColorNeutral0 = { value: \"#ffffff\" };\nexport const ColorNeutral10 = { value: \"#fcfcfc\" };\nexport const ColorNeutral20 = { value: \"#fafafa\" };\nexport const ColorNeutral30 = { value: \"#f7f7f7\" };\nexport const ColorNeutral40 = { value: \"#f5f5f5\" };\nexport const ColorNeutral50 = { value: \"#eeeeee\" };\nexport const ColorNeutral60 = { value: \"#dfe0e1\" };\nexport const ColorNeutral70 = { value: \"#bcbcbd\" };\nexport const ColorNeutral80 = { value: \"#949596\" };\nexport const ColorNeutral90 = { value: \"#737475\" };\nexport const ColorNeutral100 = { value: \"#606162\" };\nexport const ColorNeutral200 = { value: \"#444445\" };\nexport const ColorNeutral300 = { value: \"#2d2e31\" };\nexport const ColorNeutral400 = { value: \"#141414\" };\nexport const ColorNeutral500 = { value: \"#040404\" };\nexport const ColorBlueGrey100 = { value: \"#eaeff2\" };\nexport const ColorBlueGrey200 = { value: \"#d0d8dd\" };\nexport const ColorBlueGrey300 = { value: \"#b4c1c8\" };\nexport const ColorBlueGrey400 = { value: \"#8c9ca5\" };\nexport const ColorBlueGrey500 = { value: \"#6a7a85\" };\nexport const ColorBlueGrey600 = { value: \"#576671\" };\nexport const ColorOrange100 = { value: \"#ffeccc\" };\nexport const ColorOrange200 = { value: \"#fdd291\" };\nexport const ColorOrange300 = { value: \"#ffa037\" };\nexport const ColorOrange400 = { value: \"#e46f00\" };\nexport const ColorOrange500 = { value: \"#b14c00\" };\nexport const ColorOrange600 = { value: \"#7a2f00\" };\nexport const ColorYellow100 = { value: \"#fff9e2\" };\nexport const ColorYellow200 = { value: \"#fff0b1\" };\nexport const ColorYellow300 = { value: \"#ffe278\" };\nexport const ColorYellow400 = { value: \"#ffc902\" };\nexport const ColorYellow500 = { value: \"#ffbe00\" };\nexport const ColorYellow600 = { value: \"#de9500\" };\nexport const ColorGreen100 = { value: \"#cef8e0\" };\nexport const ColorGreen200 = { value: \"#89ecbc\" };\nexport const ColorGreen300 = { value: \"#49cc93\" };\nexport const ColorGreen400 = { value: \"#15a46e\" };\nexport const ColorGreen500 = { value: \"#007a4d\" };\nexport const ColorGreen600 = { value: \"#005132\" };\nexport const ColorCyan100 = { value: \"#e3fcff\" };\nexport const ColorCyan200 = { value: \"#b1f3fa\" };\nexport const ColorCyan300 = { value: \"#13ceea\" };\nexport const ColorCyan400 = { value: \"#08bfdf\" };\nexport const ColorCyan500 = { value: \"#0ca5c0\" };\nexport const ColorCyan600 = { value: \"#038299\" };\nexport const ColorPurple100 = { value: \"#f1edff\" };\nexport const ColorPurple200 = { value: \"#c1b6f2\" };\nexport const ColorPurple300 = { value: \"#8772e5\" };\nexport const ColorPurple400 = { value: \"#6954c0\" };\nexport const ColorPurple500 = { value: \"#4f3a9e\" };\nexport const ColorPurple600 = { value: \"#422799\" };\nexport const ColorRed100 = { value: \"#ffece9\" };\nexport const ColorRed200 = { value: \"#ffb2a0\" };\nexport const ColorRed300 = { value: \"#ff745f\" };\nexport const ColorRed400 = { value: \"#f94d32\" };\nexport const ColorRed500 = { value: \"#e13212\" };\nexport const ColorRed600 = { value: \"#bf2a00\" };\nexport const ColorMagenta100 = { value: \"#fbeaf5\" };\nexport const ColorMagenta200 = { value: \"#faafe2\" };\nexport const ColorMagenta300 = { value: \"#d949a9\" };\nexport const ColorMagenta400 = { value: \"#b52d88\" };\nexport const ColorMagenta500 = { value: \"#982071\" };\nexport const ColorMagenta600 = { value: \"#7d165b\" };\nexport const Duration = { value: \"200ms\" };\nexport const DurationInstant = { value: \"0ms\" };\nexport const DurationFast = { value: \"100ms\" };\nexport const DurationSlow = { value: \"300ms\" };\nexport const FontFamilyBase = { value: \"'Nunito Sans', sans-serif\" };\nexport const FontFamilyDisplay = { value: \"'Sofia Pro', SofiaPro, sans-serif\" };\nexport const FontLineHeightBase = { value: \"1.5\" };\nexport const FontLineHeightDisplay = { value: \"1.25\" };\nexport const FontWeightNormal = { value: \"400\" };\nexport const FontWeightSemibold = { value: \"600\" };\nexport const FontWeightBold = { value: \"700\" };\nexport const FontSize100 = { value: \"0.625rem\" };\nexport const FontSize200 = { value: \"0.75rem\" };\nexport const FontSize300 = { value: \"0.875rem\" };\nexport const FontSize400 = { value: \"1rem\" };\nexport const FontSize500 = { value: \"1.25rem\" };\nexport const FontSize600 = { value: \"1.5rem\" };\nexport const FontSize700 = { value: \"1.75rem\" };\nexport const FontSize800 = { value: \"2rem\" };\nexport const FontSize900 = { value: \"2.25rem\" };\nexport const Radius0 = { value: \"0\" };\nexport const Radius1 = { value: \"0.1875rem\" };\nexport const Radius2 = { value: \"0.375rem\" };\nexport const Radius3 = { value: \"0.5625rem\" };\nexport const Radius4 = { value: \"0.75rem\" };\nexport const Radius5 = { value: \"0.9375rem\" };\nexport const Radius6 = { value: \"1.125rem\" };\nexport const Radius7 = { value: \"1.3125rem\" };\nexport const Radius8 = { value: \"1.5rem\" };\nexport const Size0 = { value: \"0rem\" };\nexport const Size1 = { value: \"0.25rem\" };\nexport const Size2 = { value: \"0.5rem\" };\nexport const Size3 = { value: \"0.75rem\" };\nexport const Size4 = { value: \"1rem\" };\nexport const Size5 = { value: \"1.25rem\" };\nexport const Size6 = { value: \"1.5rem\" };\nexport const Size7 = { value: \"1.75rem\" };\nexport const Size8 = { value: \"2rem\" };\nexport const Size9 = { value: \"2.25rem\" };\nexport const Size10 = { value: \"2.5rem\" };\nexport const Size11 = { value: \"2.75rem\" };\nexport const Size12 = { value: \"3rem\" };\nexport const Size13 = { value: \"3.25rem\" };\nexport const Size14 = { value: \"3.5rem\" };\nexport const SizeQuarter = { value: \"0.0625rem\" };\nexport const SizeHalf = { value: \"0.125rem\" };\nexport const TransitionEase = { value: \"cubic-bezier(.4, 0, .2, 1)\" };\nexport const TransitionEaseIn = { value: \"cubic-bezier(.4, 0, 1, 1)\" };\nexport const TransitionEaseOut = { value: \"cubic-bezier(0, 0, .4, 1)\" };\nexport const TransitionEaseInOut = { value: \"cubic-bezier(.4, 0, .6, 1)\" };"],"names":[],"mappings":"AAAY,MAAC,YAAY,GAAG,EAAE,KAAK,EAAE,OAAO;AAChC,MAAC,YAAY,GAAG,EAAE,KAAK,EAAE,OAAO;AAChC,MAAC,YAAY,GAAG,EAAE,KAAK,EAAE,QAAQ;AACjC,MAAC,YAAY,GAAG,EAAE,KAAK,EAAE,QAAQ;AACjC,MAAC,aAAa,GAAG,EAAE,KAAK,EAAE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S,EAAE;AACnC,MAAM,MAAM,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE;AAClC,MAAM,WAAW,GAAG,EAAE,KAAK,EAAE,WAAW,EAAE;AAC1C,MAAM,QAAQ,GAAG,EAAE,KAAK,EAAE,UAAU,EAAE;AACtC,MAAM,cAAc,GAAG,EAAE,KAAK,EAAE,4BAA4B,EAAE;AAC9D,MAAM,gBAAgB,GAAG,EAAE,KAAK,EAAE,2BAA2B,EAAE;AAC/D,MAAM,iBAAiB,GAAG,EAAE,KAAK,EAAE,2BAA2B,EAAE;AAChE,MAAM,mBAAmB,GAAG,EAAE,KAAK,EAAE,4BAA4B,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { forwardRef, useRef, useState, useEffect } from 'react';
|
|
3
3
|
import { u as useMergeRefs } from './useMergeRefs-Bde85AWI-Bde85AWI.js';
|
|
4
|
-
import { l as Toaster$1, t as toast$1 } from './ProgressBar-
|
|
4
|
+
import { l as Toaster$1, t as toast$1 } from './ProgressBar-CXUHzFT7-Chfc-aG4.js';
|
|
5
5
|
|
|
6
6
|
const SHADOW_HOST_DATA_ATTRS = "[data-mfe-portal-name], [data-mfe-name]";
|
|
7
7
|
const Toaster = forwardRef(
|
|
@@ -93,4 +93,4 @@ Toaster.displayName = "Toaster";
|
|
|
93
93
|
const toast = toast$1;
|
|
94
94
|
|
|
95
95
|
export { Toaster as T, toast as t };
|
|
96
|
-
//# sourceMappingURL=toast-
|
|
96
|
+
//# sourceMappingURL=toast-DULP2LM1.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast-
|
|
1
|
+
{"version":3,"file":"toast-DULP2LM1.js","sources":["../src/components/Toast/Toaster.tsx","../src/components/Toast/toast.ts"],"sourcesContent":["import {\n ToasterProps as HammerToasterProps,\n Toaster as HammerToaster,\n useMergeRefs,\n ToastEventType,\n} from \"@servicetitan/hammer-react\";\nimport { Ref, forwardRef, useEffect, useRef, useState } from \"react\";\n\nconst SHADOW_HOST_DATA_ATTRS = \"[data-mfe-portal-name], [data-mfe-name]\";\n\nexport type ToasterProps = Omit<\n HammerToasterProps,\n \"disableEvents\" | \"duration\"\n> & {\n /**\n * Timeout, in ms, before toasts auto-closes. If set to false, toasts will not auto-close.\n * @deprecated The monolith toaster controls the duration of toasts. This prop should not be used in other cases.\n * @default false\n */\n duration?: number | false;\n};\n\nexport const Toaster = forwardRef(\n (\n { onToastEvent, ...props }: HammerToasterProps,\n ref: Ref<HTMLDivElement>,\n ) => {\n const { id } = props;\n\n const toasterRef = useRef<HTMLDivElement>(null);\n const mergedToasterRef = useMergeRefs([toasterRef, ref]);\n\n const [shouldDisableEvents, setShouldDisableEvents] =\n useState<boolean>(false);\n\n useEffect(() => {\n const toasters = document.querySelectorAll(\"[data-anv='toaster']\");\n const shadowToasters =\n (\n toasterRef.current?.getRootNode() as Document | ShadowRoot\n )?.querySelectorAll(\"[data-anv='toaster']\") || [];\n\n // Toaster(s) exist in the document, bail out if this toaster is not the first one\n if (\n toasters.length &&\n id !== toasters[0].getAttribute(\"data-toaster-id\")\n ) {\n setShouldDisableEvents(true);\n } else if (\n // Toaster(s) exist in the shadow dom, bail out if this toaster is not the first one\n shadowToasters.length &&\n id !== shadowToasters[0].getAttribute(\"data-toaster-id\")\n ) {\n setShouldDisableEvents(true);\n }\n }, [id]);\n\n const a1ToastGroupObserver = useRef<MutationObserver | null>(null);\n const a1ToastGroupObserverConnected = useRef<boolean>(false);\n const [a1ToastGroups, setA1ToastGroups] = useState<Element[]>([]);\n const [toastCount, setToastCount] = useState<number>(0);\n\n const handleToastEvent = (event: ToastEventType) => {\n const { toastCount: newToastCount } = event;\n setToastCount(newToastCount);\n onToastEvent?.(event);\n };\n\n const updateA1ToastGroups = () => {\n const mfeRoots = document.querySelectorAll(SHADOW_HOST_DATA_ATTRS);\n const a1ToastGroupsLocal = [\n ...document.getElementsByClassName(\"ToastGroup\"),\n ];\n\n if (mfeRoots.length > 0) {\n mfeRoots.forEach((el) => {\n setTimeout(() => {\n if (el.shadowRoot) {\n a1ToastGroupsLocal.push(\n ...el.shadowRoot.querySelectorAll(\".ToastGroup\"),\n );\n }\n setA1ToastGroups(a1ToastGroupsLocal);\n });\n });\n } else {\n setA1ToastGroups(a1ToastGroupsLocal);\n }\n };\n\n useEffect(() => {\n // set mutation observer for a1 toasts after initial render\n a1ToastGroupObserver.current = new MutationObserver(updateA1ToastGroups);\n }, []);\n\n /*\n Listen for any new A1 Toast Groups to adjust styles and\n prevent overlapping.\n */\n useEffect(() => {\n if (a1ToastGroupObserver.current !== null) {\n if (toastCount > 0 && a1ToastGroupObserverConnected.current === false) {\n // listen for any new a1 toasts\n a1ToastGroupObserver.current.observe(document.body, {\n childList: true,\n subtree: true,\n });\n a1ToastGroupObserverConnected.current = true;\n\n // account for already existing a1 toasts\n updateA1ToastGroups();\n } else if (\n toastCount === 0 &&\n a1ToastGroupObserverConnected.current === true\n ) {\n a1ToastGroupObserver.current.disconnect();\n a1ToastGroupObserverConnected.current = false;\n }\n }\n }, [toastCount]);\n\n useEffect(() => {\n if (a1ToastGroups && a1ToastGroups.length > 0) {\n const toasterHeight =\n toasterRef.current?.firstElementChild?.getBoundingClientRect()\n .height as number;\n a1ToastGroups.forEach((group) => {\n (group as HTMLDivElement).style.top =\n toastCount === 0 ? \"16px\" : `calc(${toasterHeight}px + 2.5rem)`;\n });\n }\n // eslint-disable-next-line\n }, [a1ToastGroups.length, toastCount]);\n\n return (\n <HammerToaster\n {...props}\n onToastEvent={handleToastEvent}\n disableEvents={shouldDisableEvents}\n ref={mergedToasterRef}\n />\n );\n },\n);\n\nToaster.displayName = \"Toaster\";\n","import {\n toast as coreToast,\n toastProps as coreToastProps,\n} from \"@servicetitan/hammer-react\";\n\nexport type toastProps = coreToastProps;\n\nexport const toast = coreToast;\n"],"names":["HammerToaster","coreToast"],"mappings":";;;;;AAQA,MAAM,sBAAyB,GAAA,yCAAA;AAcxB,MAAM,OAAU,GAAA,UAAA;AAAA,EACrB,CACE,EAAE,YAAA,EAAc,GAAG,KAAA,IACnB,GACG,KAAA;AACH,IAAM,MAAA,EAAE,IAAO,GAAA,KAAA;AAEf,IAAM,MAAA,UAAA,GAAa,OAAuB,IAAI,CAAA;AAC9C,IAAA,MAAM,gBAAmB,GAAA,YAAA,CAAa,CAAC,UAAA,EAAY,GAAG,CAAC,CAAA;AAEvD,IAAA,MAAM,CAAC,mBAAA,EAAqB,sBAAsB,CAAA,GAChD,SAAkB,KAAK,CAAA;AAEzB,IAAA,SAAA,CAAU,MAAM;AACd,MAAM,MAAA,QAAA,GAAW,QAAS,CAAA,gBAAA,CAAiB,sBAAsB,CAAA;AACjE,MAAM,MAAA,cAAA,GAEF,WAAW,OAAS,EAAA,WAAA,IACnB,gBAAiB,CAAA,sBAAsB,KAAK,EAAC;AAGlD,MACE,IAAA,QAAA,CAAS,UACT,EAAO,KAAA,QAAA,CAAS,CAAC,CAAE,CAAA,YAAA,CAAa,iBAAiB,CACjD,EAAA;AACA,QAAA,sBAAA,CAAuB,IAAI,CAAA;AAAA,OAC7B,MAAA;AAAA;AAAA,QAEE,eAAe,MACf,IAAA,EAAA,KAAO,eAAe,CAAC,CAAA,CAAE,aAAa,iBAAiB;AAAA,QACvD;AACA,QAAA,sBAAA,CAAuB,IAAI,CAAA;AAAA;AAC7B,KACF,EAAG,CAAC,EAAE,CAAC,CAAA;AAEP,IAAM,MAAA,oBAAA,GAAuB,OAAgC,IAAI,CAAA;AACjE,IAAM,MAAA,6BAAA,GAAgC,OAAgB,KAAK,CAAA;AAC3D,IAAA,MAAM,CAAC,aAAe,EAAA,gBAAgB,CAAI,GAAA,QAAA,CAAoB,EAAE,CAA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, c as BreakpointXl, d as BreakpointXxl } from './primitive-
|
|
2
|
+
import { B as BreakpointSm, a as BreakpointMd, b as BreakpointLg, c as BreakpointXl, d as BreakpointXxl } from './primitive-DEjVLxOV.js';
|
|
3
3
|
|
|
4
4
|
function breakpoint(name, min, max) {
|
|
5
5
|
if (globalThis.visualViewport == null) {
|
|
@@ -47,4 +47,4 @@ const useBreakpoint = (props) => {
|
|
|
47
47
|
};
|
|
48
48
|
|
|
49
49
|
export { useBreakpoint as u };
|
|
50
|
-
//# sourceMappingURL=useBreakpoint-7QkBkSeP-
|
|
50
|
+
//# sourceMappingURL=useBreakpoint-7QkBkSeP-CfR8YWax.js.map
|
package/dist/{useBreakpoint-7QkBkSeP-Cv5fnZxs.js.map → useBreakpoint-7QkBkSeP-CfR8YWax.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBreakpoint-7QkBkSeP-
|
|
1
|
+
{"version":3,"file":"useBreakpoint-7QkBkSeP-CfR8YWax.js","sources":["../../hammer-react/dist/useBreakpoint-7QkBkSeP.js"],"sourcesContent":["import { useState, useEffect } from 'react';\nimport { core } from '@servicetitan/hammer-token';\n\nfunction breakpoint(name, min, max) {\n if (globalThis.visualViewport == null) {\n return void 0;\n }\n if ((min == null || globalThis.visualViewport?.width >= min) && (max == null || globalThis.visualViewport?.width < max)) {\n return {\n name,\n min,\n max,\n orientation: globalThis.visualViewport?.height > globalThis.visualViewport?.width ? \"portrait\" : \"landscape\",\n innerWidth: globalThis.visualViewport?.width,\n innerHeight: globalThis.visualViewport?.height\n };\n }\n return void 0;\n}\nconst onResize = () => {\n if (!core.primitive?.BreakpointSm) return;\n if (!core.primitive?.BreakpointMd) return;\n if (!core.primitive?.BreakpointLg) return;\n if (!core.primitive?.BreakpointXl) return;\n if (!core.primitive?.BreakpointXxl) return;\n const sm = parseInt(core.primitive?.BreakpointSm.value);\n const md = parseInt(core.primitive?.BreakpointMd.value);\n const lg = parseInt(core.primitive?.BreakpointLg.value);\n const xl = parseInt(core.primitive?.BreakpointXl.value);\n const xxl = parseInt(core.primitive?.BreakpointXxl.value);\n return breakpoint(\"xs\", void 0, sm) ?? breakpoint(\"sm\", sm, md) ?? breakpoint(\"md\", md, lg) ?? breakpoint(\"lg\", lg, xl) ?? breakpoint(\"xl\", xl, xxl) ?? breakpoint(\"xxl\", xxl, void 0);\n};\nconst useBreakpoint = (props) => {\n const [size, setSize] = useState(onResize());\n useEffect(() => {\n if (props?.disable) return;\n const updateSize = () => {\n setSize(onResize());\n };\n globalThis.addEventListener(\"resize\", updateSize);\n return () => {\n globalThis.removeEventListener(\"resize\", updateSize);\n };\n }, []);\n if (props?.disable) return;\n return size;\n};\n\nexport { useBreakpoint as u };\n//# sourceMappingURL=useBreakpoint-7QkBkSeP.js.map\n"],"names":["core.primitive?.BreakpointSm","core.primitive?.BreakpointMd","core.primitive?.BreakpointLg","core.primitive?.BreakpointXl","core.primitive?.BreakpointXxl"],"mappings":";;;AAGA,SAAS,UAAU,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE;AACpC,EAAE,IAAI,UAAU,CAAC,cAAc,IAAI,IAAI,EAAE;AACzC,IAAI,OAAO,MAAM;AACjB;AACA,EAAE,IAAI,CAAC,GAAG,IAAI,IAAI,IAAI,UAAU,CAAC,cAAc,EAAE,KAAK,IAAI,GAAG,MAAM,GAAG,IAAI,IAAI,IAAI,UAAU,CAAC,cAAc,EAAE,KAAK,GAAG,GAAG,CAAC,EAAE;AAC3H,IAAI,OAAO;AACX,MAAM,IAAI;AACV,MAAM,GAAG;AACT,MAAM,GAAG;AACT,MAAM,WAAW,EAAE,UAAU,CAAC,cAAc,EAAE,MAAM,GAAG,UAAU,CAAC,cAAc,EAAE,KAAK,GAAG,UAAU,GAAG,WAAW;AAClH,MAAM,UAAU,EAAE,UAAU,CAAC,cAAc,EAAE,KAAK;AAClD,MAAM,WAAW,EAAE,UAAU,CAAC,cAAc,EAAE;AAC9C,KAAK;AACL;AACA,EAA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I,UAAU,CAAC,gBAAgB,CAAC,QAAQ,EAAE,UAAU,CAAC;AACrD,IAAI,OAAO,MAAM;AACjB,MAAM,UAAU,CAAC,mBAAmB,CAAC,QAAQ,EAAE,UAAU,CAAC;AAC1D,KAAK;AACL,GAAG,EAAE,EAAE,CAAC;AACR,EAAE,IAAI,KAAK,EAAE,OAAO,EAAE;AACtB,EAAE,OAAO,IAAI;AACb;;;;"}
|
package/dist/useBreakpoint.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { u as default, u as useBreakpoint } from './useBreakpoint-7QkBkSeP-
|
|
1
|
+
export { u as default, u as useBreakpoint } from './useBreakpoint-7QkBkSeP-CfR8YWax.js';
|
|
2
2
|
//# sourceMappingURL=useBreakpoint.js.map
|
package/dist/{useLayoutPropsUtil-3B2XYWSr-ChuzrydG.js → useLayoutPropsUtil-3B2XYWSr-5ZanZ8Ew.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useMemo } from 'react';
|
|
2
|
-
import { u as useBreakpoint } from './useBreakpoint-7QkBkSeP-
|
|
3
|
-
import { p as primitive } from './primitive-
|
|
2
|
+
import { u as useBreakpoint } from './useBreakpoint-7QkBkSeP-CfR8YWax.js';
|
|
3
|
+
import { p as primitive } from './primitive-DEjVLxOV.js';
|
|
4
4
|
|
|
5
5
|
const sizeToToken = (value) => {
|
|
6
6
|
if (typeof value === "undefined") return void 0;
|
|
@@ -129,4 +129,4 @@ function useLayoutPropsUtil(props) {
|
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
export { useLayoutPropsUtil as u };
|
|
132
|
-
//# sourceMappingURL=useLayoutPropsUtil-3B2XYWSr-
|
|
132
|
+
//# sourceMappingURL=useLayoutPropsUtil-3B2XYWSr-5ZanZ8Ew.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLayoutPropsUtil-3B2XYWSr-
|
|
1
|
+
{"version":3,"file":"useLayoutPropsUtil-3B2XYWSr-5ZanZ8Ew.js","sources":["../../hammer-react/dist/useLayoutPropsUtil-3B2XYWSr.js"],"sourcesContent":["import { useMemo } from 'react';\nimport { u as useBreakpoint } from './useBreakpoint-7QkBkSeP.js';\nimport { core } from '@servicetitan/hammer-token';\n\nconst sizeToToken = (value) => {\n if (typeof value === \"undefined\") return void 0;\n let gap = value;\n const stringifiedValue = String(value);\n if (stringifiedValue === \"half\") {\n gap = `${stringifiedValue[0].toUpperCase()}${stringifiedValue.slice(1)}`;\n }\n return core.primitive?.[`Size${gap}`]?.value;\n};\n\nconst LAYOUT_PROP_ARR = [\n \"gridTemplateColumns\",\n \"gridTemplateRows\",\n \"gridTemplateAreas\",\n \"gridAutoColumns\",\n \"gridAutoRows\",\n \"gridArea\",\n \"gridColumn\",\n \"gridRow\",\n \"gridColumnStart\",\n \"gridColumnEnd\",\n \"gridRowStart\",\n \"gridRowEnd\",\n \"flex\",\n \"flexDirection\",\n \"flexGrow\",\n \"flexShrink\",\n \"flexBasis\",\n \"flexWrap\",\n \"order\",\n \"justifySelf\",\n \"justifyItems\",\n \"justifyContent\",\n \"alignSelf\",\n \"alignItems\",\n \"alignContent\",\n \"placeItems\",\n \"placeContent\",\n \"placeSelf\",\n \"wrap\",\n \"gap\",\n \"rowGap\",\n \"columnGap\"\n];\nconst RESPONSIVE_SIZES_ARR = [\"xs\", \"sm\", \"md\", \"lg\", \"xl\", \"xxl\"];\nfunction useLayoutPropsUtil(props) {\n const baseSizeProps = Object.fromEntries(\n Object.entries(props).filter(([key, val]) => LAYOUT_PROP_ARR.includes(key))\n );\n const responsiveSizeProps = Object.fromEntries(\n Object.entries(props).filter(\n ([key, val]) => RESPONSIVE_SIZES_ARR.includes(key)\n )\n );\n const sizeProps = useMemo(\n () => ({\n ...responsiveSizeProps,\n base: baseSizeProps\n }),\n [baseSizeProps, responsiveSizeProps]\n );\n const componentProps = Object.fromEntries(\n Object.entries(props).filter(\n ([key, val]) => !RESPONSIVE_SIZES_ARR.includes(key) && !LAYOUT_PROP_ARR.includes(key)\n )\n );\n const breakpoint = useBreakpoint();\n const getValue = (style) => {\n if (breakpoint?.name === \"xxl\") {\n const xxlValue = sizeProps.xxl?.[style] ?? sizeProps.xl?.[style] ?? sizeProps.lg?.[style] ?? sizeProps.md?.[style] ?? sizeProps.sm?.[style] ?? sizeProps.xs?.[style] ?? sizeProps.base?.[style];\n if (style.toLowerCase().endsWith(\"gap\")) {\n return sizeToToken(xxlValue);\n }\n return xxlValue;\n }\n if (breakpoint?.name === \"xl\") {\n const xlValue = sizeProps.xl?.[style] ?? sizeProps.lg?.[style] ?? sizeProps.md?.[style] ?? sizeProps.sm?.[style] ?? sizeProps.xs?.[style] ?? sizeProps.base?.[style];\n if (style.toLowerCase().endsWith(\"gap\")) {\n return sizeToToken(xlValue);\n }\n return xlValue;\n }\n if (breakpoint?.name === \"lg\") {\n const lgValue = sizeProps.lg?.[style] ?? sizeProps.md?.[style] ?? sizeProps.sm?.[style] ?? sizeProps.xs?.[style] ?? sizeProps.base?.[style];\n if (style.toLowerCase().endsWith(\"gap\")) {\n return sizeToToken(lgValue);\n }\n return lgValue;\n }\n if (breakpoint?.name === \"md\") {\n const mdValue = sizeProps.md?.[style] ?? sizeProps.sm?.[style] ?? sizeProps.xs?.[style] ?? sizeProps.base?.[style];\n if (style.toLowerCase().endsWith(\"gap\")) {\n return sizeToToken(mdValue);\n }\n return mdValue;\n }\n if (breakpoint?.name === \"sm\") {\n const smValue = sizeProps.sm?.[style] ?? sizeProps.xs?.[style] ?? sizeProps.base?.[style];\n if (style.toLowerCase().endsWith(\"gap\")) {\n return sizeToToken(smValue);\n }\n return smValue;\n }\n if (breakpoint?.name === \"xs\") {\n const xsValue = sizeProps.xs?.[style] ?? sizeProps.base?.[style];\n if (style.toLowerCase().endsWith(\"gap\")) {\n return sizeToToken(xsValue);\n }\n return xsValue;\n }\n if (style.toLowerCase().endsWith(\"gap\")) {\n return sizeToToken(sizeProps.base?.[style]);\n }\n return sizeProps.base?.[style];\n };\n const layoutStyleObject = LAYOUT_PROP_ARR.reduce((o, key) => {\n const value = getValue(key);\n if (typeof value === \"undefined\") return o;\n return { ...o, [key]: value };\n }, {});\n return {\n layoutStyles: layoutStyleObject,\n componentProps\n };\n}\n\nexport { useLayoutPropsUtil as u };\n//# sourceMappingURL=useLayoutPropsUtil-3B2XYWSr.js.map\n"],"names":["core.primitive"],"mappings":";;;;AAIA,MAAM,WAAW,GAAG,CAAC,KAAK,KAAK;AAC/B,EAAE,IAAI,OAAO,KAAK,KAAK,WAAW,EAAE,OAAO,MAAM;AACjD,EAAE,IAAI,GAAG,GAAG,KAAK;AACjB,EAAE,MAAM,gBAAgB,GAAG,MAAM,CAAC,KAAK,CAAC;AACxC,EAAE,IAAI,gBAAgB,KAAK,MAAM,EAAE;AACnC,IAAI,GAAG,GAAG,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,EAAE,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AAC5E;AACA,EAAE,OAAOA,SAAc,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK;AAC9C,CAAC;;AAED,MAAM,eAAe,GAAG;AACxB,EAAE,qBAAqB;AACvB,EAAE,kBAAkB;AACpB,EAAE,mBAAmB;AACrB,EAAE,iBAAiB;AACnB,EAAE,cAAc;AAChB,EAAE,UAAU;AACZ,EAAE,YAAY;AACd,EAAE,SAAS;AACX,EAAE,iBAAiB;AACnB,EAAE,eAAe;AACjB,EAAE,cAAc;AAChB,EAAE,YAAY;AACd,EAAE,MAAM;AACR,EAAE,eAAe;AACjB,EAAE,UAAU;AACZ,EAAE,YAAY;AACd,EAAE,WAAW;AACb,EAAE,UAAU;AACZ,EAAE,OAAO;AACT,EAAE,aAAa;AACf,EAAE,cAAc;AAChB,EAAE,gBAAgB;AAClB,EAAE,WAAW;AACb,EAAE,YAAY;AACd,EAAE,cAAc;AAChB,EAAE,YAAY;AACd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,OAAO,WAAW,CAAC,OAAO,CAAC;AACnC;AACA,MAAM,OAAO,OAAO;AACpB;AACA,IAAI,IAAI,KAAK,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;AAC7C,MAAM,OAAO,WAAW,CAAC,SAAS,CAAC,IAAI,GAAG,KAAK,CAAC,CAAC;AACjD;AACA,IAAI,OAAO,SAAS,CAAC,IAAI,GAAG,KAAK,CAAC;AAClC,GAAG;AACH,EAAE,MAAM,iBAAiB,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK;AAC/D,IAAI,MAAM,KAAK,GAAG,QAAQ,CAAC,GAAG,CAAC;AAC/B,IAAI,IAAI,OAAO,KAAK,KAAK,WAAW,EAAE,OAAO,CAAC;AAC9C,IAAI,OAAO,EAAE,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,KAAK,EAAE;AACjC,GAAG,EAAE,EAAE,CAAC;AACR,EAAE,OAAO;AACT,IAAI,YAAY,EAAE,iBAAiB;AACnC,IAAI;AACJ,GAAG;AACH;;;;"}
|
package/dist/useLinkStyles.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { u as default, u as useLinkStyles } from './Link-DIyZHRIV-
|
|
1
|
+
export { u as default, u as useLinkStyles } from './Link-DIyZHRIV-DPk42hgW.js';
|
|
2
2
|
//# sourceMappingURL=useLinkStyles.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@servicetitan/anvil2",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.32.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"@react-hook/resize-observer": "^2.0.1",
|
|
26
26
|
"classnames": "^2.5.1",
|
|
27
27
|
"@servicetitan/hammer-icon": "1.1.0",
|
|
28
|
-
"@servicetitan/hammer-
|
|
29
|
-
"@servicetitan/hammer-
|
|
28
|
+
"@servicetitan/hammer-react": "1.33.0",
|
|
29
|
+
"@servicetitan/hammer-token": "2.3.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"@types/react": "^18",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonToggle-ZJ-yIkfu-Cz3W6KBt.js","sources":["../../hammer-react/dist/ButtonToggle-ZJ-yIkfu.js"],"sourcesContent":["import { jsxs, jsx } from 'react/jsx-runtime';\nimport { forwardRef, useState, useEffect } from 'react';\nimport cx from 'classnames';\nimport { I as Icon } from './Icon-DuwR7O2z.js';\nimport { s as styles } from './Button.module-CDPD2nx9.js';\nimport { S as Spinner } from './Spinner-B55mSnmk.js';\nimport { u as useLayoutPropsUtil } from './useLayoutPropsUtil-3B2XYWSr.js';\nimport { B as Button } from './Button-CEDmdZ-2.js';\n\nconst ButtonLink = forwardRef(\n (props, ref) => {\n const { layoutStyles, componentProps } = useLayoutPropsUtil(props);\n const {\n children,\n className,\n appearance = \"secondary\",\n size = \"medium\",\n icon,\n loading = false,\n disabled,\n onClick,\n onKeyUp,\n onKeyDown,\n style,\n ...rest\n } = componentProps;\n const buttonClassNames = cx(className, styles[\"button\"], {\n [styles[\"appearance-primary\"]]: appearance === \"primary\",\n [styles[\"appearance-secondary\"]]: appearance === \"secondary\",\n [styles[\"appearance-ghost\"]]: appearance === \"ghost\",\n [styles[\"danger-secondary\"]]: appearance === \"danger-secondary\",\n [styles[\"danger-primary\"]]: appearance === \"danger\",\n [styles[\"size-small\"]]: size === \"small\",\n [styles[\"size-medium\"]]: size === \"medium\",\n [styles[\"size-large\"]]: size === \"large\",\n [styles[\"type-icon\"]]: !children,\n [styles[\"loading\"]]: loading\n });\n const iconBefore = (icon2) => {\n if (icon2 && typeof icon2 === \"object\" && \"before\" in icon2) {\n return /* @__PURE__ */ jsx(\n Icon,\n {\n \"aria-hidden\": true,\n className: styles[\"icon\"],\n inherit: true,\n svg: icon2.before\n }\n );\n }\n if (icon2 && typeof icon2 !== \"object\") {\n return /* @__PURE__ */ jsx(Icon, { \"aria-hidden\": true, className: styles[\"icon\"], inherit: true, svg: icon2 });\n }\n return;\n };\n const handleOnClick = (e) => {\n if (disabled || loading) {\n e.preventDefault();\n return;\n }\n onClick?.(e);\n };\n const onKeyDownHandler = (e) => {\n if (e.code === \"Space\") {\n e.preventDefault();\n onKeyDown?.(e);\n return;\n }\n onKeyDown?.(e);\n };\n const onKeyUpHandler = (e) => {\n if (e.code === \"Space\" || e.code === \"Enter\") {\n e.preventDefault();\n onClick && e.currentTarget.click();\n }\n onKeyUp?.(e);\n };\n const styleCombined = {\n ...style,\n ...layoutStyles\n };\n return /* @__PURE__ */ jsxs(\n \"a\",\n {\n role: \"link\",\n className: buttonClassNames,\n \"aria-disabled\": disabled || loading,\n \"aria-busy\": loading,\n \"data-anv\": \"button-link\",\n tabIndex: disabled || loading ? -1 : 0,\n onClick: handleOnClick,\n onKeyDown: onKeyDownHandler,\n onKeyUp: onKeyUpHandler,\n style: styleCombined,\n ref,\n ...rest,\n children: [\n loading ? /* @__PURE__ */ jsx(Spinner, { inherit: true, className: styles[\"loading-spinner\"] }) : icon ? iconBefore(icon) : null,\n children,\n typeof icon === \"object\" && \"after\" in icon ? /* @__PURE__ */ jsx(\n Icon,\n {\n className: styles[\"icon\"],\n inherit: true,\n \"aria-hidden\": true,\n svg: icon.after\n }\n ) : null\n ]\n }\n );\n }\n);\nButtonLink.displayName = \"ButtonLink\";\n\nconst ButtonToggle = forwardRef(\n (props, ref) => {\n const { layoutStyles, componentProps } = useLayoutPropsUtil(props);\n const {\n value,\n defaultChecked = false,\n checked,\n className,\n onClick,\n onChange,\n onKeyDown,\n style,\n ...rest\n } = componentProps;\n const [isPressed, setIsPressed] = useState(checked ?? defaultChecked);\n const ButtonToggleClassNames = cx(className, styles[\"button-toggle\"]);\n const onClickHandler = (e) => {\n if (typeof checked === \"undefined\") {\n setIsPressed(!isPressed);\n onChange?.(e, { pressed: !isPressed, value });\n }\n onClick?.(e);\n };\n useEffect(() => {\n if (typeof checked === \"undefined\") return;\n setIsPressed(checked);\n }, [checked]);\n const styleCombined = {\n ...style,\n ...layoutStyles\n };\n return /* @__PURE__ */ jsx(\n Button,\n {\n \"data-anv\": \"button-toggle\",\n \"aria-pressed\": isPressed,\n onClick: onClickHandler,\n className: ButtonToggleClassNames,\n value,\n style: styleCombined,\n ref,\n ...rest\n }\n );\n }\n);\nButtonToggle.displayName = \"ButtonToggle\";\n\nexport { ButtonLink as B, ButtonToggle as a };\n//# sourceMappingURL=ButtonToggle-ZJ-yIkfu.js.map\n"],"names":[],"mappings":";;;;;;;;;AASK,MAAC,UAAU,GAAG,UAAU;AAC7B,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK;AAClB,IAAI,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,GAAG,kBAAkB,CAAC,KAAK,CAAC;AACtE,IAAI,MAAM;AACV,MAAM,QAAQ;AACd,MAAM,SAAS;AACf,MAAM,UAAU,GAAG,WAAW;AAC9B,MAAM,IAAI,GAAG,QAAQ;AACrB,MAAM,IAAI;AACV,MAAM,OAAO,GAAG,KAAK;AACrB,MAAM,QAAQ;AACd,MAAM,OAAO;AACb,MAAM,OAAO;AACb,MAAM,SAAS;AACf,MAAM,KAAK;AACX,MAAM,GAAG;AACT,KAAK,GAAG,cAAc;AACtB,IAAI,MAAM,gBAAgB,GAAG,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,EAAE;AAC7D,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,GAAG,UAAU,KAAK,SAAS;AAC9D,MAAM,CAAC,MAAM,CAAC,sBAAsB,CAAC,GAAG,UAAU,KAAK,WAAW;AAClE,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,GAAG,UAAU,KAAK,OAAO;AAC1D,MAAM,CAAC,MAAM,CAAC,kBA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