@activecollab/components 1.0.365 → 1.0.367
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/ComboBox/ComboBox.js +1 -1
- package/dist/cjs/components/ComboBox/ComboBox.js.map +1 -1
- package/dist/cjs/components/EditableContent/Styles.js +2 -2
- package/dist/cjs/components/EditableContent/Styles.js.map +1 -1
- package/dist/cjs/components/EditableHours/EditableHours.js +221 -0
- package/dist/cjs/components/EditableHours/EditableHours.js.map +1 -0
- package/dist/cjs/components/EditableHours/index.js +17 -0
- package/dist/cjs/components/EditableHours/index.js.map +1 -0
- package/dist/cjs/components/index.js +11 -0
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/utils/index.js +12 -0
- package/dist/cjs/utils/index.js.map +1 -1
- package/dist/cjs/utils/timeUtils.js +105 -0
- package/dist/cjs/utils/timeUtils.js.map +1 -0
- package/dist/cjs/utils/timeUtils.test.js +10 -0
- package/dist/cjs/utils/timeUtils.test.js.map +1 -0
- package/dist/cjs/utils/validation.js +15 -0
- package/dist/cjs/utils/validation.js.map +1 -0
- package/dist/esm/components/ComboBox/ComboBox.js +1 -1
- package/dist/esm/components/ComboBox/ComboBox.js.map +1 -1
- package/dist/esm/components/EditableContent/Styles.d.ts.map +1 -1
- package/dist/esm/components/EditableContent/Styles.js +2 -2
- package/dist/esm/components/EditableContent/Styles.js.map +1 -1
- package/dist/esm/components/EditableHours/EditableHours.d.ts +12 -0
- package/dist/esm/components/EditableHours/EditableHours.d.ts.map +1 -0
- package/dist/esm/components/EditableHours/EditableHours.js +198 -0
- package/dist/esm/components/EditableHours/EditableHours.js.map +1 -0
- package/dist/esm/components/EditableHours/index.d.ts +2 -0
- package/dist/esm/components/EditableHours/index.d.ts.map +1 -0
- package/dist/esm/components/EditableHours/index.js +2 -0
- package/dist/esm/components/EditableHours/index.js.map +1 -0
- package/dist/esm/components/index.d.ts +1 -0
- package/dist/esm/components/index.d.ts.map +1 -1
- package/dist/esm/components/index.js +1 -0
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/utils/index.d.ts +1 -0
- package/dist/esm/utils/index.d.ts.map +1 -1
- package/dist/esm/utils/index.js +1 -0
- package/dist/esm/utils/index.js.map +1 -1
- package/dist/esm/utils/timeUtils.d.ts +4 -0
- package/dist/esm/utils/timeUtils.d.ts.map +1 -0
- package/dist/esm/utils/timeUtils.js +93 -0
- package/dist/esm/utils/timeUtils.js.map +1 -0
- package/dist/esm/utils/timeUtils.test.d.ts +2 -0
- package/dist/esm/utils/timeUtils.test.d.ts.map +1 -0
- package/dist/esm/utils/timeUtils.test.js +10 -0
- package/dist/esm/utils/timeUtils.test.js.map +1 -0
- package/dist/esm/utils/validation.d.ts +3 -0
- package/dist/esm/utils/validation.d.ts.map +1 -0
- package/dist/esm/utils/validation.js +7 -0
- package/dist/esm/utils/validation.js.map +1 -0
- package/dist/index.js +448 -155
- 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$1o = ["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$1o);
|
|
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$1n = ["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$1n);
|
|
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$1m = ["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$1m);
|
|
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)
|
|
@@ -429,6 +429,13 @@
|
|
|
429
429
|
house: 1000
|
|
430
430
|
};
|
|
431
431
|
|
|
432
|
+
var validateStopwatchTime = function validateStopwatchTime(value) {
|
|
433
|
+
return /^([0-9]{0,2})?(((:([0-5][0-9])?)|(:[0-5]?))|(\.[0-9]{0,2})|(,[0-9]{0,2}))?$/g.test(value);
|
|
434
|
+
};
|
|
435
|
+
var validateTimeInput = function validateTimeInput(value) {
|
|
436
|
+
return /^([0-9]+)?(((:([0-5][0-9])?)|(:[0-5]?))|(\.[0-9]{0,2})|(,[0-9]{0,2}))?$/g.test(value);
|
|
437
|
+
};
|
|
438
|
+
|
|
432
439
|
function setRef(ref, value) {
|
|
433
440
|
if (typeof ref === "function") {
|
|
434
441
|
ref(value);
|
|
@@ -474,7 +481,7 @@
|
|
|
474
481
|
return React.useContext(MenuContext);
|
|
475
482
|
};
|
|
476
483
|
|
|
477
|
-
var _excluded$
|
|
484
|
+
var _excluded$1l = ["children", "anchorEl", "open", "style", "transition", "placement", "strategy", "afterWrite"];
|
|
478
485
|
var Popper = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
479
486
|
var children = _ref.children,
|
|
480
487
|
anchorEl = _ref.anchorEl,
|
|
@@ -488,7 +495,7 @@
|
|
|
488
495
|
_ref$strategy = _ref.strategy,
|
|
489
496
|
strategy = _ref$strategy === void 0 ? "absolute" : _ref$strategy,
|
|
490
497
|
afterWrite = _ref.afterWrite,
|
|
491
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
498
|
+
rest = _objectWithoutProperties(_ref, _excluded$1l);
|
|
492
499
|
var _useState = React.useState(true),
|
|
493
500
|
_useState2 = _slicedToArray(_useState, 2),
|
|
494
501
|
exited = _useState2[0],
|
|
@@ -587,12 +594,12 @@
|
|
|
587
594
|
});
|
|
588
595
|
StyledOverlay.displayName = "StyledOverlay";
|
|
589
596
|
|
|
590
|
-
var _excluded$
|
|
597
|
+
var _excluded$1k = ["className", "disableBackgroundColor"];
|
|
591
598
|
var Overlay = function Overlay(_ref) {
|
|
592
599
|
var className = _ref.className,
|
|
593
600
|
_ref$disableBackgroun = _ref.disableBackgroundColor,
|
|
594
601
|
disableBackgroundColor = _ref$disableBackgroun === void 0 ? false : _ref$disableBackgroun,
|
|
595
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
602
|
+
rest = _objectWithoutProperties(_ref, _excluded$1k);
|
|
596
603
|
return /*#__PURE__*/React__default["default"].createElement(StyledOverlay, _extends({
|
|
597
604
|
className: classNames__default["default"]("c-overlay", className),
|
|
598
605
|
$disableBackgroundColor: disableBackgroundColor
|
|
@@ -632,7 +639,7 @@
|
|
|
632
639
|
})(["", " ", " position:fixed;top:0;right:0;bottom:0;left:0;"], FontStyle, BoxSizingStyle);
|
|
633
640
|
StyledWindow.displayName = "StyledWindow";
|
|
634
641
|
|
|
635
|
-
var _excluded$
|
|
642
|
+
var _excluded$1j = ["children", "onClose", "className", "style", "onKeyDown", "disableFocusLock", "disableScrollLock", "disableCloseOnEsc", "onClick"];
|
|
636
643
|
var returnFocus = {
|
|
637
644
|
preventScroll: true
|
|
638
645
|
};
|
|
@@ -649,7 +656,7 @@
|
|
|
649
656
|
_ref$disableCloseOnEs = _ref.disableCloseOnEsc,
|
|
650
657
|
disableCloseOnEsc = _ref$disableCloseOnEs === void 0 ? false : _ref$disableCloseOnEs,
|
|
651
658
|
onClick = _ref.onClick,
|
|
652
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
659
|
+
rest = _objectWithoutProperties(_ref, _excluded$1j);
|
|
653
660
|
var innerRef = React.useRef(null);
|
|
654
661
|
var handleRef = useForkRef(innerRef, ref);
|
|
655
662
|
var _useLayerContext = useLayerContext(),
|
|
@@ -710,7 +717,7 @@
|
|
|
710
717
|
}, FontStyle, BoxSizingStyle);
|
|
711
718
|
StyledBubble.displayName = "StyledBubble";
|
|
712
719
|
|
|
713
|
-
var _excluded$
|
|
720
|
+
var _excluded$1i = ["children", "className", "innerRef", "style"];
|
|
714
721
|
var Bubble = function Bubble(_ref) {
|
|
715
722
|
var children = _ref.children,
|
|
716
723
|
className = _ref.className,
|
|
@@ -718,7 +725,7 @@
|
|
|
718
725
|
innerRef = _ref$innerRef === void 0 ? null : _ref$innerRef,
|
|
719
726
|
_ref$style = _ref.style,
|
|
720
727
|
style = _ref$style === void 0 ? {} : _ref$style,
|
|
721
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
728
|
+
rest = _objectWithoutProperties(_ref, _excluded$1i);
|
|
722
729
|
return /*#__PURE__*/React__default["default"].createElement(StyledBubble, _extends({}, rest, {
|
|
723
730
|
ref: innerRef,
|
|
724
731
|
className: classNames__default["default"]("c-bubble", className),
|
|
@@ -1038,7 +1045,7 @@
|
|
|
1038
1045
|
});
|
|
1039
1046
|
StyledTypography.displayName = "StyledTypography";
|
|
1040
1047
|
|
|
1041
|
-
var _excluded$
|
|
1048
|
+
var _excluded$1h = ["variant", "as", "color", "italic", "tabularNums", "letterSpacing", "lineHeight", "align", "decoration", "transform", "overflow", "whitespace", "wordBreak", "weight", "className", "children"];
|
|
1042
1049
|
var Typography = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1043
1050
|
var _ref$variant = _ref.variant,
|
|
1044
1051
|
variant = _ref$variant === void 0 ? "Title 1" : _ref$variant,
|
|
@@ -1069,7 +1076,7 @@
|
|
|
1069
1076
|
weight = _ref$weight === void 0 ? "regular" : _ref$weight,
|
|
1070
1077
|
className = _ref.className,
|
|
1071
1078
|
children = _ref.children,
|
|
1072
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1079
|
+
props = _objectWithoutProperties(_ref, _excluded$1h);
|
|
1073
1080
|
var Component = as || "div";
|
|
1074
1081
|
return /*#__PURE__*/React__default["default"].createElement(StyledTypography, _extends({
|
|
1075
1082
|
as: Component,
|
|
@@ -1092,13 +1099,13 @@
|
|
|
1092
1099
|
});
|
|
1093
1100
|
Typography.displayName = "Typography";
|
|
1094
1101
|
|
|
1095
|
-
var _excluded$
|
|
1102
|
+
var _excluded$1g = ["title", "className", "leftElement", "rightElement"];
|
|
1096
1103
|
var MenuHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1097
1104
|
var title = _ref.title,
|
|
1098
1105
|
className = _ref.className,
|
|
1099
1106
|
leftElement = _ref.leftElement,
|
|
1100
1107
|
rightElement = _ref.rightElement,
|
|
1101
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1108
|
+
props = _objectWithoutProperties(_ref, _excluded$1g);
|
|
1102
1109
|
return /*#__PURE__*/React__default["default"].createElement(StyledMenuHeader, _extends({}, props, {
|
|
1103
1110
|
className: classNames__default["default"]("c-menu-header", className),
|
|
1104
1111
|
ref: ref
|
|
@@ -1123,11 +1130,11 @@
|
|
|
1123
1130
|
});
|
|
1124
1131
|
MenuHeader.displayName = "MenuHeader";
|
|
1125
1132
|
|
|
1126
|
-
var _excluded$
|
|
1133
|
+
var _excluded$1f = ["children", "className"];
|
|
1127
1134
|
var MenuFooter = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1128
1135
|
var children = _ref.children,
|
|
1129
1136
|
className = _ref.className,
|
|
1130
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1137
|
+
props = _objectWithoutProperties(_ref, _excluded$1f);
|
|
1131
1138
|
return /*#__PURE__*/React__default["default"].createElement(StyledMenuFooter$1, _extends({}, props, {
|
|
1132
1139
|
className: classNames__default["default"]("c-menu-footer", className),
|
|
1133
1140
|
ref: ref
|
|
@@ -1151,11 +1158,11 @@
|
|
|
1151
1158
|
})(["border-top:1px solid var(--border-primary);margin:12px 16px;height:1px;"]);
|
|
1152
1159
|
StyledListSeparator.displayName = "StyledListSeparator";
|
|
1153
1160
|
|
|
1154
|
-
var _excluded$
|
|
1161
|
+
var _excluded$1e = ["children", "className"];
|
|
1155
1162
|
var ListItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1156
1163
|
var children = _ref.children,
|
|
1157
1164
|
className = _ref.className,
|
|
1158
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1165
|
+
props = _objectWithoutProperties(_ref, _excluded$1e);
|
|
1159
1166
|
return /*#__PURE__*/React__default["default"].createElement(StyledListItem, _extends({
|
|
1160
1167
|
className: classNames__default["default"]("c-list-item", className),
|
|
1161
1168
|
ref: ref,
|
|
@@ -1164,21 +1171,21 @@
|
|
|
1164
1171
|
});
|
|
1165
1172
|
ListItem.displayName = "ListItem";
|
|
1166
1173
|
|
|
1167
|
-
var _excluded$
|
|
1174
|
+
var _excluded$1d = ["className"];
|
|
1168
1175
|
var ListSeparator = function ListSeparator(_ref) {
|
|
1169
1176
|
var className = _ref.className,
|
|
1170
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1177
|
+
props = _objectWithoutProperties(_ref, _excluded$1d);
|
|
1171
1178
|
return /*#__PURE__*/React__default["default"].createElement(StyledListSeparator, _extends({
|
|
1172
1179
|
className: classNames__default["default"]("c-list-separator", className)
|
|
1173
1180
|
}, props));
|
|
1174
1181
|
};
|
|
1175
1182
|
ListSeparator.displayName = "ListSeparator";
|
|
1176
1183
|
|
|
1177
|
-
var _excluded$
|
|
1184
|
+
var _excluded$1c = ["children", "className"];
|
|
1178
1185
|
var _List = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
1179
1186
|
var children = _ref.children,
|
|
1180
1187
|
className = _ref.className,
|
|
1181
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
1188
|
+
props = _objectWithoutProperties(_ref, _excluded$1c);
|
|
1182
1189
|
return /*#__PURE__*/React__default["default"].createElement(StyledList, _extends({
|
|
1183
1190
|
className: className,
|
|
1184
1191
|
ref: ref,
|
|
@@ -1204,7 +1211,7 @@
|
|
|
1204
1211
|
return size === "big" && styled.css(["width:40px;"]);
|
|
1205
1212
|
});
|
|
1206
1213
|
|
|
1207
|
-
var _excluded$
|
|
1214
|
+
var _excluded$1b = ["children", "className", "variant", "size", "active"];
|
|
1208
1215
|
|
|
1209
1216
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
1210
1217
|
|
|
@@ -1234,7 +1241,7 @@
|
|
|
1234
1241
|
variant = _ref.variant,
|
|
1235
1242
|
size = _ref.size,
|
|
1236
1243
|
active = _ref.active,
|
|
1237
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
1244
|
+
args = _objectWithoutProperties(_ref, _excluded$1b);
|
|
1238
1245
|
return /*#__PURE__*/React__default["default"].createElement(StyledIconButton, _extends({
|
|
1239
1246
|
className: className,
|
|
1240
1247
|
variant: variant,
|
|
@@ -7673,14 +7680,14 @@
|
|
|
7673
7680
|
});
|
|
7674
7681
|
StyledBreadcrumbListItem.displayName = "StyledBreadcrumbListItem";
|
|
7675
7682
|
|
|
7676
|
-
var _excluded$
|
|
7683
|
+
var _excluded$1a = ["children", "className", "separator"];
|
|
7677
7684
|
var Breadcrumbs = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
7678
7685
|
var _dimensions$width, _childDimensions$widt;
|
|
7679
7686
|
var children = _ref.children,
|
|
7680
7687
|
className = _ref.className,
|
|
7681
7688
|
_ref$separator = _ref.separator,
|
|
7682
7689
|
separator = _ref$separator === void 0 ? "/" : _ref$separator,
|
|
7683
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
7690
|
+
rest = _objectWithoutProperties(_ref, _excluded$1a);
|
|
7684
7691
|
var internalRef = React.useRef(null);
|
|
7685
7692
|
var listWrapperRef = React.useRef(null);
|
|
7686
7693
|
var olRef = React.useRef(null);
|
|
@@ -7847,10 +7854,10 @@
|
|
|
7847
7854
|
return props.$isLight && styled.css(["background-color:var(--page-paper-main);box-shadow:var(--shadow-secondary);color:var(--color-theme-700);"]);
|
|
7848
7855
|
});
|
|
7849
7856
|
|
|
7850
|
-
var _excluded$
|
|
7857
|
+
var _excluded$19 = ["children"];
|
|
7851
7858
|
var TooltipAnimation = function TooltipAnimation(_ref) {
|
|
7852
7859
|
var children = _ref.children,
|
|
7853
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7860
|
+
props = _objectWithoutProperties(_ref, _excluded$19);
|
|
7854
7861
|
return /*#__PURE__*/React__default["default"].createElement(FromElement, _extends({
|
|
7855
7862
|
timeout: 0
|
|
7856
7863
|
}, props), children);
|
|
@@ -7925,12 +7932,12 @@
|
|
|
7925
7932
|
});
|
|
7926
7933
|
Tooltip.displayName = "Tooltip";
|
|
7927
7934
|
|
|
7928
|
-
var _excluded$
|
|
7935
|
+
var _excluded$18 = ["weight", "children"];
|
|
7929
7936
|
var Body2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
7930
7937
|
var _ref$weight = _ref.weight,
|
|
7931
7938
|
weight = _ref$weight === void 0 ? "regular" : _ref$weight,
|
|
7932
7939
|
children = _ref.children,
|
|
7933
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
7940
|
+
props = _objectWithoutProperties(_ref, _excluded$18);
|
|
7934
7941
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
7935
7942
|
variant: "Body 2",
|
|
7936
7943
|
weight: weight,
|
|
@@ -7979,7 +7986,7 @@
|
|
|
7979
7986
|
});
|
|
7980
7987
|
StyledCounterButtonLabel.displayName = "StyledCounterButtonLabel";
|
|
7981
7988
|
|
|
7982
|
-
var _excluded$
|
|
7989
|
+
var _excluded$17 = ["label", "icon", "active", "counter", "tooltipText", "onClearAll", "className", "disabled"];
|
|
7983
7990
|
var CounterButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
7984
7991
|
var label = _ref.label,
|
|
7985
7992
|
icon = _ref.icon,
|
|
@@ -7991,7 +7998,7 @@
|
|
|
7991
7998
|
className = _ref.className,
|
|
7992
7999
|
_ref$disabled = _ref.disabled,
|
|
7993
8000
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
7994
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
8001
|
+
args = _objectWithoutProperties(_ref, _excluded$17);
|
|
7995
8002
|
return /*#__PURE__*/React__default["default"].createElement(StyledCounterButtonWrapper, {
|
|
7996
8003
|
ref: ref,
|
|
7997
8004
|
className: className
|
|
@@ -8303,7 +8310,7 @@
|
|
|
8303
8310
|
StyledDatePicker.displayName = "StyledDatePicker";
|
|
8304
8311
|
StyledDayPicker.displayName = "StyledDayPicker";
|
|
8305
8312
|
|
|
8306
|
-
var _excluded$
|
|
8313
|
+
var _excluded$16 = ["className", "onChange", "onDayClick", "selectedDays", "disabledDays", "selectionMode", "month", "onMonthChange", "dateRequired", "firstDayOfWeek", "fixedWeeks", "modifiers"];
|
|
8307
8314
|
var DatePicker = function DatePicker(_ref) {
|
|
8308
8315
|
var className = _ref.className,
|
|
8309
8316
|
onChange = _ref.onChange,
|
|
@@ -8325,7 +8332,7 @@
|
|
|
8325
8332
|
_ref$fixedWeeks = _ref.fixedWeeks,
|
|
8326
8333
|
fixedWeeks = _ref$fixedWeeks === void 0 ? true : _ref$fixedWeeks,
|
|
8327
8334
|
defaultModifiers = _ref.modifiers,
|
|
8328
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
8335
|
+
rest = _objectWithoutProperties(_ref, _excluded$16);
|
|
8329
8336
|
var _useState = React.useState(),
|
|
8330
8337
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8331
8338
|
enteredTo = _useState2[0],
|
|
@@ -9218,10 +9225,10 @@
|
|
|
9218
9225
|
componentId: "sc-x4ge7a-0"
|
|
9219
9226
|
})(["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);
|
|
9220
9227
|
|
|
9221
|
-
var _excluded$
|
|
9228
|
+
var _excluded$15 = ["className"];
|
|
9222
9229
|
var LinearLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9223
9230
|
var className = _ref.className,
|
|
9224
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
9231
|
+
rest = _objectWithoutProperties(_ref, _excluded$15);
|
|
9225
9232
|
return /*#__PURE__*/React__default["default"].createElement(StyledLinearLoader, _extends({
|
|
9226
9233
|
ref: ref,
|
|
9227
9234
|
className: classNames__default["default"]("c-loader c-loader--linear", className)
|
|
@@ -9235,10 +9242,10 @@
|
|
|
9235
9242
|
componentId: "sc-1f35d5h-0"
|
|
9236
9243
|
})(["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);
|
|
9237
9244
|
|
|
9238
|
-
var _excluded$
|
|
9245
|
+
var _excluded$14 = ["className"];
|
|
9239
9246
|
var DotsLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9240
9247
|
var className = _ref.className,
|
|
9241
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
9248
|
+
rest = _objectWithoutProperties(_ref, _excluded$14);
|
|
9242
9249
|
return /*#__PURE__*/React__default["default"].createElement(StyledDotsLoader, _extends({
|
|
9243
9250
|
ref: ref,
|
|
9244
9251
|
className: classNames__default["default"]("c-loader c-loader--dots", className)
|
|
@@ -9260,7 +9267,7 @@
|
|
|
9260
9267
|
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);
|
|
9261
9268
|
});
|
|
9262
9269
|
|
|
9263
|
-
var _excluded$
|
|
9270
|
+
var _excluded$13 = ["radius", "stroke", "activeStrokeColor", "inactiveStrokeColor", "activeColorPercentage", "rotateDurationInSeconds", "className"];
|
|
9264
9271
|
var SpinnerLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9265
9272
|
var _ref$radius = _ref.radius,
|
|
9266
9273
|
radius = _ref$radius === void 0 ? 10 : _ref$radius,
|
|
@@ -9275,7 +9282,7 @@
|
|
|
9275
9282
|
_ref$rotateDurationIn = _ref.rotateDurationInSeconds,
|
|
9276
9283
|
rotateDurationInSeconds = _ref$rotateDurationIn === void 0 ? 0.75 : _ref$rotateDurationIn,
|
|
9277
9284
|
className = _ref.className,
|
|
9278
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
9285
|
+
rest = _objectWithoutProperties(_ref, _excluded$13);
|
|
9279
9286
|
return /*#__PURE__*/React__default["default"].createElement(StyledSpinnerLoader$1, _extends({
|
|
9280
9287
|
ref: ref,
|
|
9281
9288
|
className: className,
|
|
@@ -9289,7 +9296,7 @@
|
|
|
9289
9296
|
});
|
|
9290
9297
|
SpinnerLoader.displayName = "SpinnerLoader";
|
|
9291
9298
|
|
|
9292
|
-
var _excluded$
|
|
9299
|
+
var _excluded$12 = ["header", "rows", "className", "sortBy", "sortDirection", "onSortCallback", "theadClass", "noResultsCallback", "groupBy", "groupHead", "isCollapsible", "emptyValue", "loading", "loadingRows"];
|
|
9293
9300
|
exports.SortDirection = void 0;
|
|
9294
9301
|
(function (SortDirection) {
|
|
9295
9302
|
SortDirection["None"] = "none";
|
|
@@ -9337,7 +9344,7 @@
|
|
|
9337
9344
|
loading = _ref.loading,
|
|
9338
9345
|
_ref$loadingRows = _ref.loadingRows,
|
|
9339
9346
|
loadingRows = _ref$loadingRows === void 0 ? 7 : _ref$loadingRows,
|
|
9340
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
9347
|
+
args = _objectWithoutProperties(_ref, _excluded$12);
|
|
9341
9348
|
var _useState = React.useState(sortDirection),
|
|
9342
9349
|
_useState2 = _slicedToArray(_useState, 2),
|
|
9343
9350
|
columnDirection = _useState2[0],
|
|
@@ -9697,7 +9704,7 @@
|
|
|
9697
9704
|
});
|
|
9698
9705
|
StyledCompleteCheckbox.displayName = "StyledCompleteCheckbox";
|
|
9699
9706
|
|
|
9700
|
-
var _excluded$
|
|
9707
|
+
var _excluded$11 = ["completed", "disabled", "animate", "onClick", "className", "primary", "checkMarkClassName"];
|
|
9701
9708
|
var CompleteCheckbox = function CompleteCheckbox(_ref) {
|
|
9702
9709
|
var _ref$completed = _ref.completed,
|
|
9703
9710
|
completed = _ref$completed === void 0 ? false : _ref$completed,
|
|
@@ -9710,7 +9717,7 @@
|
|
|
9710
9717
|
_ref$primary = _ref.primary,
|
|
9711
9718
|
primary = _ref$primary === void 0 ? false : _ref$primary,
|
|
9712
9719
|
checkMarkClassName = _ref.checkMarkClassName,
|
|
9713
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
9720
|
+
rest = _objectWithoutProperties(_ref, _excluded$11);
|
|
9714
9721
|
return /*#__PURE__*/React__default["default"].createElement(StyledCompleteCheckbox, _extends({
|
|
9715
9722
|
onClick: onClick,
|
|
9716
9723
|
className: classNames__default["default"]("c-complete-checkbox", className),
|
|
@@ -9741,7 +9748,7 @@
|
|
|
9741
9748
|
});
|
|
9742
9749
|
StyledPaper.displayName = "StyledPaper";
|
|
9743
9750
|
|
|
9744
|
-
var _excluded
|
|
9751
|
+
var _excluded$10 = ["children", "className", "type", "hover", "useOptimizedShadow"];
|
|
9745
9752
|
/**
|
|
9746
9753
|
* This is a component description and should sit directly above your component
|
|
9747
9754
|
*/
|
|
@@ -9754,7 +9761,7 @@
|
|
|
9754
9761
|
hover = _ref$hover === void 0 ? false : _ref$hover,
|
|
9755
9762
|
_ref$useOptimizedShad = _ref.useOptimizedShadow,
|
|
9756
9763
|
useOptimizedShadow = _ref$useOptimizedShad === void 0 ? false : _ref$useOptimizedShad,
|
|
9757
|
-
rest = _objectWithoutProperties(_ref, _excluded
|
|
9764
|
+
rest = _objectWithoutProperties(_ref, _excluded$10);
|
|
9758
9765
|
return /*#__PURE__*/React__default["default"].createElement(StyledPaper, _extends({
|
|
9759
9766
|
className: classNames__default["default"](className, {
|
|
9760
9767
|
"ac-shadow--raised--lg": !useOptimizedShadow && hover && type === "paper-1",
|
|
@@ -9807,7 +9814,7 @@
|
|
|
9807
9814
|
});
|
|
9808
9815
|
StyledCard.displayName = "StyledCard";
|
|
9809
9816
|
|
|
9810
|
-
var _excluded
|
|
9817
|
+
var _excluded$$ = ["children", "className", "hoverable", "paperType"];
|
|
9811
9818
|
var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9812
9819
|
var children = _ref.children,
|
|
9813
9820
|
className = _ref.className,
|
|
@@ -9815,7 +9822,7 @@
|
|
|
9815
9822
|
hoverable = _ref$hoverable === void 0 ? false : _ref$hoverable,
|
|
9816
9823
|
_ref$paperType = _ref.paperType,
|
|
9817
9824
|
paperType = _ref$paperType === void 0 ? "paper-2" : _ref$paperType,
|
|
9818
|
-
rest = _objectWithoutProperties(_ref, _excluded
|
|
9825
|
+
rest = _objectWithoutProperties(_ref, _excluded$$);
|
|
9819
9826
|
return /*#__PURE__*/React__default["default"].createElement(StyledCard, _extends({}, rest, {
|
|
9820
9827
|
type: paperType,
|
|
9821
9828
|
className: classNames__default["default"]("c-card", className),
|
|
@@ -9894,12 +9901,12 @@
|
|
|
9894
9901
|
});
|
|
9895
9902
|
EntityCard$1.displayName = "EntityCard";
|
|
9896
9903
|
|
|
9897
|
-
var _excluded$
|
|
9904
|
+
var _excluded$_ = ["weight", "children"];
|
|
9898
9905
|
var Title1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9899
9906
|
var _ref$weight = _ref.weight,
|
|
9900
9907
|
weight = _ref$weight === void 0 ? "light" : _ref$weight,
|
|
9901
9908
|
children = _ref.children,
|
|
9902
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
9909
|
+
props = _objectWithoutProperties(_ref, _excluded$_);
|
|
9903
9910
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
9904
9911
|
weight: weight,
|
|
9905
9912
|
variant: "Title 1",
|
|
@@ -9908,12 +9915,12 @@
|
|
|
9908
9915
|
});
|
|
9909
9916
|
Title1.displayName = "Title1";
|
|
9910
9917
|
|
|
9911
|
-
var _excluded$
|
|
9918
|
+
var _excluded$Z = ["weight", "children"];
|
|
9912
9919
|
var Title2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9913
9920
|
var _ref$weight = _ref.weight,
|
|
9914
9921
|
weight = _ref$weight === void 0 ? "light" : _ref$weight,
|
|
9915
9922
|
children = _ref.children,
|
|
9916
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
9923
|
+
props = _objectWithoutProperties(_ref, _excluded$Z);
|
|
9917
9924
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
9918
9925
|
weight: weight,
|
|
9919
9926
|
variant: "Title 2",
|
|
@@ -9922,10 +9929,10 @@
|
|
|
9922
9929
|
});
|
|
9923
9930
|
Title2.displayName = "Title2";
|
|
9924
9931
|
|
|
9925
|
-
var _excluded$
|
|
9932
|
+
var _excluded$Y = ["children"];
|
|
9926
9933
|
var Header2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9927
9934
|
var children = _ref.children,
|
|
9928
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
9935
|
+
props = _objectWithoutProperties(_ref, _excluded$Y);
|
|
9929
9936
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
9930
9937
|
weight: "bold",
|
|
9931
9938
|
variant: "Header 2",
|
|
@@ -9934,10 +9941,10 @@
|
|
|
9934
9941
|
});
|
|
9935
9942
|
Header2.displayName = "Header2";
|
|
9936
9943
|
|
|
9937
|
-
var _excluded$
|
|
9944
|
+
var _excluded$X = ["children"];
|
|
9938
9945
|
var Header3 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9939
9946
|
var children = _ref.children,
|
|
9940
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
9947
|
+
props = _objectWithoutProperties(_ref, _excluded$X);
|
|
9941
9948
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
9942
9949
|
weight: "bold",
|
|
9943
9950
|
variant: "Header 3",
|
|
@@ -9946,12 +9953,12 @@
|
|
|
9946
9953
|
});
|
|
9947
9954
|
Header3.displayName = "Header3";
|
|
9948
9955
|
|
|
9949
|
-
var _excluded$
|
|
9956
|
+
var _excluded$W = ["weight", "children"];
|
|
9950
9957
|
var Body1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9951
9958
|
var _ref$weight = _ref.weight,
|
|
9952
9959
|
weight = _ref$weight === void 0 ? "regular" : _ref$weight,
|
|
9953
9960
|
children = _ref.children,
|
|
9954
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
9961
|
+
props = _objectWithoutProperties(_ref, _excluded$W);
|
|
9955
9962
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
9956
9963
|
variant: "Body 1",
|
|
9957
9964
|
weight: weight,
|
|
@@ -9960,12 +9967,12 @@
|
|
|
9960
9967
|
});
|
|
9961
9968
|
Body1.displayName = "Body1";
|
|
9962
9969
|
|
|
9963
|
-
var _excluded$
|
|
9970
|
+
var _excluded$V = ["weight", "children"];
|
|
9964
9971
|
var Caption1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9965
9972
|
var _ref$weight = _ref.weight,
|
|
9966
9973
|
weight = _ref$weight === void 0 ? "regular" : _ref$weight,
|
|
9967
9974
|
children = _ref.children,
|
|
9968
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
9975
|
+
props = _objectWithoutProperties(_ref, _excluded$V);
|
|
9969
9976
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
9970
9977
|
variant: "Caption 1",
|
|
9971
9978
|
weight: weight,
|
|
@@ -9974,12 +9981,12 @@
|
|
|
9974
9981
|
});
|
|
9975
9982
|
Caption1.displayName = "Caption1";
|
|
9976
9983
|
|
|
9977
|
-
var _excluded$
|
|
9984
|
+
var _excluded$U = ["weight", "children"];
|
|
9978
9985
|
var Caption2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9979
9986
|
var _ref$weight = _ref.weight,
|
|
9980
9987
|
weight = _ref$weight === void 0 ? "regular" : _ref$weight,
|
|
9981
9988
|
children = _ref.children,
|
|
9982
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
9989
|
+
props = _objectWithoutProperties(_ref, _excluded$U);
|
|
9983
9990
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
9984
9991
|
variant: "Caption 2",
|
|
9985
9992
|
weight: weight,
|
|
@@ -10091,7 +10098,7 @@
|
|
|
10091
10098
|
componentId: "sc-5x2tyd-1"
|
|
10092
10099
|
})(["border-radius:100%;object-fit:cover;"]);
|
|
10093
10100
|
|
|
10094
|
-
var _excluded$
|
|
10101
|
+
var _excluded$T = ["url", "alt", "size", "className", "imgClassName", "children"];
|
|
10095
10102
|
/**
|
|
10096
10103
|
* @component Avatar
|
|
10097
10104
|
* @description
|
|
@@ -10126,7 +10133,7 @@
|
|
|
10126
10133
|
className = _ref.className,
|
|
10127
10134
|
imgClassName = _ref.imgClassName,
|
|
10128
10135
|
children = _ref.children,
|
|
10129
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10136
|
+
rest = _objectWithoutProperties(_ref, _excluded$T);
|
|
10130
10137
|
var _useState = React.useState(false),
|
|
10131
10138
|
_useState2 = _slicedToArray(_useState, 2),
|
|
10132
10139
|
imageLoaded = _useState2[0],
|
|
@@ -10167,13 +10174,13 @@
|
|
|
10167
10174
|
return props.$color && styled.css(["background-color:", ";"], props.$color);
|
|
10168
10175
|
});
|
|
10169
10176
|
|
|
10170
|
-
var _excluded$
|
|
10177
|
+
var _excluded$S = ["color", "size", "className"];
|
|
10171
10178
|
var Dot = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
10172
10179
|
var color = _ref.color,
|
|
10173
10180
|
_ref$size = _ref.size,
|
|
10174
10181
|
size = _ref$size === void 0 ? 8 : _ref$size,
|
|
10175
10182
|
className = _ref.className,
|
|
10176
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10183
|
+
rest = _objectWithoutProperties(_ref, _excluded$S);
|
|
10177
10184
|
return /*#__PURE__*/React__default["default"].createElement(StyledDot, _extends({
|
|
10178
10185
|
className: classNames__default["default"]("c-dot", className),
|
|
10179
10186
|
ref: ref,
|
|
@@ -10210,7 +10217,7 @@
|
|
|
10210
10217
|
});
|
|
10211
10218
|
StyledTagText.displayName = "StyledTagText";
|
|
10212
10219
|
|
|
10213
|
-
var _excluded$
|
|
10220
|
+
var _excluded$R = ["name", "color", "showText", "showDot", "className"];
|
|
10214
10221
|
var Tag = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
10215
10222
|
var name = _ref.name,
|
|
10216
10223
|
color = _ref.color,
|
|
@@ -10219,7 +10226,7 @@
|
|
|
10219
10226
|
_ref$showDot = _ref.showDot,
|
|
10220
10227
|
showDot = _ref$showDot === void 0 ? true : _ref$showDot,
|
|
10221
10228
|
className = _ref.className,
|
|
10222
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10229
|
+
rest = _objectWithoutProperties(_ref, _excluded$R);
|
|
10223
10230
|
return /*#__PURE__*/React__default["default"].createElement(StyledTag, _extends({
|
|
10224
10231
|
className: classNames__default["default"]("c-tag", className),
|
|
10225
10232
|
ref: ref
|
|
@@ -10349,7 +10356,7 @@
|
|
|
10349
10356
|
});
|
|
10350
10357
|
StyledCheckbox$1.displayName = "StyledCheckbox";
|
|
10351
10358
|
|
|
10352
|
-
var _excluded$
|
|
10359
|
+
var _excluded$Q = ["isIndeterminate", "data-testid"];
|
|
10353
10360
|
|
|
10354
10361
|
/**
|
|
10355
10362
|
* @component CheckboxIcon
|
|
@@ -10373,7 +10380,7 @@
|
|
|
10373
10380
|
var CheckboxIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, svgRef) {
|
|
10374
10381
|
var isIndeterminate = _ref.isIndeterminate,
|
|
10375
10382
|
testId = _ref["data-testid"],
|
|
10376
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
10383
|
+
props = _objectWithoutProperties(_ref, _excluded$Q);
|
|
10377
10384
|
var _useState = React.useState(false),
|
|
10378
10385
|
_useState2 = _slicedToArray(_useState, 2),
|
|
10379
10386
|
animate = _useState2[0],
|
|
@@ -10442,7 +10449,7 @@
|
|
|
10442
10449
|
CheckboxIcon.displayName = "CheckboxIcon";
|
|
10443
10450
|
var CheckboxIcon$1 = CheckboxIcon;
|
|
10444
10451
|
|
|
10445
|
-
var _excluded$
|
|
10452
|
+
var _excluded$P = ["className", "hover", "id", "isIndeterminate"];
|
|
10446
10453
|
/**
|
|
10447
10454
|
* Checkbox component
|
|
10448
10455
|
*/
|
|
@@ -10452,7 +10459,7 @@
|
|
|
10452
10459
|
_ref$id = _ref.id,
|
|
10453
10460
|
id = _ref$id === void 0 ? "checkbox" : _ref$id,
|
|
10454
10461
|
isIndeterminate = _ref.isIndeterminate,
|
|
10455
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10462
|
+
rest = _objectWithoutProperties(_ref, _excluded$P);
|
|
10456
10463
|
return /*#__PURE__*/React__default["default"].createElement(StyledCheckbox$1, {
|
|
10457
10464
|
className: classNames__default["default"]("c-checkbox", {
|
|
10458
10465
|
"c-checkbox__hover": hover,
|
|
@@ -10657,7 +10664,7 @@
|
|
|
10657
10664
|
StyledScrollShadowLeft.displayName = "StyledScrollShadowLeft";
|
|
10658
10665
|
StyledScrollShadowRight.displayName = "StyledScrollShadowRight";
|
|
10659
10666
|
|
|
10660
|
-
var _excluded$
|
|
10667
|
+
var _excluded$O = ["children", "className", "disableVertical", "disableHorizontal", "invertHorizontal", "invertVertical", "innerColor", "outerColor"];
|
|
10661
10668
|
var ScrollShadow = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
10662
10669
|
var children = _ref.children,
|
|
10663
10670
|
className = _ref.className,
|
|
@@ -10671,7 +10678,7 @@
|
|
|
10671
10678
|
invertVertical = _ref$invertVertical === void 0 ? false : _ref$invertVertical,
|
|
10672
10679
|
innerColor = _ref.innerColor,
|
|
10673
10680
|
outerColor = _ref.outerColor,
|
|
10674
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10681
|
+
rest = _objectWithoutProperties(_ref, _excluded$O);
|
|
10675
10682
|
var _useState = React.useState({
|
|
10676
10683
|
top: 0,
|
|
10677
10684
|
right: 0,
|
|
@@ -10791,7 +10798,7 @@
|
|
|
10791
10798
|
return height;
|
|
10792
10799
|
};
|
|
10793
10800
|
|
|
10794
|
-
var _excluded$
|
|
10801
|
+
var _excluded$N = ["as", "className", "invert", "style"];
|
|
10795
10802
|
var ScrollElement = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
10796
10803
|
var _ref$as = _ref.as,
|
|
10797
10804
|
as = _ref$as === void 0 ? "div" : _ref$as,
|
|
@@ -10799,7 +10806,7 @@
|
|
|
10799
10806
|
_ref$invert = _ref.invert,
|
|
10800
10807
|
invert = _ref$invert === void 0 ? false : _ref$invert,
|
|
10801
10808
|
style = _ref.style,
|
|
10802
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10809
|
+
rest = _objectWithoutProperties(_ref, _excluded$N);
|
|
10803
10810
|
var internalRef = useInitScrollRef(null, invert);
|
|
10804
10811
|
var handleRef = useForkRef(internalRef, ref);
|
|
10805
10812
|
var props = _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
@@ -11281,7 +11288,7 @@
|
|
|
11281
11288
|
});
|
|
11282
11289
|
StyledInput$2.displayName = "StyledInput";
|
|
11283
11290
|
|
|
11284
|
-
var _excluded$
|
|
11291
|
+
var _excluded$M = ["className", "style", "type", "disabled", "size", "invalid", "startAdornment", "endAdornment", "wrapRef", "wrapperClick"];
|
|
11285
11292
|
var Input = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
11286
11293
|
var _ref$className = _ref.className,
|
|
11287
11294
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
@@ -11298,7 +11305,7 @@
|
|
|
11298
11305
|
endAdornment = _ref.endAdornment,
|
|
11299
11306
|
wrapRef = _ref.wrapRef,
|
|
11300
11307
|
wrapperClick = _ref.wrapperClick,
|
|
11301
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11308
|
+
rest = _objectWithoutProperties(_ref, _excluded$M);
|
|
11302
11309
|
var intInputRef = React.useRef(null);
|
|
11303
11310
|
var handleRef = useForkRef(ref, intInputRef);
|
|
11304
11311
|
var handleWrapperClick = React.useCallback(function () {
|
|
@@ -11352,14 +11359,14 @@
|
|
|
11352
11359
|
}, StyledRadioLabel);
|
|
11353
11360
|
StyledRadioButton$1.displayName = "StyledRadioButton";
|
|
11354
11361
|
|
|
11355
|
-
var _excluded$
|
|
11362
|
+
var _excluded$L = ["className", "id", "hover"];
|
|
11356
11363
|
var RadioButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
11357
11364
|
var _ref$className = _ref.className,
|
|
11358
11365
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
11359
11366
|
_ref$id = _ref.id,
|
|
11360
11367
|
id = _ref$id === void 0 ? "radio" : _ref$id,
|
|
11361
11368
|
hover = _ref.hover,
|
|
11362
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
11369
|
+
props = _objectWithoutProperties(_ref, _excluded$L);
|
|
11363
11370
|
return /*#__PURE__*/React__default["default"].createElement(StyledRadioButton$1, {
|
|
11364
11371
|
className: classNames__default["default"]("c-radio-btn", {
|
|
11365
11372
|
"c-radio-btn__hover": hover,
|
|
@@ -11567,7 +11574,7 @@
|
|
|
11567
11574
|
};
|
|
11568
11575
|
OptionContent.displayName = "OptionContent";
|
|
11569
11576
|
|
|
11570
|
-
var _excluded$
|
|
11577
|
+
var _excluded$K = ["type", "mode", "target", "options", "selected", "position", "onChange", "actionIcon", "actionLabel", "placeholder", "emptyAction", "disableSearch", "forceCloseMenu", "selectClassName", "keepSameOptionsOrder", "onSelectOpen", "onSelectClose", "renderOption", "handleDefaultOptionChange", "preselectDefaultValue"];
|
|
11571
11578
|
var Select = function Select(_ref) {
|
|
11572
11579
|
var _ref$type = _ref.type,
|
|
11573
11580
|
type = _ref$type === void 0 ? "single" : _ref$type,
|
|
@@ -11601,7 +11608,7 @@
|
|
|
11601
11608
|
handleDefaultOptionChange = _ref.handleDefaultOptionChange,
|
|
11602
11609
|
_ref$preselectDefault = _ref.preselectDefaultValue,
|
|
11603
11610
|
preselectDefaultValue = _ref$preselectDefault === void 0 ? type === "single" : _ref$preselectDefault,
|
|
11604
|
-
prop = _objectWithoutProperties(_ref, _excluded$
|
|
11611
|
+
prop = _objectWithoutProperties(_ref, _excluded$K);
|
|
11605
11612
|
var childNode = React.useRef();
|
|
11606
11613
|
var elementRef = React.useRef(null);
|
|
11607
11614
|
var handleRef = useForkRef(childNode, elementRef);
|
|
@@ -11856,7 +11863,7 @@
|
|
|
11856
11863
|
});
|
|
11857
11864
|
StyledNavAsMoreTarget.displayName = "StyledNavAsMoreTarget";
|
|
11858
11865
|
|
|
11859
|
-
var _excluded$
|
|
11866
|
+
var _excluded$J = ["children", "active", "disabled", "className", "role"];
|
|
11860
11867
|
var Item = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
11861
11868
|
var children = _ref.children,
|
|
11862
11869
|
_ref$active = _ref.active,
|
|
@@ -11865,7 +11872,7 @@
|
|
|
11865
11872
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
11866
11873
|
className = _ref.className,
|
|
11867
11874
|
role = _ref.role,
|
|
11868
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11875
|
+
rest = _objectWithoutProperties(_ref, _excluded$J);
|
|
11869
11876
|
return /*#__PURE__*/React__default["default"].createElement(StyledNavListItem, _extends({
|
|
11870
11877
|
className: classNames__default["default"]("c-nav__item", {
|
|
11871
11878
|
"c-nav__item--active": active
|
|
@@ -11906,11 +11913,11 @@
|
|
|
11906
11913
|
});
|
|
11907
11914
|
StyledExpandSingle.displayName = "StyledExpandSingle";
|
|
11908
11915
|
|
|
11909
|
-
var _excluded$
|
|
11916
|
+
var _excluded$I = ["expanded"];
|
|
11910
11917
|
var ExpandSingle = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
11911
11918
|
var _ref$expanded = _ref.expanded,
|
|
11912
11919
|
expanded = _ref$expanded === void 0 ? false : _ref$expanded,
|
|
11913
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11920
|
+
rest = _objectWithoutProperties(_ref, _excluded$I);
|
|
11914
11921
|
return /*#__PURE__*/React__default["default"].createElement(StyledExpandSingle, _extends({
|
|
11915
11922
|
ref: ref,
|
|
11916
11923
|
viewBox: "0 0 24 24",
|
|
@@ -12200,7 +12207,7 @@
|
|
|
12200
12207
|
};
|
|
12201
12208
|
Nav.displayName = "Nav";
|
|
12202
12209
|
|
|
12203
|
-
var _excluded$
|
|
12210
|
+
var _excluded$H = ["children", "as", "disablePointerEvents"];
|
|
12204
12211
|
var InputAdornmentBase = styled__default["default"].div.withConfig({
|
|
12205
12212
|
displayName: "InputAdornment__InputAdornmentBase",
|
|
12206
12213
|
componentId: "sc-1xfjx1z-0"
|
|
@@ -12217,7 +12224,7 @@
|
|
|
12217
12224
|
var children = _ref.children,
|
|
12218
12225
|
as = _ref.as,
|
|
12219
12226
|
disablePointerEvents = _ref.disablePointerEvents,
|
|
12220
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12227
|
+
rest = _objectWithoutProperties(_ref, _excluded$H);
|
|
12221
12228
|
var Component = as || "div";
|
|
12222
12229
|
return /*#__PURE__*/React__default["default"].createElement(InputAdornmentBase, _extends({}, rest, {
|
|
12223
12230
|
as: Component,
|
|
@@ -12227,11 +12234,11 @@
|
|
|
12227
12234
|
});
|
|
12228
12235
|
InputAdornment.displayName = "InputAdornment";
|
|
12229
12236
|
|
|
12230
|
-
var _excluded$
|
|
12237
|
+
var _excluded$G = ["expanded"];
|
|
12231
12238
|
var ExpandAll = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
12232
12239
|
var _ref$expanded = _ref.expanded,
|
|
12233
12240
|
expanded = _ref$expanded === void 0 ? false : _ref$expanded,
|
|
12234
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12241
|
+
rest = _objectWithoutProperties(_ref, _excluded$G);
|
|
12235
12242
|
return /*#__PURE__*/React__default["default"].createElement(StyledExpand, _extends({
|
|
12236
12243
|
ref: ref,
|
|
12237
12244
|
viewBox: "0 0 24 24"
|
|
@@ -12349,14 +12356,14 @@
|
|
|
12349
12356
|
});
|
|
12350
12357
|
StyledTextarea.displayName = "StyledTextarea";
|
|
12351
12358
|
|
|
12352
|
-
var _excluded$
|
|
12359
|
+
var _excluded$F = ["className", "disabled", "invalid"];
|
|
12353
12360
|
var Textarea = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
12354
12361
|
var className = _ref.className,
|
|
12355
12362
|
_ref$disabled = _ref.disabled,
|
|
12356
12363
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
12357
12364
|
_ref$invalid = _ref.invalid,
|
|
12358
12365
|
invalid = _ref$invalid === void 0 ? false : _ref$invalid,
|
|
12359
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12366
|
+
rest = _objectWithoutProperties(_ref, _excluded$F);
|
|
12360
12367
|
return /*#__PURE__*/React__default["default"].createElement(StyledTextarea, _extends({}, rest, {
|
|
12361
12368
|
$invalid: invalid,
|
|
12362
12369
|
ref: ref,
|
|
@@ -12388,7 +12395,7 @@
|
|
|
12388
12395
|
function () {});
|
|
12389
12396
|
}
|
|
12390
12397
|
|
|
12391
|
-
var _excluded$
|
|
12398
|
+
var _excluded$E = ["children", "disableFocusLock", "disableScrollLock", "disableBackgroundClick", "disableBackgroundColor", "disableCloseOnEsc", "open", "onClose", "onClickOutside"];
|
|
12392
12399
|
var getHasTransition = function getHasTransition(children) {
|
|
12393
12400
|
return children.props ? Object.prototype.hasOwnProperty.call(children.props, "in") : false;
|
|
12394
12401
|
};
|
|
@@ -12408,7 +12415,7 @@
|
|
|
12408
12415
|
defaultOpen = _ref$open === void 0 ? false : _ref$open,
|
|
12409
12416
|
onClose = _ref.onClose,
|
|
12410
12417
|
onClickOutside = _ref.onClickOutside,
|
|
12411
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12418
|
+
rest = _objectWithoutProperties(_ref, _excluded$E);
|
|
12412
12419
|
var _useState = React.useState(defaultOpen),
|
|
12413
12420
|
_useState2 = _slicedToArray(_useState, 2),
|
|
12414
12421
|
open = _useState2[0],
|
|
@@ -12549,7 +12556,7 @@
|
|
|
12549
12556
|
});
|
|
12550
12557
|
StyledCssTransition.displayName = "StyledCssTransition";
|
|
12551
12558
|
|
|
12552
|
-
var _excluded$
|
|
12559
|
+
var _excluded$D = ["children", "onClose", "controls", "open", "animation", "position", "mode", "disableFocusLock", "disableScrollLock", "disableBackgroundColor", "bodyStyle", "bodyClassName", "disableBackgroundClick"];
|
|
12553
12560
|
var Sheet = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
12554
12561
|
var children = _ref.children,
|
|
12555
12562
|
onClose = _ref.onClose,
|
|
@@ -12573,7 +12580,7 @@
|
|
|
12573
12580
|
bodyClassName = _ref.bodyClassName,
|
|
12574
12581
|
_ref$disableBackgroun2 = _ref.disableBackgroundClick,
|
|
12575
12582
|
disableBackgroundClick = _ref$disableBackgroun2 === void 0 ? false : _ref$disableBackgroun2,
|
|
12576
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12583
|
+
rest = _objectWithoutProperties(_ref, _excluded$D);
|
|
12577
12584
|
var _useState = React.useState(defaultOpen),
|
|
12578
12585
|
_useState2 = _slicedToArray(_useState, 2),
|
|
12579
12586
|
open = _useState2[0],
|
|
@@ -12666,13 +12673,13 @@
|
|
|
12666
12673
|
});
|
|
12667
12674
|
StyledHeader.displayName = "StyledHeader";
|
|
12668
12675
|
|
|
12669
|
-
var _excluded$
|
|
12676
|
+
var _excluded$C = ["className", "size", "children"];
|
|
12670
12677
|
var Header = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
12671
12678
|
var className = _ref.className,
|
|
12672
12679
|
_ref$size = _ref.size,
|
|
12673
12680
|
size = _ref$size === void 0 ? "small" : _ref$size,
|
|
12674
12681
|
children = _ref.children,
|
|
12675
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12682
|
+
rest = _objectWithoutProperties(_ref, _excluded$C);
|
|
12676
12683
|
return /*#__PURE__*/React__default["default"].createElement(StyledHeader, _extends({
|
|
12677
12684
|
type: "paper-2",
|
|
12678
12685
|
className: classNames__default["default"]("c-header", className),
|
|
@@ -12688,7 +12695,7 @@
|
|
|
12688
12695
|
})(["white-space:pre-wrap;overflow-wrap:break-word;resize:none;"]);
|
|
12689
12696
|
StyledAutoResizeTextarea.displayName = "StyledAutoResizeTextarea";
|
|
12690
12697
|
|
|
12691
|
-
var _excluded$
|
|
12698
|
+
var _excluded$B = ["minRows", "maxRows", "lineHeight", "onChange", "className", "preventNewRowOnEnter", "cursorAtTextEnd", "onKeyDown", "value"];
|
|
12692
12699
|
var AutoResizeTextarea = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
12693
12700
|
var _ref$minRows = _ref.minRows,
|
|
12694
12701
|
minRows = _ref$minRows === void 0 ? 1 : _ref$minRows,
|
|
@@ -12704,7 +12711,7 @@
|
|
|
12704
12711
|
cursorAtTextEnd = _ref$cursorAtTextEnd === void 0 ? false : _ref$cursorAtTextEnd,
|
|
12705
12712
|
onKeyDown = _ref.onKeyDown,
|
|
12706
12713
|
value = _ref.value,
|
|
12707
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12714
|
+
rest = _objectWithoutProperties(_ref, _excluded$B);
|
|
12708
12715
|
var innerRef = React.useRef(null);
|
|
12709
12716
|
var _useState = React.useState(minRows),
|
|
12710
12717
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -12980,7 +12987,7 @@
|
|
|
12980
12987
|
});
|
|
12981
12988
|
StyledChoose.displayName = "StyledChoose";
|
|
12982
12989
|
|
|
12983
|
-
var _excluded$
|
|
12990
|
+
var _excluded$A = ["children", "disabled", "active", "className"];
|
|
12984
12991
|
/**
|
|
12985
12992
|
* Choose component
|
|
12986
12993
|
*/
|
|
@@ -12991,7 +12998,7 @@
|
|
|
12991
12998
|
_ref$active = _ref.active,
|
|
12992
12999
|
active = _ref$active === void 0 ? false : _ref$active,
|
|
12993
13000
|
className = _ref.className,
|
|
12994
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
13001
|
+
args = _objectWithoutProperties(_ref, _excluded$A);
|
|
12995
13002
|
return /*#__PURE__*/React__default["default"].createElement(StyledChoose, _extends({
|
|
12996
13003
|
disabled: disabled,
|
|
12997
13004
|
className: classNames__default["default"]("c-choose", className),
|
|
@@ -13087,21 +13094,21 @@
|
|
|
13087
13094
|
StyledLinkElements.displayName = "StyledLinkElements";
|
|
13088
13095
|
StyledLink.displayName = "StyledLink";
|
|
13089
13096
|
|
|
13090
|
-
var _excluded$
|
|
13097
|
+
var _excluded$z = ["children", "className"];
|
|
13091
13098
|
/**
|
|
13092
13099
|
* Back link component
|
|
13093
13100
|
*/
|
|
13094
13101
|
var BackLink = function BackLink(_ref) {
|
|
13095
13102
|
var children = _ref.children,
|
|
13096
13103
|
className = _ref.className,
|
|
13097
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
13104
|
+
args = _objectWithoutProperties(_ref, _excluded$z);
|
|
13098
13105
|
return /*#__PURE__*/React__default["default"].createElement(StyledBackLink, _extends({
|
|
13099
13106
|
className: classNames__default["default"]("c-back-link", className)
|
|
13100
13107
|
}, args), children);
|
|
13101
13108
|
};
|
|
13102
13109
|
BackLink.displayName = "BackLink";
|
|
13103
13110
|
|
|
13104
|
-
var _excluded$
|
|
13111
|
+
var _excluded$y = ["as", "children", "variant", "size", "disabled", "className"];
|
|
13105
13112
|
/**
|
|
13106
13113
|
* Link component
|
|
13107
13114
|
*/
|
|
@@ -13114,7 +13121,7 @@
|
|
|
13114
13121
|
_ref$disabled = _ref.disabled,
|
|
13115
13122
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
13116
13123
|
className = _ref.className,
|
|
13117
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
13124
|
+
args = _objectWithoutProperties(_ref, _excluded$y);
|
|
13118
13125
|
var Component = as || "a";
|
|
13119
13126
|
return /*#__PURE__*/React__default["default"].createElement(StyledLink, _extends({
|
|
13120
13127
|
ref: ref,
|
|
@@ -13225,7 +13232,7 @@
|
|
|
13225
13232
|
})(["padding:20px 30px;", " ", ""], FontStyle, BoxSizingStyle);
|
|
13226
13233
|
StyledDialogActions.displayName = "StyledDialogActions";
|
|
13227
13234
|
|
|
13228
|
-
var _excluded$
|
|
13235
|
+
var _excluded$x = ["in", "children", "style", "timeout"];
|
|
13229
13236
|
var defaultStyle$1 = function defaultStyle(duration) {
|
|
13230
13237
|
return {
|
|
13231
13238
|
transition: "all ".concat(duration, "ms ease-in-out"),
|
|
@@ -13253,7 +13260,7 @@
|
|
|
13253
13260
|
style = _ref.style,
|
|
13254
13261
|
_ref$timeout = _ref.timeout,
|
|
13255
13262
|
timeout = _ref$timeout === void 0 ? 500 : _ref$timeout,
|
|
13256
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
13263
|
+
rest = _objectWithoutProperties(_ref, _excluded$x);
|
|
13257
13264
|
return /*#__PURE__*/React__default["default"].createElement(reactTransitionGroup.Transition, _extends({
|
|
13258
13265
|
appear: true,
|
|
13259
13266
|
in: inProp,
|
|
@@ -13268,7 +13275,7 @@
|
|
|
13268
13275
|
};
|
|
13269
13276
|
Fade.displayName = "Fade";
|
|
13270
13277
|
|
|
13271
|
-
var _excluded$
|
|
13278
|
+
var _excluded$w = ["in", "children", "style", "timeout", "initialDirection"];
|
|
13272
13279
|
var Slide = function Slide(_ref) {
|
|
13273
13280
|
var _ref$in = _ref.in,
|
|
13274
13281
|
inProp = _ref$in === void 0 ? false : _ref$in,
|
|
@@ -13278,7 +13285,7 @@
|
|
|
13278
13285
|
timeout = _ref$timeout === void 0 ? 300 : _ref$timeout,
|
|
13279
13286
|
_ref$initialDirection = _ref.initialDirection,
|
|
13280
13287
|
initialDirection = _ref$initialDirection === void 0 ? "left" : _ref$initialDirection,
|
|
13281
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
13288
|
+
rest = _objectWithoutProperties(_ref, _excluded$w);
|
|
13282
13289
|
var directionSign;
|
|
13283
13290
|
switch (initialDirection) {
|
|
13284
13291
|
case "right":
|
|
@@ -13331,12 +13338,12 @@
|
|
|
13331
13338
|
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;}"]);
|
|
13332
13339
|
});
|
|
13333
13340
|
|
|
13334
|
-
var _excluded$
|
|
13341
|
+
var _excluded$v = ["children", "direction"];
|
|
13335
13342
|
var SlideLeftRightTransition = function SlideLeftRightTransition(_ref) {
|
|
13336
13343
|
var children = _ref.children,
|
|
13337
13344
|
_ref$direction = _ref.direction,
|
|
13338
13345
|
direction = _ref$direction === void 0 ? "left" : _ref$direction,
|
|
13339
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
13346
|
+
props = _objectWithoutProperties(_ref, _excluded$v);
|
|
13340
13347
|
return /*#__PURE__*/React__default["default"].createElement(reactTransitionGroup.CSSTransition, _extends({
|
|
13341
13348
|
timeout: 200,
|
|
13342
13349
|
classNames: "c-slide",
|
|
@@ -13379,7 +13386,7 @@
|
|
|
13379
13386
|
};
|
|
13380
13387
|
ResizeTransition.displayName = "ResizeTransition";
|
|
13381
13388
|
|
|
13382
|
-
var _excluded$
|
|
13389
|
+
var _excluded$u = ["in", "children", "style", "timeout"];
|
|
13383
13390
|
var defaultStyle = function defaultStyle(duration) {
|
|
13384
13391
|
return {
|
|
13385
13392
|
transition: "all ".concat(duration, "ms ease-in"),
|
|
@@ -13413,7 +13420,7 @@
|
|
|
13413
13420
|
style = _ref.style,
|
|
13414
13421
|
_ref$timeout = _ref.timeout,
|
|
13415
13422
|
timeout = _ref$timeout === void 0 ? 200 : _ref$timeout,
|
|
13416
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
13423
|
+
rest = _objectWithoutProperties(_ref, _excluded$u);
|
|
13417
13424
|
return /*#__PURE__*/React__default["default"].createElement(reactTransitionGroup.Transition, _extends({
|
|
13418
13425
|
appear: true,
|
|
13419
13426
|
in: inProp,
|
|
@@ -13463,13 +13470,13 @@
|
|
|
13463
13470
|
};
|
|
13464
13471
|
Scale.displayName = "Scale";
|
|
13465
13472
|
|
|
13466
|
-
var _excluded$
|
|
13473
|
+
var _excluded$t = ["className", "children"];
|
|
13467
13474
|
// import { useDialogContext } from "./DialogContext";
|
|
13468
13475
|
|
|
13469
13476
|
var DialogActions = function DialogActions(_ref) {
|
|
13470
13477
|
var className = _ref.className,
|
|
13471
13478
|
children = _ref.children,
|
|
13472
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
13479
|
+
rest = _objectWithoutProperties(_ref, _excluded$t);
|
|
13473
13480
|
// useDialogContext();
|
|
13474
13481
|
|
|
13475
13482
|
return /*#__PURE__*/React__default["default"].createElement(StyledDialogActions, _extends({
|
|
@@ -13478,13 +13485,13 @@
|
|
|
13478
13485
|
};
|
|
13479
13486
|
DialogActions.displayName = "DialogActions";
|
|
13480
13487
|
|
|
13481
|
-
var _excluded$
|
|
13488
|
+
var _excluded$s = ["className", "children"];
|
|
13482
13489
|
// import { useDialogContext } from "./DialogContext";
|
|
13483
13490
|
|
|
13484
13491
|
var DialogContent = function DialogContent(_ref) {
|
|
13485
13492
|
var className = _ref.className,
|
|
13486
13493
|
children = _ref.children,
|
|
13487
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
13494
|
+
rest = _objectWithoutProperties(_ref, _excluded$s);
|
|
13488
13495
|
// useDialogContext();
|
|
13489
13496
|
|
|
13490
13497
|
return /*#__PURE__*/React__default["default"].createElement(StyledDialogContent, _extends({
|
|
@@ -13505,7 +13512,7 @@
|
|
|
13505
13512
|
};
|
|
13506
13513
|
DialogContentDivider.displayName = "DialogContentDivider";
|
|
13507
13514
|
|
|
13508
|
-
var _excluded$
|
|
13515
|
+
var _excluded$r = ["children", "className", "disableDefaultHeading"];
|
|
13509
13516
|
// import { useDialogContext } from "./DialogContext";
|
|
13510
13517
|
|
|
13511
13518
|
var DialogTitle = function DialogTitle(_ref) {
|
|
@@ -13513,7 +13520,7 @@
|
|
|
13513
13520
|
className = _ref.className,
|
|
13514
13521
|
_ref$disableDefaultHe = _ref.disableDefaultHeading,
|
|
13515
13522
|
disableDefaultHeading = _ref$disableDefaultHe === void 0 ? false : _ref$disableDefaultHe,
|
|
13516
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
13523
|
+
rest = _objectWithoutProperties(_ref, _excluded$r);
|
|
13517
13524
|
// useDialogContext();
|
|
13518
13525
|
|
|
13519
13526
|
return /*#__PURE__*/React__default["default"].createElement(StyledDialogTitle, _extends({
|
|
@@ -13522,7 +13529,7 @@
|
|
|
13522
13529
|
};
|
|
13523
13530
|
DialogTitle.displayName = "DialogTitle";
|
|
13524
13531
|
|
|
13525
|
-
var _excluded$
|
|
13532
|
+
var _excluded$q = ["children", "open", "onClose", "className", "enableBackgroundClick", "disableCloseOnEsc", "animate", "onClickOutside"];
|
|
13526
13533
|
var _Dialog = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
13527
13534
|
var children = _ref.children,
|
|
13528
13535
|
_ref$open = _ref.open,
|
|
@@ -13536,7 +13543,7 @@
|
|
|
13536
13543
|
_ref$animate = _ref.animate,
|
|
13537
13544
|
animate = _ref$animate === void 0 ? "slide" : _ref$animate,
|
|
13538
13545
|
onClickOutside = _ref.onClickOutside,
|
|
13539
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
13546
|
+
rest = _objectWithoutProperties(_ref, _excluded$q);
|
|
13540
13547
|
var animateDialog = function animateDialog() {
|
|
13541
13548
|
switch (animate) {
|
|
13542
13549
|
case "fade":
|
|
@@ -13785,7 +13792,7 @@
|
|
|
13785
13792
|
});
|
|
13786
13793
|
StyledPressed.displayName = "StyledPressed";
|
|
13787
13794
|
|
|
13788
|
-
var _excluded$
|
|
13795
|
+
var _excluded$p = ["children", "active", "className"];
|
|
13789
13796
|
/**
|
|
13790
13797
|
* Pressed wrapper for button component
|
|
13791
13798
|
* @deprecated
|
|
@@ -13795,7 +13802,7 @@
|
|
|
13795
13802
|
_ref$active = _ref.active,
|
|
13796
13803
|
active = _ref$active === void 0 ? false : _ref$active,
|
|
13797
13804
|
className = _ref.className,
|
|
13798
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
13805
|
+
args = _objectWithoutProperties(_ref, _excluded$p);
|
|
13799
13806
|
return /*#__PURE__*/React__default["default"].createElement(StyledPressed, _extends({
|
|
13800
13807
|
active: active,
|
|
13801
13808
|
ref: ref,
|
|
@@ -14301,7 +14308,7 @@
|
|
|
14301
14308
|
StyledToastMessage.displayName = "StyledToastMessage";
|
|
14302
14309
|
StyledCloseSmallIcon.displayName = "StyledCloseSmallIcon";
|
|
14303
14310
|
|
|
14304
|
-
var _excluded$
|
|
14311
|
+
var _excluded$o = ["text", "type", "onClose", "dismissible", "dropShadow", "timeout"];
|
|
14305
14312
|
var ToastMessage = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
14306
14313
|
var text = _ref.text,
|
|
14307
14314
|
type = _ref.type,
|
|
@@ -14312,7 +14319,7 @@
|
|
|
14312
14319
|
dropShadow = _ref$dropShadow === void 0 ? false : _ref$dropShadow,
|
|
14313
14320
|
_ref$timeout = _ref.timeout,
|
|
14314
14321
|
timeout = _ref$timeout === void 0 ? 0 : _ref$timeout,
|
|
14315
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
14322
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
14316
14323
|
var handleOnClose = React.useCallback(function () {
|
|
14317
14324
|
if (typeof onClose === "function") {
|
|
14318
14325
|
onClose();
|
|
@@ -14360,7 +14367,7 @@
|
|
|
14360
14367
|
});
|
|
14361
14368
|
StyledValueButton.displayName = "StyledValueButton";
|
|
14362
14369
|
|
|
14363
|
-
var _excluded$
|
|
14370
|
+
var _excluded$n = ["active", "alwaysShowIcon", "icon", "label", "value"];
|
|
14364
14371
|
var ValueButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
14365
14372
|
var _ref$active = _ref.active,
|
|
14366
14373
|
active = _ref$active === void 0 ? false : _ref$active,
|
|
@@ -14369,7 +14376,7 @@
|
|
|
14369
14376
|
icon = _ref.icon,
|
|
14370
14377
|
label = _ref.label,
|
|
14371
14378
|
value = _ref.value,
|
|
14372
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
14379
|
+
args = _objectWithoutProperties(_ref, _excluded$n);
|
|
14373
14380
|
return /*#__PURE__*/React__default["default"].createElement(StyledValueButton, _extends({
|
|
14374
14381
|
className: "c-value-button"
|
|
14375
14382
|
}, args, {
|
|
@@ -14398,12 +14405,12 @@
|
|
|
14398
14405
|
})(["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;}"]);
|
|
14399
14406
|
StyledButton.displayName = "StyledButton";
|
|
14400
14407
|
|
|
14401
|
-
var _excluded$
|
|
14408
|
+
var _excluded$m = ["children", "type"];
|
|
14402
14409
|
var Trigger = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
14403
14410
|
var children = _ref.children,
|
|
14404
14411
|
_ref$type = _ref.type,
|
|
14405
14412
|
type = _ref$type === void 0 ? "button" : _ref$type,
|
|
14406
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
14413
|
+
rest = _objectWithoutProperties(_ref, _excluded$m);
|
|
14407
14414
|
return /*#__PURE__*/React__default["default"].createElement(StyledButton, _extends({
|
|
14408
14415
|
ref: ref,
|
|
14409
14416
|
role: "button",
|
|
@@ -14449,7 +14456,7 @@
|
|
|
14449
14456
|
});
|
|
14450
14457
|
StyledCaretIcon.displayName = "StyledCaretIcon";
|
|
14451
14458
|
|
|
14452
|
-
var _excluded$
|
|
14459
|
+
var _excluded$l = ["children", "type", "size", "invalid", "open", "endAdornment", "typographyProps"];
|
|
14453
14460
|
var SelectTrigger = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
14454
14461
|
var children = _ref.children,
|
|
14455
14462
|
_ref$type = _ref.type,
|
|
@@ -14462,7 +14469,7 @@
|
|
|
14462
14469
|
open = _ref$open === void 0 ? false : _ref$open,
|
|
14463
14470
|
endAdornment = _ref.endAdornment,
|
|
14464
14471
|
typographyProps = _ref.typographyProps,
|
|
14465
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
14472
|
+
rest = _objectWithoutProperties(_ref, _excluded$l);
|
|
14466
14473
|
return /*#__PURE__*/React__default["default"].createElement(StyledSelectTrigger, _extends({
|
|
14467
14474
|
ref: ref,
|
|
14468
14475
|
role: "button",
|
|
@@ -14509,11 +14516,11 @@
|
|
|
14509
14516
|
});
|
|
14510
14517
|
StyledToggle.displayName = "StyledToggle";
|
|
14511
14518
|
|
|
14512
|
-
var _excluded$
|
|
14519
|
+
var _excluded$k = ["hovered", "className"];
|
|
14513
14520
|
var Toggle = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
14514
14521
|
var hovered = _ref.hovered,
|
|
14515
14522
|
className = _ref.className,
|
|
14516
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
14523
|
+
args = _objectWithoutProperties(_ref, _excluded$k);
|
|
14517
14524
|
return /*#__PURE__*/React__default["default"].createElement(StyledToggle, {
|
|
14518
14525
|
className: classNames__default["default"]("c-toggle", className),
|
|
14519
14526
|
$isHovered: hovered,
|
|
@@ -14666,7 +14673,7 @@
|
|
|
14666
14673
|
});
|
|
14667
14674
|
ChipCloseIcon.displayName = "ChipCloseIcon";
|
|
14668
14675
|
|
|
14669
|
-
var _excluded$
|
|
14676
|
+
var _excluded$j = ["leftAdornment", "label", "onClose", "size", "color", "backgroundColor", "closeClassName", "variant", "typographyProps"];
|
|
14670
14677
|
var Chip = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
14671
14678
|
var leftAdornment = _ref.leftAdornment,
|
|
14672
14679
|
label = _ref.label,
|
|
@@ -14678,7 +14685,7 @@
|
|
|
14678
14685
|
closeClassName = _ref.closeClassName,
|
|
14679
14686
|
variant = _ref.variant,
|
|
14680
14687
|
typographyProps = _ref.typographyProps,
|
|
14681
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
14688
|
+
rest = _objectWithoutProperties(_ref, _excluded$j);
|
|
14682
14689
|
var showClose = typeof onClose === "function";
|
|
14683
14690
|
var _variant = React.useMemo(function () {
|
|
14684
14691
|
if (typeof variant !== "undefined") {
|
|
@@ -14754,7 +14761,7 @@
|
|
|
14754
14761
|
return isFirst.current;
|
|
14755
14762
|
};
|
|
14756
14763
|
|
|
14757
|
-
var _excluded$
|
|
14764
|
+
var _excluded$i = ["options", "selected", "loading", "loadingText", "onChange", "placeholder", "handleEmptyAction", "disabled", "size", "invalid", "type", "renderChip", "forceCloseMenu", "renderOption", "limitChips", "hiddenNumberText", "inPortal", "inputWrapperClassName", "scrollWrapper", "onClose", "onClear"];
|
|
14758
14765
|
var ComboBox = function ComboBox(_ref) {
|
|
14759
14766
|
var _comboBoxRef$current2, _comboBoxRef$current3;
|
|
14760
14767
|
var _ref$options = _ref.options,
|
|
@@ -14787,7 +14794,7 @@
|
|
|
14787
14794
|
scrollWrapper = _ref.scrollWrapper,
|
|
14788
14795
|
onClose = _ref.onClose,
|
|
14789
14796
|
onClear = _ref.onClear,
|
|
14790
|
-
prop = _objectWithoutProperties(_ref, _excluded$
|
|
14797
|
+
prop = _objectWithoutProperties(_ref, _excluded$i);
|
|
14791
14798
|
var selectedName = React.useMemo(function () {
|
|
14792
14799
|
var value = "";
|
|
14793
14800
|
if (!selected) {
|
|
@@ -14975,7 +14982,7 @@
|
|
|
14975
14982
|
color: option.chipColor,
|
|
14976
14983
|
onClose: showOnClose ? onClose : undefined,
|
|
14977
14984
|
size: size,
|
|
14978
|
-
variant: "
|
|
14985
|
+
variant: "Caption 1"
|
|
14979
14986
|
});
|
|
14980
14987
|
}, [disabled, onChange, renderChip, selected, size]);
|
|
14981
14988
|
var autoSize = React.useMemo(function () {
|
|
@@ -15191,11 +15198,11 @@
|
|
|
15191
15198
|
})(["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
15199
|
StyledAddToListButton.displayName = "StyledAddToListButton";
|
|
15193
15200
|
|
|
15194
|
-
var _excluded$
|
|
15201
|
+
var _excluded$h = ["text", "className"];
|
|
15195
15202
|
var AddToListButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
15196
15203
|
var text = _ref.text,
|
|
15197
15204
|
className = _ref.className,
|
|
15198
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
15205
|
+
rest = _objectWithoutProperties(_ref, _excluded$h);
|
|
15199
15206
|
return /*#__PURE__*/React__default["default"].createElement(StyledAddToListButton, _extends({
|
|
15200
15207
|
ref: ref,
|
|
15201
15208
|
className: classNames__default["default"]("c--add-to-list-btn", className)
|
|
@@ -15378,11 +15385,11 @@
|
|
|
15378
15385
|
};
|
|
15379
15386
|
ProgressRing.displayName = "ProgressRing";
|
|
15380
15387
|
|
|
15381
|
-
var _excluded$
|
|
15388
|
+
var _excluded$g = ["radius"];
|
|
15382
15389
|
var ProgressPie = function ProgressPie(_ref) {
|
|
15383
15390
|
var _ref$radius = _ref.radius,
|
|
15384
15391
|
radius = _ref$radius === void 0 ? 20 : _ref$radius,
|
|
15385
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
15392
|
+
rest = _objectWithoutProperties(_ref, _excluded$g);
|
|
15386
15393
|
return /*#__PURE__*/React__default["default"].createElement(ProgressRing, _extends({}, rest, {
|
|
15387
15394
|
stroke: radius,
|
|
15388
15395
|
radius: radius
|
|
@@ -15706,7 +15713,7 @@
|
|
|
15706
15713
|
ThumbsDownIcon.displayName = "ThumbsDownIcon";
|
|
15707
15714
|
var ThumbsDownIcon$1 = ThumbsDownIcon;
|
|
15708
15715
|
|
|
15709
|
-
var _excluded$
|
|
15716
|
+
var _excluded$f = ["invalid", "required", "size", "children", "className", "weight", "htmlFor"];
|
|
15710
15717
|
var Label = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
15711
15718
|
var _ref$invalid = _ref.invalid,
|
|
15712
15719
|
invalid = _ref$invalid === void 0 ? false : _ref$invalid,
|
|
@@ -15719,7 +15726,7 @@
|
|
|
15719
15726
|
_ref$weight = _ref.weight,
|
|
15720
15727
|
weight = _ref$weight === void 0 ? "bold" : _ref$weight,
|
|
15721
15728
|
htmlFor = _ref.htmlFor,
|
|
15722
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
15729
|
+
props = _objectWithoutProperties(_ref, _excluded$f);
|
|
15723
15730
|
var color = invalid ? "alert" : "primary";
|
|
15724
15731
|
var variant = size === "regular" ? "Body 2" : "Caption 1";
|
|
15725
15732
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
@@ -15747,7 +15754,7 @@
|
|
|
15747
15754
|
var StyledSpan = styled__default["default"](Typography).withConfig({
|
|
15748
15755
|
displayName: "Styles__StyledSpan",
|
|
15749
15756
|
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;", " &:empty:before{content:\"i\";}"], function (_ref) {
|
|
15757
|
+
})(["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:\"i\";}"], function (_ref) {
|
|
15751
15758
|
var $disabled = _ref.$disabled;
|
|
15752
15759
|
return $disabled && styled.css(["visibility:visible;"]);
|
|
15753
15760
|
});
|
|
@@ -15755,7 +15762,7 @@
|
|
|
15755
15762
|
var StyledInput$1 = styled__default["default"](Typography).withConfig({
|
|
15756
15763
|
displayName: "Styles__StyledInput",
|
|
15757
15764
|
componentId: "sc-1wapx2a-2"
|
|
15758
|
-
})(["", " background-color:inherit;padding-left:4px;padding-right:4px;padding-top:1px;padding-bottom:1px;text-overflow:ellipsis;&:focus-whitin{text-overflow:clip;}outline-width:0px;outline:none;&:disabled{display:none;}"], {
|
|
15765
|
+
})(["", " 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
15766
|
"position": "absolute",
|
|
15760
15767
|
"inset": "0px",
|
|
15761
15768
|
"boxSizing": "border-box",
|
|
@@ -15776,7 +15783,7 @@
|
|
|
15776
15783
|
});
|
|
15777
15784
|
StyledInput$1.displayName = "StyledInput";
|
|
15778
15785
|
|
|
15779
|
-
var _excluded$
|
|
15786
|
+
var _excluded$e = ["className", "variant", "weight", "disabled", "inputProps", "wrapRef"];
|
|
15780
15787
|
var EditableContent = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
15781
15788
|
var className = _ref.className,
|
|
15782
15789
|
_ref$variant = _ref.variant,
|
|
@@ -15786,7 +15793,7 @@
|
|
|
15786
15793
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
15787
15794
|
inputProps = _ref.inputProps,
|
|
15788
15795
|
wrapRef = _ref.wrapRef,
|
|
15789
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
15796
|
+
props = _objectWithoutProperties(_ref, _excluded$e);
|
|
15790
15797
|
var intInputRef = React.useRef(null);
|
|
15791
15798
|
var handleRef = useForkRef(ref, intInputRef);
|
|
15792
15799
|
var handleBlur = React.useCallback(function (evt) {
|
|
@@ -15816,14 +15823,14 @@
|
|
|
15816
15823
|
});
|
|
15817
15824
|
EditableContent.displayName = "EditableContent";
|
|
15818
15825
|
|
|
15819
|
-
var _excluded$
|
|
15826
|
+
var _excluded$d = ["onSave", "onCancel", "value", "inputProps", "allowEmptyString"];
|
|
15820
15827
|
var EditableText = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
15821
15828
|
var onSave = _ref.onSave,
|
|
15822
15829
|
onCancel = _ref.onCancel,
|
|
15823
15830
|
value = _ref.value,
|
|
15824
15831
|
inputProps = _ref.inputProps,
|
|
15825
15832
|
allowEmptyString = _ref.allowEmptyString,
|
|
15826
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
15833
|
+
props = _objectWithoutProperties(_ref, _excluded$d);
|
|
15827
15834
|
var _useState = React.useState(value),
|
|
15828
15835
|
_useState2 = _slicedToArray(_useState, 2),
|
|
15829
15836
|
currentValue = _useState2[0],
|
|
@@ -15881,6 +15888,289 @@
|
|
|
15881
15888
|
});
|
|
15882
15889
|
EditableText.displayName = "EditableText";
|
|
15883
15890
|
|
|
15891
|
+
// export const decimalToHours = (decimal: string) => {
|
|
15892
|
+
// // we round it on two decimals first, to eliminate quirks, eg, 5.99999999 will return 5:59 instead of 6:00
|
|
15893
|
+
// decimal = parseFloat(decimal).toFixed(2);
|
|
15894
|
+
// decimal = decimal + "";
|
|
15895
|
+
// let hours;
|
|
15896
|
+
// let minutes_decimal;
|
|
15897
|
+
//
|
|
15898
|
+
// if (decimal.indexOf(".") < 0) {
|
|
15899
|
+
// hours = parseInt(decimal);
|
|
15900
|
+
// minutes_decimal = 0;
|
|
15901
|
+
// } else {
|
|
15902
|
+
// hours = parseInt(decimal.substring(0, decimal.indexOf(".")));
|
|
15903
|
+
// minutes_decimal = decimal.substring(decimal.indexOf(".") + 1);
|
|
15904
|
+
// minutes_decimal = minutes_decimal.substring(0, 2);
|
|
15905
|
+
// if (minutes_decimal.length === 1) {
|
|
15906
|
+
// minutes_decimal += "0";
|
|
15907
|
+
// } // if
|
|
15908
|
+
// minutes_decimal = parseInt(minutes_decimal);
|
|
15909
|
+
// } // if
|
|
15910
|
+
//
|
|
15911
|
+
// const minutes = Math.round((minutes_decimal / 100) * 60);
|
|
15912
|
+
//
|
|
15913
|
+
// if (hours < 10) {
|
|
15914
|
+
// hours = `0${hours}`;
|
|
15915
|
+
// }
|
|
15916
|
+
// return {
|
|
15917
|
+
// hours: hours,
|
|
15918
|
+
// minutes: minutes,
|
|
15919
|
+
// };
|
|
15920
|
+
// };
|
|
15921
|
+
|
|
15922
|
+
var decimalToHours = function decimalToHours(num) {
|
|
15923
|
+
var withLeadingZeroHours = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
15924
|
+
if (typeof num === "string" && !num) {
|
|
15925
|
+
return withLeadingZeroHours ? "00:00" : "0:00";
|
|
15926
|
+
}
|
|
15927
|
+
if (typeof num === "string" && num.indexOf(":") >= 0) {
|
|
15928
|
+
//eslint-disable-next-line
|
|
15929
|
+
var _num$split = num.split(":"),
|
|
15930
|
+
_num$split2 = _slicedToArray(_num$split, 2),
|
|
15931
|
+
_hours = _num$split2[0],
|
|
15932
|
+
_minutes = _num$split2[1];
|
|
15933
|
+
if (_minutes && _minutes.length === 1 && Number(_minutes) < 10) {
|
|
15934
|
+
_minutes = "".concat(Number(_minutes), "0");
|
|
15935
|
+
}
|
|
15936
|
+
if (_hours && _minutes) {
|
|
15937
|
+
if (withLeadingZeroHours) {
|
|
15938
|
+
return "".concat(withLeadingZero(_hours), ":").concat(_minutes);
|
|
15939
|
+
}
|
|
15940
|
+
return "".concat(_hours, ":").concat(_minutes);
|
|
15941
|
+
} else if (!_hours && _minutes) {
|
|
15942
|
+
return withLeadingZeroHours ? "00:".concat(_minutes) : "0:".concat(_minutes);
|
|
15943
|
+
} else if (!_minutes && _hours) {
|
|
15944
|
+
return withLeadingZeroHours ? "".concat(withLeadingZero(_hours), ":00") : "".concat(_hours, ":00");
|
|
15945
|
+
} else {
|
|
15946
|
+
return withLeadingZeroHours ? "00:00" : "0:00";
|
|
15947
|
+
}
|
|
15948
|
+
}
|
|
15949
|
+
if (typeof num === "string" && num.indexOf(",") >= 0) {
|
|
15950
|
+
num = num.replace(",", ".");
|
|
15951
|
+
}
|
|
15952
|
+
var input = typeof num === "string" ? parseFloat(num) : num;
|
|
15953
|
+
if (!isDecimal(input)) {
|
|
15954
|
+
if (withLeadingZeroHours) {
|
|
15955
|
+
return "".concat(withLeadingZero(input), ":00");
|
|
15956
|
+
}
|
|
15957
|
+
return "".concat(input, ":00");
|
|
15958
|
+
}
|
|
15959
|
+
var decimal = input.toFixed(2);
|
|
15960
|
+
var time = decimal.toString().split(".");
|
|
15961
|
+
var hours = time[0];
|
|
15962
|
+
if (withLeadingZeroHours) {
|
|
15963
|
+
hours = withLeadingZero(hours);
|
|
15964
|
+
}
|
|
15965
|
+
var minutes = time[1];
|
|
15966
|
+
var minutes_formatted = Math.round(parseInt(minutes, 10) / 100 * 60);
|
|
15967
|
+
return "".concat(hours, ":").concat(withLeadingZero(minutes_formatted));
|
|
15968
|
+
};
|
|
15969
|
+
var withLeadingZero = function withLeadingZero(num) {
|
|
15970
|
+
var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
15971
|
+
var s = "".concat(num);
|
|
15972
|
+
while (s.length < size) {
|
|
15973
|
+
s = "0" + s;
|
|
15974
|
+
}
|
|
15975
|
+
return s;
|
|
15976
|
+
};
|
|
15977
|
+
var isDecimal = function isDecimal(num) {
|
|
15978
|
+
return !Number.isInteger(num);
|
|
15979
|
+
};
|
|
15980
|
+
|
|
15981
|
+
var _excluded$c = ["value", "onCancel", "onSave", "inputProps", "allowEmptyValue", "withLeadingZero", "validation"];
|
|
15982
|
+
var EditableHours = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
15983
|
+
var _ref$value = _ref.value,
|
|
15984
|
+
value = _ref$value === void 0 ? 0 : _ref$value,
|
|
15985
|
+
onCancel = _ref.onCancel,
|
|
15986
|
+
onSave = _ref.onSave,
|
|
15987
|
+
inputProps = _ref.inputProps,
|
|
15988
|
+
allowEmptyValue = _ref.allowEmptyValue,
|
|
15989
|
+
_ref$withLeadingZero = _ref.withLeadingZero,
|
|
15990
|
+
withLeadingZero = _ref$withLeadingZero === void 0 ? true : _ref$withLeadingZero,
|
|
15991
|
+
_ref$validation = _ref.validation,
|
|
15992
|
+
validation = _ref$validation === void 0 ? function () {
|
|
15993
|
+
return true;
|
|
15994
|
+
} : _ref$validation,
|
|
15995
|
+
rest = _objectWithoutProperties(_ref, _excluded$c);
|
|
15996
|
+
var inputRef = React.useRef(null);
|
|
15997
|
+
var handleRef = useForkRef(ref, inputRef);
|
|
15998
|
+
var _useState = React.useState(function () {
|
|
15999
|
+
if (value !== undefined) {
|
|
16000
|
+
return decimalToHours(value, withLeadingZero);
|
|
16001
|
+
}
|
|
16002
|
+
return "";
|
|
16003
|
+
}),
|
|
16004
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
16005
|
+
currentValue = _useState2[0],
|
|
16006
|
+
setCurrentValue = _useState2[1];
|
|
16007
|
+
var _useState3 = React.useState(function () {
|
|
16008
|
+
if (value !== undefined) {
|
|
16009
|
+
return decimalToHours(value, withLeadingZero);
|
|
16010
|
+
}
|
|
16011
|
+
return "";
|
|
16012
|
+
}),
|
|
16013
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
16014
|
+
prevValue = _useState4[0],
|
|
16015
|
+
setPrevValue = _useState4[1];
|
|
16016
|
+
var escapeRef = React.useRef(false);
|
|
16017
|
+
React.useEffect(function () {
|
|
16018
|
+
var _value;
|
|
16019
|
+
if (value !== undefined) {
|
|
16020
|
+
_value = decimalToHours(value, withLeadingZero);
|
|
16021
|
+
}
|
|
16022
|
+
if (currentValue !== _value) {
|
|
16023
|
+
setCurrentValue(_value);
|
|
16024
|
+
setPrevValue(_value);
|
|
16025
|
+
}
|
|
16026
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
16027
|
+
}, [value]);
|
|
16028
|
+
var handleBlur = React.useCallback(function (e) {
|
|
16029
|
+
if (escapeRef.current) {
|
|
16030
|
+
setCurrentValue(prevValue);
|
|
16031
|
+
escapeRef.current = false;
|
|
16032
|
+
} else {
|
|
16033
|
+
if (e.target.value.trim().length > 0 && prevValue !== e.target.value) {
|
|
16034
|
+
var _value = decimalToHours(e.target.value, withLeadingZero);
|
|
16035
|
+
setPrevValue(_value);
|
|
16036
|
+
setCurrentValue(_value);
|
|
16037
|
+
typeof onSave === "function" && onSave(e);
|
|
16038
|
+
} else {
|
|
16039
|
+
!allowEmptyValue ? setCurrentValue(prevValue) : typeof onSave === "function" && onSave(e);
|
|
16040
|
+
}
|
|
16041
|
+
}
|
|
16042
|
+
}, [allowEmptyValue, onSave, prevValue, withLeadingZero]);
|
|
16043
|
+
var handleIncrementDecrement = React.useCallback(function (increment) {
|
|
16044
|
+
if (inputRef.current) {
|
|
16045
|
+
var selectionStart = inputRef.current.selectionStart;
|
|
16046
|
+
if (selectionStart !== null) {
|
|
16047
|
+
var dotsIndex = currentValue.indexOf(":");
|
|
16048
|
+
var newValue = "";
|
|
16049
|
+
if (selectionStart < dotsIndex) {
|
|
16050
|
+
var hours = parseInt(currentValue.substring(0, dotsIndex), 10);
|
|
16051
|
+
var newHours = increment ? hours + 1 : hours - 1;
|
|
16052
|
+
if (newHours >= 0) {
|
|
16053
|
+
newValue = "".concat(newHours < 10 ? "0" : "").concat(newHours, ":").concat(currentValue.substring(dotsIndex + 1));
|
|
16054
|
+
}
|
|
16055
|
+
} else if (selectionStart > dotsIndex) {
|
|
16056
|
+
var minutes = parseInt(currentValue.substring(dotsIndex + 1), 10);
|
|
16057
|
+
var newMinutes = increment ? minutes + 1 : minutes - 1;
|
|
16058
|
+
if (newMinutes >= 0 && newMinutes < 60) {
|
|
16059
|
+
newValue = "".concat(currentValue.substring(0, dotsIndex + 1)).concat(newMinutes < 10 ? "0" : "").concat(newMinutes);
|
|
16060
|
+
}
|
|
16061
|
+
}
|
|
16062
|
+
if (newValue && validation(newValue)) {
|
|
16063
|
+
setCurrentValue(newValue);
|
|
16064
|
+
if (onSave) {
|
|
16065
|
+
onSave(new Event("input", {
|
|
16066
|
+
bubbles: true,
|
|
16067
|
+
cancelable: true
|
|
16068
|
+
}));
|
|
16069
|
+
}
|
|
16070
|
+
requestAnimationFrame(function () {
|
|
16071
|
+
var _inputRef$current;
|
|
16072
|
+
var newDotsIndex = newValue.indexOf(":");
|
|
16073
|
+
var isHoursSelected = selectionStart < newDotsIndex;
|
|
16074
|
+
var newSelectionStart = isHoursSelected ? 0 : newDotsIndex + 1;
|
|
16075
|
+
var selectionEnd = isHoursSelected ? newDotsIndex : newValue.length;
|
|
16076
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.setSelectionRange(newSelectionStart, selectionEnd);
|
|
16077
|
+
});
|
|
16078
|
+
}
|
|
16079
|
+
}
|
|
16080
|
+
}
|
|
16081
|
+
}, [currentValue, inputRef, onSave, validation]);
|
|
16082
|
+
var handleKeyDown = React.useCallback(function (e) {
|
|
16083
|
+
if (e.key === "Enter") {
|
|
16084
|
+
e.target.blur();
|
|
16085
|
+
}
|
|
16086
|
+
if (e.key === "Escape") {
|
|
16087
|
+
escapeRef.current = true;
|
|
16088
|
+
e.target.blur();
|
|
16089
|
+
typeof onCancel === "function" && onCancel();
|
|
16090
|
+
}
|
|
16091
|
+
if (e.key === "Backspace") {
|
|
16092
|
+
return;
|
|
16093
|
+
}
|
|
16094
|
+
var input = e.target;
|
|
16095
|
+
var start = input.selectionStart;
|
|
16096
|
+
var end = input.selectionEnd;
|
|
16097
|
+
var currentValue = input.value;
|
|
16098
|
+
if (e.key === "Tab") {
|
|
16099
|
+
if (start !== end) {
|
|
16100
|
+
if (e.shiftKey) {
|
|
16101
|
+
var newDotsIndex = currentValue.indexOf(":");
|
|
16102
|
+
var isMinutesSelected = start > newDotsIndex;
|
|
16103
|
+
if (isMinutesSelected) {
|
|
16104
|
+
var _inputRef$current2;
|
|
16105
|
+
e.preventDefault();
|
|
16106
|
+
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.setSelectionRange(0, newDotsIndex);
|
|
16107
|
+
}
|
|
16108
|
+
} else {
|
|
16109
|
+
var _newDotsIndex = currentValue.indexOf(":");
|
|
16110
|
+
var isHoursSelected = start < _newDotsIndex;
|
|
16111
|
+
if (isHoursSelected) {
|
|
16112
|
+
var _inputRef$current3;
|
|
16113
|
+
e.preventDefault();
|
|
16114
|
+
(_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 ? void 0 : _inputRef$current3.setSelectionRange(_newDotsIndex + 1, currentValue.length);
|
|
16115
|
+
}
|
|
16116
|
+
}
|
|
16117
|
+
}
|
|
16118
|
+
return;
|
|
16119
|
+
}
|
|
16120
|
+
if (start !== end) {
|
|
16121
|
+
if (e.key === "ArrowUp") {
|
|
16122
|
+
handleIncrementDecrement(true);
|
|
16123
|
+
return;
|
|
16124
|
+
}
|
|
16125
|
+
if (e.key === "ArrowDown") {
|
|
16126
|
+
handleIncrementDecrement(false);
|
|
16127
|
+
return;
|
|
16128
|
+
}
|
|
16129
|
+
var newValue = currentValue.substring(0, start) + e.key + currentValue.substring(end);
|
|
16130
|
+
if (!validation(newValue)) {
|
|
16131
|
+
e.preventDefault();
|
|
16132
|
+
return;
|
|
16133
|
+
}
|
|
16134
|
+
} else {
|
|
16135
|
+
var _newValue = currentValue.substring(0, start) + e.key + currentValue.substring(end);
|
|
16136
|
+
if (!validation(_newValue)) {
|
|
16137
|
+
e.preventDefault();
|
|
16138
|
+
return;
|
|
16139
|
+
}
|
|
16140
|
+
}
|
|
16141
|
+
}, [handleIncrementDecrement, onCancel, validation]);
|
|
16142
|
+
var handleChange = React.useCallback(function (e) {
|
|
16143
|
+
setCurrentValue(e.target.value);
|
|
16144
|
+
}, []);
|
|
16145
|
+
var handleClick = function handleClick() {
|
|
16146
|
+
var _inputRef$current4;
|
|
16147
|
+
var selectionStart = (_inputRef$current4 = inputRef.current) === null || _inputRef$current4 === void 0 ? void 0 : _inputRef$current4.selectionStart;
|
|
16148
|
+
if (inputRef.current && currentValue && currentValue.length > 0 && typeof selectionStart === "number") {
|
|
16149
|
+
var dotsIndex = currentValue.indexOf(":");
|
|
16150
|
+
if (selectionStart < dotsIndex) {
|
|
16151
|
+
var _inputRef$current5;
|
|
16152
|
+
(_inputRef$current5 = inputRef.current) === null || _inputRef$current5 === void 0 ? void 0 : _inputRef$current5.setSelectionRange(0, dotsIndex);
|
|
16153
|
+
} else if (selectionStart >= dotsIndex) {
|
|
16154
|
+
var _inputRef$current6;
|
|
16155
|
+
(_inputRef$current6 = inputRef.current) === null || _inputRef$current6 === void 0 ? void 0 : _inputRef$current6.setSelectionRange(dotsIndex + 1, currentValue.length);
|
|
16156
|
+
}
|
|
16157
|
+
}
|
|
16158
|
+
};
|
|
16159
|
+
return /*#__PURE__*/React__default["default"].createElement(EditableContent, _extends({
|
|
16160
|
+
ref: handleRef,
|
|
16161
|
+
inputProps: _objectSpread2(_objectSpread2({}, inputProps), {}, {
|
|
16162
|
+
value: currentValue,
|
|
16163
|
+
onBlur: handleBlur,
|
|
16164
|
+
onKeyDown: handleKeyDown,
|
|
16165
|
+
onChange: handleChange,
|
|
16166
|
+
type: "text",
|
|
16167
|
+
onClick: handleClick,
|
|
16168
|
+
className: classNames__default["default"]("c-input", inputProps === null || inputProps === void 0 ? void 0 : inputProps.className)
|
|
16169
|
+
})
|
|
16170
|
+
}, rest));
|
|
16171
|
+
});
|
|
16172
|
+
EditableHours.displayName = "EditableHours";
|
|
16173
|
+
|
|
15884
16174
|
var _excluded$b = ["withDocuments"];
|
|
15885
16175
|
var FolderIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, svgRef) {
|
|
15886
16176
|
var _ref$withDocuments = _ref.withDocuments,
|
|
@@ -17464,6 +17754,7 @@
|
|
|
17464
17754
|
exports.EditIcon = EditIcon$1;
|
|
17465
17755
|
exports.EditMultipleIcon = EditMultipleIcon$1;
|
|
17466
17756
|
exports.EditableContent = EditableContent;
|
|
17757
|
+
exports.EditableHours = EditableHours;
|
|
17467
17758
|
exports.EditableText = EditableText;
|
|
17468
17759
|
exports.EmojiIcon = EmojiIcon$1;
|
|
17469
17760
|
exports.EmptySlate = EmptySlate;
|
|
@@ -17667,6 +17958,8 @@
|
|
|
17667
17958
|
exports.useMenuContext = useMenuContext;
|
|
17668
17959
|
exports.useResizeObserver = useResizeObserver$1;
|
|
17669
17960
|
exports.useWizardContext = useWizardContext;
|
|
17961
|
+
exports.validateStopwatchTime = validateStopwatchTime;
|
|
17962
|
+
exports.validateTimeInput = validateTimeInput;
|
|
17670
17963
|
|
|
17671
17964
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
17672
17965
|
|