@activecollab/components 2.0.87 → 2.0.89
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/Icons/collection/ArrowDownSmall.js +46 -0
- package/dist/cjs/components/Icons/collection/ArrowDownSmall.js.map +1 -0
- package/dist/cjs/components/Icons/collection/index.js +7 -0
- package/dist/cjs/components/Icons/collection/index.js.map +1 -1
- package/dist/cjs/components/Input/InputSelectTrigger.js +37 -0
- package/dist/cjs/components/Input/InputSelectTrigger.js.map +1 -0
- package/dist/cjs/components/Input/InputUrl.js +125 -0
- package/dist/cjs/components/Input/InputUrl.js.map +1 -0
- package/dist/cjs/components/Input/Styles.js +18 -1
- package/dist/cjs/components/Input/Styles.js.map +1 -1
- package/dist/cjs/components/Input/index.js +11 -0
- package/dist/cjs/components/Input/index.js.map +1 -1
- package/dist/cjs/utils/validation.js +9 -1
- package/dist/cjs/utils/validation.js.map +1 -1
- package/dist/esm/components/Icons/collection/ArrowDownSmall.d.ts +23 -0
- package/dist/esm/components/Icons/collection/ArrowDownSmall.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/ArrowDownSmall.js +44 -0
- package/dist/esm/components/Icons/collection/ArrowDownSmall.js.map +1 -0
- package/dist/esm/components/Icons/collection/index.d.ts +1 -0
- package/dist/esm/components/Icons/collection/index.d.ts.map +1 -1
- package/dist/esm/components/Icons/collection/index.js +7 -0
- package/dist/esm/components/Icons/collection/index.js.map +1 -1
- package/dist/esm/components/Input/InputSelectTrigger.d.ts +11 -0
- package/dist/esm/components/Input/InputSelectTrigger.d.ts.map +1 -0
- package/dist/esm/components/Input/InputSelectTrigger.js +39 -0
- package/dist/esm/components/Input/InputSelectTrigger.js.map +1 -0
- package/dist/esm/components/Input/InputUrl.d.ts +12 -0
- package/dist/esm/components/Input/InputUrl.d.ts.map +1 -0
- package/dist/esm/components/Input/InputUrl.js +114 -0
- package/dist/esm/components/Input/InputUrl.js.map +1 -0
- package/dist/esm/components/Input/Styles.d.ts +4 -0
- package/dist/esm/components/Input/Styles.d.ts.map +1 -1
- package/dist/esm/components/Input/Styles.js +16 -1
- package/dist/esm/components/Input/Styles.js.map +1 -1
- package/dist/esm/components/Input/index.d.ts +1 -0
- package/dist/esm/components/Input/index.d.ts.map +1 -1
- package/dist/esm/components/Input/index.js +11 -0
- package/dist/esm/components/Input/index.js.map +1 -1
- package/dist/esm/utils/validation.d.ts +1 -0
- package/dist/esm/utils/validation.d.ts.map +1 -1
- package/dist/esm/utils/validation.js +10 -1
- package/dist/esm/utils/validation.js.map +1 -1
- package/dist/index.js +297 -102
- 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$1u = ["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$1u);
|
|
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$1t = ["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$1t);
|
|
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$1s = ["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$1s);
|
|
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$1r = ["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$1r);
|
|
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$1q = ["className"];
|
|
385
385
|
var ListSeparator = function ListSeparator(_ref) {
|
|
386
386
|
var className = _ref.className,
|
|
387
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
387
|
+
props = _objectWithoutProperties(_ref, _excluded$1q);
|
|
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$1p = ["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$1p);
|
|
399
399
|
return /*#__PURE__*/React__default["default"].createElement(StyledList, _extends({
|
|
400
400
|
className: className,
|
|
401
401
|
ref: ref,
|
|
@@ -616,6 +616,14 @@
|
|
|
616
616
|
var regexString = `^(-?\\d{0,${limit}}(?:\\${decimalSeparator}\\d{0,${decimalLength}})?)?$`;
|
|
617
617
|
return new RegExp(regexString).test(numericInput);
|
|
618
618
|
};
|
|
619
|
+
var isValidUrl = function isValidUrl(string) {
|
|
620
|
+
try {
|
|
621
|
+
new URL(string);
|
|
622
|
+
return true;
|
|
623
|
+
} catch (_) {
|
|
624
|
+
return false;
|
|
625
|
+
}
|
|
626
|
+
};
|
|
619
627
|
|
|
620
628
|
function setRef(ref, value) {
|
|
621
629
|
if (typeof ref === "function") {
|
|
@@ -757,7 +765,7 @@
|
|
|
757
765
|
return size === "big" && styled.css(["width:40px;"]);
|
|
758
766
|
});
|
|
759
767
|
|
|
760
|
-
var _excluded$
|
|
768
|
+
var _excluded$1o = ["children", "className", "variant", "size", "active"];
|
|
761
769
|
|
|
762
770
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
763
771
|
|
|
@@ -787,7 +795,7 @@
|
|
|
787
795
|
variant = _ref.variant,
|
|
788
796
|
size = _ref.size,
|
|
789
797
|
active = _ref.active,
|
|
790
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
798
|
+
args = _objectWithoutProperties(_ref, _excluded$1o);
|
|
791
799
|
return /*#__PURE__*/React__default["default"].createElement(StyledIconButton, _extends({
|
|
792
800
|
className: className,
|
|
793
801
|
variant: variant,
|
|
@@ -1071,6 +1079,43 @@
|
|
|
1071
1079
|
ArrowDownLongIcon.displayName = "ArrowDownLongIcon";
|
|
1072
1080
|
var ArrowDownLongIcon$1 = ArrowDownLongIcon;
|
|
1073
1081
|
|
|
1082
|
+
/**
|
|
1083
|
+
* @component ArrowDownSmallIcon
|
|
1084
|
+
* @description
|
|
1085
|
+
*
|
|
1086
|
+
* The React Icon component is a visual element that displays an icon to represent a concept, object, or action.
|
|
1087
|
+
* The Icon component is
|
|
1088
|
+
* customizable, allowing for variations in size, color, and style to fit the needs of the application.
|
|
1089
|
+
*
|
|
1090
|
+
*
|
|
1091
|
+
* @example
|
|
1092
|
+
* return (
|
|
1093
|
+
* <ArrowDownSmallIcon className="mr-2" />
|
|
1094
|
+
* )
|
|
1095
|
+
*
|
|
1096
|
+
* @see
|
|
1097
|
+
* https://system.activecollab.com/?path=/story/foundation-icons-icons--icons
|
|
1098
|
+
* @see
|
|
1099
|
+
* https://design.activecollab.com/docs/foundations/icons
|
|
1100
|
+
*/
|
|
1101
|
+
var ArrowDownSmallIcon = /*#__PURE__*/React__default["default"].forwardRef(function (props, svgRef) {
|
|
1102
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1103
|
+
width: 16,
|
|
1104
|
+
height: 16,
|
|
1105
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1106
|
+
"data-testid": "ArrowDownSmallIcon",
|
|
1107
|
+
fill: "var(--color-theme-600)",
|
|
1108
|
+
focusable: false,
|
|
1109
|
+
ref: svgRef
|
|
1110
|
+
}, props), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
1111
|
+
fillRule: "evenodd",
|
|
1112
|
+
clipRule: "evenodd",
|
|
1113
|
+
d: "M10.248 6.843a.662.662 0 01.9 0 .578.578 0 010 .85L8 10.666 4.853 7.692a.578.578 0 010-.85.662.662 0 01.9 0L8 8.968l2.248-2.124z"
|
|
1114
|
+
}));
|
|
1115
|
+
});
|
|
1116
|
+
ArrowDownSmallIcon.displayName = "ArrowDownSmallIcon";
|
|
1117
|
+
var ArrowDownSmallIcon$1 = ArrowDownSmallIcon;
|
|
1118
|
+
|
|
1074
1119
|
/**
|
|
1075
1120
|
* @component ArrowDownIcon
|
|
1076
1121
|
* @description
|
|
@@ -7542,7 +7587,7 @@
|
|
|
7542
7587
|
}, FontStyle, BoxSizingStyle);
|
|
7543
7588
|
StyledBubble.displayName = "StyledBubble";
|
|
7544
7589
|
|
|
7545
|
-
var _excluded$
|
|
7590
|
+
var _excluded$1n = ["children", "className", "innerRef", "style"];
|
|
7546
7591
|
var Bubble = function Bubble(_ref) {
|
|
7547
7592
|
var children = _ref.children,
|
|
7548
7593
|
className = _ref.className,
|
|
@@ -7550,7 +7595,7 @@
|
|
|
7550
7595
|
innerRef = _ref$innerRef === void 0 ? null : _ref$innerRef,
|
|
7551
7596
|
_ref$style = _ref.style,
|
|
7552
7597
|
style = _ref$style === void 0 ? {} : _ref$style,
|
|
7553
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
7598
|
+
rest = _objectWithoutProperties(_ref, _excluded$1n);
|
|
7554
7599
|
return /*#__PURE__*/React__default["default"].createElement(StyledBubble, _extends({}, rest, {
|
|
7555
7600
|
ref: innerRef,
|
|
7556
7601
|
className: classNames__default["default"]("c-bubble", className),
|
|
@@ -7611,12 +7656,12 @@
|
|
|
7611
7656
|
});
|
|
7612
7657
|
StyledOverlay.displayName = "StyledOverlay";
|
|
7613
7658
|
|
|
7614
|
-
var _excluded$
|
|
7659
|
+
var _excluded$1m = ["className", "disableBackgroundColor"];
|
|
7615
7660
|
var Overlay = function Overlay(_ref) {
|
|
7616
7661
|
var className = _ref.className,
|
|
7617
7662
|
_ref$disableBackgroun = _ref.disableBackgroundColor,
|
|
7618
7663
|
disableBackgroundColor = _ref$disableBackgroun === void 0 ? false : _ref$disableBackgroun,
|
|
7619
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
7664
|
+
rest = _objectWithoutProperties(_ref, _excluded$1m);
|
|
7620
7665
|
return /*#__PURE__*/React__default["default"].createElement(StyledOverlay, _extends({
|
|
7621
7666
|
className: classNames__default["default"]("c-overlay", className),
|
|
7622
7667
|
$disableBackgroundColor: disableBackgroundColor
|
|
@@ -7629,7 +7674,7 @@
|
|
|
7629
7674
|
componentId: "sc-1hgjasy-0"
|
|
7630
7675
|
})(["&[data-popper-reference-hidden]{display:none !important;pointer-events:none !important;}"]);
|
|
7631
7676
|
|
|
7632
|
-
var _excluded$
|
|
7677
|
+
var _excluded$1l = ["children", "anchorEl", "open", "style", "transition", "placement", "strategy", "afterWrite"];
|
|
7633
7678
|
var Popper = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
7634
7679
|
var children = _ref.children,
|
|
7635
7680
|
anchorEl = _ref.anchorEl,
|
|
@@ -7643,7 +7688,7 @@
|
|
|
7643
7688
|
_ref$strategy = _ref.strategy,
|
|
7644
7689
|
strategy = _ref$strategy === void 0 ? "absolute" : _ref$strategy,
|
|
7645
7690
|
afterWrite = _ref.afterWrite,
|
|
7646
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
7691
|
+
rest = _objectWithoutProperties(_ref, _excluded$1l);
|
|
7647
7692
|
var _useState = React.useState(true),
|
|
7648
7693
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7649
7694
|
exited = _useState2[0],
|
|
@@ -7790,7 +7835,7 @@
|
|
|
7790
7835
|
};
|
|
7791
7836
|
var LayerContext$1 = LayerContext;
|
|
7792
7837
|
|
|
7793
|
-
var _excluded$
|
|
7838
|
+
var _excluded$1k = ["children", "onClose", "className", "style", "onKeyDown", "disableFocusLock", "disableScrollLock", "disableCloseOnEsc", "onClick"];
|
|
7794
7839
|
var returnFocus = {
|
|
7795
7840
|
preventScroll: true
|
|
7796
7841
|
};
|
|
@@ -7807,7 +7852,7 @@
|
|
|
7807
7852
|
_ref$disableCloseOnEs = _ref.disableCloseOnEsc,
|
|
7808
7853
|
disableCloseOnEsc = _ref$disableCloseOnEs === void 0 ? false : _ref$disableCloseOnEs,
|
|
7809
7854
|
onClick = _ref.onClick,
|
|
7810
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
7855
|
+
rest = _objectWithoutProperties(_ref, _excluded$1k);
|
|
7811
7856
|
var innerRef = React.useRef(null);
|
|
7812
7857
|
var handleRef = useForkRef(innerRef, ref);
|
|
7813
7858
|
var _useLayerContext = useLayerContext(),
|
|
@@ -8118,7 +8163,7 @@
|
|
|
8118
8163
|
});
|
|
8119
8164
|
StyledTypography.displayName = "StyledTypography";
|
|
8120
8165
|
|
|
8121
|
-
var _excluded$
|
|
8166
|
+
var _excluded$1j = ["variant", "as", "color", "italic", "tabularNums", "letterSpacing", "lineHeight", "align", "decoration", "transform", "overflow", "whitespace", "wordBreak", "weight", "className", "children"];
|
|
8122
8167
|
var Typography = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
8123
8168
|
var _ref$variant = _ref.variant,
|
|
8124
8169
|
variant = _ref$variant === void 0 ? "Title 1" : _ref$variant,
|
|
@@ -8149,7 +8194,7 @@
|
|
|
8149
8194
|
weight = _ref$weight === void 0 ? "regular" : _ref$weight,
|
|
8150
8195
|
className = _ref.className,
|
|
8151
8196
|
children = _ref.children,
|
|
8152
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8197
|
+
props = _objectWithoutProperties(_ref, _excluded$1j);
|
|
8153
8198
|
var Component = as || "div";
|
|
8154
8199
|
return /*#__PURE__*/React__default["default"].createElement(StyledTypography, _extends({
|
|
8155
8200
|
as: Component,
|
|
@@ -8172,13 +8217,13 @@
|
|
|
8172
8217
|
});
|
|
8173
8218
|
Typography.displayName = "Typography";
|
|
8174
8219
|
|
|
8175
|
-
var _excluded$
|
|
8220
|
+
var _excluded$1i = ["title", "className", "leftElement", "rightElement"];
|
|
8176
8221
|
var MenuHeader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
8177
8222
|
var title = _ref.title,
|
|
8178
8223
|
className = _ref.className,
|
|
8179
8224
|
leftElement = _ref.leftElement,
|
|
8180
8225
|
rightElement = _ref.rightElement,
|
|
8181
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8226
|
+
props = _objectWithoutProperties(_ref, _excluded$1i);
|
|
8182
8227
|
return /*#__PURE__*/React__default["default"].createElement(StyledMenuHeader, _extends({}, props, {
|
|
8183
8228
|
className: classNames__default["default"]("c-menu-header", className),
|
|
8184
8229
|
ref: ref
|
|
@@ -8203,11 +8248,11 @@
|
|
|
8203
8248
|
});
|
|
8204
8249
|
MenuHeader.displayName = "MenuHeader";
|
|
8205
8250
|
|
|
8206
|
-
var _excluded$
|
|
8251
|
+
var _excluded$1h = ["children", "className"];
|
|
8207
8252
|
var MenuFooter = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
8208
8253
|
var children = _ref.children,
|
|
8209
8254
|
className = _ref.className,
|
|
8210
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8255
|
+
props = _objectWithoutProperties(_ref, _excluded$1h);
|
|
8211
8256
|
return /*#__PURE__*/React__default["default"].createElement(StyledMenuFooter$1, _extends({}, props, {
|
|
8212
8257
|
className: classNames__default["default"]("c-menu-footer", className),
|
|
8213
8258
|
ref: ref
|
|
@@ -8215,14 +8260,14 @@
|
|
|
8215
8260
|
});
|
|
8216
8261
|
MenuFooter.displayName = "MenuFooter";
|
|
8217
8262
|
|
|
8218
|
-
var _excluded$
|
|
8263
|
+
var _excluded$1g = ["children", "className", "separator"];
|
|
8219
8264
|
var Breadcrumbs = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
8220
8265
|
var _dimensions$width, _childDimensions$widt;
|
|
8221
8266
|
var children = _ref.children,
|
|
8222
8267
|
className = _ref.className,
|
|
8223
8268
|
_ref$separator = _ref.separator,
|
|
8224
8269
|
separator = _ref$separator === void 0 ? "/" : _ref$separator,
|
|
8225
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
8270
|
+
rest = _objectWithoutProperties(_ref, _excluded$1g);
|
|
8226
8271
|
var internalRef = React.useRef(null);
|
|
8227
8272
|
var listWrapperRef = React.useRef(null);
|
|
8228
8273
|
var olRef = React.useRef(null);
|
|
@@ -8400,12 +8445,12 @@
|
|
|
8400
8445
|
}, value && value > 100 ? 99 + "+" : value);
|
|
8401
8446
|
};
|
|
8402
8447
|
|
|
8403
|
-
var _excluded$
|
|
8448
|
+
var _excluded$1f = ["weight", "children"];
|
|
8404
8449
|
var Body2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
8405
8450
|
var _ref$weight = _ref.weight,
|
|
8406
8451
|
weight = _ref$weight === void 0 ? "regular" : _ref$weight,
|
|
8407
8452
|
children = _ref.children,
|
|
8408
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8453
|
+
props = _objectWithoutProperties(_ref, _excluded$1f);
|
|
8409
8454
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
8410
8455
|
variant: "Body 2",
|
|
8411
8456
|
weight: weight,
|
|
@@ -8513,10 +8558,10 @@
|
|
|
8513
8558
|
};
|
|
8514
8559
|
FromElement.displayName = "FromElement";
|
|
8515
8560
|
|
|
8516
|
-
var _excluded$
|
|
8561
|
+
var _excluded$1e = ["children"];
|
|
8517
8562
|
var TooltipAnimation = function TooltipAnimation(_ref) {
|
|
8518
8563
|
var children = _ref.children,
|
|
8519
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8564
|
+
props = _objectWithoutProperties(_ref, _excluded$1e);
|
|
8520
8565
|
return /*#__PURE__*/React__default["default"].createElement(FromElement, _extends({
|
|
8521
8566
|
timeout: 0
|
|
8522
8567
|
}, props), children);
|
|
@@ -8591,7 +8636,7 @@
|
|
|
8591
8636
|
});
|
|
8592
8637
|
Tooltip.displayName = "Tooltip";
|
|
8593
8638
|
|
|
8594
|
-
var _excluded$
|
|
8639
|
+
var _excluded$1d = ["label", "icon", "active", "counter", "tooltipText", "onClearAll", "className", "labelClassName", "disabled"];
|
|
8595
8640
|
var CounterButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
8596
8641
|
var label = _ref.label,
|
|
8597
8642
|
icon = _ref.icon,
|
|
@@ -8604,7 +8649,7 @@
|
|
|
8604
8649
|
labelClassName = _ref.labelClassName,
|
|
8605
8650
|
_ref$disabled = _ref.disabled,
|
|
8606
8651
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
8607
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
8652
|
+
args = _objectWithoutProperties(_ref, _excluded$1d);
|
|
8608
8653
|
return /*#__PURE__*/React__default["default"].createElement(StyledCounterButtonWrapper, {
|
|
8609
8654
|
ref: ref,
|
|
8610
8655
|
className: className
|
|
@@ -8999,7 +9044,7 @@
|
|
|
8999
9044
|
};
|
|
9000
9045
|
YearMonthPicker.displayName = "YearMonthPicker";
|
|
9001
9046
|
|
|
9002
|
-
var _excluded$
|
|
9047
|
+
var _excluded$1c = ["className", "onChange", "onDayClick", "selectedDays", "disabledDays", "selectionMode", "month", "onMonthChange", "dateRequired", "firstDayOfWeek", "fixedWeeks", "modifiers", "renderDay"];
|
|
9003
9048
|
var formatWeekdayName = function formatWeekdayName(str) {
|
|
9004
9049
|
return moment__default["default"](str).format("ddd").charAt(0);
|
|
9005
9050
|
};
|
|
@@ -9025,7 +9070,7 @@
|
|
|
9025
9070
|
fixedWeeks = _ref$fixedWeeks === void 0 ? true : _ref$fixedWeeks,
|
|
9026
9071
|
defaultModifiers = _ref.modifiers,
|
|
9027
9072
|
renderDay = _ref.renderDay,
|
|
9028
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
9073
|
+
rest = _objectWithoutProperties(_ref, _excluded$1c);
|
|
9029
9074
|
var _useState = React.useState(),
|
|
9030
9075
|
_useState2 = _slicedToArray(_useState, 2),
|
|
9031
9076
|
enteredTo = _useState2[0],
|
|
@@ -9857,10 +9902,10 @@
|
|
|
9857
9902
|
componentId: "sc-1n0a2yl-0"
|
|
9858
9903
|
})(["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);
|
|
9859
9904
|
|
|
9860
|
-
var _excluded$
|
|
9905
|
+
var _excluded$1b = ["className"];
|
|
9861
9906
|
var SkeletonLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9862
9907
|
var className = _ref.className,
|
|
9863
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
9908
|
+
rest = _objectWithoutProperties(_ref, _excluded$1b);
|
|
9864
9909
|
return /*#__PURE__*/React__default["default"].createElement(StyledSkeletonLoader, _extends({
|
|
9865
9910
|
ref: ref,
|
|
9866
9911
|
className: classNames__default["default"]("c-loader c-loader--linear", className)
|
|
@@ -9874,10 +9919,10 @@
|
|
|
9874
9919
|
componentId: "sc-1f35d5h-0"
|
|
9875
9920
|
})(["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);
|
|
9876
9921
|
|
|
9877
|
-
var _excluded$
|
|
9922
|
+
var _excluded$1a = ["className"];
|
|
9878
9923
|
var DotsLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9879
9924
|
var className = _ref.className,
|
|
9880
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
9925
|
+
rest = _objectWithoutProperties(_ref, _excluded$1a);
|
|
9881
9926
|
return /*#__PURE__*/React__default["default"].createElement(StyledDotsLoader, _extends({
|
|
9882
9927
|
ref: ref,
|
|
9883
9928
|
className: classNames__default["default"]("c-loader c-loader--dots", className)
|
|
@@ -9899,7 +9944,7 @@
|
|
|
9899
9944
|
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);
|
|
9900
9945
|
});
|
|
9901
9946
|
|
|
9902
|
-
var _excluded$
|
|
9947
|
+
var _excluded$19 = ["radius", "stroke", "activeStrokeColor", "inactiveStrokeColor", "activeColorPercentage", "rotateDurationInSeconds", "className"];
|
|
9903
9948
|
var SpinnerLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9904
9949
|
var _ref$radius = _ref.radius,
|
|
9905
9950
|
radius = _ref$radius === void 0 ? 10 : _ref$radius,
|
|
@@ -9914,7 +9959,7 @@
|
|
|
9914
9959
|
_ref$rotateDurationIn = _ref.rotateDurationInSeconds,
|
|
9915
9960
|
rotateDurationInSeconds = _ref$rotateDurationIn === void 0 ? 0.75 : _ref$rotateDurationIn,
|
|
9916
9961
|
className = _ref.className,
|
|
9917
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
9962
|
+
rest = _objectWithoutProperties(_ref, _excluded$19);
|
|
9918
9963
|
return /*#__PURE__*/React__default["default"].createElement(StyledSpinnerLoader$1, _extends({
|
|
9919
9964
|
ref: ref,
|
|
9920
9965
|
className: className,
|
|
@@ -9953,7 +9998,7 @@
|
|
|
9953
9998
|
});
|
|
9954
9999
|
StyledLinearLoader.displayName = "StyledLinearLoader";
|
|
9955
10000
|
|
|
9956
|
-
var _excluded$
|
|
10001
|
+
var _excluded$18 = ["height", "activeStrokeColor", "inactiveStrokeColor", "activeColorPercentage", "animationDuration"];
|
|
9957
10002
|
var LinearLoader = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
9958
10003
|
var _ref$height = _ref.height,
|
|
9959
10004
|
height = _ref$height === void 0 ? 4 : _ref$height,
|
|
@@ -9965,7 +10010,7 @@
|
|
|
9965
10010
|
activeColorPercentage = _ref$activeColorPerce === void 0 ? "25%" : _ref$activeColorPerce,
|
|
9966
10011
|
_ref$animationDuratio = _ref.animationDuration,
|
|
9967
10012
|
animationDuration = _ref$animationDuratio === void 0 ? 0.75 : _ref$animationDuratio,
|
|
9968
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10013
|
+
rest = _objectWithoutProperties(_ref, _excluded$18);
|
|
9969
10014
|
return /*#__PURE__*/React__default["default"].createElement(StyledLinearLoader, _extends({
|
|
9970
10015
|
ref: ref,
|
|
9971
10016
|
$height: height,
|
|
@@ -9977,7 +10022,7 @@
|
|
|
9977
10022
|
});
|
|
9978
10023
|
LinearLoader.displayName = "LinearLoader";
|
|
9979
10024
|
|
|
9980
|
-
var _excluded$
|
|
10025
|
+
var _excluded$17 = ["header", "rows", "className", "sortBy", "sortDirection", "onSortCallback", "theadClass", "noResultsCallback", "groupBy", "groupHead", "isCollapsible", "emptyValue", "loading", "loadingRows"];
|
|
9981
10026
|
var SortDirection = /*#__PURE__*/function (SortDirection) {
|
|
9982
10027
|
SortDirection["None"] = "none";
|
|
9983
10028
|
SortDirection["Asc"] = "asc";
|
|
@@ -10027,7 +10072,7 @@
|
|
|
10027
10072
|
loading = _ref.loading,
|
|
10028
10073
|
_ref$loadingRows = _ref.loadingRows,
|
|
10029
10074
|
loadingRows = _ref$loadingRows === void 0 ? 7 : _ref$loadingRows,
|
|
10030
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
10075
|
+
args = _objectWithoutProperties(_ref, _excluded$17);
|
|
10031
10076
|
var _useState = React.useState(sortDirection),
|
|
10032
10077
|
_useState2 = _slicedToArray(_useState, 2),
|
|
10033
10078
|
columnDirection = _useState2[0],
|
|
@@ -10387,7 +10432,7 @@
|
|
|
10387
10432
|
});
|
|
10388
10433
|
StyledCompleteCheckbox.displayName = "StyledCompleteCheckbox";
|
|
10389
10434
|
|
|
10390
|
-
var _excluded$
|
|
10435
|
+
var _excluded$16 = ["completed", "disabled", "animate", "onClick", "className", "primary", "checkMarkClassName"];
|
|
10391
10436
|
var CompleteCheckbox = function CompleteCheckbox(_ref) {
|
|
10392
10437
|
var _ref$completed = _ref.completed,
|
|
10393
10438
|
completed = _ref$completed === void 0 ? false : _ref$completed,
|
|
@@ -10400,7 +10445,7 @@
|
|
|
10400
10445
|
_ref$primary = _ref.primary,
|
|
10401
10446
|
primary = _ref$primary === void 0 ? false : _ref$primary,
|
|
10402
10447
|
checkMarkClassName = _ref.checkMarkClassName,
|
|
10403
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10448
|
+
rest = _objectWithoutProperties(_ref, _excluded$16);
|
|
10404
10449
|
return /*#__PURE__*/React__default["default"].createElement(StyledCompleteCheckbox, _extends({
|
|
10405
10450
|
onClick: onClick,
|
|
10406
10451
|
className: classNames__default["default"]("c-complete-checkbox", className),
|
|
@@ -10431,7 +10476,7 @@
|
|
|
10431
10476
|
});
|
|
10432
10477
|
StyledPaper.displayName = "StyledPaper";
|
|
10433
10478
|
|
|
10434
|
-
var _excluded$
|
|
10479
|
+
var _excluded$15 = ["children", "className", "type", "hover", "useOptimizedShadow"];
|
|
10435
10480
|
/**
|
|
10436
10481
|
* This is a component description and should sit directly above your component
|
|
10437
10482
|
*/
|
|
@@ -10444,7 +10489,7 @@
|
|
|
10444
10489
|
hover = _ref$hover === void 0 ? false : _ref$hover,
|
|
10445
10490
|
_ref$useOptimizedShad = _ref.useOptimizedShadow,
|
|
10446
10491
|
useOptimizedShadow = _ref$useOptimizedShad === void 0 ? false : _ref$useOptimizedShad,
|
|
10447
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10492
|
+
rest = _objectWithoutProperties(_ref, _excluded$15);
|
|
10448
10493
|
return /*#__PURE__*/React__default["default"].createElement(StyledPaper, _extends({
|
|
10449
10494
|
className: classNames__default["default"](className, {
|
|
10450
10495
|
"ac-shadow--raised--lg": !useOptimizedShadow && hover && type === "paper-1",
|
|
@@ -10497,7 +10542,7 @@
|
|
|
10497
10542
|
});
|
|
10498
10543
|
StyledCard.displayName = "StyledCard";
|
|
10499
10544
|
|
|
10500
|
-
var _excluded$
|
|
10545
|
+
var _excluded$14 = ["children", "className", "hoverable", "paperType"];
|
|
10501
10546
|
var Card = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
10502
10547
|
var children = _ref.children,
|
|
10503
10548
|
className = _ref.className,
|
|
@@ -10505,7 +10550,7 @@
|
|
|
10505
10550
|
hoverable = _ref$hoverable === void 0 ? false : _ref$hoverable,
|
|
10506
10551
|
_ref$paperType = _ref.paperType,
|
|
10507
10552
|
paperType = _ref$paperType === void 0 ? "paper-2" : _ref$paperType,
|
|
10508
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10553
|
+
rest = _objectWithoutProperties(_ref, _excluded$14);
|
|
10509
10554
|
return /*#__PURE__*/React__default["default"].createElement(StyledCard, _extends({}, rest, {
|
|
10510
10555
|
type: paperType,
|
|
10511
10556
|
className: classNames__default["default"]("c-card", className),
|
|
@@ -10612,12 +10657,12 @@
|
|
|
10612
10657
|
});
|
|
10613
10658
|
StyledIcon$1.displayName = "StyledIcon";
|
|
10614
10659
|
|
|
10615
|
-
var _excluded$
|
|
10660
|
+
var _excluded$13 = ["weight", "children"];
|
|
10616
10661
|
var Title1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
10617
10662
|
var _ref$weight = _ref.weight,
|
|
10618
10663
|
weight = _ref$weight === void 0 ? "light" : _ref$weight,
|
|
10619
10664
|
children = _ref.children,
|
|
10620
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
10665
|
+
props = _objectWithoutProperties(_ref, _excluded$13);
|
|
10621
10666
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
10622
10667
|
weight: weight,
|
|
10623
10668
|
variant: "Title 1",
|
|
@@ -10626,12 +10671,12 @@
|
|
|
10626
10671
|
});
|
|
10627
10672
|
Title1.displayName = "Title1";
|
|
10628
10673
|
|
|
10629
|
-
var _excluded$
|
|
10674
|
+
var _excluded$12 = ["weight", "children"];
|
|
10630
10675
|
var Title2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
10631
10676
|
var _ref$weight = _ref.weight,
|
|
10632
10677
|
weight = _ref$weight === void 0 ? "light" : _ref$weight,
|
|
10633
10678
|
children = _ref.children,
|
|
10634
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
10679
|
+
props = _objectWithoutProperties(_ref, _excluded$12);
|
|
10635
10680
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
10636
10681
|
weight: weight,
|
|
10637
10682
|
variant: "Title 2",
|
|
@@ -10640,10 +10685,10 @@
|
|
|
10640
10685
|
});
|
|
10641
10686
|
Title2.displayName = "Title2";
|
|
10642
10687
|
|
|
10643
|
-
var _excluded$
|
|
10688
|
+
var _excluded$11 = ["children"];
|
|
10644
10689
|
var Header2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
10645
10690
|
var children = _ref.children,
|
|
10646
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
10691
|
+
props = _objectWithoutProperties(_ref, _excluded$11);
|
|
10647
10692
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
10648
10693
|
weight: "bold",
|
|
10649
10694
|
variant: "Header 2",
|
|
@@ -10652,10 +10697,10 @@
|
|
|
10652
10697
|
});
|
|
10653
10698
|
Header2.displayName = "Header2";
|
|
10654
10699
|
|
|
10655
|
-
var _excluded
|
|
10700
|
+
var _excluded$10 = ["children"];
|
|
10656
10701
|
var Header3 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
10657
10702
|
var children = _ref.children,
|
|
10658
|
-
props = _objectWithoutProperties(_ref, _excluded
|
|
10703
|
+
props = _objectWithoutProperties(_ref, _excluded$10);
|
|
10659
10704
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
10660
10705
|
weight: "bold",
|
|
10661
10706
|
variant: "Header 3",
|
|
@@ -10664,12 +10709,12 @@
|
|
|
10664
10709
|
});
|
|
10665
10710
|
Header3.displayName = "Header3";
|
|
10666
10711
|
|
|
10667
|
-
var _excluded
|
|
10712
|
+
var _excluded$$ = ["weight", "children"];
|
|
10668
10713
|
var Body1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
10669
10714
|
var _ref$weight = _ref.weight,
|
|
10670
10715
|
weight = _ref$weight === void 0 ? "regular" : _ref$weight,
|
|
10671
10716
|
children = _ref.children,
|
|
10672
|
-
props = _objectWithoutProperties(_ref, _excluded
|
|
10717
|
+
props = _objectWithoutProperties(_ref, _excluded$$);
|
|
10673
10718
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
10674
10719
|
variant: "Body 1",
|
|
10675
10720
|
weight: weight,
|
|
@@ -10678,12 +10723,12 @@
|
|
|
10678
10723
|
});
|
|
10679
10724
|
Body1.displayName = "Body1";
|
|
10680
10725
|
|
|
10681
|
-
var _excluded$
|
|
10726
|
+
var _excluded$_ = ["weight", "children"];
|
|
10682
10727
|
var Caption1 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
10683
10728
|
var _ref$weight = _ref.weight,
|
|
10684
10729
|
weight = _ref$weight === void 0 ? "regular" : _ref$weight,
|
|
10685
10730
|
children = _ref.children,
|
|
10686
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
10731
|
+
props = _objectWithoutProperties(_ref, _excluded$_);
|
|
10687
10732
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
10688
10733
|
variant: "Caption 1",
|
|
10689
10734
|
weight: weight,
|
|
@@ -10692,12 +10737,12 @@
|
|
|
10692
10737
|
});
|
|
10693
10738
|
Caption1.displayName = "Caption1";
|
|
10694
10739
|
|
|
10695
|
-
var _excluded$
|
|
10740
|
+
var _excluded$Z = ["weight", "children"];
|
|
10696
10741
|
var Caption2 = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
10697
10742
|
var _ref$weight = _ref.weight,
|
|
10698
10743
|
weight = _ref$weight === void 0 ? "regular" : _ref$weight,
|
|
10699
10744
|
children = _ref.children,
|
|
10700
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
10745
|
+
props = _objectWithoutProperties(_ref, _excluded$Z);
|
|
10701
10746
|
return /*#__PURE__*/React__default["default"].createElement(Typography, _extends({
|
|
10702
10747
|
variant: "Caption 2",
|
|
10703
10748
|
weight: weight,
|
|
@@ -10781,7 +10826,7 @@
|
|
|
10781
10826
|
componentId: "sc-5x2tyd-1"
|
|
10782
10827
|
})(["border-radius:100%;object-fit:cover;"]);
|
|
10783
10828
|
|
|
10784
|
-
var _excluded$
|
|
10829
|
+
var _excluded$Y = ["url", "alt", "size", "className", "imgClassName", "children"];
|
|
10785
10830
|
/**
|
|
10786
10831
|
* @component Avatar
|
|
10787
10832
|
* @description
|
|
@@ -10816,7 +10861,7 @@
|
|
|
10816
10861
|
className = _ref.className,
|
|
10817
10862
|
imgClassName = _ref.imgClassName,
|
|
10818
10863
|
children = _ref.children,
|
|
10819
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10864
|
+
rest = _objectWithoutProperties(_ref, _excluded$Y);
|
|
10820
10865
|
var _useState = React.useState(false),
|
|
10821
10866
|
_useState2 = _slicedToArray(_useState, 2),
|
|
10822
10867
|
imageLoaded = _useState2[0],
|
|
@@ -10857,13 +10902,13 @@
|
|
|
10857
10902
|
return props.$color && styled.css(["background-color:", ";"], props.$color);
|
|
10858
10903
|
});
|
|
10859
10904
|
|
|
10860
|
-
var _excluded$
|
|
10905
|
+
var _excluded$X = ["color", "size", "className"];
|
|
10861
10906
|
var Dot = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
10862
10907
|
var color = _ref.color,
|
|
10863
10908
|
_ref$size = _ref.size,
|
|
10864
10909
|
size = _ref$size === void 0 ? 8 : _ref$size,
|
|
10865
10910
|
className = _ref.className,
|
|
10866
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10911
|
+
rest = _objectWithoutProperties(_ref, _excluded$X);
|
|
10867
10912
|
return /*#__PURE__*/React__default["default"].createElement(StyledDot, _extends({
|
|
10868
10913
|
className: classNames__default["default"]("c-dot", className),
|
|
10869
10914
|
ref: ref,
|
|
@@ -10900,7 +10945,7 @@
|
|
|
10900
10945
|
});
|
|
10901
10946
|
StyledTagText.displayName = "StyledTagText";
|
|
10902
10947
|
|
|
10903
|
-
var _excluded$
|
|
10948
|
+
var _excluded$W = ["name", "color", "showText", "showDot", "className"];
|
|
10904
10949
|
var Tag = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
10905
10950
|
var name = _ref.name,
|
|
10906
10951
|
color = _ref.color,
|
|
@@ -10909,7 +10954,7 @@
|
|
|
10909
10954
|
_ref$showDot = _ref.showDot,
|
|
10910
10955
|
showDot = _ref$showDot === void 0 ? true : _ref$showDot,
|
|
10911
10956
|
className = _ref.className,
|
|
10912
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
10957
|
+
rest = _objectWithoutProperties(_ref, _excluded$W);
|
|
10913
10958
|
return /*#__PURE__*/React__default["default"].createElement(StyledTag, _extends({
|
|
10914
10959
|
className: classNames__default["default"]("c-tag", className),
|
|
10915
10960
|
ref: ref
|
|
@@ -11015,7 +11060,7 @@
|
|
|
11015
11060
|
});
|
|
11016
11061
|
StyledNavAsMoreTarget.displayName = "StyledNavAsMoreTarget";
|
|
11017
11062
|
|
|
11018
|
-
var _excluded$
|
|
11063
|
+
var _excluded$V = ["children", "active", "disabled", "className", "role"];
|
|
11019
11064
|
var Item = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
11020
11065
|
var children = _ref.children,
|
|
11021
11066
|
_ref$active = _ref.active,
|
|
@@ -11024,7 +11069,7 @@
|
|
|
11024
11069
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
11025
11070
|
className = _ref.className,
|
|
11026
11071
|
role = _ref.role,
|
|
11027
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11072
|
+
rest = _objectWithoutProperties(_ref, _excluded$V);
|
|
11028
11073
|
return /*#__PURE__*/React__default["default"].createElement(StyledNavListItem, _extends({
|
|
11029
11074
|
className: classNames__default["default"](`c-nav__item`, {
|
|
11030
11075
|
"c-nav__item--active": active
|
|
@@ -11065,11 +11110,11 @@
|
|
|
11065
11110
|
});
|
|
11066
11111
|
StyledExpandSingle.displayName = "StyledExpandSingle";
|
|
11067
11112
|
|
|
11068
|
-
var _excluded$
|
|
11113
|
+
var _excluded$U = ["expanded"];
|
|
11069
11114
|
var ExpandSingle = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
11070
11115
|
var _ref$expanded = _ref.expanded,
|
|
11071
11116
|
expanded = _ref$expanded === void 0 ? false : _ref$expanded,
|
|
11072
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11117
|
+
rest = _objectWithoutProperties(_ref, _excluded$U);
|
|
11073
11118
|
return /*#__PURE__*/React__default["default"].createElement(StyledExpandSingle, _extends({
|
|
11074
11119
|
ref: ref,
|
|
11075
11120
|
viewBox: "0 0 24 24",
|
|
@@ -11245,7 +11290,7 @@
|
|
|
11245
11290
|
};
|
|
11246
11291
|
OptionContent.displayName = "OptionContent";
|
|
11247
11292
|
|
|
11248
|
-
var _excluded$
|
|
11293
|
+
var _excluded$T = ["mixed", "data-testid"];
|
|
11249
11294
|
|
|
11250
11295
|
/**
|
|
11251
11296
|
* @component CheckboxIcon
|
|
@@ -11269,7 +11314,7 @@
|
|
|
11269
11314
|
var CheckboxIcon = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, svgRef) {
|
|
11270
11315
|
var mixed = _ref.mixed,
|
|
11271
11316
|
testId = _ref["data-testid"],
|
|
11272
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
11317
|
+
props = _objectWithoutProperties(_ref, _excluded$T);
|
|
11273
11318
|
// const [animate, setAnimate] = useState(false);
|
|
11274
11319
|
// const mountRef = useRef(false);
|
|
11275
11320
|
|
|
@@ -11363,7 +11408,7 @@
|
|
|
11363
11408
|
});
|
|
11364
11409
|
StyledCheckbox$1.displayName = "StyledCheckbox";
|
|
11365
11410
|
|
|
11366
|
-
var _excluded$
|
|
11411
|
+
var _excluded$S = ["className", "hover", "id", "mixed", "checked", "onChange", "disabled"];
|
|
11367
11412
|
/**
|
|
11368
11413
|
* Checkbox component
|
|
11369
11414
|
*/
|
|
@@ -11377,7 +11422,7 @@
|
|
|
11377
11422
|
checked = _ref.checked,
|
|
11378
11423
|
onChange = _ref.onChange,
|
|
11379
11424
|
disabled = _ref.disabled,
|
|
11380
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11425
|
+
rest = _objectWithoutProperties(_ref, _excluded$S);
|
|
11381
11426
|
var _useState = React.useState(mixed && !checked),
|
|
11382
11427
|
_useState2 = _slicedToArray(_useState, 2),
|
|
11383
11428
|
indeterminate = _useState2[0],
|
|
@@ -11493,8 +11538,25 @@
|
|
|
11493
11538
|
}
|
|
11494
11539
|
});
|
|
11495
11540
|
StyledPasswordIndicator.displayName = "StyledPasswordIndicator";
|
|
11541
|
+
var StyledInputSelectTrigger = styled__default["default"].div.withConfig({
|
|
11542
|
+
displayName: "Styles__StyledInputSelectTrigger",
|
|
11543
|
+
componentId: "sc-ce8kcp-4"
|
|
11544
|
+
})(["display:flex;gap:6px;align-items:center;margin-right:2px;margin-left:8px;color:var(--color-theme-700);font-weight:400;letter-spacing:0.02em;font-size:0.875rem;flex-shrink:0;cursor:", ";pointer-events:", ";", ""], function (props) {
|
|
11545
|
+
if (props.$disabled) {
|
|
11546
|
+
return "unset";
|
|
11547
|
+
}
|
|
11548
|
+
return "pointer";
|
|
11549
|
+
}, function (props) {
|
|
11550
|
+
if (props.$disabled) {
|
|
11551
|
+
return "none";
|
|
11552
|
+
}
|
|
11553
|
+
return "unset";
|
|
11554
|
+
}, function (props) {
|
|
11555
|
+
return props.$size === "big" && styled.css(["font-size:1rem;"]);
|
|
11556
|
+
});
|
|
11557
|
+
StyledInputSelectTrigger.displayName = "StyledInputSelectTrigger";
|
|
11496
11558
|
|
|
11497
|
-
var _excluded$
|
|
11559
|
+
var _excluded$R = ["className", "style", "type", "disabled", "size", "invalid", "startAdornment", "endAdornment", "wrapRef", "wrapperClick"];
|
|
11498
11560
|
var Input = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
11499
11561
|
var _ref$className = _ref.className,
|
|
11500
11562
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
@@ -11511,7 +11573,7 @@
|
|
|
11511
11573
|
endAdornment = _ref.endAdornment,
|
|
11512
11574
|
wrapRef = _ref.wrapRef,
|
|
11513
11575
|
wrapperClick = _ref.wrapperClick,
|
|
11514
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11576
|
+
rest = _objectWithoutProperties(_ref, _excluded$R);
|
|
11515
11577
|
var intInputRef = React.useRef(null);
|
|
11516
11578
|
var handleRef = useForkRef(ref, intInputRef);
|
|
11517
11579
|
var handleWrapperClick = React.useCallback(function () {
|
|
@@ -11565,14 +11627,14 @@
|
|
|
11565
11627
|
}, StyledRadioLabel);
|
|
11566
11628
|
StyledRadioButton$1.displayName = "StyledRadioButton";
|
|
11567
11629
|
|
|
11568
|
-
var _excluded$
|
|
11630
|
+
var _excluded$Q = ["className", "id", "hover"];
|
|
11569
11631
|
var RadioButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
11570
11632
|
var _ref$className = _ref.className,
|
|
11571
11633
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
11572
11634
|
_ref$id = _ref.id,
|
|
11573
11635
|
id = _ref$id === void 0 ? "radio" : _ref$id,
|
|
11574
11636
|
hover = _ref.hover,
|
|
11575
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
11637
|
+
props = _objectWithoutProperties(_ref, _excluded$Q);
|
|
11576
11638
|
return /*#__PURE__*/React__default["default"].createElement(StyledRadioButton$1, {
|
|
11577
11639
|
className: classNames__default["default"]("c-radio-btn", {
|
|
11578
11640
|
"c-radio-btn__hover": hover,
|
|
@@ -11720,7 +11782,7 @@
|
|
|
11720
11782
|
StyledScrollShadowLeft.displayName = "StyledScrollShadowLeft";
|
|
11721
11783
|
StyledScrollShadowRight.displayName = "StyledScrollShadowRight";
|
|
11722
11784
|
|
|
11723
|
-
var _excluded$
|
|
11785
|
+
var _excluded$P = ["children", "className", "disableVertical", "disableHorizontal", "invertHorizontal", "invertVertical", "innerColor", "outerColor"];
|
|
11724
11786
|
var ScrollShadow = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
11725
11787
|
var children = _ref.children,
|
|
11726
11788
|
className = _ref.className,
|
|
@@ -11734,7 +11796,7 @@
|
|
|
11734
11796
|
invertVertical = _ref$invertVertical === void 0 ? false : _ref$invertVertical,
|
|
11735
11797
|
innerColor = _ref.innerColor,
|
|
11736
11798
|
outerColor = _ref.outerColor,
|
|
11737
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
11799
|
+
rest = _objectWithoutProperties(_ref, _excluded$P);
|
|
11738
11800
|
var _useState = React.useState({
|
|
11739
11801
|
top: 0,
|
|
11740
11802
|
right: 0,
|
|
@@ -12053,7 +12115,7 @@
|
|
|
12053
12115
|
};
|
|
12054
12116
|
};
|
|
12055
12117
|
|
|
12056
|
-
var _excluded$
|
|
12118
|
+
var _excluded$O = ["as", "className", "invert", "style"];
|
|
12057
12119
|
var ScrollElement = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
12058
12120
|
var _ref$as = _ref.as,
|
|
12059
12121
|
as = _ref$as === void 0 ? "div" : _ref$as,
|
|
@@ -12061,7 +12123,7 @@
|
|
|
12061
12123
|
_ref$invert = _ref.invert,
|
|
12062
12124
|
invert = _ref$invert === void 0 ? false : _ref$invert,
|
|
12063
12125
|
style = _ref.style,
|
|
12064
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
12126
|
+
rest = _objectWithoutProperties(_ref, _excluded$O);
|
|
12065
12127
|
var internalRef = useInitScrollRef(null, invert);
|
|
12066
12128
|
var handleRef = useForkRef(internalRef, ref);
|
|
12067
12129
|
var props = _objectSpread2(_objectSpread2({}, rest), {}, {
|
|
@@ -12703,7 +12765,7 @@
|
|
|
12703
12765
|
componentId: "sc-9x4q7e-0"
|
|
12704
12766
|
})(["cursor:auto"]);
|
|
12705
12767
|
|
|
12706
|
-
var _excluded$
|
|
12768
|
+
var _excluded$N = ["type", "mode", "target", "options", "selected", "mixed", "position", "onChange", "placeholder", "emptyAction", "disableSearch", "forceCloseMenu", "selectClassName", "keepSameOptionsOrder", "onSelectOpen", "onSelectClose", "renderOption", "handleDefaultOptionChange", "preselectDefaultValue", "startAdornment", "endAdornment", "focusInput"];
|
|
12707
12769
|
var Select = function Select(_ref) {
|
|
12708
12770
|
var _ref$type = _ref.type,
|
|
12709
12771
|
type = _ref$type === void 0 ? "single" : _ref$type,
|
|
@@ -12741,7 +12803,7 @@
|
|
|
12741
12803
|
endAdornment = _ref.endAdornment,
|
|
12742
12804
|
_ref$focusInput = _ref.focusInput,
|
|
12743
12805
|
focusInput = _ref$focusInput === void 0 ? false : _ref$focusInput,
|
|
12744
|
-
prop = _objectWithoutProperties(_ref, _excluded$
|
|
12806
|
+
prop = _objectWithoutProperties(_ref, _excluded$N);
|
|
12745
12807
|
if (disableSearch && (startAdornment || endAdornment)) {
|
|
12746
12808
|
console.warn("Adornments are not visible when search bar is hidden");
|
|
12747
12809
|
}
|
|
@@ -13182,7 +13244,7 @@
|
|
|
13182
13244
|
};
|
|
13183
13245
|
Nav.displayName = "Nav";
|
|
13184
13246
|
|
|
13185
|
-
var _excluded$
|
|
13247
|
+
var _excluded$M = ["children", "as", "disablePointerEvents"];
|
|
13186
13248
|
var InputAdornmentBase = styled__default["default"].div.withConfig({
|
|
13187
13249
|
displayName: "InputAdornment__InputAdornmentBase",
|
|
13188
13250
|
componentId: "sc-1xfjx1z-0"
|
|
@@ -13200,7 +13262,7 @@
|
|
|
13200
13262
|
var children = _ref.children,
|
|
13201
13263
|
as = _ref.as,
|
|
13202
13264
|
disablePointerEvents = _ref.disablePointerEvents,
|
|
13203
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
13265
|
+
rest = _objectWithoutProperties(_ref, _excluded$M);
|
|
13204
13266
|
var Component = as || "div";
|
|
13205
13267
|
return /*#__PURE__*/React__default["default"].createElement(InputAdornmentBase, _extends({}, rest, {
|
|
13206
13268
|
as: Component,
|
|
@@ -13435,7 +13497,7 @@
|
|
|
13435
13497
|
};
|
|
13436
13498
|
};
|
|
13437
13499
|
|
|
13438
|
-
var _excluded$
|
|
13500
|
+
var _excluded$L = ["value", "onCancel", "onSave", "onEnterKeyPress", "allowEmptyValue", "withLeadingZero", "validation", "incrementOnlySelected", "minuteIncrement", "className", "onChange", "onClick", "align"];
|
|
13439
13501
|
var InputHours = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
13440
13502
|
var defaultValue = _ref.value,
|
|
13441
13503
|
onCancel = _ref.onCancel,
|
|
@@ -13455,7 +13517,7 @@
|
|
|
13455
13517
|
externalOnClick = _ref.onClick,
|
|
13456
13518
|
_ref$align = _ref.align,
|
|
13457
13519
|
align = _ref$align === void 0 ? "center" : _ref$align,
|
|
13458
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
13520
|
+
rest = _objectWithoutProperties(_ref, _excluded$L);
|
|
13459
13521
|
var inputRef = React.useRef(null);
|
|
13460
13522
|
var handleRef = useForkRef(ref, inputRef);
|
|
13461
13523
|
var _useInputHours = useInputHours({
|
|
@@ -13494,7 +13556,7 @@
|
|
|
13494
13556
|
});
|
|
13495
13557
|
InputHours.displayName = "InputHours";
|
|
13496
13558
|
|
|
13497
|
-
var _excluded$
|
|
13559
|
+
var _excluded$K = ["decimalLength", "decimalSeparator", "disableAbbreviation", "disabled", "disableMacros", "invalid", "step", "thousandSeparator", "value", "onCancel", "onSave", "onEnterKeyPress", "allowEmptyValue", "onChange", "onClick", "limit", "placeholder"];
|
|
13498
13560
|
var InputNumber = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
13499
13561
|
var _ref$decimalLength = _ref.decimalLength,
|
|
13500
13562
|
decimalLength = _ref$decimalLength === void 0 ? 2 : _ref$decimalLength,
|
|
@@ -13519,7 +13581,7 @@
|
|
|
13519
13581
|
externalOnClick = _ref.onClick,
|
|
13520
13582
|
limit = _ref.limit,
|
|
13521
13583
|
placeholder = _ref.placeholder,
|
|
13522
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
13584
|
+
rest = _objectWithoutProperties(_ref, _excluded$K);
|
|
13523
13585
|
var inputRef = React.useRef(null);
|
|
13524
13586
|
var handleRef = useForkRef(ref, inputRef);
|
|
13525
13587
|
var _useInputNumber = useInputNumber({
|
|
@@ -13566,11 +13628,11 @@
|
|
|
13566
13628
|
});
|
|
13567
13629
|
InputNumber.displayName = "InputNumber";
|
|
13568
13630
|
|
|
13569
|
-
var _excluded$
|
|
13631
|
+
var _excluded$J = ["currency", "size"];
|
|
13570
13632
|
var InputCurrency = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
13571
13633
|
var currency = _ref.currency,
|
|
13572
13634
|
size = _ref.size,
|
|
13573
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
13635
|
+
rest = _objectWithoutProperties(_ref, _excluded$J);
|
|
13574
13636
|
var variant = React.useMemo(function () {
|
|
13575
13637
|
if (size === "biggest") {
|
|
13576
13638
|
return "Header 2";
|
|
@@ -13595,7 +13657,7 @@
|
|
|
13595
13657
|
});
|
|
13596
13658
|
InputCurrency.displayName = "InputCurrency";
|
|
13597
13659
|
|
|
13598
|
-
var _excluded$
|
|
13660
|
+
var _excluded$I = ["size", "disabled", "show", "hideControl", "showTooltipText", "hideTooltipText", "value", "validation", "errorMessage", "invalid", "onChange"];
|
|
13599
13661
|
var transform = {
|
|
13600
13662
|
biggest: "big",
|
|
13601
13663
|
regular: "small",
|
|
@@ -13688,7 +13750,7 @@
|
|
|
13688
13750
|
errorMessage = _ref2.errorMessage,
|
|
13689
13751
|
invalid = _ref2.invalid,
|
|
13690
13752
|
onChange = _ref2.onChange,
|
|
13691
|
-
rest = _objectWithoutProperties(_ref2, _excluded$
|
|
13753
|
+
rest = _objectWithoutProperties(_ref2, _excluded$I);
|
|
13692
13754
|
var inputRef = React.useRef(null);
|
|
13693
13755
|
var handleRef = useForkRef(ref, inputRef);
|
|
13694
13756
|
var _useState = React.useState(show),
|
|
@@ -13762,6 +13824,136 @@
|
|
|
13762
13824
|
});
|
|
13763
13825
|
InputPassword.displayName = "InputPassword";
|
|
13764
13826
|
|
|
13827
|
+
var InputSelect = function InputSelect(_ref) {
|
|
13828
|
+
var onChange = _ref.onChange,
|
|
13829
|
+
size = _ref.size,
|
|
13830
|
+
selected = _ref.selected,
|
|
13831
|
+
options = _ref.options,
|
|
13832
|
+
_ref$disabled = _ref.disabled,
|
|
13833
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled;
|
|
13834
|
+
return /*#__PURE__*/React__default["default"].createElement(Select, {
|
|
13835
|
+
onChange: onChange,
|
|
13836
|
+
forceCloseMenu: true,
|
|
13837
|
+
disableSearch: true,
|
|
13838
|
+
target: /*#__PURE__*/React__default["default"].createElement(StyledInputSelectTrigger, {
|
|
13839
|
+
$disabled: disabled,
|
|
13840
|
+
$size: size
|
|
13841
|
+
}, selected, size === "big" ? /*#__PURE__*/React__default["default"].createElement(ArrowDownIcon$1, {
|
|
13842
|
+
fill: "var(--color-theme-700)"
|
|
13843
|
+
}) : /*#__PURE__*/React__default["default"].createElement(ArrowDownSmallIcon$1, {
|
|
13844
|
+
fill: "var(--color-theme-700)"
|
|
13845
|
+
})),
|
|
13846
|
+
options: options,
|
|
13847
|
+
disabledInternalSort: true,
|
|
13848
|
+
keepSameOptionsOrder: true,
|
|
13849
|
+
selected: selected
|
|
13850
|
+
});
|
|
13851
|
+
};
|
|
13852
|
+
|
|
13853
|
+
var _excluded$H = ["size", "disabled", "value", "onChange"];
|
|
13854
|
+
var options = [{
|
|
13855
|
+
id: "https://",
|
|
13856
|
+
name: "https://"
|
|
13857
|
+
}, {
|
|
13858
|
+
id: "http://",
|
|
13859
|
+
name: "http://"
|
|
13860
|
+
}];
|
|
13861
|
+
var InputUrl = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
13862
|
+
var _ref$size = _ref.size,
|
|
13863
|
+
size = _ref$size === void 0 ? "regular" : _ref$size,
|
|
13864
|
+
disabled = _ref.disabled,
|
|
13865
|
+
_ref$value = _ref.value,
|
|
13866
|
+
defaultValue = _ref$value === void 0 ? "" : _ref$value,
|
|
13867
|
+
onChange = _ref.onChange,
|
|
13868
|
+
rest = _objectWithoutProperties(_ref, _excluded$H);
|
|
13869
|
+
var inputRef = React.useRef(null);
|
|
13870
|
+
var handleRef = useForkRef(ref, inputRef);
|
|
13871
|
+
var _useState = React.useState(options[0].id),
|
|
13872
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
13873
|
+
prefix = _useState2[0],
|
|
13874
|
+
setPrefix = _useState2[1];
|
|
13875
|
+
var _useState3 = React.useState(""),
|
|
13876
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
13877
|
+
value = _useState4[0],
|
|
13878
|
+
setValue = _useState4[1];
|
|
13879
|
+
var separatePrefixFromValue = function separatePrefixFromValue(fullValue) {
|
|
13880
|
+
var newPrefix = prefix;
|
|
13881
|
+
var newValue = fullValue;
|
|
13882
|
+
options.forEach(function (option) {
|
|
13883
|
+
if (fullValue.startsWith(option.id)) {
|
|
13884
|
+
newPrefix = option.id;
|
|
13885
|
+
newValue = fullValue.replace(option.id, "");
|
|
13886
|
+
}
|
|
13887
|
+
});
|
|
13888
|
+
setValue(newValue);
|
|
13889
|
+
return {
|
|
13890
|
+
newPrefix,
|
|
13891
|
+
newValue
|
|
13892
|
+
};
|
|
13893
|
+
};
|
|
13894
|
+
React.useEffect(function () {
|
|
13895
|
+
var _separatePrefixFromVa = separatePrefixFromValue(defaultValue),
|
|
13896
|
+
newPrefix = _separatePrefixFromVa.newPrefix,
|
|
13897
|
+
newValue = _separatePrefixFromVa.newValue;
|
|
13898
|
+
setPrefix(newPrefix);
|
|
13899
|
+
setValue(newValue);
|
|
13900
|
+
// eslint-disable-next-line
|
|
13901
|
+
}, [defaultValue]);
|
|
13902
|
+
var handleChange = React.useCallback(function (e) {
|
|
13903
|
+
var inputValue = e.target.value;
|
|
13904
|
+
if (!inputValue.startsWith(prefix)) {
|
|
13905
|
+
var _separatePrefixFromVa2 = separatePrefixFromValue(inputValue),
|
|
13906
|
+
newPrefix = _separatePrefixFromVa2.newPrefix,
|
|
13907
|
+
newValue = _separatePrefixFromVa2.newValue;
|
|
13908
|
+
setPrefix(newPrefix);
|
|
13909
|
+
setValue(newValue);
|
|
13910
|
+
typeof onChange === "function" && onChange(newPrefix + newValue);
|
|
13911
|
+
} else {
|
|
13912
|
+
var _newValue = inputValue.replace(prefix, "");
|
|
13913
|
+
setValue(_newValue);
|
|
13914
|
+
typeof onChange === "function" && onChange(prefix + _newValue);
|
|
13915
|
+
}
|
|
13916
|
+
},
|
|
13917
|
+
// eslint-disable-next-line
|
|
13918
|
+
[onChange, prefix]);
|
|
13919
|
+
var handleSelectChange = function handleSelectChange(val) {
|
|
13920
|
+
setPrefix(val);
|
|
13921
|
+
typeof onChange === "function" && onChange(val + value);
|
|
13922
|
+
};
|
|
13923
|
+
var handlePaste = function handlePaste(e) {
|
|
13924
|
+
e.preventDefault();
|
|
13925
|
+
var paste = e.clipboardData.getData("text");
|
|
13926
|
+
var _separatePrefixFromVa3 = separatePrefixFromValue(paste),
|
|
13927
|
+
newPrefix = _separatePrefixFromVa3.newPrefix,
|
|
13928
|
+
newValue = _separatePrefixFromVa3.newValue;
|
|
13929
|
+
if (newPrefix !== prefix) {
|
|
13930
|
+
setPrefix(newPrefix);
|
|
13931
|
+
}
|
|
13932
|
+
setValue(newValue);
|
|
13933
|
+
if (typeof onChange === "function") {
|
|
13934
|
+
onChange(newPrefix + newValue);
|
|
13935
|
+
}
|
|
13936
|
+
};
|
|
13937
|
+
return /*#__PURE__*/React__default["default"].createElement(Input, _extends({}, rest, {
|
|
13938
|
+
ref: handleRef,
|
|
13939
|
+
size: size,
|
|
13940
|
+
value: value,
|
|
13941
|
+
disabled: disabled,
|
|
13942
|
+
type: "text",
|
|
13943
|
+
onPaste: handlePaste,
|
|
13944
|
+
onChange: handleChange,
|
|
13945
|
+
"data-testid": "InputUrl",
|
|
13946
|
+
startAdornment: /*#__PURE__*/React__default["default"].createElement(InputSelect, {
|
|
13947
|
+
size: size,
|
|
13948
|
+
onChange: handleSelectChange,
|
|
13949
|
+
options: options,
|
|
13950
|
+
selected: prefix,
|
|
13951
|
+
disabled: disabled
|
|
13952
|
+
})
|
|
13953
|
+
}));
|
|
13954
|
+
});
|
|
13955
|
+
InputUrl.displayName = "InputUrl";
|
|
13956
|
+
|
|
13765
13957
|
var _excluded$G = ["expanded"];
|
|
13766
13958
|
var ExpandAll = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
13767
13959
|
var _ref$expanded = _ref.expanded,
|
|
@@ -18982,6 +19174,7 @@
|
|
|
18982
19174
|
exports.ArrowCollapseMultipleIcon = ArrowCollapseMultipleIcon$1;
|
|
18983
19175
|
exports.ArrowDownIcon = ArrowDownIcon$1;
|
|
18984
19176
|
exports.ArrowDownLongIcon = ArrowDownLongIcon$1;
|
|
19177
|
+
exports.ArrowDownSmallIcon = ArrowDownSmallIcon$1;
|
|
18985
19178
|
exports.ArrowExpandeMultipleIcon = ArrowExpandeMultipleIcon$1;
|
|
18986
19179
|
exports.ArrowLeftBoxIcon = ArrowLeftBoxIcon$1;
|
|
18987
19180
|
exports.ArrowLeftIcon = ArrowLeftIcon$1;
|
|
@@ -19119,6 +19312,7 @@
|
|
|
19119
19312
|
exports.InputHours = InputHours;
|
|
19120
19313
|
exports.InputNumber = InputNumber;
|
|
19121
19314
|
exports.InputPassword = InputPassword;
|
|
19315
|
+
exports.InputUrl = InputUrl;
|
|
19122
19316
|
exports.InsertLinkIcon = InsertLinkIcon$1;
|
|
19123
19317
|
exports.IntegrationsIcon = IntegrationsIcon$1;
|
|
19124
19318
|
exports.InvoicesIcon = InvoicesIcon$1;
|
|
@@ -19285,6 +19479,7 @@
|
|
|
19285
19479
|
exports.decimalToHours = decimalToHours;
|
|
19286
19480
|
exports.formatNumber = formatNumber;
|
|
19287
19481
|
exports.isOptionGroup = isOptionGroup;
|
|
19482
|
+
exports.isValidUrl = isValidUrl;
|
|
19288
19483
|
exports.layers = layers;
|
|
19289
19484
|
exports.numberWithSeparator = numberWithSeparator;
|
|
19290
19485
|
exports.signifierTypes = signifierTypes;
|