@servicetitan/anvil2 1.37.2 → 1.39.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 +41 -0
- package/dist/{Alert-DMk5bG5T-kR7Uzp64.js → Alert-C3WoRkeN-D_6Yf63F.js} +5 -5
- package/dist/{Alert-DMk5bG5T-kR7Uzp64.js.map → Alert-C3WoRkeN-D_6Yf63F.js.map} +1 -1
- package/dist/{Alert-BsFFiu7g.js → Alert-DipY5OlC.js} +3 -2
- package/dist/Alert-DipY5OlC.js.map +1 -0
- package/dist/Alert.js +1 -1
- package/dist/{Announcement-BawOyXV3.js → Announcement-ButSjdLn.js} +5 -4
- package/dist/Announcement-ButSjdLn.js.map +1 -0
- package/dist/Announcement.js +1 -1
- package/dist/{AnvilProvider-DJ4lYJVW.js → AnvilProvider-Lh8YtV03.js} +2 -2
- package/dist/{AnvilProvider-DJ4lYJVW.js.map → AnvilProvider-Lh8YtV03.js.map} +1 -1
- package/dist/AnvilProvider.js +1 -1
- package/dist/{Avatar-C2IfIAxL-BUio7c00.js → Avatar-B20IdOEO-Di14brYV.js} +23 -4
- package/dist/Avatar-B20IdOEO-Di14brYV.js.map +1 -0
- package/dist/Avatar-hNOToS9S.js +42 -0
- package/dist/Avatar-hNOToS9S.js.map +1 -0
- package/dist/Avatar.js +1 -1
- package/dist/{Badge-Bko3Cw3L.js → Badge-7aZfE-LH.js} +3 -2
- package/dist/{Badge-Bko3Cw3L.js.map → Badge-7aZfE-LH.js.map} +1 -1
- package/dist/Badge.js +1 -1
- package/dist/{Breadcrumbs-BP5QXVje.js → Breadcrumbs-DJbCkSeD.js} +35 -5
- package/dist/Breadcrumbs-DJbCkSeD.js.map +1 -0
- package/dist/Breadcrumbs.js +1 -1
- package/dist/{Button-C-QpfgfF-CRBE7KiD.js → Button-BaHFf1AT-BQy-PFB5.js} +3 -3
- package/dist/{Button-C-QpfgfF-CRBE7KiD.js.map → Button-BaHFf1AT-BQy-PFB5.js.map} +1 -1
- package/dist/{Button-NTFmgcbr.js → Button-DMQKV2sV.js} +4 -3
- package/dist/Button-DMQKV2sV.js.map +1 -0
- package/dist/Button.js +1 -1
- package/dist/{ButtonCompound-Dp5J4W81-BkZ68L4-.js → ButtonCompound-Cs2A5X-Z-Dl3InVab.js} +2 -2
- package/dist/{ButtonCompound-Dp5J4W81-BkZ68L4-.js.map → ButtonCompound-Cs2A5X-Z-Dl3InVab.js.map} +1 -1
- package/dist/{ButtonCompound-DlgIyoB9.js → ButtonCompound-DGuF0zzT.js} +3 -2
- package/dist/ButtonCompound-DGuF0zzT.js.map +1 -0
- package/dist/ButtonCompound.js +1 -1
- package/dist/{ButtonLink-CSaxjhI2-KLVGwWjE.js → ButtonLink-5qlX0uZx-b9H7MGhk.js} +6 -4
- package/dist/ButtonLink-5qlX0uZx-b9H7MGhk.js.map +1 -0
- package/dist/{ButtonLink-B_uUWBLY.js → ButtonLink-B0NJuVk5.js} +4 -3
- package/dist/ButtonLink-B0NJuVk5.js.map +1 -0
- package/dist/ButtonLink.js +1 -1
- package/dist/{ButtonToggle-CvXIngRd-BiWpOOWr.js → ButtonToggle-Bm4KRl3o-B1-LbfjY.js} +3 -3
- package/dist/{ButtonToggle-CvXIngRd-BiWpOOWr.js.map → ButtonToggle-Bm4KRl3o-B1-LbfjY.js.map} +1 -1
- package/dist/{ButtonToggle-D3tcTRq9.js → ButtonToggle-CKVyEODc.js} +3 -2
- package/dist/ButtonToggle-CKVyEODc.js.map +1 -0
- package/dist/ButtonToggle.js +1 -1
- package/dist/{Calendar-Bn00Dnc--DcCNi1xz.js → Calendar-BT6eeZDr-CSY_7I1M.js} +9 -9
- package/dist/{Calendar-Bn00Dnc--DcCNi1xz.js.map → Calendar-BT6eeZDr-CSY_7I1M.js.map} +1 -1
- package/dist/Calendar-CIWOPMcu.js +130 -0
- package/dist/Calendar-CIWOPMcu.js.map +1 -0
- package/dist/Calendar.js +1 -1
- package/dist/{Card-DgxiRqS_.js → Card-U2IJPk8B.js} +3 -2
- package/dist/Card-U2IJPk8B.js.map +1 -0
- package/dist/{Card-BNT0qpxt-OPUNKZW6.js → Card-ZknG-yim-7W6rYSFV.js} +3 -3
- package/dist/{Card-BNT0qpxt-OPUNKZW6.js.map → Card-ZknG-yim-7W6rYSFV.js.map} +1 -1
- package/dist/Card.js +1 -1
- package/dist/{Checkbox-CRurfeRE-BR_NXfh6.js → Checkbox-BNrjUtHs-CfExXZer.js} +6 -5
- package/dist/Checkbox-BNrjUtHs-CfExXZer.js.map +1 -0
- package/dist/{Checkbox-BIlp8xmW.js → Checkbox-ic-HmakR.js} +25 -2
- package/dist/Checkbox-ic-HmakR.js.map +1 -0
- package/dist/Checkbox.js +1 -1
- package/dist/{Chip-BQ58RQ3v.js → Chip-BlLavyIK.js} +2 -2
- package/dist/Chip-BlLavyIK.js.map +1 -0
- package/dist/{Chip-DwiMFYBm-CIDM1d8e.js → Chip-_daV8CmM-CTke7zH4.js} +5 -5
- package/dist/{Chip-DwiMFYBm-CIDM1d8e.js.map → Chip-_daV8CmM-CTke7zH4.js.map} +1 -1
- package/dist/Chip.js +1 -1
- package/dist/{Combobox-Dde7-7tv.js → Combobox-DR7O7aaZ.js} +187 -24
- package/dist/Combobox-DR7O7aaZ.js.map +1 -0
- package/dist/Combobox.js +1 -1
- package/dist/{DateField-D-eVP6xh.js → DateField-CYT6udu8.js} +18 -13
- package/dist/DateField-CYT6udu8.js.map +1 -0
- package/dist/DateField.js +1 -1
- package/dist/{DaysOfTheWeek-Dz-aZ-LW.js → DaysOfTheWeek-DbjM8UPz.js} +7 -7
- package/dist/DaysOfTheWeek-DbjM8UPz.js.map +1 -0
- package/dist/DaysOfTheWeek.js +1 -1
- package/dist/{Details-ChZdA5Yo.js → Details-DVg0EOkv.js} +51 -3
- package/dist/Details-DVg0EOkv.js.map +1 -0
- package/dist/Details.js +1 -1
- package/dist/{Dialog-DJhN8QWP.js → Dialog-BmeXBcs-.js} +125 -4
- package/dist/Dialog-BmeXBcs-.js.map +1 -0
- package/dist/Dialog.js +1 -1
- package/dist/{Divider-Crum3dyV.js → Divider-CN36wX4s.js} +3 -2
- package/dist/Divider-CN36wX4s.js.map +1 -0
- package/dist/Divider.js +1 -1
- package/dist/Dnd.js +1 -1
- package/dist/{DndSort-Dy_D1EnT.js → DndSort-Cl0FCNQm.js} +6 -6
- package/dist/{DndSort-Dy_D1EnT.js.map → DndSort-Cl0FCNQm.js.map} +1 -1
- package/dist/DndSort.js +1 -1
- package/dist/Drawer-8jQ-jaiv.js +142 -0
- package/dist/Drawer-8jQ-jaiv.js.map +1 -0
- package/dist/Drawer.js +1 -1
- package/dist/{EditCard-BNwoKJ_6.js → EditCard-C0hD1VPA.js} +7 -6
- package/dist/EditCard-C0hD1VPA.js.map +1 -0
- package/dist/EditCard.js +1 -1
- package/dist/{FieldMessage-Js4e1ezw-DZ6YDx24.js → FieldMessage-Bobp105T-DYhStLY4.js} +5 -5
- package/dist/FieldMessage-Bobp105T-DYhStLY4.js.map +1 -0
- package/dist/FieldMessage-Bobp105T.css +32 -0
- package/dist/{FieldMessage-CERWyhwG.js → FieldMessage-DkJ0K5s-.js} +2 -2
- package/dist/FieldMessage-DkJ0K5s-.js.map +1 -0
- package/dist/FieldMessage.js +1 -1
- package/dist/{Flex-EX9xObMl-BPBQ7nb5.js → Flex-CiK7uNUu-BfxHG4L0.js} +3 -3
- package/dist/{Flex-EX9xObMl-BPBQ7nb5.js.map → Flex-CiK7uNUu-BfxHG4L0.js.map} +1 -1
- package/dist/{Flex-DT1l-wJc.js → Flex-Ln6PmaDl.js} +3 -2
- package/dist/Flex-Ln6PmaDl.js.map +1 -0
- package/dist/Flex.js +1 -1
- package/dist/Grid-CMcDeSYT.js +33 -0
- package/dist/Grid-CMcDeSYT.js.map +1 -0
- package/dist/{Grid-BmNHm7Fa.js → Grid-DFAd8mTe.js} +2 -2
- package/dist/{Grid-BmNHm7Fa.js.map → Grid-DFAd8mTe.js.map} +1 -1
- package/dist/Grid.js +1 -1
- package/dist/{HammerProvider-BEJW4XcH-BBKdl0zs.js → HammerProvider-CYP98rq3-Dd9GVIyP.js} +3 -3
- package/dist/{HammerProvider-BEJW4XcH-BBKdl0zs.js.map → HammerProvider-CYP98rq3-Dd9GVIyP.js.map} +1 -1
- package/dist/Helper-h7k80qls-DHPFHTvI.js +46 -0
- package/dist/Helper-h7k80qls-DHPFHTvI.js.map +1 -0
- package/dist/{FieldMessage-Js4e1ezw.css → Helper-h7k80qls.css} +8 -9
- package/dist/{Icon-BrdmZw1i-CG-LzgEz.js → Icon-B6HmlQiR-BxQkO3X5.js} +3 -3
- package/dist/{Icon-BrdmZw1i-CG-LzgEz.js.map → Icon-B6HmlQiR-BxQkO3X5.js.map} +1 -1
- package/dist/{Icon-CcUV8glf.js → Icon-BgKqBmlj.js} +3 -2
- package/dist/Icon-BgKqBmlj.js.map +1 -0
- package/dist/Icon.js +1 -1
- package/dist/InputMask-CiHg25XE-DXRWDeku.js +231 -0
- package/dist/InputMask-CiHg25XE-DXRWDeku.js.map +1 -0
- package/dist/{InputMask-CeqX68uX.js → InputMask-DH14Bp7r.js} +3 -2
- package/dist/InputMask-DH14Bp7r.js.map +1 -0
- package/dist/InputMask.js +1 -1
- package/dist/Layout-CUUb2PVr.js.map +1 -1
- package/dist/{Link-K3nk4QAp.js → Link-DZa0wmkA.js} +3 -3
- package/dist/Link-DZa0wmkA.js.map +1 -0
- package/dist/{Link-CVN5Mwtx-B08PO1ef.js → Link-Dqp_XXl_-Bv20l_tY.js} +4 -4
- package/dist/{Link-CVN5Mwtx-B08PO1ef.js.map → Link-Dqp_XXl_-Bv20l_tY.js.map} +1 -1
- package/dist/Link.js +1 -1
- package/dist/{ListView-zlg5FlKW.js → ListView-HBQy0Qmv.js} +87 -47
- package/dist/ListView-HBQy0Qmv.js.map +1 -0
- package/dist/ListView.js +1 -1
- package/dist/{Listbox-DLlT8qbJ-BvhkfmIf.js → Listbox-BvJLSAVO-Br5k6fmq.js} +51 -10
- package/dist/Listbox-BvJLSAVO-Br5k6fmq.js.map +1 -0
- package/dist/Listbox-dVARiucB.js +67 -0
- package/dist/Listbox-dVARiucB.js.map +1 -0
- package/dist/Listbox.js +1 -1
- package/dist/{LocalizationProvider-FkvhW-le-DPTpcI0N.js → LocalizationProvider-VtRAfGBT-Bo8XuFoE.js} +2 -2
- package/dist/{LocalizationProvider-FkvhW-le-DPTpcI0N.js.map → LocalizationProvider-VtRAfGBT-Bo8XuFoE.js.map} +1 -1
- package/dist/LocalizationProvider.js +1 -1
- package/dist/{Menu-BjzTwENs.js → Menu-CijOsL76.js} +60 -10
- package/dist/Menu-CijOsL76.js.map +1 -0
- package/dist/Menu.js +1 -1
- package/dist/{Overflow-vc1mxjUD.js → Overflow-B6rIOkAI.js} +27 -2
- package/dist/Overflow-B6rIOkAI.js.map +1 -0
- package/dist/{Overflow-ENfRRD_5-DLHLZ02e.js → Overflow-BrXwlYpn-CtqaiNgb.js} +25 -4
- package/dist/Overflow-BrXwlYpn-CtqaiNgb.js.map +1 -0
- package/dist/Overflow.js +1 -1
- package/dist/{Page-CSM-a2UE.js → Page-CdkxWab-.js} +131 -15
- package/dist/Page-CdkxWab-.js.map +1 -0
- package/dist/Page.js +1 -1
- package/dist/Popover-CCcd-JhF.js +135 -0
- package/dist/Popover-CCcd-JhF.js.map +1 -0
- package/dist/{Popover-CpyYXmal-I-E-B4u8.js → Popover-CVCAWhdO-dI3x1kfe.js} +80 -8
- package/dist/Popover-CVCAWhdO-dI3x1kfe.js.map +1 -0
- package/dist/Popover.js +1 -1
- package/dist/{ProgressBar-B25Wxpaf.js → ProgressBar-BEDtxKDv.js} +3 -2
- package/dist/ProgressBar-BEDtxKDv.js.map +1 -0
- package/dist/{ProgressBar-CeClhdcf-Dcft7ZjO.js → ProgressBar-CZhkKwaS-BppwbCSh.js} +184 -106
- package/dist/ProgressBar-CZhkKwaS-BppwbCSh.js.map +1 -0
- package/dist/ProgressBar-CZhkKwaS.css +671 -0
- package/dist/ProgressBar.js +1 -1
- package/dist/{Radio-BlMDLvPw-DUeywcYR.js → Radio-DiBn0-hf-CCkWosaL.js} +25 -5
- package/dist/Radio-DiBn0-hf-CCkWosaL.js.map +1 -0
- package/dist/Radio-Sj9M1KAg.js +66 -0
- package/dist/Radio-Sj9M1KAg.js.map +1 -0
- package/dist/Radio.js +1 -1
- package/dist/{SearchField-D3z4LjJg.js → SearchField-BQY7LHe2.js} +7 -6
- package/dist/SearchField-BQY7LHe2.js.map +1 -0
- package/dist/SearchField.js +1 -1
- package/dist/{SegmentedControl-D_ADGpVy.js → SegmentedControl-DKMQuf7s.js} +41 -2
- package/dist/SegmentedControl-DKMQuf7s.js.map +1 -0
- package/dist/SegmentedControl.js +1 -1
- package/dist/{SelectCard-D26y01WZ-BWN9G09J.js → SelectCard-CY8IVFDT-lXO3-mQ_.js} +70 -21
- package/dist/SelectCard-CY8IVFDT-lXO3-mQ_.js.map +1 -0
- package/dist/SelectCard.js +1 -1
- package/dist/SelectCardGroup-DLt9z9b8.js +49 -0
- package/dist/SelectCardGroup-DLt9z9b8.js.map +1 -0
- package/dist/{SideNav-C7wc1_JK.js → SideNav-DEoGpeqJ.js} +130 -10
- package/dist/SideNav-DEoGpeqJ.js.map +1 -0
- package/dist/SideNav.js +1 -1
- package/dist/Skeleton-COxTdwjO.js +398 -0
- package/dist/Skeleton-COxTdwjO.js.map +1 -0
- package/dist/Skeleton.js +1 -1
- package/dist/{Spinner-Bc5-_6pK.js → Spinner-C1r3COiQ.js} +2 -1
- package/dist/Spinner-C1r3COiQ.js.map +1 -0
- package/dist/Spinner.js +1 -1
- package/dist/SrOnly-C_I8eH4C.js.map +1 -1
- package/dist/{Stepper-Bp0w8eRW.js → Stepper-CwIV7ZiT.js} +281 -6
- package/dist/Stepper-CwIV7ZiT.js.map +1 -0
- package/dist/Stepper.js +1 -1
- package/dist/{Switch-BbHIwrGc.js → Switch-DAQFzi-X.js} +20 -10
- package/dist/Switch-DAQFzi-X.js.map +1 -0
- package/dist/Switch.css +23 -24
- package/dist/Switch.js +1 -1
- package/dist/{Tab-DcOQTX5Z.js → Tab-BSC7e4rM.js} +127 -10
- package/dist/Tab-BSC7e4rM.js.map +1 -0
- package/dist/Tab.js +1 -1
- package/dist/{Text-BDYfD8j4.js → Text-B91g6xKn.js} +3 -2
- package/dist/Text-B91g6xKn.js.map +1 -0
- package/dist/{Text-CN_-FF7J-Dzoy8A70.js → Text-DCvcLCvf-DlmnnjTR.js} +3 -3
- package/dist/{Text-CN_-FF7J-Dzoy8A70.js.map → Text-DCvcLCvf-DlmnnjTR.js.map} +1 -1
- package/dist/Text.js +1 -1
- package/dist/{TextField-Bp1q4hMI-2jGZG2k2.js → TextField-C5KbQxoU-DGLAOhCu.js} +9 -10
- package/dist/TextField-C5KbQxoU-DGLAOhCu.js.map +1 -0
- package/dist/{TextField-Ds9EKvSs.js → TextField-DUohb_Y6.js} +3 -2
- package/dist/{TextField-Ds9EKvSs.js.map → TextField-DUohb_Y6.js.map} +1 -1
- package/dist/TextField.js +1 -1
- package/dist/{Textarea-CMELRfU8.js → Textarea-HGQXwvO1.js} +10 -10
- package/dist/Textarea-HGQXwvO1.js.map +1 -0
- package/dist/Textarea.js +1 -1
- package/dist/{ThemeProvider-D2x18Y1l.js → ThemeProvider-BKave7Ha.js} +2 -2
- package/dist/{ThemeProvider-D2x18Y1l.js.map → ThemeProvider-BKave7Ha.js.map} +1 -1
- package/dist/{ThemeProvider-BIeaAmWx-DVYOQ6bw.js → ThemeProvider-CR67FJg0-DYVRlJRA.js} +3 -3
- package/dist/{ThemeProvider-BIeaAmWx-DVYOQ6bw.js.map → ThemeProvider-CR67FJg0-DYVRlJRA.js.map} +1 -1
- package/dist/ThemeProvider.js +1 -1
- package/dist/Toast.js +1 -1
- package/dist/{Toolbar-CYwR6GQG.js → Toolbar-28Uv31qc.js} +183 -14
- package/dist/Toolbar-28Uv31qc.js.map +1 -0
- package/dist/Toolbar.css +1 -11
- package/dist/Toolbar.js +1 -1
- package/dist/Tooltip-ZUko7Bl3.js +73 -0
- package/dist/Tooltip-ZUko7Bl3.js.map +1 -0
- package/dist/Tooltip.js +1 -1
- package/dist/assets/css-utils/a2-border.css +53 -0
- package/dist/assets/css-utils/a2-color.css +235 -0
- package/dist/assets/css-utils/a2-font.css +49 -0
- package/dist/assets/css-utils/a2-spacing.css +483 -0
- package/dist/assets/css-utils/a2-utils.css +785 -0
- package/dist/assets/icons/st/insurance_work_queue.svg +1 -0
- package/dist/assets/icons/st/production_work_queue.svg +1 -0
- package/dist/assets/icons/st.ts +2 -0
- package/dist/components/Alert/Alert.d.ts +37 -0
- package/dist/components/Announcement/Announcement.d.ts +37 -0
- package/dist/components/Avatar/Avatar.d.ts +73 -0
- package/dist/components/Badge/Badge.d.ts +27 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +39 -0
- package/dist/components/Button/Button.d.ts +28 -0
- package/dist/components/ButtonCompound/ButtonCompound.d.ts +24 -0
- package/dist/components/ButtonLink/ButtonLink.d.ts +30 -0
- package/dist/components/ButtonToggle/ButtonToggle.d.ts +32 -0
- package/dist/components/Calendar/Calendar.d.ts +114 -0
- package/dist/components/Card/Card.d.ts +24 -0
- package/dist/components/Checkbox/Checkbox.d.ts +77 -0
- package/dist/components/Chip/Chip.d.ts +34 -0
- package/dist/components/Combobox/Combobox.d.ts +442 -2
- package/dist/components/DateField/DateField.d.ts +65 -0
- package/dist/components/DaysOfTheWeek/DaysOfTheWeek.d.ts +44 -6
- package/dist/components/Details/Details.d.ts +68 -0
- package/dist/components/Dialog/Dialog.d.ts +178 -0
- package/dist/components/Divider/Divider.d.ts +24 -0
- package/dist/components/Drawer/Drawer.d.ts +200 -0
- package/dist/components/EditCard/EditCard.d.ts +50 -0
- package/dist/components/FieldMessage/FieldMessage.d.ts +31 -0
- package/dist/components/Flex/Flex.d.ts +48 -0
- package/dist/components/Grid/Grid.d.ts +74 -0
- package/dist/components/Icon/Icon.d.ts +39 -0
- package/dist/components/InputMask/InputMask.d.ts +57 -0
- package/dist/components/Layout/Layout.d.ts +131 -0
- package/dist/components/Link/Link.d.ts +47 -0
- package/dist/components/ListView/ListView.d.ts +85 -0
- package/dist/components/Listbox/Listbox.d.ts +124 -0
- package/dist/components/Menu/Menu.d.ts +85 -1
- package/dist/components/Overflow/Overflow.d.ts +84 -0
- package/dist/components/Page/Page.d.ts +443 -0
- package/dist/components/Popover/Popover.d.ts +268 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +52 -0
- package/dist/components/Radio/Radio.d.ts +121 -0
- package/dist/components/SearchField/SearchField.d.ts +37 -0
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +98 -0
- package/dist/components/SelectCard/SelectCard.d.ts +60 -0
- package/dist/components/SelectCard/SelectCardGroup.d.ts +37 -0
- package/dist/components/SideNav/SideNav.d.ts +192 -2
- package/dist/components/SideNav/SideNavProvider.d.ts +30 -0
- package/dist/components/Skeleton/Skeleton.d.ts +130 -0
- package/dist/components/Spinner/Spinner.d.ts +25 -0
- package/dist/components/SrOnly/SrOnly.d.ts +19 -0
- package/dist/components/Stepper/Stepper.d.ts +335 -0
- package/dist/components/Switch/Switch.d.ts +33 -0
- package/dist/components/Tab/Tab.d.ts +152 -0
- package/dist/components/Text/Text.d.ts +37 -0
- package/dist/components/Textarea/Textarea.d.ts +50 -0
- package/dist/components/Toast/Toaster.d.ts +43 -0
- package/dist/components/Toast/toast.d.ts +31 -0
- package/dist/components/Toolbar/Toolbar.d.ts +251 -0
- package/dist/components/Tooltip/Tooltip.d.ts +123 -0
- package/dist/{floating-ui.react-Domgunz0.js → floating-ui.react-BFNinq1w.js} +2 -2
- package/dist/{floating-ui.react-Domgunz0.js.map → floating-ui.react-BFNinq1w.js.map} +1 -1
- package/dist/hooks/useSize/index.d.ts +15 -0
- package/dist/hooks/useTrackingId/index.d.ts +19 -0
- package/dist/{index-CdSSO4ct-elKOdXPf.js → index-CKfiQx8n-4nziUo7G.js} +4 -4
- package/dist/{index-CdSSO4ct-elKOdXPf.js.map → index-CKfiQx8n-4nziUo7G.js.map} +1 -1
- package/dist/index.js +57 -57
- package/dist/{toast-C-6NdR43.js → toast-DjypuZMf.js} +3 -3
- package/dist/toast-DjypuZMf.js.map +1 -0
- package/dist/token/core/css-utils/a2-border.css +53 -0
- package/dist/token/core/css-utils/a2-color.css +235 -0
- package/dist/token/core/css-utils/a2-font.css +49 -0
- package/dist/token/core/css-utils/a2-spacing.css +483 -0
- package/dist/token/core/css-utils/a2-utils.css +785 -0
- package/dist/{useLayoutPropsUtil-GT5myWCm-Clw_nEze.js → useLayoutPropsUtil-DWACCL8v-CZNrcQT-.js} +6 -4
- package/dist/useLayoutPropsUtil-DWACCL8v-CZNrcQT-.js.map +1 -0
- package/dist/useLinkStyles.js +1 -1
- package/dist/useSize.js.map +1 -1
- package/dist/{useSwipe-DIUHs7T5-DIUHs7T5.js → useSwipe-CULmVQEk-CULmVQEk.js} +2 -2
- package/dist/useSwipe-CULmVQEk-CULmVQEk.js.map +1 -0
- package/dist/useSwipe.js +1 -1
- package/dist/useTrackingId.js.map +1 -1
- package/package.json +4 -3
- package/dist/Alert-BsFFiu7g.js.map +0 -1
- package/dist/Announcement-BawOyXV3.js.map +0 -1
- package/dist/Avatar-C2IfIAxL-BUio7c00.js.map +0 -1
- package/dist/Avatar-DYCN2A_l.js +0 -20
- package/dist/Avatar-DYCN2A_l.js.map +0 -1
- package/dist/Breadcrumbs-BP5QXVje.js.map +0 -1
- package/dist/Button-NTFmgcbr.js.map +0 -1
- package/dist/Button2.css +0 -8
- package/dist/ButtonCompound-DlgIyoB9.js.map +0 -1
- package/dist/ButtonLink-B_uUWBLY.js.map +0 -1
- package/dist/ButtonLink-CSaxjhI2-KLVGwWjE.js.map +0 -1
- package/dist/ButtonLink.css +0 -10
- package/dist/ButtonToggle-D3tcTRq9.js.map +0 -1
- package/dist/Calendar-B4MO-Uhv.js +0 -57
- package/dist/Calendar-B4MO-Uhv.js.map +0 -1
- package/dist/Card-DgxiRqS_.js.map +0 -1
- package/dist/Checkbox-BIlp8xmW.js.map +0 -1
- package/dist/Checkbox-CRurfeRE-BR_NXfh6.js.map +0 -1
- package/dist/Chip-BQ58RQ3v.js.map +0 -1
- package/dist/Combobox-Dde7-7tv.js.map +0 -1
- package/dist/DateField-D-eVP6xh.js.map +0 -1
- package/dist/DaysOfTheWeek-Dz-aZ-LW.js.map +0 -1
- package/dist/Details-ChZdA5Yo.js.map +0 -1
- package/dist/Dialog-DJhN8QWP.js.map +0 -1
- package/dist/Divider-Crum3dyV.js.map +0 -1
- package/dist/Drawer-BFfakO8h.js +0 -66
- package/dist/Drawer-BFfakO8h.js.map +0 -1
- package/dist/EditCard-BNwoKJ_6.js.map +0 -1
- package/dist/FieldMessage-CERWyhwG.js.map +0 -1
- package/dist/FieldMessage-Js4e1ezw-DZ6YDx24.js.map +0 -1
- package/dist/Flex-DT1l-wJc.js.map +0 -1
- package/dist/Grid-h9VbEjJe.js +0 -14
- package/dist/Grid-h9VbEjJe.js.map +0 -1
- package/dist/Icon-CcUV8glf.js.map +0 -1
- package/dist/InputMask-CeqX68uX.js.map +0 -1
- package/dist/InputMask-DfpkWGmY-D8QEut94.js +0 -323
- package/dist/InputMask-DfpkWGmY-D8QEut94.js.map +0 -1
- package/dist/Link-K3nk4QAp.js.map +0 -1
- package/dist/ListView-zlg5FlKW.js.map +0 -1
- package/dist/Listbox-36Mda5DS.js +0 -37
- package/dist/Listbox-36Mda5DS.js.map +0 -1
- package/dist/Listbox-DLlT8qbJ-BvhkfmIf.js.map +0 -1
- package/dist/Menu-BjzTwENs.js.map +0 -1
- package/dist/Overflow-ENfRRD_5-DLHLZ02e.js.map +0 -1
- package/dist/Overflow-vc1mxjUD.js.map +0 -1
- package/dist/Page-CSM-a2UE.js.map +0 -1
- package/dist/Popover-CpyYXmal-I-E-B4u8.js.map +0 -1
- package/dist/Popover-a81z9wSj.js +0 -56
- package/dist/Popover-a81z9wSj.js.map +0 -1
- package/dist/ProgressBar-B25Wxpaf.js.map +0 -1
- package/dist/ProgressBar-CeClhdcf-Dcft7ZjO.js.map +0 -1
- package/dist/ProgressBar-CeClhdcf.css +0 -666
- package/dist/Radio-BlMDLvPw-DUeywcYR.js.map +0 -1
- package/dist/Radio-D3CqAXiM.js +0 -34
- package/dist/Radio-D3CqAXiM.js.map +0 -1
- package/dist/SearchField-D3z4LjJg.js.map +0 -1
- package/dist/SegmentedControl-D_ADGpVy.js.map +0 -1
- package/dist/SelectCard-D26y01WZ-BWN9G09J.js.map +0 -1
- package/dist/SelectCardGroup-DxA6P-Q7.js +0 -21
- package/dist/SelectCardGroup-DxA6P-Q7.js.map +0 -1
- package/dist/SideNav-C7wc1_JK.js.map +0 -1
- package/dist/Skeleton-CdzDKQi4.js +0 -215
- package/dist/Skeleton-CdzDKQi4.js.map +0 -1
- package/dist/Spinner-Bc5-_6pK.js.map +0 -1
- package/dist/Stepper-Bp0w8eRW.js.map +0 -1
- package/dist/Switch-BbHIwrGc.js.map +0 -1
- package/dist/Tab-DcOQTX5Z.js.map +0 -1
- package/dist/Text-BDYfD8j4.js.map +0 -1
- package/dist/TextField-Bp1q4hMI-2jGZG2k2.js.map +0 -1
- package/dist/Textarea-CMELRfU8.js.map +0 -1
- package/dist/Toolbar-CYwR6GQG.js.map +0 -1
- package/dist/Tooltip-C-UNrFz3.js +0 -34
- package/dist/Tooltip-C-UNrFz3.js.map +0 -1
- package/dist/toast-C-6NdR43.js.map +0 -1
- package/dist/useLayoutPropsUtil-GT5myWCm-Clw_nEze.js.map +0 -1
- package/dist/useSwipe-DIUHs7T5-DIUHs7T5.js.map +0 -1
- /package/dist/{Alert-DMk5bG5T.css → Alert-C3WoRkeN.css} +0 -0
- /package/dist/{Avatar-C2IfIAxL.css → Avatar-B20IdOEO.css} +0 -0
- /package/dist/{Calendar-Bn00Dnc-.css → Calendar-BT6eeZDr.css} +0 -0
- /package/dist/{Card-BNT0qpxt.css → Card-ZknG-yim.css} +0 -0
- /package/dist/{Chip-DwiMFYBm.css → Chip-_daV8CmM.css} +0 -0
- /package/dist/{Flex-EX9xObMl.css → Flex-CiK7uNUu.css} +0 -0
- /package/dist/{Icon-BrdmZw1i.css → Icon-B6HmlQiR.css} +0 -0
- /package/dist/{Link-CVN5Mwtx.css → Link-Dqp_XXl_.css} +0 -0
- /package/dist/{Overflow-ENfRRD_5.css → Overflow-BrXwlYpn.css} +0 -0
- /package/dist/{Popover-CpyYXmal.css → Popover-CVCAWhdO.css} +0 -0
- /package/dist/{Radio-BlMDLvPw.css → Radio-DiBn0-hf.css} +0 -0
- /package/dist/{SelectCard-D26y01WZ.css → SelectCard-CY8IVFDT.css} +0 -0
- /package/dist/{Text-CN_-FF7J.css → Text-DCvcLCvf.css} +0 -0
- /package/dist/{ThemeProvider-BIeaAmWx.css → ThemeProvider-CR67FJg0.css} +0 -0
- /package/dist/{index-CdSSO4ct.css → index-CKfiQx8n.css} +0 -0
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { useState, useRef, useEffect, forwardRef, useId, createContext, useContext, useCallback, useMemo, cloneElement, isValidElement, Fragment as Fragment$1, useLayoutEffect } from 'react';
|
|
3
3
|
import { c as cx } from './index-tZvMCc77.js';
|
|
4
|
-
import { I as Icon } from './Icon-
|
|
4
|
+
import { I as Icon } from './Icon-B6HmlQiR-BxQkO3X5.js';
|
|
5
5
|
import { a as SvgCheckCircle, S as SvgError, b as SvgInfo } from './check_circle-BGfigqq-.js';
|
|
6
|
-
import {
|
|
6
|
+
import { B as tabbable, C as useDelayGroup, F as FloatingPortal, b as FloatingArrow, p as computePosition, n as autoUpdate, o as offset, f as flip, d as shift, e as arrow$1, l as limitShift, D as useDelayGroupContext, c as useFloating, h as useHover, i as safePolygon, E as useFocus, j as useDismiss, k as useRole, m as useInteractions } from './floating-ui.react-BFNinq1w.js';
|
|
7
7
|
import { a as PortalProviderContext } from './PortalProvider-9lXkQ0xY-BKoGegS1.js';
|
|
8
8
|
import { S as SvgClose } from './close-DZj38AEh.js';
|
|
9
|
-
import { T as Text } from './Text-
|
|
10
|
-
import { B as Button } from './Button-
|
|
11
|
-
import { A as Alert } from './Alert-
|
|
12
|
-
import { F as Flex } from './Flex-
|
|
13
|
-
import { u as useLayoutPropsUtil } from './useLayoutPropsUtil-
|
|
14
|
-
import {
|
|
9
|
+
import { T as Text } from './Text-DCvcLCvf-DlmnnjTR.js';
|
|
10
|
+
import { B as Button } from './Button-BaHFf1AT-BQy-PFB5.js';
|
|
11
|
+
import { A as Alert } from './Alert-C3WoRkeN-D_6Yf63F.js';
|
|
12
|
+
import { F as Flex } from './Flex-CiK7uNUu-BfxHG4L0.js';
|
|
13
|
+
import { u as useLayoutPropsUtil } from './useLayoutPropsUtil-DWACCL8v-CZNrcQT-.js';
|
|
14
|
+
import { H as Helper } from './Helper-h7k80qls-DHPFHTvI.js';
|
|
15
|
+
import { u as useSwipe } from './useSwipe-CULmVQEk-CULmVQEk.js';
|
|
15
16
|
import { S as SrOnly } from './SrOnly-BsKDHetF-B93X65F1.js';
|
|
16
|
-
import { u as useSwipe } from './useSwipe-DIUHs7T5-DIUHs7T5.js';
|
|
17
17
|
import { u as useMergeRefs } from './useMergeRefs-Bde85AWI-Bde85AWI.js';
|
|
18
|
-
import { T as ThemeProvider, a as ThemeProviderContext } from './ThemeProvider-
|
|
18
|
+
import { T as ThemeProvider, a as ThemeProviderContext } from './ThemeProvider-CR67FJg0-DYVRlJRA.js';
|
|
19
19
|
import { g as getKeyboardFocusableElements } from './getKeyboardFocusableElements-QqcABz0D.js';
|
|
20
|
-
import { u as useTooltipLegacyGroup } from './HammerProvider-
|
|
20
|
+
import { u as useTooltipLegacyGroup } from './HammerProvider-CYP98rq3-Dd9GVIyP.js';
|
|
21
21
|
|
|
22
|
-
import './ProgressBar-
|
|
22
|
+
import './ProgressBar-CZhkKwaS.css';/**
|
|
23
23
|
* Convert array of 16 byte values to UUID string format of the form:
|
|
24
24
|
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
25
25
|
*/
|
|
@@ -144,7 +144,7 @@ const getActiveElement = (activeDocument) => {
|
|
|
144
144
|
|
|
145
145
|
const label = "_label_jfzvd_2";
|
|
146
146
|
const required = "_required_jfzvd_46";
|
|
147
|
-
const styles$
|
|
147
|
+
const styles$5 = {
|
|
148
148
|
label: label,
|
|
149
149
|
"top-container": "_top-container_jfzvd_37",
|
|
150
150
|
"label-text": "_label-text_jfzvd_42",
|
|
@@ -157,7 +157,7 @@ const content$1 = "_content_1tuax_2";
|
|
|
157
157
|
const scroller = "_scroller_1tuax_29";
|
|
158
158
|
const arrow = "_arrow_1tuax_32";
|
|
159
159
|
const trigger = "_trigger_1tuax_39";
|
|
160
|
-
const styles$
|
|
160
|
+
const styles$4 = {
|
|
161
161
|
content: content$1,
|
|
162
162
|
scroller: scroller,
|
|
163
163
|
arrow: arrow,
|
|
@@ -218,7 +218,6 @@ function useTooltipContext() {
|
|
|
218
218
|
onFocus: onFocusHandler,
|
|
219
219
|
onBlur: onBlurHandler,
|
|
220
220
|
"aria-haspopup": true,
|
|
221
|
-
"aria-expanded": context.openState,
|
|
222
221
|
"aria-details": context.tooltipId,
|
|
223
222
|
"data-state": context.openState ? "open" : "closed",
|
|
224
223
|
"aria-describedby": context.tooltipId
|
|
@@ -257,7 +256,7 @@ const useTooltipLegacyContext = () => {
|
|
|
257
256
|
return context;
|
|
258
257
|
};
|
|
259
258
|
|
|
260
|
-
const styles$
|
|
259
|
+
const styles$3 = {
|
|
261
260
|
"content-legacy": "_content-legacy_3w3om_3",
|
|
262
261
|
"arrow-legacy": "_arrow-legacy_3w3om_29",
|
|
263
262
|
"trigger-legacy": "_trigger-legacy_3w3om_32"
|
|
@@ -349,7 +348,7 @@ const ToastProvider = ({
|
|
|
349
348
|
}, [isDialogToasterProp]);
|
|
350
349
|
const getToastStackHeight = useCallback(
|
|
351
350
|
(index) => {
|
|
352
|
-
const toastHeightsOnly = toastHeights.filter((
|
|
351
|
+
const toastHeightsOnly = toastHeights.filter((_t, i) => {
|
|
353
352
|
return index !== void 0 ? i > index : true;
|
|
354
353
|
}).map((t) => t.height);
|
|
355
354
|
if (toastHeightsOnly.length > 0) {
|
|
@@ -358,7 +357,7 @@ const ToastProvider = ({
|
|
|
358
357
|
return totalHeight + currentHeight;
|
|
359
358
|
});
|
|
360
359
|
}
|
|
361
|
-
return toastHeightsOnly.filter((
|
|
360
|
+
return toastHeightsOnly.filter((_t, i) => i >= toastHeightsOnly.length - toastsBeforeStack).reduce((totalHeight, currentHeight) => {
|
|
362
361
|
return totalHeight + currentHeight;
|
|
363
362
|
});
|
|
364
363
|
}
|
|
@@ -404,7 +403,7 @@ const hidden = "_hidden_x2c3m_24";
|
|
|
404
403
|
const stacked = "_stacked_x2c3m_89";
|
|
405
404
|
const open = "_open_x2c3m_184";
|
|
406
405
|
const close = "_close_x2c3m_185";
|
|
407
|
-
const styles$
|
|
406
|
+
const styles$2 = {
|
|
408
407
|
popover: popover,
|
|
409
408
|
toaster: toaster,
|
|
410
409
|
hidden: hidden,
|
|
@@ -433,7 +432,7 @@ const useShowMoreButtonPositionStyles = () => {
|
|
|
433
432
|
const extraSpace = totalToasts > toastsBeforeStack + 1 ? "2rem" : "1rem";
|
|
434
433
|
const top = useMemo(() => {
|
|
435
434
|
if (totalToasts > toastsBeforeStack) {
|
|
436
|
-
return toastHeights.filter((
|
|
435
|
+
return toastHeights.filter((_t, i) => i >= totalToasts - toastsBeforeStack).map((t) => t.height).reduce((t, c) => t + c);
|
|
437
436
|
}
|
|
438
437
|
return "unset";
|
|
439
438
|
}, [toastHeights, toastsBeforeStack]);
|
|
@@ -671,7 +670,7 @@ const Toast = forwardRef(
|
|
|
671
670
|
...alertProps
|
|
672
671
|
}, ref) => {
|
|
673
672
|
const { setToastHeights, extraToastsVisible, isDialogToaster } = useToasts();
|
|
674
|
-
const closeToast = useCloseToast(styles$
|
|
673
|
+
const closeToast = useCloseToast(styles$2.close);
|
|
675
674
|
const toastPositionStyles = useToastPositionStyles(index);
|
|
676
675
|
const toastWrapperRef = useRef(null);
|
|
677
676
|
const timerRef = useRef();
|
|
@@ -679,18 +678,18 @@ const Toast = forwardRef(
|
|
|
679
678
|
const createdAtRef = useRef(createdAt ?? 0);
|
|
680
679
|
const hasBeenStackedRef = useRef(false);
|
|
681
680
|
const [transitionClass, setTransitionClass] = useState(
|
|
682
|
-
styles$
|
|
681
|
+
styles$2.hidden
|
|
683
682
|
);
|
|
684
683
|
const [toastOpened, setToastOpened] = useState(false);
|
|
685
684
|
const duration = actions ? false : durationProp;
|
|
686
685
|
const alertClasses = cx(
|
|
687
|
-
styles$
|
|
686
|
+
styles$2["toast-alert"],
|
|
688
687
|
toastClassName,
|
|
689
688
|
transitionClass
|
|
690
689
|
);
|
|
691
690
|
useEffect(() => {
|
|
692
691
|
if (!toastOpened) {
|
|
693
|
-
setTransitionClass(styles$
|
|
692
|
+
setTransitionClass(styles$2.open);
|
|
694
693
|
setTimeout(() => {
|
|
695
694
|
setTransitionClass(void 0);
|
|
696
695
|
}, ANIMATION_DURATION);
|
|
@@ -799,7 +798,7 @@ const Toast = forwardRef(
|
|
|
799
798
|
hasMessage ? /* @__PURE__ */ jsx(
|
|
800
799
|
"div",
|
|
801
800
|
{
|
|
802
|
-
className: styles$
|
|
801
|
+
className: styles$2["message-container"],
|
|
803
802
|
id: `toast-message-${alertProps.id}`,
|
|
804
803
|
children: message
|
|
805
804
|
}
|
|
@@ -817,7 +816,7 @@ const Toast = forwardRef(
|
|
|
817
816
|
value: progress
|
|
818
817
|
}
|
|
819
818
|
) }) : null,
|
|
820
|
-
actions ? /* @__PURE__ */ jsxs("div", { className: styles$
|
|
819
|
+
actions ? /* @__PURE__ */ jsxs("div", { className: styles$2["alert-action"], children: [
|
|
821
820
|
/* @__PURE__ */ jsx(
|
|
822
821
|
Button,
|
|
823
822
|
{
|
|
@@ -846,45 +845,6 @@ const Toast = forwardRef(
|
|
|
846
845
|
);
|
|
847
846
|
Toast.displayName = "Toast";
|
|
848
847
|
|
|
849
|
-
const helper = "_helper_157uk_1";
|
|
850
|
-
const messages = "_messages_157uk_8";
|
|
851
|
-
const styles$2 = {
|
|
852
|
-
helper: helper,
|
|
853
|
-
messages: messages};
|
|
854
|
-
|
|
855
|
-
const Helper = forwardRef((props, ref) => {
|
|
856
|
-
const {
|
|
857
|
-
id,
|
|
858
|
-
hint,
|
|
859
|
-
description,
|
|
860
|
-
errorAriaLive = "assertive",
|
|
861
|
-
errorMessage,
|
|
862
|
-
maxLength,
|
|
863
|
-
isTyping,
|
|
864
|
-
inputLength = 0,
|
|
865
|
-
showCounter
|
|
866
|
-
} = props;
|
|
867
|
-
return /* @__PURE__ */ jsxs("div", { className: styles$2["helper"], ref, id, children: [
|
|
868
|
-
/* @__PURE__ */ jsx(
|
|
869
|
-
FieldMessage,
|
|
870
|
-
{
|
|
871
|
-
className: styles$2["messages"],
|
|
872
|
-
hint,
|
|
873
|
-
description,
|
|
874
|
-
errorAriaLive,
|
|
875
|
-
errorMessage
|
|
876
|
-
}
|
|
877
|
-
),
|
|
878
|
-
showCounter ? /* @__PURE__ */ jsx("div", { className: styles$2["counter"], children: /* @__PURE__ */ jsxs("span", { "aria-hidden": "true", children: [
|
|
879
|
-
inputLength,
|
|
880
|
-
"/",
|
|
881
|
-
maxLength
|
|
882
|
-
] }) }) : null,
|
|
883
|
-
isTyping && !!maxLength ? maxLength - inputLength >= 1 ? /* @__PURE__ */ jsx(SrOnly, { children: /* @__PURE__ */ jsx("span", { "aria-live": "polite", "aria-atomic": "true", children: `${maxLength - inputLength} character${maxLength - inputLength !== 1 ? "s" : ""} left` }) }) : /* @__PURE__ */ jsx(SrOnly, { children: /* @__PURE__ */ jsx("span", { role: "alert", children: "Maximum characters count reached" }) }) : null
|
|
884
|
-
] });
|
|
885
|
-
});
|
|
886
|
-
Helper.displayName = "Helper";
|
|
887
|
-
|
|
888
848
|
function useHotkeyFocus({
|
|
889
849
|
disabled,
|
|
890
850
|
hotkey,
|
|
@@ -1043,10 +1003,10 @@ const ToastStack = forwardRef(
|
|
|
1043
1003
|
const showMoreButton = !extraToastsVisible && toastCount > toastsBeforeStack;
|
|
1044
1004
|
const extraToastsLength = toastCount - toastsBeforeStack;
|
|
1045
1005
|
const showMoreButtonText = `${extraToastsLength} more message${extraToastsLength > 1 ? "s" : ""}`;
|
|
1046
|
-
const toastStackClasses = cx(styles$
|
|
1047
|
-
[styles$
|
|
1048
|
-
[styles$
|
|
1049
|
-
[styles$
|
|
1006
|
+
const toastStackClasses = cx(styles$2["toast-stack"], className, {
|
|
1007
|
+
[styles$2["show-more-button"]]: showMoreButton,
|
|
1008
|
+
[styles$2["show-extra-toast"]]: extraToastsVisible,
|
|
1009
|
+
[styles$2["disable-animations"]]: disableAnimations
|
|
1050
1010
|
});
|
|
1051
1011
|
const handleToastStackFocusHover = () => {
|
|
1052
1012
|
if (toastPausedStatus === "resumed" || toastPausedStatus === void 0) {
|
|
@@ -1089,13 +1049,13 @@ const ToastStack = forwardRef(
|
|
|
1089
1049
|
const isStacked = !extraToastsVisible && index < toastCount - toastsBeforeStack;
|
|
1090
1050
|
const isLastToastDisplayed = index === toastCount - toastsBeforeStack;
|
|
1091
1051
|
const isHidden = index < toastCount - toastsBeforeStack - 2;
|
|
1092
|
-
const toastClasses = cx(styles$
|
|
1093
|
-
const toastContainerClasses = cx(styles$
|
|
1094
|
-
[styles$
|
|
1095
|
-
[styles$
|
|
1096
|
-
[styles$
|
|
1097
|
-
[styles$
|
|
1098
|
-
[styles$
|
|
1052
|
+
const toastClasses = cx(styles$2.toast, toastClassName);
|
|
1053
|
+
const toastContainerClasses = cx(styles$2["toast-wrapper"], {
|
|
1054
|
+
[styles$2.stacked]: isStacked || isLastToastDisplayed,
|
|
1055
|
+
[styles$2["stack-one"]]: isStacked && index === toastCount - toastsBeforeStack - 1,
|
|
1056
|
+
[styles$2["stack-two"]]: isStacked && index === toastCount - toastsBeforeStack - 2,
|
|
1057
|
+
[styles$2["stacked-extra"]]: isHidden,
|
|
1058
|
+
[styles$2["stacked-show-extra"]]: extraToastsVisible
|
|
1099
1059
|
});
|
|
1100
1060
|
const handleOnClose = (e) => {
|
|
1101
1061
|
onClose?.(e);
|
|
@@ -1122,12 +1082,12 @@ const ToastStack = forwardRef(
|
|
|
1122
1082
|
showMoreButton && /* @__PURE__ */ jsx(
|
|
1123
1083
|
"div",
|
|
1124
1084
|
{
|
|
1125
|
-
className: styles$
|
|
1085
|
+
className: styles$2["show-more-button-container"],
|
|
1126
1086
|
style: showMoreButtonPositionStyles,
|
|
1127
1087
|
children: /* @__PURE__ */ jsx(
|
|
1128
1088
|
Button,
|
|
1129
1089
|
{
|
|
1130
|
-
className: styles$
|
|
1090
|
+
className: styles$2["show-collapse-button"],
|
|
1131
1091
|
onClick: handleShowMoreButtonClick,
|
|
1132
1092
|
appearance: "secondary",
|
|
1133
1093
|
tabIndex: 0,
|
|
@@ -1144,10 +1104,10 @@ const ToastStack = forwardRef(
|
|
|
1144
1104
|
]
|
|
1145
1105
|
}
|
|
1146
1106
|
),
|
|
1147
|
-
extraToastsVisible && /* @__PURE__ */ jsx("div", { className: styles$
|
|
1107
|
+
extraToastsVisible && /* @__PURE__ */ jsx("div", { className: styles$2["show-collapse-button-container"], children: /* @__PURE__ */ jsx(
|
|
1148
1108
|
Button,
|
|
1149
1109
|
{
|
|
1150
|
-
className: styles$
|
|
1110
|
+
className: styles$2["show-collapse-button"],
|
|
1151
1111
|
onClick: handleToastStackBlur,
|
|
1152
1112
|
appearance: "secondary",
|
|
1153
1113
|
children: "Collapse Messages"
|
|
@@ -1207,7 +1167,7 @@ const ToasterPopover = forwardRef(
|
|
|
1207
1167
|
}
|
|
1208
1168
|
};
|
|
1209
1169
|
}, [toastCount, isDialogToaster]);
|
|
1210
|
-
return /* @__PURE__ */ jsx("div", { ref: combinedRef, className: styles$
|
|
1170
|
+
return /* @__PURE__ */ jsx("div", { ref: combinedRef, className: styles$2.popover, popover: "manual", children: props.children });
|
|
1211
1171
|
}
|
|
1212
1172
|
);
|
|
1213
1173
|
ToasterPopover.displayName = "ToasterPopover";
|
|
@@ -1275,7 +1235,7 @@ const ToasterContent = forwardRef(
|
|
|
1275
1235
|
});
|
|
1276
1236
|
dispatchEvent(DialogToasterEvent);
|
|
1277
1237
|
}, [isDialogToaster]);
|
|
1278
|
-
const closeToast = useCloseToast(styles$
|
|
1238
|
+
const closeToast = useCloseToast(styles$2.close);
|
|
1279
1239
|
useEffect(() => {
|
|
1280
1240
|
let timeout;
|
|
1281
1241
|
updateDialogToasterStorage(isDialogToaster);
|
|
@@ -1374,8 +1334,8 @@ const ToasterContent = forwardRef(
|
|
|
1374
1334
|
updateDialogToasterStorage(false);
|
|
1375
1335
|
};
|
|
1376
1336
|
}, []);
|
|
1377
|
-
const toasterClasses = cx(styles$
|
|
1378
|
-
[styles$
|
|
1337
|
+
const toasterClasses = cx(styles$2.toaster, {
|
|
1338
|
+
[styles$2["hidden"]]: shouldHideToaster,
|
|
1379
1339
|
[`${className}`]: className != null
|
|
1380
1340
|
});
|
|
1381
1341
|
return /* @__PURE__ */ jsx(
|
|
@@ -1731,9 +1691,78 @@ function useDrawerContext() {
|
|
|
1731
1691
|
}
|
|
1732
1692
|
DrawerElement.displayName = "Drawer";
|
|
1733
1693
|
const Drawer = Object.assign(DrawerElement, {
|
|
1694
|
+
/**
|
|
1695
|
+
* Header component for the drawer that displays a title and close button.
|
|
1696
|
+
*
|
|
1697
|
+
* Features:
|
|
1698
|
+
* - Displays the drawer title as a headline
|
|
1699
|
+
* - Includes an accessible close button
|
|
1700
|
+
* - Sticky positioning at the top of the drawer
|
|
1701
|
+
* - Proper semantic HTML structure
|
|
1702
|
+
* - Accessible with proper ARIA attributes
|
|
1703
|
+
* - Consistent styling with the design system
|
|
1704
|
+
* - Automatic close functionality
|
|
1705
|
+
*
|
|
1706
|
+
* @example
|
|
1707
|
+
* <Drawer.Header>Settings</Drawer.Header>
|
|
1708
|
+
*/
|
|
1734
1709
|
Header: DrawerHeader,
|
|
1710
|
+
/**
|
|
1711
|
+
* Footer component for the drawer that displays action buttons and controls.
|
|
1712
|
+
*
|
|
1713
|
+
* Features:
|
|
1714
|
+
* - Flexible layout for action buttons and controls
|
|
1715
|
+
* - Optional sticky positioning at the bottom
|
|
1716
|
+
* - Proper semantic HTML structure
|
|
1717
|
+
* - Accessible with proper ARIA attributes
|
|
1718
|
+
* - Consistent styling with the design system
|
|
1719
|
+
* - Supports all standard footer element props
|
|
1720
|
+
* - Responsive design that adapts to content
|
|
1721
|
+
*
|
|
1722
|
+
* @example
|
|
1723
|
+
* <Drawer.Footer sticky>
|
|
1724
|
+
* <Button onClick={handleSave}>Save</Button>
|
|
1725
|
+
* <Drawer.CancelButton>Cancel</Drawer.CancelButton>
|
|
1726
|
+
* </Drawer.Footer>
|
|
1727
|
+
*/
|
|
1735
1728
|
Footer: DrawerFooter,
|
|
1729
|
+
/**
|
|
1730
|
+
* Content container for the drawer that holds the main content area.
|
|
1731
|
+
*
|
|
1732
|
+
* Features:
|
|
1733
|
+
* - Flexible content area with proper spacing
|
|
1734
|
+
* - Scrollable content when needed
|
|
1735
|
+
* - Proper semantic HTML structure
|
|
1736
|
+
* - Accessible with proper ARIA attributes
|
|
1737
|
+
* - Consistent styling with the design system
|
|
1738
|
+
* - Supports all standard div element props
|
|
1739
|
+
* - Responsive design that adapts to content
|
|
1740
|
+
* - Proper focus management
|
|
1741
|
+
*
|
|
1742
|
+
* @example
|
|
1743
|
+
* <Drawer.Content>
|
|
1744
|
+
* <p>This is the main content of the drawer.</p>
|
|
1745
|
+
* <p>It can contain any type of content.</p>
|
|
1746
|
+
* </Drawer.Content>
|
|
1747
|
+
*/
|
|
1736
1748
|
Content: DrawerContent,
|
|
1749
|
+
/**
|
|
1750
|
+
* A button component that automatically closes the drawer when clicked.
|
|
1751
|
+
*
|
|
1752
|
+
* Features:
|
|
1753
|
+
* - Automatically closes the drawer when clicked
|
|
1754
|
+
* - Extends Button component functionality
|
|
1755
|
+
* - Accessible with proper ARIA attributes
|
|
1756
|
+
* - Consistent styling with the design system
|
|
1757
|
+
* - Supports all standard button props
|
|
1758
|
+
* - Proper focus management
|
|
1759
|
+
* - Can be used anywhere within the drawer context
|
|
1760
|
+
*
|
|
1761
|
+
* @example
|
|
1762
|
+
* <Drawer.CancelButton appearance="ghost" size="small">
|
|
1763
|
+
* Cancel
|
|
1764
|
+
* </Drawer.CancelButton>
|
|
1765
|
+
*/
|
|
1737
1766
|
CancelButton: DrawerCancelButton
|
|
1738
1767
|
});
|
|
1739
1768
|
|
|
@@ -1752,7 +1781,7 @@ const TooltipLegacyContent = forwardRef(function TooltipLegacyContent2({ style,
|
|
|
1752
1781
|
useDelayGroup(floatingContext, { id });
|
|
1753
1782
|
const ref = useMergeRefs([context.refs.setFloating, propRef]);
|
|
1754
1783
|
if (!floatingContext.open) return null;
|
|
1755
|
-
const contentCx = cx(styles$
|
|
1784
|
+
const contentCx = cx(styles$3["content-legacy"], className);
|
|
1756
1785
|
return /* @__PURE__ */ jsx(
|
|
1757
1786
|
FloatingPortal,
|
|
1758
1787
|
{
|
|
@@ -1775,7 +1804,7 @@ const TooltipLegacyContent = forwardRef(function TooltipLegacyContent2({ style,
|
|
|
1775
1804
|
{
|
|
1776
1805
|
ref: context.arrowRef,
|
|
1777
1806
|
context: floatingContext,
|
|
1778
|
-
className: styles$
|
|
1807
|
+
className: styles$3["arrow-legacy"]
|
|
1779
1808
|
}
|
|
1780
1809
|
),
|
|
1781
1810
|
props.children
|
|
@@ -1802,7 +1831,7 @@ const TooltipContentElement = forwardRef(
|
|
|
1802
1831
|
} = props;
|
|
1803
1832
|
const context = useTooltipContext();
|
|
1804
1833
|
const { mode: currentMode } = useContext(ThemeProviderContext);
|
|
1805
|
-
const tooltipClassNames = cx(className, styles$
|
|
1834
|
+
const tooltipClassNames = cx(className, styles$4["content"]);
|
|
1806
1835
|
const childrenRef = useRef(null);
|
|
1807
1836
|
const focusItems = useRef();
|
|
1808
1837
|
const combinedStyles = {
|
|
@@ -1814,7 +1843,6 @@ const TooltipContentElement = forwardRef(
|
|
|
1814
1843
|
if (!childrenRef.current) return;
|
|
1815
1844
|
const focusElements = getKeyboardFocusableElements(childrenRef.current);
|
|
1816
1845
|
focusItems.current = focusElements;
|
|
1817
|
-
console.log("currentMode", currentMode);
|
|
1818
1846
|
}, [childrenRef, children, context?.open]);
|
|
1819
1847
|
useLayoutEffect(() => {
|
|
1820
1848
|
if (id) {
|
|
@@ -1870,7 +1898,7 @@ const TooltipContentElement = forwardRef(
|
|
|
1870
1898
|
/* @__PURE__ */ jsx(
|
|
1871
1899
|
"div",
|
|
1872
1900
|
{
|
|
1873
|
-
className: styles$
|
|
1901
|
+
className: styles$4.scroller,
|
|
1874
1902
|
role: "presentation",
|
|
1875
1903
|
tabIndex: -1,
|
|
1876
1904
|
ref: childrenRef,
|
|
@@ -1879,7 +1907,7 @@ const TooltipContentElement = forwardRef(
|
|
|
1879
1907
|
},
|
|
1880
1908
|
context?.tooltip.key
|
|
1881
1909
|
),
|
|
1882
|
-
/* @__PURE__ */ jsx("span", { className: styles$
|
|
1910
|
+
/* @__PURE__ */ jsx("span", { className: styles$4["arrow"], ref: context?.tooltip.arrowRef, children: /* @__PURE__ */ jsxs("svg", { "aria-hidden": "true", width: "14", height: "14", viewBox: "0 0 14 14", children: [
|
|
1883
1911
|
/* @__PURE__ */ jsx("path", { stroke: "none", d: "M0,0 H14 L7,7 Q7,7 7,7 Z" }),
|
|
1884
1912
|
/* @__PURE__ */ jsx("clipPath", { id: ":r9:", children: /* @__PURE__ */ jsx("rect", { x: "0", y: "0", width: "14", height: "14" }) })
|
|
1885
1913
|
] }) })
|
|
@@ -1908,7 +1936,7 @@ const TooltipLegacyTrigger = forwardRef(function TooltipLegacyTrigger2({ childre
|
|
|
1908
1936
|
"span",
|
|
1909
1937
|
{
|
|
1910
1938
|
ref,
|
|
1911
|
-
className: cx([styles$
|
|
1939
|
+
className: cx([styles$3["trigger-legacy"]], className),
|
|
1912
1940
|
"data-anv": "tooltip-trigger",
|
|
1913
1941
|
"data-state": context.open ? "open" : "closed",
|
|
1914
1942
|
...restOfContextProps,
|
|
@@ -1917,6 +1945,13 @@ const TooltipLegacyTrigger = forwardRef(function TooltipLegacyTrigger2({ childre
|
|
|
1917
1945
|
);
|
|
1918
1946
|
});
|
|
1919
1947
|
|
|
1948
|
+
const INTERACTIVE_ELEMENTS = ["button", "a", "input", "textarea", "select"];
|
|
1949
|
+
function isNonInteractiveElement(element) {
|
|
1950
|
+
if (!isValidElement(element)) return false;
|
|
1951
|
+
const type = element.type;
|
|
1952
|
+
return typeof type === "string" && !INTERACTIVE_ELEMENTS.includes(type);
|
|
1953
|
+
}
|
|
1954
|
+
|
|
1920
1955
|
const TooltipTriggerElement = forwardRef(
|
|
1921
1956
|
function TooltipTrigger2(props, propRef) {
|
|
1922
1957
|
const { children, className, onKeyDown, onFocus, onBlur, ...rest } = props;
|
|
@@ -1926,17 +1961,24 @@ const TooltipTriggerElement = forwardRef(
|
|
|
1926
1961
|
[children]
|
|
1927
1962
|
);
|
|
1928
1963
|
const refs = useMergeRefs([children?.ref, context?.invoker.ref]);
|
|
1929
|
-
const childProps = useMemo(
|
|
1930
|
-
|
|
1964
|
+
const childProps = useMemo(() => {
|
|
1965
|
+
const baseProps = {
|
|
1931
1966
|
ref: refs,
|
|
1932
1967
|
"aria-haspopup": context?.invoker["aria-haspopup"],
|
|
1933
|
-
"aria-expanded": context?.invoker["aria-expanded"],
|
|
1934
1968
|
"aria-details": context?.invoker["aria-details"],
|
|
1935
1969
|
"data-state": context?.invoker["data-state"],
|
|
1936
1970
|
"aria-describedby": context?.invoker["aria-describedby"]
|
|
1937
|
-
}
|
|
1938
|
-
|
|
1939
|
-
|
|
1971
|
+
};
|
|
1972
|
+
if (isNonInteractiveElement(children)) {
|
|
1973
|
+
if (!("tabIndex" in (children.props || {}))) {
|
|
1974
|
+
baseProps.tabIndex = 0;
|
|
1975
|
+
}
|
|
1976
|
+
if (!("role" in (children.props || {}))) {
|
|
1977
|
+
baseProps.role = "button";
|
|
1978
|
+
}
|
|
1979
|
+
}
|
|
1980
|
+
return baseProps;
|
|
1981
|
+
}, [context?.invoker, refs, children]);
|
|
1940
1982
|
const child = childCanAcceptRef ? cloneElement(children, childProps) : /* @__PURE__ */ jsx("span", { ...childProps, children });
|
|
1941
1983
|
const onKeyDownHandler = (e) => {
|
|
1942
1984
|
onKeyDown?.(e);
|
|
@@ -1980,7 +2022,7 @@ const TooltipTriggerElement = forwardRef(
|
|
|
1980
2022
|
return /* @__PURE__ */ jsx(
|
|
1981
2023
|
"span",
|
|
1982
2024
|
{
|
|
1983
|
-
className: cx([styles$
|
|
2025
|
+
className: cx([styles$4["trigger"]], className),
|
|
1984
2026
|
"data-anv": "tooltip-trigger",
|
|
1985
2027
|
ref: propRef,
|
|
1986
2028
|
onKeyDown: onKeyDownHandler,
|
|
@@ -2284,7 +2326,43 @@ const TooltipElement = (props) => {
|
|
|
2284
2326
|
return /* @__PURE__ */ jsx(TooltipContext.Provider, { value, children });
|
|
2285
2327
|
};
|
|
2286
2328
|
const Tooltip = Object.assign(TooltipElement, {
|
|
2329
|
+
/**
|
|
2330
|
+
* TooltipTrigger component that wraps the element that triggers the tooltip.
|
|
2331
|
+
*
|
|
2332
|
+
* Features:
|
|
2333
|
+
* - Wraps any React element to make it a tooltip trigger
|
|
2334
|
+
* - Handles mouse and keyboard interactions
|
|
2335
|
+
* - Provides proper ARIA attributes for accessibility
|
|
2336
|
+
* - Supports all standard HTML element props
|
|
2337
|
+
* - Automatically clones child elements with proper refs
|
|
2338
|
+
* - Handles both focusable and non-focusable children
|
|
2339
|
+
* - Manages mouse enter/leave events for hover behavior
|
|
2340
|
+
*
|
|
2341
|
+
* @example
|
|
2342
|
+
* <Tooltip.Trigger>
|
|
2343
|
+
* <Button>Click me</Button>
|
|
2344
|
+
* </Tooltip.Trigger>
|
|
2345
|
+
*/
|
|
2287
2346
|
Trigger: TooltipTrigger,
|
|
2347
|
+
/**
|
|
2348
|
+
* TooltipContent component that displays the tooltip content.
|
|
2349
|
+
*
|
|
2350
|
+
* Features:
|
|
2351
|
+
* - Displays the tooltip content with proper positioning
|
|
2352
|
+
* - Includes an arrow pointing to the trigger element
|
|
2353
|
+
* - Supports keyboard navigation and escape key to close
|
|
2354
|
+
* - Handles mouse interactions for hover behavior
|
|
2355
|
+
* - Accessible with proper ARIA roles
|
|
2356
|
+
* - Supports all standard div element props
|
|
2357
|
+
* - Automatic focus management for keyboard navigation
|
|
2358
|
+
* - Real-time position updates
|
|
2359
|
+
* - Handles both string and complex content
|
|
2360
|
+
*
|
|
2361
|
+
* @example
|
|
2362
|
+
* <Tooltip.Content>
|
|
2363
|
+
* This tooltip provides helpful context
|
|
2364
|
+
* </Tooltip.Content>
|
|
2365
|
+
*/
|
|
2288
2366
|
Content: TooltipContent,
|
|
2289
2367
|
Context: TooltipContext
|
|
2290
2368
|
});
|
|
@@ -2312,21 +2390,21 @@ const LabelMoreInfoIcon = ({
|
|
|
2312
2390
|
offset: 5,
|
|
2313
2391
|
fallbackPlacements: ["right", "bottom", "left"],
|
|
2314
2392
|
children: [
|
|
2315
|
-
/* @__PURE__ */ jsx(Tooltip.Trigger, { className: styles$
|
|
2316
|
-
/* @__PURE__ */ jsx(Tooltip.Content, { className: styles$
|
|
2393
|
+
/* @__PURE__ */ jsx(Tooltip.Trigger, { className: styles$5["info-trigger"], children: /* @__PURE__ */ jsx(Icon, { svg: SvgInfo }) }),
|
|
2394
|
+
/* @__PURE__ */ jsx(Tooltip.Content, { className: styles$5["info-content"], children: moreInfo })
|
|
2317
2395
|
]
|
|
2318
2396
|
}
|
|
2319
2397
|
);
|
|
2320
2398
|
};
|
|
2321
2399
|
const Label = forwardRef((props, ref) => {
|
|
2322
2400
|
const { children, className, moreInfo, required, openMoreInfo, ...rest } = props;
|
|
2323
|
-
const LabelClassNames = cx([styles$
|
|
2401
|
+
const LabelClassNames = cx([styles$5["label"]], className);
|
|
2324
2402
|
return /* @__PURE__ */ jsxs("label", { className: LabelClassNames, "data-anv": "label", ref, ...rest, children: [
|
|
2325
|
-
/* @__PURE__ */ jsxs("div", { className: styles$
|
|
2326
|
-
/* @__PURE__ */ jsxs("span", { className: styles$
|
|
2403
|
+
/* @__PURE__ */ jsxs("div", { className: styles$5["top-container"], "aria-atomic": "true", children: [
|
|
2404
|
+
/* @__PURE__ */ jsxs("span", { className: styles$5["label-text"], children: [
|
|
2327
2405
|
children,
|
|
2328
2406
|
required ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2329
|
-
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: styles$
|
|
2407
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": true, className: styles$5["required"], children: "*" }),
|
|
2330
2408
|
/* @__PURE__ */ jsx(SrOnly, { children: "Required" })
|
|
2331
2409
|
] }) : null
|
|
2332
2410
|
] }),
|
|
@@ -2455,5 +2533,5 @@ const ProgressBar = forwardRef(
|
|
|
2455
2533
|
);
|
|
2456
2534
|
ProgressBar.displayName = "ProgressBar";
|
|
2457
2535
|
|
|
2458
|
-
export { DrawerCancelButton as D,
|
|
2459
|
-
//# sourceMappingURL=ProgressBar-
|
|
2536
|
+
export { DrawerCancelButton as D, Label as L, ProgressBar as P, TooltipTrigger as T, DrawerFooter as a, DrawerHeader as b, DrawerContent as c, Drawer as d, TooltipContent as e, Tooltip as f, getActiveElement as g, Toaster as h, DialogContext as i, useKeyboardFocusables as j, useDialogScrollLock as k, ToastProvider as l, ToasterPopover as m, ToasterContent as n, DrawerContext as o, safeShowPopover as p, safeHidePopover as q, supportsPopover as s, toast as t, useDialogTransitionStates as u };
|
|
2537
|
+
//# sourceMappingURL=ProgressBar-CZhkKwaS-BppwbCSh.js.map
|