@servicetitan/anvil2 1.3.3 → 1.3.5
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/Alert-673d75aa.cjs +2 -0
- package/Alert-673d75aa.cjs.map +1 -0
- package/{Alert-012e475c.js → Alert-85a791c2.js} +29 -27
- package/Alert-85a791c2.js.map +1 -0
- package/Alert.cjs +1 -1
- package/Alert.js +1 -1
- package/Announcement.cjs +1 -1
- package/Announcement.cjs.map +1 -1
- package/Announcement.js +99 -15
- package/Announcement.js.map +1 -1
- package/AnvilProvider.cjs +1 -1
- package/AnvilProvider.js +1 -1
- package/Avatar.cjs +1 -1
- package/Avatar.cjs.map +1 -1
- package/Avatar.js +127 -12
- package/Avatar.js.map +1 -1
- package/Badge.cjs +1 -1
- package/Badge.cjs.map +1 -1
- package/Badge.js +47 -7
- package/Badge.js.map +1 -1
- package/Button.cjs +1 -1
- package/Button.cjs.map +1 -1
- package/Button.js +14 -40
- package/Button.js.map +1 -1
- package/ButtonCompound.cjs +1 -1
- package/ButtonCompound.cjs.map +1 -1
- package/ButtonCompound.js +13 -39
- package/ButtonCompound.js.map +1 -1
- package/ButtonLink.cjs +1 -1
- package/ButtonLink.cjs.map +1 -1
- package/ButtonLink.js +14 -40
- package/ButtonLink.js.map +1 -1
- package/ButtonToggle.cjs +1 -1
- package/ButtonToggle.cjs.map +1 -1
- package/ButtonToggle.js +14 -40
- package/ButtonToggle.js.map +1 -1
- package/Calendar.cjs +1 -1
- package/Calendar.cjs.map +1 -1
- package/Calendar.js +5812 -24
- package/Calendar.js.map +1 -1
- package/Card.cjs +1 -1
- package/Card.cjs.map +1 -1
- package/Card.js +52 -6
- package/Card.js.map +1 -1
- package/Checkbox-634c4d3d.js +164 -0
- package/Checkbox-634c4d3d.js.map +1 -0
- package/Checkbox-d1db5a71.cjs +2 -0
- package/Checkbox-d1db5a71.cjs.map +1 -0
- package/Checkbox.cjs +1 -1
- package/Checkbox.cjs.map +1 -1
- package/Checkbox.css +1 -0
- package/Checkbox.js +23 -49
- package/Checkbox.js.map +1 -1
- package/{Chip-6dde28bc.js → Chip-73b032eb.js} +36 -34
- package/Chip-73b032eb.js.map +1 -0
- package/Chip-88873569.cjs +2 -0
- package/Chip-88873569.cjs.map +1 -0
- package/Chip.cjs +1 -1
- package/Chip.js +1 -1
- package/Combobox.cjs +41 -1
- package/Combobox.cjs.map +1 -1
- package/Combobox.js +4177 -76
- package/Combobox.js.map +1 -1
- package/Details.cjs +1 -1
- package/Details.cjs.map +1 -1
- package/Details.js +153 -50
- package/Details.js.map +1 -1
- package/Dialog-1984afe2.js +214 -0
- package/Dialog-1984afe2.js.map +1 -0
- package/Dialog-de6969a2.cjs +2 -0
- package/Dialog-de6969a2.cjs.map +1 -0
- package/Dialog.cjs +1 -1
- package/Dialog.cjs.map +1 -1
- package/Dialog.css +1 -0
- package/Dialog.js +38 -64
- package/Dialog.js.map +1 -1
- package/Divider.cjs +1 -1
- package/Divider.cjs.map +1 -1
- package/Divider.js +76 -7
- package/Divider.js.map +1 -1
- package/Drawer.cjs +1 -1
- package/Drawer.cjs.map +1 -1
- package/Drawer.js +242 -70
- package/Drawer.js.map +1 -1
- package/{Flex-d338e855.js → Flex-d06c75c0.js} +18 -17
- package/Flex-d06c75c0.js.map +1 -0
- package/Flex-da1ad9db.cjs +2 -0
- package/Flex-da1ad9db.cjs.map +1 -0
- package/Flex.cjs +1 -1
- package/Flex.js +1 -1
- package/Grid.cjs +1 -1
- package/Grid.cjs.map +1 -1
- package/Grid.js +90 -6
- package/Grid.js.map +1 -1
- package/{Helper-74a1f07f-61317df2.cjs → Helper-74a1f07f-8fcd0721.cjs} +2 -2
- package/{Helper-74a1f07f-61317df2.cjs.map → Helper-74a1f07f-8fcd0721.cjs.map} +1 -1
- package/{Helper-74a1f07f-092263c4.js → Helper-74a1f07f-d017affe.js} +3 -3
- package/{Helper-74a1f07f-092263c4.js.map → Helper-74a1f07f-d017affe.js.map} +1 -1
- package/Icon-847b3515.cjs +2 -0
- package/Icon-847b3515.cjs.map +1 -0
- package/{Icon-b94f924c.js → Icon-be690f0b.js} +13 -12
- package/Icon-be690f0b.js.map +1 -0
- package/Icon.cjs +1 -1
- package/Icon.js +1 -1
- package/Label-854a39e4.js +47 -0
- package/Label-854a39e4.js.map +1 -0
- package/Label-e2593298.cjs +2 -0
- package/Label-e2593298.cjs.map +1 -0
- package/Label.css +1 -0
- package/Layout.cjs +1 -1
- package/Layout.cjs.map +1 -1
- package/Layout.js +21 -21
- package/Layout.js.map +1 -1
- package/Link.cjs +1 -1
- package/Link.cjs.map +1 -1
- package/Link.js +17 -43
- package/Link.js.map +1 -1
- package/ListView.cjs +1 -1
- package/ListView.cjs.map +1 -1
- package/ListView.css +1 -1
- package/ListView.js +412 -24
- package/ListView.js.map +1 -1
- package/ListView.module-854f2491-1f87d388.cjs +2 -0
- package/ListView.module-854f2491-1f87d388.cjs.map +1 -0
- package/ListView.module-854f2491-c5eba193.js +11 -0
- package/ListView.module-854f2491-c5eba193.js.map +1 -0
- package/Listbox.cjs +1 -1
- package/Listbox.cjs.map +1 -1
- package/Listbox.js +403 -25
- package/Listbox.js.map +1 -1
- package/Listbox.module-2120a0a7-794d64a0.cjs +2 -0
- package/Listbox.module-2120a0a7-794d64a0.cjs.map +1 -0
- package/Listbox.module-2120a0a7-aa22f0ed.js +13 -0
- package/Listbox.module-2120a0a7-aa22f0ed.js.map +1 -0
- package/LocalizationProvider.cjs +1 -1
- package/LocalizationProvider.cjs.map +1 -1
- package/LocalizationProvider.js +11 -10
- package/LocalizationProvider.js.map +1 -1
- package/Menu.cjs +1 -1
- package/Menu.cjs.map +1 -1
- package/Menu.js +320 -51
- package/Menu.js.map +1 -1
- package/Overflow-057bbf4e.cjs +2 -0
- package/Overflow-057bbf4e.cjs.map +1 -0
- package/Overflow-a026904d.js +249 -0
- package/Overflow-a026904d.js.map +1 -0
- package/Overflow.cjs +1 -1
- package/Overflow.cjs.map +1 -1
- package/Overflow.css +1 -0
- package/Overflow.js +23 -49
- package/Overflow.js.map +1 -1
- package/Page.cjs +1 -1
- package/Page.cjs.map +1 -1
- package/Page.js +12 -11
- package/Page.js.map +1 -1
- package/Popover-aaeea980.js +272 -0
- package/Popover-aaeea980.js.map +1 -0
- package/Popover-e336dabc.cjs +2 -0
- package/Popover-e336dabc.cjs.map +1 -0
- package/Popover.cjs +1 -1
- package/Popover.cjs.map +1 -1
- package/Popover.css +1 -0
- package/Popover.js +34 -60
- package/Popover.js.map +1 -1
- package/ProgressBar.cjs +1 -1
- package/ProgressBar.cjs.map +1 -1
- package/ProgressBar.js +121 -7
- package/ProgressBar.js.map +1 -1
- package/Radio.cjs +1 -1
- package/Radio.cjs.map +1 -1
- package/Radio.js +142 -50
- package/Radio.js.map +1 -1
- package/SegmentedControl.cjs +1 -1
- package/SegmentedControl.cjs.map +1 -1
- package/SegmentedControl.js +133 -58
- package/SegmentedControl.js.map +1 -1
- package/SideNav.cjs +1 -29
- package/SideNav.cjs.map +1 -1
- package/SideNav.js +258 -1139
- package/SideNav.js.map +1 -1
- package/SrOnly-0c7fd87a.js +13 -0
- package/{SrOnly-864bd4cb.js.map → SrOnly-0c7fd87a.js.map} +1 -1
- package/SrOnly-91a467dc.cjs +2 -0
- package/{SrOnly-88e8fca6.cjs.map → SrOnly-91a467dc.cjs.map} +1 -1
- package/SrOnly.cjs +1 -1
- package/SrOnly.js +1 -1
- package/Stepper.cjs +1 -1
- package/Stepper.cjs.map +1 -1
- package/Stepper.js +430 -47
- package/Stepper.js.map +1 -1
- package/Switch.cjs +1 -1
- package/Switch.cjs.map +1 -1
- package/Switch.js +67 -44
- package/Switch.js.map +1 -1
- package/Tab.cjs +9 -1
- package/Tab.cjs.map +1 -1
- package/Tab.js +436 -24
- package/Tab.js.map +1 -1
- package/{Text-465104f6.js → Text-08c90c22.js} +30 -29
- package/Text-08c90c22.js.map +1 -0
- package/Text-8ed03ac7.cjs +2 -0
- package/Text-8ed03ac7.cjs.map +1 -0
- package/Text.cjs +1 -1
- package/Text.js +1 -1
- package/TextField.cjs +1 -1
- package/TextField.cjs.map +1 -1
- package/TextField.js +156 -47
- package/TextField.js.map +1 -1
- package/Textarea.cjs +1 -1
- package/Textarea.cjs.map +1 -1
- package/Textarea.js +260 -45
- package/Textarea.js.map +1 -1
- package/ThemeProvider.cjs +1 -1
- package/ThemeProvider.js +1 -1
- package/Toast.cjs +8 -1
- package/Toast.cjs.map +1 -1
- package/Toast.js +568 -9
- package/Toast.js.map +1 -1
- package/Tooltip-2ecbf35e.cjs +2 -0
- package/Tooltip-2ecbf35e.cjs.map +1 -0
- package/Tooltip-dcc5d45c.js +157 -0
- package/Tooltip-dcc5d45c.js.map +1 -0
- package/Tooltip.cjs +1 -1
- package/Tooltip.cjs.map +1 -1
- package/Tooltip.css +1 -0
- package/Tooltip.js +18 -44
- package/Tooltip.js.map +1 -1
- package/anvil2.cjs +1 -1
- package/anvil2.d.ts +18 -6
- package/anvil2.js +161 -183
- package/anvil2.js.map +1 -1
- package/check_circle-48e002d3-0d49b2da.cjs +2 -0
- package/check_circle-48e002d3-0d49b2da.cjs.map +1 -0
- package/check_circle-48e002d3-5838521c.js +7 -0
- package/check_circle-48e002d3-5838521c.js.map +1 -0
- package/chevron_right-5b0931b5-96f8a9c6.cjs +2 -0
- package/chevron_right-5b0931b5-96f8a9c6.cjs.map +1 -0
- package/chevron_right-5b0931b5-ac35ad56.js +6 -0
- package/chevron_right-5b0931b5-ac35ad56.js.map +1 -0
- package/childrenToString-0cd30a27.cjs +2 -0
- package/childrenToString-0cd30a27.cjs.map +1 -0
- package/childrenToString-416df522.js +19 -0
- package/childrenToString-416df522.js.map +1 -0
- package/extends-31d75778.js +27 -0
- package/extends-31d75778.js.map +1 -0
- package/extends-60b54772.cjs +2 -0
- package/extends-60b54772.cjs.map +1 -0
- package/getKeyboardFocusableElements-58a00025.js +14 -0
- package/getKeyboardFocusableElements-58a00025.js.map +1 -0
- package/getKeyboardFocusableElements-aba1bd01.cjs +2 -0
- package/getKeyboardFocusableElements-aba1bd01.cjs.map +1 -0
- package/index-04060912.js +3677 -0
- package/index-04060912.js.map +1 -0
- package/index-06c0bdf0.js +480 -0
- package/index-06c0bdf0.js.map +1 -0
- package/index-11b6ca91-14b4e485.js +63 -0
- package/index-11b6ca91-14b4e485.js.map +1 -0
- package/index-11b6ca91-d30fd1d3.cjs +2 -0
- package/index-11b6ca91-d30fd1d3.cjs.map +1 -0
- package/{index-acdc415f.cjs → index-1f4f169d.cjs} +2 -2
- package/{index-acdc415f.cjs.map → index-1f4f169d.cjs.map} +1 -1
- package/index-40821bc4.cjs +2 -0
- package/index-40821bc4.cjs.map +1 -0
- package/{index-ab05dabf.js → index-47e4931c.js} +3 -3
- package/{index-ab05dabf.js.map → index-47e4931c.js.map} +1 -1
- package/index-49242812.js +59 -0
- package/index-49242812.js.map +1 -0
- package/index-69174413.cjs +5 -0
- package/index-69174413.cjs.map +1 -0
- package/index-902bf2b0.js +56 -0
- package/index-902bf2b0.js.map +1 -0
- package/index-a53df036.cjs +2 -0
- package/index-a53df036.cjs.map +1 -0
- package/{index-e0f6271a.js → index-c6e22bb9.js} +6 -6
- package/{index-e0f6271a.js.map → index-c6e22bb9.js.map} +1 -1
- package/index-dcf78e3f.cjs +2 -0
- package/index-dcf78e3f.cjs.map +1 -0
- package/{index-3a4e28a9-3d7ba14f.js → index-eb2e706f-03380994.js} +19 -18
- package/index-eb2e706f-03380994.js.map +1 -0
- package/index-eb2e706f-ff6c4157.cjs +2 -0
- package/index-eb2e706f-ff6c4157.cjs.map +1 -0
- package/{index-67d20edb.cjs → index-ef2e9d11.cjs} +2 -2
- package/{index-67d20edb.cjs.map → index-ef2e9d11.cjs.map} +1 -1
- package/index.css +1 -1
- package/index11.css +1 -0
- package/index12.css +1 -0
- package/index13.css +1 -0
- package/index14.css +1 -0
- package/index15.css +1 -0
- package/index16.css +1 -0
- package/index18.css +1 -0
- package/index19.css +1 -0
- package/index2.css +1 -1
- package/index21.css +1 -0
- package/index22.css +1 -0
- package/index24.css +1 -0
- package/index3.css +1 -1
- package/index6.css +1 -0
- package/index7.css +1 -0
- package/index9.css +1 -0
- package/info-af4c0112-9f16129f.cjs +2 -0
- package/info-af4c0112-9f16129f.cjs.map +1 -0
- package/info-af4c0112-f73c8f68.js +6 -0
- package/info-af4c0112-f73c8f68.js.map +1 -0
- package/package.json +2 -2
- package/tinycolor-3b50a250.cjs +2 -0
- package/tinycolor-3b50a250.cjs.map +1 -0
- package/tinycolor-d415b1fd.js +712 -0
- package/tinycolor-d415b1fd.js.map +1 -0
- package/token.cjs +1 -1
- package/token.js +1 -1
- package/useAccessibleColor.cjs +1 -1
- package/useAccessibleColor.cjs.map +1 -1
- package/useAccessibleColor.d.ts +1 -1
- package/useAccessibleColor.js +36 -32
- package/useAccessibleColor.js.map +1 -1
- package/useLayoutPropsUtil-cd33328b.cjs +2 -0
- package/useLayoutPropsUtil-cd33328b.cjs.map +1 -0
- package/useLayoutPropsUtil-f34e9597.js +160 -0
- package/useLayoutPropsUtil-f34e9597.js.map +1 -0
- package/useLinkStyles.cjs +1 -1
- package/useLinkStyles.d.ts +2 -2
- package/useLinkStyles.js +3 -31
- package/useLinkStyles.js.map +1 -1
- package/useMergeRefs.cjs +1 -1
- package/useMergeRefs.d.ts +1 -1
- package/useMergeRefs.js +3 -32
- package/useMergeRefs.js.map +1 -1
- package/usePrefersColorScheme.cjs +1 -1
- package/usePrefersColorScheme.cjs.map +1 -1
- package/usePrefersColorScheme.d.ts +1 -1
- package/usePrefersColorScheme.js +19 -32
- package/usePrefersColorScheme.js.map +1 -1
- package/useSwipe.cjs +1 -1
- package/useSwipe.cjs.map +1 -1
- package/useSwipe.d.ts +1 -1
- package/useSwipe.js +15 -32
- package/useSwipe.js.map +1 -1
- package/Alert-012e475c.js.map +0 -1
- package/Alert-066f00f2.cjs +0 -2
- package/Alert-066f00f2.cjs.map +0 -1
- package/Announcement-cd9602ed.cjs +0 -2
- package/Announcement-cd9602ed.cjs.map +0 -1
- package/Announcement-f9b09ba3.js +0 -88
- package/Announcement-f9b09ba3.js.map +0 -1
- package/Announcement.css +0 -1
- package/Badge-b8764640.cjs +0 -2
- package/Badge-b8764640.cjs.map +0 -1
- package/Badge-df96f15a.js +0 -45
- package/Badge-df96f15a.js.map +0 -1
- package/Badge.css +0 -1
- package/Calendar-31bcb381.js +0 -5797
- package/Calendar-31bcb381.js.map +0 -1
- package/Calendar-d0baf4b1.cjs +0 -2
- package/Calendar-d0baf4b1.cjs.map +0 -1
- package/Card-20628287.cjs +0 -2
- package/Card-20628287.cjs.map +0 -1
- package/Card-bb358803.js +0 -51
- package/Card-bb358803.js.map +0 -1
- package/Chip-5b63e48c.cjs +0 -2
- package/Chip-5b63e48c.cjs.map +0 -1
- package/Chip-6dde28bc.js.map +0 -1
- package/Divider-6646eeb8.cjs +0 -2
- package/Divider-6646eeb8.cjs.map +0 -1
- package/Divider-b3bff73a.js +0 -74
- package/Divider-b3bff73a.js.map +0 -1
- package/Flex-971b5295.cjs +0 -2
- package/Flex-971b5295.cjs.map +0 -1
- package/Flex-d338e855.js.map +0 -1
- package/Grid-37ded954.cjs +0 -2
- package/Grid-37ded954.cjs.map +0 -1
- package/Grid-5bad450f.js +0 -89
- package/Grid-5bad450f.js.map +0 -1
- package/Icon-57c31c9b.cjs +0 -2
- package/Icon-57c31c9b.cjs.map +0 -1
- package/Icon-b94f924c.js.map +0 -1
- package/ListView-3b1adecb.js +0 -557
- package/ListView-3b1adecb.js.map +0 -1
- package/ListView-88e49b19.cjs +0 -2
- package/ListView-88e49b19.cjs.map +0 -1
- package/Listbox-60fbdaa1.js +0 -394
- package/Listbox-60fbdaa1.js.map +0 -1
- package/Listbox-cd5c4185.cjs +0 -2
- package/Listbox-cd5c4185.cjs.map +0 -1
- package/ProgressBar-c1b5c7c3.js +0 -516
- package/ProgressBar-c1b5c7c3.js.map +0 -1
- package/ProgressBar-fa511478.cjs +0 -2
- package/ProgressBar-fa511478.cjs.map +0 -1
- package/ProgressBar.css +0 -1
- package/SideNav-33a404ec.js +0 -935
- package/SideNav-33a404ec.js.map +0 -1
- package/SideNav-47435e45.cjs +0 -21
- package/SideNav-47435e45.cjs.map +0 -1
- package/SrOnly-864bd4cb.js +0 -13
- package/SrOnly-88e8fca6.cjs +0 -2
- package/Stepper-7e3a130c.js +0 -633
- package/Stepper-7e3a130c.js.map +0 -1
- package/Stepper-8675700c.cjs +0 -2
- package/Stepper-8675700c.cjs.map +0 -1
- package/Stepper.css +0 -1
- package/Tab-1fce1d41.js +0 -422
- package/Tab-1fce1d41.js.map +0 -1
- package/Tab-f843e740.cjs +0 -10
- package/Tab-f843e740.cjs.map +0 -1
- package/Text-465104f6.js.map +0 -1
- package/Text-631c229a.cjs +0 -2
- package/Text-631c229a.cjs.map +0 -1
- package/Toast-32a4ab22.cjs +0 -9
- package/Toast-32a4ab22.cjs.map +0 -1
- package/Toast-6cd7d2e1.js +0 -566
- package/Toast-6cd7d2e1.js.map +0 -1
- package/check_circle-48e002d3-0554de7d.js +0 -8
- package/check_circle-48e002d3-0554de7d.js.map +0 -1
- package/check_circle-48e002d3-57364fcd.cjs +0 -2
- package/check_circle-48e002d3-57364fcd.cjs.map +0 -1
- package/floating-ui.react-51a3fa68.js +0 -23242
- package/floating-ui.react-51a3fa68.js.map +0 -1
- package/floating-ui.react-5347095a.cjs +0 -178
- package/floating-ui.react-5347095a.cjs.map +0 -1
- package/index-3a4e28a9-3d7ba14f.js.map +0 -1
- package/index-3a4e28a9-b649e635.cjs +0 -2
- package/index-3a4e28a9-b649e635.cjs.map +0 -1
- package/index-3f218083.js +0 -58
- package/index-3f218083.js.map +0 -1
- package/index-63e13299.cjs +0 -2
- package/index-63e13299.cjs.map +0 -1
- package/index-9948e3af.cjs +0 -23
- package/index-9948e3af.cjs.map +0 -1
- package/index-d46fa8de-c02f7a12.cjs +0 -2
- package/index-d46fa8de-c02f7a12.cjs.map +0 -1
- package/index-d46fa8de-f8bf17b6.js +0 -540
- package/index-d46fa8de-f8bf17b6.js.map +0 -1
- package/index-f7658447-1cfbda8f.js +0 -120
- package/index-f7658447-1cfbda8f.js.map +0 -1
- package/index-f7658447-f447ade8.cjs +0 -2
- package/index-f7658447-f447ade8.cjs.map +0 -1
- package/index-f7658447.css +0 -1
- package/index-ff5fea63.js +0 -5015
- package/index-ff5fea63.js.map +0 -1
- package/useLayoutPropsUtil-e307abc7-3826ee09.cjs +0 -2
- package/useLayoutPropsUtil-e307abc7-3826ee09.cjs.map +0 -1
- package/useLayoutPropsUtil-e307abc7-cbe2fb6d.js +0 -869
- package/useLayoutPropsUtil-e307abc7-cbe2fb6d.js.map +0 -1
- package/usePrefersColorScheme-129544ad-59e2e284.cjs +0 -2
- package/usePrefersColorScheme-129544ad-59e2e284.cjs.map +0 -1
- package/usePrefersColorScheme-129544ad-cab6fc3f.js +0 -55
- package/usePrefersColorScheme-129544ad-cab6fc3f.js.map +0 -1
- package/useSwipe-82769b09-835234e6.js +0 -17
- package/useSwipe-82769b09-835234e6.js.map +0 -1
- package/useSwipe-82769b09-dba26ed2.cjs +0 -2
- package/useSwipe-82769b09-dba26ed2.cjs.map +0 -1
- /package/{index-3a4e28a9.css → index-eb2e706f.css} +0 -0
- /package/{Grid.css → index10.css} +0 -0
- /package/{SideNav.css → index17.css} +0 -0
- /package/{Tab.css → index20.css} +0 -0
- /package/{Toast.css → index23.css} +0 -0
- /package/{Calendar.css → index4.css} +0 -0
- /package/{Card.css → index5.css} +0 -0
- /package/{Divider.css → index8.css} +0 -0
package/Badge.js
CHANGED
|
@@ -1,11 +1,51 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import "./index3.css";
|
|
2
|
+
import { j as _ } from "./jsx-runtime-82a9ddf6.js";
|
|
3
|
+
import { f as s } from "./jsx-runtime-944c88e2-e73fa629.js";
|
|
4
|
+
import { forwardRef as m } from "react";
|
|
5
|
+
import { G as g } from "./index-c6e22bb9.js";
|
|
6
|
+
import { p as b } from "./SrOnly-0c7fd87a.js";
|
|
7
|
+
import "./tinycolor-d415b1fd.js";
|
|
8
|
+
import { J as h } from "./useLayoutPropsUtil-f34e9597.js";
|
|
9
|
+
const N = "_badge_14fjr_4", v = "_empty_14fjr_45", a = {
|
|
10
|
+
badge: N,
|
|
11
|
+
empty: v
|
|
12
|
+
}, f = m((r, t) => {
|
|
13
|
+
const { layoutStyles: p, componentProps: i } = h(r), {
|
|
14
|
+
offset: e,
|
|
15
|
+
children: o,
|
|
16
|
+
style: l,
|
|
17
|
+
className: d,
|
|
18
|
+
"aria-label": n,
|
|
19
|
+
...c
|
|
20
|
+
} = i, x = g(a.badge, d, {
|
|
21
|
+
[a.empty]: !o
|
|
22
|
+
}), y = (e == null ? void 0 : e.x) ?? "0px", u = (e == null ? void 0 : e.y) ?? "0px", j = {
|
|
23
|
+
...l,
|
|
24
|
+
...p,
|
|
25
|
+
"--offsetY": u,
|
|
26
|
+
"--offsetX": y
|
|
27
|
+
};
|
|
28
|
+
return /* @__PURE__ */ s.jsxs(
|
|
29
|
+
"sup",
|
|
30
|
+
{
|
|
31
|
+
className: x,
|
|
32
|
+
style: j,
|
|
33
|
+
"data-anv": "badge",
|
|
34
|
+
...c,
|
|
35
|
+
ref: t,
|
|
36
|
+
children: [
|
|
37
|
+
/* @__PURE__ */ s.jsx(b, { children: n }),
|
|
38
|
+
o
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
);
|
|
42
|
+
});
|
|
43
|
+
f.displayName = "Badge";
|
|
44
|
+
const X = m(
|
|
45
|
+
(r, t) => /* @__PURE__ */ _.jsx(f, { ref: t, ...r })
|
|
6
46
|
);
|
|
7
47
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
48
|
+
X as Badge,
|
|
49
|
+
X as default
|
|
10
50
|
};
|
|
11
51
|
//# sourceMappingURL=Badge.js.map
|
package/Badge.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.js","sources":["../src/components/Badge/Badge.tsx"],"sourcesContent":["import {\n BadgeProps as CoreBadgeProps,\n Badge as CoreBadge,\n} from \"@servicetitan/hammer-react/dist/Badge\";\nimport { Ref, forwardRef } from \"react\";\n\nexport type BadgeProps = CoreBadgeProps;\n\nexport const Badge = forwardRef(\n (props: BadgeProps, ref: Ref<HTMLScriptElement>) => {\n return <CoreBadge ref={ref} {...props} />;\n }\n);\n"],"names":["
|
|
1
|
+
{"version":3,"file":"Badge.js","sources":["../node_modules/@servicetitan/hammer-react/dist/Badge.js","../src/components/Badge/Badge.tsx"],"sourcesContent":["import \"./index4.css\";\nimport { j as o } from \"./jsx-runtime-944c88e2.js\";\nimport { forwardRef as b } from \"react\";\nimport g from \"classnames\";\nimport { SrOnly as j } from \"./SrOnly.js\";\nimport \"tinycolor2\";\nimport \"@servicetitan/hammer-token\";\nimport { useLayoutPropsUtil as u } from \"./useLayoutPropsUtil.js\";\nimport \"@floating-ui/react\";\nconst _ = \"_badge_14fjr_4\", N = \"_empty_14fjr_45\", e = {\n badge: _,\n empty: N\n}, h = b((r, a) => {\n const { layoutStyles: m, componentProps: p } = u(r), {\n offset: t,\n children: s,\n style: n,\n className: c,\n \"aria-label\": i,\n ...l\n } = p, y = g(e.badge, c, {\n [e.empty]: !s\n }), d = (t == null ? void 0 : t.x) ?? \"0px\", f = (t == null ? void 0 : t.y) ?? \"0px\", x = {\n ...n,\n ...m,\n \"--offsetY\": f,\n \"--offsetX\": d\n };\n return /* @__PURE__ */ o.jsxs(\n \"sup\",\n {\n className: y,\n style: x,\n \"data-anv\": \"badge\",\n ...l,\n ref: a,\n children: [\n /* @__PURE__ */ o.jsx(j, { children: i }),\n s\n ]\n }\n );\n});\nh.displayName = \"Badge\";\nexport {\n h as Badge\n};\n//# sourceMappingURL=Badge.js.map\n","import {\n BadgeProps as CoreBadgeProps,\n Badge as CoreBadge,\n} from \"@servicetitan/hammer-react/dist/Badge\";\nimport { Ref, forwardRef } from \"react\";\n\nexport type BadgeProps = CoreBadgeProps;\n\nexport const Badge = forwardRef(\n (props: BadgeProps, ref: Ref<HTMLScriptElement>) => {\n return <CoreBadge ref={ref} {...props} />;\n }\n);\n"],"names":["_","N","e","h","forwardRef","a","m","p$1","J","t","s","n","c","i","l","y","G","d","f","x","fr","p","Badge","props","ref","jsxRuntimeExports"],"mappings":";;;;;;;;AASA,MAAAA,IAAA,kBAAAC,IAAA,mBAAAC,IAAA;AAAA,EACA,OAAAF;AAAA,EACA,OAAAC;AACA,GAAAE,IAAAC,EAAA,CAAA,GAAAC,MAAA;AACA,QAAA,EAAA,cAAAC,GAAA,gBAAAC,EAAA,IAAAC,EAAA,CAAA,GAAA;AAAA,IACA,QAAAC;AAAA,IACA,UAAAC;AAAA,IACA,OAAAC;AAAA,IACA,WAAAC;AAAA,IACA,cAAAC;AAAA,IACA,GAAAC;AAAA,EACA,IAAAP,GAAAQ,IAAAC,EAAAd,EAAA,OAAAU,GAAA;AAAA,IACA,CAAAV,EAAA,KAAA,GAAA,CAAAQ;AAAA,EACA,CAAA,GAAAO,KAAAR,KAAA,OAAA,SAAAA,EAAA,MAAA,OAAAS,KAAAT,KAAA,OAAA,SAAAA,EAAA,MAAA,OAAAU,IAAA;AAAA,IACA,GAAAR;AAAA,IACA,GAAAL;AAAA,IACA,aAAAY;AAAA,IACA,aAAAD;AAAA,EACA;AACA,SAAA,gBAAAG,EAAA;AAAA,IACA;AAAA,IACA;AAAA,MACA,WAAAL;AAAA,MACA,OAAAI;AAAA,MACA,YAAA;AAAA,MACA,GAAAL;AAAA,MACA,KAAAT;AAAA,MACA,UAAA;AAAA,QACA,gBAAAe,EAAA,IAAAC,GAAA,EAAA,UAAAR,EAAA,CAAA;AAAA,QACAH;AAAA,MACA;AAAA,IACA;AAAA,EACA;AACA,CAAA;AACAP,EAAA,cAAA;ACnCO,MAAAmB,IAAAlB;AAAA,EAAc,CAAAmB,GAAAC,MAEjB,gBAAAC,EAAA,IAAAtB,GAAA,EAAA,KAAAqB,GAAA,GAAAD,EAAA,CAAA;AAEJ;","x_google_ignoreList":[0]}
|
package/Button.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./jsx-runtime-494437bb.cjs"),c=require("./index-eb2e706f-ff6c4157.cjs"),u=require("react"),d=require("./useTrackingId.cjs"),o=require("./childrenToString-0cd30a27.cjs"),t=u.forwardRef((e,n)=>{const i={children:o.n(e.children),appearance:e.appearance,icon:e.icon,size:e.size,type:e.type},r=d.useTrackingId({name:"Button",data:i,hasOverride:!!e["data-tracking-id"]});return a.jsxRuntimeExports.jsx(c.S,{ref:n,"data-trackling-id":r,...e})});exports.Button=t;exports.default=t;
|
|
2
2
|
//# sourceMappingURL=Button.cjs.map
|
package/Button.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.cjs","sources":["../src/components/Button/Button.tsx"],"sourcesContent":["import {\n ButtonProps as CoreButtonProps,\n Button as CoreButton,\n} from \"@servicetitan/hammer-react/dist/Button\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\nimport { childrenToString } from \"@servicetitan/hammer-react\";\n\nexport type ButtonProps = CoreButtonProps & DataTrackingId;\n\nexport const Button = forwardRef(\n (props: ButtonProps, ref: Ref<HTMLButtonElement>) => {\n const data = {\n children: childrenToString(props.children),\n appearance: props.appearance,\n icon: props.icon,\n size: props.size,\n type: props.type,\n };\n\n const trackingId = useTrackingId({\n name: \"Button\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return <CoreButton ref={ref} data-trackling-id={trackingId} {...props} />;\n }\n);\n"],"names":["Button","forwardRef","props","ref","data","childrenToString","trackingId","useTrackingId","CoreButton"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Button.cjs","sources":["../src/components/Button/Button.tsx"],"sourcesContent":["import {\n ButtonProps as CoreButtonProps,\n Button as CoreButton,\n} from \"@servicetitan/hammer-react/dist/Button\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\nimport { childrenToString } from \"@servicetitan/hammer-react/dist/childrenToString\";\n\nexport type ButtonProps = CoreButtonProps & DataTrackingId;\n\nexport const Button = forwardRef(\n (props: ButtonProps, ref: Ref<HTMLButtonElement>) => {\n const data = {\n children: childrenToString(props.children),\n appearance: props.appearance,\n icon: props.icon,\n size: props.size,\n type: props.type,\n };\n\n const trackingId = useTrackingId({\n name: \"Button\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return <CoreButton ref={ref} data-trackling-id={trackingId} {...props} />;\n }\n);\n"],"names":["Button","forwardRef","props","ref","data","childrenToString","trackingId","useTrackingId","CoreButton"],"mappings":"sSAWaA,EAASC,EAAA,WACpB,CAACC,EAAoBC,IAAgC,CACnD,MAAMC,EAAO,CACX,SAAUC,EAAAA,EAAiBH,EAAM,QAAQ,EACzC,WAAYA,EAAM,WAClB,KAAMA,EAAM,KACZ,KAAMA,EAAM,KACZ,KAAMA,EAAM,IAAA,EAGRI,EAAaC,EAAAA,cAAc,CAC/B,KAAM,SACN,KAAAH,EACA,YAAa,CAAC,CAACF,EAAM,kBAAkB,CAAA,CACxC,EACD,+BAAQM,EAAW,EAAA,CAAA,IAAAL,EAAU,oBAAmBG,EAAa,GAAGJ,CAAO,CAAA,CACzE,CACF"}
|
package/Button.js
CHANGED
|
@@ -1,52 +1,26 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { S as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { useTrackingId as
|
|
5
|
-
import "./
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import "./Card-bb358803.js";
|
|
11
|
-
import "./ListView-3b1adecb.js";
|
|
12
|
-
import "./Chip-6dde28bc.js";
|
|
13
|
-
import { C as n } from "./index-ff5fea63.js";
|
|
14
|
-
import "./ProgressBar-c1b5c7c3.js";
|
|
15
|
-
import "./Divider-b3bff73a.js";
|
|
16
|
-
import "./Flex-d338e855.js";
|
|
17
|
-
import "./Grid-5bad450f.js";
|
|
18
|
-
import "./Icon-b94f924c.js";
|
|
19
|
-
import "./Listbox-60fbdaa1.js";
|
|
20
|
-
import "./Stepper-7e3a130c.js";
|
|
21
|
-
import "./SideNav-33a404ec.js";
|
|
22
|
-
import "./SrOnly-864bd4cb.js";
|
|
23
|
-
import "./jsx-runtime-944c88e2-e73fa629.js";
|
|
24
|
-
import "./index-e0f6271a.js";
|
|
25
|
-
import "./Tab-1fce1d41.js";
|
|
26
|
-
import "./Text-465104f6.js";
|
|
27
|
-
import "./Toast-6cd7d2e1.js";
|
|
28
|
-
import "./index-d46fa8de-f8bf17b6.js";
|
|
29
|
-
import "./useLayoutPropsUtil-e307abc7-cbe2fb6d.js";
|
|
30
|
-
import "./index-3f218083.js";
|
|
31
|
-
import "./LocalizationProvider.js";
|
|
32
|
-
const K = a(
|
|
33
|
-
(t, r) => {
|
|
34
|
-
const i = {
|
|
35
|
-
children: n(t.children),
|
|
1
|
+
import { j as i } from "./jsx-runtime-82a9ddf6.js";
|
|
2
|
+
import { S as n } from "./index-eb2e706f-03380994.js";
|
|
3
|
+
import { forwardRef as o } from "react";
|
|
4
|
+
import { useTrackingId as c } from "./useTrackingId.js";
|
|
5
|
+
import { n as d } from "./childrenToString-416df522.js";
|
|
6
|
+
const k = o(
|
|
7
|
+
(t, a) => {
|
|
8
|
+
const r = {
|
|
9
|
+
children: d(t.children),
|
|
36
10
|
appearance: t.appearance,
|
|
37
11
|
icon: t.icon,
|
|
38
12
|
size: t.size,
|
|
39
13
|
type: t.type
|
|
40
|
-
},
|
|
14
|
+
}, e = c({
|
|
41
15
|
name: "Button",
|
|
42
|
-
data:
|
|
16
|
+
data: r,
|
|
43
17
|
hasOverride: !!t["data-tracking-id"]
|
|
44
18
|
});
|
|
45
|
-
return /* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ i.jsx(n, { ref: a, "data-trackling-id": e, ...t });
|
|
46
20
|
}
|
|
47
21
|
);
|
|
48
22
|
export {
|
|
49
|
-
|
|
50
|
-
|
|
23
|
+
k as Button,
|
|
24
|
+
k as default
|
|
51
25
|
};
|
|
52
26
|
//# sourceMappingURL=Button.js.map
|
package/Button.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sources":["../src/components/Button/Button.tsx"],"sourcesContent":["import {\n ButtonProps as CoreButtonProps,\n Button as CoreButton,\n} from \"@servicetitan/hammer-react/dist/Button\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\nimport { childrenToString } from \"@servicetitan/hammer-react\";\n\nexport type ButtonProps = CoreButtonProps & DataTrackingId;\n\nexport const Button = forwardRef(\n (props: ButtonProps, ref: Ref<HTMLButtonElement>) => {\n const data = {\n children: childrenToString(props.children),\n appearance: props.appearance,\n icon: props.icon,\n size: props.size,\n type: props.type,\n };\n\n const trackingId = useTrackingId({\n name: \"Button\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return <CoreButton ref={ref} data-trackling-id={trackingId} {...props} />;\n }\n);\n"],"names":["Button","forwardRef","props","ref","data","childrenToString","trackingId","useTrackingId","CoreButton"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Button.js","sources":["../src/components/Button/Button.tsx"],"sourcesContent":["import {\n ButtonProps as CoreButtonProps,\n Button as CoreButton,\n} from \"@servicetitan/hammer-react/dist/Button\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\nimport { childrenToString } from \"@servicetitan/hammer-react/dist/childrenToString\";\n\nexport type ButtonProps = CoreButtonProps & DataTrackingId;\n\nexport const Button = forwardRef(\n (props: ButtonProps, ref: Ref<HTMLButtonElement>) => {\n const data = {\n children: childrenToString(props.children),\n appearance: props.appearance,\n icon: props.icon,\n size: props.size,\n type: props.type,\n };\n\n const trackingId = useTrackingId({\n name: \"Button\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return <CoreButton ref={ref} data-trackling-id={trackingId} {...props} />;\n }\n);\n"],"names":["Button","forwardRef","props","ref","data","childrenToString","trackingId","useTrackingId","CoreButton"],"mappings":";;;;;AAWO,MAAMA,IAASC;AAAA,EACpB,CAACC,GAAoBC,MAAgC;AACnD,UAAMC,IAAO;AAAA,MACX,UAAUC,EAAiBH,EAAM,QAAQ;AAAA,MACzC,YAAYA,EAAM;AAAA,MAClB,MAAMA,EAAM;AAAA,MACZ,MAAMA,EAAM;AAAA,MACZ,MAAMA,EAAM;AAAA,IAAA,GAGRI,IAAaC,EAAc;AAAA,MAC/B,MAAM;AAAA,MACN,MAAAH;AAAA,MACA,aAAa,CAAC,CAACF,EAAM,kBAAkB;AAAA,IAAA,CACxC;AACD,iCAAQM,GAAW,EAAA,KAAAL,GAAU,qBAAmBG,GAAa,GAAGJ,EAAO,CAAA;AAAA,EACzE;AACF;"}
|
package/ButtonCompound.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./jsx-runtime-494437bb.cjs"),a=require("./index-eb2e706f-ff6c4157.cjs"),d=require("react"),o=require("./useTrackingId.cjs"),c=require("./childrenToString-0cd30a27.cjs"),t=d.forwardRef((e,n)=>{const r={children:c.n(e.children),shape:e.shape,type:e.type},i=o.useTrackingId({name:"ButtonCompound",data:r,hasOverride:!!e["data-tracking-id"]});return u.jsxRuntimeExports.jsx(a.w,{ref:n,"data-tracking-id":i,...e})});exports.ButtonCompound=t;exports.default=t;
|
|
2
2
|
//# sourceMappingURL=ButtonCompound.cjs.map
|
package/ButtonCompound.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonCompound.cjs","sources":["../src/components/ButtonCompound/ButtonCompound.tsx"],"sourcesContent":["import {\n ButtonCompoundProps as CoreButtonCompoundProps,\n ButtonCompound as CoreButtonCompound,\n} from \"@servicetitan/hammer-react/dist/Button\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\nimport { childrenToString } from \"@servicetitan/hammer-react\";\n\nexport type ButtonCompoundProps = CoreButtonCompoundProps & DataTrackingId;\n\nexport const ButtonCompound = forwardRef(\n (props: ButtonCompoundProps, ref: Ref<HTMLButtonElement>) => {\n const data = {\n children: childrenToString(props.children),\n shape: props.shape,\n type: props.type,\n };\n\n const trackingId = useTrackingId({\n name: \"ButtonCompound\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return (\n <CoreButtonCompound ref={ref} data-tracking-id={trackingId} {...props} />\n );\n }\n);\n"],"names":["ButtonCompound","forwardRef","props","ref","data","childrenToString","trackingId","useTrackingId","CoreButtonCompound"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ButtonCompound.cjs","sources":["../src/components/ButtonCompound/ButtonCompound.tsx"],"sourcesContent":["import {\n ButtonCompoundProps as CoreButtonCompoundProps,\n ButtonCompound as CoreButtonCompound,\n} from \"@servicetitan/hammer-react/dist/Button\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\nimport { childrenToString } from \"@servicetitan/hammer-react/dist/childrenToString\";\n\nexport type ButtonCompoundProps = CoreButtonCompoundProps & DataTrackingId;\n\nexport const ButtonCompound = forwardRef(\n (props: ButtonCompoundProps, ref: Ref<HTMLButtonElement>) => {\n const data = {\n children: childrenToString(props.children),\n shape: props.shape,\n type: props.type,\n };\n\n const trackingId = useTrackingId({\n name: \"ButtonCompound\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return (\n <CoreButtonCompound ref={ref} data-tracking-id={trackingId} {...props} />\n );\n }\n);\n"],"names":["ButtonCompound","forwardRef","props","ref","data","childrenToString","trackingId","useTrackingId","CoreButtonCompound"],"mappings":"sSAWaA,EAAiBC,EAAA,WAC5B,CAACC,EAA4BC,IAAgC,CAC3D,MAAMC,EAAO,CACX,SAAUC,EAAAA,EAAiBH,EAAM,QAAQ,EACzC,MAAOA,EAAM,MACb,KAAMA,EAAM,IAAA,EAGRI,EAAaC,EAAAA,cAAc,CAC/B,KAAM,iBACN,KAAAH,EACA,YAAa,CAAC,CAACF,EAAM,kBAAkB,CAAA,CACxC,EACD,+BACGM,EAAmB,EAAA,CAAA,IAAAL,EAAU,mBAAkBG,EAAa,GAAGJ,CAAO,CAAA,CAE3E,CACF"}
|
package/ButtonCompound.js
CHANGED
|
@@ -1,50 +1,24 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { w as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { useTrackingId as
|
|
5
|
-
import "./
|
|
6
|
-
|
|
7
|
-
import "./index-f7658447-1cfbda8f.js";
|
|
8
|
-
import "./Badge-df96f15a.js";
|
|
9
|
-
import "./Calendar-31bcb381.js";
|
|
10
|
-
import "./Card-bb358803.js";
|
|
11
|
-
import "./ListView-3b1adecb.js";
|
|
12
|
-
import "./Chip-6dde28bc.js";
|
|
13
|
-
import { C as e } from "./index-ff5fea63.js";
|
|
14
|
-
import "./ProgressBar-c1b5c7c3.js";
|
|
15
|
-
import "./Divider-b3bff73a.js";
|
|
16
|
-
import "./Flex-d338e855.js";
|
|
17
|
-
import "./Grid-5bad450f.js";
|
|
18
|
-
import "./Icon-b94f924c.js";
|
|
19
|
-
import "./Listbox-60fbdaa1.js";
|
|
20
|
-
import "./Stepper-7e3a130c.js";
|
|
21
|
-
import "./SideNav-33a404ec.js";
|
|
22
|
-
import "./SrOnly-864bd4cb.js";
|
|
23
|
-
import "./jsx-runtime-944c88e2-e73fa629.js";
|
|
24
|
-
import "./index-e0f6271a.js";
|
|
25
|
-
import "./Tab-1fce1d41.js";
|
|
26
|
-
import "./Text-465104f6.js";
|
|
27
|
-
import "./Toast-6cd7d2e1.js";
|
|
28
|
-
import "./index-d46fa8de-f8bf17b6.js";
|
|
29
|
-
import "./useLayoutPropsUtil-e307abc7-cbe2fb6d.js";
|
|
30
|
-
import "./index-3f218083.js";
|
|
31
|
-
import "./LocalizationProvider.js";
|
|
32
|
-
const L = a(
|
|
1
|
+
import { j as n } from "./jsx-runtime-82a9ddf6.js";
|
|
2
|
+
import { w as e } from "./index-eb2e706f-03380994.js";
|
|
3
|
+
import { forwardRef as i } from "react";
|
|
4
|
+
import { useTrackingId as d } from "./useTrackingId.js";
|
|
5
|
+
import { n as m } from "./childrenToString-416df522.js";
|
|
6
|
+
const p = i(
|
|
33
7
|
(t, r) => {
|
|
34
|
-
const
|
|
35
|
-
children:
|
|
8
|
+
const a = {
|
|
9
|
+
children: m(t.children),
|
|
36
10
|
shape: t.shape,
|
|
37
11
|
type: t.type
|
|
38
|
-
},
|
|
12
|
+
}, o = d({
|
|
39
13
|
name: "ButtonCompound",
|
|
40
|
-
data:
|
|
14
|
+
data: a,
|
|
41
15
|
hasOverride: !!t["data-tracking-id"]
|
|
42
16
|
});
|
|
43
|
-
return /* @__PURE__ */
|
|
17
|
+
return /* @__PURE__ */ n.jsx(e, { ref: r, "data-tracking-id": o, ...t });
|
|
44
18
|
}
|
|
45
19
|
);
|
|
46
20
|
export {
|
|
47
|
-
|
|
48
|
-
|
|
21
|
+
p as ButtonCompound,
|
|
22
|
+
p as default
|
|
49
23
|
};
|
|
50
24
|
//# sourceMappingURL=ButtonCompound.js.map
|
package/ButtonCompound.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonCompound.js","sources":["../src/components/ButtonCompound/ButtonCompound.tsx"],"sourcesContent":["import {\n ButtonCompoundProps as CoreButtonCompoundProps,\n ButtonCompound as CoreButtonCompound,\n} from \"@servicetitan/hammer-react/dist/Button\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\nimport { childrenToString } from \"@servicetitan/hammer-react\";\n\nexport type ButtonCompoundProps = CoreButtonCompoundProps & DataTrackingId;\n\nexport const ButtonCompound = forwardRef(\n (props: ButtonCompoundProps, ref: Ref<HTMLButtonElement>) => {\n const data = {\n children: childrenToString(props.children),\n shape: props.shape,\n type: props.type,\n };\n\n const trackingId = useTrackingId({\n name: \"ButtonCompound\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return (\n <CoreButtonCompound ref={ref} data-tracking-id={trackingId} {...props} />\n );\n }\n);\n"],"names":["ButtonCompound","forwardRef","props","ref","data","childrenToString","trackingId","useTrackingId","CoreButtonCompound"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ButtonCompound.js","sources":["../src/components/ButtonCompound/ButtonCompound.tsx"],"sourcesContent":["import {\n ButtonCompoundProps as CoreButtonCompoundProps,\n ButtonCompound as CoreButtonCompound,\n} from \"@servicetitan/hammer-react/dist/Button\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\nimport { childrenToString } from \"@servicetitan/hammer-react/dist/childrenToString\";\n\nexport type ButtonCompoundProps = CoreButtonCompoundProps & DataTrackingId;\n\nexport const ButtonCompound = forwardRef(\n (props: ButtonCompoundProps, ref: Ref<HTMLButtonElement>) => {\n const data = {\n children: childrenToString(props.children),\n shape: props.shape,\n type: props.type,\n };\n\n const trackingId = useTrackingId({\n name: \"ButtonCompound\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return (\n <CoreButtonCompound ref={ref} data-tracking-id={trackingId} {...props} />\n );\n }\n);\n"],"names":["ButtonCompound","forwardRef","props","ref","data","childrenToString","trackingId","useTrackingId","CoreButtonCompound"],"mappings":";;;;;AAWO,MAAMA,IAAiBC;AAAA,EAC5B,CAACC,GAA4BC,MAAgC;AAC3D,UAAMC,IAAO;AAAA,MACX,UAAUC,EAAiBH,EAAM,QAAQ;AAAA,MACzC,OAAOA,EAAM;AAAA,MACb,MAAMA,EAAM;AAAA,IAAA,GAGRI,IAAaC,EAAc;AAAA,MAC/B,MAAM;AAAA,MACN,MAAAH;AAAA,MACA,aAAa,CAAC,CAACF,EAAM,kBAAkB;AAAA,IAAA,CACxC;AACD,iCACGM,GAAmB,EAAA,KAAAL,GAAU,oBAAkBG,GAAa,GAAGJ,EAAO,CAAA;AAAA,EAE3E;AACF;"}
|
package/ButtonLink.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./jsx-runtime-494437bb.cjs"),c=require("./index-eb2e706f-ff6c4157.cjs"),u=require("react"),d=require("./useTrackingId.cjs"),o=require("./childrenToString-0cd30a27.cjs"),t=u.forwardRef((e,n)=>{const i={children:o.n(e.children),appearance:e.appearance,href:e.href,icon:e.icon,size:e.size,type:e.type},r=d.useTrackingId({name:"ButtonLink",data:i,hasOverride:!!e["data-tracking-id"]});return a.jsxRuntimeExports.jsx(c.K,{ref:n,"data-tracking-id":r,...e})});exports.ButtonLink=t;exports.default=t;
|
|
2
2
|
//# sourceMappingURL=ButtonLink.cjs.map
|
package/ButtonLink.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonLink.cjs","sources":["../src/components/ButtonLink/ButtonLink.tsx"],"sourcesContent":["import {\n ButtonLinkProps as CoreButtonLinkProps,\n ButtonLink as CoreButtonLink,\n} from \"@servicetitan/hammer-react/dist/Button\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\nimport { childrenToString } from \"@servicetitan/hammer-react\";\n\nexport type ButtonLinkProps = CoreButtonLinkProps & DataTrackingId;\n\nexport const ButtonLink = forwardRef(\n (props: ButtonLinkProps, ref: Ref<HTMLAnchorElement>) => {\n const data = {\n children: childrenToString(props.children),\n appearance: props.appearance,\n href: props.href,\n icon: props.icon,\n size: props.size,\n type: props.type,\n };\n\n const trackingId = useTrackingId({\n name: \"ButtonLink\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return (\n <CoreButtonLink ref={ref} data-tracking-id={trackingId} {...props} />\n );\n }\n);\n"],"names":["ButtonLink","forwardRef","props","ref","data","childrenToString","trackingId","useTrackingId","CoreButtonLink"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ButtonLink.cjs","sources":["../src/components/ButtonLink/ButtonLink.tsx"],"sourcesContent":["import {\n ButtonLinkProps as CoreButtonLinkProps,\n ButtonLink as CoreButtonLink,\n} from \"@servicetitan/hammer-react/dist/Button\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\nimport { childrenToString } from \"@servicetitan/hammer-react/dist/childrenToString\";\n\nexport type ButtonLinkProps = CoreButtonLinkProps & DataTrackingId;\n\nexport const ButtonLink = forwardRef(\n (props: ButtonLinkProps, ref: Ref<HTMLAnchorElement>) => {\n const data = {\n children: childrenToString(props.children),\n appearance: props.appearance,\n href: props.href,\n icon: props.icon,\n size: props.size,\n type: props.type,\n };\n\n const trackingId = useTrackingId({\n name: \"ButtonLink\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return (\n <CoreButtonLink ref={ref} data-tracking-id={trackingId} {...props} />\n );\n }\n);\n"],"names":["ButtonLink","forwardRef","props","ref","data","childrenToString","trackingId","useTrackingId","CoreButtonLink"],"mappings":"sSAWaA,EAAaC,EAAA,WACxB,CAACC,EAAwBC,IAAgC,CACvD,MAAMC,EAAO,CACX,SAAUC,EAAAA,EAAiBH,EAAM,QAAQ,EACzC,WAAYA,EAAM,WAClB,KAAMA,EAAM,KACZ,KAAMA,EAAM,KACZ,KAAMA,EAAM,KACZ,KAAMA,EAAM,IAAA,EAGRI,EAAaC,EAAAA,cAAc,CAC/B,KAAM,aACN,KAAAH,EACA,YAAa,CAAC,CAACF,EAAM,kBAAkB,CAAA,CACxC,EACD,+BACGM,EAAe,EAAA,CAAA,IAAAL,EAAU,mBAAkBG,EAAa,GAAGJ,CAAO,CAAA,CAEvE,CACF"}
|
package/ButtonLink.js
CHANGED
|
@@ -1,53 +1,27 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { K as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { useTrackingId as
|
|
5
|
-
import "./
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import "./Card-bb358803.js";
|
|
11
|
-
import "./ListView-3b1adecb.js";
|
|
12
|
-
import "./Chip-6dde28bc.js";
|
|
13
|
-
import { C as n } from "./index-ff5fea63.js";
|
|
14
|
-
import "./ProgressBar-c1b5c7c3.js";
|
|
15
|
-
import "./Divider-b3bff73a.js";
|
|
16
|
-
import "./Flex-d338e855.js";
|
|
17
|
-
import "./Grid-5bad450f.js";
|
|
18
|
-
import "./Icon-b94f924c.js";
|
|
19
|
-
import "./Listbox-60fbdaa1.js";
|
|
20
|
-
import "./Stepper-7e3a130c.js";
|
|
21
|
-
import "./SideNav-33a404ec.js";
|
|
22
|
-
import "./SrOnly-864bd4cb.js";
|
|
23
|
-
import "./jsx-runtime-944c88e2-e73fa629.js";
|
|
24
|
-
import "./index-e0f6271a.js";
|
|
25
|
-
import "./Tab-1fce1d41.js";
|
|
26
|
-
import "./Text-465104f6.js";
|
|
27
|
-
import "./Toast-6cd7d2e1.js";
|
|
28
|
-
import "./index-d46fa8de-f8bf17b6.js";
|
|
29
|
-
import "./useLayoutPropsUtil-e307abc7-cbe2fb6d.js";
|
|
30
|
-
import "./index-3f218083.js";
|
|
31
|
-
import "./LocalizationProvider.js";
|
|
32
|
-
const J = a(
|
|
33
|
-
(t, i) => {
|
|
34
|
-
const r = {
|
|
35
|
-
children: n(t.children),
|
|
1
|
+
import { j as n } from "./jsx-runtime-82a9ddf6.js";
|
|
2
|
+
import { K as r } from "./index-eb2e706f-03380994.js";
|
|
3
|
+
import { forwardRef as c } from "react";
|
|
4
|
+
import { useTrackingId as o } from "./useTrackingId.js";
|
|
5
|
+
import { n as d } from "./childrenToString-416df522.js";
|
|
6
|
+
const s = c(
|
|
7
|
+
(t, a) => {
|
|
8
|
+
const e = {
|
|
9
|
+
children: d(t.children),
|
|
36
10
|
appearance: t.appearance,
|
|
37
11
|
href: t.href,
|
|
38
12
|
icon: t.icon,
|
|
39
13
|
size: t.size,
|
|
40
14
|
type: t.type
|
|
41
|
-
},
|
|
15
|
+
}, i = o({
|
|
42
16
|
name: "ButtonLink",
|
|
43
|
-
data:
|
|
17
|
+
data: e,
|
|
44
18
|
hasOverride: !!t["data-tracking-id"]
|
|
45
19
|
});
|
|
46
|
-
return /* @__PURE__ */
|
|
20
|
+
return /* @__PURE__ */ n.jsx(r, { ref: a, "data-tracking-id": i, ...t });
|
|
47
21
|
}
|
|
48
22
|
);
|
|
49
23
|
export {
|
|
50
|
-
|
|
51
|
-
|
|
24
|
+
s as ButtonLink,
|
|
25
|
+
s as default
|
|
52
26
|
};
|
|
53
27
|
//# sourceMappingURL=ButtonLink.js.map
|
package/ButtonLink.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonLink.js","sources":["../src/components/ButtonLink/ButtonLink.tsx"],"sourcesContent":["import {\n ButtonLinkProps as CoreButtonLinkProps,\n ButtonLink as CoreButtonLink,\n} from \"@servicetitan/hammer-react/dist/Button\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\nimport { childrenToString } from \"@servicetitan/hammer-react\";\n\nexport type ButtonLinkProps = CoreButtonLinkProps & DataTrackingId;\n\nexport const ButtonLink = forwardRef(\n (props: ButtonLinkProps, ref: Ref<HTMLAnchorElement>) => {\n const data = {\n children: childrenToString(props.children),\n appearance: props.appearance,\n href: props.href,\n icon: props.icon,\n size: props.size,\n type: props.type,\n };\n\n const trackingId = useTrackingId({\n name: \"ButtonLink\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return (\n <CoreButtonLink ref={ref} data-tracking-id={trackingId} {...props} />\n );\n }\n);\n"],"names":["ButtonLink","forwardRef","props","ref","data","childrenToString","trackingId","useTrackingId","CoreButtonLink"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ButtonLink.js","sources":["../src/components/ButtonLink/ButtonLink.tsx"],"sourcesContent":["import {\n ButtonLinkProps as CoreButtonLinkProps,\n ButtonLink as CoreButtonLink,\n} from \"@servicetitan/hammer-react/dist/Button\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\nimport { childrenToString } from \"@servicetitan/hammer-react/dist/childrenToString\";\n\nexport type ButtonLinkProps = CoreButtonLinkProps & DataTrackingId;\n\nexport const ButtonLink = forwardRef(\n (props: ButtonLinkProps, ref: Ref<HTMLAnchorElement>) => {\n const data = {\n children: childrenToString(props.children),\n appearance: props.appearance,\n href: props.href,\n icon: props.icon,\n size: props.size,\n type: props.type,\n };\n\n const trackingId = useTrackingId({\n name: \"ButtonLink\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return (\n <CoreButtonLink ref={ref} data-tracking-id={trackingId} {...props} />\n );\n }\n);\n"],"names":["ButtonLink","forwardRef","props","ref","data","childrenToString","trackingId","useTrackingId","CoreButtonLink"],"mappings":";;;;;AAWO,MAAMA,IAAaC;AAAA,EACxB,CAACC,GAAwBC,MAAgC;AACvD,UAAMC,IAAO;AAAA,MACX,UAAUC,EAAiBH,EAAM,QAAQ;AAAA,MACzC,YAAYA,EAAM;AAAA,MAClB,MAAMA,EAAM;AAAA,MACZ,MAAMA,EAAM;AAAA,MACZ,MAAMA,EAAM;AAAA,MACZ,MAAMA,EAAM;AAAA,IAAA,GAGRI,IAAaC,EAAc;AAAA,MAC/B,MAAM;AAAA,MACN,MAAAH;AAAA,MACA,aAAa,CAAC,CAACF,EAAM,kBAAkB;AAAA,IAAA,CACxC;AACD,iCACGM,GAAe,EAAA,KAAAL,GAAU,oBAAkBG,GAAa,GAAGJ,EAAO,CAAA;AAAA,EAEvE;AACF;"}
|
package/ButtonToggle.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("./jsx-runtime-494437bb.cjs"),a=require("./index-eb2e706f-ff6c4157.cjs"),c=require("react"),d=require("./useTrackingId.cjs"),o=require("./childrenToString-0cd30a27.cjs"),t=c.forwardRef((e,n)=>{const i={children:o.n(e.children),icon:e.icon,size:e.size,value:e.value,type:e.type},r=d.useTrackingId({name:"ButtonToggle",data:i,hasOverride:!!e["data-tracking-id"]});return u.jsxRuntimeExports.jsx(a.O,{ref:n,"data-tracking-id":r,...e})});exports.ButtonToggle=t;exports.default=t;
|
|
2
2
|
//# sourceMappingURL=ButtonToggle.cjs.map
|
package/ButtonToggle.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonToggle.cjs","sources":["../src/components/ButtonToggle/ButtonToggle.tsx"],"sourcesContent":["import {\n ButtonToggleProps as CoreButtonToggleProps,\n ButtonToggle as CoreButtonToggle,\n} from \"@servicetitan/hammer-react/dist/Button\";\nimport { forwardRef, Ref } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\nimport { childrenToString } from \"@servicetitan/hammer-react\";\n\nexport type ButtonToggleProps = CoreButtonToggleProps & DataTrackingId;\n\nexport const ButtonToggle = forwardRef(\n (props: ButtonToggleProps, ref: Ref<HTMLButtonElement>) => {\n const data = {\n children: childrenToString(props.children),\n icon: props.icon,\n size: props.size,\n value: props.value,\n type: props.type,\n };\n\n const trackingId = useTrackingId({\n name: \"ButtonToggle\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return (\n <CoreButtonToggle ref={ref} data-tracking-id={trackingId} {...props} />\n );\n }\n);\n"],"names":["ButtonToggle","forwardRef","props","ref","data","childrenToString","trackingId","useTrackingId","CoreButtonToggle"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ButtonToggle.cjs","sources":["../src/components/ButtonToggle/ButtonToggle.tsx"],"sourcesContent":["import {\n ButtonToggleProps as CoreButtonToggleProps,\n ButtonToggle as CoreButtonToggle,\n} from \"@servicetitan/hammer-react/dist/Button\";\nimport { forwardRef, Ref } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\nimport { childrenToString } from \"@servicetitan/hammer-react/dist/childrenToString\";\n\nexport type ButtonToggleProps = CoreButtonToggleProps & DataTrackingId;\n\nexport const ButtonToggle = forwardRef(\n (props: ButtonToggleProps, ref: Ref<HTMLButtonElement>) => {\n const data = {\n children: childrenToString(props.children),\n icon: props.icon,\n size: props.size,\n value: props.value,\n type: props.type,\n };\n\n const trackingId = useTrackingId({\n name: \"ButtonToggle\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return (\n <CoreButtonToggle ref={ref} data-tracking-id={trackingId} {...props} />\n );\n }\n);\n"],"names":["ButtonToggle","forwardRef","props","ref","data","childrenToString","trackingId","useTrackingId","CoreButtonToggle"],"mappings":"sSAWaA,EAAeC,EAAA,WAC1B,CAACC,EAA0BC,IAAgC,CACzD,MAAMC,EAAO,CACX,SAAUC,EAAAA,EAAiBH,EAAM,QAAQ,EACzC,KAAMA,EAAM,KACZ,KAAMA,EAAM,KACZ,MAAOA,EAAM,MACb,KAAMA,EAAM,IAAA,EAGRI,EAAaC,EAAAA,cAAc,CAC/B,KAAM,eACN,KAAAH,EACA,YAAa,CAAC,CAACF,EAAM,kBAAkB,CAAA,CACxC,EACD,+BACGM,EAAiB,EAAA,CAAA,IAAAL,EAAU,mBAAkBG,EAAa,GAAGJ,CAAO,CAAA,CAEzE,CACF"}
|
package/ButtonToggle.js
CHANGED
|
@@ -1,52 +1,26 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { O as
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { useTrackingId as
|
|
5
|
-
import "./
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
import "./Card-bb358803.js";
|
|
11
|
-
import "./ListView-3b1adecb.js";
|
|
12
|
-
import "./Chip-6dde28bc.js";
|
|
13
|
-
import { C as n } from "./index-ff5fea63.js";
|
|
14
|
-
import "./ProgressBar-c1b5c7c3.js";
|
|
15
|
-
import "./Divider-b3bff73a.js";
|
|
16
|
-
import "./Flex-d338e855.js";
|
|
17
|
-
import "./Grid-5bad450f.js";
|
|
18
|
-
import "./Icon-b94f924c.js";
|
|
19
|
-
import "./Listbox-60fbdaa1.js";
|
|
20
|
-
import "./Stepper-7e3a130c.js";
|
|
21
|
-
import "./SideNav-33a404ec.js";
|
|
22
|
-
import "./SrOnly-864bd4cb.js";
|
|
23
|
-
import "./jsx-runtime-944c88e2-e73fa629.js";
|
|
24
|
-
import "./index-e0f6271a.js";
|
|
25
|
-
import "./Tab-1fce1d41.js";
|
|
26
|
-
import "./Text-465104f6.js";
|
|
27
|
-
import "./Toast-6cd7d2e1.js";
|
|
28
|
-
import "./index-d46fa8de-f8bf17b6.js";
|
|
29
|
-
import "./useLayoutPropsUtil-e307abc7-cbe2fb6d.js";
|
|
30
|
-
import "./index-3f218083.js";
|
|
31
|
-
import "./LocalizationProvider.js";
|
|
32
|
-
const L = e(
|
|
33
|
-
(t, i) => {
|
|
34
|
-
const r = {
|
|
35
|
-
children: n(t.children),
|
|
1
|
+
import { j as r } from "./jsx-runtime-82a9ddf6.js";
|
|
2
|
+
import { O as n } from "./index-eb2e706f-03380994.js";
|
|
3
|
+
import { forwardRef as o } from "react";
|
|
4
|
+
import { useTrackingId as d } from "./useTrackingId.js";
|
|
5
|
+
import { n as m } from "./childrenToString-416df522.js";
|
|
6
|
+
const s = o(
|
|
7
|
+
(t, e) => {
|
|
8
|
+
const i = {
|
|
9
|
+
children: m(t.children),
|
|
36
10
|
icon: t.icon,
|
|
37
11
|
size: t.size,
|
|
38
12
|
value: t.value,
|
|
39
13
|
type: t.type
|
|
40
|
-
},
|
|
14
|
+
}, a = d({
|
|
41
15
|
name: "ButtonToggle",
|
|
42
|
-
data:
|
|
16
|
+
data: i,
|
|
43
17
|
hasOverride: !!t["data-tracking-id"]
|
|
44
18
|
});
|
|
45
|
-
return /* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ r.jsx(n, { ref: e, "data-tracking-id": a, ...t });
|
|
46
20
|
}
|
|
47
21
|
);
|
|
48
22
|
export {
|
|
49
|
-
|
|
50
|
-
|
|
23
|
+
s as ButtonToggle,
|
|
24
|
+
s as default
|
|
51
25
|
};
|
|
52
26
|
//# sourceMappingURL=ButtonToggle.js.map
|
package/ButtonToggle.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonToggle.js","sources":["../src/components/ButtonToggle/ButtonToggle.tsx"],"sourcesContent":["import {\n ButtonToggleProps as CoreButtonToggleProps,\n ButtonToggle as CoreButtonToggle,\n} from \"@servicetitan/hammer-react/dist/Button\";\nimport { forwardRef, Ref } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\nimport { childrenToString } from \"@servicetitan/hammer-react\";\n\nexport type ButtonToggleProps = CoreButtonToggleProps & DataTrackingId;\n\nexport const ButtonToggle = forwardRef(\n (props: ButtonToggleProps, ref: Ref<HTMLButtonElement>) => {\n const data = {\n children: childrenToString(props.children),\n icon: props.icon,\n size: props.size,\n value: props.value,\n type: props.type,\n };\n\n const trackingId = useTrackingId({\n name: \"ButtonToggle\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return (\n <CoreButtonToggle ref={ref} data-tracking-id={trackingId} {...props} />\n );\n }\n);\n"],"names":["ButtonToggle","forwardRef","props","ref","data","childrenToString","trackingId","useTrackingId","CoreButtonToggle"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ButtonToggle.js","sources":["../src/components/ButtonToggle/ButtonToggle.tsx"],"sourcesContent":["import {\n ButtonToggleProps as CoreButtonToggleProps,\n ButtonToggle as CoreButtonToggle,\n} from \"@servicetitan/hammer-react/dist/Button\";\nimport { forwardRef, Ref } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\nimport { childrenToString } from \"@servicetitan/hammer-react/dist/childrenToString\";\n\nexport type ButtonToggleProps = CoreButtonToggleProps & DataTrackingId;\n\nexport const ButtonToggle = forwardRef(\n (props: ButtonToggleProps, ref: Ref<HTMLButtonElement>) => {\n const data = {\n children: childrenToString(props.children),\n icon: props.icon,\n size: props.size,\n value: props.value,\n type: props.type,\n };\n\n const trackingId = useTrackingId({\n name: \"ButtonToggle\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return (\n <CoreButtonToggle ref={ref} data-tracking-id={trackingId} {...props} />\n );\n }\n);\n"],"names":["ButtonToggle","forwardRef","props","ref","data","childrenToString","trackingId","useTrackingId","CoreButtonToggle"],"mappings":";;;;;AAWO,MAAMA,IAAeC;AAAA,EAC1B,CAACC,GAA0BC,MAAgC;AACzD,UAAMC,IAAO;AAAA,MACX,UAAUC,EAAiBH,EAAM,QAAQ;AAAA,MACzC,MAAMA,EAAM;AAAA,MACZ,MAAMA,EAAM;AAAA,MACZ,OAAOA,EAAM;AAAA,MACb,MAAMA,EAAM;AAAA,IAAA,GAGRI,IAAaC,EAAc;AAAA,MAC/B,MAAM;AAAA,MACN,MAAAH;AAAA,MACA,aAAa,CAAC,CAACF,EAAM,kBAAkB;AAAA,IAAA,CACxC;AACD,iCACGM,GAAiB,EAAA,KAAAL,GAAU,oBAAkBG,GAAa,GAAGJ,EAAO,CAAA;AAAA,EAEzE;AACF;"}
|