@activecollab/components 2.0.542 → 2.0.544
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/CommandPalette/CommandPalette.js +3 -1
- package/dist/cjs/components/CommandPalette/CommandPalette.js.map +1 -1
- package/dist/cjs/components/ConfirmDialog/ConfirmDialog.js +4 -4
- package/dist/cjs/components/ConfirmDialog/ConfirmDialog.js.map +1 -1
- package/dist/cjs/components/Dialog/Dialog.js +12 -9
- package/dist/cjs/components/Dialog/Dialog.js.map +1 -1
- package/dist/cjs/components/Dialog/DialogContext.js.map +1 -1
- package/dist/cjs/components/Dialog/DialogFrame.js +24 -103
- package/dist/cjs/components/Dialog/DialogFrame.js.map +1 -1
- package/dist/cjs/components/Dialog/usePropWarning.js +34 -0
- package/dist/cjs/components/Dialog/usePropWarning.js.map +1 -0
- package/dist/cjs/components/ModalRoot/ModalRoot.js +32 -8
- package/dist/cjs/components/ModalRoot/ModalRoot.js.map +1 -1
- package/dist/cjs/components/ModalRoot/modalRootStack.js +18 -4
- package/dist/cjs/components/ModalRoot/modalRootStack.js.map +1 -1
- package/dist/cjs/components/ObjectFormModal/ObjectFormModal.js +13 -12
- package/dist/cjs/components/ObjectFormModal/ObjectFormModal.js.map +1 -1
- package/dist/cjs/components/Sheet/Sheet.js +17 -5
- package/dist/cjs/components/Sheet/Sheet.js.map +1 -1
- package/dist/cjs/components/Sheet/useHostAboveOpenModal.js +7 -0
- package/dist/cjs/components/Sheet/useHostAboveOpenModal.js.map +1 -1
- package/dist/cjs/components/Wizard/Wizard.js +1 -0
- package/dist/cjs/components/Wizard/Wizard.js.map +1 -1
- package/dist/cjs/presentation/listView/columns.js +622 -184
- package/dist/cjs/presentation/listView/columns.js.map +1 -1
- package/dist/cjs/presentation/myWork/MyWorkListSettingsDialog.js +1 -1
- package/dist/cjs/presentation/myWork/MyWorkListSettingsDialog.js.map +1 -1
- package/dist/cjs/presentation/reports/availabilityExport.js +1 -1
- package/dist/cjs/presentation/reports/availabilityExport.js.map +1 -1
- package/dist/cjs/presentation/selfHostedRedesign/parts.js +6 -6
- package/dist/cjs/presentation/selfHostedRedesign/parts.js.map +1 -1
- package/dist/cjs/presentation/shared/LinkingCommandsButton.js +1 -1
- package/dist/cjs/presentation/shared/LinkingCommandsButton.js.map +1 -1
- package/dist/cjs/presentation/shared/MessageDialog.js +1 -1
- package/dist/cjs/presentation/shared/MessageDialog.js.map +1 -1
- package/dist/cjs/presentation/shared/MessageFeedback.js +1 -1
- package/dist/cjs/presentation/shared/MessageFeedback.js.map +1 -1
- package/dist/cjs/presentation/shared/ProjectOptionsMenu.js +1 -1
- package/dist/cjs/presentation/shared/ProjectOptionsMenu.js.map +1 -1
- package/dist/cjs/presentation/shared/SourceCodeSection.js +2 -2
- package/dist/cjs/presentation/shared/SourceCodeSection.js.map +1 -1
- package/dist/cjs/presentation/shared/UserDetailsDialog.js +1 -1
- package/dist/cjs/presentation/shared/UserDetailsDialog.js.map +1 -1
- package/dist/cjs/presentation/shared/WebhookLogsDialog.js +1 -1
- package/dist/cjs/presentation/shared/WebhookLogsDialog.js.map +1 -1
- package/dist/cjs/presentation/shared/selfHostedSettings.js +1 -1
- package/dist/cjs/presentation/shared/selfHostedSettings.js.map +1 -1
- package/dist/cjs/presentation/shared/selfHostedUpgrade.js +3 -3
- package/dist/cjs/presentation/shared/selfHostedUpgrade.js.map +1 -1
- package/dist/cjs/presentation/shared/systemSettingsDialog.js +1 -1
- package/dist/cjs/presentation/shared/systemSettingsDialog.js.map +1 -1
- package/dist/cjs/presentation/whiteboard/peopleMenu.js +1 -1
- package/dist/cjs/presentation/whiteboard/peopleMenu.js.map +1 -1
- package/dist/cjs/presentation/whiteboard/projectElements.js +1 -1
- package/dist/cjs/presentation/whiteboard/projectElements.js.map +1 -1
- package/dist/esm/components/CommandPalette/CommandPalette.d.ts +2 -2
- package/dist/esm/components/CommandPalette/CommandPalette.d.ts.map +1 -1
- package/dist/esm/components/CommandPalette/CommandPalette.js +3 -1
- package/dist/esm/components/CommandPalette/CommandPalette.js.map +1 -1
- package/dist/esm/components/ConfirmDialog/ConfirmDialog.d.ts +5 -2
- package/dist/esm/components/ConfirmDialog/ConfirmDialog.d.ts.map +1 -1
- package/dist/esm/components/ConfirmDialog/ConfirmDialog.js +4 -4
- package/dist/esm/components/ConfirmDialog/ConfirmDialog.js.map +1 -1
- package/dist/esm/components/DatePicker/Styles.d.ts +1 -1
- package/dist/esm/components/DatePicker/Styles.d.ts.map +1 -1
- package/dist/esm/components/Dialog/Dialog.d.ts +22 -4
- package/dist/esm/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/esm/components/Dialog/Dialog.js +12 -9
- package/dist/esm/components/Dialog/Dialog.js.map +1 -1
- package/dist/esm/components/Dialog/DialogContext.d.ts +2 -2
- package/dist/esm/components/Dialog/DialogContext.d.ts.map +1 -1
- package/dist/esm/components/Dialog/DialogContext.js.map +1 -1
- package/dist/esm/components/Dialog/DialogFrame.d.ts +5 -6
- package/dist/esm/components/Dialog/DialogFrame.d.ts.map +1 -1
- package/dist/esm/components/Dialog/DialogFrame.js +26 -103
- package/dist/esm/components/Dialog/DialogFrame.js.map +1 -1
- package/dist/esm/components/Dialog/usePropWarning.d.ts +13 -0
- package/dist/esm/components/Dialog/usePropWarning.d.ts.map +1 -0
- package/dist/esm/components/Dialog/usePropWarning.js +26 -0
- package/dist/esm/components/Dialog/usePropWarning.js.map +1 -0
- package/dist/esm/components/ModalRoot/ModalRoot.d.ts +10 -0
- package/dist/esm/components/ModalRoot/ModalRoot.d.ts.map +1 -1
- package/dist/esm/components/ModalRoot/ModalRoot.js +32 -8
- package/dist/esm/components/ModalRoot/ModalRoot.js.map +1 -1
- package/dist/esm/components/ModalRoot/modalRootStack.d.ts +8 -2
- package/dist/esm/components/ModalRoot/modalRootStack.d.ts.map +1 -1
- package/dist/esm/components/ModalRoot/modalRootStack.js +18 -4
- package/dist/esm/components/ModalRoot/modalRootStack.js.map +1 -1
- package/dist/esm/components/ObjectFormModal/ObjectFormModal.d.ts +9 -1
- package/dist/esm/components/ObjectFormModal/ObjectFormModal.d.ts.map +1 -1
- package/dist/esm/components/ObjectFormModal/ObjectFormModal.js +13 -12
- package/dist/esm/components/ObjectFormModal/ObjectFormModal.js.map +1 -1
- package/dist/esm/components/SelectDate/Styles.d.ts +1 -1
- package/dist/esm/components/SelectDate/Styles.d.ts.map +1 -1
- package/dist/esm/components/Sheet/Sheet.d.ts +6 -1
- package/dist/esm/components/Sheet/Sheet.d.ts.map +1 -1
- package/dist/esm/components/Sheet/Sheet.js +17 -5
- package/dist/esm/components/Sheet/Sheet.js.map +1 -1
- package/dist/esm/components/Sheet/useHostAboveOpenModal.d.ts.map +1 -1
- package/dist/esm/components/Sheet/useHostAboveOpenModal.js +9 -2
- package/dist/esm/components/Sheet/useHostAboveOpenModal.js.map +1 -1
- package/dist/esm/components/Wizard/Wizard.d.ts +1 -1
- package/dist/esm/components/Wizard/Wizard.d.ts.map +1 -1
- package/dist/esm/components/Wizard/Wizard.js +1 -0
- package/dist/esm/components/Wizard/Wizard.js.map +1 -1
- package/dist/esm/presentation/listView/columns.d.ts +20 -7
- package/dist/esm/presentation/listView/columns.d.ts.map +1 -1
- package/dist/esm/presentation/listView/columns.js +538 -166
- package/dist/esm/presentation/listView/columns.js.map +1 -1
- package/dist/esm/presentation/myWork/MyWorkListSettingsDialog.js +1 -1
- package/dist/esm/presentation/myWork/MyWorkListSettingsDialog.js.map +1 -1
- package/dist/esm/presentation/reports/availabilityExport.js +1 -1
- package/dist/esm/presentation/reports/availabilityExport.js.map +1 -1
- package/dist/esm/presentation/selfHostedRedesign/parts.js +6 -6
- package/dist/esm/presentation/selfHostedRedesign/parts.js.map +1 -1
- package/dist/esm/presentation/shared/LinkingCommandsButton.js +1 -1
- package/dist/esm/presentation/shared/LinkingCommandsButton.js.map +1 -1
- package/dist/esm/presentation/shared/MessageDialog.js +1 -1
- package/dist/esm/presentation/shared/MessageDialog.js.map +1 -1
- package/dist/esm/presentation/shared/MessageFeedback.js +1 -1
- package/dist/esm/presentation/shared/MessageFeedback.js.map +1 -1
- package/dist/esm/presentation/shared/ProjectOptionsMenu.js +1 -1
- package/dist/esm/presentation/shared/ProjectOptionsMenu.js.map +1 -1
- package/dist/esm/presentation/shared/SourceCodeSection.js +2 -2
- package/dist/esm/presentation/shared/SourceCodeSection.js.map +1 -1
- package/dist/esm/presentation/shared/UserDetailsDialog.js +1 -1
- package/dist/esm/presentation/shared/UserDetailsDialog.js.map +1 -1
- package/dist/esm/presentation/shared/WebhookLogsDialog.js +1 -1
- package/dist/esm/presentation/shared/WebhookLogsDialog.js.map +1 -1
- package/dist/esm/presentation/shared/selfHostedSettings.js +1 -1
- package/dist/esm/presentation/shared/selfHostedSettings.js.map +1 -1
- package/dist/esm/presentation/shared/selfHostedUpgrade.js +3 -3
- package/dist/esm/presentation/shared/selfHostedUpgrade.js.map +1 -1
- package/dist/esm/presentation/shared/systemSettingsDialog.d.ts.map +1 -1
- package/dist/esm/presentation/shared/systemSettingsDialog.js +1 -1
- package/dist/esm/presentation/shared/systemSettingsDialog.js.map +1 -1
- package/dist/esm/presentation/whiteboard/peopleMenu.js +1 -1
- package/dist/esm/presentation/whiteboard/peopleMenu.js.map +1 -1
- package/dist/esm/presentation/whiteboard/projectElements.js +1 -1
- package/dist/esm/presentation/whiteboard/projectElements.js.map +1 -1
- package/dist/index.js +368 -364
- 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
|
@@ -18987,128 +18987,6 @@
|
|
|
18987
18987
|
return providedId !== null && providedId !== void 0 ? providedId : generatedId;
|
|
18988
18988
|
}
|
|
18989
18989
|
|
|
18990
|
-
function createChainedFunction() {
|
|
18991
|
-
for (var _len = arguments.length, functions = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
18992
|
-
functions[_key] = arguments[_key];
|
|
18993
|
-
}
|
|
18994
|
-
return functions.reduce(function (acc, func) {
|
|
18995
|
-
if (func === null) {
|
|
18996
|
-
return acc;
|
|
18997
|
-
}
|
|
18998
|
-
return function chainedFunction() {
|
|
18999
|
-
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
19000
|
-
args[_key2] = arguments[_key2];
|
|
19001
|
-
}
|
|
19002
|
-
acc && acc.apply(this, args);
|
|
19003
|
-
func && func.apply(this, args);
|
|
19004
|
-
};
|
|
19005
|
-
},
|
|
19006
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
19007
|
-
function () {});
|
|
19008
|
-
}
|
|
19009
|
-
|
|
19010
|
-
var _excluded$1P = ["children", "disableFocusLock", "disableScrollLock", "disableBackgroundClick", "disableBackgroundColor", "disableCloseOnEsc", "open", "overlayTimeout", "onClose", "onClickOutside"];
|
|
19011
|
-
var getHasTransition = function getHasTransition(children) {
|
|
19012
|
-
return children.props ? Object.prototype.hasOwnProperty.call(children.props, "in") : false;
|
|
19013
|
-
};
|
|
19014
|
-
|
|
19015
|
-
// The modal behind Dialog and ObjectFormModal. It stays out of the package index, so only the design system renders it.
|
|
19016
|
-
var ModalBase = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
19017
|
-
var children = _ref.children,
|
|
19018
|
-
_ref$disableFocusLock = _ref.disableFocusLock,
|
|
19019
|
-
disableFocusLock = _ref$disableFocusLock === void 0 ? false : _ref$disableFocusLock,
|
|
19020
|
-
_ref$disableScrollLoc = _ref.disableScrollLock,
|
|
19021
|
-
disableScrollLock = _ref$disableScrollLoc === void 0 ? false : _ref$disableScrollLoc,
|
|
19022
|
-
_ref$disableBackgroun = _ref.disableBackgroundClick,
|
|
19023
|
-
disableBackgroundClick = _ref$disableBackgroun === void 0 ? false : _ref$disableBackgroun,
|
|
19024
|
-
_ref$disableBackgroun2 = _ref.disableBackgroundColor,
|
|
19025
|
-
disableBackgroundColor = _ref$disableBackgroun2 === void 0 ? false : _ref$disableBackgroun2,
|
|
19026
|
-
_ref$disableCloseOnEs = _ref.disableCloseOnEsc,
|
|
19027
|
-
disableCloseOnEsc = _ref$disableCloseOnEs === void 0 ? false : _ref$disableCloseOnEs,
|
|
19028
|
-
_ref$open = _ref.open,
|
|
19029
|
-
defaultOpen = _ref$open === void 0 ? false : _ref$open,
|
|
19030
|
-
_ref$overlayTimeout = _ref.overlayTimeout,
|
|
19031
|
-
overlayTimeout = _ref$overlayTimeout === void 0 ? {
|
|
19032
|
-
enter: SLIDE_FROM_TOP_ENTER,
|
|
19033
|
-
exit: SLIDE_FROM_TOP_EXIT
|
|
19034
|
-
} : _ref$overlayTimeout,
|
|
19035
|
-
onClose = _ref.onClose,
|
|
19036
|
-
onClickOutside = _ref.onClickOutside,
|
|
19037
|
-
rest = _objectWithoutProperties(_ref, _excluded$1P);
|
|
19038
|
-
var _useState = React.useState(defaultOpen),
|
|
19039
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
19040
|
-
open = _useState2[0],
|
|
19041
|
-
setOpen = _useState2[1];
|
|
19042
|
-
var _useState3 = React.useState(true),
|
|
19043
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
19044
|
-
exited = _useState4[0],
|
|
19045
|
-
setExited = _useState4[1];
|
|
19046
|
-
var innerRef = React.useRef(null);
|
|
19047
|
-
var handleRef = useForkRef(innerRef, ref);
|
|
19048
|
-
var hasTransition = React.useMemo(function () {
|
|
19049
|
-
return getHasTransition(children);
|
|
19050
|
-
}, [children]);
|
|
19051
|
-
React.useEffect(function () {
|
|
19052
|
-
setOpen(defaultOpen);
|
|
19053
|
-
}, [defaultOpen]);
|
|
19054
|
-
var handleClose = React.useCallback(function () {
|
|
19055
|
-
setOpen(false);
|
|
19056
|
-
if (!hasTransition) {
|
|
19057
|
-
typeof onClose === "function" && onClose();
|
|
19058
|
-
}
|
|
19059
|
-
}, [hasTransition, onClose]);
|
|
19060
|
-
var handleBackgroundClick = React.useCallback(function (event) {
|
|
19061
|
-
if (!disableBackgroundClick) {
|
|
19062
|
-
event.preventDefault();
|
|
19063
|
-
return handleClose();
|
|
19064
|
-
}
|
|
19065
|
-
if (onClickOutside) {
|
|
19066
|
-
onClickOutside(event);
|
|
19067
|
-
}
|
|
19068
|
-
}, [disableBackgroundClick, onClickOutside, handleClose]);
|
|
19069
|
-
var handleEnter = React.useCallback(function () {
|
|
19070
|
-
setExited(false);
|
|
19071
|
-
}, []);
|
|
19072
|
-
var handleExited = React.useCallback(function () {
|
|
19073
|
-
setExited(true);
|
|
19074
|
-
typeof onClose === "function" && onClose();
|
|
19075
|
-
}, [onClose]);
|
|
19076
|
-
var childProps = React.useMemo(function () {
|
|
19077
|
-
var props = {};
|
|
19078
|
-
|
|
19079
|
-
// It's a Transition like component
|
|
19080
|
-
if (hasTransition && children) {
|
|
19081
|
-
props = {
|
|
19082
|
-
onEnter: createChainedFunction(handleEnter, children.props.onEnter),
|
|
19083
|
-
onExited: createChainedFunction(handleExited, children.props.onExited),
|
|
19084
|
-
in: open,
|
|
19085
|
-
forceClose: handleClose
|
|
19086
|
-
};
|
|
19087
|
-
}
|
|
19088
|
-
return props;
|
|
19089
|
-
}, [children, handleClose, handleEnter, handleExited, hasTransition, open]);
|
|
19090
|
-
if (!open && (!hasTransition || exited)) {
|
|
19091
|
-
return null;
|
|
19092
|
-
}
|
|
19093
|
-
return /*#__PURE__*/React__default["default"].createElement(Window, _extends({}, rest, {
|
|
19094
|
-
ref: handleRef,
|
|
19095
|
-
onClose: handleClose,
|
|
19096
|
-
disableFocusLock: disableFocusLock,
|
|
19097
|
-
disableScrollLock: disableScrollLock,
|
|
19098
|
-
disableCloseOnEsc: disableCloseOnEsc
|
|
19099
|
-
}), /*#__PURE__*/React__default["default"].createElement(Fade, {
|
|
19100
|
-
in: open,
|
|
19101
|
-
timeout: open ? overlayTimeout.enter : overlayTimeout.exit
|
|
19102
|
-
}, /*#__PURE__*/React__default["default"].createElement(Overlay, {
|
|
19103
|
-
onClick: handleBackgroundClick,
|
|
19104
|
-
disableBackgroundColor: disableBackgroundColor,
|
|
19105
|
-
style: {
|
|
19106
|
-
pointerEvents: open ? undefined : "none"
|
|
19107
|
-
}
|
|
19108
|
-
})), /*#__PURE__*/React.cloneElement(children, childProps));
|
|
19109
|
-
});
|
|
19110
|
-
ModalBase.displayName = "ModalBase";
|
|
19111
|
-
|
|
19112
18990
|
var listeners = new Set();
|
|
19113
18991
|
var stack = [];
|
|
19114
18992
|
var lastId = 0;
|
|
@@ -19119,11 +18997,13 @@
|
|
|
19119
18997
|
});
|
|
19120
18998
|
};
|
|
19121
18999
|
var pushModalRoot = function pushModalRoot(overlayRoot, suspension) {
|
|
19000
|
+
var belowOpenSheets = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
19122
19001
|
lastId += 1;
|
|
19123
19002
|
stack = [...stack, {
|
|
19124
19003
|
id: lastId,
|
|
19125
19004
|
overlayRoot,
|
|
19126
|
-
suspension
|
|
19005
|
+
suspension,
|
|
19006
|
+
belowOpenSheets
|
|
19127
19007
|
}];
|
|
19128
19008
|
|
|
19129
19009
|
// A modal root that opens while the others are suspended joins them, or it would leave the overlay inert.
|
|
@@ -19170,13 +19050,25 @@
|
|
|
19170
19050
|
return (_stack2 = stack[stack.length - 1]) === null || _stack2 === void 0 ? void 0 : _stack2.id;
|
|
19171
19051
|
};
|
|
19172
19052
|
|
|
19173
|
-
/**
|
|
19053
|
+
/**
|
|
19054
|
+
* The overlay root of the top modal root among those opened no later than the given one, or opened below open
|
|
19055
|
+
* sheets, skipping as above. A modal opened below open sheets counts whatever its id, so a sheet moves into it also
|
|
19056
|
+
* when another modal opened in between from outside the sheet.
|
|
19057
|
+
*/
|
|
19174
19058
|
var getModalOverlayRootUpTo = function getModalOverlayRootUpTo(id, outside) {
|
|
19175
19059
|
var _stack$filter$pop$ove2, _stack$filter$pop2;
|
|
19176
19060
|
return (_stack$filter$pop$ove2 = (_stack$filter$pop2 = stack.filter(function (entry) {
|
|
19177
|
-
return entry.id <= id && !isInside(entry, outside);
|
|
19061
|
+
return (entry.id <= id || entry.belowOpenSheets) && !isInside(entry, outside);
|
|
19178
19062
|
}).pop()) === null || _stack$filter$pop2 === void 0 ? void 0 : _stack$filter$pop2.overlayRoot) !== null && _stack$filter$pop$ove2 !== void 0 ? _stack$filter$pop$ove2 : null;
|
|
19179
19063
|
};
|
|
19064
|
+
|
|
19065
|
+
/** The id of the top modal root that opened below open sheets, or undefined when none is open. */
|
|
19066
|
+
var getTopModalRootIdBelowOpenSheets = function getTopModalRootIdBelowOpenSheets() {
|
|
19067
|
+
var _stack$filter$pop3;
|
|
19068
|
+
return (_stack$filter$pop3 = stack.filter(function (entry) {
|
|
19069
|
+
return entry.belowOpenSheets;
|
|
19070
|
+
}).pop()) === null || _stack$filter$pop3 === void 0 ? void 0 : _stack$filter$pop3.id;
|
|
19071
|
+
};
|
|
19180
19072
|
var subscribeToModalRoots = function subscribeToModalRoots(listener) {
|
|
19181
19073
|
listeners.add(listener);
|
|
19182
19074
|
return function () {
|
|
@@ -19228,7 +19120,7 @@
|
|
|
19228
19120
|
})(["", " ", " position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:var(--modal-background);color:inherit;overflow:visible;animation:", " ", "ms ease;transition:background-color ", "ms ease;&[data-state=\"closing\"]{background-color:transparent;}&:focus-visible{outline:none;}&::backdrop{background:transparent;}"], FontStyle, BoxSizingStyle, backdropIn, MODAL_ROOT_BACKDROP_MS, MODAL_ROOT_BACKDROP_MS);
|
|
19229
19121
|
StyledModalRoot.displayName = "StyledModalRoot";
|
|
19230
19122
|
|
|
19231
|
-
var _excluded$
|
|
19123
|
+
var _excluded$1P = ["open", "onRequestClose", "onDismissBlocked", "onClose", "disableCloseOnEsc", "disableBackgroundClick", "disableScrollLock", "disableReturnFocus", "belowOpenSheets", "children", "className", "onPointerDown", "onClick", "onKeyDown"];
|
|
19232
19124
|
var ModalRoot = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
19233
19125
|
var open = _ref.open,
|
|
19234
19126
|
onRequestClose = _ref.onRequestClose,
|
|
@@ -19240,12 +19132,16 @@
|
|
|
19240
19132
|
disableBackgroundClick = _ref$disableBackgroun === void 0 ? false : _ref$disableBackgroun,
|
|
19241
19133
|
_ref$disableScrollLoc = _ref.disableScrollLock,
|
|
19242
19134
|
disableScrollLock = _ref$disableScrollLoc === void 0 ? false : _ref$disableScrollLoc,
|
|
19135
|
+
_ref$disableReturnFoc = _ref.disableReturnFocus,
|
|
19136
|
+
disableReturnFocus = _ref$disableReturnFoc === void 0 ? false : _ref$disableReturnFoc,
|
|
19137
|
+
_ref$belowOpenSheets = _ref.belowOpenSheets,
|
|
19138
|
+
belowOpenSheets = _ref$belowOpenSheets === void 0 ? false : _ref$belowOpenSheets,
|
|
19243
19139
|
children = _ref.children,
|
|
19244
19140
|
className = _ref.className,
|
|
19245
19141
|
onPointerDown = _ref.onPointerDown,
|
|
19246
19142
|
onClick = _ref.onClick,
|
|
19247
19143
|
onKeyDown = _ref.onKeyDown,
|
|
19248
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
19144
|
+
rest = _objectWithoutProperties(_ref, _excluded$1P);
|
|
19249
19145
|
var _useState = React.useState(open),
|
|
19250
19146
|
_useState2 = _slicedToArray(_useState, 2),
|
|
19251
19147
|
mounted = _useState2[0],
|
|
@@ -19272,6 +19168,20 @@
|
|
|
19272
19168
|
return overlayRootRef.current;
|
|
19273
19169
|
}, []);
|
|
19274
19170
|
openRef.current = open;
|
|
19171
|
+
var disableReturnFocusRef = React.useRef(disableReturnFocus);
|
|
19172
|
+
disableReturnFocusRef.current = disableReturnFocus;
|
|
19173
|
+
|
|
19174
|
+
// close() gives the focus back to the element that had it before showModal when the focus is in the dialog, so
|
|
19175
|
+
// a dialog that leaves it there takes it off again. A focus outside, as in a sheet that left the overlay root,
|
|
19176
|
+
// stays where it is.
|
|
19177
|
+
var closeDialog = React.useCallback(function (node) {
|
|
19178
|
+
var focusInside = node.contains(document.activeElement);
|
|
19179
|
+
node.close();
|
|
19180
|
+
if (disableReturnFocusRef.current && focusInside) {
|
|
19181
|
+
var _document$activeEleme;
|
|
19182
|
+
(_document$activeEleme = document.activeElement) === null || _document$activeEleme === void 0 || _document$activeEleme.blur();
|
|
19183
|
+
}
|
|
19184
|
+
}, []);
|
|
19275
19185
|
if (open && !mounted) {
|
|
19276
19186
|
setMounted(true);
|
|
19277
19187
|
}
|
|
@@ -19313,7 +19223,6 @@
|
|
|
19313
19223
|
}
|
|
19314
19224
|
});
|
|
19315
19225
|
var finishClose = React.useCallback(function () {
|
|
19316
|
-
var _dialogRef$current;
|
|
19317
19226
|
// A dialog that closes while suspended leaves the stack before the resume, so it drops its layer here.
|
|
19318
19227
|
if (dialogRef.current) {
|
|
19319
19228
|
dialogRef.current.style.zIndex = "";
|
|
@@ -19324,10 +19233,12 @@
|
|
|
19324
19233
|
popModalRoot(stackIdRef.current);
|
|
19325
19234
|
stackIdRef.current = undefined;
|
|
19326
19235
|
}
|
|
19327
|
-
(
|
|
19236
|
+
if (dialogRef.current) {
|
|
19237
|
+
closeDialog(dialogRef.current);
|
|
19238
|
+
}
|
|
19328
19239
|
setMounted(false);
|
|
19329
19240
|
onClose === null || onClose === void 0 || onClose();
|
|
19330
|
-
}, [onClose]);
|
|
19241
|
+
}, [closeDialog, onClose]);
|
|
19331
19242
|
|
|
19332
19243
|
// The entry joins the stack with every showModal, so an owner that opens the dialog again from onClose, on the
|
|
19333
19244
|
// same node, gets it back. It joins after showModal, so content that moves into the overlay root lands where it
|
|
@@ -19340,19 +19251,24 @@
|
|
|
19340
19251
|
dialog.showModal();
|
|
19341
19252
|
}
|
|
19342
19253
|
if (stackIdRef.current === undefined) {
|
|
19343
|
-
stackIdRef.current = pushModalRoot(overlayRootRef.current, suspensionRef.current);
|
|
19254
|
+
stackIdRef.current = pushModalRoot(overlayRootRef.current, suspensionRef.current, belowOpenSheets);
|
|
19344
19255
|
}
|
|
19345
|
-
}, [open, dialog]);
|
|
19256
|
+
}, [open, dialog, belowOpenSheets]);
|
|
19346
19257
|
|
|
19347
19258
|
// A layout effect, so the entry leaves the stack before an unmount removes the dialog and its overlay root.
|
|
19259
|
+
// An owner that unmounts the dialog while it is open, as a form does on submit, gets the focus back on the
|
|
19260
|
+
// opener: a dialog removed while open would leave it on the body.
|
|
19348
19261
|
React.useLayoutEffect(function () {
|
|
19349
19262
|
return function () {
|
|
19350
19263
|
if (stackIdRef.current !== undefined) {
|
|
19351
19264
|
popModalRoot(stackIdRef.current);
|
|
19352
19265
|
stackIdRef.current = undefined;
|
|
19353
19266
|
}
|
|
19267
|
+
if (dialog !== null && dialog !== void 0 && dialog.open) {
|
|
19268
|
+
closeDialog(dialog);
|
|
19269
|
+
}
|
|
19354
19270
|
};
|
|
19355
|
-
}, [dialog]);
|
|
19271
|
+
}, [dialog, closeDialog]);
|
|
19356
19272
|
React.useLayoutEffect(function () {
|
|
19357
19273
|
if (!open && mounted && !hasTransition) {
|
|
19358
19274
|
finishClose();
|
|
@@ -19424,7 +19340,7 @@
|
|
|
19424
19340
|
}
|
|
19425
19341
|
};
|
|
19426
19342
|
var handleNativeClose = function handleNativeClose() {
|
|
19427
|
-
if (openRef.current && !dialog.open && !areModalRootsSuspended()) {
|
|
19343
|
+
if (openRef.current && dialog.isConnected && !dialog.open && !areModalRootsSuspended()) {
|
|
19428
19344
|
dialog.showModal();
|
|
19429
19345
|
}
|
|
19430
19346
|
};
|
|
@@ -19507,51 +19423,24 @@
|
|
|
19507
19423
|
});
|
|
19508
19424
|
ModalRoot.displayName = "ModalRoot";
|
|
19509
19425
|
|
|
19510
|
-
var _excluded$
|
|
19511
|
-
|
|
19512
|
-
|
|
19513
|
-
|
|
19514
|
-
|
|
19515
|
-
|
|
19516
|
-
|
|
19517
|
-
onEnter = _ref.onEnter,
|
|
19518
|
-
onExited = _ref.onExited,
|
|
19519
|
-
forceClose = _ref.forceClose,
|
|
19426
|
+
var _excluded$1O = ["forwardedRef", "surface", "open", "onClose", "dismissOnBackdropClick", "disableCloseOnEsc", "animate", "onBackdropClickBlocked", "disableReturnFocus"];
|
|
19427
|
+
// What Dialog and ObjectFormModal share: the native modal, the viewport and the animation around a surface each draws.
|
|
19428
|
+
var DialogFrame = function DialogFrame(_ref) {
|
|
19429
|
+
var forwardedRef = _ref.forwardedRef,
|
|
19430
|
+
surface = _ref.surface,
|
|
19431
|
+
_ref$open = _ref.open,
|
|
19432
|
+
open = _ref$open === void 0 ? false : _ref$open,
|
|
19520
19433
|
onClose = _ref.onClose,
|
|
19521
|
-
|
|
19522
|
-
|
|
19523
|
-
|
|
19524
|
-
|
|
19525
|
-
|
|
19526
|
-
|
|
19527
|
-
|
|
19528
|
-
|
|
19529
|
-
|
|
19530
|
-
|
|
19531
|
-
value: value
|
|
19532
|
-
}, /*#__PURE__*/React__default["default"].createElement(StyledDialogViewport, {
|
|
19533
|
-
className: "c-dialog-viewport"
|
|
19534
|
-
}, /*#__PURE__*/React__default["default"].createElement(Animation, {
|
|
19535
|
-
in: inProp,
|
|
19536
|
-
onEnter: onEnter,
|
|
19537
|
-
onExited: onExited
|
|
19538
|
-
}, children)));
|
|
19539
|
-
};
|
|
19540
|
-
DialogSurface.displayName = "DialogSurface";
|
|
19541
|
-
var NativeDialog = function NativeDialog(_ref2) {
|
|
19542
|
-
var forwardedRef = _ref2.forwardedRef,
|
|
19543
|
-
surface = _ref2.surface,
|
|
19544
|
-
_ref2$open = _ref2.open,
|
|
19545
|
-
open = _ref2$open === void 0 ? false : _ref2$open,
|
|
19546
|
-
onClose = _ref2.onClose,
|
|
19547
|
-
_ref2$enableBackgroun = _ref2.enableBackgroundClick,
|
|
19548
|
-
enableBackgroundClick = _ref2$enableBackgroun === void 0 ? false : _ref2$enableBackgroun,
|
|
19549
|
-
_ref2$disableCloseOnE = _ref2.disableCloseOnEsc,
|
|
19550
|
-
disableCloseOnEsc = _ref2$disableCloseOnE === void 0 ? false : _ref2$disableCloseOnE,
|
|
19551
|
-
_ref2$animate = _ref2.animate,
|
|
19552
|
-
animate = _ref2$animate === void 0 ? "slide" : _ref2$animate,
|
|
19553
|
-
onClickOutside = _ref2.onClickOutside,
|
|
19554
|
-
rest = _objectWithoutProperties(_ref2, _excluded$1N);
|
|
19434
|
+
_ref$dismissOnBackdro = _ref.dismissOnBackdropClick,
|
|
19435
|
+
dismissOnBackdropClick = _ref$dismissOnBackdro === void 0 ? false : _ref$dismissOnBackdro,
|
|
19436
|
+
_ref$disableCloseOnEs = _ref.disableCloseOnEsc,
|
|
19437
|
+
disableCloseOnEsc = _ref$disableCloseOnEs === void 0 ? false : _ref$disableCloseOnEs,
|
|
19438
|
+
_ref$animate = _ref.animate,
|
|
19439
|
+
animate = _ref$animate === void 0 ? "slide" : _ref$animate,
|
|
19440
|
+
onBackdropClickBlocked = _ref.onBackdropClickBlocked,
|
|
19441
|
+
_ref$disableReturnFoc = _ref.disableReturnFocus,
|
|
19442
|
+
disableReturnFocus = _ref$disableReturnFoc === void 0 ? false : _ref$disableReturnFoc,
|
|
19443
|
+
rest = _objectWithoutProperties(_ref, _excluded$1O);
|
|
19555
19444
|
var _useState = React.useState(open),
|
|
19556
19445
|
_useState2 = _slicedToArray(_useState, 2),
|
|
19557
19446
|
innerOpen = _useState2[0],
|
|
@@ -19604,9 +19493,9 @@
|
|
|
19604
19493
|
}, [innerOpen, ariaLabel, explicitLabelledBy]);
|
|
19605
19494
|
var handleDismissBlocked = React.useCallback(function (reason, event) {
|
|
19606
19495
|
if (reason === "backdrop") {
|
|
19607
|
-
|
|
19496
|
+
onBackdropClickBlocked === null || onBackdropClickBlocked === void 0 || onBackdropClickBlocked(event);
|
|
19608
19497
|
}
|
|
19609
|
-
}, [
|
|
19498
|
+
}, [onBackdropClickBlocked]);
|
|
19610
19499
|
var contextValue = React.useMemo(function () {
|
|
19611
19500
|
return {
|
|
19612
19501
|
requestClose,
|
|
@@ -19622,11 +19511,12 @@
|
|
|
19622
19511
|
onDismissBlocked: handleDismissBlocked,
|
|
19623
19512
|
onClose: onClose,
|
|
19624
19513
|
disableCloseOnEsc: disableCloseOnEsc,
|
|
19625
|
-
|
|
19514
|
+
disableReturnFocus: disableReturnFocus,
|
|
19515
|
+
disableBackgroundClick: !dismissOnBackdropClick,
|
|
19626
19516
|
"aria-labelledby": ariaLabelledBy
|
|
19627
|
-
}), function (
|
|
19628
|
-
var isIn =
|
|
19629
|
-
onExited =
|
|
19517
|
+
}), function (_ref2) {
|
|
19518
|
+
var isIn = _ref2.in,
|
|
19519
|
+
onExited = _ref2.onExited;
|
|
19630
19520
|
return /*#__PURE__*/React__default["default"].createElement(DialogContext.Provider, {
|
|
19631
19521
|
value: contextValue
|
|
19632
19522
|
}, /*#__PURE__*/React__default["default"].createElement(StyledDialogViewport, {
|
|
@@ -19637,64 +19527,12 @@
|
|
|
19637
19527
|
}, surface)));
|
|
19638
19528
|
});
|
|
19639
19529
|
};
|
|
19640
|
-
NativeDialog.displayName = "NativeDialog";
|
|
19641
|
-
// What Dialog and ObjectFormModal share: the modal, the viewport and the animation around a surface each draws.
|
|
19642
|
-
var DialogFrame = function DialogFrame(_ref4) {
|
|
19643
|
-
var forwardedRef = _ref4.forwardedRef,
|
|
19644
|
-
surface = _ref4.surface,
|
|
19645
|
-
_ref4$native = _ref4.native,
|
|
19646
|
-
native = _ref4$native === void 0 ? false : _ref4$native,
|
|
19647
|
-
_ref4$open = _ref4.open,
|
|
19648
|
-
open = _ref4$open === void 0 ? false : _ref4$open,
|
|
19649
|
-
onClose = _ref4.onClose,
|
|
19650
|
-
_ref4$enableBackgroun = _ref4.enableBackgroundClick,
|
|
19651
|
-
enableBackgroundClick = _ref4$enableBackgroun === void 0 ? false : _ref4$enableBackgroun,
|
|
19652
|
-
_ref4$disableCloseOnE = _ref4.disableCloseOnEsc,
|
|
19653
|
-
disableCloseOnEsc = _ref4$disableCloseOnE === void 0 ? false : _ref4$disableCloseOnE,
|
|
19654
|
-
_ref4$animate = _ref4.animate,
|
|
19655
|
-
animate = _ref4$animate === void 0 ? "slide" : _ref4$animate,
|
|
19656
|
-
onClickOutside = _ref4.onClickOutside,
|
|
19657
|
-
disableFocusLock = _ref4.disableFocusLock,
|
|
19658
|
-
rest = _objectWithoutProperties(_ref4, _excluded2$7);
|
|
19659
|
-
if (native) {
|
|
19660
|
-
return /*#__PURE__*/React__default["default"].createElement(NativeDialog, _extends({}, rest, {
|
|
19661
|
-
forwardedRef: forwardedRef,
|
|
19662
|
-
open: open,
|
|
19663
|
-
onClose: onClose,
|
|
19664
|
-
enableBackgroundClick: enableBackgroundClick,
|
|
19665
|
-
disableCloseOnEsc: disableCloseOnEsc,
|
|
19666
|
-
animate: animate,
|
|
19667
|
-
onClickOutside: onClickOutside,
|
|
19668
|
-
surface: surface
|
|
19669
|
-
}));
|
|
19670
|
-
}
|
|
19671
|
-
return /*#__PURE__*/React__default["default"].createElement(ModalBase, _extends({
|
|
19672
|
-
ref: forwardedRef,
|
|
19673
|
-
open: open,
|
|
19674
|
-
onClose: onClose,
|
|
19675
|
-
disableBackgroundClick: !enableBackgroundClick,
|
|
19676
|
-
disableCloseOnEsc: disableCloseOnEsc,
|
|
19677
|
-
disableFocusLock: disableFocusLock,
|
|
19678
|
-
onClickOutside: onClickOutside,
|
|
19679
|
-
overlayTimeout: animate === "fade" ? {
|
|
19680
|
-
enter: FADE_DURATION,
|
|
19681
|
-
exit: FADE_DURATION
|
|
19682
|
-
} : {
|
|
19683
|
-
enter: SLIDE_FROM_TOP_ENTER,
|
|
19684
|
-
exit: SLIDE_FROM_TOP_EXIT
|
|
19685
|
-
}
|
|
19686
|
-
}, rest), /*#__PURE__*/React__default["default"].createElement(DialogSurface, {
|
|
19687
|
-
in: open,
|
|
19688
|
-
onClose: onClose,
|
|
19689
|
-
animate: animate
|
|
19690
|
-
}, surface));
|
|
19691
|
-
};
|
|
19692
19530
|
DialogFrame.displayName = "DialogFrame";
|
|
19693
19531
|
|
|
19694
|
-
var _excluded$
|
|
19532
|
+
var _excluded$1N = ["children"];
|
|
19695
19533
|
var Header3 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
19696
19534
|
var children = _ref.children,
|
|
19697
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
19535
|
+
props = _objectWithoutProperties(_ref, _excluded$1N);
|
|
19698
19536
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
19699
19537
|
weight: "bold",
|
|
19700
19538
|
variant: "Header 3",
|
|
@@ -19703,7 +19541,7 @@
|
|
|
19703
19541
|
});
|
|
19704
19542
|
Header3.displayName = "Header3";
|
|
19705
19543
|
|
|
19706
|
-
var _excluded$
|
|
19544
|
+
var _excluded$1M = ["children", "className", "disableDefaultHeading", "onClose", "closeLabel"];
|
|
19707
19545
|
var DialogTitle = function DialogTitle(_ref) {
|
|
19708
19546
|
var _dialog$requestClose;
|
|
19709
19547
|
var children = _ref.children,
|
|
@@ -19713,7 +19551,7 @@
|
|
|
19713
19551
|
onClose = _ref.onClose,
|
|
19714
19552
|
_ref$closeLabel = _ref.closeLabel,
|
|
19715
19553
|
closeLabel = _ref$closeLabel === void 0 ? "Close" : _ref$closeLabel,
|
|
19716
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
19554
|
+
rest = _objectWithoutProperties(_ref, _excluded$1M);
|
|
19717
19555
|
var dialog = useDialogContext();
|
|
19718
19556
|
var titleId = dialog === null || dialog === void 0 ? void 0 : dialog.titleId;
|
|
19719
19557
|
var registerTitle = dialog === null || dialog === void 0 ? void 0 : dialog.registerTitle;
|
|
@@ -19827,16 +19665,39 @@
|
|
|
19827
19665
|
}, [node, enabled]);
|
|
19828
19666
|
};
|
|
19829
19667
|
|
|
19830
|
-
var
|
|
19668
|
+
var warned = new Set();
|
|
19669
|
+
var STATUS_TEXT = {
|
|
19670
|
+
deprecated: "is deprecated",
|
|
19671
|
+
removed: "is gone"
|
|
19672
|
+
};
|
|
19673
|
+
|
|
19674
|
+
/**
|
|
19675
|
+
* Warns once per component and prop in development while a caller still passes a prop that is deprecated (it still
|
|
19676
|
+
* works and has a replacement) or removed (it does nothing any more).
|
|
19677
|
+
*/
|
|
19678
|
+
var usePropWarning = function usePropWarning(component, prop, value, status, message) {
|
|
19679
|
+
React.useEffect(function () {
|
|
19680
|
+
var key = "".concat(component, ".").concat(prop);
|
|
19681
|
+
if (process.env.NODE_ENV === "production" || value === undefined || warned.has(key)) {
|
|
19682
|
+
return;
|
|
19683
|
+
}
|
|
19684
|
+
warned.add(key);
|
|
19685
|
+
// eslint-disable-next-line no-console
|
|
19686
|
+
console.warn("".concat(component, ": the ").concat(prop, " prop ").concat(STATUS_TEXT[status], ". ").concat(message));
|
|
19687
|
+
}, [component, prop, value, status, message]);
|
|
19688
|
+
};
|
|
19689
|
+
|
|
19690
|
+
var _excluded$1L = ["children", "open", "onClose", "className", "dismissOnBackdropClick", "onBackdropClickBlocked", "enableBackgroundClick", "disableCloseOnEsc", "animate", "onClickOutside", "size", "height", "native"];
|
|
19831
19691
|
var _Dialog = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
19832
|
-
var _dialogSizes$size;
|
|
19692
|
+
var _dialogSizes$size, _ref2;
|
|
19833
19693
|
var children = _ref.children,
|
|
19834
19694
|
_ref$open = _ref.open,
|
|
19835
19695
|
open = _ref$open === void 0 ? false : _ref$open,
|
|
19836
19696
|
onClose = _ref.onClose,
|
|
19837
19697
|
className = _ref.className,
|
|
19838
|
-
|
|
19839
|
-
|
|
19698
|
+
dismissOnBackdropClick = _ref.dismissOnBackdropClick,
|
|
19699
|
+
onBackdropClickBlocked = _ref.onBackdropClickBlocked,
|
|
19700
|
+
enableBackgroundClick = _ref.enableBackgroundClick,
|
|
19840
19701
|
_ref$disableCloseOnEs = _ref.disableCloseOnEsc,
|
|
19841
19702
|
disableCloseOnEsc = _ref$disableCloseOnEs === void 0 ? false : _ref$disableCloseOnEs,
|
|
19842
19703
|
_ref$animate = _ref.animate,
|
|
@@ -19846,13 +19707,15 @@
|
|
|
19846
19707
|
size = _ref$size === void 0 ? "m" : _ref$size,
|
|
19847
19708
|
_ref$height = _ref.height,
|
|
19848
19709
|
height = _ref$height === void 0 ? "fluid" : _ref$height,
|
|
19849
|
-
|
|
19850
|
-
|
|
19851
|
-
rest = _objectWithoutProperties(_ref, _excluded$1K);
|
|
19710
|
+
native = _ref.native,
|
|
19711
|
+
rest = _objectWithoutProperties(_ref, _excluded$1L);
|
|
19852
19712
|
var _useState = React.useState(null),
|
|
19853
19713
|
_useState2 = _slicedToArray(_useState, 2),
|
|
19854
19714
|
dialogNode = _useState2[0],
|
|
19855
19715
|
setDialogNode = _useState2[1];
|
|
19716
|
+
usePropWarning("Dialog", "native", native, "removed", "Every Dialog is a native modal now, so remove it.");
|
|
19717
|
+
usePropWarning("Dialog", "enableBackgroundClick", enableBackgroundClick, "deprecated", "Use dismissOnBackdropClick.");
|
|
19718
|
+
usePropWarning("Dialog", "onClickOutside", onClickOutside, "deprecated", "Use onBackdropClickBlocked.");
|
|
19856
19719
|
useFluidHeightAnimation(dialogNode, height === "fluid");
|
|
19857
19720
|
var surface = /*#__PURE__*/React__default["default"].createElement(StyledDialog, {
|
|
19858
19721
|
ref: setDialogNode,
|
|
@@ -19862,13 +19725,12 @@
|
|
|
19862
19725
|
}, children);
|
|
19863
19726
|
return /*#__PURE__*/React__default["default"].createElement(DialogFrame, _extends({}, rest, {
|
|
19864
19727
|
forwardedRef: ref,
|
|
19865
|
-
native: native,
|
|
19866
19728
|
open: open,
|
|
19867
19729
|
onClose: onClose,
|
|
19868
|
-
enableBackgroundClick:
|
|
19730
|
+
dismissOnBackdropClick: (_ref2 = dismissOnBackdropClick !== null && dismissOnBackdropClick !== void 0 ? dismissOnBackdropClick : enableBackgroundClick) !== null && _ref2 !== void 0 ? _ref2 : false,
|
|
19731
|
+
onBackdropClickBlocked: onBackdropClickBlocked !== null && onBackdropClickBlocked !== void 0 ? onBackdropClickBlocked : onClickOutside,
|
|
19869
19732
|
disableCloseOnEsc: disableCloseOnEsc,
|
|
19870
19733
|
animate: animate,
|
|
19871
|
-
onClickOutside: onClickOutside,
|
|
19872
19734
|
surface: surface
|
|
19873
19735
|
}));
|
|
19874
19736
|
});
|
|
@@ -19910,12 +19772,12 @@
|
|
|
19910
19772
|
confirmationLabel = _ref.confirmationLabel,
|
|
19911
19773
|
size = _ref.size,
|
|
19912
19774
|
height = _ref.height,
|
|
19913
|
-
|
|
19914
|
-
native = _ref$native === void 0 ? true : _ref$native;
|
|
19775
|
+
native = _ref.native;
|
|
19915
19776
|
var _useState = React.useState(false),
|
|
19916
19777
|
_useState2 = _slicedToArray(_useState, 2),
|
|
19917
19778
|
confirmed = _useState2[0],
|
|
19918
19779
|
setConfirmed = _useState2[1];
|
|
19780
|
+
usePropWarning("ConfirmDialog", "native", native, "removed", "Every confirmation is a native modal now, so remove it.");
|
|
19919
19781
|
var isConfirmBlocked = Boolean(confirmationLabel) && !confirmed;
|
|
19920
19782
|
var handleToggleConfirmed = React.useCallback(function (event) {
|
|
19921
19783
|
return setConfirmed(event.target.checked);
|
|
@@ -19947,8 +19809,7 @@
|
|
|
19947
19809
|
disableCloseOnEsc: isLoading,
|
|
19948
19810
|
size: size,
|
|
19949
19811
|
height: height,
|
|
19950
|
-
|
|
19951
|
-
role: native ? "alertdialog" : undefined
|
|
19812
|
+
role: "alertdialog"
|
|
19952
19813
|
}, /*#__PURE__*/React__default["default"].createElement(Dialog.Title, null, dialogTitle), /*#__PURE__*/React__default["default"].createElement(Dialog.ContentDivider, null), /*#__PURE__*/React__default["default"].createElement(Dialog.Content, null, /*#__PURE__*/React__default["default"].createElement(Body2, {
|
|
19953
19814
|
lineHeight: "loose",
|
|
19954
19815
|
color: "secondary",
|
|
@@ -21699,7 +21560,7 @@
|
|
|
21699
21560
|
return props.$pulse && styled.css(["&&{background:var(--color-theme-300);animation:", " 2s cubic-bezier(0.4,0,0.6,1) infinite;}"], pulseAnimation);
|
|
21700
21561
|
});
|
|
21701
21562
|
|
|
21702
|
-
var _excluded$
|
|
21563
|
+
var _excluded$1K = ["className", "width", "height", "radius", "animation"];
|
|
21703
21564
|
var SkeletonLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
21704
21565
|
var className = _ref.className,
|
|
21705
21566
|
width = _ref.width,
|
|
@@ -21707,7 +21568,7 @@
|
|
|
21707
21568
|
radius = _ref.radius,
|
|
21708
21569
|
_ref$animation = _ref.animation,
|
|
21709
21570
|
animation = _ref$animation === void 0 ? "shimmer" : _ref$animation,
|
|
21710
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
21571
|
+
rest = _objectWithoutProperties(_ref, _excluded$1K);
|
|
21711
21572
|
return /*#__PURE__*/React__default["default"].createElement(StyledSkeletonLoader, _extends({
|
|
21712
21573
|
ref: ref,
|
|
21713
21574
|
className: classnames__default["default"]("c-loader c-loader--linear", className),
|
|
@@ -21725,10 +21586,10 @@
|
|
|
21725
21586
|
componentId: "sc-1f35d5h-0"
|
|
21726
21587
|
})(["display:inline-block;text-align:center;& > span{display:inline-block;width:18px;height:18px;background-color:#777;border-radius:100%;animation:", " 1.4s infinite ease-in-out both;}span:nth-child(1){animation-delay:-0.32s;}span:nth-child(2){animation-delay:-0.16s;}"], dotAnimation);
|
|
21727
21588
|
|
|
21728
|
-
var _excluded$
|
|
21589
|
+
var _excluded$1J = ["className"];
|
|
21729
21590
|
var DotsLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
21730
21591
|
var className = _ref.className,
|
|
21731
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
21592
|
+
rest = _objectWithoutProperties(_ref, _excluded$1J);
|
|
21732
21593
|
return /*#__PURE__*/React__default["default"].createElement(StyledDotsLoader, _extends({
|
|
21733
21594
|
ref: ref,
|
|
21734
21595
|
className: classnames__default["default"]("c-loader c-loader--dots", className)
|
|
@@ -21750,7 +21611,7 @@
|
|
|
21750
21611
|
return props.$activeColorPercentage === "75%" && styled.css(["border-right:", "px solid ", ";border-bottom:", "px solid ", ";border-left:", "px solid ", ";border-top:", "px solid ", ";"], props.$stroke, props.$activeStrokeColor, props.$stroke, props.$activeStrokeColor, props.$stroke, props.$inactiveStrokeColor, props.$stroke, props.$activeStrokeColor);
|
|
21751
21612
|
});
|
|
21752
21613
|
|
|
21753
|
-
var _excluded$
|
|
21614
|
+
var _excluded$1I = ["radius", "stroke", "activeStrokeColor", "inactiveStrokeColor", "activeColorPercentage", "rotateDurationInSeconds", "className"];
|
|
21754
21615
|
var SpinnerLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
21755
21616
|
var _ref$radius = _ref.radius,
|
|
21756
21617
|
radius = _ref$radius === void 0 ? 10 : _ref$radius,
|
|
@@ -21765,7 +21626,7 @@
|
|
|
21765
21626
|
_ref$rotateDurationIn = _ref.rotateDurationInSeconds,
|
|
21766
21627
|
rotateDurationInSeconds = _ref$rotateDurationIn === void 0 ? 0.75 : _ref$rotateDurationIn,
|
|
21767
21628
|
className = _ref.className,
|
|
21768
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
21629
|
+
rest = _objectWithoutProperties(_ref, _excluded$1I);
|
|
21769
21630
|
return /*#__PURE__*/React__default["default"].createElement(StyledSpinnerLoader$1, _extends({
|
|
21770
21631
|
ref: ref,
|
|
21771
21632
|
className: className,
|
|
@@ -21804,7 +21665,7 @@
|
|
|
21804
21665
|
});
|
|
21805
21666
|
StyledLinearLoader.displayName = "StyledLinearLoader";
|
|
21806
21667
|
|
|
21807
|
-
var _excluded$
|
|
21668
|
+
var _excluded$1H = ["height", "activeStrokeColor", "inactiveStrokeColor", "activeColorPercentage", "animationDuration"];
|
|
21808
21669
|
var LinearLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
21809
21670
|
var _ref$height = _ref.height,
|
|
21810
21671
|
height = _ref$height === void 0 ? 4 : _ref$height,
|
|
@@ -21816,7 +21677,7 @@
|
|
|
21816
21677
|
activeColorPercentage = _ref$activeColorPerce === void 0 ? "25%" : _ref$activeColorPerce,
|
|
21817
21678
|
_ref$animationDuratio = _ref.animationDuration,
|
|
21818
21679
|
animationDuration = _ref$animationDuratio === void 0 ? 0.75 : _ref$animationDuratio,
|
|
21819
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
21680
|
+
rest = _objectWithoutProperties(_ref, _excluded$1H);
|
|
21820
21681
|
return /*#__PURE__*/React__default["default"].createElement(StyledLinearLoader, _extends({
|
|
21821
21682
|
ref: ref,
|
|
21822
21683
|
$height: height,
|
|
@@ -21828,7 +21689,7 @@
|
|
|
21828
21689
|
});
|
|
21829
21690
|
LinearLoader.displayName = "LinearLoader";
|
|
21830
21691
|
|
|
21831
|
-
var _excluded$
|
|
21692
|
+
var _excluded$1G = ["header", "rows", "className", "sortBy", "sortDirection", "onSortCallback", "theadClass", "noResultsCallback", "groupBy", "groupHead", "isCollapsible", "emptyValue", "loading", "loadingRows"];
|
|
21832
21693
|
var SortDirection = /*#__PURE__*/function (SortDirection) {
|
|
21833
21694
|
SortDirection["None"] = "none";
|
|
21834
21695
|
SortDirection["Asc"] = "asc";
|
|
@@ -21878,7 +21739,7 @@
|
|
|
21878
21739
|
loading = _ref.loading,
|
|
21879
21740
|
_ref$loadingRows = _ref.loadingRows,
|
|
21880
21741
|
loadingRows = _ref$loadingRows === void 0 ? 7 : _ref$loadingRows,
|
|
21881
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
21742
|
+
args = _objectWithoutProperties(_ref, _excluded$1G);
|
|
21882
21743
|
var _useState = React.useState(sortDirection),
|
|
21883
21744
|
_useState2 = _slicedToArray(_useState, 2),
|
|
21884
21745
|
columnDirection = _useState2[0],
|
|
@@ -22254,7 +22115,7 @@
|
|
|
22254
22115
|
return $closing && styled.css(["animation:", " 800ms linear infinite,", " 100ms 450ms forwards;circle{animation:", " 450ms ease-out forwards;}"], ringSpin, ringOut, ringClose);
|
|
22255
22116
|
});
|
|
22256
22117
|
|
|
22257
|
-
var _excluded$
|
|
22118
|
+
var _excluded$1F = ["completed", "disabled", "animate", "onClick", "className", "primary", "checkMarkClassName"],
|
|
22258
22119
|
_excluded2$6 = ["closing", "size", "className"];
|
|
22259
22120
|
var CompleteCheckbox = function CompleteCheckbox(_ref) {
|
|
22260
22121
|
var _ref$completed = _ref.completed,
|
|
@@ -22268,7 +22129,7 @@
|
|
|
22268
22129
|
_ref$primary = _ref.primary,
|
|
22269
22130
|
primary = _ref$primary === void 0 ? false : _ref$primary,
|
|
22270
22131
|
checkMarkClassName = _ref.checkMarkClassName,
|
|
22271
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
22132
|
+
rest = _objectWithoutProperties(_ref, _excluded$1F);
|
|
22272
22133
|
return /*#__PURE__*/React__default["default"].createElement(StyledCompleteCheckbox, _extends({
|
|
22273
22134
|
onClick: onClick,
|
|
22274
22135
|
className: classnames__default["default"]("c-complete-checkbox", className),
|
|
@@ -22324,7 +22185,7 @@
|
|
|
22324
22185
|
});
|
|
22325
22186
|
StyledPaper.displayName = "StyledPaper";
|
|
22326
22187
|
|
|
22327
|
-
var _excluded$
|
|
22188
|
+
var _excluded$1E = ["children", "className", "type", "hover", "useOptimizedShadow"];
|
|
22328
22189
|
/**
|
|
22329
22190
|
* This is a component description and should sit directly above your component
|
|
22330
22191
|
*/
|
|
@@ -22337,7 +22198,7 @@
|
|
|
22337
22198
|
hover = _ref$hover === void 0 ? false : _ref$hover,
|
|
22338
22199
|
_ref$useOptimizedShad = _ref.useOptimizedShadow,
|
|
22339
22200
|
useOptimizedShadow = _ref$useOptimizedShad === void 0 ? false : _ref$useOptimizedShad,
|
|
22340
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
22201
|
+
rest = _objectWithoutProperties(_ref, _excluded$1E);
|
|
22341
22202
|
return /*#__PURE__*/React__default["default"].createElement(StyledPaper, _extends({
|
|
22342
22203
|
className: classnames__default["default"](className, {
|
|
22343
22204
|
"ac-shadow--raised--lg": !useOptimizedShadow && hover && type === "paper-1",
|
|
@@ -22398,7 +22259,7 @@
|
|
|
22398
22259
|
});
|
|
22399
22260
|
StyledCard.displayName = "StyledCard";
|
|
22400
22261
|
|
|
22401
|
-
var _excluded$
|
|
22262
|
+
var _excluded$1D = ["children", "className", "hoverable", "variant", "radius", "shadow", "onClick"];
|
|
22402
22263
|
var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
22403
22264
|
var children = _ref.children,
|
|
22404
22265
|
className = _ref.className,
|
|
@@ -22411,7 +22272,7 @@
|
|
|
22411
22272
|
_ref$shadow = _ref.shadow,
|
|
22412
22273
|
shadow = _ref$shadow === void 0 ? true : _ref$shadow,
|
|
22413
22274
|
onClick = _ref.onClick,
|
|
22414
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
22275
|
+
rest = _objectWithoutProperties(_ref, _excluded$1D);
|
|
22415
22276
|
return /*#__PURE__*/React__default["default"].createElement(StyledCard, _extends({}, rest, {
|
|
22416
22277
|
type: variant === "raised" ? "tile-2" : variant,
|
|
22417
22278
|
$raised: variant === "raised",
|
|
@@ -22495,12 +22356,12 @@
|
|
|
22495
22356
|
});
|
|
22496
22357
|
EntityCard$1.displayName = "EntityCard";
|
|
22497
22358
|
|
|
22498
|
-
var _excluded$
|
|
22359
|
+
var _excluded$1C = ["weight", "children"];
|
|
22499
22360
|
var Title1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
22500
22361
|
var _ref$weight = _ref.weight,
|
|
22501
22362
|
weight = _ref$weight === void 0 ? "light" : _ref$weight,
|
|
22502
22363
|
children = _ref.children,
|
|
22503
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
22364
|
+
props = _objectWithoutProperties(_ref, _excluded$1C);
|
|
22504
22365
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
22505
22366
|
weight: weight,
|
|
22506
22367
|
variant: "Title 1",
|
|
@@ -22509,12 +22370,12 @@
|
|
|
22509
22370
|
});
|
|
22510
22371
|
Title1.displayName = "Title1";
|
|
22511
22372
|
|
|
22512
|
-
var _excluded$
|
|
22373
|
+
var _excluded$1B = ["weight", "children"];
|
|
22513
22374
|
var Title2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
22514
22375
|
var _ref$weight = _ref.weight,
|
|
22515
22376
|
weight = _ref$weight === void 0 ? "light" : _ref$weight,
|
|
22516
22377
|
children = _ref.children,
|
|
22517
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
22378
|
+
props = _objectWithoutProperties(_ref, _excluded$1B);
|
|
22518
22379
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
22519
22380
|
weight: weight,
|
|
22520
22381
|
variant: "Title 2",
|
|
@@ -22523,12 +22384,12 @@
|
|
|
22523
22384
|
});
|
|
22524
22385
|
Title2.displayName = "Title2";
|
|
22525
22386
|
|
|
22526
|
-
var _excluded$
|
|
22387
|
+
var _excluded$1A = ["weight", "children"];
|
|
22527
22388
|
var Title3 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
22528
22389
|
var _ref$weight = _ref.weight,
|
|
22529
22390
|
weight = _ref$weight === void 0 ? "semibold" : _ref$weight,
|
|
22530
22391
|
children = _ref.children,
|
|
22531
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
22392
|
+
props = _objectWithoutProperties(_ref, _excluded$1A);
|
|
22532
22393
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
22533
22394
|
weight: weight,
|
|
22534
22395
|
variant: "Title 3",
|
|
@@ -22537,10 +22398,10 @@
|
|
|
22537
22398
|
});
|
|
22538
22399
|
Title3.displayName = "Title3";
|
|
22539
22400
|
|
|
22540
|
-
var _excluded$
|
|
22401
|
+
var _excluded$1z = ["children"];
|
|
22541
22402
|
var Header2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
22542
22403
|
var children = _ref.children,
|
|
22543
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
22404
|
+
props = _objectWithoutProperties(_ref, _excluded$1z);
|
|
22544
22405
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
22545
22406
|
weight: "bold",
|
|
22546
22407
|
variant: "Header 2",
|
|
@@ -22549,12 +22410,12 @@
|
|
|
22549
22410
|
});
|
|
22550
22411
|
Header2.displayName = "Header2";
|
|
22551
22412
|
|
|
22552
|
-
var _excluded$
|
|
22413
|
+
var _excluded$1y = ["weight", "children"];
|
|
22553
22414
|
var Body1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
22554
22415
|
var _ref$weight = _ref.weight,
|
|
22555
22416
|
weight = _ref$weight === void 0 ? "regular" : _ref$weight,
|
|
22556
22417
|
children = _ref.children,
|
|
22557
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
22418
|
+
props = _objectWithoutProperties(_ref, _excluded$1y);
|
|
22558
22419
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
22559
22420
|
variant: "Body 1",
|
|
22560
22421
|
weight: weight,
|
|
@@ -22563,12 +22424,12 @@
|
|
|
22563
22424
|
});
|
|
22564
22425
|
Body1.displayName = "Body1";
|
|
22565
22426
|
|
|
22566
|
-
var _excluded$
|
|
22427
|
+
var _excluded$1x = ["weight", "children"];
|
|
22567
22428
|
var Caption1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
22568
22429
|
var _ref$weight = _ref.weight,
|
|
22569
22430
|
weight = _ref$weight === void 0 ? "regular" : _ref$weight,
|
|
22570
22431
|
children = _ref.children,
|
|
22571
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
22432
|
+
props = _objectWithoutProperties(_ref, _excluded$1x);
|
|
22572
22433
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
22573
22434
|
variant: "Caption 1",
|
|
22574
22435
|
weight: weight,
|
|
@@ -22577,12 +22438,12 @@
|
|
|
22577
22438
|
});
|
|
22578
22439
|
Caption1.displayName = "Caption1";
|
|
22579
22440
|
|
|
22580
|
-
var _excluded$
|
|
22441
|
+
var _excluded$1w = ["weight", "children"];
|
|
22581
22442
|
var Caption2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
22582
22443
|
var _ref$weight = _ref.weight,
|
|
22583
22444
|
weight = _ref$weight === void 0 ? "regular" : _ref$weight,
|
|
22584
22445
|
children = _ref.children,
|
|
22585
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
22446
|
+
props = _objectWithoutProperties(_ref, _excluded$1w);
|
|
22586
22447
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
22587
22448
|
variant: "Caption 2",
|
|
22588
22449
|
weight: weight,
|
|
@@ -22795,7 +22656,7 @@
|
|
|
22795
22656
|
componentId: "sc-5x2tyd-1"
|
|
22796
22657
|
})(["border-radius:100%;object-fit:cover;"]);
|
|
22797
22658
|
|
|
22798
|
-
var _excluded$
|
|
22659
|
+
var _excluded$1v = ["url", "alt", "size", "className", "imgClassName", "children"];
|
|
22799
22660
|
/**
|
|
22800
22661
|
* @component Avatar
|
|
22801
22662
|
* @description
|
|
@@ -22830,7 +22691,7 @@
|
|
|
22830
22691
|
className = _ref.className,
|
|
22831
22692
|
imgClassName = _ref.imgClassName,
|
|
22832
22693
|
children = _ref.children,
|
|
22833
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
22694
|
+
rest = _objectWithoutProperties(_ref, _excluded$1v);
|
|
22834
22695
|
var _useState = React.useState(false),
|
|
22835
22696
|
_useState2 = _slicedToArray(_useState, 2),
|
|
22836
22697
|
imageLoaded = _useState2[0],
|
|
@@ -22879,13 +22740,13 @@
|
|
|
22879
22740
|
return props.$color && styled.css(["background-color:", ";"], props.$color);
|
|
22880
22741
|
});
|
|
22881
22742
|
|
|
22882
|
-
var _excluded$
|
|
22743
|
+
var _excluded$1u = ["color", "size", "className"];
|
|
22883
22744
|
var Dot = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
22884
22745
|
var color = _ref.color,
|
|
22885
22746
|
_ref$size = _ref.size,
|
|
22886
22747
|
size = _ref$size === void 0 ? 8 : _ref$size,
|
|
22887
22748
|
className = _ref.className,
|
|
22888
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
22749
|
+
rest = _objectWithoutProperties(_ref, _excluded$1u);
|
|
22889
22750
|
return /*#__PURE__*/React__default["default"].createElement(StyledDot, _extends({
|
|
22890
22751
|
className: classnames__default["default"]("c-dot", className),
|
|
22891
22752
|
ref: ref,
|
|
@@ -22922,7 +22783,7 @@
|
|
|
22922
22783
|
});
|
|
22923
22784
|
StyledTagText.displayName = "StyledTagText";
|
|
22924
22785
|
|
|
22925
|
-
var _excluded$
|
|
22786
|
+
var _excluded$1t = ["name", "color", "showText", "showDot", "className"];
|
|
22926
22787
|
var Tag = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
22927
22788
|
var name = _ref.name,
|
|
22928
22789
|
color = _ref.color,
|
|
@@ -22931,7 +22792,7 @@
|
|
|
22931
22792
|
_ref$showDot = _ref.showDot,
|
|
22932
22793
|
showDot = _ref$showDot === void 0 ? true : _ref$showDot,
|
|
22933
22794
|
className = _ref.className,
|
|
22934
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
22795
|
+
rest = _objectWithoutProperties(_ref, _excluded$1t);
|
|
22935
22796
|
return /*#__PURE__*/React__default["default"].createElement(StyledTag, _extends({
|
|
22936
22797
|
className: classnames__default["default"]("c-tag", className),
|
|
22937
22798
|
ref: ref
|
|
@@ -23045,7 +22906,7 @@
|
|
|
23045
22906
|
});
|
|
23046
22907
|
StyledNavAsMoreTarget.displayName = "StyledNavAsMoreTarget";
|
|
23047
22908
|
|
|
23048
|
-
var _excluded$
|
|
22909
|
+
var _excluded$1s = ["children", "active", "disabled", "className", "role"];
|
|
23049
22910
|
var Item = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
23050
22911
|
var children = _ref.children,
|
|
23051
22912
|
_ref$active = _ref.active,
|
|
@@ -23054,7 +22915,7 @@
|
|
|
23054
22915
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
23055
22916
|
className = _ref.className,
|
|
23056
22917
|
role = _ref.role,
|
|
23057
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
22918
|
+
rest = _objectWithoutProperties(_ref, _excluded$1s);
|
|
23058
22919
|
return /*#__PURE__*/React__default["default"].createElement(StyledNavListItem, _extends({
|
|
23059
22920
|
className: classnames__default["default"]("c-nav__item", {
|
|
23060
22921
|
"c-nav__item--active": active
|
|
@@ -23102,11 +22963,11 @@
|
|
|
23102
22963
|
});
|
|
23103
22964
|
StyledExpandSingle.displayName = "StyledExpandSingle";
|
|
23104
22965
|
|
|
23105
|
-
var _excluded$
|
|
22966
|
+
var _excluded$1r = ["expanded"];
|
|
23106
22967
|
var ExpandSingle = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
23107
22968
|
var _ref$expanded = _ref.expanded,
|
|
23108
22969
|
expanded = _ref$expanded === void 0 ? false : _ref$expanded,
|
|
23109
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
22970
|
+
rest = _objectWithoutProperties(_ref, _excluded$1r);
|
|
23110
22971
|
return /*#__PURE__*/React__default["default"].createElement(StyledExpandSingle, _extends({
|
|
23111
22972
|
ref: ref,
|
|
23112
22973
|
viewBox: "0 0 24 24",
|
|
@@ -23409,7 +23270,7 @@
|
|
|
23409
23270
|
})(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:8px;display:flex;justify-items:center;align-items:center;"]);
|
|
23410
23271
|
StyledOptionWrapper.displayName = "StyledOptionWrapper";
|
|
23411
23272
|
|
|
23412
|
-
var _excluded$
|
|
23273
|
+
var _excluded$1q = ["className", "style", "type", "disabled", "size", "invalid", "startAdornment", "endAdornment", "wrapRef", "wrapperClick", "mode"];
|
|
23413
23274
|
var Input = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
23414
23275
|
var _ref$className = _ref.className,
|
|
23415
23276
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
@@ -23428,7 +23289,7 @@
|
|
|
23428
23289
|
wrapperClick = _ref.wrapperClick,
|
|
23429
23290
|
_ref$mode = _ref.mode,
|
|
23430
23291
|
mode = _ref$mode === void 0 ? "outlined" : _ref$mode,
|
|
23431
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
23292
|
+
rest = _objectWithoutProperties(_ref, _excluded$1q);
|
|
23432
23293
|
var intInputRef = React.useRef(null);
|
|
23433
23294
|
var handleRef = useForkRef(ref, intInputRef);
|
|
23434
23295
|
var handleWrapperClick = React.useCallback(function () {
|
|
@@ -23485,14 +23346,14 @@
|
|
|
23485
23346
|
}, StyledRadioLabel);
|
|
23486
23347
|
StyledRadioButton$1.displayName = "StyledRadioButton";
|
|
23487
23348
|
|
|
23488
|
-
var _excluded$
|
|
23349
|
+
var _excluded$1p = ["className", "id", "hover"];
|
|
23489
23350
|
var RadioButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
23490
23351
|
var _ref$className = _ref.className,
|
|
23491
23352
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
23492
23353
|
_ref$id = _ref.id,
|
|
23493
23354
|
id = _ref$id === void 0 ? "radio" : _ref$id,
|
|
23494
23355
|
hover = _ref.hover,
|
|
23495
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
23356
|
+
props = _objectWithoutProperties(_ref, _excluded$1p);
|
|
23496
23357
|
return /*#__PURE__*/React__default["default"].createElement(StyledRadioButton$1, {
|
|
23497
23358
|
className: classnames__default["default"]("c-radio-btn", {
|
|
23498
23359
|
"c-radio-btn__hover": hover,
|
|
@@ -23640,7 +23501,7 @@
|
|
|
23640
23501
|
StyledScrollShadowLeft.displayName = "StyledScrollShadowLeft";
|
|
23641
23502
|
StyledScrollShadowRight.displayName = "StyledScrollShadowRight";
|
|
23642
23503
|
|
|
23643
|
-
var _excluded$
|
|
23504
|
+
var _excluded$1o = ["children", "className", "disableVertical", "disableHorizontal", "invertHorizontal", "invertVertical", "innerColor", "outerColor"];
|
|
23644
23505
|
var ScrollShadow = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
23645
23506
|
var children = _ref.children,
|
|
23646
23507
|
className = _ref.className,
|
|
@@ -23654,7 +23515,7 @@
|
|
|
23654
23515
|
invertVertical = _ref$invertVertical === void 0 ? false : _ref$invertVertical,
|
|
23655
23516
|
innerColor = _ref.innerColor,
|
|
23656
23517
|
outerColor = _ref.outerColor,
|
|
23657
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
23518
|
+
rest = _objectWithoutProperties(_ref, _excluded$1o);
|
|
23658
23519
|
var _useState = React.useState({
|
|
23659
23520
|
top: 0,
|
|
23660
23521
|
right: 0,
|
|
@@ -24261,7 +24122,7 @@
|
|
|
24261
24122
|
};
|
|
24262
24123
|
};
|
|
24263
24124
|
|
|
24264
|
-
var _excluded$
|
|
24125
|
+
var _excluded$1n = ["as", "className", "invert", "style"];
|
|
24265
24126
|
var ScrollElement = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
24266
24127
|
var _ref$as = _ref.as,
|
|
24267
24128
|
as = _ref$as === void 0 ? "div" : _ref$as,
|
|
@@ -24269,7 +24130,7 @@
|
|
|
24269
24130
|
_ref$invert = _ref.invert,
|
|
24270
24131
|
invert = _ref$invert === void 0 ? false : _ref$invert,
|
|
24271
24132
|
style = _ref.style,
|
|
24272
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
24133
|
+
rest = _objectWithoutProperties(_ref, _excluded$1n);
|
|
24273
24134
|
var internalRef = useInitScrollRef(null, invert);
|
|
24274
24135
|
var handleRef = useForkRef(internalRef, ref);
|
|
24275
24136
|
var props = _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
@@ -25274,7 +25135,7 @@
|
|
|
25274
25135
|
componentId: "sc-9x4q7e-0"
|
|
25275
25136
|
})(["cursor:auto"]);
|
|
25276
25137
|
|
|
25277
|
-
var _excluded$
|
|
25138
|
+
var _excluded$1m = ["type", "mode", "target", "options", "selected", "mixed", "position", "onChange", "placeholder", "emptyAction", "disableSearch", "forceCloseMenu", "selectClassName", "keepSameOptionsOrder", "onSelectOpen", "onSelectClose", "renderOption", "handleDefaultOptionChange", "preselectDefaultValue", "startAdornment", "endAdornment", "focusInput", "disableVirtualization", "closeOnTab", "prerender", "scopedFocus", "handleScroll"];
|
|
25278
25139
|
var Select = function Select(_ref) {
|
|
25279
25140
|
var _ref$type = _ref.type,
|
|
25280
25141
|
type = _ref$type === void 0 ? "single" : _ref$type,
|
|
@@ -25317,7 +25178,7 @@
|
|
|
25317
25178
|
prerender = _ref.prerender,
|
|
25318
25179
|
scopedFocus = _ref.scopedFocus,
|
|
25319
25180
|
handleScroll = _ref.handleScroll,
|
|
25320
|
-
prop = _objectWithoutProperties(_ref, _excluded$
|
|
25181
|
+
prop = _objectWithoutProperties(_ref, _excluded$1m);
|
|
25321
25182
|
if (disableSearch && (startAdornment || endAdornment)) {
|
|
25322
25183
|
console.warn("Adornments are not visible when search bar is hidden");
|
|
25323
25184
|
}
|
|
@@ -25772,7 +25633,7 @@
|
|
|
25772
25633
|
};
|
|
25773
25634
|
SideNavGroup.displayName = "SideNavGroup";
|
|
25774
25635
|
|
|
25775
|
-
var _excluded$
|
|
25636
|
+
var _excluded$1l = ["id", "icon", "as", "className", "children", "onClick"];
|
|
25776
25637
|
var SideNavItem = function SideNavItem(_ref) {
|
|
25777
25638
|
var id = _ref.id,
|
|
25778
25639
|
icon = _ref.icon,
|
|
@@ -25780,7 +25641,7 @@
|
|
|
25780
25641
|
className = _ref.className,
|
|
25781
25642
|
children = _ref.children,
|
|
25782
25643
|
onClick = _ref.onClick,
|
|
25783
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
25644
|
+
rest = _objectWithoutProperties(_ref, _excluded$1l);
|
|
25784
25645
|
var _useSideNavContext = useSideNavContext(),
|
|
25785
25646
|
selected = _useSideNavContext.selected,
|
|
25786
25647
|
onSelect = _useSideNavContext.onSelect;
|
|
@@ -25856,7 +25717,7 @@
|
|
|
25856
25717
|
SideNav.Group = SideNavGroup;
|
|
25857
25718
|
SideNav.Item = SideNavItem;
|
|
25858
25719
|
|
|
25859
|
-
var _excluded$
|
|
25720
|
+
var _excluded$1k = ["children", "as", "disablePointerEvents"];
|
|
25860
25721
|
var InputAdornmentBase = styled__default["default"].div.withConfig({
|
|
25861
25722
|
displayName: "InputAdornment__InputAdornmentBase",
|
|
25862
25723
|
componentId: "sc-1xfjx1z-0"
|
|
@@ -25875,7 +25736,7 @@
|
|
|
25875
25736
|
var children = _ref.children,
|
|
25876
25737
|
as = _ref.as,
|
|
25877
25738
|
disablePointerEvents = _ref.disablePointerEvents,
|
|
25878
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
25739
|
+
rest = _objectWithoutProperties(_ref, _excluded$1k);
|
|
25879
25740
|
var Component = as || "div";
|
|
25880
25741
|
return /*#__PURE__*/React__default["default"].createElement(InputAdornmentBase, _extends({}, rest, {
|
|
25881
25742
|
as: Component,
|
|
@@ -26118,7 +25979,7 @@
|
|
|
26118
25979
|
};
|
|
26119
25980
|
};
|
|
26120
25981
|
|
|
26121
|
-
var _excluded$
|
|
25982
|
+
var _excluded$1j = ["value", "onCancel", "onSave", "onEnterKeyPress", "allowEmptyValue", "withLeadingZero", "validation", "incrementOnlySelected", "minuteIncrement", "className", "onChange", "onClick", "align"];
|
|
26122
25983
|
var InputHours = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
26123
25984
|
var defaultValue = _ref.value,
|
|
26124
25985
|
onCancel = _ref.onCancel,
|
|
@@ -26138,7 +25999,7 @@
|
|
|
26138
25999
|
externalOnClick = _ref.onClick,
|
|
26139
26000
|
_ref$align = _ref.align,
|
|
26140
26001
|
align = _ref$align === void 0 ? "center" : _ref$align,
|
|
26141
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26002
|
+
rest = _objectWithoutProperties(_ref, _excluded$1j);
|
|
26142
26003
|
var inputRef = React.useRef(null);
|
|
26143
26004
|
var handleRef = useForkRef(ref, inputRef);
|
|
26144
26005
|
var _useInputHours = useInputHours({
|
|
@@ -26177,7 +26038,7 @@
|
|
|
26177
26038
|
});
|
|
26178
26039
|
InputHours.displayName = "InputHours";
|
|
26179
26040
|
|
|
26180
|
-
var _excluded$
|
|
26041
|
+
var _excluded$1i = ["decimalLength", "decimalSeparator", "disableAbbreviation", "disabled", "disableMacros", "invalid", "step", "thousandSeparator", "value", "onCancel", "onSave", "onEnterKeyPress", "allowEmptyValue", "onChange", "onClick", "limit", "placeholder", "trimDecimals", "min", "max", "onBlur", "update", "shortenThreshold"];
|
|
26181
26042
|
var InputNumber = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
26182
26043
|
var _ref$decimalLength = _ref.decimalLength,
|
|
26183
26044
|
decimalLength = _ref$decimalLength === void 0 ? 2 : _ref$decimalLength,
|
|
@@ -26211,7 +26072,7 @@
|
|
|
26211
26072
|
update = _ref$update === void 0 ? false : _ref$update,
|
|
26212
26073
|
_ref$shortenThreshold = _ref.shortenThreshold,
|
|
26213
26074
|
shortenThreshold = _ref$shortenThreshold === void 0 ? 1000 : _ref$shortenThreshold,
|
|
26214
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26075
|
+
rest = _objectWithoutProperties(_ref, _excluded$1i);
|
|
26215
26076
|
var inputRef = React.useRef(null);
|
|
26216
26077
|
var handleRef = useForkRef(ref, inputRef);
|
|
26217
26078
|
var _useInputNumber = useInputNumber({
|
|
@@ -26263,14 +26124,14 @@
|
|
|
26263
26124
|
});
|
|
26264
26125
|
InputNumber.displayName = "InputNumber";
|
|
26265
26126
|
|
|
26266
|
-
var _excluded$
|
|
26127
|
+
var _excluded$1h = ["currency", "size", "startAdornment", "endAdornment", "disabled"];
|
|
26267
26128
|
var InputCurrency = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
26268
26129
|
var currency = _ref.currency,
|
|
26269
26130
|
size = _ref.size,
|
|
26270
26131
|
startAdornment = _ref.startAdornment,
|
|
26271
26132
|
endAdornment = _ref.endAdornment,
|
|
26272
26133
|
disabled = _ref.disabled,
|
|
26273
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26134
|
+
rest = _objectWithoutProperties(_ref, _excluded$1h);
|
|
26274
26135
|
var variant = React.useMemo(function () {
|
|
26275
26136
|
if (size === "biggest") {
|
|
26276
26137
|
return "Header 2";
|
|
@@ -26303,7 +26164,7 @@
|
|
|
26303
26164
|
});
|
|
26304
26165
|
InputCurrency.displayName = "InputCurrency";
|
|
26305
26166
|
|
|
26306
|
-
var _excluded$
|
|
26167
|
+
var _excluded$1g = ["size", "disabled", "show", "hideControl", "showTooltipText", "hideTooltipText", "value", "validation", "errorMessage", "invalid", "onChange", "wrapperClassName"];
|
|
26307
26168
|
var transform = {
|
|
26308
26169
|
biggest: "big",
|
|
26309
26170
|
regular: "small",
|
|
@@ -26397,7 +26258,7 @@
|
|
|
26397
26258
|
invalid = _ref2.invalid,
|
|
26398
26259
|
onChange = _ref2.onChange,
|
|
26399
26260
|
wrapperClassName = _ref2.wrapperClassName,
|
|
26400
|
-
rest = _objectWithoutProperties(_ref2, _excluded$
|
|
26261
|
+
rest = _objectWithoutProperties(_ref2, _excluded$1g);
|
|
26401
26262
|
var inputRef = React.useRef(null);
|
|
26402
26263
|
var handleRef = useForkRef(ref, inputRef);
|
|
26403
26264
|
var _useState = React.useState(show),
|
|
@@ -26532,7 +26393,7 @@
|
|
|
26532
26393
|
.trim(); // Trim leading/trailing whitespace
|
|
26533
26394
|
};
|
|
26534
26395
|
|
|
26535
|
-
var _excluded$
|
|
26396
|
+
var _excluded$1f = ["size", "disabled", "value", "onChange", "scheme"];
|
|
26536
26397
|
var defaultOptions = [{
|
|
26537
26398
|
id: "https://",
|
|
26538
26399
|
name: "https://"
|
|
@@ -26548,7 +26409,7 @@
|
|
|
26548
26409
|
defaultValue = _ref$value === void 0 ? "" : _ref$value,
|
|
26549
26410
|
onChange = _ref.onChange,
|
|
26550
26411
|
scheme = _ref.scheme,
|
|
26551
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26412
|
+
rest = _objectWithoutProperties(_ref, _excluded$1f);
|
|
26552
26413
|
var inputRef = React.useRef(null);
|
|
26553
26414
|
var handleRef = useForkRef(ref, inputRef);
|
|
26554
26415
|
var options = React.useMemo(function () {
|
|
@@ -26676,7 +26537,7 @@
|
|
|
26676
26537
|
});
|
|
26677
26538
|
InputUrl.displayName = "InputUrl";
|
|
26678
26539
|
|
|
26679
|
-
var _excluded$
|
|
26540
|
+
var _excluded$1e = ["size", "disabled", "value", "onChange", "defaultCountry"];
|
|
26680
26541
|
var renderOption$2 = function renderOption(option, data) {
|
|
26681
26542
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(StyledOptionWrapper, null, /*#__PURE__*/React__default["default"].createElement(StyledOptionFlag, null, countryExplorer.getCountryFlag(option.id)), /*#__PURE__*/React__default["default"].createElement(StyledOptionName, null, option.name)), /*#__PURE__*/React__default["default"].createElement(StyledOptionRowEnd, null, /*#__PURE__*/React__default["default"].createElement(StyledOptionCode, null, option.additionalInfo), /*#__PURE__*/React__default["default"].createElement(RadioButton, {
|
|
26682
26543
|
checked: data.checked,
|
|
@@ -26692,7 +26553,7 @@
|
|
|
26692
26553
|
onChange = _ref.onChange,
|
|
26693
26554
|
_ref$defaultCountry = _ref.defaultCountry,
|
|
26694
26555
|
defaultCountry = _ref$defaultCountry === void 0 ? "US" : _ref$defaultCountry,
|
|
26695
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26556
|
+
rest = _objectWithoutProperties(_ref, _excluded$1e);
|
|
26696
26557
|
var inputRef = React.useRef(null);
|
|
26697
26558
|
var handleRef = useForkRef(ref, inputRef);
|
|
26698
26559
|
var _useState = React.useState(defaultCountry),
|
|
@@ -26912,12 +26773,12 @@
|
|
|
26912
26773
|
[ref, handler]);
|
|
26913
26774
|
}
|
|
26914
26775
|
|
|
26915
|
-
var _excluded$
|
|
26776
|
+
var _excluded$1d = ["children", "type"];
|
|
26916
26777
|
var Trigger = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
26917
26778
|
var children = _ref.children,
|
|
26918
26779
|
_ref$type = _ref.type,
|
|
26919
26780
|
type = _ref$type === void 0 ? "button" : _ref$type,
|
|
26920
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26781
|
+
rest = _objectWithoutProperties(_ref, _excluded$1d);
|
|
26921
26782
|
return /*#__PURE__*/React__default["default"].createElement(StyledButton, _extends({
|
|
26922
26783
|
ref: ref,
|
|
26923
26784
|
role: "button",
|
|
@@ -27021,7 +26882,7 @@
|
|
|
27021
26882
|
})(["color:var(--color-theme-700);"]);
|
|
27022
26883
|
ChipCloseIcon.displayName = "ChipCloseIcon";
|
|
27023
26884
|
|
|
27024
|
-
var _excluded$
|
|
26885
|
+
var _excluded$1c = ["startAdornment", "label", "onClose", "size", "shape", "tone", "tint", "tintStrong", "uppercase", "closeMode", "color", "backgroundColor", "closeClassName", "typographyProps"];
|
|
27025
26886
|
var Chip = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
27026
26887
|
var _ref2;
|
|
27027
26888
|
var startAdornment = _ref.startAdornment,
|
|
@@ -27042,7 +26903,7 @@
|
|
|
27042
26903
|
backgroundColor = _ref.backgroundColor,
|
|
27043
26904
|
closeClassName = _ref.closeClassName,
|
|
27044
26905
|
typographyProps = _ref.typographyProps,
|
|
27045
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26906
|
+
rest = _objectWithoutProperties(_ref, _excluded$1c);
|
|
27046
26907
|
var showClose = typeof onClose === "function";
|
|
27047
26908
|
var variant = React.useMemo(function () {
|
|
27048
26909
|
switch (size) {
|
|
@@ -27090,12 +26951,12 @@
|
|
|
27090
26951
|
});
|
|
27091
26952
|
StyledChipGroup.displayName = "StyledChipGroup";
|
|
27092
26953
|
|
|
27093
|
-
var _excluded$
|
|
26954
|
+
var _excluded$1b = ["joined", "children"];
|
|
27094
26955
|
var ChipGroup = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
27095
26956
|
var _ref$joined = _ref.joined,
|
|
27096
26957
|
joined = _ref$joined === void 0 ? false : _ref$joined,
|
|
27097
26958
|
children = _ref.children,
|
|
27098
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26959
|
+
rest = _objectWithoutProperties(_ref, _excluded$1b);
|
|
27099
26960
|
return /*#__PURE__*/React__default["default"].createElement(StyledChipGroup, _extends({
|
|
27100
26961
|
"data-testid": "chip-group"
|
|
27101
26962
|
}, rest, {
|
|
@@ -27106,7 +26967,7 @@
|
|
|
27106
26967
|
ChipGroup.displayName = "ChipGroup";
|
|
27107
26968
|
|
|
27108
26969
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
27109
|
-
var _excluded$
|
|
26970
|
+
var _excluded$1a = ["options", "selected", "keepFilterOnClose", "loading", "loadingText", "onChange", "onInputChange", "placeholder", "handleEmptyAction", "disabled", "size", "invalid", "type", "renderChip", "forceCloseMenu", "renderOption", "limitChips", "hiddenNumberText", "inPortal", "inputWrapperClassName", "listWidth", "listPlacement", "scrollWrapper", "onClose", "onClear", "onDeselect", "defaultValue", "open", "onOpen", "triggerMode", "noResultText", "emptyValue", "disableVirtualization", "hideClearButton", "clearButtonLabel", "errorMessage", "onCancel"];
|
|
27110
26971
|
var sizeMap = {
|
|
27111
26972
|
small: 18,
|
|
27112
26973
|
regular: 24,
|
|
@@ -27165,7 +27026,7 @@
|
|
|
27165
27026
|
clearButtonLabel = _ref.clearButtonLabel,
|
|
27166
27027
|
errorMessage = _ref.errorMessage,
|
|
27167
27028
|
onCancel = _ref.onCancel,
|
|
27168
|
-
prop = _objectWithoutProperties(_ref, _excluded$
|
|
27029
|
+
prop = _objectWithoutProperties(_ref, _excluded$1a);
|
|
27169
27030
|
var selectedName = React.useMemo(function () {
|
|
27170
27031
|
var value = "";
|
|
27171
27032
|
if (!selected) {
|
|
@@ -27632,7 +27493,7 @@
|
|
|
27632
27493
|
componentId: "sc-uvsz9l-0"
|
|
27633
27494
|
})(["display:flex;justify-content:center;"]);
|
|
27634
27495
|
|
|
27635
|
-
var _excluded$
|
|
27496
|
+
var _excluded$19 = ["mode", "selected", "min", "max", "onChange", "step", "size", "className", "placeholder", "triggerMode", "disabled", "invalid", "enableVirtualization", "addCustomTimeLabel"];
|
|
27636
27497
|
nlp__default["default"].plugin(plg__default["default"]);
|
|
27637
27498
|
var StyledInputTimeWrapper = styled__default["default"].div.withConfig({
|
|
27638
27499
|
displayName: "InputTime__StyledInputTimeWrapper",
|
|
@@ -27665,7 +27526,7 @@
|
|
|
27665
27526
|
enableVirtualization = _ref$enableVirtualiza === void 0 ? false : _ref$enableVirtualiza,
|
|
27666
27527
|
_ref$addCustomTimeLab = _ref.addCustomTimeLabel,
|
|
27667
27528
|
addCustomTimeLabel = _ref$addCustomTimeLab === void 0 ? "Add" : _ref$addCustomTimeLab,
|
|
27668
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27529
|
+
rest = _objectWithoutProperties(_ref, _excluded$19);
|
|
27669
27530
|
var _useState = React.useState(false),
|
|
27670
27531
|
_useState2 = _slicedToArray(_useState, 2),
|
|
27671
27532
|
isOpen = _useState2[0],
|
|
@@ -27804,7 +27665,7 @@
|
|
|
27804
27665
|
})));
|
|
27805
27666
|
};
|
|
27806
27667
|
|
|
27807
|
-
var _excluded$
|
|
27668
|
+
var _excluded$18 = ["value", "variant", "thousandSeparator", "decimalSeparator", "trimDecimals", "decimalSpaces", "format", "disableTooltip", "className", "as", "shortenThreshold"];
|
|
27808
27669
|
var DisplayNumber = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
27809
27670
|
var value = _ref.value,
|
|
27810
27671
|
_ref$variant = _ref.variant,
|
|
@@ -27826,7 +27687,7 @@
|
|
|
27826
27687
|
as = _ref$as === void 0 ? "span" : _ref$as,
|
|
27827
27688
|
_ref$shortenThreshold = _ref.shortenThreshold,
|
|
27828
27689
|
shortenThreshold = _ref$shortenThreshold === void 0 ? 1000 : _ref$shortenThreshold,
|
|
27829
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27690
|
+
rest = _objectWithoutProperties(_ref, _excluded$18);
|
|
27830
27691
|
var formattedValue = formatNumber(value, thousandSeparator, decimalSeparator, trimDecimals, decimalSpaces, format, shortenThreshold);
|
|
27831
27692
|
var formattedLongValue = formatNumber(value, thousandSeparator, decimalSeparator, trimDecimals, decimalSpaces, "long");
|
|
27832
27693
|
if (format === "short") {
|
|
@@ -27849,7 +27710,7 @@
|
|
|
27849
27710
|
});
|
|
27850
27711
|
DisplayNumber.displayName = "DisplayNumber";
|
|
27851
27712
|
|
|
27852
|
-
var _excluded$
|
|
27713
|
+
var _excluded$17 = ["value", "variant", "currencyCode", "currencyPosition", "thousandSeparator", "decimalSeparator", "trimDecimals", "decimalSpaces", "format", "disableTooltip", "className", "as", "currencyClassName"];
|
|
27853
27714
|
var DisplayCurrency = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
27854
27715
|
var value = _ref.value,
|
|
27855
27716
|
_ref$variant = _ref.variant,
|
|
@@ -27874,7 +27735,7 @@
|
|
|
27874
27735
|
_ref$as = _ref.as,
|
|
27875
27736
|
as = _ref$as === void 0 ? "span" : _ref$as,
|
|
27876
27737
|
currencyClassName = _ref.currencyClassName,
|
|
27877
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27738
|
+
rest = _objectWithoutProperties(_ref, _excluded$17);
|
|
27878
27739
|
var formattedValue = formatNumber(value, thousandSeparator, decimalSeparator, trimDecimals, decimalSpaces, "short", 10000);
|
|
27879
27740
|
var formattedLongValue = formatNumber(value, thousandSeparator, decimalSeparator, trimDecimals, decimalSpaces, "long", 10000);
|
|
27880
27741
|
if (format === "short") {
|
|
@@ -27905,7 +27766,7 @@
|
|
|
27905
27766
|
});
|
|
27906
27767
|
DisplayCurrency.displayName = "DisplayCurrency";
|
|
27907
27768
|
|
|
27908
|
-
var _excluded$
|
|
27769
|
+
var _excluded$16 = ["value", "variant", "thousandSeparator", "decimalSeparator", "trimZeroMinutes", "trimDecimals", "decimalSpaces", "format", "disableTooltip", "className", "withLeadingZero", "as"];
|
|
27909
27770
|
var DisplayHours = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
27910
27771
|
var value = _ref.value,
|
|
27911
27772
|
_ref$variant = _ref.variant,
|
|
@@ -27928,7 +27789,7 @@
|
|
|
27928
27789
|
withLeadingZero = _ref.withLeadingZero,
|
|
27929
27790
|
_ref$as = _ref.as,
|
|
27930
27791
|
as = _ref$as === void 0 ? "span" : _ref$as,
|
|
27931
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27792
|
+
rest = _objectWithoutProperties(_ref, _excluded$16);
|
|
27932
27793
|
var shouldDisplayShort = format === "short" && value >= 1000;
|
|
27933
27794
|
var longValue = formatHours(value, withLeadingZero, trimZeroMinutes, "long");
|
|
27934
27795
|
var shortValue = formatNumber(value, thousandSeparator, decimalSeparator, trimDecimals, decimalSpaces, "short");
|
|
@@ -28187,11 +28048,11 @@
|
|
|
28187
28048
|
};
|
|
28188
28049
|
DrilldownMenu.displayName = "DrilldownMenu";
|
|
28189
28050
|
|
|
28190
|
-
var _excluded$
|
|
28051
|
+
var _excluded$15 = ["expanded"];
|
|
28191
28052
|
var ExpandAll = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
28192
28053
|
var _ref$expanded = _ref.expanded,
|
|
28193
28054
|
expanded = _ref$expanded === void 0 ? false : _ref$expanded,
|
|
28194
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
28055
|
+
rest = _objectWithoutProperties(_ref, _excluded$15);
|
|
28195
28056
|
return /*#__PURE__*/React__default["default"].createElement(StyledExpand, _extends({
|
|
28196
28057
|
ref: ref,
|
|
28197
28058
|
viewBox: "0 0 24 24"
|
|
@@ -28306,7 +28167,7 @@
|
|
|
28306
28167
|
});
|
|
28307
28168
|
StyledRadioCard.displayName = "StyledRadioCard";
|
|
28308
28169
|
|
|
28309
|
-
var _excluded$
|
|
28170
|
+
var _excluded$14 = ["title", "children", "description", "icon", "variant", "invalid", "className", "id", "checked", "disabled"];
|
|
28310
28171
|
/**
|
|
28311
28172
|
* A single radio option that owns a real, reachable native `<input type="radio">`.
|
|
28312
28173
|
* The whole card is one `<label>`, so clicking the title or description selects
|
|
@@ -28325,7 +28186,7 @@
|
|
|
28325
28186
|
id = _ref.id,
|
|
28326
28187
|
checked = _ref.checked,
|
|
28327
28188
|
disabled = _ref.disabled,
|
|
28328
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
28189
|
+
props = _objectWithoutProperties(_ref, _excluded$14);
|
|
28329
28190
|
var inputId = useStableId(id);
|
|
28330
28191
|
var descriptionId = description ? "".concat(inputId, "-desc") : undefined;
|
|
28331
28192
|
var isInvalid = invalid && !checked;
|
|
@@ -28432,14 +28293,14 @@
|
|
|
28432
28293
|
});
|
|
28433
28294
|
StyledTiles.displayName = "StyledTiles";
|
|
28434
28295
|
|
|
28435
|
-
var _excluded$
|
|
28296
|
+
var _excluded$13 = ["columns", "space", "collapseBelow", "children"];
|
|
28436
28297
|
var Tiles = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
28437
28298
|
var columns = _ref.columns,
|
|
28438
28299
|
_ref$space = _ref.space,
|
|
28439
28300
|
space = _ref$space === void 0 ? "md" : _ref$space,
|
|
28440
28301
|
collapseBelow = _ref.collapseBelow,
|
|
28441
28302
|
children = _ref.children,
|
|
28442
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
28303
|
+
rest = _objectWithoutProperties(_ref, _excluded$13);
|
|
28443
28304
|
return /*#__PURE__*/React__default["default"].createElement(StyledTiles, _extends({
|
|
28444
28305
|
ref: ref,
|
|
28445
28306
|
$cols: columns,
|
|
@@ -28449,7 +28310,7 @@
|
|
|
28449
28310
|
});
|
|
28450
28311
|
Tiles.displayName = "Tiles";
|
|
28451
28312
|
|
|
28452
|
-
var _excluded$
|
|
28313
|
+
var _excluded$12 = ["options", "value", "onChange", "name", "label", "hideLabel", "description", "required", "invalid", "errorMessage", "disabled", "variant", "orientation", "columns", "collapseBelow", "space", "className"];
|
|
28453
28314
|
var RadioGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
28454
28315
|
var options = _ref.options,
|
|
28455
28316
|
value = _ref.value,
|
|
@@ -28474,7 +28335,7 @@
|
|
|
28474
28335
|
collapseBelow = _ref.collapseBelow,
|
|
28475
28336
|
space = _ref.space,
|
|
28476
28337
|
className = _ref.className,
|
|
28477
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
28338
|
+
rest = _objectWithoutProperties(_ref, _excluded$12);
|
|
28478
28339
|
var groupName = useStableId(name);
|
|
28479
28340
|
var messageId = useStableId();
|
|
28480
28341
|
|
|
@@ -28572,7 +28433,7 @@
|
|
|
28572
28433
|
});
|
|
28573
28434
|
StyledTextarea.displayName = "StyledTextarea";
|
|
28574
28435
|
|
|
28575
|
-
var _excluded$
|
|
28436
|
+
var _excluded$11 = ["className", "disabled", "invalid", "mode"];
|
|
28576
28437
|
var Textarea = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
28577
28438
|
var className = _ref.className,
|
|
28578
28439
|
_ref$disabled = _ref.disabled,
|
|
@@ -28581,7 +28442,7 @@
|
|
|
28581
28442
|
invalid = _ref$invalid === void 0 ? false : _ref$invalid,
|
|
28582
28443
|
_ref$mode = _ref.mode,
|
|
28583
28444
|
mode = _ref$mode === void 0 ? "outlined" : _ref$mode,
|
|
28584
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
28445
|
+
rest = _objectWithoutProperties(_ref, _excluded$11);
|
|
28585
28446
|
return /*#__PURE__*/React__default["default"].createElement(StyledTextarea, _extends({}, rest, {
|
|
28586
28447
|
$invalid: invalid,
|
|
28587
28448
|
ref: ref,
|
|
@@ -28595,6 +28456,128 @@
|
|
|
28595
28456
|
});
|
|
28596
28457
|
Textarea.displayName = "Textarea";
|
|
28597
28458
|
|
|
28459
|
+
function createChainedFunction() {
|
|
28460
|
+
for (var _len = arguments.length, functions = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
28461
|
+
functions[_key] = arguments[_key];
|
|
28462
|
+
}
|
|
28463
|
+
return functions.reduce(function (acc, func) {
|
|
28464
|
+
if (func === null) {
|
|
28465
|
+
return acc;
|
|
28466
|
+
}
|
|
28467
|
+
return function chainedFunction() {
|
|
28468
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
28469
|
+
args[_key2] = arguments[_key2];
|
|
28470
|
+
}
|
|
28471
|
+
acc && acc.apply(this, args);
|
|
28472
|
+
func && func.apply(this, args);
|
|
28473
|
+
};
|
|
28474
|
+
},
|
|
28475
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
28476
|
+
function () {});
|
|
28477
|
+
}
|
|
28478
|
+
|
|
28479
|
+
var _excluded$10 = ["children", "disableFocusLock", "disableScrollLock", "disableBackgroundClick", "disableBackgroundColor", "disableCloseOnEsc", "open", "overlayTimeout", "onClose", "onClickOutside"];
|
|
28480
|
+
var getHasTransition = function getHasTransition(children) {
|
|
28481
|
+
return children.props ? Object.prototype.hasOwnProperty.call(children.props, "in") : false;
|
|
28482
|
+
};
|
|
28483
|
+
|
|
28484
|
+
// The modal behind Dialog and ObjectFormModal. It stays out of the package index, so only the design system renders it.
|
|
28485
|
+
var ModalBase = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
28486
|
+
var children = _ref.children,
|
|
28487
|
+
_ref$disableFocusLock = _ref.disableFocusLock,
|
|
28488
|
+
disableFocusLock = _ref$disableFocusLock === void 0 ? false : _ref$disableFocusLock,
|
|
28489
|
+
_ref$disableScrollLoc = _ref.disableScrollLock,
|
|
28490
|
+
disableScrollLock = _ref$disableScrollLoc === void 0 ? false : _ref$disableScrollLoc,
|
|
28491
|
+
_ref$disableBackgroun = _ref.disableBackgroundClick,
|
|
28492
|
+
disableBackgroundClick = _ref$disableBackgroun === void 0 ? false : _ref$disableBackgroun,
|
|
28493
|
+
_ref$disableBackgroun2 = _ref.disableBackgroundColor,
|
|
28494
|
+
disableBackgroundColor = _ref$disableBackgroun2 === void 0 ? false : _ref$disableBackgroun2,
|
|
28495
|
+
_ref$disableCloseOnEs = _ref.disableCloseOnEsc,
|
|
28496
|
+
disableCloseOnEsc = _ref$disableCloseOnEs === void 0 ? false : _ref$disableCloseOnEs,
|
|
28497
|
+
_ref$open = _ref.open,
|
|
28498
|
+
defaultOpen = _ref$open === void 0 ? false : _ref$open,
|
|
28499
|
+
_ref$overlayTimeout = _ref.overlayTimeout,
|
|
28500
|
+
overlayTimeout = _ref$overlayTimeout === void 0 ? {
|
|
28501
|
+
enter: SLIDE_FROM_TOP_ENTER,
|
|
28502
|
+
exit: SLIDE_FROM_TOP_EXIT
|
|
28503
|
+
} : _ref$overlayTimeout,
|
|
28504
|
+
onClose = _ref.onClose,
|
|
28505
|
+
onClickOutside = _ref.onClickOutside,
|
|
28506
|
+
rest = _objectWithoutProperties(_ref, _excluded$10);
|
|
28507
|
+
var _useState = React.useState(defaultOpen),
|
|
28508
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
28509
|
+
open = _useState2[0],
|
|
28510
|
+
setOpen = _useState2[1];
|
|
28511
|
+
var _useState3 = React.useState(true),
|
|
28512
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
28513
|
+
exited = _useState4[0],
|
|
28514
|
+
setExited = _useState4[1];
|
|
28515
|
+
var innerRef = React.useRef(null);
|
|
28516
|
+
var handleRef = useForkRef(innerRef, ref);
|
|
28517
|
+
var hasTransition = React.useMemo(function () {
|
|
28518
|
+
return getHasTransition(children);
|
|
28519
|
+
}, [children]);
|
|
28520
|
+
React.useEffect(function () {
|
|
28521
|
+
setOpen(defaultOpen);
|
|
28522
|
+
}, [defaultOpen]);
|
|
28523
|
+
var handleClose = React.useCallback(function () {
|
|
28524
|
+
setOpen(false);
|
|
28525
|
+
if (!hasTransition) {
|
|
28526
|
+
typeof onClose === "function" && onClose();
|
|
28527
|
+
}
|
|
28528
|
+
}, [hasTransition, onClose]);
|
|
28529
|
+
var handleBackgroundClick = React.useCallback(function (event) {
|
|
28530
|
+
if (!disableBackgroundClick) {
|
|
28531
|
+
event.preventDefault();
|
|
28532
|
+
return handleClose();
|
|
28533
|
+
}
|
|
28534
|
+
if (onClickOutside) {
|
|
28535
|
+
onClickOutside(event);
|
|
28536
|
+
}
|
|
28537
|
+
}, [disableBackgroundClick, onClickOutside, handleClose]);
|
|
28538
|
+
var handleEnter = React.useCallback(function () {
|
|
28539
|
+
setExited(false);
|
|
28540
|
+
}, []);
|
|
28541
|
+
var handleExited = React.useCallback(function () {
|
|
28542
|
+
setExited(true);
|
|
28543
|
+
typeof onClose === "function" && onClose();
|
|
28544
|
+
}, [onClose]);
|
|
28545
|
+
var childProps = React.useMemo(function () {
|
|
28546
|
+
var props = {};
|
|
28547
|
+
|
|
28548
|
+
// It's a Transition like component
|
|
28549
|
+
if (hasTransition && children) {
|
|
28550
|
+
props = {
|
|
28551
|
+
onEnter: createChainedFunction(handleEnter, children.props.onEnter),
|
|
28552
|
+
onExited: createChainedFunction(handleExited, children.props.onExited),
|
|
28553
|
+
in: open,
|
|
28554
|
+
forceClose: handleClose
|
|
28555
|
+
};
|
|
28556
|
+
}
|
|
28557
|
+
return props;
|
|
28558
|
+
}, [children, handleClose, handleEnter, handleExited, hasTransition, open]);
|
|
28559
|
+
if (!open && (!hasTransition || exited)) {
|
|
28560
|
+
return null;
|
|
28561
|
+
}
|
|
28562
|
+
return /*#__PURE__*/React__default["default"].createElement(Window, _extends({}, rest, {
|
|
28563
|
+
ref: handleRef,
|
|
28564
|
+
onClose: handleClose,
|
|
28565
|
+
disableFocusLock: disableFocusLock,
|
|
28566
|
+
disableScrollLock: disableScrollLock,
|
|
28567
|
+
disableCloseOnEsc: disableCloseOnEsc
|
|
28568
|
+
}), /*#__PURE__*/React__default["default"].createElement(Fade, {
|
|
28569
|
+
in: open,
|
|
28570
|
+
timeout: open ? overlayTimeout.enter : overlayTimeout.exit
|
|
28571
|
+
}, /*#__PURE__*/React__default["default"].createElement(Overlay, {
|
|
28572
|
+
onClick: handleBackgroundClick,
|
|
28573
|
+
disableBackgroundColor: disableBackgroundColor,
|
|
28574
|
+
style: {
|
|
28575
|
+
pointerEvents: open ? undefined : "none"
|
|
28576
|
+
}
|
|
28577
|
+
})), /*#__PURE__*/React.cloneElement(children, childProps));
|
|
28578
|
+
});
|
|
28579
|
+
ModalBase.displayName = "ModalBase";
|
|
28580
|
+
|
|
28598
28581
|
var warnedAboutDeprecation = false;
|
|
28599
28582
|
|
|
28600
28583
|
/**
|
|
@@ -28873,6 +28856,7 @@
|
|
|
28873
28856
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
28874
28857
|
captured = _useState4[0],
|
|
28875
28858
|
setCaptured = _useState4[1];
|
|
28859
|
+
var belowOpenSheetsId = React.useSyncExternalStore(subscribeToModalRoots, getTopModalRootIdBelowOpenSheets);
|
|
28876
28860
|
|
|
28877
28861
|
// The modal is picked only as the sheet opens, never on a later render while it stays open.
|
|
28878
28862
|
if (visible !== wasVisible) {
|
|
@@ -28882,6 +28866,12 @@
|
|
|
28882
28866
|
modalRootId,
|
|
28883
28867
|
host: createHost$1()
|
|
28884
28868
|
});
|
|
28869
|
+
} else if (visible && enabled && captured === null && belowOpenSheetsId !== undefined) {
|
|
28870
|
+
// A sheet in the page moves into a modal that opens below open sheets. A sheet in a modal already follows it.
|
|
28871
|
+
setCaptured({
|
|
28872
|
+
modalRootId: belowOpenSheetsId,
|
|
28873
|
+
host: createHost$1()
|
|
28874
|
+
});
|
|
28885
28875
|
}
|
|
28886
28876
|
var placed = useModalStackHost((_captured$host = captured === null || captured === void 0 ? void 0 : captured.host) !== null && _captured$host !== void 0 ? _captured$host : null, captured === null || captured === void 0 ? void 0 : captured.modalRootId);
|
|
28887
28877
|
return {
|
|
@@ -28890,7 +28880,7 @@
|
|
|
28890
28880
|
};
|
|
28891
28881
|
};
|
|
28892
28882
|
|
|
28893
|
-
var _excluded$_ = ["children", "onClose", "controls", "open", "animation", "position", "mode", "maxWidth", "surface", "disableFocusLock", "disableScrollLock", "disableBackgroundColor", "bodyStyle", "bodyClassName", "disableBackgroundClick"];
|
|
28883
|
+
var _excluded$_ = ["children", "onClose", "controls", "open", "animation", "position", "mode", "maxWidth", "surface", "disableFocusLock", "disableScrollLock", "disableBackgroundColor", "bodyStyle", "bodyClassName", "dismissOnBackdropClick", "onBackdropClickBlocked", "disableBackgroundClick"];
|
|
28894
28884
|
var INSET_VAR = "--c-sheet-inset-right";
|
|
28895
28885
|
var INSET_DURATION_VAR = "--c-sheet-inset-duration";
|
|
28896
28886
|
// The controls column stands 48px left of the sheet. With less room it is not there.
|
|
@@ -28975,8 +28965,9 @@
|
|
|
28975
28965
|
disableBackgroundColor = _ref$disableBackgroun === void 0 ? false : _ref$disableBackgroun,
|
|
28976
28966
|
bodyStyle = _ref.bodyStyle,
|
|
28977
28967
|
bodyClassName = _ref.bodyClassName,
|
|
28978
|
-
|
|
28979
|
-
|
|
28968
|
+
dismissOnBackdropClick = _ref.dismissOnBackdropClick,
|
|
28969
|
+
onBackdropClickBlocked = _ref.onBackdropClickBlocked,
|
|
28970
|
+
disableBackgroundClick = _ref.disableBackgroundClick,
|
|
28980
28971
|
rest = _objectWithoutProperties(_ref, _excluded$_);
|
|
28981
28972
|
var _useState = React.useState(defaultOpen),
|
|
28982
28973
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -29012,12 +29003,22 @@
|
|
|
29012
29003
|
var handleOverlayExit = React.useCallback(function () {
|
|
29013
29004
|
setOverlayEntered(false);
|
|
29014
29005
|
}, []);
|
|
29006
|
+
usePropWarning("Sheet", "disableBackgroundClick", disableBackgroundClick, "deprecated", "Use dismissOnBackdropClick={false}.");
|
|
29007
|
+
var closesOnBackdropClick = dismissOnBackdropClick !== null && dismissOnBackdropClick !== void 0 ? dismissOnBackdropClick : !disableBackgroundClick;
|
|
29008
|
+
|
|
29009
|
+
// Over a native dialog the overlay takes clicks while it fades out too, and a sheet that is closing has nothing
|
|
29010
|
+
// left to block.
|
|
29015
29011
|
var handleBackgroundClick = React.useCallback(function (event) {
|
|
29016
|
-
if (!
|
|
29012
|
+
if (!open) {
|
|
29013
|
+
return;
|
|
29014
|
+
}
|
|
29015
|
+
if (closesOnBackdropClick) {
|
|
29017
29016
|
event.preventDefault();
|
|
29018
29017
|
handleClose();
|
|
29018
|
+
} else {
|
|
29019
|
+
onBackdropClickBlocked === null || onBackdropClickBlocked === void 0 || onBackdropClickBlocked(event);
|
|
29019
29020
|
}
|
|
29020
|
-
}, [
|
|
29021
|
+
}, [open, closesOnBackdropClick, handleClose, onBackdropClickBlocked]);
|
|
29021
29022
|
React.useImperativeHandle(ref, function () {
|
|
29022
29023
|
return {
|
|
29023
29024
|
close: handleClose
|
|
@@ -31171,13 +31172,13 @@
|
|
|
31171
31172
|
}, FontStyle, BoxSizingStyle);
|
|
31172
31173
|
StyledObjectFormModal.displayName = "StyledObjectFormModal";
|
|
31173
31174
|
|
|
31174
|
-
var _excluded$J = ["children", "open", "onClose", "label", "size", "enableBackgroundClick", "disableCloseOnEsc", "disableFocusLock", "fill", "closeButton", "closeLabel", "className"];
|
|
31175
|
-
//
|
|
31175
|
+
var _excluded$J = ["children", "open", "onClose", "label", "size", "dismissOnBackdropClick", "onBackdropClickBlocked", "enableBackgroundClick", "disableCloseOnEsc", "disableFocusLock", "fill", "closeButton", "closeLabel", "className"];
|
|
31176
|
+
// Menus and pickers opened from the form keep the layer they had before the form became a native modal.
|
|
31176
31177
|
var MODAL_LAYER = {
|
|
31177
31178
|
zIndex: layers.skyscraper
|
|
31178
31179
|
};
|
|
31179
31180
|
var ObjectFormModal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
31180
|
-
var _dialogSizes$size;
|
|
31181
|
+
var _ref2, _dialogSizes$size;
|
|
31181
31182
|
var children = _ref.children,
|
|
31182
31183
|
_ref$open = _ref.open,
|
|
31183
31184
|
open = _ref$open === void 0 ? false : _ref$open,
|
|
@@ -31185,12 +31186,12 @@
|
|
|
31185
31186
|
label = _ref.label,
|
|
31186
31187
|
_ref$size = _ref.size,
|
|
31187
31188
|
size = _ref$size === void 0 ? "s" : _ref$size,
|
|
31188
|
-
|
|
31189
|
-
|
|
31189
|
+
dismissOnBackdropClick = _ref.dismissOnBackdropClick,
|
|
31190
|
+
onBackdropClickBlocked = _ref.onBackdropClickBlocked,
|
|
31191
|
+
enableBackgroundClick = _ref.enableBackgroundClick,
|
|
31190
31192
|
_ref$disableCloseOnEs = _ref.disableCloseOnEsc,
|
|
31191
31193
|
disableCloseOnEsc = _ref$disableCloseOnEs === void 0 ? false : _ref$disableCloseOnEs,
|
|
31192
|
-
|
|
31193
|
-
disableFocusLock = _ref$disableFocusLock === void 0 ? false : _ref$disableFocusLock,
|
|
31194
|
+
disableFocusLock = _ref.disableFocusLock,
|
|
31194
31195
|
_ref$fill = _ref.fill,
|
|
31195
31196
|
fill = _ref$fill === void 0 ? false : _ref$fill,
|
|
31196
31197
|
_ref$closeButton = _ref.closeButton,
|
|
@@ -31212,19 +31213,19 @@
|
|
|
31212
31213
|
}
|
|
31213
31214
|
}, [ref]);
|
|
31214
31215
|
useFluidHeightAnimation(surfaceNode, true);
|
|
31216
|
+
usePropWarning("ObjectFormModal", "enableBackgroundClick", enableBackgroundClick, "deprecated", "Use dismissOnBackdropClick.");
|
|
31217
|
+
usePropWarning("ObjectFormModal", "disableFocusLock", disableFocusLock, "removed", "The modal is a native dialog now, so remove it.");
|
|
31215
31218
|
return /*#__PURE__*/React__default["default"].createElement(LayerContextProvider, {
|
|
31216
31219
|
value: MODAL_LAYER
|
|
31217
31220
|
}, /*#__PURE__*/React__default["default"].createElement(DialogFrame, {
|
|
31218
31221
|
open: open,
|
|
31219
31222
|
onClose: onClose,
|
|
31220
|
-
enableBackgroundClick:
|
|
31223
|
+
dismissOnBackdropClick: (_ref2 = dismissOnBackdropClick !== null && dismissOnBackdropClick !== void 0 ? dismissOnBackdropClick : enableBackgroundClick) !== null && _ref2 !== void 0 ? _ref2 : false,
|
|
31224
|
+
onBackdropClickBlocked: onBackdropClickBlocked,
|
|
31221
31225
|
disableCloseOnEsc: disableCloseOnEsc,
|
|
31222
|
-
|
|
31226
|
+
"aria-label": label,
|
|
31223
31227
|
surface: /*#__PURE__*/React__default["default"].createElement(StyledObjectFormModal, _extends({}, rest, {
|
|
31224
31228
|
ref: setSurface,
|
|
31225
|
-
role: "dialog",
|
|
31226
|
-
"aria-modal": "true",
|
|
31227
|
-
"aria-label": label,
|
|
31228
31229
|
$maxWidth: (_dialogSizes$size = dialogSizes[size]) !== null && _dialogSizes$size !== void 0 ? _dialogSizes$size : dialogSizes.s,
|
|
31229
31230
|
$fill: fill || closeButton,
|
|
31230
31231
|
$closeButton: closeButton,
|
|
@@ -34296,6 +34297,7 @@
|
|
|
34296
34297
|
ref: ref,
|
|
34297
34298
|
open: open,
|
|
34298
34299
|
onClose: onClose,
|
|
34300
|
+
"aria-label": title,
|
|
34299
34301
|
disableCloseOnEsc: disableCloseOnEsc,
|
|
34300
34302
|
className: dialogClassName,
|
|
34301
34303
|
size: (_activeStepProps$size = activeStepProps.size) !== null && _activeStepProps$size !== void 0 ? _activeStepProps$size : size,
|
|
@@ -34915,7 +34917,7 @@
|
|
|
34915
34917
|
});
|
|
34916
34918
|
};
|
|
34917
34919
|
|
|
34918
|
-
var _excluded$l = ["children", "onChangeSearch", "search", "mode", "setMode", "loading", "idModeEnabled"];
|
|
34920
|
+
var _excluded$l = ["children", "onChangeSearch", "search", "mode", "setMode", "loading", "idModeEnabled", "aria-label"];
|
|
34919
34921
|
var _CommandPalette = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
34920
34922
|
var children = _ref.children,
|
|
34921
34923
|
onChangeSearch = _ref.onChangeSearch,
|
|
@@ -34925,6 +34927,7 @@
|
|
|
34925
34927
|
loading = _ref.loading,
|
|
34926
34928
|
_ref$idModeEnabled = _ref.idModeEnabled,
|
|
34927
34929
|
idModeEnabled = _ref$idModeEnabled === void 0 ? false : _ref$idModeEnabled,
|
|
34930
|
+
ariaLabel = _ref["aria-label"],
|
|
34928
34931
|
rest = _objectWithoutProperties(_ref, _excluded$l);
|
|
34929
34932
|
var _useState = React.useState(0),
|
|
34930
34933
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -35009,6 +35012,7 @@
|
|
|
35009
35012
|
}
|
|
35010
35013
|
};
|
|
35011
35014
|
return /*#__PURE__*/React__default["default"].createElement(Dialog, _extends({}, rest, {
|
|
35015
|
+
"aria-label": ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : rest["aria-labelledby"] ? undefined : "Search",
|
|
35012
35016
|
ref: ref,
|
|
35013
35017
|
animate: "fade"
|
|
35014
35018
|
}), /*#__PURE__*/React__default["default"].createElement(SearchContextProvider, {
|