@activecollab/components 2.0.542 → 2.0.543
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 +3 -3
- 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 +21 -100
- package/dist/cjs/components/Dialog/DialogFrame.js.map +1 -1
- package/dist/cjs/components/Dialog/useRemovedPropWarning.js +22 -0
- package/dist/cjs/components/Dialog/useRemovedPropWarning.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 +5 -7
- package/dist/cjs/components/ObjectFormModal/ObjectFormModal.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/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 +15 -3
- package/dist/esm/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/esm/components/Dialog/Dialog.js +3 -3
- 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 +23 -100
- package/dist/esm/components/Dialog/DialogFrame.js.map +1 -1
- package/dist/esm/components/Dialog/useRemovedPropWarning.d.ts +3 -0
- package/dist/esm/components/Dialog/useRemovedPropWarning.d.ts.map +1 -0
- package/dist/esm/components/Dialog/useRemovedPropWarning.js +16 -0
- package/dist/esm/components/Dialog/useRemovedPropWarning.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 +4 -0
- package/dist/esm/components/ObjectFormModal/ObjectFormModal.d.ts.map +1 -1
- package/dist/esm/components/ObjectFormModal/ObjectFormModal.js +5 -7
- 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/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/index.js +326 -346
- 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", "enableBackgroundClick", "disableCloseOnEsc", "animate", "onClickOutside", "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$enableBackground = _ref.enableBackgroundClick,
|
|
19435
|
+
enableBackgroundClick = _ref$enableBackground === void 0 ? false : _ref$enableBackground,
|
|
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
|
+
onClickOutside = _ref.onClickOutside,
|
|
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],
|
|
@@ -19622,11 +19511,12 @@
|
|
|
19622
19511
|
onDismissBlocked: handleDismissBlocked,
|
|
19623
19512
|
onClose: onClose,
|
|
19624
19513
|
disableCloseOnEsc: disableCloseOnEsc,
|
|
19514
|
+
disableReturnFocus: disableReturnFocus,
|
|
19625
19515
|
disableBackgroundClick: !enableBackgroundClick,
|
|
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,7 +19665,22 @@
|
|
|
19827
19665
|
}, [node, enabled]);
|
|
19828
19666
|
};
|
|
19829
19667
|
|
|
19830
|
-
var
|
|
19668
|
+
var warned = new Set();
|
|
19669
|
+
|
|
19670
|
+
/** Warns once per component and prop in development while a caller still passes a prop that no longer does anything. */
|
|
19671
|
+
var useRemovedPropWarning = function useRemovedPropWarning(component, prop, value, message) {
|
|
19672
|
+
React.useEffect(function () {
|
|
19673
|
+
var key = "".concat(component, ".").concat(prop);
|
|
19674
|
+
if (process.env.NODE_ENV === "production" || value === undefined || warned.has(key)) {
|
|
19675
|
+
return;
|
|
19676
|
+
}
|
|
19677
|
+
warned.add(key);
|
|
19678
|
+
// eslint-disable-next-line no-console
|
|
19679
|
+
console.warn("".concat(component, ": the ").concat(prop, " prop is gone. ").concat(message));
|
|
19680
|
+
}, [component, prop, value, message]);
|
|
19681
|
+
};
|
|
19682
|
+
|
|
19683
|
+
var _excluded$1L = ["children", "open", "onClose", "className", "enableBackgroundClick", "disableCloseOnEsc", "animate", "onClickOutside", "size", "height", "native"];
|
|
19831
19684
|
var _Dialog = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
19832
19685
|
var _dialogSizes$size;
|
|
19833
19686
|
var children = _ref.children,
|
|
@@ -19846,13 +19699,13 @@
|
|
|
19846
19699
|
size = _ref$size === void 0 ? "m" : _ref$size,
|
|
19847
19700
|
_ref$height = _ref.height,
|
|
19848
19701
|
height = _ref$height === void 0 ? "fluid" : _ref$height,
|
|
19849
|
-
|
|
19850
|
-
|
|
19851
|
-
rest = _objectWithoutProperties(_ref, _excluded$1K);
|
|
19702
|
+
native = _ref.native,
|
|
19703
|
+
rest = _objectWithoutProperties(_ref, _excluded$1L);
|
|
19852
19704
|
var _useState = React.useState(null),
|
|
19853
19705
|
_useState2 = _slicedToArray(_useState, 2),
|
|
19854
19706
|
dialogNode = _useState2[0],
|
|
19855
19707
|
setDialogNode = _useState2[1];
|
|
19708
|
+
useRemovedPropWarning("Dialog", "native", native, "Every Dialog is a native modal now, so remove it.");
|
|
19856
19709
|
useFluidHeightAnimation(dialogNode, height === "fluid");
|
|
19857
19710
|
var surface = /*#__PURE__*/React__default["default"].createElement(StyledDialog, {
|
|
19858
19711
|
ref: setDialogNode,
|
|
@@ -19862,7 +19715,6 @@
|
|
|
19862
19715
|
}, children);
|
|
19863
19716
|
return /*#__PURE__*/React__default["default"].createElement(DialogFrame, _extends({}, rest, {
|
|
19864
19717
|
forwardedRef: ref,
|
|
19865
|
-
native: native,
|
|
19866
19718
|
open: open,
|
|
19867
19719
|
onClose: onClose,
|
|
19868
19720
|
enableBackgroundClick: enableBackgroundClick,
|
|
@@ -19910,12 +19762,12 @@
|
|
|
19910
19762
|
confirmationLabel = _ref.confirmationLabel,
|
|
19911
19763
|
size = _ref.size,
|
|
19912
19764
|
height = _ref.height,
|
|
19913
|
-
|
|
19914
|
-
native = _ref$native === void 0 ? true : _ref$native;
|
|
19765
|
+
native = _ref.native;
|
|
19915
19766
|
var _useState = React.useState(false),
|
|
19916
19767
|
_useState2 = _slicedToArray(_useState, 2),
|
|
19917
19768
|
confirmed = _useState2[0],
|
|
19918
19769
|
setConfirmed = _useState2[1];
|
|
19770
|
+
useRemovedPropWarning("ConfirmDialog", "native", native, "Every confirmation is a native modal now, so remove it.");
|
|
19919
19771
|
var isConfirmBlocked = Boolean(confirmationLabel) && !confirmed;
|
|
19920
19772
|
var handleToggleConfirmed = React.useCallback(function (event) {
|
|
19921
19773
|
return setConfirmed(event.target.checked);
|
|
@@ -19947,8 +19799,7 @@
|
|
|
19947
19799
|
disableCloseOnEsc: isLoading,
|
|
19948
19800
|
size: size,
|
|
19949
19801
|
height: height,
|
|
19950
|
-
|
|
19951
|
-
role: native ? "alertdialog" : undefined
|
|
19802
|
+
role: "alertdialog"
|
|
19952
19803
|
}, /*#__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
19804
|
lineHeight: "loose",
|
|
19954
19805
|
color: "secondary",
|
|
@@ -21699,7 +21550,7 @@
|
|
|
21699
21550
|
return props.$pulse && styled.css(["&&{background:var(--color-theme-300);animation:", " 2s cubic-bezier(0.4,0,0.6,1) infinite;}"], pulseAnimation);
|
|
21700
21551
|
});
|
|
21701
21552
|
|
|
21702
|
-
var _excluded$
|
|
21553
|
+
var _excluded$1K = ["className", "width", "height", "radius", "animation"];
|
|
21703
21554
|
var SkeletonLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
21704
21555
|
var className = _ref.className,
|
|
21705
21556
|
width = _ref.width,
|
|
@@ -21707,7 +21558,7 @@
|
|
|
21707
21558
|
radius = _ref.radius,
|
|
21708
21559
|
_ref$animation = _ref.animation,
|
|
21709
21560
|
animation = _ref$animation === void 0 ? "shimmer" : _ref$animation,
|
|
21710
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
21561
|
+
rest = _objectWithoutProperties(_ref, _excluded$1K);
|
|
21711
21562
|
return /*#__PURE__*/React__default["default"].createElement(StyledSkeletonLoader, _extends({
|
|
21712
21563
|
ref: ref,
|
|
21713
21564
|
className: classnames__default["default"]("c-loader c-loader--linear", className),
|
|
@@ -21725,10 +21576,10 @@
|
|
|
21725
21576
|
componentId: "sc-1f35d5h-0"
|
|
21726
21577
|
})(["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
21578
|
|
|
21728
|
-
var _excluded$
|
|
21579
|
+
var _excluded$1J = ["className"];
|
|
21729
21580
|
var DotsLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
21730
21581
|
var className = _ref.className,
|
|
21731
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
21582
|
+
rest = _objectWithoutProperties(_ref, _excluded$1J);
|
|
21732
21583
|
return /*#__PURE__*/React__default["default"].createElement(StyledDotsLoader, _extends({
|
|
21733
21584
|
ref: ref,
|
|
21734
21585
|
className: classnames__default["default"]("c-loader c-loader--dots", className)
|
|
@@ -21750,7 +21601,7 @@
|
|
|
21750
21601
|
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
21602
|
});
|
|
21752
21603
|
|
|
21753
|
-
var _excluded$
|
|
21604
|
+
var _excluded$1I = ["radius", "stroke", "activeStrokeColor", "inactiveStrokeColor", "activeColorPercentage", "rotateDurationInSeconds", "className"];
|
|
21754
21605
|
var SpinnerLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
21755
21606
|
var _ref$radius = _ref.radius,
|
|
21756
21607
|
radius = _ref$radius === void 0 ? 10 : _ref$radius,
|
|
@@ -21765,7 +21616,7 @@
|
|
|
21765
21616
|
_ref$rotateDurationIn = _ref.rotateDurationInSeconds,
|
|
21766
21617
|
rotateDurationInSeconds = _ref$rotateDurationIn === void 0 ? 0.75 : _ref$rotateDurationIn,
|
|
21767
21618
|
className = _ref.className,
|
|
21768
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
21619
|
+
rest = _objectWithoutProperties(_ref, _excluded$1I);
|
|
21769
21620
|
return /*#__PURE__*/React__default["default"].createElement(StyledSpinnerLoader$1, _extends({
|
|
21770
21621
|
ref: ref,
|
|
21771
21622
|
className: className,
|
|
@@ -21804,7 +21655,7 @@
|
|
|
21804
21655
|
});
|
|
21805
21656
|
StyledLinearLoader.displayName = "StyledLinearLoader";
|
|
21806
21657
|
|
|
21807
|
-
var _excluded$
|
|
21658
|
+
var _excluded$1H = ["height", "activeStrokeColor", "inactiveStrokeColor", "activeColorPercentage", "animationDuration"];
|
|
21808
21659
|
var LinearLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
21809
21660
|
var _ref$height = _ref.height,
|
|
21810
21661
|
height = _ref$height === void 0 ? 4 : _ref$height,
|
|
@@ -21816,7 +21667,7 @@
|
|
|
21816
21667
|
activeColorPercentage = _ref$activeColorPerce === void 0 ? "25%" : _ref$activeColorPerce,
|
|
21817
21668
|
_ref$animationDuratio = _ref.animationDuration,
|
|
21818
21669
|
animationDuration = _ref$animationDuratio === void 0 ? 0.75 : _ref$animationDuratio,
|
|
21819
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
21670
|
+
rest = _objectWithoutProperties(_ref, _excluded$1H);
|
|
21820
21671
|
return /*#__PURE__*/React__default["default"].createElement(StyledLinearLoader, _extends({
|
|
21821
21672
|
ref: ref,
|
|
21822
21673
|
$height: height,
|
|
@@ -21828,7 +21679,7 @@
|
|
|
21828
21679
|
});
|
|
21829
21680
|
LinearLoader.displayName = "LinearLoader";
|
|
21830
21681
|
|
|
21831
|
-
var _excluded$
|
|
21682
|
+
var _excluded$1G = ["header", "rows", "className", "sortBy", "sortDirection", "onSortCallback", "theadClass", "noResultsCallback", "groupBy", "groupHead", "isCollapsible", "emptyValue", "loading", "loadingRows"];
|
|
21832
21683
|
var SortDirection = /*#__PURE__*/function (SortDirection) {
|
|
21833
21684
|
SortDirection["None"] = "none";
|
|
21834
21685
|
SortDirection["Asc"] = "asc";
|
|
@@ -21878,7 +21729,7 @@
|
|
|
21878
21729
|
loading = _ref.loading,
|
|
21879
21730
|
_ref$loadingRows = _ref.loadingRows,
|
|
21880
21731
|
loadingRows = _ref$loadingRows === void 0 ? 7 : _ref$loadingRows,
|
|
21881
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
21732
|
+
args = _objectWithoutProperties(_ref, _excluded$1G);
|
|
21882
21733
|
var _useState = React.useState(sortDirection),
|
|
21883
21734
|
_useState2 = _slicedToArray(_useState, 2),
|
|
21884
21735
|
columnDirection = _useState2[0],
|
|
@@ -22254,7 +22105,7 @@
|
|
|
22254
22105
|
return $closing && styled.css(["animation:", " 800ms linear infinite,", " 100ms 450ms forwards;circle{animation:", " 450ms ease-out forwards;}"], ringSpin, ringOut, ringClose);
|
|
22255
22106
|
});
|
|
22256
22107
|
|
|
22257
|
-
var _excluded$
|
|
22108
|
+
var _excluded$1F = ["completed", "disabled", "animate", "onClick", "className", "primary", "checkMarkClassName"],
|
|
22258
22109
|
_excluded2$6 = ["closing", "size", "className"];
|
|
22259
22110
|
var CompleteCheckbox = function CompleteCheckbox(_ref) {
|
|
22260
22111
|
var _ref$completed = _ref.completed,
|
|
@@ -22268,7 +22119,7 @@
|
|
|
22268
22119
|
_ref$primary = _ref.primary,
|
|
22269
22120
|
primary = _ref$primary === void 0 ? false : _ref$primary,
|
|
22270
22121
|
checkMarkClassName = _ref.checkMarkClassName,
|
|
22271
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
22122
|
+
rest = _objectWithoutProperties(_ref, _excluded$1F);
|
|
22272
22123
|
return /*#__PURE__*/React__default["default"].createElement(StyledCompleteCheckbox, _extends({
|
|
22273
22124
|
onClick: onClick,
|
|
22274
22125
|
className: classnames__default["default"]("c-complete-checkbox", className),
|
|
@@ -22324,7 +22175,7 @@
|
|
|
22324
22175
|
});
|
|
22325
22176
|
StyledPaper.displayName = "StyledPaper";
|
|
22326
22177
|
|
|
22327
|
-
var _excluded$
|
|
22178
|
+
var _excluded$1E = ["children", "className", "type", "hover", "useOptimizedShadow"];
|
|
22328
22179
|
/**
|
|
22329
22180
|
* This is a component description and should sit directly above your component
|
|
22330
22181
|
*/
|
|
@@ -22337,7 +22188,7 @@
|
|
|
22337
22188
|
hover = _ref$hover === void 0 ? false : _ref$hover,
|
|
22338
22189
|
_ref$useOptimizedShad = _ref.useOptimizedShadow,
|
|
22339
22190
|
useOptimizedShadow = _ref$useOptimizedShad === void 0 ? false : _ref$useOptimizedShad,
|
|
22340
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
22191
|
+
rest = _objectWithoutProperties(_ref, _excluded$1E);
|
|
22341
22192
|
return /*#__PURE__*/React__default["default"].createElement(StyledPaper, _extends({
|
|
22342
22193
|
className: classnames__default["default"](className, {
|
|
22343
22194
|
"ac-shadow--raised--lg": !useOptimizedShadow && hover && type === "paper-1",
|
|
@@ -22398,7 +22249,7 @@
|
|
|
22398
22249
|
});
|
|
22399
22250
|
StyledCard.displayName = "StyledCard";
|
|
22400
22251
|
|
|
22401
|
-
var _excluded$
|
|
22252
|
+
var _excluded$1D = ["children", "className", "hoverable", "variant", "radius", "shadow", "onClick"];
|
|
22402
22253
|
var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
22403
22254
|
var children = _ref.children,
|
|
22404
22255
|
className = _ref.className,
|
|
@@ -22411,7 +22262,7 @@
|
|
|
22411
22262
|
_ref$shadow = _ref.shadow,
|
|
22412
22263
|
shadow = _ref$shadow === void 0 ? true : _ref$shadow,
|
|
22413
22264
|
onClick = _ref.onClick,
|
|
22414
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
22265
|
+
rest = _objectWithoutProperties(_ref, _excluded$1D);
|
|
22415
22266
|
return /*#__PURE__*/React__default["default"].createElement(StyledCard, _extends({}, rest, {
|
|
22416
22267
|
type: variant === "raised" ? "tile-2" : variant,
|
|
22417
22268
|
$raised: variant === "raised",
|
|
@@ -22495,12 +22346,12 @@
|
|
|
22495
22346
|
});
|
|
22496
22347
|
EntityCard$1.displayName = "EntityCard";
|
|
22497
22348
|
|
|
22498
|
-
var _excluded$
|
|
22349
|
+
var _excluded$1C = ["weight", "children"];
|
|
22499
22350
|
var Title1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
22500
22351
|
var _ref$weight = _ref.weight,
|
|
22501
22352
|
weight = _ref$weight === void 0 ? "light" : _ref$weight,
|
|
22502
22353
|
children = _ref.children,
|
|
22503
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
22354
|
+
props = _objectWithoutProperties(_ref, _excluded$1C);
|
|
22504
22355
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
22505
22356
|
weight: weight,
|
|
22506
22357
|
variant: "Title 1",
|
|
@@ -22509,12 +22360,12 @@
|
|
|
22509
22360
|
});
|
|
22510
22361
|
Title1.displayName = "Title1";
|
|
22511
22362
|
|
|
22512
|
-
var _excluded$
|
|
22363
|
+
var _excluded$1B = ["weight", "children"];
|
|
22513
22364
|
var Title2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
22514
22365
|
var _ref$weight = _ref.weight,
|
|
22515
22366
|
weight = _ref$weight === void 0 ? "light" : _ref$weight,
|
|
22516
22367
|
children = _ref.children,
|
|
22517
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
22368
|
+
props = _objectWithoutProperties(_ref, _excluded$1B);
|
|
22518
22369
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
22519
22370
|
weight: weight,
|
|
22520
22371
|
variant: "Title 2",
|
|
@@ -22523,12 +22374,12 @@
|
|
|
22523
22374
|
});
|
|
22524
22375
|
Title2.displayName = "Title2";
|
|
22525
22376
|
|
|
22526
|
-
var _excluded$
|
|
22377
|
+
var _excluded$1A = ["weight", "children"];
|
|
22527
22378
|
var Title3 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
22528
22379
|
var _ref$weight = _ref.weight,
|
|
22529
22380
|
weight = _ref$weight === void 0 ? "semibold" : _ref$weight,
|
|
22530
22381
|
children = _ref.children,
|
|
22531
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
22382
|
+
props = _objectWithoutProperties(_ref, _excluded$1A);
|
|
22532
22383
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
22533
22384
|
weight: weight,
|
|
22534
22385
|
variant: "Title 3",
|
|
@@ -22537,10 +22388,10 @@
|
|
|
22537
22388
|
});
|
|
22538
22389
|
Title3.displayName = "Title3";
|
|
22539
22390
|
|
|
22540
|
-
var _excluded$
|
|
22391
|
+
var _excluded$1z = ["children"];
|
|
22541
22392
|
var Header2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
22542
22393
|
var children = _ref.children,
|
|
22543
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
22394
|
+
props = _objectWithoutProperties(_ref, _excluded$1z);
|
|
22544
22395
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
22545
22396
|
weight: "bold",
|
|
22546
22397
|
variant: "Header 2",
|
|
@@ -22549,12 +22400,12 @@
|
|
|
22549
22400
|
});
|
|
22550
22401
|
Header2.displayName = "Header2";
|
|
22551
22402
|
|
|
22552
|
-
var _excluded$
|
|
22403
|
+
var _excluded$1y = ["weight", "children"];
|
|
22553
22404
|
var Body1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
22554
22405
|
var _ref$weight = _ref.weight,
|
|
22555
22406
|
weight = _ref$weight === void 0 ? "regular" : _ref$weight,
|
|
22556
22407
|
children = _ref.children,
|
|
22557
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
22408
|
+
props = _objectWithoutProperties(_ref, _excluded$1y);
|
|
22558
22409
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
22559
22410
|
variant: "Body 1",
|
|
22560
22411
|
weight: weight,
|
|
@@ -22563,12 +22414,12 @@
|
|
|
22563
22414
|
});
|
|
22564
22415
|
Body1.displayName = "Body1";
|
|
22565
22416
|
|
|
22566
|
-
var _excluded$
|
|
22417
|
+
var _excluded$1x = ["weight", "children"];
|
|
22567
22418
|
var Caption1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
22568
22419
|
var _ref$weight = _ref.weight,
|
|
22569
22420
|
weight = _ref$weight === void 0 ? "regular" : _ref$weight,
|
|
22570
22421
|
children = _ref.children,
|
|
22571
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
22422
|
+
props = _objectWithoutProperties(_ref, _excluded$1x);
|
|
22572
22423
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
22573
22424
|
variant: "Caption 1",
|
|
22574
22425
|
weight: weight,
|
|
@@ -22577,12 +22428,12 @@
|
|
|
22577
22428
|
});
|
|
22578
22429
|
Caption1.displayName = "Caption1";
|
|
22579
22430
|
|
|
22580
|
-
var _excluded$
|
|
22431
|
+
var _excluded$1w = ["weight", "children"];
|
|
22581
22432
|
var Caption2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
22582
22433
|
var _ref$weight = _ref.weight,
|
|
22583
22434
|
weight = _ref$weight === void 0 ? "regular" : _ref$weight,
|
|
22584
22435
|
children = _ref.children,
|
|
22585
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
22436
|
+
props = _objectWithoutProperties(_ref, _excluded$1w);
|
|
22586
22437
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
22587
22438
|
variant: "Caption 2",
|
|
22588
22439
|
weight: weight,
|
|
@@ -22795,7 +22646,7 @@
|
|
|
22795
22646
|
componentId: "sc-5x2tyd-1"
|
|
22796
22647
|
})(["border-radius:100%;object-fit:cover;"]);
|
|
22797
22648
|
|
|
22798
|
-
var _excluded$
|
|
22649
|
+
var _excluded$1v = ["url", "alt", "size", "className", "imgClassName", "children"];
|
|
22799
22650
|
/**
|
|
22800
22651
|
* @component Avatar
|
|
22801
22652
|
* @description
|
|
@@ -22830,7 +22681,7 @@
|
|
|
22830
22681
|
className = _ref.className,
|
|
22831
22682
|
imgClassName = _ref.imgClassName,
|
|
22832
22683
|
children = _ref.children,
|
|
22833
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
22684
|
+
rest = _objectWithoutProperties(_ref, _excluded$1v);
|
|
22834
22685
|
var _useState = React.useState(false),
|
|
22835
22686
|
_useState2 = _slicedToArray(_useState, 2),
|
|
22836
22687
|
imageLoaded = _useState2[0],
|
|
@@ -22879,13 +22730,13 @@
|
|
|
22879
22730
|
return props.$color && styled.css(["background-color:", ";"], props.$color);
|
|
22880
22731
|
});
|
|
22881
22732
|
|
|
22882
|
-
var _excluded$
|
|
22733
|
+
var _excluded$1u = ["color", "size", "className"];
|
|
22883
22734
|
var Dot = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
22884
22735
|
var color = _ref.color,
|
|
22885
22736
|
_ref$size = _ref.size,
|
|
22886
22737
|
size = _ref$size === void 0 ? 8 : _ref$size,
|
|
22887
22738
|
className = _ref.className,
|
|
22888
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
22739
|
+
rest = _objectWithoutProperties(_ref, _excluded$1u);
|
|
22889
22740
|
return /*#__PURE__*/React__default["default"].createElement(StyledDot, _extends({
|
|
22890
22741
|
className: classnames__default["default"]("c-dot", className),
|
|
22891
22742
|
ref: ref,
|
|
@@ -22922,7 +22773,7 @@
|
|
|
22922
22773
|
});
|
|
22923
22774
|
StyledTagText.displayName = "StyledTagText";
|
|
22924
22775
|
|
|
22925
|
-
var _excluded$
|
|
22776
|
+
var _excluded$1t = ["name", "color", "showText", "showDot", "className"];
|
|
22926
22777
|
var Tag = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
22927
22778
|
var name = _ref.name,
|
|
22928
22779
|
color = _ref.color,
|
|
@@ -22931,7 +22782,7 @@
|
|
|
22931
22782
|
_ref$showDot = _ref.showDot,
|
|
22932
22783
|
showDot = _ref$showDot === void 0 ? true : _ref$showDot,
|
|
22933
22784
|
className = _ref.className,
|
|
22934
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
22785
|
+
rest = _objectWithoutProperties(_ref, _excluded$1t);
|
|
22935
22786
|
return /*#__PURE__*/React__default["default"].createElement(StyledTag, _extends({
|
|
22936
22787
|
className: classnames__default["default"]("c-tag", className),
|
|
22937
22788
|
ref: ref
|
|
@@ -23045,7 +22896,7 @@
|
|
|
23045
22896
|
});
|
|
23046
22897
|
StyledNavAsMoreTarget.displayName = "StyledNavAsMoreTarget";
|
|
23047
22898
|
|
|
23048
|
-
var _excluded$
|
|
22899
|
+
var _excluded$1s = ["children", "active", "disabled", "className", "role"];
|
|
23049
22900
|
var Item = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
23050
22901
|
var children = _ref.children,
|
|
23051
22902
|
_ref$active = _ref.active,
|
|
@@ -23054,7 +22905,7 @@
|
|
|
23054
22905
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
23055
22906
|
className = _ref.className,
|
|
23056
22907
|
role = _ref.role,
|
|
23057
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
22908
|
+
rest = _objectWithoutProperties(_ref, _excluded$1s);
|
|
23058
22909
|
return /*#__PURE__*/React__default["default"].createElement(StyledNavListItem, _extends({
|
|
23059
22910
|
className: classnames__default["default"]("c-nav__item", {
|
|
23060
22911
|
"c-nav__item--active": active
|
|
@@ -23102,11 +22953,11 @@
|
|
|
23102
22953
|
});
|
|
23103
22954
|
StyledExpandSingle.displayName = "StyledExpandSingle";
|
|
23104
22955
|
|
|
23105
|
-
var _excluded$
|
|
22956
|
+
var _excluded$1r = ["expanded"];
|
|
23106
22957
|
var ExpandSingle = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
23107
22958
|
var _ref$expanded = _ref.expanded,
|
|
23108
22959
|
expanded = _ref$expanded === void 0 ? false : _ref$expanded,
|
|
23109
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
22960
|
+
rest = _objectWithoutProperties(_ref, _excluded$1r);
|
|
23110
22961
|
return /*#__PURE__*/React__default["default"].createElement(StyledExpandSingle, _extends({
|
|
23111
22962
|
ref: ref,
|
|
23112
22963
|
viewBox: "0 0 24 24",
|
|
@@ -23409,7 +23260,7 @@
|
|
|
23409
23260
|
})(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:8px;display:flex;justify-items:center;align-items:center;"]);
|
|
23410
23261
|
StyledOptionWrapper.displayName = "StyledOptionWrapper";
|
|
23411
23262
|
|
|
23412
|
-
var _excluded$
|
|
23263
|
+
var _excluded$1q = ["className", "style", "type", "disabled", "size", "invalid", "startAdornment", "endAdornment", "wrapRef", "wrapperClick", "mode"];
|
|
23413
23264
|
var Input = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
23414
23265
|
var _ref$className = _ref.className,
|
|
23415
23266
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
@@ -23428,7 +23279,7 @@
|
|
|
23428
23279
|
wrapperClick = _ref.wrapperClick,
|
|
23429
23280
|
_ref$mode = _ref.mode,
|
|
23430
23281
|
mode = _ref$mode === void 0 ? "outlined" : _ref$mode,
|
|
23431
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
23282
|
+
rest = _objectWithoutProperties(_ref, _excluded$1q);
|
|
23432
23283
|
var intInputRef = React.useRef(null);
|
|
23433
23284
|
var handleRef = useForkRef(ref, intInputRef);
|
|
23434
23285
|
var handleWrapperClick = React.useCallback(function () {
|
|
@@ -23485,14 +23336,14 @@
|
|
|
23485
23336
|
}, StyledRadioLabel);
|
|
23486
23337
|
StyledRadioButton$1.displayName = "StyledRadioButton";
|
|
23487
23338
|
|
|
23488
|
-
var _excluded$
|
|
23339
|
+
var _excluded$1p = ["className", "id", "hover"];
|
|
23489
23340
|
var RadioButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
23490
23341
|
var _ref$className = _ref.className,
|
|
23491
23342
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
23492
23343
|
_ref$id = _ref.id,
|
|
23493
23344
|
id = _ref$id === void 0 ? "radio" : _ref$id,
|
|
23494
23345
|
hover = _ref.hover,
|
|
23495
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
23346
|
+
props = _objectWithoutProperties(_ref, _excluded$1p);
|
|
23496
23347
|
return /*#__PURE__*/React__default["default"].createElement(StyledRadioButton$1, {
|
|
23497
23348
|
className: classnames__default["default"]("c-radio-btn", {
|
|
23498
23349
|
"c-radio-btn__hover": hover,
|
|
@@ -23640,7 +23491,7 @@
|
|
|
23640
23491
|
StyledScrollShadowLeft.displayName = "StyledScrollShadowLeft";
|
|
23641
23492
|
StyledScrollShadowRight.displayName = "StyledScrollShadowRight";
|
|
23642
23493
|
|
|
23643
|
-
var _excluded$
|
|
23494
|
+
var _excluded$1o = ["children", "className", "disableVertical", "disableHorizontal", "invertHorizontal", "invertVertical", "innerColor", "outerColor"];
|
|
23644
23495
|
var ScrollShadow = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
23645
23496
|
var children = _ref.children,
|
|
23646
23497
|
className = _ref.className,
|
|
@@ -23654,7 +23505,7 @@
|
|
|
23654
23505
|
invertVertical = _ref$invertVertical === void 0 ? false : _ref$invertVertical,
|
|
23655
23506
|
innerColor = _ref.innerColor,
|
|
23656
23507
|
outerColor = _ref.outerColor,
|
|
23657
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
23508
|
+
rest = _objectWithoutProperties(_ref, _excluded$1o);
|
|
23658
23509
|
var _useState = React.useState({
|
|
23659
23510
|
top: 0,
|
|
23660
23511
|
right: 0,
|
|
@@ -24261,7 +24112,7 @@
|
|
|
24261
24112
|
};
|
|
24262
24113
|
};
|
|
24263
24114
|
|
|
24264
|
-
var _excluded$
|
|
24115
|
+
var _excluded$1n = ["as", "className", "invert", "style"];
|
|
24265
24116
|
var ScrollElement = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
24266
24117
|
var _ref$as = _ref.as,
|
|
24267
24118
|
as = _ref$as === void 0 ? "div" : _ref$as,
|
|
@@ -24269,7 +24120,7 @@
|
|
|
24269
24120
|
_ref$invert = _ref.invert,
|
|
24270
24121
|
invert = _ref$invert === void 0 ? false : _ref$invert,
|
|
24271
24122
|
style = _ref.style,
|
|
24272
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
24123
|
+
rest = _objectWithoutProperties(_ref, _excluded$1n);
|
|
24273
24124
|
var internalRef = useInitScrollRef(null, invert);
|
|
24274
24125
|
var handleRef = useForkRef(internalRef, ref);
|
|
24275
24126
|
var props = _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
@@ -25274,7 +25125,7 @@
|
|
|
25274
25125
|
componentId: "sc-9x4q7e-0"
|
|
25275
25126
|
})(["cursor:auto"]);
|
|
25276
25127
|
|
|
25277
|
-
var _excluded$
|
|
25128
|
+
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
25129
|
var Select = function Select(_ref) {
|
|
25279
25130
|
var _ref$type = _ref.type,
|
|
25280
25131
|
type = _ref$type === void 0 ? "single" : _ref$type,
|
|
@@ -25317,7 +25168,7 @@
|
|
|
25317
25168
|
prerender = _ref.prerender,
|
|
25318
25169
|
scopedFocus = _ref.scopedFocus,
|
|
25319
25170
|
handleScroll = _ref.handleScroll,
|
|
25320
|
-
prop = _objectWithoutProperties(_ref, _excluded$
|
|
25171
|
+
prop = _objectWithoutProperties(_ref, _excluded$1m);
|
|
25321
25172
|
if (disableSearch && (startAdornment || endAdornment)) {
|
|
25322
25173
|
console.warn("Adornments are not visible when search bar is hidden");
|
|
25323
25174
|
}
|
|
@@ -25772,7 +25623,7 @@
|
|
|
25772
25623
|
};
|
|
25773
25624
|
SideNavGroup.displayName = "SideNavGroup";
|
|
25774
25625
|
|
|
25775
|
-
var _excluded$
|
|
25626
|
+
var _excluded$1l = ["id", "icon", "as", "className", "children", "onClick"];
|
|
25776
25627
|
var SideNavItem = function SideNavItem(_ref) {
|
|
25777
25628
|
var id = _ref.id,
|
|
25778
25629
|
icon = _ref.icon,
|
|
@@ -25780,7 +25631,7 @@
|
|
|
25780
25631
|
className = _ref.className,
|
|
25781
25632
|
children = _ref.children,
|
|
25782
25633
|
onClick = _ref.onClick,
|
|
25783
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
25634
|
+
rest = _objectWithoutProperties(_ref, _excluded$1l);
|
|
25784
25635
|
var _useSideNavContext = useSideNavContext(),
|
|
25785
25636
|
selected = _useSideNavContext.selected,
|
|
25786
25637
|
onSelect = _useSideNavContext.onSelect;
|
|
@@ -25856,7 +25707,7 @@
|
|
|
25856
25707
|
SideNav.Group = SideNavGroup;
|
|
25857
25708
|
SideNav.Item = SideNavItem;
|
|
25858
25709
|
|
|
25859
|
-
var _excluded$
|
|
25710
|
+
var _excluded$1k = ["children", "as", "disablePointerEvents"];
|
|
25860
25711
|
var InputAdornmentBase = styled__default["default"].div.withConfig({
|
|
25861
25712
|
displayName: "InputAdornment__InputAdornmentBase",
|
|
25862
25713
|
componentId: "sc-1xfjx1z-0"
|
|
@@ -25875,7 +25726,7 @@
|
|
|
25875
25726
|
var children = _ref.children,
|
|
25876
25727
|
as = _ref.as,
|
|
25877
25728
|
disablePointerEvents = _ref.disablePointerEvents,
|
|
25878
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
25729
|
+
rest = _objectWithoutProperties(_ref, _excluded$1k);
|
|
25879
25730
|
var Component = as || "div";
|
|
25880
25731
|
return /*#__PURE__*/React__default["default"].createElement(InputAdornmentBase, _extends({}, rest, {
|
|
25881
25732
|
as: Component,
|
|
@@ -26118,7 +25969,7 @@
|
|
|
26118
25969
|
};
|
|
26119
25970
|
};
|
|
26120
25971
|
|
|
26121
|
-
var _excluded$
|
|
25972
|
+
var _excluded$1j = ["value", "onCancel", "onSave", "onEnterKeyPress", "allowEmptyValue", "withLeadingZero", "validation", "incrementOnlySelected", "minuteIncrement", "className", "onChange", "onClick", "align"];
|
|
26122
25973
|
var InputHours = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
26123
25974
|
var defaultValue = _ref.value,
|
|
26124
25975
|
onCancel = _ref.onCancel,
|
|
@@ -26138,7 +25989,7 @@
|
|
|
26138
25989
|
externalOnClick = _ref.onClick,
|
|
26139
25990
|
_ref$align = _ref.align,
|
|
26140
25991
|
align = _ref$align === void 0 ? "center" : _ref$align,
|
|
26141
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
25992
|
+
rest = _objectWithoutProperties(_ref, _excluded$1j);
|
|
26142
25993
|
var inputRef = React.useRef(null);
|
|
26143
25994
|
var handleRef = useForkRef(ref, inputRef);
|
|
26144
25995
|
var _useInputHours = useInputHours({
|
|
@@ -26177,7 +26028,7 @@
|
|
|
26177
26028
|
});
|
|
26178
26029
|
InputHours.displayName = "InputHours";
|
|
26179
26030
|
|
|
26180
|
-
var _excluded$
|
|
26031
|
+
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
26032
|
var InputNumber = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
26182
26033
|
var _ref$decimalLength = _ref.decimalLength,
|
|
26183
26034
|
decimalLength = _ref$decimalLength === void 0 ? 2 : _ref$decimalLength,
|
|
@@ -26211,7 +26062,7 @@
|
|
|
26211
26062
|
update = _ref$update === void 0 ? false : _ref$update,
|
|
26212
26063
|
_ref$shortenThreshold = _ref.shortenThreshold,
|
|
26213
26064
|
shortenThreshold = _ref$shortenThreshold === void 0 ? 1000 : _ref$shortenThreshold,
|
|
26214
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26065
|
+
rest = _objectWithoutProperties(_ref, _excluded$1i);
|
|
26215
26066
|
var inputRef = React.useRef(null);
|
|
26216
26067
|
var handleRef = useForkRef(ref, inputRef);
|
|
26217
26068
|
var _useInputNumber = useInputNumber({
|
|
@@ -26263,14 +26114,14 @@
|
|
|
26263
26114
|
});
|
|
26264
26115
|
InputNumber.displayName = "InputNumber";
|
|
26265
26116
|
|
|
26266
|
-
var _excluded$
|
|
26117
|
+
var _excluded$1h = ["currency", "size", "startAdornment", "endAdornment", "disabled"];
|
|
26267
26118
|
var InputCurrency = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
26268
26119
|
var currency = _ref.currency,
|
|
26269
26120
|
size = _ref.size,
|
|
26270
26121
|
startAdornment = _ref.startAdornment,
|
|
26271
26122
|
endAdornment = _ref.endAdornment,
|
|
26272
26123
|
disabled = _ref.disabled,
|
|
26273
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26124
|
+
rest = _objectWithoutProperties(_ref, _excluded$1h);
|
|
26274
26125
|
var variant = React.useMemo(function () {
|
|
26275
26126
|
if (size === "biggest") {
|
|
26276
26127
|
return "Header 2";
|
|
@@ -26303,7 +26154,7 @@
|
|
|
26303
26154
|
});
|
|
26304
26155
|
InputCurrency.displayName = "InputCurrency";
|
|
26305
26156
|
|
|
26306
|
-
var _excluded$
|
|
26157
|
+
var _excluded$1g = ["size", "disabled", "show", "hideControl", "showTooltipText", "hideTooltipText", "value", "validation", "errorMessage", "invalid", "onChange", "wrapperClassName"];
|
|
26307
26158
|
var transform = {
|
|
26308
26159
|
biggest: "big",
|
|
26309
26160
|
regular: "small",
|
|
@@ -26397,7 +26248,7 @@
|
|
|
26397
26248
|
invalid = _ref2.invalid,
|
|
26398
26249
|
onChange = _ref2.onChange,
|
|
26399
26250
|
wrapperClassName = _ref2.wrapperClassName,
|
|
26400
|
-
rest = _objectWithoutProperties(_ref2, _excluded$
|
|
26251
|
+
rest = _objectWithoutProperties(_ref2, _excluded$1g);
|
|
26401
26252
|
var inputRef = React.useRef(null);
|
|
26402
26253
|
var handleRef = useForkRef(ref, inputRef);
|
|
26403
26254
|
var _useState = React.useState(show),
|
|
@@ -26532,7 +26383,7 @@
|
|
|
26532
26383
|
.trim(); // Trim leading/trailing whitespace
|
|
26533
26384
|
};
|
|
26534
26385
|
|
|
26535
|
-
var _excluded$
|
|
26386
|
+
var _excluded$1f = ["size", "disabled", "value", "onChange", "scheme"];
|
|
26536
26387
|
var defaultOptions = [{
|
|
26537
26388
|
id: "https://",
|
|
26538
26389
|
name: "https://"
|
|
@@ -26548,7 +26399,7 @@
|
|
|
26548
26399
|
defaultValue = _ref$value === void 0 ? "" : _ref$value,
|
|
26549
26400
|
onChange = _ref.onChange,
|
|
26550
26401
|
scheme = _ref.scheme,
|
|
26551
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26402
|
+
rest = _objectWithoutProperties(_ref, _excluded$1f);
|
|
26552
26403
|
var inputRef = React.useRef(null);
|
|
26553
26404
|
var handleRef = useForkRef(ref, inputRef);
|
|
26554
26405
|
var options = React.useMemo(function () {
|
|
@@ -26676,7 +26527,7 @@
|
|
|
26676
26527
|
});
|
|
26677
26528
|
InputUrl.displayName = "InputUrl";
|
|
26678
26529
|
|
|
26679
|
-
var _excluded$
|
|
26530
|
+
var _excluded$1e = ["size", "disabled", "value", "onChange", "defaultCountry"];
|
|
26680
26531
|
var renderOption$2 = function renderOption(option, data) {
|
|
26681
26532
|
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
26533
|
checked: data.checked,
|
|
@@ -26692,7 +26543,7 @@
|
|
|
26692
26543
|
onChange = _ref.onChange,
|
|
26693
26544
|
_ref$defaultCountry = _ref.defaultCountry,
|
|
26694
26545
|
defaultCountry = _ref$defaultCountry === void 0 ? "US" : _ref$defaultCountry,
|
|
26695
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26546
|
+
rest = _objectWithoutProperties(_ref, _excluded$1e);
|
|
26696
26547
|
var inputRef = React.useRef(null);
|
|
26697
26548
|
var handleRef = useForkRef(ref, inputRef);
|
|
26698
26549
|
var _useState = React.useState(defaultCountry),
|
|
@@ -26912,12 +26763,12 @@
|
|
|
26912
26763
|
[ref, handler]);
|
|
26913
26764
|
}
|
|
26914
26765
|
|
|
26915
|
-
var _excluded$
|
|
26766
|
+
var _excluded$1d = ["children", "type"];
|
|
26916
26767
|
var Trigger = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
26917
26768
|
var children = _ref.children,
|
|
26918
26769
|
_ref$type = _ref.type,
|
|
26919
26770
|
type = _ref$type === void 0 ? "button" : _ref$type,
|
|
26920
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26771
|
+
rest = _objectWithoutProperties(_ref, _excluded$1d);
|
|
26921
26772
|
return /*#__PURE__*/React__default["default"].createElement(StyledButton, _extends({
|
|
26922
26773
|
ref: ref,
|
|
26923
26774
|
role: "button",
|
|
@@ -27021,7 +26872,7 @@
|
|
|
27021
26872
|
})(["color:var(--color-theme-700);"]);
|
|
27022
26873
|
ChipCloseIcon.displayName = "ChipCloseIcon";
|
|
27023
26874
|
|
|
27024
|
-
var _excluded$
|
|
26875
|
+
var _excluded$1c = ["startAdornment", "label", "onClose", "size", "shape", "tone", "tint", "tintStrong", "uppercase", "closeMode", "color", "backgroundColor", "closeClassName", "typographyProps"];
|
|
27025
26876
|
var Chip = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
27026
26877
|
var _ref2;
|
|
27027
26878
|
var startAdornment = _ref.startAdornment,
|
|
@@ -27042,7 +26893,7 @@
|
|
|
27042
26893
|
backgroundColor = _ref.backgroundColor,
|
|
27043
26894
|
closeClassName = _ref.closeClassName,
|
|
27044
26895
|
typographyProps = _ref.typographyProps,
|
|
27045
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26896
|
+
rest = _objectWithoutProperties(_ref, _excluded$1c);
|
|
27046
26897
|
var showClose = typeof onClose === "function";
|
|
27047
26898
|
var variant = React.useMemo(function () {
|
|
27048
26899
|
switch (size) {
|
|
@@ -27090,12 +26941,12 @@
|
|
|
27090
26941
|
});
|
|
27091
26942
|
StyledChipGroup.displayName = "StyledChipGroup";
|
|
27092
26943
|
|
|
27093
|
-
var _excluded$
|
|
26944
|
+
var _excluded$1b = ["joined", "children"];
|
|
27094
26945
|
var ChipGroup = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
27095
26946
|
var _ref$joined = _ref.joined,
|
|
27096
26947
|
joined = _ref$joined === void 0 ? false : _ref$joined,
|
|
27097
26948
|
children = _ref.children,
|
|
27098
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
26949
|
+
rest = _objectWithoutProperties(_ref, _excluded$1b);
|
|
27099
26950
|
return /*#__PURE__*/React__default["default"].createElement(StyledChipGroup, _extends({
|
|
27100
26951
|
"data-testid": "chip-group"
|
|
27101
26952
|
}, rest, {
|
|
@@ -27106,7 +26957,7 @@
|
|
|
27106
26957
|
ChipGroup.displayName = "ChipGroup";
|
|
27107
26958
|
|
|
27108
26959
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
27109
|
-
var _excluded$
|
|
26960
|
+
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
26961
|
var sizeMap = {
|
|
27111
26962
|
small: 18,
|
|
27112
26963
|
regular: 24,
|
|
@@ -27165,7 +27016,7 @@
|
|
|
27165
27016
|
clearButtonLabel = _ref.clearButtonLabel,
|
|
27166
27017
|
errorMessage = _ref.errorMessage,
|
|
27167
27018
|
onCancel = _ref.onCancel,
|
|
27168
|
-
prop = _objectWithoutProperties(_ref, _excluded$
|
|
27019
|
+
prop = _objectWithoutProperties(_ref, _excluded$1a);
|
|
27169
27020
|
var selectedName = React.useMemo(function () {
|
|
27170
27021
|
var value = "";
|
|
27171
27022
|
if (!selected) {
|
|
@@ -27632,7 +27483,7 @@
|
|
|
27632
27483
|
componentId: "sc-uvsz9l-0"
|
|
27633
27484
|
})(["display:flex;justify-content:center;"]);
|
|
27634
27485
|
|
|
27635
|
-
var _excluded$
|
|
27486
|
+
var _excluded$19 = ["mode", "selected", "min", "max", "onChange", "step", "size", "className", "placeholder", "triggerMode", "disabled", "invalid", "enableVirtualization", "addCustomTimeLabel"];
|
|
27636
27487
|
nlp__default["default"].plugin(plg__default["default"]);
|
|
27637
27488
|
var StyledInputTimeWrapper = styled__default["default"].div.withConfig({
|
|
27638
27489
|
displayName: "InputTime__StyledInputTimeWrapper",
|
|
@@ -27665,7 +27516,7 @@
|
|
|
27665
27516
|
enableVirtualization = _ref$enableVirtualiza === void 0 ? false : _ref$enableVirtualiza,
|
|
27666
27517
|
_ref$addCustomTimeLab = _ref.addCustomTimeLabel,
|
|
27667
27518
|
addCustomTimeLabel = _ref$addCustomTimeLab === void 0 ? "Add" : _ref$addCustomTimeLab,
|
|
27668
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27519
|
+
rest = _objectWithoutProperties(_ref, _excluded$19);
|
|
27669
27520
|
var _useState = React.useState(false),
|
|
27670
27521
|
_useState2 = _slicedToArray(_useState, 2),
|
|
27671
27522
|
isOpen = _useState2[0],
|
|
@@ -27804,7 +27655,7 @@
|
|
|
27804
27655
|
})));
|
|
27805
27656
|
};
|
|
27806
27657
|
|
|
27807
|
-
var _excluded$
|
|
27658
|
+
var _excluded$18 = ["value", "variant", "thousandSeparator", "decimalSeparator", "trimDecimals", "decimalSpaces", "format", "disableTooltip", "className", "as", "shortenThreshold"];
|
|
27808
27659
|
var DisplayNumber = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
27809
27660
|
var value = _ref.value,
|
|
27810
27661
|
_ref$variant = _ref.variant,
|
|
@@ -27826,7 +27677,7 @@
|
|
|
27826
27677
|
as = _ref$as === void 0 ? "span" : _ref$as,
|
|
27827
27678
|
_ref$shortenThreshold = _ref.shortenThreshold,
|
|
27828
27679
|
shortenThreshold = _ref$shortenThreshold === void 0 ? 1000 : _ref$shortenThreshold,
|
|
27829
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27680
|
+
rest = _objectWithoutProperties(_ref, _excluded$18);
|
|
27830
27681
|
var formattedValue = formatNumber(value, thousandSeparator, decimalSeparator, trimDecimals, decimalSpaces, format, shortenThreshold);
|
|
27831
27682
|
var formattedLongValue = formatNumber(value, thousandSeparator, decimalSeparator, trimDecimals, decimalSpaces, "long");
|
|
27832
27683
|
if (format === "short") {
|
|
@@ -27849,7 +27700,7 @@
|
|
|
27849
27700
|
});
|
|
27850
27701
|
DisplayNumber.displayName = "DisplayNumber";
|
|
27851
27702
|
|
|
27852
|
-
var _excluded$
|
|
27703
|
+
var _excluded$17 = ["value", "variant", "currencyCode", "currencyPosition", "thousandSeparator", "decimalSeparator", "trimDecimals", "decimalSpaces", "format", "disableTooltip", "className", "as", "currencyClassName"];
|
|
27853
27704
|
var DisplayCurrency = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
27854
27705
|
var value = _ref.value,
|
|
27855
27706
|
_ref$variant = _ref.variant,
|
|
@@ -27874,7 +27725,7 @@
|
|
|
27874
27725
|
_ref$as = _ref.as,
|
|
27875
27726
|
as = _ref$as === void 0 ? "span" : _ref$as,
|
|
27876
27727
|
currencyClassName = _ref.currencyClassName,
|
|
27877
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27728
|
+
rest = _objectWithoutProperties(_ref, _excluded$17);
|
|
27878
27729
|
var formattedValue = formatNumber(value, thousandSeparator, decimalSeparator, trimDecimals, decimalSpaces, "short", 10000);
|
|
27879
27730
|
var formattedLongValue = formatNumber(value, thousandSeparator, decimalSeparator, trimDecimals, decimalSpaces, "long", 10000);
|
|
27880
27731
|
if (format === "short") {
|
|
@@ -27905,7 +27756,7 @@
|
|
|
27905
27756
|
});
|
|
27906
27757
|
DisplayCurrency.displayName = "DisplayCurrency";
|
|
27907
27758
|
|
|
27908
|
-
var _excluded$
|
|
27759
|
+
var _excluded$16 = ["value", "variant", "thousandSeparator", "decimalSeparator", "trimZeroMinutes", "trimDecimals", "decimalSpaces", "format", "disableTooltip", "className", "withLeadingZero", "as"];
|
|
27909
27760
|
var DisplayHours = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
27910
27761
|
var value = _ref.value,
|
|
27911
27762
|
_ref$variant = _ref.variant,
|
|
@@ -27928,7 +27779,7 @@
|
|
|
27928
27779
|
withLeadingZero = _ref.withLeadingZero,
|
|
27929
27780
|
_ref$as = _ref.as,
|
|
27930
27781
|
as = _ref$as === void 0 ? "span" : _ref$as,
|
|
27931
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
27782
|
+
rest = _objectWithoutProperties(_ref, _excluded$16);
|
|
27932
27783
|
var shouldDisplayShort = format === "short" && value >= 1000;
|
|
27933
27784
|
var longValue = formatHours(value, withLeadingZero, trimZeroMinutes, "long");
|
|
27934
27785
|
var shortValue = formatNumber(value, thousandSeparator, decimalSeparator, trimDecimals, decimalSpaces, "short");
|
|
@@ -28187,11 +28038,11 @@
|
|
|
28187
28038
|
};
|
|
28188
28039
|
DrilldownMenu.displayName = "DrilldownMenu";
|
|
28189
28040
|
|
|
28190
|
-
var _excluded$
|
|
28041
|
+
var _excluded$15 = ["expanded"];
|
|
28191
28042
|
var ExpandAll = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
28192
28043
|
var _ref$expanded = _ref.expanded,
|
|
28193
28044
|
expanded = _ref$expanded === void 0 ? false : _ref$expanded,
|
|
28194
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
28045
|
+
rest = _objectWithoutProperties(_ref, _excluded$15);
|
|
28195
28046
|
return /*#__PURE__*/React__default["default"].createElement(StyledExpand, _extends({
|
|
28196
28047
|
ref: ref,
|
|
28197
28048
|
viewBox: "0 0 24 24"
|
|
@@ -28306,7 +28157,7 @@
|
|
|
28306
28157
|
});
|
|
28307
28158
|
StyledRadioCard.displayName = "StyledRadioCard";
|
|
28308
28159
|
|
|
28309
|
-
var _excluded$
|
|
28160
|
+
var _excluded$14 = ["title", "children", "description", "icon", "variant", "invalid", "className", "id", "checked", "disabled"];
|
|
28310
28161
|
/**
|
|
28311
28162
|
* A single radio option that owns a real, reachable native `<input type="radio">`.
|
|
28312
28163
|
* The whole card is one `<label>`, so clicking the title or description selects
|
|
@@ -28325,7 +28176,7 @@
|
|
|
28325
28176
|
id = _ref.id,
|
|
28326
28177
|
checked = _ref.checked,
|
|
28327
28178
|
disabled = _ref.disabled,
|
|
28328
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
28179
|
+
props = _objectWithoutProperties(_ref, _excluded$14);
|
|
28329
28180
|
var inputId = useStableId(id);
|
|
28330
28181
|
var descriptionId = description ? "".concat(inputId, "-desc") : undefined;
|
|
28331
28182
|
var isInvalid = invalid && !checked;
|
|
@@ -28432,14 +28283,14 @@
|
|
|
28432
28283
|
});
|
|
28433
28284
|
StyledTiles.displayName = "StyledTiles";
|
|
28434
28285
|
|
|
28435
|
-
var _excluded$
|
|
28286
|
+
var _excluded$13 = ["columns", "space", "collapseBelow", "children"];
|
|
28436
28287
|
var Tiles = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
28437
28288
|
var columns = _ref.columns,
|
|
28438
28289
|
_ref$space = _ref.space,
|
|
28439
28290
|
space = _ref$space === void 0 ? "md" : _ref$space,
|
|
28440
28291
|
collapseBelow = _ref.collapseBelow,
|
|
28441
28292
|
children = _ref.children,
|
|
28442
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
28293
|
+
rest = _objectWithoutProperties(_ref, _excluded$13);
|
|
28443
28294
|
return /*#__PURE__*/React__default["default"].createElement(StyledTiles, _extends({
|
|
28444
28295
|
ref: ref,
|
|
28445
28296
|
$cols: columns,
|
|
@@ -28449,7 +28300,7 @@
|
|
|
28449
28300
|
});
|
|
28450
28301
|
Tiles.displayName = "Tiles";
|
|
28451
28302
|
|
|
28452
|
-
var _excluded$
|
|
28303
|
+
var _excluded$12 = ["options", "value", "onChange", "name", "label", "hideLabel", "description", "required", "invalid", "errorMessage", "disabled", "variant", "orientation", "columns", "collapseBelow", "space", "className"];
|
|
28453
28304
|
var RadioGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
28454
28305
|
var options = _ref.options,
|
|
28455
28306
|
value = _ref.value,
|
|
@@ -28474,7 +28325,7 @@
|
|
|
28474
28325
|
collapseBelow = _ref.collapseBelow,
|
|
28475
28326
|
space = _ref.space,
|
|
28476
28327
|
className = _ref.className,
|
|
28477
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
28328
|
+
rest = _objectWithoutProperties(_ref, _excluded$12);
|
|
28478
28329
|
var groupName = useStableId(name);
|
|
28479
28330
|
var messageId = useStableId();
|
|
28480
28331
|
|
|
@@ -28572,7 +28423,7 @@
|
|
|
28572
28423
|
});
|
|
28573
28424
|
StyledTextarea.displayName = "StyledTextarea";
|
|
28574
28425
|
|
|
28575
|
-
var _excluded$
|
|
28426
|
+
var _excluded$11 = ["className", "disabled", "invalid", "mode"];
|
|
28576
28427
|
var Textarea = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
28577
28428
|
var className = _ref.className,
|
|
28578
28429
|
_ref$disabled = _ref.disabled,
|
|
@@ -28581,7 +28432,7 @@
|
|
|
28581
28432
|
invalid = _ref$invalid === void 0 ? false : _ref$invalid,
|
|
28582
28433
|
_ref$mode = _ref.mode,
|
|
28583
28434
|
mode = _ref$mode === void 0 ? "outlined" : _ref$mode,
|
|
28584
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
28435
|
+
rest = _objectWithoutProperties(_ref, _excluded$11);
|
|
28585
28436
|
return /*#__PURE__*/React__default["default"].createElement(StyledTextarea, _extends({}, rest, {
|
|
28586
28437
|
$invalid: invalid,
|
|
28587
28438
|
ref: ref,
|
|
@@ -28595,6 +28446,128 @@
|
|
|
28595
28446
|
});
|
|
28596
28447
|
Textarea.displayName = "Textarea";
|
|
28597
28448
|
|
|
28449
|
+
function createChainedFunction() {
|
|
28450
|
+
for (var _len = arguments.length, functions = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
28451
|
+
functions[_key] = arguments[_key];
|
|
28452
|
+
}
|
|
28453
|
+
return functions.reduce(function (acc, func) {
|
|
28454
|
+
if (func === null) {
|
|
28455
|
+
return acc;
|
|
28456
|
+
}
|
|
28457
|
+
return function chainedFunction() {
|
|
28458
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
28459
|
+
args[_key2] = arguments[_key2];
|
|
28460
|
+
}
|
|
28461
|
+
acc && acc.apply(this, args);
|
|
28462
|
+
func && func.apply(this, args);
|
|
28463
|
+
};
|
|
28464
|
+
},
|
|
28465
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
28466
|
+
function () {});
|
|
28467
|
+
}
|
|
28468
|
+
|
|
28469
|
+
var _excluded$10 = ["children", "disableFocusLock", "disableScrollLock", "disableBackgroundClick", "disableBackgroundColor", "disableCloseOnEsc", "open", "overlayTimeout", "onClose", "onClickOutside"];
|
|
28470
|
+
var getHasTransition = function getHasTransition(children) {
|
|
28471
|
+
return children.props ? Object.prototype.hasOwnProperty.call(children.props, "in") : false;
|
|
28472
|
+
};
|
|
28473
|
+
|
|
28474
|
+
// The modal behind Dialog and ObjectFormModal. It stays out of the package index, so only the design system renders it.
|
|
28475
|
+
var ModalBase = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
28476
|
+
var children = _ref.children,
|
|
28477
|
+
_ref$disableFocusLock = _ref.disableFocusLock,
|
|
28478
|
+
disableFocusLock = _ref$disableFocusLock === void 0 ? false : _ref$disableFocusLock,
|
|
28479
|
+
_ref$disableScrollLoc = _ref.disableScrollLock,
|
|
28480
|
+
disableScrollLock = _ref$disableScrollLoc === void 0 ? false : _ref$disableScrollLoc,
|
|
28481
|
+
_ref$disableBackgroun = _ref.disableBackgroundClick,
|
|
28482
|
+
disableBackgroundClick = _ref$disableBackgroun === void 0 ? false : _ref$disableBackgroun,
|
|
28483
|
+
_ref$disableBackgroun2 = _ref.disableBackgroundColor,
|
|
28484
|
+
disableBackgroundColor = _ref$disableBackgroun2 === void 0 ? false : _ref$disableBackgroun2,
|
|
28485
|
+
_ref$disableCloseOnEs = _ref.disableCloseOnEsc,
|
|
28486
|
+
disableCloseOnEsc = _ref$disableCloseOnEs === void 0 ? false : _ref$disableCloseOnEs,
|
|
28487
|
+
_ref$open = _ref.open,
|
|
28488
|
+
defaultOpen = _ref$open === void 0 ? false : _ref$open,
|
|
28489
|
+
_ref$overlayTimeout = _ref.overlayTimeout,
|
|
28490
|
+
overlayTimeout = _ref$overlayTimeout === void 0 ? {
|
|
28491
|
+
enter: SLIDE_FROM_TOP_ENTER,
|
|
28492
|
+
exit: SLIDE_FROM_TOP_EXIT
|
|
28493
|
+
} : _ref$overlayTimeout,
|
|
28494
|
+
onClose = _ref.onClose,
|
|
28495
|
+
onClickOutside = _ref.onClickOutside,
|
|
28496
|
+
rest = _objectWithoutProperties(_ref, _excluded$10);
|
|
28497
|
+
var _useState = React.useState(defaultOpen),
|
|
28498
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
28499
|
+
open = _useState2[0],
|
|
28500
|
+
setOpen = _useState2[1];
|
|
28501
|
+
var _useState3 = React.useState(true),
|
|
28502
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
28503
|
+
exited = _useState4[0],
|
|
28504
|
+
setExited = _useState4[1];
|
|
28505
|
+
var innerRef = React.useRef(null);
|
|
28506
|
+
var handleRef = useForkRef(innerRef, ref);
|
|
28507
|
+
var hasTransition = React.useMemo(function () {
|
|
28508
|
+
return getHasTransition(children);
|
|
28509
|
+
}, [children]);
|
|
28510
|
+
React.useEffect(function () {
|
|
28511
|
+
setOpen(defaultOpen);
|
|
28512
|
+
}, [defaultOpen]);
|
|
28513
|
+
var handleClose = React.useCallback(function () {
|
|
28514
|
+
setOpen(false);
|
|
28515
|
+
if (!hasTransition) {
|
|
28516
|
+
typeof onClose === "function" && onClose();
|
|
28517
|
+
}
|
|
28518
|
+
}, [hasTransition, onClose]);
|
|
28519
|
+
var handleBackgroundClick = React.useCallback(function (event) {
|
|
28520
|
+
if (!disableBackgroundClick) {
|
|
28521
|
+
event.preventDefault();
|
|
28522
|
+
return handleClose();
|
|
28523
|
+
}
|
|
28524
|
+
if (onClickOutside) {
|
|
28525
|
+
onClickOutside(event);
|
|
28526
|
+
}
|
|
28527
|
+
}, [disableBackgroundClick, onClickOutside, handleClose]);
|
|
28528
|
+
var handleEnter = React.useCallback(function () {
|
|
28529
|
+
setExited(false);
|
|
28530
|
+
}, []);
|
|
28531
|
+
var handleExited = React.useCallback(function () {
|
|
28532
|
+
setExited(true);
|
|
28533
|
+
typeof onClose === "function" && onClose();
|
|
28534
|
+
}, [onClose]);
|
|
28535
|
+
var childProps = React.useMemo(function () {
|
|
28536
|
+
var props = {};
|
|
28537
|
+
|
|
28538
|
+
// It's a Transition like component
|
|
28539
|
+
if (hasTransition && children) {
|
|
28540
|
+
props = {
|
|
28541
|
+
onEnter: createChainedFunction(handleEnter, children.props.onEnter),
|
|
28542
|
+
onExited: createChainedFunction(handleExited, children.props.onExited),
|
|
28543
|
+
in: open,
|
|
28544
|
+
forceClose: handleClose
|
|
28545
|
+
};
|
|
28546
|
+
}
|
|
28547
|
+
return props;
|
|
28548
|
+
}, [children, handleClose, handleEnter, handleExited, hasTransition, open]);
|
|
28549
|
+
if (!open && (!hasTransition || exited)) {
|
|
28550
|
+
return null;
|
|
28551
|
+
}
|
|
28552
|
+
return /*#__PURE__*/React__default["default"].createElement(Window, _extends({}, rest, {
|
|
28553
|
+
ref: handleRef,
|
|
28554
|
+
onClose: handleClose,
|
|
28555
|
+
disableFocusLock: disableFocusLock,
|
|
28556
|
+
disableScrollLock: disableScrollLock,
|
|
28557
|
+
disableCloseOnEsc: disableCloseOnEsc
|
|
28558
|
+
}), /*#__PURE__*/React__default["default"].createElement(Fade, {
|
|
28559
|
+
in: open,
|
|
28560
|
+
timeout: open ? overlayTimeout.enter : overlayTimeout.exit
|
|
28561
|
+
}, /*#__PURE__*/React__default["default"].createElement(Overlay, {
|
|
28562
|
+
onClick: handleBackgroundClick,
|
|
28563
|
+
disableBackgroundColor: disableBackgroundColor,
|
|
28564
|
+
style: {
|
|
28565
|
+
pointerEvents: open ? undefined : "none"
|
|
28566
|
+
}
|
|
28567
|
+
})), /*#__PURE__*/React.cloneElement(children, childProps));
|
|
28568
|
+
});
|
|
28569
|
+
ModalBase.displayName = "ModalBase";
|
|
28570
|
+
|
|
28598
28571
|
var warnedAboutDeprecation = false;
|
|
28599
28572
|
|
|
28600
28573
|
/**
|
|
@@ -28873,6 +28846,7 @@
|
|
|
28873
28846
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
28874
28847
|
captured = _useState4[0],
|
|
28875
28848
|
setCaptured = _useState4[1];
|
|
28849
|
+
var belowOpenSheetsId = React.useSyncExternalStore(subscribeToModalRoots, getTopModalRootIdBelowOpenSheets);
|
|
28876
28850
|
|
|
28877
28851
|
// The modal is picked only as the sheet opens, never on a later render while it stays open.
|
|
28878
28852
|
if (visible !== wasVisible) {
|
|
@@ -28882,6 +28856,12 @@
|
|
|
28882
28856
|
modalRootId,
|
|
28883
28857
|
host: createHost$1()
|
|
28884
28858
|
});
|
|
28859
|
+
} else if (visible && enabled && captured === null && belowOpenSheetsId !== undefined) {
|
|
28860
|
+
// A sheet in the page moves into a modal that opens below open sheets. A sheet in a modal already follows it.
|
|
28861
|
+
setCaptured({
|
|
28862
|
+
modalRootId: belowOpenSheetsId,
|
|
28863
|
+
host: createHost$1()
|
|
28864
|
+
});
|
|
28885
28865
|
}
|
|
28886
28866
|
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
28867
|
return {
|
|
@@ -31172,7 +31152,7 @@
|
|
|
31172
31152
|
StyledObjectFormModal.displayName = "StyledObjectFormModal";
|
|
31173
31153
|
|
|
31174
31154
|
var _excluded$J = ["children", "open", "onClose", "label", "size", "enableBackgroundClick", "disableCloseOnEsc", "disableFocusLock", "fill", "closeButton", "closeLabel", "className"];
|
|
31175
|
-
//
|
|
31155
|
+
// Menus and pickers opened from the form keep the layer they had before the form became a native modal.
|
|
31176
31156
|
var MODAL_LAYER = {
|
|
31177
31157
|
zIndex: layers.skyscraper
|
|
31178
31158
|
};
|
|
@@ -31189,8 +31169,7 @@
|
|
|
31189
31169
|
enableBackgroundClick = _ref$enableBackground === void 0 ? false : _ref$enableBackground,
|
|
31190
31170
|
_ref$disableCloseOnEs = _ref.disableCloseOnEsc,
|
|
31191
31171
|
disableCloseOnEsc = _ref$disableCloseOnEs === void 0 ? false : _ref$disableCloseOnEs,
|
|
31192
|
-
|
|
31193
|
-
disableFocusLock = _ref$disableFocusLock === void 0 ? false : _ref$disableFocusLock,
|
|
31172
|
+
disableFocusLock = _ref.disableFocusLock,
|
|
31194
31173
|
_ref$fill = _ref.fill,
|
|
31195
31174
|
fill = _ref$fill === void 0 ? false : _ref$fill,
|
|
31196
31175
|
_ref$closeButton = _ref.closeButton,
|
|
@@ -31212,6 +31191,7 @@
|
|
|
31212
31191
|
}
|
|
31213
31192
|
}, [ref]);
|
|
31214
31193
|
useFluidHeightAnimation(surfaceNode, true);
|
|
31194
|
+
useRemovedPropWarning("ObjectFormModal", "disableFocusLock", disableFocusLock, "The modal is a native dialog now, so remove it.");
|
|
31215
31195
|
return /*#__PURE__*/React__default["default"].createElement(LayerContextProvider, {
|
|
31216
31196
|
value: MODAL_LAYER
|
|
31217
31197
|
}, /*#__PURE__*/React__default["default"].createElement(DialogFrame, {
|
|
@@ -31219,12 +31199,9 @@
|
|
|
31219
31199
|
onClose: onClose,
|
|
31220
31200
|
enableBackgroundClick: enableBackgroundClick,
|
|
31221
31201
|
disableCloseOnEsc: disableCloseOnEsc,
|
|
31222
|
-
|
|
31202
|
+
"aria-label": label,
|
|
31223
31203
|
surface: /*#__PURE__*/React__default["default"].createElement(StyledObjectFormModal, _extends({}, rest, {
|
|
31224
31204
|
ref: setSurface,
|
|
31225
|
-
role: "dialog",
|
|
31226
|
-
"aria-modal": "true",
|
|
31227
|
-
"aria-label": label,
|
|
31228
31205
|
$maxWidth: (_dialogSizes$size = dialogSizes[size]) !== null && _dialogSizes$size !== void 0 ? _dialogSizes$size : dialogSizes.s,
|
|
31229
31206
|
$fill: fill || closeButton,
|
|
31230
31207
|
$closeButton: closeButton,
|
|
@@ -34296,6 +34273,7 @@
|
|
|
34296
34273
|
ref: ref,
|
|
34297
34274
|
open: open,
|
|
34298
34275
|
onClose: onClose,
|
|
34276
|
+
"aria-label": title,
|
|
34299
34277
|
disableCloseOnEsc: disableCloseOnEsc,
|
|
34300
34278
|
className: dialogClassName,
|
|
34301
34279
|
size: (_activeStepProps$size = activeStepProps.size) !== null && _activeStepProps$size !== void 0 ? _activeStepProps$size : size,
|
|
@@ -34915,7 +34893,7 @@
|
|
|
34915
34893
|
});
|
|
34916
34894
|
};
|
|
34917
34895
|
|
|
34918
|
-
var _excluded$l = ["children", "onChangeSearch", "search", "mode", "setMode", "loading", "idModeEnabled"];
|
|
34896
|
+
var _excluded$l = ["children", "onChangeSearch", "search", "mode", "setMode", "loading", "idModeEnabled", "aria-label"];
|
|
34919
34897
|
var _CommandPalette = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
34920
34898
|
var children = _ref.children,
|
|
34921
34899
|
onChangeSearch = _ref.onChangeSearch,
|
|
@@ -34925,6 +34903,7 @@
|
|
|
34925
34903
|
loading = _ref.loading,
|
|
34926
34904
|
_ref$idModeEnabled = _ref.idModeEnabled,
|
|
34927
34905
|
idModeEnabled = _ref$idModeEnabled === void 0 ? false : _ref$idModeEnabled,
|
|
34906
|
+
ariaLabel = _ref["aria-label"],
|
|
34928
34907
|
rest = _objectWithoutProperties(_ref, _excluded$l);
|
|
34929
34908
|
var _useState = React.useState(0),
|
|
34930
34909
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -35009,6 +34988,7 @@
|
|
|
35009
34988
|
}
|
|
35010
34989
|
};
|
|
35011
34990
|
return /*#__PURE__*/React__default["default"].createElement(Dialog, _extends({}, rest, {
|
|
34991
|
+
"aria-label": ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : rest["aria-labelledby"] ? undefined : "Search",
|
|
35012
34992
|
ref: ref,
|
|
35013
34993
|
animate: "fade"
|
|
35014
34994
|
}), /*#__PURE__*/React__default["default"].createElement(SearchContextProvider, {
|