@servicetitan/anvil2 1.37.2 → 1.38.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 +21 -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-CohGSWFp-DFYJkf7Y.js} +9 -9
- package/dist/{Calendar-Bn00Dnc--DcCNi1xz.js.map → Calendar-CohGSWFp-DFYJkf7Y.js.map} +1 -1
- package/dist/Calendar-jl0s6W7p.js +130 -0
- package/dist/Calendar-jl0s6W7p.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-BIlp8xmW.js → Checkbox-DbDwtefR.js} +25 -2
- package/dist/Checkbox-DbDwtefR.js.map +1 -0
- package/dist/{Checkbox-CRurfeRE-BR_NXfh6.js → Checkbox-TIcImbEx-EgjesTNn.js} +6 -5
- package/dist/Checkbox-TIcImbEx-EgjesTNn.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-7ADxZKDE.js} +187 -24
- package/dist/Combobox-7ADxZKDE.js.map +1 -0
- package/dist/Combobox.js +1 -1
- package/dist/{DateField-D-eVP6xh.js → DateField-CUO_26rh.js} +18 -13
- package/dist/DateField-CUO_26rh.js.map +1 -0
- package/dist/DateField.js +1 -1
- package/dist/{DaysOfTheWeek-Dz-aZ-LW.js → DaysOfTheWeek-CEKoAJSv.js} +7 -7
- package/dist/DaysOfTheWeek-CEKoAJSv.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-D6zpW-GE.js} +125 -4
- package/dist/Dialog-D6zpW-GE.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-qb7Q0BAm.js +142 -0
- package/dist/Drawer-qb7Q0BAm.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-CERWyhwG.js → FieldMessage-Cg3zcgk5.js} +2 -2
- package/dist/FieldMessage-Cg3zcgk5.js.map +1 -0
- package/dist/{FieldMessage-Js4e1ezw-DZ6YDx24.js → FieldMessage-ChFXWVDb-loVSCnCM.js} +3 -3
- package/dist/{FieldMessage-Js4e1ezw-DZ6YDx24.js.map → FieldMessage-ChFXWVDb-loVSCnCM.js.map} +1 -1
- 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-C9sHaTrI-C5fAsK6i.js +46 -0
- package/dist/Helper-C9sHaTrI-C5fAsK6i.js.map +1 -0
- package/dist/Helper-C9sHaTrI.css +21 -0
- 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-CeqX68uX.js → InputMask-DKPqOpHs.js} +3 -2
- package/dist/InputMask-DKPqOpHs.js.map +1 -0
- package/dist/InputMask-kJ-hlK0O-Ctwa0U7r.js +231 -0
- package/dist/InputMask-kJ-hlK0O-Ctwa0U7r.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-0xHc5wT6.js} +87 -47
- package/dist/ListView-0xHc5wT6.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-BAuADOyt.js} +60 -10
- package/dist/Menu-BAuADOyt.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-CtwsyE3i.js} +131 -15
- package/dist/Page-CtwsyE3i.js.map +1 -0
- package/dist/Page.js +1 -1
- package/dist/Popover-Bnkwq99S.js +135 -0
- package/dist/Popover-Bnkwq99S.js.map +1 -0
- package/dist/{Popover-CpyYXmal-I-E-B4u8.js → Popover-VztF0YHt-ci3tYiye.js} +80 -8
- package/dist/Popover-VztF0YHt-ci3tYiye.js.map +1 -0
- package/dist/Popover.js +1 -1
- package/dist/{ProgressBar-B25Wxpaf.js → ProgressBar-BotOFymw.js} +3 -2
- package/dist/ProgressBar-BotOFymw.js.map +1 -0
- package/dist/{ProgressBar-CeClhdcf-Dcft7ZjO.js → ProgressBar-Cfi5zZRy-BpESsdh_.js} +164 -99
- package/dist/ProgressBar-Cfi5zZRy-BpESsdh_.js.map +1 -0
- package/dist/ProgressBar-Cfi5zZRy.css +671 -0
- package/dist/ProgressBar.js +1 -1
- package/dist/{Radio-BlMDLvPw-DUeywcYR.js → Radio-7U7IBI58-BDhdZJoC.js} +25 -5
- package/dist/Radio-7U7IBI58-BDhdZJoC.js.map +1 -0
- package/dist/Radio-D4rRt1a6.js +66 -0
- package/dist/Radio-D4rRt1a6.js.map +1 -0
- package/dist/Radio.js +1 -1
- package/dist/{SearchField-D3z4LjJg.js → SearchField-Bz4HPxCQ.js} +5 -4
- package/dist/SearchField-Bz4HPxCQ.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-B5EqtxOK-CpCgVjV8.js} +46 -17
- package/dist/SelectCard-B5EqtxOK-CpCgVjV8.js.map +1 -0
- package/dist/SelectCard.js +1 -1
- package/dist/SelectCardGroup-DsHZgCqA.js +49 -0
- package/dist/SelectCardGroup-DsHZgCqA.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-Dd9tJFmG.js} +20 -10
- package/dist/Switch-Dd9tJFmG.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-Ds9EKvSs.js → TextField-BYyyw3m2.js} +3 -2
- package/dist/{TextField-Ds9EKvSs.js.map → TextField-BYyyw3m2.js.map} +1 -1
- package/dist/{TextField-Bp1q4hMI-2jGZG2k2.js → TextField-CGJtMoil-CJqYM83o.js} +4 -3
- package/dist/TextField-CGJtMoil-CJqYM83o.js.map +1 -0
- package/dist/TextField.js +1 -1
- package/dist/{Textarea-CMELRfU8.js → Textarea-AczEXhHB.js} +5 -3
- package/dist/Textarea-AczEXhHB.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-Cu3u0TRX.js} +183 -14
- package/dist/Toolbar-Cu3u0TRX.js.map +1 -0
- package/dist/Toolbar.css +1 -11
- package/dist/Toolbar.js +1 -1
- package/dist/Tooltip-BL_bgvwA.js +73 -0
- package/dist/Tooltip-BL_bgvwA.js.map +1 -0
- package/dist/Tooltip.js +1 -1
- 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-B39L6vJ0.js} +3 -3
- package/dist/toast-B39L6vJ0.js.map +1 -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 +3 -2
- 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/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-CohGSWFp.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/{FieldMessage-Js4e1ezw.css → FieldMessage-ChFXWVDb.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-VztF0YHt.css} +0 -0
- /package/dist/{Radio-BlMDLvPw.css → Radio-7U7IBI58.css} +0 -0
- /package/dist/{SelectCard-D26y01WZ.css → SelectCard-B5EqtxOK.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,13 +1,81 @@
|
|
|
1
1
|
import { DetailsProps as CoreDetailsProps, DetailsSummaryProps as CoreDetailsSummaryProps, DetailsContentProps as CoreDetailsContentProps } from '@servicetitan/hammer-react';
|
|
2
2
|
import { DataTrackingId } from '../../types/DataTrackingId';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the Details component
|
|
5
|
+
* @property {boolean} [expanded] - Determines the controlled expanded state of the details. Use this to make the details expanded state controlled.
|
|
6
|
+
* @default false
|
|
7
|
+
* @property {boolean} [defaultExpanded] - Determines the default expanded state of the details. Use this to make the details expanded state uncontrolled.
|
|
8
|
+
* @default false
|
|
9
|
+
*/
|
|
3
10
|
export type DetailsProps = CoreDetailsProps;
|
|
11
|
+
/**
|
|
12
|
+
* Props for the DetailsSummary component
|
|
13
|
+
* @extends DataTrackingId
|
|
14
|
+
*/
|
|
4
15
|
export type DetailsSummaryProps = CoreDetailsSummaryProps & DataTrackingId;
|
|
16
|
+
/**
|
|
17
|
+
* Props for the DetailsContent component
|
|
18
|
+
* @property {string | number} [height] - Fixed height for the content area
|
|
19
|
+
* @property {string | number} [maxHeight] - Maximum height for the content area
|
|
20
|
+
*/
|
|
5
21
|
export type DetailsContentProps = CoreDetailsContentProps;
|
|
22
|
+
/**
|
|
23
|
+
* DetailsSummary component for the clickable header of a Details section.
|
|
24
|
+
*
|
|
25
|
+
* Features:
|
|
26
|
+
* - Clickable button that toggles the Details expanded state
|
|
27
|
+
* - Automatic ARIA attributes for accessibility
|
|
28
|
+
* - Includes animated arrow indicator
|
|
29
|
+
* - Supports custom onClick handlers
|
|
30
|
+
* - Keyboard navigation support (Enter, Space)
|
|
31
|
+
* - Styled with consistent typography and spacing
|
|
32
|
+
* - Automatic tracking ID generation for analytics
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* <Details.Summary onClick={() => console.log('Summary clicked')}>
|
|
36
|
+
* Click to expand content
|
|
37
|
+
* </Details.Summary>
|
|
38
|
+
*/
|
|
6
39
|
export declare const DetailsSummary: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & DataTrackingId & import('react').RefAttributes<HTMLButtonElement>>;
|
|
40
|
+
/**
|
|
41
|
+
* DetailsContent component for the expandable content area of a Details section.
|
|
42
|
+
*
|
|
43
|
+
* Features:
|
|
44
|
+
* - Expandable and collapsible content area
|
|
45
|
+
* - Smooth animations for height transitions
|
|
46
|
+
* - Configurable height and maxHeight constraints
|
|
47
|
+
* - Automatic overflow handling when height is constrained
|
|
48
|
+
* - Proper ARIA associations with the summary
|
|
49
|
+
* - Responsive design with flexible layout
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* <Details.Content maxHeight={300}>
|
|
53
|
+
* <p>This content will be constrained to 300px max height</p>
|
|
54
|
+
* </Details.Content>
|
|
55
|
+
*/
|
|
7
56
|
export declare const DetailsContent: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
8
57
|
height?: string | number;
|
|
9
58
|
maxHeight?: string | number;
|
|
10
59
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
60
|
+
/**
|
|
61
|
+
* Details component for creating expandable/collapsible content sections.
|
|
62
|
+
*
|
|
63
|
+
* Features:
|
|
64
|
+
* - Expandable and collapsible content sections
|
|
65
|
+
* - Controlled and uncontrolled state management
|
|
66
|
+
* - Accessible with proper ARIA attributes
|
|
67
|
+
* - Smooth animations for expand/collapse
|
|
68
|
+
* - Keyboard navigation support
|
|
69
|
+
* - Layout utility props for positioning and spacing
|
|
70
|
+
* - Compound component pattern with Summary, Content, and Arrow sub-components
|
|
71
|
+
* - Automatic tracking ID generation for analytics
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* <Details defaultExpanded>
|
|
75
|
+
* <Details.Summary>Click to expand</Details.Summary>
|
|
76
|
+
* <Details.Content>This content is now visible</Details.Content>
|
|
77
|
+
* </Details>
|
|
78
|
+
*/
|
|
11
79
|
export declare const Details: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('@servicetitan/hammer-react').LayoutUtilProps & {
|
|
12
80
|
expanded?: boolean;
|
|
13
81
|
defaultExpanded?: boolean;
|
|
@@ -1,16 +1,135 @@
|
|
|
1
1
|
import { DialogProps as CoreDialogProps, DialogHeaderProps as CoreDialogHeaderProps, DialogFooterProps as CoreDialogFooterProps, DialogContentProps as CoreDialogContentProps, DialogCancelButtonProps as CoreDialogCancelButtonProps } from '@servicetitan/hammer-react';
|
|
2
2
|
import { DataTrackingId } from '../../types/DataTrackingId';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the Dialog component
|
|
5
|
+
* @property {boolean} [fullScreen] - Whether the dialog should be displayed in fullscreen mode
|
|
6
|
+
* @default false
|
|
7
|
+
* @property {"medium" | "large"} [size] - The size of the dialog
|
|
8
|
+
* @default medium
|
|
9
|
+
* @property {boolean} [open] - Whether the dialog is open
|
|
10
|
+
* @default false
|
|
11
|
+
* @property {() => void} [onClose] - Callback fired when the dialog is closed
|
|
12
|
+
* @property {() => void} [onOpen] - Callback fired when the dialog opens (deprecated)
|
|
13
|
+
* @property {(open: boolean) => void} [onOpenChange] - Callback fired when the dialog open state changes (deprecated)
|
|
14
|
+
* @property {boolean} [enableScrollChaining] - Enables scroll chaining
|
|
15
|
+
* @property {boolean} [disableCloseOnEscape] - Whether to disable closing on escape key
|
|
16
|
+
* @property {boolean} [disableCloseOnClickOutside] - Whether to disable closing on click outside
|
|
17
|
+
* @property {() => void} [onOpenAnimationStart] - Callback fired when open animation starts
|
|
18
|
+
* @property {() => void} [onOpenAnimationComplete] - Callback fired when open animation completes
|
|
19
|
+
* @property {() => void} [onCloseAnimationStart] - Callback fired when close animation starts
|
|
20
|
+
* @property {() => void} [onCloseAnimationComplete] - Callback fired when close animation completes
|
|
21
|
+
*/
|
|
3
22
|
export type DialogProps = CoreDialogProps;
|
|
23
|
+
/**
|
|
24
|
+
* Props for the DialogHeader component
|
|
25
|
+
* @extends DataTrackingId
|
|
26
|
+
*/
|
|
4
27
|
export type DialogHeaderProps = CoreDialogHeaderProps & DataTrackingId;
|
|
28
|
+
/**
|
|
29
|
+
* Props for the DialogFooter component
|
|
30
|
+
* @property {boolean} [sticky] - Whether the footer should be sticky
|
|
31
|
+
* @default false
|
|
32
|
+
*/
|
|
5
33
|
export type DialogFooterProps = CoreDialogFooterProps;
|
|
34
|
+
/**
|
|
35
|
+
* Props for the DialogContent component
|
|
36
|
+
*/
|
|
6
37
|
export type DialogContentProps = CoreDialogContentProps;
|
|
38
|
+
/**
|
|
39
|
+
* Props for the DialogCancelButton component
|
|
40
|
+
* @extends DataTrackingId
|
|
41
|
+
*/
|
|
7
42
|
export type DialogCancelButtonProps = CoreDialogCancelButtonProps & DataTrackingId;
|
|
43
|
+
/**
|
|
44
|
+
* DialogHeader component for the header section of a Dialog.
|
|
45
|
+
*
|
|
46
|
+
* Features:
|
|
47
|
+
* - Displays dialog title with headline typography
|
|
48
|
+
* - Includes close button with proper accessibility
|
|
49
|
+
* - Sticky positioning for long content
|
|
50
|
+
* - Consistent spacing and styling
|
|
51
|
+
* - Automatic focus management
|
|
52
|
+
* - Automatic tracking ID generation for analytics
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* <Dialog.Header>Confirm Delete</Dialog.Header>
|
|
56
|
+
*/
|
|
8
57
|
export declare const DialogHeader: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & DataTrackingId & import('react').RefAttributes<HTMLDivElement>>;
|
|
58
|
+
/**
|
|
59
|
+
* DialogFooter component for the footer section of a Dialog.
|
|
60
|
+
*
|
|
61
|
+
* Features:
|
|
62
|
+
* - Container for dialog action buttons
|
|
63
|
+
* - Optional sticky positioning for long content
|
|
64
|
+
* - Consistent spacing and alignment
|
|
65
|
+
* - Right-aligned button layout by default
|
|
66
|
+
* - Flexible content area for custom layouts
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* <Dialog.Footer sticky>
|
|
70
|
+
* <Dialog.CancelButton>Cancel</Dialog.CancelButton>
|
|
71
|
+
* <Button appearance="primary">Save</Button>
|
|
72
|
+
* </Dialog.Footer>
|
|
73
|
+
*/
|
|
9
74
|
export declare const DialogFooter: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
10
75
|
sticky?: boolean;
|
|
11
76
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
77
|
+
/**
|
|
78
|
+
* DialogContent component for the main content area of a Dialog.
|
|
79
|
+
*
|
|
80
|
+
* Features:
|
|
81
|
+
* - Main content container for dialog body
|
|
82
|
+
* - Flexible height with overflow handling
|
|
83
|
+
* - Consistent padding and spacing
|
|
84
|
+
* - Responsive design
|
|
85
|
+
* - Proper content scrolling for long content
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* <Dialog.Content>
|
|
89
|
+
* <p>This is the main content of the dialog.</p>
|
|
90
|
+
* </Dialog.Content>
|
|
91
|
+
*/
|
|
12
92
|
export declare const DialogContent: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
93
|
+
/**
|
|
94
|
+
* DialogCancelButton component for cancel/close actions in a Dialog.
|
|
95
|
+
*
|
|
96
|
+
* Features:
|
|
97
|
+
* - Button that automatically closes the dialog when clicked
|
|
98
|
+
* - Extends all Button component props and functionality
|
|
99
|
+
* - Proper accessibility with close dialog semantics
|
|
100
|
+
* - Automatic focus management
|
|
101
|
+
* - Consistent styling with other dialog elements
|
|
102
|
+
* - Automatic tracking ID generation for analytics
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* <Dialog.CancelButton appearance="ghost">Cancel</Dialog.CancelButton>
|
|
106
|
+
*/
|
|
13
107
|
export declare const DialogCancelButton: import('react').ForwardRefExoticComponent<DialogCancelButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
108
|
+
/**
|
|
109
|
+
* Dialog component for creating modal dialogs and overlays.
|
|
110
|
+
*
|
|
111
|
+
* Features:
|
|
112
|
+
* - Modal dialog with backdrop overlay
|
|
113
|
+
* - Controlled and uncontrolled open state
|
|
114
|
+
* - Smooth open/close animations
|
|
115
|
+
* - Keyboard navigation and focus management
|
|
116
|
+
* - Escape key and click outside to close
|
|
117
|
+
* - Multiple size variants (medium, large, fullscreen)
|
|
118
|
+
* - Scroll chaining support
|
|
119
|
+
* - Toast integration for notifications
|
|
120
|
+
* - Compound component pattern with Header, Footer, Content, and CancelButton sub-components
|
|
121
|
+
* - Automatic tracking ID generation for analytics
|
|
122
|
+
*
|
|
123
|
+
* @example
|
|
124
|
+
* <Dialog open={isOpen} onClose={() => setIsOpen(false)}>
|
|
125
|
+
* <Dialog.Header>Confirm Action</Dialog.Header>
|
|
126
|
+
* <Dialog.Content>Are you sure you want to proceed?</Dialog.Content>
|
|
127
|
+
* <Dialog.Footer>
|
|
128
|
+
* <Dialog.CancelButton>Cancel</Dialog.CancelButton>
|
|
129
|
+
* <Button appearance="primary">Confirm</Button>
|
|
130
|
+
* </Dialog.Footer>
|
|
131
|
+
* </Dialog>
|
|
132
|
+
*/
|
|
14
133
|
export declare const Dialog: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').DialogHTMLAttributes<HTMLDialogElement>, HTMLDialogElement>, "ref"> & import('@servicetitan/hammer-react/dist/hooks/useDialogTransitionStates').DialogTransitionStateEffects & import('@servicetitan/hammer-react').DisableCloseOnEscapeOrClickProps & {
|
|
15
134
|
fullScreen?: boolean;
|
|
16
135
|
size?: Extract<import('@servicetitan/hammer-react').Size, "medium" | "large">;
|
|
@@ -20,10 +139,69 @@ export declare const Dialog: import('react').ForwardRefExoticComponent<Omit<impo
|
|
|
20
139
|
onOpenChange?: (open: boolean) => void;
|
|
21
140
|
enableScrollChaining?: boolean;
|
|
22
141
|
} & import('react').RefAttributes<HTMLDialogElement>> & {
|
|
142
|
+
/**
|
|
143
|
+
* DialogHeader component for the header section of a Dialog.
|
|
144
|
+
*
|
|
145
|
+
* Features:
|
|
146
|
+
* - Displays dialog title with headline typography
|
|
147
|
+
* - Includes close button with proper accessibility
|
|
148
|
+
* - Sticky positioning for long content
|
|
149
|
+
* - Consistent spacing and styling
|
|
150
|
+
* - Automatic focus management
|
|
151
|
+
* - Automatic tracking ID generation for analytics
|
|
152
|
+
*
|
|
153
|
+
* @example
|
|
154
|
+
* <Dialog.Header>Confirm Delete</Dialog.Header>
|
|
155
|
+
*/
|
|
23
156
|
Header: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & DataTrackingId & import('react').RefAttributes<HTMLDivElement>>;
|
|
157
|
+
/**
|
|
158
|
+
* DialogFooter component for the footer section of a Dialog.
|
|
159
|
+
*
|
|
160
|
+
* Features:
|
|
161
|
+
* - Container for dialog action buttons
|
|
162
|
+
* - Optional sticky positioning for long content
|
|
163
|
+
* - Consistent spacing and alignment
|
|
164
|
+
* - Right-aligned button layout by default
|
|
165
|
+
* - Flexible content area for custom layouts
|
|
166
|
+
*
|
|
167
|
+
* @example
|
|
168
|
+
* <Dialog.Footer sticky>
|
|
169
|
+
* <Dialog.CancelButton>Cancel</Dialog.CancelButton>
|
|
170
|
+
* <Button appearance="primary">Save</Button>
|
|
171
|
+
* </Dialog.Footer>
|
|
172
|
+
*/
|
|
24
173
|
Footer: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
25
174
|
sticky?: boolean;
|
|
26
175
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
176
|
+
/**
|
|
177
|
+
* DialogContent component for the main content area of a Dialog.
|
|
178
|
+
*
|
|
179
|
+
* Features:
|
|
180
|
+
* - Main content container for dialog body
|
|
181
|
+
* - Flexible height with overflow handling
|
|
182
|
+
* - Consistent padding and spacing
|
|
183
|
+
* - Responsive design
|
|
184
|
+
* - Proper content scrolling for long content
|
|
185
|
+
*
|
|
186
|
+
* @example
|
|
187
|
+
* <Dialog.Content>
|
|
188
|
+
* <p>This is the main content of the dialog.</p>
|
|
189
|
+
* </Dialog.Content>
|
|
190
|
+
*/
|
|
27
191
|
Content: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
192
|
+
/**
|
|
193
|
+
* DialogCancelButton component for cancel/close actions in a Dialog.
|
|
194
|
+
*
|
|
195
|
+
* Features:
|
|
196
|
+
* - Button that automatically closes the dialog when clicked
|
|
197
|
+
* - Extends all Button component props and functionality
|
|
198
|
+
* - Proper accessibility with close dialog semantics
|
|
199
|
+
* - Automatic focus management
|
|
200
|
+
* - Consistent styling with other dialog elements
|
|
201
|
+
* - Automatic tracking ID generation for analytics
|
|
202
|
+
*
|
|
203
|
+
* @example
|
|
204
|
+
* <Dialog.CancelButton appearance="ghost">Cancel</Dialog.CancelButton>
|
|
205
|
+
*/
|
|
28
206
|
CancelButton: import('react').ForwardRefExoticComponent<DialogCancelButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
29
207
|
};
|
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
import { DividerProps as CoreDividerProps } from '@servicetitan/hammer-react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the Divider component
|
|
4
|
+
* @property {"start" | "center" | "end"} [alignContent] - Controls the alignment of content within the divider
|
|
5
|
+
* @property {"0" | "half" | "1" | "2" | "3" | "4" | "5" | "6" | "8" | "12" | 0 | 0.5 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 12} [spacing] - Controls the spacing around the divider
|
|
6
|
+
* @property {boolean} [vertical] - When true, renders the divider vertically instead of horizontally
|
|
7
|
+
*/
|
|
2
8
|
export type DividerProps = CoreDividerProps;
|
|
9
|
+
/**
|
|
10
|
+
* Divider component for creating visual separators between content sections.
|
|
11
|
+
*
|
|
12
|
+
* Features:
|
|
13
|
+
* - Horizontal and vertical divider orientations
|
|
14
|
+
* - Optional content display within the divider
|
|
15
|
+
* - Three content alignment options (start, center, end)
|
|
16
|
+
* - Configurable spacing with predefined size tokens
|
|
17
|
+
* - Supports layout utilities for positioning and spacing
|
|
18
|
+
* - Flexible content placement with automatic line positioning
|
|
19
|
+
* - Responsive design that adapts to container width
|
|
20
|
+
* - Automatic tracking ID generation for analytics
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* <Divider spacing="2" alignContent="center">
|
|
24
|
+
* <b>Section Title</b>
|
|
25
|
+
* </Divider>
|
|
26
|
+
*/
|
|
3
27
|
export declare const Divider: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import('@servicetitan/hammer-react').LayoutUtilProps & {
|
|
4
28
|
alignContent?: "start" | "center" | "end";
|
|
5
29
|
spacing?: "0" | "half" | "1" | "2" | "3" | "4" | "5" | "6" | "8" | "12" | 0 | 0.5 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 12;
|
|
@@ -1,16 +1,145 @@
|
|
|
1
1
|
import { DrawerProps as CoreDrawerProps, DrawerCancelButtonProps as CoreDrawerCancelButtonProps, DrawerFooterProps as CoreDrawerFooterProps, DrawerHeaderProps as CoreDrawerHeaderProps, DrawerContentProps as CoreDrawerContentProps } from '@servicetitan/hammer-react';
|
|
2
2
|
import { DataTrackingId } from '../../types/DataTrackingId';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the Drawer component
|
|
5
|
+
* @property {"medium" | "large"} [size] - The size of the drawer
|
|
6
|
+
* @property {boolean} [open] - Controls whether the drawer is open or closed
|
|
7
|
+
* @property {() => void} [onClose] - Callback function called after the drawer is animated closed
|
|
8
|
+
* @property {() => void} [onOpen] - Callback function called when the drawer opens (deprecated)
|
|
9
|
+
* @property {(open: boolean) => void} [onOpenChange] - Callback fired when the drawer open state changes (deprecated)
|
|
10
|
+
* @property {boolean} [enableScrollChaining] - Enables scroll chaining behavior
|
|
11
|
+
* @property {boolean} [disableCloseOnEscape] - Whether to disable closing on escape key
|
|
12
|
+
* @property {boolean} [disableCloseOnClickOutside] - Whether to disable closing on click outside
|
|
13
|
+
* @property {() => void} [onOpenAnimationStart] - Callback fired when open animation starts
|
|
14
|
+
* @property {() => void} [onOpenAnimationComplete] - Callback fired when open animation completes
|
|
15
|
+
* @property {() => void} [onCloseAnimationStart] - Callback fired when close animation starts
|
|
16
|
+
* @property {() => void} [onCloseAnimationComplete] - Callback fired when close animation completes
|
|
17
|
+
*/
|
|
3
18
|
export type DrawerProps = CoreDrawerProps;
|
|
19
|
+
/**
|
|
20
|
+
* Props for the DrawerCancelButton component
|
|
21
|
+
* @property {string} [appearance] - The visual appearance of the button
|
|
22
|
+
* @property {string} [size] - The size of the button
|
|
23
|
+
* @property {string} [type] - The type of the button
|
|
24
|
+
*/
|
|
4
25
|
export type DrawerCancelButtonProps = CoreDrawerCancelButtonProps & DataTrackingId;
|
|
26
|
+
/**
|
|
27
|
+
* Props for the DrawerFooter component
|
|
28
|
+
* @property {boolean} [sticky] - When true, the footer will stick to the bottom of the drawer
|
|
29
|
+
*/
|
|
5
30
|
export type DrawerFooterProps = CoreDrawerFooterProps;
|
|
31
|
+
/**
|
|
32
|
+
* Props for the DrawerHeader component
|
|
33
|
+
* @property {ReactNode} children - The content to be displayed in the header
|
|
34
|
+
*/
|
|
6
35
|
export type DrawerHeaderProps = CoreDrawerHeaderProps & DataTrackingId;
|
|
36
|
+
/**
|
|
37
|
+
* Props for the DrawerContent component
|
|
38
|
+
*/
|
|
7
39
|
export type DrawerContentProps = CoreDrawerContentProps;
|
|
40
|
+
/**
|
|
41
|
+
* A button component that automatically closes the drawer when clicked.
|
|
42
|
+
*
|
|
43
|
+
* Features:
|
|
44
|
+
* - Automatically closes the drawer when clicked
|
|
45
|
+
* - Extends Button component functionality
|
|
46
|
+
* - Accessible with proper ARIA attributes
|
|
47
|
+
* - Consistent styling with the design system
|
|
48
|
+
* - Supports all standard button props
|
|
49
|
+
* - Proper focus management
|
|
50
|
+
* - Can be used anywhere within the drawer context
|
|
51
|
+
* - Automatic tracking ID generation for analytics
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* <Drawer.CancelButton appearance="ghost" size="small">
|
|
55
|
+
* Cancel
|
|
56
|
+
* </Drawer.CancelButton>
|
|
57
|
+
*/
|
|
8
58
|
export declare const DrawerCancelButton: import('react').ForwardRefExoticComponent<DrawerCancelButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
59
|
+
/**
|
|
60
|
+
* Footer component for the drawer that displays action buttons and controls.
|
|
61
|
+
*
|
|
62
|
+
* Features:
|
|
63
|
+
* - Flexible layout for action buttons and controls
|
|
64
|
+
* - Optional sticky positioning at the bottom
|
|
65
|
+
* - Proper semantic HTML structure
|
|
66
|
+
* - Accessible with proper ARIA attributes
|
|
67
|
+
* - Consistent styling with the design system
|
|
68
|
+
* - Supports all standard footer element props
|
|
69
|
+
* - Responsive design that adapts to content
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* <Drawer.Footer sticky>
|
|
73
|
+
* <Button onClick={handleSave}>Save</Button>
|
|
74
|
+
* <Drawer.CancelButton>Cancel</Drawer.CancelButton>
|
|
75
|
+
* </Drawer.Footer>
|
|
76
|
+
*/
|
|
9
77
|
export declare const DrawerFooter: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
10
78
|
sticky?: boolean;
|
|
11
79
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
80
|
+
/**
|
|
81
|
+
* Header component for the drawer that displays a title and close button.
|
|
82
|
+
*
|
|
83
|
+
* Features:
|
|
84
|
+
* - Displays the drawer title as a headline
|
|
85
|
+
* - Includes an accessible close button
|
|
86
|
+
* - Sticky positioning at the top of the drawer
|
|
87
|
+
* - Proper semantic HTML structure
|
|
88
|
+
* - Accessible with proper ARIA attributes
|
|
89
|
+
* - Consistent styling with the design system
|
|
90
|
+
* - Automatic close functionality
|
|
91
|
+
* - Automatic tracking ID generation for analytics
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* <Drawer.Header>Settings</Drawer.Header>
|
|
95
|
+
*/
|
|
12
96
|
export declare const DrawerHeader: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & DataTrackingId & import('react').RefAttributes<HTMLDivElement>>;
|
|
97
|
+
/**
|
|
98
|
+
* Content container for the drawer that holds the main content area.
|
|
99
|
+
*
|
|
100
|
+
* Features:
|
|
101
|
+
* - Flexible content area with proper spacing
|
|
102
|
+
* - Scrollable content when needed
|
|
103
|
+
* - Proper semantic HTML structure
|
|
104
|
+
* - Accessible with proper ARIA attributes
|
|
105
|
+
* - Consistent styling with the design system
|
|
106
|
+
* - Supports all standard div element props
|
|
107
|
+
* - Responsive design that adapts to content
|
|
108
|
+
* - Proper focus management
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* <Drawer.Content>
|
|
112
|
+
* <p>This is the main content of the drawer.</p>
|
|
113
|
+
* <p>It can contain any type of content.</p>
|
|
114
|
+
* </Drawer.Content>
|
|
115
|
+
*/
|
|
13
116
|
export declare const DrawerContent: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
117
|
+
/**
|
|
118
|
+
* A slide-out drawer component that provides a modal-like experience from the side of the screen.
|
|
119
|
+
*
|
|
120
|
+
* Features:
|
|
121
|
+
* - Slide-in animation from the side of the screen
|
|
122
|
+
* - Keyboard navigation with focus trapping
|
|
123
|
+
* - Escape key and click outside to close
|
|
124
|
+
* - Configurable size variants (medium, large)
|
|
125
|
+
* - Built-in toast support for notifications
|
|
126
|
+
* - Automatic scroll locking when open
|
|
127
|
+
* - Accessible with proper ARIA attributes
|
|
128
|
+
* - Compound component structure with Header, Footer, Content, and CancelButton
|
|
129
|
+
* - Transition state callbacks for animation control
|
|
130
|
+
* - Optional scroll chaining support
|
|
131
|
+
* - Automatic tracking ID generation for analytics
|
|
132
|
+
*
|
|
133
|
+
* @example
|
|
134
|
+
* <Drawer open={isOpen} onClose={handleClose} size="medium">
|
|
135
|
+
* <Drawer.Header>Settings</Drawer.Header>
|
|
136
|
+
* <Drawer.Content>Drawer content goes here</Drawer.Content>
|
|
137
|
+
* <Drawer.Footer>
|
|
138
|
+
* <Button onClick={handleSave}>Save</Button>
|
|
139
|
+
* <Drawer.CancelButton>Cancel</Drawer.CancelButton>
|
|
140
|
+
* </Drawer.Footer>
|
|
141
|
+
* </Drawer>
|
|
142
|
+
*/
|
|
14
143
|
export declare const Drawer: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').DialogHTMLAttributes<HTMLDialogElement>, HTMLDialogElement>, "ref"> & import('@servicetitan/hammer-react/dist/hooks/useDialogTransitionStates').DialogTransitionStateEffects & import('@servicetitan/hammer-react').DisableCloseOnEscapeOrClickProps & {
|
|
15
144
|
size?: Extract<import('@servicetitan/hammer-react').Size, "medium" | "large">;
|
|
16
145
|
open?: boolean;
|
|
@@ -18,10 +147,81 @@ export declare const Drawer: import('react').ForwardRefExoticComponent<Omit<impo
|
|
|
18
147
|
onOpen?: () => void;
|
|
19
148
|
enableScrollChaining?: boolean;
|
|
20
149
|
} & import('react').RefAttributes<HTMLDialogElement>> & {
|
|
150
|
+
/**
|
|
151
|
+
* Header component for the drawer that displays a title and close button.
|
|
152
|
+
*
|
|
153
|
+
* Features:
|
|
154
|
+
* - Displays the drawer title as a headline
|
|
155
|
+
* - Includes an accessible close button
|
|
156
|
+
* - Sticky positioning at the top of the drawer
|
|
157
|
+
* - Proper semantic HTML structure
|
|
158
|
+
* - Accessible with proper ARIA attributes
|
|
159
|
+
* - Consistent styling with the design system
|
|
160
|
+
* - Automatic close functionality
|
|
161
|
+
* - Automatic tracking ID generation for analytics
|
|
162
|
+
*
|
|
163
|
+
* @example
|
|
164
|
+
* <Drawer.Header>Settings</Drawer.Header>
|
|
165
|
+
*/
|
|
21
166
|
Header: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & DataTrackingId & import('react').RefAttributes<HTMLDivElement>>;
|
|
167
|
+
/**
|
|
168
|
+
* Footer component for the drawer that displays action buttons and controls.
|
|
169
|
+
*
|
|
170
|
+
* Features:
|
|
171
|
+
* - Flexible layout for action buttons and controls
|
|
172
|
+
* - Optional sticky positioning at the bottom
|
|
173
|
+
* - Proper semantic HTML structure
|
|
174
|
+
* - Accessible with proper ARIA attributes
|
|
175
|
+
* - Consistent styling with the design system
|
|
176
|
+
* - Supports all standard footer element props
|
|
177
|
+
* - Responsive design that adapts to content
|
|
178
|
+
*
|
|
179
|
+
* @example
|
|
180
|
+
* <Drawer.Footer sticky>
|
|
181
|
+
* <Button onClick={handleSave}>Save</Button>
|
|
182
|
+
* <Drawer.CancelButton>Cancel</Drawer.CancelButton>
|
|
183
|
+
* </Drawer.Footer>
|
|
184
|
+
*/
|
|
22
185
|
Footer: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
23
186
|
sticky?: boolean;
|
|
24
187
|
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
188
|
+
/**
|
|
189
|
+
* Content container for the drawer that holds the main content area.
|
|
190
|
+
*
|
|
191
|
+
* Features:
|
|
192
|
+
* - Flexible content area with proper spacing
|
|
193
|
+
* - Scrollable content when needed
|
|
194
|
+
* - Proper semantic HTML structure
|
|
195
|
+
* - Accessible with proper ARIA attributes
|
|
196
|
+
* - Consistent styling with the design system
|
|
197
|
+
* - Supports all standard div element props
|
|
198
|
+
* - Responsive design that adapts to content
|
|
199
|
+
* - Proper focus management
|
|
200
|
+
*
|
|
201
|
+
* @example
|
|
202
|
+
* <Drawer.Content>
|
|
203
|
+
* <p>This is the main content of the drawer.</p>
|
|
204
|
+
* <p>It can contain any type of content.</p>
|
|
205
|
+
* </Drawer.Content>
|
|
206
|
+
*/
|
|
25
207
|
Content: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
208
|
+
/**
|
|
209
|
+
* A button component that automatically closes the drawer when clicked.
|
|
210
|
+
*
|
|
211
|
+
* Features:
|
|
212
|
+
* - Automatically closes the drawer when clicked
|
|
213
|
+
* - Extends Button component functionality
|
|
214
|
+
* - Accessible with proper ARIA attributes
|
|
215
|
+
* - Consistent styling with the design system
|
|
216
|
+
* - Supports all standard button props
|
|
217
|
+
* - Proper focus management
|
|
218
|
+
* - Can be used anywhere within the drawer context
|
|
219
|
+
* - Automatic tracking ID generation for analytics
|
|
220
|
+
*
|
|
221
|
+
* @example
|
|
222
|
+
* <Drawer.CancelButton appearance="ghost" size="small">
|
|
223
|
+
* Cancel
|
|
224
|
+
* </Drawer.CancelButton>
|
|
225
|
+
*/
|
|
26
226
|
CancelButton: import('react').ForwardRefExoticComponent<DrawerCancelButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
27
227
|
};
|
|
@@ -1,7 +1,57 @@
|
|
|
1
1
|
import { EditCardProps as CoreEditCardProps, EditCardChange as CoreEditCardChange, EditCardState as CoreEditCardState } from '@servicetitan/hammer-react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the EditCard component
|
|
4
|
+
* @property {string | object} headerText - The header text to display. Can be a string or an object mapping states to different text
|
|
5
|
+
* @property {EditCardState} state - The current state of the edit card
|
|
6
|
+
* @property {string} [saveButtonText] - Text to display on the save button
|
|
7
|
+
* @property {string} [editButtonText] - Text to display on the edit button
|
|
8
|
+
* @property {boolean} [disableEdit] - Whether to disable the edit button
|
|
9
|
+
* @property {boolean} [disableSave] - Whether to disable the save button
|
|
10
|
+
* @property {function} [onStateChange] - Callback function called when the state changes
|
|
11
|
+
* @extends ComponentPropsWithoutRef<"div">
|
|
12
|
+
* @extends LayoutUtilProps
|
|
13
|
+
*/
|
|
2
14
|
export type EditCardProps = CoreEditCardProps;
|
|
15
|
+
/**
|
|
16
|
+
* The type of state change that can occur.
|
|
17
|
+
* @property {"edit"} edit - User clicked the edit button to start editing
|
|
18
|
+
* @property {"save"} save - User clicked the save button to save changes
|
|
19
|
+
* @property {"cancel"} cancel - User clicked the cancel button to discard changes
|
|
20
|
+
*/
|
|
3
21
|
export type EditCardChange = CoreEditCardChange;
|
|
22
|
+
/**
|
|
23
|
+
* The current state of the edit card.
|
|
24
|
+
* @property {"not started"} not started - Initial state, content is not being edited
|
|
25
|
+
* @property {"in progress"} in progress - User is currently editing the content
|
|
26
|
+
* @property {"error"} error - An error occurred during the edit process
|
|
27
|
+
* @property {"complete"} complete - Edit was successfully completed
|
|
28
|
+
*/
|
|
4
29
|
export type EditCardState = CoreEditCardState;
|
|
30
|
+
/**
|
|
31
|
+
* EditCard component for managing editable content with different states and actions.
|
|
32
|
+
*
|
|
33
|
+
* Features:
|
|
34
|
+
* - Four distinct states: not started, in progress, error, and complete
|
|
35
|
+
* - Visual indicators for each state with appropriate icons
|
|
36
|
+
* - Dynamic header text that can change based on state
|
|
37
|
+
* - Edit and save buttons with customizable text
|
|
38
|
+
* - Optional button disabling for different states
|
|
39
|
+
* - State change callbacks for handling user interactions
|
|
40
|
+
* - Built on Card component with consistent styling
|
|
41
|
+
* - Supports layout utilities for positioning and spacing
|
|
42
|
+
* - Accessible with proper ARIA attributes
|
|
43
|
+
* - Visual state indicators with color-coded borders
|
|
44
|
+
* - Automatic tracking ID generation for analytics
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* <EditCard
|
|
48
|
+
* headerText="User Profile"
|
|
49
|
+
* state="not started"
|
|
50
|
+
* onStateChange={(change) => console.log(change)}
|
|
51
|
+
* >
|
|
52
|
+
* <Text>Profile information goes here</Text>
|
|
53
|
+
* </EditCard>
|
|
54
|
+
*/
|
|
5
55
|
export declare const EditCard: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('@servicetitan/hammer-react').LayoutUtilProps & {
|
|
6
56
|
headerText: string | {
|
|
7
57
|
"not started": string;
|
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
import { FieldMessageProps as CoreFieldMessageProps } from '@servicetitan/hammer-react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the FieldMessage component
|
|
4
|
+
* @property {string} [id] - Unique identifier for the field message container
|
|
5
|
+
* @property {ReactElement | string} [hint] - Hint text or element to display when there's no error
|
|
6
|
+
* @property {ReactElement | string} [description] - Description text or element to display below the main message
|
|
7
|
+
* @property {ReactElement | string} [errorMessage] - Error message or element to display when there's an error
|
|
8
|
+
* @property {string} [errorAriaLive] - aria-live attribute value for the error message. Controls how screen readers announce error messages
|
|
9
|
+
* @extends ComponentPropsWithoutRef<"div">
|
|
10
|
+
*/
|
|
2
11
|
export type FieldMessageProps = CoreFieldMessageProps;
|
|
12
|
+
/**
|
|
13
|
+
* FieldMessage component for displaying hints, descriptions, and error messages for form fields.
|
|
14
|
+
*
|
|
15
|
+
* Features:
|
|
16
|
+
* - Displays hint text when no error is present
|
|
17
|
+
* - Shows error messages with warning icon when errors occur
|
|
18
|
+
* - Supports both string and React element content
|
|
19
|
+
* - Configurable aria-live behavior for screen readers
|
|
20
|
+
* - Optional description text for additional context
|
|
21
|
+
* - Accessible with proper ARIA attributes
|
|
22
|
+
* - Visual error indicators with warning icons
|
|
23
|
+
* - Conditional rendering based on error state
|
|
24
|
+
* - Supports layout utilities for positioning and spacing
|
|
25
|
+
* - Automatic tracking ID generation for analytics
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* <FieldMessage
|
|
29
|
+
* hint="Enter your email address"
|
|
30
|
+
* description="We'll use this to send you updates"
|
|
31
|
+
* errorMessage="Please enter a valid email address"
|
|
32
|
+
* />
|
|
33
|
+
*/
|
|
3
34
|
export declare const FieldMessage: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
35
|
id?: string;
|
|
5
36
|
hint?: import('react').ReactElement | string;
|