@servicetitan/anvil2 0.9.2 → 0.10.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/{Alert-ac9a1bcd.js → Alert-6c7fe683.js} +34 -31
- package/Alert-6c7fe683.js.map +1 -0
- package/Alert-d282381d.cjs +2 -0
- package/Alert-d282381d.cjs.map +1 -0
- package/Alert.cjs +1 -1
- package/Alert.js +1 -1
- package/Announcement-0d1097c0.cjs +2 -0
- package/Announcement-0d1097c0.cjs.map +1 -0
- package/{Announcement-b9468739.js → Announcement-fa1a5266.js} +34 -31
- package/Announcement-fa1a5266.js.map +1 -0
- package/Announcement.cjs +1 -1
- package/Announcement.js +1 -1
- package/{Avatar-97b575d8.js → Avatar-2bbf623d.js} +18 -18
- package/Avatar-2bbf623d.js.map +1 -0
- package/Avatar-d474138f.cjs +2 -0
- package/Avatar-d474138f.cjs.map +1 -0
- package/Avatar.cjs +1 -1
- package/Avatar.js +1 -1
- package/{Badge-dbafadd5.js → Badge-2c63f232.js} +11 -10
- package/Badge-2c63f232.js.map +1 -0
- package/Badge-a5267e61.cjs +2 -0
- package/Badge-a5267e61.cjs.map +1 -0
- package/Badge.cjs +1 -1
- package/Badge.js +1 -1
- package/{Button-dc48bb3a.js → Button-1837beaf.js} +85 -83
- package/Button-1837beaf.js.map +1 -0
- package/Button-d7338178.cjs +2 -0
- package/Button-d7338178.cjs.map +1 -0
- package/Button.cjs +1 -1
- package/Button.js +1 -1
- package/ButtonCompound.cjs +1 -1
- package/ButtonCompound.js +1 -1
- package/ButtonLink.cjs +1 -1
- package/ButtonLink.js +1 -1
- package/ButtonToggle.cjs +1 -1
- package/ButtonToggle.js +1 -1
- package/Calendar-6170a262.cjs +2 -0
- package/Calendar-6170a262.cjs.map +1 -0
- package/{Calendar-83436bb1.js → Calendar-94a2af59.js} +528 -539
- package/Calendar-94a2af59.js.map +1 -0
- package/Calendar.cjs +1 -1
- package/Calendar.js +1 -1
- package/Card-9ee8218c.cjs +2 -0
- package/Card-9ee8218c.cjs.map +1 -0
- package/Card-cc1e0def.js +52 -0
- package/Card-cc1e0def.js.map +1 -0
- package/Card.cjs +1 -1
- package/Card.d.ts +7 -1
- package/Card.js +1 -1
- package/Checkbox-49324efd.cjs +2 -0
- package/Checkbox-49324efd.cjs.map +1 -0
- package/{Checkbox-a250869f.js → Checkbox-74836b15.js} +22 -20
- package/Checkbox-74836b15.js.map +1 -0
- package/Checkbox.cjs +1 -1
- package/Checkbox.js +1 -1
- package/Chip-2c19dfc4.cjs +2 -0
- package/Chip-2c19dfc4.cjs.map +1 -0
- package/Chip-c309468f.js +71 -0
- package/Chip-c309468f.js.map +1 -0
- package/Chip.cjs +1 -1
- package/Chip.css +1 -1
- package/Chip.d.ts +1 -0
- package/Chip.js +1 -1
- package/Combobox.cjs +1 -1
- package/Combobox.js +7 -7
- package/{Details-c6f10fa4.js → Details-2730bddb.js} +47 -45
- package/Details-2730bddb.js.map +1 -0
- package/Details-fdd49b05.cjs +2 -0
- package/Details-fdd49b05.cjs.map +1 -0
- package/Details.cjs +1 -1
- package/Details.js +1 -1
- package/Dialog-2a957ffe.cjs +2 -0
- package/Dialog-2a957ffe.cjs.map +1 -0
- package/{Dialog-fd3430f5.js → Dialog-da7cf1ae.js} +56 -55
- package/Dialog-da7cf1ae.js.map +1 -0
- package/Dialog.cjs +1 -1
- package/Dialog.cjs.map +1 -1
- package/Dialog.d.ts +6 -0
- package/Dialog.js +21 -17
- package/Dialog.js.map +1 -1
- package/Divider-7ef2a224.cjs +2 -0
- package/Divider-7ef2a224.cjs.map +1 -0
- package/{Divider-394d2459.js → Divider-a686c1f1.js} +7 -6
- package/Divider-a686c1f1.js.map +1 -0
- package/Divider.cjs +1 -1
- package/Divider.d.ts +1 -1
- package/Divider.js +1 -1
- package/{Drawer-99157473.cjs → Drawer-150c1703.cjs} +2 -2
- package/{Drawer-99157473.cjs.map → Drawer-150c1703.cjs.map} +1 -1
- package/{Drawer-46932ce0.js → Drawer-de9f3da9.js} +3 -3
- package/{Drawer-46932ce0.js.map → Drawer-de9f3da9.js.map} +1 -1
- package/Drawer.cjs +1 -1
- package/Drawer.js +1 -1
- package/Flex-29c4ffce.cjs +2 -0
- package/Flex-29c4ffce.cjs.map +1 -0
- package/{Flex-12077c9d.js → Flex-9956f1b3.js} +16 -15
- package/Flex-9956f1b3.js.map +1 -0
- package/Flex.cjs +1 -1
- package/Flex.js +1 -1
- package/Grid-5fbf04d4.cjs +2 -0
- package/Grid-5fbf04d4.cjs.map +1 -0
- package/{Grid-107fc6b6.js → Grid-9c813cf7.js} +9 -8
- package/Grid-9c813cf7.js.map +1 -0
- package/Grid.cjs +1 -1
- package/Grid.js +1 -1
- package/Helper-74a1f07f-12dff0ad.js +91 -0
- package/Helper-74a1f07f-12dff0ad.js.map +1 -0
- package/Helper-74a1f07f-1bd5ec70.cjs +2 -0
- package/Helper-74a1f07f-1bd5ec70.cjs.map +1 -0
- package/{Label.css → Helper-74a1f07f.css} +1 -1
- package/Icon-38342b79.cjs +2 -0
- package/Icon-38342b79.cjs.map +1 -0
- package/Icon-4fb5288e.js +48 -0
- package/Icon-4fb5288e.js.map +1 -0
- package/Icon.cjs +2 -0
- package/Icon.cjs.map +1 -0
- package/{index-cb7af0c9.css → Icon.css} +1 -1
- package/Icon.d.ts +21 -0
- package/Icon.js +11 -0
- package/Icon.js.map +1 -0
- package/Layout.cjs +1 -1
- package/Layout.js +109 -109
- package/Link-0ee242d1.cjs +2 -0
- package/Link-0ee242d1.cjs.map +1 -0
- package/{Link-c6b4090e.js → Link-3d4ebd58.js} +20 -18
- package/Link-3d4ebd58.js.map +1 -0
- package/Link.cjs +1 -1
- package/Link.js +1 -1
- package/ListView-3f377300.cjs +2 -0
- package/ListView-3f377300.cjs.map +1 -0
- package/{ListView-e895e6a8.js → ListView-6652d49f.js} +32 -31
- package/ListView-6652d49f.js.map +1 -0
- package/ListView.cjs +1 -1
- package/ListView.js +4 -4
- package/{Listbox-39c32ced.js → Listbox-97e11191.js} +35 -33
- package/Listbox-97e11191.js.map +1 -0
- package/Listbox-b5f4e327.cjs +2 -0
- package/Listbox-b5f4e327.cjs.map +1 -0
- package/Listbox.cjs +1 -1
- package/Listbox.js +5 -5
- package/Menu-d5956ea2.cjs +2 -0
- package/Menu-d5956ea2.cjs.map +1 -0
- package/{Menu-cc458844.js → Menu-dbe0fd3a.js} +30 -30
- package/Menu-dbe0fd3a.js.map +1 -0
- package/Menu.cjs +1 -1
- package/Menu.js +1 -1
- package/Overflow.cjs +1 -1
- package/Overflow.cjs.map +1 -1
- package/Overflow.js +24 -23
- package/Overflow.js.map +1 -1
- package/Page.cjs +1 -1
- package/Page.cjs.map +1 -1
- package/Page.js +64 -64
- package/{Popover-16e123eb.cjs → Popover-20b9a021.cjs} +2 -2
- package/{Popover-16e123eb.cjs.map → Popover-20b9a021.cjs.map} +1 -1
- package/{Popover-bbf3a937.js → Popover-5d8c0428.js} +2 -2
- package/{Popover-bbf3a937.js.map → Popover-5d8c0428.js.map} +1 -1
- package/Popover.cjs +1 -1
- package/Popover.js +1 -1
- package/{ProgressBar-b002f299.js → ProgressBar-8bc6ae09.js} +30 -28
- package/ProgressBar-8bc6ae09.js.map +1 -0
- package/ProgressBar-df4d363c.cjs +2 -0
- package/ProgressBar-df4d363c.cjs.map +1 -0
- package/ProgressBar.cjs +1 -1
- package/ProgressBar.js +1 -1
- package/{Radio-45648d07.js → Radio-bab9334f.js} +14 -12
- package/Radio-bab9334f.js.map +1 -0
- package/Radio-c14a8ea0.cjs +2 -0
- package/Radio-c14a8ea0.cjs.map +1 -0
- package/Radio.cjs +1 -1
- package/Radio.js +1 -1
- package/{SideNav-430e523d.js → SideNav-2760a049.js} +45 -43
- package/SideNav-2760a049.js.map +1 -0
- package/SideNav-3e46e3c4.cjs +2 -0
- package/SideNav-3e46e3c4.cjs.map +1 -0
- package/SideNav.cjs +5 -5
- package/SideNav.cjs.map +1 -1
- package/SideNav.js +63 -62
- package/SideNav.js.map +1 -1
- package/Spinner-e6a0837b-9a5e00e0.js +17 -0
- package/Spinner-e6a0837b-9a5e00e0.js.map +1 -0
- package/Spinner-e6a0837b-a4cbf304.cjs +2 -0
- package/Spinner-e6a0837b-a4cbf304.cjs.map +1 -0
- package/Spinner.css +1 -0
- package/Stepper-114de1c0.js +388 -0
- package/Stepper-114de1c0.js.map +1 -0
- package/Stepper-26ff6dd3.cjs +2 -0
- package/Stepper-26ff6dd3.cjs.map +1 -0
- package/Stepper.cjs +1 -1
- package/Stepper.css +1 -1
- package/Stepper.js +4 -4
- package/{Switch-681bcdd4.js → Switch-48443bc7.js} +20 -18
- package/Switch-48443bc7.js.map +1 -0
- package/Switch-c6a36b99.cjs +2 -0
- package/Switch-c6a36b99.cjs.map +1 -0
- package/Switch.cjs +1 -1
- package/Switch.js +1 -1
- package/Tab-51af7435.cjs +10 -0
- package/Tab-51af7435.cjs.map +1 -0
- package/{Tab-93702f1d.js → Tab-a5d9cec6.js} +24 -21
- package/Tab-a5d9cec6.js.map +1 -0
- package/Tab.cjs +1 -1
- package/Tab.js +1 -1
- package/Text-317031b1.cjs +2 -0
- package/Text-317031b1.cjs.map +1 -0
- package/{Text-dbff9cb7.js → Text-796fd2cb.js} +29 -28
- package/Text-796fd2cb.js.map +1 -0
- package/Text.cjs +1 -1
- package/Text.js +1 -1
- package/TextField-57bb98f0.cjs +2 -0
- package/TextField-57bb98f0.cjs.map +1 -0
- package/{TextField-0b30ba31.js → TextField-7823e2ff.js} +23 -22
- package/TextField-7823e2ff.js.map +1 -0
- package/TextField.cjs +1 -1
- package/TextField.js +1 -1
- package/Textarea-03f882d5.cjs +2 -0
- package/Textarea-03f882d5.cjs.map +1 -0
- package/Textarea-6ca5ebf5.js +244 -0
- package/Textarea-6ca5ebf5.js.map +1 -0
- package/Textarea.cjs +1 -1
- package/Textarea.js +6 -6
- package/Toast-c7f439ad.cjs +9 -0
- package/Toast-c7f439ad.cjs.map +1 -0
- package/Toast-e171c00b.js +551 -0
- package/Toast-e171c00b.js.map +1 -0
- package/Toast.cjs +2 -0
- package/Toast.cjs.map +1 -0
- package/Toast.d.ts +41 -0
- package/Toast.js +12 -0
- package/Toast.js.map +1 -0
- package/anvil2.cjs +1 -1
- package/anvil2.d.ts +112 -57
- package/anvil2.js +175 -167
- package/anvil2.js.map +1 -1
- package/extends-135d7828.js +23 -0
- package/extends-135d7828.js.map +1 -0
- package/extends-fcb402fe.cjs +2 -0
- package/extends-fcb402fe.cjs.map +1 -0
- package/index-09d89a47.js +678 -0
- package/index-09d89a47.js.map +1 -0
- package/index-67ae73fa-45a2ebfb.cjs +23 -0
- package/{index-56139b56-2d7be688.cjs.map → index-67ae73fa-45a2ebfb.cjs.map} +1 -1
- package/{index-56139b56-cfb3b366.js → index-67ae73fa-8e31624a.js} +18 -15
- package/{index-56139b56-cfb3b366.js.map → index-67ae73fa-8e31624a.js.map} +1 -1
- package/index-92baae54.cjs +21 -0
- package/index-92baae54.cjs.map +1 -0
- package/index.css +1 -1
- package/index3.css +1 -1
- package/{use-reduced-motion-68bea567.js → motion-1dee7c9a.js} +1217 -1234
- package/motion-1dee7c9a.js.map +1 -0
- package/motion-f7215751.cjs +2 -0
- package/motion-f7215751.cjs.map +1 -0
- package/package.json +30 -30
- package/use-reduced-motion-00575ab2.cjs +2 -0
- package/use-reduced-motion-00575ab2.cjs.map +1 -0
- package/use-reduced-motion-fa02c531.js +28 -0
- package/use-reduced-motion-fa02c531.js.map +1 -0
- package/useAccessibleColor.cjs +1 -8
- package/useAccessibleColor.cjs.map +1 -1
- package/useAccessibleColor.js +41 -577
- package/useAccessibleColor.js.map +1 -1
- package/useLayoutPropsUtil-4361a49d-a262cd66.cjs +2 -0
- package/useLayoutPropsUtil-4361a49d-a262cd66.cjs.map +1 -0
- package/useLayoutPropsUtil-4361a49d-f9f6e64c.js +99 -0
- package/useLayoutPropsUtil-4361a49d-f9f6e64c.js.map +1 -0
- package/usePrefersColorScheme.cjs +1 -1
- package/usePrefersColorScheme.js +33 -33
- package/useSwipe-82769b09-835234e6.js +17 -0
- package/useSwipe-82769b09-835234e6.js.map +1 -0
- package/useSwipe-82769b09-dba26ed2.cjs +2 -0
- package/useSwipe-82769b09-dba26ed2.cjs.map +1 -0
- package/useSwipe.cjs +1 -1
- package/useSwipe.js +36 -35
- package/useSwipe.js.map +1 -1
- package/warning-412414f5-31461705.cjs +2 -0
- package/warning-412414f5-31461705.cjs.map +1 -0
- package/warning-412414f5-36733091.js +6 -0
- package/warning-412414f5-36733091.js.map +1 -0
- package/Alert-ac9a1bcd.js.map +0 -1
- package/Alert-c7461f76.cjs +0 -2
- package/Alert-c7461f76.cjs.map +0 -1
- package/Announcement-546f0bd9.cjs +0 -2
- package/Announcement-546f0bd9.cjs.map +0 -1
- package/Announcement-b9468739.js.map +0 -1
- package/Avatar-97b575d8.js.map +0 -1
- package/Avatar-97f653b7.cjs +0 -2
- package/Avatar-97f653b7.cjs.map +0 -1
- package/Badge-3adb51a5.cjs +0 -2
- package/Badge-3adb51a5.cjs.map +0 -1
- package/Badge-dbafadd5.js.map +0 -1
- package/Button-1a56b573.cjs +0 -2
- package/Button-1a56b573.cjs.map +0 -1
- package/Button-dc48bb3a.js.map +0 -1
- package/Calendar-0659f8b4.cjs +0 -2
- package/Calendar-0659f8b4.cjs.map +0 -1
- package/Calendar-83436bb1.js.map +0 -1
- package/Card-67e4a72d.js +0 -48
- package/Card-67e4a72d.js.map +0 -1
- package/Card-da5a5c50.cjs +0 -2
- package/Card-da5a5c50.cjs.map +0 -1
- package/Checkbox-92a6dd20.cjs +0 -2
- package/Checkbox-92a6dd20.cjs.map +0 -1
- package/Checkbox-a250869f.js.map +0 -1
- package/Chip-467cb19a.js +0 -59
- package/Chip-467cb19a.js.map +0 -1
- package/Chip-e7800a85.cjs +0 -2
- package/Chip-e7800a85.cjs.map +0 -1
- package/Details-44527230.cjs +0 -2
- package/Details-44527230.cjs.map +0 -1
- package/Details-c6f10fa4.js.map +0 -1
- package/Dialog-fbc91a0e.cjs +0 -2
- package/Dialog-fbc91a0e.cjs.map +0 -1
- package/Dialog-fd3430f5.js.map +0 -1
- package/Divider-063f94ad.cjs +0 -2
- package/Divider-063f94ad.cjs.map +0 -1
- package/Divider-394d2459.js.map +0 -1
- package/Flex-12077c9d.js.map +0 -1
- package/Flex-d3632e09.cjs +0 -2
- package/Flex-d3632e09.cjs.map +0 -1
- package/Grid-107fc6b6.js.map +0 -1
- package/Grid-f506406d.cjs +0 -2
- package/Grid-f506406d.cjs.map +0 -1
- package/Label-cc07cfc5.js +0 -47
- package/Label-cc07cfc5.js.map +0 -1
- package/Label-de03a1de.cjs +0 -2
- package/Label-de03a1de.cjs.map +0 -1
- package/Link-3b673823.cjs +0 -2
- package/Link-3b673823.cjs.map +0 -1
- package/Link-c6b4090e.js.map +0 -1
- package/ListView-2b4699a6.cjs +0 -2
- package/ListView-2b4699a6.cjs.map +0 -1
- package/ListView-e895e6a8.js.map +0 -1
- package/Listbox-39c32ced.js.map +0 -1
- package/Listbox-5ffb93f8.cjs +0 -2
- package/Listbox-5ffb93f8.cjs.map +0 -1
- package/Menu-3d2a2077.cjs +0 -2
- package/Menu-3d2a2077.cjs.map +0 -1
- package/Menu-cc458844.js.map +0 -1
- package/ProgressBar-b002f299.js.map +0 -1
- package/ProgressBar-dfd1189e.cjs +0 -2
- package/ProgressBar-dfd1189e.cjs.map +0 -1
- package/Radio-45648d07.js.map +0 -1
- package/Radio-941f3286.cjs +0 -2
- package/Radio-941f3286.cjs.map +0 -1
- package/SideNav-430e523d.js.map +0 -1
- package/SideNav-7228b784.cjs +0 -2
- package/SideNav-7228b784.cjs.map +0 -1
- package/Spinner-2bb1850c-00c03d61.cjs +0 -2
- package/Spinner-2bb1850c-00c03d61.cjs.map +0 -1
- package/Spinner-2bb1850c-d70e6345.js +0 -13
- package/Spinner-2bb1850c-d70e6345.js.map +0 -1
- package/Stepper-7182de9a.cjs +0 -2
- package/Stepper-7182de9a.cjs.map +0 -1
- package/Stepper-a9bc37e2.js +0 -373
- package/Stepper-a9bc37e2.js.map +0 -1
- package/Switch-5007f230.cjs +0 -2
- package/Switch-5007f230.cjs.map +0 -1
- package/Switch-681bcdd4.js.map +0 -1
- package/Tab-920f6aad.cjs +0 -10
- package/Tab-920f6aad.cjs.map +0 -1
- package/Tab-93702f1d.js.map +0 -1
- package/Text-96a3b0cb.cjs +0 -2
- package/Text-96a3b0cb.cjs.map +0 -1
- package/Text-dbff9cb7.js.map +0 -1
- package/TextField-0b30ba31.js.map +0 -1
- package/TextField-58320cef.cjs +0 -2
- package/TextField-58320cef.cjs.map +0 -1
- package/Textarea-6573a847.cjs +0 -2
- package/Textarea-6573a847.cjs.map +0 -1
- package/Textarea-b387b2d7.js +0 -114
- package/Textarea-b387b2d7.js.map +0 -1
- package/index-064ddc3d.js +0 -698
- package/index-064ddc3d.js.map +0 -1
- package/index-56139b56-2d7be688.cjs +0 -23
- package/index-910707bd.cjs +0 -21
- package/index-910707bd.cjs.map +0 -1
- package/index-cb7af0c9-2d919802.cjs +0 -2
- package/index-cb7af0c9-2d919802.cjs.map +0 -1
- package/index-cb7af0c9-4f28e075.js +0 -193
- package/index-cb7af0c9-4f28e075.js.map +0 -1
- package/use-reduced-motion-162cddef.cjs +0 -2
- package/use-reduced-motion-162cddef.cjs.map +0 -1
- package/use-reduced-motion-68bea567.js.map +0 -1
- /package/{index4.css → Toast.css} +0 -0
- /package/{index-56139b56.css → index-67ae73fa.css} +0 -0
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import "./Helper-74a1f07f.css";
|
|
2
|
+
import { f as e } from "./jsx-runtime-944c88e2-e73fa629.js";
|
|
3
|
+
import * as _ from "react";
|
|
4
|
+
import { forwardRef as j } from "react";
|
|
5
|
+
import { K as f } from "./index-39087e81.js";
|
|
6
|
+
import { I as u } from "./Icon-4fb5288e.js";
|
|
7
|
+
import { g as x } from "./Tooltip-6c32a170.js";
|
|
8
|
+
import { p as o } from "./SrOnly-f331a0ad.js";
|
|
9
|
+
import { c as v } from "./warning-412414f5-36733091.js";
|
|
10
|
+
const N = "_label_aduoq_4", b = "_required_aduoq_48", n = {
|
|
11
|
+
label: N,
|
|
12
|
+
"top-container": "_top-container_aduoq_39",
|
|
13
|
+
"label-text": "_label-text_aduoq_44",
|
|
14
|
+
required: b,
|
|
15
|
+
"info-trigger": "_info-trigger_aduoq_53",
|
|
16
|
+
"info-content": "_info-content_aduoq_58"
|
|
17
|
+
}, q = (i) => /* @__PURE__ */ _.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...i }, /* @__PURE__ */ _.createElement("path", { d: "M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z" })), w = j((i, c) => {
|
|
18
|
+
const { children: d, className: m, moreInfo: r, required: h, openMoreInfo: l, ...a } = i, p = f([n.label], m);
|
|
19
|
+
return /* @__PURE__ */ e.jsxs("label", { className: p, "data-anv": "Label", ref: c, ...a, children: [
|
|
20
|
+
/* @__PURE__ */ e.jsxs("div", { className: n["top-container"], "aria-atomic": "true", children: [
|
|
21
|
+
/* @__PURE__ */ e.jsxs("span", { className: n["label-text"], children: [
|
|
22
|
+
d,
|
|
23
|
+
h ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
24
|
+
/* @__PURE__ */ e.jsx("span", { "aria-hidden": !0, className: n.required, children: "*" }),
|
|
25
|
+
/* @__PURE__ */ e.jsx(o, { children: "Required" })
|
|
26
|
+
] }) : null
|
|
27
|
+
] }),
|
|
28
|
+
r ? /* @__PURE__ */ e.jsxs(
|
|
29
|
+
x,
|
|
30
|
+
{
|
|
31
|
+
open: l || void 0,
|
|
32
|
+
placement: "top",
|
|
33
|
+
fallbackPlacements: ["right", "bottom", "left"],
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ e.jsx(x.Trigger, { className: n["info-trigger"], children: /* @__PURE__ */ e.jsx(u, { svg: q }) }),
|
|
36
|
+
/* @__PURE__ */ e.jsx(x.Content, { className: n["info-content"], children: r })
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
) : null
|
|
40
|
+
] }),
|
|
41
|
+
r ? /* @__PURE__ */ e.jsx(o, { children: r }) : null
|
|
42
|
+
] });
|
|
43
|
+
});
|
|
44
|
+
w.displayName = "Label";
|
|
45
|
+
const $ = "_helper_jr5l4_2", L = "_messages_jr5l4_9", s = {
|
|
46
|
+
helper: $,
|
|
47
|
+
messages: L,
|
|
48
|
+
"error-container": "_error-container_jr5l4_15",
|
|
49
|
+
"error-icon": "_error-icon_jr5l4_21"
|
|
50
|
+
}, z = j((i, c) => {
|
|
51
|
+
const {
|
|
52
|
+
id: d,
|
|
53
|
+
hint: m,
|
|
54
|
+
description: r,
|
|
55
|
+
errorAriaLive: h = "assertive",
|
|
56
|
+
errorMessage: l,
|
|
57
|
+
maxLength: a,
|
|
58
|
+
isTyping: p,
|
|
59
|
+
inputLength: t = 0,
|
|
60
|
+
showCounter: g
|
|
61
|
+
} = i;
|
|
62
|
+
return /* @__PURE__ */ e.jsxs("div", { className: s.helper, ref: c, id: d, children: [
|
|
63
|
+
/* @__PURE__ */ e.jsxs("div", { className: s.messages, children: [
|
|
64
|
+
l ? /* @__PURE__ */ e.jsxs("div", { className: s["error-container"], children: [
|
|
65
|
+
/* @__PURE__ */ e.jsx(
|
|
66
|
+
u,
|
|
67
|
+
{
|
|
68
|
+
inherit: !0,
|
|
69
|
+
className: s["error-icon"],
|
|
70
|
+
"aria-hidden": !0,
|
|
71
|
+
svg: v
|
|
72
|
+
}
|
|
73
|
+
),
|
|
74
|
+
/* @__PURE__ */ e.jsx("span", { className: s["error-message"], "aria-live": h, children: l })
|
|
75
|
+
] }) : m ?? null,
|
|
76
|
+
r ? /* @__PURE__ */ e.jsx("div", { className: s["description-container"], children: r ? /* @__PURE__ */ e.jsx("span", { children: r }) : null }) : null
|
|
77
|
+
] }),
|
|
78
|
+
g ? /* @__PURE__ */ e.jsx("div", { className: s.counter, children: /* @__PURE__ */ e.jsxs("span", { "aria-hidden": "true", children: [
|
|
79
|
+
t,
|
|
80
|
+
"/",
|
|
81
|
+
a
|
|
82
|
+
] }) }) : null,
|
|
83
|
+
p && a ? a - t >= 1 ? /* @__PURE__ */ e.jsx(o, { children: /* @__PURE__ */ e.jsx("span", { "aria-live": "polite", "aria-atomic": "true", children: `${a - t} character${a - t !== 1 ? "s" : ""} left` }) }) : /* @__PURE__ */ e.jsx(o, { children: /* @__PURE__ */ e.jsx("span", { role: "alert", children: "Maximum characters count reached" }) }) : null
|
|
84
|
+
] });
|
|
85
|
+
});
|
|
86
|
+
z.displayName = "Helper";
|
|
87
|
+
export {
|
|
88
|
+
w as j,
|
|
89
|
+
z as v
|
|
90
|
+
};
|
|
91
|
+
//# sourceMappingURL=Helper-74a1f07f-12dff0ad.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Helper-74a1f07f-12dff0ad.js","sources":["../node_modules/@servicetitan/hammer-react/dist/Label.js","../node_modules/@servicetitan/hammer-react/dist/Helper-74a1f07f.js"],"sourcesContent":["import \"./index19.css\";\nimport { j as e } from \"./jsx-runtime-944c88e2.js\";\nimport * as l from \"react\";\nimport { forwardRef as f } from \"react\";\nimport x from \"classnames\";\nimport { Icon as u } from \"./Icon.js\";\nimport { Tooltip as a } from \"./Tooltip.js\";\nimport { SrOnly as s } from \"./SrOnly.js\";\nconst _ = \"_label_aduoq_4\", g = \"_required_aduoq_48\", r = {\n label: _,\n \"top-container\": \"_top-container_aduoq_39\",\n \"label-text\": \"_label-text_aduoq_44\",\n required: g,\n \"info-trigger\": \"_info-trigger_aduoq_53\",\n \"info-content\": \"_info-content_aduoq_58\"\n}, b = (o) => /* @__PURE__ */ l.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: \"1em\", height: \"1em\", viewBox: \"0 0 24 24\", ...o }, /* @__PURE__ */ l.createElement(\"path\", { d: \"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z\" })), j = f((o, i) => {\n const { children: c, className: m, moreInfo: t, required: d, openMoreInfo: n, ...p } = o, h = x([r.label], m);\n return /* @__PURE__ */ e.jsxs(\"label\", { className: h, \"data-anv\": \"Label\", ref: i, ...p, children: [\n /* @__PURE__ */ e.jsxs(\"div\", { className: r[\"top-container\"], \"aria-atomic\": \"true\", children: [\n /* @__PURE__ */ e.jsxs(\"span\", { className: r[\"label-text\"], children: [\n c,\n d ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [\n /* @__PURE__ */ e.jsx(\"span\", { \"aria-hidden\": !0, className: r.required, children: \"*\" }),\n /* @__PURE__ */ e.jsx(s, { children: \"Required\" })\n ] }) : null\n ] }),\n t ? /* @__PURE__ */ e.jsxs(\n a,\n {\n open: n || void 0,\n placement: \"top\",\n fallbackPlacements: [\"right\", \"bottom\", \"left\"],\n children: [\n /* @__PURE__ */ e.jsx(a.Trigger, { className: r[\"info-trigger\"], children: /* @__PURE__ */ e.jsx(u, { svg: b }) }),\n /* @__PURE__ */ e.jsx(a.Content, { className: r[\"info-content\"], children: t })\n ]\n }\n ) : null\n ] }),\n t ? /* @__PURE__ */ e.jsx(s, { children: t }) : null\n ] });\n});\nj.displayName = \"Label\";\nexport {\n j as Label\n};\n//# sourceMappingURL=Label.js.map\n","import \"./Helper.css\";\nimport { j as r } from \"./jsx-runtime-944c88e2.js\";\nimport { forwardRef as j } from \"react\";\nimport { Icon as x } from \"./Icon.js\";\nimport { S as u } from \"./warning-412414f5.js\";\nimport { SrOnly as l } from \"./SrOnly.js\";\nconst g = \"_helper_jr5l4_2\", _ = \"_messages_jr5l4_9\", e = {\n helper: g,\n messages: _,\n \"error-container\": \"_error-container_jr5l4_15\",\n \"error-icon\": \"_error-icon_jr5l4_21\"\n}, v = j((o, c) => {\n const {\n id: t,\n hint: m,\n description: a,\n errorAriaLive: d = \"assertive\",\n errorMessage: n,\n maxLength: s,\n isTyping: h,\n inputLength: i = 0,\n showCounter: p\n } = o;\n return /* @__PURE__ */ r.jsxs(\"div\", { className: e.helper, ref: c, id: t, children: [\n /* @__PURE__ */ r.jsxs(\"div\", { className: e.messages, children: [\n n ? /* @__PURE__ */ r.jsxs(\"div\", { className: e[\"error-container\"], children: [\n /* @__PURE__ */ r.jsx(\n x,\n {\n inherit: !0,\n className: e[\"error-icon\"],\n \"aria-hidden\": !0,\n svg: u\n }\n ),\n /* @__PURE__ */ r.jsx(\"span\", { className: e[\"error-message\"], \"aria-live\": d, children: n })\n ] }) : m ?? null,\n a ? /* @__PURE__ */ r.jsx(\"div\", { className: e[\"description-container\"], children: a ? /* @__PURE__ */ r.jsx(\"span\", { children: a }) : null }) : null\n ] }),\n p ? /* @__PURE__ */ r.jsx(\"div\", { className: e.counter, children: /* @__PURE__ */ r.jsxs(\"span\", { \"aria-hidden\": \"true\", children: [\n i,\n \"/\",\n s\n ] }) }) : null,\n h && s ? s - i >= 1 ? /* @__PURE__ */ r.jsx(l, { children: /* @__PURE__ */ r.jsx(\"span\", { \"aria-live\": \"polite\", \"aria-atomic\": \"true\", children: `${s - i} character${s - i !== 1 ? \"s\" : \"\"} left` }) }) : /* @__PURE__ */ r.jsx(l, { children: /* @__PURE__ */ r.jsx(\"span\", { role: \"alert\", children: \"Maximum characters count reached\" }) }) : null\n ] });\n});\nv.displayName = \"Helper\";\nexport {\n v as H\n};\n//# sourceMappingURL=Helper-74a1f07f.js.map\n"],"names":["_$1","g$1","r","b","o","React","j","forwardRef","i","c","t","d","n","p$1","h","K","fr","p","ge","I","g","_","e","v","c$1","a","s"],"mappings":"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","x_google_ignoreList":[0,1]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var I=require("./Helper-74a1f07f.css");const e=require("./jsx-runtime-944c88e2-2b81c205.cjs"),p=require("react"),b=require("./index-d3c6e880.cjs"),j=require("./Icon-38342b79.cjs"),m=require("./Tooltip-de463653.cjs"),f=require("./SrOnly-69d90781.cjs"),q=require("./warning-412414f5-31461705.cjs");function N(r){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const n in r)if(n!=="default"){const l=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(a,n,l.get?l:{enumerable:!0,get:()=>r[n]})}}return a.default=r,Object.freeze(a)}const g=N(p);const w="_label_aduoq_4",y="_required_aduoq_48",c={label:w,"top-container":"_top-container_aduoq_39","label-text":"_label-text_aduoq_44",required:y,"info-trigger":"_info-trigger_aduoq_53","info-content":"_info-content_aduoq_58"},O=r=>g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...r},g.createElement("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"})),_=p.forwardRef((r,a)=>{const{children:n,className:l,moreInfo:s,required:h,openMoreInfo:o,...i}=r,u=b.K([c.label],l);return e.fr.jsxs("label",{className:u,"data-anv":"Label",ref:a,...i,children:[e.fr.jsxs("div",{className:c["top-container"],"aria-atomic":"true",children:[e.fr.jsxs("span",{className:c["label-text"],children:[n,h?e.fr.jsxs(e.fr.Fragment,{children:[e.fr.jsx("span",{"aria-hidden":!0,className:c.required,children:"*"}),e.fr.jsx(f.p,{children:"Required"})]}):null]}),s?e.fr.jsxs(m.ge,{open:o||void 0,placement:"top",fallbackPlacements:["right","bottom","left"],children:[e.fr.jsx(m.ge.Trigger,{className:c["info-trigger"],children:e.fr.jsx(j.I,{svg:O})}),e.fr.jsx(m.ge.Content,{className:c["info-content"],children:s})]}):null]}),s?e.fr.jsx(f.p,{children:s}):null]})});_.displayName="Label";const R="_helper_jr5l4_2",z="_messages_jr5l4_9",t={helper:R,messages:z,"error-container":"_error-container_jr5l4_15","error-icon":"_error-icon_jr5l4_21"},x=p.forwardRef((r,a)=>{const{id:n,hint:l,description:s,errorAriaLive:h="assertive",errorMessage:o,maxLength:i,isTyping:u,inputLength:d=0,showCounter:v}=r;return e.fr.jsxs("div",{className:t.helper,ref:a,id:n,children:[e.fr.jsxs("div",{className:t.messages,children:[o?e.fr.jsxs("div",{className:t["error-container"],children:[e.fr.jsx(j.I,{inherit:!0,className:t["error-icon"],"aria-hidden":!0,svg:q.c}),e.fr.jsx("span",{className:t["error-message"],"aria-live":h,children:o})]}):l??null,s?e.fr.jsx("div",{className:t["description-container"],children:s?e.fr.jsx("span",{children:s}):null}):null]}),v?e.fr.jsx("div",{className:t.counter,children:e.fr.jsxs("span",{"aria-hidden":"true",children:[d,"/",i]})}):null,u&&i?i-d>=1?e.fr.jsx(f.p,{children:e.fr.jsx("span",{"aria-live":"polite","aria-atomic":"true",children:`${i-d} character${i-d!==1?"s":""} left`})}):e.fr.jsx(f.p,{children:e.fr.jsx("span",{role:"alert",children:"Maximum characters count reached"})}):null]})});x.displayName="Helper";exports.j=_;exports.v=x;
|
|
2
|
+
//# sourceMappingURL=Helper-74a1f07f-1bd5ec70.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Helper-74a1f07f-1bd5ec70.cjs","sources":["../node_modules/@servicetitan/hammer-react/dist/Label.js","../node_modules/@servicetitan/hammer-react/dist/Helper-74a1f07f.js"],"sourcesContent":["import \"./index19.css\";\nimport { j as e } from \"./jsx-runtime-944c88e2.js\";\nimport * as l from \"react\";\nimport { forwardRef as f } from \"react\";\nimport x from \"classnames\";\nimport { Icon as u } from \"./Icon.js\";\nimport { Tooltip as a } from \"./Tooltip.js\";\nimport { SrOnly as s } from \"./SrOnly.js\";\nconst _ = \"_label_aduoq_4\", g = \"_required_aduoq_48\", r = {\n label: _,\n \"top-container\": \"_top-container_aduoq_39\",\n \"label-text\": \"_label-text_aduoq_44\",\n required: g,\n \"info-trigger\": \"_info-trigger_aduoq_53\",\n \"info-content\": \"_info-content_aduoq_58\"\n}, b = (o) => /* @__PURE__ */ l.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: \"1em\", height: \"1em\", viewBox: \"0 0 24 24\", ...o }, /* @__PURE__ */ l.createElement(\"path\", { d: \"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z\" })), j = f((o, i) => {\n const { children: c, className: m, moreInfo: t, required: d, openMoreInfo: n, ...p } = o, h = x([r.label], m);\n return /* @__PURE__ */ e.jsxs(\"label\", { className: h, \"data-anv\": \"Label\", ref: i, ...p, children: [\n /* @__PURE__ */ e.jsxs(\"div\", { className: r[\"top-container\"], \"aria-atomic\": \"true\", children: [\n /* @__PURE__ */ e.jsxs(\"span\", { className: r[\"label-text\"], children: [\n c,\n d ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [\n /* @__PURE__ */ e.jsx(\"span\", { \"aria-hidden\": !0, className: r.required, children: \"*\" }),\n /* @__PURE__ */ e.jsx(s, { children: \"Required\" })\n ] }) : null\n ] }),\n t ? /* @__PURE__ */ e.jsxs(\n a,\n {\n open: n || void 0,\n placement: \"top\",\n fallbackPlacements: [\"right\", \"bottom\", \"left\"],\n children: [\n /* @__PURE__ */ e.jsx(a.Trigger, { className: r[\"info-trigger\"], children: /* @__PURE__ */ e.jsx(u, { svg: b }) }),\n /* @__PURE__ */ e.jsx(a.Content, { className: r[\"info-content\"], children: t })\n ]\n }\n ) : null\n ] }),\n t ? /* @__PURE__ */ e.jsx(s, { children: t }) : null\n ] });\n});\nj.displayName = \"Label\";\nexport {\n j as Label\n};\n//# sourceMappingURL=Label.js.map\n","import \"./Helper.css\";\nimport { j as r } from \"./jsx-runtime-944c88e2.js\";\nimport { forwardRef as j } from \"react\";\nimport { Icon as x } from \"./Icon.js\";\nimport { S as u } from \"./warning-412414f5.js\";\nimport { SrOnly as l } from \"./SrOnly.js\";\nconst g = \"_helper_jr5l4_2\", _ = \"_messages_jr5l4_9\", e = {\n helper: g,\n messages: _,\n \"error-container\": \"_error-container_jr5l4_15\",\n \"error-icon\": \"_error-icon_jr5l4_21\"\n}, v = j((o, c) => {\n const {\n id: t,\n hint: m,\n description: a,\n errorAriaLive: d = \"assertive\",\n errorMessage: n,\n maxLength: s,\n isTyping: h,\n inputLength: i = 0,\n showCounter: p\n } = o;\n return /* @__PURE__ */ r.jsxs(\"div\", { className: e.helper, ref: c, id: t, children: [\n /* @__PURE__ */ r.jsxs(\"div\", { className: e.messages, children: [\n n ? /* @__PURE__ */ r.jsxs(\"div\", { className: e[\"error-container\"], children: [\n /* @__PURE__ */ r.jsx(\n x,\n {\n inherit: !0,\n className: e[\"error-icon\"],\n \"aria-hidden\": !0,\n svg: u\n }\n ),\n /* @__PURE__ */ r.jsx(\"span\", { className: e[\"error-message\"], \"aria-live\": d, children: n })\n ] }) : m ?? null,\n a ? /* @__PURE__ */ r.jsx(\"div\", { className: e[\"description-container\"], children: a ? /* @__PURE__ */ r.jsx(\"span\", { children: a }) : null }) : null\n ] }),\n p ? /* @__PURE__ */ r.jsx(\"div\", { className: e.counter, children: /* @__PURE__ */ r.jsxs(\"span\", { \"aria-hidden\": \"true\", children: [\n i,\n \"/\",\n s\n ] }) }) : null,\n h && s ? s - i >= 1 ? /* @__PURE__ */ r.jsx(l, { children: /* @__PURE__ */ r.jsx(\"span\", { \"aria-live\": \"polite\", \"aria-atomic\": \"true\", children: `${s - i} character${s - i !== 1 ? \"s\" : \"\"} left` }) }) : /* @__PURE__ */ r.jsx(l, { children: /* @__PURE__ */ r.jsx(\"span\", { role: \"alert\", children: \"Maximum characters count reached\" }) }) : null\n ] });\n});\nv.displayName = \"Helper\";\nexport {\n v as H\n};\n//# sourceMappingURL=Helper-74a1f07f.js.map\n"],"names":["_$1","g$1","r","b","o","React__namespace","j","React","i","c","m","t","d","n","p","h","index","jsxRuntime944c88e2","SrOnly","Tooltip","Icon","g","_","e","v","a","s","warning412414f5"],"mappings":"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","x_google_ignoreList":[0,1]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@import"https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,400;0,6..12,600;0,6..12,700;1,6..12,400;1,6..12,600;1,6..12,700&display=swap";@layer reset,base,state,application;@layer reset{._label_aduoq_4{all:unset;font-family:Nunito Sans,sans-serif;font-size:100%;color:var(--anv-label-color, var(--foreground-color, #141414));margin:0;padding:0;border-style:none;border-width:0;border-color:transparent;box-sizing:border-box;display:initial}}@layer base{._label_aduoq_4{all:unset;font-family:Nunito Sans,sans-serif;font-size:100%;color:var(--anv-label-color, var(--foreground-color, #141414));margin:0;padding:0;border-style:none;border-width:0;border-color:transparent;box-sizing:border-box;display:initial;display:flex;justify-items:flex-start;gap:.25rem;cursor:default;flex-direction:column;font-size:.875rem;line-height:1}._label_aduoq_4 ._top-container_aduoq_39{display:flex;gap:.25rem;align-items:flex-start}._label_aduoq_4 ._label-text_aduoq_44{line-height:1rem;font-weight:600}._label_aduoq_4 ._label-text_aduoq_44 ._required_aduoq_48{color:var(--foreground-color-danger, #e13212);margin-inline-start:.125rem;margin-inline-end:.125rem}._label_aduoq_4 ._info-trigger_aduoq_53{display:flex;align-items:center;cursor:pointer}._label_aduoq_4 ._info-content_aduoq_58{max-width:15rem!important}}
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,400;0,6..12,600;0,6..12,700;1,6..12,400;1,6..12,600;1,6..12,700&display=swap";@layer reset,base,state,application;@layer reset{._label_aduoq_4{all:unset;font-family:Nunito Sans,sans-serif;font-size:100%;color:var(--anv-label-color, var(--foreground-color, #141414));margin:0;padding:0;border-style:none;border-width:0;border-color:transparent;box-sizing:border-box;display:initial}}@layer base{._label_aduoq_4{all:unset;font-family:Nunito Sans,sans-serif;font-size:100%;color:var(--anv-label-color, var(--foreground-color, #141414));margin:0;padding:0;border-style:none;border-width:0;border-color:transparent;box-sizing:border-box;display:initial;display:flex;justify-items:flex-start;gap:.25rem;cursor:default;flex-direction:column;font-size:.875rem;line-height:1}._label_aduoq_4 ._top-container_aduoq_39{display:flex;gap:.25rem;align-items:flex-start}._label_aduoq_4 ._label-text_aduoq_44{line-height:1rem;font-weight:600}._label_aduoq_4 ._label-text_aduoq_44 ._required_aduoq_48{color:var(--foreground-color-danger, #e13212);margin-inline-start:.125rem;margin-inline-end:.125rem}._label_aduoq_4 ._info-trigger_aduoq_53{display:flex;align-items:center;cursor:pointer}._label_aduoq_4 ._info-content_aduoq_58{max-width:15rem!important}}._helper_jr5l4_2{display:flex;flex-direction:row;gap:.5rem;color:var(--foreground-color-subdued, #737475);font-size:.875rem}._helper_jr5l4_2 ._messages_jr5l4_9{flex:1;gap:.25rem;display:flex;flex-direction:column}._helper_jr5l4_2 ._error-container_jr5l4_15{display:flex;gap:.25rem;align-items:flex-start;color:var(--foreground-color-danger, #e13212)}._helper_jr5l4_2 ._error-icon_jr5l4_21{padding-top:.125rem}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var N=require("./Icon.css");const a=require("./jsx-runtime-944c88e2-2b81c205.cjs"),x=require("react"),g=require("./index-d3c6e880.cjs");require("./tinycolor-3b50a250.cjs");const p=require("./useLayoutPropsUtil-4361a49d-a262cd66.cjs");const q="_icon_1ym3f_4",h="_small_1ym3f_30",j="_medium_1ym3f_33",v="_large_1ym3f_36",I="_xlarge_1ym3f_39",e={icon:q,small:h,medium:j,large:v,xlarge:I},i=x.forwardRef((l,m)=>{const{layoutStyles:o,componentProps:n}=p.J(l),{size:r="medium",className:t,svg:s,inherit:c,style:u,color:_,...d}=n,y=g.K([e.icon],t,{[e.small]:r==="small",[e.medium]:r==="medium",[e.large]:r==="large",[e.xlarge]:r==="xlarge"}),f={color:_||(c?"inherit":void 0),...u,...o};return a.fr.jsx("span",{className:y,"data-anv":"Icon",style:f,ref:m,...d,children:s&&a.fr.jsx(s,{})})});i.displayName="Icon";exports.I=i;
|
|
2
|
+
//# sourceMappingURL=Icon-38342b79.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon-38342b79.cjs","sources":["../node_modules/@servicetitan/hammer-react/dist/Icon.js"],"sourcesContent":["import \"./index18.css\";\nimport { j as r } from \"./jsx-runtime-944c88e2.js\";\nimport { forwardRef as g } from \"react\";\nimport u from \"classnames\";\nimport \"tinycolor2\";\nimport \"@servicetitan/hammer-token\";\nimport { u as f } from \"./useLayoutPropsUtil-4361a49d.js\";\nimport \"@floating-ui/react\";\nconst x = \"_icon_1ym3f_4\", j = \"_small_1ym3f_30\", v = \"_medium_1ym3f_33\", N = \"_large_1ym3f_36\", h = \"_xlarge_1ym3f_39\", o = {\n icon: x,\n small: j,\n medium: v,\n large: N,\n xlarge: h\n}, I = g((t, l) => {\n const { layoutStyles: a, componentProps: i } = f(t), {\n size: s = \"medium\",\n className: n,\n svg: m,\n inherit: c,\n style: p,\n color: e,\n ..._\n } = i, y = u([o.icon], n, {\n [o.small]: s === \"small\",\n [o.medium]: s === \"medium\",\n [o.large]: s === \"large\",\n [o.xlarge]: s === \"xlarge\"\n }), d = {\n color: e || (c ? \"inherit\" : void 0),\n ...p,\n ...a\n };\n return /* @__PURE__ */ r.jsx(\n \"span\",\n {\n className: y,\n \"data-anv\": \"Icon\",\n style: d,\n ref: l,\n ..._,\n children: m && /* @__PURE__ */ r.jsx(m, {})\n }\n );\n});\nI.displayName = \"Icon\";\nexport {\n I as Icon\n};\n//# sourceMappingURL=Icon.js.map\n"],"names":["x","j","v","N","h","o","I","React","t","l","a","i","useLayoutPropsUtil4361a49d","s","n","m","p","e","_","index","d","jsxRuntime944c88e2"],"mappings":"0OAQK,MAAAA,EAAA,gBAAAC,EAAA,kBAAAC,EAAA,mBAAAC,EAAA,kBAAAC,EAAA,mBAAAC,EAAA,CACL,KAAAL,EACA,MAAAC,EACA,OAAAC,EACA,MAAAC,EACA,OAAAC,CACA,EAAAE,EAAAC,EAAA,WAAA,CAAAC,EAAAC,IAAA,CACA,KAAA,CAAA,aAAAC,EAAA,eAAAC,CAAA,EAAAC,EAAA,EAAAJ,CAAA,EAAA,CACA,KAAAK,EAAA,SACA,UAAAC,EACA,IAAAC,EACA,QAAA,EACA,MAAAC,EACA,MAAAC,EACA,GAAAC,CACA,EAAAP,EAAA,EAAAQ,EAAA,EAAA,CAAAd,EAAA,IAAA,EAAAS,EAAA,CACA,CAAAT,EAAA,KAAA,EAAAQ,IAAA,QACA,CAAAR,EAAA,MAAA,EAAAQ,IAAA,SACA,CAAAR,EAAA,KAAA,EAAAQ,IAAA,QACA,CAAAR,EAAA,MAAA,EAAAQ,IAAA,QACA,CAAA,EAAAO,EAAA,CACA,MAAAH,IAAA,EAAA,UAAA,QACA,GAAAD,EACA,GAAAN,CACA,EACA,OAAAW,EAAA,GAAA,IACA,OACA,CACA,UAAA,EACA,WAAA,OACA,MAAAD,EACA,IAAAX,EACA,GAAAS,EACA,SAAAH,GAAAM,EAAA,GAAA,IAAAN,EAAA,CAAA,CAAA,CACA,CACA,CACA,CAAA,EACAT,EAAA,YAAA","x_google_ignoreList":[0]}
|
package/Icon-4fb5288e.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import "./Icon.css";
|
|
2
|
+
import { f as o } from "./jsx-runtime-944c88e2-e73fa629.js";
|
|
3
|
+
import { forwardRef as y } from "react";
|
|
4
|
+
import { K as g } from "./index-39087e81.js";
|
|
5
|
+
import "./tinycolor-d415b1fd.js";
|
|
6
|
+
import { J as x } from "./useLayoutPropsUtil-4361a49d-f9f6e64c.js";
|
|
7
|
+
const u = "_icon_1ym3f_4", h = "_small_1ym3f_30", v = "_medium_1ym3f_33", N = "_large_1ym3f_36", j = "_xlarge_1ym3f_39", m = {
|
|
8
|
+
icon: u,
|
|
9
|
+
small: h,
|
|
10
|
+
medium: v,
|
|
11
|
+
large: N,
|
|
12
|
+
xlarge: j
|
|
13
|
+
}, I = y((a, l) => {
|
|
14
|
+
const { layoutStyles: i, componentProps: s } = x(a), {
|
|
15
|
+
size: r = "medium",
|
|
16
|
+
className: t,
|
|
17
|
+
svg: e,
|
|
18
|
+
inherit: n,
|
|
19
|
+
style: _,
|
|
20
|
+
color: c,
|
|
21
|
+
...f
|
|
22
|
+
} = s, d = g([m.icon], t, {
|
|
23
|
+
[m.small]: r === "small",
|
|
24
|
+
[m.medium]: r === "medium",
|
|
25
|
+
[m.large]: r === "large",
|
|
26
|
+
[m.xlarge]: r === "xlarge"
|
|
27
|
+
}), p = {
|
|
28
|
+
color: c || (n ? "inherit" : void 0),
|
|
29
|
+
..._,
|
|
30
|
+
...i
|
|
31
|
+
};
|
|
32
|
+
return /* @__PURE__ */ o.jsx(
|
|
33
|
+
"span",
|
|
34
|
+
{
|
|
35
|
+
className: d,
|
|
36
|
+
"data-anv": "Icon",
|
|
37
|
+
style: p,
|
|
38
|
+
ref: l,
|
|
39
|
+
...f,
|
|
40
|
+
children: e && /* @__PURE__ */ o.jsx(e, {})
|
|
41
|
+
}
|
|
42
|
+
);
|
|
43
|
+
});
|
|
44
|
+
I.displayName = "Icon";
|
|
45
|
+
export {
|
|
46
|
+
I
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=Icon-4fb5288e.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon-4fb5288e.js","sources":["../node_modules/@servicetitan/hammer-react/dist/Icon.js"],"sourcesContent":["import \"./index18.css\";\nimport { j as r } from \"./jsx-runtime-944c88e2.js\";\nimport { forwardRef as g } from \"react\";\nimport u from \"classnames\";\nimport \"tinycolor2\";\nimport \"@servicetitan/hammer-token\";\nimport { u as f } from \"./useLayoutPropsUtil-4361a49d.js\";\nimport \"@floating-ui/react\";\nconst x = \"_icon_1ym3f_4\", j = \"_small_1ym3f_30\", v = \"_medium_1ym3f_33\", N = \"_large_1ym3f_36\", h = \"_xlarge_1ym3f_39\", o = {\n icon: x,\n small: j,\n medium: v,\n large: N,\n xlarge: h\n}, I = g((t, l) => {\n const { layoutStyles: a, componentProps: i } = f(t), {\n size: s = \"medium\",\n className: n,\n svg: m,\n inherit: c,\n style: p,\n color: e,\n ..._\n } = i, y = u([o.icon], n, {\n [o.small]: s === \"small\",\n [o.medium]: s === \"medium\",\n [o.large]: s === \"large\",\n [o.xlarge]: s === \"xlarge\"\n }), d = {\n color: e || (c ? \"inherit\" : void 0),\n ...p,\n ...a\n };\n return /* @__PURE__ */ r.jsx(\n \"span\",\n {\n className: y,\n \"data-anv\": \"Icon\",\n style: d,\n ref: l,\n ..._,\n children: m && /* @__PURE__ */ r.jsx(m, {})\n }\n );\n});\nI.displayName = \"Icon\";\nexport {\n I as Icon\n};\n//# sourceMappingURL=Icon.js.map\n"],"names":["x","j","h","o","forwardRef","t","a","i","J","s","n","m","c","p","e","_","y","K","d","fr"],"mappings":";;;;;;AAQK,MAAAA,IAAA,iBAAAC,IAAA,mBAAA,IAAA,oBAAA,IAAA,mBAAAC,IAAA,oBAAAC,IAAA;AAAA,EACL,MAAAH;AAAA,EACA,OAAAC;AAAA,EACA,QAAA;AAAA,EACA,OAAA;AAAA,EACA,QAAAC;AACA,GAAA,IAAAE,EAAA,CAAAC,GAAA,MAAA;AACA,QAAA,EAAA,cAAAC,GAAA,gBAAAC,EAAA,IAAAC,EAAAH,CAAA,GAAA;AAAA,IACA,MAAAI,IAAA;AAAA,IACA,WAAAC;AAAA,IACA,KAAAC;AAAA,IACA,SAAAC;AAAA,IACA,OAAAC;AAAA,IACA,OAAAC;AAAA,IACA,GAAAC;AAAA,EACA,IAAAR,GAAAS,IAAAC,EAAA,CAAAd,EAAA,IAAA,GAAAO,GAAA;AAAA,IACA,CAAAP,EAAA,KAAA,GAAAM,MAAA;AAAA,IACA,CAAAN,EAAA,MAAA,GAAAM,MAAA;AAAA,IACA,CAAAN,EAAA,KAAA,GAAAM,MAAA;AAAA,IACA,CAAAN,EAAA,MAAA,GAAAM,MAAA;AAAA,EACA,CAAA,GAAAS,IAAA;AAAA,IACA,OAAAJ,MAAAF,IAAA,YAAA;AAAA,IACA,GAAAC;AAAA,IACA,GAAAP;AAAA,EACA;AACA,SAAA,gBAAAa,EAAA;AAAA,IACA;AAAA,IACA;AAAA,MACA,WAAAH;AAAA,MACA,YAAA;AAAA,MACA,OAAAE;AAAA,MACA,KAAA;AAAA,MACA,GAAAH;AAAA,MACA,UAAAJ,KAAA,gBAAAQ,EAAA,IAAAR,GAAA,CAAA,CAAA;AAAA,IACA;AAAA,EACA;AACA,CAAA;AACA,EAAA,cAAA;","x_google_ignoreList":[0]}
|
package/Icon.cjs
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./jsx-runtime-5c3ac4f7.cjs"),u=require("./Icon-38342b79.cjs"),n=require("react"),e=n.forwardRef((t,r)=>o.jsxRuntimeExports.jsx(u.I,{ref:r,...t}));exports.Icon=e;exports.default=e;
|
|
2
|
+
//# sourceMappingURL=Icon.cjs.map
|
package/Icon.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.cjs","sources":["../src/components/Icon/Icon.tsx"],"sourcesContent":["import {\n IconProps as CoreIconProps,\n Icon as CoreIcon,\n} from \"@servicetitan/hammer-react/dist/Icon\";\nimport { Ref, forwardRef } from \"react\";\n\nexport type IconProps = CoreIconProps;\n\nexport const Icon = forwardRef(\n (props: IconProps, ref: Ref<HTMLScriptElement>) => {\n return <CoreIcon ref={ref} {...props} />;\n }\n);\n"],"names":["Icon","forwardRef","props","ref","jsx","CoreIcon"],"mappings":"8MAQaA,EAAOC,EAAA,WAClB,CAACC,EAAkBC,IACTC,EAAAA,kBAAAA,IAAAC,EAAAA,EAAA,CAAS,IAAAF,EAAW,GAAGD,CAAO,CAAA,CAE1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@import"https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,400;0,6..12,600;0,6..12,700;1,6..12,400;1,6..12,600;1,6..12,700&display=swap";@layer reset,base,state,application;@layer reset{._icon_1ym3f_4{all:unset;font-family:Nunito Sans,sans-serif;font-size:100%;color:var(--foreground-color, #141414);margin:0;padding:0;border-style:none;border-width:0;border-color:transparent;box-sizing:border-box;display:flex}}@layer base{._icon_1ym3f_4{display:inline-flex}._icon_1ym3f_4 svg{fill:var(--anv-icon-fill-color, currentColor);font-size:var(--anv-icon-medium, 1rem);width:1em;height:1em}}@layer state{._icon_1ym3f_4._small_1ym3f_30 svg{font-size:var(--anv-icon-small, .75rem)}._icon_1ym3f_4._medium_1ym3f_33 svg{font-size:var(--anv-icon-medium, 1rem)}._icon_1ym3f_4._large_1ym3f_36 svg{font-size:var(--anv-icon-large, 1.5rem)}._icon_1ym3f_4._xlarge_1ym3f_39 svg{font-size:var(--anv-icon-xlarge, 2rem)}}
|
|
1
|
+
@import"https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,400;0,6..12,600;0,6..12,700;1,6..12,400;1,6..12,600;1,6..12,700&display=swap";@layer reset,base,state,application;@layer reset{._icon_1ym3f_4{all:unset;font-family:Nunito Sans,sans-serif;font-size:100%;color:var(--foreground-color, #141414);margin:0;padding:0;border-style:none;border-width:0;border-color:transparent;box-sizing:border-box;display:flex}}@layer base{._icon_1ym3f_4{display:inline-flex}._icon_1ym3f_4 svg{fill:var(--anv-icon-fill-color, currentColor);font-size:var(--anv-icon-medium, 1rem);width:1em;height:1em}}@layer state{._icon_1ym3f_4._small_1ym3f_30 svg{font-size:var(--anv-icon-small, .75rem)}._icon_1ym3f_4._medium_1ym3f_33 svg{font-size:var(--anv-icon-medium, 1rem)}._icon_1ym3f_4._large_1ym3f_36 svg{font-size:var(--anv-icon-large, 1.5rem)}._icon_1ym3f_4._xlarge_1ym3f_39 svg{font-size:var(--anv-icon-xlarge, 2rem)}}
|
package/Icon.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DetailedHTMLProps } from 'react';
|
|
2
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
3
|
+
import { FunctionComponent } from 'react';
|
|
4
|
+
import { HTMLAttributes } from 'react';
|
|
5
|
+
import { IconProps as IconProps_2 } from '@servicetitan/hammer-react/dist/Icon';
|
|
6
|
+
import { Layout } from '@servicetitan/hammer-react/dist/Icon';
|
|
7
|
+
import { RefAttributes } from 'react';
|
|
8
|
+
import { SVGProps } from 'react';
|
|
9
|
+
|
|
10
|
+
declare const Icon: ForwardRefExoticComponent<Omit<Omit< DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref">, "children"> & Layout & {
|
|
11
|
+
color?: string | undefined;
|
|
12
|
+
size?: "small" | "medium" | "large" | "xlarge" | undefined;
|
|
13
|
+
svg?: FunctionComponent<SVGProps<SVGSVGElement>> | undefined;
|
|
14
|
+
inherit?: boolean | undefined;
|
|
15
|
+
} & RefAttributes<HTMLScriptElement>>;
|
|
16
|
+
export { Icon }
|
|
17
|
+
export default Icon;
|
|
18
|
+
|
|
19
|
+
export declare type IconProps = IconProps_2;
|
|
20
|
+
|
|
21
|
+
export { }
|
package/Icon.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { j as t } from "./jsx-runtime-944c88e2.js";
|
|
2
|
+
import { I as m } from "./Icon-4fb5288e.js";
|
|
3
|
+
import { forwardRef as f } from "react";
|
|
4
|
+
const a = f(
|
|
5
|
+
(r, o) => /* @__PURE__ */ t.jsx(m, { ref: o, ...r })
|
|
6
|
+
);
|
|
7
|
+
export {
|
|
8
|
+
a as Icon,
|
|
9
|
+
a as default
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=Icon.js.map
|
package/Icon.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Icon.js","sources":["../src/components/Icon/Icon.tsx"],"sourcesContent":["import {\n IconProps as CoreIconProps,\n Icon as CoreIcon,\n} from \"@servicetitan/hammer-react/dist/Icon\";\nimport { Ref, forwardRef } from \"react\";\n\nexport type IconProps = CoreIconProps;\n\nexport const Icon = forwardRef(\n (props: IconProps, ref: Ref<HTMLScriptElement>) => {\n return <CoreIcon ref={ref} {...props} />;\n }\n);\n"],"names":["Icon","forwardRef","props","ref","jsx","CoreIcon"],"mappings":";;;AAQO,MAAMA,IAAOC;AAAA,EAClB,CAACC,GAAkBC,MACTC,gBAAAA,EAAAA,IAAAC,GAAA,EAAS,KAAAF,GAAW,GAAGD,EAAO,CAAA;AAE1C;"}
|
package/Layout.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Cc=require("./index.css");Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const x=require("./jsx-runtime-5c3ac4f7.cjs"),g=require("react"),t=require("./index-d3c6e880.cjs"),w="_container_1lcvc_3",y="_fixed_1lcvc_10",j="_grid_1lcvc_16",p="_wide_1lcvc_23",L="_narrow_1lcvc_23",R="_xs1_1lcvc_33",N="_xs2_1lcvc_36",E="_xs3_1lcvc_39",$="_xs4_1lcvc_42",I="_xs5_1lcvc_45",K="_xs6_1lcvc_46",b="_xs7_1lcvc_47",h="_xs8_1lcvc_48",q="_xs9_1lcvc_49",M="_xs10_1lcvc_50",O="_xs11_1lcvc_51",S="_xs12_1lcvc_52",P="_cell_1lcvc_55",T="_sm1_1lcvc_67",k="_sm2_1lcvc_70",z="_sm3_1lcvc_73",A="_sm5_1lcvc_79",B="_sm6_1lcvc_80",C="_sm7_1lcvc_81",D="_sm8_1lcvc_82",F="_sm9_1lcvc_83",G="_sm10_1lcvc_84",H="_sm11_1lcvc_85",J="_sm12_1lcvc_86",Q="_md5_1lcvc_109",U="_md6_1lcvc_114",V="_md7_1lcvc_119",W="_md8_1lcvc_124",X="_md9_1lcvc_129",Y="_md10_1lcvc_134",Z="_md11_1lcvc_139",cc="_md12_1lcvc_144",_c="_md1_1lcvc_134",lc="_md2_1lcvc_152",sc="_md3_1lcvc_155",xc="_md4_1lcvc_158",tc="_lg1_1lcvc_177",nc="_lg2_1lcvc_180",oc="_lg3_1lcvc_183",mc="_lg4_1lcvc_186",vc="_lg5_1lcvc_189",ec="_lg6_1lcvc_192",dc="_lg7_1lcvc_195",rc="_lg8_1lcvc_198",ac="_lg9_1lcvc_201",gc="_lg10_1lcvc_204",ic="_lg11_1lcvc_207",uc="_lg12_1lcvc_210",fc="_xl1_1lcvc_231",wc="_xl2_1lcvc_234",yc="_xl3_1lcvc_237",jc="_xl4_1lcvc_240",pc="_xl5_1lcvc_243",Lc="_xl6_1lcvc_246",Rc="_xl7_1lcvc_249",Nc="_xl8_1lcvc_252",Ec="_xl9_1lcvc_255",$c="_xl10_1lcvc_258",Ic="_xl11_1lcvc_261",Kc="_xl12_1lcvc_264",bc="_xxl1_1lcvc_273",hc="_xxl2_1lcvc_276",qc="_xxl3_1lcvc_279",Mc="_xxl4_1lcvc_282",Oc="_xxl5_1lcvc_285",Sc="_xxl6_1lcvc_288",Pc="_xxl7_1lcvc_291",Tc="_xxl8_1lcvc_294",kc="_xxl9_1lcvc_297",zc="_xxl10_1lcvc_300",Ac="_xxl11_1lcvc_303",Bc="_xxl12_1lcvc_306",c={container:w,fixed:y,grid:j,wide:p,narrow:L,xs1:R,xs2:N,xs3:E,xs4:$,xs5:I,xs6:K,xs7:b,xs8:h,xs9:q,xs10:M,xs11:O,xs12:S,cell:P,sm1:T,sm2:k,sm3:z,sm5:A,sm6:B,sm7:C,sm8:D,sm9:F,sm10:G,sm11:H,sm12:J,md5:Q,md6:U,md7:V,md8:W,md9:X,md10:Y,md11:Z,md12:cc,md1:_c,md2:lc,md3:sc,md4:xc,lg1:tc,lg2:nc,lg3:oc,lg4:mc,lg5:vc,lg6:ec,lg7:dc,lg8:rc,lg9:ac,lg10:gc,lg11:ic,lg12:uc,xl1:fc,xl2:wc,xl3:yc,xl4:jc,xl5:pc,xl6:Lc,xl7:Rc,xl8:Nc,xl9:Ec,xl10:$c,xl11:Ic,xl12:Kc,xxl1:bc,xxl2:hc,xxl3:qc,xxl4:Mc,xxl5:Oc,xxl6:Sc,xxl7:Pc,xxl8:Tc,xxl9:kc,xxl10:zc,xxl11:Ac,xxl12:Bc},e=g.forwardRef((n,o)=>{const{children:m,className:v,fixed:l=!1,variant:_="default",...s}=n;return x.jsxRuntimeExports.jsx("div",{className:t.K(c.container),children:x.jsxRuntimeExports.jsx("div",{className:t.K({[c.fixed]:l}),children:x.jsxRuntimeExports.jsx("div",{className:t.K(c.grid,{[c.wide]:_==="wide",[c.narrow]:_==="narrow"},v),ref:o,...s,children:m})})})});e.displayName="Layout";const d=g.forwardRef(({children:n,className:o,span:m=12,xs:v,sm:l,md:_,lg:s,xl:r,xxl:a,...u},f)=>x.jsxRuntimeExports.jsx("div",{ref:f,...u,className:t.K(c.cell,c[`xs${v||m}`],{[c[`sm${l}`]]:l,[c[`md${_}`]]:_,[c[`lg${s}`]]:s,[c[`xl${r}`]]:r,[c[`xxl${a}`]]:a},o),children:n}));d.displayName="LayoutItem";const i=Object.assign(e,{Item:d});exports.Layout=i;exports.LayoutElement=e;exports.LayoutItem=d;exports.default=i;
|
|
2
2
|
//# sourceMappingURL=Layout.cjs.map
|
package/Layout.js
CHANGED
|
@@ -1,128 +1,128 @@
|
|
|
1
1
|
import "./index.css";
|
|
2
|
-
import { j as
|
|
3
|
-
import { forwardRef as
|
|
2
|
+
import { j as x } from "./jsx-runtime-944c88e2.js";
|
|
3
|
+
import { forwardRef as g } from "react";
|
|
4
4
|
import { K as t } from "./index-39087e81.js";
|
|
5
|
-
const
|
|
6
|
-
container:
|
|
7
|
-
fixed:
|
|
8
|
-
grid:
|
|
9
|
-
wide:
|
|
5
|
+
const w = "_container_1lcvc_3", u = "_fixed_1lcvc_10", p = "_grid_1lcvc_16", y = "_wide_1lcvc_23", j = "_narrow_1lcvc_23", N = "_xs1_1lcvc_33", $ = "_xs2_1lcvc_36", L = "_xs3_1lcvc_39", h = "_xs4_1lcvc_42", I = "_xs5_1lcvc_45", E = "_xs6_1lcvc_46", R = "_xs7_1lcvc_47", b = "_xs8_1lcvc_48", K = "_xs9_1lcvc_49", O = "_xs10_1lcvc_50", k = "_xs11_1lcvc_51", q = "_xs12_1lcvc_52", z = "_cell_1lcvc_55", A = "_sm1_1lcvc_67", B = "_sm2_1lcvc_70", C = "_sm3_1lcvc_73", D = "_sm5_1lcvc_79", F = "_sm6_1lcvc_80", G = "_sm7_1lcvc_81", H = "_sm8_1lcvc_82", J = "_sm9_1lcvc_83", M = "_sm10_1lcvc_84", P = "_sm11_1lcvc_85", Q = "_sm12_1lcvc_86", S = "_md5_1lcvc_109", T = "_md6_1lcvc_114", U = "_md7_1lcvc_119", V = "_md8_1lcvc_124", W = "_md9_1lcvc_129", X = "_md10_1lcvc_134", Y = "_md11_1lcvc_139", Z = "_md12_1lcvc_144", cc = "_md1_1lcvc_134", _c = "_md2_1lcvc_152", lc = "_md3_1lcvc_155", sc = "_md4_1lcvc_158", xc = "_lg1_1lcvc_177", tc = "_lg2_1lcvc_180", oc = "_lg3_1lcvc_183", nc = "_lg4_1lcvc_186", mc = "_lg5_1lcvc_189", vc = "_lg6_1lcvc_192", dc = "_lg7_1lcvc_195", ec = "_lg8_1lcvc_198", gc = "_lg9_1lcvc_201", rc = "_lg10_1lcvc_204", ac = "_lg11_1lcvc_207", ic = "_lg12_1lcvc_210", fc = "_xl1_1lcvc_231", wc = "_xl2_1lcvc_234", uc = "_xl3_1lcvc_237", pc = "_xl4_1lcvc_240", yc = "_xl5_1lcvc_243", jc = "_xl6_1lcvc_246", Nc = "_xl7_1lcvc_249", $c = "_xl8_1lcvc_252", Lc = "_xl9_1lcvc_255", hc = "_xl10_1lcvc_258", Ic = "_xl11_1lcvc_261", Ec = "_xl12_1lcvc_264", Rc = "_xxl1_1lcvc_273", bc = "_xxl2_1lcvc_276", Kc = "_xxl3_1lcvc_279", Oc = "_xxl4_1lcvc_282", kc = "_xxl5_1lcvc_285", qc = "_xxl6_1lcvc_288", zc = "_xxl7_1lcvc_291", Ac = "_xxl8_1lcvc_294", Bc = "_xxl9_1lcvc_297", Cc = "_xxl10_1lcvc_300", Dc = "_xxl11_1lcvc_303", Fc = "_xxl12_1lcvc_306", c = {
|
|
6
|
+
container: w,
|
|
7
|
+
fixed: u,
|
|
8
|
+
grid: p,
|
|
9
|
+
wide: y,
|
|
10
10
|
narrow: j,
|
|
11
11
|
xs1: N,
|
|
12
12
|
xs2: $,
|
|
13
|
-
xs3:
|
|
14
|
-
xs4:
|
|
15
|
-
xs5:
|
|
16
|
-
xs6:
|
|
17
|
-
xs7:
|
|
18
|
-
xs8:
|
|
19
|
-
xs9:
|
|
20
|
-
xs10:
|
|
21
|
-
xs11:
|
|
22
|
-
xs12:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
},
|
|
13
|
+
xs3: L,
|
|
14
|
+
xs4: h,
|
|
15
|
+
xs5: I,
|
|
16
|
+
xs6: E,
|
|
17
|
+
xs7: R,
|
|
18
|
+
xs8: b,
|
|
19
|
+
xs9: K,
|
|
20
|
+
xs10: O,
|
|
21
|
+
xs11: k,
|
|
22
|
+
xs12: q,
|
|
23
|
+
cell: z,
|
|
24
|
+
sm1: A,
|
|
25
|
+
sm2: B,
|
|
26
|
+
sm3: C,
|
|
27
|
+
sm5: D,
|
|
28
|
+
sm6: F,
|
|
29
|
+
sm7: G,
|
|
30
|
+
sm8: H,
|
|
31
|
+
sm9: J,
|
|
32
|
+
sm10: M,
|
|
33
|
+
sm11: P,
|
|
34
|
+
sm12: Q,
|
|
35
|
+
md5: S,
|
|
36
|
+
md6: T,
|
|
37
|
+
md7: U,
|
|
38
|
+
md8: V,
|
|
39
|
+
md9: W,
|
|
40
|
+
md10: X,
|
|
41
|
+
md11: Y,
|
|
42
|
+
md12: Z,
|
|
43
|
+
md1: cc,
|
|
44
|
+
md2: _c,
|
|
45
|
+
md3: lc,
|
|
46
|
+
md4: sc,
|
|
47
|
+
lg1: xc,
|
|
48
|
+
lg2: tc,
|
|
49
|
+
lg3: oc,
|
|
50
|
+
lg4: nc,
|
|
51
|
+
lg5: mc,
|
|
52
|
+
lg6: vc,
|
|
53
|
+
lg7: dc,
|
|
54
|
+
lg8: ec,
|
|
55
|
+
lg9: gc,
|
|
56
|
+
lg10: rc,
|
|
57
|
+
lg11: ac,
|
|
58
|
+
lg12: ic,
|
|
59
|
+
xl1: fc,
|
|
60
|
+
xl2: wc,
|
|
61
|
+
xl3: uc,
|
|
62
|
+
xl4: pc,
|
|
63
|
+
xl5: yc,
|
|
64
|
+
xl6: jc,
|
|
65
|
+
xl7: Nc,
|
|
66
|
+
xl8: $c,
|
|
67
|
+
xl9: Lc,
|
|
68
|
+
xl10: hc,
|
|
69
|
+
xl11: Ic,
|
|
70
|
+
xl12: Ec,
|
|
71
|
+
xxl1: Rc,
|
|
72
|
+
xxl2: bc,
|
|
73
|
+
xxl3: Kc,
|
|
74
|
+
xxl4: Oc,
|
|
75
|
+
xxl5: kc,
|
|
76
|
+
xxl6: qc,
|
|
77
|
+
xxl7: zc,
|
|
78
|
+
xxl8: Ac,
|
|
79
|
+
xxl9: Bc,
|
|
80
|
+
xxl10: Cc,
|
|
81
|
+
xxl11: Dc,
|
|
82
|
+
xxl12: Fc
|
|
83
|
+
}, r = g(
|
|
84
84
|
(o, n) => {
|
|
85
85
|
const {
|
|
86
|
-
children:
|
|
87
|
-
className:
|
|
88
|
-
fixed:
|
|
89
|
-
variant:
|
|
90
|
-
...
|
|
86
|
+
children: m,
|
|
87
|
+
className: v,
|
|
88
|
+
fixed: l = !1,
|
|
89
|
+
variant: _ = "default",
|
|
90
|
+
...s
|
|
91
91
|
} = o;
|
|
92
|
-
return /* @__PURE__ */
|
|
92
|
+
return /* @__PURE__ */ x.jsx("div", { className: t(c.container), children: /* @__PURE__ */ x.jsx("div", { className: t({ [c.fixed]: l }), children: /* @__PURE__ */ x.jsx(
|
|
93
93
|
"div",
|
|
94
94
|
{
|
|
95
95
|
className: t(
|
|
96
|
-
|
|
96
|
+
c.grid,
|
|
97
97
|
{
|
|
98
|
-
[
|
|
99
|
-
[
|
|
98
|
+
[c.wide]: _ === "wide",
|
|
99
|
+
[c.narrow]: _ === "narrow"
|
|
100
100
|
},
|
|
101
|
-
|
|
101
|
+
v
|
|
102
102
|
),
|
|
103
103
|
ref: n,
|
|
104
|
-
...
|
|
105
|
-
children:
|
|
104
|
+
...s,
|
|
105
|
+
children: m
|
|
106
106
|
}
|
|
107
107
|
) }) });
|
|
108
108
|
}
|
|
109
109
|
);
|
|
110
|
-
|
|
111
|
-
const
|
|
112
|
-
({ children: o, className: n, span:
|
|
110
|
+
r.displayName = "Layout";
|
|
111
|
+
const a = g(
|
|
112
|
+
({ children: o, className: n, span: m = 12, xs: v, sm: l, md: _, lg: s, xl: d, xxl: e, ...i }, f) => /* @__PURE__ */ x.jsx(
|
|
113
113
|
"div",
|
|
114
114
|
{
|
|
115
|
-
ref:
|
|
116
|
-
...
|
|
115
|
+
ref: f,
|
|
116
|
+
...i,
|
|
117
117
|
className: t(
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
c.cell,
|
|
119
|
+
c[`xs${v || m}`],
|
|
120
120
|
{
|
|
121
|
-
[
|
|
122
|
-
[
|
|
123
|
-
[
|
|
124
|
-
[
|
|
125
|
-
[
|
|
121
|
+
[c[`sm${l}`]]: l,
|
|
122
|
+
[c[`md${_}`]]: _,
|
|
123
|
+
[c[`lg${s}`]]: s,
|
|
124
|
+
[c[`xl${d}`]]: d,
|
|
125
|
+
[c[`xxl${e}`]]: e
|
|
126
126
|
},
|
|
127
127
|
n
|
|
128
128
|
),
|
|
@@ -130,14 +130,14 @@ const g = d(
|
|
|
130
130
|
}
|
|
131
131
|
)
|
|
132
132
|
);
|
|
133
|
-
|
|
134
|
-
const
|
|
135
|
-
Item:
|
|
133
|
+
a.displayName = "LayoutItem";
|
|
134
|
+
const Pc = Object.assign(r, {
|
|
135
|
+
Item: a
|
|
136
136
|
});
|
|
137
137
|
export {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
138
|
+
Pc as Layout,
|
|
139
|
+
r as LayoutElement,
|
|
140
|
+
a as LayoutItem,
|
|
141
|
+
Pc as default
|
|
142
142
|
};
|
|
143
143
|
//# sourceMappingURL=Layout.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var k=require("./Link.css");const a=require("./jsx-runtime-944c88e2-2b81c205.cjs"),i=require("react"),_=require("./index-d3c6e880.cjs"),g=require("./Icon-38342b79.cjs");require("./tinycolor-3b50a250.cjs");const q=require("./useLayoutPropsUtil-4361a49d-a262cd66.cjs");function v(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const o=v(i);const w="_link_s07fr_4",x="_secondary_s07fr_33",b="_quiet_s07fr_39",c={link:w,secondary:x,quiet:b},j=e=>o.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e},o.createElement("path",{d:"M18 19H6c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h5c.55 0 1-.45 1-1s-.45-1-1-1H5a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-6c0-.55-.45-1-1-1s-1 .45-1 1v5c0 .55-.45 1-1 1zM14 4c0 .55.45 1 1 1h2.59l-9.13 9.13a.996.996 0 1 0 1.41 1.41L19 6.41V9c0 .55.45 1 1 1s1-.45 1-1V4c0-.55-.45-1-1-1h-5c-.55 0-1 .45-1 1z"})),l=i.forwardRef((e,r)=>{const{layoutStyles:t,componentProps:n}=q.J(e),{children:u,className:d,appearance:f="primary",quiet:m,style:p,...s}=n,y=_.K([c.link],d,{[c.quiet]:m,[c.secondary]:f==="secondary"}),h={...p,...t};return a.fr.jsxs("a",{className:y,rel:"noopener noreferrer","data-anv":"Link",ref:r,style:h,...s,children:[u,s.target==="_blank"&&a.fr.jsx(g.I,{inherit:!0,svg:j})]})});l.displayName="Link";exports.q=l;
|
|
2
|
+
//# sourceMappingURL=Link-0ee242d1.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Link-0ee242d1.cjs","sources":["../node_modules/@servicetitan/hammer-react/dist/Link.js"],"sourcesContent":["import \"./index20.css\";\nimport { j as p } from \"./jsx-runtime-944c88e2.js\";\nimport * as y from \"react\";\nimport { forwardRef as k } from \"react\";\nimport u from \"classnames\";\nimport { Icon as _ } from \"./Icon.js\";\nimport \"tinycolor2\";\nimport \"@servicetitan/hammer-token\";\nimport { u as d } from \"./useLayoutPropsUtil-4361a49d.js\";\nimport \"@floating-ui/react\";\nconst v = \"_link_s07fr_4\", w = \"_secondary_s07fr_33\", x = \"_quiet_s07fr_39\", e = {\n link: v,\n secondary: w,\n quiet: x\n}, g = (s) => /* @__PURE__ */ y.createElement(\"svg\", { xmlns: \"http://www.w3.org/2000/svg\", width: \"1em\", height: \"1em\", viewBox: \"0 0 24 24\", ...s }, /* @__PURE__ */ y.createElement(\"path\", { d: \"M18 19H6c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h5c.55 0 1-.45 1-1s-.45-1-1-1H5a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-6c0-.55-.45-1-1-1s-1 .45-1 1v5c0 .55-.45 1-1 1zM14 4c0 .55.45 1 1 1h2.59l-9.13 9.13a.996.996 0 1 0 1.41 1.41L19 6.41V9c0 .55.45 1 1 1s1-.45 1-1V4c0-.55-.45-1-1-1h-5c-.55 0-1 .45-1 1z\" })), q = k((s, t) => {\n const { layoutStyles: o, componentProps: n } = d(s), {\n children: r,\n className: c,\n appearance: a = \"primary\",\n quiet: i,\n style: m,\n ...l\n } = n, f = u([e.link], c, {\n [e.quiet]: i,\n [e.secondary]: a === \"secondary\"\n }), h = {\n ...m,\n ...o\n };\n return /* @__PURE__ */ p.jsxs(\n \"a\",\n {\n className: f,\n rel: \"noopener noreferrer\",\n \"data-anv\": \"Link\",\n ref: t,\n style: h,\n ...l,\n children: [\n r,\n l.target === \"_blank\" && /* @__PURE__ */ p.jsx(_, { inherit: !0, svg: g })\n ]\n }\n );\n});\nq.displayName = \"Link\";\nconst V = (s) => {\n const { layoutStyles: t, componentProps: o } = d(s), { className: n, appearance: r = \"primary\", quiet: c, style: a } = o, i = u([e.link], n, {\n [e.quiet]: c,\n [e.secondary]: r === \"secondary\"\n }), m = {\n ...a,\n ...t\n };\n return { linkClassNames: i, styleCombined: m };\n};\nexport {\n q as Link,\n V as useLinkStyles\n};\n//# sourceMappingURL=Link.js.map\n"],"names":["v","w","x","e","g","s","React__namespace","q","React","t","o","useLayoutPropsUtil4361a49d","r","c","a","i","m","l","f","index","jsxRuntime944c88e2","Icon"],"mappings":"qiBAUK,MAAAA,EAAA,gBAAAC,EAAA,sBAAAC,EAAA,kBAAAC,EAAA,CACL,KAAAH,EACA,UAAAC,EACA,MAAAC,CACA,EAAAE,EAAAC,GAAAC,EAAA,cAAA,MAAA,CAAA,MAAA,6BAAA,MAAA,MAAA,OAAA,MAAA,QAAA,YAAA,GAAAD,CAAA,EAAAC,EAAA,cAAA,OAAA,CAAA,EAAA,oTAAA,CAAA,CAAA,EAAAC,EAAAC,EAAA,WAAA,CAAAH,EAAAI,IAAA,CACA,KAAA,CAAA,aAAAC,EAAA,eAAA,CAAA,EAAAC,EAAA,EAAAN,CAAA,EAAA,CACA,SAAAO,EACA,UAAAC,EACA,WAAAC,EAAA,UACA,MAAAC,EACA,MAAAC,EACA,GAAAC,CACA,EAAA,EAAAC,EAAAC,EAAA,EAAA,CAAAhB,EAAA,IAAA,EAAAU,EAAA,CACA,CAAAV,EAAA,KAAA,EAAAY,EACA,CAAAZ,EAAA,SAAA,EAAAW,IAAA,WACA,CAAA,EAAA,EAAA,CACA,GAAAE,EACA,GAAAN,CACA,EACA,OAAAU,EAAA,GAAA,KACA,IACA,CACA,UAAAF,EACA,IAAA,sBACA,WAAA,OACA,IAAAT,EACA,MAAA,EACA,GAAAQ,EACA,SAAA,CACAL,EACAK,EAAA,SAAA,UAAAG,EAAA,GAAA,IAAAC,EAAA,EAAA,CAAA,QAAA,GAAA,IAAAjB,CAAA,CAAA,CACA,CACA,CACA,CACA,CAAA,EACAG,EAAA,YAAA","x_google_ignoreList":[0]}
|