@servicetitan/anvil2 1.40.3 → 1.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/dist/{Calendar-KVYGk3wS-CEptqxjI.js → Calendar-CNrdcd3f-BAKv-Gz3.js} +6 -4
- package/dist/{Calendar-KVYGk3wS-CEptqxjI.js.map → Calendar-CNrdcd3f-BAKv-Gz3.js.map} +1 -1
- package/dist/{Calendar-2q8zRbMK.js → Calendar-MIwfKzm7.js} +2 -2
- package/dist/{Calendar-2q8zRbMK.js.map → Calendar-MIwfKzm7.js.map} +1 -1
- package/dist/Calendar.js +1 -1
- package/dist/{Checkbox-cfgZP7Z2.js → Checkbox-IPM-sdvR.js} +2 -2
- package/dist/{Checkbox-cfgZP7Z2.js.map → Checkbox-IPM-sdvR.js.map} +1 -1
- package/dist/{Checkbox-Qucv_PK8-Bovwdnlj.js → Checkbox-JWDraGFN--7ptfLKN.js} +2 -2
- package/dist/{Checkbox-Qucv_PK8-Bovwdnlj.js.map → Checkbox-JWDraGFN--7ptfLKN.js.map} +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/{Combobox-3l2SK47T.js → Combobox-CM8DmNMs.js} +4 -4
- package/dist/{Combobox-3l2SK47T.js.map → Combobox-CM8DmNMs.js.map} +1 -1
- package/dist/Combobox.js +1 -1
- package/dist/{DateField-BQFAvS78.js → DateField-BDJEsVc1.js} +8 -8
- package/dist/{DateField-BQFAvS78.js.map → DateField-BDJEsVc1.js.map} +1 -1
- package/dist/DateField.js +1 -1
- package/dist/{DateFieldRange-CGA5ZTRa.js → DateFieldRange-BTq6MrNu.js} +2 -2
- package/dist/DateFieldRange-BTq6MrNu.js.map +1 -0
- package/dist/DateFieldRange.js +1 -1
- package/dist/{DateFieldSingle-eP5l_TrQ.js → DateFieldSingle-CaeOLrI4.js} +2 -2
- package/dist/DateFieldSingle-CaeOLrI4.js.map +1 -0
- package/dist/DateFieldSingle.js +1 -1
- package/dist/{DateFieldRange-BRjBcR4r-CfuSiOfZ.js → DateFieldYearless-CJP3H_Dg-BV5wGJp1.js} +257 -17
- package/dist/DateFieldYearless-CJP3H_Dg-BV5wGJp1.js.map +1 -0
- package/dist/DateFieldYearless-CbFo3oyZ.js +22 -0
- package/dist/DateFieldYearless-CbFo3oyZ.js.map +1 -0
- package/dist/DateFieldYearless.d.ts +2 -0
- package/dist/DateFieldYearless.js +2 -0
- package/dist/DateFieldYearless.js.map +1 -0
- package/dist/{DaysOfTheWeek-Dl31wkmU.js → DaysOfTheWeek-8zaAuw55.js} +2 -2
- package/dist/{DaysOfTheWeek-Dl31wkmU.js.map → DaysOfTheWeek-8zaAuw55.js.map} +1 -1
- package/dist/DaysOfTheWeek.js +1 -1
- package/dist/{Dialog-CJZEBa5r.js → Dialog-DnZE02ob.js} +9 -5
- package/dist/Dialog-DnZE02ob.js.map +1 -0
- package/dist/Dialog.js +1 -1
- package/dist/{Drawer-Cj3nJc4k.js → Drawer-5kgL0gY9.js} +2 -2
- package/dist/{Drawer-Cj3nJc4k.js.map → Drawer-5kgL0gY9.js.map} +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/FieldLabel-D5rNXy6h.js +13 -0
- package/dist/FieldLabel-D5rNXy6h.js.map +1 -0
- package/dist/FieldLabel.d.ts +6 -0
- package/dist/FieldLabel.js +2 -0
- package/dist/FieldLabel.js.map +1 -0
- package/dist/{InputMask-BdLGTTAk.js → InputMask-B6kMdXCB.js} +2 -2
- package/dist/{InputMask-BdLGTTAk.js.map → InputMask-B6kMdXCB.js.map} +1 -1
- package/dist/{InputMask-Hn-xudp1-BKhtZ7Zk.js → InputMask-BLZh7hka-CTcRCY2k.js} +2 -2
- package/dist/{InputMask-Hn-xudp1-BKhtZ7Zk.js.map → InputMask-BLZh7hka-CTcRCY2k.js.map} +1 -1
- package/dist/InputMask.js +1 -1
- package/dist/{ListView-_YFTewqc.js → ListView-cMMBtp1O.js} +3 -3
- package/dist/{ListView-_YFTewqc.js.map → ListView-cMMBtp1O.js.map} +1 -1
- package/dist/ListView.js +1 -1
- package/dist/{Menu-CffX1bPZ-BeEOvryY.js → Menu-CAiyc2zk-rxU7H28t.js} +3 -3
- package/dist/{Menu-CffX1bPZ-BeEOvryY.js.map → Menu-CAiyc2zk-rxU7H28t.js.map} +1 -1
- package/dist/{Menu-1EwVMNIw.js → Menu-Dk3ESnzI.js} +2 -2
- package/dist/{Menu-1EwVMNIw.js.map → Menu-Dk3ESnzI.js.map} +1 -1
- package/dist/Menu.js +1 -1
- package/dist/{Page-BikjTlTM.js → Page-DWeD3rrr.js} +5 -5
- package/dist/{Page-BikjTlTM.js.map → Page-DWeD3rrr.js.map} +1 -1
- package/dist/Page.js +1 -1
- package/dist/Pagination.js +1 -1
- package/dist/Pagination.js.map +1 -1
- package/dist/{Popover-rB4BVx-A.js → Popover-2O1Q-34V.js} +2 -2
- package/dist/{Popover-rB4BVx-A.js.map → Popover-2O1Q-34V.js.map} +1 -1
- package/dist/{Popover-jcmNuir0-DjlCqU1z.js → Popover-DvLcjLjG-Yu5STx-v.js} +77 -14
- package/dist/Popover-DvLcjLjG-Yu5STx-v.js.map +1 -0
- package/dist/Popover.js +1 -1
- package/dist/{ProgressBar-CzXzPpIX-Clg1J71o.js → ProgressBar-BezETeA3-CeeedJ_w.js} +49 -15
- package/dist/ProgressBar-BezETeA3-CeeedJ_w.js.map +1 -0
- package/dist/{ProgressBar-BL34rg_J.js → ProgressBar-CfstmN5D.js} +2 -2
- package/dist/{ProgressBar-BL34rg_J.js.map → ProgressBar-CfstmN5D.js.map} +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/{Radio-BnOSIK1U-1MmGQFPi.js → Radio-8E1l0DJa-CLVaSyQc.js} +3 -3
- package/dist/{Radio-BnOSIK1U-1MmGQFPi.js.map → Radio-8E1l0DJa-CLVaSyQc.js.map} +1 -1
- package/dist/{Radio-BzZUxQa6.js → Radio-P6dkI3W0.js} +2 -2
- package/dist/{Radio-BzZUxQa6.js.map → Radio-P6dkI3W0.js.map} +1 -1
- package/dist/Radio.js +1 -1
- package/dist/{SelectCard-ynL5QcZD-BtBzMtyR.js → SelectCard-m61WUlo--DlByowef.js} +4 -4
- package/dist/{SelectCard-ynL5QcZD-BtBzMtyR.js.map → SelectCard-m61WUlo--DlByowef.js.map} +1 -1
- package/dist/SelectCard.js +1 -1
- package/dist/{SelectCardGroup-D6GuJJB2.js → SelectCardGroup-DIaWX2Vp.js} +2 -2
- package/dist/{SelectCardGroup-D6GuJJB2.js.map → SelectCardGroup-DIaWX2Vp.js.map} +1 -1
- package/dist/{SelectTrigger-Bo2VPAD0.js → SelectTrigger-DKh0Bzy6.js} +2 -2
- package/dist/{SelectTrigger-Bo2VPAD0.js.map → SelectTrigger-DKh0Bzy6.js.map} +1 -1
- package/dist/SelectTrigger.js +1 -1
- package/dist/{SelectTriggerBase-BGHwx0mN-B3HiW5tQ.js → SelectTriggerBase-DnRvuD3R-CTFWVZhY.js} +3 -3
- package/dist/{SelectTriggerBase-BGHwx0mN-B3HiW5tQ.js.map → SelectTriggerBase-DnRvuD3R-CTFWVZhY.js.map} +1 -1
- package/dist/{TextField-COXABNrR.js → TextField--tytNBLh.js} +2 -2
- package/dist/{TextField-COXABNrR.js.map → TextField--tytNBLh.js.map} +1 -1
- package/dist/{TextField-BIeCvDD--C7yp05g5.js → TextField-D_fqJf85-Bcd6rWv4.js} +2 -2
- package/dist/{TextField-BIeCvDD--C7yp05g5.js.map → TextField-D_fqJf85-Bcd6rWv4.js.map} +1 -1
- package/dist/TextField.js +1 -1
- package/dist/{Textarea-D6K3Jc5_.js → Textarea-B0nZ9vOV.js} +2 -2
- package/dist/{Textarea-D6K3Jc5_.js.map → Textarea-B0nZ9vOV.js.map} +1 -1
- package/dist/Textarea.js +1 -1
- package/dist/Toast.js +1 -1
- package/dist/{Toolbar-CLsgDAKk.js → Toolbar-BM78DEEM.js} +3 -3
- package/dist/{Toolbar-CLsgDAKk.js.map → Toolbar-BM78DEEM.js.map} +1 -1
- package/dist/Toolbar.js +1 -1
- package/dist/{Tooltip-B_swJyoW.js → Tooltip-ZFFXA77Y.js} +2 -2
- package/dist/{Tooltip-B_swJyoW.js.map → Tooltip-ZFFXA77Y.js.map} +1 -1
- package/dist/Tooltip.js +1 -1
- package/dist/components/DateFieldRange/DateFieldRange.d.ts +4 -1
- package/dist/components/DateFieldRange/index.d.ts +1 -2
- package/dist/components/DateFieldSingle/DateFieldSingle.d.ts +3 -1
- package/dist/components/DateFieldSingle/index.d.ts +1 -2
- package/dist/components/DateFieldYearless/DateFieldYearless.d.ts +62 -0
- package/dist/components/DateFieldYearless/index.d.ts +1 -0
- package/dist/components/Dialog/Dialog.d.ts +1 -1
- package/dist/components/Drawer/Drawer.d.ts +1 -1
- package/dist/components/FieldLabel/FieldLabel.d.ts +8 -0
- package/dist/components/FieldLabel/index.d.ts +2 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/index.js +25 -23
- package/dist/index.js.map +1 -1
- package/dist/{toast-CJSBieY0.js → toast-uADTqqrS.js} +2 -2
- package/dist/{toast-CJSBieY0.js.map → toast-uADTqqrS.js.map} +1 -1
- package/package.json +3 -3
- package/dist/DateFieldRange-BRjBcR4r-CfuSiOfZ.js.map +0 -1
- package/dist/DateFieldRange-CGA5ZTRa.js.map +0 -1
- package/dist/DateFieldSingle-eP5l_TrQ.js.map +0 -1
- package/dist/Dialog-CJZEBa5r.js.map +0 -1
- package/dist/Popover-jcmNuir0-DjlCqU1z.js.map +0 -1
- package/dist/ProgressBar-CzXzPpIX-Clg1J71o.js.map +0 -1
- /package/dist/{Calendar-KVYGk3wS.css → Calendar-CNrdcd3f.css} +0 -0
- /package/dist/{Menu-CffX1bPZ.css → Menu-CAiyc2zk.css} +0 -0
- /package/dist/{Popover-jcmNuir0.css → Popover-DvLcjLjG.css} +0 -0
- /package/dist/{ProgressBar-CzXzPpIX.css → ProgressBar-BezETeA3.css} +0 -0
- /package/dist/{Radio-BnOSIK1U.css → Radio-8E1l0DJa.css} +0 -0
- /package/dist/{SelectCard-ynL5QcZD.css → SelectCard-m61WUlo-.css} +0 -0
- /package/dist/{SelectTriggerBase-BGHwx0mN.css → SelectTriggerBase-DnRvuD3R.css} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { forwardRef, useRef, useContext, createContext, useMemo, useState, useLayoutEffect, useId, useCallback, useEffect } from 'react';
|
|
3
|
-
import { i as DialogContext, p as DrawerContext, s as supportsPopover, u as useKeyboardFocusables, q as safeShowPopover, r as safeHidePopover, l as useOnClickOutside } from './ProgressBar-
|
|
3
|
+
import { i as DialogContext, p as DrawerContext, s as supportsPopover, u as useKeyboardFocusables, q as safeShowPopover, r as safeHidePopover, l as useOnClickOutside, v as useOpenCloseTransitionStates } from './ProgressBar-BezETeA3-CeeedJ_w.js';
|
|
4
4
|
import { B as Button } from './Button-BaHFf1AT-BQy-PFB5.js';
|
|
5
5
|
import { F as FloatingPortal, a as FloatingFocusManager, b as FloatingArrow, c as useFloating, o as offset, s as size, f as flip, d as shift, e as arrow$1, l as limitShift, g as useClick, h as useHover, i as safePolygon, j as useDismiss, k as useRole, m as useInteractions, n as autoUpdate, p as computePosition } from './floating-ui.react-BFNinq1w.js';
|
|
6
6
|
import { u as useMergeRefs } from './useMergeRefs-Bde85AWI-Bde85AWI.js';
|
|
@@ -8,7 +8,7 @@ import { c as cx } from './index-tZvMCc77.js';
|
|
|
8
8
|
import { a as PortalProviderContext } from './PortalProvider-9lXkQ0xY-BKoGegS1.js';
|
|
9
9
|
import { T as ThemeProvider, a as ThemeProviderContext } from './ThemeProvider-CR67FJg0-DYVRlJRA.js';
|
|
10
10
|
|
|
11
|
-
import './Popover-
|
|
11
|
+
import './Popover-DvLcjLjG.css';function usePopoverLegacy({
|
|
12
12
|
defaultOpen,
|
|
13
13
|
placement = "bottom",
|
|
14
14
|
modal,
|
|
@@ -556,13 +556,13 @@ const PopoverClose = forwardRef(
|
|
|
556
556
|
...rest,
|
|
557
557
|
onClick: (event) => {
|
|
558
558
|
onClick?.(event);
|
|
559
|
-
if (
|
|
560
|
-
context?.popover.close();
|
|
561
|
-
} else {
|
|
559
|
+
if (context?.controlled) {
|
|
562
560
|
setTimeout(() => {
|
|
563
561
|
context?.onClose?.();
|
|
564
562
|
}, 100);
|
|
563
|
+
return;
|
|
565
564
|
}
|
|
565
|
+
context?.popover.close();
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
568
|
);
|
|
@@ -621,15 +621,36 @@ const PopoverContent = forwardRef(
|
|
|
621
621
|
};
|
|
622
622
|
const onBlurHandler = (e) => {
|
|
623
623
|
onBlur?.(e);
|
|
624
|
-
if (context?.controlled || context?.disableCloseOnClickOutside) return;
|
|
625
|
-
context?.popover.close();
|
|
626
624
|
};
|
|
627
625
|
const onKeyDownHandler = (e) => {
|
|
628
626
|
onKeyDown?.(e);
|
|
629
627
|
if (e.code === "Escape" && !context?.disableCloseOnEscape) {
|
|
630
628
|
context?.popover.close();
|
|
631
629
|
}
|
|
632
|
-
if (!context?.modal)
|
|
630
|
+
if (!context?.modal) {
|
|
631
|
+
if (context?.controlled) {
|
|
632
|
+
return;
|
|
633
|
+
}
|
|
634
|
+
if (e.code === "Tab" && !e.shiftKey) {
|
|
635
|
+
if (focusables && compareElements(
|
|
636
|
+
context.rootNode?.activeElement,
|
|
637
|
+
focusables[focusables.length - 1],
|
|
638
|
+
["tabindex"]
|
|
639
|
+
)) {
|
|
640
|
+
context.popover.close();
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
if (e.code === "Tab" && e.shiftKey) {
|
|
644
|
+
if (focusables && compareElements(
|
|
645
|
+
context.rootNode.activeElement,
|
|
646
|
+
focusables[0],
|
|
647
|
+
["tabindex"]
|
|
648
|
+
)) {
|
|
649
|
+
context.popover.close();
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
return;
|
|
653
|
+
}
|
|
633
654
|
if (e.code === "Tab" && !e.shiftKey) {
|
|
634
655
|
if (focusables && compareElements(
|
|
635
656
|
context.rootNode?.activeElement,
|
|
@@ -722,6 +743,26 @@ function PopoverTrigger(props) {
|
|
|
722
743
|
return children({ "data-test": "hello", ...rest });
|
|
723
744
|
}
|
|
724
745
|
|
|
746
|
+
const usePopoverTransitionStates = (popover, openProp, options = {}) => {
|
|
747
|
+
const { onOpenAnimationStart, onCloseAnimationComplete } = options;
|
|
748
|
+
return useOpenCloseTransitionStates(openProp, {
|
|
749
|
+
...options,
|
|
750
|
+
onOpenAnimationStart: () => {
|
|
751
|
+
if (!popover) return;
|
|
752
|
+
onOpenAnimationStart?.();
|
|
753
|
+
},
|
|
754
|
+
onCloseAnimationComplete: () => {
|
|
755
|
+
if (!popover) return;
|
|
756
|
+
onCloseAnimationComplete?.();
|
|
757
|
+
},
|
|
758
|
+
durationMs: () => {
|
|
759
|
+
if (!popover) return 0;
|
|
760
|
+
const duration = window.getComputedStyle(popover).animationDuration;
|
|
761
|
+
return parseFloat(duration) * 1e3;
|
|
762
|
+
}
|
|
763
|
+
});
|
|
764
|
+
};
|
|
765
|
+
|
|
725
766
|
const PopoverElement = (props) => {
|
|
726
767
|
const {
|
|
727
768
|
children,
|
|
@@ -747,9 +788,14 @@ const PopoverElement = (props) => {
|
|
|
747
788
|
disableTriggerFocus,
|
|
748
789
|
modal,
|
|
749
790
|
noPadding,
|
|
791
|
+
onOpenChange,
|
|
750
792
|
onOutsidePress,
|
|
751
793
|
onClickOutside,
|
|
752
|
-
onClose
|
|
794
|
+
onClose,
|
|
795
|
+
onOpenAnimationStart,
|
|
796
|
+
onOpenAnimationComplete,
|
|
797
|
+
onCloseAnimationStart,
|
|
798
|
+
onCloseAnimationComplete
|
|
753
799
|
} = props;
|
|
754
800
|
const uid = useId();
|
|
755
801
|
const [invoker, setInvoker] = useState(void 0);
|
|
@@ -762,6 +808,20 @@ const PopoverElement = (props) => {
|
|
|
762
808
|
const arrowRef = useRef(null);
|
|
763
809
|
const dialogContext = useContext(DialogContext);
|
|
764
810
|
const processMinHeight = typeof minHeight === "string" ? minHeight : `${minHeight}px`;
|
|
811
|
+
usePopoverTransitionStates(popover, openState, {
|
|
812
|
+
onOpenAnimationStart: useCallback(() => {
|
|
813
|
+
onOpenAnimationStart?.();
|
|
814
|
+
}, [onOpenAnimationStart]),
|
|
815
|
+
onOpenAnimationComplete: useCallback(() => {
|
|
816
|
+
onOpenAnimationComplete?.();
|
|
817
|
+
}, [onOpenAnimationComplete]),
|
|
818
|
+
onCloseAnimationStart: useCallback(() => {
|
|
819
|
+
onCloseAnimationStart?.();
|
|
820
|
+
}, [onCloseAnimationStart]),
|
|
821
|
+
onCloseAnimationComplete: useCallback(() => {
|
|
822
|
+
onCloseAnimationComplete?.();
|
|
823
|
+
}, [onCloseAnimationComplete])
|
|
824
|
+
});
|
|
765
825
|
const updatePosition = useCallback(() => {
|
|
766
826
|
if (!invoker || !popover) return;
|
|
767
827
|
if (!openState) return;
|
|
@@ -889,6 +949,7 @@ const PopoverElement = (props) => {
|
|
|
889
949
|
openTimeoutRef.current = setTimeout(() => {
|
|
890
950
|
safeShowPopover(popover);
|
|
891
951
|
setOpenState(true);
|
|
952
|
+
onOpenChange?.(true);
|
|
892
953
|
dialogContext?.setHasOpenPopover?.(true);
|
|
893
954
|
}, delay);
|
|
894
955
|
}, [popover, rootNode, popoverId, delay, dialogContext]);
|
|
@@ -900,22 +961,23 @@ const PopoverElement = (props) => {
|
|
|
900
961
|
closeTimeoutRef.current = setTimeout(() => {
|
|
901
962
|
if (!openOnHover) onClose?.();
|
|
902
963
|
setOpenState(false);
|
|
964
|
+
onOpenChange?.(false);
|
|
903
965
|
fn?.();
|
|
904
966
|
safeHidePopover(popover);
|
|
905
967
|
dialogContext?.setHasOpenPopover?.(false);
|
|
906
968
|
}, 100);
|
|
907
969
|
},
|
|
908
|
-
|
|
970
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps -- onClose and onOpenChange are intentionally omitted to prevent the closePopover function from being recreated on every render, which could cause unnecessary re-runs of the controlled useEffect and potential infinite loops
|
|
971
|
+
[popover, openState, openOnHover, dialogContext]
|
|
909
972
|
);
|
|
910
973
|
const initialRender = useRef(true);
|
|
911
974
|
useEffect(() => {
|
|
912
|
-
if (openState) openPopover();
|
|
913
975
|
if (initialRender.current === true) {
|
|
914
976
|
if (openState) openPopover();
|
|
915
977
|
initialRender.current = false;
|
|
916
978
|
return;
|
|
917
979
|
}
|
|
918
|
-
}, [
|
|
980
|
+
}, [openState, openPopover]);
|
|
919
981
|
useEffect(() => {
|
|
920
982
|
if (typeof open === "undefined") return;
|
|
921
983
|
if (open) {
|
|
@@ -923,7 +985,7 @@ const PopoverElement = (props) => {
|
|
|
923
985
|
} else {
|
|
924
986
|
closePopover();
|
|
925
987
|
}
|
|
926
|
-
}, [
|
|
988
|
+
}, [open, openPopover, closePopover]);
|
|
927
989
|
useOnClickOutside({
|
|
928
990
|
onOutsidePress: (e) => {
|
|
929
991
|
if (!open) return;
|
|
@@ -983,6 +1045,7 @@ const PopoverElement = (props) => {
|
|
|
983
1045
|
onClose,
|
|
984
1046
|
openOnHover,
|
|
985
1047
|
openState,
|
|
1048
|
+
setOpenState,
|
|
986
1049
|
disableCloseOnClickOutside,
|
|
987
1050
|
fillAvailableHeight,
|
|
988
1051
|
maxHeight,
|
|
@@ -1085,4 +1148,4 @@ const Popover = Object.assign(PopoverElement, {
|
|
|
1085
1148
|
});
|
|
1086
1149
|
|
|
1087
1150
|
export { PopoverTrigger as P, PopoverContent as a, PopoverClose as b, PopoverButton as c, Popover as d, PopoverLegacy as e, usePopoverContext as f, usePopoverLegacyContext as u };
|
|
1088
|
-
//# sourceMappingURL=Popover-
|
|
1151
|
+
//# sourceMappingURL=Popover-DvLcjLjG-Yu5STx-v.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popover-DvLcjLjG-Yu5STx-v.js","sources":["../../hammer-react/dist/PopoverLegacy-BCELChsy.js","../../hammer-react/dist/Popover-DvLcjLjG.js"],"sourcesContent":["import { jsx, jsxs } from 'react/jsx-runtime';\nimport { useState, useRef, useMemo, useContext, createContext, forwardRef } from 'react';\nimport { useFloating, offset, size, flip, shift, arrow, autoUpdate, limitShift, useClick, useHover, safePolygon, useDismiss, useRole, useInteractions, FloatingPortal, FloatingFocusManager, FloatingArrow } from '@floating-ui/react';\nimport { u as useMergeRefs } from './useMergeRefs-Bde85AWI.js';\nimport { D as DialogContext, b as DrawerContext } from './ProgressBar-BezETeA3.js';\nimport cx from 'classnames';\nimport { P as PortalProviderContext } from './PortalProvider-9lXkQ0xY.js';\nimport { T as ThemeProvider, a as ThemeProviderContext } from './ThemeProvider-CR67FJg0.js';\nimport { B as Button } from './Button-BaHFf1AT.js';\n\nimport './PopoverLegacy.css';function usePopoverLegacy({\n defaultOpen,\n placement = \"bottom\",\n modal,\n open: controlledOpen,\n onOpenChange: setControlledOpen,\n onOutsidePress,\n onClose,\n disableCloseOnClickOutside,\n disableCloseOnEscape,\n openOnHover,\n fillAvailableHeight,\n fitScreen,\n maxHeight,\n minHeight = \"2.875rem\",\n matchReferenceWidth,\n fixedWidth,\n disableCaret,\n noPadding,\n disableShift,\n disableFlip,\n disableFlipFallback,\n disableAutoUpdate,\n disableFocusLock,\n disableTriggerFocus,\n root\n} = {}) {\n const [uncontrolledOpen, setUncontrolledOpen] = useState(defaultOpen);\n const [labelId, setLabelId] = useState();\n const [descriptionId, setDescriptionId] = useState();\n const open = controlledOpen ?? uncontrolledOpen;\n const setOpen = setControlledOpen ?? setUncontrolledOpen;\n const arrowRef = useRef(null);\n const processMinHeight = typeof minHeight === \"string\" ? minHeight : `${minHeight}px`;\n const data = useFloating({\n placement,\n open,\n onOpenChange: setOpen,\n whileElementsMounted: !disableAutoUpdate ? autoUpdate : void 0,\n middleware: [\n offset(8),\n size({\n padding: 5,\n apply({ rects, availableHeight, elements }) {\n Object.assign(elements.floating.style, {\n ...matchReferenceWidth ? { width: `${rects.reference.width}px` } : fixedWidth ? { width: \"40dvw\" } : {},\n ...fillAvailableHeight ? {\n height: `${availableHeight - 20}px`,\n minHeight: processMinHeight\n } : {},\n ...maxHeight ? {\n minHeight: processMinHeight,\n height: fitScreen ? typeof maxHeight === \"string\" ? maxHeight : `${maxHeight}px` : void 0,\n maxHeight: fitScreen ? `${availableHeight - 20}px` : typeof maxHeight === \"string\" ? maxHeight : `${maxHeight}px`\n } : {},\n ...fitScreen && !maxHeight ? {\n minHeight: processMinHeight,\n maxHeight: `${availableHeight - 20}px`\n } : {},\n zIndex: 1\n });\n }\n }),\n flip({\n mainAxis: !disableFlip,\n crossAxis: false,\n fallbackAxisSideDirection: disableFlipFallback ? \"none\" : \"end\",\n padding: 5\n }),\n shift({\n padding: 5,\n mainAxis: !disableShift,\n crossAxis: false,\n limiter: limitShift({\n mainAxis: !disableShift\n })\n }),\n arrow({ element: !disableCaret ? arrowRef : null, padding: 5 })\n ]\n });\n const context = data.context;\n const click = useClick(context, {\n enabled: controlledOpen == null && !openOnHover\n });\n const hover = useHover(context, {\n enabled: controlledOpen == null && !!openOnHover,\n handleClose: safePolygon()\n });\n const dismiss = useDismiss(context, {\n escapeKey: !disableCloseOnEscape,\n outsidePress: (event) => {\n if (disableCloseOnClickOutside) {\n return false;\n }\n const result = typeof onOutsidePress === \"function\" ? onOutsidePress?.(event) : true;\n if (!result) {\n return result;\n } else {\n onClose?.();\n setOpen(false);\n return result;\n }\n }\n });\n const role = useRole(context);\n const interactions = useInteractions([click, hover, dismiss, role]);\n return useMemo(\n () => ({\n open,\n setOpen,\n onClose,\n ...interactions,\n ...data,\n modal,\n labelId,\n descriptionId,\n setLabelId,\n setDescriptionId,\n arrowRef,\n disableCaret,\n noPadding,\n fillAvailableHeight,\n maxHeight,\n matchReferenceWidth,\n fixedWidth,\n disableFlipFallback,\n disableAutoUpdate,\n disableFocusLock,\n disableTriggerFocus,\n root\n }),\n [\n open,\n setOpen,\n onClose,\n interactions,\n data,\n modal,\n labelId,\n descriptionId,\n disableCaret,\n noPadding,\n fillAvailableHeight,\n maxHeight,\n matchReferenceWidth,\n fixedWidth,\n disableFlipFallback,\n disableAutoUpdate,\n disableFocusLock,\n disableTriggerFocus,\n root\n ]\n );\n}\n\nconst PopoverLegacyContext = createContext(null);\nconst usePopoverLegacyContext = () => {\n const context = useContext(PopoverLegacyContext);\n if (context == null) {\n throw new Error(\"Popover components must be wrapped in <Popover />\");\n }\n return context;\n};\n\nconst PopoverLegacyTrigger = function PopoverLegacyTrigger2(props) {\n const { children } = props;\n const context = usePopoverLegacyContext();\n const ref = useRef(null);\n const mergedRef = useMergeRefs([context.refs.setReference, ref]);\n return children({\n \"data-state\": context.open ? \"open\" : \"closed\",\n \"data-anv\": \"popover-trigger\",\n ...context.getReferenceProps({ ref: mergedRef })\n });\n};\n\nconst styles = {\n\t\"content-legacy\": \"_content-legacy_vcgi9_3\",\n\t\"scroller-legacy\": \"_scroller-legacy_vcgi9_27\",\n\t\"arrow-legacy\": \"_arrow-legacy_vcgi9_34\",\n\t\"no-padding\": \"_no-padding_vcgi9_45\"\n};\n\nconst PopoverLegacyContent = forwardRef(function PopoverContent({ className, style, ...props }, propRef) {\n const {\n context: floatingContext,\n theme,\n mode,\n disableCaret,\n noPadding,\n onClose,\n disableFocusLock,\n disableTriggerFocus,\n root,\n ...context\n } = usePopoverLegacyContext();\n const dialogContext = useContext(DialogContext);\n const drawerContext = useContext(DrawerContext);\n const { root: portalRoot } = useContext(PortalProviderContext);\n const ref = useMergeRefs([context.refs.setFloating, propRef]);\n if (!floatingContext.open) return null;\n if (dialogContext && !dialogContext?.ref?.current) return null;\n const popoverClassNames = cx(className, styles[\"content-legacy\"], {\n [styles[\"no-padding\"]]: noPadding\n });\n const onKeyDownHandler = (e) => {\n if (e.code === \"Escape\") {\n onClose?.();\n }\n };\n return /* @__PURE__ */ jsx(\n FloatingPortal,\n {\n root: root ?? dialogContext?.ref?.current ?? drawerContext?.ref?.current ?? portalRoot,\n children: /* @__PURE__ */ jsx(\n FloatingFocusManager,\n {\n context: floatingContext,\n modal: context.modal,\n order: disableTriggerFocus ? [\"content\"] : [\"reference\", \"content\"],\n disabled: disableFocusLock,\n children: /* @__PURE__ */ jsx(ThemeProvider, { theme, mode, children: /* @__PURE__ */ jsxs(\n \"div\",\n {\n ref,\n \"data-anv\": \"popover-content\",\n style: { ...context.floatingStyles, ...style },\n \"aria-labelledby\": context.labelId,\n \"aria-describedby\": context.descriptionId,\n className: popoverClassNames,\n ...context.getFloatingProps(props),\n onKeyDown: onKeyDownHandler,\n role: \"presentation\",\n children: [\n /* @__PURE__ */ jsx(\"div\", { className: styles[\"scroller-legacy\"], children: props.children }),\n !disableCaret && /* @__PURE__ */ jsx(\n FloatingArrow,\n {\n ref: context.arrowRef,\n context: floatingContext,\n className: styles[\"arrow-legacy\"]\n }\n )\n ]\n }\n ) })\n }\n )\n }\n );\n});\n\nconst PopoverLegacyClose = forwardRef(function PopoverClose(props, ref) {\n const { setOpen, onClose } = usePopoverLegacyContext();\n return /* @__PURE__ */ jsx(\n Button,\n {\n ref,\n \"data-anv\": \"popover-close\",\n ...props,\n onClick: (event) => {\n props.onClick?.(event);\n onClose?.();\n setOpen(false);\n }\n }\n );\n});\n\nconst PopoverLegacyButton = forwardRef(function PopoverButton(props, ref) {\n const { children, size, ...rest } = props;\n const context = usePopoverLegacyContext();\n const childrenRef = children?.ref;\n const mergedRef = useMergeRefs([context.refs.setReference, ref, childrenRef]);\n return /* @__PURE__ */ jsx(\n Button,\n {\n ref: mergedRef,\n size,\n \"data-state\": context.open ? \"open\" : \"closed\",\n \"data-anv\": \"popover-button\",\n ...context.getReferenceProps(rest),\n children\n }\n );\n});\n\nfunction PopoverLegacyElement({\n children,\n modal,\n ...restOptions\n}) {\n const popover = usePopoverLegacy({ modal, ...restOptions });\n const { theme, mode = \"light\" } = useContext(ThemeProviderContext);\n const value = useMemo(\n () => ({ ...popover, theme, mode }),\n [mode, popover, theme]\n );\n return /* @__PURE__ */ jsx(PopoverLegacyContext.Provider, { value, children });\n}\nconst PopoverLegacy = Object.assign(PopoverLegacyElement, {\n Trigger: PopoverLegacyTrigger,\n Close: PopoverLegacyClose,\n Content: PopoverLegacyContent,\n Button: PopoverLegacyButton\n});\n\nexport { PopoverLegacy as P, PopoverLegacyTrigger as a, PopoverLegacyContent as b, PopoverLegacyClose as c, PopoverLegacyButton as d, PopoverLegacyElement as e, usePopoverLegacyContext as u };\n//# sourceMappingURL=PopoverLegacy-BCELChsy.js.map\n","import { jsx, jsxs } from 'react/jsx-runtime';\nimport { computePosition, offset, size, flip, shift, arrow as arrow$1, limitShift, autoUpdate } from '@floating-ui/react';\nimport { createContext, useContext, useRef, useLayoutEffect, forwardRef, useId, useState, useCallback, useEffect, useMemo } from 'react';\nimport { s as supportsPopover, z as useOpenCloseTransitionStates, D as DialogContext, o as safeShowPopover, p as safeHidePopover } from './ProgressBar-BezETeA3.js';\nimport { B as Button } from './Button-BaHFf1AT.js';\nimport { d as PopoverLegacyButton, c as PopoverLegacyClose, b as PopoverLegacyContent, a as PopoverLegacyTrigger, e as PopoverLegacyElement } from './PopoverLegacy-BCELChsy.js';\nimport { u as useMergeRefs } from './useMergeRefs-Bde85AWI.js';\nimport cx from 'classnames';\nimport { u as useKeyboardFocusables } from './useKeyboardFocusables-CwVMAe5C.js';\nimport { u as useOnClickOutside } from './useOnClickOutside-DP89Gbem.js';\n\nimport './Popover.css';function compareElements(el1, el2, excludeAttributes = []) {\n if (!el1 || !el2 || el1.tagName !== el2.tagName) {\n return false;\n }\n const getFilteredAttributes = (attrs) => {\n const filtered = {};\n for (let i = 0; i < attrs.length; i++) {\n const attr = attrs[i];\n if (!excludeAttributes.includes(attr.name)) {\n filtered[attr.name] = attr.value;\n }\n }\n return filtered;\n };\n const filteredAttrs1 = getFilteredAttributes(el1.attributes);\n const filteredAttrs2 = getFilteredAttributes(el2.attributes);\n const keys1 = Object.keys(filteredAttrs1);\n const keys2 = Object.keys(filteredAttrs2);\n if (keys1.length !== keys2.length) return false;\n for (const key of keys1) {\n if (filteredAttrs1[key] !== filteredAttrs2[key]) {\n return false;\n }\n }\n const isOnlyText1 = el1.childNodes.length === 1 && el1.childNodes[0].nodeType === Node.TEXT_NODE;\n const isOnlyText2 = el2.childNodes.length === 1 && el2.childNodes[0].nodeType === Node.TEXT_NODE;\n if (isOnlyText1 && isOnlyText2) {\n if (el1.textContent?.trim() !== el2.textContent?.trim()) {\n return false;\n }\n }\n const children1 = el1.children;\n const children2 = el2.children;\n if (children1.length !== children2.length) return false;\n for (let i = 0; i < children1.length; i++) {\n if (!compareElements(\n children1[i],\n children2[i],\n excludeAttributes\n )) {\n return false;\n }\n }\n return true;\n}\n\nconst PopoverContext = createContext(null);\n\nfunction usePopoverContext() {\n const context = useContext(PopoverContext);\n const invokerRef = useRef(null);\n const popoverRef = useRef(null);\n const arrowRef = useRef(null);\n useLayoutEffect(() => {\n if (!invokerRef.current) return;\n context?.setInvoker?.(invokerRef.current);\n }, [context, invokerRef]);\n useLayoutEffect(() => {\n if (!popoverRef.current) return;\n context?.setPopover?.(popoverRef.current);\n context?.setRootNode?.(popoverRef.current.getRootNode());\n if (!arrowRef.current) return;\n context?.setArrowElement?.(arrowRef.current);\n }, [context, popoverRef]);\n const onMouseEnterHandler = () => {\n if (!context?.openOnHover) return;\n context.openPopover();\n };\n const onMouseLeaveHandler = () => {\n if (!context?.openOnHover) return;\n context.closePopover();\n };\n const onFocusHandler = () => {\n if (context?.controlled || !context?.openOnHover) return;\n context?.openPopover();\n };\n const onBlurHandler = () => {\n if (context?.controlled || context?.disableCloseOnClickOutside || !context?.openOnHover)\n return;\n context?.closePopover();\n };\n const onKeyDownHandler = (e) => {\n if (!context?.openState) return;\n if (e.code === \"Escape\" && !context?.disableCloseOnEscape && !context?.controlled) {\n context?.closePopover();\n return;\n }\n const focusables = context.focusables;\n if (e.code === \"Tab\" && e.shiftKey && context?.modal && focusables) {\n focusables[focusables.length - 1].focus();\n e.preventDefault();\n return;\n }\n };\n const onClickHandler = () => {\n context?.invoker?.focus();\n if (context?.openOnHover) return;\n if (context?.controlled === false) {\n if (context?.openState) {\n context?.closePopover();\n } else {\n context?.openPopover();\n }\n return;\n }\n };\n if (!context || !invokerRef || !popoverRef) return;\n return {\n invoker: {\n ref: invokerRef,\n element: context.invoker,\n onMouseEnter: onMouseEnterHandler,\n onMouseLeave: onMouseLeaveHandler,\n onKeyDown: onKeyDownHandler,\n onClick: onClickHandler,\n onFocus: onFocusHandler,\n onBlur: onBlurHandler,\n \"aria-haspopup\": true,\n \"aria-expanded\": context.openState,\n \"aria-details\": context.popoverId,\n \"data-state\": context.openState ? \"open\" : \"closed\"\n },\n popover: {\n ref: popoverRef,\n element: context.popover,\n id: context.popoverId,\n onClose: context.onClose,\n show: context.openPopover,\n close: context.closePopover,\n noPadding: context.noPadding,\n style: context.popoverStyle,\n arrowRef,\n key: context.resetKey\n },\n rootNode: context.rootNode,\n onClose: context.onClose,\n setOpen: context.setOpenState,\n open: context.openState,\n openOnHover: context.openOnHover,\n controlled: context.controlled,\n disableCloseOnClickOutside: context.disableCloseOnClickOutside,\n disableCloseOnEscape: context.disableCloseOnEscape,\n modal: context.modal,\n placement: context.placement,\n disableCaret: context.disableCaret,\n noPadding: context.noPadding,\n fillAvailableHeight: context.fillAvailableHeight,\n maxHeight: context.maxHeight,\n matchReferenceWidth: context.matchReferenceWidth,\n fixedWidth: context.fixedWidth,\n disableFlipFallback: context.disableFlipFallback,\n disableFocusLock: context.modal,\n disableTriggerFocus: context.disableTriggerFocus,\n focusables: context.focusables\n };\n}\n\nconst PopoverButton = forwardRef(\n function PopoverButton2(props, ref) {\n const {\n children,\n size,\n onMouseEnter,\n onMouseLeave,\n onClick,\n onKeyDown,\n onFocus,\n onBlur,\n ...rest\n } = props;\n const context = usePopoverContext();\n const onMouseEnterHandler = (e) => {\n onMouseEnter?.(e);\n context?.invoker.onMouseEnter();\n };\n const onMouseLeaveHandler = (e) => {\n onMouseLeave?.(e);\n context?.invoker.onMouseLeave();\n };\n const onFocusHandler = (e) => {\n onFocus?.(e);\n context?.invoker.onFocus();\n };\n const onBlurHandler = (e) => {\n onBlur?.(e);\n context?.invoker.onBlur();\n };\n const onKeyDownHandler = (e) => {\n onKeyDown?.(e);\n context?.invoker.onKeyDown(e);\n };\n const onClickHandler = (e) => {\n onClick?.(e);\n context?.invoker.onClick();\n };\n const buttonRef = useMergeRefs([context?.invoker.ref, ref]);\n if (!supportsPopover())\n return /* @__PURE__ */ jsx(\n PopoverLegacyButton,\n {\n ...props,\n ref\n }\n );\n return /* @__PURE__ */ jsx(\n Button,\n {\n ref: buttonRef,\n size,\n onClick: onClickHandler,\n onKeyDown: onKeyDownHandler,\n onMouseEnter: onMouseEnterHandler,\n onMouseLeave: onMouseLeaveHandler,\n onFocus: onFocusHandler,\n onBlur: onBlurHandler,\n \"data-anv\": \"popover-button\",\n \"aria-haspopup\": context?.invoker[\"aria-haspopup\"],\n \"aria-expanded\": context?.invoker[\"aria-expanded\"],\n \"aria-details\": context?.invoker[\"aria-details\"],\n \"data-state\": context?.invoker[\"data-state\"],\n ...rest,\n children\n }\n );\n }\n);\n\nconst PopoverClose = forwardRef(\n function PopoverClose2(props, ref) {\n const { onClick, ...rest } = props;\n const context = usePopoverContext();\n if (!supportsPopover())\n return /* @__PURE__ */ jsx(PopoverLegacyClose, { ...props, ref });\n return /* @__PURE__ */ jsx(\n Button,\n {\n ref,\n \"data-anv\": \"popover-close\",\n ...rest,\n onClick: (event) => {\n onClick?.(event);\n if (context?.controlled) {\n setTimeout(() => {\n context?.onClose?.();\n }, 100);\n return;\n }\n context?.popover.close();\n }\n }\n );\n }\n);\n\nconst content = \"_content_yo27y_2\";\nconst scroller = \"_scroller_yo27y_29\";\nconst arrow = \"_arrow_yo27y_37\";\nconst styles = {\n\tcontent: content,\n\tscroller: scroller,\n\tarrow: arrow,\n\t\"no-padding\": \"_no-padding_yo27y_62\"\n};\n\nconst PopoverContent = forwardRef(\n function PopoverContent2(props, ref) {\n const {\n children,\n className,\n style,\n onMouseEnter,\n onMouseLeave,\n onKeyDown,\n onFocus,\n onBlur,\n onScroll,\n onScrollCapture,\n scrollerRef,\n ...rest\n } = props;\n const context = usePopoverContext();\n const popoverClassNames = cx(className, styles[\"content\"], {\n [styles[\"no-padding\"]]: context?.noPadding\n });\n const childrenRef = useRef(null);\n const combinedStyles = {\n ...style,\n ...context?.popover.style\n };\n const focusables = context?.focusables;\n const onMouseEnterHandler = (e) => {\n onMouseEnter?.(e);\n if (!context?.openOnHover) return;\n context.popover.show();\n };\n const onMouseLeaveHandler = (e) => {\n onMouseLeave?.(e);\n if (!context?.openOnHover) return;\n context.popover.close();\n };\n const onFocusHandler = (e) => {\n onFocus?.(e);\n context?.popover.show();\n };\n const onBlurHandler = (e) => {\n onBlur?.(e);\n };\n const onKeyDownHandler = (e) => {\n onKeyDown?.(e);\n if (e.code === \"Escape\" && !context?.disableCloseOnEscape) {\n context?.popover.close();\n }\n if (!context?.modal) {\n if (context?.controlled) {\n return;\n }\n if (e.code === \"Tab\" && !e.shiftKey) {\n if (focusables && compareElements(\n context.rootNode?.activeElement,\n focusables[focusables.length - 1],\n [\"tabindex\"]\n )) {\n context.popover.close();\n }\n }\n if (e.code === \"Tab\" && e.shiftKey) {\n if (focusables && compareElements(\n context.rootNode.activeElement,\n focusables[0],\n [\"tabindex\"]\n )) {\n context.popover.close();\n }\n }\n return;\n }\n if (e.code === \"Tab\" && !e.shiftKey) {\n if (focusables && compareElements(\n context.rootNode?.activeElement,\n focusables[focusables.length - 1],\n [\"tabindex\"]\n )) {\n if (context.disableTriggerFocus) {\n focusables[0].focus();\n } else {\n context.invoker.element?.focus();\n context.popover.show();\n }\n e.preventDefault();\n }\n }\n if (e.code === \"Tab\" && e.shiftKey) {\n if (focusables && compareElements(\n context.rootNode.activeElement,\n focusables[0],\n [\"tabindex\"]\n )) {\n if (context.disableTriggerFocus) {\n focusables[focusables.length - 1].focus();\n } else {\n context.invoker.element?.focus();\n context.popover.show();\n }\n e.preventDefault();\n }\n }\n };\n const manualPopover = context?.controlled || context?.disableCloseOnClickOutside || context?.disableCloseOnEscape || context?.openOnHover;\n const popoverContentRef = useMergeRefs([context?.popover.ref, ref]);\n const popoverScrollerRef = useMergeRefs([childrenRef, scrollerRef]);\n if (!supportsPopover())\n return /* @__PURE__ */ jsx(\n PopoverLegacyContent,\n {\n ...props,\n ref\n }\n );\n return /* @__PURE__ */ jsxs(\n \"div\",\n {\n popover: manualPopover ? \"manual\" : \"auto\",\n id: context?.popover.id,\n \"data-anv\": \"popover-content\",\n className: popoverClassNames,\n ref: popoverContentRef,\n style: combinedStyles,\n onMouseEnter: onMouseEnterHandler,\n onMouseLeave: onMouseLeaveHandler,\n onBlur: onBlurHandler,\n onFocus: onFocusHandler,\n role: \"region\",\n ...rest,\n children: [\n /* @__PURE__ */ jsx(\n \"div\",\n {\n className: styles.scroller,\n role: \"presentation\",\n tabIndex: -1,\n ref: popoverScrollerRef,\n onKeyDown: onKeyDownHandler,\n onScroll,\n onScrollCapture,\n children\n },\n context?.popover.key\n ),\n !context?.disableCaret && /* @__PURE__ */ jsx(\"span\", { className: styles[\"arrow\"], ref: context?.popover.arrowRef, children: /* @__PURE__ */ jsxs(\"svg\", { \"aria-hidden\": \"true\", width: \"14\", height: \"14\", viewBox: \"0 0 14 14\", children: [\n /* @__PURE__ */ jsx(\"path\", { stroke: \"none\", d: \"M0,0 H14 L7,7 Q7,7 7,7 Z\" }),\n /* @__PURE__ */ jsx(\"clipPath\", { id: \":r9:\", children: /* @__PURE__ */ jsx(\"rect\", { x: \"0\", y: \"0\", width: \"14\", height: \"14\" }) })\n ] }) })\n ]\n }\n );\n }\n);\n\nfunction PopoverTrigger(props) {\n const { children } = props;\n const context = usePopoverContext();\n if (!supportsPopover())\n return /* @__PURE__ */ jsx(PopoverLegacyTrigger, { ...props });\n if (!context) return;\n const { element, ...rest } = context.invoker;\n return children({ \"data-test\": \"hello\", ...rest });\n}\n\nconst usePopoverTransitionStates = (popover, openProp, options = {}) => {\n const { onOpenAnimationStart, onCloseAnimationComplete } = options;\n return useOpenCloseTransitionStates(openProp, {\n ...options,\n onOpenAnimationStart: () => {\n if (!popover) return;\n onOpenAnimationStart?.();\n },\n onCloseAnimationComplete: () => {\n if (!popover) return;\n onCloseAnimationComplete?.();\n },\n durationMs: () => {\n if (!popover) return 0;\n const duration = window.getComputedStyle(popover).animationDuration;\n return parseFloat(duration) * 1e3;\n }\n });\n};\n\nconst PopoverElement = (props) => {\n const {\n children,\n openOnHover = false,\n delay = 100,\n placement = \"bottom\",\n minHeight = \"2.875rem\",\n open,\n defaultOpen = false,\n disableShift,\n disableFlip,\n disableFlipFallback,\n matchReferenceWidth,\n id,\n disableCaret,\n fixedWidth,\n fillAvailableHeight,\n maxHeight,\n disableCloseOnClickOutside,\n disableCloseOnEscape,\n fitScreen,\n disableFocusLock,\n disableTriggerFocus,\n modal,\n noPadding,\n onOpenChange,\n onOutsidePress,\n onClickOutside,\n onClose,\n onOpenAnimationStart,\n onOpenAnimationComplete,\n onCloseAnimationStart,\n onCloseAnimationComplete\n } = props;\n const uid = useId();\n const [invoker, setInvoker] = useState(void 0);\n const [popover, setPopover] = useState(void 0);\n const [rootNode, setRootNode] = useState();\n const [arrowElement, setArrowElement] = useState(void 0);\n const [openState, setOpenState] = useState(\n open ?? defaultOpen\n );\n const arrowRef = useRef(null);\n const dialogContext = useContext(DialogContext);\n const processMinHeight = typeof minHeight === \"string\" ? minHeight : `${minHeight}px`;\n usePopoverTransitionStates(popover, openState, {\n onOpenAnimationStart: useCallback(() => {\n onOpenAnimationStart?.();\n }, [onOpenAnimationStart]),\n onOpenAnimationComplete: useCallback(() => {\n onOpenAnimationComplete?.();\n }, [onOpenAnimationComplete]),\n onCloseAnimationStart: useCallback(() => {\n onCloseAnimationStart?.();\n }, [onCloseAnimationStart]),\n onCloseAnimationComplete: useCallback(() => {\n onCloseAnimationComplete?.();\n }, [onCloseAnimationComplete])\n });\n const updatePosition = useCallback(() => {\n if (!invoker || !popover) return;\n if (!openState) return;\n computePosition(invoker, popover, {\n placement,\n middleware: [\n offset(8),\n size({\n padding: 5,\n apply({ rects, availableHeight, elements }) {\n Object.assign(elements.floating.style, {\n ...matchReferenceWidth ? { width: `${rects.reference.width}px` } : fixedWidth ? { width: \"40dvw\" } : {},\n ...fillAvailableHeight ? {\n height: `${availableHeight - 20}px`,\n minHeight: processMinHeight\n } : {},\n ...maxHeight ? {\n minHeight: processMinHeight,\n height: fitScreen ? typeof maxHeight === \"string\" ? maxHeight : `${maxHeight}px` : void 0,\n maxHeight: fitScreen ? `${availableHeight - 20}px` : typeof maxHeight === \"string\" ? maxHeight : `${maxHeight}px`\n } : {},\n ...fitScreen && !maxHeight ? {\n minHeight: processMinHeight,\n maxHeight: `${availableHeight - 20}px`\n } : {},\n zIndex: 1\n });\n }\n }),\n flip({\n mainAxis: !disableFlip,\n crossAxis: false,\n fallbackAxisSideDirection: disableFlipFallback ? \"none\" : \"end\",\n padding: 5\n }),\n shift({\n padding: 5,\n mainAxis: !disableShift,\n crossAxis: false,\n limiter: limitShift({\n mainAxis: !disableShift\n })\n }),\n arrow$1({\n element: !disableCaret && arrowElement ? arrowElement : null,\n padding: 5\n })\n ]\n }).then(({ x, y, placement: placement2, middlewareData }) => {\n const side = placement2.split(\"-\")[0];\n const staticSide = {\n top: \"bottom\",\n right: \"left\",\n bottom: \"top\",\n left: \"right\"\n }[side];\n const arrowDeg = () => {\n if (staticSide === \"top\") return 180;\n if (staticSide === \"bottom\") return 0;\n if (staticSide === \"left\") return 90;\n return 270;\n };\n Object.assign(popover.style, {\n left: `${x}px`,\n top: `${y}px`\n });\n if (middlewareData.arrow && arrowElement) {\n const { x: x2, y: y2 } = middlewareData.arrow;\n Object.assign(arrowElement.style, {\n left: x2 != null ? `${x2}px` : \"\",\n top: y2 != null ? `${y2}px` : \"\",\n right: \"\",\n bottom: \"\",\n [staticSide]: `${-arrowElement.offsetWidth + 2}px`,\n transform: `rotate(${arrowDeg()}deg)`\n });\n }\n });\n }, [\n arrowElement,\n disableCaret,\n disableFlip,\n disableFlipFallback,\n disableShift,\n fillAvailableHeight,\n fitScreen,\n fixedWidth,\n invoker,\n matchReferenceWidth,\n maxHeight,\n openState,\n placement,\n popover,\n processMinHeight\n ]);\n const resetKey = useRef(0);\n useLayoutEffect(() => {\n if (!popover || !invoker) return;\n if (!openState) {\n resetKey.current += 1;\n return;\n }\n let requestID = null;\n const cleanup = autoUpdate(invoker, popover, () => {\n requestID = requestAnimationFrame(updatePosition);\n });\n return () => {\n if (requestID) cancelAnimationFrame(requestID);\n cleanup();\n };\n }, [invoker, popover, updatePosition, openState]);\n popover?.getRootNode();\n const { focusables } = useKeyboardFocusables(popover, {\n observeChange: true\n });\n const popoverId = id ?? `popover-${uid.replace(/:/g, \"\")}`;\n const isControlled = typeof open !== \"undefined\";\n const openTimeoutRef = useRef(null);\n const closeTimeoutRef = useRef(null);\n const openPopover = useCallback(() => {\n clearTimeout(closeTimeoutRef.current);\n clearTimeout(openTimeoutRef.current);\n if (!popover || !rootNode?.querySelector(`#${popoverId}`))\n return;\n openTimeoutRef.current = setTimeout(() => {\n safeShowPopover(popover);\n setOpenState(true);\n onOpenChange?.(true);\n dialogContext?.setHasOpenPopover?.(true);\n }, delay);\n }, [popover, rootNode, popoverId, delay, dialogContext]);\n const closePopover = useCallback(\n (fn) => {\n clearTimeout(openTimeoutRef.current);\n clearTimeout(closeTimeoutRef.current);\n if (!popover || !openState) return;\n closeTimeoutRef.current = setTimeout(() => {\n if (!openOnHover) onClose?.();\n setOpenState(false);\n onOpenChange?.(false);\n fn?.();\n safeHidePopover(popover);\n dialogContext?.setHasOpenPopover?.(false);\n }, 100);\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps -- onClose and onOpenChange are intentionally omitted to prevent the closePopover function from being recreated on every render, which could cause unnecessary re-runs of the controlled useEffect and potential infinite loops\n [popover, openState, openOnHover, dialogContext]\n );\n const initialRender = useRef(true);\n useEffect(() => {\n if (initialRender.current === true) {\n if (openState) openPopover();\n initialRender.current = false;\n return;\n }\n }, [openState, openPopover]);\n useEffect(() => {\n if (typeof open === \"undefined\") return;\n if (open) {\n openPopover();\n } else {\n closePopover();\n }\n }, [open, openPopover, closePopover]);\n useOnClickOutside({\n onOutsidePress: (e) => {\n if (!open) return;\n onClickOutside?.(e);\n onOutsidePress?.(e);\n },\n targets: [invoker, popover],\n onClose: () => {\n if (disableCloseOnClickOutside || openOnHover || isControlled || !openState)\n return;\n closePopover();\n }\n });\n const value = useMemo(() => {\n return {\n popoverId,\n invoker,\n setInvoker,\n popover,\n setPopover,\n arrowElement,\n setArrowElement,\n openPopover,\n closePopover,\n placement,\n onClose,\n openOnHover,\n openState,\n setOpenState,\n disableCloseOnClickOutside,\n fillAvailableHeight,\n maxHeight,\n matchReferenceWidth,\n fixedWidth,\n disableCaret,\n disableFlipFallback,\n disableFocusLock,\n disableTriggerFocus,\n disableCloseOnEscape,\n noPadding,\n controlled: isControlled,\n modal: modal ?? disableFocusLock,\n arrowRef,\n resetKey: resetKey.current,\n rootNode,\n setRootNode,\n focusables\n };\n }, [\n popoverId,\n invoker,\n popover,\n arrowElement,\n openPopover,\n closePopover,\n placement,\n onClose,\n openOnHover,\n openState,\n setOpenState,\n disableCloseOnClickOutside,\n fillAvailableHeight,\n maxHeight,\n matchReferenceWidth,\n fixedWidth,\n disableCaret,\n disableFlipFallback,\n disableFocusLock,\n disableTriggerFocus,\n disableCloseOnEscape,\n noPadding,\n isControlled,\n modal,\n rootNode,\n focusables\n ]);\n if (!supportsPopover())\n return /* @__PURE__ */ jsx(PopoverLegacyElement, { ...props });\n return /* @__PURE__ */ jsx(PopoverContext.Provider, { value, children });\n};\nconst Popover = Object.assign(PopoverElement, {\n /**\n * PopoverTrigger component for creating custom trigger elements.\n *\n * Features:\n * - Supports custom trigger elements via render prop pattern\n * - Automatic focus management and keyboard interaction\n * - Hover and click event handling\n * - Accessibility attributes (aria-haspopup, aria-expanded, aria-details)\n * - Legacy popover support with fallback\n * - Context integration with parent popover\n *\n * @example\n * <Popover.Trigger>\n * {(props) => (\n * <button {...props}>\n * Click to open popover\n * </button>\n * )}\n * </Popover.Trigger>\n */\n Trigger: PopoverTrigger,\n /**\n * PopoverClose component for closing the popover.\n *\n * Features:\n * - Automatic popover closing on click\n * - Supports all Button component props and styling\n * - Controlled and uncontrolled mode support\n * - Legacy popover support with fallback\n * - Context integration with parent popover\n * - Accessibility support with proper button semantics\n * - Delayed closing for controlled mode\n *\n * @example\n * <Popover.Close>Close</Popover.Close>\n */\n Close: PopoverClose,\n /**\n * PopoverContent component for the main popover content area.\n *\n * Features:\n * - Automatic positioning and sizing based on trigger\n * - Screen boundary detection and fitting\n * - Scroll handling with custom scroller reference\n * - Focus management and keyboard navigation\n * - Hover interaction support for tooltip mode\n * - Escape key handling for closing\n * - Tab key trapping for modal popovers\n * - Arrow/caret indicator with automatic positioning\n * - Legacy popover support with fallback\n * - Context integration with parent popover\n * - Accessibility support with proper ARIA roles\n *\n * @example\n * <Popover.Content>\n * <p>This is the popover content</p>\n * <Popover.Close>Close</Popover.Close>\n * </Popover.Content>\n */\n Content: PopoverContent,\n /**\n * PopoverButton component for creating button-style triggers.\n *\n * Features:\n * - Button styling and behavior with all Button props\n * - Automatic popover opening on click\n * - Hover interaction support for tooltip mode\n * - Focus management and keyboard navigation\n * - Accessibility attributes (aria-haspopup, aria-expanded, aria-details)\n * - Legacy popover support with fallback\n * - Context integration with parent popover\n * - Event handling for mouse, keyboard, and focus events\n *\n * @example\n * <Popover.Button>Click to open</Popover.Button>\n */\n Button: PopoverButton,\n Context: PopoverContext\n});\n\nexport { Popover as P, PopoverContext as a, PopoverTrigger as b, PopoverContent as c, PopoverClose as d, PopoverButton as e, usePopoverContext as u };\n//# sourceMappingURL=Popover-DvLcjLjG.js.map\n"],"names":["arrow","styles"],"mappings":";;;;;;;;;;AAU6B,SAAS,gBAAgB,CAAC;AACvD,EAAE,WAAW;AACb,EAAE,SAAS,GAAG,QAAQ;AACtB,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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,OAAO,EAAE,cAAc;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE,MAAM,EAAE,aAAa;AACvB,EAAE,OAAO,EAAE;AACX,CAAC;;;;"}
|
package/dist/Popover.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { P as Popover, d as PopoverButton, c as PopoverClose, b as PopoverContent, a as PopoverTrigger, P as default } from './Popover-
|
|
1
|
+
export { P as Popover, d as PopoverButton, c as PopoverClose, b as PopoverContent, a as PopoverTrigger, P as default } from './Popover-2O1Q-34V.js';
|
|
2
2
|
//# sourceMappingURL=Popover.js.map
|
|
@@ -19,7 +19,7 @@ import { T as ThemeProvider, a as ThemeProviderContext } from './ThemeProvider-C
|
|
|
19
19
|
import { g as getKeyboardFocusableElements } from './getKeyboardFocusableElements-QqcABz0D.js';
|
|
20
20
|
import { u as useTooltipLegacyGroup } from './HammerProvider-CYP98rq3-Dd9GVIyP.js';
|
|
21
21
|
|
|
22
|
-
import './ProgressBar-
|
|
22
|
+
import './ProgressBar-BezETeA3.css';/**
|
|
23
23
|
* Convert array of 16 byte values to UUID string format of the form:
|
|
24
24
|
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
25
25
|
*/
|
|
@@ -178,6 +178,15 @@ const getActiveElement = (activeDocument) => {
|
|
|
178
178
|
if (!activeElement) {
|
|
179
179
|
return activeElement;
|
|
180
180
|
}
|
|
181
|
+
if (activeElement.tagName === "IFRAME") {
|
|
182
|
+
const iframes = Array.from(document.getElementsByTagName("iframe"));
|
|
183
|
+
if (iframes.includes(activeElement)) {
|
|
184
|
+
const iframeActiveElement = activeElement;
|
|
185
|
+
const iframeActiveDocument = iframeActiveElement.contentDocument || iframeActiveElement.contentWindow?.document;
|
|
186
|
+
if (!iframeActiveDocument) return activeElement;
|
|
187
|
+
return getActiveElement(iframeActiveDocument);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
181
190
|
if (!activeElement.shadowRoot) {
|
|
182
191
|
return activeElement;
|
|
183
192
|
}
|
|
@@ -1413,12 +1422,15 @@ const Toaster = forwardRef(
|
|
|
1413
1422
|
Toaster.displayName = "Toaster";
|
|
1414
1423
|
ToasterContent.displayName = "ToasterContent";
|
|
1415
1424
|
|
|
1416
|
-
const
|
|
1425
|
+
const useOpenCloseTransitionStates = (openProp, options = {
|
|
1426
|
+
durationMs: 0
|
|
1427
|
+
}) => {
|
|
1417
1428
|
const {
|
|
1418
1429
|
onOpenAnimationStart,
|
|
1419
1430
|
onCloseAnimationStart,
|
|
1420
1431
|
onOpenAnimationComplete,
|
|
1421
|
-
onCloseAnimationComplete
|
|
1432
|
+
onCloseAnimationComplete,
|
|
1433
|
+
durationMs
|
|
1422
1434
|
} = options;
|
|
1423
1435
|
const prevOpenProp = useRef(openProp);
|
|
1424
1436
|
const [state, setState] = useState(
|
|
@@ -1435,36 +1447,33 @@ const useDialogTransitionStates = (ref, openProp, options = {}) => {
|
|
|
1435
1447
|
prevOpenProp.current = openProp;
|
|
1436
1448
|
}, [openProp]);
|
|
1437
1449
|
useEffect(() => {
|
|
1438
|
-
if (!
|
|
1450
|
+
if (!durationMs) return;
|
|
1439
1451
|
if (state === "open" || state === "closed") return;
|
|
1440
1452
|
if (state === "opening") {
|
|
1441
|
-
ref.current?.showModal();
|
|
1442
1453
|
onOpenAnimationStart?.();
|
|
1443
1454
|
} else if (state === "closing") {
|
|
1444
1455
|
onCloseAnimationStart?.();
|
|
1445
1456
|
}
|
|
1446
|
-
const
|
|
1447
|
-
const durationMs = parseFloat(duration) * 1e3;
|
|
1457
|
+
const d = typeof durationMs === "function" ? durationMs() : durationMs;
|
|
1448
1458
|
const timeout = setTimeout(() => {
|
|
1449
1459
|
if (state === "opening") {
|
|
1450
1460
|
setState("open");
|
|
1451
1461
|
onOpenAnimationComplete?.();
|
|
1452
1462
|
} else if (state === "closing") {
|
|
1453
1463
|
setState("closed");
|
|
1454
|
-
ref.current?.close();
|
|
1455
1464
|
onCloseAnimationComplete?.();
|
|
1456
1465
|
}
|
|
1457
|
-
},
|
|
1466
|
+
}, d);
|
|
1458
1467
|
return () => {
|
|
1459
1468
|
clearTimeout(timeout);
|
|
1460
1469
|
};
|
|
1461
1470
|
}, [
|
|
1462
1471
|
state,
|
|
1463
|
-
ref,
|
|
1464
1472
|
onOpenAnimationComplete,
|
|
1465
1473
|
onCloseAnimationComplete,
|
|
1466
1474
|
onOpenAnimationStart,
|
|
1467
|
-
onCloseAnimationStart
|
|
1475
|
+
onCloseAnimationStart,
|
|
1476
|
+
durationMs
|
|
1468
1477
|
]);
|
|
1469
1478
|
const beginClosing = useCallback(() => {
|
|
1470
1479
|
setState("closing");
|
|
@@ -1477,6 +1486,28 @@ const useDialogTransitionStates = (ref, openProp, options = {}) => {
|
|
|
1477
1486
|
};
|
|
1478
1487
|
};
|
|
1479
1488
|
|
|
1489
|
+
const useDialogTransitionStates = (ref, openProp, options = {}) => {
|
|
1490
|
+
const { onOpenAnimationStart, onCloseAnimationComplete } = options;
|
|
1491
|
+
return useOpenCloseTransitionStates(openProp, {
|
|
1492
|
+
...options,
|
|
1493
|
+
onOpenAnimationStart: () => {
|
|
1494
|
+
if (!ref.current) return;
|
|
1495
|
+
ref.current.showModal();
|
|
1496
|
+
onOpenAnimationStart?.();
|
|
1497
|
+
},
|
|
1498
|
+
onCloseAnimationComplete: () => {
|
|
1499
|
+
if (!ref.current) return;
|
|
1500
|
+
ref.current.close();
|
|
1501
|
+
onCloseAnimationComplete?.();
|
|
1502
|
+
},
|
|
1503
|
+
durationMs: () => {
|
|
1504
|
+
if (!ref.current) return 0;
|
|
1505
|
+
const duration = window.getComputedStyle(ref.current).animationDuration;
|
|
1506
|
+
return parseFloat(duration) * 1e3;
|
|
1507
|
+
}
|
|
1508
|
+
});
|
|
1509
|
+
};
|
|
1510
|
+
|
|
1480
1511
|
const drawer = "_drawer_1jl82_2";
|
|
1481
1512
|
const container = "_container_1jl82_28";
|
|
1482
1513
|
const content = "_content_1jl82_41";
|
|
@@ -1651,7 +1682,7 @@ const DrawerElement = forwardRef(
|
|
|
1651
1682
|
if (!focusables) return;
|
|
1652
1683
|
const activeElement = getActiveElement(document);
|
|
1653
1684
|
if (!activeElement) return;
|
|
1654
|
-
if (activeElement.dataset.anv !== "drawer-header-close-button" && focusables.includes(activeElement)) {
|
|
1685
|
+
if (activeElement.dataset.anv !== "drawer-header-close-button" && (focusables.includes(activeElement) || activeElement.tagName === "DIALOG")) {
|
|
1655
1686
|
return;
|
|
1656
1687
|
}
|
|
1657
1688
|
if (focusables[0]?.dataset.anv === "drawer-header-close-button" && focusables[1]) {
|
|
@@ -1670,7 +1701,10 @@ const DrawerElement = forwardRef(
|
|
|
1670
1701
|
if (!open) return;
|
|
1671
1702
|
onClickOutside?.(e);
|
|
1672
1703
|
},
|
|
1673
|
-
targets: [
|
|
1704
|
+
targets: [
|
|
1705
|
+
contentRef.current,
|
|
1706
|
+
toasterRef.current
|
|
1707
|
+
],
|
|
1674
1708
|
onClose: () => {
|
|
1675
1709
|
if (disableCloseOnClickOutside || !open) return;
|
|
1676
1710
|
onClose?.();
|
|
@@ -2578,5 +2612,5 @@ const ProgressBar = forwardRef(
|
|
|
2578
2612
|
);
|
|
2579
2613
|
ProgressBar.displayName = "ProgressBar";
|
|
2580
2614
|
|
|
2581
|
-
export { DrawerCancelButton as D, Label as L, ProgressBar as P, TooltipTrigger as T, DrawerFooter as a, DrawerHeader as b, DrawerContent as c, Drawer as d, TooltipContent as e, Tooltip as f, getActiveElement as g, Toaster as h, DialogContext as i, useDialogTransitionStates as j, useDialogScrollLock as k, useOnClickOutside as l, ToastProvider as m, ToasterPopover as n, ToasterContent as o, DrawerContext as p, safeShowPopover as q, safeHidePopover as r, supportsPopover as s, toast as t, useKeyboardFocusables as u };
|
|
2582
|
-
//# sourceMappingURL=ProgressBar-
|
|
2615
|
+
export { DrawerCancelButton as D, Label as L, ProgressBar as P, TooltipTrigger as T, DrawerFooter as a, DrawerHeader as b, DrawerContent as c, Drawer as d, TooltipContent as e, Tooltip as f, getActiveElement as g, Toaster as h, DialogContext as i, useDialogTransitionStates as j, useDialogScrollLock as k, useOnClickOutside as l, ToastProvider as m, ToasterPopover as n, ToasterContent as o, DrawerContext as p, safeShowPopover as q, safeHidePopover as r, supportsPopover as s, toast as t, useKeyboardFocusables as u, useOpenCloseTransitionStates as v };
|
|
2616
|
+
//# sourceMappingURL=ProgressBar-BezETeA3-CeeedJ_w.js.map
|