@activecollab/components 1.0.380 → 1.0.381
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/Input/index.js +11 -0
- package/dist/cjs/components/Input/index.js.map +1 -1
- package/dist/esm/components/Input/index.d.ts +1 -0
- package/dist/esm/components/Input/index.d.ts.map +1 -1
- package/dist/esm/components/Input/index.js +1 -0
- package/dist/esm/components/Input/index.js.map +1 -1
- package/dist/index.js +981 -945
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -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$1p = ["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$1p);
|
|
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$1o = ["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$1o);
|
|
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$1n = ["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$1n);
|
|
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)
|
|
@@ -485,7 +485,7 @@
|
|
|
485
485
|
return React.useContext(MenuContext);
|
|
486
486
|
};
|
|
487
487
|
|
|
488
|
-
var _excluded$
|
|
488
|
+
var _excluded$1m = ["children", "anchorEl", "open", "style", "transition", "placement", "strategy", "afterWrite"];
|
|
489
489
|
var Popper = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
490
490
|
var children = _ref.children,
|
|
491
491
|
anchorEl = _ref.anchorEl,
|
|
@@ -499,7 +499,7 @@
|
|
|
499
499
|
_ref$strategy = _ref.strategy,
|
|
500
500
|
strategy = _ref$strategy === void 0 ? "absolute" : _ref$strategy,
|
|
501
501
|
afterWrite = _ref.afterWrite,
|
|
502
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
502
|
+
rest = _objectWithoutProperties(_ref, _excluded$1m);
|
|
503
503
|
var _useState = React.useState(true),
|
|
504
504
|
_useState2 = _slicedToArray(_useState, 2),
|
|
505
505
|
exited = _useState2[0],
|
|
@@ -598,12 +598,12 @@
|
|
|
598
598
|
});
|
|
599
599
|
StyledOverlay.displayName = "StyledOverlay";
|
|
600
600
|
|
|
601
|
-
var _excluded$
|
|
601
|
+
var _excluded$1l = ["className", "disableBackgroundColor"];
|
|
602
602
|
var Overlay = function Overlay(_ref) {
|
|
603
603
|
var className = _ref.className,
|
|
604
604
|
_ref$disableBackgroun = _ref.disableBackgroundColor,
|
|
605
605
|
disableBackgroundColor = _ref$disableBackgroun === void 0 ? false : _ref$disableBackgroun,
|
|
606
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
606
|
+
rest = _objectWithoutProperties(_ref, _excluded$1l);
|
|
607
607
|
return /*#__PURE__*/React__default["default"].createElement(StyledOverlay, _extends({
|
|
608
608
|
className: classNames__default["default"]("c-overlay", className),
|
|
609
609
|
$disableBackgroundColor: disableBackgroundColor
|
|
@@ -643,7 +643,7 @@
|
|
|
643
643
|
})(["", " ", " position:fixed;top:0;right:0;bottom:0;left:0;"], FontStyle, BoxSizingStyle);
|
|
644
644
|
StyledWindow.displayName = "StyledWindow";
|
|
645
645
|
|
|
646
|
-
var _excluded$
|
|
646
|
+
var _excluded$1k = ["children", "onClose", "className", "style", "onKeyDown", "disableFocusLock", "disableScrollLock", "disableCloseOnEsc", "onClick"];
|
|
647
647
|
var returnFocus = {
|
|
648
648
|
preventScroll: true
|
|
649
649
|
};
|
|
@@ -660,7 +660,7 @@
|
|
|
660
660
|
_ref$disableCloseOnEs = _ref.disableCloseOnEsc,
|
|
661
661
|
disableCloseOnEsc = _ref$disableCloseOnEs === void 0 ? false : _ref$disableCloseOnEs,
|
|
662
662
|
onClick = _ref.onClick,
|
|
663
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
663
|
+
rest = _objectWithoutProperties(_ref, _excluded$1k);
|
|
664
664
|
var innerRef = React.useRef(null);
|
|
665
665
|
var handleRef = useForkRef(innerRef, ref);
|
|
666
666
|
var _useLayerContext = useLayerContext(),
|
|
@@ -721,7 +721,7 @@
|
|
|
721
721
|
}, FontStyle, BoxSizingStyle);
|
|
722
722
|
StyledBubble.displayName = "StyledBubble";
|
|
723
723
|
|
|
724
|
-
var _excluded$
|
|
724
|
+
var _excluded$1j = ["children", "className", "innerRef", "style"];
|
|
725
725
|
var Bubble = function Bubble(_ref) {
|
|
726
726
|
var children = _ref.children,
|
|
727
727
|
className = _ref.className,
|
|
@@ -729,7 +729,7 @@
|
|
|
729
729
|
innerRef = _ref$innerRef === void 0 ? null : _ref$innerRef,
|
|
730
730
|
_ref$style = _ref.style,
|
|
731
731
|
style = _ref$style === void 0 ? {} : _ref$style,
|
|
732
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
732
|
+
rest = _objectWithoutProperties(_ref, _excluded$1j);
|
|
733
733
|
return /*#__PURE__*/React__default["default"].createElement(StyledBubble, _extends({}, rest, {
|
|
734
734
|
ref: innerRef,
|
|
735
735
|
className: classNames__default["default"]("c-bubble", className),
|
|
@@ -1049,7 +1049,7 @@
|
|
|
1049
1049
|
});
|
|
1050
1050
|
StyledTypography.displayName = "StyledTypography";
|
|
1051
1051
|
|
|
1052
|
-
var _excluded$
|
|
1052
|
+
var _excluded$1i = ["variant", "as", "color", "italic", "tabularNums", "letterSpacing", "lineHeight", "align", "decoration", "transform", "overflow", "whitespace", "wordBreak", "weight", "className", "children"];
|
|
1053
1053
|
var Typography = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1054
1054
|
var _ref$variant = _ref.variant,
|
|
1055
1055
|
variant = _ref$variant === void 0 ? "Title 1" : _ref$variant,
|
|
@@ -1080,7 +1080,7 @@
|
|
|
1080
1080
|
weight = _ref$weight === void 0 ? "regular" : _ref$weight,
|
|
1081
1081
|
className = _ref.className,
|
|
1082
1082
|
children = _ref.children,
|
|
1083
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1083
|
+
props = _objectWithoutProperties(_ref, _excluded$1i);
|
|
1084
1084
|
var Component = as || "div";
|
|
1085
1085
|
return /*#__PURE__*/React__default["default"].createElement(StyledTypography, _extends({
|
|
1086
1086
|
as: Component,
|
|
@@ -1103,13 +1103,13 @@
|
|
|
1103
1103
|
});
|
|
1104
1104
|
Typography.displayName = "Typography";
|
|
1105
1105
|
|
|
1106
|
-
var _excluded$
|
|
1106
|
+
var _excluded$1h = ["title", "className", "leftElement", "rightElement"];
|
|
1107
1107
|
var MenuHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1108
1108
|
var title = _ref.title,
|
|
1109
1109
|
className = _ref.className,
|
|
1110
1110
|
leftElement = _ref.leftElement,
|
|
1111
1111
|
rightElement = _ref.rightElement,
|
|
1112
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1112
|
+
props = _objectWithoutProperties(_ref, _excluded$1h);
|
|
1113
1113
|
return /*#__PURE__*/React__default["default"].createElement(StyledMenuHeader, _extends({}, props, {
|
|
1114
1114
|
className: classNames__default["default"]("c-menu-header", className),
|
|
1115
1115
|
ref: ref
|
|
@@ -1134,11 +1134,11 @@
|
|
|
1134
1134
|
});
|
|
1135
1135
|
MenuHeader.displayName = "MenuHeader";
|
|
1136
1136
|
|
|
1137
|
-
var _excluded$
|
|
1137
|
+
var _excluded$1g = ["children", "className"];
|
|
1138
1138
|
var MenuFooter = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1139
1139
|
var children = _ref.children,
|
|
1140
1140
|
className = _ref.className,
|
|
1141
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1141
|
+
props = _objectWithoutProperties(_ref, _excluded$1g);
|
|
1142
1142
|
return /*#__PURE__*/React__default["default"].createElement(StyledMenuFooter$1, _extends({}, props, {
|
|
1143
1143
|
className: classNames__default["default"]("c-menu-footer", className),
|
|
1144
1144
|
ref: ref
|
|
@@ -1162,11 +1162,11 @@
|
|
|
1162
1162
|
})(["border-top:1px solid var(--border-primary);margin:12px 16px;height:1px;"]);
|
|
1163
1163
|
StyledListSeparator.displayName = "StyledListSeparator";
|
|
1164
1164
|
|
|
1165
|
-
var _excluded$
|
|
1165
|
+
var _excluded$1f = ["children", "className"];
|
|
1166
1166
|
var ListItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1167
1167
|
var children = _ref.children,
|
|
1168
1168
|
className = _ref.className,
|
|
1169
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1169
|
+
props = _objectWithoutProperties(_ref, _excluded$1f);
|
|
1170
1170
|
return /*#__PURE__*/React__default["default"].createElement(StyledListItem, _extends({
|
|
1171
1171
|
className: classNames__default["default"]("c-list-item", className),
|
|
1172
1172
|
ref: ref,
|
|
@@ -1175,21 +1175,21 @@
|
|
|
1175
1175
|
});
|
|
1176
1176
|
ListItem.displayName = "ListItem";
|
|
1177
1177
|
|
|
1178
|
-
var _excluded$
|
|
1178
|
+
var _excluded$1e = ["className"];
|
|
1179
1179
|
var ListSeparator = function ListSeparator(_ref) {
|
|
1180
1180
|
var className = _ref.className,
|
|
1181
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1181
|
+
props = _objectWithoutProperties(_ref, _excluded$1e);
|
|
1182
1182
|
return /*#__PURE__*/React__default["default"].createElement(StyledListSeparator, _extends({
|
|
1183
1183
|
className: classNames__default["default"]("c-list-separator", className)
|
|
1184
1184
|
}, props));
|
|
1185
1185
|
};
|
|
1186
1186
|
ListSeparator.displayName = "ListSeparator";
|
|
1187
1187
|
|
|
1188
|
-
var _excluded$
|
|
1188
|
+
var _excluded$1d = ["children", "className"];
|
|
1189
1189
|
var _List = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1190
1190
|
var children = _ref.children,
|
|
1191
1191
|
className = _ref.className,
|
|
1192
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1192
|
+
props = _objectWithoutProperties(_ref, _excluded$1d);
|
|
1193
1193
|
return /*#__PURE__*/React__default["default"].createElement(StyledList, _extends({
|
|
1194
1194
|
className: className,
|
|
1195
1195
|
ref: ref,
|
|
@@ -1215,7 +1215,7 @@
|
|
|
1215
1215
|
return size === "big" && styled.css(["width:40px;"]);
|
|
1216
1216
|
});
|
|
1217
1217
|
|
|
1218
|
-
var _excluded$
|
|
1218
|
+
var _excluded$1c = ["children", "className", "variant", "size", "active"];
|
|
1219
1219
|
|
|
1220
1220
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
1221
1221
|
|
|
@@ -1245,7 +1245,7 @@
|
|
|
1245
1245
|
variant = _ref.variant,
|
|
1246
1246
|
size = _ref.size,
|
|
1247
1247
|
active = _ref.active,
|
|
1248
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
1248
|
+
args = _objectWithoutProperties(_ref, _excluded$1c);
|
|
1249
1249
|
return /*#__PURE__*/React__default["default"].createElement(StyledIconButton, _extends({
|
|
1250
1250
|
className: className,
|
|
1251
1251
|
variant: variant,
|
|
@@ -7722,14 +7722,14 @@
|
|
|
7722
7722
|
});
|
|
7723
7723
|
StyledBreadcrumbListItem.displayName = "StyledBreadcrumbListItem";
|
|
7724
7724
|
|
|
7725
|
-
var _excluded$
|
|
7725
|
+
var _excluded$1b = ["children", "className", "separator"];
|
|
7726
7726
|
var Breadcrumbs = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
7727
7727
|
var _dimensions$width, _childDimensions$widt;
|
|
7728
7728
|
var children = _ref.children,
|
|
7729
7729
|
className = _ref.className,
|
|
7730
7730
|
_ref$separator = _ref.separator,
|
|
7731
7731
|
separator = _ref$separator === void 0 ? "/" : _ref$separator,
|
|
7732
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
7732
|
+
rest = _objectWithoutProperties(_ref, _excluded$1b);
|
|
7733
7733
|
var internalRef = React.useRef(null);
|
|
7734
7734
|
var listWrapperRef = React.useRef(null);
|
|
7735
7735
|
var olRef = React.useRef(null);
|
|
@@ -7896,10 +7896,10 @@
|
|
|
7896
7896
|
return props.$isLight && styled.css(["background-color:var(--page-paper-main);box-shadow:var(--shadow-secondary);color:var(--color-theme-700);"]);
|
|
7897
7897
|
});
|
|
7898
7898
|
|
|
7899
|
-
var _excluded$
|
|
7899
|
+
var _excluded$1a = ["children"];
|
|
7900
7900
|
var TooltipAnimation = function TooltipAnimation(_ref) {
|
|
7901
7901
|
var children = _ref.children,
|
|
7902
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7902
|
+
props = _objectWithoutProperties(_ref, _excluded$1a);
|
|
7903
7903
|
return /*#__PURE__*/React__default["default"].createElement(FromElement, _extends({
|
|
7904
7904
|
timeout: 0
|
|
7905
7905
|
}, props), children);
|
|
@@ -7974,12 +7974,12 @@
|
|
|
7974
7974
|
});
|
|
7975
7975
|
Tooltip.displayName = "Tooltip";
|
|
7976
7976
|
|
|
7977
|
-
var _excluded$
|
|
7977
|
+
var _excluded$19 = ["weight", "children"];
|
|
7978
7978
|
var Body2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
7979
7979
|
var _ref$weight = _ref.weight,
|
|
7980
7980
|
weight = _ref$weight === void 0 ? "regular" : _ref$weight,
|
|
7981
7981
|
children = _ref.children,
|
|
7982
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7982
|
+
props = _objectWithoutProperties(_ref, _excluded$19);
|
|
7983
7983
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
7984
7984
|
variant: "Body 2",
|
|
7985
7985
|
weight: weight,
|
|
@@ -8028,7 +8028,7 @@
|
|
|
8028
8028
|
});
|
|
8029
8029
|
StyledCounterButtonLabel.displayName = "StyledCounterButtonLabel";
|
|
8030
8030
|
|
|
8031
|
-
var _excluded$
|
|
8031
|
+
var _excluded$18 = ["label", "icon", "active", "counter", "tooltipText", "onClearAll", "className", "disabled"];
|
|
8032
8032
|
var CounterButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
8033
8033
|
var label = _ref.label,
|
|
8034
8034
|
icon = _ref.icon,
|
|
@@ -8040,7 +8040,7 @@
|
|
|
8040
8040
|
className = _ref.className,
|
|
8041
8041
|
_ref$disabled = _ref.disabled,
|
|
8042
8042
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
8043
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
8043
|
+
args = _objectWithoutProperties(_ref, _excluded$18);
|
|
8044
8044
|
return /*#__PURE__*/React__default["default"].createElement(StyledCounterButtonWrapper, {
|
|
8045
8045
|
ref: ref,
|
|
8046
8046
|
className: className
|
|
@@ -8352,7 +8352,7 @@
|
|
|
8352
8352
|
StyledDatePicker.displayName = "StyledDatePicker";
|
|
8353
8353
|
StyledDayPicker.displayName = "StyledDayPicker";
|
|
8354
8354
|
|
|
8355
|
-
var _excluded$
|
|
8355
|
+
var _excluded$17 = ["className", "onChange", "onDayClick", "selectedDays", "disabledDays", "selectionMode", "month", "onMonthChange", "dateRequired", "firstDayOfWeek", "fixedWeeks", "modifiers"];
|
|
8356
8356
|
var DatePicker = function DatePicker(_ref) {
|
|
8357
8357
|
var className = _ref.className,
|
|
8358
8358
|
onChange = _ref.onChange,
|
|
@@ -8374,7 +8374,7 @@
|
|
|
8374
8374
|
_ref$fixedWeeks = _ref.fixedWeeks,
|
|
8375
8375
|
fixedWeeks = _ref$fixedWeeks === void 0 ? true : _ref$fixedWeeks,
|
|
8376
8376
|
defaultModifiers = _ref.modifiers,
|
|
8377
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
8377
|
+
rest = _objectWithoutProperties(_ref, _excluded$17);
|
|
8378
8378
|
var _useState = React.useState(),
|
|
8379
8379
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8380
8380
|
enteredTo = _useState2[0],
|
|
@@ -9267,10 +9267,10 @@
|
|
|
9267
9267
|
componentId: "sc-x4ge7a-0"
|
|
9268
9268
|
})(["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);
|
|
9269
9269
|
|
|
9270
|
-
var _excluded$
|
|
9270
|
+
var _excluded$16 = ["className"];
|
|
9271
9271
|
var LinearLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9272
9272
|
var className = _ref.className,
|
|
9273
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
9273
|
+
rest = _objectWithoutProperties(_ref, _excluded$16);
|
|
9274
9274
|
return /*#__PURE__*/React__default["default"].createElement(StyledLinearLoader, _extends({
|
|
9275
9275
|
ref: ref,
|
|
9276
9276
|
className: classNames__default["default"]("c-loader c-loader--linear", className)
|
|
@@ -9284,10 +9284,10 @@
|
|
|
9284
9284
|
componentId: "sc-1f35d5h-0"
|
|
9285
9285
|
})(["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);
|
|
9286
9286
|
|
|
9287
|
-
var _excluded$
|
|
9287
|
+
var _excluded$15 = ["className"];
|
|
9288
9288
|
var DotsLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9289
9289
|
var className = _ref.className,
|
|
9290
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
9290
|
+
rest = _objectWithoutProperties(_ref, _excluded$15);
|
|
9291
9291
|
return /*#__PURE__*/React__default["default"].createElement(StyledDotsLoader, _extends({
|
|
9292
9292
|
ref: ref,
|
|
9293
9293
|
className: classNames__default["default"]("c-loader c-loader--dots", className)
|
|
@@ -9309,7 +9309,7 @@
|
|
|
9309
9309
|
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);
|
|
9310
9310
|
});
|
|
9311
9311
|
|
|
9312
|
-
var _excluded$
|
|
9312
|
+
var _excluded$14 = ["radius", "stroke", "activeStrokeColor", "inactiveStrokeColor", "activeColorPercentage", "rotateDurationInSeconds", "className"];
|
|
9313
9313
|
var SpinnerLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9314
9314
|
var _ref$radius = _ref.radius,
|
|
9315
9315
|
radius = _ref$radius === void 0 ? 10 : _ref$radius,
|
|
@@ -9324,7 +9324,7 @@
|
|
|
9324
9324
|
_ref$rotateDurationIn = _ref.rotateDurationInSeconds,
|
|
9325
9325
|
rotateDurationInSeconds = _ref$rotateDurationIn === void 0 ? 0.75 : _ref$rotateDurationIn,
|
|
9326
9326
|
className = _ref.className,
|
|
9327
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
9327
|
+
rest = _objectWithoutProperties(_ref, _excluded$14);
|
|
9328
9328
|
return /*#__PURE__*/React__default["default"].createElement(StyledSpinnerLoader$1, _extends({
|
|
9329
9329
|
ref: ref,
|
|
9330
9330
|
className: className,
|
|
@@ -9338,7 +9338,7 @@
|
|
|
9338
9338
|
});
|
|
9339
9339
|
SpinnerLoader.displayName = "SpinnerLoader";
|
|
9340
9340
|
|
|
9341
|
-
var _excluded$
|
|
9341
|
+
var _excluded$13 = ["header", "rows", "className", "sortBy", "sortDirection", "onSortCallback", "theadClass", "noResultsCallback", "groupBy", "groupHead", "isCollapsible", "emptyValue", "loading", "loadingRows"];
|
|
9342
9342
|
exports.SortDirection = void 0;
|
|
9343
9343
|
(function (SortDirection) {
|
|
9344
9344
|
SortDirection["None"] = "none";
|
|
@@ -9386,7 +9386,7 @@
|
|
|
9386
9386
|
loading = _ref.loading,
|
|
9387
9387
|
_ref$loadingRows = _ref.loadingRows,
|
|
9388
9388
|
loadingRows = _ref$loadingRows === void 0 ? 7 : _ref$loadingRows,
|
|
9389
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
9389
|
+
args = _objectWithoutProperties(_ref, _excluded$13);
|
|
9390
9390
|
var _useState = React.useState(sortDirection),
|
|
9391
9391
|
_useState2 = _slicedToArray(_useState, 2),
|
|
9392
9392
|
columnDirection = _useState2[0],
|
|
@@ -9746,7 +9746,7 @@
|
|
|
9746
9746
|
});
|
|
9747
9747
|
StyledCompleteCheckbox.displayName = "StyledCompleteCheckbox";
|
|
9748
9748
|
|
|
9749
|
-
var _excluded$
|
|
9749
|
+
var _excluded$12 = ["completed", "disabled", "animate", "onClick", "className", "primary", "checkMarkClassName"];
|
|
9750
9750
|
var CompleteCheckbox = function CompleteCheckbox(_ref) {
|
|
9751
9751
|
var _ref$completed = _ref.completed,
|
|
9752
9752
|
completed = _ref$completed === void 0 ? false : _ref$completed,
|
|
@@ -9759,7 +9759,7 @@
|
|
|
9759
9759
|
_ref$primary = _ref.primary,
|
|
9760
9760
|
primary = _ref$primary === void 0 ? false : _ref$primary,
|
|
9761
9761
|
checkMarkClassName = _ref.checkMarkClassName,
|
|
9762
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
9762
|
+
rest = _objectWithoutProperties(_ref, _excluded$12);
|
|
9763
9763
|
return /*#__PURE__*/React__default["default"].createElement(StyledCompleteCheckbox, _extends({
|
|
9764
9764
|
onClick: onClick,
|
|
9765
9765
|
className: classNames__default["default"]("c-complete-checkbox", className),
|
|
@@ -9790,7 +9790,7 @@
|
|
|
9790
9790
|
});
|
|
9791
9791
|
StyledPaper.displayName = "StyledPaper";
|
|
9792
9792
|
|
|
9793
|
-
var _excluded$
|
|
9793
|
+
var _excluded$11 = ["children", "className", "type", "hover", "useOptimizedShadow"];
|
|
9794
9794
|
/**
|
|
9795
9795
|
* This is a component description and should sit directly above your component
|
|
9796
9796
|
*/
|
|
@@ -9803,7 +9803,7 @@
|
|
|
9803
9803
|
hover = _ref$hover === void 0 ? false : _ref$hover,
|
|
9804
9804
|
_ref$useOptimizedShad = _ref.useOptimizedShadow,
|
|
9805
9805
|
useOptimizedShadow = _ref$useOptimizedShad === void 0 ? false : _ref$useOptimizedShad,
|
|
9806
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
9806
|
+
rest = _objectWithoutProperties(_ref, _excluded$11);
|
|
9807
9807
|
return /*#__PURE__*/React__default["default"].createElement(StyledPaper, _extends({
|
|
9808
9808
|
className: classNames__default["default"](className, {
|
|
9809
9809
|
"ac-shadow--raised--lg": !useOptimizedShadow && hover && type === "paper-1",
|
|
@@ -9856,7 +9856,7 @@
|
|
|
9856
9856
|
});
|
|
9857
9857
|
StyledCard.displayName = "StyledCard";
|
|
9858
9858
|
|
|
9859
|
-
var _excluded
|
|
9859
|
+
var _excluded$10 = ["children", "className", "hoverable", "paperType"];
|
|
9860
9860
|
var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9861
9861
|
var children = _ref.children,
|
|
9862
9862
|
className = _ref.className,
|
|
@@ -9864,7 +9864,7 @@
|
|
|
9864
9864
|
hoverable = _ref$hoverable === void 0 ? false : _ref$hoverable,
|
|
9865
9865
|
_ref$paperType = _ref.paperType,
|
|
9866
9866
|
paperType = _ref$paperType === void 0 ? "paper-2" : _ref$paperType,
|
|
9867
|
-
rest = _objectWithoutProperties(_ref, _excluded
|
|
9867
|
+
rest = _objectWithoutProperties(_ref, _excluded$10);
|
|
9868
9868
|
return /*#__PURE__*/React__default["default"].createElement(StyledCard, _extends({}, rest, {
|
|
9869
9869
|
type: paperType,
|
|
9870
9870
|
className: classNames__default["default"]("c-card", className),
|
|
@@ -9943,12 +9943,12 @@
|
|
|
9943
9943
|
});
|
|
9944
9944
|
EntityCard$1.displayName = "EntityCard";
|
|
9945
9945
|
|
|
9946
|
-
var _excluded
|
|
9946
|
+
var _excluded$$ = ["weight", "children"];
|
|
9947
9947
|
var Title1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9948
9948
|
var _ref$weight = _ref.weight,
|
|
9949
9949
|
weight = _ref$weight === void 0 ? "light" : _ref$weight,
|
|
9950
9950
|
children = _ref.children,
|
|
9951
|
-
props = _objectWithoutProperties(_ref, _excluded
|
|
9951
|
+
props = _objectWithoutProperties(_ref, _excluded$$);
|
|
9952
9952
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
9953
9953
|
weight: weight,
|
|
9954
9954
|
variant: "Title 1",
|
|
@@ -9957,12 +9957,12 @@
|
|
|
9957
9957
|
});
|
|
9958
9958
|
Title1.displayName = "Title1";
|
|
9959
9959
|
|
|
9960
|
-
var _excluded$
|
|
9960
|
+
var _excluded$_ = ["weight", "children"];
|
|
9961
9961
|
var Title2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9962
9962
|
var _ref$weight = _ref.weight,
|
|
9963
9963
|
weight = _ref$weight === void 0 ? "light" : _ref$weight,
|
|
9964
9964
|
children = _ref.children,
|
|
9965
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
9965
|
+
props = _objectWithoutProperties(_ref, _excluded$_);
|
|
9966
9966
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
9967
9967
|
weight: weight,
|
|
9968
9968
|
variant: "Title 2",
|
|
@@ -9971,10 +9971,10 @@
|
|
|
9971
9971
|
});
|
|
9972
9972
|
Title2.displayName = "Title2";
|
|
9973
9973
|
|
|
9974
|
-
var _excluded$
|
|
9974
|
+
var _excluded$Z = ["children"];
|
|
9975
9975
|
var Header2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9976
9976
|
var children = _ref.children,
|
|
9977
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
9977
|
+
props = _objectWithoutProperties(_ref, _excluded$Z);
|
|
9978
9978
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
9979
9979
|
weight: "bold",
|
|
9980
9980
|
variant: "Header 2",
|
|
@@ -9983,10 +9983,10 @@
|
|
|
9983
9983
|
});
|
|
9984
9984
|
Header2.displayName = "Header2";
|
|
9985
9985
|
|
|
9986
|
-
var _excluded$
|
|
9986
|
+
var _excluded$Y = ["children"];
|
|
9987
9987
|
var Header3 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9988
9988
|
var children = _ref.children,
|
|
9989
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
9989
|
+
props = _objectWithoutProperties(_ref, _excluded$Y);
|
|
9990
9990
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
9991
9991
|
weight: "bold",
|
|
9992
9992
|
variant: "Header 3",
|
|
@@ -9995,12 +9995,12 @@
|
|
|
9995
9995
|
});
|
|
9996
9996
|
Header3.displayName = "Header3";
|
|
9997
9997
|
|
|
9998
|
-
var _excluded$
|
|
9998
|
+
var _excluded$X = ["weight", "children"];
|
|
9999
9999
|
var Body1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
10000
10000
|
var _ref$weight = _ref.weight,
|
|
10001
10001
|
weight = _ref$weight === void 0 ? "regular" : _ref$weight,
|
|
10002
10002
|
children = _ref.children,
|
|
10003
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
10003
|
+
props = _objectWithoutProperties(_ref, _excluded$X);
|
|
10004
10004
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
10005
10005
|
variant: "Body 1",
|
|
10006
10006
|
weight: weight,
|
|
@@ -10009,12 +10009,12 @@
|
|
|
10009
10009
|
});
|
|
10010
10010
|
Body1.displayName = "Body1";
|
|
10011
10011
|
|
|
10012
|
-
var _excluded$
|
|
10012
|
+
var _excluded$W = ["weight", "children"];
|
|
10013
10013
|
var Caption1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
10014
10014
|
var _ref$weight = _ref.weight,
|
|
10015
10015
|
weight = _ref$weight === void 0 ? "regular" : _ref$weight,
|
|
10016
10016
|
children = _ref.children,
|
|
10017
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
10017
|
+
props = _objectWithoutProperties(_ref, _excluded$W);
|
|
10018
10018
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
10019
10019
|
variant: "Caption 1",
|
|
10020
10020
|
weight: weight,
|
|
@@ -10023,12 +10023,12 @@
|
|
|
10023
10023
|
});
|
|
10024
10024
|
Caption1.displayName = "Caption1";
|
|
10025
10025
|
|
|
10026
|
-
var _excluded$
|
|
10026
|
+
var _excluded$V = ["weight", "children"];
|
|
10027
10027
|
var Caption2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
10028
10028
|
var _ref$weight = _ref.weight,
|
|
10029
10029
|
weight = _ref$weight === void 0 ? "regular" : _ref$weight,
|
|
10030
10030
|
children = _ref.children,
|
|
10031
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
10031
|
+
props = _objectWithoutProperties(_ref, _excluded$V);
|
|
10032
10032
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
10033
10033
|
variant: "Caption 2",
|
|
10034
10034
|
weight: weight,
|
|
@@ -10140,7 +10140,7 @@
|
|
|
10140
10140
|
componentId: "sc-5x2tyd-1"
|
|
10141
10141
|
})(["border-radius:100%;object-fit:cover;"]);
|
|
10142
10142
|
|
|
10143
|
-
var _excluded$
|
|
10143
|
+
var _excluded$U = ["url", "alt", "size", "className", "imgClassName", "children"];
|
|
10144
10144
|
/**
|
|
10145
10145
|
* @component Avatar
|
|
10146
10146
|
* @description
|
|
@@ -10175,7 +10175,7 @@
|
|
|
10175
10175
|
className = _ref.className,
|
|
10176
10176
|
imgClassName = _ref.imgClassName,
|
|
10177
10177
|
children = _ref.children,
|
|
10178
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10178
|
+
rest = _objectWithoutProperties(_ref, _excluded$U);
|
|
10179
10179
|
var _useState = React.useState(false),
|
|
10180
10180
|
_useState2 = _slicedToArray(_useState, 2),
|
|
10181
10181
|
imageLoaded = _useState2[0],
|
|
@@ -10216,13 +10216,13 @@
|
|
|
10216
10216
|
return props.$color && styled.css(["background-color:", ";"], props.$color);
|
|
10217
10217
|
});
|
|
10218
10218
|
|
|
10219
|
-
var _excluded$
|
|
10219
|
+
var _excluded$T = ["color", "size", "className"];
|
|
10220
10220
|
var Dot = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
10221
10221
|
var color = _ref.color,
|
|
10222
10222
|
_ref$size = _ref.size,
|
|
10223
10223
|
size = _ref$size === void 0 ? 8 : _ref$size,
|
|
10224
10224
|
className = _ref.className,
|
|
10225
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10225
|
+
rest = _objectWithoutProperties(_ref, _excluded$T);
|
|
10226
10226
|
return /*#__PURE__*/React__default["default"].createElement(StyledDot, _extends({
|
|
10227
10227
|
className: classNames__default["default"]("c-dot", className),
|
|
10228
10228
|
ref: ref,
|
|
@@ -10259,7 +10259,7 @@
|
|
|
10259
10259
|
});
|
|
10260
10260
|
StyledTagText.displayName = "StyledTagText";
|
|
10261
10261
|
|
|
10262
|
-
var _excluded$
|
|
10262
|
+
var _excluded$S = ["name", "color", "showText", "showDot", "className"];
|
|
10263
10263
|
var Tag = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
10264
10264
|
var name = _ref.name,
|
|
10265
10265
|
color = _ref.color,
|
|
@@ -10268,7 +10268,7 @@
|
|
|
10268
10268
|
_ref$showDot = _ref.showDot,
|
|
10269
10269
|
showDot = _ref$showDot === void 0 ? true : _ref$showDot,
|
|
10270
10270
|
className = _ref.className,
|
|
10271
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10271
|
+
rest = _objectWithoutProperties(_ref, _excluded$S);
|
|
10272
10272
|
return /*#__PURE__*/React__default["default"].createElement(StyledTag, _extends({
|
|
10273
10273
|
className: classNames__default["default"]("c-tag", className),
|
|
10274
10274
|
ref: ref
|
|
@@ -10398,7 +10398,7 @@
|
|
|
10398
10398
|
});
|
|
10399
10399
|
StyledCheckbox$1.displayName = "StyledCheckbox";
|
|
10400
10400
|
|
|
10401
|
-
var _excluded$
|
|
10401
|
+
var _excluded$R = ["isIndeterminate", "data-testid"];
|
|
10402
10402
|
|
|
10403
10403
|
/**
|
|
10404
10404
|
* @component CheckboxIcon
|
|
@@ -10422,7 +10422,7 @@
|
|
|
10422
10422
|
var CheckboxIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, svgRef) {
|
|
10423
10423
|
var isIndeterminate = _ref.isIndeterminate,
|
|
10424
10424
|
testId = _ref["data-testid"],
|
|
10425
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
10425
|
+
props = _objectWithoutProperties(_ref, _excluded$R);
|
|
10426
10426
|
var _useState = React.useState(false),
|
|
10427
10427
|
_useState2 = _slicedToArray(_useState, 2),
|
|
10428
10428
|
animate = _useState2[0],
|
|
@@ -10491,7 +10491,7 @@
|
|
|
10491
10491
|
CheckboxIcon.displayName = "CheckboxIcon";
|
|
10492
10492
|
var CheckboxIcon$1 = CheckboxIcon;
|
|
10493
10493
|
|
|
10494
|
-
var _excluded$
|
|
10494
|
+
var _excluded$Q = ["className", "hover", "id", "isIndeterminate"];
|
|
10495
10495
|
/**
|
|
10496
10496
|
* Checkbox component
|
|
10497
10497
|
*/
|
|
@@ -10501,7 +10501,7 @@
|
|
|
10501
10501
|
_ref$id = _ref.id,
|
|
10502
10502
|
id = _ref$id === void 0 ? "checkbox" : _ref$id,
|
|
10503
10503
|
isIndeterminate = _ref.isIndeterminate,
|
|
10504
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10504
|
+
rest = _objectWithoutProperties(_ref, _excluded$Q);
|
|
10505
10505
|
return /*#__PURE__*/React__default["default"].createElement(StyledCheckbox$1, {
|
|
10506
10506
|
className: classNames__default["default"]("c-checkbox", {
|
|
10507
10507
|
"c-checkbox__hover": hover,
|
|
@@ -10706,7 +10706,7 @@
|
|
|
10706
10706
|
StyledScrollShadowLeft.displayName = "StyledScrollShadowLeft";
|
|
10707
10707
|
StyledScrollShadowRight.displayName = "StyledScrollShadowRight";
|
|
10708
10708
|
|
|
10709
|
-
var _excluded$
|
|
10709
|
+
var _excluded$P = ["children", "className", "disableVertical", "disableHorizontal", "invertHorizontal", "invertVertical", "innerColor", "outerColor"];
|
|
10710
10710
|
var ScrollShadow = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
10711
10711
|
var children = _ref.children,
|
|
10712
10712
|
className = _ref.className,
|
|
@@ -10720,7 +10720,7 @@
|
|
|
10720
10720
|
invertVertical = _ref$invertVertical === void 0 ? false : _ref$invertVertical,
|
|
10721
10721
|
innerColor = _ref.innerColor,
|
|
10722
10722
|
outerColor = _ref.outerColor,
|
|
10723
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10723
|
+
rest = _objectWithoutProperties(_ref, _excluded$P);
|
|
10724
10724
|
var _useState = React.useState({
|
|
10725
10725
|
top: 0,
|
|
10726
10726
|
right: 0,
|
|
@@ -10840,7 +10840,7 @@
|
|
|
10840
10840
|
return height;
|
|
10841
10841
|
};
|
|
10842
10842
|
|
|
10843
|
-
var _excluded$
|
|
10843
|
+
var _excluded$O = ["as", "className", "invert", "style"];
|
|
10844
10844
|
var ScrollElement = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
10845
10845
|
var _ref$as = _ref.as,
|
|
10846
10846
|
as = _ref$as === void 0 ? "div" : _ref$as,
|
|
@@ -10848,7 +10848,7 @@
|
|
|
10848
10848
|
_ref$invert = _ref.invert,
|
|
10849
10849
|
invert = _ref$invert === void 0 ? false : _ref$invert,
|
|
10850
10850
|
style = _ref.style,
|
|
10851
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10851
|
+
rest = _objectWithoutProperties(_ref, _excluded$O);
|
|
10852
10852
|
var internalRef = useInitScrollRef(null, invert);
|
|
10853
10853
|
var handleRef = useForkRef(internalRef, ref);
|
|
10854
10854
|
var props = _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
@@ -11330,7 +11330,7 @@
|
|
|
11330
11330
|
});
|
|
11331
11331
|
StyledInput$2.displayName = "StyledInput";
|
|
11332
11332
|
|
|
11333
|
-
var _excluded$
|
|
11333
|
+
var _excluded$N = ["className", "style", "type", "disabled", "size", "invalid", "startAdornment", "endAdornment", "wrapRef", "wrapperClick"];
|
|
11334
11334
|
var Input = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
11335
11335
|
var _ref$className = _ref.className,
|
|
11336
11336
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
@@ -11347,7 +11347,7 @@
|
|
|
11347
11347
|
endAdornment = _ref.endAdornment,
|
|
11348
11348
|
wrapRef = _ref.wrapRef,
|
|
11349
11349
|
wrapperClick = _ref.wrapperClick,
|
|
11350
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11350
|
+
rest = _objectWithoutProperties(_ref, _excluded$N);
|
|
11351
11351
|
var intInputRef = React.useRef(null);
|
|
11352
11352
|
var handleRef = useForkRef(ref, intInputRef);
|
|
11353
11353
|
var handleWrapperClick = React.useCallback(function () {
|
|
@@ -11401,14 +11401,14 @@
|
|
|
11401
11401
|
}, StyledRadioLabel);
|
|
11402
11402
|
StyledRadioButton$1.displayName = "StyledRadioButton";
|
|
11403
11403
|
|
|
11404
|
-
var _excluded$
|
|
11404
|
+
var _excluded$M = ["className", "id", "hover"];
|
|
11405
11405
|
var RadioButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
11406
11406
|
var _ref$className = _ref.className,
|
|
11407
11407
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
11408
11408
|
_ref$id = _ref.id,
|
|
11409
11409
|
id = _ref$id === void 0 ? "radio" : _ref$id,
|
|
11410
11410
|
hover = _ref.hover,
|
|
11411
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
11411
|
+
props = _objectWithoutProperties(_ref, _excluded$M);
|
|
11412
11412
|
return /*#__PURE__*/React__default["default"].createElement(StyledRadioButton$1, {
|
|
11413
11413
|
className: classNames__default["default"]("c-radio-btn", {
|
|
11414
11414
|
"c-radio-btn__hover": hover,
|
|
@@ -11616,7 +11616,7 @@
|
|
|
11616
11616
|
};
|
|
11617
11617
|
OptionContent.displayName = "OptionContent";
|
|
11618
11618
|
|
|
11619
|
-
var _excluded$
|
|
11619
|
+
var _excluded$L = ["type", "mode", "target", "options", "selected", "position", "onChange", "actionIcon", "actionLabel", "placeholder", "emptyAction", "disableSearch", "forceCloseMenu", "selectClassName", "keepSameOptionsOrder", "onSelectOpen", "onSelectClose", "renderOption", "handleDefaultOptionChange", "preselectDefaultValue"];
|
|
11620
11620
|
var Select = function Select(_ref) {
|
|
11621
11621
|
var _ref$type = _ref.type,
|
|
11622
11622
|
type = _ref$type === void 0 ? "single" : _ref$type,
|
|
@@ -11650,7 +11650,7 @@
|
|
|
11650
11650
|
handleDefaultOptionChange = _ref.handleDefaultOptionChange,
|
|
11651
11651
|
_ref$preselectDefault = _ref.preselectDefaultValue,
|
|
11652
11652
|
preselectDefaultValue = _ref$preselectDefault === void 0 ? type === "single" : _ref$preselectDefault,
|
|
11653
|
-
prop = _objectWithoutProperties(_ref, _excluded$
|
|
11653
|
+
prop = _objectWithoutProperties(_ref, _excluded$L);
|
|
11654
11654
|
var childNode = React.useRef();
|
|
11655
11655
|
var elementRef = React.useRef(null);
|
|
11656
11656
|
var handleRef = useForkRef(childNode, elementRef);
|
|
@@ -11905,7 +11905,7 @@
|
|
|
11905
11905
|
});
|
|
11906
11906
|
StyledNavAsMoreTarget.displayName = "StyledNavAsMoreTarget";
|
|
11907
11907
|
|
|
11908
|
-
var _excluded$
|
|
11908
|
+
var _excluded$K = ["children", "active", "disabled", "className", "role"];
|
|
11909
11909
|
var Item = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
11910
11910
|
var children = _ref.children,
|
|
11911
11911
|
_ref$active = _ref.active,
|
|
@@ -11914,7 +11914,7 @@
|
|
|
11914
11914
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
11915
11915
|
className = _ref.className,
|
|
11916
11916
|
role = _ref.role,
|
|
11917
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11917
|
+
rest = _objectWithoutProperties(_ref, _excluded$K);
|
|
11918
11918
|
return /*#__PURE__*/React__default["default"].createElement(StyledNavListItem, _extends({
|
|
11919
11919
|
className: classNames__default["default"]("c-nav__item", {
|
|
11920
11920
|
"c-nav__item--active": active
|
|
@@ -11955,11 +11955,11 @@
|
|
|
11955
11955
|
});
|
|
11956
11956
|
StyledExpandSingle.displayName = "StyledExpandSingle";
|
|
11957
11957
|
|
|
11958
|
-
var _excluded$
|
|
11958
|
+
var _excluded$J = ["expanded"];
|
|
11959
11959
|
var ExpandSingle = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
11960
11960
|
var _ref$expanded = _ref.expanded,
|
|
11961
11961
|
expanded = _ref$expanded === void 0 ? false : _ref$expanded,
|
|
11962
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11962
|
+
rest = _objectWithoutProperties(_ref, _excluded$J);
|
|
11963
11963
|
return /*#__PURE__*/React__default["default"].createElement(StyledExpandSingle, _extends({
|
|
11964
11964
|
ref: ref,
|
|
11965
11965
|
viewBox: "0 0 24 24",
|
|
@@ -12249,7 +12249,7 @@
|
|
|
12249
12249
|
};
|
|
12250
12250
|
Nav.displayName = "Nav";
|
|
12251
12251
|
|
|
12252
|
-
var _excluded$
|
|
12252
|
+
var _excluded$I = ["children", "as", "disablePointerEvents"];
|
|
12253
12253
|
var InputAdornmentBase = styled__default["default"].div.withConfig({
|
|
12254
12254
|
displayName: "InputAdornment__InputAdornmentBase",
|
|
12255
12255
|
componentId: "sc-1xfjx1z-0"
|
|
@@ -12266,7 +12266,7 @@
|
|
|
12266
12266
|
var children = _ref.children,
|
|
12267
12267
|
as = _ref.as,
|
|
12268
12268
|
disablePointerEvents = _ref.disablePointerEvents,
|
|
12269
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12269
|
+
rest = _objectWithoutProperties(_ref, _excluded$I);
|
|
12270
12270
|
var Component = as || "div";
|
|
12271
12271
|
return /*#__PURE__*/React__default["default"].createElement(InputAdornmentBase, _extends({}, rest, {
|
|
12272
12272
|
as: Component,
|
|
@@ -12276,263 +12276,706 @@
|
|
|
12276
12276
|
});
|
|
12277
12277
|
InputAdornment.displayName = "InputAdornment";
|
|
12278
12278
|
|
|
12279
|
-
|
|
12280
|
-
|
|
12281
|
-
|
|
12282
|
-
|
|
12283
|
-
|
|
12284
|
-
|
|
12285
|
-
|
|
12286
|
-
|
|
12287
|
-
|
|
12288
|
-
|
|
12289
|
-
|
|
12290
|
-
|
|
12291
|
-
|
|
12292
|
-
|
|
12293
|
-
|
|
12279
|
+
// export const decimalToHours = (decimal: string) => {
|
|
12280
|
+
// // we round it on two decimals first, to eliminate quirks, eg, 5.99999999 will return 5:59 instead of 6:00
|
|
12281
|
+
// decimal = parseFloat(decimal).toFixed(2);
|
|
12282
|
+
// decimal = decimal + "";
|
|
12283
|
+
// let hours;
|
|
12284
|
+
// let minutes_decimal;
|
|
12285
|
+
//
|
|
12286
|
+
// if (decimal.indexOf(".") < 0) {
|
|
12287
|
+
// hours = parseInt(decimal);
|
|
12288
|
+
// minutes_decimal = 0;
|
|
12289
|
+
// } else {
|
|
12290
|
+
// hours = parseInt(decimal.substring(0, decimal.indexOf(".")));
|
|
12291
|
+
// minutes_decimal = decimal.substring(decimal.indexOf(".") + 1);
|
|
12292
|
+
// minutes_decimal = minutes_decimal.substring(0, 2);
|
|
12293
|
+
// if (minutes_decimal.length === 1) {
|
|
12294
|
+
// minutes_decimal += "0";
|
|
12295
|
+
// } // if
|
|
12296
|
+
// minutes_decimal = parseInt(minutes_decimal);
|
|
12297
|
+
// } // if
|
|
12298
|
+
//
|
|
12299
|
+
// const minutes = Math.round((minutes_decimal / 100) * 60);
|
|
12300
|
+
//
|
|
12301
|
+
// if (hours < 10) {
|
|
12302
|
+
// hours = `0${hours}`;
|
|
12303
|
+
// }
|
|
12304
|
+
// return {
|
|
12305
|
+
// hours: hours,
|
|
12306
|
+
// minutes: minutes,
|
|
12307
|
+
// };
|
|
12308
|
+
// };
|
|
12294
12309
|
|
|
12295
|
-
var
|
|
12296
|
-
|
|
12297
|
-
|
|
12298
|
-
|
|
12299
|
-
|
|
12300
|
-
"
|
|
12301
|
-
|
|
12310
|
+
var decimalToHours = function decimalToHours(num) {
|
|
12311
|
+
var withLeadingZeroHours = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
12312
|
+
if (!num) {
|
|
12313
|
+
return "";
|
|
12314
|
+
}
|
|
12315
|
+
if (typeof num === "string" && !num) {
|
|
12316
|
+
return withLeadingZeroHours ? "00:00" : "0:00";
|
|
12317
|
+
}
|
|
12318
|
+
if (typeof num === "string" && num.indexOf(":") >= 0) {
|
|
12319
|
+
//eslint-disable-next-line
|
|
12320
|
+
var _num$split = num.split(":"),
|
|
12321
|
+
_num$split2 = _slicedToArray(_num$split, 2),
|
|
12322
|
+
_hours = _num$split2[0],
|
|
12323
|
+
_minutes = _num$split2[1];
|
|
12324
|
+
if (_minutes && _minutes.length === 1 && Number(_minutes) < 10) {
|
|
12325
|
+
_minutes = "".concat(Number(_minutes), "0");
|
|
12326
|
+
}
|
|
12327
|
+
if (_hours && _minutes) {
|
|
12328
|
+
if (withLeadingZeroHours) {
|
|
12329
|
+
return "".concat(withLeadingZero(_hours), ":").concat(_minutes);
|
|
12330
|
+
}
|
|
12331
|
+
return "".concat(_hours, ":").concat(_minutes);
|
|
12332
|
+
} else if (!_hours && _minutes) {
|
|
12333
|
+
return withLeadingZeroHours ? "00:".concat(_minutes) : "0:".concat(_minutes);
|
|
12334
|
+
} else if (!_minutes && _hours) {
|
|
12335
|
+
return withLeadingZeroHours ? "".concat(withLeadingZero(_hours), ":00") : "".concat(_hours, ":00");
|
|
12336
|
+
} else {
|
|
12337
|
+
return withLeadingZeroHours ? "00:00" : "0:00";
|
|
12338
|
+
}
|
|
12339
|
+
}
|
|
12340
|
+
if (typeof num === "string" && num.indexOf(",") >= 0) {
|
|
12341
|
+
num = num.replace(",", ".");
|
|
12342
|
+
}
|
|
12343
|
+
var input = typeof num === "string" ? parseFloat(num) : num;
|
|
12344
|
+
if (!isDecimal(input)) {
|
|
12345
|
+
if (withLeadingZeroHours) {
|
|
12346
|
+
return "".concat(withLeadingZero(input), ":00");
|
|
12347
|
+
}
|
|
12348
|
+
return "".concat(input, ":00");
|
|
12349
|
+
}
|
|
12350
|
+
var decimal = input.toFixed(2);
|
|
12351
|
+
var time = decimal.toString().split(".");
|
|
12352
|
+
var hours = time[0];
|
|
12353
|
+
if (withLeadingZeroHours) {
|
|
12354
|
+
hours = withLeadingZero(hours);
|
|
12355
|
+
}
|
|
12356
|
+
var minutes = time[1];
|
|
12357
|
+
var minutes_formatted = Math.round(parseInt(minutes, 10) / 100 * 60);
|
|
12358
|
+
return "".concat(hours, ":").concat(withLeadingZero(minutes_formatted));
|
|
12359
|
+
};
|
|
12360
|
+
var withLeadingZero = function withLeadingZero(num) {
|
|
12361
|
+
var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
12362
|
+
var s = "".concat(num);
|
|
12363
|
+
while (s.length < size) {
|
|
12364
|
+
s = "0" + s;
|
|
12365
|
+
}
|
|
12366
|
+
return s;
|
|
12367
|
+
};
|
|
12368
|
+
var isDecimal = function isDecimal(num) {
|
|
12369
|
+
return !Number.isInteger(num);
|
|
12370
|
+
};
|
|
12371
|
+
|
|
12372
|
+
var StyledDiv = styled__default["default"].div.withConfig({
|
|
12373
|
+
displayName: "Styles__StyledDiv",
|
|
12374
|
+
componentId: "sc-1wapx2a-0"
|
|
12375
|
+
})(["", " ", " ", ""], FontStyle, BoxSizingStyle, {
|
|
12376
|
+
"position": "relative",
|
|
12377
|
+
"display": "inline-block",
|
|
12378
|
+
"maxWidth": "100%"
|
|
12302
12379
|
});
|
|
12303
|
-
|
|
12304
|
-
|
|
12305
|
-
|
|
12306
|
-
|
|
12307
|
-
|
|
12308
|
-
"
|
|
12309
|
-
"flexShrink": "0",
|
|
12310
|
-
"cursor": "pointer",
|
|
12311
|
-
"stroke": "currentColor"
|
|
12380
|
+
var StyledSpan = styled__default["default"](Typography).withConfig({
|
|
12381
|
+
displayName: "Styles__StyledSpan",
|
|
12382
|
+
componentId: "sc-1wapx2a-1"
|
|
12383
|
+
})(["visibility:hidden;display:block;padding-left:4px;padding-right:4px;padding-top:1px;padding-bottom:1px;position:relative;border:1px solid transparent;border-radius:6px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:pre;font-variant-numeric:tabular-nums;", " &:empty:before{content:\" \";}"], function (_ref) {
|
|
12384
|
+
var $disabled = _ref.$disabled;
|
|
12385
|
+
return $disabled && styled.css(["visibility:visible;"]);
|
|
12312
12386
|
});
|
|
12313
|
-
|
|
12314
|
-
var
|
|
12315
|
-
displayName: "
|
|
12316
|
-
componentId: "sc-
|
|
12317
|
-
})(["", "
|
|
12318
|
-
|
|
12319
|
-
|
|
12320
|
-
|
|
12321
|
-
|
|
12322
|
-
|
|
12323
|
-
"
|
|
12324
|
-
"
|
|
12325
|
-
"
|
|
12387
|
+
StyledSpan.displayName = "StyledSpan";
|
|
12388
|
+
var StyledInput$1 = styled__default["default"](Typography).withConfig({
|
|
12389
|
+
displayName: "Styles__StyledInput",
|
|
12390
|
+
componentId: "sc-1wapx2a-2"
|
|
12391
|
+
})(["", " background-color:inherit;padding-left:4px;padding-right:4px;padding-top:1px;padding-bottom:1px;text-overflow:ellipsis;font-variant-numeric:tabular-nums;&:focus-whitin{text-overflow:clip;}outline-width:0px;outline:none;&:disabled{display:none;}"], {
|
|
12392
|
+
"position": "absolute",
|
|
12393
|
+
"inset": "0px",
|
|
12394
|
+
"boxSizing": "border-box",
|
|
12395
|
+
"width": "100%",
|
|
12396
|
+
"overflow": "hidden",
|
|
12397
|
+
"whiteSpace": "nowrap",
|
|
12398
|
+
"borderRadius": "0.375rem",
|
|
12399
|
+
"borderWidth": "1px",
|
|
12400
|
+
"borderStyle": "solid",
|
|
12401
|
+
"borderColor": "transparent",
|
|
12402
|
+
":focus-within": {
|
|
12403
|
+
"overflow": "scroll",
|
|
12404
|
+
"borderColor": "var(--color-theme-700)"
|
|
12405
|
+
},
|
|
12406
|
+
":hover": {
|
|
12407
|
+
"borderColor": "var(--color-theme-700)"
|
|
12408
|
+
}
|
|
12326
12409
|
});
|
|
12327
|
-
|
|
12410
|
+
StyledInput$1.displayName = "StyledInput";
|
|
12328
12411
|
|
|
12329
|
-
var
|
|
12330
|
-
|
|
12331
|
-
children = _ref.children,
|
|
12332
|
-
placeholder = _ref.placeholder,
|
|
12333
|
-
onChange = _ref.onChange,
|
|
12334
|
-
onBack = _ref.onBack,
|
|
12335
|
-
onEdit = _ref.onEdit,
|
|
12336
|
-
_ref$autoFocus = _ref.autoFocus,
|
|
12337
|
-
autoFocus = _ref$autoFocus === void 0 ? false : _ref$autoFocus,
|
|
12338
|
-
className = _ref.className,
|
|
12339
|
-
onFocus = _ref.onFocus,
|
|
12340
|
-
onBlur = _ref.onBlur,
|
|
12341
|
-
_ref$autoComplete = _ref.autoComplete,
|
|
12342
|
-
autoComplete = _ref$autoComplete === void 0 ? false : _ref$autoComplete;
|
|
12343
|
-
var handleChange = React.useCallback(function (e) {
|
|
12344
|
-
if (typeof onChange === "function") {
|
|
12345
|
-
onChange(e.target.value);
|
|
12346
|
-
}
|
|
12347
|
-
}, [onChange]);
|
|
12348
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledMenuSelector, {
|
|
12349
|
-
className: classNames__default["default"]("c-menu-selector", className)
|
|
12350
|
-
}, /*#__PURE__*/React__default["default"].createElement(StyledMenuSelectorInner, null, typeof onBack === "function" ? /*#__PURE__*/React__default["default"].createElement(StyledMenuSelectorBack, {
|
|
12351
|
-
onClick: onBack,
|
|
12352
|
-
width: "16px",
|
|
12353
|
-
height: "16px"
|
|
12354
|
-
}) : null, /*#__PURE__*/React__default["default"].createElement(Input, {
|
|
12355
|
-
onChange: handleChange,
|
|
12356
|
-
placeholder: placeholder,
|
|
12357
|
-
autoFocus: autoFocus,
|
|
12358
|
-
defaultValue: defaultValue,
|
|
12359
|
-
onFocus: onFocus,
|
|
12360
|
-
onBlur: onBlur,
|
|
12361
|
-
autoComplete: autoComplete ? "on" : "off"
|
|
12362
|
-
}), typeof onEdit === "function" ? /*#__PURE__*/React__default["default"].createElement(StyledMenuSelectorDots, {
|
|
12363
|
-
onClick: onEdit
|
|
12364
|
-
}) : null), children);
|
|
12365
|
-
};
|
|
12366
|
-
MenuSelector.displayName = "MenuSelector";
|
|
12367
|
-
|
|
12368
|
-
var StyledTextarea = styled__default["default"].textarea.withConfig({
|
|
12369
|
-
displayName: "Styles__StyledTextarea",
|
|
12370
|
-
componentId: "sc-m6jqw8-0"
|
|
12371
|
-
})(["", " ", " ", " ", " ", " border-width:1px;border-style:solid;", " border-radius:8px;padding:4px 8px 6px 8px;height:auto;background-color:var(--input-background-color);transition:all 0.3s ease;width:360px;min-height:90px;outline:none;", " ", " ", " ", " &::placeholder{", "}", ""], {
|
|
12372
|
-
"fontSize": "0.875rem"
|
|
12373
|
-
}, {
|
|
12374
|
-
"color": "var(--color-theme-900)"
|
|
12375
|
-
}, {
|
|
12376
|
-
"lineHeight": "1.375"
|
|
12377
|
-
}, {
|
|
12378
|
-
"letterSpacing": "0.02em"
|
|
12379
|
-
}, {
|
|
12380
|
-
"fontWeight": "400"
|
|
12381
|
-
}, {
|
|
12382
|
-
"borderColor": "var(--color-theme-500)"
|
|
12383
|
-
}, FontStyle, BoxSizingStyle, function (props) {
|
|
12384
|
-
return props.disabled && styled.css(["", ""], {
|
|
12385
|
-
"cursor": "not-allowed",
|
|
12386
|
-
"opacity": "0.5"
|
|
12387
|
-
});
|
|
12388
|
-
}, function (props) {
|
|
12389
|
-
return !props.disabled && !props.$invalid && styled.css(["&:active,&:focus,&:hover{", "}"], {
|
|
12390
|
-
"borderColor": "var(--color-primary)"
|
|
12391
|
-
});
|
|
12392
|
-
}, {
|
|
12393
|
-
"color": "var(--color-theme-transparent-500)"
|
|
12394
|
-
}, function (props) {
|
|
12395
|
-
return !props.disabled && props.$invalid && styled.css(["", ""], {
|
|
12396
|
-
"borderColor": "var(--red-alert)"
|
|
12397
|
-
});
|
|
12398
|
-
});
|
|
12399
|
-
StyledTextarea.displayName = "StyledTextarea";
|
|
12400
|
-
|
|
12401
|
-
var _excluded$F = ["className", "disabled", "invalid"];
|
|
12402
|
-
var Textarea = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
12412
|
+
var _excluded$H = ["className", "variant", "weight", "disabled", "inputProps", "wrapRef"];
|
|
12413
|
+
var EditableContent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
12403
12414
|
var className = _ref.className,
|
|
12415
|
+
_ref$variant = _ref.variant,
|
|
12416
|
+
variant = _ref$variant === void 0 ? "Body 2" : _ref$variant,
|
|
12417
|
+
weight = _ref.weight,
|
|
12404
12418
|
_ref$disabled = _ref.disabled,
|
|
12405
12419
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
12406
|
-
|
|
12407
|
-
|
|
12408
|
-
|
|
12409
|
-
|
|
12410
|
-
|
|
12411
|
-
|
|
12420
|
+
inputProps = _ref.inputProps,
|
|
12421
|
+
wrapRef = _ref.wrapRef,
|
|
12422
|
+
props = _objectWithoutProperties(_ref, _excluded$H);
|
|
12423
|
+
var intInputRef = React.useRef(null);
|
|
12424
|
+
var handleRef = useForkRef(ref, intInputRef);
|
|
12425
|
+
var handleBlur = React.useCallback(function (evt) {
|
|
12426
|
+
if (intInputRef !== null && intInputRef !== void 0 && intInputRef.current) {
|
|
12427
|
+
intInputRef.current.scrollLeft = 0;
|
|
12428
|
+
}
|
|
12429
|
+
typeof (inputProps === null || inputProps === void 0 ? void 0 : inputProps.onBlur) === "function" && (inputProps === null || inputProps === void 0 ? void 0 : inputProps.onBlur(evt));
|
|
12430
|
+
}, [inputProps]);
|
|
12431
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledDiv, _extends({
|
|
12432
|
+
className: className,
|
|
12433
|
+
ref: wrapRef
|
|
12434
|
+
}, props), /*#__PURE__*/React__default["default"].createElement(StyledSpan, {
|
|
12435
|
+
variant: variant,
|
|
12436
|
+
forwardedAs: "span",
|
|
12437
|
+
weight: weight,
|
|
12438
|
+
$disabled: disabled
|
|
12439
|
+
}, inputProps === null || inputProps === void 0 ? void 0 : inputProps.value), /*#__PURE__*/React__default["default"].createElement(StyledInput$1, _extends({}, inputProps, {
|
|
12440
|
+
ref: handleRef,
|
|
12441
|
+
forwardedAs: "input",
|
|
12442
|
+
variant: variant,
|
|
12443
|
+
weight: weight,
|
|
12444
|
+
value: inputProps === null || inputProps === void 0 ? void 0 : inputProps.value,
|
|
12445
|
+
onBlur: handleBlur,
|
|
12412
12446
|
disabled: disabled,
|
|
12413
|
-
|
|
12414
|
-
|
|
12415
|
-
}, className)
|
|
12416
|
-
}));
|
|
12447
|
+
"data-form-type": "other"
|
|
12448
|
+
})));
|
|
12417
12449
|
});
|
|
12418
|
-
|
|
12450
|
+
EditableContent.displayName = "EditableContent";
|
|
12419
12451
|
|
|
12420
|
-
|
|
12421
|
-
for (var _len = arguments.length, functions = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
12422
|
-
functions[_key] = arguments[_key];
|
|
12423
|
-
}
|
|
12424
|
-
return functions.reduce(function (acc, func) {
|
|
12425
|
-
if (func === null) {
|
|
12426
|
-
return acc;
|
|
12427
|
-
}
|
|
12428
|
-
return function chainedFunction() {
|
|
12429
|
-
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
12430
|
-
args[_key2] = arguments[_key2];
|
|
12431
|
-
}
|
|
12432
|
-
acc && acc.apply(this, args);
|
|
12433
|
-
func && func.apply(this, args);
|
|
12434
|
-
};
|
|
12435
|
-
},
|
|
12436
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
12437
|
-
function () {});
|
|
12438
|
-
}
|
|
12452
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
12439
12453
|
|
|
12440
|
-
var
|
|
12441
|
-
var getHasTransition = function getHasTransition(children) {
|
|
12442
|
-
return children.props ? Object.prototype.hasOwnProperty.call(children.props, "in") : false;
|
|
12443
|
-
};
|
|
12444
|
-
var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
12454
|
+
var HoursWrapper = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
12445
12455
|
var children = _ref.children,
|
|
12446
|
-
|
|
12447
|
-
|
|
12448
|
-
|
|
12449
|
-
|
|
12450
|
-
_ref$
|
|
12451
|
-
|
|
12452
|
-
_ref$
|
|
12453
|
-
|
|
12454
|
-
_ref$
|
|
12455
|
-
|
|
12456
|
-
_ref$
|
|
12457
|
-
|
|
12458
|
-
|
|
12459
|
-
|
|
12460
|
-
|
|
12461
|
-
|
|
12456
|
+
value = _ref.value,
|
|
12457
|
+
onCancel = _ref.onCancel,
|
|
12458
|
+
onSave = _ref.onSave,
|
|
12459
|
+
allowEmptyValue = _ref.allowEmptyValue,
|
|
12460
|
+
_ref$withLeadingZero = _ref.withLeadingZero,
|
|
12461
|
+
withLeadingZero = _ref$withLeadingZero === void 0 ? true : _ref$withLeadingZero,
|
|
12462
|
+
_ref$validation = _ref.validation,
|
|
12463
|
+
validation = _ref$validation === void 0 ? validateTimeInput : _ref$validation,
|
|
12464
|
+
_ref$incrementOnlySel = _ref.incrementOnlySelected,
|
|
12465
|
+
incrementOnlySelected = _ref$incrementOnlySel === void 0 ? false : _ref$incrementOnlySel,
|
|
12466
|
+
_ref$minuteIncrement = _ref.minuteIncrement,
|
|
12467
|
+
minuteIncrement = _ref$minuteIncrement === void 0 ? 1 : _ref$minuteIncrement;
|
|
12468
|
+
var inputRef = React.useRef(null);
|
|
12469
|
+
var handleRef = useForkRef(ref, inputRef);
|
|
12470
|
+
var _useState = React.useState(function () {
|
|
12471
|
+
return decimalToHours(value, withLeadingZero);
|
|
12472
|
+
}),
|
|
12462
12473
|
_useState2 = _slicedToArray(_useState, 2),
|
|
12463
|
-
|
|
12464
|
-
|
|
12465
|
-
var _useState3 = React.useState(
|
|
12474
|
+
currentValue = _useState2[0],
|
|
12475
|
+
setCurrentValue = _useState2[1];
|
|
12476
|
+
var _useState3 = React.useState(function () {
|
|
12477
|
+
return decimalToHours(value, withLeadingZero);
|
|
12478
|
+
}),
|
|
12466
12479
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
12467
|
-
|
|
12468
|
-
|
|
12469
|
-
var
|
|
12470
|
-
var handleRef = useForkRef(innerRef, ref);
|
|
12471
|
-
var hasTransition = React.useMemo(function () {
|
|
12472
|
-
return getHasTransition(children);
|
|
12473
|
-
}, [children]);
|
|
12480
|
+
prevValue = _useState4[0],
|
|
12481
|
+
setPrevValue = _useState4[1];
|
|
12482
|
+
var escapeRef = React.useRef(false);
|
|
12474
12483
|
React.useEffect(function () {
|
|
12475
|
-
|
|
12476
|
-
|
|
12477
|
-
|
|
12478
|
-
setOpen(false);
|
|
12479
|
-
if (!hasTransition) {
|
|
12480
|
-
typeof onClose === "function" && onClose();
|
|
12481
|
-
}
|
|
12482
|
-
}, [hasTransition, onClose]);
|
|
12483
|
-
var handleBackgroundClick = React.useCallback(function (event) {
|
|
12484
|
-
if (!disableBackgroundClick) {
|
|
12485
|
-
event.preventDefault();
|
|
12486
|
-
return handleClose();
|
|
12484
|
+
var _value;
|
|
12485
|
+
if (value !== undefined) {
|
|
12486
|
+
_value = decimalToHours(value, withLeadingZero);
|
|
12487
12487
|
}
|
|
12488
|
-
if (
|
|
12489
|
-
|
|
12488
|
+
if (currentValue !== _value) {
|
|
12489
|
+
setCurrentValue(_value);
|
|
12490
|
+
setPrevValue(_value);
|
|
12490
12491
|
}
|
|
12491
|
-
|
|
12492
|
-
|
|
12493
|
-
|
|
12494
|
-
|
|
12495
|
-
|
|
12496
|
-
|
|
12497
|
-
|
|
12498
|
-
|
|
12499
|
-
|
|
12500
|
-
|
|
12501
|
-
|
|
12502
|
-
|
|
12503
|
-
|
|
12504
|
-
|
|
12505
|
-
onEnter: createChainedFunction(handleEnter, children.props.onEnter),
|
|
12506
|
-
onExited: createChainedFunction(handleExited, children.props.onExited),
|
|
12507
|
-
in: open
|
|
12508
|
-
};
|
|
12492
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
12493
|
+
}, [value]);
|
|
12494
|
+
var handleBlur = React.useCallback(function (e) {
|
|
12495
|
+
if (escapeRef.current) {
|
|
12496
|
+
setCurrentValue(prevValue);
|
|
12497
|
+
} else {
|
|
12498
|
+
if (e.target.value.trim().length > 0 && prevValue !== e.target.value) {
|
|
12499
|
+
var _value = decimalToHours(e.target.value, withLeadingZero);
|
|
12500
|
+
setPrevValue(_value);
|
|
12501
|
+
setCurrentValue(_value);
|
|
12502
|
+
typeof onSave === "function" && onSave(e);
|
|
12503
|
+
} else {
|
|
12504
|
+
!allowEmptyValue ? setCurrentValue(prevValue) : typeof onSave === "function" && prevValue !== e.target.value && onSave(e);
|
|
12505
|
+
}
|
|
12509
12506
|
}
|
|
12510
|
-
|
|
12511
|
-
|
|
12512
|
-
|
|
12513
|
-
|
|
12514
|
-
|
|
12515
|
-
|
|
12516
|
-
|
|
12517
|
-
|
|
12518
|
-
|
|
12519
|
-
|
|
12520
|
-
|
|
12521
|
-
|
|
12522
|
-
|
|
12523
|
-
|
|
12524
|
-
|
|
12525
|
-
|
|
12526
|
-
|
|
12527
|
-
|
|
12528
|
-
|
|
12529
|
-
|
|
12530
|
-
|
|
12531
|
-
|
|
12532
|
-
|
|
12533
|
-
|
|
12534
|
-
|
|
12535
|
-
|
|
12507
|
+
}, [allowEmptyValue, onSave, prevValue, withLeadingZero]);
|
|
12508
|
+
var handleIncrementDecrement = React.useCallback(function (increment) {
|
|
12509
|
+
if (inputRef.current) {
|
|
12510
|
+
var selectionStart = inputRef.current.selectionStart;
|
|
12511
|
+
if (selectionStart !== null) {
|
|
12512
|
+
var dotsIndex = currentValue.indexOf(":");
|
|
12513
|
+
var _currentValue$split$m = currentValue.split(":").map(Number),
|
|
12514
|
+
_currentValue$split$m2 = _slicedToArray(_currentValue$split$m, 2),
|
|
12515
|
+
hours = _currentValue$split$m2[0],
|
|
12516
|
+
minutes = _currentValue$split$m2[1];
|
|
12517
|
+
var newHours = hours;
|
|
12518
|
+
var newMinutes = minutes;
|
|
12519
|
+
if (selectionStart < dotsIndex) {
|
|
12520
|
+
if (increment) {
|
|
12521
|
+
newHours += 1;
|
|
12522
|
+
} else {
|
|
12523
|
+
newHours -= 1;
|
|
12524
|
+
if (newHours < 0) newHours = 0;
|
|
12525
|
+
}
|
|
12526
|
+
} else if (selectionStart > dotsIndex) {
|
|
12527
|
+
if (increment) {
|
|
12528
|
+
newMinutes += minuteIncrement;
|
|
12529
|
+
if (newMinutes > 59) {
|
|
12530
|
+
newMinutes = 0;
|
|
12531
|
+
if (!incrementOnlySelected) newHours += 1;
|
|
12532
|
+
}
|
|
12533
|
+
} else {
|
|
12534
|
+
if (newMinutes >= minuteIncrement || newMinutes === 0) {
|
|
12535
|
+
newMinutes -= minuteIncrement;
|
|
12536
|
+
if (newMinutes < 0 && newHours > 0) {
|
|
12537
|
+
newMinutes = 60 - minuteIncrement;
|
|
12538
|
+
if (!incrementOnlySelected) newHours -= 1;
|
|
12539
|
+
}
|
|
12540
|
+
if (newHours < 0) {
|
|
12541
|
+
newHours = 0;
|
|
12542
|
+
}
|
|
12543
|
+
} else {
|
|
12544
|
+
newMinutes = 0;
|
|
12545
|
+
}
|
|
12546
|
+
}
|
|
12547
|
+
}
|
|
12548
|
+
var newMinutesString = newMinutes < 10 ? "0".concat(newMinutes) : newMinutes;
|
|
12549
|
+
var newHoursString = withLeadingZero && newHours < 10 ? "0".concat(newHours) : newHours;
|
|
12550
|
+
var newValue = "".concat(newHoursString, ":").concat(newMinutesString);
|
|
12551
|
+
if (validation(newValue, withLeadingZero)) {
|
|
12552
|
+
setCurrentValue(newValue);
|
|
12553
|
+
requestAnimationFrame(function () {
|
|
12554
|
+
var _inputRef$current;
|
|
12555
|
+
var newDotsIndex = newValue.indexOf(":");
|
|
12556
|
+
var isHoursSelected = selectionStart < newDotsIndex;
|
|
12557
|
+
var newSelectionStart = isHoursSelected ? 0 : newDotsIndex + 1;
|
|
12558
|
+
var selectionEnd = isHoursSelected ? newDotsIndex : newValue.length;
|
|
12559
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.setSelectionRange(newSelectionStart, selectionEnd);
|
|
12560
|
+
});
|
|
12561
|
+
}
|
|
12562
|
+
}
|
|
12563
|
+
}
|
|
12564
|
+
}, [currentValue, incrementOnlySelected, minuteIncrement, validation, withLeadingZero]);
|
|
12565
|
+
var handleKeyDown = React.useCallback(function (e) {
|
|
12566
|
+
if (e.key === "Enter") {
|
|
12567
|
+
e.target.blur();
|
|
12568
|
+
}
|
|
12569
|
+
if (e.key === "ArrowLeft") {
|
|
12570
|
+
return;
|
|
12571
|
+
}
|
|
12572
|
+
if (e.key === "ArrowRight") {
|
|
12573
|
+
return;
|
|
12574
|
+
}
|
|
12575
|
+
if (e.key === "Escape") {
|
|
12576
|
+
escapeRef.current = true;
|
|
12577
|
+
e.target.blur();
|
|
12578
|
+
typeof onCancel === "function" && onCancel();
|
|
12579
|
+
escapeRef.current = false;
|
|
12580
|
+
}
|
|
12581
|
+
if (e.key === "Backspace") {
|
|
12582
|
+
return;
|
|
12583
|
+
}
|
|
12584
|
+
if ((e.metaKey || e.ctrlKey) && e.key === "a") {
|
|
12585
|
+
var _inputRef$current2;
|
|
12586
|
+
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.select();
|
|
12587
|
+
return;
|
|
12588
|
+
}
|
|
12589
|
+
var input = e.target;
|
|
12590
|
+
var start = input.selectionStart;
|
|
12591
|
+
var end = input.selectionEnd;
|
|
12592
|
+
var currentValue = input.value;
|
|
12593
|
+
if (e.key === "Tab") {
|
|
12594
|
+
if (start !== end) {
|
|
12595
|
+
if (e.shiftKey) {
|
|
12596
|
+
var newDotsIndex = currentValue.indexOf(":");
|
|
12597
|
+
var isMinutesSelected = start > newDotsIndex;
|
|
12598
|
+
if (isMinutesSelected) {
|
|
12599
|
+
var _inputRef$current3;
|
|
12600
|
+
e.preventDefault();
|
|
12601
|
+
(_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 ? void 0 : _inputRef$current3.setSelectionRange(0, newDotsIndex);
|
|
12602
|
+
}
|
|
12603
|
+
} else {
|
|
12604
|
+
var _newDotsIndex = currentValue.indexOf(":");
|
|
12605
|
+
var isHoursSelected = start < _newDotsIndex;
|
|
12606
|
+
if (isHoursSelected) {
|
|
12607
|
+
var _inputRef$current4;
|
|
12608
|
+
e.preventDefault();
|
|
12609
|
+
(_inputRef$current4 = inputRef.current) === null || _inputRef$current4 === void 0 ? void 0 : _inputRef$current4.setSelectionRange(_newDotsIndex + 1, currentValue.length);
|
|
12610
|
+
}
|
|
12611
|
+
}
|
|
12612
|
+
}
|
|
12613
|
+
return;
|
|
12614
|
+
}
|
|
12615
|
+
if (start !== end) {
|
|
12616
|
+
if (e.key === "ArrowUp") {
|
|
12617
|
+
handleIncrementDecrement(true);
|
|
12618
|
+
return;
|
|
12619
|
+
}
|
|
12620
|
+
if (e.key === "ArrowDown") {
|
|
12621
|
+
handleIncrementDecrement(false);
|
|
12622
|
+
return;
|
|
12623
|
+
}
|
|
12624
|
+
var newValue = currentValue.substring(0, start) + e.key + currentValue.substring(end);
|
|
12625
|
+
if (!validation(newValue, withLeadingZero)) {
|
|
12626
|
+
e.preventDefault();
|
|
12627
|
+
return;
|
|
12628
|
+
}
|
|
12629
|
+
} else {
|
|
12630
|
+
var _newValue = currentValue.substring(0, start) + e.key + currentValue.substring(end);
|
|
12631
|
+
if (!validation(_newValue, withLeadingZero)) {
|
|
12632
|
+
e.preventDefault();
|
|
12633
|
+
return;
|
|
12634
|
+
}
|
|
12635
|
+
}
|
|
12636
|
+
}, [handleIncrementDecrement, onCancel, validation, withLeadingZero]);
|
|
12637
|
+
var handleChange = React.useCallback(function (e) {
|
|
12638
|
+
setCurrentValue(e.target.value);
|
|
12639
|
+
}, []);
|
|
12640
|
+
var handleClick = function handleClick() {
|
|
12641
|
+
var _inputRef$current5;
|
|
12642
|
+
var selectionStart = (_inputRef$current5 = inputRef.current) === null || _inputRef$current5 === void 0 ? void 0 : _inputRef$current5.selectionStart;
|
|
12643
|
+
if (inputRef.current && currentValue && currentValue.length > 0 && typeof selectionStart === "number") {
|
|
12644
|
+
var dotsIndex = currentValue.indexOf(":");
|
|
12645
|
+
if (selectionStart < dotsIndex) {
|
|
12646
|
+
var _inputRef$current6;
|
|
12647
|
+
(_inputRef$current6 = inputRef.current) === null || _inputRef$current6 === void 0 ? void 0 : _inputRef$current6.setSelectionRange(0, dotsIndex);
|
|
12648
|
+
} else if (selectionStart >= dotsIndex) {
|
|
12649
|
+
var _inputRef$current7;
|
|
12650
|
+
(_inputRef$current7 = inputRef.current) === null || _inputRef$current7 === void 0 ? void 0 : _inputRef$current7.setSelectionRange(dotsIndex + 1, currentValue.length);
|
|
12651
|
+
}
|
|
12652
|
+
}
|
|
12653
|
+
};
|
|
12654
|
+
var handleDoubleClick = function handleDoubleClick() {
|
|
12655
|
+
if (inputRef.current) {
|
|
12656
|
+
var _inputRef$current8;
|
|
12657
|
+
(_inputRef$current8 = inputRef.current) === null || _inputRef$current8 === void 0 ? void 0 : _inputRef$current8.select();
|
|
12658
|
+
}
|
|
12659
|
+
};
|
|
12660
|
+
var inputProps = {
|
|
12661
|
+
value: currentValue,
|
|
12662
|
+
onBlur: handleBlur,
|
|
12663
|
+
onKeyDown: handleKeyDown,
|
|
12664
|
+
onChange: handleChange,
|
|
12665
|
+
onClick: handleClick,
|
|
12666
|
+
onDoubleClick: handleDoubleClick
|
|
12667
|
+
};
|
|
12668
|
+
if (!children) {
|
|
12669
|
+
console.error("No children provided!");
|
|
12670
|
+
return null;
|
|
12671
|
+
}
|
|
12672
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, React__default["default"].Children.map(children, function (child) {
|
|
12673
|
+
var el = child;
|
|
12674
|
+
if (el && el.type === EditableContent) {
|
|
12675
|
+
return /*#__PURE__*/React__default["default"].cloneElement(child, {
|
|
12676
|
+
ref: handleRef,
|
|
12677
|
+
inputProps: inputProps
|
|
12678
|
+
});
|
|
12679
|
+
}
|
|
12680
|
+
return /*#__PURE__*/React__default["default"].cloneElement(child, _objectSpread2({
|
|
12681
|
+
ref: handleRef
|
|
12682
|
+
}, inputProps));
|
|
12683
|
+
}));
|
|
12684
|
+
});
|
|
12685
|
+
HoursWrapper.displayName = "HoursWrapper";
|
|
12686
|
+
|
|
12687
|
+
var _excluded$G = ["value", "onCancel", "onSave", "allowEmptyValue", "withLeadingZero", "validation", "incrementOnlySelected", "minuteIncrement", "className"];
|
|
12688
|
+
var InputHours = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
12689
|
+
var value = _ref.value,
|
|
12690
|
+
onCancel = _ref.onCancel,
|
|
12691
|
+
onSave = _ref.onSave,
|
|
12692
|
+
allowEmptyValue = _ref.allowEmptyValue,
|
|
12693
|
+
_ref$withLeadingZero = _ref.withLeadingZero,
|
|
12694
|
+
withLeadingZero = _ref$withLeadingZero === void 0 ? true : _ref$withLeadingZero,
|
|
12695
|
+
_ref$validation = _ref.validation,
|
|
12696
|
+
validation = _ref$validation === void 0 ? validateTimeInput : _ref$validation,
|
|
12697
|
+
_ref$incrementOnlySel = _ref.incrementOnlySelected,
|
|
12698
|
+
incrementOnlySelected = _ref$incrementOnlySel === void 0 ? false : _ref$incrementOnlySel,
|
|
12699
|
+
_ref$minuteIncrement = _ref.minuteIncrement,
|
|
12700
|
+
minuteIncrement = _ref$minuteIncrement === void 0 ? 1 : _ref$minuteIncrement,
|
|
12701
|
+
className = _ref.className,
|
|
12702
|
+
rest = _objectWithoutProperties(_ref, _excluded$G);
|
|
12703
|
+
var inputRef = React.useRef(null);
|
|
12704
|
+
var handleRef = useForkRef(ref, inputRef);
|
|
12705
|
+
return /*#__PURE__*/React__default["default"].createElement(HoursWrapper, {
|
|
12706
|
+
value: value,
|
|
12707
|
+
onCancel: onCancel,
|
|
12708
|
+
onSave: onSave,
|
|
12709
|
+
incrementOnlySelected: incrementOnlySelected,
|
|
12710
|
+
minuteIncrement: minuteIncrement,
|
|
12711
|
+
allowEmptyValue: allowEmptyValue,
|
|
12712
|
+
withLeadingZero: withLeadingZero,
|
|
12713
|
+
validation: validation
|
|
12714
|
+
}, /*#__PURE__*/React__default["default"].createElement(Input, _extends({
|
|
12715
|
+
ref: handleRef,
|
|
12716
|
+
className: className,
|
|
12717
|
+
placeholder: withLeadingZero ? "00:00" : "0:00"
|
|
12718
|
+
}, rest)));
|
|
12719
|
+
});
|
|
12720
|
+
InputHours.displayName = "InputHours";
|
|
12721
|
+
|
|
12722
|
+
var _excluded$F = ["expanded"];
|
|
12723
|
+
var ExpandAll = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
12724
|
+
var _ref$expanded = _ref.expanded,
|
|
12725
|
+
expanded = _ref$expanded === void 0 ? false : _ref$expanded,
|
|
12726
|
+
rest = _objectWithoutProperties(_ref, _excluded$F);
|
|
12727
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledExpand, _extends({
|
|
12728
|
+
ref: ref,
|
|
12729
|
+
viewBox: "0 0 24 24"
|
|
12730
|
+
}, rest), expanded ? /*#__PURE__*/React__default["default"].createElement("path", {
|
|
12731
|
+
d: "M13 16l4.72 4.461a.867.867 0 010 1.275.993.993 0 01-1.348 0L13 18.549l-3.372 3.187a.993.993 0 01-1.349 0 .867.867 0 010-1.275L13 16zm4.72-11.736a.867.867 0 010 1.275L13 10 8.28 5.539a.867.867 0 010-1.275.993.993 0 011.348 0L13 7.451l3.372-3.187a.993.993 0 011.349 0zM13 15a2 2 0 100-4 2 2 0 000 4z"
|
|
12732
|
+
}) : /*#__PURE__*/React__default["default"].createElement("path", {
|
|
12733
|
+
d: "M17.72 16.264a.867.867 0 010 1.275L13 22l-4.72-4.461a.867.867 0 010-1.275.993.993 0 011.348 0L13 19.451l3.372-3.187a.993.993 0 011.349 0zM13 4l4.72 4.461a.867.867 0 010 1.275.993.993 0 01-1.348 0L13 6.549 9.628 9.736a.993.993 0 01-1.349 0 .867.867 0 010-1.275L13 4zm0 11a2 2 0 100-4 2 2 0 000 4z"
|
|
12734
|
+
}));
|
|
12735
|
+
});
|
|
12736
|
+
ExpandAll.displayName = "ExpandAll";
|
|
12737
|
+
|
|
12738
|
+
var StyledMenuSelectorDots = styled__default["default"](TreeDotsIcon$1).withConfig({
|
|
12739
|
+
displayName: "Styles__StyledMenuSelectorDots",
|
|
12740
|
+
componentId: "sc-1x7qbnu-0"
|
|
12741
|
+
})(["", ""], {
|
|
12742
|
+
"marginLeft": "0.5rem",
|
|
12743
|
+
"flexShrink": "0",
|
|
12744
|
+
"cursor": "pointer"
|
|
12745
|
+
});
|
|
12746
|
+
StyledMenuSelectorDots.displayName = "StyledMenuSelectorDots";
|
|
12747
|
+
var StyledMenuSelectorBack = styled__default["default"](ArrowLeftIcon$1).withConfig({
|
|
12748
|
+
displayName: "Styles__StyledMenuSelectorBack",
|
|
12749
|
+
componentId: "sc-1x7qbnu-1"
|
|
12750
|
+
})(["", ""], {
|
|
12751
|
+
"marginRight": "0.5rem",
|
|
12752
|
+
"flexShrink": "0",
|
|
12753
|
+
"cursor": "pointer",
|
|
12754
|
+
"stroke": "currentColor"
|
|
12755
|
+
});
|
|
12756
|
+
StyledMenuSelectorBack.displayName = "StyledMenuSelectorBack";
|
|
12757
|
+
var StyledMenuSelector = styled__default["default"].div.withConfig({
|
|
12758
|
+
displayName: "Styles__StyledMenuSelector",
|
|
12759
|
+
componentId: "sc-1x7qbnu-2"
|
|
12760
|
+
})(["", " ", " color:var(--color-theme-700);"], BoxSizingStyle, FontStyle);
|
|
12761
|
+
StyledMenuSelector.displayName = "StyledMenuSelector";
|
|
12762
|
+
var StyledMenuSelectorInner = styled__default["default"].div.withConfig({
|
|
12763
|
+
displayName: "Styles__StyledMenuSelectorInner",
|
|
12764
|
+
componentId: "sc-1x7qbnu-3"
|
|
12765
|
+
})(["", ""], {
|
|
12766
|
+
"margin": "1rem",
|
|
12767
|
+
"display": "flex",
|
|
12768
|
+
"alignItems": "center"
|
|
12769
|
+
});
|
|
12770
|
+
StyledMenuSelectorInner.displayName = "StyledMenuSelectorInner";
|
|
12771
|
+
|
|
12772
|
+
var MenuSelector = function MenuSelector(_ref) {
|
|
12773
|
+
var defaultValue = _ref.defaultValue,
|
|
12774
|
+
children = _ref.children,
|
|
12775
|
+
placeholder = _ref.placeholder,
|
|
12776
|
+
onChange = _ref.onChange,
|
|
12777
|
+
onBack = _ref.onBack,
|
|
12778
|
+
onEdit = _ref.onEdit,
|
|
12779
|
+
_ref$autoFocus = _ref.autoFocus,
|
|
12780
|
+
autoFocus = _ref$autoFocus === void 0 ? false : _ref$autoFocus,
|
|
12781
|
+
className = _ref.className,
|
|
12782
|
+
onFocus = _ref.onFocus,
|
|
12783
|
+
onBlur = _ref.onBlur,
|
|
12784
|
+
_ref$autoComplete = _ref.autoComplete,
|
|
12785
|
+
autoComplete = _ref$autoComplete === void 0 ? false : _ref$autoComplete;
|
|
12786
|
+
var handleChange = React.useCallback(function (e) {
|
|
12787
|
+
if (typeof onChange === "function") {
|
|
12788
|
+
onChange(e.target.value);
|
|
12789
|
+
}
|
|
12790
|
+
}, [onChange]);
|
|
12791
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledMenuSelector, {
|
|
12792
|
+
className: classNames__default["default"]("c-menu-selector", className)
|
|
12793
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledMenuSelectorInner, null, typeof onBack === "function" ? /*#__PURE__*/React__default["default"].createElement(StyledMenuSelectorBack, {
|
|
12794
|
+
onClick: onBack,
|
|
12795
|
+
width: "16px",
|
|
12796
|
+
height: "16px"
|
|
12797
|
+
}) : null, /*#__PURE__*/React__default["default"].createElement(Input, {
|
|
12798
|
+
onChange: handleChange,
|
|
12799
|
+
placeholder: placeholder,
|
|
12800
|
+
autoFocus: autoFocus,
|
|
12801
|
+
defaultValue: defaultValue,
|
|
12802
|
+
onFocus: onFocus,
|
|
12803
|
+
onBlur: onBlur,
|
|
12804
|
+
autoComplete: autoComplete ? "on" : "off"
|
|
12805
|
+
}), typeof onEdit === "function" ? /*#__PURE__*/React__default["default"].createElement(StyledMenuSelectorDots, {
|
|
12806
|
+
onClick: onEdit
|
|
12807
|
+
}) : null), children);
|
|
12808
|
+
};
|
|
12809
|
+
MenuSelector.displayName = "MenuSelector";
|
|
12810
|
+
|
|
12811
|
+
var StyledTextarea = styled__default["default"].textarea.withConfig({
|
|
12812
|
+
displayName: "Styles__StyledTextarea",
|
|
12813
|
+
componentId: "sc-m6jqw8-0"
|
|
12814
|
+
})(["", " ", " ", " ", " ", " border-width:1px;border-style:solid;", " border-radius:8px;padding:4px 8px 6px 8px;height:auto;background-color:var(--input-background-color);transition:all 0.3s ease;width:360px;min-height:90px;outline:none;", " ", " ", " ", " &::placeholder{", "}", ""], {
|
|
12815
|
+
"fontSize": "0.875rem"
|
|
12816
|
+
}, {
|
|
12817
|
+
"color": "var(--color-theme-900)"
|
|
12818
|
+
}, {
|
|
12819
|
+
"lineHeight": "1.375"
|
|
12820
|
+
}, {
|
|
12821
|
+
"letterSpacing": "0.02em"
|
|
12822
|
+
}, {
|
|
12823
|
+
"fontWeight": "400"
|
|
12824
|
+
}, {
|
|
12825
|
+
"borderColor": "var(--color-theme-500)"
|
|
12826
|
+
}, FontStyle, BoxSizingStyle, function (props) {
|
|
12827
|
+
return props.disabled && styled.css(["", ""], {
|
|
12828
|
+
"cursor": "not-allowed",
|
|
12829
|
+
"opacity": "0.5"
|
|
12830
|
+
});
|
|
12831
|
+
}, function (props) {
|
|
12832
|
+
return !props.disabled && !props.$invalid && styled.css(["&:active,&:focus,&:hover{", "}"], {
|
|
12833
|
+
"borderColor": "var(--color-primary)"
|
|
12834
|
+
});
|
|
12835
|
+
}, {
|
|
12836
|
+
"color": "var(--color-theme-transparent-500)"
|
|
12837
|
+
}, function (props) {
|
|
12838
|
+
return !props.disabled && props.$invalid && styled.css(["", ""], {
|
|
12839
|
+
"borderColor": "var(--red-alert)"
|
|
12840
|
+
});
|
|
12841
|
+
});
|
|
12842
|
+
StyledTextarea.displayName = "StyledTextarea";
|
|
12843
|
+
|
|
12844
|
+
var _excluded$E = ["className", "disabled", "invalid"];
|
|
12845
|
+
var Textarea = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
12846
|
+
var className = _ref.className,
|
|
12847
|
+
_ref$disabled = _ref.disabled,
|
|
12848
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
12849
|
+
_ref$invalid = _ref.invalid,
|
|
12850
|
+
invalid = _ref$invalid === void 0 ? false : _ref$invalid,
|
|
12851
|
+
rest = _objectWithoutProperties(_ref, _excluded$E);
|
|
12852
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledTextarea, _extends({}, rest, {
|
|
12853
|
+
$invalid: invalid,
|
|
12854
|
+
ref: ref,
|
|
12855
|
+
disabled: disabled,
|
|
12856
|
+
className: classNames__default["default"]("c-textarea", {
|
|
12857
|
+
"c-textarea__disabled": disabled
|
|
12858
|
+
}, className)
|
|
12859
|
+
}));
|
|
12860
|
+
});
|
|
12861
|
+
Textarea.displayName = "Textarea";
|
|
12862
|
+
|
|
12863
|
+
function createChainedFunction() {
|
|
12864
|
+
for (var _len = arguments.length, functions = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
12865
|
+
functions[_key] = arguments[_key];
|
|
12866
|
+
}
|
|
12867
|
+
return functions.reduce(function (acc, func) {
|
|
12868
|
+
if (func === null) {
|
|
12869
|
+
return acc;
|
|
12870
|
+
}
|
|
12871
|
+
return function chainedFunction() {
|
|
12872
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
12873
|
+
args[_key2] = arguments[_key2];
|
|
12874
|
+
}
|
|
12875
|
+
acc && acc.apply(this, args);
|
|
12876
|
+
func && func.apply(this, args);
|
|
12877
|
+
};
|
|
12878
|
+
},
|
|
12879
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
12880
|
+
function () {});
|
|
12881
|
+
}
|
|
12882
|
+
|
|
12883
|
+
var _excluded$D = ["children", "disableFocusLock", "disableScrollLock", "disableBackgroundClick", "disableBackgroundColor", "disableCloseOnEsc", "open", "onClose", "onClickOutside"];
|
|
12884
|
+
var getHasTransition = function getHasTransition(children) {
|
|
12885
|
+
return children.props ? Object.prototype.hasOwnProperty.call(children.props, "in") : false;
|
|
12886
|
+
};
|
|
12887
|
+
var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
12888
|
+
var children = _ref.children,
|
|
12889
|
+
_ref$disableFocusLock = _ref.disableFocusLock,
|
|
12890
|
+
disableFocusLock = _ref$disableFocusLock === void 0 ? false : _ref$disableFocusLock,
|
|
12891
|
+
_ref$disableScrollLoc = _ref.disableScrollLock,
|
|
12892
|
+
disableScrollLock = _ref$disableScrollLoc === void 0 ? false : _ref$disableScrollLoc,
|
|
12893
|
+
_ref$disableBackgroun = _ref.disableBackgroundClick,
|
|
12894
|
+
disableBackgroundClick = _ref$disableBackgroun === void 0 ? false : _ref$disableBackgroun,
|
|
12895
|
+
_ref$disableBackgroun2 = _ref.disableBackgroundColor,
|
|
12896
|
+
disableBackgroundColor = _ref$disableBackgroun2 === void 0 ? false : _ref$disableBackgroun2,
|
|
12897
|
+
_ref$disableCloseOnEs = _ref.disableCloseOnEsc,
|
|
12898
|
+
disableCloseOnEsc = _ref$disableCloseOnEs === void 0 ? false : _ref$disableCloseOnEs,
|
|
12899
|
+
_ref$open = _ref.open,
|
|
12900
|
+
defaultOpen = _ref$open === void 0 ? false : _ref$open,
|
|
12901
|
+
onClose = _ref.onClose,
|
|
12902
|
+
onClickOutside = _ref.onClickOutside,
|
|
12903
|
+
rest = _objectWithoutProperties(_ref, _excluded$D);
|
|
12904
|
+
var _useState = React.useState(defaultOpen),
|
|
12905
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
12906
|
+
open = _useState2[0],
|
|
12907
|
+
setOpen = _useState2[1];
|
|
12908
|
+
var _useState3 = React.useState(true),
|
|
12909
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
12910
|
+
exited = _useState4[0],
|
|
12911
|
+
setExited = _useState4[1];
|
|
12912
|
+
var innerRef = React.useRef(null);
|
|
12913
|
+
var handleRef = useForkRef(innerRef, ref);
|
|
12914
|
+
var hasTransition = React.useMemo(function () {
|
|
12915
|
+
return getHasTransition(children);
|
|
12916
|
+
}, [children]);
|
|
12917
|
+
React.useEffect(function () {
|
|
12918
|
+
setOpen(defaultOpen);
|
|
12919
|
+
}, [defaultOpen]);
|
|
12920
|
+
var handleClose = React.useCallback(function () {
|
|
12921
|
+
setOpen(false);
|
|
12922
|
+
if (!hasTransition) {
|
|
12923
|
+
typeof onClose === "function" && onClose();
|
|
12924
|
+
}
|
|
12925
|
+
}, [hasTransition, onClose]);
|
|
12926
|
+
var handleBackgroundClick = React.useCallback(function (event) {
|
|
12927
|
+
if (!disableBackgroundClick) {
|
|
12928
|
+
event.preventDefault();
|
|
12929
|
+
return handleClose();
|
|
12930
|
+
}
|
|
12931
|
+
if (onClickOutside) {
|
|
12932
|
+
onClickOutside(event);
|
|
12933
|
+
}
|
|
12934
|
+
}, [disableBackgroundClick, onClickOutside, handleClose]);
|
|
12935
|
+
var handleEnter = React.useCallback(function () {
|
|
12936
|
+
setExited(false);
|
|
12937
|
+
}, []);
|
|
12938
|
+
var handleExited = React.useCallback(function () {
|
|
12939
|
+
setExited(true);
|
|
12940
|
+
typeof onClose === "function" && onClose();
|
|
12941
|
+
}, [onClose]);
|
|
12942
|
+
var childProps = React.useMemo(function () {
|
|
12943
|
+
var props = {};
|
|
12944
|
+
|
|
12945
|
+
// It's a Transition like component
|
|
12946
|
+
if (hasTransition && children) {
|
|
12947
|
+
props = {
|
|
12948
|
+
onEnter: createChainedFunction(handleEnter, children.props.onEnter),
|
|
12949
|
+
onExited: createChainedFunction(handleExited, children.props.onExited),
|
|
12950
|
+
in: open
|
|
12951
|
+
};
|
|
12952
|
+
}
|
|
12953
|
+
return props;
|
|
12954
|
+
}, [children, handleEnter, handleExited, hasTransition, open]);
|
|
12955
|
+
if (!open && (!hasTransition || exited)) {
|
|
12956
|
+
return null;
|
|
12957
|
+
}
|
|
12958
|
+
return /*#__PURE__*/React__default["default"].createElement(Window, _extends({}, rest, {
|
|
12959
|
+
ref: handleRef,
|
|
12960
|
+
onClose: handleClose,
|
|
12961
|
+
disableFocusLock: disableFocusLock,
|
|
12962
|
+
disableScrollLock: disableScrollLock,
|
|
12963
|
+
disableCloseOnEsc: disableCloseOnEsc
|
|
12964
|
+
}), open ? /*#__PURE__*/React__default["default"].createElement(Overlay, {
|
|
12965
|
+
onClick: handleBackgroundClick,
|
|
12966
|
+
disableBackgroundColor: disableBackgroundColor
|
|
12967
|
+
}) : null, /*#__PURE__*/React.cloneElement(children, childProps));
|
|
12968
|
+
});
|
|
12969
|
+
Modal.displayName = "Modal";
|
|
12970
|
+
|
|
12971
|
+
var StyledSheetIcons = styled__default["default"].div.withConfig({
|
|
12972
|
+
displayName: "Styles__StyledSheetIcons",
|
|
12973
|
+
componentId: "sc-144eyxd-0"
|
|
12974
|
+
})(["display:flex;height:0;position:relative;span{position:relative;background-color:var(--page-paper-main);box-shadow:var(--shadow-secondary);cursor:pointer;border-radius:100%;width:40px;height:40px;display:flex;justify-content:center;align-items:center;& > *{height:40px;width:40px;padding:8px;fill:var(--color-theme-600);}}"]);
|
|
12975
|
+
StyledSheetIcons.displayName = "StyledSheetIcons";
|
|
12976
|
+
var StyledSheetWrapper = styled__default["default"].div.withConfig({
|
|
12977
|
+
displayName: "Styles__StyledSheetWrapper",
|
|
12978
|
+
componentId: "sc-144eyxd-1"
|
|
12536
12979
|
})(["", " ", " position:relative;max-width:95vw;display:flex;flex-direction:row;", " ", " ", " ", " ", " ", ""], BoxSizingStyle, FontStyle, function (props) {
|
|
12537
12980
|
return props.$mode === "stretch" ? styled.css(["margin-top:8px;height:calc(100vh - 16px);width:calc(100vw - 100px);max-width:1000px;", "{flex-direction:column;width:0;height:calc(100vh - 32px);& > *{margin-bottom:8px;animation-fill-mode:both;}span{top:8px;}}"], StyledSheetIcons) : styled.css(["max-height:calc(100vh - 156px);margin-top:126px;margin-bottom:30px;width:540px;flex-direction:column;", "{flex-direction:row-reverse;& > *{margin-left:8px;animation-fill-mode:both;}span{top:-48px;right:8px;}}"], StyledSheetIcons);
|
|
12538
12981
|
}, function (props) {
|
|
@@ -12598,7 +13041,7 @@
|
|
|
12598
13041
|
});
|
|
12599
13042
|
StyledCssTransition.displayName = "StyledCssTransition";
|
|
12600
13043
|
|
|
12601
|
-
var _excluded$
|
|
13044
|
+
var _excluded$C = ["children", "onClose", "controls", "open", "animation", "position", "mode", "disableFocusLock", "disableScrollLock", "disableBackgroundColor", "bodyStyle", "bodyClassName", "disableBackgroundClick"];
|
|
12602
13045
|
var Sheet = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
12603
13046
|
var children = _ref.children,
|
|
12604
13047
|
onClose = _ref.onClose,
|
|
@@ -12622,7 +13065,7 @@
|
|
|
12622
13065
|
bodyClassName = _ref.bodyClassName,
|
|
12623
13066
|
_ref$disableBackgroun2 = _ref.disableBackgroundClick,
|
|
12624
13067
|
disableBackgroundClick = _ref$disableBackgroun2 === void 0 ? false : _ref$disableBackgroun2,
|
|
12625
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
13068
|
+
rest = _objectWithoutProperties(_ref, _excluded$C);
|
|
12626
13069
|
var _useState = React.useState(defaultOpen),
|
|
12627
13070
|
_useState2 = _slicedToArray(_useState, 2),
|
|
12628
13071
|
open = _useState2[0],
|
|
@@ -12715,13 +13158,13 @@
|
|
|
12715
13158
|
});
|
|
12716
13159
|
StyledHeader.displayName = "StyledHeader";
|
|
12717
13160
|
|
|
12718
|
-
var _excluded$
|
|
13161
|
+
var _excluded$B = ["className", "size", "children"];
|
|
12719
13162
|
var Header = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
12720
13163
|
var className = _ref.className,
|
|
12721
13164
|
_ref$size = _ref.size,
|
|
12722
13165
|
size = _ref$size === void 0 ? "small" : _ref$size,
|
|
12723
13166
|
children = _ref.children,
|
|
12724
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
13167
|
+
rest = _objectWithoutProperties(_ref, _excluded$B);
|
|
12725
13168
|
return /*#__PURE__*/React__default["default"].createElement(StyledHeader, _extends({
|
|
12726
13169
|
type: "paper-2",
|
|
12727
13170
|
className: classNames__default["default"]("c-header", className),
|
|
@@ -12737,7 +13180,7 @@
|
|
|
12737
13180
|
})(["white-space:pre-wrap;overflow-wrap:break-word;resize:none;"]);
|
|
12738
13181
|
StyledAutoResizeTextarea.displayName = "StyledAutoResizeTextarea";
|
|
12739
13182
|
|
|
12740
|
-
var _excluded$
|
|
13183
|
+
var _excluded$A = ["minRows", "maxRows", "lineHeight", "onChange", "className", "preventNewRowOnEnter", "cursorAtTextEnd", "onKeyDown", "value"];
|
|
12741
13184
|
var AutoResizeTextarea = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
12742
13185
|
var _ref$minRows = _ref.minRows,
|
|
12743
13186
|
minRows = _ref$minRows === void 0 ? 1 : _ref$minRows,
|
|
@@ -12753,7 +13196,7 @@
|
|
|
12753
13196
|
cursorAtTextEnd = _ref$cursorAtTextEnd === void 0 ? false : _ref$cursorAtTextEnd,
|
|
12754
13197
|
onKeyDown = _ref.onKeyDown,
|
|
12755
13198
|
value = _ref.value,
|
|
12756
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
13199
|
+
rest = _objectWithoutProperties(_ref, _excluded$A);
|
|
12757
13200
|
var innerRef = React.useRef(null);
|
|
12758
13201
|
var _useState = React.useState(minRows),
|
|
12759
13202
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -13029,7 +13472,7 @@
|
|
|
13029
13472
|
});
|
|
13030
13473
|
StyledChoose.displayName = "StyledChoose";
|
|
13031
13474
|
|
|
13032
|
-
var _excluded$
|
|
13475
|
+
var _excluded$z = ["children", "disabled", "active", "className"];
|
|
13033
13476
|
/**
|
|
13034
13477
|
* Choose component
|
|
13035
13478
|
*/
|
|
@@ -13040,7 +13483,7 @@
|
|
|
13040
13483
|
_ref$active = _ref.active,
|
|
13041
13484
|
active = _ref$active === void 0 ? false : _ref$active,
|
|
13042
13485
|
className = _ref.className,
|
|
13043
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
13486
|
+
args = _objectWithoutProperties(_ref, _excluded$z);
|
|
13044
13487
|
return /*#__PURE__*/React__default["default"].createElement(StyledChoose, _extends({
|
|
13045
13488
|
disabled: disabled,
|
|
13046
13489
|
className: classNames__default["default"]("c-choose", className),
|
|
@@ -13136,21 +13579,21 @@
|
|
|
13136
13579
|
StyledLinkElements.displayName = "StyledLinkElements";
|
|
13137
13580
|
StyledLink.displayName = "StyledLink";
|
|
13138
13581
|
|
|
13139
|
-
var _excluded$
|
|
13582
|
+
var _excluded$y = ["children", "className"];
|
|
13140
13583
|
/**
|
|
13141
13584
|
* Back link component
|
|
13142
13585
|
*/
|
|
13143
13586
|
var BackLink = function BackLink(_ref) {
|
|
13144
13587
|
var children = _ref.children,
|
|
13145
13588
|
className = _ref.className,
|
|
13146
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
13589
|
+
args = _objectWithoutProperties(_ref, _excluded$y);
|
|
13147
13590
|
return /*#__PURE__*/React__default["default"].createElement(StyledBackLink, _extends({
|
|
13148
13591
|
className: classNames__default["default"]("c-back-link", className)
|
|
13149
13592
|
}, args), children);
|
|
13150
13593
|
};
|
|
13151
13594
|
BackLink.displayName = "BackLink";
|
|
13152
13595
|
|
|
13153
|
-
var _excluded$
|
|
13596
|
+
var _excluded$x = ["as", "children", "variant", "size", "disabled", "className"];
|
|
13154
13597
|
/**
|
|
13155
13598
|
* Link component
|
|
13156
13599
|
*/
|
|
@@ -13163,7 +13606,7 @@
|
|
|
13163
13606
|
_ref$disabled = _ref.disabled,
|
|
13164
13607
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
13165
13608
|
className = _ref.className,
|
|
13166
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
13609
|
+
args = _objectWithoutProperties(_ref, _excluded$x);
|
|
13167
13610
|
var Component = as || "a";
|
|
13168
13611
|
return /*#__PURE__*/React__default["default"].createElement(StyledLink, _extends({
|
|
13169
13612
|
ref: ref,
|
|
@@ -13274,7 +13717,7 @@
|
|
|
13274
13717
|
})(["padding:20px 30px;", " ", ""], FontStyle, BoxSizingStyle);
|
|
13275
13718
|
StyledDialogActions.displayName = "StyledDialogActions";
|
|
13276
13719
|
|
|
13277
|
-
var _excluded$
|
|
13720
|
+
var _excluded$w = ["in", "children", "style", "timeout"];
|
|
13278
13721
|
var defaultStyle$1 = function defaultStyle(duration) {
|
|
13279
13722
|
return {
|
|
13280
13723
|
transition: "all ".concat(duration, "ms ease-in-out"),
|
|
@@ -13302,7 +13745,7 @@
|
|
|
13302
13745
|
style = _ref.style,
|
|
13303
13746
|
_ref$timeout = _ref.timeout,
|
|
13304
13747
|
timeout = _ref$timeout === void 0 ? 500 : _ref$timeout,
|
|
13305
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
13748
|
+
rest = _objectWithoutProperties(_ref, _excluded$w);
|
|
13306
13749
|
return /*#__PURE__*/React__default["default"].createElement(reactTransitionGroup.Transition, _extends({
|
|
13307
13750
|
appear: true,
|
|
13308
13751
|
in: inProp,
|
|
@@ -13317,7 +13760,7 @@
|
|
|
13317
13760
|
};
|
|
13318
13761
|
Fade.displayName = "Fade";
|
|
13319
13762
|
|
|
13320
|
-
var _excluded$
|
|
13763
|
+
var _excluded$v = ["in", "children", "style", "timeout", "initialDirection"];
|
|
13321
13764
|
var Slide = function Slide(_ref) {
|
|
13322
13765
|
var _ref$in = _ref.in,
|
|
13323
13766
|
inProp = _ref$in === void 0 ? false : _ref$in,
|
|
@@ -13327,7 +13770,7 @@
|
|
|
13327
13770
|
timeout = _ref$timeout === void 0 ? 300 : _ref$timeout,
|
|
13328
13771
|
_ref$initialDirection = _ref.initialDirection,
|
|
13329
13772
|
initialDirection = _ref$initialDirection === void 0 ? "left" : _ref$initialDirection,
|
|
13330
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
13773
|
+
rest = _objectWithoutProperties(_ref, _excluded$v);
|
|
13331
13774
|
var directionSign;
|
|
13332
13775
|
switch (initialDirection) {
|
|
13333
13776
|
case "right":
|
|
@@ -13380,12 +13823,12 @@
|
|
|
13380
13823
|
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;}"]);
|
|
13381
13824
|
});
|
|
13382
13825
|
|
|
13383
|
-
var _excluded$
|
|
13826
|
+
var _excluded$u = ["children", "direction"];
|
|
13384
13827
|
var SlideLeftRightTransition = function SlideLeftRightTransition(_ref) {
|
|
13385
13828
|
var children = _ref.children,
|
|
13386
13829
|
_ref$direction = _ref.direction,
|
|
13387
13830
|
direction = _ref$direction === void 0 ? "left" : _ref$direction,
|
|
13388
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
13831
|
+
props = _objectWithoutProperties(_ref, _excluded$u);
|
|
13389
13832
|
return /*#__PURE__*/React__default["default"].createElement(reactTransitionGroup.CSSTransition, _extends({
|
|
13390
13833
|
timeout: 200,
|
|
13391
13834
|
classNames: "c-slide",
|
|
@@ -13428,7 +13871,7 @@
|
|
|
13428
13871
|
};
|
|
13429
13872
|
ResizeTransition.displayName = "ResizeTransition";
|
|
13430
13873
|
|
|
13431
|
-
var _excluded$
|
|
13874
|
+
var _excluded$t = ["in", "children", "style", "timeout"];
|
|
13432
13875
|
var defaultStyle = function defaultStyle(duration) {
|
|
13433
13876
|
return {
|
|
13434
13877
|
transition: "all ".concat(duration, "ms ease-in"),
|
|
@@ -13462,7 +13905,7 @@
|
|
|
13462
13905
|
style = _ref.style,
|
|
13463
13906
|
_ref$timeout = _ref.timeout,
|
|
13464
13907
|
timeout = _ref$timeout === void 0 ? 200 : _ref$timeout,
|
|
13465
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
13908
|
+
rest = _objectWithoutProperties(_ref, _excluded$t);
|
|
13466
13909
|
return /*#__PURE__*/React__default["default"].createElement(reactTransitionGroup.Transition, _extends({
|
|
13467
13910
|
appear: true,
|
|
13468
13911
|
in: inProp,
|
|
@@ -13512,13 +13955,13 @@
|
|
|
13512
13955
|
};
|
|
13513
13956
|
Scale.displayName = "Scale";
|
|
13514
13957
|
|
|
13515
|
-
var _excluded$
|
|
13958
|
+
var _excluded$s = ["className", "children"];
|
|
13516
13959
|
// import { useDialogContext } from "./DialogContext";
|
|
13517
13960
|
|
|
13518
13961
|
var DialogActions = function DialogActions(_ref) {
|
|
13519
13962
|
var className = _ref.className,
|
|
13520
13963
|
children = _ref.children,
|
|
13521
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
13964
|
+
rest = _objectWithoutProperties(_ref, _excluded$s);
|
|
13522
13965
|
// useDialogContext();
|
|
13523
13966
|
|
|
13524
13967
|
return /*#__PURE__*/React__default["default"].createElement(StyledDialogActions, _extends({
|
|
@@ -13527,13 +13970,13 @@
|
|
|
13527
13970
|
};
|
|
13528
13971
|
DialogActions.displayName = "DialogActions";
|
|
13529
13972
|
|
|
13530
|
-
var _excluded$
|
|
13973
|
+
var _excluded$r = ["className", "children"];
|
|
13531
13974
|
// import { useDialogContext } from "./DialogContext";
|
|
13532
13975
|
|
|
13533
13976
|
var DialogContent = function DialogContent(_ref) {
|
|
13534
13977
|
var className = _ref.className,
|
|
13535
13978
|
children = _ref.children,
|
|
13536
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
13979
|
+
rest = _objectWithoutProperties(_ref, _excluded$r);
|
|
13537
13980
|
// useDialogContext();
|
|
13538
13981
|
|
|
13539
13982
|
return /*#__PURE__*/React__default["default"].createElement(StyledDialogContent, _extends({
|
|
@@ -13554,7 +13997,7 @@
|
|
|
13554
13997
|
};
|
|
13555
13998
|
DialogContentDivider.displayName = "DialogContentDivider";
|
|
13556
13999
|
|
|
13557
|
-
var _excluded$
|
|
14000
|
+
var _excluded$q = ["children", "className", "disableDefaultHeading"];
|
|
13558
14001
|
// import { useDialogContext } from "./DialogContext";
|
|
13559
14002
|
|
|
13560
14003
|
var DialogTitle = function DialogTitle(_ref) {
|
|
@@ -13562,7 +14005,7 @@
|
|
|
13562
14005
|
className = _ref.className,
|
|
13563
14006
|
_ref$disableDefaultHe = _ref.disableDefaultHeading,
|
|
13564
14007
|
disableDefaultHeading = _ref$disableDefaultHe === void 0 ? false : _ref$disableDefaultHe,
|
|
13565
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
14008
|
+
rest = _objectWithoutProperties(_ref, _excluded$q);
|
|
13566
14009
|
// useDialogContext();
|
|
13567
14010
|
|
|
13568
14011
|
return /*#__PURE__*/React__default["default"].createElement(StyledDialogTitle, _extends({
|
|
@@ -13571,7 +14014,7 @@
|
|
|
13571
14014
|
};
|
|
13572
14015
|
DialogTitle.displayName = "DialogTitle";
|
|
13573
14016
|
|
|
13574
|
-
var _excluded$
|
|
14017
|
+
var _excluded$p = ["children", "open", "onClose", "className", "enableBackgroundClick", "disableCloseOnEsc", "animate", "onClickOutside"];
|
|
13575
14018
|
var _Dialog = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
13576
14019
|
var children = _ref.children,
|
|
13577
14020
|
_ref$open = _ref.open,
|
|
@@ -13585,7 +14028,7 @@
|
|
|
13585
14028
|
_ref$animate = _ref.animate,
|
|
13586
14029
|
animate = _ref$animate === void 0 ? "slide" : _ref$animate,
|
|
13587
14030
|
onClickOutside = _ref.onClickOutside,
|
|
13588
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
14031
|
+
rest = _objectWithoutProperties(_ref, _excluded$p);
|
|
13589
14032
|
var animateDialog = function animateDialog() {
|
|
13590
14033
|
switch (animate) {
|
|
13591
14034
|
case "fade":
|
|
@@ -13834,7 +14277,7 @@
|
|
|
13834
14277
|
});
|
|
13835
14278
|
StyledPressed.displayName = "StyledPressed";
|
|
13836
14279
|
|
|
13837
|
-
var _excluded$
|
|
14280
|
+
var _excluded$o = ["children", "active", "className"];
|
|
13838
14281
|
/**
|
|
13839
14282
|
* Pressed wrapper for button component
|
|
13840
14283
|
* @deprecated
|
|
@@ -13844,7 +14287,7 @@
|
|
|
13844
14287
|
_ref$active = _ref.active,
|
|
13845
14288
|
active = _ref$active === void 0 ? false : _ref$active,
|
|
13846
14289
|
className = _ref.className,
|
|
13847
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
14290
|
+
args = _objectWithoutProperties(_ref, _excluded$o);
|
|
13848
14291
|
return /*#__PURE__*/React__default["default"].createElement(StyledPressed, _extends({
|
|
13849
14292
|
active: active,
|
|
13850
14293
|
ref: ref,
|
|
@@ -14350,7 +14793,7 @@
|
|
|
14350
14793
|
StyledToastMessage.displayName = "StyledToastMessage";
|
|
14351
14794
|
StyledCloseSmallIcon.displayName = "StyledCloseSmallIcon";
|
|
14352
14795
|
|
|
14353
|
-
var _excluded$
|
|
14796
|
+
var _excluded$n = ["text", "type", "onClose", "dismissible", "dropShadow", "timeout"];
|
|
14354
14797
|
var ToastMessage = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
14355
14798
|
var text = _ref.text,
|
|
14356
14799
|
type = _ref.type,
|
|
@@ -14361,7 +14804,7 @@
|
|
|
14361
14804
|
dropShadow = _ref$dropShadow === void 0 ? false : _ref$dropShadow,
|
|
14362
14805
|
_ref$timeout = _ref.timeout,
|
|
14363
14806
|
timeout = _ref$timeout === void 0 ? 0 : _ref$timeout,
|
|
14364
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
14807
|
+
rest = _objectWithoutProperties(_ref, _excluded$n);
|
|
14365
14808
|
var handleOnClose = React.useCallback(function () {
|
|
14366
14809
|
if (typeof onClose === "function") {
|
|
14367
14810
|
onClose();
|
|
@@ -14409,7 +14852,7 @@
|
|
|
14409
14852
|
});
|
|
14410
14853
|
StyledValueButton.displayName = "StyledValueButton";
|
|
14411
14854
|
|
|
14412
|
-
var _excluded$
|
|
14855
|
+
var _excluded$m = ["active", "alwaysShowIcon", "icon", "label", "value"];
|
|
14413
14856
|
var ValueButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
14414
14857
|
var _ref$active = _ref.active,
|
|
14415
14858
|
active = _ref$active === void 0 ? false : _ref$active,
|
|
@@ -14418,7 +14861,7 @@
|
|
|
14418
14861
|
icon = _ref.icon,
|
|
14419
14862
|
label = _ref.label,
|
|
14420
14863
|
value = _ref.value,
|
|
14421
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
14864
|
+
args = _objectWithoutProperties(_ref, _excluded$m);
|
|
14422
14865
|
return /*#__PURE__*/React__default["default"].createElement(StyledValueButton, _extends({
|
|
14423
14866
|
className: "c-value-button"
|
|
14424
14867
|
}, args, {
|
|
@@ -14447,12 +14890,12 @@
|
|
|
14447
14890
|
})(["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;}"]);
|
|
14448
14891
|
StyledButton.displayName = "StyledButton";
|
|
14449
14892
|
|
|
14450
|
-
var _excluded$
|
|
14893
|
+
var _excluded$l = ["children", "type"];
|
|
14451
14894
|
var Trigger = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
14452
14895
|
var children = _ref.children,
|
|
14453
14896
|
_ref$type = _ref.type,
|
|
14454
14897
|
type = _ref$type === void 0 ? "button" : _ref$type,
|
|
14455
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
14898
|
+
rest = _objectWithoutProperties(_ref, _excluded$l);
|
|
14456
14899
|
return /*#__PURE__*/React__default["default"].createElement(StyledButton, _extends({
|
|
14457
14900
|
ref: ref,
|
|
14458
14901
|
role: "button",
|
|
@@ -14498,7 +14941,7 @@
|
|
|
14498
14941
|
});
|
|
14499
14942
|
StyledCaretIcon.displayName = "StyledCaretIcon";
|
|
14500
14943
|
|
|
14501
|
-
var _excluded$
|
|
14944
|
+
var _excluded$k = ["children", "type", "size", "invalid", "open", "endAdornment", "typographyProps"];
|
|
14502
14945
|
var SelectTrigger = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
14503
14946
|
var children = _ref.children,
|
|
14504
14947
|
_ref$type = _ref.type,
|
|
@@ -14511,7 +14954,7 @@
|
|
|
14511
14954
|
open = _ref$open === void 0 ? false : _ref$open,
|
|
14512
14955
|
endAdornment = _ref.endAdornment,
|
|
14513
14956
|
typographyProps = _ref.typographyProps,
|
|
14514
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
14957
|
+
rest = _objectWithoutProperties(_ref, _excluded$k);
|
|
14515
14958
|
return /*#__PURE__*/React__default["default"].createElement(StyledSelectTrigger, _extends({
|
|
14516
14959
|
ref: ref,
|
|
14517
14960
|
role: "button",
|
|
@@ -14558,11 +15001,11 @@
|
|
|
14558
15001
|
});
|
|
14559
15002
|
StyledToggle.displayName = "StyledToggle";
|
|
14560
15003
|
|
|
14561
|
-
var _excluded$
|
|
15004
|
+
var _excluded$j = ["hovered", "className"];
|
|
14562
15005
|
var Toggle = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
14563
15006
|
var hovered = _ref.hovered,
|
|
14564
15007
|
className = _ref.className,
|
|
14565
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
15008
|
+
args = _objectWithoutProperties(_ref, _excluded$j);
|
|
14566
15009
|
return /*#__PURE__*/React__default["default"].createElement(StyledToggle, {
|
|
14567
15010
|
className: classNames__default["default"]("c-toggle", className),
|
|
14568
15011
|
$isHovered: hovered,
|
|
@@ -14666,7 +15109,7 @@
|
|
|
14666
15109
|
})(["color:var(--color-theme-700);"]);
|
|
14667
15110
|
ChipCloseIcon.displayName = "ChipCloseIcon";
|
|
14668
15111
|
|
|
14669
|
-
var _excluded$
|
|
15112
|
+
var _excluded$i = ["leftAdornment", "label", "onClose", "size", "color", "backgroundColor", "closeClassName", "variant", "typographyProps"];
|
|
14670
15113
|
var Chip = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
14671
15114
|
var leftAdornment = _ref.leftAdornment,
|
|
14672
15115
|
label = _ref.label,
|
|
@@ -14678,7 +15121,7 @@
|
|
|
14678
15121
|
closeClassName = _ref.closeClassName,
|
|
14679
15122
|
variant = _ref.variant,
|
|
14680
15123
|
typographyProps = _ref.typographyProps,
|
|
14681
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
15124
|
+
rest = _objectWithoutProperties(_ref, _excluded$i);
|
|
14682
15125
|
var showClose = typeof onClose === "function";
|
|
14683
15126
|
var _variant = React.useMemo(function () {
|
|
14684
15127
|
if (typeof variant !== "undefined") {
|
|
@@ -14754,7 +15197,7 @@
|
|
|
14754
15197
|
return isFirst.current;
|
|
14755
15198
|
};
|
|
14756
15199
|
|
|
14757
|
-
var _excluded$
|
|
15200
|
+
var _excluded$h = ["options", "selected", "loading", "loadingText", "onChange", "placeholder", "handleEmptyAction", "disabled", "size", "invalid", "type", "renderChip", "forceCloseMenu", "renderOption", "limitChips", "hiddenNumberText", "inPortal", "inputWrapperClassName", "scrollWrapper", "onClose", "onClear"];
|
|
14758
15201
|
var ComboBox = function ComboBox(_ref) {
|
|
14759
15202
|
var _comboBoxRef$current2, _comboBoxRef$current3;
|
|
14760
15203
|
var _ref$options = _ref.options,
|
|
@@ -14787,7 +15230,7 @@
|
|
|
14787
15230
|
scrollWrapper = _ref.scrollWrapper,
|
|
14788
15231
|
onClose = _ref.onClose,
|
|
14789
15232
|
onClear = _ref.onClear,
|
|
14790
|
-
prop = _objectWithoutProperties(_ref, _excluded$
|
|
15233
|
+
prop = _objectWithoutProperties(_ref, _excluded$h);
|
|
14791
15234
|
var selectedName = React.useMemo(function () {
|
|
14792
15235
|
var value = "";
|
|
14793
15236
|
if (!selected) {
|
|
@@ -15191,11 +15634,11 @@
|
|
|
15191
15634
|
})(["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);
|
|
15192
15635
|
StyledAddToListButton.displayName = "StyledAddToListButton";
|
|
15193
15636
|
|
|
15194
|
-
var _excluded$
|
|
15637
|
+
var _excluded$g = ["text", "className"];
|
|
15195
15638
|
var AddToListButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
15196
15639
|
var text = _ref.text,
|
|
15197
15640
|
className = _ref.className,
|
|
15198
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
15641
|
+
rest = _objectWithoutProperties(_ref, _excluded$g);
|
|
15199
15642
|
return /*#__PURE__*/React__default["default"].createElement(StyledAddToListButton, _extends({
|
|
15200
15643
|
ref: ref,
|
|
15201
15644
|
className: classNames__default["default"]("c--add-to-list-btn", className)
|
|
@@ -15378,11 +15821,11 @@
|
|
|
15378
15821
|
};
|
|
15379
15822
|
ProgressRing.displayName = "ProgressRing";
|
|
15380
15823
|
|
|
15381
|
-
var _excluded$
|
|
15824
|
+
var _excluded$f = ["radius"];
|
|
15382
15825
|
var ProgressPie = function ProgressPie(_ref) {
|
|
15383
15826
|
var _ref$radius = _ref.radius,
|
|
15384
15827
|
radius = _ref$radius === void 0 ? 20 : _ref$radius,
|
|
15385
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
15828
|
+
rest = _objectWithoutProperties(_ref, _excluded$f);
|
|
15386
15829
|
return /*#__PURE__*/React__default["default"].createElement(ProgressRing, _extends({}, rest, {
|
|
15387
15830
|
stroke: radius,
|
|
15388
15831
|
radius: radius
|
|
@@ -15599,615 +16042,207 @@
|
|
|
15599
16042
|
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
15600
16043
|
d: "M7 0a6.989 6.989 0 0 1 5.58 2.774 7 7 0 0 0-9.807 9.807A7 7 0 0 1 7 0Z",
|
|
15601
16044
|
fill: "#FFEB97"
|
|
15602
|
-
}), /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
15603
|
-
stroke: "#975F00",
|
|
15604
|
-
strokeWidth: ".677",
|
|
15605
|
-
cx: "7",
|
|
15606
|
-
cy: "7",
|
|
15607
|
-
r: "6.661"
|
|
15608
|
-
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
15609
|
-
fill: "#FFF",
|
|
15610
|
-
d: "M2 14V7h2.968v2.258H10v2.484H7.687V14z"
|
|
15611
|
-
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
15612
|
-
fill: "#CCC",
|
|
15613
|
-
d: "M2 12h5.113v2H2z"
|
|
15614
|
-
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
15615
|
-
d: "M4.593 7.375v2.258h5.032v1.734h-2.21v2.258h-5.04v-6.25h2.218Z",
|
|
15616
|
-
stroke: "#5A3900",
|
|
15617
|
-
strokeWidth: ".75"
|
|
15618
|
-
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
15619
|
-
d: "M6.206 7.71s3.326-.847 4.657.847",
|
|
15620
|
-
stroke: "#000"
|
|
15621
|
-
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
15622
|
-
fill: "#000",
|
|
15623
|
-
fillRule: "nonzero",
|
|
15624
|
-
d: "M10 3h2v1h-2zM6 2h2v1H6z"
|
|
15625
|
-
})));
|
|
15626
|
-
});
|
|
15627
|
-
ThinkingIcon.displayName = "ThinkingIcon";
|
|
15628
|
-
var ThinkingIcon$1 = ThinkingIcon;
|
|
15629
|
-
|
|
15630
|
-
var ThumbsUpIcon = /*#__PURE__*/React__default["default"].forwardRef(function (props, svgRef) {
|
|
15631
|
-
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
15632
|
-
width: "14",
|
|
15633
|
-
height: "14",
|
|
15634
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
15635
|
-
ref: svgRef
|
|
15636
|
-
}, props), /*#__PURE__*/React__default["default"].createElement("g", {
|
|
15637
|
-
fill: "none",
|
|
15638
|
-
fillRule: "evenodd"
|
|
15639
|
-
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
15640
|
-
d: "M7 2.71C7 4.477 5.308 4.866 4.516 5.87c-.487.62-.677 1.806-.677 1.806v5.194C5.182 13.341 6.096 14 8.806 14c2.164-.021 2.54-.045 3.388-.903.903-.903 1.806-4.39 1.806-6.323 0-.15-.04-.322-.08-.514-.198-.934-1.401-1.129-2.404-1.129-.718 0-1.401.11-1.423.11-.214 0-.315-.299-.226-.527.266-.684.294-1.755.294-2.908C10.161 0 8.581 0 8.581 0S7 0 7 2.71Z",
|
|
15641
|
-
fill: "#FFD60B"
|
|
15642
|
-
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
15643
|
-
d: "m4.122 12.763 1.516.785 2.565.34h1.985l1.61-.822 1.469-4.105V7.484c-.558 2.76-1.498 4.33-2.818 4.71-1.32.38-3.408.145-6.265-.702l-.062 1.271Z",
|
|
15644
|
-
fill: "#FFB000"
|
|
15645
|
-
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
15646
|
-
d: "m4.516 6.473 1.659-1.416.967-1.495.365-2.419L8.695.341l1.088.525-.14 1.328c-.231-.748-.577-1.001-1.037-.759-.69.364.198 3.188-1.653 4.131-1.851.943-2.83 3.42-2.83 4.836V7.398l.393-.925Z",
|
|
15647
|
-
fill: "#FFEB97"
|
|
15648
|
-
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
15649
|
-
d: "M8.57.34c.155.007.614.055.932.425.19.22.32.553.32 1.041 0 1.103-.015 2.13-.27 2.785.518.815 1.092.876 1.713.88h.251c.518 0 1.098.049 1.534.254.256.12.462.297.532.579.069 2.345-.761 5.687-1.63 6.555-.787.797-1.156.783-3.146.802-1.968 0-2.958-.358-3.878-.73a37.501 37.501 0 0 0-.75-.297v-4.93c.028-.168.2-1.11.605-1.624.241-.306.576-.548.912-.797.83-.613 1.644-1.26 1.644-2.573 0-.815.148-1.364.36-1.73.31-.539.758-.63.87-.64Z",
|
|
15650
|
-
stroke: "#975F00",
|
|
15651
|
-
strokeWidth: ".677"
|
|
15652
|
-
}), /*#__PURE__*/React__default["default"].createElement("rect", {
|
|
15653
|
-
stroke: "#975F00",
|
|
15654
|
-
strokeWidth: ".677",
|
|
15655
|
-
fill: "#FFF",
|
|
15656
|
-
x: ".339",
|
|
15657
|
-
y: "6.339",
|
|
15658
|
-
width: "3.839",
|
|
15659
|
-
height: "7.323",
|
|
15660
|
-
rx: "1.129"
|
|
15661
|
-
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
15662
|
-
d: "M.677 11.516c0 .25.203.452.452.452h2.258c.25 0 .452-.202.452-.452v1.355c0 .25-.202.452-.452.452H1.13a.452.452 0 0 1-.452-.452Z",
|
|
15663
|
-
fill: "#CCC"
|
|
15664
|
-
})));
|
|
15665
|
-
});
|
|
15666
|
-
ThumbsUpIcon.displayName = "ThumbsUpIcon";
|
|
15667
|
-
var ThumbsUpIcon$1 = ThumbsUpIcon;
|
|
15668
|
-
|
|
15669
|
-
var ThumbsDownIcon = /*#__PURE__*/React__default["default"].forwardRef(function (props, svgRef) {
|
|
15670
|
-
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
15671
|
-
width: "14",
|
|
15672
|
-
height: "14",
|
|
15673
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
15674
|
-
ref: svgRef
|
|
15675
|
-
}, props), /*#__PURE__*/React__default["default"].createElement("g", {
|
|
15676
|
-
fill: "none",
|
|
15677
|
-
fillRule: "evenodd"
|
|
15678
|
-
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
15679
|
-
d: "M7 11.29C7 9.523 8.692 9.134 9.484 8.13c.487-.62.677-1.806.677-1.806V1.129C8.818.659 7.904 0 5.194 0 3.03.021 2.654.045 1.806.903.903 1.806 0 5.293 0 7.226c0 .15.04.322.08.514.198.934 1.401 1.129 2.404 1.129.718 0 1.401-.11 1.423-.11.214 0 .315.299.226.527-.266.684-.294 1.755-.294 2.908C3.839 14 5.419 14 5.419 14S7 14 7 11.29Z",
|
|
15680
|
-
fill: "#FFD60B"
|
|
15681
|
-
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
15682
|
-
d: "M9.878 1.237 8.362.452 5.797.112H3.812l-1.61.822L.733 5.04v1.477c.558-2.76 1.498-4.33 2.818-4.71 1.32-.38 3.408-.145 6.265.702l.062-1.271Z",
|
|
15683
|
-
fill: "#FFB000"
|
|
15684
|
-
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
15685
|
-
d: "M9.484 7.527 7.825 8.943l-.967 1.495-.365 2.419-1.188.802-1.088-.525.14-1.328c.231.748.577 1.001 1.037.759.69-.364-.198-3.188 1.653-4.131 1.851-.943 2.83-3.42 2.83-4.836v3.004l-.393.925Z",
|
|
15686
|
-
fill: "#FFEB97"
|
|
15687
|
-
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
15688
|
-
d: "M5.43 13.66c-.155-.007-.614-.055-.932-.425-.19-.22-.32-.553-.32-1.041 0-1.103.015-2.13.27-2.785-.518-.815-1.092-.876-1.713-.88h-.251c-.518 0-1.098-.049-1.534-.254-.256-.12-.462-.297-.532-.579-.069-2.345.761-5.687 1.63-6.555C2.834.344 3.203.358 5.193.34c2.083 0 3.072.401 4.04.795.195.079.388.157.589.232v4.93c-.029.168-.202 1.11-.606 1.624-.213.27-.499.49-.794.71-1.074.8-1.762 1.446-1.762 2.66 0 .815-.148 1.364-.36 1.73-.31.539-.758.63-.87.64Z",
|
|
15689
|
-
stroke: "#975F00",
|
|
15690
|
-
strokeWidth: ".677"
|
|
15691
|
-
}), /*#__PURE__*/React__default["default"].createElement("rect", {
|
|
15692
|
-
stroke: "#975F00",
|
|
15693
|
-
strokeWidth: ".677",
|
|
15694
|
-
fill: "#FFF",
|
|
15695
|
-
transform: "rotate(180 11.742 4)",
|
|
15696
|
-
x: "9.823",
|
|
15697
|
-
y: ".339",
|
|
15698
|
-
width: "3.839",
|
|
15699
|
-
height: "7.323",
|
|
15700
|
-
rx: "1.129"
|
|
15701
|
-
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
15702
|
-
d: "M13.323 2.484a.452.452 0 0 0-.452-.452h-2.258a.452.452 0 0 0-.452.452V1.129c0-.25.202-.452.452-.452h2.258c.25 0 .452.203.452.452Z",
|
|
15703
|
-
fill: "#CCC"
|
|
15704
|
-
})));
|
|
15705
|
-
});
|
|
15706
|
-
ThumbsDownIcon.displayName = "ThumbsDownIcon";
|
|
15707
|
-
var ThumbsDownIcon$1 = ThumbsDownIcon;
|
|
15708
|
-
|
|
15709
|
-
var _excluded$f = ["invalid", "required", "size", "children", "className", "weight", "htmlFor"];
|
|
15710
|
-
var Label = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
15711
|
-
var _ref$invalid = _ref.invalid,
|
|
15712
|
-
invalid = _ref$invalid === void 0 ? false : _ref$invalid,
|
|
15713
|
-
_ref$required = _ref.required,
|
|
15714
|
-
required = _ref$required === void 0 ? false : _ref$required,
|
|
15715
|
-
_ref$size = _ref.size,
|
|
15716
|
-
size = _ref$size === void 0 ? "regular" : _ref$size,
|
|
15717
|
-
children = _ref.children,
|
|
15718
|
-
className = _ref.className,
|
|
15719
|
-
_ref$weight = _ref.weight,
|
|
15720
|
-
weight = _ref$weight === void 0 ? "bold" : _ref$weight,
|
|
15721
|
-
htmlFor = _ref.htmlFor,
|
|
15722
|
-
props = _objectWithoutProperties(_ref, _excluded$f);
|
|
15723
|
-
var color = invalid ? "alert" : "primary";
|
|
15724
|
-
var variant = size === "regular" ? "Body 2" : "Caption 1";
|
|
15725
|
-
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
15726
|
-
as: "label",
|
|
15727
|
-
className: classNames__default["default"]("c-label", className),
|
|
15728
|
-
variant: variant,
|
|
15729
|
-
color: color,
|
|
15730
|
-
weight: weight,
|
|
15731
|
-
ref: ref,
|
|
15732
|
-
htmlFor: htmlFor
|
|
15733
|
-
}, props), children, required ? "*" : null);
|
|
15734
|
-
});
|
|
15735
|
-
Label.displayName = "Label";
|
|
15736
|
-
|
|
15737
|
-
var GlobalStyle = styled.createGlobalStyle([":root{--color-primary:#5d2bff;--color-secondary:#5d2bff;--color-theme-100:#ffffff;--color-theme-200:#f6f6f9;--color-theme-300:#ebebee;--color-theme-400:#d7d7da;--color-theme-500:#b9b9bd;--color-theme-600:#89898e;--color-theme-700:#6d6d73;--color-theme-800:#5b5b61;--color-theme-900:#303037;--color-primary-200:rgba(93,43,255,0.05);--color-primary-300:rgba(93,43,255,0.1);--color-primary-400:rgba(93,43,255,0.25);--color-primary-500:rgba(93,43,255,0.5);--color-primary-600:rgba(93,43,255,0.75);--color-primary-700:#5d2bff;--color-primary-800:#4a21cd;--color-primary-900:#32178b;--color-secondary-200:rgba(93,43,255,0.05);--color-secondary-300:rgba(93,43,255,0.1);--color-secondary-400:rgba(93,43,255,0.25);--color-secondary-500:rgba(93,43,255,0.5);--color-secondary-600:rgba(93,43,255,0.75);--color-secondary-700:#5d2bff;--color-secondary-800:#4a21cd;--color-secondary-900:#32178b;--color-theme-transparent-200:rgba(36,36,76,0.04);--color-theme-transparent-300:rgba(48,48,55,0.1);--color-theme-transparent-400:rgba(48,48,55,0.2);--color-theme-transparent-500:rgba(48,48,55,0.34);--color-theme-transparent-600:rgba(48,48,55,0.57);--color-theme-transparent-700:rgba(48,48,55,0.7);--color-theme-transparent-800:rgba(48,48,55,0.8);--color-primary-opaque-300:#efeaff;--color-primary-opaque-400:#d6caff;--color-secondary-opaque-300:#efeaff;--color-secondary-opaque-400:#d6caff;--color-sucess-green:#64cd93;--color-pale-green:#c3e799;--body-bg-main:rgb(244,245,247);--body-bg-main-transparent:rgba(244,245,247,0);--page-paper-main:#ffffff;--border-primary:#d7d7da;--note-bg:#fff9f1;--shadow-primary-hover:0 64px 64px 0 rgba(0,0,0,0.1),0 32px 32px 0 rgba(0,0,0,0.06),0 16px 16px 0 rgba(0,0,0,0.04),0 4px 4px 0 rgba(0,0,0,0.04),0 2px 2px 0 rgba(0,0,0,0.04);--shadow-primary:0 64px 64px 0 rgba(0,0,0,0.06),0 32px 32px 0 rgba(0,0,0,0.03),0 16px 16px 0 rgba(0,0,0,0.02),0 4px 4px 0 rgba(0,0,0,0.02),0 2px 2px 0 rgba(0,0,0,0.02);--shadow-secondary:0 4px 14px 0 rgba(0,0,0,0.17);--shadow-tertiary:0 4px 6px -2px rgba(0,0,0,0.05),0 10px 15px -3px rgba(0,0,0,0.1);--shadow-tertiary-hover:0 4px 10px -2px rgba(0,0,0,0.1),0 12px 20px -3px rgba(0,0,0,0.2);--page-paper-main-shadow:rgba( 255,255,255,0 );--modal-background:rgba(244,245,247,0.6);--highlight-dark:rgba(0,0,0,0.03);--input-background-color:#ffffff;--red-alert:rgb(237,97,97);-- --warning:#ffcc6b;--only-white:#ffffff;--only-black:#000000;--ac-br-4:4px;--ac-br-6:6px;--ac-br-8:8px;--ac-br-rounded:999px;}.cupcake{--color-primary:#29bcdd;--color-secondary:#fe6fa7;--color-primary-200:rgba(41,188,221,0.07);--color-primary-300:rgba(41,188,221,0.12);--color-primary-400:rgba(41,188,221,0.26);--color-primary-500:rgba(41,188,221,0.52);--color-primary-600:rgba(41,188,221,0.75);--color-primary-700:#29bcdd;--color-primary-800:#219fbb;--color-primary-900:#1a768b;--color-secondary-200:rgba(254,111,167,0.07);--color-secondary-300:rgba(254,111,167,0.13);--color-secondary-400:rgba(254,111,167,0.27);--color-secondary-500:rgba(254,111,167,0.52);--color-secondary-600:rgba(254,111,167,0.75);--color-secondary-700:#fe6fa7;--color-secondary-800:#dd6091;--color-secondary-900:#ab496f;--color-primary-opaque-300:#e5f7fb;--color-primary-opaque-400:#c8eef6;--color-secondary-opaque-300:#ffecf4;--color-secondary-opaque-400:#ffd8e7;}.classic{--color-primary:#4182f2;--color-secondary:#4182f2;--color-primary-200:rgba(65,130,242,0.07);--color-primary-300:rgba(65,130,242,0.13);--color-primary-400:rgba(65,130,242,0.26);--color-primary-500:rgba(65,130,242,0.52);--color-primary-600:rgba(65,130,242,0.75);--color-primary-700:#4182f2;--color-primary-800:#356bc8;--color-primary-900:#244a8a;--color-secondary-200:rgba(65,130,242,0.07);--color-secondary-300:rgba(65,130,242,0.13);--color-secondary-400:rgba(65,130,242,0.26);--color-secondary-500:rgba(65,130,242,0.52);--color-secondary-600:rgba(65,130,242,0.75);--color-secondary-700:#4182f2;--color-secondary-800:#356bc8;--color-secondary-900:#244a8a;--color-primary-opaque-300:#e6effd;--color-primary-opaque-400:#cedffc;--color-secondary-opaque-300:#e6effd;--color-secondary-opaque-400:#cedffc;}.neon{--color-primary:#67ffc8;--color-secondary:#67ffc8;--color-theme-100:#000000;--color-theme-200:#31333e;--color-theme-300:#2b2d37;--color-theme-400:#1f2024;--color-theme-500:#6D6D73;--color-theme-600:#89898e;--color-theme-700:#b0b0b5;--color-theme-800:#dfdfe5;--color-theme-900:#ffffff;--color-primary-200:rgba(103,255,200,0.05);--color-primary-300:rgba(103,255,200,0.1);--color-primary-400:rgba(103,255,200,0.25);--color-primary-500:rgba(103,255,200,0.5);--color-primary-600:rgba(103,255,200,0.75);--color-primary-700:#67ffc8;--color-primary-800:#a5ffdf;--color-primary-900:#d0fdec;--color-secondary-200:rgba(103,255,200,0.05);--color-secondary-300:rgba(103,255,200,0.1);--color-secondary-400:rgba(103,255,200,0.25);--color-secondary-500:rgba(103,255,200,0.5);--color-secondary-600:rgba(103,255,200,0.75);--color-secondary-700:#67ffc8;--color-secondary-800:#a5ffdf;--color-secondary-900:#d0fdec;--color-theme-transparent-200:rgba(6,7,8,0.12);--color-theme-transparent-300:rgba(6,7,8,0.22);--color-theme-transparent-400:rgba(6,7,8,0.5);--color-theme-transparent-500:rgba(255,255,255,0.27);--color-theme-transparent-600:rgba(255,255,255,0.4);--color-theme-transparent-700:rgba(255,255,255,0.6);--color-theme-transparent-800:rgba(255,255,255,0.85);--color-primary-opaque-300:#3b4e51;--color-primary-opaque-400:#436b64;--color-secondary-opaque-300:#3b4e51;--color-secondary-opaque-400:#436b64;--body-bg-main:rgb(44,46,56);--body-bg-main-transparent:rgba(44,46,56,0);--page-paper-main:#373a44;--border-primary:#1f2024;--note-bg:#464545;--shadow-primary-hover:0 64px 64px 0 rgba(0,0,0,0.2),0 32px 32px 0 rgba(0,0,0,0.2),0 16px 16px 0 rgba(0,0,0,0.2),0 4px 4px 0 rgba(0,0,0,0.2),0 2px 2px 0 rgba(0,0,0,0.2);--shadow-primary:0 64px 64px 0 rgba(0,0,0,0.1),0 32px 32px 0 rgba(0,0,0,0.1),0 16px 16px 0 rgba(0,0,0,0.1),0 4px 4px 0 rgba(0,0,0,0.1),0 2px 2px 0 rgba(0,0,0,0.1);--shadow-secondary:0 4px 14px 0 rgba(0,0,0,0.3);--shadow-tertiary:0 4px 6px -2px rgba(0,0,0,0.1),0 10px 15px -3px rgba(0,0,0,0.15);--shadow-tertiary-hover:0 4px 12px -2px rgba(0,0,0,0.4),0 10px 30px -3px rgba(0,0,0,0.5);--page-paper-main-shadow:rgba( 55,58,68,0 );--modal-background:rgba(44,46,56,0.7);--highlight-dark:rgba(0,0,0,0.06);--input-background-color:#2c2e38;--only-white:#ffffff;--only-black:#000000;}html{color-scheme:light;}html{&.neon{color-scheme:dark;}}.ac-shadow,.ac-shadow--raised{&--lg{box-shadow:var(--shadow-primary);}&--sm{box-shadow:var(--shadow-tertiary);}}.ac-shadow--raised{&--lg{transition:box-shadow 0.3s;&:hover{box-shadow:var(--shadow-primary-hover);}}&--sm{transition:box-shadow 0.3s;&:hover{box-shadow:var(--shadow-tertiary-hover);}}}.ac-shadow-optimized--sm{position:relative;box-shadow:var(--shadow-tertiary);&::before{position:absolute;top:0;left:0;width:100%;height:100%;content:\"\";box-shadow:var(--shadow-tertiary);opacity:0;border-radius:var(--ac-br-6);transition:opacity 0.3s ease;z-index:-1;}@media (hover:hover){&:hover::before{opacity:1;}}}.ac-shadow-optimized--lg{position:relative;box-shadow:var(--shadow-primary);&::before{position:absolute;top:0;left:0;width:100%;height:100%;content:\"\";box-shadow:var(--shadow-primary);opacity:0;border-radius:var(--ac-br-8);transition:opacity 0.3s ease;z-index:-1;}@media (hover:hover){&:hover::before{opacity:1;}}}.ac-border-radius{&-4{border-radius:var(--ac-br-4);}&-6{border-radius:var(--ac-br-6);}&-8{border-radius:var(--ac-br-8);}&-rounded{border-radius:var(--ac-br-rounded);}}.c-cooltip{position:relative;--cooltip-spacing:0.5rem;--cooltip-padding:0.25rem 0.625rem;--cooltip-max-width:12.5rem;--cooltip-transition-duration:0.15s,0.1s,0.15s;--cooltip-transition-delay:0.6s;--cooltip-timing:ease,ease,cubic-bezier(0.39,0.575,0.565,1);}.c-cooltip::after{pointer-events:none;content:attr(data-tooltip);position:absolute;color:#fff;opacity:0;background-color:rgba(0,0,0,0.9);border-radius:0.5rem;font-size:0.75rem;font-weight:500;line-height:1.3;max-width:var(--cooltip-max-width);padding:var(--cooltip-padding);text-align:center;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}.c-cooltip--top::after{bottom:calc(100% + var(--cooltip-spacing));left:50%;transform:scale(0.85) translateX(-50%);transform-origin:0;}.c-cooltip--right::after{left:calc(100% + var(--cooltip-spacing));transform:scale(0.85);}.c-cooltip--bottom::after{top:calc(100% + var(--cooltip-spacing));left:50%;transform:scale(0.85) translateX(-50%);transform-origin:0;}.c-cooltip--left::after{right:calc(100% + var(--cooltip-spacing));transform:scale(0.85);}.c-cooltip:disabled::after,[aria-pressed=\"true\"]::after{display:none;}@media (hover:hover){.c-cooltip--top:not(:focus):hover::after,.c-cooltip--bottom:not(:focus):hover::after{transition-property:opacity,transform;transition-duration:var(--cooltip-transition-duration);transition-delay:var(--cooltip-transition-delay);transition-timing-function:var(--cooltip-timing);transform:scale(1) translateX(-50%);opacity:1;}.c-cooltip--right:not(:focus):hover::after,.c-cooltip--left:not(:focus):hover::after{transition-property:opacity,transform;transition-duration:var(--cooltip-transition-duration);transition-delay:var(--cooltip-transition-delay);transition-timing-function:var(--cooltip-timing);transform:scale(1);opacity:1;}}"]);
|
|
15738
|
-
|
|
15739
|
-
var StyledDiv = styled__default["default"].div.withConfig({
|
|
15740
|
-
displayName: "Styles__StyledDiv",
|
|
15741
|
-
componentId: "sc-1wapx2a-0"
|
|
15742
|
-
})(["", " ", " ", ""], FontStyle, BoxSizingStyle, {
|
|
15743
|
-
"position": "relative",
|
|
15744
|
-
"display": "inline-block",
|
|
15745
|
-
"maxWidth": "100%"
|
|
15746
|
-
});
|
|
15747
|
-
var StyledSpan = styled__default["default"](Typography).withConfig({
|
|
15748
|
-
displayName: "Styles__StyledSpan",
|
|
15749
|
-
componentId: "sc-1wapx2a-1"
|
|
15750
|
-
})(["visibility:hidden;display:block;padding-left:4px;padding-right:4px;padding-top:1px;padding-bottom:1px;position:relative;border:1px solid transparent;border-radius:6px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:pre;font-variant-numeric:tabular-nums;", " &:empty:before{content:\" \";}"], function (_ref) {
|
|
15751
|
-
var $disabled = _ref.$disabled;
|
|
15752
|
-
return $disabled && styled.css(["visibility:visible;"]);
|
|
15753
|
-
});
|
|
15754
|
-
StyledSpan.displayName = "StyledSpan";
|
|
15755
|
-
var StyledInput$1 = styled__default["default"](Typography).withConfig({
|
|
15756
|
-
displayName: "Styles__StyledInput",
|
|
15757
|
-
componentId: "sc-1wapx2a-2"
|
|
15758
|
-
})(["", " background-color:inherit;padding-left:4px;padding-right:4px;padding-top:1px;padding-bottom:1px;text-overflow:ellipsis;font-variant-numeric:tabular-nums;&:focus-whitin{text-overflow:clip;}outline-width:0px;outline:none;&:disabled{display:none;}"], {
|
|
15759
|
-
"position": "absolute",
|
|
15760
|
-
"inset": "0px",
|
|
15761
|
-
"boxSizing": "border-box",
|
|
15762
|
-
"width": "100%",
|
|
15763
|
-
"overflow": "hidden",
|
|
15764
|
-
"whiteSpace": "nowrap",
|
|
15765
|
-
"borderRadius": "0.375rem",
|
|
15766
|
-
"borderWidth": "1px",
|
|
15767
|
-
"borderStyle": "solid",
|
|
15768
|
-
"borderColor": "transparent",
|
|
15769
|
-
":focus-within": {
|
|
15770
|
-
"overflow": "scroll",
|
|
15771
|
-
"borderColor": "var(--color-theme-700)"
|
|
15772
|
-
},
|
|
15773
|
-
":hover": {
|
|
15774
|
-
"borderColor": "var(--color-theme-700)"
|
|
15775
|
-
}
|
|
15776
|
-
});
|
|
15777
|
-
StyledInput$1.displayName = "StyledInput";
|
|
15778
|
-
|
|
15779
|
-
var _excluded$e = ["className", "variant", "weight", "disabled", "inputProps", "wrapRef"];
|
|
15780
|
-
var EditableContent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
15781
|
-
var className = _ref.className,
|
|
15782
|
-
_ref$variant = _ref.variant,
|
|
15783
|
-
variant = _ref$variant === void 0 ? "Body 2" : _ref$variant,
|
|
15784
|
-
weight = _ref.weight,
|
|
15785
|
-
_ref$disabled = _ref.disabled,
|
|
15786
|
-
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
15787
|
-
inputProps = _ref.inputProps,
|
|
15788
|
-
wrapRef = _ref.wrapRef,
|
|
15789
|
-
props = _objectWithoutProperties(_ref, _excluded$e);
|
|
15790
|
-
var intInputRef = React.useRef(null);
|
|
15791
|
-
var handleRef = useForkRef(ref, intInputRef);
|
|
15792
|
-
var handleBlur = React.useCallback(function (evt) {
|
|
15793
|
-
if (intInputRef !== null && intInputRef !== void 0 && intInputRef.current) {
|
|
15794
|
-
intInputRef.current.scrollLeft = 0;
|
|
15795
|
-
}
|
|
15796
|
-
typeof (inputProps === null || inputProps === void 0 ? void 0 : inputProps.onBlur) === "function" && (inputProps === null || inputProps === void 0 ? void 0 : inputProps.onBlur(evt));
|
|
15797
|
-
}, [inputProps]);
|
|
15798
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledDiv, _extends({
|
|
15799
|
-
className: className,
|
|
15800
|
-
ref: wrapRef
|
|
15801
|
-
}, props), /*#__PURE__*/React__default["default"].createElement(StyledSpan, {
|
|
15802
|
-
variant: variant,
|
|
15803
|
-
forwardedAs: "span",
|
|
15804
|
-
weight: weight,
|
|
15805
|
-
$disabled: disabled
|
|
15806
|
-
}, inputProps === null || inputProps === void 0 ? void 0 : inputProps.value), /*#__PURE__*/React__default["default"].createElement(StyledInput$1, _extends({}, inputProps, {
|
|
15807
|
-
ref: handleRef,
|
|
15808
|
-
forwardedAs: "input",
|
|
15809
|
-
variant: variant,
|
|
15810
|
-
weight: weight,
|
|
15811
|
-
value: inputProps === null || inputProps === void 0 ? void 0 : inputProps.value,
|
|
15812
|
-
onBlur: handleBlur,
|
|
15813
|
-
disabled: disabled,
|
|
15814
|
-
"data-form-type": "other"
|
|
16045
|
+
}), /*#__PURE__*/React__default["default"].createElement("circle", {
|
|
16046
|
+
stroke: "#975F00",
|
|
16047
|
+
strokeWidth: ".677",
|
|
16048
|
+
cx: "7",
|
|
16049
|
+
cy: "7",
|
|
16050
|
+
r: "6.661"
|
|
16051
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
16052
|
+
fill: "#FFF",
|
|
16053
|
+
d: "M2 14V7h2.968v2.258H10v2.484H7.687V14z"
|
|
16054
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
16055
|
+
fill: "#CCC",
|
|
16056
|
+
d: "M2 12h5.113v2H2z"
|
|
16057
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
16058
|
+
d: "M4.593 7.375v2.258h5.032v1.734h-2.21v2.258h-5.04v-6.25h2.218Z",
|
|
16059
|
+
stroke: "#5A3900",
|
|
16060
|
+
strokeWidth: ".75"
|
|
16061
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
16062
|
+
d: "M6.206 7.71s3.326-.847 4.657.847",
|
|
16063
|
+
stroke: "#000"
|
|
16064
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
16065
|
+
fill: "#000",
|
|
16066
|
+
fillRule: "nonzero",
|
|
16067
|
+
d: "M10 3h2v1h-2zM6 2h2v1H6z"
|
|
15815
16068
|
})));
|
|
15816
16069
|
});
|
|
15817
|
-
|
|
16070
|
+
ThinkingIcon.displayName = "ThinkingIcon";
|
|
16071
|
+
var ThinkingIcon$1 = ThinkingIcon;
|
|
15818
16072
|
|
|
15819
|
-
var
|
|
15820
|
-
|
|
15821
|
-
|
|
15822
|
-
|
|
15823
|
-
|
|
15824
|
-
|
|
15825
|
-
|
|
15826
|
-
|
|
15827
|
-
|
|
15828
|
-
|
|
15829
|
-
|
|
15830
|
-
|
|
15831
|
-
|
|
15832
|
-
|
|
15833
|
-
|
|
15834
|
-
|
|
15835
|
-
|
|
15836
|
-
|
|
15837
|
-
|
|
15838
|
-
|
|
15839
|
-
|
|
15840
|
-
|
|
15841
|
-
|
|
15842
|
-
|
|
15843
|
-
|
|
15844
|
-
|
|
15845
|
-
|
|
15846
|
-
|
|
15847
|
-
|
|
15848
|
-
|
|
15849
|
-
|
|
15850
|
-
|
|
15851
|
-
|
|
15852
|
-
|
|
15853
|
-
|
|
15854
|
-
}
|
|
15855
|
-
}
|
|
15856
|
-
}, [allowEmptyString, onSave, prevValue]);
|
|
15857
|
-
var handleKeyDown = React.useCallback(function (e) {
|
|
15858
|
-
if (e.key === "Enter") {
|
|
15859
|
-
e.target.blur();
|
|
15860
|
-
}
|
|
15861
|
-
if (e.key === "Escape") {
|
|
15862
|
-
escapeRef.current = true;
|
|
15863
|
-
e.target.blur();
|
|
15864
|
-
typeof onCancel === "function" && onCancel();
|
|
15865
|
-
}
|
|
15866
|
-
}, [onCancel]);
|
|
15867
|
-
var handleChange = React.useCallback(function (e) {
|
|
15868
|
-
setCurrentValue(e.target.value);
|
|
15869
|
-
}, []);
|
|
15870
|
-
return /*#__PURE__*/React__default["default"].createElement(EditableContent, _extends({}, props, {
|
|
15871
|
-
ref: ref,
|
|
15872
|
-
inputProps: _objectSpread2(_objectSpread2({}, inputProps), {}, {
|
|
15873
|
-
value: currentValue !== null && currentValue !== void 0 ? currentValue : "",
|
|
15874
|
-
onBlur: handleBlur,
|
|
15875
|
-
onKeyDown: handleKeyDown,
|
|
15876
|
-
onChange: handleChange,
|
|
15877
|
-
type: "text",
|
|
15878
|
-
className: classNames__default["default"]("c-input", inputProps === null || inputProps === void 0 ? void 0 : inputProps.className)
|
|
15879
|
-
})
|
|
15880
|
-
}));
|
|
16073
|
+
var ThumbsUpIcon = /*#__PURE__*/React__default["default"].forwardRef(function (props, svgRef) {
|
|
16074
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
16075
|
+
width: "14",
|
|
16076
|
+
height: "14",
|
|
16077
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
16078
|
+
ref: svgRef
|
|
16079
|
+
}, props), /*#__PURE__*/React__default["default"].createElement("g", {
|
|
16080
|
+
fill: "none",
|
|
16081
|
+
fillRule: "evenodd"
|
|
16082
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
16083
|
+
d: "M7 2.71C7 4.477 5.308 4.866 4.516 5.87c-.487.62-.677 1.806-.677 1.806v5.194C5.182 13.341 6.096 14 8.806 14c2.164-.021 2.54-.045 3.388-.903.903-.903 1.806-4.39 1.806-6.323 0-.15-.04-.322-.08-.514-.198-.934-1.401-1.129-2.404-1.129-.718 0-1.401.11-1.423.11-.214 0-.315-.299-.226-.527.266-.684.294-1.755.294-2.908C10.161 0 8.581 0 8.581 0S7 0 7 2.71Z",
|
|
16084
|
+
fill: "#FFD60B"
|
|
16085
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
16086
|
+
d: "m4.122 12.763 1.516.785 2.565.34h1.985l1.61-.822 1.469-4.105V7.484c-.558 2.76-1.498 4.33-2.818 4.71-1.32.38-3.408.145-6.265-.702l-.062 1.271Z",
|
|
16087
|
+
fill: "#FFB000"
|
|
16088
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
16089
|
+
d: "m4.516 6.473 1.659-1.416.967-1.495.365-2.419L8.695.341l1.088.525-.14 1.328c-.231-.748-.577-1.001-1.037-.759-.69.364.198 3.188-1.653 4.131-1.851.943-2.83 3.42-2.83 4.836V7.398l.393-.925Z",
|
|
16090
|
+
fill: "#FFEB97"
|
|
16091
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
16092
|
+
d: "M8.57.34c.155.007.614.055.932.425.19.22.32.553.32 1.041 0 1.103-.015 2.13-.27 2.785.518.815 1.092.876 1.713.88h.251c.518 0 1.098.049 1.534.254.256.12.462.297.532.579.069 2.345-.761 5.687-1.63 6.555-.787.797-1.156.783-3.146.802-1.968 0-2.958-.358-3.878-.73a37.501 37.501 0 0 0-.75-.297v-4.93c.028-.168.2-1.11.605-1.624.241-.306.576-.548.912-.797.83-.613 1.644-1.26 1.644-2.573 0-.815.148-1.364.36-1.73.31-.539.758-.63.87-.64Z",
|
|
16093
|
+
stroke: "#975F00",
|
|
16094
|
+
strokeWidth: ".677"
|
|
16095
|
+
}), /*#__PURE__*/React__default["default"].createElement("rect", {
|
|
16096
|
+
stroke: "#975F00",
|
|
16097
|
+
strokeWidth: ".677",
|
|
16098
|
+
fill: "#FFF",
|
|
16099
|
+
x: ".339",
|
|
16100
|
+
y: "6.339",
|
|
16101
|
+
width: "3.839",
|
|
16102
|
+
height: "7.323",
|
|
16103
|
+
rx: "1.129"
|
|
16104
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
16105
|
+
d: "M.677 11.516c0 .25.203.452.452.452h2.258c.25 0 .452-.202.452-.452v1.355c0 .25-.202.452-.452.452H1.13a.452.452 0 0 1-.452-.452Z",
|
|
16106
|
+
fill: "#CCC"
|
|
16107
|
+
})));
|
|
15881
16108
|
});
|
|
15882
|
-
|
|
15883
|
-
|
|
15884
|
-
// export const decimalToHours = (decimal: string) => {
|
|
15885
|
-
// // we round it on two decimals first, to eliminate quirks, eg, 5.99999999 will return 5:59 instead of 6:00
|
|
15886
|
-
// decimal = parseFloat(decimal).toFixed(2);
|
|
15887
|
-
// decimal = decimal + "";
|
|
15888
|
-
// let hours;
|
|
15889
|
-
// let minutes_decimal;
|
|
15890
|
-
//
|
|
15891
|
-
// if (decimal.indexOf(".") < 0) {
|
|
15892
|
-
// hours = parseInt(decimal);
|
|
15893
|
-
// minutes_decimal = 0;
|
|
15894
|
-
// } else {
|
|
15895
|
-
// hours = parseInt(decimal.substring(0, decimal.indexOf(".")));
|
|
15896
|
-
// minutes_decimal = decimal.substring(decimal.indexOf(".") + 1);
|
|
15897
|
-
// minutes_decimal = minutes_decimal.substring(0, 2);
|
|
15898
|
-
// if (minutes_decimal.length === 1) {
|
|
15899
|
-
// minutes_decimal += "0";
|
|
15900
|
-
// } // if
|
|
15901
|
-
// minutes_decimal = parseInt(minutes_decimal);
|
|
15902
|
-
// } // if
|
|
15903
|
-
//
|
|
15904
|
-
// const minutes = Math.round((minutes_decimal / 100) * 60);
|
|
15905
|
-
//
|
|
15906
|
-
// if (hours < 10) {
|
|
15907
|
-
// hours = `0${hours}`;
|
|
15908
|
-
// }
|
|
15909
|
-
// return {
|
|
15910
|
-
// hours: hours,
|
|
15911
|
-
// minutes: minutes,
|
|
15912
|
-
// };
|
|
15913
|
-
// };
|
|
16109
|
+
ThumbsUpIcon.displayName = "ThumbsUpIcon";
|
|
16110
|
+
var ThumbsUpIcon$1 = ThumbsUpIcon;
|
|
15914
16111
|
|
|
15915
|
-
var
|
|
15916
|
-
|
|
15917
|
-
|
|
15918
|
-
|
|
15919
|
-
|
|
15920
|
-
|
|
15921
|
-
|
|
15922
|
-
|
|
15923
|
-
|
|
15924
|
-
|
|
15925
|
-
|
|
15926
|
-
|
|
15927
|
-
|
|
15928
|
-
|
|
15929
|
-
|
|
15930
|
-
|
|
15931
|
-
|
|
15932
|
-
|
|
15933
|
-
|
|
15934
|
-
|
|
15935
|
-
|
|
15936
|
-
|
|
15937
|
-
|
|
15938
|
-
|
|
15939
|
-
|
|
15940
|
-
|
|
15941
|
-
|
|
15942
|
-
|
|
15943
|
-
|
|
15944
|
-
|
|
15945
|
-
|
|
15946
|
-
|
|
15947
|
-
}
|
|
15948
|
-
|
|
15949
|
-
|
|
15950
|
-
|
|
15951
|
-
|
|
15952
|
-
|
|
15953
|
-
|
|
15954
|
-
}
|
|
15955
|
-
var decimal = input.toFixed(2);
|
|
15956
|
-
var time = decimal.toString().split(".");
|
|
15957
|
-
var hours = time[0];
|
|
15958
|
-
if (withLeadingZeroHours) {
|
|
15959
|
-
hours = withLeadingZero(hours);
|
|
15960
|
-
}
|
|
15961
|
-
var minutes = time[1];
|
|
15962
|
-
var minutes_formatted = Math.round(parseInt(minutes, 10) / 100 * 60);
|
|
15963
|
-
return "".concat(hours, ":").concat(withLeadingZero(minutes_formatted));
|
|
15964
|
-
};
|
|
15965
|
-
var withLeadingZero = function withLeadingZero(num) {
|
|
15966
|
-
var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
15967
|
-
var s = "".concat(num);
|
|
15968
|
-
while (s.length < size) {
|
|
15969
|
-
s = "0" + s;
|
|
15970
|
-
}
|
|
15971
|
-
return s;
|
|
15972
|
-
};
|
|
15973
|
-
var isDecimal = function isDecimal(num) {
|
|
15974
|
-
return !Number.isInteger(num);
|
|
15975
|
-
};
|
|
16112
|
+
var ThumbsDownIcon = /*#__PURE__*/React__default["default"].forwardRef(function (props, svgRef) {
|
|
16113
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
16114
|
+
width: "14",
|
|
16115
|
+
height: "14",
|
|
16116
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
16117
|
+
ref: svgRef
|
|
16118
|
+
}, props), /*#__PURE__*/React__default["default"].createElement("g", {
|
|
16119
|
+
fill: "none",
|
|
16120
|
+
fillRule: "evenodd"
|
|
16121
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
16122
|
+
d: "M7 11.29C7 9.523 8.692 9.134 9.484 8.13c.487-.62.677-1.806.677-1.806V1.129C8.818.659 7.904 0 5.194 0 3.03.021 2.654.045 1.806.903.903 1.806 0 5.293 0 7.226c0 .15.04.322.08.514.198.934 1.401 1.129 2.404 1.129.718 0 1.401-.11 1.423-.11.214 0 .315.299.226.527-.266.684-.294 1.755-.294 2.908C3.839 14 5.419 14 5.419 14S7 14 7 11.29Z",
|
|
16123
|
+
fill: "#FFD60B"
|
|
16124
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
16125
|
+
d: "M9.878 1.237 8.362.452 5.797.112H3.812l-1.61.822L.733 5.04v1.477c.558-2.76 1.498-4.33 2.818-4.71 1.32-.38 3.408-.145 6.265.702l.062-1.271Z",
|
|
16126
|
+
fill: "#FFB000"
|
|
16127
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
16128
|
+
d: "M9.484 7.527 7.825 8.943l-.967 1.495-.365 2.419-1.188.802-1.088-.525.14-1.328c.231.748.577 1.001 1.037.759.69-.364-.198-3.188 1.653-4.131 1.851-.943 2.83-3.42 2.83-4.836v3.004l-.393.925Z",
|
|
16129
|
+
fill: "#FFEB97"
|
|
16130
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
16131
|
+
d: "M5.43 13.66c-.155-.007-.614-.055-.932-.425-.19-.22-.32-.553-.32-1.041 0-1.103.015-2.13.27-2.785-.518-.815-1.092-.876-1.713-.88h-.251c-.518 0-1.098-.049-1.534-.254-.256-.12-.462-.297-.532-.579-.069-2.345.761-5.687 1.63-6.555C2.834.344 3.203.358 5.193.34c2.083 0 3.072.401 4.04.795.195.079.388.157.589.232v4.93c-.029.168-.202 1.11-.606 1.624-.213.27-.499.49-.794.71-1.074.8-1.762 1.446-1.762 2.66 0 .815-.148 1.364-.36 1.73-.31.539-.758.63-.87.64Z",
|
|
16132
|
+
stroke: "#975F00",
|
|
16133
|
+
strokeWidth: ".677"
|
|
16134
|
+
}), /*#__PURE__*/React__default["default"].createElement("rect", {
|
|
16135
|
+
stroke: "#975F00",
|
|
16136
|
+
strokeWidth: ".677",
|
|
16137
|
+
fill: "#FFF",
|
|
16138
|
+
transform: "rotate(180 11.742 4)",
|
|
16139
|
+
x: "9.823",
|
|
16140
|
+
y: ".339",
|
|
16141
|
+
width: "3.839",
|
|
16142
|
+
height: "7.323",
|
|
16143
|
+
rx: "1.129"
|
|
16144
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
16145
|
+
d: "M13.323 2.484a.452.452 0 0 0-.452-.452h-2.258a.452.452 0 0 0-.452.452V1.129c0-.25.202-.452.452-.452h2.258c.25 0 .452.203.452.452Z",
|
|
16146
|
+
fill: "#CCC"
|
|
16147
|
+
})));
|
|
16148
|
+
});
|
|
16149
|
+
ThumbsDownIcon.displayName = "ThumbsDownIcon";
|
|
16150
|
+
var ThumbsDownIcon$1 = ThumbsDownIcon;
|
|
15976
16151
|
|
|
15977
|
-
|
|
16152
|
+
var _excluded$e = ["invalid", "required", "size", "children", "className", "weight", "htmlFor"];
|
|
16153
|
+
var Label = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
16154
|
+
var _ref$invalid = _ref.invalid,
|
|
16155
|
+
invalid = _ref$invalid === void 0 ? false : _ref$invalid,
|
|
16156
|
+
_ref$required = _ref.required,
|
|
16157
|
+
required = _ref$required === void 0 ? false : _ref$required,
|
|
16158
|
+
_ref$size = _ref.size,
|
|
16159
|
+
size = _ref$size === void 0 ? "regular" : _ref$size,
|
|
16160
|
+
children = _ref.children,
|
|
16161
|
+
className = _ref.className,
|
|
16162
|
+
_ref$weight = _ref.weight,
|
|
16163
|
+
weight = _ref$weight === void 0 ? "bold" : _ref$weight,
|
|
16164
|
+
htmlFor = _ref.htmlFor,
|
|
16165
|
+
props = _objectWithoutProperties(_ref, _excluded$e);
|
|
16166
|
+
var color = invalid ? "alert" : "primary";
|
|
16167
|
+
var variant = size === "regular" ? "Body 2" : "Caption 1";
|
|
16168
|
+
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
16169
|
+
as: "label",
|
|
16170
|
+
className: classNames__default["default"]("c-label", className),
|
|
16171
|
+
variant: variant,
|
|
16172
|
+
color: color,
|
|
16173
|
+
weight: weight,
|
|
16174
|
+
ref: ref,
|
|
16175
|
+
htmlFor: htmlFor
|
|
16176
|
+
}, props), children, required ? "*" : null);
|
|
16177
|
+
});
|
|
16178
|
+
Label.displayName = "Label";
|
|
15978
16179
|
|
|
15979
|
-
var
|
|
15980
|
-
|
|
15981
|
-
|
|
16180
|
+
var GlobalStyle = styled.createGlobalStyle([":root{--color-primary:#5d2bff;--color-secondary:#5d2bff;--color-theme-100:#ffffff;--color-theme-200:#f6f6f9;--color-theme-300:#ebebee;--color-theme-400:#d7d7da;--color-theme-500:#b9b9bd;--color-theme-600:#89898e;--color-theme-700:#6d6d73;--color-theme-800:#5b5b61;--color-theme-900:#303037;--color-primary-200:rgba(93,43,255,0.05);--color-primary-300:rgba(93,43,255,0.1);--color-primary-400:rgba(93,43,255,0.25);--color-primary-500:rgba(93,43,255,0.5);--color-primary-600:rgba(93,43,255,0.75);--color-primary-700:#5d2bff;--color-primary-800:#4a21cd;--color-primary-900:#32178b;--color-secondary-200:rgba(93,43,255,0.05);--color-secondary-300:rgba(93,43,255,0.1);--color-secondary-400:rgba(93,43,255,0.25);--color-secondary-500:rgba(93,43,255,0.5);--color-secondary-600:rgba(93,43,255,0.75);--color-secondary-700:#5d2bff;--color-secondary-800:#4a21cd;--color-secondary-900:#32178b;--color-theme-transparent-200:rgba(36,36,76,0.04);--color-theme-transparent-300:rgba(48,48,55,0.1);--color-theme-transparent-400:rgba(48,48,55,0.2);--color-theme-transparent-500:rgba(48,48,55,0.34);--color-theme-transparent-600:rgba(48,48,55,0.57);--color-theme-transparent-700:rgba(48,48,55,0.7);--color-theme-transparent-800:rgba(48,48,55,0.8);--color-primary-opaque-300:#efeaff;--color-primary-opaque-400:#d6caff;--color-secondary-opaque-300:#efeaff;--color-secondary-opaque-400:#d6caff;--color-sucess-green:#64cd93;--color-pale-green:#c3e799;--body-bg-main:rgb(244,245,247);--body-bg-main-transparent:rgba(244,245,247,0);--page-paper-main:#ffffff;--border-primary:#d7d7da;--note-bg:#fff9f1;--shadow-primary-hover:0 64px 64px 0 rgba(0,0,0,0.1),0 32px 32px 0 rgba(0,0,0,0.06),0 16px 16px 0 rgba(0,0,0,0.04),0 4px 4px 0 rgba(0,0,0,0.04),0 2px 2px 0 rgba(0,0,0,0.04);--shadow-primary:0 64px 64px 0 rgba(0,0,0,0.06),0 32px 32px 0 rgba(0,0,0,0.03),0 16px 16px 0 rgba(0,0,0,0.02),0 4px 4px 0 rgba(0,0,0,0.02),0 2px 2px 0 rgba(0,0,0,0.02);--shadow-secondary:0 4px 14px 0 rgba(0,0,0,0.17);--shadow-tertiary:0 4px 6px -2px rgba(0,0,0,0.05),0 10px 15px -3px rgba(0,0,0,0.1);--shadow-tertiary-hover:0 4px 10px -2px rgba(0,0,0,0.1),0 12px 20px -3px rgba(0,0,0,0.2);--page-paper-main-shadow:rgba( 255,255,255,0 );--modal-background:rgba(244,245,247,0.6);--highlight-dark:rgba(0,0,0,0.03);--input-background-color:#ffffff;--red-alert:rgb(237,97,97);-- --warning:#ffcc6b;--only-white:#ffffff;--only-black:#000000;--ac-br-4:4px;--ac-br-6:6px;--ac-br-8:8px;--ac-br-rounded:999px;}.cupcake{--color-primary:#29bcdd;--color-secondary:#fe6fa7;--color-primary-200:rgba(41,188,221,0.07);--color-primary-300:rgba(41,188,221,0.12);--color-primary-400:rgba(41,188,221,0.26);--color-primary-500:rgba(41,188,221,0.52);--color-primary-600:rgba(41,188,221,0.75);--color-primary-700:#29bcdd;--color-primary-800:#219fbb;--color-primary-900:#1a768b;--color-secondary-200:rgba(254,111,167,0.07);--color-secondary-300:rgba(254,111,167,0.13);--color-secondary-400:rgba(254,111,167,0.27);--color-secondary-500:rgba(254,111,167,0.52);--color-secondary-600:rgba(254,111,167,0.75);--color-secondary-700:#fe6fa7;--color-secondary-800:#dd6091;--color-secondary-900:#ab496f;--color-primary-opaque-300:#e5f7fb;--color-primary-opaque-400:#c8eef6;--color-secondary-opaque-300:#ffecf4;--color-secondary-opaque-400:#ffd8e7;}.classic{--color-primary:#4182f2;--color-secondary:#4182f2;--color-primary-200:rgba(65,130,242,0.07);--color-primary-300:rgba(65,130,242,0.13);--color-primary-400:rgba(65,130,242,0.26);--color-primary-500:rgba(65,130,242,0.52);--color-primary-600:rgba(65,130,242,0.75);--color-primary-700:#4182f2;--color-primary-800:#356bc8;--color-primary-900:#244a8a;--color-secondary-200:rgba(65,130,242,0.07);--color-secondary-300:rgba(65,130,242,0.13);--color-secondary-400:rgba(65,130,242,0.26);--color-secondary-500:rgba(65,130,242,0.52);--color-secondary-600:rgba(65,130,242,0.75);--color-secondary-700:#4182f2;--color-secondary-800:#356bc8;--color-secondary-900:#244a8a;--color-primary-opaque-300:#e6effd;--color-primary-opaque-400:#cedffc;--color-secondary-opaque-300:#e6effd;--color-secondary-opaque-400:#cedffc;}.neon{--color-primary:#67ffc8;--color-secondary:#67ffc8;--color-theme-100:#000000;--color-theme-200:#31333e;--color-theme-300:#2b2d37;--color-theme-400:#1f2024;--color-theme-500:#6D6D73;--color-theme-600:#89898e;--color-theme-700:#b0b0b5;--color-theme-800:#dfdfe5;--color-theme-900:#ffffff;--color-primary-200:rgba(103,255,200,0.05);--color-primary-300:rgba(103,255,200,0.1);--color-primary-400:rgba(103,255,200,0.25);--color-primary-500:rgba(103,255,200,0.5);--color-primary-600:rgba(103,255,200,0.75);--color-primary-700:#67ffc8;--color-primary-800:#a5ffdf;--color-primary-900:#d0fdec;--color-secondary-200:rgba(103,255,200,0.05);--color-secondary-300:rgba(103,255,200,0.1);--color-secondary-400:rgba(103,255,200,0.25);--color-secondary-500:rgba(103,255,200,0.5);--color-secondary-600:rgba(103,255,200,0.75);--color-secondary-700:#67ffc8;--color-secondary-800:#a5ffdf;--color-secondary-900:#d0fdec;--color-theme-transparent-200:rgba(6,7,8,0.12);--color-theme-transparent-300:rgba(6,7,8,0.22);--color-theme-transparent-400:rgba(6,7,8,0.5);--color-theme-transparent-500:rgba(255,255,255,0.27);--color-theme-transparent-600:rgba(255,255,255,0.4);--color-theme-transparent-700:rgba(255,255,255,0.6);--color-theme-transparent-800:rgba(255,255,255,0.85);--color-primary-opaque-300:#3b4e51;--color-primary-opaque-400:#436b64;--color-secondary-opaque-300:#3b4e51;--color-secondary-opaque-400:#436b64;--body-bg-main:rgb(44,46,56);--body-bg-main-transparent:rgba(44,46,56,0);--page-paper-main:#373a44;--border-primary:#1f2024;--note-bg:#464545;--shadow-primary-hover:0 64px 64px 0 rgba(0,0,0,0.2),0 32px 32px 0 rgba(0,0,0,0.2),0 16px 16px 0 rgba(0,0,0,0.2),0 4px 4px 0 rgba(0,0,0,0.2),0 2px 2px 0 rgba(0,0,0,0.2);--shadow-primary:0 64px 64px 0 rgba(0,0,0,0.1),0 32px 32px 0 rgba(0,0,0,0.1),0 16px 16px 0 rgba(0,0,0,0.1),0 4px 4px 0 rgba(0,0,0,0.1),0 2px 2px 0 rgba(0,0,0,0.1);--shadow-secondary:0 4px 14px 0 rgba(0,0,0,0.3);--shadow-tertiary:0 4px 6px -2px rgba(0,0,0,0.1),0 10px 15px -3px rgba(0,0,0,0.15);--shadow-tertiary-hover:0 4px 12px -2px rgba(0,0,0,0.4),0 10px 30px -3px rgba(0,0,0,0.5);--page-paper-main-shadow:rgba( 55,58,68,0 );--modal-background:rgba(44,46,56,0.7);--highlight-dark:rgba(0,0,0,0.06);--input-background-color:#2c2e38;--only-white:#ffffff;--only-black:#000000;}html{color-scheme:light;}html{&.neon{color-scheme:dark;}}.ac-shadow,.ac-shadow--raised{&--lg{box-shadow:var(--shadow-primary);}&--sm{box-shadow:var(--shadow-tertiary);}}.ac-shadow--raised{&--lg{transition:box-shadow 0.3s;&:hover{box-shadow:var(--shadow-primary-hover);}}&--sm{transition:box-shadow 0.3s;&:hover{box-shadow:var(--shadow-tertiary-hover);}}}.ac-shadow-optimized--sm{position:relative;box-shadow:var(--shadow-tertiary);&::before{position:absolute;top:0;left:0;width:100%;height:100%;content:\"\";box-shadow:var(--shadow-tertiary);opacity:0;border-radius:var(--ac-br-6);transition:opacity 0.3s ease;z-index:-1;}@media (hover:hover){&:hover::before{opacity:1;}}}.ac-shadow-optimized--lg{position:relative;box-shadow:var(--shadow-primary);&::before{position:absolute;top:0;left:0;width:100%;height:100%;content:\"\";box-shadow:var(--shadow-primary);opacity:0;border-radius:var(--ac-br-8);transition:opacity 0.3s ease;z-index:-1;}@media (hover:hover){&:hover::before{opacity:1;}}}.ac-border-radius{&-4{border-radius:var(--ac-br-4);}&-6{border-radius:var(--ac-br-6);}&-8{border-radius:var(--ac-br-8);}&-rounded{border-radius:var(--ac-br-rounded);}}.c-cooltip{position:relative;--cooltip-spacing:0.5rem;--cooltip-padding:0.25rem 0.625rem;--cooltip-max-width:12.5rem;--cooltip-transition-duration:0.15s,0.1s,0.15s;--cooltip-transition-delay:0.6s;--cooltip-timing:ease,ease,cubic-bezier(0.39,0.575,0.565,1);}.c-cooltip::after{pointer-events:none;content:attr(data-tooltip);position:absolute;color:#fff;opacity:0;background-color:rgba(0,0,0,0.9);border-radius:0.5rem;font-size:0.75rem;font-weight:500;line-height:1.3;max-width:var(--cooltip-max-width);padding:var(--cooltip-padding);text-align:center;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}.c-cooltip--top::after{bottom:calc(100% + var(--cooltip-spacing));left:50%;transform:scale(0.85) translateX(-50%);transform-origin:0;}.c-cooltip--right::after{left:calc(100% + var(--cooltip-spacing));transform:scale(0.85);}.c-cooltip--bottom::after{top:calc(100% + var(--cooltip-spacing));left:50%;transform:scale(0.85) translateX(-50%);transform-origin:0;}.c-cooltip--left::after{right:calc(100% + var(--cooltip-spacing));transform:scale(0.85);}.c-cooltip:disabled::after,[aria-pressed=\"true\"]::after{display:none;}@media (hover:hover){.c-cooltip--top:not(:focus):hover::after,.c-cooltip--bottom:not(:focus):hover::after{transition-property:opacity,transform;transition-duration:var(--cooltip-transition-duration);transition-delay:var(--cooltip-transition-delay);transition-timing-function:var(--cooltip-timing);transform:scale(1) translateX(-50%);opacity:1;}.c-cooltip--right:not(:focus):hover::after,.c-cooltip--left:not(:focus):hover::after{transition-property:opacity,transform;transition-duration:var(--cooltip-transition-duration);transition-delay:var(--cooltip-transition-delay);transition-timing-function:var(--cooltip-timing);transform:scale(1);opacity:1;}}"]);
|
|
16181
|
+
|
|
16182
|
+
var _excluded$d = ["onSave", "onCancel", "value", "inputProps", "allowEmptyString"];
|
|
16183
|
+
var EditableText = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
16184
|
+
var onSave = _ref.onSave,
|
|
15982
16185
|
onCancel = _ref.onCancel,
|
|
15983
|
-
|
|
15984
|
-
|
|
15985
|
-
|
|
15986
|
-
|
|
15987
|
-
|
|
15988
|
-
validation = _ref$validation === void 0 ? validateTimeInput : _ref$validation,
|
|
15989
|
-
_ref$incrementOnlySel = _ref.incrementOnlySelected,
|
|
15990
|
-
incrementOnlySelected = _ref$incrementOnlySel === void 0 ? false : _ref$incrementOnlySel,
|
|
15991
|
-
_ref$minuteIncrement = _ref.minuteIncrement,
|
|
15992
|
-
minuteIncrement = _ref$minuteIncrement === void 0 ? 1 : _ref$minuteIncrement;
|
|
15993
|
-
var inputRef = React.useRef(null);
|
|
15994
|
-
var handleRef = useForkRef(ref, inputRef);
|
|
15995
|
-
var _useState = React.useState(function () {
|
|
15996
|
-
return decimalToHours(value, withLeadingZero);
|
|
15997
|
-
}),
|
|
16186
|
+
value = _ref.value,
|
|
16187
|
+
inputProps = _ref.inputProps,
|
|
16188
|
+
allowEmptyString = _ref.allowEmptyString,
|
|
16189
|
+
props = _objectWithoutProperties(_ref, _excluded$d);
|
|
16190
|
+
var _useState = React.useState(value),
|
|
15998
16191
|
_useState2 = _slicedToArray(_useState, 2),
|
|
15999
16192
|
currentValue = _useState2[0],
|
|
16000
16193
|
setCurrentValue = _useState2[1];
|
|
16001
|
-
var _useState3 = React.useState(
|
|
16002
|
-
return decimalToHours(value, withLeadingZero);
|
|
16003
|
-
}),
|
|
16194
|
+
var _useState3 = React.useState(value),
|
|
16004
16195
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
16005
16196
|
prevValue = _useState4[0],
|
|
16006
16197
|
setPrevValue = _useState4[1];
|
|
16007
16198
|
var escapeRef = React.useRef(false);
|
|
16008
16199
|
React.useEffect(function () {
|
|
16009
|
-
|
|
16010
|
-
|
|
16011
|
-
|
|
16012
|
-
}
|
|
16013
|
-
if (currentValue !== _value) {
|
|
16014
|
-
setCurrentValue(_value);
|
|
16015
|
-
setPrevValue(_value);
|
|
16200
|
+
if (currentValue !== value) {
|
|
16201
|
+
setCurrentValue(value);
|
|
16202
|
+
setPrevValue(value);
|
|
16016
16203
|
}
|
|
16017
16204
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
16018
16205
|
}, [value]);
|
|
16019
16206
|
var handleBlur = React.useCallback(function (e) {
|
|
16020
16207
|
if (escapeRef.current) {
|
|
16021
16208
|
setCurrentValue(prevValue);
|
|
16209
|
+
escapeRef.current = false;
|
|
16022
16210
|
} else {
|
|
16023
16211
|
if (e.target.value.trim().length > 0 && prevValue !== e.target.value) {
|
|
16024
|
-
|
|
16025
|
-
|
|
16026
|
-
setCurrentValue(_value);
|
|
16212
|
+
setPrevValue(e.target.value);
|
|
16213
|
+
setCurrentValue(e.target.value);
|
|
16027
16214
|
typeof onSave === "function" && onSave(e);
|
|
16028
16215
|
} else {
|
|
16029
|
-
!
|
|
16030
|
-
}
|
|
16031
|
-
}
|
|
16032
|
-
}, [allowEmptyValue, onSave, prevValue, withLeadingZero]);
|
|
16033
|
-
var handleIncrementDecrement = React.useCallback(function (increment) {
|
|
16034
|
-
if (inputRef.current) {
|
|
16035
|
-
var selectionStart = inputRef.current.selectionStart;
|
|
16036
|
-
if (selectionStart !== null) {
|
|
16037
|
-
var dotsIndex = currentValue.indexOf(":");
|
|
16038
|
-
var _currentValue$split$m = currentValue.split(":").map(Number),
|
|
16039
|
-
_currentValue$split$m2 = _slicedToArray(_currentValue$split$m, 2),
|
|
16040
|
-
hours = _currentValue$split$m2[0],
|
|
16041
|
-
minutes = _currentValue$split$m2[1];
|
|
16042
|
-
var newHours = hours;
|
|
16043
|
-
var newMinutes = minutes;
|
|
16044
|
-
if (selectionStart < dotsIndex) {
|
|
16045
|
-
if (increment) {
|
|
16046
|
-
newHours += 1;
|
|
16047
|
-
} else {
|
|
16048
|
-
newHours -= 1;
|
|
16049
|
-
if (newHours < 0) newHours = 0;
|
|
16050
|
-
}
|
|
16051
|
-
} else if (selectionStart > dotsIndex) {
|
|
16052
|
-
if (increment) {
|
|
16053
|
-
newMinutes += minuteIncrement;
|
|
16054
|
-
if (newMinutes > 59) {
|
|
16055
|
-
newMinutes = 0;
|
|
16056
|
-
if (!incrementOnlySelected) newHours += 1;
|
|
16057
|
-
}
|
|
16058
|
-
} else {
|
|
16059
|
-
if (newMinutes >= minuteIncrement || newMinutes === 0) {
|
|
16060
|
-
newMinutes -= minuteIncrement;
|
|
16061
|
-
if (newMinutes < 0 && newHours > 0) {
|
|
16062
|
-
newMinutes = 60 - minuteIncrement;
|
|
16063
|
-
if (!incrementOnlySelected) newHours -= 1;
|
|
16064
|
-
}
|
|
16065
|
-
if (newHours < 0) {
|
|
16066
|
-
newHours = 0;
|
|
16067
|
-
}
|
|
16068
|
-
} else {
|
|
16069
|
-
newMinutes = 0;
|
|
16070
|
-
}
|
|
16071
|
-
}
|
|
16072
|
-
}
|
|
16073
|
-
var newMinutesString = newMinutes < 10 ? "0".concat(newMinutes) : newMinutes;
|
|
16074
|
-
var newHoursString = withLeadingZero && newHours < 10 ? "0".concat(newHours) : newHours;
|
|
16075
|
-
var newValue = "".concat(newHoursString, ":").concat(newMinutesString);
|
|
16076
|
-
if (validation(newValue, withLeadingZero)) {
|
|
16077
|
-
setCurrentValue(newValue);
|
|
16078
|
-
requestAnimationFrame(function () {
|
|
16079
|
-
var _inputRef$current;
|
|
16080
|
-
var newDotsIndex = newValue.indexOf(":");
|
|
16081
|
-
var isHoursSelected = selectionStart < newDotsIndex;
|
|
16082
|
-
var newSelectionStart = isHoursSelected ? 0 : newDotsIndex + 1;
|
|
16083
|
-
var selectionEnd = isHoursSelected ? newDotsIndex : newValue.length;
|
|
16084
|
-
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.setSelectionRange(newSelectionStart, selectionEnd);
|
|
16085
|
-
});
|
|
16086
|
-
}
|
|
16216
|
+
!allowEmptyString ? setCurrentValue(prevValue) : typeof onSave === "function" && prevValue !== e.target.value && onSave(e);
|
|
16087
16217
|
}
|
|
16088
16218
|
}
|
|
16089
|
-
}, [
|
|
16219
|
+
}, [allowEmptyString, onSave, prevValue]);
|
|
16090
16220
|
var handleKeyDown = React.useCallback(function (e) {
|
|
16091
16221
|
if (e.key === "Enter") {
|
|
16092
16222
|
e.target.blur();
|
|
16093
16223
|
}
|
|
16094
|
-
if (e.key === "ArrowLeft") {
|
|
16095
|
-
return;
|
|
16096
|
-
}
|
|
16097
|
-
if (e.key === "ArrowRight") {
|
|
16098
|
-
return;
|
|
16099
|
-
}
|
|
16100
16224
|
if (e.key === "Escape") {
|
|
16101
16225
|
escapeRef.current = true;
|
|
16102
16226
|
e.target.blur();
|
|
16103
16227
|
typeof onCancel === "function" && onCancel();
|
|
16104
|
-
escapeRef.current = false;
|
|
16105
|
-
}
|
|
16106
|
-
if (e.key === "Backspace") {
|
|
16107
|
-
return;
|
|
16108
|
-
}
|
|
16109
|
-
if ((e.metaKey || e.ctrlKey) && e.key === "a") {
|
|
16110
|
-
var _inputRef$current2;
|
|
16111
|
-
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.select();
|
|
16112
|
-
return;
|
|
16113
|
-
}
|
|
16114
|
-
var input = e.target;
|
|
16115
|
-
var start = input.selectionStart;
|
|
16116
|
-
var end = input.selectionEnd;
|
|
16117
|
-
var currentValue = input.value;
|
|
16118
|
-
if (e.key === "Tab") {
|
|
16119
|
-
if (start !== end) {
|
|
16120
|
-
if (e.shiftKey) {
|
|
16121
|
-
var newDotsIndex = currentValue.indexOf(":");
|
|
16122
|
-
var isMinutesSelected = start > newDotsIndex;
|
|
16123
|
-
if (isMinutesSelected) {
|
|
16124
|
-
var _inputRef$current3;
|
|
16125
|
-
e.preventDefault();
|
|
16126
|
-
(_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 ? void 0 : _inputRef$current3.setSelectionRange(0, newDotsIndex);
|
|
16127
|
-
}
|
|
16128
|
-
} else {
|
|
16129
|
-
var _newDotsIndex = currentValue.indexOf(":");
|
|
16130
|
-
var isHoursSelected = start < _newDotsIndex;
|
|
16131
|
-
if (isHoursSelected) {
|
|
16132
|
-
var _inputRef$current4;
|
|
16133
|
-
e.preventDefault();
|
|
16134
|
-
(_inputRef$current4 = inputRef.current) === null || _inputRef$current4 === void 0 ? void 0 : _inputRef$current4.setSelectionRange(_newDotsIndex + 1, currentValue.length);
|
|
16135
|
-
}
|
|
16136
|
-
}
|
|
16137
|
-
}
|
|
16138
|
-
return;
|
|
16139
|
-
}
|
|
16140
|
-
if (start !== end) {
|
|
16141
|
-
if (e.key === "ArrowUp") {
|
|
16142
|
-
handleIncrementDecrement(true);
|
|
16143
|
-
return;
|
|
16144
|
-
}
|
|
16145
|
-
if (e.key === "ArrowDown") {
|
|
16146
|
-
handleIncrementDecrement(false);
|
|
16147
|
-
return;
|
|
16148
|
-
}
|
|
16149
|
-
var newValue = currentValue.substring(0, start) + e.key + currentValue.substring(end);
|
|
16150
|
-
if (!validation(newValue, withLeadingZero)) {
|
|
16151
|
-
e.preventDefault();
|
|
16152
|
-
return;
|
|
16153
|
-
}
|
|
16154
|
-
} else {
|
|
16155
|
-
var _newValue = currentValue.substring(0, start) + e.key + currentValue.substring(end);
|
|
16156
|
-
if (!validation(_newValue, withLeadingZero)) {
|
|
16157
|
-
e.preventDefault();
|
|
16158
|
-
return;
|
|
16159
|
-
}
|
|
16160
16228
|
}
|
|
16161
|
-
}, [
|
|
16229
|
+
}, [onCancel]);
|
|
16162
16230
|
var handleChange = React.useCallback(function (e) {
|
|
16163
16231
|
setCurrentValue(e.target.value);
|
|
16164
16232
|
}, []);
|
|
16165
|
-
|
|
16166
|
-
|
|
16167
|
-
|
|
16168
|
-
|
|
16169
|
-
|
|
16170
|
-
|
|
16171
|
-
|
|
16172
|
-
|
|
16173
|
-
|
|
16174
|
-
|
|
16175
|
-
(_inputRef$current7 = inputRef.current) === null || _inputRef$current7 === void 0 ? void 0 : _inputRef$current7.setSelectionRange(dotsIndex + 1, currentValue.length);
|
|
16176
|
-
}
|
|
16177
|
-
}
|
|
16178
|
-
};
|
|
16179
|
-
var handleDoubleClick = function handleDoubleClick() {
|
|
16180
|
-
if (inputRef.current) {
|
|
16181
|
-
var _inputRef$current8;
|
|
16182
|
-
(_inputRef$current8 = inputRef.current) === null || _inputRef$current8 === void 0 ? void 0 : _inputRef$current8.select();
|
|
16183
|
-
}
|
|
16184
|
-
};
|
|
16185
|
-
var inputProps = {
|
|
16186
|
-
value: currentValue,
|
|
16187
|
-
onBlur: handleBlur,
|
|
16188
|
-
onKeyDown: handleKeyDown,
|
|
16189
|
-
onChange: handleChange,
|
|
16190
|
-
onClick: handleClick,
|
|
16191
|
-
onDoubleClick: handleDoubleClick
|
|
16192
|
-
};
|
|
16193
|
-
if (!children) {
|
|
16194
|
-
console.error("No children provided!");
|
|
16195
|
-
return null;
|
|
16196
|
-
}
|
|
16197
|
-
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, React__default["default"].Children.map(children, function (child) {
|
|
16198
|
-
var el = child;
|
|
16199
|
-
if (el && el.type === EditableContent) {
|
|
16200
|
-
return /*#__PURE__*/React__default["default"].cloneElement(child, {
|
|
16201
|
-
ref: handleRef,
|
|
16202
|
-
inputProps: inputProps
|
|
16203
|
-
});
|
|
16204
|
-
}
|
|
16205
|
-
return /*#__PURE__*/React__default["default"].cloneElement(child, _objectSpread2({
|
|
16206
|
-
ref: handleRef
|
|
16207
|
-
}, inputProps));
|
|
16233
|
+
return /*#__PURE__*/React__default["default"].createElement(EditableContent, _extends({}, props, {
|
|
16234
|
+
ref: ref,
|
|
16235
|
+
inputProps: _objectSpread2(_objectSpread2({}, inputProps), {}, {
|
|
16236
|
+
value: currentValue !== null && currentValue !== void 0 ? currentValue : "",
|
|
16237
|
+
onBlur: handleBlur,
|
|
16238
|
+
onKeyDown: handleKeyDown,
|
|
16239
|
+
onChange: handleChange,
|
|
16240
|
+
type: "text",
|
|
16241
|
+
className: classNames__default["default"]("c-input", inputProps === null || inputProps === void 0 ? void 0 : inputProps.className)
|
|
16242
|
+
})
|
|
16208
16243
|
}));
|
|
16209
16244
|
});
|
|
16210
|
-
|
|
16245
|
+
EditableText.displayName = "EditableText";
|
|
16211
16246
|
|
|
16212
16247
|
var _excluded$c = ["value", "onCancel", "onSave", "allowEmptyValue", "withLeadingZero", "validation", "incrementOnlySelected", "minuteIncrement", "className", "inputProps"];
|
|
16213
16248
|
var EditableHours = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
@@ -17868,6 +17903,7 @@
|
|
|
17868
17903
|
exports.InfoSmallIcon = InfoSmallIcon$1;
|
|
17869
17904
|
exports.Input = Input;
|
|
17870
17905
|
exports.InputAdornment = InputAdornment;
|
|
17906
|
+
exports.InputHours = InputHours;
|
|
17871
17907
|
exports.InsertLinkIcon = InsertLinkIcon$1;
|
|
17872
17908
|
exports.IntegrationsIcon = IntegrationsIcon$1;
|
|
17873
17909
|
exports.InvoicesIcon = InvoicesIcon$1;
|