@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,6 +1,36 @@
|
|
|
1
1
|
import { ButtonLinkProps as CoreButtonLinkProps } from '@servicetitan/hammer-react';
|
|
2
2
|
import { DataTrackingId } from '../../types/DataTrackingId';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the ButtonLink component
|
|
5
|
+
* @property {ButtonAppearance} [appearance] - The visual variant of the button link
|
|
6
|
+
* @property {"small" | "medium" | "large"} [size] - The size of the button link
|
|
7
|
+
* @property {IconProps["svg"] | { after: IconProps["svg"] } | { before: IconProps["svg"] }} [icon] - The icons of the button link
|
|
8
|
+
* @property {boolean} [loading] - The loading state of the button link
|
|
9
|
+
* @extends CoreButtonLinkProps
|
|
10
|
+
* @extends DataTrackingId
|
|
11
|
+
*/
|
|
3
12
|
export type ButtonLinkProps = CoreButtonLinkProps & DataTrackingId;
|
|
13
|
+
/**
|
|
14
|
+
* ButtonLink component for creating clickable links that look like buttons.
|
|
15
|
+
*
|
|
16
|
+
* Features:
|
|
17
|
+
* - Multiple visual appearances (primary, secondary, ghost, danger variants)
|
|
18
|
+
* - Three size options (small, medium, large)
|
|
19
|
+
* - Loading state with spinner animation
|
|
20
|
+
* - Icon support (before, after, or icon-only)
|
|
21
|
+
* - Full accessibility support with proper ARIA attributes
|
|
22
|
+
* - Supports layout utilities for positioning and spacing
|
|
23
|
+
* - Keyboard navigation support (Space and Enter keys)
|
|
24
|
+
* - Automatic disabled state when loading
|
|
25
|
+
* - Prevents navigation when disabled or loading
|
|
26
|
+
* - Flexible content with text and/or icons
|
|
27
|
+
* - Automatic tracking ID generation for analytics
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* <ButtonLink href="/dashboard" appearance="primary" size="medium">
|
|
31
|
+
* Go to Dashboard
|
|
32
|
+
* </ButtonLink>
|
|
33
|
+
*/
|
|
4
34
|
export declare const ButtonLink: import('react').ForwardRefExoticComponent<import('@servicetitan/hammer-react').LayoutUtilProps & Omit<import('react').DetailedHTMLProps<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
5
35
|
disabled?: boolean;
|
|
6
36
|
appearance?: import('@servicetitan/hammer-react').ButtonAppearance;
|
|
@@ -1,6 +1,38 @@
|
|
|
1
1
|
import { ButtonToggleProps as CoreButtonToggleProps } from '@servicetitan/hammer-react';
|
|
2
2
|
import { DataTrackingId } from '../../types/DataTrackingId';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the ButtonToggle component
|
|
5
|
+
* @property {boolean} [defaultChecked] - The default pressed(selected) state of the toggle button
|
|
6
|
+
* @property {boolean} [checked] - The controlled pressed(selected) state of the toggle button
|
|
7
|
+
* @property {string} [value] - The value of the toggle button
|
|
8
|
+
* @property {(e: MouseEvent<HTMLButtonElement> | KeyboardEvent<HTMLButtonElement>, state: ButtonToggleState) => void} [onChange] - Callback for when pressed(selected) changes
|
|
9
|
+
* @extends CoreButtonToggleProps
|
|
10
|
+
* @extends DataTrackingId
|
|
11
|
+
*/
|
|
3
12
|
export type ButtonToggleProps = CoreButtonToggleProps & DataTrackingId;
|
|
13
|
+
/**
|
|
14
|
+
* ButtonToggle component for creating toggleable button states.
|
|
15
|
+
*
|
|
16
|
+
* Features:
|
|
17
|
+
* - Supports both controlled and uncontrolled state management
|
|
18
|
+
* - Toggle state with pressed/selected visual feedback
|
|
19
|
+
* - Full accessibility support with aria-pressed attribute
|
|
20
|
+
* - Callback support for state changes
|
|
21
|
+
* - Supports layout utilities for positioning and spacing
|
|
22
|
+
* - Inherits all button features except appearance and loading
|
|
23
|
+
* - Flexible content with text and/or icons
|
|
24
|
+
* - Keyboard interaction support
|
|
25
|
+
* - Value association for form-like behavior
|
|
26
|
+
* - Automatic tracking ID generation for analytics
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* <ButtonToggle
|
|
30
|
+
* defaultChecked={false}
|
|
31
|
+
* onChange={(e, state) => console.log('Toggle state:', state.pressed)}
|
|
32
|
+
* >
|
|
33
|
+
* Toggle Me
|
|
34
|
+
* </ButtonToggle>
|
|
35
|
+
*/
|
|
4
36
|
export declare const ButtonToggle: import('react').ForwardRefExoticComponent<Omit<import('@servicetitan/hammer-react').ButtonProps, "appearance" | "loading"> & {
|
|
5
37
|
defaultChecked?: boolean;
|
|
6
38
|
checked?: boolean;
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
import { CalendarProps as CoreCalendarProps, CalendarContextProps as CoreCalendarContextProps, CalendarNowProps as CoreCalendarNowProps, CalendarMonthProps as CoreCalendarMonthProps, CalendarNextProps as CoreCalendarNextProps, CalendarPrevProps as CoreCalendarPrevProps, CalendarMonthButtonProps as CoreCalendarMonthButtonProps, CalendarYearButtonProps as CoreCalendarYearButtonProps } from '@servicetitan/hammer-react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the Calendar component
|
|
4
|
+
* @property {string} [value] - The selected date value for controlled mode
|
|
5
|
+
* @property {{ start?: string; end?: string }} [defaultValue] - The default date value for uncontrolled mode
|
|
6
|
+
* @property {string | null} [focusedDate] - The focused date for determining current month/year view
|
|
7
|
+
* @property {string | null} [defaultFocusedDate] - The default focused date
|
|
8
|
+
* @property {string} [minDate] - The minimum selectable date
|
|
9
|
+
* @property {string} [maxDate] - The maximum selectable date
|
|
10
|
+
* @property {string[]} [unavailableDates] - Dates that are not selectable (deprecated)
|
|
11
|
+
* @property {{ daysOfWeek?: number[]; dates?: string[] }} [unavailable] - Unavailable dates and days of week
|
|
12
|
+
* @property {Locale} [locale] - The locale for date formatting
|
|
13
|
+
* @property {IanaZone} [defaultTimeZone] - The timezone for date calculations
|
|
14
|
+
* @property {"Sunday" | "Monday"} [startDay] - The day to start the week on
|
|
15
|
+
* @property {boolean} [range] - Whether to enable date range selection
|
|
16
|
+
* @property {(data: { value: CalendarValue | CalendarRangeValue }) => void} [onSelection] - Selection change handler
|
|
17
|
+
*/
|
|
2
18
|
export type CalendarProps = CoreCalendarProps;
|
|
3
19
|
export type CalendarContextProps = CoreCalendarContextProps;
|
|
4
20
|
export type CalendarNowProps = CoreCalendarNowProps;
|
|
@@ -15,13 +31,111 @@ export declare const CalendarNext: import('react').ForwardRefExoticComponent<imp
|
|
|
15
31
|
export declare const CalendarPrev: import('react').ForwardRefExoticComponent<import('@servicetitan/hammer-react').ButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
16
32
|
export declare const CalendarMonthButton: import('react').ForwardRefExoticComponent<CoreCalendarMonthButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
17
33
|
export declare const CalendarYearButton: import('react').ForwardRefExoticComponent<CoreCalendarYearButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
34
|
+
/**
|
|
35
|
+
* Calendar component for viewing and selecting a date or range of dates.
|
|
36
|
+
*
|
|
37
|
+
* Features:
|
|
38
|
+
* - Single date and date range selection modes
|
|
39
|
+
* - Month and year navigation with header buttons
|
|
40
|
+
* - Configurable start day (Sunday or Monday)
|
|
41
|
+
* - Date range restrictions with min/max dates
|
|
42
|
+
* - Unavailable dates and days of week support
|
|
43
|
+
* - Locale and timezone customization
|
|
44
|
+
* - Full accessibility support with ARIA attributes
|
|
45
|
+
* - Keyboard navigation support
|
|
46
|
+
* - Responsive design with automatic width detection
|
|
47
|
+
* - Month and year selection views
|
|
48
|
+
* - Today button for quick navigation
|
|
49
|
+
* - Data tracking integration for analytics
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* <Calendar
|
|
53
|
+
* value="2024-01-15"
|
|
54
|
+
* onSelection={({ value }) => console.log('Selected:', value)}
|
|
55
|
+
* minDate="2024-01-01"
|
|
56
|
+
* maxDate="2024-12-31"
|
|
57
|
+
* />
|
|
58
|
+
*/
|
|
18
59
|
export declare const Calendar: import('react').ForwardRefExoticComponent<CoreCalendarProps & import('react').RefAttributes<HTMLDivElement>> & {
|
|
60
|
+
/**
|
|
61
|
+
* Calendar.Now component for navigating to today's date.
|
|
62
|
+
*
|
|
63
|
+
* Features:
|
|
64
|
+
* - Quick navigation to current date
|
|
65
|
+
* - Accessible button with proper ARIA labels
|
|
66
|
+
* - Integrates with calendar context
|
|
67
|
+
* - Data tracking integration for analytics
|
|
68
|
+
*
|
|
69
|
+
* @example
|
|
70
|
+
* <Calendar.Now />
|
|
71
|
+
*/
|
|
19
72
|
Now: import('react').ForwardRefExoticComponent<{
|
|
20
73
|
onClick?: (e: import('react').MouseEvent<HTMLButtonElement>, date: string | null) => void;
|
|
21
74
|
} & Omit<import('@servicetitan/hammer-react').ButtonProps, "onClick"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
75
|
+
/**
|
|
76
|
+
* Calendar.Month component for displaying the month grid.
|
|
77
|
+
*
|
|
78
|
+
* Features:
|
|
79
|
+
* - Displays calendar days in a table format
|
|
80
|
+
* - Handles day selection and navigation
|
|
81
|
+
* - Supports range selection mode
|
|
82
|
+
* - Accessible with proper ARIA attributes
|
|
83
|
+
* - Data tracking integration for analytics
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* <Calendar.Month />
|
|
87
|
+
*/
|
|
22
88
|
Month: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, "ref"> & import('react').RefAttributes<HTMLTableElement>>;
|
|
89
|
+
/**
|
|
90
|
+
* Calendar.Next component for navigating to the next month.
|
|
91
|
+
*
|
|
92
|
+
* Features:
|
|
93
|
+
* - Navigation to next month
|
|
94
|
+
* - Accessible button with proper ARIA labels
|
|
95
|
+
* - Integrates with calendar context
|
|
96
|
+
* - Data tracking integration for analytics
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* <Calendar.Next />
|
|
100
|
+
*/
|
|
23
101
|
Next: import('react').ForwardRefExoticComponent<import('@servicetitan/hammer-react').ButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
102
|
+
/**
|
|
103
|
+
* Calendar.Prev component for navigating to the previous month.
|
|
104
|
+
*
|
|
105
|
+
* Features:
|
|
106
|
+
* - Navigation to previous month
|
|
107
|
+
* - Accessible button with proper ARIA labels
|
|
108
|
+
* - Integrates with calendar context
|
|
109
|
+
* - Data tracking integration for analytics
|
|
110
|
+
*
|
|
111
|
+
* @example
|
|
112
|
+
* <Calendar.Prev />
|
|
113
|
+
*/
|
|
24
114
|
Prev: import('react').ForwardRefExoticComponent<import('@servicetitan/hammer-react').ButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
115
|
+
/**
|
|
116
|
+
* Calendar.MonthButton component for switching to month selection view.
|
|
117
|
+
*
|
|
118
|
+
* Features:
|
|
119
|
+
* - Switches calendar to month selection mode
|
|
120
|
+
* - Accessible button with proper ARIA labels
|
|
121
|
+
* - Integrates with calendar context
|
|
122
|
+
* - Data tracking integration for analytics
|
|
123
|
+
*
|
|
124
|
+
* @example
|
|
125
|
+
* <Calendar.MonthButton />
|
|
126
|
+
*/
|
|
25
127
|
MonthButton: import('react').ForwardRefExoticComponent<CoreCalendarMonthButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
128
|
+
/**
|
|
129
|
+
* Calendar.YearButton component for switching to year selection view.
|
|
130
|
+
*
|
|
131
|
+
* Features:
|
|
132
|
+
* - Switches calendar to year selection mode
|
|
133
|
+
* - Accessible button with proper ARIA labels
|
|
134
|
+
* - Integrates with calendar context
|
|
135
|
+
* - Data tracking integration for analytics
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* <Calendar.YearButton />
|
|
139
|
+
*/
|
|
26
140
|
YearButton: import('react').ForwardRefExoticComponent<CoreCalendarYearButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
27
141
|
};
|
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
import { CardProps as CoreCardProps } from '@servicetitan/hammer-react';
|
|
2
|
+
/**
|
|
3
|
+
* Props for the Card component
|
|
4
|
+
* @property {"strong" | "stronger"} [background] - The background variant of the card
|
|
5
|
+
* @property {"0" | "xsmall" | "small" | "medium" | "large"} [padding] - The padding size of the card
|
|
6
|
+
* @extends CoreCardProps
|
|
7
|
+
*/
|
|
2
8
|
export type CardProps = CoreCardProps;
|
|
9
|
+
/**
|
|
10
|
+
* Card component for displaying content in a contained, elevated container.
|
|
11
|
+
*
|
|
12
|
+
* Features:
|
|
13
|
+
* - Configurable padding sizes (0, xsmall, small, medium, large)
|
|
14
|
+
* - Background variants (strong, stronger) for visual emphasis
|
|
15
|
+
* - Responsive design with automatic layout utilities
|
|
16
|
+
* - Consistent border radius and styling
|
|
17
|
+
* - Support for all standard div props
|
|
18
|
+
* - Layout utility props for positioning and spacing
|
|
19
|
+
* - Data tracking integration for analytics
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* <Card padding="large" background="strong">
|
|
23
|
+
* <h2>Card Title</h2>
|
|
24
|
+
* <p>Card content goes here</p>
|
|
25
|
+
* </Card>
|
|
26
|
+
*/
|
|
3
27
|
export declare const Card: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import('@servicetitan/hammer-react').LayoutUtilProps & {
|
|
4
28
|
background?: "strong" | "stronger";
|
|
5
29
|
padding?: Extract<import('@servicetitan/hammer-react').Size, "0" | "xsmall" | "small" | "medium" | "large">;
|
|
@@ -1,12 +1,89 @@
|
|
|
1
1
|
import { CheckboxProps as CoreCheckboxProps, CheckboxGroupProps as CoreCheckboxGroupProps } from '@servicetitan/hammer-react';
|
|
2
2
|
import { DataTrackingId } from '../../types/DataTrackingId';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the Checkbox component
|
|
5
|
+
* @property {boolean} [checked] - Controlled state
|
|
6
|
+
* @property {boolean} [defaultChecked] - Uncontrolled state
|
|
7
|
+
* @property {boolean} [indeterminate] - Indeterminate state of the checkbox
|
|
8
|
+
* @property {boolean} [error] - Error state for the checkbox
|
|
9
|
+
* @property {string | ReactElement} [label] - Label for checkbox
|
|
10
|
+
* @property {string} [description] - Helper text description
|
|
11
|
+
* @property {Object} [icons] - Icon overrides for different states
|
|
12
|
+
* @property {(e?: ChangeEvent<HTMLInputElement>, state?: CheckboxState) => void} [onChange] - Change callback
|
|
13
|
+
* @property {(e?: MouseEvent<HTMLInputElement>, state?: CheckboxState) => void} [onClick] - Click callback
|
|
14
|
+
* @extends Omit<CoreCheckboxProps, "hideCheckbox">
|
|
15
|
+
* @extends DataTrackingId
|
|
16
|
+
*/
|
|
3
17
|
export type CheckboxProps = Omit<CoreCheckboxProps, "hideCheckbox"> & DataTrackingId;
|
|
4
18
|
export type CheckboxGroupProps = CoreCheckboxGroupProps;
|
|
19
|
+
/**
|
|
20
|
+
* CheckboxGroup component for grouping related checkboxes together.
|
|
21
|
+
*
|
|
22
|
+
* Features:
|
|
23
|
+
* - Groups multiple checkboxes with a common legend
|
|
24
|
+
* - Supports required field indication
|
|
25
|
+
* - Optional helper text and descriptions
|
|
26
|
+
* - Full accessibility support with fieldset/legend
|
|
27
|
+
* - Focus management for keyboard navigation
|
|
28
|
+
* - Layout utility props for positioning and spacing
|
|
29
|
+
* - Flexible layout direction (row/column)
|
|
30
|
+
* - Screen reader support with hidden labels
|
|
31
|
+
* - Automatic tracking ID generation for analytics
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* <CheckboxGroup legend="Select your interests" required>
|
|
35
|
+
* <Checkbox label="Technology" />
|
|
36
|
+
* <Checkbox label="Sports" />
|
|
37
|
+
* <Checkbox label="Music" />
|
|
38
|
+
* </CheckboxGroup>
|
|
39
|
+
*/
|
|
5
40
|
export declare const CheckboxGroup: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, "ref"> & import('@servicetitan/hammer-react').LayoutUtilProps & Omit<import('@servicetitan/hammer-react').FieldLabelProps, "labelProps"> & {
|
|
6
41
|
required?: boolean;
|
|
7
42
|
legend: string | import('react').ReactElement;
|
|
8
43
|
} & import('react').RefAttributes<HTMLFieldSetElement>>;
|
|
44
|
+
/**
|
|
45
|
+
* Checkbox component for selecting one or more options from a list.
|
|
46
|
+
*
|
|
47
|
+
* Features:
|
|
48
|
+
* - Controlled and uncontrolled state management
|
|
49
|
+
* - Indeterminate state for partial selections
|
|
50
|
+
* - Customizable icons for different states
|
|
51
|
+
* - Error state with accessibility support
|
|
52
|
+
* - Optional helper text and descriptions
|
|
53
|
+
* - Full accessibility support with ARIA attributes
|
|
54
|
+
* - Keyboard navigation support
|
|
55
|
+
* - Layout utility props for positioning and spacing
|
|
56
|
+
* - Automatic tracking ID generation for analytics
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* <Checkbox
|
|
60
|
+
* label="Accept terms and conditions"
|
|
61
|
+
* onChange={(e, state) => console.log('Checked:', state.checked)}
|
|
62
|
+
* required
|
|
63
|
+
* />
|
|
64
|
+
*/
|
|
9
65
|
export declare const Checkbox: import('react').ForwardRefExoticComponent<Omit<CoreCheckboxProps, "hideCheckbox"> & DataTrackingId & import('react').RefAttributes<HTMLInputElement>> & {
|
|
66
|
+
/**
|
|
67
|
+
* CheckboxGroup component for grouping related checkboxes together.
|
|
68
|
+
*
|
|
69
|
+
* Features:
|
|
70
|
+
* - Groups multiple checkboxes with a common legend
|
|
71
|
+
* - Supports required field indication
|
|
72
|
+
* - Optional helper text and descriptions
|
|
73
|
+
* - Full accessibility support with fieldset/legend
|
|
74
|
+
* - Focus management for keyboard navigation
|
|
75
|
+
* - Layout utility props for positioning and spacing
|
|
76
|
+
* - Flexible layout direction (row/column)
|
|
77
|
+
* - Screen reader support with hidden labels
|
|
78
|
+
* - Automatic tracking ID generation for analytics
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* <CheckboxGroup legend="Select your interests" required>
|
|
82
|
+
* <Checkbox label="Technology" />
|
|
83
|
+
* <Checkbox label="Sports" />
|
|
84
|
+
* <Checkbox label="Music" />
|
|
85
|
+
* </CheckboxGroup>
|
|
86
|
+
*/
|
|
10
87
|
Group: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, "ref"> & import('@servicetitan/hammer-react').LayoutUtilProps & Omit<import('@servicetitan/hammer-react').FieldLabelProps, "labelProps"> & {
|
|
11
88
|
required?: boolean;
|
|
12
89
|
legend: string | import('react').ReactElement;
|
|
@@ -1,6 +1,40 @@
|
|
|
1
1
|
import { ChipProps as CoreChipProps } from '@servicetitan/hammer-react';
|
|
2
2
|
import { DataTrackingId } from '../../types/DataTrackingId';
|
|
3
|
+
/**
|
|
4
|
+
* Props for the Chip component
|
|
5
|
+
* @property {string} label - The text that displays in the chip
|
|
6
|
+
* @property {"small" | "medium"} [size] - The size of the chip
|
|
7
|
+
* @property {string} [color] - Color of the Chip
|
|
8
|
+
* @property {(e?: MouseEvent<HTMLSpanElement> | KeyboardEvent<HTMLSpanElement>) => void} [onClick] - Callback for when the Chip is clicked
|
|
9
|
+
* @property {(e: MouseEvent<HTMLSpanElement> | KeyboardEvent<HTMLSpanElement>) => void} [onClose] - Called when the component is closed
|
|
10
|
+
* @property {boolean} [textWrap] - Wraps text when it overflows
|
|
11
|
+
* @extends CoreChipProps
|
|
12
|
+
* @extends DataTrackingId
|
|
13
|
+
*/
|
|
3
14
|
export type ChipProps = CoreChipProps & DataTrackingId;
|
|
15
|
+
/**
|
|
16
|
+
* Chip component for displaying compact information or tags.
|
|
17
|
+
*
|
|
18
|
+
* Features:
|
|
19
|
+
* - Configurable sizes (small, medium)
|
|
20
|
+
* - Custom color support with automatic contrast calculation
|
|
21
|
+
* - Optional click handler for interactive chips
|
|
22
|
+
* - Optional close button for removable chips
|
|
23
|
+
* - Text wrapping support for long labels
|
|
24
|
+
* - Full accessibility support with ARIA attributes
|
|
25
|
+
* - Keyboard navigation (Enter to click, Delete/Backspace to close)
|
|
26
|
+
* - Theme-aware color adaptation
|
|
27
|
+
* - Layout utility props for positioning and spacing
|
|
28
|
+
* - Automatic tracking ID generation for analytics
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* <Chip
|
|
32
|
+
* label="JavaScript"
|
|
33
|
+
* color="#f7df1e"
|
|
34
|
+
* onClose={(e) => console.log('Chip removed')}
|
|
35
|
+
* onClick={(e) => console.log('Chip clicked')}
|
|
36
|
+
* />
|
|
37
|
+
*/
|
|
4
38
|
export declare const Chip: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & Omit<import('@servicetitan/hammer-react').LayoutUtilProps, "flex" | "flexGrow" | "flexShrink" | "flexBasis"> & {
|
|
5
39
|
label: string;
|
|
6
40
|
size?: Extract<import('@servicetitan/hammer-react').Size, "small" | "medium">;
|