@activecollab/components 1.0.272 → 1.0.274
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/AvatarGroup/index.js +17 -0
- package/dist/cjs/components/AvatarGroup/index.js.map +1 -0
- package/dist/cjs/components/CommandPallete/CommandPallete.js +2 -2
- package/dist/cjs/components/CommandPallete/CommandPallete.js.map +1 -1
- package/dist/cjs/components/index.js +22 -0
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/utils/deepChildrenMap.js +32 -0
- package/dist/cjs/utils/deepChildrenMap.js.map +1 -0
- package/dist/esm/components/AvatarGroup/index.d.ts +2 -0
- package/dist/esm/components/AvatarGroup/index.d.ts.map +1 -0
- package/dist/esm/components/AvatarGroup/index.js +2 -0
- package/dist/esm/components/AvatarGroup/index.js.map +1 -0
- package/dist/esm/components/CommandPallete/CommandPallete.d.ts.map +1 -1
- package/dist/esm/components/CommandPallete/CommandPallete.js +1 -1
- package/dist/esm/components/CommandPallete/CommandPallete.js.map +1 -1
- package/dist/esm/components/index.d.ts +2 -0
- package/dist/esm/components/index.d.ts.map +1 -1
- package/dist/esm/components/index.js +2 -0
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/utils/deepChildrenMap.d.ts +9 -0
- package/dist/esm/utils/deepChildrenMap.d.ts.map +1 -0
- package/dist/esm/utils/deepChildrenMap.js +21 -0
- package/dist/esm/utils/deepChildrenMap.js.map +1 -0
- package/dist/index.js +693 -174
- 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 -2
package/dist/index.js
CHANGED
|
@@ -269,7 +269,7 @@
|
|
|
269
269
|
})(["display:inline-flex;svg{margin:0 4px;}"]);
|
|
270
270
|
StyledButtonElement.displayName = "StyledButtonElement";
|
|
271
271
|
|
|
272
|
-
var _excluded$
|
|
272
|
+
var _excluded$1f = ["children", "active", "variant", "size", "className"];
|
|
273
273
|
/**
|
|
274
274
|
* @component Button
|
|
275
275
|
* @description
|
|
@@ -299,7 +299,7 @@
|
|
|
299
299
|
_ref$size = _ref.size,
|
|
300
300
|
size = _ref$size === void 0 ? "medium" : _ref$size,
|
|
301
301
|
className = _ref.className,
|
|
302
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
302
|
+
args = _objectWithoutProperties(_ref, _excluded$1f);
|
|
303
303
|
return /*#__PURE__*/React__default["default"].createElement(StyledButton$2, _extends({
|
|
304
304
|
className: classNames__default["default"]("c-btn", className, {
|
|
305
305
|
"c-btn--contained": variant === "primary" || variant === "contained",
|
|
@@ -373,12 +373,12 @@
|
|
|
373
373
|
})(["svg{fill:var(--color-theme-100);}&:hover svg{transform:rotate(90deg);transition:ease 0.3s;}"]);
|
|
374
374
|
StyledGlobalAddButton.displayName = "StyledGlobalAddButton";
|
|
375
375
|
|
|
376
|
-
var _excluded$
|
|
376
|
+
var _excluded$1e = ["className", "disabled"];
|
|
377
377
|
var GlobalAddButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
378
378
|
var className = _ref.className,
|
|
379
379
|
_ref$disabled = _ref.disabled,
|
|
380
380
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
381
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
381
|
+
rest = _objectWithoutProperties(_ref, _excluded$1e);
|
|
382
382
|
return /*#__PURE__*/React__default["default"].createElement(StyledGlobalAddButton, _extends({
|
|
383
383
|
ref: ref,
|
|
384
384
|
variant: "contained",
|
|
@@ -410,11 +410,11 @@
|
|
|
410
410
|
});
|
|
411
411
|
StyledButtonGroup$1.displayName = "StyledButtonGroup";
|
|
412
412
|
|
|
413
|
-
var _excluded$
|
|
413
|
+
var _excluded$1d = ["children", "className"];
|
|
414
414
|
var ButtonGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
415
415
|
var children = _ref.children,
|
|
416
416
|
className = _ref.className,
|
|
417
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
417
|
+
rest = _objectWithoutProperties(_ref, _excluded$1d);
|
|
418
418
|
return /*#__PURE__*/React__default["default"].createElement(StyledButtonGroup$1, _extends({
|
|
419
419
|
ref: ref,
|
|
420
420
|
className: classNames__default["default"]("c-btn-group", className)
|
|
@@ -474,7 +474,7 @@
|
|
|
474
474
|
return React.useContext(MenuContext);
|
|
475
475
|
};
|
|
476
476
|
|
|
477
|
-
var _excluded$
|
|
477
|
+
var _excluded$1c = ["children", "anchorEl", "open", "style", "transition", "placement", "strategy"];
|
|
478
478
|
var Popper = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
479
479
|
var children = _ref.children,
|
|
480
480
|
anchorEl = _ref.anchorEl,
|
|
@@ -487,7 +487,7 @@
|
|
|
487
487
|
initialPlacement = _ref$placement === void 0 ? "bottom" : _ref$placement,
|
|
488
488
|
_ref$strategy = _ref.strategy,
|
|
489
489
|
strategy = _ref$strategy === void 0 ? "absolute" : _ref$strategy,
|
|
490
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
490
|
+
rest = _objectWithoutProperties(_ref, _excluded$1c);
|
|
491
491
|
var _useState = React.useState(true),
|
|
492
492
|
_useState2 = _slicedToArray(_useState, 2),
|
|
493
493
|
exited = _useState2[0],
|
|
@@ -576,12 +576,12 @@
|
|
|
576
576
|
});
|
|
577
577
|
StyledOverlay.displayName = "StyledOverlay";
|
|
578
578
|
|
|
579
|
-
var _excluded$
|
|
579
|
+
var _excluded$1b = ["className", "disableBackgroundColor"];
|
|
580
580
|
var Overlay = function Overlay(_ref) {
|
|
581
581
|
var className = _ref.className,
|
|
582
582
|
_ref$disableBackgroun = _ref.disableBackgroundColor,
|
|
583
583
|
disableBackgroundColor = _ref$disableBackgroun === void 0 ? false : _ref$disableBackgroun,
|
|
584
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
584
|
+
rest = _objectWithoutProperties(_ref, _excluded$1b);
|
|
585
585
|
return /*#__PURE__*/React__default["default"].createElement(StyledOverlay, _extends({
|
|
586
586
|
className: classNames__default["default"]("c-overlay", className),
|
|
587
587
|
$disableBackgroundColor: disableBackgroundColor
|
|
@@ -621,7 +621,7 @@
|
|
|
621
621
|
})(["", " ", " position:fixed;top:0;right:0;bottom:0;left:0;"], FontStyle, BoxSizingStyle);
|
|
622
622
|
StyledWindow.displayName = "StyledWindow";
|
|
623
623
|
|
|
624
|
-
var _excluded$
|
|
624
|
+
var _excluded$1a = ["children", "onClose", "className", "style", "onKeyDown", "disableFocusLock", "disableScrollLock", "disableCloseOnEsc", "onClick"];
|
|
625
625
|
var returnFocus = {
|
|
626
626
|
preventScroll: true
|
|
627
627
|
};
|
|
@@ -638,7 +638,7 @@
|
|
|
638
638
|
_ref$disableCloseOnEs = _ref.disableCloseOnEsc,
|
|
639
639
|
disableCloseOnEsc = _ref$disableCloseOnEs === void 0 ? false : _ref$disableCloseOnEs,
|
|
640
640
|
onClick = _ref.onClick,
|
|
641
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
641
|
+
rest = _objectWithoutProperties(_ref, _excluded$1a);
|
|
642
642
|
var innerRef = React.useRef(null);
|
|
643
643
|
var handleRef = useForkRef(innerRef, ref);
|
|
644
644
|
var _useLayerContext = useLayerContext(),
|
|
@@ -698,7 +698,7 @@
|
|
|
698
698
|
}, FontStyle, BoxSizingStyle);
|
|
699
699
|
StyledBubble.displayName = "StyledBubble";
|
|
700
700
|
|
|
701
|
-
var _excluded$
|
|
701
|
+
var _excluded$19 = ["children", "className", "innerRef", "style"];
|
|
702
702
|
var Bubble = function Bubble(_ref) {
|
|
703
703
|
var children = _ref.children,
|
|
704
704
|
className = _ref.className,
|
|
@@ -706,7 +706,7 @@
|
|
|
706
706
|
innerRef = _ref$innerRef === void 0 ? null : _ref$innerRef,
|
|
707
707
|
_ref$style = _ref.style,
|
|
708
708
|
style = _ref$style === void 0 ? {} : _ref$style,
|
|
709
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
709
|
+
rest = _objectWithoutProperties(_ref, _excluded$19);
|
|
710
710
|
return /*#__PURE__*/React__default["default"].createElement(StyledBubble, _extends({}, rest, {
|
|
711
711
|
ref: innerRef,
|
|
712
712
|
className: classNames__default["default"]("c-bubble", className),
|
|
@@ -1022,7 +1022,7 @@
|
|
|
1022
1022
|
});
|
|
1023
1023
|
StyledTypography.displayName = "StyledTypography";
|
|
1024
1024
|
|
|
1025
|
-
var _excluded$
|
|
1025
|
+
var _excluded$18 = ["variant", "as", "color", "italic", "tabularNums", "letterSpacing", "lineHeight", "align", "decoration", "transform", "overflow", "whitespace", "wordBreak", "weight", "className", "children"];
|
|
1026
1026
|
var Typography = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1027
1027
|
var _ref$variant = _ref.variant,
|
|
1028
1028
|
variant = _ref$variant === void 0 ? "Title 1" : _ref$variant,
|
|
@@ -1053,7 +1053,7 @@
|
|
|
1053
1053
|
weight = _ref$weight === void 0 ? "regular" : _ref$weight,
|
|
1054
1054
|
className = _ref.className,
|
|
1055
1055
|
children = _ref.children,
|
|
1056
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1056
|
+
props = _objectWithoutProperties(_ref, _excluded$18);
|
|
1057
1057
|
var Component = as || "div";
|
|
1058
1058
|
return /*#__PURE__*/React__default["default"].createElement(StyledTypography, _extends({
|
|
1059
1059
|
as: Component,
|
|
@@ -1076,13 +1076,13 @@
|
|
|
1076
1076
|
});
|
|
1077
1077
|
Typography.displayName = "Typography";
|
|
1078
1078
|
|
|
1079
|
-
var _excluded$
|
|
1079
|
+
var _excluded$17 = ["title", "className", "leftElement", "rightElement"];
|
|
1080
1080
|
var MenuHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1081
1081
|
var title = _ref.title,
|
|
1082
1082
|
className = _ref.className,
|
|
1083
1083
|
leftElement = _ref.leftElement,
|
|
1084
1084
|
rightElement = _ref.rightElement,
|
|
1085
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1085
|
+
props = _objectWithoutProperties(_ref, _excluded$17);
|
|
1086
1086
|
return /*#__PURE__*/React__default["default"].createElement(StyledMenuHeader, _extends({}, props, {
|
|
1087
1087
|
className: classNames__default["default"]("c-menu-header", className),
|
|
1088
1088
|
ref: ref
|
|
@@ -1107,11 +1107,11 @@
|
|
|
1107
1107
|
});
|
|
1108
1108
|
MenuHeader.displayName = "MenuHeader";
|
|
1109
1109
|
|
|
1110
|
-
var _excluded$
|
|
1110
|
+
var _excluded$16 = ["children", "className"];
|
|
1111
1111
|
var MenuFooter = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1112
1112
|
var children = _ref.children,
|
|
1113
1113
|
className = _ref.className,
|
|
1114
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1114
|
+
props = _objectWithoutProperties(_ref, _excluded$16);
|
|
1115
1115
|
return /*#__PURE__*/React__default["default"].createElement(StyledMenuFooter$1, _extends({}, props, {
|
|
1116
1116
|
className: classNames__default["default"]("c-menu-footer", className),
|
|
1117
1117
|
ref: ref
|
|
@@ -1135,11 +1135,11 @@
|
|
|
1135
1135
|
})(["border-top:1px solid var(--border-primary);margin:12px 16px;height:1px;"]);
|
|
1136
1136
|
StyledListSeparator.displayName = "StyledListSeparator";
|
|
1137
1137
|
|
|
1138
|
-
var _excluded$
|
|
1138
|
+
var _excluded$15 = ["children", "className"];
|
|
1139
1139
|
var ListItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1140
1140
|
var children = _ref.children,
|
|
1141
1141
|
className = _ref.className,
|
|
1142
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1142
|
+
props = _objectWithoutProperties(_ref, _excluded$15);
|
|
1143
1143
|
return /*#__PURE__*/React__default["default"].createElement(StyledListItem, _extends({
|
|
1144
1144
|
className: classNames__default["default"]("c-list-item", className),
|
|
1145
1145
|
ref: ref,
|
|
@@ -1148,21 +1148,21 @@
|
|
|
1148
1148
|
});
|
|
1149
1149
|
ListItem.displayName = "ListItem";
|
|
1150
1150
|
|
|
1151
|
-
var _excluded$
|
|
1151
|
+
var _excluded$14 = ["className"];
|
|
1152
1152
|
var ListSeparator = function ListSeparator(_ref) {
|
|
1153
1153
|
var className = _ref.className,
|
|
1154
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1154
|
+
props = _objectWithoutProperties(_ref, _excluded$14);
|
|
1155
1155
|
return /*#__PURE__*/React__default["default"].createElement(StyledListSeparator, _extends({
|
|
1156
1156
|
className: classNames__default["default"]("c-list-separator", className)
|
|
1157
1157
|
}, props));
|
|
1158
1158
|
};
|
|
1159
1159
|
ListSeparator.displayName = "ListSeparator";
|
|
1160
1160
|
|
|
1161
|
-
var _excluded$
|
|
1161
|
+
var _excluded$13 = ["children", "className"];
|
|
1162
1162
|
var _List = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1163
1163
|
var children = _ref.children,
|
|
1164
1164
|
className = _ref.className,
|
|
1165
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1165
|
+
props = _objectWithoutProperties(_ref, _excluded$13);
|
|
1166
1166
|
return /*#__PURE__*/React__default["default"].createElement(StyledList, _extends({
|
|
1167
1167
|
className: className,
|
|
1168
1168
|
ref: ref,
|
|
@@ -1188,7 +1188,7 @@
|
|
|
1188
1188
|
return size === "big" && styled.css(["width:40px;"]);
|
|
1189
1189
|
});
|
|
1190
1190
|
|
|
1191
|
-
var _excluded
|
|
1191
|
+
var _excluded$12 = ["children", "className", "variant", "size", "active"];
|
|
1192
1192
|
|
|
1193
1193
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
1194
1194
|
|
|
@@ -1218,7 +1218,7 @@
|
|
|
1218
1218
|
variant = _ref.variant,
|
|
1219
1219
|
size = _ref.size,
|
|
1220
1220
|
active = _ref.active,
|
|
1221
|
-
args = _objectWithoutProperties(_ref, _excluded
|
|
1221
|
+
args = _objectWithoutProperties(_ref, _excluded$12);
|
|
1222
1222
|
return /*#__PURE__*/React__default["default"].createElement(StyledIconButton, _extends({
|
|
1223
1223
|
className: className,
|
|
1224
1224
|
variant: variant,
|
|
@@ -7080,14 +7080,14 @@
|
|
|
7080
7080
|
});
|
|
7081
7081
|
StyledBreadcrumbListItem.displayName = "StyledBreadcrumbListItem";
|
|
7082
7082
|
|
|
7083
|
-
var _excluded$
|
|
7083
|
+
var _excluded$11 = ["children", "className", "separator"];
|
|
7084
7084
|
var Breadcrumbs = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
7085
7085
|
var _dimensions$width, _childDimensions$widt;
|
|
7086
7086
|
var children = _ref.children,
|
|
7087
7087
|
className = _ref.className,
|
|
7088
7088
|
_ref$separator = _ref.separator,
|
|
7089
7089
|
separator = _ref$separator === void 0 ? "/" : _ref$separator,
|
|
7090
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
7090
|
+
rest = _objectWithoutProperties(_ref, _excluded$11);
|
|
7091
7091
|
var internalRef = React.useRef(null);
|
|
7092
7092
|
var listWrapperRef = React.useRef(null);
|
|
7093
7093
|
var olRef = React.useRef(null);
|
|
@@ -7254,10 +7254,10 @@
|
|
|
7254
7254
|
return props.$isLight && styled.css(["background-color:var(--page-paper-main);box-shadow:var(--shadow-secondary);color:var(--color-theme-700);"]);
|
|
7255
7255
|
});
|
|
7256
7256
|
|
|
7257
|
-
var _excluded$
|
|
7257
|
+
var _excluded$10 = ["children"];
|
|
7258
7258
|
var TooltipAnimation = function TooltipAnimation(_ref) {
|
|
7259
7259
|
var children = _ref.children,
|
|
7260
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7260
|
+
props = _objectWithoutProperties(_ref, _excluded$10);
|
|
7261
7261
|
return /*#__PURE__*/React__default["default"].createElement(FromElement, _extends({
|
|
7262
7262
|
timeout: 0
|
|
7263
7263
|
}, props), children);
|
|
@@ -7332,12 +7332,12 @@
|
|
|
7332
7332
|
});
|
|
7333
7333
|
Tooltip.displayName = "Tooltip";
|
|
7334
7334
|
|
|
7335
|
-
var _excluded
|
|
7335
|
+
var _excluded$$ = ["weight", "children"];
|
|
7336
7336
|
var Body2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
7337
7337
|
var _ref$weight = _ref.weight,
|
|
7338
7338
|
weight = _ref$weight === void 0 ? "regular" : _ref$weight,
|
|
7339
7339
|
children = _ref.children,
|
|
7340
|
-
props = _objectWithoutProperties(_ref, _excluded
|
|
7340
|
+
props = _objectWithoutProperties(_ref, _excluded$$);
|
|
7341
7341
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
7342
7342
|
variant: "Body 2",
|
|
7343
7343
|
weight: weight,
|
|
@@ -7384,7 +7384,7 @@
|
|
|
7384
7384
|
});
|
|
7385
7385
|
StyledCounterButtonLabel.displayName = "StyledCounterButtonLabel";
|
|
7386
7386
|
|
|
7387
|
-
var _excluded$
|
|
7387
|
+
var _excluded$_ = ["label", "icon", "active", "counter", "tooltipText", "onClearAll", "className"];
|
|
7388
7388
|
var CounterButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
7389
7389
|
var label = _ref.label,
|
|
7390
7390
|
icon = _ref.icon,
|
|
@@ -7394,7 +7394,7 @@
|
|
|
7394
7394
|
tooltipText = _ref.tooltipText,
|
|
7395
7395
|
onClearAll = _ref.onClearAll,
|
|
7396
7396
|
className = _ref.className,
|
|
7397
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
7397
|
+
args = _objectWithoutProperties(_ref, _excluded$_);
|
|
7398
7398
|
return /*#__PURE__*/React__default["default"].createElement(StyledCounterButtonWrapper, {
|
|
7399
7399
|
ref: ref,
|
|
7400
7400
|
className: className
|
|
@@ -7703,7 +7703,7 @@
|
|
|
7703
7703
|
StyledDatePicker.displayName = "StyledDatePicker";
|
|
7704
7704
|
StyledDayPicker.displayName = "StyledDayPicker";
|
|
7705
7705
|
|
|
7706
|
-
var _excluded$
|
|
7706
|
+
var _excluded$Z = ["className", "onChange", "onDayClick", "selectedDays", "disabledDays", "selectionMode", "month", "onMonthChange", "dateRequired", "firstDayOfWeek", "fixedWeeks", "modifiers"];
|
|
7707
7707
|
var DatePicker = function DatePicker(_ref) {
|
|
7708
7708
|
var className = _ref.className,
|
|
7709
7709
|
onChange = _ref.onChange,
|
|
@@ -7725,7 +7725,7 @@
|
|
|
7725
7725
|
_ref$fixedWeeks = _ref.fixedWeeks,
|
|
7726
7726
|
fixedWeeks = _ref$fixedWeeks === void 0 ? true : _ref$fixedWeeks,
|
|
7727
7727
|
defaultModifiers = _ref.modifiers,
|
|
7728
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
7728
|
+
rest = _objectWithoutProperties(_ref, _excluded$Z);
|
|
7729
7729
|
var _useState = React.useState(),
|
|
7730
7730
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7731
7731
|
enteredTo = _useState2[0],
|
|
@@ -8617,10 +8617,10 @@
|
|
|
8617
8617
|
componentId: "sc-x4ge7a-0"
|
|
8618
8618
|
})(["width:70%;background:linear-gradient( 90deg,rgba(255,255,255,0) 20%,rgba(0,0,0,0.05) 50%,rgba(255,255,255,0) 60% );background-size:400%;height:16px;border-radius:8px;.neon &{background:linear-gradient( 90deg,rgba(255,255,255,0) 20%,rgba(0,0,0,0.2) 50%,rgba(255,255,255,0) 60% );background-size:500%;}animation-duration:1s;animation-iteration-count:infinite;animation-name:", ";animation-timing-function:linear;animation-direction:reverse;"], linearAnimation);
|
|
8619
8619
|
|
|
8620
|
-
var _excluded$
|
|
8620
|
+
var _excluded$Y = ["className"];
|
|
8621
8621
|
var LinearLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
8622
8622
|
var className = _ref.className,
|
|
8623
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
8623
|
+
rest = _objectWithoutProperties(_ref, _excluded$Y);
|
|
8624
8624
|
return /*#__PURE__*/React__default["default"].createElement(StyledLinearLoader, _extends({
|
|
8625
8625
|
ref: ref,
|
|
8626
8626
|
className: classNames__default["default"]("c-loader c-loader--linear", className)
|
|
@@ -8634,10 +8634,10 @@
|
|
|
8634
8634
|
componentId: "sc-1f35d5h-0"
|
|
8635
8635
|
})(["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);
|
|
8636
8636
|
|
|
8637
|
-
var _excluded$
|
|
8637
|
+
var _excluded$X = ["className"];
|
|
8638
8638
|
var DotsLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
8639
8639
|
var className = _ref.className,
|
|
8640
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
8640
|
+
rest = _objectWithoutProperties(_ref, _excluded$X);
|
|
8641
8641
|
return /*#__PURE__*/React__default["default"].createElement(StyledDotsLoader, _extends({
|
|
8642
8642
|
ref: ref,
|
|
8643
8643
|
className: classNames__default["default"]("c-loader c-loader--dots", className)
|
|
@@ -8646,7 +8646,7 @@
|
|
|
8646
8646
|
DotsLoader.displayName = "DotsLoader";
|
|
8647
8647
|
|
|
8648
8648
|
var rotateAnimation = styled.keyframes(["from{transform:rotate(0deg);}to{transform:rotate(359deg);}"]);
|
|
8649
|
-
var StyledSpinnerLoader = styled__default["default"].div.withConfig({
|
|
8649
|
+
var StyledSpinnerLoader$1 = styled__default["default"].div.withConfig({
|
|
8650
8650
|
displayName: "Styles__StyledSpinnerLoader",
|
|
8651
8651
|
componentId: "sc-1ht53g9-0"
|
|
8652
8652
|
})(["", " border-radius:100%;flex-shrink:0;", " ", " ", " ", ""], BoxSizingStyle, function (props) {
|
|
@@ -8659,7 +8659,7 @@
|
|
|
8659
8659
|
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);
|
|
8660
8660
|
});
|
|
8661
8661
|
|
|
8662
|
-
var _excluded$
|
|
8662
|
+
var _excluded$W = ["radius", "stroke", "activeStrokeColor", "inactiveStrokeColor", "activeColorPercentage", "rotateDurationInSeconds", "className"];
|
|
8663
8663
|
var SpinnerLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
8664
8664
|
var _ref$radius = _ref.radius,
|
|
8665
8665
|
radius = _ref$radius === void 0 ? 10 : _ref$radius,
|
|
@@ -8674,8 +8674,8 @@
|
|
|
8674
8674
|
_ref$rotateDurationIn = _ref.rotateDurationInSeconds,
|
|
8675
8675
|
rotateDurationInSeconds = _ref$rotateDurationIn === void 0 ? 0.75 : _ref$rotateDurationIn,
|
|
8676
8676
|
className = _ref.className,
|
|
8677
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
8678
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledSpinnerLoader, _extends({
|
|
8677
|
+
rest = _objectWithoutProperties(_ref, _excluded$W);
|
|
8678
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledSpinnerLoader$1, _extends({
|
|
8679
8679
|
ref: ref,
|
|
8680
8680
|
className: className,
|
|
8681
8681
|
$diameter: radius * 2,
|
|
@@ -8688,7 +8688,7 @@
|
|
|
8688
8688
|
});
|
|
8689
8689
|
SpinnerLoader.displayName = "SpinnerLoader";
|
|
8690
8690
|
|
|
8691
|
-
var _excluded$
|
|
8691
|
+
var _excluded$V = ["header", "rows", "className", "sortBy", "sortDirection", "onSortCallback", "theadClass", "noResultsCallback", "groupBy", "groupHead", "isCollapsible", "emptyValue", "loading", "loadingRows"];
|
|
8692
8692
|
exports.SortDirection = void 0;
|
|
8693
8693
|
(function (SortDirection) {
|
|
8694
8694
|
SortDirection["None"] = "none";
|
|
@@ -8736,7 +8736,7 @@
|
|
|
8736
8736
|
loading = _ref.loading,
|
|
8737
8737
|
_ref$loadingRows = _ref.loadingRows,
|
|
8738
8738
|
loadingRows = _ref$loadingRows === void 0 ? 7 : _ref$loadingRows,
|
|
8739
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
8739
|
+
args = _objectWithoutProperties(_ref, _excluded$V);
|
|
8740
8740
|
var _useState = React.useState(sortDirection),
|
|
8741
8741
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8742
8742
|
columnDirection = _useState2[0],
|
|
@@ -9138,7 +9138,7 @@
|
|
|
9138
9138
|
});
|
|
9139
9139
|
StyledPaper.displayName = "StyledPaper";
|
|
9140
9140
|
|
|
9141
|
-
var _excluded$
|
|
9141
|
+
var _excluded$U = ["children", "className", "type", "hover", "useOptimizedShadow"];
|
|
9142
9142
|
/**
|
|
9143
9143
|
* This is a component description and should sit directly above your component
|
|
9144
9144
|
*/
|
|
@@ -9151,7 +9151,7 @@
|
|
|
9151
9151
|
hover = _ref$hover === void 0 ? false : _ref$hover,
|
|
9152
9152
|
_ref$useOptimizedShad = _ref.useOptimizedShadow,
|
|
9153
9153
|
useOptimizedShadow = _ref$useOptimizedShad === void 0 ? false : _ref$useOptimizedShad,
|
|
9154
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
9154
|
+
rest = _objectWithoutProperties(_ref, _excluded$U);
|
|
9155
9155
|
return /*#__PURE__*/React__default["default"].createElement(StyledPaper, _extends({
|
|
9156
9156
|
className: classNames__default["default"](className, {
|
|
9157
9157
|
"ac-shadow--raised--lg": !useOptimizedShadow && hover && type === "paper-1",
|
|
@@ -9204,7 +9204,7 @@
|
|
|
9204
9204
|
});
|
|
9205
9205
|
StyledCard.displayName = "StyledCard";
|
|
9206
9206
|
|
|
9207
|
-
var _excluded$
|
|
9207
|
+
var _excluded$T = ["children", "className", "hoverable", "paperType"];
|
|
9208
9208
|
var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9209
9209
|
var children = _ref.children,
|
|
9210
9210
|
className = _ref.className,
|
|
@@ -9212,7 +9212,7 @@
|
|
|
9212
9212
|
hoverable = _ref$hoverable === void 0 ? false : _ref$hoverable,
|
|
9213
9213
|
_ref$paperType = _ref.paperType,
|
|
9214
9214
|
paperType = _ref$paperType === void 0 ? "paper-2" : _ref$paperType,
|
|
9215
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
9215
|
+
rest = _objectWithoutProperties(_ref, _excluded$T);
|
|
9216
9216
|
return /*#__PURE__*/React__default["default"].createElement(StyledCard, _extends({}, rest, {
|
|
9217
9217
|
type: paperType,
|
|
9218
9218
|
className: classNames__default["default"]("c-card", className),
|
|
@@ -9291,12 +9291,12 @@
|
|
|
9291
9291
|
});
|
|
9292
9292
|
EntityCard$1.displayName = "EntityCard";
|
|
9293
9293
|
|
|
9294
|
-
var _excluded$
|
|
9294
|
+
var _excluded$S = ["weight", "children"];
|
|
9295
9295
|
var Title1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9296
9296
|
var _ref$weight = _ref.weight,
|
|
9297
9297
|
weight = _ref$weight === void 0 ? "light" : _ref$weight,
|
|
9298
9298
|
children = _ref.children,
|
|
9299
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
9299
|
+
props = _objectWithoutProperties(_ref, _excluded$S);
|
|
9300
9300
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
9301
9301
|
weight: weight,
|
|
9302
9302
|
variant: "Title 1",
|
|
@@ -9305,12 +9305,12 @@
|
|
|
9305
9305
|
});
|
|
9306
9306
|
Title1.displayName = "Title1";
|
|
9307
9307
|
|
|
9308
|
-
var _excluded$
|
|
9308
|
+
var _excluded$R = ["weight", "children"];
|
|
9309
9309
|
var Title2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9310
9310
|
var _ref$weight = _ref.weight,
|
|
9311
9311
|
weight = _ref$weight === void 0 ? "light" : _ref$weight,
|
|
9312
9312
|
children = _ref.children,
|
|
9313
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
9313
|
+
props = _objectWithoutProperties(_ref, _excluded$R);
|
|
9314
9314
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
9315
9315
|
weight: weight,
|
|
9316
9316
|
variant: "Title 2",
|
|
@@ -9319,10 +9319,10 @@
|
|
|
9319
9319
|
});
|
|
9320
9320
|
Title2.displayName = "Title2";
|
|
9321
9321
|
|
|
9322
|
-
var _excluded$
|
|
9322
|
+
var _excluded$Q = ["children"];
|
|
9323
9323
|
var Header2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9324
9324
|
var children = _ref.children,
|
|
9325
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
9325
|
+
props = _objectWithoutProperties(_ref, _excluded$Q);
|
|
9326
9326
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
9327
9327
|
weight: "bold",
|
|
9328
9328
|
variant: "Header 2",
|
|
@@ -9331,10 +9331,10 @@
|
|
|
9331
9331
|
});
|
|
9332
9332
|
Header2.displayName = "Header2";
|
|
9333
9333
|
|
|
9334
|
-
var _excluded$
|
|
9334
|
+
var _excluded$P = ["children"];
|
|
9335
9335
|
var Header3 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9336
9336
|
var children = _ref.children,
|
|
9337
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
9337
|
+
props = _objectWithoutProperties(_ref, _excluded$P);
|
|
9338
9338
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
9339
9339
|
weight: "bold",
|
|
9340
9340
|
variant: "Header 3",
|
|
@@ -9343,12 +9343,12 @@
|
|
|
9343
9343
|
});
|
|
9344
9344
|
Header3.displayName = "Header3";
|
|
9345
9345
|
|
|
9346
|
-
var _excluded$
|
|
9346
|
+
var _excluded$O = ["weight", "children"];
|
|
9347
9347
|
var Body1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9348
9348
|
var _ref$weight = _ref.weight,
|
|
9349
9349
|
weight = _ref$weight === void 0 ? "regular" : _ref$weight,
|
|
9350
9350
|
children = _ref.children,
|
|
9351
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
9351
|
+
props = _objectWithoutProperties(_ref, _excluded$O);
|
|
9352
9352
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
9353
9353
|
variant: "Body 1",
|
|
9354
9354
|
weight: weight,
|
|
@@ -9357,12 +9357,12 @@
|
|
|
9357
9357
|
});
|
|
9358
9358
|
Body1.displayName = "Body1";
|
|
9359
9359
|
|
|
9360
|
-
var _excluded$
|
|
9360
|
+
var _excluded$N = ["weight", "children"];
|
|
9361
9361
|
var Caption1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9362
9362
|
var _ref$weight = _ref.weight,
|
|
9363
9363
|
weight = _ref$weight === void 0 ? "regular" : _ref$weight,
|
|
9364
9364
|
children = _ref.children,
|
|
9365
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
9365
|
+
props = _objectWithoutProperties(_ref, _excluded$N);
|
|
9366
9366
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
9367
9367
|
variant: "Caption 1",
|
|
9368
9368
|
weight: weight,
|
|
@@ -9371,12 +9371,12 @@
|
|
|
9371
9371
|
});
|
|
9372
9372
|
Caption1.displayName = "Caption1";
|
|
9373
9373
|
|
|
9374
|
-
var _excluded$
|
|
9374
|
+
var _excluded$M = ["weight", "children"];
|
|
9375
9375
|
var Caption2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9376
9376
|
var _ref$weight = _ref.weight,
|
|
9377
9377
|
weight = _ref$weight === void 0 ? "regular" : _ref$weight,
|
|
9378
9378
|
children = _ref.children,
|
|
9379
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
9379
|
+
props = _objectWithoutProperties(_ref, _excluded$M);
|
|
9380
9380
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
9381
9381
|
variant: "Caption 2",
|
|
9382
9382
|
weight: weight,
|
|
@@ -9403,7 +9403,7 @@
|
|
|
9403
9403
|
componentId: "sc-1idn4je-1"
|
|
9404
9404
|
})(["&.c-signifier--animate-enter{opacity:0;transform:translateY(var(--signifier-in));}&.c-signifier--animate-enter-active{opacity:1;transform:translateY(0%);transition-duration:300ms;}&.c-signifier--animate-exit{transform:translateY(0%);opacity:1;}&.c-signifier--animate-exit-active{transform:translateY(var(--signifier-out));opacity:0;transition-duration:300ms;}"]);
|
|
9405
9405
|
StyledSignifierTransition.displayName = "StyledSignifierTransition";
|
|
9406
|
-
var StyledIcon = styled__default["default"].svg.withConfig({
|
|
9406
|
+
var StyledIcon$1 = styled__default["default"].svg.withConfig({
|
|
9407
9407
|
displayName: "Styles__StyledIcon",
|
|
9408
9408
|
componentId: "sc-1idn4je-2"
|
|
9409
9409
|
})(["", ""], {
|
|
@@ -9411,7 +9411,7 @@
|
|
|
9411
9411
|
"lineHeight": "1rem",
|
|
9412
9412
|
"marginRight": "0.25rem"
|
|
9413
9413
|
});
|
|
9414
|
-
StyledIcon.displayName = "StyledIcon";
|
|
9414
|
+
StyledIcon$1.displayName = "StyledIcon";
|
|
9415
9415
|
|
|
9416
9416
|
var signifierTypes = ["EyeIcon", "EyeSmallIcon", "PencilIcon", "PencilSmallIcon", "EyeOffIcon", "EyeOffSmallIcon", "ChecklistIcon", "ChecklistSmallIcon", "WarningTriangleIcon", "WarningTriangleSmallIcon", "DependencyIcon", "DependencySmallIcon", "MessageIcon", "MessageSmallIcon", "ClockStopwatchIcon", "ClockStopwatchSmallIcon", "ClockIcon", "ClockSmallIcon", "DollarOffIcon", "DollarOffSmallIcon", "DollarIcon", "DollarSmallIcon", "DollarCheckmarkIcon", "DollarCheckmarkSmallIcon", "DollarClockIcon", "DollarClockSmallIcon", "BellOffIcon", "BellOffSmallIcon", "LockIcon", "LockSmallIcon", "RecurringCheckmarkIcon", "RecurringCheckmarkSmallIcon"];
|
|
9417
9417
|
var Signifier = function Signifier(_ref) {
|
|
@@ -9457,7 +9457,7 @@
|
|
|
9457
9457
|
return /*#__PURE__*/React__default["default"].createElement(StyledSignifier, {
|
|
9458
9458
|
className: classNames__default["default"]("c-signifier", className),
|
|
9459
9459
|
$direction: direction
|
|
9460
|
-
}, /*#__PURE__*/React__default["default"].createElement(StyledIcon, {
|
|
9460
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledIcon$1, {
|
|
9461
9461
|
as: Component
|
|
9462
9462
|
}), value !== null && /*#__PURE__*/React__default["default"].createElement(reactTransitionGroup.SwitchTransition, {
|
|
9463
9463
|
mode: "out-in"
|
|
@@ -9492,7 +9492,7 @@
|
|
|
9492
9492
|
return props.size + "px";
|
|
9493
9493
|
});
|
|
9494
9494
|
|
|
9495
|
-
var _excluded$
|
|
9495
|
+
var _excluded$L = ["url", "alt", "size", "className", "children"];
|
|
9496
9496
|
/**
|
|
9497
9497
|
* @component Avatar
|
|
9498
9498
|
* @description
|
|
@@ -9525,7 +9525,7 @@
|
|
|
9525
9525
|
size = _ref$size === void 0 ? 24 : _ref$size,
|
|
9526
9526
|
className = _ref.className,
|
|
9527
9527
|
children = _ref.children,
|
|
9528
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
9528
|
+
rest = _objectWithoutProperties(_ref, _excluded$L);
|
|
9529
9529
|
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
|
|
9530
9530
|
className: className
|
|
9531
9531
|
}, children, /*#__PURE__*/React__default["default"].createElement(StyledAvatar, _extends({
|
|
@@ -9547,13 +9547,13 @@
|
|
|
9547
9547
|
return props.$color && styled.css(["background-color:", ";"], props.$color);
|
|
9548
9548
|
});
|
|
9549
9549
|
|
|
9550
|
-
var _excluded$
|
|
9550
|
+
var _excluded$K = ["color", "size", "className"];
|
|
9551
9551
|
var Dot = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9552
9552
|
var color = _ref.color,
|
|
9553
9553
|
_ref$size = _ref.size,
|
|
9554
9554
|
size = _ref$size === void 0 ? 8 : _ref$size,
|
|
9555
9555
|
className = _ref.className,
|
|
9556
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
9556
|
+
rest = _objectWithoutProperties(_ref, _excluded$K);
|
|
9557
9557
|
return /*#__PURE__*/React__default["default"].createElement(StyledDot, _extends({
|
|
9558
9558
|
className: classNames__default["default"]("c-dot", className),
|
|
9559
9559
|
ref: ref,
|
|
@@ -9590,7 +9590,7 @@
|
|
|
9590
9590
|
});
|
|
9591
9591
|
StyledTagText.displayName = "StyledTagText";
|
|
9592
9592
|
|
|
9593
|
-
var _excluded$
|
|
9593
|
+
var _excluded$J = ["name", "color", "showText", "showDot", "className"];
|
|
9594
9594
|
var Tag = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9595
9595
|
var name = _ref.name,
|
|
9596
9596
|
color = _ref.color,
|
|
@@ -9599,7 +9599,7 @@
|
|
|
9599
9599
|
_ref$showDot = _ref.showDot,
|
|
9600
9600
|
showDot = _ref$showDot === void 0 ? true : _ref$showDot,
|
|
9601
9601
|
className = _ref.className,
|
|
9602
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
9602
|
+
rest = _objectWithoutProperties(_ref, _excluded$J);
|
|
9603
9603
|
return /*#__PURE__*/React__default["default"].createElement(StyledTag, _extends({
|
|
9604
9604
|
className: classNames__default["default"]("c-tag", className),
|
|
9605
9605
|
ref: ref
|
|
@@ -9701,11 +9701,11 @@
|
|
|
9701
9701
|
});
|
|
9702
9702
|
Option.displayName = "Option";
|
|
9703
9703
|
|
|
9704
|
-
var StyledInput$
|
|
9704
|
+
var StyledInput$3 = styled__default["default"].input.withConfig({
|
|
9705
9705
|
displayName: "Styles__StyledInput",
|
|
9706
9706
|
componentId: "sc-y7zymm-0"
|
|
9707
9707
|
})(["display:none;"]);
|
|
9708
|
-
StyledInput$
|
|
9708
|
+
StyledInput$3.displayName = "StyledInput";
|
|
9709
9709
|
var StyledLabel = styled__default["default"].label.withConfig({
|
|
9710
9710
|
displayName: "Styles__StyledLabel",
|
|
9711
9711
|
componentId: "sc-y7zymm-1"
|
|
@@ -9714,12 +9714,12 @@
|
|
|
9714
9714
|
var StyledCheckbox$1 = styled__default["default"].div.withConfig({
|
|
9715
9715
|
displayName: "Styles__StyledCheckbox",
|
|
9716
9716
|
componentId: "sc-y7zymm-2"
|
|
9717
|
-
})(["height:16px;width:16px;position:relative;transition-duration:0.2s;border-radius:2px;path{transition-duration:0.2s;stroke:transparent;stroke-dashoffset:12;stroke-dasharray:12;}svg{cursor:pointer;border-radius:2px;fill:transparent;}rect{transition-duration:0.2s;stroke:var(--color-theme-500);}", ":disabled ~ ", "{pointer-events:none;opacity:0.5;}", ":focus ~ ", "{rect{stroke:var(--color-secondary);stroke-width:3px;}}&:not(.c-checkbox__controlled) ", ":hover:not(:checked) ~ ", "{path{stroke:var(--color-secondary-500);stroke-dashoffset:24;}rect{stroke:var(--color-secondary);stroke-width:3px;}}", " ", ":checked ~ ", "{path{stroke:var(--page-paper-main);stroke-dashoffset:24;}rect{stroke:var(--color-secondary);stroke-width:19px;}}"], StyledInput$
|
|
9718
|
-
return props.hover && styled.css(["", ":not(:checked) ~ ", "{path{stroke:var(--color-secondary-500);stroke-dashoffset:24;}rect{stroke:var(--color-secondary);stroke-width:3px;}}"], StyledInput$
|
|
9719
|
-
}, StyledInput$
|
|
9717
|
+
})(["height:16px;width:16px;position:relative;transition-duration:0.2s;border-radius:2px;path{transition-duration:0.2s;stroke:transparent;stroke-dashoffset:12;stroke-dasharray:12;}svg{cursor:pointer;border-radius:2px;fill:transparent;}rect{transition-duration:0.2s;stroke:var(--color-theme-500);}", ":disabled ~ ", "{pointer-events:none;opacity:0.5;}", ":focus ~ ", "{rect{stroke:var(--color-secondary);stroke-width:3px;}}&:not(.c-checkbox__controlled) ", ":hover:not(:checked) ~ ", "{path{stroke:var(--color-secondary-500);stroke-dashoffset:24;}rect{stroke:var(--color-secondary);stroke-width:3px;}}", " ", ":checked ~ ", "{path{stroke:var(--page-paper-main);stroke-dashoffset:24;}rect{stroke:var(--color-secondary);stroke-width:19px;}}"], StyledInput$3, StyledLabel, StyledInput$3, StyledLabel, StyledInput$3, StyledLabel, function (props) {
|
|
9718
|
+
return props.hover && styled.css(["", ":not(:checked) ~ ", "{path{stroke:var(--color-secondary-500);stroke-dashoffset:24;}rect{stroke:var(--color-secondary);stroke-width:3px;}}"], StyledInput$3, StyledLabel);
|
|
9719
|
+
}, StyledInput$3, StyledLabel);
|
|
9720
9720
|
StyledCheckbox$1.displayName = "StyledCheckbox";
|
|
9721
9721
|
|
|
9722
|
-
var _excluded$
|
|
9722
|
+
var _excluded$I = ["className", "hover", "id"];
|
|
9723
9723
|
/**
|
|
9724
9724
|
* Checkbox component
|
|
9725
9725
|
*/
|
|
@@ -9728,14 +9728,14 @@
|
|
|
9728
9728
|
hover = _ref.hover,
|
|
9729
9729
|
_ref$id = _ref.id,
|
|
9730
9730
|
id = _ref$id === void 0 ? "checkbox" : _ref$id,
|
|
9731
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
9731
|
+
rest = _objectWithoutProperties(_ref, _excluded$I);
|
|
9732
9732
|
return /*#__PURE__*/React__default["default"].createElement(StyledCheckbox$1, {
|
|
9733
9733
|
className: classNames__default["default"]("c-checkbox", {
|
|
9734
9734
|
"c-checkbox__hover": hover,
|
|
9735
9735
|
"c-checkbox__controlled": typeof hover === "boolean"
|
|
9736
9736
|
}, className),
|
|
9737
9737
|
hover: hover
|
|
9738
|
-
}, /*#__PURE__*/React__default["default"].createElement(StyledInput$
|
|
9738
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledInput$3, _extends({
|
|
9739
9739
|
id: id,
|
|
9740
9740
|
className: "c-checkbox--input",
|
|
9741
9741
|
type: "checkbox",
|
|
@@ -9915,7 +9915,7 @@
|
|
|
9915
9915
|
StyledScrollShadowLeft.displayName = "StyledScrollShadowLeft";
|
|
9916
9916
|
StyledScrollShadowRight.displayName = "StyledScrollShadowRight";
|
|
9917
9917
|
|
|
9918
|
-
var _excluded$
|
|
9918
|
+
var _excluded$H = ["children", "className", "disableVertical", "disableHorizontal", "invertHorizontal", "invertVertical", "innerColor", "outerColor"];
|
|
9919
9919
|
var ScrollShadow = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9920
9920
|
var children = _ref.children,
|
|
9921
9921
|
className = _ref.className,
|
|
@@ -9929,7 +9929,7 @@
|
|
|
9929
9929
|
invertVertical = _ref$invertVertical === void 0 ? false : _ref$invertVertical,
|
|
9930
9930
|
innerColor = _ref.innerColor,
|
|
9931
9931
|
outerColor = _ref.outerColor,
|
|
9932
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
9932
|
+
rest = _objectWithoutProperties(_ref, _excluded$H);
|
|
9933
9933
|
var _useState = React.useState({
|
|
9934
9934
|
top: 0,
|
|
9935
9935
|
right: 0,
|
|
@@ -10049,7 +10049,7 @@
|
|
|
10049
10049
|
return height;
|
|
10050
10050
|
};
|
|
10051
10051
|
|
|
10052
|
-
var _excluded$
|
|
10052
|
+
var _excluded$G = ["as", "className", "invert", "style"];
|
|
10053
10053
|
var ScrollElement = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
10054
10054
|
var _ref$as = _ref.as,
|
|
10055
10055
|
as = _ref$as === void 0 ? "div" : _ref$as,
|
|
@@ -10057,7 +10057,7 @@
|
|
|
10057
10057
|
_ref$invert = _ref.invert,
|
|
10058
10058
|
invert = _ref$invert === void 0 ? false : _ref$invert,
|
|
10059
10059
|
style = _ref.style,
|
|
10060
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10060
|
+
rest = _objectWithoutProperties(_ref, _excluded$G);
|
|
10061
10061
|
var internalRef = useInitScrollRef(null, invert);
|
|
10062
10062
|
var handleRef = useForkRef(internalRef, ref);
|
|
10063
10063
|
var props = _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
@@ -10493,7 +10493,7 @@
|
|
|
10493
10493
|
return !props.$disabled && props.$invalid && styled.css(["border-color:var(--red-alert);"]);
|
|
10494
10494
|
});
|
|
10495
10495
|
StyledInputWrapper.displayName = "StyledInputWrapper";
|
|
10496
|
-
var StyledInput$
|
|
10496
|
+
var StyledInput$2 = styled__default["default"].input.withConfig({
|
|
10497
10497
|
displayName: "Styles__StyledInput",
|
|
10498
10498
|
componentId: "sc-ce8kcp-1"
|
|
10499
10499
|
})(["background-color:var(--input-background-color);border:none;color:var(--color-theme-900);font-size:0.875rem;font-weight:400;letter-spacing:0.02em;line-height:1.375;margin-block:0;margin-inline:4px;outline:none;padding:0;width:100%;&::placeholder{color:var(--color-theme-transparent-500);}", " ", " ", ""], function (props) {
|
|
@@ -10503,9 +10503,9 @@
|
|
|
10503
10503
|
}, function (props) {
|
|
10504
10504
|
return props.$loading && styled.css(["cursor:progress;"]);
|
|
10505
10505
|
});
|
|
10506
|
-
StyledInput$
|
|
10506
|
+
StyledInput$2.displayName = "StyledInput";
|
|
10507
10507
|
|
|
10508
|
-
var _excluded$
|
|
10508
|
+
var _excluded$F = ["className", "style", "type", "disabled", "size", "invalid", "startAdornment", "endAdornment", "wrapRef"];
|
|
10509
10509
|
var Input = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
10510
10510
|
var _ref$className = _ref.className,
|
|
10511
10511
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
@@ -10521,7 +10521,7 @@
|
|
|
10521
10521
|
startAdornment = _ref.startAdornment,
|
|
10522
10522
|
endAdornment = _ref.endAdornment,
|
|
10523
10523
|
wrapRef = _ref.wrapRef,
|
|
10524
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10524
|
+
rest = _objectWithoutProperties(_ref, _excluded$F);
|
|
10525
10525
|
var intInputRef = React.useRef(null);
|
|
10526
10526
|
var handleRef = useForkRef(ref, intInputRef);
|
|
10527
10527
|
var handleWrapperClick = React.useCallback(function () {
|
|
@@ -10536,7 +10536,7 @@
|
|
|
10536
10536
|
className: classNames__default["default"]("c-input-wrapper", className),
|
|
10537
10537
|
onClick: handleWrapperClick,
|
|
10538
10538
|
ref: wrapRef
|
|
10539
|
-
}, startAdornment, /*#__PURE__*/React__default["default"].createElement(StyledInput$
|
|
10539
|
+
}, startAdornment, /*#__PURE__*/React__default["default"].createElement(StyledInput$2, _extends({
|
|
10540
10540
|
ref: handleRef,
|
|
10541
10541
|
type: type,
|
|
10542
10542
|
$size: size,
|
|
@@ -10573,14 +10573,14 @@
|
|
|
10573
10573
|
}, StyledRadioLabel);
|
|
10574
10574
|
StyledRadioButton$1.displayName = "StyledRadioButton";
|
|
10575
10575
|
|
|
10576
|
-
var _excluded$
|
|
10576
|
+
var _excluded$E = ["className", "id", "hover"];
|
|
10577
10577
|
var RadioButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
10578
10578
|
var _ref$className = _ref.className,
|
|
10579
10579
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
10580
10580
|
_ref$id = _ref.id,
|
|
10581
10581
|
id = _ref$id === void 0 ? "radio" : _ref$id,
|
|
10582
10582
|
hover = _ref.hover,
|
|
10583
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
10583
|
+
props = _objectWithoutProperties(_ref, _excluded$E);
|
|
10584
10584
|
return /*#__PURE__*/React__default["default"].createElement(StyledRadioButton$1, {
|
|
10585
10585
|
className: classNames__default["default"]("c-radio-btn", {
|
|
10586
10586
|
"c-radio-btn__hover": hover,
|
|
@@ -10788,7 +10788,7 @@
|
|
|
10788
10788
|
};
|
|
10789
10789
|
OptionContent.displayName = "OptionContent";
|
|
10790
10790
|
|
|
10791
|
-
var _excluded$
|
|
10791
|
+
var _excluded$D = ["type", "mode", "target", "options", "selected", "position", "onChange", "actionIcon", "actionLabel", "placeholder", "emptyAction", "disableSearch", "forceCloseMenu", "selectClassName", "keepSameOptionsOrder", "onSelectOpen", "onSelectClose", "renderOption", "handleDefaultOptionChange", "preselectDefaultValue"];
|
|
10792
10792
|
var Select = function Select(_ref) {
|
|
10793
10793
|
var _ref$type = _ref.type,
|
|
10794
10794
|
type = _ref$type === void 0 ? "single" : _ref$type,
|
|
@@ -10822,7 +10822,7 @@
|
|
|
10822
10822
|
handleDefaultOptionChange = _ref.handleDefaultOptionChange,
|
|
10823
10823
|
_ref$preselectDefault = _ref.preselectDefaultValue,
|
|
10824
10824
|
preselectDefaultValue = _ref$preselectDefault === void 0 ? type === "single" : _ref$preselectDefault,
|
|
10825
|
-
prop = _objectWithoutProperties(_ref, _excluded$
|
|
10825
|
+
prop = _objectWithoutProperties(_ref, _excluded$D);
|
|
10826
10826
|
var childNode = React.useRef();
|
|
10827
10827
|
var elementRef = React.useRef(null);
|
|
10828
10828
|
var handleRef = useForkRef(childNode, elementRef);
|
|
@@ -11068,7 +11068,7 @@
|
|
|
11068
11068
|
});
|
|
11069
11069
|
StyledNavAsMoreTarget.displayName = "StyledNavAsMoreTarget";
|
|
11070
11070
|
|
|
11071
|
-
var _excluded$
|
|
11071
|
+
var _excluded$C = ["children", "active", "disabled", "className", "role"];
|
|
11072
11072
|
var Item = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
11073
11073
|
var children = _ref.children,
|
|
11074
11074
|
_ref$active = _ref.active,
|
|
@@ -11077,7 +11077,7 @@
|
|
|
11077
11077
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
11078
11078
|
className = _ref.className,
|
|
11079
11079
|
role = _ref.role,
|
|
11080
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11080
|
+
rest = _objectWithoutProperties(_ref, _excluded$C);
|
|
11081
11081
|
return /*#__PURE__*/React__default["default"].createElement(StyledNavListItem, _extends({
|
|
11082
11082
|
className: classNames__default["default"]("c-nav__item", {
|
|
11083
11083
|
"c-nav__item--active": active
|
|
@@ -11118,11 +11118,11 @@
|
|
|
11118
11118
|
});
|
|
11119
11119
|
StyledExpandSingle.displayName = "StyledExpandSingle";
|
|
11120
11120
|
|
|
11121
|
-
var _excluded$
|
|
11121
|
+
var _excluded$B = ["expanded"];
|
|
11122
11122
|
var ExpandSingle = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
11123
11123
|
var _ref$expanded = _ref.expanded,
|
|
11124
11124
|
expanded = _ref$expanded === void 0 ? false : _ref$expanded,
|
|
11125
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11125
|
+
rest = _objectWithoutProperties(_ref, _excluded$B);
|
|
11126
11126
|
return /*#__PURE__*/React__default["default"].createElement(StyledExpandSingle, _extends({
|
|
11127
11127
|
ref: ref,
|
|
11128
11128
|
viewBox: "0 0 24 24",
|
|
@@ -11412,7 +11412,7 @@
|
|
|
11412
11412
|
};
|
|
11413
11413
|
Nav.displayName = "Nav";
|
|
11414
11414
|
|
|
11415
|
-
var _excluded$
|
|
11415
|
+
var _excluded$A = ["children", "as", "disablePointerEvents"];
|
|
11416
11416
|
var InputAdornmentBase = styled__default["default"].div.withConfig({
|
|
11417
11417
|
displayName: "InputAdornment__InputAdornmentBase",
|
|
11418
11418
|
componentId: "sc-1xfjx1z-0"
|
|
@@ -11429,7 +11429,7 @@
|
|
|
11429
11429
|
var children = _ref.children,
|
|
11430
11430
|
as = _ref.as,
|
|
11431
11431
|
disablePointerEvents = _ref.disablePointerEvents,
|
|
11432
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11432
|
+
rest = _objectWithoutProperties(_ref, _excluded$A);
|
|
11433
11433
|
var Component = as || "div";
|
|
11434
11434
|
return /*#__PURE__*/React__default["default"].createElement(InputAdornmentBase, _extends({}, rest, {
|
|
11435
11435
|
as: Component,
|
|
@@ -11439,11 +11439,11 @@
|
|
|
11439
11439
|
});
|
|
11440
11440
|
InputAdornment.displayName = "InputAdornment";
|
|
11441
11441
|
|
|
11442
|
-
var _excluded$
|
|
11442
|
+
var _excluded$z = ["expanded"];
|
|
11443
11443
|
var ExpandAll = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
11444
11444
|
var _ref$expanded = _ref.expanded,
|
|
11445
11445
|
expanded = _ref$expanded === void 0 ? false : _ref$expanded,
|
|
11446
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11446
|
+
rest = _objectWithoutProperties(_ref, _excluded$z);
|
|
11447
11447
|
return /*#__PURE__*/React__default["default"].createElement(StyledExpand, _extends({
|
|
11448
11448
|
ref: ref,
|
|
11449
11449
|
viewBox: "0 0 24 24"
|
|
@@ -11561,14 +11561,14 @@
|
|
|
11561
11561
|
});
|
|
11562
11562
|
StyledTextarea.displayName = "StyledTextarea";
|
|
11563
11563
|
|
|
11564
|
-
var _excluded$
|
|
11564
|
+
var _excluded$y = ["className", "disabled", "invalid"];
|
|
11565
11565
|
var Textarea = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
11566
11566
|
var className = _ref.className,
|
|
11567
11567
|
_ref$disabled = _ref.disabled,
|
|
11568
11568
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
11569
11569
|
_ref$invalid = _ref.invalid,
|
|
11570
11570
|
invalid = _ref$invalid === void 0 ? false : _ref$invalid,
|
|
11571
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11571
|
+
rest = _objectWithoutProperties(_ref, _excluded$y);
|
|
11572
11572
|
return /*#__PURE__*/React__default["default"].createElement(StyledTextarea, _extends({}, rest, {
|
|
11573
11573
|
$invalid: invalid,
|
|
11574
11574
|
ref: ref,
|
|
@@ -11600,7 +11600,7 @@
|
|
|
11600
11600
|
function () {});
|
|
11601
11601
|
}
|
|
11602
11602
|
|
|
11603
|
-
var _excluded$
|
|
11603
|
+
var _excluded$x = ["children", "disableFocusLock", "disableScrollLock", "disableBackgroundClick", "disableBackgroundColor", "disableCloseOnEsc", "open", "onClose"];
|
|
11604
11604
|
var getHasTransition = function getHasTransition(children) {
|
|
11605
11605
|
return children.props ? Object.prototype.hasOwnProperty.call(children.props, "in") : false;
|
|
11606
11606
|
};
|
|
@@ -11619,7 +11619,7 @@
|
|
|
11619
11619
|
_ref$open = _ref.open,
|
|
11620
11620
|
defaultOpen = _ref$open === void 0 ? false : _ref$open,
|
|
11621
11621
|
onClose = _ref.onClose,
|
|
11622
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11622
|
+
rest = _objectWithoutProperties(_ref, _excluded$x);
|
|
11623
11623
|
var _useState = React.useState(defaultOpen),
|
|
11624
11624
|
_useState2 = _slicedToArray(_useState, 2),
|
|
11625
11625
|
open = _useState2[0],
|
|
@@ -11757,7 +11757,7 @@
|
|
|
11757
11757
|
});
|
|
11758
11758
|
StyledCssTransition.displayName = "StyledCssTransition";
|
|
11759
11759
|
|
|
11760
|
-
var _excluded$
|
|
11760
|
+
var _excluded$w = ["children", "onClose", "controls", "open", "animation", "position", "mode", "disableFocusLock", "disableScrollLock", "disableBackgroundColor", "bodyStyle", "bodyClassName", "disableBackgroundClick"];
|
|
11761
11761
|
var Sheet = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
11762
11762
|
var children = _ref.children,
|
|
11763
11763
|
onClose = _ref.onClose,
|
|
@@ -11781,7 +11781,7 @@
|
|
|
11781
11781
|
bodyClassName = _ref.bodyClassName,
|
|
11782
11782
|
_ref$disableBackgroun2 = _ref.disableBackgroundClick,
|
|
11783
11783
|
disableBackgroundClick = _ref$disableBackgroun2 === void 0 ? false : _ref$disableBackgroun2,
|
|
11784
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11784
|
+
rest = _objectWithoutProperties(_ref, _excluded$w);
|
|
11785
11785
|
var _useState = React.useState(defaultOpen),
|
|
11786
11786
|
_useState2 = _slicedToArray(_useState, 2),
|
|
11787
11787
|
open = _useState2[0],
|
|
@@ -11872,13 +11872,13 @@
|
|
|
11872
11872
|
});
|
|
11873
11873
|
StyledHeader.displayName = "StyledHeader";
|
|
11874
11874
|
|
|
11875
|
-
var _excluded$
|
|
11875
|
+
var _excluded$v = ["className", "size", "children"];
|
|
11876
11876
|
var Header = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
11877
11877
|
var className = _ref.className,
|
|
11878
11878
|
_ref$size = _ref.size,
|
|
11879
11879
|
size = _ref$size === void 0 ? "small" : _ref$size,
|
|
11880
11880
|
children = _ref.children,
|
|
11881
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11881
|
+
rest = _objectWithoutProperties(_ref, _excluded$v);
|
|
11882
11882
|
return /*#__PURE__*/React__default["default"].createElement(StyledHeader, _extends({
|
|
11883
11883
|
type: "paper-2",
|
|
11884
11884
|
className: classNames__default["default"]("c-header", className),
|
|
@@ -11894,7 +11894,7 @@
|
|
|
11894
11894
|
})(["white-space:pre-wrap;overflow-wrap:break-word;resize:none;"]);
|
|
11895
11895
|
StyledAutoResizeTextarea.displayName = "StyledAutoResizeTextarea";
|
|
11896
11896
|
|
|
11897
|
-
var _excluded$
|
|
11897
|
+
var _excluded$u = ["minRows", "maxRows", "lineHeight", "onChange", "className", "preventNewRowOnEnter", "cursorAtTextEnd", "onKeyDown", "value"];
|
|
11898
11898
|
var AutoResizeTextarea = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
11899
11899
|
var _ref$minRows = _ref.minRows,
|
|
11900
11900
|
minRows = _ref$minRows === void 0 ? 1 : _ref$minRows,
|
|
@@ -11910,7 +11910,7 @@
|
|
|
11910
11910
|
cursorAtTextEnd = _ref$cursorAtTextEnd === void 0 ? false : _ref$cursorAtTextEnd,
|
|
11911
11911
|
onKeyDown = _ref.onKeyDown,
|
|
11912
11912
|
value = _ref.value,
|
|
11913
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11913
|
+
rest = _objectWithoutProperties(_ref, _excluded$u);
|
|
11914
11914
|
var innerRef = React.useRef(null);
|
|
11915
11915
|
var _useState = React.useState(minRows),
|
|
11916
11916
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -12186,7 +12186,7 @@
|
|
|
12186
12186
|
});
|
|
12187
12187
|
StyledChoose.displayName = "StyledChoose";
|
|
12188
12188
|
|
|
12189
|
-
var _excluded$
|
|
12189
|
+
var _excluded$t = ["children", "disabled", "active", "className"];
|
|
12190
12190
|
/**
|
|
12191
12191
|
* Choose component
|
|
12192
12192
|
*/
|
|
@@ -12197,7 +12197,7 @@
|
|
|
12197
12197
|
_ref$active = _ref.active,
|
|
12198
12198
|
active = _ref$active === void 0 ? false : _ref$active,
|
|
12199
12199
|
className = _ref.className,
|
|
12200
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
12200
|
+
args = _objectWithoutProperties(_ref, _excluded$t);
|
|
12201
12201
|
return /*#__PURE__*/React__default["default"].createElement(StyledChoose, _extends({
|
|
12202
12202
|
disabled: disabled,
|
|
12203
12203
|
className: classNames__default["default"]("c-choose", className),
|
|
@@ -12293,21 +12293,21 @@
|
|
|
12293
12293
|
StyledLinkElements.displayName = "StyledLinkElements";
|
|
12294
12294
|
StyledLink.displayName = "StyledLink";
|
|
12295
12295
|
|
|
12296
|
-
var _excluded$
|
|
12296
|
+
var _excluded$s = ["children", "className"];
|
|
12297
12297
|
/**
|
|
12298
12298
|
* Back link component
|
|
12299
12299
|
*/
|
|
12300
12300
|
var BackLink = function BackLink(_ref) {
|
|
12301
12301
|
var children = _ref.children,
|
|
12302
12302
|
className = _ref.className,
|
|
12303
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
12303
|
+
args = _objectWithoutProperties(_ref, _excluded$s);
|
|
12304
12304
|
return /*#__PURE__*/React__default["default"].createElement(StyledBackLink, _extends({
|
|
12305
12305
|
className: classNames__default["default"]("c-back-link", className)
|
|
12306
12306
|
}, args), children);
|
|
12307
12307
|
};
|
|
12308
12308
|
BackLink.displayName = "BackLink";
|
|
12309
12309
|
|
|
12310
|
-
var _excluded$
|
|
12310
|
+
var _excluded$r = ["as", "children", "variant", "size", "disabled", "className"];
|
|
12311
12311
|
/**
|
|
12312
12312
|
* Link component
|
|
12313
12313
|
*/
|
|
@@ -12320,7 +12320,7 @@
|
|
|
12320
12320
|
_ref$disabled = _ref.disabled,
|
|
12321
12321
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
12322
12322
|
className = _ref.className,
|
|
12323
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
12323
|
+
args = _objectWithoutProperties(_ref, _excluded$r);
|
|
12324
12324
|
var Component = as || "a";
|
|
12325
12325
|
return /*#__PURE__*/React__default["default"].createElement(StyledLink, _extends({
|
|
12326
12326
|
ref: ref,
|
|
@@ -12431,7 +12431,7 @@
|
|
|
12431
12431
|
})(["padding:20px 30px;", " ", ""], FontStyle, BoxSizingStyle);
|
|
12432
12432
|
StyledDialogActions.displayName = "StyledDialogActions";
|
|
12433
12433
|
|
|
12434
|
-
var _excluded$
|
|
12434
|
+
var _excluded$q = ["children", "className", "disableDefaultHeading"];
|
|
12435
12435
|
// import { useDialogContext } from "./DialogContext";
|
|
12436
12436
|
|
|
12437
12437
|
var DialogTitle = function DialogTitle(_ref) {
|
|
@@ -12439,7 +12439,7 @@
|
|
|
12439
12439
|
className = _ref.className,
|
|
12440
12440
|
_ref$disableDefaultHe = _ref.disableDefaultHeading,
|
|
12441
12441
|
disableDefaultHeading = _ref$disableDefaultHe === void 0 ? false : _ref$disableDefaultHe,
|
|
12442
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12442
|
+
rest = _objectWithoutProperties(_ref, _excluded$q);
|
|
12443
12443
|
// useDialogContext();
|
|
12444
12444
|
|
|
12445
12445
|
return /*#__PURE__*/React__default["default"].createElement(StyledDialogTitle, _extends({
|
|
@@ -12448,13 +12448,13 @@
|
|
|
12448
12448
|
};
|
|
12449
12449
|
DialogTitle.displayName = "DialogTitle";
|
|
12450
12450
|
|
|
12451
|
-
var _excluded$
|
|
12451
|
+
var _excluded$p = ["className", "children"];
|
|
12452
12452
|
// import { useDialogContext } from "./DialogContext";
|
|
12453
12453
|
|
|
12454
12454
|
var DialogContent = function DialogContent(_ref) {
|
|
12455
12455
|
var className = _ref.className,
|
|
12456
12456
|
children = _ref.children,
|
|
12457
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12457
|
+
rest = _objectWithoutProperties(_ref, _excluded$p);
|
|
12458
12458
|
// useDialogContext();
|
|
12459
12459
|
|
|
12460
12460
|
return /*#__PURE__*/React__default["default"].createElement(StyledDialogContent, _extends({
|
|
@@ -12475,13 +12475,13 @@
|
|
|
12475
12475
|
};
|
|
12476
12476
|
DialogContentDivider.displayName = "DialogContentDivider";
|
|
12477
12477
|
|
|
12478
|
-
var _excluded$
|
|
12478
|
+
var _excluded$o = ["className", "children"];
|
|
12479
12479
|
// import { useDialogContext } from "./DialogContext";
|
|
12480
12480
|
|
|
12481
12481
|
var DialogActions = function DialogActions(_ref) {
|
|
12482
12482
|
var className = _ref.className,
|
|
12483
12483
|
children = _ref.children,
|
|
12484
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12484
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
12485
12485
|
// useDialogContext();
|
|
12486
12486
|
|
|
12487
12487
|
return /*#__PURE__*/React__default["default"].createElement(StyledDialogActions, _extends({
|
|
@@ -12735,7 +12735,7 @@
|
|
|
12735
12735
|
});
|
|
12736
12736
|
StyledPressed.displayName = "StyledPressed";
|
|
12737
12737
|
|
|
12738
|
-
var _excluded$
|
|
12738
|
+
var _excluded$n = ["children", "active", "className"];
|
|
12739
12739
|
/**
|
|
12740
12740
|
* Pressed wrapper for button component
|
|
12741
12741
|
* @deprecated
|
|
@@ -12745,7 +12745,7 @@
|
|
|
12745
12745
|
_ref$active = _ref.active,
|
|
12746
12746
|
active = _ref$active === void 0 ? false : _ref$active,
|
|
12747
12747
|
className = _ref.className,
|
|
12748
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
12748
|
+
args = _objectWithoutProperties(_ref, _excluded$n);
|
|
12749
12749
|
return /*#__PURE__*/React__default["default"].createElement(StyledPressed, _extends({
|
|
12750
12750
|
active: active,
|
|
12751
12751
|
ref: ref,
|
|
@@ -13198,7 +13198,7 @@
|
|
|
13198
13198
|
StyledToastMessage.displayName = "StyledToastMessage";
|
|
13199
13199
|
StyledCloseSmallIcon.displayName = "StyledCloseSmallIcon";
|
|
13200
13200
|
|
|
13201
|
-
var _excluded$
|
|
13201
|
+
var _excluded$m = ["text", "type", "onClose", "dismissible", "dropShadow", "timeout"];
|
|
13202
13202
|
var ToastMessage = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
13203
13203
|
var text = _ref.text,
|
|
13204
13204
|
type = _ref.type,
|
|
@@ -13209,7 +13209,7 @@
|
|
|
13209
13209
|
dropShadow = _ref$dropShadow === void 0 ? false : _ref$dropShadow,
|
|
13210
13210
|
_ref$timeout = _ref.timeout,
|
|
13211
13211
|
timeout = _ref$timeout === void 0 ? 0 : _ref$timeout,
|
|
13212
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
13212
|
+
rest = _objectWithoutProperties(_ref, _excluded$m);
|
|
13213
13213
|
var handleOnClose = React.useCallback(function () {
|
|
13214
13214
|
if (typeof onClose === "function") {
|
|
13215
13215
|
onClose();
|
|
@@ -13233,7 +13233,7 @@
|
|
|
13233
13233
|
});
|
|
13234
13234
|
ToastMessage.displayName = "ToastMessage";
|
|
13235
13235
|
|
|
13236
|
-
var _excluded$
|
|
13236
|
+
var _excluded$l = ["in", "children", "style", "timeout"];
|
|
13237
13237
|
var defaultStyle$1 = function defaultStyle(duration) {
|
|
13238
13238
|
return {
|
|
13239
13239
|
transition: "all ".concat(duration, "ms ease-in-out"),
|
|
@@ -13261,7 +13261,7 @@
|
|
|
13261
13261
|
style = _ref.style,
|
|
13262
13262
|
_ref$timeout = _ref.timeout,
|
|
13263
13263
|
timeout = _ref$timeout === void 0 ? 500 : _ref$timeout,
|
|
13264
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
13264
|
+
rest = _objectWithoutProperties(_ref, _excluded$l);
|
|
13265
13265
|
return /*#__PURE__*/React__default["default"].createElement(reactTransitionGroup.Transition, _extends({
|
|
13266
13266
|
appear: true,
|
|
13267
13267
|
in: inProp,
|
|
@@ -13276,7 +13276,7 @@
|
|
|
13276
13276
|
};
|
|
13277
13277
|
Fade.displayName = "Fade";
|
|
13278
13278
|
|
|
13279
|
-
var _excluded$
|
|
13279
|
+
var _excluded$k = ["in", "children", "style", "timeout", "initialDirection"];
|
|
13280
13280
|
var Slide = function Slide(_ref) {
|
|
13281
13281
|
var _ref$in = _ref.in,
|
|
13282
13282
|
inProp = _ref$in === void 0 ? false : _ref$in,
|
|
@@ -13286,7 +13286,7 @@
|
|
|
13286
13286
|
timeout = _ref$timeout === void 0 ? 300 : _ref$timeout,
|
|
13287
13287
|
_ref$initialDirection = _ref.initialDirection,
|
|
13288
13288
|
initialDirection = _ref$initialDirection === void 0 ? "left" : _ref$initialDirection,
|
|
13289
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
13289
|
+
rest = _objectWithoutProperties(_ref, _excluded$k);
|
|
13290
13290
|
var directionSign;
|
|
13291
13291
|
switch (initialDirection) {
|
|
13292
13292
|
case "right":
|
|
@@ -13339,12 +13339,12 @@
|
|
|
13339
13339
|
return props.$direction === "right" && styled.css(["&.c-slide-enter{position:absolute;transform:translateX(-100%);}&.c-slide-enter-active{transform:translateX(0%);transition:all 200ms ease;}&.c-slide-exit{position:absolute;}&.c-slide-exit-active{transform:translateX(100%);transition:all 200ms ease;}"]);
|
|
13340
13340
|
});
|
|
13341
13341
|
|
|
13342
|
-
var _excluded$
|
|
13342
|
+
var _excluded$j = ["children", "direction"];
|
|
13343
13343
|
var SlideLeftRightTransition = function SlideLeftRightTransition(_ref) {
|
|
13344
13344
|
var children = _ref.children,
|
|
13345
13345
|
_ref$direction = _ref.direction,
|
|
13346
13346
|
direction = _ref$direction === void 0 ? "left" : _ref$direction,
|
|
13347
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
13347
|
+
props = _objectWithoutProperties(_ref, _excluded$j);
|
|
13348
13348
|
return /*#__PURE__*/React__default["default"].createElement(reactTransitionGroup.CSSTransition, _extends({
|
|
13349
13349
|
timeout: 200,
|
|
13350
13350
|
classNames: "c-slide",
|
|
@@ -13387,7 +13387,7 @@
|
|
|
13387
13387
|
};
|
|
13388
13388
|
ResizeTransition.displayName = "ResizeTransition";
|
|
13389
13389
|
|
|
13390
|
-
var _excluded$
|
|
13390
|
+
var _excluded$i = ["in", "children", "style", "timeout"];
|
|
13391
13391
|
var defaultStyle = function defaultStyle(duration) {
|
|
13392
13392
|
return {
|
|
13393
13393
|
transition: "all ".concat(duration, "ms ease-in"),
|
|
@@ -13421,7 +13421,7 @@
|
|
|
13421
13421
|
style = _ref.style,
|
|
13422
13422
|
_ref$timeout = _ref.timeout,
|
|
13423
13423
|
timeout = _ref$timeout === void 0 ? 200 : _ref$timeout,
|
|
13424
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
13424
|
+
rest = _objectWithoutProperties(_ref, _excluded$i);
|
|
13425
13425
|
return /*#__PURE__*/React__default["default"].createElement(reactTransitionGroup.Transition, _extends({
|
|
13426
13426
|
appear: true,
|
|
13427
13427
|
in: inProp,
|
|
@@ -13495,7 +13495,7 @@
|
|
|
13495
13495
|
});
|
|
13496
13496
|
StyledValueButton.displayName = "StyledValueButton";
|
|
13497
13497
|
|
|
13498
|
-
var _excluded$
|
|
13498
|
+
var _excluded$h = ["active", "alwaysShowIcon", "icon", "label", "value"];
|
|
13499
13499
|
var ValueButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
13500
13500
|
var _ref$active = _ref.active,
|
|
13501
13501
|
active = _ref$active === void 0 ? false : _ref$active,
|
|
@@ -13504,7 +13504,7 @@
|
|
|
13504
13504
|
icon = _ref.icon,
|
|
13505
13505
|
label = _ref.label,
|
|
13506
13506
|
value = _ref.value,
|
|
13507
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
13507
|
+
args = _objectWithoutProperties(_ref, _excluded$h);
|
|
13508
13508
|
return /*#__PURE__*/React__default["default"].createElement(StyledValueButton, _extends({
|
|
13509
13509
|
className: "c-value-button"
|
|
13510
13510
|
}, args, {
|
|
@@ -13533,12 +13533,12 @@
|
|
|
13533
13533
|
})(["border:none;margin:0;padding:0;width:auto;overflow:visible;cursor:pointer;background:transparent;outline:none;color:inherit;font:inherit;line-height:inherit;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;&::-moz-focus-inner{border:0;padding:0;}"]);
|
|
13534
13534
|
StyledButton.displayName = "StyledButton";
|
|
13535
13535
|
|
|
13536
|
-
var _excluded$
|
|
13536
|
+
var _excluded$g = ["children", "type"];
|
|
13537
13537
|
var Trigger = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
13538
13538
|
var children = _ref.children,
|
|
13539
13539
|
_ref$type = _ref.type,
|
|
13540
13540
|
type = _ref$type === void 0 ? "button" : _ref$type,
|
|
13541
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
13541
|
+
rest = _objectWithoutProperties(_ref, _excluded$g);
|
|
13542
13542
|
return /*#__PURE__*/React__default["default"].createElement(StyledButton, _extends({
|
|
13543
13543
|
ref: ref,
|
|
13544
13544
|
role: "button",
|
|
@@ -13584,7 +13584,7 @@
|
|
|
13584
13584
|
});
|
|
13585
13585
|
StyledCaretIcon.displayName = "StyledCaretIcon";
|
|
13586
13586
|
|
|
13587
|
-
var _excluded$
|
|
13587
|
+
var _excluded$f = ["children", "type", "size", "invalid", "open", "endAdornment"];
|
|
13588
13588
|
var SelectTrigger = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
13589
13589
|
var children = _ref.children,
|
|
13590
13590
|
_ref$type = _ref.type,
|
|
@@ -13596,7 +13596,7 @@
|
|
|
13596
13596
|
_ref$open = _ref.open,
|
|
13597
13597
|
open = _ref$open === void 0 ? false : _ref$open,
|
|
13598
13598
|
endAdornment = _ref.endAdornment,
|
|
13599
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
13599
|
+
rest = _objectWithoutProperties(_ref, _excluded$f);
|
|
13600
13600
|
return /*#__PURE__*/React__default["default"].createElement(StyledSelectTrigger, _extends({
|
|
13601
13601
|
ref: ref,
|
|
13602
13602
|
role: "button",
|
|
@@ -13643,11 +13643,11 @@
|
|
|
13643
13643
|
});
|
|
13644
13644
|
StyledToggle.displayName = "StyledToggle";
|
|
13645
13645
|
|
|
13646
|
-
var _excluded$
|
|
13646
|
+
var _excluded$e = ["hovered", "className"];
|
|
13647
13647
|
var Toggle = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
13648
13648
|
var hovered = _ref.hovered,
|
|
13649
13649
|
className = _ref.className,
|
|
13650
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
13650
|
+
args = _objectWithoutProperties(_ref, _excluded$e);
|
|
13651
13651
|
return /*#__PURE__*/React__default["default"].createElement(StyledToggle, {
|
|
13652
13652
|
className: classNames__default["default"]("c-toggle", className),
|
|
13653
13653
|
$isHovered: hovered,
|
|
@@ -13800,7 +13800,7 @@
|
|
|
13800
13800
|
});
|
|
13801
13801
|
ChipCloseIcon.displayName = "ChipCloseIcon";
|
|
13802
13802
|
|
|
13803
|
-
var _excluded$
|
|
13803
|
+
var _excluded$d = ["leftAdornment", "label", "onClose", "size", "color", "backgroundColor", "closeClassName", "variant", "typographyProps"];
|
|
13804
13804
|
var Chip = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
13805
13805
|
var leftAdornment = _ref.leftAdornment,
|
|
13806
13806
|
label = _ref.label,
|
|
@@ -13812,7 +13812,7 @@
|
|
|
13812
13812
|
closeClassName = _ref.closeClassName,
|
|
13813
13813
|
variant = _ref.variant,
|
|
13814
13814
|
typographyProps = _ref.typographyProps,
|
|
13815
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
13815
|
+
rest = _objectWithoutProperties(_ref, _excluded$d);
|
|
13816
13816
|
var showClose = typeof onClose === "function";
|
|
13817
13817
|
var _variant = React.useMemo(function () {
|
|
13818
13818
|
if (typeof variant !== "undefined") {
|
|
@@ -13888,7 +13888,7 @@
|
|
|
13888
13888
|
return isFirst.current;
|
|
13889
13889
|
};
|
|
13890
13890
|
|
|
13891
|
-
var _excluded$
|
|
13891
|
+
var _excluded$c = ["options", "selected", "loading", "loadingText", "onChange", "placeholder", "handleEmptyAction", "disabled", "size", "invalid", "type", "renderChip", "forceCloseMenu", "renderOption", "limitChips", "hiddenNumberText", "inPortal", "inputWrapperClassName", "scrollWrapper", "onClose", "onClear"];
|
|
13892
13892
|
var ComboBox = function ComboBox(_ref) {
|
|
13893
13893
|
var _comboBoxRef$current2, _comboBoxRef$current3;
|
|
13894
13894
|
var _ref$options = _ref.options,
|
|
@@ -13921,7 +13921,7 @@
|
|
|
13921
13921
|
scrollWrapper = _ref.scrollWrapper,
|
|
13922
13922
|
onClose = _ref.onClose,
|
|
13923
13923
|
onClear = _ref.onClear,
|
|
13924
|
-
prop = _objectWithoutProperties(_ref, _excluded$
|
|
13924
|
+
prop = _objectWithoutProperties(_ref, _excluded$c);
|
|
13925
13925
|
var selectedName = React.useMemo(function () {
|
|
13926
13926
|
var value = "";
|
|
13927
13927
|
if (!selected) {
|
|
@@ -14135,7 +14135,7 @@
|
|
|
14135
14135
|
if (!open && limitChips > 0 && elements.length > limitChips) {
|
|
14136
14136
|
_hidden = elements.splice(limitChips, elements.length - limitChips).length;
|
|
14137
14137
|
}
|
|
14138
|
-
return /*#__PURE__*/React__default["default"].createElement(React.Fragment, null, elements, _hidden > 0 && /*#__PURE__*/React__default["default"].createElement(_StyledTypography, {
|
|
14138
|
+
return /*#__PURE__*/React__default["default"].createElement(React.Fragment, null, elements, _hidden > 0 && /*#__PURE__*/React__default["default"].createElement(_StyledTypography$1, {
|
|
14139
14139
|
variant: size === "small" ? "Caption 1" : size === "regular" ? "Body 2" : "Body 1"
|
|
14140
14140
|
}, typeof hiddenNumberText === "function" ? hiddenNumberText(_hidden) : "+".concat(_hidden)));
|
|
14141
14141
|
}
|
|
@@ -14187,7 +14187,7 @@
|
|
|
14187
14187
|
$autoSize: autoSize,
|
|
14188
14188
|
$open: open,
|
|
14189
14189
|
ref: chipWrapper
|
|
14190
|
-
}, startAdornment, /*#__PURE__*/React__default["default"].createElement(StyledInput$
|
|
14190
|
+
}, startAdornment, /*#__PURE__*/React__default["default"].createElement(StyledInput$2, {
|
|
14191
14191
|
className: "c-combo-box-input",
|
|
14192
14192
|
onBlur: handleBlur,
|
|
14193
14193
|
onFocus: onOpen,
|
|
@@ -14275,7 +14275,7 @@
|
|
|
14275
14275
|
}, function (p) {
|
|
14276
14276
|
return p.$_css2;
|
|
14277
14277
|
});
|
|
14278
|
-
var _StyledTypography = styled__default["default"](Typography).withConfig({
|
|
14278
|
+
var _StyledTypography$1 = styled__default["default"](Typography).withConfig({
|
|
14279
14279
|
displayName: "ComboBox___StyledTypography",
|
|
14280
14280
|
componentId: "sc-uvsz9l-1"
|
|
14281
14281
|
})(["display:flex;flex-shrink:0;align-items:center;"]);
|
|
@@ -14310,11 +14310,11 @@
|
|
|
14310
14310
|
})(["display:flex;justify-content:center;gap:12px;align-items:center;height:32px;padding:4px 16px 4px 4px;position:relative;background:none;border:none;cursor:pointer;&:before{content:\"\";display:block;height:2px;width:0%;position:absolute;left:16px;background:var(--color-primary);transition:ease 0.3s all;border-radius:30px;opacity:0;}&:hover{", "{color:var(--page-paper-main);}&:before{height:32px;width:100%;left:0;opacity:1;}", "{fill:var(--page-paper-main);transform:rotate(90deg);transition:ease 0.3s;}}"], StyledText, StyledAddCrossIcon);
|
|
14311
14311
|
StyledAddToListButton.displayName = "StyledAddToListButton";
|
|
14312
14312
|
|
|
14313
|
-
var _excluded$
|
|
14313
|
+
var _excluded$b = ["text", "className"];
|
|
14314
14314
|
var AddToListButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
14315
14315
|
var text = _ref.text,
|
|
14316
14316
|
className = _ref.className,
|
|
14317
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
14317
|
+
rest = _objectWithoutProperties(_ref, _excluded$b);
|
|
14318
14318
|
return /*#__PURE__*/React__default["default"].createElement(StyledAddToListButton, _extends({
|
|
14319
14319
|
ref: ref,
|
|
14320
14320
|
className: classNames__default["default"]("c--add-to-list-btn", className)
|
|
@@ -14497,11 +14497,11 @@
|
|
|
14497
14497
|
};
|
|
14498
14498
|
ProgressRing.displayName = "ProgressRing";
|
|
14499
14499
|
|
|
14500
|
-
var _excluded$
|
|
14500
|
+
var _excluded$a = ["radius"];
|
|
14501
14501
|
var ProgressPie = function ProgressPie(_ref) {
|
|
14502
14502
|
var _ref$radius = _ref.radius,
|
|
14503
14503
|
radius = _ref$radius === void 0 ? 20 : _ref$radius,
|
|
14504
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
14504
|
+
rest = _objectWithoutProperties(_ref, _excluded$a);
|
|
14505
14505
|
return /*#__PURE__*/React__default["default"].createElement(ProgressRing, _extends({}, rest, {
|
|
14506
14506
|
stroke: radius,
|
|
14507
14507
|
radius: radius
|
|
@@ -14825,7 +14825,7 @@
|
|
|
14825
14825
|
ThumbsDownIcon.displayName = "ThumbsDownIcon";
|
|
14826
14826
|
var ThumbsDownIcon$1 = ThumbsDownIcon;
|
|
14827
14827
|
|
|
14828
|
-
var _excluded$
|
|
14828
|
+
var _excluded$9 = ["invalid", "required", "size", "children", "className", "weight"];
|
|
14829
14829
|
var Label = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
14830
14830
|
var _ref$invalid = _ref.invalid,
|
|
14831
14831
|
invalid = _ref$invalid === void 0 ? false : _ref$invalid,
|
|
@@ -14837,7 +14837,7 @@
|
|
|
14837
14837
|
className = _ref.className,
|
|
14838
14838
|
_ref$weight = _ref.weight,
|
|
14839
14839
|
weight = _ref$weight === void 0 ? "bold" : _ref$weight,
|
|
14840
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
14840
|
+
props = _objectWithoutProperties(_ref, _excluded$9);
|
|
14841
14841
|
var color = invalid ? "alert" : "primary";
|
|
14842
14842
|
var variant = size === "regular" ? "Body 2" : "Caption 1";
|
|
14843
14843
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
@@ -14869,7 +14869,7 @@
|
|
|
14869
14869
|
return $disabled && styled.css(["visibility:visible;"]);
|
|
14870
14870
|
});
|
|
14871
14871
|
StyledSpan.displayName = "StyledSpan";
|
|
14872
|
-
var StyledInput = styled__default["default"](Typography).withConfig({
|
|
14872
|
+
var StyledInput$1 = styled__default["default"](Typography).withConfig({
|
|
14873
14873
|
displayName: "Styles__StyledInput",
|
|
14874
14874
|
componentId: "sc-1wapx2a-2"
|
|
14875
14875
|
})(["", " background-color:inherit;padding-left:4px;padding-right:4px;padding-top:1px;padding-bottom:1px;text-overflow:ellipsis;&:focus-whitin{text-overflow:clip;}outline-width:0px;outline:none;&:disabled{display:none;}"], {
|
|
@@ -14894,9 +14894,9 @@
|
|
|
14894
14894
|
"whiteSpace": "nowrap",
|
|
14895
14895
|
"width": "100%"
|
|
14896
14896
|
});
|
|
14897
|
-
StyledInput.displayName = "StyledInput";
|
|
14897
|
+
StyledInput$1.displayName = "StyledInput";
|
|
14898
14898
|
|
|
14899
|
-
var _excluded$
|
|
14899
|
+
var _excluded$8 = ["className", "variant", "weight", "disabled", "inputProps", "wrapRef"];
|
|
14900
14900
|
var EditableContent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
14901
14901
|
var className = _ref.className,
|
|
14902
14902
|
_ref$variant = _ref.variant,
|
|
@@ -14906,7 +14906,7 @@
|
|
|
14906
14906
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
14907
14907
|
inputProps = _ref.inputProps,
|
|
14908
14908
|
wrapRef = _ref.wrapRef,
|
|
14909
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
14909
|
+
props = _objectWithoutProperties(_ref, _excluded$8);
|
|
14910
14910
|
var intInputRef = React.useRef(null);
|
|
14911
14911
|
var handleRef = useForkRef(ref, intInputRef);
|
|
14912
14912
|
var handleBlur = React.useCallback(function (evt) {
|
|
@@ -14923,7 +14923,7 @@
|
|
|
14923
14923
|
forwardedAs: "span",
|
|
14924
14924
|
weight: weight,
|
|
14925
14925
|
$disabled: disabled
|
|
14926
|
-
}, inputProps === null || inputProps === void 0 ? void 0 : inputProps.value), /*#__PURE__*/React__default["default"].createElement(StyledInput, _extends({}, inputProps, {
|
|
14926
|
+
}, inputProps === null || inputProps === void 0 ? void 0 : inputProps.value), /*#__PURE__*/React__default["default"].createElement(StyledInput$1, _extends({}, inputProps, {
|
|
14927
14927
|
ref: handleRef,
|
|
14928
14928
|
forwardedAs: "input",
|
|
14929
14929
|
variant: variant,
|
|
@@ -14935,13 +14935,13 @@
|
|
|
14935
14935
|
});
|
|
14936
14936
|
EditableContent.displayName = "EditableContent";
|
|
14937
14937
|
|
|
14938
|
-
var _excluded$
|
|
14938
|
+
var _excluded$7 = ["onSave", "onCancel", "value", "inputProps"];
|
|
14939
14939
|
var EditableText = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
14940
14940
|
var onSave = _ref.onSave,
|
|
14941
14941
|
onCancel = _ref.onCancel,
|
|
14942
14942
|
value = _ref.value,
|
|
14943
14943
|
inputProps = _ref.inputProps,
|
|
14944
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
14944
|
+
props = _objectWithoutProperties(_ref, _excluded$7);
|
|
14945
14945
|
var _useState = React.useState(value),
|
|
14946
14946
|
_useState2 = _slicedToArray(_useState, 2),
|
|
14947
14947
|
currentValue = _useState2[0],
|
|
@@ -14999,11 +14999,11 @@
|
|
|
14999
14999
|
});
|
|
15000
15000
|
EditableText.displayName = "EditableText";
|
|
15001
15001
|
|
|
15002
|
-
var _excluded$
|
|
15002
|
+
var _excluded$6 = ["withDocuments"];
|
|
15003
15003
|
var FolderIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, svgRef) {
|
|
15004
15004
|
var _ref$withDocuments = _ref.withDocuments,
|
|
15005
15005
|
withDocuments = _ref$withDocuments === void 0 ? false : _ref$withDocuments,
|
|
15006
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
15006
|
+
props = _objectWithoutProperties(_ref, _excluded$6);
|
|
15007
15007
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
15008
15008
|
width: 100,
|
|
15009
15009
|
height: 100,
|
|
@@ -15146,7 +15146,7 @@
|
|
|
15146
15146
|
return $renderAs === "list" && styled.css(["justify-self:flex-end;"]);
|
|
15147
15147
|
});
|
|
15148
15148
|
|
|
15149
|
-
var _excluded$
|
|
15149
|
+
var _excluded$5 = ["children", "gap", "renderAs"];
|
|
15150
15150
|
var EntityGroupContext = /*#__PURE__*/React__default["default"].createContext({
|
|
15151
15151
|
renderAs: "grid"
|
|
15152
15152
|
});
|
|
@@ -15155,7 +15155,7 @@
|
|
|
15155
15155
|
gap = _ref.gap,
|
|
15156
15156
|
_ref$renderAs = _ref.renderAs,
|
|
15157
15157
|
renderAs = _ref$renderAs === void 0 ? "grid" : _ref$renderAs,
|
|
15158
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
15158
|
+
rest = _objectWithoutProperties(_ref, _excluded$5);
|
|
15159
15159
|
return /*#__PURE__*/React__default["default"].createElement(EntityGroupContext.Provider, {
|
|
15160
15160
|
value: {
|
|
15161
15161
|
renderAs: renderAs
|
|
@@ -15167,14 +15167,14 @@
|
|
|
15167
15167
|
};
|
|
15168
15168
|
EntityGroup.displayName = "EntityGroup";
|
|
15169
15169
|
|
|
15170
|
-
var _excluded$
|
|
15170
|
+
var _excluded$4 = ["children", "isCollection", "background", "className", "as"];
|
|
15171
15171
|
var EntityCard = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
15172
15172
|
var children = _ref.children,
|
|
15173
15173
|
isCollection = _ref.isCollection,
|
|
15174
15174
|
background = _ref.background,
|
|
15175
15175
|
className = _ref.className,
|
|
15176
15176
|
as = _ref.as,
|
|
15177
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
15177
|
+
rest = _objectWithoutProperties(_ref, _excluded$4);
|
|
15178
15178
|
var _useContext = React.useContext(EntityGroupContext),
|
|
15179
15179
|
renderAs = _useContext.renderAs;
|
|
15180
15180
|
var classSuffix = "c-entity-card-".concat(renderAs);
|
|
@@ -15193,13 +15193,13 @@
|
|
|
15193
15193
|
});
|
|
15194
15194
|
EntityCard.displayName = "EntityCard";
|
|
15195
15195
|
|
|
15196
|
-
var _excluded = ["listOrder", "listWidth", "visibleFromBreakpoint", "className"];
|
|
15196
|
+
var _excluded$3 = ["listOrder", "listWidth", "visibleFromBreakpoint", "className"];
|
|
15197
15197
|
var EntityProperty = function EntityProperty(_ref) {
|
|
15198
15198
|
var listOrder = _ref.listOrder,
|
|
15199
15199
|
listWidth = _ref.listWidth,
|
|
15200
15200
|
visibleFromBreakpoint = _ref.visibleFromBreakpoint,
|
|
15201
15201
|
className = _ref.className,
|
|
15202
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
15202
|
+
props = _objectWithoutProperties(_ref, _excluded$3);
|
|
15203
15203
|
var _useContext = React.useContext(EntityGroupContext),
|
|
15204
15204
|
renderAs = _useContext.renderAs;
|
|
15205
15205
|
var classSuffix = "c-entity-property-".concat(renderAs);
|
|
@@ -15754,6 +15754,523 @@
|
|
|
15754
15754
|
}, value && value > 100 ? 99 + "+" : value) : null;
|
|
15755
15755
|
};
|
|
15756
15756
|
|
|
15757
|
+
var AvatarGroupsStyles = styled__default["default"].div.withConfig({
|
|
15758
|
+
displayName: "Styles__AvatarGroupsStyles",
|
|
15759
|
+
componentId: "sc-1padv46-0"
|
|
15760
|
+
})(["display:flex;cursor:pointer;width:fit-content;", ""], FontStyle);
|
|
15761
|
+
var LengthCountStyles = styled__default["default"].div.withConfig({
|
|
15762
|
+
displayName: "Styles__LengthCountStyles",
|
|
15763
|
+
componentId: "sc-1padv46-1"
|
|
15764
|
+
})(["align-items:center;background-color:var(--color-theme-400);block-size:", ";border-radius:50%;display:flex;inline-size:", ";justify-content:center;outline:1px solid var(--page-paper-main);z-index:99;"], function (props) {
|
|
15765
|
+
return props.size + "px";
|
|
15766
|
+
}, function (props) {
|
|
15767
|
+
return props.size + "px";
|
|
15768
|
+
});
|
|
15769
|
+
|
|
15770
|
+
var AvatarGroup = function AvatarGroup(_ref) {
|
|
15771
|
+
var limit = _ref.limit,
|
|
15772
|
+
_ref$size = _ref.size,
|
|
15773
|
+
size = _ref$size === void 0 ? 34 : _ref$size,
|
|
15774
|
+
children = _ref.children;
|
|
15775
|
+
var _children = React.Children.toArray(children).slice(0, limit);
|
|
15776
|
+
return /*#__PURE__*/React__default["default"].createElement(AvatarGroupsStyles, null, _children.map(function (child) {
|
|
15777
|
+
var item = child;
|
|
15778
|
+
return /*#__PURE__*/React.cloneElement(item, _objectSpread2(_objectSpread2({}, item.props), {}, {
|
|
15779
|
+
size: size,
|
|
15780
|
+
style: {
|
|
15781
|
+
marginInlineStart: "-8px",
|
|
15782
|
+
outline: "1px solid var(--page-paper-main)"
|
|
15783
|
+
}
|
|
15784
|
+
}));
|
|
15785
|
+
}), limit >= React.Children.count(children) ? null : /*#__PURE__*/React__default["default"].createElement(LengthCountStyles, {
|
|
15786
|
+
size: size,
|
|
15787
|
+
style: {
|
|
15788
|
+
marginInlineStart: "-8px"
|
|
15789
|
+
}
|
|
15790
|
+
}, /*#__PURE__*/React__default["default"].createElement(Typography, {
|
|
15791
|
+
variant: "Caption 1",
|
|
15792
|
+
weight: "medium"
|
|
15793
|
+
}, "+", React.Children.count(children) - limit)));
|
|
15794
|
+
};
|
|
15795
|
+
|
|
15796
|
+
var StyledCommandPallete = styled__default["default"].div.withConfig({
|
|
15797
|
+
displayName: "CommandPalletestyles__StyledCommandPallete",
|
|
15798
|
+
componentId: "sc-16m145d-0"
|
|
15799
|
+
})(["", " background-color:var(--page-paper-main);border-radius:10px;box-sizing:border-box;max-width:600px;mark{background-color:var(--color-primary-300);color:var(--color-theme-900);}"], FontStyle);
|
|
15800
|
+
var StyledCommandPalleteWrapper = styled__default["default"].div.withConfig({
|
|
15801
|
+
displayName: "CommandPalletestyles__StyledCommandPalleteWrapper",
|
|
15802
|
+
componentId: "sc-16m145d-1"
|
|
15803
|
+
})(["overflow-x:hidden;overflow-y:auto;max-height:450px;&:not(:empty){padding-bottom:8px;padding-top:8px;}"]);
|
|
15804
|
+
var StyledCommandPalleteHeader = styled__default["default"].div.withConfig({
|
|
15805
|
+
displayName: "CommandPalletestyles__StyledCommandPalleteHeader",
|
|
15806
|
+
componentId: "sc-16m145d-2"
|
|
15807
|
+
})(["align-items:center;display:flex;padding-bottom:12px;padding-left:16px;padding-right:16px;padding-top:12px;border-bottom:1px solid var(--color-theme-400);"]);
|
|
15808
|
+
var StyledSearchIcon = styled__default["default"].div.withConfig({
|
|
15809
|
+
displayName: "CommandPalletestyles__StyledSearchIcon",
|
|
15810
|
+
componentId: "sc-16m145d-3"
|
|
15811
|
+
})(["margin-right:8px;svg{vertical-align:middle;}"]);
|
|
15812
|
+
var StyledInput = styled__default["default"].input.withConfig({
|
|
15813
|
+
displayName: "CommandPalletestyles__StyledInput",
|
|
15814
|
+
componentId: "sc-16m145d-4"
|
|
15815
|
+
})(["all:unset;caret-color:var(--color-primary);color:var(--color-theme-900);width:100%;", "{font-size:32px;font-weight:300;letter-spacing:0.5px;line-height:44px;}::-webkit-outer-spin-button,::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type=\"number\"]{-moz-appearance:textfield;}::placeholder{color:var(--color-theme-transparent-500);}::selection{background:var(--color-primary-300);}"], screen.sm);
|
|
15816
|
+
var StyledParameter = styled__default["default"].span.withConfig({
|
|
15817
|
+
displayName: "CommandPalletestyles__StyledParameter",
|
|
15818
|
+
componentId: "sc-16m145d-5"
|
|
15819
|
+
})(["color:var(--color-theme-transparent-500);margin-right:8px;", "{font-size:32px;font-weight:300;letter-spacing:0.5px;line-height:44px;}"], screen.sm);
|
|
15820
|
+
var StyledActionWrapper = styled__default["default"].div.withConfig({
|
|
15821
|
+
displayName: "CommandPalletestyles__StyledActionWrapper",
|
|
15822
|
+
componentId: "sc-16m145d-6"
|
|
15823
|
+
})(["align-items:center;display:flex;gap:8px;"]);
|
|
15824
|
+
var StyledIcon = styled__default["default"].div.withConfig({
|
|
15825
|
+
displayName: "CommandPalletestyles__StyledIcon",
|
|
15826
|
+
componentId: "sc-16m145d-7"
|
|
15827
|
+
})(["margin-right:8px;svg{vertical-align:middle;}"]);
|
|
15828
|
+
var StyledCommandPalleteList = styled__default["default"].ul.withConfig({
|
|
15829
|
+
displayName: "CommandPalletestyles__StyledCommandPalleteList",
|
|
15830
|
+
componentId: "sc-16m145d-8"
|
|
15831
|
+
})(["list-style-type:none;margin:0;padding:0;overflow:hidden;&:not(:first-child){border-top:1px solid var(--color-theme-400);}"]);
|
|
15832
|
+
var StyledHeading = styled__default["default"].p.withConfig({
|
|
15833
|
+
displayName: "CommandPalletestyles__StyledHeading",
|
|
15834
|
+
componentId: "sc-16m145d-9"
|
|
15835
|
+
})(["font-size:12px;margin-top:12px;margin-bottom:4px;font-weight:bold;padding-left:18px;letter-spacing:0.5px;color:var(--color-theme-600);"]);
|
|
15836
|
+
|
|
15837
|
+
// prettier-ignore
|
|
15838
|
+
var StyledCommandPalleteItem = styled__default["default"].li.withConfig({
|
|
15839
|
+
displayName: "CommandPalletestyles__StyledCommandPalleteItem",
|
|
15840
|
+
componentId: "sc-16m145d-10"
|
|
15841
|
+
})(["align-items:center;cursor:pointer;display:flex;padding-bottom:12px;padding-left:18px;padding-right:18px;padding-top:12px;position:relative;background-color:", ";&:focus{background-color:var(--color-theme-200);}&::before{display:", ";background-color:var(--color-primary);content:\"\";height:100%;left:0;position:absolute;width:2px;}&:focus{outline:none;}"], function (_ref) {
|
|
15842
|
+
var $selected = _ref.$selected;
|
|
15843
|
+
return $selected ? "var(--color-theme-200)" : "transparent";
|
|
15844
|
+
}, function (_ref2) {
|
|
15845
|
+
var $selected = _ref2.$selected;
|
|
15846
|
+
return $selected ? "block" : "none";
|
|
15847
|
+
});
|
|
15848
|
+
var StyledCommandPalleteCommandItem = styled__default["default"](StyledCommandPalleteItem).withConfig({
|
|
15849
|
+
displayName: "CommandPalletestyles__StyledCommandPalleteCommandItem",
|
|
15850
|
+
componentId: "sc-16m145d-11"
|
|
15851
|
+
})(["user-select:none;"]);
|
|
15852
|
+
var StyledSpinnerLoader = styled__default["default"](SpinnerLoader).withConfig({
|
|
15853
|
+
displayName: "CommandPalletestyles__StyledSpinnerLoader",
|
|
15854
|
+
componentId: "sc-16m145d-12"
|
|
15855
|
+
})(["margin-right:4px;"]);
|
|
15856
|
+
|
|
15857
|
+
var ModeContext = /*#__PURE__*/React.createContext({
|
|
15858
|
+
mode: "default",
|
|
15859
|
+
setMode: function setMode() {
|
|
15860
|
+
return null;
|
|
15861
|
+
}
|
|
15862
|
+
});
|
|
15863
|
+
var ModeContextProvider = ModeContext.Provider;
|
|
15864
|
+
var useModeContext = function useModeContext() {
|
|
15865
|
+
return React.useContext(ModeContext);
|
|
15866
|
+
};
|
|
15867
|
+
|
|
15868
|
+
var SelectedContext = /*#__PURE__*/React.createContext({
|
|
15869
|
+
selected: 0,
|
|
15870
|
+
setSelected: function setSelected() {
|
|
15871
|
+
return null;
|
|
15872
|
+
}
|
|
15873
|
+
});
|
|
15874
|
+
var SelectedContextProvider = SelectedContext.Provider;
|
|
15875
|
+
var useSelectedContext = function useSelectedContext() {
|
|
15876
|
+
return React.useContext(SelectedContext);
|
|
15877
|
+
};
|
|
15878
|
+
|
|
15879
|
+
var SearchContext = /*#__PURE__*/React.createContext({
|
|
15880
|
+
search: "",
|
|
15881
|
+
onChangeSearch: function onChangeSearch() {
|
|
15882
|
+
return null;
|
|
15883
|
+
}
|
|
15884
|
+
});
|
|
15885
|
+
var SearchContextProvider = SearchContext.Provider;
|
|
15886
|
+
var useSearchContext = function useSearchContext() {
|
|
15887
|
+
return React.useContext(SearchContext);
|
|
15888
|
+
};
|
|
15889
|
+
|
|
15890
|
+
var _excluded$2 = ["title", "renderIcon", "className", "index"];
|
|
15891
|
+
var CommandPalleteCommandItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
15892
|
+
var title = _ref.title,
|
|
15893
|
+
renderIcon = _ref.renderIcon,
|
|
15894
|
+
className = _ref.className,
|
|
15895
|
+
index = _ref.index,
|
|
15896
|
+
rest = _objectWithoutProperties(_ref, _excluded$2);
|
|
15897
|
+
var icon = renderIcon();
|
|
15898
|
+
var _useSelectedContext = useSelectedContext(),
|
|
15899
|
+
selected = _useSelectedContext.selected,
|
|
15900
|
+
setSelected = _useSelectedContext.setSelected;
|
|
15901
|
+
var onMouseEnter = function onMouseEnter() {
|
|
15902
|
+
setSelected(index);
|
|
15903
|
+
};
|
|
15904
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledCommandPalleteCommandItem, _extends({}, rest, {
|
|
15905
|
+
ref: ref,
|
|
15906
|
+
className: classNames__default["default"]("cp-item cp-command", className),
|
|
15907
|
+
tabIndex: 1,
|
|
15908
|
+
"aria-selected": selected === index,
|
|
15909
|
+
onMouseEnter: onMouseEnter,
|
|
15910
|
+
$selected: index === selected
|
|
15911
|
+
}), /*#__PURE__*/React__default["default"].createElement(StyledIcon, null, icon), /*#__PURE__*/React__default["default"].createElement(_StyledTypography, {
|
|
15912
|
+
overflow: "truncate",
|
|
15913
|
+
whitespace: "no-wrap",
|
|
15914
|
+
variant: "Body 1",
|
|
15915
|
+
color: "primary"
|
|
15916
|
+
}, title), /*#__PURE__*/React__default["default"].createElement(ArrowRightIcon$1, null));
|
|
15917
|
+
});
|
|
15918
|
+
CommandPalleteCommandItem.displayName = "CommandPalleteCommandItem";
|
|
15919
|
+
var _StyledTypography = styled__default["default"](Typography).withConfig({
|
|
15920
|
+
displayName: "CommandPalleteCommandItem___StyledTypography",
|
|
15921
|
+
componentId: "sc-12i2mxl-0"
|
|
15922
|
+
})(["flex:1;"]);
|
|
15923
|
+
|
|
15924
|
+
var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
|
|
15925
|
+
var CommandPalleteHeader = function CommandPalleteHeader(_ref) {
|
|
15926
|
+
var handleChange = _ref.handleChange,
|
|
15927
|
+
_ref$loading = _ref.loading,
|
|
15928
|
+
loading = _ref$loading === void 0 ? false : _ref$loading,
|
|
15929
|
+
commandsLength = _ref.commandsLength,
|
|
15930
|
+
itemsLength = _ref.itemsLength;
|
|
15931
|
+
var inputRef = React.useRef(null);
|
|
15932
|
+
var _useModeContext = useModeContext(),
|
|
15933
|
+
mode = _useModeContext.mode,
|
|
15934
|
+
setMode = _useModeContext.setMode;
|
|
15935
|
+
var _useSelectedContext = useSelectedContext(),
|
|
15936
|
+
setSelected = _useSelectedContext.setSelected,
|
|
15937
|
+
selected = _useSelectedContext.selected;
|
|
15938
|
+
var _useSearchContext = useSearchContext(),
|
|
15939
|
+
search = _useSearchContext.search,
|
|
15940
|
+
onChangeSearch = _useSearchContext.onChangeSearch;
|
|
15941
|
+
var focusInput = function focusInput() {
|
|
15942
|
+
if (inputRef && inputRef.current) {
|
|
15943
|
+
inputRef.current.focus();
|
|
15944
|
+
}
|
|
15945
|
+
};
|
|
15946
|
+
var clearInput = function clearInput() {
|
|
15947
|
+
if (inputRef && inputRef.current) {
|
|
15948
|
+
onChangeSearch("");
|
|
15949
|
+
}
|
|
15950
|
+
};
|
|
15951
|
+
var checkIfNumber = function checkIfNumber(event) {
|
|
15952
|
+
var regex = new RegExp(/(^\d*$)|(Backspace|Tab|Delete|ArrowLeft|ArrowRight)/);
|
|
15953
|
+
return !event.key.match(regex) && event.preventDefault();
|
|
15954
|
+
};
|
|
15955
|
+
React.useEffect(function () {
|
|
15956
|
+
if (search.length > 0) {
|
|
15957
|
+
if (itemsLength > commandsLength) {
|
|
15958
|
+
setSelected(commandsLength);
|
|
15959
|
+
} else {
|
|
15960
|
+
setSelected(0);
|
|
15961
|
+
}
|
|
15962
|
+
}
|
|
15963
|
+
}, [search, commandsLength, itemsLength, setSelected]);
|
|
15964
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledCommandPalleteHeader, {
|
|
15965
|
+
className: "cp-header"
|
|
15966
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledSearchIcon, null, /*#__PURE__*/React__default["default"].createElement(SearchLargeIcon$1, null)), mode === "id" ? /*#__PURE__*/React__default["default"].createElement(StyledParameter, null, "ID#:") : null, /*#__PURE__*/React__default["default"].createElement(StyledInput, {
|
|
15967
|
+
ref: inputRef,
|
|
15968
|
+
autoFocus: true,
|
|
15969
|
+
placeholder: mode === "id" ? "22" : "Search or jump to",
|
|
15970
|
+
type: mode === "id" ? "number" : "text",
|
|
15971
|
+
"aria-autocomplete": "list",
|
|
15972
|
+
autoCapitalize: "none",
|
|
15973
|
+
autoComplete: "off",
|
|
15974
|
+
autoCorrect: "off",
|
|
15975
|
+
role: "combobox",
|
|
15976
|
+
spellCheck: false,
|
|
15977
|
+
value: search,
|
|
15978
|
+
onKeyDown: function onKeyDown(e) {
|
|
15979
|
+
if (e.key === "Backspace" && mode !== "default" && search.length === 0) {
|
|
15980
|
+
setMode("default");
|
|
15981
|
+
}
|
|
15982
|
+
if (mode === "id" && !isChrome) {
|
|
15983
|
+
checkIfNumber(e);
|
|
15984
|
+
}
|
|
15985
|
+
if (e.key === "Enter") {
|
|
15986
|
+
var selectedItem = document.querySelectorAll(".cp-item")[selected];
|
|
15987
|
+
if (itemsLength > 0) {
|
|
15988
|
+
selectedItem.click();
|
|
15989
|
+
}
|
|
15990
|
+
}
|
|
15991
|
+
},
|
|
15992
|
+
onChange: function onChange(e) {
|
|
15993
|
+
var inputText = e.target.value;
|
|
15994
|
+
if (inputText.startsWith("#")) {
|
|
15995
|
+
setMode("id");
|
|
15996
|
+
clearInput();
|
|
15997
|
+
}
|
|
15998
|
+
handleChange(e);
|
|
15999
|
+
},
|
|
16000
|
+
onPaste: function onPaste(e) {
|
|
16001
|
+
var pastedText = e.clipboardData.getData("text");
|
|
16002
|
+
if (pastedText.startsWith("#")) {
|
|
16003
|
+
setMode("id");
|
|
16004
|
+
!isChrome && onChangeSearch(pastedText.slice(1));
|
|
16005
|
+
}
|
|
16006
|
+
}
|
|
16007
|
+
}), /*#__PURE__*/React__default["default"].createElement(StyledActionWrapper, null, loading ? /*#__PURE__*/React__default["default"].createElement(StyledSpinnerLoader, {
|
|
16008
|
+
"aria-busy": true,
|
|
16009
|
+
"aria-label": "Loading...",
|
|
16010
|
+
"aria-valuemax": 100,
|
|
16011
|
+
"aria-valuemin": 0,
|
|
16012
|
+
role: "progressbar"
|
|
16013
|
+
}) : null, mode !== "id" && search.length === 0 ? /*#__PURE__*/React__default["default"].createElement(Tooltip, {
|
|
16014
|
+
title: "Search by ID",
|
|
16015
|
+
placement: "top"
|
|
16016
|
+
}, /*#__PURE__*/React__default["default"].createElement(IconButton, {
|
|
16017
|
+
onKeyPress: function onKeyPress(e) {
|
|
16018
|
+
if (e.key === "Enter") {
|
|
16019
|
+
setMode("id");
|
|
16020
|
+
clearInput();
|
|
16021
|
+
focusInput();
|
|
16022
|
+
}
|
|
16023
|
+
},
|
|
16024
|
+
onClick: function onClick() {
|
|
16025
|
+
setMode("id");
|
|
16026
|
+
clearInput();
|
|
16027
|
+
focusInput();
|
|
16028
|
+
},
|
|
16029
|
+
variant: "text gray"
|
|
16030
|
+
}, /*#__PURE__*/React__default["default"].createElement(HashtagIcon$1, null))) : null, search.length > 0 || mode === "id" ? /*#__PURE__*/React__default["default"].createElement(Tooltip, {
|
|
16031
|
+
title: mode === "id" ? "Close ID mode" : "Clear",
|
|
16032
|
+
placement: "top"
|
|
16033
|
+
}, /*#__PURE__*/React__default["default"].createElement(IconButton, {
|
|
16034
|
+
variant: "text gray",
|
|
16035
|
+
onKeyPress: function onKeyPress(e) {
|
|
16036
|
+
if (e.key === "Enter") {
|
|
16037
|
+
setMode("default");
|
|
16038
|
+
clearInput();
|
|
16039
|
+
focusInput();
|
|
16040
|
+
}
|
|
16041
|
+
},
|
|
16042
|
+
onClick: function onClick() {
|
|
16043
|
+
setMode("default");
|
|
16044
|
+
clearInput();
|
|
16045
|
+
focusInput();
|
|
16046
|
+
}
|
|
16047
|
+
}, /*#__PURE__*/React__default["default"].createElement(CloseIcon$1, null))) : null));
|
|
16048
|
+
};
|
|
16049
|
+
CommandPalleteHeader.displayName = "CommandPalleteItem";
|
|
16050
|
+
|
|
16051
|
+
var findHiglightSearch = function findHiglightSearch(searchValue, target) {
|
|
16052
|
+
if (searchValue && target) {
|
|
16053
|
+
var purifiedTarget = target === null || target === void 0 ? void 0 : target.replace(/<script.*?>.*?<\/script>/gi, "");
|
|
16054
|
+
var parser = new DOMParser();
|
|
16055
|
+
var doc = parser.parseFromString(purifiedTarget, "text/html");
|
|
16056
|
+
var text = doc.body.textContent || "";
|
|
16057
|
+
var regex = new RegExp("(".concat(searchValue, ")"), "gi");
|
|
16058
|
+
return text.replace(regex, "<mark>$1</mark>");
|
|
16059
|
+
}
|
|
16060
|
+
return "";
|
|
16061
|
+
};
|
|
16062
|
+
|
|
16063
|
+
var _excluded$1 = ["title", "renderIcon", "className", "index"];
|
|
16064
|
+
var CommandPalleteItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
16065
|
+
var title = _ref.title,
|
|
16066
|
+
renderIcon = _ref.renderIcon,
|
|
16067
|
+
className = _ref.className,
|
|
16068
|
+
index = _ref.index,
|
|
16069
|
+
rest = _objectWithoutProperties(_ref, _excluded$1);
|
|
16070
|
+
var icon = renderIcon && renderIcon();
|
|
16071
|
+
var _useSelectedContext = useSelectedContext(),
|
|
16072
|
+
selected = _useSelectedContext.selected,
|
|
16073
|
+
setSelected = _useSelectedContext.setSelected;
|
|
16074
|
+
var _useSearchContext = useSearchContext(),
|
|
16075
|
+
search = _useSearchContext.search;
|
|
16076
|
+
var onMouseEnter = function onMouseEnter() {
|
|
16077
|
+
setSelected(index);
|
|
16078
|
+
};
|
|
16079
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledCommandPalleteItem, _extends({}, rest, {
|
|
16080
|
+
ref: ref,
|
|
16081
|
+
className: classNames__default["default"]("cp-item", className),
|
|
16082
|
+
tabIndex: 1,
|
|
16083
|
+
"aria-selected": selected === index,
|
|
16084
|
+
onMouseEnter: onMouseEnter,
|
|
16085
|
+
$selected: index === selected
|
|
16086
|
+
}), /*#__PURE__*/React__default["default"].createElement(StyledIcon, null, icon), search && title ? /*#__PURE__*/React__default["default"].createElement(Typography, {
|
|
16087
|
+
overflow: "truncate",
|
|
16088
|
+
whitespace: "no-wrap",
|
|
16089
|
+
variant: "Body 1",
|
|
16090
|
+
color: "primary",
|
|
16091
|
+
dangerouslySetInnerHTML: {
|
|
16092
|
+
__html: findHiglightSearch(search, title)
|
|
16093
|
+
}
|
|
16094
|
+
}) : null);
|
|
16095
|
+
});
|
|
16096
|
+
CommandPalleteItem.displayName = "CommandPalleteItem";
|
|
16097
|
+
|
|
16098
|
+
var CommandPalleteList = function CommandPalleteList(_ref) {
|
|
16099
|
+
var children = _ref.children,
|
|
16100
|
+
heading = _ref.heading,
|
|
16101
|
+
_ref$visible = _ref.visible,
|
|
16102
|
+
visible = _ref$visible === void 0 ? false : _ref$visible;
|
|
16103
|
+
return visible ? /*#__PURE__*/React__default["default"].createElement(StyledCommandPalleteList, {
|
|
16104
|
+
className: "cp-list",
|
|
16105
|
+
tabIndex: -1,
|
|
16106
|
+
role: "listbox"
|
|
16107
|
+
}, heading ? /*#__PURE__*/React__default["default"].createElement(StyledHeading, {
|
|
16108
|
+
tabIndex: -1
|
|
16109
|
+
}, heading) : null, children) : null;
|
|
16110
|
+
};
|
|
16111
|
+
CommandPalleteList.displayName = "CommandPalleteList";
|
|
16112
|
+
|
|
16113
|
+
var hasChildren = function hasChildren(element) {
|
|
16114
|
+
return /*#__PURE__*/React.isValidElement(element) && Boolean(element.props.children);
|
|
16115
|
+
};
|
|
16116
|
+
var hasComplexChildren = function hasComplexChildren(element) {
|
|
16117
|
+
return /*#__PURE__*/React.isValidElement(element) && hasChildren(element) && React.Children.toArray(element.props.children).reduce(function (response, child) {
|
|
16118
|
+
return response || /*#__PURE__*/React.isValidElement(child);
|
|
16119
|
+
}, false);
|
|
16120
|
+
};
|
|
16121
|
+
var deepMap = function deepMap(children, deepMapFn) {
|
|
16122
|
+
return React.Children.toArray(children).map(function (child, index, mapChildren) {
|
|
16123
|
+
if ( /*#__PURE__*/React.isValidElement(child) && hasComplexChildren(child)) {
|
|
16124
|
+
return deepMapFn( /*#__PURE__*/React.cloneElement(child, _objectSpread2(_objectSpread2({}, child.props), {}, {
|
|
16125
|
+
children: deepMap(child.props.children, deepMapFn)
|
|
16126
|
+
})));
|
|
16127
|
+
}
|
|
16128
|
+
return deepMapFn(child, index, mapChildren);
|
|
16129
|
+
});
|
|
16130
|
+
};
|
|
16131
|
+
|
|
16132
|
+
var _excluded = ["children", "onChangeSearch", "search", "mode", "setMode"];
|
|
16133
|
+
var CommandPallete = function CommandPallete(_ref) {
|
|
16134
|
+
var children = _ref.children,
|
|
16135
|
+
onChangeSearch = _ref.onChangeSearch,
|
|
16136
|
+
search = _ref.search,
|
|
16137
|
+
mode = _ref.mode,
|
|
16138
|
+
setMode = _ref.setMode,
|
|
16139
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
16140
|
+
var _useState = React.useState(0),
|
|
16141
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
16142
|
+
selected = _useState2[0],
|
|
16143
|
+
setSelected = _useState2[1];
|
|
16144
|
+
var listWrapperRef = React.useRef(null);
|
|
16145
|
+
var handleChange = function handleChange(e) {
|
|
16146
|
+
onChangeSearch(e.target.value);
|
|
16147
|
+
};
|
|
16148
|
+
var scrollToTop = function scrollToTop() {
|
|
16149
|
+
var _listWrapperRef$curre;
|
|
16150
|
+
(_listWrapperRef$curre = listWrapperRef.current) === null || _listWrapperRef$curre === void 0 ? void 0 : _listWrapperRef$curre.scrollTo({
|
|
16151
|
+
top: 0,
|
|
16152
|
+
behavior: "smooth"
|
|
16153
|
+
});
|
|
16154
|
+
};
|
|
16155
|
+
var scrollToBottom = function scrollToBottom() {
|
|
16156
|
+
var _listWrapperRef$curre2;
|
|
16157
|
+
(_listWrapperRef$curre2 = listWrapperRef.current) === null || _listWrapperRef$curre2 === void 0 ? void 0 : _listWrapperRef$curre2.scrollTo({
|
|
16158
|
+
top: listWrapperRef.current.scrollHeight,
|
|
16159
|
+
behavior: "smooth"
|
|
16160
|
+
});
|
|
16161
|
+
};
|
|
16162
|
+
var filterChildren = React.useMemo(function () {
|
|
16163
|
+
var itemsLength = 0;
|
|
16164
|
+
var commandsLength = 0;
|
|
16165
|
+
var items = deepMap(children, function (child) {
|
|
16166
|
+
var item = child;
|
|
16167
|
+
var clonedElement;
|
|
16168
|
+
if (item && item.type === CommandPalleteList) {
|
|
16169
|
+
clonedElement = /*#__PURE__*/React.cloneElement(item, _objectSpread2({}, item.props));
|
|
16170
|
+
}
|
|
16171
|
+
if (item && item.type === CommandPalleteCommandItem) {
|
|
16172
|
+
clonedElement = /*#__PURE__*/React.cloneElement(item, _objectSpread2(_objectSpread2({}, item.props), {}, {
|
|
16173
|
+
index: itemsLength,
|
|
16174
|
+
selected: selected
|
|
16175
|
+
}));
|
|
16176
|
+
itemsLength++;
|
|
16177
|
+
commandsLength++;
|
|
16178
|
+
}
|
|
16179
|
+
if (item && item.type === CommandPalleteItem) {
|
|
16180
|
+
clonedElement = /*#__PURE__*/React.cloneElement(item, _objectSpread2(_objectSpread2({}, item.props), {}, {
|
|
16181
|
+
index: itemsLength,
|
|
16182
|
+
selected: selected
|
|
16183
|
+
}));
|
|
16184
|
+
itemsLength++;
|
|
16185
|
+
}
|
|
16186
|
+
return clonedElement;
|
|
16187
|
+
});
|
|
16188
|
+
return {
|
|
16189
|
+
items: items,
|
|
16190
|
+
itemsLength: itemsLength,
|
|
16191
|
+
commandsLength: commandsLength
|
|
16192
|
+
};
|
|
16193
|
+
}, [children, selected]);
|
|
16194
|
+
var handleChangeSelected = function handleChangeSelected(direction) {
|
|
16195
|
+
var items = document.querySelectorAll(".cp-item");
|
|
16196
|
+
var index = 0;
|
|
16197
|
+
var newIndex = 0;
|
|
16198
|
+
var newItem = null;
|
|
16199
|
+
if (direction === "down") {
|
|
16200
|
+
items.forEach(function (_, i) {
|
|
16201
|
+
if (i === selected) {
|
|
16202
|
+
index = i;
|
|
16203
|
+
}
|
|
16204
|
+
});
|
|
16205
|
+
newIndex = index === items.length - 1 ? 0 : index + 1;
|
|
16206
|
+
} else if (direction === "up") {
|
|
16207
|
+
items.forEach(function (_, i) {
|
|
16208
|
+
if (i === selected) {
|
|
16209
|
+
index = i;
|
|
16210
|
+
}
|
|
16211
|
+
});
|
|
16212
|
+
newIndex = !index ? items.length - 1 : index - 1;
|
|
16213
|
+
} else {
|
|
16214
|
+
setSelected(0);
|
|
16215
|
+
}
|
|
16216
|
+
newItem = items[newIndex];
|
|
16217
|
+
if (newItem && typeof newIndex === "number") {
|
|
16218
|
+
setSelected(newIndex);
|
|
16219
|
+
newItem.scrollIntoView({
|
|
16220
|
+
behavior: "smooth",
|
|
16221
|
+
block: newIndex ? "center" : "end"
|
|
16222
|
+
});
|
|
16223
|
+
}
|
|
16224
|
+
};
|
|
16225
|
+
return /*#__PURE__*/React__default["default"].createElement(Dialog, rest, /*#__PURE__*/React__default["default"].createElement(SearchContextProvider, {
|
|
16226
|
+
value: {
|
|
16227
|
+
search: search,
|
|
16228
|
+
onChangeSearch: onChangeSearch
|
|
16229
|
+
}
|
|
16230
|
+
}, /*#__PURE__*/React__default["default"].createElement(SelectedContextProvider, {
|
|
16231
|
+
value: {
|
|
16232
|
+
selected: selected,
|
|
16233
|
+
setSelected: setSelected
|
|
16234
|
+
}
|
|
16235
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledCommandPallete, {
|
|
16236
|
+
onKeyDown: function onKeyDown(e) {
|
|
16237
|
+
if (e.key === "ArrowDown") {
|
|
16238
|
+
e.preventDefault();
|
|
16239
|
+
handleChangeSelected("down");
|
|
16240
|
+
}
|
|
16241
|
+
if (e.key === "ArrowUp") {
|
|
16242
|
+
e.preventDefault();
|
|
16243
|
+
handleChangeSelected("up");
|
|
16244
|
+
}
|
|
16245
|
+
if (e.key === "End") {
|
|
16246
|
+
e.preventDefault();
|
|
16247
|
+
scrollToBottom();
|
|
16248
|
+
setSelected(filterChildren.itemsLength - 1);
|
|
16249
|
+
}
|
|
16250
|
+
if (e.key === "Home") {
|
|
16251
|
+
e.preventDefault();
|
|
16252
|
+
scrollToTop();
|
|
16253
|
+
setSelected(0);
|
|
16254
|
+
}
|
|
16255
|
+
}
|
|
16256
|
+
}, /*#__PURE__*/React__default["default"].createElement(ModeContextProvider, {
|
|
16257
|
+
value: {
|
|
16258
|
+
mode: mode,
|
|
16259
|
+
setMode: setMode
|
|
16260
|
+
}
|
|
16261
|
+
}, /*#__PURE__*/React__default["default"].createElement(CommandPalleteHeader, {
|
|
16262
|
+
handleChange: handleChange,
|
|
16263
|
+
commandsLength: filterChildren.commandsLength,
|
|
16264
|
+
itemsLength: filterChildren.itemsLength
|
|
16265
|
+
})), /*#__PURE__*/React__default["default"].createElement(StyledCommandPalleteWrapper, {
|
|
16266
|
+
ref: listWrapperRef
|
|
16267
|
+
}, filterChildren.items)))));
|
|
16268
|
+
};
|
|
16269
|
+
CommandPallete.displayName = "CommandPallete";
|
|
16270
|
+
CommandPallete.List = CommandPalleteList;
|
|
16271
|
+
CommandPallete.Item = CommandPalleteItem;
|
|
16272
|
+
CommandPallete.CommandItem = CommandPalleteCommandItem;
|
|
16273
|
+
|
|
15757
16274
|
exports.Accordion = Accordion;
|
|
15758
16275
|
exports.AccordionContext = AccordionContext;
|
|
15759
16276
|
exports.AccordionItem = AccordionItem;
|
|
@@ -15780,6 +16297,7 @@
|
|
|
15780
16297
|
exports.AutoResizeTextarea = AutoResizeTextarea;
|
|
15781
16298
|
exports.Autocomplete = Autocomplete;
|
|
15782
16299
|
exports.Avatar = Avatar;
|
|
16300
|
+
exports.AvatarGroup = AvatarGroup;
|
|
15783
16301
|
exports.BackLink = BackLink;
|
|
15784
16302
|
exports.Badge = Badge;
|
|
15785
16303
|
exports.BellOffIcon = BellOffIcon$1;
|
|
@@ -15821,6 +16339,7 @@
|
|
|
15821
16339
|
exports.CollapseAllIcon = CollapseAllIcon$1;
|
|
15822
16340
|
exports.CollapseExpandSingleIcon = CollapseExpandSingleIcon$1;
|
|
15823
16341
|
exports.ComboBox = ComboBox;
|
|
16342
|
+
exports.CommandPallete = CommandPallete;
|
|
15824
16343
|
exports.CompleteCheckbox = CompleteCheckbox;
|
|
15825
16344
|
exports.ComputerIcon = ComputerIcon$1;
|
|
15826
16345
|
exports.ConfirmDialog = ConfirmDialog;
|