@activecollab/components 2.0.127 → 2.0.128
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/SelectTime/SelectTime.js +62 -0
- package/dist/cjs/components/SelectTime/SelectTime.js.map +1 -0
- package/dist/cjs/components/SelectTime/index.js +17 -0
- package/dist/cjs/components/SelectTime/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/timeUtils.js +4 -1
- package/dist/cjs/utils/timeUtils.js.map +1 -1
- package/dist/esm/components/SelectTime/SelectTime.d.ts +19 -0
- package/dist/esm/components/SelectTime/SelectTime.d.ts.map +1 -0
- package/dist/esm/components/SelectTime/SelectTime.js +54 -0
- package/dist/esm/components/SelectTime/SelectTime.js.map +1 -0
- package/dist/esm/components/SelectTime/index.d.ts +2 -0
- package/dist/esm/components/SelectTime/index.d.ts.map +1 -0
- package/dist/esm/components/SelectTime/index.js +2 -0
- package/dist/esm/components/SelectTime/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/timeUtils.d.ts +1 -0
- package/dist/esm/utils/timeUtils.d.ts.map +1 -1
- package/dist/esm/utils/timeUtils.js +3 -0
- package/dist/esm/utils/timeUtils.js.map +1 -1
- package/dist/index.js +199 -148
- 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
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
})(["display:inline-flex;svg{margin:0 4px;}"]);
|
|
200
200
|
StyledButtonElement.displayName = "StyledButtonElement";
|
|
201
201
|
|
|
202
|
-
var _excluded$
|
|
202
|
+
var _excluded$1x = ["children", "active", "variant", "size", "className"];
|
|
203
203
|
/**
|
|
204
204
|
* @component Button
|
|
205
205
|
* @description
|
|
@@ -229,7 +229,7 @@
|
|
|
229
229
|
_ref$size = _ref.size,
|
|
230
230
|
size = _ref$size === void 0 ? "medium" : _ref$size,
|
|
231
231
|
className = _ref.className,
|
|
232
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
232
|
+
args = _objectWithoutProperties(_ref, _excluded$1x);
|
|
233
233
|
return /*#__PURE__*/React__default["default"].createElement(StyledButton$2, _extends({
|
|
234
234
|
className: classNames__default["default"]("c-btn", className, {
|
|
235
235
|
"c-btn--contained": variant === "primary" || variant === "contained",
|
|
@@ -303,12 +303,12 @@
|
|
|
303
303
|
AddCrossTinyIcon.displayName = "AddCrossTinyIcon";
|
|
304
304
|
var AddCrossTinyIcon$1 = AddCrossTinyIcon;
|
|
305
305
|
|
|
306
|
-
var _excluded$
|
|
306
|
+
var _excluded$1w = ["className", "disabled"];
|
|
307
307
|
var GlobalAddButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
308
308
|
var className = _ref.className,
|
|
309
309
|
_ref$disabled = _ref.disabled,
|
|
310
310
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
311
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
311
|
+
rest = _objectWithoutProperties(_ref, _excluded$1w);
|
|
312
312
|
return /*#__PURE__*/React__default["default"].createElement(StyledGlobalAddButton, _extends({
|
|
313
313
|
ref: ref,
|
|
314
314
|
variant: "contained",
|
|
@@ -340,11 +340,11 @@
|
|
|
340
340
|
});
|
|
341
341
|
StyledButtonGroup$1.displayName = "StyledButtonGroup";
|
|
342
342
|
|
|
343
|
-
var _excluded$
|
|
343
|
+
var _excluded$1v = ["children", "className"];
|
|
344
344
|
var ButtonGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
345
345
|
var children = _ref.children,
|
|
346
346
|
className = _ref.className,
|
|
347
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
347
|
+
rest = _objectWithoutProperties(_ref, _excluded$1v);
|
|
348
348
|
return /*#__PURE__*/React__default["default"].createElement(StyledButtonGroup$1, _extends({
|
|
349
349
|
ref: ref,
|
|
350
350
|
className: classNames__default["default"]("c-btn-group", className)
|
|
@@ -368,11 +368,11 @@
|
|
|
368
368
|
})(["border-top:1px solid var(--border-primary);margin:12px 16px;height:1px;"]);
|
|
369
369
|
StyledListSeparator.displayName = "StyledListSeparator";
|
|
370
370
|
|
|
371
|
-
var _excluded$
|
|
371
|
+
var _excluded$1u = ["children", "className"];
|
|
372
372
|
var ListItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
373
373
|
var children = _ref.children,
|
|
374
374
|
className = _ref.className,
|
|
375
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
375
|
+
props = _objectWithoutProperties(_ref, _excluded$1u);
|
|
376
376
|
return /*#__PURE__*/React__default["default"].createElement(StyledListItem, _extends({
|
|
377
377
|
className: classNames__default["default"]("c-list-item", className),
|
|
378
378
|
ref: ref,
|
|
@@ -381,21 +381,21 @@
|
|
|
381
381
|
});
|
|
382
382
|
ListItem.displayName = "ListItem";
|
|
383
383
|
|
|
384
|
-
var _excluded$
|
|
384
|
+
var _excluded$1t = ["className"];
|
|
385
385
|
var ListSeparator = function ListSeparator(_ref) {
|
|
386
386
|
var className = _ref.className,
|
|
387
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
387
|
+
props = _objectWithoutProperties(_ref, _excluded$1t);
|
|
388
388
|
return /*#__PURE__*/React__default["default"].createElement(StyledListSeparator, _extends({
|
|
389
389
|
className: classNames__default["default"]("c-list-separator", className)
|
|
390
390
|
}, props));
|
|
391
391
|
};
|
|
392
392
|
ListSeparator.displayName = "ListSeparator";
|
|
393
393
|
|
|
394
|
-
var _excluded$
|
|
394
|
+
var _excluded$1s = ["children", "className"];
|
|
395
395
|
var _List = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
396
396
|
var children = _ref.children,
|
|
397
397
|
className = _ref.className,
|
|
398
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
398
|
+
props = _objectWithoutProperties(_ref, _excluded$1s);
|
|
399
399
|
return /*#__PURE__*/React__default["default"].createElement(StyledList, _extends({
|
|
400
400
|
className: className,
|
|
401
401
|
ref: ref,
|
|
@@ -842,6 +842,9 @@
|
|
|
842
842
|
var isDecimal = function isDecimal(num) {
|
|
843
843
|
return !Number.isInteger(num);
|
|
844
844
|
};
|
|
845
|
+
var isValidTime = function isValidTime(time) {
|
|
846
|
+
return time === undefined || /^([01]\d|2[0-3]):([0-5]\d)$/.test(time);
|
|
847
|
+
};
|
|
845
848
|
|
|
846
849
|
var StyledIconButton = styled__default["default"](Button).withConfig({
|
|
847
850
|
displayName: "Styles__StyledIconButton",
|
|
@@ -854,7 +857,7 @@
|
|
|
854
857
|
return size === "big" && styled.css(["width:40px;"]);
|
|
855
858
|
});
|
|
856
859
|
|
|
857
|
-
var _excluded$
|
|
860
|
+
var _excluded$1r = ["children", "className", "variant", "size", "active"];
|
|
858
861
|
|
|
859
862
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
860
863
|
|
|
@@ -884,7 +887,7 @@
|
|
|
884
887
|
variant = _ref.variant,
|
|
885
888
|
size = _ref.size,
|
|
886
889
|
active = _ref.active,
|
|
887
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
890
|
+
args = _objectWithoutProperties(_ref, _excluded$1r);
|
|
888
891
|
return /*#__PURE__*/React__default["default"].createElement(StyledIconButton, _extends({
|
|
889
892
|
className: className,
|
|
890
893
|
variant: variant,
|
|
@@ -7932,7 +7935,7 @@
|
|
|
7932
7935
|
}, FontStyle, BoxSizingStyle);
|
|
7933
7936
|
StyledBubble.displayName = "StyledBubble";
|
|
7934
7937
|
|
|
7935
|
-
var _excluded$
|
|
7938
|
+
var _excluded$1q = ["children", "className", "innerRef", "style"];
|
|
7936
7939
|
var Bubble = function Bubble(_ref) {
|
|
7937
7940
|
var children = _ref.children,
|
|
7938
7941
|
className = _ref.className,
|
|
@@ -7940,7 +7943,7 @@
|
|
|
7940
7943
|
innerRef = _ref$innerRef === void 0 ? null : _ref$innerRef,
|
|
7941
7944
|
_ref$style = _ref.style,
|
|
7942
7945
|
style = _ref$style === void 0 ? {} : _ref$style,
|
|
7943
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
7946
|
+
rest = _objectWithoutProperties(_ref, _excluded$1q);
|
|
7944
7947
|
return /*#__PURE__*/React__default["default"].createElement(StyledBubble, _extends({}, rest, {
|
|
7945
7948
|
ref: innerRef,
|
|
7946
7949
|
className: classNames__default["default"]("c-bubble", className),
|
|
@@ -8001,12 +8004,12 @@
|
|
|
8001
8004
|
});
|
|
8002
8005
|
StyledOverlay.displayName = "StyledOverlay";
|
|
8003
8006
|
|
|
8004
|
-
var _excluded$
|
|
8007
|
+
var _excluded$1p = ["className", "disableBackgroundColor"];
|
|
8005
8008
|
var Overlay = function Overlay(_ref) {
|
|
8006
8009
|
var className = _ref.className,
|
|
8007
8010
|
_ref$disableBackgroun = _ref.disableBackgroundColor,
|
|
8008
8011
|
disableBackgroundColor = _ref$disableBackgroun === void 0 ? false : _ref$disableBackgroun,
|
|
8009
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
8012
|
+
rest = _objectWithoutProperties(_ref, _excluded$1p);
|
|
8010
8013
|
return /*#__PURE__*/React__default["default"].createElement(StyledOverlay, _extends({
|
|
8011
8014
|
className: classNames__default["default"]("c-overlay", className),
|
|
8012
8015
|
$disableBackgroundColor: disableBackgroundColor
|
|
@@ -8019,7 +8022,7 @@
|
|
|
8019
8022
|
componentId: "sc-1hgjasy-0"
|
|
8020
8023
|
})(["&[data-popper-reference-hidden]{display:none !important;pointer-events:none !important;}"]);
|
|
8021
8024
|
|
|
8022
|
-
var _excluded$
|
|
8025
|
+
var _excluded$1o = ["children", "anchorEl", "open", "style", "transition", "placement", "strategy", "afterWrite"];
|
|
8023
8026
|
var Popper = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
8024
8027
|
var children = _ref.children,
|
|
8025
8028
|
anchorEl = _ref.anchorEl,
|
|
@@ -8033,7 +8036,7 @@
|
|
|
8033
8036
|
_ref$strategy = _ref.strategy,
|
|
8034
8037
|
strategy = _ref$strategy === void 0 ? "absolute" : _ref$strategy,
|
|
8035
8038
|
afterWrite = _ref.afterWrite,
|
|
8036
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
8039
|
+
rest = _objectWithoutProperties(_ref, _excluded$1o);
|
|
8037
8040
|
var _useState = React.useState(true),
|
|
8038
8041
|
_useState2 = _slicedToArray(_useState, 2),
|
|
8039
8042
|
exited = _useState2[0],
|
|
@@ -8180,7 +8183,7 @@
|
|
|
8180
8183
|
};
|
|
8181
8184
|
var LayerContext$1 = LayerContext;
|
|
8182
8185
|
|
|
8183
|
-
var _excluded$
|
|
8186
|
+
var _excluded$1n = ["children", "onClose", "className", "style", "onKeyDown", "disableFocusLock", "disableScrollLock", "disableCloseOnEsc", "onClick"];
|
|
8184
8187
|
var returnFocus = {
|
|
8185
8188
|
preventScroll: true
|
|
8186
8189
|
};
|
|
@@ -8197,7 +8200,7 @@
|
|
|
8197
8200
|
_ref$disableCloseOnEs = _ref.disableCloseOnEsc,
|
|
8198
8201
|
disableCloseOnEsc = _ref$disableCloseOnEs === void 0 ? false : _ref$disableCloseOnEs,
|
|
8199
8202
|
onClick = _ref.onClick,
|
|
8200
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
8203
|
+
rest = _objectWithoutProperties(_ref, _excluded$1n);
|
|
8201
8204
|
var innerRef = React.useRef(null);
|
|
8202
8205
|
var handleRef = useForkRef(innerRef, ref);
|
|
8203
8206
|
var _useLayerContext = useLayerContext(),
|
|
@@ -8508,7 +8511,7 @@
|
|
|
8508
8511
|
});
|
|
8509
8512
|
StyledTypography.displayName = "StyledTypography";
|
|
8510
8513
|
|
|
8511
|
-
var _excluded$
|
|
8514
|
+
var _excluded$1m = ["variant", "as", "color", "italic", "tabularNums", "letterSpacing", "lineHeight", "align", "decoration", "transform", "overflow", "whitespace", "wordBreak", "weight", "className", "children"];
|
|
8512
8515
|
var Typography = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
8513
8516
|
var _ref$variant = _ref.variant,
|
|
8514
8517
|
variant = _ref$variant === void 0 ? "Title 1" : _ref$variant,
|
|
@@ -8539,7 +8542,7 @@
|
|
|
8539
8542
|
weight = _ref$weight === void 0 ? "regular" : _ref$weight,
|
|
8540
8543
|
className = _ref.className,
|
|
8541
8544
|
children = _ref.children,
|
|
8542
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8545
|
+
props = _objectWithoutProperties(_ref, _excluded$1m);
|
|
8543
8546
|
var Component = as || "div";
|
|
8544
8547
|
return /*#__PURE__*/React__default["default"].createElement(StyledTypography, _extends({
|
|
8545
8548
|
as: Component,
|
|
@@ -8562,13 +8565,13 @@
|
|
|
8562
8565
|
});
|
|
8563
8566
|
Typography.displayName = "Typography";
|
|
8564
8567
|
|
|
8565
|
-
var _excluded$
|
|
8568
|
+
var _excluded$1l = ["title", "className", "leftElement", "rightElement"];
|
|
8566
8569
|
var MenuHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
8567
8570
|
var title = _ref.title,
|
|
8568
8571
|
className = _ref.className,
|
|
8569
8572
|
leftElement = _ref.leftElement,
|
|
8570
8573
|
rightElement = _ref.rightElement,
|
|
8571
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8574
|
+
props = _objectWithoutProperties(_ref, _excluded$1l);
|
|
8572
8575
|
return /*#__PURE__*/React__default["default"].createElement(StyledMenuHeader, _extends({}, props, {
|
|
8573
8576
|
className: classNames__default["default"]("c-menu-header", className),
|
|
8574
8577
|
ref: ref
|
|
@@ -8593,11 +8596,11 @@
|
|
|
8593
8596
|
});
|
|
8594
8597
|
MenuHeader.displayName = "MenuHeader";
|
|
8595
8598
|
|
|
8596
|
-
var _excluded$
|
|
8599
|
+
var _excluded$1k = ["children", "className"];
|
|
8597
8600
|
var MenuFooter = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
8598
8601
|
var children = _ref.children,
|
|
8599
8602
|
className = _ref.className,
|
|
8600
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8603
|
+
props = _objectWithoutProperties(_ref, _excluded$1k);
|
|
8601
8604
|
return /*#__PURE__*/React__default["default"].createElement(StyledMenuFooter$1, _extends({}, props, {
|
|
8602
8605
|
className: classNames__default["default"]("c-menu-footer", className),
|
|
8603
8606
|
ref: ref
|
|
@@ -8605,14 +8608,14 @@
|
|
|
8605
8608
|
});
|
|
8606
8609
|
MenuFooter.displayName = "MenuFooter";
|
|
8607
8610
|
|
|
8608
|
-
var _excluded$
|
|
8611
|
+
var _excluded$1j = ["children", "className", "separator"];
|
|
8609
8612
|
var Breadcrumbs = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
8610
8613
|
var _dimensions$width, _childDimensions$widt;
|
|
8611
8614
|
var children = _ref.children,
|
|
8612
8615
|
className = _ref.className,
|
|
8613
8616
|
_ref$separator = _ref.separator,
|
|
8614
8617
|
separator = _ref$separator === void 0 ? "/" : _ref$separator,
|
|
8615
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
8618
|
+
rest = _objectWithoutProperties(_ref, _excluded$1j);
|
|
8616
8619
|
var internalRef = React.useRef(null);
|
|
8617
8620
|
var listWrapperRef = React.useRef(null);
|
|
8618
8621
|
var olRef = React.useRef(null);
|
|
@@ -8790,12 +8793,12 @@
|
|
|
8790
8793
|
}, value && value > 100 ? 99 + "+" : value);
|
|
8791
8794
|
};
|
|
8792
8795
|
|
|
8793
|
-
var _excluded$
|
|
8796
|
+
var _excluded$1i = ["weight", "children"];
|
|
8794
8797
|
var Body2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
8795
8798
|
var _ref$weight = _ref.weight,
|
|
8796
8799
|
weight = _ref$weight === void 0 ? "regular" : _ref$weight,
|
|
8797
8800
|
children = _ref.children,
|
|
8798
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8801
|
+
props = _objectWithoutProperties(_ref, _excluded$1i);
|
|
8799
8802
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
8800
8803
|
variant: "Body 2",
|
|
8801
8804
|
weight: weight,
|
|
@@ -8903,10 +8906,10 @@
|
|
|
8903
8906
|
};
|
|
8904
8907
|
FromElement.displayName = "FromElement";
|
|
8905
8908
|
|
|
8906
|
-
var _excluded$
|
|
8909
|
+
var _excluded$1h = ["children"];
|
|
8907
8910
|
var TooltipAnimation = function TooltipAnimation(_ref) {
|
|
8908
8911
|
var children = _ref.children,
|
|
8909
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8912
|
+
props = _objectWithoutProperties(_ref, _excluded$1h);
|
|
8910
8913
|
return /*#__PURE__*/React__default["default"].createElement(FromElement, _extends({
|
|
8911
8914
|
timeout: 0
|
|
8912
8915
|
}, props), children);
|
|
@@ -8981,7 +8984,7 @@
|
|
|
8981
8984
|
});
|
|
8982
8985
|
Tooltip.displayName = "Tooltip";
|
|
8983
8986
|
|
|
8984
|
-
var _excluded$
|
|
8987
|
+
var _excluded$1g = ["label", "icon", "active", "counter", "tooltipText", "onClearAll", "className", "labelClassName", "disabled"];
|
|
8985
8988
|
var CounterButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
8986
8989
|
var label = _ref.label,
|
|
8987
8990
|
icon = _ref.icon,
|
|
@@ -8994,7 +8997,7 @@
|
|
|
8994
8997
|
labelClassName = _ref.labelClassName,
|
|
8995
8998
|
_ref$disabled = _ref.disabled,
|
|
8996
8999
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
8997
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
9000
|
+
args = _objectWithoutProperties(_ref, _excluded$1g);
|
|
8998
9001
|
return /*#__PURE__*/React__default["default"].createElement(StyledCounterButtonWrapper, {
|
|
8999
9002
|
ref: ref,
|
|
9000
9003
|
className: className
|
|
@@ -9389,7 +9392,7 @@
|
|
|
9389
9392
|
};
|
|
9390
9393
|
YearMonthPicker.displayName = "YearMonthPicker";
|
|
9391
9394
|
|
|
9392
|
-
var _excluded$
|
|
9395
|
+
var _excluded$1f = ["className", "onChange", "onDayClick", "selectedDays", "disabledDays", "selectionMode", "month", "onMonthChange", "dateRequired", "firstDayOfWeek", "fixedWeeks", "modifiers", "renderDay"];
|
|
9393
9396
|
var formatWeekdayName = function formatWeekdayName(str) {
|
|
9394
9397
|
return moment__default["default"](str).format("ddd").charAt(0);
|
|
9395
9398
|
};
|
|
@@ -9415,7 +9418,7 @@
|
|
|
9415
9418
|
fixedWeeks = _ref$fixedWeeks === void 0 ? true : _ref$fixedWeeks,
|
|
9416
9419
|
defaultModifiers = _ref.modifiers,
|
|
9417
9420
|
renderDay = _ref.renderDay,
|
|
9418
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
9421
|
+
rest = _objectWithoutProperties(_ref, _excluded$1f);
|
|
9419
9422
|
var _useState = React.useState(),
|
|
9420
9423
|
_useState2 = _slicedToArray(_useState, 2),
|
|
9421
9424
|
enteredTo = _useState2[0],
|
|
@@ -10247,10 +10250,10 @@
|
|
|
10247
10250
|
componentId: "sc-1n0a2yl-0"
|
|
10248
10251
|
})(["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);
|
|
10249
10252
|
|
|
10250
|
-
var _excluded$
|
|
10253
|
+
var _excluded$1e = ["className"];
|
|
10251
10254
|
var SkeletonLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
10252
10255
|
var className = _ref.className,
|
|
10253
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10256
|
+
rest = _objectWithoutProperties(_ref, _excluded$1e);
|
|
10254
10257
|
return /*#__PURE__*/React__default["default"].createElement(StyledSkeletonLoader, _extends({
|
|
10255
10258
|
ref: ref,
|
|
10256
10259
|
className: classNames__default["default"]("c-loader c-loader--linear", className)
|
|
@@ -10264,10 +10267,10 @@
|
|
|
10264
10267
|
componentId: "sc-1f35d5h-0"
|
|
10265
10268
|
})(["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);
|
|
10266
10269
|
|
|
10267
|
-
var _excluded$
|
|
10270
|
+
var _excluded$1d = ["className"];
|
|
10268
10271
|
var DotsLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
10269
10272
|
var className = _ref.className,
|
|
10270
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10273
|
+
rest = _objectWithoutProperties(_ref, _excluded$1d);
|
|
10271
10274
|
return /*#__PURE__*/React__default["default"].createElement(StyledDotsLoader, _extends({
|
|
10272
10275
|
ref: ref,
|
|
10273
10276
|
className: classNames__default["default"]("c-loader c-loader--dots", className)
|
|
@@ -10289,7 +10292,7 @@
|
|
|
10289
10292
|
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);
|
|
10290
10293
|
});
|
|
10291
10294
|
|
|
10292
|
-
var _excluded$
|
|
10295
|
+
var _excluded$1c = ["radius", "stroke", "activeStrokeColor", "inactiveStrokeColor", "activeColorPercentage", "rotateDurationInSeconds", "className"];
|
|
10293
10296
|
var SpinnerLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
10294
10297
|
var _ref$radius = _ref.radius,
|
|
10295
10298
|
radius = _ref$radius === void 0 ? 10 : _ref$radius,
|
|
@@ -10304,7 +10307,7 @@
|
|
|
10304
10307
|
_ref$rotateDurationIn = _ref.rotateDurationInSeconds,
|
|
10305
10308
|
rotateDurationInSeconds = _ref$rotateDurationIn === void 0 ? 0.75 : _ref$rotateDurationIn,
|
|
10306
10309
|
className = _ref.className,
|
|
10307
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10310
|
+
rest = _objectWithoutProperties(_ref, _excluded$1c);
|
|
10308
10311
|
return /*#__PURE__*/React__default["default"].createElement(StyledSpinnerLoader$1, _extends({
|
|
10309
10312
|
ref: ref,
|
|
10310
10313
|
className: className,
|
|
@@ -10343,7 +10346,7 @@
|
|
|
10343
10346
|
});
|
|
10344
10347
|
StyledLinearLoader.displayName = "StyledLinearLoader";
|
|
10345
10348
|
|
|
10346
|
-
var _excluded$
|
|
10349
|
+
var _excluded$1b = ["height", "activeStrokeColor", "inactiveStrokeColor", "activeColorPercentage", "animationDuration"];
|
|
10347
10350
|
var LinearLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
10348
10351
|
var _ref$height = _ref.height,
|
|
10349
10352
|
height = _ref$height === void 0 ? 4 : _ref$height,
|
|
@@ -10355,7 +10358,7 @@
|
|
|
10355
10358
|
activeColorPercentage = _ref$activeColorPerce === void 0 ? "25%" : _ref$activeColorPerce,
|
|
10356
10359
|
_ref$animationDuratio = _ref.animationDuration,
|
|
10357
10360
|
animationDuration = _ref$animationDuratio === void 0 ? 0.75 : _ref$animationDuratio,
|
|
10358
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10361
|
+
rest = _objectWithoutProperties(_ref, _excluded$1b);
|
|
10359
10362
|
return /*#__PURE__*/React__default["default"].createElement(StyledLinearLoader, _extends({
|
|
10360
10363
|
ref: ref,
|
|
10361
10364
|
$height: height,
|
|
@@ -10367,7 +10370,7 @@
|
|
|
10367
10370
|
});
|
|
10368
10371
|
LinearLoader.displayName = "LinearLoader";
|
|
10369
10372
|
|
|
10370
|
-
var _excluded$
|
|
10373
|
+
var _excluded$1a = ["header", "rows", "className", "sortBy", "sortDirection", "onSortCallback", "theadClass", "noResultsCallback", "groupBy", "groupHead", "isCollapsible", "emptyValue", "loading", "loadingRows"];
|
|
10371
10374
|
var SortDirection = /*#__PURE__*/function (SortDirection) {
|
|
10372
10375
|
SortDirection["None"] = "none";
|
|
10373
10376
|
SortDirection["Asc"] = "asc";
|
|
@@ -10417,7 +10420,7 @@
|
|
|
10417
10420
|
loading = _ref.loading,
|
|
10418
10421
|
_ref$loadingRows = _ref.loadingRows,
|
|
10419
10422
|
loadingRows = _ref$loadingRows === void 0 ? 7 : _ref$loadingRows,
|
|
10420
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
10423
|
+
args = _objectWithoutProperties(_ref, _excluded$1a);
|
|
10421
10424
|
var _useState = React.useState(sortDirection),
|
|
10422
10425
|
_useState2 = _slicedToArray(_useState, 2),
|
|
10423
10426
|
columnDirection = _useState2[0],
|
|
@@ -10777,7 +10780,7 @@
|
|
|
10777
10780
|
});
|
|
10778
10781
|
StyledCompleteCheckbox.displayName = "StyledCompleteCheckbox";
|
|
10779
10782
|
|
|
10780
|
-
var _excluded$
|
|
10783
|
+
var _excluded$19 = ["completed", "disabled", "animate", "onClick", "className", "primary", "checkMarkClassName"];
|
|
10781
10784
|
var CompleteCheckbox = function CompleteCheckbox(_ref) {
|
|
10782
10785
|
var _ref$completed = _ref.completed,
|
|
10783
10786
|
completed = _ref$completed === void 0 ? false : _ref$completed,
|
|
@@ -10790,7 +10793,7 @@
|
|
|
10790
10793
|
_ref$primary = _ref.primary,
|
|
10791
10794
|
primary = _ref$primary === void 0 ? false : _ref$primary,
|
|
10792
10795
|
checkMarkClassName = _ref.checkMarkClassName,
|
|
10793
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10796
|
+
rest = _objectWithoutProperties(_ref, _excluded$19);
|
|
10794
10797
|
return /*#__PURE__*/React__default["default"].createElement(StyledCompleteCheckbox, _extends({
|
|
10795
10798
|
onClick: onClick,
|
|
10796
10799
|
className: classNames__default["default"]("c-complete-checkbox", className),
|
|
@@ -10825,7 +10828,7 @@
|
|
|
10825
10828
|
});
|
|
10826
10829
|
StyledPaper.displayName = "StyledPaper";
|
|
10827
10830
|
|
|
10828
|
-
var _excluded$
|
|
10831
|
+
var _excluded$18 = ["children", "className", "type", "hover", "useOptimizedShadow"];
|
|
10829
10832
|
/**
|
|
10830
10833
|
* This is a component description and should sit directly above your component
|
|
10831
10834
|
*/
|
|
@@ -10838,7 +10841,7 @@
|
|
|
10838
10841
|
hover = _ref$hover === void 0 ? false : _ref$hover,
|
|
10839
10842
|
_ref$useOptimizedShad = _ref.useOptimizedShadow,
|
|
10840
10843
|
useOptimizedShadow = _ref$useOptimizedShad === void 0 ? false : _ref$useOptimizedShad,
|
|
10841
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10844
|
+
rest = _objectWithoutProperties(_ref, _excluded$18);
|
|
10842
10845
|
return /*#__PURE__*/React__default["default"].createElement(StyledPaper, _extends({
|
|
10843
10846
|
className: classNames__default["default"](className, {
|
|
10844
10847
|
"ac-shadow--raised--lg": !useOptimizedShadow && hover && type === "paper-1",
|
|
@@ -10894,7 +10897,7 @@
|
|
|
10894
10897
|
});
|
|
10895
10898
|
StyledCard.displayName = "StyledCard";
|
|
10896
10899
|
|
|
10897
|
-
var _excluded$
|
|
10900
|
+
var _excluded$17 = ["children", "className", "hoverable", "variant", "onClick"];
|
|
10898
10901
|
var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
10899
10902
|
var children = _ref.children,
|
|
10900
10903
|
className = _ref.className,
|
|
@@ -10903,7 +10906,7 @@
|
|
|
10903
10906
|
_ref$variant = _ref.variant,
|
|
10904
10907
|
variant = _ref$variant === void 0 ? "paper-2" : _ref$variant,
|
|
10905
10908
|
onClick = _ref.onClick,
|
|
10906
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10909
|
+
rest = _objectWithoutProperties(_ref, _excluded$17);
|
|
10907
10910
|
return /*#__PURE__*/React__default["default"].createElement(StyledCard, _extends({}, rest, {
|
|
10908
10911
|
type: variant,
|
|
10909
10912
|
className: classNames__default["default"]("c-card", className),
|
|
@@ -11012,12 +11015,12 @@
|
|
|
11012
11015
|
});
|
|
11013
11016
|
StyledIcon$1.displayName = "StyledIcon";
|
|
11014
11017
|
|
|
11015
|
-
var _excluded$
|
|
11018
|
+
var _excluded$16 = ["weight", "children"];
|
|
11016
11019
|
var Title1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
11017
11020
|
var _ref$weight = _ref.weight,
|
|
11018
11021
|
weight = _ref$weight === void 0 ? "light" : _ref$weight,
|
|
11019
11022
|
children = _ref.children,
|
|
11020
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
11023
|
+
props = _objectWithoutProperties(_ref, _excluded$16);
|
|
11021
11024
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
11022
11025
|
weight: weight,
|
|
11023
11026
|
variant: "Title 1",
|
|
@@ -11026,12 +11029,12 @@
|
|
|
11026
11029
|
});
|
|
11027
11030
|
Title1.displayName = "Title1";
|
|
11028
11031
|
|
|
11029
|
-
var _excluded$
|
|
11032
|
+
var _excluded$15 = ["weight", "children"];
|
|
11030
11033
|
var Title2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
11031
11034
|
var _ref$weight = _ref.weight,
|
|
11032
11035
|
weight = _ref$weight === void 0 ? "light" : _ref$weight,
|
|
11033
11036
|
children = _ref.children,
|
|
11034
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
11037
|
+
props = _objectWithoutProperties(_ref, _excluded$15);
|
|
11035
11038
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
11036
11039
|
weight: weight,
|
|
11037
11040
|
variant: "Title 2",
|
|
@@ -11040,10 +11043,10 @@
|
|
|
11040
11043
|
});
|
|
11041
11044
|
Title2.displayName = "Title2";
|
|
11042
11045
|
|
|
11043
|
-
var _excluded$
|
|
11046
|
+
var _excluded$14 = ["children"];
|
|
11044
11047
|
var Header2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
11045
11048
|
var children = _ref.children,
|
|
11046
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
11049
|
+
props = _objectWithoutProperties(_ref, _excluded$14);
|
|
11047
11050
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
11048
11051
|
weight: "bold",
|
|
11049
11052
|
variant: "Header 2",
|
|
@@ -11052,10 +11055,10 @@
|
|
|
11052
11055
|
});
|
|
11053
11056
|
Header2.displayName = "Header2";
|
|
11054
11057
|
|
|
11055
|
-
var _excluded$
|
|
11058
|
+
var _excluded$13 = ["children"];
|
|
11056
11059
|
var Header3 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
11057
11060
|
var children = _ref.children,
|
|
11058
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
11061
|
+
props = _objectWithoutProperties(_ref, _excluded$13);
|
|
11059
11062
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
11060
11063
|
weight: "bold",
|
|
11061
11064
|
variant: "Header 3",
|
|
@@ -11064,12 +11067,12 @@
|
|
|
11064
11067
|
});
|
|
11065
11068
|
Header3.displayName = "Header3";
|
|
11066
11069
|
|
|
11067
|
-
var _excluded$
|
|
11070
|
+
var _excluded$12 = ["weight", "children"];
|
|
11068
11071
|
var Body1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
11069
11072
|
var _ref$weight = _ref.weight,
|
|
11070
11073
|
weight = _ref$weight === void 0 ? "regular" : _ref$weight,
|
|
11071
11074
|
children = _ref.children,
|
|
11072
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
11075
|
+
props = _objectWithoutProperties(_ref, _excluded$12);
|
|
11073
11076
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
11074
11077
|
variant: "Body 1",
|
|
11075
11078
|
weight: weight,
|
|
@@ -11078,12 +11081,12 @@
|
|
|
11078
11081
|
});
|
|
11079
11082
|
Body1.displayName = "Body1";
|
|
11080
11083
|
|
|
11081
|
-
var _excluded$
|
|
11084
|
+
var _excluded$11 = ["weight", "children"];
|
|
11082
11085
|
var Caption1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
11083
11086
|
var _ref$weight = _ref.weight,
|
|
11084
11087
|
weight = _ref$weight === void 0 ? "regular" : _ref$weight,
|
|
11085
11088
|
children = _ref.children,
|
|
11086
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
11089
|
+
props = _objectWithoutProperties(_ref, _excluded$11);
|
|
11087
11090
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
11088
11091
|
variant: "Caption 1",
|
|
11089
11092
|
weight: weight,
|
|
@@ -11092,12 +11095,12 @@
|
|
|
11092
11095
|
});
|
|
11093
11096
|
Caption1.displayName = "Caption1";
|
|
11094
11097
|
|
|
11095
|
-
var _excluded
|
|
11098
|
+
var _excluded$10 = ["weight", "children"];
|
|
11096
11099
|
var Caption2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
11097
11100
|
var _ref$weight = _ref.weight,
|
|
11098
11101
|
weight = _ref$weight === void 0 ? "regular" : _ref$weight,
|
|
11099
11102
|
children = _ref.children,
|
|
11100
|
-
props = _objectWithoutProperties(_ref, _excluded
|
|
11103
|
+
props = _objectWithoutProperties(_ref, _excluded$10);
|
|
11101
11104
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
11102
11105
|
variant: "Caption 2",
|
|
11103
11106
|
weight: weight,
|
|
@@ -11181,7 +11184,7 @@
|
|
|
11181
11184
|
componentId: "sc-5x2tyd-1"
|
|
11182
11185
|
})(["border-radius:100%;object-fit:cover;"]);
|
|
11183
11186
|
|
|
11184
|
-
var _excluded
|
|
11187
|
+
var _excluded$$ = ["url", "alt", "size", "className", "imgClassName", "children"];
|
|
11185
11188
|
/**
|
|
11186
11189
|
* @component Avatar
|
|
11187
11190
|
* @description
|
|
@@ -11216,7 +11219,7 @@
|
|
|
11216
11219
|
className = _ref.className,
|
|
11217
11220
|
imgClassName = _ref.imgClassName,
|
|
11218
11221
|
children = _ref.children,
|
|
11219
|
-
rest = _objectWithoutProperties(_ref, _excluded
|
|
11222
|
+
rest = _objectWithoutProperties(_ref, _excluded$$);
|
|
11220
11223
|
var _useState = React.useState(false),
|
|
11221
11224
|
_useState2 = _slicedToArray(_useState, 2),
|
|
11222
11225
|
imageLoaded = _useState2[0],
|
|
@@ -11257,13 +11260,13 @@
|
|
|
11257
11260
|
return props.$color && styled.css(["background-color:", ";"], props.$color);
|
|
11258
11261
|
});
|
|
11259
11262
|
|
|
11260
|
-
var _excluded$
|
|
11263
|
+
var _excluded$_ = ["color", "size", "className"];
|
|
11261
11264
|
var Dot = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
11262
11265
|
var color = _ref.color,
|
|
11263
11266
|
_ref$size = _ref.size,
|
|
11264
11267
|
size = _ref$size === void 0 ? 8 : _ref$size,
|
|
11265
11268
|
className = _ref.className,
|
|
11266
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11269
|
+
rest = _objectWithoutProperties(_ref, _excluded$_);
|
|
11267
11270
|
return /*#__PURE__*/React__default["default"].createElement(StyledDot, _extends({
|
|
11268
11271
|
className: classNames__default["default"]("c-dot", className),
|
|
11269
11272
|
ref: ref,
|
|
@@ -11300,7 +11303,7 @@
|
|
|
11300
11303
|
});
|
|
11301
11304
|
StyledTagText.displayName = "StyledTagText";
|
|
11302
11305
|
|
|
11303
|
-
var _excluded$
|
|
11306
|
+
var _excluded$Z = ["name", "color", "showText", "showDot", "className"];
|
|
11304
11307
|
var Tag = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
11305
11308
|
var name = _ref.name,
|
|
11306
11309
|
color = _ref.color,
|
|
@@ -11309,7 +11312,7 @@
|
|
|
11309
11312
|
_ref$showDot = _ref.showDot,
|
|
11310
11313
|
showDot = _ref$showDot === void 0 ? true : _ref$showDot,
|
|
11311
11314
|
className = _ref.className,
|
|
11312
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11315
|
+
rest = _objectWithoutProperties(_ref, _excluded$Z);
|
|
11313
11316
|
return /*#__PURE__*/React__default["default"].createElement(StyledTag, _extends({
|
|
11314
11317
|
className: classNames__default["default"]("c-tag", className),
|
|
11315
11318
|
ref: ref
|
|
@@ -11415,7 +11418,7 @@
|
|
|
11415
11418
|
});
|
|
11416
11419
|
StyledNavAsMoreTarget.displayName = "StyledNavAsMoreTarget";
|
|
11417
11420
|
|
|
11418
|
-
var _excluded$
|
|
11421
|
+
var _excluded$Y = ["children", "active", "disabled", "className", "role"];
|
|
11419
11422
|
var Item = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
11420
11423
|
var children = _ref.children,
|
|
11421
11424
|
_ref$active = _ref.active,
|
|
@@ -11424,7 +11427,7 @@
|
|
|
11424
11427
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
11425
11428
|
className = _ref.className,
|
|
11426
11429
|
role = _ref.role,
|
|
11427
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11430
|
+
rest = _objectWithoutProperties(_ref, _excluded$Y);
|
|
11428
11431
|
return /*#__PURE__*/React__default["default"].createElement(StyledNavListItem, _extends({
|
|
11429
11432
|
className: classNames__default["default"]("c-nav__item", {
|
|
11430
11433
|
"c-nav__item--active": active
|
|
@@ -11465,11 +11468,11 @@
|
|
|
11465
11468
|
});
|
|
11466
11469
|
StyledExpandSingle.displayName = "StyledExpandSingle";
|
|
11467
11470
|
|
|
11468
|
-
var _excluded$
|
|
11471
|
+
var _excluded$X = ["expanded"];
|
|
11469
11472
|
var ExpandSingle = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
11470
11473
|
var _ref$expanded = _ref.expanded,
|
|
11471
11474
|
expanded = _ref$expanded === void 0 ? false : _ref$expanded,
|
|
11472
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11475
|
+
rest = _objectWithoutProperties(_ref, _excluded$X);
|
|
11473
11476
|
return /*#__PURE__*/React__default["default"].createElement(StyledExpandSingle, _extends({
|
|
11474
11477
|
ref: ref,
|
|
11475
11478
|
viewBox: "0 0 24 24",
|
|
@@ -11645,7 +11648,7 @@
|
|
|
11645
11648
|
};
|
|
11646
11649
|
OptionContent.displayName = "OptionContent";
|
|
11647
11650
|
|
|
11648
|
-
var _excluded$
|
|
11651
|
+
var _excluded$W = ["mixed", "data-testid"];
|
|
11649
11652
|
|
|
11650
11653
|
/**
|
|
11651
11654
|
* @component CheckboxIcon
|
|
@@ -11669,7 +11672,7 @@
|
|
|
11669
11672
|
var CheckboxIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, svgRef) {
|
|
11670
11673
|
var mixed = _ref.mixed,
|
|
11671
11674
|
testId = _ref["data-testid"],
|
|
11672
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
11675
|
+
props = _objectWithoutProperties(_ref, _excluded$W);
|
|
11673
11676
|
// const [animate, setAnimate] = useState(false);
|
|
11674
11677
|
// const mountRef = useRef(false);
|
|
11675
11678
|
|
|
@@ -11763,7 +11766,7 @@
|
|
|
11763
11766
|
});
|
|
11764
11767
|
StyledCheckbox$1.displayName = "StyledCheckbox";
|
|
11765
11768
|
|
|
11766
|
-
var _excluded$
|
|
11769
|
+
var _excluded$V = ["className", "hover", "id", "mixed", "checked", "onChange", "disabled"];
|
|
11767
11770
|
/**
|
|
11768
11771
|
* Checkbox component
|
|
11769
11772
|
*/
|
|
@@ -11777,7 +11780,7 @@
|
|
|
11777
11780
|
checked = _ref.checked,
|
|
11778
11781
|
onChange = _ref.onChange,
|
|
11779
11782
|
disabled = _ref.disabled,
|
|
11780
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11783
|
+
rest = _objectWithoutProperties(_ref, _excluded$V);
|
|
11781
11784
|
var _useState = React.useState(mixed && !checked),
|
|
11782
11785
|
_useState2 = _slicedToArray(_useState, 2),
|
|
11783
11786
|
indeterminate = _useState2[0],
|
|
@@ -11942,7 +11945,7 @@
|
|
|
11942
11945
|
})(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-right:8px;display:flex;justify-items:center;align-items:center;"]);
|
|
11943
11946
|
StyledOptionWrapper.displayName = "StyledOptionWrapper";
|
|
11944
11947
|
|
|
11945
|
-
var _excluded$
|
|
11948
|
+
var _excluded$U = ["className", "style", "type", "disabled", "size", "invalid", "startAdornment", "endAdornment", "wrapRef", "wrapperClick", "mode"];
|
|
11946
11949
|
var Input = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
11947
11950
|
var _ref$className = _ref.className,
|
|
11948
11951
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
@@ -11961,7 +11964,7 @@
|
|
|
11961
11964
|
wrapperClick = _ref.wrapperClick,
|
|
11962
11965
|
_ref$mode = _ref.mode,
|
|
11963
11966
|
mode = _ref$mode === void 0 ? "outlined" : _ref$mode,
|
|
11964
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11967
|
+
rest = _objectWithoutProperties(_ref, _excluded$U);
|
|
11965
11968
|
var intInputRef = React.useRef(null);
|
|
11966
11969
|
var handleRef = useForkRef(ref, intInputRef);
|
|
11967
11970
|
var handleWrapperClick = React.useCallback(function () {
|
|
@@ -12018,14 +12021,14 @@
|
|
|
12018
12021
|
}, StyledRadioLabel);
|
|
12019
12022
|
StyledRadioButton$1.displayName = "StyledRadioButton";
|
|
12020
12023
|
|
|
12021
|
-
var _excluded$
|
|
12024
|
+
var _excluded$T = ["className", "id", "hover"];
|
|
12022
12025
|
var RadioButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
12023
12026
|
var _ref$className = _ref.className,
|
|
12024
12027
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
12025
12028
|
_ref$id = _ref.id,
|
|
12026
12029
|
id = _ref$id === void 0 ? "radio" : _ref$id,
|
|
12027
12030
|
hover = _ref.hover,
|
|
12028
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
12031
|
+
props = _objectWithoutProperties(_ref, _excluded$T);
|
|
12029
12032
|
return /*#__PURE__*/React__default["default"].createElement(StyledRadioButton$1, {
|
|
12030
12033
|
className: classNames__default["default"]("c-radio-btn", {
|
|
12031
12034
|
"c-radio-btn__hover": hover,
|
|
@@ -12173,7 +12176,7 @@
|
|
|
12173
12176
|
StyledScrollShadowLeft.displayName = "StyledScrollShadowLeft";
|
|
12174
12177
|
StyledScrollShadowRight.displayName = "StyledScrollShadowRight";
|
|
12175
12178
|
|
|
12176
|
-
var _excluded$
|
|
12179
|
+
var _excluded$S = ["children", "className", "disableVertical", "disableHorizontal", "invertHorizontal", "invertVertical", "innerColor", "outerColor"];
|
|
12177
12180
|
var ScrollShadow = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
12178
12181
|
var children = _ref.children,
|
|
12179
12182
|
className = _ref.className,
|
|
@@ -12187,7 +12190,7 @@
|
|
|
12187
12190
|
invertVertical = _ref$invertVertical === void 0 ? false : _ref$invertVertical,
|
|
12188
12191
|
innerColor = _ref.innerColor,
|
|
12189
12192
|
outerColor = _ref.outerColor,
|
|
12190
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12193
|
+
rest = _objectWithoutProperties(_ref, _excluded$S);
|
|
12191
12194
|
var _useState = React.useState({
|
|
12192
12195
|
top: 0,
|
|
12193
12196
|
right: 0,
|
|
@@ -12534,7 +12537,7 @@
|
|
|
12534
12537
|
};
|
|
12535
12538
|
};
|
|
12536
12539
|
|
|
12537
|
-
var _excluded$
|
|
12540
|
+
var _excluded$R = ["as", "className", "invert", "style"];
|
|
12538
12541
|
var ScrollElement = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
12539
12542
|
var _ref$as = _ref.as,
|
|
12540
12543
|
as = _ref$as === void 0 ? "div" : _ref$as,
|
|
@@ -12542,7 +12545,7 @@
|
|
|
12542
12545
|
_ref$invert = _ref.invert,
|
|
12543
12546
|
invert = _ref$invert === void 0 ? false : _ref$invert,
|
|
12544
12547
|
style = _ref.style,
|
|
12545
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12548
|
+
rest = _objectWithoutProperties(_ref, _excluded$R);
|
|
12546
12549
|
var internalRef = useInitScrollRef(null, invert);
|
|
12547
12550
|
var handleRef = useForkRef(internalRef, ref);
|
|
12548
12551
|
var props = _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
@@ -13181,7 +13184,7 @@
|
|
|
13181
13184
|
componentId: "sc-9x4q7e-0"
|
|
13182
13185
|
})(["cursor:auto"]);
|
|
13183
13186
|
|
|
13184
|
-
var _excluded$
|
|
13187
|
+
var _excluded$Q = ["type", "mode", "target", "options", "selected", "mixed", "position", "onChange", "placeholder", "emptyAction", "disableSearch", "forceCloseMenu", "selectClassName", "keepSameOptionsOrder", "onSelectOpen", "onSelectClose", "renderOption", "handleDefaultOptionChange", "preselectDefaultValue", "startAdornment", "endAdornment", "focusInput"];
|
|
13185
13188
|
var Select = function Select(_ref) {
|
|
13186
13189
|
var _ref$type = _ref.type,
|
|
13187
13190
|
type = _ref$type === void 0 ? "single" : _ref$type,
|
|
@@ -13219,7 +13222,7 @@
|
|
|
13219
13222
|
endAdornment = _ref.endAdornment,
|
|
13220
13223
|
_ref$focusInput = _ref.focusInput,
|
|
13221
13224
|
focusInput = _ref$focusInput === void 0 ? false : _ref$focusInput,
|
|
13222
|
-
prop = _objectWithoutProperties(_ref, _excluded$
|
|
13225
|
+
prop = _objectWithoutProperties(_ref, _excluded$Q);
|
|
13223
13226
|
if (disableSearch && (startAdornment || endAdornment)) {
|
|
13224
13227
|
console.warn("Adornments are not visible when search bar is hidden");
|
|
13225
13228
|
}
|
|
@@ -13660,7 +13663,7 @@
|
|
|
13660
13663
|
};
|
|
13661
13664
|
Nav.displayName = "Nav";
|
|
13662
13665
|
|
|
13663
|
-
var _excluded$
|
|
13666
|
+
var _excluded$P = ["children", "as", "disablePointerEvents"];
|
|
13664
13667
|
var InputAdornmentBase = styled__default["default"].div.withConfig({
|
|
13665
13668
|
displayName: "InputAdornment__InputAdornmentBase",
|
|
13666
13669
|
componentId: "sc-1xfjx1z-0"
|
|
@@ -13678,7 +13681,7 @@
|
|
|
13678
13681
|
var children = _ref.children,
|
|
13679
13682
|
as = _ref.as,
|
|
13680
13683
|
disablePointerEvents = _ref.disablePointerEvents,
|
|
13681
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
13684
|
+
rest = _objectWithoutProperties(_ref, _excluded$P);
|
|
13682
13685
|
var Component = as || "div";
|
|
13683
13686
|
return /*#__PURE__*/React__default["default"].createElement(InputAdornmentBase, _extends({}, rest, {
|
|
13684
13687
|
as: Component,
|
|
@@ -13913,7 +13916,7 @@
|
|
|
13913
13916
|
};
|
|
13914
13917
|
};
|
|
13915
13918
|
|
|
13916
|
-
var _excluded$
|
|
13919
|
+
var _excluded$O = ["value", "onCancel", "onSave", "onEnterKeyPress", "allowEmptyValue", "withLeadingZero", "validation", "incrementOnlySelected", "minuteIncrement", "className", "onChange", "onClick", "align"];
|
|
13917
13920
|
var InputHours = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
13918
13921
|
var defaultValue = _ref.value,
|
|
13919
13922
|
onCancel = _ref.onCancel,
|
|
@@ -13933,7 +13936,7 @@
|
|
|
13933
13936
|
externalOnClick = _ref.onClick,
|
|
13934
13937
|
_ref$align = _ref.align,
|
|
13935
13938
|
align = _ref$align === void 0 ? "center" : _ref$align,
|
|
13936
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
13939
|
+
rest = _objectWithoutProperties(_ref, _excluded$O);
|
|
13937
13940
|
var inputRef = React.useRef(null);
|
|
13938
13941
|
var handleRef = useForkRef(ref, inputRef);
|
|
13939
13942
|
var _useInputHours = useInputHours({
|
|
@@ -13972,7 +13975,7 @@
|
|
|
13972
13975
|
});
|
|
13973
13976
|
InputHours.displayName = "InputHours";
|
|
13974
13977
|
|
|
13975
|
-
var _excluded$
|
|
13978
|
+
var _excluded$N = ["decimalLength", "decimalSeparator", "disableAbbreviation", "disabled", "disableMacros", "invalid", "step", "thousandSeparator", "value", "onCancel", "onSave", "onEnterKeyPress", "allowEmptyValue", "onChange", "onClick", "limit", "placeholder", "trimDecimals", "min", "max"];
|
|
13976
13979
|
var InputNumber = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
13977
13980
|
var _ref$decimalLength = _ref.decimalLength,
|
|
13978
13981
|
decimalLength = _ref$decimalLength === void 0 ? 2 : _ref$decimalLength,
|
|
@@ -14001,7 +14004,7 @@
|
|
|
14001
14004
|
trimDecimals = _ref$trimDecimals === void 0 ? true : _ref$trimDecimals,
|
|
14002
14005
|
min = _ref.min,
|
|
14003
14006
|
max = _ref.max,
|
|
14004
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
14007
|
+
rest = _objectWithoutProperties(_ref, _excluded$N);
|
|
14005
14008
|
var inputRef = React.useRef(null);
|
|
14006
14009
|
var handleRef = useForkRef(ref, inputRef);
|
|
14007
14010
|
var _useInputNumber = useInputNumber({
|
|
@@ -14050,11 +14053,11 @@
|
|
|
14050
14053
|
});
|
|
14051
14054
|
InputNumber.displayName = "InputNumber";
|
|
14052
14055
|
|
|
14053
|
-
var _excluded$
|
|
14056
|
+
var _excluded$M = ["currency", "size"];
|
|
14054
14057
|
var InputCurrency = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
14055
14058
|
var currency = _ref.currency,
|
|
14056
14059
|
size = _ref.size,
|
|
14057
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
14060
|
+
rest = _objectWithoutProperties(_ref, _excluded$M);
|
|
14058
14061
|
var variant = React.useMemo(function () {
|
|
14059
14062
|
if (size === "biggest") {
|
|
14060
14063
|
return "Header 2";
|
|
@@ -14079,7 +14082,7 @@
|
|
|
14079
14082
|
});
|
|
14080
14083
|
InputCurrency.displayName = "InputCurrency";
|
|
14081
14084
|
|
|
14082
|
-
var _excluded$
|
|
14085
|
+
var _excluded$L = ["size", "disabled", "show", "hideControl", "showTooltipText", "hideTooltipText", "value", "validation", "errorMessage", "invalid", "onChange"];
|
|
14083
14086
|
var transform = {
|
|
14084
14087
|
biggest: "big",
|
|
14085
14088
|
regular: "small",
|
|
@@ -14172,7 +14175,7 @@
|
|
|
14172
14175
|
errorMessage = _ref2.errorMessage,
|
|
14173
14176
|
invalid = _ref2.invalid,
|
|
14174
14177
|
onChange = _ref2.onChange,
|
|
14175
|
-
rest = _objectWithoutProperties(_ref2, _excluded$
|
|
14178
|
+
rest = _objectWithoutProperties(_ref2, _excluded$L);
|
|
14176
14179
|
var inputRef = React.useRef(null);
|
|
14177
14180
|
var handleRef = useForkRef(ref, inputRef);
|
|
14178
14181
|
var _useState = React.useState(show),
|
|
@@ -14291,7 +14294,7 @@
|
|
|
14291
14294
|
componentId: "sc-1lmb5y-0"
|
|
14292
14295
|
})(["flex-shrink:0"]);
|
|
14293
14296
|
|
|
14294
|
-
var _excluded$
|
|
14297
|
+
var _excluded$K = ["size", "disabled", "value", "onChange"];
|
|
14295
14298
|
var options = [{
|
|
14296
14299
|
id: "https://",
|
|
14297
14300
|
name: "https://"
|
|
@@ -14306,7 +14309,7 @@
|
|
|
14306
14309
|
_ref$value = _ref.value,
|
|
14307
14310
|
defaultValue = _ref$value === void 0 ? "" : _ref$value,
|
|
14308
14311
|
onChange = _ref.onChange,
|
|
14309
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
14312
|
+
rest = _objectWithoutProperties(_ref, _excluded$K);
|
|
14310
14313
|
var inputRef = React.useRef(null);
|
|
14311
14314
|
var handleRef = useForkRef(ref, inputRef);
|
|
14312
14315
|
var _useState = React.useState(options[0].id),
|
|
@@ -14399,7 +14402,7 @@
|
|
|
14399
14402
|
});
|
|
14400
14403
|
InputUrl.displayName = "InputUrl";
|
|
14401
14404
|
|
|
14402
|
-
var _excluded$
|
|
14405
|
+
var _excluded$J = ["size", "disabled", "value", "onChange", "defaultCountry"];
|
|
14403
14406
|
var renderOption = function renderOption(option, data) {
|
|
14404
14407
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(StyledOptionWrapper, null, /*#__PURE__*/React__default["default"].createElement(StyledOptionFlag, null, countryExplorer.getCountryFlag(option.id)), /*#__PURE__*/React__default["default"].createElement(StyledOptionName, null, option.name)), /*#__PURE__*/React__default["default"].createElement(RadioButton, {
|
|
14405
14408
|
checked: data.checked,
|
|
@@ -14415,7 +14418,7 @@
|
|
|
14415
14418
|
onChange = _ref.onChange,
|
|
14416
14419
|
_ref$defaultCountry = _ref.defaultCountry,
|
|
14417
14420
|
defaultCountry = _ref$defaultCountry === void 0 ? "US" : _ref$defaultCountry,
|
|
14418
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
14421
|
+
rest = _objectWithoutProperties(_ref, _excluded$J);
|
|
14419
14422
|
var inputRef = React.useRef(null);
|
|
14420
14423
|
var handleRef = useForkRef(ref, inputRef);
|
|
14421
14424
|
var _useState = React.useState(defaultCountry),
|
|
@@ -14530,11 +14533,11 @@
|
|
|
14530
14533
|
});
|
|
14531
14534
|
InputPhone.displayName = "InputPhone";
|
|
14532
14535
|
|
|
14533
|
-
var _excluded$
|
|
14536
|
+
var _excluded$I = ["expanded"];
|
|
14534
14537
|
var ExpandAll = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
14535
14538
|
var _ref$expanded = _ref.expanded,
|
|
14536
14539
|
expanded = _ref$expanded === void 0 ? false : _ref$expanded,
|
|
14537
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
14540
|
+
rest = _objectWithoutProperties(_ref, _excluded$I);
|
|
14538
14541
|
return /*#__PURE__*/React__default["default"].createElement(StyledExpand, _extends({
|
|
14539
14542
|
ref: ref,
|
|
14540
14543
|
viewBox: "0 0 24 24"
|
|
@@ -14656,7 +14659,7 @@
|
|
|
14656
14659
|
});
|
|
14657
14660
|
StyledTextarea.displayName = "StyledTextarea";
|
|
14658
14661
|
|
|
14659
|
-
var _excluded$
|
|
14662
|
+
var _excluded$H = ["className", "disabled", "invalid", "mode"];
|
|
14660
14663
|
var Textarea = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
14661
14664
|
var className = _ref.className,
|
|
14662
14665
|
_ref$disabled = _ref.disabled,
|
|
@@ -14665,7 +14668,7 @@
|
|
|
14665
14668
|
invalid = _ref$invalid === void 0 ? false : _ref$invalid,
|
|
14666
14669
|
_ref$mode = _ref.mode,
|
|
14667
14670
|
mode = _ref$mode === void 0 ? "outlined" : _ref$mode,
|
|
14668
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
14671
|
+
rest = _objectWithoutProperties(_ref, _excluded$H);
|
|
14669
14672
|
return /*#__PURE__*/React__default["default"].createElement(StyledTextarea, _extends({}, rest, {
|
|
14670
14673
|
$invalid: invalid,
|
|
14671
14674
|
ref: ref,
|
|
@@ -14699,7 +14702,7 @@
|
|
|
14699
14702
|
function () {});
|
|
14700
14703
|
}
|
|
14701
14704
|
|
|
14702
|
-
var _excluded$
|
|
14705
|
+
var _excluded$G = ["children", "disableFocusLock", "disableScrollLock", "disableBackgroundClick", "disableBackgroundColor", "disableCloseOnEsc", "open", "onClose", "onClickOutside"];
|
|
14703
14706
|
var getHasTransition = function getHasTransition(children) {
|
|
14704
14707
|
return children.props ? Object.prototype.hasOwnProperty.call(children.props, "in") : false;
|
|
14705
14708
|
};
|
|
@@ -14719,7 +14722,7 @@
|
|
|
14719
14722
|
defaultOpen = _ref$open === void 0 ? false : _ref$open,
|
|
14720
14723
|
onClose = _ref.onClose,
|
|
14721
14724
|
onClickOutside = _ref.onClickOutside,
|
|
14722
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
14725
|
+
rest = _objectWithoutProperties(_ref, _excluded$G);
|
|
14723
14726
|
var _useState = React.useState(defaultOpen),
|
|
14724
14727
|
_useState2 = _slicedToArray(_useState, 2),
|
|
14725
14728
|
open = _useState2[0],
|
|
@@ -14860,7 +14863,7 @@
|
|
|
14860
14863
|
});
|
|
14861
14864
|
StyledCssTransition.displayName = "StyledCssTransition";
|
|
14862
14865
|
|
|
14863
|
-
var _excluded$
|
|
14866
|
+
var _excluded$F = ["children", "onClose", "controls", "open", "animation", "position", "mode", "disableFocusLock", "disableScrollLock", "disableBackgroundColor", "bodyStyle", "bodyClassName", "disableBackgroundClick"];
|
|
14864
14867
|
var Sheet = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
14865
14868
|
var children = _ref.children,
|
|
14866
14869
|
onClose = _ref.onClose,
|
|
@@ -14884,7 +14887,7 @@
|
|
|
14884
14887
|
bodyClassName = _ref.bodyClassName,
|
|
14885
14888
|
_ref$disableBackgroun2 = _ref.disableBackgroundClick,
|
|
14886
14889
|
disableBackgroundClick = _ref$disableBackgroun2 === void 0 ? false : _ref$disableBackgroun2,
|
|
14887
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
14890
|
+
rest = _objectWithoutProperties(_ref, _excluded$F);
|
|
14888
14891
|
var _useState = React.useState(defaultOpen),
|
|
14889
14892
|
_useState2 = _slicedToArray(_useState, 2),
|
|
14890
14893
|
open = _useState2[0],
|
|
@@ -14977,13 +14980,13 @@
|
|
|
14977
14980
|
});
|
|
14978
14981
|
StyledHeader.displayName = "StyledHeader";
|
|
14979
14982
|
|
|
14980
|
-
var _excluded$
|
|
14983
|
+
var _excluded$E = ["className", "size", "children"];
|
|
14981
14984
|
var Header = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
14982
14985
|
var className = _ref.className,
|
|
14983
14986
|
_ref$size = _ref.size,
|
|
14984
14987
|
size = _ref$size === void 0 ? "small" : _ref$size,
|
|
14985
14988
|
children = _ref.children,
|
|
14986
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
14989
|
+
rest = _objectWithoutProperties(_ref, _excluded$E);
|
|
14987
14990
|
return /*#__PURE__*/React__default["default"].createElement(StyledHeader, _extends({
|
|
14988
14991
|
type: "paper-2",
|
|
14989
14992
|
className: classNames__default["default"]("c-header", className),
|
|
@@ -14999,7 +15002,7 @@
|
|
|
14999
15002
|
})(["white-space:pre-wrap;overflow-wrap:break-word;resize:none;"]);
|
|
15000
15003
|
StyledAutoResizeTextarea.displayName = "StyledAutoResizeTextarea";
|
|
15001
15004
|
|
|
15002
|
-
var _excluded$
|
|
15005
|
+
var _excluded$D = ["minRows", "maxRows", "lineHeight", "onChange", "className", "preventNewRowOnEnter", "cursorAtTextEnd", "onKeyDown", "value", "mode"];
|
|
15003
15006
|
var AutoResizeTextarea = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
15004
15007
|
var _ref$minRows = _ref.minRows,
|
|
15005
15008
|
minRows = _ref$minRows === void 0 ? 1 : _ref$minRows,
|
|
@@ -15017,7 +15020,7 @@
|
|
|
15017
15020
|
value = _ref.value,
|
|
15018
15021
|
_ref$mode = _ref.mode,
|
|
15019
15022
|
mode = _ref$mode === void 0 ? "outlined" : _ref$mode,
|
|
15020
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
15023
|
+
rest = _objectWithoutProperties(_ref, _excluded$D);
|
|
15021
15024
|
var innerRef = React.useRef(null);
|
|
15022
15025
|
var _useState = React.useState(minRows),
|
|
15023
15026
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -15294,7 +15297,7 @@
|
|
|
15294
15297
|
});
|
|
15295
15298
|
StyledChoose.displayName = "StyledChoose";
|
|
15296
15299
|
|
|
15297
|
-
var _excluded$
|
|
15300
|
+
var _excluded$C = ["children", "disabled", "active", "className"];
|
|
15298
15301
|
/**
|
|
15299
15302
|
* Choose component
|
|
15300
15303
|
*/
|
|
@@ -15305,7 +15308,7 @@
|
|
|
15305
15308
|
_ref$active = _ref.active,
|
|
15306
15309
|
active = _ref$active === void 0 ? false : _ref$active,
|
|
15307
15310
|
className = _ref.className,
|
|
15308
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
15311
|
+
args = _objectWithoutProperties(_ref, _excluded$C);
|
|
15309
15312
|
return /*#__PURE__*/React__default["default"].createElement(StyledChoose, _extends({
|
|
15310
15313
|
disabled: disabled,
|
|
15311
15314
|
className: classNames__default["default"]("c-choose", className),
|
|
@@ -15401,21 +15404,21 @@
|
|
|
15401
15404
|
StyledLinkElements.displayName = "StyledLinkElements";
|
|
15402
15405
|
StyledLink.displayName = "StyledLink";
|
|
15403
15406
|
|
|
15404
|
-
var _excluded$
|
|
15407
|
+
var _excluded$B = ["children", "className"];
|
|
15405
15408
|
/**
|
|
15406
15409
|
* Back link component
|
|
15407
15410
|
*/
|
|
15408
15411
|
var BackLink = function BackLink(_ref) {
|
|
15409
15412
|
var children = _ref.children,
|
|
15410
15413
|
className = _ref.className,
|
|
15411
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
15414
|
+
args = _objectWithoutProperties(_ref, _excluded$B);
|
|
15412
15415
|
return /*#__PURE__*/React__default["default"].createElement(StyledBackLink, _extends({
|
|
15413
15416
|
className: classNames__default["default"]("c-back-link", className)
|
|
15414
15417
|
}, args), children);
|
|
15415
15418
|
};
|
|
15416
15419
|
BackLink.displayName = "BackLink";
|
|
15417
15420
|
|
|
15418
|
-
var _excluded$
|
|
15421
|
+
var _excluded$A = ["as", "children", "variant", "size", "disabled", "className"];
|
|
15419
15422
|
/**
|
|
15420
15423
|
* Link component
|
|
15421
15424
|
*/
|
|
@@ -15428,7 +15431,7 @@
|
|
|
15428
15431
|
_ref$disabled = _ref.disabled,
|
|
15429
15432
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
15430
15433
|
className = _ref.className,
|
|
15431
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
15434
|
+
args = _objectWithoutProperties(_ref, _excluded$A);
|
|
15432
15435
|
var Component = as || "a";
|
|
15433
15436
|
return /*#__PURE__*/React__default["default"].createElement(StyledLink, _extends({
|
|
15434
15437
|
ref: ref,
|
|
@@ -15486,13 +15489,13 @@
|
|
|
15486
15489
|
})(["padding:20px 30px;", " ", ""], FontStyle, BoxSizingStyle);
|
|
15487
15490
|
StyledDialogActions.displayName = "StyledDialogActions";
|
|
15488
15491
|
|
|
15489
|
-
var _excluded$
|
|
15492
|
+
var _excluded$z = ["className", "children"];
|
|
15490
15493
|
// import { useDialogContext } from "./DialogContext";
|
|
15491
15494
|
|
|
15492
15495
|
var DialogActions = function DialogActions(_ref) {
|
|
15493
15496
|
var className = _ref.className,
|
|
15494
15497
|
children = _ref.children,
|
|
15495
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
15498
|
+
rest = _objectWithoutProperties(_ref, _excluded$z);
|
|
15496
15499
|
// useDialogContext();
|
|
15497
15500
|
|
|
15498
15501
|
return /*#__PURE__*/React__default["default"].createElement(StyledDialogActions, _extends({
|
|
@@ -15501,13 +15504,13 @@
|
|
|
15501
15504
|
};
|
|
15502
15505
|
DialogActions.displayName = "DialogActions";
|
|
15503
15506
|
|
|
15504
|
-
var _excluded$
|
|
15507
|
+
var _excluded$y = ["className", "children"];
|
|
15505
15508
|
// import { useDialogContext } from "./DialogContext";
|
|
15506
15509
|
|
|
15507
15510
|
var DialogContent = function DialogContent(_ref) {
|
|
15508
15511
|
var className = _ref.className,
|
|
15509
15512
|
children = _ref.children,
|
|
15510
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
15513
|
+
rest = _objectWithoutProperties(_ref, _excluded$y);
|
|
15511
15514
|
// useDialogContext();
|
|
15512
15515
|
|
|
15513
15516
|
return /*#__PURE__*/React__default["default"].createElement(StyledDialogContent, _extends({
|
|
@@ -15528,7 +15531,7 @@
|
|
|
15528
15531
|
};
|
|
15529
15532
|
DialogContentDivider.displayName = "DialogContentDivider";
|
|
15530
15533
|
|
|
15531
|
-
var _excluded$
|
|
15534
|
+
var _excluded$x = ["children", "className", "disableDefaultHeading"];
|
|
15532
15535
|
// import { useDialogContext } from "./DialogContext";
|
|
15533
15536
|
|
|
15534
15537
|
var DialogTitle = function DialogTitle(_ref) {
|
|
@@ -15536,7 +15539,7 @@
|
|
|
15536
15539
|
className = _ref.className,
|
|
15537
15540
|
_ref$disableDefaultHe = _ref.disableDefaultHeading,
|
|
15538
15541
|
disableDefaultHeading = _ref$disableDefaultHe === void 0 ? false : _ref$disableDefaultHe,
|
|
15539
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
15542
|
+
rest = _objectWithoutProperties(_ref, _excluded$x);
|
|
15540
15543
|
// useDialogContext();
|
|
15541
15544
|
|
|
15542
15545
|
return /*#__PURE__*/React__default["default"].createElement(StyledDialogTitle, _extends({
|
|
@@ -15545,7 +15548,7 @@
|
|
|
15545
15548
|
};
|
|
15546
15549
|
DialogTitle.displayName = "DialogTitle";
|
|
15547
15550
|
|
|
15548
|
-
var _excluded$
|
|
15551
|
+
var _excluded$w = ["in", "children", "style", "timeout"];
|
|
15549
15552
|
var defaultStyle$2 = function defaultStyle(duration) {
|
|
15550
15553
|
return {
|
|
15551
15554
|
transition: "all ".concat(duration, "ms ease-in-out"),
|
|
@@ -15573,7 +15576,7 @@
|
|
|
15573
15576
|
style = _ref.style,
|
|
15574
15577
|
_ref$timeout = _ref.timeout,
|
|
15575
15578
|
timeout = _ref$timeout === void 0 ? 500 : _ref$timeout,
|
|
15576
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
15579
|
+
rest = _objectWithoutProperties(_ref, _excluded$w);
|
|
15577
15580
|
return /*#__PURE__*/React__default["default"].createElement(reactTransitionGroup.Transition, _extends({
|
|
15578
15581
|
appear: true,
|
|
15579
15582
|
in: inProp,
|
|
@@ -15588,7 +15591,7 @@
|
|
|
15588
15591
|
};
|
|
15589
15592
|
Fade.displayName = "Fade";
|
|
15590
15593
|
|
|
15591
|
-
var _excluded$
|
|
15594
|
+
var _excluded$v = ["in", "children", "style", "timeout", "initialDirection"];
|
|
15592
15595
|
var Slide = function Slide(_ref) {
|
|
15593
15596
|
var _ref$in = _ref.in,
|
|
15594
15597
|
inProp = _ref$in === void 0 ? false : _ref$in,
|
|
@@ -15598,7 +15601,7 @@
|
|
|
15598
15601
|
timeout = _ref$timeout === void 0 ? 300 : _ref$timeout,
|
|
15599
15602
|
_ref$initialDirection = _ref.initialDirection,
|
|
15600
15603
|
initialDirection = _ref$initialDirection === void 0 ? "left" : _ref$initialDirection,
|
|
15601
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
15604
|
+
rest = _objectWithoutProperties(_ref, _excluded$v);
|
|
15602
15605
|
var directionSign;
|
|
15603
15606
|
switch (initialDirection) {
|
|
15604
15607
|
case "right":
|
|
@@ -15704,12 +15707,12 @@
|
|
|
15704
15707
|
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;}"]);
|
|
15705
15708
|
});
|
|
15706
15709
|
|
|
15707
|
-
var _excluded$
|
|
15710
|
+
var _excluded$u = ["children", "direction"];
|
|
15708
15711
|
var SlideLeftRightTransition = function SlideLeftRightTransition(_ref) {
|
|
15709
15712
|
var children = _ref.children,
|
|
15710
15713
|
_ref$direction = _ref.direction,
|
|
15711
15714
|
direction = _ref$direction === void 0 ? "left" : _ref$direction,
|
|
15712
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
15715
|
+
props = _objectWithoutProperties(_ref, _excluded$u);
|
|
15713
15716
|
return /*#__PURE__*/React__default["default"].createElement(reactTransitionGroup.CSSTransition, _extends({
|
|
15714
15717
|
timeout: 200,
|
|
15715
15718
|
classNames: "c-slide",
|
|
@@ -15752,7 +15755,7 @@
|
|
|
15752
15755
|
};
|
|
15753
15756
|
ResizeTransition.displayName = "ResizeTransition";
|
|
15754
15757
|
|
|
15755
|
-
var _excluded$
|
|
15758
|
+
var _excluded$t = ["in", "children", "style", "timeout"];
|
|
15756
15759
|
var defaultStyle = function defaultStyle(duration) {
|
|
15757
15760
|
return {
|
|
15758
15761
|
transition: "all ".concat(duration, "ms ease-in"),
|
|
@@ -15786,7 +15789,7 @@
|
|
|
15786
15789
|
style = _ref.style,
|
|
15787
15790
|
_ref$timeout = _ref.timeout,
|
|
15788
15791
|
timeout = _ref$timeout === void 0 ? 200 : _ref$timeout,
|
|
15789
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
15792
|
+
rest = _objectWithoutProperties(_ref, _excluded$t);
|
|
15790
15793
|
return /*#__PURE__*/React__default["default"].createElement(reactTransitionGroup.Transition, _extends({
|
|
15791
15794
|
appear: true,
|
|
15792
15795
|
in: inProp,
|
|
@@ -15836,7 +15839,7 @@
|
|
|
15836
15839
|
};
|
|
15837
15840
|
Scale.displayName = "Scale";
|
|
15838
15841
|
|
|
15839
|
-
var _excluded$
|
|
15842
|
+
var _excluded$s = ["children", "open", "onClose", "className", "enableBackgroundClick", "disableCloseOnEsc", "animate", "onClickOutside"];
|
|
15840
15843
|
var _Dialog = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
15841
15844
|
var children = _ref.children,
|
|
15842
15845
|
_ref$open = _ref.open,
|
|
@@ -15850,7 +15853,7 @@
|
|
|
15850
15853
|
_ref$animate = _ref.animate,
|
|
15851
15854
|
animate = _ref$animate === void 0 ? "slide" : _ref$animate,
|
|
15852
15855
|
onClickOutside = _ref.onClickOutside,
|
|
15853
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
15856
|
+
rest = _objectWithoutProperties(_ref, _excluded$s);
|
|
15854
15857
|
var animateDialog = function animateDialog() {
|
|
15855
15858
|
switch (animate) {
|
|
15856
15859
|
case "fade":
|
|
@@ -16601,7 +16604,7 @@
|
|
|
16601
16604
|
StyledToastMessage.displayName = "StyledToastMessage";
|
|
16602
16605
|
StyledCloseSmallIcon.displayName = "StyledCloseSmallIcon";
|
|
16603
16606
|
|
|
16604
|
-
var _excluded$
|
|
16607
|
+
var _excluded$r = ["text", "type", "onClose", "dismissible", "dropShadow", "timeout"];
|
|
16605
16608
|
var ToastMessage = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
16606
16609
|
var text = _ref.text,
|
|
16607
16610
|
type = _ref.type,
|
|
@@ -16612,7 +16615,7 @@
|
|
|
16612
16615
|
dropShadow = _ref$dropShadow === void 0 ? false : _ref$dropShadow,
|
|
16613
16616
|
_ref$timeout = _ref.timeout,
|
|
16614
16617
|
timeout = _ref$timeout === void 0 ? 0 : _ref$timeout,
|
|
16615
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
16618
|
+
rest = _objectWithoutProperties(_ref, _excluded$r);
|
|
16616
16619
|
var handleOnClose = React.useCallback(function () {
|
|
16617
16620
|
if (typeof onClose === "function") {
|
|
16618
16621
|
onClose();
|
|
@@ -16660,7 +16663,7 @@
|
|
|
16660
16663
|
});
|
|
16661
16664
|
StyledValueButton.displayName = "StyledValueButton";
|
|
16662
16665
|
|
|
16663
|
-
var _excluded$
|
|
16666
|
+
var _excluded$q = ["active", "alwaysShowIcon", "icon", "label", "value"];
|
|
16664
16667
|
var ValueButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
16665
16668
|
var _ref$active = _ref.active,
|
|
16666
16669
|
active = _ref$active === void 0 ? false : _ref$active,
|
|
@@ -16669,7 +16672,7 @@
|
|
|
16669
16672
|
icon = _ref.icon,
|
|
16670
16673
|
label = _ref.label,
|
|
16671
16674
|
value = _ref.value,
|
|
16672
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
16675
|
+
args = _objectWithoutProperties(_ref, _excluded$q);
|
|
16673
16676
|
return /*#__PURE__*/React__default["default"].createElement(StyledValueButton, _extends({
|
|
16674
16677
|
className: "c-value-button"
|
|
16675
16678
|
}, args, {
|
|
@@ -16692,12 +16695,12 @@
|
|
|
16692
16695
|
});
|
|
16693
16696
|
ValueButton.displayName = "ValueButton";
|
|
16694
16697
|
|
|
16695
|
-
var _excluded$
|
|
16698
|
+
var _excluded$p = ["children", "type"];
|
|
16696
16699
|
var Trigger = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
16697
16700
|
var children = _ref.children,
|
|
16698
16701
|
_ref$type = _ref.type,
|
|
16699
16702
|
type = _ref$type === void 0 ? "button" : _ref$type,
|
|
16700
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
16703
|
+
rest = _objectWithoutProperties(_ref, _excluded$p);
|
|
16701
16704
|
return /*#__PURE__*/React__default["default"].createElement(StyledButton, _extends({
|
|
16702
16705
|
ref: ref,
|
|
16703
16706
|
role: "button",
|
|
@@ -16751,7 +16754,7 @@
|
|
|
16751
16754
|
});
|
|
16752
16755
|
StyledCaretIcon.displayName = "StyledCaretIcon";
|
|
16753
16756
|
|
|
16754
|
-
var _excluded$
|
|
16757
|
+
var _excluded$o = ["children", "type", "size", "invalid", "open", "endAdornment", "typographyProps", "mode"];
|
|
16755
16758
|
var SelectTrigger = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
16756
16759
|
var children = _ref.children,
|
|
16757
16760
|
_ref$type = _ref.type,
|
|
@@ -16766,7 +16769,7 @@
|
|
|
16766
16769
|
typographyProps = _ref.typographyProps,
|
|
16767
16770
|
_ref$mode = _ref.mode,
|
|
16768
16771
|
mode = _ref$mode === void 0 ? "outlined" : _ref$mode,
|
|
16769
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
16772
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
16770
16773
|
var variant = React.useMemo(function () {
|
|
16771
16774
|
if (size === "big") {
|
|
16772
16775
|
return "Body 1";
|
|
@@ -16797,6 +16800,53 @@
|
|
|
16797
16800
|
});
|
|
16798
16801
|
SelectTrigger.displayName = "SelectTrigger";
|
|
16799
16802
|
|
|
16803
|
+
var _excluded$n = ["mode", "selected", "min", "max", "onChange", "target", "triggerMode"];
|
|
16804
|
+
var SelectTime = function SelectTime(_ref) {
|
|
16805
|
+
var _ref$mode = _ref.mode,
|
|
16806
|
+
mode = _ref$mode === void 0 ? "24" : _ref$mode,
|
|
16807
|
+
_ref$selected = _ref.selected,
|
|
16808
|
+
selected = _ref$selected === void 0 ? "12:00" : _ref$selected,
|
|
16809
|
+
min = _ref.min,
|
|
16810
|
+
max = _ref.max,
|
|
16811
|
+
onChange = _ref.onChange,
|
|
16812
|
+
target = _ref.target,
|
|
16813
|
+
triggerMode = _ref.triggerMode,
|
|
16814
|
+
rest = _objectWithoutProperties(_ref, _excluded$n);
|
|
16815
|
+
var generateTimeOptions = function generateTimeOptions() {
|
|
16816
|
+
var minTime = moment__default["default"](isValidTime(min) ? min : "00:00", "HH:mm");
|
|
16817
|
+
var maxTime = moment__default["default"](isValidTime(max) ? max : "23:45", "HH:mm");
|
|
16818
|
+
var options = [];
|
|
16819
|
+
var currentTime = minTime.clone();
|
|
16820
|
+
while (currentTime.isSameOrBefore(maxTime)) {
|
|
16821
|
+
options.push({
|
|
16822
|
+
id: currentTime.format("HH:mm"),
|
|
16823
|
+
name: currentTime.format(mode === "12" ? "hh:mm A" : "HH:mm")
|
|
16824
|
+
});
|
|
16825
|
+
currentTime.add(15, "minutes");
|
|
16826
|
+
}
|
|
16827
|
+
return options;
|
|
16828
|
+
};
|
|
16829
|
+
var timeOptions = generateTimeOptions();
|
|
16830
|
+
var displaySelectedTime = moment__default["default"](selected, "HH:mm").format(mode === "12" ? "hh:mm A" : "HH:mm");
|
|
16831
|
+
return /*#__PURE__*/React__default["default"].createElement(Select, {
|
|
16832
|
+
options: timeOptions,
|
|
16833
|
+
disabledInternalSort: true,
|
|
16834
|
+
selected: selected,
|
|
16835
|
+
disableSearch: true,
|
|
16836
|
+
keepSameOptionsOrder: true,
|
|
16837
|
+
target: target ? target : /*#__PURE__*/React__default["default"].createElement(SelectTrigger, _extends({
|
|
16838
|
+
mode: triggerMode
|
|
16839
|
+
}, rest), displaySelectedTime),
|
|
16840
|
+
mode: "tiny",
|
|
16841
|
+
renderOption: function renderOption(_ref2) {
|
|
16842
|
+
var name = _ref2.name;
|
|
16843
|
+
return /*#__PURE__*/React__default["default"].createElement("div", null, name);
|
|
16844
|
+
},
|
|
16845
|
+
onChange: onChange,
|
|
16846
|
+
forceCloseMenu: true
|
|
16847
|
+
});
|
|
16848
|
+
};
|
|
16849
|
+
|
|
16800
16850
|
var StyledToggleSlider = styled__default["default"].div.withConfig({
|
|
16801
16851
|
displayName: "Styles__StyledToggleSlider",
|
|
16802
16852
|
componentId: "sc-4n6vdf-0"
|
|
@@ -20075,6 +20125,7 @@
|
|
|
20075
20125
|
exports.SearchLargeIcon = SearchLargeIcon$1;
|
|
20076
20126
|
exports.Select = Select;
|
|
20077
20127
|
exports.SelectDate = SelectDate;
|
|
20128
|
+
exports.SelectTime = SelectTime;
|
|
20078
20129
|
exports.SelectTrigger = SelectTrigger;
|
|
20079
20130
|
exports.SendBlankIcon = SendBlankIcon$1;
|
|
20080
20131
|
exports.SendFilledIcon = SendFilledIcon$1;
|