@activecollab/components 2.0.130 → 2.0.132
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/ClockDollar.js +48 -0
- package/dist/cjs/components/Icons/collection/ClockDollar.js.map +1 -0
- package/dist/cjs/components/Icons/collection/GroupBy.js +2 -2
- package/dist/cjs/components/Icons/collection/GroupBy.js.map +1 -1
- package/dist/cjs/components/Icons/collection/PriorityLow.js +1 -1
- package/dist/cjs/components/Icons/collection/PriorityLow.js.map +1 -1
- 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/Textarea/Styles.js +2 -23
- package/dist/cjs/components/Textarea/Styles.js.map +1 -1
- package/dist/cjs/components/Textarea/Textarea.js +6 -52
- package/dist/cjs/components/Textarea/Textarea.js.map +1 -1
- package/dist/esm/components/Icons/collection/ClockDollar.d.ts +23 -0
- package/dist/esm/components/Icons/collection/ClockDollar.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/ClockDollar.js +40 -0
- package/dist/esm/components/Icons/collection/ClockDollar.js.map +1 -0
- package/dist/esm/components/Icons/collection/GroupBy.js +2 -2
- package/dist/esm/components/Icons/collection/GroupBy.js.map +1 -1
- package/dist/esm/components/Icons/collection/PriorityLow.js +1 -1
- package/dist/esm/components/Icons/collection/PriorityLow.js.map +1 -1
- 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 +1 -0
- package/dist/esm/components/Icons/collection/index.js.map +1 -1
- package/dist/esm/components/Textarea/Styles.d.ts +0 -2
- package/dist/esm/components/Textarea/Styles.d.ts.map +1 -1
- package/dist/esm/components/Textarea/Styles.js +1 -22
- package/dist/esm/components/Textarea/Styles.js.map +1 -1
- package/dist/esm/components/Textarea/Textarea.d.ts +1 -5
- package/dist/esm/components/Textarea/Textarea.d.ts.map +1 -1
- package/dist/esm/components/Textarea/Textarea.js +7 -41
- package/dist/esm/components/Textarea/Textarea.js.map +1 -1
- package/dist/index.js +227 -246
- 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
|
@@ -2328,6 +2328,45 @@
|
|
|
2328
2328
|
ClockAddIcon.displayName = "ClockAddIcon";
|
|
2329
2329
|
var ClockAddIcon$1 = ClockAddIcon;
|
|
2330
2330
|
|
|
2331
|
+
/**
|
|
2332
|
+
* @component ClockDollarIcon
|
|
2333
|
+
* @description
|
|
2334
|
+
*
|
|
2335
|
+
* The React Icon component is a visual element that displays an icon to represent a concept, object, or action.
|
|
2336
|
+
* The Icon component is
|
|
2337
|
+
* customizable, allowing for variations in size, color, and style to fit the needs of the application.
|
|
2338
|
+
*
|
|
2339
|
+
*
|
|
2340
|
+
* @example
|
|
2341
|
+
* return (
|
|
2342
|
+
* <ClockDollarIcon className="mr-2" />
|
|
2343
|
+
* )
|
|
2344
|
+
*
|
|
2345
|
+
* @see
|
|
2346
|
+
* https://system.activecollab.com/?path=/story/foundation-icons-icons--icons
|
|
2347
|
+
* @see
|
|
2348
|
+
* https://design.activecollab.com/docs/foundations/icons
|
|
2349
|
+
*/
|
|
2350
|
+
var ClockDollarIcon = /*#__PURE__*/React__default["default"].forwardRef(function (props, svgRef) {
|
|
2351
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
2352
|
+
width: 24,
|
|
2353
|
+
height: 24,
|
|
2354
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2355
|
+
"data-testid": "ClockDollarIcon",
|
|
2356
|
+
fill: "var(--color-theme-600)",
|
|
2357
|
+
focusable: false,
|
|
2358
|
+
ref: svgRef
|
|
2359
|
+
}, props), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
2360
|
+
fillRule: "evenodd",
|
|
2361
|
+
clipRule: "evenodd",
|
|
2362
|
+
d: "M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10h-2a8 8 0 10-8 8v2C6.477 22 2 17.523 2 12zm9-6v4.999L6 11v2h7V6h-2z"
|
|
2363
|
+
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
2364
|
+
d: "M19 23h-2v-1h-2v-2h4v-1h-3a1 1 0 01-1-1v-3a1 1 0 011-1h1v-1h2v1h2v2h-4v1h3a1 1 0 011 1v3a1 1 0 01-1 1h-1v1z"
|
|
2365
|
+
}));
|
|
2366
|
+
});
|
|
2367
|
+
ClockDollarIcon.displayName = "ClockDollarIcon";
|
|
2368
|
+
var ClockDollarIcon$1 = ClockDollarIcon;
|
|
2369
|
+
|
|
2331
2370
|
/**
|
|
2332
2371
|
* @component ClockSmallIcon
|
|
2333
2372
|
* @description
|
|
@@ -4286,15 +4325,15 @@
|
|
|
4286
4325
|
*/
|
|
4287
4326
|
var GroupByIcon = /*#__PURE__*/React__default["default"].forwardRef(function (props, svgRef) {
|
|
4288
4327
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
4289
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
4290
4328
|
width: 24,
|
|
4291
4329
|
height: 24,
|
|
4330
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4292
4331
|
"data-testid": "GroupByIcon",
|
|
4293
4332
|
fill: "var(--color-theme-600)",
|
|
4294
4333
|
focusable: false,
|
|
4295
4334
|
ref: svgRef
|
|
4296
4335
|
}, props), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
4297
|
-
d: "M20.598 9a1 1 0 01-1.994-.123V5.392h-3.486a.997.997 0 010-1.995l4.486-.005.118.007a1 1 0 01.883.993v4.49l-.007.12zM5.
|
|
4336
|
+
d: "M20.598 9a1 1 0 01-1.994-.123V5.392h-3.486a.997.997 0 010-1.995l4.486-.005.118.007a1 1 0 01.883.993v4.49l-.007.12zM5.396 15.122v3.487h3.486a.997.997 0 010 1.995l-4.486.005-.118-.007a1 1 0 01-.883-.993v-4.49l.007-.12a.997.997 0 01.993-.877l.12.008a1 1 0 01.88.992zm8.726 4.478a.998.998 0 00.878.998l.12.008h4.489a1 1 0 00.993-.884l.007-.118-.005-4.486a.998.998 0 00-1.995 0v3.486h-3.487a1 1 0 00-1 .997zM5.391 5.396h3.487a1 1 0 00.992-.88l.008-.12A.997.997 0 009 3.401l-.12-.008H4.392a1 1 0 00-.993.884l-.007.118.005 4.486a.998.998 0 001.995 0V5.396zM8 9a1 1 0 011-1h6a1 1 0 110 2H9a1 1 0 01-1-1zm1 2a1 1 0 100 2h6a1 1 0 100-2H9zm-1 4a1 1 0 011-1h6a1 1 0 110 2H9a1 1 0 01-1-1z"
|
|
4298
4337
|
}));
|
|
4299
4338
|
});
|
|
4300
4339
|
GroupByIcon.displayName = "GroupByIcon";
|
|
@@ -6125,9 +6164,9 @@
|
|
|
6125
6164
|
*/
|
|
6126
6165
|
var PriorityLowIcon = /*#__PURE__*/React__default["default"].forwardRef(function (props, svgRef) {
|
|
6127
6166
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
6128
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6129
6167
|
width: 24,
|
|
6130
6168
|
height: 24,
|
|
6169
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6131
6170
|
"data-testid": "PriorityLowIcon",
|
|
6132
6171
|
fill: "var(--color-theme-600)",
|
|
6133
6172
|
focusable: false,
|
|
@@ -14625,7 +14664,7 @@
|
|
|
14625
14664
|
var StyledTextarea = styled__default["default"].textarea.withConfig({
|
|
14626
14665
|
displayName: "Styles__StyledTextarea",
|
|
14627
14666
|
componentId: "sc-m6jqw8-0"
|
|
14628
|
-
})(["", " ", " ", " ", " ", "
|
|
14667
|
+
})(["", " ", " ", " ", " ", " border-width:1px;border-style:solid;background-color:var(--input-background-color);", " border-radius:8px;padding:4px 8px 6px 8px;height:auto;transition:all 0.3s ease;width:360px;min-height:90px;outline:none;", " ", " ", " ", " ", " &::placeholder{", "}", " ", ""], {
|
|
14629
14668
|
"fontSize": "0.875rem"
|
|
14630
14669
|
}, {
|
|
14631
14670
|
"color": "var(--color-theme-900)"
|
|
@@ -14635,8 +14674,6 @@
|
|
|
14635
14674
|
"letterSpacing": "0.02em"
|
|
14636
14675
|
}, {
|
|
14637
14676
|
"fontWeight": "400"
|
|
14638
|
-
}, {
|
|
14639
|
-
"resize": "none"
|
|
14640
14677
|
}, {
|
|
14641
14678
|
"borderColor": "var(--color-theme-500)"
|
|
14642
14679
|
}, FontStyle, BoxSizingStyle, function (props) {
|
|
@@ -14659,158 +14696,10 @@
|
|
|
14659
14696
|
}, function (props) {
|
|
14660
14697
|
return !props.disabled && props.$invalid && props.$mode === "flat" && styled.css(["color:var(--red-alert);"]);
|
|
14661
14698
|
});
|
|
14662
|
-
var StyledTextAreaWrapper = styled__default["default"].div.withConfig({
|
|
14663
|
-
displayName: "Styles__StyledTextAreaWrapper",
|
|
14664
|
-
componentId: "sc-m6jqw8-1"
|
|
14665
|
-
})(["", ""], {
|
|
14666
|
-
"position": "relative",
|
|
14667
|
-
"display": "flex",
|
|
14668
|
-
"width": "fit-content"
|
|
14669
|
-
});
|
|
14670
|
-
var StyledProgressRingWrapper = styled__default["default"].div.withConfig({
|
|
14671
|
-
displayName: "Styles__StyledProgressRingWrapper",
|
|
14672
|
-
componentId: "sc-m6jqw8-2"
|
|
14673
|
-
})(["", ""], {
|
|
14674
|
-
"position": "absolute",
|
|
14675
|
-
"bottom": "0.5rem",
|
|
14676
|
-
"right": "0.5rem",
|
|
14677
|
-
"display": "flex"
|
|
14678
|
-
});
|
|
14679
14699
|
StyledTextarea.displayName = "StyledTextarea";
|
|
14680
|
-
StyledTextAreaWrapper.displayName = "StyledTextAreaWrapper";
|
|
14681
|
-
StyledProgressRingWrapper.displayName = "StyledProgressRingWrapper";
|
|
14682
14700
|
|
|
14683
|
-
var
|
|
14684
|
-
displayName: "Styles__StyledWrapper",
|
|
14685
|
-
componentId: "sc-o6dcyu-0"
|
|
14686
|
-
})(["position:relative;display:inline-flex;"]);
|
|
14687
|
-
StyledWrapper.displayName = "StyledWrapper";
|
|
14688
|
-
var StyledChildrenWrapper = styled__default["default"].div.withConfig({
|
|
14689
|
-
displayName: "Styles__StyledChildrenWrapper",
|
|
14690
|
-
componentId: "sc-o6dcyu-1"
|
|
14691
|
-
})(["position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:inline-flex;"]);
|
|
14692
|
-
StyledChildrenWrapper.displayName = "StyledChildrenWrapper";
|
|
14693
|
-
var StyledSvg = styled__default["default"].svg.withConfig({
|
|
14694
|
-
displayName: "Styles__StyledSvg",
|
|
14695
|
-
componentId: "sc-o6dcyu-2"
|
|
14696
|
-
})(["transform:rotate(-90deg);"]);
|
|
14697
|
-
StyledSvg.displayName = "StyledSvg";
|
|
14698
|
-
var StyledBackgroundCircle = styled__default["default"].circle.withConfig({
|
|
14699
|
-
displayName: "Styles__StyledBackgroundCircle",
|
|
14700
|
-
componentId: "sc-o6dcyu-3"
|
|
14701
|
-
})(["fill:transparent;transition:stroke-dashoffset 0.5s linear,stroke 300ms ease-out;", " ", ""], function (props) {
|
|
14702
|
-
return props.$color ? styled.css(["stroke:", ";"], props.$color) : styled.css(["stroke:var(--color-theme-transparent-300);"]);
|
|
14703
|
-
}, function (props) {
|
|
14704
|
-
return props.$strokeDashOffset && styled.css(["stroke-dashoffset:", ";"], props.$strokeDashOffset);
|
|
14705
|
-
});
|
|
14706
|
-
StyledBackgroundCircle.displayName = "StyledBackgroundCircle";
|
|
14707
|
-
var StyledForegroundCircle = styled__default["default"].circle.withConfig({
|
|
14708
|
-
displayName: "Styles__StyledForegroundCircle",
|
|
14709
|
-
componentId: "sc-o6dcyu-4"
|
|
14710
|
-
})(["fill:transparent;transition:stroke-dashoffset 0.5s linear,stroke 300ms ease-out;", " ", " ", ""], function (props) {
|
|
14711
|
-
return props.$roundStroke && styled.css(["stroke-linecap:round;"]);
|
|
14712
|
-
}, function (props) {
|
|
14713
|
-
return props.$color ? styled.css(["stroke:", ";"], props.$color) : styled.css(["stroke:var(--color-secondary);"]);
|
|
14714
|
-
}, function (props) {
|
|
14715
|
-
return props.$strokeDashOffset && styled.css(["stroke-dashoffset:", ";"], props.$strokeDashOffset);
|
|
14716
|
-
});
|
|
14717
|
-
StyledForegroundCircle.displayName = "StyledForegroundCircle";
|
|
14718
|
-
var StyledProgressRingPercentage = styled__default["default"].text.withConfig({
|
|
14719
|
-
displayName: "Styles__StyledProgressRingPercentage",
|
|
14720
|
-
componentId: "sc-o6dcyu-5"
|
|
14721
|
-
})(["transform:rotate(90deg);", " ", ""], function (props) {
|
|
14722
|
-
return props.$color ? styled.css(["fill:", ";"], props.$color) : styled.css(["fill:var(--color-secondary);"]);
|
|
14723
|
-
}, function (props) {
|
|
14724
|
-
return props.$fontSize ? styled.css(["font-size:", "px;"], props.$fontSize) : styled.css(["font-size:10px;"]);
|
|
14725
|
-
});
|
|
14726
|
-
StyledProgressRingPercentage.displayName = "StyledProgressRingPercentage";
|
|
14727
|
-
|
|
14728
|
-
var _excluded$H = ["className", "children"];
|
|
14729
|
-
var ProgressCircle = function ProgressCircle(_ref) {
|
|
14730
|
-
var backgroundColor = _ref.backgroundColor,
|
|
14731
|
-
progressColor = _ref.progressColor,
|
|
14732
|
-
_ref$progress = _ref.progress,
|
|
14733
|
-
progress = _ref$progress === void 0 ? 0 : _ref$progress,
|
|
14734
|
-
_ref$radius = _ref.radius,
|
|
14735
|
-
radius = _ref$radius === void 0 ? 20 : _ref$radius,
|
|
14736
|
-
_ref$stroke = _ref.stroke,
|
|
14737
|
-
stroke = _ref$stroke === void 0 ? 3 : _ref$stroke,
|
|
14738
|
-
_ref$roundStroke = _ref.roundStroke,
|
|
14739
|
-
roundStroke = _ref$roundStroke === void 0 ? false : _ref$roundStroke,
|
|
14740
|
-
className = _ref.className,
|
|
14741
|
-
_ref$showPercentage = _ref.showPercentage,
|
|
14742
|
-
showPercentage = _ref$showPercentage === void 0 ? false : _ref$showPercentage,
|
|
14743
|
-
fontSize = _ref.fontSize;
|
|
14744
|
-
if (stroke > radius) {
|
|
14745
|
-
console.warn("Stroke can not have value greater than the radius.");
|
|
14746
|
-
stroke = radius;
|
|
14747
|
-
}
|
|
14748
|
-
var progressNumber = React.useMemo(function () {
|
|
14749
|
-
var width = progress;
|
|
14750
|
-
if (progress > 100) {
|
|
14751
|
-
width = 100;
|
|
14752
|
-
}
|
|
14753
|
-
if (progress < 0) {
|
|
14754
|
-
width = 0;
|
|
14755
|
-
}
|
|
14756
|
-
return width;
|
|
14757
|
-
}, [progress]);
|
|
14758
|
-
var normalizedRadius = React.useMemo(function () {
|
|
14759
|
-
return radius - stroke / 2;
|
|
14760
|
-
}, [radius, stroke]);
|
|
14761
|
-
var circumference = React.useMemo(function () {
|
|
14762
|
-
return normalizedRadius * 2 * Math.PI;
|
|
14763
|
-
}, [normalizedRadius]);
|
|
14764
|
-
var strokeDashoffsetOuter = React.useMemo(function () {
|
|
14765
|
-
return circumference - (100 - progressNumber) / 100 * circumference;
|
|
14766
|
-
}, [circumference, progressNumber]);
|
|
14767
|
-
var strokeDashoffsetInner = React.useMemo(function () {
|
|
14768
|
-
return circumference - progressNumber / 100 * circumference;
|
|
14769
|
-
}, [circumference, progressNumber]);
|
|
14770
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledSvg, {
|
|
14771
|
-
height: radius * 2,
|
|
14772
|
-
width: radius * 2,
|
|
14773
|
-
className: className
|
|
14774
|
-
}, /*#__PURE__*/React__default["default"].createElement(StyledBackgroundCircle, {
|
|
14775
|
-
$color: backgroundColor,
|
|
14776
|
-
$strokeDashOffset: -strokeDashoffsetOuter,
|
|
14777
|
-
strokeWidth: stroke,
|
|
14778
|
-
strokeDasharray: "".concat(circumference, " ").concat(circumference),
|
|
14779
|
-
r: normalizedRadius,
|
|
14780
|
-
cx: radius,
|
|
14781
|
-
cy: radius
|
|
14782
|
-
}), /*#__PURE__*/React__default["default"].createElement(StyledForegroundCircle, {
|
|
14783
|
-
$color: progressColor,
|
|
14784
|
-
$strokeDashOffset: strokeDashoffsetInner,
|
|
14785
|
-
strokeWidth: stroke,
|
|
14786
|
-
strokeDasharray: "".concat(circumference, " ").concat(circumference),
|
|
14787
|
-
$roundStroke: roundStroke,
|
|
14788
|
-
r: normalizedRadius,
|
|
14789
|
-
cx: radius,
|
|
14790
|
-
cy: radius
|
|
14791
|
-
}), showPercentage ? /*#__PURE__*/React__default["default"].createElement(StyledProgressRingPercentage, {
|
|
14792
|
-
$color: progressColor,
|
|
14793
|
-
$fontSize: fontSize,
|
|
14794
|
-
x: "50%",
|
|
14795
|
-
y: "-50%",
|
|
14796
|
-
dominantBaseline: "central",
|
|
14797
|
-
textAnchor: "middle"
|
|
14798
|
-
}, progressNumber, "%") : null);
|
|
14799
|
-
};
|
|
14800
|
-
var ProgressRing = function ProgressRing(_ref2) {
|
|
14801
|
-
var className = _ref2.className,
|
|
14802
|
-
children = _ref2.children,
|
|
14803
|
-
rest = _objectWithoutProperties(_ref2, _excluded$H);
|
|
14804
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
|
|
14805
|
-
className: classNames__default["default"](className),
|
|
14806
|
-
"data-testid": "progress-ring"
|
|
14807
|
-
}, /*#__PURE__*/React__default["default"].createElement(ProgressCircle, rest), children ? /*#__PURE__*/React__default["default"].createElement(StyledChildrenWrapper, null, children) : null);
|
|
14808
|
-
};
|
|
14809
|
-
ProgressRing.displayName = "ProgressRing";
|
|
14810
|
-
|
|
14811
|
-
var _excluded$G = ["className", "disabled", "invalid", "mode", "maxLength", "value", "hideProgress", "onChange"];
|
|
14701
|
+
var _excluded$H = ["className", "disabled", "invalid", "mode"];
|
|
14812
14702
|
var Textarea = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
14813
|
-
var _value$length;
|
|
14814
14703
|
var className = _ref.className,
|
|
14815
14704
|
_ref$disabled = _ref.disabled,
|
|
14816
14705
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
@@ -14818,56 +14707,19 @@
|
|
|
14818
14707
|
invalid = _ref$invalid === void 0 ? false : _ref$invalid,
|
|
14819
14708
|
_ref$mode = _ref.mode,
|
|
14820
14709
|
mode = _ref$mode === void 0 ? "outlined" : _ref$mode,
|
|
14821
|
-
|
|
14822
|
-
|
|
14823
|
-
_ref$hideProgress = _ref.hideProgress,
|
|
14824
|
-
hideProgress = _ref$hideProgress === void 0 ? false : _ref$hideProgress,
|
|
14825
|
-
onChange = _ref.onChange,
|
|
14826
|
-
rest = _objectWithoutProperties(_ref, _excluded$G);
|
|
14827
|
-
var innerRef = React.useRef(null);
|
|
14828
|
-
var handleRef = useForkRef(ref, innerRef);
|
|
14829
|
-
var _React$useState = React__default["default"].useState((_value$length = value === null || value === void 0 ? void 0 : value.length) !== null && _value$length !== void 0 ? _value$length : 0),
|
|
14830
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
14831
|
-
currentLength = _React$useState2[0],
|
|
14832
|
-
setCurrentLength = _React$useState2[1];
|
|
14833
|
-
var warningGauge = React.useMemo(function () {
|
|
14834
|
-
return 75 * Number(maxLength) / 100;
|
|
14835
|
-
}, [maxLength]);
|
|
14836
|
-
var progressColor = React.useMemo(function () {
|
|
14837
|
-
if (currentLength >= Number(maxLength)) {
|
|
14838
|
-
return "var(--red-alert)";
|
|
14839
|
-
}
|
|
14840
|
-
if (currentLength > warningGauge && currentLength < Number(maxLength)) {
|
|
14841
|
-
return "var(--warning)";
|
|
14842
|
-
}
|
|
14843
|
-
return "var(--color-sucess-green)";
|
|
14844
|
-
}, [currentLength, maxLength, warningGauge]);
|
|
14845
|
-
var max = Number(maxLength !== null && maxLength !== void 0 ? maxLength : 1);
|
|
14846
|
-
var progress = Math.min(currentLength / max * 100, 100);
|
|
14847
|
-
var handleChange = function handleChange(e) {
|
|
14848
|
-
setCurrentLength(e.target.value.length);
|
|
14849
|
-
if (onChange) {
|
|
14850
|
-
onChange(e);
|
|
14851
|
-
}
|
|
14852
|
-
};
|
|
14853
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledTextAreaWrapper, null, /*#__PURE__*/React__default["default"].createElement(StyledTextarea, _extends({}, rest, {
|
|
14854
|
-
value: value,
|
|
14710
|
+
rest = _objectWithoutProperties(_ref, _excluded$H);
|
|
14711
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledTextarea, _extends({}, rest, {
|
|
14855
14712
|
$invalid: invalid,
|
|
14856
|
-
ref:
|
|
14713
|
+
ref: ref,
|
|
14857
14714
|
$mode: mode,
|
|
14858
14715
|
disabled: disabled,
|
|
14859
14716
|
"aria-invalid": invalid,
|
|
14860
14717
|
className: classNames__default["default"]("c-textarea", {
|
|
14861
14718
|
"c-textarea__disabled": disabled
|
|
14862
|
-
}, className)
|
|
14863
|
-
|
|
14864
|
-
})), maxLength && !hideProgress && /*#__PURE__*/React__default["default"].createElement(StyledProgressRingWrapper, null, /*#__PURE__*/React__default["default"].createElement(ProgressRing, {
|
|
14865
|
-
progress: progress,
|
|
14866
|
-
radius: 10,
|
|
14867
|
-
stroke: 1.5,
|
|
14868
|
-
progressColor: progressColor
|
|
14869
|
-
})));
|
|
14719
|
+
}, className)
|
|
14720
|
+
}));
|
|
14870
14721
|
});
|
|
14722
|
+
Textarea.displayName = "Textarea";
|
|
14871
14723
|
|
|
14872
14724
|
function createChainedFunction() {
|
|
14873
14725
|
for (var _len = arguments.length, functions = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -14889,7 +14741,7 @@
|
|
|
14889
14741
|
function () {});
|
|
14890
14742
|
}
|
|
14891
14743
|
|
|
14892
|
-
var _excluded$
|
|
14744
|
+
var _excluded$G = ["children", "disableFocusLock", "disableScrollLock", "disableBackgroundClick", "disableBackgroundColor", "disableCloseOnEsc", "open", "onClose", "onClickOutside"];
|
|
14893
14745
|
var getHasTransition = function getHasTransition(children) {
|
|
14894
14746
|
return children.props ? Object.prototype.hasOwnProperty.call(children.props, "in") : false;
|
|
14895
14747
|
};
|
|
@@ -14909,7 +14761,7 @@
|
|
|
14909
14761
|
defaultOpen = _ref$open === void 0 ? false : _ref$open,
|
|
14910
14762
|
onClose = _ref.onClose,
|
|
14911
14763
|
onClickOutside = _ref.onClickOutside,
|
|
14912
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
14764
|
+
rest = _objectWithoutProperties(_ref, _excluded$G);
|
|
14913
14765
|
var _useState = React.useState(defaultOpen),
|
|
14914
14766
|
_useState2 = _slicedToArray(_useState, 2),
|
|
14915
14767
|
open = _useState2[0],
|
|
@@ -15050,7 +14902,7 @@
|
|
|
15050
14902
|
});
|
|
15051
14903
|
StyledCssTransition.displayName = "StyledCssTransition";
|
|
15052
14904
|
|
|
15053
|
-
var _excluded$
|
|
14905
|
+
var _excluded$F = ["children", "onClose", "controls", "open", "animation", "position", "mode", "disableFocusLock", "disableScrollLock", "disableBackgroundColor", "bodyStyle", "bodyClassName", "disableBackgroundClick"];
|
|
15054
14906
|
var Sheet = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
15055
14907
|
var children = _ref.children,
|
|
15056
14908
|
onClose = _ref.onClose,
|
|
@@ -15074,7 +14926,7 @@
|
|
|
15074
14926
|
bodyClassName = _ref.bodyClassName,
|
|
15075
14927
|
_ref$disableBackgroun2 = _ref.disableBackgroundClick,
|
|
15076
14928
|
disableBackgroundClick = _ref$disableBackgroun2 === void 0 ? false : _ref$disableBackgroun2,
|
|
15077
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
14929
|
+
rest = _objectWithoutProperties(_ref, _excluded$F);
|
|
15078
14930
|
var _useState = React.useState(defaultOpen),
|
|
15079
14931
|
_useState2 = _slicedToArray(_useState, 2),
|
|
15080
14932
|
open = _useState2[0],
|
|
@@ -15167,13 +15019,13 @@
|
|
|
15167
15019
|
});
|
|
15168
15020
|
StyledHeader.displayName = "StyledHeader";
|
|
15169
15021
|
|
|
15170
|
-
var _excluded$
|
|
15022
|
+
var _excluded$E = ["className", "size", "children"];
|
|
15171
15023
|
var Header = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
15172
15024
|
var className = _ref.className,
|
|
15173
15025
|
_ref$size = _ref.size,
|
|
15174
15026
|
size = _ref$size === void 0 ? "small" : _ref$size,
|
|
15175
15027
|
children = _ref.children,
|
|
15176
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
15028
|
+
rest = _objectWithoutProperties(_ref, _excluded$E);
|
|
15177
15029
|
return /*#__PURE__*/React__default["default"].createElement(StyledHeader, _extends({
|
|
15178
15030
|
type: "paper-2",
|
|
15179
15031
|
className: classNames__default["default"]("c-header", className),
|
|
@@ -15189,7 +15041,7 @@
|
|
|
15189
15041
|
})(["white-space:pre-wrap;overflow-wrap:break-word;resize:none;"]);
|
|
15190
15042
|
StyledAutoResizeTextarea.displayName = "StyledAutoResizeTextarea";
|
|
15191
15043
|
|
|
15192
|
-
var _excluded$
|
|
15044
|
+
var _excluded$D = ["minRows", "maxRows", "lineHeight", "onChange", "className", "preventNewRowOnEnter", "cursorAtTextEnd", "onKeyDown", "value", "mode"];
|
|
15193
15045
|
var AutoResizeTextarea = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
15194
15046
|
var _ref$minRows = _ref.minRows,
|
|
15195
15047
|
minRows = _ref$minRows === void 0 ? 1 : _ref$minRows,
|
|
@@ -15207,7 +15059,7 @@
|
|
|
15207
15059
|
value = _ref.value,
|
|
15208
15060
|
_ref$mode = _ref.mode,
|
|
15209
15061
|
mode = _ref$mode === void 0 ? "outlined" : _ref$mode,
|
|
15210
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
15062
|
+
rest = _objectWithoutProperties(_ref, _excluded$D);
|
|
15211
15063
|
var innerRef = React.useRef(null);
|
|
15212
15064
|
var _useState = React.useState(minRows),
|
|
15213
15065
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -15484,7 +15336,7 @@
|
|
|
15484
15336
|
});
|
|
15485
15337
|
StyledChoose.displayName = "StyledChoose";
|
|
15486
15338
|
|
|
15487
|
-
var _excluded$
|
|
15339
|
+
var _excluded$C = ["children", "disabled", "active", "className"];
|
|
15488
15340
|
/**
|
|
15489
15341
|
* Choose component
|
|
15490
15342
|
*/
|
|
@@ -15495,7 +15347,7 @@
|
|
|
15495
15347
|
_ref$active = _ref.active,
|
|
15496
15348
|
active = _ref$active === void 0 ? false : _ref$active,
|
|
15497
15349
|
className = _ref.className,
|
|
15498
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
15350
|
+
args = _objectWithoutProperties(_ref, _excluded$C);
|
|
15499
15351
|
return /*#__PURE__*/React__default["default"].createElement(StyledChoose, _extends({
|
|
15500
15352
|
disabled: disabled,
|
|
15501
15353
|
className: classNames__default["default"]("c-choose", className),
|
|
@@ -15591,21 +15443,21 @@
|
|
|
15591
15443
|
StyledLinkElements.displayName = "StyledLinkElements";
|
|
15592
15444
|
StyledLink.displayName = "StyledLink";
|
|
15593
15445
|
|
|
15594
|
-
var _excluded$
|
|
15446
|
+
var _excluded$B = ["children", "className"];
|
|
15595
15447
|
/**
|
|
15596
15448
|
* Back link component
|
|
15597
15449
|
*/
|
|
15598
15450
|
var BackLink = function BackLink(_ref) {
|
|
15599
15451
|
var children = _ref.children,
|
|
15600
15452
|
className = _ref.className,
|
|
15601
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
15453
|
+
args = _objectWithoutProperties(_ref, _excluded$B);
|
|
15602
15454
|
return /*#__PURE__*/React__default["default"].createElement(StyledBackLink, _extends({
|
|
15603
15455
|
className: classNames__default["default"]("c-back-link", className)
|
|
15604
15456
|
}, args), children);
|
|
15605
15457
|
};
|
|
15606
15458
|
BackLink.displayName = "BackLink";
|
|
15607
15459
|
|
|
15608
|
-
var _excluded$
|
|
15460
|
+
var _excluded$A = ["as", "children", "variant", "size", "disabled", "className"];
|
|
15609
15461
|
/**
|
|
15610
15462
|
* Link component
|
|
15611
15463
|
*/
|
|
@@ -15618,7 +15470,7 @@
|
|
|
15618
15470
|
_ref$disabled = _ref.disabled,
|
|
15619
15471
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
15620
15472
|
className = _ref.className,
|
|
15621
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
15473
|
+
args = _objectWithoutProperties(_ref, _excluded$A);
|
|
15622
15474
|
var Component = as || "a";
|
|
15623
15475
|
return /*#__PURE__*/React__default["default"].createElement(StyledLink, _extends({
|
|
15624
15476
|
ref: ref,
|
|
@@ -15676,13 +15528,13 @@
|
|
|
15676
15528
|
})(["padding:20px 30px;", " ", ""], FontStyle, BoxSizingStyle);
|
|
15677
15529
|
StyledDialogActions.displayName = "StyledDialogActions";
|
|
15678
15530
|
|
|
15679
|
-
var _excluded$
|
|
15531
|
+
var _excluded$z = ["className", "children"];
|
|
15680
15532
|
// import { useDialogContext } from "./DialogContext";
|
|
15681
15533
|
|
|
15682
15534
|
var DialogActions = function DialogActions(_ref) {
|
|
15683
15535
|
var className = _ref.className,
|
|
15684
15536
|
children = _ref.children,
|
|
15685
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
15537
|
+
rest = _objectWithoutProperties(_ref, _excluded$z);
|
|
15686
15538
|
// useDialogContext();
|
|
15687
15539
|
|
|
15688
15540
|
return /*#__PURE__*/React__default["default"].createElement(StyledDialogActions, _extends({
|
|
@@ -15691,13 +15543,13 @@
|
|
|
15691
15543
|
};
|
|
15692
15544
|
DialogActions.displayName = "DialogActions";
|
|
15693
15545
|
|
|
15694
|
-
var _excluded$
|
|
15546
|
+
var _excluded$y = ["className", "children"];
|
|
15695
15547
|
// import { useDialogContext } from "./DialogContext";
|
|
15696
15548
|
|
|
15697
15549
|
var DialogContent = function DialogContent(_ref) {
|
|
15698
15550
|
var className = _ref.className,
|
|
15699
15551
|
children = _ref.children,
|
|
15700
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
15552
|
+
rest = _objectWithoutProperties(_ref, _excluded$y);
|
|
15701
15553
|
// useDialogContext();
|
|
15702
15554
|
|
|
15703
15555
|
return /*#__PURE__*/React__default["default"].createElement(StyledDialogContent, _extends({
|
|
@@ -15718,7 +15570,7 @@
|
|
|
15718
15570
|
};
|
|
15719
15571
|
DialogContentDivider.displayName = "DialogContentDivider";
|
|
15720
15572
|
|
|
15721
|
-
var _excluded$
|
|
15573
|
+
var _excluded$x = ["children", "className", "disableDefaultHeading"];
|
|
15722
15574
|
// import { useDialogContext } from "./DialogContext";
|
|
15723
15575
|
|
|
15724
15576
|
var DialogTitle = function DialogTitle(_ref) {
|
|
@@ -15726,7 +15578,7 @@
|
|
|
15726
15578
|
className = _ref.className,
|
|
15727
15579
|
_ref$disableDefaultHe = _ref.disableDefaultHeading,
|
|
15728
15580
|
disableDefaultHeading = _ref$disableDefaultHe === void 0 ? false : _ref$disableDefaultHe,
|
|
15729
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
15581
|
+
rest = _objectWithoutProperties(_ref, _excluded$x);
|
|
15730
15582
|
// useDialogContext();
|
|
15731
15583
|
|
|
15732
15584
|
return /*#__PURE__*/React__default["default"].createElement(StyledDialogTitle, _extends({
|
|
@@ -15735,7 +15587,7 @@
|
|
|
15735
15587
|
};
|
|
15736
15588
|
DialogTitle.displayName = "DialogTitle";
|
|
15737
15589
|
|
|
15738
|
-
var _excluded$
|
|
15590
|
+
var _excluded$w = ["in", "children", "style", "timeout"];
|
|
15739
15591
|
var defaultStyle$2 = function defaultStyle(duration) {
|
|
15740
15592
|
return {
|
|
15741
15593
|
transition: "all ".concat(duration, "ms ease-in-out"),
|
|
@@ -15763,7 +15615,7 @@
|
|
|
15763
15615
|
style = _ref.style,
|
|
15764
15616
|
_ref$timeout = _ref.timeout,
|
|
15765
15617
|
timeout = _ref$timeout === void 0 ? 500 : _ref$timeout,
|
|
15766
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
15618
|
+
rest = _objectWithoutProperties(_ref, _excluded$w);
|
|
15767
15619
|
return /*#__PURE__*/React__default["default"].createElement(reactTransitionGroup.Transition, _extends({
|
|
15768
15620
|
appear: true,
|
|
15769
15621
|
in: inProp,
|
|
@@ -15778,7 +15630,7 @@
|
|
|
15778
15630
|
};
|
|
15779
15631
|
Fade.displayName = "Fade";
|
|
15780
15632
|
|
|
15781
|
-
var _excluded$
|
|
15633
|
+
var _excluded$v = ["in", "children", "style", "timeout", "initialDirection"];
|
|
15782
15634
|
var Slide = function Slide(_ref) {
|
|
15783
15635
|
var _ref$in = _ref.in,
|
|
15784
15636
|
inProp = _ref$in === void 0 ? false : _ref$in,
|
|
@@ -15788,7 +15640,7 @@
|
|
|
15788
15640
|
timeout = _ref$timeout === void 0 ? 300 : _ref$timeout,
|
|
15789
15641
|
_ref$initialDirection = _ref.initialDirection,
|
|
15790
15642
|
initialDirection = _ref$initialDirection === void 0 ? "left" : _ref$initialDirection,
|
|
15791
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
15643
|
+
rest = _objectWithoutProperties(_ref, _excluded$v);
|
|
15792
15644
|
var directionSign;
|
|
15793
15645
|
switch (initialDirection) {
|
|
15794
15646
|
case "right":
|
|
@@ -15894,12 +15746,12 @@
|
|
|
15894
15746
|
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;}"]);
|
|
15895
15747
|
});
|
|
15896
15748
|
|
|
15897
|
-
var _excluded$
|
|
15749
|
+
var _excluded$u = ["children", "direction"];
|
|
15898
15750
|
var SlideLeftRightTransition = function SlideLeftRightTransition(_ref) {
|
|
15899
15751
|
var children = _ref.children,
|
|
15900
15752
|
_ref$direction = _ref.direction,
|
|
15901
15753
|
direction = _ref$direction === void 0 ? "left" : _ref$direction,
|
|
15902
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
15754
|
+
props = _objectWithoutProperties(_ref, _excluded$u);
|
|
15903
15755
|
return /*#__PURE__*/React__default["default"].createElement(reactTransitionGroup.CSSTransition, _extends({
|
|
15904
15756
|
timeout: 200,
|
|
15905
15757
|
classNames: "c-slide",
|
|
@@ -15942,7 +15794,7 @@
|
|
|
15942
15794
|
};
|
|
15943
15795
|
ResizeTransition.displayName = "ResizeTransition";
|
|
15944
15796
|
|
|
15945
|
-
var _excluded$
|
|
15797
|
+
var _excluded$t = ["in", "children", "style", "timeout"];
|
|
15946
15798
|
var defaultStyle = function defaultStyle(duration) {
|
|
15947
15799
|
return {
|
|
15948
15800
|
transition: "all ".concat(duration, "ms ease-in"),
|
|
@@ -15976,7 +15828,7 @@
|
|
|
15976
15828
|
style = _ref.style,
|
|
15977
15829
|
_ref$timeout = _ref.timeout,
|
|
15978
15830
|
timeout = _ref$timeout === void 0 ? 200 : _ref$timeout,
|
|
15979
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
15831
|
+
rest = _objectWithoutProperties(_ref, _excluded$t);
|
|
15980
15832
|
return /*#__PURE__*/React__default["default"].createElement(reactTransitionGroup.Transition, _extends({
|
|
15981
15833
|
appear: true,
|
|
15982
15834
|
in: inProp,
|
|
@@ -16026,7 +15878,7 @@
|
|
|
16026
15878
|
};
|
|
16027
15879
|
Scale.displayName = "Scale";
|
|
16028
15880
|
|
|
16029
|
-
var _excluded$
|
|
15881
|
+
var _excluded$s = ["children", "open", "onClose", "className", "enableBackgroundClick", "disableCloseOnEsc", "animate", "onClickOutside"];
|
|
16030
15882
|
var _Dialog = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
16031
15883
|
var children = _ref.children,
|
|
16032
15884
|
_ref$open = _ref.open,
|
|
@@ -16040,7 +15892,7 @@
|
|
|
16040
15892
|
_ref$animate = _ref.animate,
|
|
16041
15893
|
animate = _ref$animate === void 0 ? "slide" : _ref$animate,
|
|
16042
15894
|
onClickOutside = _ref.onClickOutside,
|
|
16043
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
15895
|
+
rest = _objectWithoutProperties(_ref, _excluded$s);
|
|
16044
15896
|
var animateDialog = function animateDialog() {
|
|
16045
15897
|
switch (animate) {
|
|
16046
15898
|
case "fade":
|
|
@@ -16791,7 +16643,7 @@
|
|
|
16791
16643
|
StyledToastMessage.displayName = "StyledToastMessage";
|
|
16792
16644
|
StyledCloseSmallIcon.displayName = "StyledCloseSmallIcon";
|
|
16793
16645
|
|
|
16794
|
-
var _excluded$
|
|
16646
|
+
var _excluded$r = ["text", "type", "onClose", "dismissible", "dropShadow", "timeout"];
|
|
16795
16647
|
var ToastMessage = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
16796
16648
|
var text = _ref.text,
|
|
16797
16649
|
type = _ref.type,
|
|
@@ -16802,7 +16654,7 @@
|
|
|
16802
16654
|
dropShadow = _ref$dropShadow === void 0 ? false : _ref$dropShadow,
|
|
16803
16655
|
_ref$timeout = _ref.timeout,
|
|
16804
16656
|
timeout = _ref$timeout === void 0 ? 0 : _ref$timeout,
|
|
16805
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
16657
|
+
rest = _objectWithoutProperties(_ref, _excluded$r);
|
|
16806
16658
|
var handleOnClose = React.useCallback(function () {
|
|
16807
16659
|
if (typeof onClose === "function") {
|
|
16808
16660
|
onClose();
|
|
@@ -16850,7 +16702,7 @@
|
|
|
16850
16702
|
});
|
|
16851
16703
|
StyledValueButton.displayName = "StyledValueButton";
|
|
16852
16704
|
|
|
16853
|
-
var _excluded$
|
|
16705
|
+
var _excluded$q = ["active", "alwaysShowIcon", "icon", "label", "value"];
|
|
16854
16706
|
var ValueButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
16855
16707
|
var _ref$active = _ref.active,
|
|
16856
16708
|
active = _ref$active === void 0 ? false : _ref$active,
|
|
@@ -16859,7 +16711,7 @@
|
|
|
16859
16711
|
icon = _ref.icon,
|
|
16860
16712
|
label = _ref.label,
|
|
16861
16713
|
value = _ref.value,
|
|
16862
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
16714
|
+
args = _objectWithoutProperties(_ref, _excluded$q);
|
|
16863
16715
|
return /*#__PURE__*/React__default["default"].createElement(StyledValueButton, _extends({
|
|
16864
16716
|
className: "c-value-button"
|
|
16865
16717
|
}, args, {
|
|
@@ -16882,12 +16734,12 @@
|
|
|
16882
16734
|
});
|
|
16883
16735
|
ValueButton.displayName = "ValueButton";
|
|
16884
16736
|
|
|
16885
|
-
var _excluded$
|
|
16737
|
+
var _excluded$p = ["children", "type"];
|
|
16886
16738
|
var Trigger = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
16887
16739
|
var children = _ref.children,
|
|
16888
16740
|
_ref$type = _ref.type,
|
|
16889
16741
|
type = _ref$type === void 0 ? "button" : _ref$type,
|
|
16890
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
16742
|
+
rest = _objectWithoutProperties(_ref, _excluded$p);
|
|
16891
16743
|
return /*#__PURE__*/React__default["default"].createElement(StyledButton, _extends({
|
|
16892
16744
|
ref: ref,
|
|
16893
16745
|
role: "button",
|
|
@@ -16941,7 +16793,7 @@
|
|
|
16941
16793
|
});
|
|
16942
16794
|
StyledCaretIcon.displayName = "StyledCaretIcon";
|
|
16943
16795
|
|
|
16944
|
-
var _excluded$
|
|
16796
|
+
var _excluded$o = ["children", "type", "size", "invalid", "open", "endAdornment", "typographyProps", "mode"];
|
|
16945
16797
|
var SelectTrigger = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
16946
16798
|
var children = _ref.children,
|
|
16947
16799
|
_ref$type = _ref.type,
|
|
@@ -16956,7 +16808,7 @@
|
|
|
16956
16808
|
typographyProps = _ref.typographyProps,
|
|
16957
16809
|
_ref$mode = _ref.mode,
|
|
16958
16810
|
mode = _ref$mode === void 0 ? "outlined" : _ref$mode,
|
|
16959
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
16811
|
+
rest = _objectWithoutProperties(_ref, _excluded$o);
|
|
16960
16812
|
var variant = React.useMemo(function () {
|
|
16961
16813
|
if (size === "big") {
|
|
16962
16814
|
return "Body 1";
|
|
@@ -16987,7 +16839,7 @@
|
|
|
16987
16839
|
});
|
|
16988
16840
|
SelectTrigger.displayName = "SelectTrigger";
|
|
16989
16841
|
|
|
16990
|
-
var _excluded$
|
|
16842
|
+
var _excluded$n = ["mode", "selected", "min", "max", "onChange", "target", "triggerMode"];
|
|
16991
16843
|
var SelectTime = function SelectTime(_ref) {
|
|
16992
16844
|
var _ref$mode = _ref.mode,
|
|
16993
16845
|
mode = _ref$mode === void 0 ? "24" : _ref$mode,
|
|
@@ -16998,7 +16850,7 @@
|
|
|
16998
16850
|
onChange = _ref.onChange,
|
|
16999
16851
|
target = _ref.target,
|
|
17000
16852
|
triggerMode = _ref.triggerMode,
|
|
17001
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
16853
|
+
rest = _objectWithoutProperties(_ref, _excluded$n);
|
|
17002
16854
|
var generateTimeOptions = function generateTimeOptions() {
|
|
17003
16855
|
var minTime = moment__default["default"](isValidTime(min) ? min : "00:00", "HH:mm");
|
|
17004
16856
|
var maxTime = moment__default["default"](isValidTime(max) ? max : "23:45", "HH:mm");
|
|
@@ -17063,11 +16915,11 @@
|
|
|
17063
16915
|
});
|
|
17064
16916
|
StyledToggle.displayName = "StyledToggle";
|
|
17065
16917
|
|
|
17066
|
-
var _excluded$
|
|
16918
|
+
var _excluded$m = ["hovered", "className"];
|
|
17067
16919
|
var Toggle = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
17068
16920
|
var hovered = _ref.hovered,
|
|
17069
16921
|
className = _ref.className,
|
|
17070
|
-
args = _objectWithoutProperties(_ref, _excluded$
|
|
16922
|
+
args = _objectWithoutProperties(_ref, _excluded$m);
|
|
17071
16923
|
return /*#__PURE__*/React__default["default"].createElement(StyledToggle, {
|
|
17072
16924
|
className: classNames__default["default"]("c-toggle", className),
|
|
17073
16925
|
$isHovered: hovered,
|
|
@@ -17219,7 +17071,7 @@
|
|
|
17219
17071
|
})(["color:var(--color-theme-700);"]);
|
|
17220
17072
|
ChipCloseIcon.displayName = "ChipCloseIcon";
|
|
17221
17073
|
|
|
17222
|
-
var _excluded$
|
|
17074
|
+
var _excluded$l = ["startAdornment", "label", "onClose", "size", "color", "backgroundColor", "closeClassName", "typographyProps"];
|
|
17223
17075
|
var Chip = /*#__PURE__*/React__default["default"].forwardRef(function (_ref, ref) {
|
|
17224
17076
|
var startAdornment = _ref.startAdornment,
|
|
17225
17077
|
label = _ref.label,
|
|
@@ -17230,7 +17082,7 @@
|
|
|
17230
17082
|
backgroundColor = _ref.backgroundColor,
|
|
17231
17083
|
closeClassName = _ref.closeClassName,
|
|
17232
17084
|
typographyProps = _ref.typographyProps,
|
|
17233
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
17085
|
+
rest = _objectWithoutProperties(_ref, _excluded$l);
|
|
17234
17086
|
var showClose = typeof onClose === "function";
|
|
17235
17087
|
var variant = React.useMemo(function () {
|
|
17236
17088
|
switch (size) {
|
|
@@ -17263,7 +17115,7 @@
|
|
|
17263
17115
|
});
|
|
17264
17116
|
Chip.displayName = "Chip";
|
|
17265
17117
|
|
|
17266
|
-
var _excluded$
|
|
17118
|
+
var _excluded$k = ["options", "selected", "loading", "loadingText", "onChange", "placeholder", "handleEmptyAction", "disabled", "size", "invalid", "type", "renderChip", "forceCloseMenu", "renderOption", "limitChips", "hiddenNumberText", "inPortal", "inputWrapperClassName", "scrollWrapper", "onClose", "onClear", "onDeselect", "defaultValue"];
|
|
17267
17119
|
var ComboBox = function ComboBox(_ref) {
|
|
17268
17120
|
var _comboBoxRef$current2, _comboBoxRef$current3;
|
|
17269
17121
|
var _ref$options = _ref.options,
|
|
@@ -17298,7 +17150,7 @@
|
|
|
17298
17150
|
onClear = _ref.onClear,
|
|
17299
17151
|
onDeselect = _ref.onDeselect,
|
|
17300
17152
|
defaultValue = _ref.defaultValue,
|
|
17301
|
-
prop = _objectWithoutProperties(_ref, _excluded$
|
|
17153
|
+
prop = _objectWithoutProperties(_ref, _excluded$k);
|
|
17302
17154
|
var selectedName = React.useMemo(function () {
|
|
17303
17155
|
var value = "";
|
|
17304
17156
|
if (!selected) {
|
|
@@ -17708,11 +17560,11 @@
|
|
|
17708
17560
|
})(["display:flex;justify-content:center;gap:12px;align-items:center;height:32px;padding:4px 16px 4px 4px;position:relative;background:none;border:none;cursor:pointer;&:before{content:\"\";display:block;height:2px;width:0%;position:absolute;left:16px;background:var(--color-primary);transition:ease 0.3s all;border-radius:30px;opacity:0;}&:hover{", "{color:var(--page-paper-main);}&:before{height:32px;width:100%;left:0;opacity:1;}", "{fill:var(--page-paper-main);transform:rotate(90deg);transition:ease 0.3s;}}"], StyledText, StyledAddCrossIcon);
|
|
17709
17561
|
StyledAddToListButton.displayName = "StyledAddToListButton";
|
|
17710
17562
|
|
|
17711
|
-
var _excluded$
|
|
17563
|
+
var _excluded$j = ["text", "className"];
|
|
17712
17564
|
var AddToListButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
17713
17565
|
var text = _ref.text,
|
|
17714
17566
|
className = _ref.className,
|
|
17715
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
17567
|
+
rest = _objectWithoutProperties(_ref, _excluded$j);
|
|
17716
17568
|
return /*#__PURE__*/React__default["default"].createElement(StyledAddToListButton, _extends({
|
|
17717
17569
|
ref: ref,
|
|
17718
17570
|
className: classNames__default["default"]("c--add-to-list-btn", className)
|
|
@@ -17792,6 +17644,134 @@
|
|
|
17792
17644
|
};
|
|
17793
17645
|
ProgressBar.displayName = "ProgressBar";
|
|
17794
17646
|
|
|
17647
|
+
var StyledWrapper = styled__default["default"].div.withConfig({
|
|
17648
|
+
displayName: "Styles__StyledWrapper",
|
|
17649
|
+
componentId: "sc-o6dcyu-0"
|
|
17650
|
+
})(["position:relative;display:inline-flex;"]);
|
|
17651
|
+
StyledWrapper.displayName = "StyledWrapper";
|
|
17652
|
+
var StyledChildrenWrapper = styled__default["default"].div.withConfig({
|
|
17653
|
+
displayName: "Styles__StyledChildrenWrapper",
|
|
17654
|
+
componentId: "sc-o6dcyu-1"
|
|
17655
|
+
})(["position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:inline-flex;"]);
|
|
17656
|
+
StyledChildrenWrapper.displayName = "StyledChildrenWrapper";
|
|
17657
|
+
var StyledSvg = styled__default["default"].svg.withConfig({
|
|
17658
|
+
displayName: "Styles__StyledSvg",
|
|
17659
|
+
componentId: "sc-o6dcyu-2"
|
|
17660
|
+
})(["transform:rotate(-90deg);"]);
|
|
17661
|
+
StyledSvg.displayName = "StyledSvg";
|
|
17662
|
+
var StyledBackgroundCircle = styled__default["default"].circle.withConfig({
|
|
17663
|
+
displayName: "Styles__StyledBackgroundCircle",
|
|
17664
|
+
componentId: "sc-o6dcyu-3"
|
|
17665
|
+
})(["fill:transparent;transition:stroke-dashoffset 0.5s linear,stroke 300ms ease-out;", " ", ""], function (props) {
|
|
17666
|
+
return props.$color ? styled.css(["stroke:", ";"], props.$color) : styled.css(["stroke:var(--color-theme-transparent-300);"]);
|
|
17667
|
+
}, function (props) {
|
|
17668
|
+
return props.$strokeDashOffset && styled.css(["stroke-dashoffset:", ";"], props.$strokeDashOffset);
|
|
17669
|
+
});
|
|
17670
|
+
StyledBackgroundCircle.displayName = "StyledBackgroundCircle";
|
|
17671
|
+
var StyledForegroundCircle = styled__default["default"].circle.withConfig({
|
|
17672
|
+
displayName: "Styles__StyledForegroundCircle",
|
|
17673
|
+
componentId: "sc-o6dcyu-4"
|
|
17674
|
+
})(["fill:transparent;transition:stroke-dashoffset 0.5s linear,stroke 300ms ease-out;", " ", " ", ""], function (props) {
|
|
17675
|
+
return props.$roundStroke && styled.css(["stroke-linecap:round;"]);
|
|
17676
|
+
}, function (props) {
|
|
17677
|
+
return props.$color ? styled.css(["stroke:", ";"], props.$color) : styled.css(["stroke:var(--color-secondary);"]);
|
|
17678
|
+
}, function (props) {
|
|
17679
|
+
return props.$strokeDashOffset && styled.css(["stroke-dashoffset:", ";"], props.$strokeDashOffset);
|
|
17680
|
+
});
|
|
17681
|
+
StyledForegroundCircle.displayName = "StyledForegroundCircle";
|
|
17682
|
+
var StyledProgressRingPercentage = styled__default["default"].text.withConfig({
|
|
17683
|
+
displayName: "Styles__StyledProgressRingPercentage",
|
|
17684
|
+
componentId: "sc-o6dcyu-5"
|
|
17685
|
+
})(["transform:rotate(90deg);", " ", ""], function (props) {
|
|
17686
|
+
return props.$color ? styled.css(["fill:", ";"], props.$color) : styled.css(["fill:var(--color-secondary);"]);
|
|
17687
|
+
}, function (props) {
|
|
17688
|
+
return props.$fontSize ? styled.css(["font-size:", "px;"], props.$fontSize) : styled.css(["font-size:10px;"]);
|
|
17689
|
+
});
|
|
17690
|
+
StyledProgressRingPercentage.displayName = "StyledProgressRingPercentage";
|
|
17691
|
+
|
|
17692
|
+
var _excluded$i = ["className", "children"];
|
|
17693
|
+
var ProgressCircle = function ProgressCircle(_ref) {
|
|
17694
|
+
var backgroundColor = _ref.backgroundColor,
|
|
17695
|
+
progressColor = _ref.progressColor,
|
|
17696
|
+
_ref$progress = _ref.progress,
|
|
17697
|
+
progress = _ref$progress === void 0 ? 0 : _ref$progress,
|
|
17698
|
+
_ref$radius = _ref.radius,
|
|
17699
|
+
radius = _ref$radius === void 0 ? 20 : _ref$radius,
|
|
17700
|
+
_ref$stroke = _ref.stroke,
|
|
17701
|
+
stroke = _ref$stroke === void 0 ? 3 : _ref$stroke,
|
|
17702
|
+
_ref$roundStroke = _ref.roundStroke,
|
|
17703
|
+
roundStroke = _ref$roundStroke === void 0 ? false : _ref$roundStroke,
|
|
17704
|
+
className = _ref.className,
|
|
17705
|
+
_ref$showPercentage = _ref.showPercentage,
|
|
17706
|
+
showPercentage = _ref$showPercentage === void 0 ? false : _ref$showPercentage,
|
|
17707
|
+
fontSize = _ref.fontSize;
|
|
17708
|
+
if (stroke > radius) {
|
|
17709
|
+
console.warn("Stroke can not have value greater than the radius.");
|
|
17710
|
+
stroke = radius;
|
|
17711
|
+
}
|
|
17712
|
+
var progressNumber = React.useMemo(function () {
|
|
17713
|
+
var width = progress;
|
|
17714
|
+
if (progress > 100) {
|
|
17715
|
+
width = 100;
|
|
17716
|
+
}
|
|
17717
|
+
if (progress < 0) {
|
|
17718
|
+
width = 0;
|
|
17719
|
+
}
|
|
17720
|
+
return width;
|
|
17721
|
+
}, [progress]);
|
|
17722
|
+
var normalizedRadius = React.useMemo(function () {
|
|
17723
|
+
return radius - stroke / 2;
|
|
17724
|
+
}, [radius, stroke]);
|
|
17725
|
+
var circumference = React.useMemo(function () {
|
|
17726
|
+
return normalizedRadius * 2 * Math.PI;
|
|
17727
|
+
}, [normalizedRadius]);
|
|
17728
|
+
var strokeDashoffsetOuter = React.useMemo(function () {
|
|
17729
|
+
return circumference - (100 - progressNumber) / 100 * circumference;
|
|
17730
|
+
}, [circumference, progressNumber]);
|
|
17731
|
+
var strokeDashoffsetInner = React.useMemo(function () {
|
|
17732
|
+
return circumference - progressNumber / 100 * circumference;
|
|
17733
|
+
}, [circumference, progressNumber]);
|
|
17734
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledSvg, {
|
|
17735
|
+
height: radius * 2,
|
|
17736
|
+
width: radius * 2,
|
|
17737
|
+
className: className
|
|
17738
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledBackgroundCircle, {
|
|
17739
|
+
$color: backgroundColor,
|
|
17740
|
+
$strokeDashOffset: -strokeDashoffsetOuter,
|
|
17741
|
+
strokeWidth: stroke,
|
|
17742
|
+
strokeDasharray: "".concat(circumference, " ").concat(circumference),
|
|
17743
|
+
r: normalizedRadius,
|
|
17744
|
+
cx: radius,
|
|
17745
|
+
cy: radius
|
|
17746
|
+
}), /*#__PURE__*/React__default["default"].createElement(StyledForegroundCircle, {
|
|
17747
|
+
$color: progressColor,
|
|
17748
|
+
$strokeDashOffset: strokeDashoffsetInner,
|
|
17749
|
+
strokeWidth: stroke,
|
|
17750
|
+
strokeDasharray: "".concat(circumference, " ").concat(circumference),
|
|
17751
|
+
$roundStroke: roundStroke,
|
|
17752
|
+
r: normalizedRadius,
|
|
17753
|
+
cx: radius,
|
|
17754
|
+
cy: radius
|
|
17755
|
+
}), showPercentage ? /*#__PURE__*/React__default["default"].createElement(StyledProgressRingPercentage, {
|
|
17756
|
+
$color: progressColor,
|
|
17757
|
+
$fontSize: fontSize,
|
|
17758
|
+
x: "50%",
|
|
17759
|
+
y: "-50%",
|
|
17760
|
+
dominantBaseline: "central",
|
|
17761
|
+
textAnchor: "middle"
|
|
17762
|
+
}, progressNumber, "%") : null);
|
|
17763
|
+
};
|
|
17764
|
+
var ProgressRing = function ProgressRing(_ref2) {
|
|
17765
|
+
var className = _ref2.className,
|
|
17766
|
+
children = _ref2.children,
|
|
17767
|
+
rest = _objectWithoutProperties(_ref2, _excluded$i);
|
|
17768
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
|
|
17769
|
+
className: classNames__default["default"](className),
|
|
17770
|
+
"data-testid": "progress-ring"
|
|
17771
|
+
}, /*#__PURE__*/React__default["default"].createElement(ProgressCircle, rest), children ? /*#__PURE__*/React__default["default"].createElement(StyledChildrenWrapper, null, children) : null);
|
|
17772
|
+
};
|
|
17773
|
+
ProgressRing.displayName = "ProgressRing";
|
|
17774
|
+
|
|
17795
17775
|
var _excluded$h = ["radius"];
|
|
17796
17776
|
var ProgressPie = function ProgressPie(_ref) {
|
|
17797
17777
|
var _ref$radius = _ref.radius,
|
|
@@ -19980,6 +19960,7 @@
|
|
|
19980
19960
|
exports.Choose = Choose;
|
|
19981
19961
|
exports.CircleMultipleIcon = CircleMultipleIcon$1;
|
|
19982
19962
|
exports.ClockAddIcon = ClockAddIcon$1;
|
|
19963
|
+
exports.ClockDollarIcon = ClockDollarIcon$1;
|
|
19983
19964
|
exports.ClockIcon = ClockIcon$1;
|
|
19984
19965
|
exports.ClockSmallIcon = ClockSmallIcon$1;
|
|
19985
19966
|
exports.ClockStopwatchIcon = ClockStopwatchIcon$1;
|