@servicetitan/anvil2 1.2.1 → 1.2.3
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-6336e146.cjs +2 -0
- package/Alert-6336e146.cjs.map +1 -0
- package/Alert-6faa0b05.js +88 -0
- package/Alert-6faa0b05.js.map +1 -0
- package/Alert.cjs +1 -1
- package/Alert.css +1 -1
- package/Alert.js +1 -1
- package/{Announcement-0ef0c8f7.js → Announcement-d04009ea.js} +26 -26
- package/Announcement-d04009ea.js.map +1 -0
- package/Announcement-fff87b68.cjs +2 -0
- package/Announcement-fff87b68.cjs.map +1 -0
- package/Announcement.cjs +1 -1
- package/Announcement.css +1 -1
- package/Announcement.js +1 -1
- package/AnvilProvider.cjs +1 -1
- package/AnvilProvider.js +1 -1
- package/Avatar.cjs +1 -1
- package/Avatar.js +7 -7
- package/Badge-0073b5a1.cjs +2 -0
- package/{Badge-29ed0c9e.cjs.map → Badge-0073b5a1.cjs.map} +1 -1
- package/Badge-f761458c.js +35 -0
- package/Badge-f761458c.js.map +1 -0
- package/Badge.cjs +1 -1
- package/Badge.css +1 -1
- package/Badge.js +1 -1
- package/Button-268ba8a9.cjs +2 -0
- package/Button-268ba8a9.cjs.map +1 -0
- package/Button-d05507c5.js +289 -0
- package/Button-d05507c5.js.map +1 -0
- package/Button.cjs +1 -1
- package/Button.cjs.map +1 -1
- package/Button.css +1 -1
- package/Button.js +46 -14
- package/Button.js.map +1 -1
- package/ButtonCompound.cjs +1 -1
- package/ButtonCompound.cjs.map +1 -1
- package/ButtonCompound.js +45 -13
- package/ButtonCompound.js.map +1 -1
- package/ButtonLink.cjs +1 -1
- package/ButtonLink.cjs.map +1 -1
- package/ButtonLink.js +46 -14
- package/ButtonLink.js.map +1 -1
- package/ButtonToggle.cjs +1 -1
- package/ButtonToggle.cjs.map +1 -1
- package/ButtonToggle.js +46 -14
- package/ButtonToggle.js.map +1 -1
- package/{Calendar-fc2373b7.js → Calendar-073dc10d.js} +821 -821
- package/{Calendar-fc2373b7.js.map → Calendar-073dc10d.js.map} +1 -1
- package/{Calendar-e0743dcf.cjs → Calendar-706f41ff.cjs} +2 -2
- package/{Calendar-e0743dcf.cjs.map → Calendar-706f41ff.cjs.map} +1 -1
- package/Calendar.cjs +1 -1
- package/Calendar.css +1 -1
- package/Calendar.js +1 -1
- package/Card-33f3ad0a.js +51 -0
- package/Card-33f3ad0a.js.map +1 -0
- package/Card-92ebca1f.cjs +2 -0
- package/Card-92ebca1f.cjs.map +1 -0
- package/Card.cjs +1 -1
- package/Card.css +1 -1
- package/Card.js +1 -1
- package/{Checkbox-e2b0e7d0.js → Checkbox-d503c3b6.js} +41 -41
- package/Checkbox-d503c3b6.js.map +1 -0
- package/Checkbox-edf070c3.cjs +2 -0
- package/Checkbox-edf070c3.cjs.map +1 -0
- package/Checkbox.cjs +1 -1
- package/Checkbox.css +1 -1
- package/Checkbox.d.ts +25 -4
- package/Checkbox.js +4 -4
- package/{Chip-dbc470f4.js → Chip-a8eb2656.js} +31 -31
- package/Chip-a8eb2656.js.map +1 -0
- package/Chip-b52e1bd7.cjs +2 -0
- package/Chip-b52e1bd7.cjs.map +1 -0
- package/Chip.cjs +1 -1
- package/Chip.css +1 -1
- package/Chip.js +1 -1
- package/Combobox.cjs +1 -1
- package/Combobox.cjs.map +1 -1
- package/Combobox.js +65 -32
- package/Combobox.js.map +1 -1
- package/Details.cjs +1 -1
- package/Details.cjs.map +1 -1
- package/Details.js +54 -22
- package/Details.js.map +1 -1
- package/Dialog.cjs +1 -1
- package/Dialog.cjs.map +1 -1
- package/Dialog.js +70 -38
- package/Dialog.js.map +1 -1
- package/Divider-86c1f4ea.cjs +2 -0
- package/Divider-86c1f4ea.cjs.map +1 -0
- package/Divider-edca965e.js +74 -0
- package/Divider-edca965e.js.map +1 -0
- package/Divider.cjs +1 -1
- package/Divider.css +1 -1
- package/Divider.js +1 -1
- package/Drawer-6c2a6e0c.cjs +2 -0
- package/{Drawer-989d1d8a.cjs.map → Drawer-6c2a6e0c.cjs.map} +1 -1
- package/{Drawer-b81924d3.js → Drawer-f68286e8.js} +56 -56
- package/Drawer-f68286e8.js.map +1 -0
- package/Drawer.cjs +1 -1
- package/Drawer.css +1 -1
- package/Drawer.js +1 -1
- package/Flex-4b128a0e.cjs +2 -0
- package/{Flex-740ea6ba.cjs.map → Flex-4b128a0e.cjs.map} +1 -1
- package/{Flex-15fbb5a2.js → Flex-f6e67921.js} +2 -2
- package/{Flex-15fbb5a2.js.map → Flex-f6e67921.js.map} +1 -1
- package/Flex.cjs +1 -1
- package/Flex.css +1 -1
- package/Flex.js +1 -1
- package/{Grid-674805a9.cjs → Grid-8226f7a1.cjs} +2 -2
- package/{Grid-674805a9.cjs.map → Grid-8226f7a1.cjs.map} +1 -1
- package/{Grid-043bde66.js → Grid-992de375.js} +15 -15
- package/{Grid-043bde66.js.map → Grid-992de375.js.map} +1 -1
- package/Grid.cjs +1 -1
- package/Grid.css +1 -1
- package/Grid.js +1 -1
- package/{Helper-74a1f07f-18441e16.js → Helper-74a1f07f-067ae3f7.js} +2 -2
- package/{Helper-74a1f07f-18441e16.js.map → Helper-74a1f07f-067ae3f7.js.map} +1 -1
- package/{Helper-74a1f07f-2aeadeae.cjs → Helper-74a1f07f-6cf9865b.cjs} +2 -2
- package/{Helper-74a1f07f-2aeadeae.cjs.map → Helper-74a1f07f-6cf9865b.cjs.map} +1 -1
- package/Icon-ae9b951b.cjs +2 -0
- package/Icon-ae9b951b.cjs.map +1 -0
- package/Icon-fa8f3dc8.js +47 -0
- package/Icon-fa8f3dc8.js.map +1 -0
- package/Icon.cjs +1 -1
- package/Icon.css +1 -1
- package/Icon.js +1 -1
- package/Link.cjs +1 -1
- package/Link.cjs.map +1 -1
- package/Link.d.ts +2 -1
- package/Link.js +49 -17
- package/Link.js.map +1 -1
- package/{ListView-b33a9948.cjs → ListView-14d80585.cjs} +2 -2
- package/{ListView-b33a9948.cjs.map → ListView-14d80585.cjs.map} +1 -1
- package/{ListView-dac3c924.js → ListView-1f75e2de.js} +26 -26
- package/{ListView-dac3c924.js.map → ListView-1f75e2de.js.map} +1 -1
- package/ListView.cjs +1 -1
- package/ListView.css +1 -1
- package/ListView.js +1 -1
- package/Listbox-306a8d62.cjs +2 -0
- package/{Listbox-873403e9.cjs.map → Listbox-306a8d62.cjs.map} +1 -1
- package/{Listbox-7a43984b.js → Listbox-cdf02568.js} +81 -81
- package/{Listbox-7a43984b.js.map → Listbox-cdf02568.js.map} +1 -1
- package/Listbox.cjs +1 -1
- package/Listbox.css +1 -1
- package/Listbox.js +1 -1
- package/Menu.cjs +1 -1
- package/Menu.cjs.map +1 -1
- package/Menu.d.ts +7 -2
- package/Menu.js +3 -3
- package/Overflow.cjs +1 -1
- package/Overflow.cjs.map +1 -1
- package/Overflow.js +56 -24
- package/Overflow.js.map +1 -1
- package/Page.cjs +1 -1
- package/Page.js +2 -2
- package/Popover.cjs +1 -1
- package/Popover.cjs.map +1 -1
- package/Popover.d.ts +22 -1
- package/Popover.js +68 -36
- package/Popover.js.map +1 -1
- package/ProgressBar-29d21945.cjs +2 -0
- package/ProgressBar-29d21945.cjs.map +1 -0
- package/{ProgressBar-f9325dbe.js → ProgressBar-5f350a3f.js} +93 -93
- package/ProgressBar-5f350a3f.js.map +1 -0
- package/ProgressBar.cjs +1 -1
- package/ProgressBar.css +1 -1
- package/ProgressBar.js +1 -1
- package/Radio-4189b000.js +124 -0
- package/Radio-4189b000.js.map +1 -0
- package/Radio-abd4d3fd.cjs +2 -0
- package/Radio-abd4d3fd.cjs.map +1 -0
- package/Radio.cjs +1 -1
- package/Radio.cjs.map +1 -1
- package/Radio.css +1 -1
- package/Radio.d.ts +18 -4
- package/Radio.js +1 -1
- package/Radio.js.map +1 -1
- package/{SideNav-369bf761.cjs → SideNav-6de704fd.cjs} +6 -6
- package/{SideNav-369bf761.cjs.map → SideNav-6de704fd.cjs.map} +1 -1
- package/{SideNav-94ab00f0.js → SideNav-e92d850f.js} +136 -136
- package/{SideNav-94ab00f0.js.map → SideNav-e92d850f.js.map} +1 -1
- package/SideNav.cjs +5 -5
- package/SideNav.cjs.map +1 -1
- package/SideNav.css +1 -1
- package/SideNav.d.ts +5 -35
- package/SideNav.js +524 -585
- package/SideNav.js.map +1 -1
- package/Stepper-e776cc28.cjs +2 -0
- package/Stepper-e776cc28.cjs.map +1 -0
- package/{Stepper-54e47376.js → Stepper-fa554908.js} +140 -140
- package/Stepper-fa554908.js.map +1 -0
- package/Stepper.cjs +1 -1
- package/Stepper.css +1 -1
- package/Stepper.js +1 -1
- package/Switch-285b3272.cjs +2 -0
- package/Switch-285b3272.cjs.map +1 -0
- package/Switch-b0a37fc1.js +54 -0
- package/Switch-b0a37fc1.js.map +1 -0
- package/Switch.cjs +1 -1
- package/Switch.css +1 -1
- package/Switch.js +1 -1
- package/{Tab-120468a3.js → Tab-1934a4ca.js} +80 -80
- package/{Tab-120468a3.js.map → Tab-1934a4ca.js.map} +1 -1
- package/Tab-ad70a0a5.cjs +10 -0
- package/{Tab-3de6894a.cjs.map → Tab-ad70a0a5.cjs.map} +1 -1
- package/Tab.cjs +1 -1
- package/Tab.css +1 -1
- package/Tab.js +1 -1
- package/{Text-a7747376.js → Text-4c30916c.js} +31 -31
- package/Text-4c30916c.js.map +1 -0
- package/Text-ed02cc62.cjs +2 -0
- package/Text-ed02cc62.cjs.map +1 -0
- package/Text.cjs +1 -1
- package/Text.css +1 -1
- package/Text.js +1 -1
- package/TextField.cjs +1 -1
- package/TextField.cjs.map +1 -1
- package/TextField.js +47 -15
- package/TextField.js.map +1 -1
- package/Textarea.cjs +1 -1
- package/Textarea.cjs.map +1 -1
- package/Textarea.js +51 -19
- package/Textarea.js.map +1 -1
- package/ThemeProvider.cjs +1 -1
- package/ThemeProvider.js +1 -1
- package/{Toast-4bab713a.cjs → Toast-834c85cd.cjs} +6 -6
- package/{Toast-4bab713a.cjs.map → Toast-834c85cd.cjs.map} +1 -1
- package/{Toast-5b02b7c0.js → Toast-f15e9d36.js} +141 -141
- package/Toast-f15e9d36.js.map +1 -0
- package/Toast.cjs +1 -1
- package/Toast.css +1 -1
- package/Toast.js +1 -1
- package/Tooltip.cjs +1 -1
- package/Tooltip.cjs.map +1 -1
- package/Tooltip.d.ts +2 -1
- package/Tooltip.js +47 -17
- package/Tooltip.js.map +1 -1
- package/anvil2.cjs +1 -1
- package/anvil2.d.ts +68 -47
- package/anvil2.js +40 -40
- package/floating-ui.react-5347095a.cjs +178 -0
- package/floating-ui.react-5347095a.cjs.map +1 -0
- package/{floating-ui.react-3f85fcd1.js → floating-ui.react-8d61182d.js} +5666 -5654
- package/floating-ui.react-8d61182d.js.map +1 -0
- package/index-098ca719-3c14c40c.js +307 -0
- package/index-098ca719-3c14c40c.js.map +1 -0
- package/index-098ca719-8e068129.cjs +2 -0
- package/index-098ca719-8e068129.cjs.map +1 -0
- package/index-098ca719.css +1 -0
- package/{index-5654965e.js → index-439b5871.js} +4 -4
- package/{index-5654965e.js.map → index-439b5871.js.map} +1 -1
- package/{index-a6d2f789.js → index-8ee9499c.js} +682 -673
- package/{index-a6d2f789.js.map → index-8ee9499c.js.map} +1 -1
- package/{index-ebc2776c.js → index-ab05dabf.js} +2 -2
- package/{index-ebc2776c.js.map → index-ab05dabf.js.map} +1 -1
- package/{index-0c3dd58b.cjs → index-acdc415f.cjs} +2 -2
- package/{index-0c3dd58b.cjs.map → index-acdc415f.cjs.map} +1 -1
- package/{index-d46fa8de-cc49032b.cjs → index-d46fa8de-08092573.cjs} +2 -2
- package/{index-d46fa8de-cc49032b.cjs.map → index-d46fa8de-08092573.cjs.map} +1 -1
- package/{index-d46fa8de-997b6b08.js → index-d46fa8de-8695742b.js} +15 -15
- package/{index-d46fa8de-997b6b08.js.map → index-d46fa8de-8695742b.js.map} +1 -1
- package/index-da56edbc-372336bd.js +120 -0
- package/index-da56edbc-372336bd.js.map +1 -0
- package/index-da56edbc-53f59f54.cjs +2 -0
- package/index-da56edbc-53f59f54.cjs.map +1 -0
- package/index-da56edbc.css +1 -0
- package/{index-51c8d206.cjs → index-dfb6272f.cjs} +5 -5
- package/{index-51c8d206.cjs.map → index-dfb6272f.cjs.map} +1 -1
- package/{index-30317fba.cjs → index-f6c22572.cjs} +2 -2
- package/{index-30317fba.cjs.map → index-f6c22572.cjs.map} +1 -1
- package/index3.css +1 -1
- package/package.json +33 -33
- package/token.cjs +1 -1
- package/token.js +1 -1
- package/useAccessibleColor.cjs +1 -1
- package/useAccessibleColor.js +29 -29
- package/useLinkStyles.cjs +1 -1
- package/useLinkStyles.js +29 -29
- package/useMergeRefs.cjs +1 -1
- package/useMergeRefs.js +30 -30
- package/usePrefersColorScheme.cjs +1 -1
- package/usePrefersColorScheme.js +29 -29
- package/useSwipe.cjs +1 -1
- package/useSwipe.js +29 -29
- package/Alert-017471de.js +0 -88
- package/Alert-017471de.js.map +0 -1
- package/Alert-3ae85e66.cjs +0 -2
- package/Alert-3ae85e66.cjs.map +0 -1
- package/Announcement-0ef0c8f7.js.map +0 -1
- package/Announcement-3540ab95.cjs +0 -2
- package/Announcement-3540ab95.cjs.map +0 -1
- package/Badge-29ed0c9e.cjs +0 -2
- package/Badge-2dc92a40.js +0 -35
- package/Badge-2dc92a40.js.map +0 -1
- package/Button-dbbb8dc0.js +0 -289
- package/Button-dbbb8dc0.js.map +0 -1
- package/Button-df4be721.cjs +0 -2
- package/Button-df4be721.cjs.map +0 -1
- package/Card-42198f6c.cjs +0 -2
- package/Card-42198f6c.cjs.map +0 -1
- package/Card-d7d23388.js +0 -51
- package/Card-d7d23388.js.map +0 -1
- package/Checkbox-949d5f00.cjs +0 -2
- package/Checkbox-949d5f00.cjs.map +0 -1
- package/Checkbox-e2b0e7d0.js.map +0 -1
- package/Chip-c1c9ff14.cjs +0 -2
- package/Chip-c1c9ff14.cjs.map +0 -1
- package/Chip-dbc470f4.js.map +0 -1
- package/Divider-6e94652c.js +0 -74
- package/Divider-6e94652c.js.map +0 -1
- package/Divider-9719b490.cjs +0 -2
- package/Divider-9719b490.cjs.map +0 -1
- package/Drawer-989d1d8a.cjs +0 -2
- package/Drawer-b81924d3.js.map +0 -1
- package/Flex-740ea6ba.cjs +0 -2
- package/Icon-7dc0db59.js +0 -47
- package/Icon-7dc0db59.js.map +0 -1
- package/Icon-d02abfdd.cjs +0 -2
- package/Icon-d02abfdd.cjs.map +0 -1
- package/Listbox-873403e9.cjs +0 -2
- package/Menu-0a24f1ba.js +0 -284
- package/Menu-0a24f1ba.js.map +0 -1
- package/Menu-869a24e2.cjs +0 -2
- package/Menu-869a24e2.cjs.map +0 -1
- package/Menu.css +0 -1
- package/ProgressBar-2589ad1b.cjs +0 -2
- package/ProgressBar-2589ad1b.cjs.map +0 -1
- package/ProgressBar-f9325dbe.js.map +0 -1
- package/Radio-c81308ef.js +0 -124
- package/Radio-c81308ef.js.map +0 -1
- package/Radio-e11ee699.cjs +0 -2
- package/Radio-e11ee699.cjs.map +0 -1
- package/Stepper-54e47376.js.map +0 -1
- package/Stepper-e26d5bac.cjs +0 -2
- package/Stepper-e26d5bac.cjs.map +0 -1
- package/Switch-c4977b9b.js +0 -54
- package/Switch-c4977b9b.js.map +0 -1
- package/Switch-f1d54e52.cjs +0 -2
- package/Switch-f1d54e52.cjs.map +0 -1
- package/Tab-3de6894a.cjs +0 -10
- package/Text-a7747376.js.map +0 -1
- package/Text-eefa573a.cjs +0 -2
- package/Text-eefa573a.cjs.map +0 -1
- package/Toast-5b02b7c0.js.map +0 -1
- package/floating-ui.react-3f85fcd1.js.map +0 -1
- package/floating-ui.react-518bb704.cjs +0 -178
- package/floating-ui.react-518bb704.cjs.map +0 -1
- package/index-f3ce3681-94450aba.js +0 -120
- package/index-f3ce3681-94450aba.js.map +0 -1
- package/index-f3ce3681-b0bee9d9.cjs +0 -2
- package/index-f3ce3681-b0bee9d9.cjs.map +0 -1
- package/index-f3ce3681.css +0 -1
- package/ui-react-7152d718.js +0 -53
- package/ui-react-7152d718.js.map +0 -1
- package/ui-react-7f005f46.cjs +0 -2
- package/ui-react-7f005f46.cjs.map +0 -1
package/Radio.css
CHANGED
|
@@ -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
|
|
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 starter,reset,base,state,application;@layer reset{._radio_qnrm6_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:inline-flex}._radio-group_qnrm6_17{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:initial}}@layer base{._radio_qnrm6_4{display:inline-flex;align-items:flex-start;line-height:1.5;gap:.5rem;position:relative;color:var(--foreground-color, #141414);font-size:1rem}._radio_qnrm6_4 ._icon-wrapper_qnrm6_41{display:inline-flex;border-radius:100%;background-color:transparent;transition:background-color .2s cubic-bezier(0,0,.4,1),outline .2s cubic-bezier(0,0,.4,1);position:relative;outline:0 solid var(--focus-ring-color, #0265dc)}._radio_qnrm6_4 ._icon-wrapper_qnrm6_41:before{position:absolute;width:100%;height:100%;inset-block:0;inset-inline:0;-webkit-user-select:none;user-select:none;transition:background-color .2s cubic-bezier(0,0,.4,1);pointer-events:none;border-radius:inherit}._radio_qnrm6_4 input{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding-block:0;padding-inline:0;position:absolute;white-space:nowrap;width:1px}._radio-group_qnrm6_17{display:inline-flex;gap:.5rem;flex-direction:column}._radio-group_qnrm6_17 ._legend_qnrm6_77{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding-block:0;padding-inline:0;position:absolute;white-space:nowrap;width:1px}._radio-group_qnrm6_17 ._children_qnrm6_89{display:inline-flex;gap:.5rem;flex-direction:column;flex-wrap:wrap}._radio-group_qnrm6_17 ._label_qnrm6_95{font-weight:600}._radio-group_qnrm6_17 ._required-asterisk_qnrm6_98{margin-inline-start:.25rem;color:var(--foreground-color-danger, #e13212)}}@layer state{._radio_qnrm6_4 input[data-interactive=hover]:not(:disabled)~._icon-wrapper_qnrm6_41:before{content:"";background-color:var(--overlay-color-hover, rgba(20, 20, 20, .0784313725))}._radio_qnrm6_4 input[data-interactive=hover]:not(:disabled):checked~._icon-wrapper_qnrm6_41:before{content:"";background-color:var(--overlay-color-hover-on-primary, rgba(255, 255, 255, .1607843137))}._radio_qnrm6_4 ._icon-unchecked_qnrm6_112,._radio_qnrm6_4 ._icon-checked_qnrm6_113{color:var(--foreground-color, #141414);border-radius:100%}._radio_qnrm6_4 ._icon-checked_qnrm6_113{color:var(--foreground-color-primary, #0265dc);display:none}._radio_qnrm6_4._error_qnrm6_121 ._icon-wrapper_qnrm6_41{outline-color:var(--focus-ring-color-danger, #e13212)}._radio_qnrm6_4._error_qnrm6_121 ._icon-unchecked_qnrm6_112,._radio_qnrm6_4._error_qnrm6_121 ._icon-checked_qnrm6_113{color:var(--foreground-color-danger, #e13212)}._radio_qnrm6_4._error_qnrm6_121 ._icon-checked_qnrm6_113{display:none}._radio_qnrm6_4:hover{cursor:pointer}._radio_qnrm6_4:hover:has(input:not(:disabled)) ._icon-wrapper_qnrm6_41:before{content:"";background-color:var(--overlay-color-hover, rgba(20, 20, 20, .0784313725))}._radio_qnrm6_4:hover:has(input:not(:disabled):checked) ._icon-wrapper_qnrm6_41:before{content:"";background-color:var(--overlay-color-hover-on-primary, rgba(255, 255, 255, .1607843137))}._radio_qnrm6_4._error_qnrm6_121:hover{cursor:pointer}._radio_qnrm6_4._error_qnrm6_121:hover:has(input:not(:disabled)) ._icon-wrapper_qnrm6_41:before{content:"";background-color:var(--overlay-color-hover-danger, rgba(225, 50, 18, .1019607843))}._radio_qnrm6_4._error_qnrm6_121:hover:has(input:not(:disabled):checked) ._icon-wrapper_qnrm6_41:before{content:"";background-color:var(--overlay-color-hover-on-danger, rgba(255, 255, 255, .1607843137))}._radio_qnrm6_4._error_qnrm6_121 input[data-interactive=hover]:not(:disabled)~._icon-wrapper_qnrm6_41:before{content:"";background-color:var(--overlay-color-hover-danger, rgba(225, 50, 18, .1019607843))}._radio_qnrm6_4._error_qnrm6_121 input[data-interactive=hover]:not(:disabled):checked~._icon-wrapper_qnrm6_41:before{content:"";background-color:var(--overlay-color-hover-on-danger, rgba(255, 255, 255, .1607843137))}._radio_qnrm6_4 input:focus-visible~._icon-wrapper_qnrm6_41{outline-width:.125rem}._radio_qnrm6_4 input[data-interactive=focus-visible]:not(:disabled)~._icon-wrapper_qnrm6_41{outline-width:.125rem}._radio_qnrm6_4 input:checked~._icon-wrapper_qnrm6_41 ._icon-unchecked_qnrm6_112{display:none}._radio_qnrm6_4 input:checked~._icon-wrapper_qnrm6_41 ._icon-checked_qnrm6_113{display:inline-flex}._radio_qnrm6_4 input:checked:focus-visible~._icon-wrapper_qnrm6_41{outline-width:.125rem}._radio_qnrm6_4:has(input[disabled]){opacity:.6;filter:grayscale(1);cursor:not-allowed}._radio_qnrm6_4:has(input[disabled]) ._icon-unchecked_qnrm6_112,._radio_qnrm6_4:has(input[disabled]) ._icon-checked_qnrm6_113{color:var(--foreground-color-subdued, #737475)}._radio_qnrm6_4:has(input[disabled]):hover ._icon-wrapper_qnrm6_41{outline-width:0}}@layer application{@media (prefers-reduced-motion: reduce){._radio_qnrm6_4 ._icon-wrapper_qnrm6_41{transition-duration:.01ms!important;transition-property:outline}}}
|
package/Radio.d.ts
CHANGED
|
@@ -1,22 +1,37 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChangeEvent } from 'react';
|
|
2
2
|
import { DetailedHTMLProps } from 'react';
|
|
3
3
|
import { FieldsetHTMLAttributes } from 'react';
|
|
4
4
|
import { ForwardRefExoticComponent } from 'react';
|
|
5
|
+
import { FunctionComponent } from 'react';
|
|
6
|
+
import { InputHTMLAttributes } from 'react';
|
|
5
7
|
import { LayoutUtilProps } from '@servicetitan/hammer-react/dist/Radio';
|
|
6
8
|
import { RadioGroupProps as RadioGroupProps_2 } from '@servicetitan/hammer-react/dist/Radio';
|
|
7
9
|
import { RadioProps as RadioProps_2 } from '@servicetitan/hammer-react/dist/Radio';
|
|
8
10
|
import { ReactElement } from 'react';
|
|
9
11
|
import { RefAttributes } from 'react';
|
|
12
|
+
import { SVGProps } from 'react';
|
|
10
13
|
|
|
11
14
|
declare type DataTrackingId = {
|
|
12
15
|
["data-tracking-id"]?: string;
|
|
13
16
|
};
|
|
14
17
|
|
|
15
|
-
declare const Radio: ForwardRefExoticComponent<
|
|
18
|
+
declare const Radio: ForwardRefExoticComponent<Omit<Omit< DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "onChange"> & LayoutUtilProps & {
|
|
19
|
+
checked?: boolean;
|
|
20
|
+
defaultChecked?: boolean;
|
|
21
|
+
onChange?: (e?: ChangeEvent<HTMLInputElement>, state?: {
|
|
22
|
+
checked: boolean;
|
|
23
|
+
value?: string | number | readonly string[];
|
|
24
|
+
}) => void;
|
|
25
|
+
label?: ReactElement | string;
|
|
26
|
+
error?: boolean;
|
|
27
|
+
icons?: {
|
|
28
|
+
checked?: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
29
|
+
unchecked?: FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
30
|
+
};
|
|
31
|
+
} & DataTrackingId & RefAttributes<HTMLInputElement>> & {
|
|
16
32
|
Group: ForwardRefExoticComponent<Omit< DetailedHTMLProps<FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, "ref"> & LayoutUtilProps & {
|
|
17
33
|
required?: boolean;
|
|
18
34
|
legend?: string | ReactElement;
|
|
19
|
-
flexDirection?: CSSProperties["flexDirection"];
|
|
20
35
|
} & RefAttributes<HTMLFieldSetElement>>;
|
|
21
36
|
};
|
|
22
37
|
export { Radio }
|
|
@@ -25,7 +40,6 @@ export default Radio;
|
|
|
25
40
|
export declare const RadioGroup: ForwardRefExoticComponent<Omit< DetailedHTMLProps<FieldsetHTMLAttributes<HTMLFieldSetElement>, HTMLFieldSetElement>, "ref"> & LayoutUtilProps & {
|
|
26
41
|
required?: boolean;
|
|
27
42
|
legend?: string | ReactElement;
|
|
28
|
-
flexDirection?: CSSProperties["flexDirection"];
|
|
29
43
|
} & RefAttributes<HTMLFieldSetElement>>;
|
|
30
44
|
|
|
31
45
|
export declare type RadioGroupProps = RadioGroupProps_2;
|
package/Radio.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as t } from "./jsx-runtime-82a9ddf6.js";
|
|
2
|
-
import { K as d,
|
|
2
|
+
import { K as d, q as l } from "./Radio-4189b000.js";
|
|
3
3
|
import { forwardRef as r } from "react";
|
|
4
4
|
import { useTrackingId as o } from "./useTrackingId.js";
|
|
5
5
|
const m = r(
|
package/Radio.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Radio.js","sources":["../src/components/Radio/Radio.tsx"],"sourcesContent":["import {\n RadioProps as CoreRadioProps,\n Radio as CoreRadio,\n RadioGroup as CoreRadioGroup,\n RadioGroupProps as CoreRadioGroupProps,\n} from \"@servicetitan/hammer-react/dist/Radio\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\n\nexport type RadioProps = CoreRadioProps & DataTrackingId;\nexport type RadioGroupProps = CoreRadioGroupProps;\n\nconst RadioElement = forwardRef(\n (props: RadioProps, ref: Ref<
|
|
1
|
+
{"version":3,"file":"Radio.js","sources":["../src/components/Radio/Radio.tsx"],"sourcesContent":["import {\n RadioProps as CoreRadioProps,\n Radio as CoreRadio,\n RadioGroup as CoreRadioGroup,\n RadioGroupProps as CoreRadioGroupProps,\n} from \"@servicetitan/hammer-react/dist/Radio\";\nimport { Ref, forwardRef } from \"react\";\nimport { useTrackingId } from \"../../hooks/useTrackingId\";\nimport { DataTrackingId } from \"../../types/DataTrackingId\";\n\nexport type RadioProps = CoreRadioProps & DataTrackingId;\nexport type RadioGroupProps = CoreRadioGroupProps;\n\nconst RadioElement = forwardRef(\n (props: RadioProps, ref: Ref<HTMLInputElement>) => {\n const data = {\n label: props.label,\n ariaLabel: props[\"aria-label\"],\n ariaLabelledBy: props[\"aria-labelledby\"],\n name: props.name,\n value: props.value,\n };\n\n const trackingId = useTrackingId({\n name: \"Radio\",\n data,\n hasOverride: !!props[\"data-tracking-id\"],\n });\n return <CoreRadio ref={ref} data-tracking-id={trackingId} {...props} />;\n }\n);\nexport const RadioGroup = forwardRef(\n (props: CoreRadioGroupProps, ref: Ref<HTMLFieldSetElement>) => {\n return <CoreRadioGroup ref={ref} {...props} />;\n }\n);\n\nexport const Radio = Object.assign(RadioElement, {\n Group: RadioGroup,\n});\n"],"names":["RadioElement","forwardRef","props","ref","data","trackingId","useTrackingId","CoreRadio","RadioGroup","jsx","CoreRadioGroup","Radio"],"mappings":";;;;AAaA,MAAMA,IAAeC;AAAA,EACnB,CAACC,GAAmBC,MAA+B;AACjD,UAAMC,IAAO;AAAA,MACX,OAAOF,EAAM;AAAA,MACb,WAAWA,EAAM,YAAY;AAAA,MAC7B,gBAAgBA,EAAM,iBAAiB;AAAA,MACvC,MAAMA,EAAM;AAAA,MACZ,OAAOA,EAAM;AAAA,IAAA,GAGTG,IAAaC,EAAc;AAAA,MAC/B,MAAM;AAAA,MACN,MAAAF;AAAA,MACA,aAAa,CAAC,CAACF,EAAM,kBAAkB;AAAA,IAAA,CACxC;AACD,iCAAQK,GAAU,EAAA,KAAAJ,GAAU,oBAAkBE,GAAa,GAAGH,EAAO,CAAA;AAAA,EACvE;AACF,GACaM,IAAaP;AAAA,EACxB,CAACC,GAA4BC,MACnBM,gBAAAA,EAAAA,IAAAC,GAAA,EAAe,KAAAP,GAAW,GAAGD,EAAO,CAAA;AAEhD,GAEaS,IAAQ,OAAO,OAAOX,GAAc;AAAA,EAC/C,OAAOQ;AACT,CAAC;"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
var or=require("./SideNav.css");const Me=require("./_commonjsHelpers-6763f629.cjs"),
|
|
1
|
+
var or=require("./SideNav.css");const Me=require("./_commonjsHelpers-6763f629.cjs"),D=require("./jsx-runtime-944c88e2-2b81c205.cjs"),k=require("react"),re=require("./index-67d20edb.cjs"),$e=require("./useLayoutPropsUtil-e307abc7-3826ee09.cjs"),qe=require("./floating-ui.react-5347095a.cjs"),Ne=require("./Icon-ae9b951b.cjs");function Le(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const o=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(i,s,o.get?o:{enumerable:!0,get:()=>e[s]})}}return i.default=e,Object.freeze(i)}const me=Le(k);function De(e,i){if(e==null)return{};var s={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(i.indexOf(o)>=0)continue;s[o]=e[o]}return s}function fe(){return fe=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var s=arguments[i];for(var o in s)({}).hasOwnProperty.call(s,o)&&(e[o]=s[o])}return e},fe.apply(null,arguments)}function le(e,i){return le=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,o){return s.__proto__=o,s},le(e,i)}function Ye(e,i){e.prototype=Object.create(i.prototype),e.prototype.constructor=e,le(e,i)}var de={exports:{}},ee={exports:{}},O={};/** @license React v16.13.1
|
|
2
2
|
* react-is.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/var ge;function We(){if(ge)return O;ge=1;var e=typeof Symbol=="function"&&Symbol.for,i=e?Symbol.for("react.element"):60103,s=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,g=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,y=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,_=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,w=e?Symbol.for("react.suspense_list"):60120,C=e?Symbol.for("react.memo"):60115,
|
|
8
|
+
*/var ge;function We(){if(ge)return O;ge=1;var e=typeof Symbol=="function"&&Symbol.for,i=e?Symbol.for("react.element"):60103,s=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,g=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,y=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,_=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,w=e?Symbol.for("react.suspense_list"):60120,C=e?Symbol.for("react.memo"):60115,I=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,M=e?Symbol.for("react.fundamental"):60117,N=e?Symbol.for("react.responder"):60118,$=e?Symbol.for("react.scope"):60119;function A(t){if(typeof t=="object"&&t!==null){var Y=t.$$typeof;switch(Y){case i:switch(t=t.type,t){case _:case l:case o:case c:case g:case d:return t;default:switch(t=t&&t.$$typeof,t){case u:case v:case I:case C:case y:return t;default:return Y}}case s:return Y}}}function j(t){return A(t)===l}return O.AsyncMode=_,O.ConcurrentMode=l,O.ContextConsumer=u,O.ContextProvider=y,O.Element=i,O.ForwardRef=v,O.Fragment=o,O.Lazy=I,O.Memo=C,O.Portal=s,O.Profiler=c,O.StrictMode=g,O.Suspense=d,O.isAsyncMode=function(t){return j(t)||A(t)===_},O.isConcurrentMode=j,O.isContextConsumer=function(t){return A(t)===u},O.isContextProvider=function(t){return A(t)===y},O.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===i},O.isForwardRef=function(t){return A(t)===v},O.isFragment=function(t){return A(t)===o},O.isLazy=function(t){return A(t)===I},O.isMemo=function(t){return A(t)===C},O.isPortal=function(t){return A(t)===s},O.isProfiler=function(t){return A(t)===c},O.isStrictMode=function(t){return A(t)===g},O.isSuspense=function(t){return A(t)===d},O.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===o||t===l||t===c||t===g||t===d||t===w||typeof t=="object"&&t!==null&&(t.$$typeof===I||t.$$typeof===C||t.$$typeof===y||t.$$typeof===u||t.$$typeof===v||t.$$typeof===M||t.$$typeof===N||t.$$typeof===$||t.$$typeof===S)},O.typeOf=A,O}var P={};/** @license React v16.13.1
|
|
9
9
|
* react-is.development.js
|
|
10
10
|
*
|
|
11
11
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
12
|
*
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/var _e;function Ue(){return _e||(_e=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,i=e?Symbol.for("react.element"):60103,s=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,g=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,y=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,_=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,w=e?Symbol.for("react.suspense_list"):60120,C=e?Symbol.for("react.memo"):60115,
|
|
15
|
+
*/var _e;function Ue(){return _e||(_e=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,i=e?Symbol.for("react.element"):60103,s=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,g=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,y=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,_=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,v=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,w=e?Symbol.for("react.suspense_list"):60120,C=e?Symbol.for("react.memo"):60115,I=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,M=e?Symbol.for("react.fundamental"):60117,N=e?Symbol.for("react.responder"):60118,$=e?Symbol.for("react.scope"):60119;function A(n){return typeof n=="string"||typeof n=="function"||n===o||n===l||n===c||n===g||n===d||n===w||typeof n=="object"&&n!==null&&(n.$$typeof===I||n.$$typeof===C||n.$$typeof===y||n.$$typeof===u||n.$$typeof===v||n.$$typeof===M||n.$$typeof===N||n.$$typeof===$||n.$$typeof===S)}function j(n){if(typeof n=="object"&&n!==null){var z=n.$$typeof;switch(z){case i:var Q=n.type;switch(Q){case _:case l:case o:case c:case g:case d:return Q;default:var he=Q&&Q.$$typeof;switch(he){case u:case v:case I:case C:case y:return he;default:return z}}case s:return z}}}var t=_,Y=l,J=u,K=y,q=i,W=v,B=o,V=I,X=C,H=s,te=c,U=g,G=d,Z=!1;function ne(n){return Z||(Z=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),r(n)||j(n)===_}function r(n){return j(n)===l}function a(n){return j(n)===u}function m(n){return j(n)===y}function b(n){return typeof n=="object"&&n!==null&&n.$$typeof===i}function f(n){return j(n)===v}function E(n){return j(n)===o}function p(n){return j(n)===I}function h(n){return j(n)===C}function T(n){return j(n)===s}function R(n){return j(n)===c}function x(n){return j(n)===g}function L(n){return j(n)===d}P.AsyncMode=t,P.ConcurrentMode=Y,P.ContextConsumer=J,P.ContextProvider=K,P.Element=q,P.ForwardRef=W,P.Fragment=B,P.Lazy=V,P.Memo=X,P.Portal=H,P.Profiler=te,P.StrictMode=U,P.Suspense=G,P.isAsyncMode=ne,P.isConcurrentMode=r,P.isContextConsumer=a,P.isContextProvider=m,P.isElement=b,P.isForwardRef=f,P.isFragment=E,P.isLazy=p,P.isMemo=h,P.isPortal=T,P.isProfiler=R,P.isStrictMode=x,P.isSuspense=L,P.isValidElementType=A,P.typeOf=j}()),P}var Ee;function Re(){return Ee||(Ee=1,process.env.NODE_ENV==="production"?ee.exports=We():ee.exports=Ue()),ee.exports}/*
|
|
16
16
|
object-assign
|
|
17
17
|
(c) Sindre Sorhus
|
|
18
18
|
@license MIT
|
|
19
|
-
*/var oe,Te;function ze(){if(Te)return oe;Te=1;var e=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;function o(c){if(c==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(c)}function g(){try{if(!Object.assign)return!1;var c=new String("abc");if(c[5]="de",Object.getOwnPropertyNames(c)[0]==="5")return!1;for(var y={},u=0;u<10;u++)y["_"+String.fromCharCode(u)]=u;var _=Object.getOwnPropertyNames(y).map(function(v){return y[v]});if(_.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(v){l[v]=v}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return oe=g()?Object.assign:function(c,y){for(var u,_=o(c),l,v=1;v<arguments.length;v++){u=Object(arguments[v]);for(var d in u)i.call(u,d)&&(_[d]=u[d]);if(e){l=e(u);for(var w=0;w<l.length;w++)s.call(u,l[w])&&(_[l[w]]=u[l[w]])}}return _},oe}var ae,xe;function pe(){if(xe)return ae;xe=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ae=e,ae}var ie,Se;function Ce(){return Se||(Se=1,ie=Function.call.bind(Object.prototype.hasOwnProperty)),ie}var se,Oe;function Fe(){if(Oe)return se;Oe=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var i=pe(),s={},o=Ce();e=function(c){var y="Warning: "+c;typeof console<"u"&&console.error(y);try{throw new Error(y)}catch{}}}function g(c,y,u,_,l){if(process.env.NODE_ENV!=="production"){for(var v in c)if(o(c,v)){var d;try{if(typeof c[v]!="function"){var w=Error((_||"React class")+": "+u+" type `"+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof c[v]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw w.name="Invariant Violation",w}d=c[v](y,v,_,u,null,i)}catch(
|
|
20
|
-
Valid keys: `+JSON.stringify(Object.keys(r),null," "));var n=
|
|
21
|
-
//# sourceMappingURL=SideNav-
|
|
19
|
+
*/var oe,Te;function ze(){if(Te)return oe;Te=1;var e=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;function o(c){if(c==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(c)}function g(){try{if(!Object.assign)return!1;var c=new String("abc");if(c[5]="de",Object.getOwnPropertyNames(c)[0]==="5")return!1;for(var y={},u=0;u<10;u++)y["_"+String.fromCharCode(u)]=u;var _=Object.getOwnPropertyNames(y).map(function(v){return y[v]});if(_.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(v){l[v]=v}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return oe=g()?Object.assign:function(c,y){for(var u,_=o(c),l,v=1;v<arguments.length;v++){u=Object(arguments[v]);for(var d in u)i.call(u,d)&&(_[d]=u[d]);if(e){l=e(u);for(var w=0;w<l.length;w++)s.call(u,l[w])&&(_[l[w]]=u[l[w]])}}return _},oe}var ae,xe;function pe(){if(xe)return ae;xe=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ae=e,ae}var ie,Se;function Ce(){return Se||(Se=1,ie=Function.call.bind(Object.prototype.hasOwnProperty)),ie}var se,Oe;function Fe(){if(Oe)return se;Oe=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var i=pe(),s={},o=Ce();e=function(c){var y="Warning: "+c;typeof console<"u"&&console.error(y);try{throw new Error(y)}catch{}}}function g(c,y,u,_,l){if(process.env.NODE_ENV!=="production"){for(var v in c)if(o(c,v)){var d;try{if(typeof c[v]!="function"){var w=Error((_||"React class")+": "+u+" type `"+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof c[v]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw w.name="Invariant Violation",w}d=c[v](y,v,_,u,null,i)}catch(I){d=I}if(d&&!(d instanceof Error)&&e((_||"React class")+": type specification of "+u+" `"+v+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in s)){s[d.message]=!0;var C=l?l():"";e("Failed "+u+" type: "+d.message+(C??""))}}}}return g.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(s={})},se=g,se}var ce,Pe;function Ke(){if(Pe)return ce;Pe=1;var e=Re(),i=ze(),s=pe(),o=Ce(),g=Fe(),c=function(){};process.env.NODE_ENV!=="production"&&(c=function(u){var _="Warning: "+u;typeof console<"u"&&console.error(_);try{throw new Error(_)}catch{}});function y(){return null}return ce=function(u,_){var l=typeof Symbol=="function"&&Symbol.iterator,v="@@iterator";function d(r){var a=r&&(l&&r[l]||r[v]);if(typeof a=="function")return a}var w="<<anonymous>>",C={array:N("array"),bigint:N("bigint"),bool:N("boolean"),func:N("function"),number:N("number"),object:N("object"),string:N("string"),symbol:N("symbol"),any:$(),arrayOf:A,element:j(),elementType:t(),instanceOf:Y,node:W(),objectOf:K,oneOf:J,oneOfType:q,shape:V,exact:X};function I(r,a){return r===a?r!==0||1/r===1/a:r!==r&&a!==a}function S(r,a){this.message=r,this.data=a&&typeof a=="object"?a:{},this.stack=""}S.prototype=Error.prototype;function M(r){if(process.env.NODE_ENV!=="production")var a={},m=0;function b(E,p,h,T,R,x,L){if(T=T||w,x=x||h,L!==s){if(_){var n=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw n.name="Invariant Violation",n}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var z=T+":"+h;!a[z]&&m<3&&(c("You are manually calling a React.PropTypes validation function for the `"+x+"` prop on `"+T+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),a[z]=!0,m++)}}return p[h]==null?E?p[h]===null?new S("The "+R+" `"+x+"` is marked as required "+("in `"+T+"`, but its value is `null`.")):new S("The "+R+" `"+x+"` is marked as required in "+("`"+T+"`, but its value is `undefined`.")):null:r(p,h,T,R,x)}var f=b.bind(null,!1);return f.isRequired=b.bind(null,!0),f}function N(r){function a(m,b,f,E,p,h){var T=m[b],R=U(T);if(R!==r){var x=G(T);return new S("Invalid "+E+" `"+p+"` of type "+("`"+x+"` supplied to `"+f+"`, expected ")+("`"+r+"`."),{expectedType:r})}return null}return M(a)}function $(){return M(y)}function A(r){function a(m,b,f,E,p){if(typeof r!="function")return new S("Property `"+p+"` of component `"+f+"` has invalid PropType notation inside arrayOf.");var h=m[b];if(!Array.isArray(h)){var T=U(h);return new S("Invalid "+E+" `"+p+"` of type "+("`"+T+"` supplied to `"+f+"`, expected an array."))}for(var R=0;R<h.length;R++){var x=r(h,R,f,E,p+"["+R+"]",s);if(x instanceof Error)return x}return null}return M(a)}function j(){function r(a,m,b,f,E){var p=a[m];if(!u(p)){var h=U(p);return new S("Invalid "+f+" `"+E+"` of type "+("`"+h+"` supplied to `"+b+"`, expected a single ReactElement."))}return null}return M(r)}function t(){function r(a,m,b,f,E){var p=a[m];if(!e.isValidElementType(p)){var h=U(p);return new S("Invalid "+f+" `"+E+"` of type "+("`"+h+"` supplied to `"+b+"`, expected a single ReactElement type."))}return null}return M(r)}function Y(r){function a(m,b,f,E,p){if(!(m[b]instanceof r)){var h=r.name||w,T=ne(m[b]);return new S("Invalid "+E+" `"+p+"` of type "+("`"+T+"` supplied to `"+f+"`, expected ")+("instance of `"+h+"`."))}return null}return M(a)}function J(r){if(!Array.isArray(r))return process.env.NODE_ENV!=="production"&&(arguments.length>1?c("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):c("Invalid argument supplied to oneOf, expected an array.")),y;function a(m,b,f,E,p){for(var h=m[b],T=0;T<r.length;T++)if(I(h,r[T]))return null;var R=JSON.stringify(r,function(L,n){var z=G(n);return z==="symbol"?String(n):n});return new S("Invalid "+E+" `"+p+"` of value `"+String(h)+"` "+("supplied to `"+f+"`, expected one of "+R+"."))}return M(a)}function K(r){function a(m,b,f,E,p){if(typeof r!="function")return new S("Property `"+p+"` of component `"+f+"` has invalid PropType notation inside objectOf.");var h=m[b],T=U(h);if(T!=="object")return new S("Invalid "+E+" `"+p+"` of type "+("`"+T+"` supplied to `"+f+"`, expected an object."));for(var R in h)if(o(h,R)){var x=r(h,R,f,E,p+"."+R,s);if(x instanceof Error)return x}return null}return M(a)}function q(r){if(!Array.isArray(r))return process.env.NODE_ENV!=="production"&&c("Invalid argument supplied to oneOfType, expected an instance of array."),y;for(var a=0;a<r.length;a++){var m=r[a];if(typeof m!="function")return c("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Z(m)+" at index "+a+"."),y}function b(f,E,p,h,T){for(var R=[],x=0;x<r.length;x++){var L=r[x],n=L(f,E,p,h,T,s);if(n==null)return null;n.data&&o(n.data,"expectedType")&&R.push(n.data.expectedType)}var z=R.length>0?", expected one of type ["+R.join(", ")+"]":"";return new S("Invalid "+h+" `"+T+"` supplied to "+("`"+p+"`"+z+"."))}return M(b)}function W(){function r(a,m,b,f,E){return H(a[m])?null:new S("Invalid "+f+" `"+E+"` supplied to "+("`"+b+"`, expected a ReactNode."))}return M(r)}function B(r,a,m,b,f){return new S((r||"React class")+": "+a+" type `"+m+"."+b+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+f+"`.")}function V(r){function a(m,b,f,E,p){var h=m[b],T=U(h);if(T!=="object")return new S("Invalid "+E+" `"+p+"` of type `"+T+"` "+("supplied to `"+f+"`, expected `object`."));for(var R in r){var x=r[R];if(typeof x!="function")return B(f,E,p,R,G(x));var L=x(h,R,f,E,p+"."+R,s);if(L)return L}return null}return M(a)}function X(r){function a(m,b,f,E,p){var h=m[b],T=U(h);if(T!=="object")return new S("Invalid "+E+" `"+p+"` of type `"+T+"` "+("supplied to `"+f+"`, expected `object`."));var R=i({},m[b],r);for(var x in R){var L=r[x];if(o(r,x)&&typeof L!="function")return B(f,E,p,x,G(L));if(!L)return new S("Invalid "+E+" `"+p+"` key `"+x+"` supplied to `"+f+"`.\nBad object: "+JSON.stringify(m[b],null," ")+`
|
|
20
|
+
Valid keys: `+JSON.stringify(Object.keys(r),null," "));var n=L(h,x,f,E,p+"."+x,s);if(n)return n}return null}return M(a)}function H(r){switch(typeof r){case"number":case"string":case"undefined":return!0;case"boolean":return!r;case"object":if(Array.isArray(r))return r.every(H);if(r===null||u(r))return!0;var a=d(r);if(a){var m=a.call(r),b;if(a!==r.entries){for(;!(b=m.next()).done;)if(!H(b.value))return!1}else for(;!(b=m.next()).done;){var f=b.value;if(f&&!H(f[1]))return!1}}else return!1;return!0;default:return!1}}function te(r,a){return r==="symbol"?!0:a?a["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&a instanceof Symbol:!1}function U(r){var a=typeof r;return Array.isArray(r)?"array":r instanceof RegExp?"object":te(a,r)?"symbol":a}function G(r){if(typeof r>"u"||r===null)return""+r;var a=U(r);if(a==="object"){if(r instanceof Date)return"date";if(r instanceof RegExp)return"regexp"}return a}function Z(r){var a=G(r);switch(a){case"array":case"object":return"an "+a;case"boolean":case"date":case"regexp":return"a "+a;default:return a}}function ne(r){return!r.constructor||!r.constructor.name?w:r.constructor.name}return C.checkPropTypes=g,C.resetWarningCache=g.resetWarningCache,C.PropTypes=C,C},ce}var ue,we;function Be(){if(we)return ue;we=1;var e=pe();function i(){}function s(){}return s.resetWarningCache=i,ue=function(){function o(y,u,_,l,v,d){if(d!==e){var w=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw w.name="Invariant Violation",w}}o.isRequired=o;function g(){return o}var c={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:g,element:o,elementType:o,instanceOf:g,node:o,objectOf:g,oneOf:g,oneOfType:g,shape:g,exact:g,checkPropTypes:s,resetWarningCache:i};return c.PropTypes=c,c},ue}if(process.env.NODE_ENV!=="production"){var Ge=Re(),Ve=!0;de.exports=Ke()(Ge.isElement,Ve)}else de.exports=Be()();var He=de.exports;const Je=Me.getDefaultExportFromCjs(He);const Xe="_sidenav_12xoe_4",Ze="_root_12xoe_5",Qe="_group_12xoe_9",er="_arrow_12xoe_58",rr="_disabled_12xoe_88",F={sidenav:Xe,root:Ze,"sidenav-group":"_sidenav-group_12xoe_6","sidenav-link":"_sidenav-link_12xoe_7","sidenav-collapsible":"_sidenav-collapsible_12xoe_8",group:Qe,"group-label":"_group-label_12xoe_32",arrow:er,disabled:rr,"not-collapsible":"_not-collapsible_12xoe_110","has-indicator":"_has-indicator_12xoe_118"},Ae=(e,i,s)=>{const o=Array.prototype.indexOf.call(i,s.current);switch(e.key){case"ArrowDown":if(!i)return;if(i[o].setAttribute("tabindex","-1"),o===i.length-1){i[0].setAttribute("tabindex","0"),i[0].focus();break}i[o+1].setAttribute("tabindex","0"),i[o+1].focus();break;case"ArrowUp":if(!i)return;if(i[o].setAttribute("tabindex","-1"),o===0){i[i.length-1].setAttribute("tabindex","0"),i[i.length-1].focus();break}i[o-1].setAttribute("tabindex","0"),i[o-1].focus();break}},ye=k.forwardRef((e,i)=>{const{className:s,children:o,href:g,id:c,active:y,onClick:u,onKeyDown:_,onKeyUp:l,style:v,disabled:d,...w}=e,{links:C}=ke(),I=k.useRef(null);function S($){Ae($,C,I),_==null||_($,c)}function M($){d||(($.code==="Space"||$.code==="Enter")&&($.preventDefault(),u&&$.currentTarget.click()),l==null||l($,c))}function N($){var A,j;if(d)return;const t=Array.prototype.slice.call(C).filter(Y=>Y.tabIndex===0)[0];t&&t.setAttribute("tabindex","-1"),(A=I.current)==null||A.setAttribute("tabindex","0"),(j=I.current)==null||j.focus(),u==null||u($,c)}return D.fr.jsx("li",{className:s,"data-anv":"SideNavLink",style:v,ref:i,children:D.fr.jsx("a",{className:F["sidenav-link"],"aria-current":y?"page":void 0,href:g,ref:I,onClick:N,onKeyDown:S,onKeyUp:M,id:c,"aria-disabled":d,tabIndex:y?0:-1,...w,children:o})})});ye.displayName="SideNavLink";const tr=e=>me.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e},me.createElement("path",{d:"M8.12 9.29 12 13.17l3.88-3.88a.996.996 0 1 1 1.41 1.41l-4.59 4.59a.996.996 0 0 1-1.41 0L6.7 10.7a.996.996 0 0 1 0-1.41c.39-.38 1.03-.39 1.42 0z"})),ve=k.forwardRef((e,i)=>{var s;const{className:o,children:g,label:c,onClick:y,onKeyDown:u,defaultExpanded:_=!1,expanded:l,...v}=e,[d,w]=k.useState(_),[C,I]=k.useState(!1),S=k.useRef(null),M=k.useRef(null),N=re.cx(F["sidenav-collapsible"],o),{links:$,reCalculateLinks:A}=ke(),j=k.useId(),t=q=>{l===void 0&&w(W=>q!==void 0?q:!W)};k.useEffect(()=>{l!==void 0&&w(l)},[l]);function Y(q){var W,B;t(),setTimeout(()=>A(),0);const V=Array.prototype.slice.call($).filter(X=>X.tabIndex===0)[0];V&&V.setAttribute("tabindex","-1"),(W=S.current)==null||W.setAttribute("tabindex","0"),(B=S.current)==null||B.focus(),y==null||y(q)}function J(q){switch(Ae(q,$,S),q.key){case"ArrowRight":w(!0),setTimeout(()=>A(),0);break;case"ArrowLeft":w(!1),setTimeout(()=>A(),0);break}u==null||u(q)}const K=(s=k.Children.map(g,q=>q.props))==null?void 0:s.some(q=>q.active===!0);return k.useLayoutEffect(()=>{K&&(t(!0),setTimeout(()=>{var q;const W=(q=M.current)==null?void 0:q.querySelector("[active='true']");W==null||W.setAttribute("tabindex","0"),A()},0))},[]),k.useEffect(()=>{if(!K){I(!1);return}I(!0)},[K]),D.fr.jsxs("li",{ref:i,"data-anv":"SideNavCollapsible",...v,className:N,children:[D.fr.jsxs("button",{"aria-expanded":d,"aria-controls":j,type:"button",tabIndex:-1,onClick:Y,ref:S,className:re.cx(F["sidenav-link"],{[F["has-indicator"]]:C&&!d}),onKeyDown:J,children:[c,D.fr.jsx(Ne.I,{className:F.arrow,inherit:!0,svg:tr,"aria-hidden":!0})]}),d?D.fr.jsx("ul",{id:j,ref:M,className:F.group,children:g}):null]})});ve.displayName="SideNavCollapsible";const be=k.forwardRef((e,i)=>{const{children:s,label:o,...g}=e,c=re.cx(F["sidenav-group"]),y=k.useId();return D.fr.jsxs("li",{ref:i,"data-anv":"SideNavGroup",...g,children:[D.fr.jsx("label",{id:y,className:F["group-label"],children:o}),D.fr.jsx("ul",{"aria-labelledby":y,className:c,children:s})]})});be.displayName="SideNavGroup";const je=k.createContext(null),Ie=k.forwardRef((e,i)=>{const{layoutStyles:s,componentProps:o}=$e.J(e),{className:g,children:c,style:y,...u}=o,_=k.useRef(null),[l,v]=k.useState(),d={...y,...s};function w(){if(_.current){const S=_.current.querySelectorAll("li[data-anv='SideNavLink'] a:not([aria-disabled='true']), li[data-anv='SideNavCollapsible'] button[aria-expanded]:not([aria-disabled='true'])");v(S)}}k.useEffect(()=>{w()},[]);const C=re.cx([F.sidenav],g),I=k.useMemo(()=>({links:l,reCalculateLinks:w}),[l]);return D.fr.jsx(je.Provider,{value:I,children:D.fr.jsx("nav",{ref:qe.useMergeRefs([_,i]),className:C,style:d,"data-anv":"SideNav",...u,children:D.fr.jsx("ul",{className:F.root,children:c})})})}),ke=()=>{const e=k.useContext(je);if(e==null)throw new Error("useSideNav must be wrapped in <SideNav />");return e};Ie.displayName="SideNav";const nr=Object.assign(Ie,{Link:ye,Collapsible:ve,Group:be});exports.M=ye;exports.O=ve;exports.P=be;exports.PropTypes=Je;exports._extends=fe;exports._inheritsLoose=Ye;exports._objectWithoutPropertiesLoose=De;exports.fe=nr;
|
|
21
|
+
//# sourceMappingURL=SideNav-6de704fd.cjs.map
|