@activecollab/components 2.0.545 → 2.0.547
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/dist/cjs/components/Dialog/DialogTitle.js +1 -1
- package/dist/cjs/components/Dialog/DialogTitle.js.map +1 -1
- package/dist/cjs/components/Dialog/Styles.js +10 -5
- package/dist/cjs/components/Dialog/Styles.js.map +1 -1
- package/dist/cjs/components/FilterInput/FilterInput.styles.js +2 -2
- package/dist/cjs/components/FilterInput/FilterInput.styles.js.map +1 -1
- package/dist/cjs/components/Menu/Menu.js +6 -2
- package/dist/cjs/components/Menu/Menu.js.map +1 -1
- package/dist/cjs/components/Tooltip/Tooltip.js +14 -3
- package/dist/cjs/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/esm/components/Dialog/DialogTitle.d.ts.map +1 -1
- package/dist/esm/components/Dialog/DialogTitle.js +2 -2
- package/dist/esm/components/Dialog/DialogTitle.js.map +1 -1
- package/dist/esm/components/Dialog/Styles.d.ts +1 -0
- package/dist/esm/components/Dialog/Styles.d.ts.map +1 -1
- package/dist/esm/components/Dialog/Styles.js +9 -4
- package/dist/esm/components/Dialog/Styles.js.map +1 -1
- package/dist/esm/components/FilterInput/FilterInput.styles.d.ts.map +1 -1
- package/dist/esm/components/FilterInput/FilterInput.styles.js +2 -2
- package/dist/esm/components/FilterInput/FilterInput.styles.js.map +1 -1
- package/dist/esm/components/Menu/Menu.d.ts.map +1 -1
- package/dist/esm/components/Menu/Menu.js +6 -2
- package/dist/esm/components/Menu/Menu.js.map +1 -1
- package/dist/esm/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/esm/components/Tooltip/Tooltip.js +14 -3
- package/dist/esm/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/index.js +32 -12
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -17417,7 +17417,11 @@
|
|
|
17417
17417
|
focusWasVisible.current = isFocusVisible(document.activeElement);
|
|
17418
17418
|
}
|
|
17419
17419
|
wasOpen.current = open;
|
|
17420
|
-
|
|
17420
|
+
|
|
17421
|
+
// Layout effects, so a menu that closes in the same update in which an item opens a dialog gives the focus back to
|
|
17422
|
+
// its trigger before the dialog calls showModal. The dialog then returns the focus to the trigger, not to an item
|
|
17423
|
+
// that is gone.
|
|
17424
|
+
React.useLayoutEffect(function () {
|
|
17421
17425
|
setOpen(defaultOpen);
|
|
17422
17426
|
}, [defaultOpen]);
|
|
17423
17427
|
React.useEffect(function () {
|
|
@@ -17576,7 +17580,7 @@
|
|
|
17576
17580
|
document.removeEventListener("pointerdown", closeOnPressOutside);
|
|
17577
17581
|
};
|
|
17578
17582
|
}, [open]);
|
|
17579
|
-
React.
|
|
17583
|
+
React.useLayoutEffect(function () {
|
|
17580
17584
|
if (open) {
|
|
17581
17585
|
isOpenAtLeastOnce.current = true;
|
|
17582
17586
|
} else if (!open && isOpenAtLeastOnce.current) {
|
|
@@ -18325,12 +18329,23 @@
|
|
|
18325
18329
|
setArmed = _useState4[1];
|
|
18326
18330
|
// A ref, not state: state would render every tooltip again right after it mounts.
|
|
18327
18331
|
var childNode = React.useRef(null);
|
|
18328
|
-
|
|
18332
|
+
var lastChildNode = React.useRef(null);
|
|
18333
|
+
// A trigger that leaves the page sends no mouseleave, so its tooltip closes here. A router link hands a new ref
|
|
18334
|
+
// callback on every render, so a null that the same node follows in the same commit is no leave.
|
|
18329
18335
|
var setChildNode = React.useCallback(function (node) {
|
|
18330
18336
|
childNode.current = node;
|
|
18331
|
-
if (
|
|
18332
|
-
|
|
18337
|
+
if (node) {
|
|
18338
|
+
if (lastChildNode.current && node !== lastChildNode.current) {
|
|
18339
|
+
setOpen(false);
|
|
18340
|
+
}
|
|
18341
|
+
lastChildNode.current = node;
|
|
18342
|
+
return;
|
|
18333
18343
|
}
|
|
18344
|
+
Promise.resolve().then(function () {
|
|
18345
|
+
if (!childNode.current) {
|
|
18346
|
+
setOpen(false);
|
|
18347
|
+
}
|
|
18348
|
+
});
|
|
18334
18349
|
}, []);
|
|
18335
18350
|
|
|
18336
18351
|
// A mouseleave can also get lost under a still pointer, so any pointer move outside the trigger closes it.
|
|
@@ -18892,26 +18907,31 @@
|
|
|
18892
18907
|
componentId: "sc-jwpvgm-3"
|
|
18893
18908
|
})(["position:relative;display:flex;align-items:center;padding-right:", "px;"], CLOSE_RESERVE);
|
|
18894
18909
|
StyledDialogTitleBar.displayName = "StyledDialogTitleBar";
|
|
18910
|
+
var StyledDialogTitleHeading = styled__default["default"].div.withConfig({
|
|
18911
|
+
displayName: "Styles__StyledDialogTitleHeading",
|
|
18912
|
+
componentId: "sc-jwpvgm-4"
|
|
18913
|
+
})(["flex:1;min-width:0;"]);
|
|
18914
|
+
StyledDialogTitleHeading.displayName = "StyledDialogTitleHeading";
|
|
18895
18915
|
var StyledDialogTitleClose = styled__default["default"].div.withConfig({
|
|
18896
18916
|
displayName: "Styles__StyledDialogTitleClose",
|
|
18897
|
-
componentId: "sc-jwpvgm-
|
|
18917
|
+
componentId: "sc-jwpvgm-5"
|
|
18898
18918
|
})(["position:absolute;right:-", "px;top:50%;transform:translateY(-50%);line-height:0;"], CLOSE_OFFSET);
|
|
18899
18919
|
StyledDialogTitleClose.displayName = "StyledDialogTitleClose";
|
|
18900
18920
|
var StyledDialogContent = styled__default["default"].div.withConfig({
|
|
18901
18921
|
displayName: "Styles__StyledDialogContent",
|
|
18902
|
-
componentId: "sc-jwpvgm-
|
|
18922
|
+
componentId: "sc-jwpvgm-6"
|
|
18903
18923
|
})(["padding:20px 30px;flex:1 1 auto;min-height:0;overscroll-behavior:contain;overflow-y:", ";", " ", ""], function (props) {
|
|
18904
18924
|
return props.$scroll ? "auto" : "visible";
|
|
18905
18925
|
}, FontStyle, BoxSizingStyle);
|
|
18906
18926
|
StyledDialogContent.displayName = "StyledDialogContent";
|
|
18907
18927
|
var StyledDialogContentDivider = styled__default["default"].div.withConfig({
|
|
18908
18928
|
displayName: "Styles__StyledDialogContentDivider",
|
|
18909
|
-
componentId: "sc-jwpvgm-
|
|
18929
|
+
componentId: "sc-jwpvgm-7"
|
|
18910
18930
|
})(["border-top:1px solid var(--border-primary);height:1px;flex:0 0 auto;"]);
|
|
18911
18931
|
StyledDialogContentDivider.displayName = "StyledDialogContentDivider";
|
|
18912
18932
|
var StyledDialogActions = styled__default["default"].div.withConfig({
|
|
18913
18933
|
displayName: "Styles__StyledDialogActions",
|
|
18914
|
-
componentId: "sc-jwpvgm-
|
|
18934
|
+
componentId: "sc-jwpvgm-8"
|
|
18915
18935
|
})(["padding:20px 30px;flex:0 0 auto;display:flex;align-items:center;gap:12px;", " ", ""], FontStyle, BoxSizingStyle);
|
|
18916
18936
|
StyledDialogActions.displayName = "StyledDialogActions";
|
|
18917
18937
|
|
|
@@ -19560,7 +19580,7 @@
|
|
|
19560
19580
|
}, [registerTitle]);
|
|
19561
19581
|
var heading;
|
|
19562
19582
|
if (disableDefaultHeading) {
|
|
19563
|
-
heading = titleId ? /*#__PURE__*/React__default["default"].createElement(
|
|
19583
|
+
heading = titleId ? /*#__PURE__*/React__default["default"].createElement(StyledDialogTitleHeading, {
|
|
19564
19584
|
id: titleId
|
|
19565
19585
|
}, children) : children;
|
|
19566
19586
|
} else if (titleId) {
|
|
@@ -33752,10 +33772,10 @@
|
|
|
33752
33772
|
componentId: "sc-bna484-0"
|
|
33753
33773
|
})(["&&{background-color:var(--color-theme-300);border-color:transparent;border-radius:16px;height:32px;padding-block:1px;padding-inline:8px;transition:background-color 150ms ease,box-shadow 150ms ease;width:120px;.c-input{background-color:transparent;}> svg:first-child{fill:var(--color-theme-700);flex-shrink:0;}&:hover:not(:focus-within){background-image:linear-gradient( color-mix(in srgb,var(--color-theme-900) 16%,transparent),color-mix(in srgb,var(--color-theme-900) 16%,transparent) );}", " &:focus-within{border-color:transparent;box-shadow:0 0 0 2px var(--color-primary);}}&&&.c-filter-input--split{background-color:transparent;border-radius:16px 0 0 16px;height:32px;padding-inline:10px;width:130px;", " &:focus-within{box-shadow:inset 0 0 0 2px var(--color-primary);}button{background:none;height:20px;left:4px;min-height:20px;min-width:20px;width:20px;&:hover{background:none;opacity:0.8;}svg{fill:var(--color-primary);height:20px;width:20px;}}}"], function (_ref) {
|
|
33754
33774
|
var $active = _ref.$active;
|
|
33755
|
-
return $active && styled.css(["background-color:var(--page-paper-main);box-shadow:var(--shadow-float);> svg:first-child{fill:var(--color-theme-900);}"]);
|
|
33775
|
+
return $active && styled.css(["background-color:var(--page-paper-main);box-shadow:0 0 0 2px var(--color-primary),var(--shadow-float);> svg:first-child{fill:var(--color-theme-900);}"]);
|
|
33756
33776
|
}, function (_ref2) {
|
|
33757
33777
|
var $active = _ref2.$active;
|
|
33758
|
-
return $active && styled.css(["background-color:var(--page-paper-main);"]);
|
|
33778
|
+
return $active && styled.css(["background-color:var(--page-paper-main);box-shadow:inset 0 0 0 2px var(--color-primary);"]);
|
|
33759
33779
|
});
|
|
33760
33780
|
var StyledClearButton = styled__default["default"](IconButton).withConfig({
|
|
33761
33781
|
displayName: "FilterInputstyles__StyledClearButton",
|