@servicetitan/anvil2 1.35.0 → 1.36.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 +32 -0
- package/README.md +1 -1
- package/dist/{Calendar-CKFJw6VF-C51uYjjX.js → Calendar-BXz8HtGH-sZmGPoFa.js} +3 -3
- package/dist/{Calendar-CKFJw6VF-C51uYjjX.js.map → Calendar-BXz8HtGH-sZmGPoFa.js.map} +1 -1
- package/dist/{Calendar-Cl34b6zq.js → Calendar-CFrPFSYh.js} +2 -2
- package/dist/{Calendar-Cl34b6zq.js.map → Calendar-CFrPFSYh.js.map} +1 -1
- package/dist/Calendar.js +1 -1
- package/dist/{Checkbox-BNI_O3G_.js → Checkbox-BuUzyx3r.js} +2 -2
- package/dist/{Checkbox-BNI_O3G_.js.map → Checkbox-BuUzyx3r.js.map} +1 -1
- package/dist/{Checkbox-CviWPbPc-D__5gXAb.js → Checkbox-Cv1xn-D0-CDxvvifG.js} +2 -2
- package/dist/{Checkbox-CviWPbPc-D__5gXAb.js.map → Checkbox-Cv1xn-D0-CDxvvifG.js.map} +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/{Combobox-g8m8NyK2.js → Combobox-llFbTzt9.js} +34 -34
- package/dist/{Combobox-g8m8NyK2.js.map → Combobox-llFbTzt9.js.map} +1 -1
- package/dist/Combobox.css +77 -77
- package/dist/Combobox.js +1 -1
- package/dist/{DateField-Bn1Rqt2T.js → DateField-CfhLOyx8.js} +6 -6
- package/dist/{DateField-Bn1Rqt2T.js.map → DateField-CfhLOyx8.js.map} +1 -1
- package/dist/DateField.js +1 -1
- package/dist/{DaysOfTheWeek-CiWK4A7f.js → DaysOfTheWeek-B1XrMkIb.js} +2 -2
- package/dist/{DaysOfTheWeek-CiWK4A7f.js.map → DaysOfTheWeek-B1XrMkIb.js.map} +1 -1
- package/dist/DaysOfTheWeek.js +1 -1
- package/dist/{Dialog-uFGt1a-1.js → Dialog-fnzCNrys.js} +63 -41
- package/dist/Dialog-fnzCNrys.js.map +1 -0
- package/dist/Dialog.css +59 -39
- package/dist/Dialog.js +1 -1
- package/dist/{Drawer-B0sZu0T4.js → Drawer-BDLmYsdq.js} +2 -2
- package/dist/{Drawer-B0sZu0T4.js.map → Drawer-BDLmYsdq.js.map} +1 -1
- package/dist/Drawer.js +1 -1
- package/dist/{InputMask-C0JXMuOj.js → InputMask-D41qFOk2.js} +2 -2
- package/dist/{InputMask-C0JXMuOj.js.map → InputMask-D41qFOk2.js.map} +1 -1
- package/dist/{InputMask-baAe-4gr-DtRWDdVe.js → InputMask-ZI8J7G9S-D9k5VrM4.js} +2 -2
- package/dist/{InputMask-baAe-4gr-DtRWDdVe.js.map → InputMask-ZI8J7G9S-D9k5VrM4.js.map} +1 -1
- package/dist/InputMask.js +1 -1
- package/dist/Lato.css +24 -0
- package/dist/{ListView-FEO4RlAS.js → ListView-BbOOK-ST.js} +3 -3
- package/dist/{ListView-FEO4RlAS.js.map → ListView-BbOOK-ST.js.map} +1 -1
- package/dist/ListView.js +1 -1
- package/dist/{Menu-BcJg4Qe_.js → Menu-D57zEA0C.js} +6 -6
- package/dist/Menu-D57zEA0C.js.map +1 -0
- package/dist/Menu.js +1 -1
- package/dist/{Page-CgVMb5AD.js → Page-D3JBFg7A.js} +11 -10
- package/dist/Page-D3JBFg7A.js.map +1 -0
- package/dist/Page.js +1 -1
- package/dist/{Popover-D1505c3n.js → Popover-CPmgdoaz.js} +2 -2
- package/dist/{Popover-D1505c3n.js.map → Popover-CPmgdoaz.js.map} +1 -1
- package/dist/{Popover-JMA3nN3l-BMbJ7ywW.js → Popover-CpOfdVeS-jZmUCEAn.js} +5 -5
- package/dist/Popover-CpOfdVeS-jZmUCEAn.js.map +1 -0
- package/dist/Popover.js +1 -1
- package/dist/{ProgressBar-By6Afv3k-CDsQv-7k.js → ProgressBar-BwVBP0xG-Be45r3EG.js} +132 -47
- package/dist/ProgressBar-BwVBP0xG-Be45r3EG.js.map +1 -0
- package/dist/{ProgressBar-BuZUT_pp.js → ProgressBar-P2v04zoz.js} +2 -2
- package/dist/{ProgressBar-BuZUT_pp.js.map → ProgressBar-P2v04zoz.js.map} +1 -1
- package/dist/ProgressBar.js +1 -1
- package/dist/{Radio-Dlwtc-eD-CtVA2YbD.js → Radio-BKTgfC5e-CqzwbI6k.js} +3 -3
- package/dist/{Radio-Dlwtc-eD-CtVA2YbD.js.map → Radio-BKTgfC5e-CqzwbI6k.js.map} +1 -1
- package/dist/{Radio-DGSjCCbD.js → Radio-DjVXdgNq.js} +2 -2
- package/dist/{Radio-DGSjCCbD.js.map → Radio-DjVXdgNq.js.map} +1 -1
- package/dist/Radio.js +1 -1
- package/dist/{SelectCard-BjFPbmu0-BLPDBHS9.js → SelectCard-Bn77sc-4-DvuQuUaX.js} +4 -4
- package/dist/{SelectCard-BjFPbmu0-BLPDBHS9.js.map → SelectCard-Bn77sc-4-DvuQuUaX.js.map} +1 -1
- package/dist/SelectCard.js +1 -1
- package/dist/{SelectCardGroup-uNjWLTOy.js → SelectCardGroup-DwNr5BEy.js} +2 -2
- package/dist/{SelectCardGroup-uNjWLTOy.js.map → SelectCardGroup-DwNr5BEy.js.map} +1 -1
- package/dist/{TextField-D0W3daLn.js → TextField-CI_a6KOO.js} +2 -2
- package/dist/{TextField-D0W3daLn.js.map → TextField-CI_a6KOO.js.map} +1 -1
- package/dist/{TextField-DCrXTgrl-u1ONjLEA.js → TextField-DtpZ4tex-C6RuwXGC.js} +2 -2
- package/dist/{TextField-DCrXTgrl-u1ONjLEA.js.map → TextField-DtpZ4tex-C6RuwXGC.js.map} +1 -1
- package/dist/TextField.js +1 -1
- package/dist/{Textarea-CJ1czERH.js → Textarea-eOyffFfn.js} +2 -2
- package/dist/{Textarea-CJ1czERH.js.map → Textarea-eOyffFfn.js.map} +1 -1
- package/dist/Textarea.js +1 -1
- package/dist/Toast.js +1 -1
- package/dist/{Toolbar-D7rpuz1T.js → Toolbar-ChB5sEPJ.js} +3 -3
- package/dist/{Toolbar-D7rpuz1T.js.map → Toolbar-ChB5sEPJ.js.map} +1 -1
- package/dist/Toolbar.js +1 -1
- package/dist/{Tooltip-Q8Cuie1-.js → Tooltip-Ds2JjHXM.js} +2 -2
- package/dist/{Tooltip-Q8Cuie1-.js.map → Tooltip-Ds2JjHXM.js.map} +1 -1
- package/dist/Tooltip.js +1 -1
- package/dist/app-css.379821199ec8105f2efd.bundle.css +57579 -0
- package/dist/bugfix-71.1orion.css +491 -0
- package/dist/components/Dialog/Dialog.d.ts +1 -1
- package/dist/components/Drawer/Drawer.d.ts +1 -1
- package/dist/design-system.859a127fc3b66175f0f0.bundle.css +34599 -0
- package/dist/favicon.ico +0 -0
- package/dist/index.js +20 -20
- package/dist/internal/components/Shadow/Shadow.d.ts +4 -0
- package/dist/internal/components/Shadow/index.d.ts +1 -0
- package/dist/internal/components/index.d.ts +1 -0
- package/dist/kendo-css.ed976099efbbcc8b0639.bundle.css +20601 -0
- package/dist/main.e26f249642be9a4bd747.bundle.css +50386 -0
- package/dist/sui.a9dc22e36a27b7ea1ee8.bundle.css +41149 -0
- package/dist/{toast-CHy4ZACZ.js → toast-_9zW_b5X.js} +2 -2
- package/dist/{toast-CHy4ZACZ.js.map → toast-_9zW_b5X.js.map} +1 -1
- package/package.json +24 -5
- package/dist/Dialog-uFGt1a-1.js.map +0 -1
- package/dist/Menu-BcJg4Qe_.js.map +0 -1
- package/dist/Page-CgVMb5AD.js.map +0 -1
- package/dist/Popover-JMA3nN3l-BMbJ7ywW.js.map +0 -1
- package/dist/ProgressBar-By6Afv3k-CDsQv-7k.js.map +0 -1
- package/dist/internal/components/Shadow.d.ts +0 -3
- /package/dist/{Calendar-CKFJw6VF.css → Calendar-BXz8HtGH.css} +0 -0
- /package/dist/{Popover-JMA3nN3l.css → Popover-CpOfdVeS.css} +0 -0
- /package/dist/{ProgressBar-By6Afv3k.css → ProgressBar-BwVBP0xG.css} +0 -0
- /package/dist/{Radio-Dlwtc-eD.css → Radio-BKTgfC5e.css} +0 -0
- /package/dist/{SelectCard-BjFPbmu0.css → SelectCard-Bn77sc-4.css} +0 -0
|
@@ -18,7 +18,7 @@ import { T as ThemeProvider, a as ThemeProviderContext } from './ThemeProvider-B
|
|
|
18
18
|
import { g as getKeyboardFocusableElements } from './getKeyboardFocusableElements-QqcABz0D.js';
|
|
19
19
|
import { u as useTooltipLegacyGroup } from './HammerProvider-BEJW4XcH-BBKdl0zs.js';
|
|
20
20
|
|
|
21
|
-
import './ProgressBar-
|
|
21
|
+
import './ProgressBar-BwVBP0xG.css';/**
|
|
22
22
|
* Convert array of 16 byte values to UUID string format of the form:
|
|
23
23
|
* XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
|
|
24
24
|
*/
|
|
@@ -293,9 +293,7 @@ const useDialogScrollLock = ({
|
|
|
293
293
|
};
|
|
294
294
|
updateDialogAttributes(open);
|
|
295
295
|
return () => {
|
|
296
|
-
|
|
297
|
-
updateDialogAttributes(false);
|
|
298
|
-
}
|
|
296
|
+
updateDialogAttributes(false);
|
|
299
297
|
};
|
|
300
298
|
}, [open, id, enableScrollChaining, elementRef]);
|
|
301
299
|
};
|
|
@@ -1166,6 +1164,21 @@ const ToastStack = forwardRef(
|
|
|
1166
1164
|
);
|
|
1167
1165
|
ToastStack.displayName = "ToastStack";
|
|
1168
1166
|
|
|
1167
|
+
const safeShowPopover = (element) => {
|
|
1168
|
+
try {
|
|
1169
|
+
element?.showPopover();
|
|
1170
|
+
} catch (e) {
|
|
1171
|
+
console.warn(e);
|
|
1172
|
+
}
|
|
1173
|
+
};
|
|
1174
|
+
const safeHidePopover = (element) => {
|
|
1175
|
+
try {
|
|
1176
|
+
element?.hidePopover();
|
|
1177
|
+
} catch (e) {
|
|
1178
|
+
console.warn(e);
|
|
1179
|
+
}
|
|
1180
|
+
};
|
|
1181
|
+
|
|
1169
1182
|
const ToasterPopover = forwardRef(
|
|
1170
1183
|
(props, ref) => {
|
|
1171
1184
|
const { isDialogToaster } = useToasts();
|
|
@@ -1175,24 +1188,28 @@ const ToasterPopover = forwardRef(
|
|
|
1175
1188
|
const toastCount = useMemo(() => toasts.length, [toasts]);
|
|
1176
1189
|
useEffect(() => {
|
|
1177
1190
|
if (!popoverRef.current) return;
|
|
1191
|
+
if (!supportsPopover()) {
|
|
1192
|
+
console.error("Popover is not supported in this browser");
|
|
1193
|
+
return;
|
|
1194
|
+
}
|
|
1178
1195
|
const currentPopover = popoverRef.current;
|
|
1179
1196
|
let timeout;
|
|
1180
1197
|
if (toastCount > 0) {
|
|
1181
1198
|
if (isDialogToaster) {
|
|
1182
1199
|
timeout = setTimeout(() => {
|
|
1183
|
-
currentPopover
|
|
1184
|
-
currentPopover
|
|
1200
|
+
safeHidePopover(currentPopover);
|
|
1201
|
+
safeShowPopover(currentPopover);
|
|
1185
1202
|
});
|
|
1186
1203
|
} else {
|
|
1187
|
-
currentPopover
|
|
1204
|
+
safeShowPopover(currentPopover);
|
|
1188
1205
|
}
|
|
1189
1206
|
} else {
|
|
1190
|
-
currentPopover
|
|
1207
|
+
safeHidePopover(currentPopover);
|
|
1191
1208
|
}
|
|
1192
1209
|
return () => {
|
|
1193
1210
|
if (timeout) clearTimeout(timeout);
|
|
1194
1211
|
if (toastCount === 0) {
|
|
1195
|
-
currentPopover
|
|
1212
|
+
safeHidePopover(currentPopover);
|
|
1196
1213
|
}
|
|
1197
1214
|
};
|
|
1198
1215
|
}, [toastCount, isDialogToaster]);
|
|
@@ -1397,6 +1414,70 @@ const Toaster = forwardRef(
|
|
|
1397
1414
|
Toaster.displayName = "Toaster";
|
|
1398
1415
|
ToasterContent.displayName = "ToasterContent";
|
|
1399
1416
|
|
|
1417
|
+
const useDialogTransitionStates = (ref, openProp, options = {}) => {
|
|
1418
|
+
const {
|
|
1419
|
+
onOpenAnimationStart,
|
|
1420
|
+
onCloseAnimationStart,
|
|
1421
|
+
onOpenAnimationComplete,
|
|
1422
|
+
onCloseAnimationComplete
|
|
1423
|
+
} = options;
|
|
1424
|
+
const prevOpenProp = useRef(openProp);
|
|
1425
|
+
const [state, setState] = useState(
|
|
1426
|
+
openProp ? "open" : "closed"
|
|
1427
|
+
);
|
|
1428
|
+
useEffect(() => {
|
|
1429
|
+
if (prevOpenProp.current && !openProp) {
|
|
1430
|
+
setState("closing");
|
|
1431
|
+
} else if (!prevOpenProp.current && openProp) {
|
|
1432
|
+
setState("opening");
|
|
1433
|
+
} else {
|
|
1434
|
+
setState(openProp ? "opening" : "closed");
|
|
1435
|
+
}
|
|
1436
|
+
prevOpenProp.current = openProp;
|
|
1437
|
+
}, [openProp]);
|
|
1438
|
+
useEffect(() => {
|
|
1439
|
+
if (!ref.current) return;
|
|
1440
|
+
if (state === "open" || state === "closed") return;
|
|
1441
|
+
if (state === "opening") {
|
|
1442
|
+
ref.current?.showModal();
|
|
1443
|
+
onOpenAnimationStart?.();
|
|
1444
|
+
} else if (state === "closing") {
|
|
1445
|
+
onCloseAnimationStart?.();
|
|
1446
|
+
}
|
|
1447
|
+
const duration = window.getComputedStyle(ref.current).animationDuration;
|
|
1448
|
+
const durationMs = parseFloat(duration) * 1e3;
|
|
1449
|
+
const timeout = setTimeout(() => {
|
|
1450
|
+
if (state === "opening") {
|
|
1451
|
+
setState("open");
|
|
1452
|
+
onOpenAnimationComplete?.();
|
|
1453
|
+
} else if (state === "closing") {
|
|
1454
|
+
setState("closed");
|
|
1455
|
+
ref.current?.close();
|
|
1456
|
+
onCloseAnimationComplete?.();
|
|
1457
|
+
}
|
|
1458
|
+
}, durationMs);
|
|
1459
|
+
return () => {
|
|
1460
|
+
clearTimeout(timeout);
|
|
1461
|
+
};
|
|
1462
|
+
}, [
|
|
1463
|
+
state,
|
|
1464
|
+
ref,
|
|
1465
|
+
onOpenAnimationComplete,
|
|
1466
|
+
onCloseAnimationComplete,
|
|
1467
|
+
onOpenAnimationStart,
|
|
1468
|
+
onCloseAnimationStart
|
|
1469
|
+
]);
|
|
1470
|
+
const beginClosing = useCallback(() => {
|
|
1471
|
+
setState("closing");
|
|
1472
|
+
}, []);
|
|
1473
|
+
return {
|
|
1474
|
+
state,
|
|
1475
|
+
beginClosing,
|
|
1476
|
+
isOpenOrOpening: state === "open" || state === "opening",
|
|
1477
|
+
isClosedOrClosing: state === "closed" || state === "closing"
|
|
1478
|
+
};
|
|
1479
|
+
};
|
|
1480
|
+
|
|
1400
1481
|
const drawer = "_drawer_vyd6b_3";
|
|
1401
1482
|
const container = "_container_vyd6b_29";
|
|
1402
1483
|
const content = "_content_vyd6b_42";
|
|
@@ -1506,6 +1587,9 @@ const DrawerElement = forwardRef(
|
|
|
1506
1587
|
children,
|
|
1507
1588
|
onOpen,
|
|
1508
1589
|
onClose,
|
|
1590
|
+
/* eslint-disable-next-line @typescript-eslint/no-unused-vars --
|
|
1591
|
+
onCancel is destructured so that it is not passed to the dialog in ...rest
|
|
1592
|
+
*/
|
|
1509
1593
|
onCancel,
|
|
1510
1594
|
onClick,
|
|
1511
1595
|
onKeyDown,
|
|
@@ -1513,16 +1597,35 @@ const DrawerElement = forwardRef(
|
|
|
1513
1597
|
disableCloseOnClickOutside = false,
|
|
1514
1598
|
size = "medium",
|
|
1515
1599
|
enableScrollChaining,
|
|
1600
|
+
onOpenAnimationStart,
|
|
1601
|
+
onOpenAnimationComplete,
|
|
1602
|
+
onCloseAnimationStart,
|
|
1603
|
+
onCloseAnimationComplete,
|
|
1516
1604
|
...rest
|
|
1517
1605
|
} = props;
|
|
1518
1606
|
const elRef = useRef(null);
|
|
1519
1607
|
const contentRef = useRef(null);
|
|
1520
1608
|
const toasterRef = useRef(null);
|
|
1521
1609
|
const combinedRef = useMergeRefs([elRef, ref]);
|
|
1522
|
-
const [remove, setRemove] = useState(false);
|
|
1523
1610
|
const id = useId();
|
|
1524
|
-
const
|
|
1525
|
-
|
|
1611
|
+
const { state, isOpenOrOpening, beginClosing } = useDialogTransitionStates(
|
|
1612
|
+
elRef,
|
|
1613
|
+
open,
|
|
1614
|
+
{
|
|
1615
|
+
onOpenAnimationStart,
|
|
1616
|
+
onOpenAnimationComplete: useCallback(() => {
|
|
1617
|
+
onOpenAnimationComplete?.();
|
|
1618
|
+
onOpen?.();
|
|
1619
|
+
}, [onOpen, onOpenAnimationComplete]),
|
|
1620
|
+
onCloseAnimationStart,
|
|
1621
|
+
onCloseAnimationComplete: useCallback(() => {
|
|
1622
|
+
onCloseAnimationComplete?.();
|
|
1623
|
+
onClose?.();
|
|
1624
|
+
}, [onClose, onCloseAnimationComplete])
|
|
1625
|
+
}
|
|
1626
|
+
);
|
|
1627
|
+
const classNames = cx([styles$1.drawer], className, {
|
|
1628
|
+
[styles$1.remove]: state === "closing",
|
|
1526
1629
|
[styles$1.large]: size === "large"
|
|
1527
1630
|
});
|
|
1528
1631
|
const { focusables } = useKeyboardFocusables(contentRef, {
|
|
@@ -1531,25 +1634,13 @@ const DrawerElement = forwardRef(
|
|
|
1531
1634
|
const firstFocusable = focusables?.[0];
|
|
1532
1635
|
const lastFocusable = focusables?.[focusables.length - 1];
|
|
1533
1636
|
useDialogScrollLock({
|
|
1534
|
-
open,
|
|
1637
|
+
open: isOpenOrOpening,
|
|
1535
1638
|
id,
|
|
1536
1639
|
enableScrollChaining,
|
|
1537
1640
|
elementRef: elRef
|
|
1538
1641
|
});
|
|
1539
1642
|
useEffect(() => {
|
|
1540
|
-
if (
|
|
1541
|
-
onOpen?.();
|
|
1542
|
-
elRef.current?.showModal();
|
|
1543
|
-
return;
|
|
1544
|
-
}
|
|
1545
|
-
setRemove(true);
|
|
1546
|
-
setTimeout(() => {
|
|
1547
|
-
elRef.current?.close();
|
|
1548
|
-
setRemove(false);
|
|
1549
|
-
}, 200);
|
|
1550
|
-
}, [onOpen, open]);
|
|
1551
|
-
useEffect(() => {
|
|
1552
|
-
if (!open) return;
|
|
1643
|
+
if (!isOpenOrOpening) return;
|
|
1553
1644
|
if (!focusables) return;
|
|
1554
1645
|
const activeElement = getActiveElement(document);
|
|
1555
1646
|
if (!activeElement) return;
|
|
@@ -1561,11 +1652,11 @@ const DrawerElement = forwardRef(
|
|
|
1561
1652
|
} else {
|
|
1562
1653
|
focusables[0]?.focus();
|
|
1563
1654
|
}
|
|
1564
|
-
}, [
|
|
1655
|
+
}, [isOpenOrOpening, focusables]);
|
|
1565
1656
|
const onCancelHandler = (e) => {
|
|
1566
1657
|
e.preventDefault();
|
|
1567
1658
|
if (disableCloseOnEscape) return;
|
|
1568
|
-
|
|
1659
|
+
beginClosing();
|
|
1569
1660
|
};
|
|
1570
1661
|
const onClickHandler = (e) => {
|
|
1571
1662
|
onClick?.(e);
|
|
@@ -1573,7 +1664,7 @@ const DrawerElement = forwardRef(
|
|
|
1573
1664
|
if (!contentRef.current?.contains(target) && !toasterRef.current?.contains(target)) {
|
|
1574
1665
|
e.preventDefault();
|
|
1575
1666
|
if (disableCloseOnClickOutside) return;
|
|
1576
|
-
|
|
1667
|
+
beginClosing();
|
|
1577
1668
|
}
|
|
1578
1669
|
};
|
|
1579
1670
|
const onKeyDownHandler = (e) => {
|
|
@@ -1591,38 +1682,32 @@ const DrawerElement = forwardRef(
|
|
|
1591
1682
|
}
|
|
1592
1683
|
}
|
|
1593
1684
|
};
|
|
1594
|
-
const
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
setTimeout(() => {
|
|
1598
|
-
elRef.current?.close();
|
|
1599
|
-
onClose?.();
|
|
1600
|
-
}, 200);
|
|
1601
|
-
};
|
|
1602
|
-
return { close };
|
|
1603
|
-
}, [onClose]);
|
|
1685
|
+
const contextValue = useMemo(() => {
|
|
1686
|
+
return { close: beginClosing };
|
|
1687
|
+
}, [beginClosing]);
|
|
1604
1688
|
return (
|
|
1605
1689
|
// dialog element does seem to be interactive on MDN guideline
|
|
1606
1690
|
// eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
1607
1691
|
/* @__PURE__ */ jsxs(
|
|
1608
1692
|
"dialog",
|
|
1609
1693
|
{
|
|
1610
|
-
className:
|
|
1694
|
+
className: classNames,
|
|
1611
1695
|
"data-anv": "drawer",
|
|
1612
1696
|
"data-anv-scroll-chaining": enableScrollChaining,
|
|
1697
|
+
"data-anv-transition-state": state,
|
|
1613
1698
|
ref: combinedRef,
|
|
1614
1699
|
onCancel: onCancelHandler,
|
|
1615
1700
|
onClick: onClickHandler,
|
|
1616
1701
|
onKeyDown: onKeyDownHandler,
|
|
1617
1702
|
...rest,
|
|
1618
1703
|
children: [
|
|
1619
|
-
/* @__PURE__ */ jsx(ToastProvider, { isDialogToaster:
|
|
1620
|
-
/* @__PURE__ */ jsx(DrawerContext.Provider, { value, children: /* @__PURE__ */ jsx(
|
|
1704
|
+
/* @__PURE__ */ jsx(ToastProvider, { isDialogToaster: isOpenOrOpening, children: /* @__PURE__ */ jsx(ToasterPopover, { children: /* @__PURE__ */ jsx(ToasterContent, { id: "drawer-toaster", ref: toasterRef }) }) }),
|
|
1705
|
+
/* @__PURE__ */ jsx(DrawerContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(
|
|
1621
1706
|
"section",
|
|
1622
1707
|
{
|
|
1623
1708
|
ref: contentRef,
|
|
1624
1709
|
className: styles$1.container,
|
|
1625
|
-
"data-open":
|
|
1710
|
+
"data-open": isOpenOrOpening,
|
|
1626
1711
|
children
|
|
1627
1712
|
}
|
|
1628
1713
|
) })
|
|
@@ -2109,7 +2194,7 @@ const TooltipElement = (props) => {
|
|
|
2109
2194
|
clearTimeout(openTimeoutRef.current);
|
|
2110
2195
|
if (!tooltip || !rootNode?.querySelector(`#${tooltipId}`)) return;
|
|
2111
2196
|
openTimeoutRef.current = setTimeout(() => {
|
|
2112
|
-
tooltip
|
|
2197
|
+
safeShowPopover(tooltip);
|
|
2113
2198
|
setOpenState(true);
|
|
2114
2199
|
}, delay);
|
|
2115
2200
|
}, [tooltip, rootNode, tooltipId, delay]);
|
|
@@ -2121,7 +2206,7 @@ const TooltipElement = (props) => {
|
|
|
2121
2206
|
closeTimeoutRef.current = setTimeout(() => {
|
|
2122
2207
|
fn?.();
|
|
2123
2208
|
setOpenState(false);
|
|
2124
|
-
tooltip
|
|
2209
|
+
safeHidePopover(tooltip);
|
|
2125
2210
|
}, 100);
|
|
2126
2211
|
},
|
|
2127
2212
|
[openState, tooltip]
|
|
@@ -2353,5 +2438,5 @@ const ProgressBar = forwardRef(
|
|
|
2353
2438
|
);
|
|
2354
2439
|
ProgressBar.displayName = "ProgressBar";
|
|
2355
2440
|
|
|
2356
|
-
export { DrawerCancelButton as D, Helper as H, 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,
|
|
2357
|
-
//# sourceMappingURL=ProgressBar-
|
|
2441
|
+
export { DrawerCancelButton as D, Helper as H, 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, useKeyboardFocusables as j, useDialogScrollLock as k, ToastProvider as l, ToasterPopover as m, ToasterContent as n, DrawerContext as o, safeShowPopover as p, safeHidePopover as q, supportsPopover as s, toast as t, useDialogTransitionStates as u };
|
|
2442
|
+
//# sourceMappingURL=ProgressBar-BwVBP0xG-Be45r3EG.js.map
|