@activecollab/components 1.0.105 → 1.0.108
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/ArrowLeft.js +31 -0
- package/dist/cjs/components/Icons/collection/ArrowLeft.js.map +1 -0
- package/dist/cjs/components/Icons/collection/index.js +8 -16
- package/dist/cjs/components/Icons/collection/index.js.map +1 -1
- package/dist/cjs/components/MenuSelector/Styles.js +2 -2
- package/dist/cjs/components/MenuSelector/Styles.js.map +1 -1
- package/dist/cjs/components/Pickers/NavBarElement.js +5 -3
- package/dist/cjs/components/Pickers/NavBarElement.js.map +1 -1
- package/dist/cjs/components/Pickers/Styles.js +6 -18
- package/dist/cjs/components/Pickers/Styles.js.map +1 -1
- package/dist/cjs/components/Select/OptionContent/OptionContent.js +3 -2
- package/dist/cjs/components/Select/OptionContent/OptionContent.js.map +1 -1
- package/dist/cjs/components/Select/OptionContent/Styles.js +11 -3
- package/dist/cjs/components/Select/OptionContent/Styles.js.map +1 -1
- package/dist/cjs/components/Select/Select.js +5 -8
- package/dist/cjs/components/Select/Select.js.map +1 -1
- package/dist/cjs/components/Select/Styles.js +18 -2
- package/dist/cjs/components/Select/Styles.js.map +1 -1
- package/dist/cjs/components/Steppers/DateStepper/DateStepper.js +5 -7
- package/dist/cjs/components/Steppers/DateStepper/DateStepper.js.map +1 -1
- package/dist/esm/components/Icons/collection/ArrowLeft.d.ts +4 -0
- package/dist/esm/components/Icons/collection/ArrowLeft.d.ts.map +1 -0
- package/dist/esm/components/Icons/collection/ArrowLeft.js +18 -0
- package/dist/esm/components/Icons/collection/ArrowLeft.js.map +1 -0
- package/dist/esm/components/Icons/collection/index.d.ts +1 -2
- package/dist/esm/components/Icons/collection/index.d.ts.map +1 -1
- package/dist/esm/components/Icons/collection/index.js +1 -2
- package/dist/esm/components/Icons/collection/index.js.map +1 -1
- package/dist/esm/components/MenuSelector/Styles.js +2 -2
- package/dist/esm/components/MenuSelector/Styles.js.map +1 -1
- package/dist/esm/components/Pickers/NavBarElement.d.ts.map +1 -1
- package/dist/esm/components/Pickers/NavBarElement.js +5 -4
- package/dist/esm/components/Pickers/NavBarElement.js.map +1 -1
- package/dist/esm/components/Pickers/Styles.d.ts +0 -1
- package/dist/esm/components/Pickers/Styles.d.ts.map +1 -1
- package/dist/esm/components/Pickers/Styles.js +5 -13
- package/dist/esm/components/Pickers/Styles.js.map +1 -1
- package/dist/esm/components/Select/OptionContent/OptionContent.d.ts +1 -0
- package/dist/esm/components/Select/OptionContent/OptionContent.d.ts.map +1 -1
- package/dist/esm/components/Select/OptionContent/OptionContent.js +4 -3
- package/dist/esm/components/Select/OptionContent/OptionContent.js.map +1 -1
- package/dist/esm/components/Select/OptionContent/Styles.d.ts +1 -0
- package/dist/esm/components/Select/OptionContent/Styles.d.ts.map +1 -1
- package/dist/esm/components/Select/OptionContent/Styles.js +7 -2
- package/dist/esm/components/Select/OptionContent/Styles.js.map +1 -1
- package/dist/esm/components/Select/Select.d.ts.map +1 -1
- package/dist/esm/components/Select/Select.js +6 -7
- package/dist/esm/components/Select/Select.js.map +1 -1
- package/dist/esm/components/Select/Styles.d.ts +3 -1
- package/dist/esm/components/Select/Styles.d.ts.map +1 -1
- package/dist/esm/components/Select/Styles.js +13 -1
- package/dist/esm/components/Select/Styles.js.map +1 -1
- package/dist/esm/components/Steppers/DateStepper/DateStepper.d.ts.map +1 -1
- package/dist/esm/components/Steppers/DateStepper/DateStepper.js +4 -7
- package/dist/esm/components/Steppers/DateStepper/DateStepper.js.map +1 -1
- package/dist/index.js +166 -177
- 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 +5 -1
package/dist/index.js
CHANGED
|
@@ -468,22 +468,6 @@
|
|
|
468
468
|
AddCrossIcon.displayName = "AddCrossIcon";
|
|
469
469
|
var AddCrossIcon$1 = AddCrossIcon;
|
|
470
470
|
|
|
471
|
-
var ArrowBackIcon = /*#__PURE__*/React__default["default"].forwardRef(function (props, svgRef) {
|
|
472
|
-
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
473
|
-
width: 7,
|
|
474
|
-
height: 13,
|
|
475
|
-
viewBox: "0 0 7 13",
|
|
476
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
477
|
-
fill: "var(--color-theme-600)",
|
|
478
|
-
ref: svgRef
|
|
479
|
-
}, props), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
480
|
-
d: "M1.839 6.425l4.586-4.586V.425l-6 6 6 6V11.01z",
|
|
481
|
-
fillRule: "nonzero"
|
|
482
|
-
}));
|
|
483
|
-
});
|
|
484
|
-
ArrowBackIcon.displayName = "ArrowBackIcon";
|
|
485
|
-
var ArrowBackIcon$1 = ArrowBackIcon;
|
|
486
|
-
|
|
487
471
|
var ArrowCollapseMultipleIcon = /*#__PURE__*/React__default["default"].forwardRef(function (props, svgRef) {
|
|
488
472
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
489
473
|
width: 24,
|
|
@@ -532,6 +516,22 @@
|
|
|
532
516
|
ArrowLeftBoxIcon.displayName = "ArrowLeftBoxIcon";
|
|
533
517
|
var ArrowLeftBoxIcon$1 = ArrowLeftBoxIcon;
|
|
534
518
|
|
|
519
|
+
var ArrowLeftIcon = /*#__PURE__*/React__default["default"].forwardRef(function (props, svgRef) {
|
|
520
|
+
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
521
|
+
width: 24,
|
|
522
|
+
height: 24,
|
|
523
|
+
viewBox: "0 0 24 24",
|
|
524
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
525
|
+
fill: "var(--color-theme-600)",
|
|
526
|
+
ref: svgRef
|
|
527
|
+
}, props), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
528
|
+
d: "M13.45 6.337l-5.657 5.657 5.657 5.657a1 1 0 101.414-1.414l-4.241-4.243 4.241-4.243a1 1 0 00-1.414-1.414z",
|
|
529
|
+
fillRule: "evenodd"
|
|
530
|
+
}));
|
|
531
|
+
});
|
|
532
|
+
ArrowLeftIcon.displayName = "ArrowLeftIcon";
|
|
533
|
+
var ArrowLeftIcon$1 = ArrowLeftIcon;
|
|
534
|
+
|
|
535
535
|
var ArrowRefreshIcon = /*#__PURE__*/React__default["default"].forwardRef(function (props, svgRef) {
|
|
536
536
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
537
537
|
width: 24,
|
|
@@ -1689,22 +1689,6 @@
|
|
|
1689
1689
|
MarkerIcon.displayName = "MarkerIcon";
|
|
1690
1690
|
var MarkerIcon$1 = MarkerIcon;
|
|
1691
1691
|
|
|
1692
|
-
var MenuNavIcon = /*#__PURE__*/React__default["default"].forwardRef(function (props, svgRef) {
|
|
1693
|
-
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1694
|
-
width: 24,
|
|
1695
|
-
height: 24,
|
|
1696
|
-
viewBox: "0 0 24 24",
|
|
1697
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1698
|
-
fill: "var(--color-theme-600)",
|
|
1699
|
-
ref: svgRef
|
|
1700
|
-
}, props), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
1701
|
-
d: "M13.45 6.337l-5.657 5.657 5.657 5.657a1 1 0 101.414-1.414l-4.241-4.243 4.241-4.243a1 1 0 00-1.414-1.414z",
|
|
1702
|
-
fillRule: "evenodd"
|
|
1703
|
-
}));
|
|
1704
|
-
});
|
|
1705
|
-
MenuNavIcon.displayName = "MenuNavIcon";
|
|
1706
|
-
var MenuNavIcon$1 = MenuNavIcon;
|
|
1707
|
-
|
|
1708
1692
|
var MessageAddIcon = /*#__PURE__*/React__default["default"].forwardRef(function (props, svgRef) {
|
|
1709
1693
|
return /*#__PURE__*/React__default["default"].createElement("svg", _extends({
|
|
1710
1694
|
width: 24,
|
|
@@ -3887,15 +3871,9 @@
|
|
|
3887
3871
|
}, function (props) {
|
|
3888
3872
|
return props.$direction === "next" && styled.css(["right:1px;"]);
|
|
3889
3873
|
});
|
|
3890
|
-
var StyledMenuNavIcon = styled__default["default"](MenuNavIcon$1).withConfig({
|
|
3891
|
-
displayName: "Styles__StyledMenuNavIcon",
|
|
3892
|
-
componentId: "sc-1owijsg-1"
|
|
3893
|
-
})(["", " transform:rotate(180deg);"], {
|
|
3894
|
-
"transform": "var(--tw-transform)"
|
|
3895
|
-
});
|
|
3896
3874
|
var StyledMonths = styled__default["default"].div.withConfig({
|
|
3897
3875
|
displayName: "Styles__StyledMonths",
|
|
3898
|
-
componentId: "sc-1owijsg-
|
|
3876
|
+
componentId: "sc-1owijsg-1"
|
|
3899
3877
|
})(["top:30px;height:230px;", ""], {
|
|
3900
3878
|
"position": "absolute",
|
|
3901
3879
|
"left": "0px",
|
|
@@ -3907,7 +3885,7 @@
|
|
|
3907
3885
|
});
|
|
3908
3886
|
var StyledMonth = styled__default["default"].div.withConfig({
|
|
3909
3887
|
displayName: "Styles__StyledMonth",
|
|
3910
|
-
componentId: "sc-1owijsg-
|
|
3888
|
+
componentId: "sc-1owijsg-2"
|
|
3911
3889
|
})(["width:26%;transition-duration:0.3s;", " ", " ", " ", " ", ""], {
|
|
3912
3890
|
"margin": "auto",
|
|
3913
3891
|
"cursor": "pointer",
|
|
@@ -3930,25 +3908,24 @@
|
|
|
3930
3908
|
});
|
|
3931
3909
|
var StyledYearMonthPicker = styled__default["default"].div.withConfig({
|
|
3932
3910
|
displayName: "Styles__StyledYearMonthPicker",
|
|
3933
|
-
componentId: "sc-1owijsg-
|
|
3911
|
+
componentId: "sc-1owijsg-3"
|
|
3934
3912
|
})(["display:table-caption;margin-bottom:0.5rem;padding:0 0.5rem;", " &> div{font-weight:500;font-size:1.15rem;}"], {
|
|
3935
3913
|
"textAlign": "center",
|
|
3936
3914
|
"color": "var(--color-theme-900)"
|
|
3937
3915
|
});
|
|
3938
3916
|
var StyledYearMonthPickerNavBar = styled__default["default"].div.withConfig({
|
|
3939
3917
|
displayName: "Styles__StyledYearMonthPickerNavBar",
|
|
3940
|
-
componentId: "sc-1owijsg-
|
|
3918
|
+
componentId: "sc-1owijsg-4"
|
|
3941
3919
|
})(["width:auto;margin:0 auto;"]);
|
|
3942
3920
|
var StyledYearMonthPickerNavBarItem = styled__default["default"].span.withConfig({
|
|
3943
3921
|
displayName: "Styles__StyledYearMonthPickerNavBarItem",
|
|
3944
|
-
componentId: "sc-1owijsg-
|
|
3922
|
+
componentId: "sc-1owijsg-5"
|
|
3945
3923
|
})(["", " transition-duration:0.3s;display:inline-block;&:hover{background-color:var(--color-primary-300);border-radius:15px;}"], {
|
|
3946
3924
|
"paddingLeft": "1rem",
|
|
3947
3925
|
"paddingRight": "1rem",
|
|
3948
3926
|
"cursor": "pointer"
|
|
3949
3927
|
});
|
|
3950
3928
|
StyledNavBarButton.displayName = "StyledNavBarButton";
|
|
3951
|
-
StyledMenuNavIcon.displayName = "StyledMenuNavIcon";
|
|
3952
3929
|
StyledMonths.displayName = "StyledMonths";
|
|
3953
3930
|
StyledMonth.displayName = "StyledMonth";
|
|
3954
3931
|
|
|
@@ -4034,7 +4011,7 @@
|
|
|
4034
4011
|
tabIndex: 0,
|
|
4035
4012
|
onClick: onPrevious,
|
|
4036
4013
|
$direction: "previous"
|
|
4037
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
4014
|
+
}, /*#__PURE__*/React__default["default"].createElement(ArrowLeftIcon$1, {
|
|
4038
4015
|
"aria-label": "Previous Month",
|
|
4039
4016
|
width: "24",
|
|
4040
4017
|
height: "24"
|
|
@@ -4045,7 +4022,7 @@
|
|
|
4045
4022
|
tabIndex: 0,
|
|
4046
4023
|
onClick: onNext,
|
|
4047
4024
|
$direction: "next"
|
|
4048
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
4025
|
+
}, /*#__PURE__*/React__default["default"].createElement(ArrowRightIcon$1, {
|
|
4049
4026
|
"aria-label": "Next Month",
|
|
4050
4027
|
width: "24",
|
|
4051
4028
|
height: "24"
|
|
@@ -4808,7 +4785,7 @@
|
|
|
4808
4785
|
variant: "secondary",
|
|
4809
4786
|
onClick: onLeftClickHandler,
|
|
4810
4787
|
disabled: isBeforeMinDate
|
|
4811
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
4788
|
+
}, /*#__PURE__*/React__default["default"].createElement(ArrowLeftIcon$1, null)) : null, /*#__PURE__*/React__default["default"].createElement(StyledDiv, {
|
|
4812
4789
|
$isTargetable: step === "yearly" || !withDatePicker,
|
|
4813
4790
|
$isRounded: step === "custom",
|
|
4814
4791
|
style: dateStepperWidth(fromDate, toDate, step)
|
|
@@ -4842,11 +4819,7 @@
|
|
|
4842
4819
|
variant: "secondary",
|
|
4843
4820
|
onClick: onRightClickHandler,
|
|
4844
4821
|
disabled: isAfterMaxDate
|
|
4845
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
4846
|
-
style: {
|
|
4847
|
-
transform: "rotate(180deg)"
|
|
4848
|
-
}
|
|
4849
|
-
})) : null);
|
|
4822
|
+
}, /*#__PURE__*/React__default["default"].createElement(ArrowRightIcon$1, null)) : null);
|
|
4850
4823
|
};
|
|
4851
4824
|
DateStepper.displayName = "DateStepper";
|
|
4852
4825
|
|
|
@@ -6068,114 +6041,6 @@
|
|
|
6068
6041
|
});
|
|
6069
6042
|
SpinnerLoader.displayName = "SpinnerLoader";
|
|
6070
6043
|
|
|
6071
|
-
var StyledInput$1 = styled__default["default"].input.withConfig({
|
|
6072
|
-
displayName: "Styles__StyledInput",
|
|
6073
|
-
componentId: "sc-y7zymm-0"
|
|
6074
|
-
})(["display:none;"]);
|
|
6075
|
-
StyledInput$1.displayName = "StyledInput";
|
|
6076
|
-
var StyledLabel = styled__default["default"].label.withConfig({
|
|
6077
|
-
displayName: "Styles__StyledLabel",
|
|
6078
|
-
componentId: "sc-y7zymm-1"
|
|
6079
|
-
})([""]);
|
|
6080
|
-
StyledLabel.displayName = "StyledLabel";
|
|
6081
|
-
var StyledCheckbox = styled__default["default"].div.withConfig({
|
|
6082
|
-
displayName: "Styles__StyledCheckbox",
|
|
6083
|
-
componentId: "sc-y7zymm-2"
|
|
6084
|
-
})(["height:16px;width:16px;position:relative;transition-duration:0.2s;border-radius:2px;path{transition-duration:0.2s;stroke:transparent;stroke-dashoffset:12;stroke-dasharray:12;}svg{cursor:pointer;border-radius:2px;fill:transparent;}rect{transition-duration:0.2s;stroke:var(--color-theme-500);}", ":disabled ~ ", "{pointer-events:none;opacity:0.5;}", ":focus ~ ", "{rect{stroke:var(--color-secondary);stroke-width:3px;}}&:not(.c-checkbox__controlled) ", ":hover:not(:checked) ~ ", "{path{stroke:var(--color-secondary-500);stroke-dashoffset:24;}rect{stroke:var(--color-secondary);stroke-width:3px;}}", " ", ":checked ~ ", "{path{stroke:var(--page-paper-main);stroke-dashoffset:24;}rect{stroke:var(--color-secondary);stroke-width:19px;}}"], StyledInput$1, StyledLabel, StyledInput$1, StyledLabel, StyledInput$1, StyledLabel, function (props) {
|
|
6085
|
-
return props.hover && styled.css(["", "{path{stroke:var(--color-secondary-500);stroke-dashoffset:24;}rect{stroke:var(--color-secondary);stroke-width:3px;}"], StyledLabel);
|
|
6086
|
-
}, StyledInput$1, StyledLabel);
|
|
6087
|
-
StyledCheckbox.displayName = "StyledCheckbox";
|
|
6088
|
-
|
|
6089
|
-
var _excluded$u = ["className", "hover", "id"];
|
|
6090
|
-
|
|
6091
|
-
/**
|
|
6092
|
-
* Checkbox component
|
|
6093
|
-
*/
|
|
6094
|
-
var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
6095
|
-
var className = _ref.className,
|
|
6096
|
-
hover = _ref.hover,
|
|
6097
|
-
_ref$id = _ref.id,
|
|
6098
|
-
id = _ref$id === void 0 ? "checkbox" : _ref$id,
|
|
6099
|
-
rest = _objectWithoutProperties(_ref, _excluded$u);
|
|
6100
|
-
|
|
6101
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledCheckbox, {
|
|
6102
|
-
className: classnames__default["default"]("c-checkbox", {
|
|
6103
|
-
"c-checkbox__hover": hover,
|
|
6104
|
-
"c-checkbox__controlled": typeof hover === "boolean"
|
|
6105
|
-
}, className),
|
|
6106
|
-
hover: hover
|
|
6107
|
-
}, /*#__PURE__*/React__default["default"].createElement(StyledInput$1, _extends({
|
|
6108
|
-
id: id,
|
|
6109
|
-
className: "c-checkbox--input",
|
|
6110
|
-
type: "checkbox",
|
|
6111
|
-
ref: ref
|
|
6112
|
-
}, rest)), /*#__PURE__*/React__default["default"].createElement(StyledLabel, {
|
|
6113
|
-
htmlFor: id,
|
|
6114
|
-
className: "c-checkbox--label"
|
|
6115
|
-
}, /*#__PURE__*/React__default["default"].createElement(CheckboxIcon$1, {
|
|
6116
|
-
height: 16,
|
|
6117
|
-
width: 16
|
|
6118
|
-
})));
|
|
6119
|
-
});
|
|
6120
|
-
Checkbox.displayName = "Checkbox";
|
|
6121
|
-
|
|
6122
|
-
var StyledRadioInput = styled__default["default"].input.withConfig({
|
|
6123
|
-
displayName: "Styles__StyledRadioInput",
|
|
6124
|
-
componentId: "sc-1xh9uc2-0"
|
|
6125
|
-
})(["display:none;"]);
|
|
6126
|
-
StyledRadioInput.displayName = "StyledRadioInput";
|
|
6127
|
-
var StyledRadioLabel = styled__default["default"].label.withConfig({
|
|
6128
|
-
displayName: "Styles__StyledRadioLabel",
|
|
6129
|
-
componentId: "sc-1xh9uc2-1"
|
|
6130
|
-
})(["", ""], {
|
|
6131
|
-
"display": "inline-flex",
|
|
6132
|
-
"alignItems": "center"
|
|
6133
|
-
});
|
|
6134
|
-
StyledRadioLabel.displayName = "StyledRadioLabel";
|
|
6135
|
-
var StyledRadioButton = styled__default["default"].div.withConfig({
|
|
6136
|
-
displayName: "Styles__StyledRadioButton",
|
|
6137
|
-
componentId: "sc-1xh9uc2-2"
|
|
6138
|
-
})(["", " ", " height:16px;width:16px;position:relative;svg{cursor:pointer;fill:transparent;}circle:first-child{transition-duration:0.2s;stroke:var(--color-theme-500);}circle:last-child{transition-duration:0.2s;transform-origin:center;transform:scale(0);fill:var(--color-secondary-500);}input:focus ~ ", "{circle:first-child{stroke:var(--color-secondary);}}input:disabled ~ ", "{pointer-events:none;opacity:0.5;}", " ", " input:checked ~ ", "{circle:first-child{stroke:var(--color-secondary);}circle:last-child{transform:scale(1);fill:var(--color-secondary);}}"], BoxSizingStyle, {
|
|
6139
|
-
"display": "inline-flex",
|
|
6140
|
-
"alignItems": "center"
|
|
6141
|
-
}, StyledRadioLabel, StyledRadioLabel, function (props) {
|
|
6142
|
-
return props.$isControlled !== true && styled.css(["input:hover ~ ", "{circle:first-child{stroke:var(--color-secondary);}circle:last-child{transform:scale(1);}}"], StyledRadioLabel);
|
|
6143
|
-
}, function (props) {
|
|
6144
|
-
return props.$isHovered && styled.css(["", "{circle:first-child{stroke:var(--color-secondary);}circle:last-child{transform:scale(1);}}"], StyledRadioLabel);
|
|
6145
|
-
}, StyledRadioLabel);
|
|
6146
|
-
StyledRadioButton.displayName = "StyledRadioButton";
|
|
6147
|
-
|
|
6148
|
-
var _excluded$t = ["className", "id", "hover"];
|
|
6149
|
-
var RadioButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
6150
|
-
var _ref$className = _ref.className,
|
|
6151
|
-
className = _ref$className === void 0 ? "" : _ref$className,
|
|
6152
|
-
_ref$id = _ref.id,
|
|
6153
|
-
id = _ref$id === void 0 ? "radio" : _ref$id,
|
|
6154
|
-
hover = _ref.hover,
|
|
6155
|
-
props = _objectWithoutProperties(_ref, _excluded$t);
|
|
6156
|
-
|
|
6157
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledRadioButton, {
|
|
6158
|
-
className: classnames__default["default"]("c-radio-btn", {
|
|
6159
|
-
"c-radio-btn__hover": hover,
|
|
6160
|
-
"c-radio-btn__controlled": typeof hover === "boolean"
|
|
6161
|
-
}, className),
|
|
6162
|
-
$isHovered: hover,
|
|
6163
|
-
$isControlled: typeof hover === "boolean"
|
|
6164
|
-
}, /*#__PURE__*/React__default["default"].createElement(StyledRadioInput, _extends({
|
|
6165
|
-
id: id,
|
|
6166
|
-
className: "c-radio-btn--input",
|
|
6167
|
-
type: "radio",
|
|
6168
|
-
ref: ref
|
|
6169
|
-
}, props)), /*#__PURE__*/React__default["default"].createElement(StyledRadioLabel, {
|
|
6170
|
-
htmlFor: id,
|
|
6171
|
-
className: "c-radio-btn--label"
|
|
6172
|
-
}, /*#__PURE__*/React__default["default"].createElement(RadioButtonIcon$1, {
|
|
6173
|
-
width: "16",
|
|
6174
|
-
height: "16"
|
|
6175
|
-
})));
|
|
6176
|
-
});
|
|
6177
|
-
RadioButton.displayName = "RadioButton";
|
|
6178
|
-
|
|
6179
6044
|
var StyledHiglightedText = styled__default["default"].span.withConfig({
|
|
6180
6045
|
displayName: "useHighlightText__StyledHiglightedText",
|
|
6181
6046
|
componentId: "sc-13agf6o-0"
|
|
@@ -6268,6 +6133,57 @@
|
|
|
6268
6133
|
});
|
|
6269
6134
|
Option.displayName = "Option";
|
|
6270
6135
|
|
|
6136
|
+
var StyledInput$1 = styled__default["default"].input.withConfig({
|
|
6137
|
+
displayName: "Styles__StyledInput",
|
|
6138
|
+
componentId: "sc-y7zymm-0"
|
|
6139
|
+
})(["display:none;"]);
|
|
6140
|
+
StyledInput$1.displayName = "StyledInput";
|
|
6141
|
+
var StyledLabel = styled__default["default"].label.withConfig({
|
|
6142
|
+
displayName: "Styles__StyledLabel",
|
|
6143
|
+
componentId: "sc-y7zymm-1"
|
|
6144
|
+
})([""]);
|
|
6145
|
+
StyledLabel.displayName = "StyledLabel";
|
|
6146
|
+
var StyledCheckbox$1 = styled__default["default"].div.withConfig({
|
|
6147
|
+
displayName: "Styles__StyledCheckbox",
|
|
6148
|
+
componentId: "sc-y7zymm-2"
|
|
6149
|
+
})(["height:16px;width:16px;position:relative;transition-duration:0.2s;border-radius:2px;path{transition-duration:0.2s;stroke:transparent;stroke-dashoffset:12;stroke-dasharray:12;}svg{cursor:pointer;border-radius:2px;fill:transparent;}rect{transition-duration:0.2s;stroke:var(--color-theme-500);}", ":disabled ~ ", "{pointer-events:none;opacity:0.5;}", ":focus ~ ", "{rect{stroke:var(--color-secondary);stroke-width:3px;}}&:not(.c-checkbox__controlled) ", ":hover:not(:checked) ~ ", "{path{stroke:var(--color-secondary-500);stroke-dashoffset:24;}rect{stroke:var(--color-secondary);stroke-width:3px;}}", " ", ":checked ~ ", "{path{stroke:var(--page-paper-main);stroke-dashoffset:24;}rect{stroke:var(--color-secondary);stroke-width:19px;}}"], StyledInput$1, StyledLabel, StyledInput$1, StyledLabel, StyledInput$1, StyledLabel, function (props) {
|
|
6150
|
+
return props.hover && styled.css(["", "{path{stroke:var(--color-secondary-500);stroke-dashoffset:24;}rect{stroke:var(--color-secondary);stroke-width:3px;}"], StyledLabel);
|
|
6151
|
+
}, StyledInput$1, StyledLabel);
|
|
6152
|
+
StyledCheckbox$1.displayName = "StyledCheckbox";
|
|
6153
|
+
|
|
6154
|
+
var _excluded$u = ["className", "hover", "id"];
|
|
6155
|
+
|
|
6156
|
+
/**
|
|
6157
|
+
* Checkbox component
|
|
6158
|
+
*/
|
|
6159
|
+
var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
6160
|
+
var className = _ref.className,
|
|
6161
|
+
hover = _ref.hover,
|
|
6162
|
+
_ref$id = _ref.id,
|
|
6163
|
+
id = _ref$id === void 0 ? "checkbox" : _ref$id,
|
|
6164
|
+
rest = _objectWithoutProperties(_ref, _excluded$u);
|
|
6165
|
+
|
|
6166
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledCheckbox$1, {
|
|
6167
|
+
className: classnames__default["default"]("c-checkbox", {
|
|
6168
|
+
"c-checkbox__hover": hover,
|
|
6169
|
+
"c-checkbox__controlled": typeof hover === "boolean"
|
|
6170
|
+
}, className),
|
|
6171
|
+
hover: hover
|
|
6172
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledInput$1, _extends({
|
|
6173
|
+
id: id,
|
|
6174
|
+
className: "c-checkbox--input",
|
|
6175
|
+
type: "checkbox",
|
|
6176
|
+
ref: ref
|
|
6177
|
+
}, rest)), /*#__PURE__*/React__default["default"].createElement(StyledLabel, {
|
|
6178
|
+
htmlFor: id,
|
|
6179
|
+
className: "c-checkbox--label"
|
|
6180
|
+
}, /*#__PURE__*/React__default["default"].createElement(CheckboxIcon$1, {
|
|
6181
|
+
height: 16,
|
|
6182
|
+
width: 16
|
|
6183
|
+
})));
|
|
6184
|
+
});
|
|
6185
|
+
Checkbox.displayName = "Checkbox";
|
|
6186
|
+
|
|
6271
6187
|
var StyledOptionGroup = styled__default["default"].div.withConfig({
|
|
6272
6188
|
displayName: "Styles__StyledOptionGroup",
|
|
6273
6189
|
componentId: "sc-16v5afu-0"
|
|
@@ -6420,7 +6336,7 @@
|
|
|
6420
6336
|
StyledScrollShadowLeft.displayName = "StyledScrollShadowLeft";
|
|
6421
6337
|
StyledScrollShadowRight.displayName = "StyledScrollShadowRight";
|
|
6422
6338
|
|
|
6423
|
-
var _excluded$
|
|
6339
|
+
var _excluded$t = ["children", "className", "disableVertical", "disableHorizontal", "invertHorizontal", "invertVertical", "innerColor", "outerColor"];
|
|
6424
6340
|
var ScrollShadow = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
6425
6341
|
var children = _ref.children,
|
|
6426
6342
|
className = _ref.className,
|
|
@@ -6434,7 +6350,7 @@
|
|
|
6434
6350
|
invertVertical = _ref$invertVertical === void 0 ? false : _ref$invertVertical,
|
|
6435
6351
|
innerColor = _ref.innerColor,
|
|
6436
6352
|
outerColor = _ref.outerColor,
|
|
6437
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6353
|
+
rest = _objectWithoutProperties(_ref, _excluded$t);
|
|
6438
6354
|
|
|
6439
6355
|
var _useState = React.useState({
|
|
6440
6356
|
top: 0,
|
|
@@ -6564,7 +6480,7 @@
|
|
|
6564
6480
|
return height;
|
|
6565
6481
|
};
|
|
6566
6482
|
|
|
6567
|
-
var _excluded$
|
|
6483
|
+
var _excluded$s = ["as", "className", "invert", "style"];
|
|
6568
6484
|
var ScrollElement = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
6569
6485
|
var _ref$as = _ref.as,
|
|
6570
6486
|
as = _ref$as === void 0 ? "div" : _ref$as,
|
|
@@ -6572,7 +6488,7 @@
|
|
|
6572
6488
|
_ref$invert = _ref.invert,
|
|
6573
6489
|
invert = _ref$invert === void 0 ? false : _ref$invert,
|
|
6574
6490
|
style = _ref.style,
|
|
6575
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6491
|
+
rest = _objectWithoutProperties(_ref, _excluded$s);
|
|
6576
6492
|
|
|
6577
6493
|
var internalRef = useInitScrollRef(null, invert);
|
|
6578
6494
|
var handleRef = useForkRef(internalRef, ref);
|
|
@@ -7027,7 +6943,7 @@
|
|
|
7027
6943
|
});
|
|
7028
6944
|
StyledInput.displayName = "StyledInput";
|
|
7029
6945
|
|
|
7030
|
-
var _excluded$
|
|
6946
|
+
var _excluded$r = ["className", "type", "disabled", "size", "invalid"];
|
|
7031
6947
|
var Input = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
7032
6948
|
var _ref$className = _ref.className,
|
|
7033
6949
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
@@ -7039,7 +6955,7 @@
|
|
|
7039
6955
|
size = _ref$size === void 0 ? "regular" : _ref$size,
|
|
7040
6956
|
_ref$invalid = _ref.invalid,
|
|
7041
6957
|
invalid = _ref$invalid === void 0 ? false : _ref$invalid,
|
|
7042
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6958
|
+
rest = _objectWithoutProperties(_ref, _excluded$r);
|
|
7043
6959
|
|
|
7044
6960
|
return /*#__PURE__*/React__default["default"].createElement(StyledInput, _extends({
|
|
7045
6961
|
ref: ref,
|
|
@@ -7052,6 +6968,63 @@
|
|
|
7052
6968
|
});
|
|
7053
6969
|
Input.displayName = "Input";
|
|
7054
6970
|
|
|
6971
|
+
var StyledRadioInput = styled__default["default"].input.withConfig({
|
|
6972
|
+
displayName: "Styles__StyledRadioInput",
|
|
6973
|
+
componentId: "sc-1xh9uc2-0"
|
|
6974
|
+
})(["display:none;"]);
|
|
6975
|
+
StyledRadioInput.displayName = "StyledRadioInput";
|
|
6976
|
+
var StyledRadioLabel = styled__default["default"].label.withConfig({
|
|
6977
|
+
displayName: "Styles__StyledRadioLabel",
|
|
6978
|
+
componentId: "sc-1xh9uc2-1"
|
|
6979
|
+
})(["", ""], {
|
|
6980
|
+
"display": "inline-flex",
|
|
6981
|
+
"alignItems": "center"
|
|
6982
|
+
});
|
|
6983
|
+
StyledRadioLabel.displayName = "StyledRadioLabel";
|
|
6984
|
+
var StyledRadioButton$1 = styled__default["default"].div.withConfig({
|
|
6985
|
+
displayName: "Styles__StyledRadioButton",
|
|
6986
|
+
componentId: "sc-1xh9uc2-2"
|
|
6987
|
+
})(["", " ", " height:16px;width:16px;position:relative;svg{cursor:pointer;fill:transparent;}circle:first-child{transition-duration:0.2s;stroke:var(--color-theme-500);}circle:last-child{transition-duration:0.2s;transform-origin:center;transform:scale(0);fill:var(--color-secondary-500);}input:focus ~ ", "{circle:first-child{stroke:var(--color-secondary);}}input:disabled ~ ", "{pointer-events:none;opacity:0.5;}", " ", " input:checked ~ ", "{circle:first-child{stroke:var(--color-secondary);}circle:last-child{transform:scale(1);fill:var(--color-secondary);}}"], BoxSizingStyle, {
|
|
6988
|
+
"display": "inline-flex",
|
|
6989
|
+
"alignItems": "center"
|
|
6990
|
+
}, StyledRadioLabel, StyledRadioLabel, function (props) {
|
|
6991
|
+
return props.$isControlled !== true && styled.css(["input:hover ~ ", "{circle:first-child{stroke:var(--color-secondary);}circle:last-child{transform:scale(1);}}"], StyledRadioLabel);
|
|
6992
|
+
}, function (props) {
|
|
6993
|
+
return props.$isHovered && styled.css(["", "{circle:first-child{stroke:var(--color-secondary);}circle:last-child{transform:scale(1);}}"], StyledRadioLabel);
|
|
6994
|
+
}, StyledRadioLabel);
|
|
6995
|
+
StyledRadioButton$1.displayName = "StyledRadioButton";
|
|
6996
|
+
|
|
6997
|
+
var _excluded$q = ["className", "id", "hover"];
|
|
6998
|
+
var RadioButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
6999
|
+
var _ref$className = _ref.className,
|
|
7000
|
+
className = _ref$className === void 0 ? "" : _ref$className,
|
|
7001
|
+
_ref$id = _ref.id,
|
|
7002
|
+
id = _ref$id === void 0 ? "radio" : _ref$id,
|
|
7003
|
+
hover = _ref.hover,
|
|
7004
|
+
props = _objectWithoutProperties(_ref, _excluded$q);
|
|
7005
|
+
|
|
7006
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledRadioButton$1, {
|
|
7007
|
+
className: classnames__default["default"]("c-radio-btn", {
|
|
7008
|
+
"c-radio-btn__hover": hover,
|
|
7009
|
+
"c-radio-btn__controlled": typeof hover === "boolean"
|
|
7010
|
+
}, className),
|
|
7011
|
+
$isHovered: hover,
|
|
7012
|
+
$isControlled: typeof hover === "boolean"
|
|
7013
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledRadioInput, _extends({
|
|
7014
|
+
id: id,
|
|
7015
|
+
className: "c-radio-btn--input",
|
|
7016
|
+
type: "radio",
|
|
7017
|
+
ref: ref
|
|
7018
|
+
}, props)), /*#__PURE__*/React__default["default"].createElement(StyledRadioLabel, {
|
|
7019
|
+
htmlFor: id,
|
|
7020
|
+
className: "c-radio-btn--label"
|
|
7021
|
+
}, /*#__PURE__*/React__default["default"].createElement(RadioButtonIcon$1, {
|
|
7022
|
+
width: "16",
|
|
7023
|
+
height: "16"
|
|
7024
|
+
})));
|
|
7025
|
+
});
|
|
7026
|
+
RadioButton.displayName = "RadioButton";
|
|
7027
|
+
|
|
7055
7028
|
var StyledSelectInput = styled__default["default"](Input).withConfig({
|
|
7056
7029
|
displayName: "Styles__StyledSelectInput",
|
|
7057
7030
|
componentId: "sc-gfxqpu-0"
|
|
@@ -7062,18 +7035,28 @@
|
|
|
7062
7035
|
componentId: "sc-gfxqpu-1"
|
|
7063
7036
|
})(["margin:12px 12px 0 12px;display:flex;", "{width:100%;border-radius:4px;}*{margin:auto 0;}"], StyledSelectInput);
|
|
7064
7037
|
StyledSelectForm.displayName = "StyledSelectForm";
|
|
7038
|
+
var StyledCheckbox = styled__default["default"](Checkbox).withConfig({
|
|
7039
|
+
displayName: "Styles__StyledCheckbox",
|
|
7040
|
+
componentId: "sc-gfxqpu-2"
|
|
7041
|
+
})(["margin-left:12px;"]);
|
|
7042
|
+
StyledCheckbox.displayName = "StyledCheckbox";
|
|
7043
|
+
var StyledRadioButton = styled__default["default"](RadioButton).withConfig({
|
|
7044
|
+
displayName: "Styles__StyledRadioButton",
|
|
7045
|
+
componentId: "sc-gfxqpu-3"
|
|
7046
|
+
})(["margin-left:12px;"]);
|
|
7047
|
+
StyledRadioButton.displayName = "StyledRadioButton";
|
|
7065
7048
|
|
|
7066
7049
|
var StyledOptionIndicator = styled__default["default"].div.withConfig({
|
|
7067
7050
|
displayName: "Styles__StyledOptionIndicator",
|
|
7068
7051
|
componentId: "sc-6fiqyy-0"
|
|
7069
|
-
})(["height:24px;width:24px;border-radius:100%;margin-right:8px;", ""], function (props) {
|
|
7052
|
+
})(["height:24px;width:24px;border-radius:100%;margin-right:8px;flex-shrink:0;", ""], function (props) {
|
|
7070
7053
|
return props.backgroundColor && !props.children && styled.css(["background-color:", ";"], props.backgroundColor);
|
|
7071
7054
|
});
|
|
7072
7055
|
StyledOptionIndicator.displayName = "StyledOptionIndicator";
|
|
7073
7056
|
var StyledOptionText = styled__default["default"].span.withConfig({
|
|
7074
7057
|
displayName: "Styles__StyledOptionText",
|
|
7075
7058
|
componentId: "sc-6fiqyy-1"
|
|
7076
|
-
})(["", "
|
|
7059
|
+
})(["", " flex-grow:1;line-height:18px;", ""], {
|
|
7077
7060
|
"overflow": "hidden",
|
|
7078
7061
|
"textOverflow": "ellipsis",
|
|
7079
7062
|
"whiteSpace": "nowrap"
|
|
@@ -7081,12 +7064,18 @@
|
|
|
7081
7064
|
return props.textColor && styled.css(["color:", ";"], props.textColor);
|
|
7082
7065
|
});
|
|
7083
7066
|
StyledOptionText.displayName = "StyledOptionText";
|
|
7067
|
+
var StyledAdditionalInfo = styled__default["default"].span.withConfig({
|
|
7068
|
+
displayName: "Styles__StyledAdditionalInfo",
|
|
7069
|
+
componentId: "sc-6fiqyy-2"
|
|
7070
|
+
})(["margin:0 0 0 5px;line-height:18px;"]);
|
|
7071
|
+
StyledAdditionalInfo.displayName = "StyledAdditionalInfo";
|
|
7084
7072
|
|
|
7085
7073
|
var OptionContent = function OptionContent(_ref) {
|
|
7086
7074
|
var imageUrl = _ref.imageUrl,
|
|
7087
7075
|
color = _ref.color,
|
|
7088
7076
|
textColor = _ref.textColor,
|
|
7089
|
-
name = _ref.name
|
|
7077
|
+
name = _ref.name,
|
|
7078
|
+
additionalInfo = _ref.additionalInfo;
|
|
7090
7079
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, imageUrl || color ? /*#__PURE__*/React__default["default"].createElement(StyledOptionIndicator, {
|
|
7091
7080
|
className: "c-option--label",
|
|
7092
7081
|
backgroundColor: color
|
|
@@ -7096,7 +7085,7 @@
|
|
|
7096
7085
|
}) : null) : null, /*#__PURE__*/React__default["default"].createElement(StyledOptionText, {
|
|
7097
7086
|
className: "c-option--text",
|
|
7098
7087
|
textColor: textColor
|
|
7099
|
-
}, name));
|
|
7088
|
+
}, name), additionalInfo ? /*#__PURE__*/React__default["default"].createElement(StyledAdditionalInfo, null, additionalInfo) : null);
|
|
7100
7089
|
};
|
|
7101
7090
|
OptionContent.displayName = "OptionContent";
|
|
7102
7091
|
|
|
@@ -7279,12 +7268,13 @@
|
|
|
7279
7268
|
imageUrl: option.image,
|
|
7280
7269
|
color: option.color,
|
|
7281
7270
|
textColor: option.textColor,
|
|
7282
|
-
name: option.name
|
|
7283
|
-
|
|
7271
|
+
name: option.name,
|
|
7272
|
+
additionalInfo: option.additionalInfo
|
|
7273
|
+
}), option.id === null ? type === "multiple" ? /*#__PURE__*/React__default["default"].createElement(StyledCheckbox, _extends({
|
|
7284
7274
|
checked: isAllOptionsChecked
|
|
7285
|
-
}, props)) : /*#__PURE__*/React__default["default"].createElement(
|
|
7275
|
+
}, props)) : /*#__PURE__*/React__default["default"].createElement(StyledRadioButton, _extends({
|
|
7286
7276
|
checked: selectedOptions.length < 1 || !selectedOptions[0]
|
|
7287
|
-
}, props)) : type === "multiple" ? /*#__PURE__*/React__default["default"].createElement(
|
|
7277
|
+
}, props)) : type === "multiple" ? /*#__PURE__*/React__default["default"].createElement(StyledCheckbox, props) : /*#__PURE__*/React__default["default"].createElement(StyledRadioButton, props));
|
|
7288
7278
|
}, [isAllOptionsChecked, selectedOptions, type]);
|
|
7289
7279
|
return /*#__PURE__*/React__default["default"].createElement(Tag, props, /*#__PURE__*/React__default["default"].createElement("div", null, !disableSearch ? /*#__PURE__*/React__default["default"].createElement(StyledSelectForm, {
|
|
7290
7280
|
ref: formRef
|
|
@@ -7799,7 +7789,7 @@
|
|
|
7799
7789
|
"marginLeft": "0.5rem"
|
|
7800
7790
|
});
|
|
7801
7791
|
StyledMenuSelectorDots.displayName = "StyledMenuSelectorDots";
|
|
7802
|
-
var StyledMenuSelectorBack = styled__default["default"](
|
|
7792
|
+
var StyledMenuSelectorBack = styled__default["default"](ArrowLeftIcon$1).withConfig({
|
|
7803
7793
|
displayName: "Styles__StyledMenuSelectorBack",
|
|
7804
7794
|
componentId: "sc-1x7qbnu-1"
|
|
7805
7795
|
})(["", ""], {
|
|
@@ -10807,10 +10797,10 @@
|
|
|
10807
10797
|
exports.AddCrossIcon = AddCrossIcon$1;
|
|
10808
10798
|
exports.AddCrossTinyIcon = AddCrossTinyIcon$1;
|
|
10809
10799
|
exports.ApplauseIcon = ApplauseIcon$1;
|
|
10810
|
-
exports.ArrowBackIcon = ArrowBackIcon$1;
|
|
10811
10800
|
exports.ArrowCollapseMultipleIcon = ArrowCollapseMultipleIcon$1;
|
|
10812
10801
|
exports.ArrowExpandeMultipleIcon = ArrowExpandeMultipleIcon$1;
|
|
10813
10802
|
exports.ArrowLeftBoxIcon = ArrowLeftBoxIcon$1;
|
|
10803
|
+
exports.ArrowLeftIcon = ArrowLeftIcon$1;
|
|
10814
10804
|
exports.ArrowRefreshIcon = ArrowRefreshIcon$1;
|
|
10815
10805
|
exports.ArrowRightIcon = ArrowRightIcon$1;
|
|
10816
10806
|
exports.AssignIcon = AssignIcon$1;
|
|
@@ -10937,7 +10927,6 @@
|
|
|
10937
10927
|
exports.Menu = Menu;
|
|
10938
10928
|
exports.MenuFooter = MenuFooter;
|
|
10939
10929
|
exports.MenuHeader = MenuHeader;
|
|
10940
|
-
exports.MenuNavIcon = MenuNavIcon$1;
|
|
10941
10930
|
exports.MenuSelector = MenuSelector;
|
|
10942
10931
|
exports.MessageAddIcon = MessageAddIcon$1;
|
|
10943
10932
|
exports.MessageEmptyIcon = MessageEmptyIcon$1;
|