@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,29 +1,242 @@
|
|
|
1
1
|
import { StepperProps as CoreStepperProps, StepperListProps as CoreStepperListProps, StepperStepProps as CoreStepperStepProps, StepperPanelProps as CoreStepperPanelProps, StepperNextButtonProps as CoreStepperNextButtonProps, StepperPrevButtonProps as CoreStepperPrevButtonProps, StepperFinalPanelProps as CoreStepperFinalPanelProps } from '@servicetitan/hammer-react';
|
|
2
2
|
import { DataTrackingId } from '../../types/DataTrackingId';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the Stepper component
|
|
5
|
+
* @property {number} [defaultIndex] - Default step to start on
|
|
6
|
+
* @property {boolean} [allowNavigateToPrevStep] - Allows users to navigate to previous steps
|
|
7
|
+
* @property {function} [onChange] - Returns current step data when step changes
|
|
8
|
+
* @property {function} [onComplete] - Called when all steps are completed
|
|
9
|
+
* @extends ComponentPropsWithoutRef<"div">
|
|
10
|
+
* @extends LayoutUtilProps
|
|
11
|
+
*/
|
|
3
12
|
export type StepperProps = CoreStepperProps;
|
|
13
|
+
/**
|
|
14
|
+
* Props for the StepperList component
|
|
15
|
+
* @extends ComponentPropsWithoutRef<"div">
|
|
16
|
+
*/
|
|
4
17
|
export type StepperListProps = CoreStepperListProps;
|
|
18
|
+
/**
|
|
19
|
+
* Props for the StepperStep component
|
|
20
|
+
* @property {string} controls - ID of the panel that this step is controlling
|
|
21
|
+
* @property {function} [onClick] - Called when the step is clicked
|
|
22
|
+
* @extends ComponentPropsWithoutRef<"button">
|
|
23
|
+
*/
|
|
5
24
|
export type StepperStepProps = CoreStepperStepProps;
|
|
25
|
+
/**
|
|
26
|
+
* Props for the StepperPanel component
|
|
27
|
+
* @property {string} id - Unique identifier for the panel
|
|
28
|
+
* @extends ComponentPropsWithoutRef<"div">
|
|
29
|
+
* @extends LayoutUtilProps
|
|
30
|
+
*/
|
|
6
31
|
export type StepperPanelProps = CoreStepperPanelProps;
|
|
32
|
+
/**
|
|
33
|
+
* Props for the StepperNextButton component
|
|
34
|
+
* @property {string} [nextLabel] - Label for the next button
|
|
35
|
+
* @property {string} [completeLabel] - Label for the complete button
|
|
36
|
+
* @property {function} [onClick] - Called when the "Next" button is clicked
|
|
37
|
+
* @extends ButtonProps
|
|
38
|
+
* @extends DataTrackingId
|
|
39
|
+
*/
|
|
7
40
|
export type StepperNextButtonProps = CoreStepperNextButtonProps & DataTrackingId;
|
|
41
|
+
/**
|
|
42
|
+
* Props for the StepperPrevButton component
|
|
43
|
+
* @property {string} [label] - Label for the previous button
|
|
44
|
+
* @extends ButtonProps
|
|
45
|
+
* @extends DataTrackingId
|
|
46
|
+
*/
|
|
8
47
|
export type StepperPrevButtonProps = CoreStepperPrevButtonProps & DataTrackingId;
|
|
48
|
+
/**
|
|
49
|
+
* Props for the StepperFinalPanel component
|
|
50
|
+
* @extends ComponentPropsWithoutRef<"div">
|
|
51
|
+
* @extends LayoutUtilProps
|
|
52
|
+
*/
|
|
9
53
|
export type StepperFinalPanelProps = CoreStepperFinalPanelProps;
|
|
54
|
+
/**
|
|
55
|
+
* Container component for organizing and displaying stepper steps.
|
|
56
|
+
*
|
|
57
|
+
* Features:
|
|
58
|
+
* - Groups multiple stepper steps together
|
|
59
|
+
* - Displays current step label
|
|
60
|
+
* - Responsive design with mobile-friendly layout
|
|
61
|
+
* - Accessible with proper ARIA roles
|
|
62
|
+
* - Automatic step organization
|
|
63
|
+
* - Visual step indicators
|
|
64
|
+
* - Context-based current step display
|
|
65
|
+
* - Flexible layout with CSS Grid/Flexbox
|
|
66
|
+
* - Container queries for responsive behavior
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* <Stepper.List>
|
|
70
|
+
* <Stepper.Step controls="step1">Step 1</Stepper.Step>
|
|
71
|
+
* <Stepper.Step controls="step2">Step 2</Stepper.Step>
|
|
72
|
+
* <Stepper.Step controls="step3">Step 3</Stepper.Step>
|
|
73
|
+
* </Stepper.List>
|
|
74
|
+
*/
|
|
10
75
|
export declare const StepperList: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
76
|
+
/**
|
|
77
|
+
* Individual step component for the Stepper.
|
|
78
|
+
*
|
|
79
|
+
* Features:
|
|
80
|
+
* - Visual progress indicator with animated bar
|
|
81
|
+
* - Check icon for completed steps
|
|
82
|
+
* - Keyboard navigation support
|
|
83
|
+
* - Accessible with proper ARIA attributes
|
|
84
|
+
* - Click handling for step navigation
|
|
85
|
+
* - Visual states for current, completed, and future steps
|
|
86
|
+
* - Responsive design with mobile-friendly layout
|
|
87
|
+
* - Focus management for keyboard users
|
|
88
|
+
* - Custom styling support
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* <Stepper.Step controls="step1">
|
|
92
|
+
* Personal Information
|
|
93
|
+
* </Stepper.Step>
|
|
94
|
+
*/
|
|
11
95
|
export declare const StepperStep: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "onClick" | "disabled"> & {
|
|
12
96
|
controls: string;
|
|
13
97
|
onClick?: (e: import('react').MouseEvent<HTMLButtonElement>, index?: number) => void;
|
|
14
98
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
99
|
+
/**
|
|
100
|
+
* Content panel component for displaying step content in the Stepper.
|
|
101
|
+
*
|
|
102
|
+
* Features:
|
|
103
|
+
* - Displays content for the current step only
|
|
104
|
+
* - Smooth fade-in/fade-out animations
|
|
105
|
+
* - Automatic overflow handling with scroll support
|
|
106
|
+
* - Accessible with proper ARIA roles
|
|
107
|
+
* - Layout utilities for positioning and spacing
|
|
108
|
+
* - Motion animations for smooth transitions
|
|
109
|
+
* - Focus management for keyboard navigation
|
|
110
|
+
* - Responsive design with flexible layout
|
|
111
|
+
* - Context-based visibility control
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* <Stepper.Panel id="step1">
|
|
115
|
+
* <h2>Personal Information</h2>
|
|
116
|
+
* <form>
|
|
117
|
+
* <label htmlFor="name">Name:</label>
|
|
118
|
+
* <input id="name" type="text" />
|
|
119
|
+
* </form>
|
|
120
|
+
* </Stepper.Panel>
|
|
121
|
+
*/
|
|
15
122
|
export declare const StepperPanel: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "onDrag" | "onDragEnd" | "onDragStart" | "onAnimationStart"> & import('@servicetitan/hammer-react').LayoutUtilProps & {
|
|
16
123
|
id: string;
|
|
17
124
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
125
|
+
/**
|
|
126
|
+
* Final panel component displayed when all stepper steps are completed.
|
|
127
|
+
*
|
|
128
|
+
* Features:
|
|
129
|
+
* - Displays only when all steps are completed
|
|
130
|
+
* - Smooth fade-in animation on completion
|
|
131
|
+
* - Automatic overflow handling with scroll support
|
|
132
|
+
* - Accessible with proper ARIA roles
|
|
133
|
+
* - Layout utilities for positioning and spacing
|
|
134
|
+
* - Motion animations for smooth transitions
|
|
135
|
+
* - Focus management for keyboard navigation
|
|
136
|
+
* - Responsive design with flexible layout
|
|
137
|
+
* - Context-based visibility control
|
|
138
|
+
*
|
|
139
|
+
* @example
|
|
140
|
+
* <Stepper.FinalPanel>
|
|
141
|
+
* <h2>Congratulations!</h2>
|
|
142
|
+
* <p>You have successfully completed all steps.</p>
|
|
143
|
+
* <Button onClick={handleSubmit}>Submit</Button>
|
|
144
|
+
* </Stepper.FinalPanel>
|
|
145
|
+
*/
|
|
18
146
|
export declare const StepperFinalPanel: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "onDrag" | "onDragEnd" | "onDragStart" | "onAnimationStart"> & import('@servicetitan/hammer-react').LayoutUtilProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
147
|
+
/**
|
|
148
|
+
* Next button component for navigating to the next step in the Stepper.
|
|
149
|
+
*
|
|
150
|
+
* Features:
|
|
151
|
+
* - Automatically advances to the next step
|
|
152
|
+
* - Changes label to "Complete" on the final step
|
|
153
|
+
* - Supports async validation with Promise return
|
|
154
|
+
* - Prevents navigation when validation fails
|
|
155
|
+
* - Hides when all steps are completed
|
|
156
|
+
* - Accessible with proper button semantics
|
|
157
|
+
* - Customizable appearance and styling
|
|
158
|
+
* - Integration with stepper context
|
|
159
|
+
* - Automatic completion handling
|
|
160
|
+
* - Automatic tracking ID generation for analytics
|
|
161
|
+
*
|
|
162
|
+
* @example
|
|
163
|
+
* <Stepper.NextButton
|
|
164
|
+
* nextLabel="Continue"
|
|
165
|
+
* completeLabel="Finish"
|
|
166
|
+
* />
|
|
167
|
+
*/
|
|
19
168
|
export declare const StepperNextButton: import('react').ForwardRefExoticComponent<Omit<import('@servicetitan/hammer-react').ButtonProps, "children"> & {
|
|
20
169
|
nextLabel?: string;
|
|
21
170
|
completeLabel?: string;
|
|
22
171
|
onClick?: (e: import('react').MouseEvent<HTMLButtonElement>) => void | boolean | Promise<boolean>;
|
|
23
172
|
} & DataTrackingId & import('react').RefAttributes<HTMLButtonElement>>;
|
|
173
|
+
/**
|
|
174
|
+
* Previous button component for navigating to the previous step in the Stepper.
|
|
175
|
+
*
|
|
176
|
+
* Features:
|
|
177
|
+
* - Navigates to the previous step when available
|
|
178
|
+
* - Hides when on the first step
|
|
179
|
+
* - Restores navigation when returning from completion
|
|
180
|
+
* - Accessible with proper button semantics
|
|
181
|
+
* - Customizable label and styling
|
|
182
|
+
* - Integration with stepper context
|
|
183
|
+
* - Automatic focus management
|
|
184
|
+
* - Support for completion state handling
|
|
185
|
+
* - Automatic tracking ID generation for analytics
|
|
186
|
+
*
|
|
187
|
+
* @example
|
|
188
|
+
* <Stepper.PrevButton label="Go Back" />
|
|
189
|
+
*/
|
|
24
190
|
export declare const StepperPrevButton: import('react').ForwardRefExoticComponent<Omit<import('@servicetitan/hammer-react').ButtonProps, "children"> & {
|
|
25
191
|
label?: string;
|
|
26
192
|
} & DataTrackingId & import('react').RefAttributes<HTMLButtonElement>>;
|
|
193
|
+
/**
|
|
194
|
+
* Stepper component for creating multi-step workflows and forms.
|
|
195
|
+
*
|
|
196
|
+
* Features:
|
|
197
|
+
* - Multi-step navigation with visual progress indicators
|
|
198
|
+
* - Keyboard navigation support with arrow keys
|
|
199
|
+
* - Optional navigation to previous steps
|
|
200
|
+
* - Smooth animations and transitions
|
|
201
|
+
* - Accessible with proper ARIA roles and attributes
|
|
202
|
+
* - Customizable step labels and content
|
|
203
|
+
* - Completion state handling
|
|
204
|
+
* - Layout utilities for positioning and spacing
|
|
205
|
+
* - Motion animations for step transitions
|
|
206
|
+
* - Context-based state management
|
|
207
|
+
*
|
|
208
|
+
* @example
|
|
209
|
+
* <Stepper defaultIndex={0} allowNavigateToPrevStep>
|
|
210
|
+
* <Stepper.List>
|
|
211
|
+
* <Stepper.Step controls="step1">Step 1</Stepper.Step>
|
|
212
|
+
* <Stepper.Step controls="step2">Step 2</Stepper.Step>
|
|
213
|
+
* <Stepper.Step controls="step3">Step 3</Stepper.Step>
|
|
214
|
+
* </Stepper.List>
|
|
215
|
+
*
|
|
216
|
+
* <Stepper.Panel id="step1">
|
|
217
|
+
* <h2>Step 1 Content</h2>
|
|
218
|
+
* <p>This is the first step content.</p>
|
|
219
|
+
* </Stepper.Panel>
|
|
220
|
+
*
|
|
221
|
+
* <Stepper.Panel id="step2">
|
|
222
|
+
* <h2>Step 2 Content</h2>
|
|
223
|
+
* <p>This is the second step content.</p>
|
|
224
|
+
* </Stepper.Panel>
|
|
225
|
+
*
|
|
226
|
+
* <Stepper.Panel id="step3">
|
|
227
|
+
* <h2>Step 3 Content</h2>
|
|
228
|
+
* <p>This is the final step content.</p>
|
|
229
|
+
* </Stepper.Panel>
|
|
230
|
+
*
|
|
231
|
+
* <Stepper.FinalPanel>
|
|
232
|
+
* <h2>Completed!</h2>
|
|
233
|
+
* <p>All steps have been completed successfully.</p>
|
|
234
|
+
* </Stepper.FinalPanel>
|
|
235
|
+
*
|
|
236
|
+
* <Stepper.PrevButton />
|
|
237
|
+
* <Stepper.NextButton />
|
|
238
|
+
* </Stepper>
|
|
239
|
+
*/
|
|
27
240
|
export declare const Stepper: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "onChange" | "onDrag" | "onDragEnd" | "onDragStart" | "onAnimationStart"> & import('@servicetitan/hammer-react').LayoutUtilProps & {
|
|
28
241
|
defaultIndex?: number;
|
|
29
242
|
allowNavigateToPrevStep?: boolean;
|
|
@@ -33,20 +246,142 @@ export declare const Stepper: import('react').ForwardRefExoticComponent<Omit<Omi
|
|
|
33
246
|
}) => void;
|
|
34
247
|
onComplete?: () => void;
|
|
35
248
|
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
249
|
+
/**
|
|
250
|
+
* Container component for organizing and displaying stepper steps.
|
|
251
|
+
*
|
|
252
|
+
* Features:
|
|
253
|
+
* - Groups multiple stepper steps together
|
|
254
|
+
* - Displays current step label
|
|
255
|
+
* - Responsive design with mobile-friendly layout
|
|
256
|
+
* - Accessible with proper ARIA roles
|
|
257
|
+
* - Automatic step organization
|
|
258
|
+
* - Visual step indicators
|
|
259
|
+
* - Context-based current step display
|
|
260
|
+
* - Flexible layout with CSS Grid/Flexbox
|
|
261
|
+
* - Container queries for responsive behavior
|
|
262
|
+
*
|
|
263
|
+
* @example
|
|
264
|
+
* <Stepper.List>
|
|
265
|
+
* <Stepper.Step controls="step1">Step 1</Stepper.Step>
|
|
266
|
+
* <Stepper.Step controls="step2">Step 2</Stepper.Step>
|
|
267
|
+
* <Stepper.Step controls="step3">Step 3</Stepper.Step>
|
|
268
|
+
* </Stepper.List>
|
|
269
|
+
*/
|
|
36
270
|
List: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
271
|
+
/**
|
|
272
|
+
* Individual step component for the Stepper.
|
|
273
|
+
*
|
|
274
|
+
* Features:
|
|
275
|
+
* - Visual progress indicator with animated bar
|
|
276
|
+
* - Check icon for completed steps
|
|
277
|
+
* - Keyboard navigation support
|
|
278
|
+
* - Accessible with proper ARIA attributes
|
|
279
|
+
* - Click handling for step navigation
|
|
280
|
+
* - Visual states for current, completed, and future steps
|
|
281
|
+
* - Responsive design with mobile-friendly layout
|
|
282
|
+
* - Focus management for keyboard users
|
|
283
|
+
* - Custom styling support
|
|
284
|
+
*
|
|
285
|
+
* @example
|
|
286
|
+
* <Stepper.Step controls="step1">
|
|
287
|
+
* Personal Information
|
|
288
|
+
* </Stepper.Step>
|
|
289
|
+
*/
|
|
37
290
|
Step: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "onClick" | "disabled"> & {
|
|
38
291
|
controls: string;
|
|
39
292
|
onClick?: (e: import('react').MouseEvent<HTMLButtonElement>, index?: number) => void;
|
|
40
293
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
294
|
+
/**
|
|
295
|
+
* Content panel component for displaying step content in the Stepper.
|
|
296
|
+
*
|
|
297
|
+
* Features:
|
|
298
|
+
* - Displays content for the current step only
|
|
299
|
+
* - Smooth fade-in/fade-out animations
|
|
300
|
+
* - Automatic overflow handling with scroll support
|
|
301
|
+
* - Accessible with proper ARIA roles
|
|
302
|
+
* - Layout utilities for positioning and spacing
|
|
303
|
+
* - Motion animations for smooth transitions
|
|
304
|
+
* - Focus management for keyboard navigation
|
|
305
|
+
* - Responsive design with flexible layout
|
|
306
|
+
* - Context-based visibility control
|
|
307
|
+
*
|
|
308
|
+
* @example
|
|
309
|
+
* <Stepper.Panel id="step1">
|
|
310
|
+
* <h2>Personal Information</h2>
|
|
311
|
+
* <form>
|
|
312
|
+
* <label htmlFor="name">Name:</label>
|
|
313
|
+
* <input id="name" type="text" />
|
|
314
|
+
* </form>
|
|
315
|
+
* </Stepper.Panel>
|
|
316
|
+
*/
|
|
41
317
|
Panel: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "onDrag" | "onDragEnd" | "onDragStart" | "onAnimationStart"> & import('@servicetitan/hammer-react').LayoutUtilProps & {
|
|
42
318
|
id: string;
|
|
43
319
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
320
|
+
/**
|
|
321
|
+
* Final panel component displayed when all stepper steps are completed.
|
|
322
|
+
*
|
|
323
|
+
* Features:
|
|
324
|
+
* - Displays only when all steps are completed
|
|
325
|
+
* - Smooth fade-in animation on completion
|
|
326
|
+
* - Automatic overflow handling with scroll support
|
|
327
|
+
* - Accessible with proper ARIA roles
|
|
328
|
+
* - Layout utilities for positioning and spacing
|
|
329
|
+
* - Motion animations for smooth transitions
|
|
330
|
+
* - Focus management for keyboard navigation
|
|
331
|
+
* - Responsive design with flexible layout
|
|
332
|
+
* - Context-based visibility control
|
|
333
|
+
*
|
|
334
|
+
* @example
|
|
335
|
+
* <Stepper.FinalPanel>
|
|
336
|
+
* <h2>Congratulations!</h2>
|
|
337
|
+
* <p>You have successfully completed all steps.</p>
|
|
338
|
+
* <Button onClick={handleSubmit}>Submit</Button>
|
|
339
|
+
* </Stepper.FinalPanel>
|
|
340
|
+
*/
|
|
44
341
|
FinalPanel: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "onDrag" | "onDragEnd" | "onDragStart" | "onAnimationStart"> & import('@servicetitan/hammer-react').LayoutUtilProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
342
|
+
/**
|
|
343
|
+
* Next button component for navigating to the next step in the Stepper.
|
|
344
|
+
*
|
|
345
|
+
* Features:
|
|
346
|
+
* - Automatically advances to the next step
|
|
347
|
+
* - Changes label to "Complete" on the final step
|
|
348
|
+
* - Supports async validation with Promise return
|
|
349
|
+
* - Prevents navigation when validation fails
|
|
350
|
+
* - Hides when all steps are completed
|
|
351
|
+
* - Accessible with proper button semantics
|
|
352
|
+
* - Customizable appearance and styling
|
|
353
|
+
* - Integration with stepper context
|
|
354
|
+
* - Automatic completion handling
|
|
355
|
+
* - Automatic tracking ID generation for analytics
|
|
356
|
+
*
|
|
357
|
+
* @example
|
|
358
|
+
* <Stepper.NextButton
|
|
359
|
+
* nextLabel="Continue"
|
|
360
|
+
* completeLabel="Finish"
|
|
361
|
+
* />
|
|
362
|
+
*/
|
|
45
363
|
NextButton: import('react').ForwardRefExoticComponent<Omit<import('@servicetitan/hammer-react').ButtonProps, "children"> & {
|
|
46
364
|
nextLabel?: string;
|
|
47
365
|
completeLabel?: string;
|
|
48
366
|
onClick?: (e: import('react').MouseEvent<HTMLButtonElement>) => void | boolean | Promise<boolean>;
|
|
49
367
|
} & DataTrackingId & import('react').RefAttributes<HTMLButtonElement>>;
|
|
368
|
+
/**
|
|
369
|
+
* Previous button component for navigating to the previous step in the Stepper.
|
|
370
|
+
*
|
|
371
|
+
* Features:
|
|
372
|
+
* - Navigates to the previous step when available
|
|
373
|
+
* - Hides when on the first step
|
|
374
|
+
* - Restores navigation when returning from completion
|
|
375
|
+
* - Accessible with proper button semantics
|
|
376
|
+
* - Customizable label and styling
|
|
377
|
+
* - Integration with stepper context
|
|
378
|
+
* - Automatic focus management
|
|
379
|
+
* - Support for completion state handling
|
|
380
|
+
* - Automatic tracking ID generation for analytics
|
|
381
|
+
*
|
|
382
|
+
* @example
|
|
383
|
+
* <Stepper.PrevButton label="Go Back" />
|
|
384
|
+
*/
|
|
50
385
|
PrevButton: import('react').ForwardRefExoticComponent<Omit<import('@servicetitan/hammer-react').ButtonProps, "children"> & {
|
|
51
386
|
label?: string;
|
|
52
387
|
} & DataTrackingId & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,7 +1,40 @@
|
|
|
1
1
|
import { SwitchProps as CoreSwitchProps } from '@servicetitan/hammer-react';
|
|
2
2
|
import { DataTrackingId } from '../../types/DataTrackingId';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the Switch component
|
|
5
|
+
* @property {function} [onChange] - Callback when switch is changed
|
|
6
|
+
* @property {ReactElement | string} [label] - Label for the switch
|
|
7
|
+
* @property {boolean} [checked] - Controlled checked state
|
|
8
|
+
* @property {boolean} [defaultChecked] - Default checked state
|
|
9
|
+
* @extends ComponentPropsWithoutRef<"input">
|
|
10
|
+
* @extends LayoutUtilProps
|
|
11
|
+
* @extends DataTrackingId
|
|
12
|
+
*/
|
|
3
13
|
export type SwitchProps = CoreSwitchProps & DataTrackingId;
|
|
14
|
+
/**
|
|
15
|
+
* Switch component for toggling between on/off states.
|
|
16
|
+
*
|
|
17
|
+
* Features:
|
|
18
|
+
* - Toggle switch with smooth animations
|
|
19
|
+
* - Check icon indicator when active
|
|
20
|
+
* - Accessible with proper ARIA roles and attributes
|
|
21
|
+
* - Keyboard navigation support (Space/Enter)
|
|
22
|
+
* - Controlled and uncontrolled state management
|
|
23
|
+
* - Customizable label and styling
|
|
24
|
+
* - Layout utilities for positioning and spacing
|
|
25
|
+
* - Focus management with visible focus indicators
|
|
26
|
+
* - Hover states and visual feedback
|
|
27
|
+
* - Disabled state support
|
|
28
|
+
* - Automatic tracking ID generation for analytics
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* <Switch
|
|
32
|
+
* label="Enable notifications"
|
|
33
|
+
* onChange={(e, state) => console.log('Switch toggled:', state.checked)}
|
|
34
|
+
* />
|
|
35
|
+
*/
|
|
4
36
|
export declare const Switch: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "onChange"> & import('@servicetitan/hammer-react').LayoutUtilProps & {
|
|
5
37
|
onChange?: (e: import('react').ChangeEvent<HTMLInputElement>, state: import('@servicetitan/hammer-react/dist/components/Switch/Switch').SwitchState) => void;
|
|
6
38
|
label?: import('react').ReactElement | string;
|
|
39
|
+
description?: string;
|
|
7
40
|
} & DataTrackingId & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -1,28 +1,180 @@
|
|
|
1
1
|
import { TabProps as CoreTabProps, TabListProps as CoreTabListProps, TabButtonProps as CoreTabButtonProps, TabPanelProps as CoreTabPanelProps } from '@servicetitan/hammer-react';
|
|
2
2
|
import { DataTrackingId } from '../../types/DataTrackingId';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the Tab component
|
|
5
|
+
* @property {number} defaultIndex - The index of the tab that should be active by default
|
|
6
|
+
* @property {boolean} [fill] - Whether the tabs should fill the available width
|
|
7
|
+
* @extends Omit<ComponentPropsWithoutRef<"div">, "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag">
|
|
8
|
+
* @extends LayoutUtilProps
|
|
9
|
+
*/
|
|
3
10
|
export type TabProps = CoreTabProps;
|
|
11
|
+
/**
|
|
12
|
+
* Props for the TabList component
|
|
13
|
+
* @extends ComponentPropsWithoutRef<"div">
|
|
14
|
+
*/
|
|
4
15
|
export type TabListProps = CoreTabListProps;
|
|
16
|
+
/**
|
|
17
|
+
* Props for the TabButton component
|
|
18
|
+
* @property {string} id - Unique identifier for the tab button
|
|
19
|
+
* @property {string} controls - ID of the tab panel that this button controls
|
|
20
|
+
* @property {(e: MouseEvent<HTMLButtonElement>, index?: number) => void} [onClick] - Callback function called when the tab button is clicked
|
|
21
|
+
* @extends Omit<ComponentPropsWithoutRef<"button">, "onClick" | "disabled">
|
|
22
|
+
*/
|
|
5
23
|
export type TabButtonProps = CoreTabButtonProps & DataTrackingId;
|
|
24
|
+
/**
|
|
25
|
+
* Props for the TabPanel component
|
|
26
|
+
* @property {string} id - Unique identifier for the tab panel
|
|
27
|
+
* @extends Omit<ComponentPropsWithoutRef<"div">, "onAnimationStart" | "onDragStart" | "onDragEnd" | "onDrag">
|
|
28
|
+
*/
|
|
6
29
|
export type TabPanelProps = CoreTabPanelProps;
|
|
30
|
+
/**
|
|
31
|
+
* TabButton component for individual tab navigation buttons.
|
|
32
|
+
*
|
|
33
|
+
* Features:
|
|
34
|
+
* - Automatic ARIA attributes for accessibility
|
|
35
|
+
* - Visual indicator for active state
|
|
36
|
+
* - Keyboard navigation support
|
|
37
|
+
* - Smooth animations with reduced motion support
|
|
38
|
+
* - Proper focus management
|
|
39
|
+
* - RTL language support
|
|
40
|
+
* - Automatic tracking ID generation for analytics
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* <Tab.Button id="tab1" controls="panel1" onClick={(e, index) => console.log('Tab clicked:', index)}>
|
|
44
|
+
* First Tab
|
|
45
|
+
* </Tab.Button>
|
|
46
|
+
*/
|
|
7
47
|
export declare const TabButton: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "onClick" | "disabled"> & {
|
|
8
48
|
id: string;
|
|
9
49
|
controls: string;
|
|
10
50
|
onClick?: (e: import('react').MouseEvent<HTMLButtonElement>, index?: number) => void;
|
|
11
51
|
} & DataTrackingId & import('react').RefAttributes<HTMLButtonElement>>;
|
|
52
|
+
/**
|
|
53
|
+
* TabList component for containing and managing tab buttons.
|
|
54
|
+
*
|
|
55
|
+
* Features:
|
|
56
|
+
* - Horizontal scrolling for overflow tabs
|
|
57
|
+
* - Navigation arrows for overflow content
|
|
58
|
+
* - RTL language support
|
|
59
|
+
* - Automatic overflow detection
|
|
60
|
+
* - Proper ARIA roles for accessibility
|
|
61
|
+
* - Smooth scrolling behavior
|
|
62
|
+
* - Visual indicator positioning
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* <Tab.List>
|
|
66
|
+
* <Tab.Button id="tab1" controls="panel1">First Tab</Tab.Button>
|
|
67
|
+
* <Tab.Button id="tab2" controls="panel2">Second Tab</Tab.Button>
|
|
68
|
+
* <Tab.Button id="tab3" controls="panel3">Third Tab</Tab.Button>
|
|
69
|
+
* </Tab.List>
|
|
70
|
+
*/
|
|
12
71
|
export declare const TabList: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
72
|
+
/**
|
|
73
|
+
* TabPanel component for displaying tab content.
|
|
74
|
+
*
|
|
75
|
+
* Features:
|
|
76
|
+
* - Automatic visibility based on active tab
|
|
77
|
+
* - Smooth fade animations
|
|
78
|
+
* - Proper ARIA attributes for accessibility
|
|
79
|
+
* - Automatic association with tab buttons
|
|
80
|
+
* - Focus management
|
|
81
|
+
* - Layout animations
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* <Tab.Panel id="panel1">
|
|
85
|
+
* <h2>First Tab Content</h2>
|
|
86
|
+
* <p>This is the content for the first tab.</p>
|
|
87
|
+
* </Tab.Panel>
|
|
88
|
+
*/
|
|
13
89
|
export declare const TabPanel: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "onDrag" | "onDragEnd" | "onDragStart" | "onAnimationStart"> & {
|
|
14
90
|
id: string;
|
|
15
91
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
92
|
+
/**
|
|
93
|
+
* Tab component for organizing content into multiple sections with navigation.
|
|
94
|
+
*
|
|
95
|
+
* Features:
|
|
96
|
+
* - Keyboard navigation support (arrow keys, Enter, Space)
|
|
97
|
+
* - Accessible with proper ARIA roles and attributes
|
|
98
|
+
* - Smooth animations and transitions
|
|
99
|
+
* - RTL language support
|
|
100
|
+
* - Automatic focus management
|
|
101
|
+
* - Scroll behavior for overflow tabs
|
|
102
|
+
* - Compound component pattern with Tab.Button, Tab.List, and Tab.Panel
|
|
103
|
+
* - Supports layout utilities for positioning and spacing
|
|
104
|
+
*
|
|
105
|
+
* @example
|
|
106
|
+
* <Tab defaultIndex={0}>
|
|
107
|
+
* <Tab.List>
|
|
108
|
+
* <Tab.Button id="tab1" controls="panel1">First Tab</Tab.Button>
|
|
109
|
+
* <Tab.Button id="tab2" controls="panel2">Second Tab</Tab.Button>
|
|
110
|
+
* </Tab.List>
|
|
111
|
+
* <Tab.Panel id="panel1">Content for first tab</Tab.Panel>
|
|
112
|
+
* <Tab.Panel id="panel2">Content for second tab</Tab.Panel>
|
|
113
|
+
* </Tab>
|
|
114
|
+
*/
|
|
16
115
|
export declare const Tab: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "onDrag" | "onDragEnd" | "onDragStart" | "onAnimationStart"> & import('@servicetitan/hammer-react').LayoutUtilProps & {
|
|
17
116
|
defaultIndex: number;
|
|
18
117
|
fill?: boolean;
|
|
19
118
|
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
119
|
+
/**
|
|
120
|
+
* TabButton component for individual tab navigation buttons.
|
|
121
|
+
*
|
|
122
|
+
* Features:
|
|
123
|
+
* - Automatic ARIA attributes for accessibility
|
|
124
|
+
* - Visual indicator for active state
|
|
125
|
+
* - Keyboard navigation support
|
|
126
|
+
* - Smooth animations with reduced motion support
|
|
127
|
+
* - Proper focus management
|
|
128
|
+
* - RTL language support
|
|
129
|
+
* - Automatic tracking ID generation for analytics
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* <Tab.Button id="tab1" controls="panel1" onClick={(e, index) => console.log('Tab clicked:', index)}>
|
|
133
|
+
* First Tab
|
|
134
|
+
* </Tab.Button>
|
|
135
|
+
*/
|
|
20
136
|
Button: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "onClick" | "disabled"> & {
|
|
21
137
|
id: string;
|
|
22
138
|
controls: string;
|
|
23
139
|
onClick?: (e: import('react').MouseEvent<HTMLButtonElement>, index?: number) => void;
|
|
24
140
|
} & DataTrackingId & import('react').RefAttributes<HTMLButtonElement>>;
|
|
141
|
+
/**
|
|
142
|
+
* TabList component for containing and managing tab buttons.
|
|
143
|
+
*
|
|
144
|
+
* Features:
|
|
145
|
+
* - Horizontal scrolling for overflow tabs
|
|
146
|
+
* - Navigation arrows for overflow content
|
|
147
|
+
* - RTL language support
|
|
148
|
+
* - Automatic overflow detection
|
|
149
|
+
* - Proper ARIA roles for accessibility
|
|
150
|
+
* - Smooth scrolling behavior
|
|
151
|
+
* - Visual indicator positioning
|
|
152
|
+
*
|
|
153
|
+
* @example
|
|
154
|
+
* <Tab.List>
|
|
155
|
+
* <Tab.Button id="tab1" controls="panel1">First Tab</Tab.Button>
|
|
156
|
+
* <Tab.Button id="tab2" controls="panel2">Second Tab</Tab.Button>
|
|
157
|
+
* <Tab.Button id="tab3" controls="panel3">Third Tab</Tab.Button>
|
|
158
|
+
* </Tab.List>
|
|
159
|
+
*/
|
|
25
160
|
List: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
161
|
+
/**
|
|
162
|
+
* TabPanel component for displaying tab content.
|
|
163
|
+
*
|
|
164
|
+
* Features:
|
|
165
|
+
* - Automatic visibility based on active tab
|
|
166
|
+
* - Smooth fade animations
|
|
167
|
+
* - Proper ARIA attributes for accessibility
|
|
168
|
+
* - Automatic association with tab buttons
|
|
169
|
+
* - Focus management
|
|
170
|
+
* - Layout animations
|
|
171
|
+
*
|
|
172
|
+
* @example
|
|
173
|
+
* <Tab.Panel id="panel1">
|
|
174
|
+
* <h2>First Tab Content</h2>
|
|
175
|
+
* <p>This is the content for the first tab.</p>
|
|
176
|
+
* </Tab.Panel>
|
|
177
|
+
*/
|
|
26
178
|
Panel: import('react').ForwardRefExoticComponent<Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, "onDrag" | "onDragEnd" | "onDragStart" | "onAnimationStart"> & {
|
|
27
179
|
id: string;
|
|
28
180
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,3 +1,40 @@
|
|
|
1
1
|
import { TextProps as CoreTextProps } from '@servicetitan/hammer-react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the Text component
|
|
4
|
+
* @property {"headline"} [variant] - Headline text variant
|
|
5
|
+
* @property {"eyebrow"} [variant] - Eyebrow text variant
|
|
6
|
+
* @property {"body"} [variant] - Body text variant (default)
|
|
7
|
+
* @property {"h1" | "h2" | "h3" | "h4" | "h5" | "h6"} [el] - Set the wrapping element's tagname for headlines
|
|
8
|
+
* @property {"small" | "medium" | "large" | "xlarge"} [size] - Size of the text
|
|
9
|
+
* @property {boolean} [subdued] - Deemphasized text styling
|
|
10
|
+
* @property {boolean} [inline] - Inline flag used for nesting BodyText inside BodyText
|
|
11
|
+
* @extends ComponentPropsWithoutRef<"h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span">
|
|
12
|
+
* @extends LayoutUtilProps
|
|
13
|
+
*/
|
|
2
14
|
export type TextProps = CoreTextProps;
|
|
15
|
+
/**
|
|
16
|
+
* Text component for displaying various types of text content with consistent styling.
|
|
17
|
+
*
|
|
18
|
+
* Features:
|
|
19
|
+
* - Multiple text variants (headline, eyebrow, body)
|
|
20
|
+
* - Semantic HTML elements (h1-h6, p, span)
|
|
21
|
+
* - Multiple size options for each variant
|
|
22
|
+
* - Deemphasized text styling option
|
|
23
|
+
* - Inline text support for nesting
|
|
24
|
+
* - Supports layout utilities for positioning and spacing
|
|
25
|
+
* - Accessible with proper semantic markup
|
|
26
|
+
* - Responsive typography scaling
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* <Text variant="headline" el="h1" size="large">Main Heading</Text>
|
|
30
|
+
* <Text variant="headline" el="h2" size="medium">Sub Heading</Text>
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* <Text variant="eyebrow" size="small">Category Label</Text>
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* <Text size="large">Large body text</Text>
|
|
37
|
+
* <Text subdued>Deemphasized text</Text>
|
|
38
|
+
* <Text inline>Inline text within other text</Text>
|
|
39
|
+
*/
|
|
3
40
|
export declare const Text: import('react').ForwardRefExoticComponent<CoreTextProps & import('react').RefAttributes<HTMLSpanElement | HTMLHeadingElement | HTMLParagraphElement>>;
|