@activecollab/components 1.0.106 → 1.0.109
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/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/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/index.js +139 -122
- 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
|
@@ -6041,114 +6041,6 @@
|
|
|
6041
6041
|
});
|
|
6042
6042
|
SpinnerLoader.displayName = "SpinnerLoader";
|
|
6043
6043
|
|
|
6044
|
-
var StyledInput$1 = styled__default["default"].input.withConfig({
|
|
6045
|
-
displayName: "Styles__StyledInput",
|
|
6046
|
-
componentId: "sc-y7zymm-0"
|
|
6047
|
-
})(["display:none;"]);
|
|
6048
|
-
StyledInput$1.displayName = "StyledInput";
|
|
6049
|
-
var StyledLabel = styled__default["default"].label.withConfig({
|
|
6050
|
-
displayName: "Styles__StyledLabel",
|
|
6051
|
-
componentId: "sc-y7zymm-1"
|
|
6052
|
-
})([""]);
|
|
6053
|
-
StyledLabel.displayName = "StyledLabel";
|
|
6054
|
-
var StyledCheckbox = styled__default["default"].div.withConfig({
|
|
6055
|
-
displayName: "Styles__StyledCheckbox",
|
|
6056
|
-
componentId: "sc-y7zymm-2"
|
|
6057
|
-
})(["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) {
|
|
6058
|
-
return props.hover && styled.css(["", "{path{stroke:var(--color-secondary-500);stroke-dashoffset:24;}rect{stroke:var(--color-secondary);stroke-width:3px;}"], StyledLabel);
|
|
6059
|
-
}, StyledInput$1, StyledLabel);
|
|
6060
|
-
StyledCheckbox.displayName = "StyledCheckbox";
|
|
6061
|
-
|
|
6062
|
-
var _excluded$u = ["className", "hover", "id"];
|
|
6063
|
-
|
|
6064
|
-
/**
|
|
6065
|
-
* Checkbox component
|
|
6066
|
-
*/
|
|
6067
|
-
var Checkbox = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
6068
|
-
var className = _ref.className,
|
|
6069
|
-
hover = _ref.hover,
|
|
6070
|
-
_ref$id = _ref.id,
|
|
6071
|
-
id = _ref$id === void 0 ? "checkbox" : _ref$id,
|
|
6072
|
-
rest = _objectWithoutProperties(_ref, _excluded$u);
|
|
6073
|
-
|
|
6074
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledCheckbox, {
|
|
6075
|
-
className: classnames__default["default"]("c-checkbox", {
|
|
6076
|
-
"c-checkbox__hover": hover,
|
|
6077
|
-
"c-checkbox__controlled": typeof hover === "boolean"
|
|
6078
|
-
}, className),
|
|
6079
|
-
hover: hover
|
|
6080
|
-
}, /*#__PURE__*/React__default["default"].createElement(StyledInput$1, _extends({
|
|
6081
|
-
id: id,
|
|
6082
|
-
className: "c-checkbox--input",
|
|
6083
|
-
type: "checkbox",
|
|
6084
|
-
ref: ref
|
|
6085
|
-
}, rest)), /*#__PURE__*/React__default["default"].createElement(StyledLabel, {
|
|
6086
|
-
htmlFor: id,
|
|
6087
|
-
className: "c-checkbox--label"
|
|
6088
|
-
}, /*#__PURE__*/React__default["default"].createElement(CheckboxIcon$1, {
|
|
6089
|
-
height: 16,
|
|
6090
|
-
width: 16
|
|
6091
|
-
})));
|
|
6092
|
-
});
|
|
6093
|
-
Checkbox.displayName = "Checkbox";
|
|
6094
|
-
|
|
6095
|
-
var StyledRadioInput = styled__default["default"].input.withConfig({
|
|
6096
|
-
displayName: "Styles__StyledRadioInput",
|
|
6097
|
-
componentId: "sc-1xh9uc2-0"
|
|
6098
|
-
})(["display:none;"]);
|
|
6099
|
-
StyledRadioInput.displayName = "StyledRadioInput";
|
|
6100
|
-
var StyledRadioLabel = styled__default["default"].label.withConfig({
|
|
6101
|
-
displayName: "Styles__StyledRadioLabel",
|
|
6102
|
-
componentId: "sc-1xh9uc2-1"
|
|
6103
|
-
})(["", ""], {
|
|
6104
|
-
"display": "inline-flex",
|
|
6105
|
-
"alignItems": "center"
|
|
6106
|
-
});
|
|
6107
|
-
StyledRadioLabel.displayName = "StyledRadioLabel";
|
|
6108
|
-
var StyledRadioButton = styled__default["default"].div.withConfig({
|
|
6109
|
-
displayName: "Styles__StyledRadioButton",
|
|
6110
|
-
componentId: "sc-1xh9uc2-2"
|
|
6111
|
-
})(["", " ", " 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, {
|
|
6112
|
-
"display": "inline-flex",
|
|
6113
|
-
"alignItems": "center"
|
|
6114
|
-
}, StyledRadioLabel, StyledRadioLabel, function (props) {
|
|
6115
|
-
return props.$isControlled !== true && styled.css(["input:hover ~ ", "{circle:first-child{stroke:var(--color-secondary);}circle:last-child{transform:scale(1);}}"], StyledRadioLabel);
|
|
6116
|
-
}, function (props) {
|
|
6117
|
-
return props.$isHovered && styled.css(["", "{circle:first-child{stroke:var(--color-secondary);}circle:last-child{transform:scale(1);}}"], StyledRadioLabel);
|
|
6118
|
-
}, StyledRadioLabel);
|
|
6119
|
-
StyledRadioButton.displayName = "StyledRadioButton";
|
|
6120
|
-
|
|
6121
|
-
var _excluded$t = ["className", "id", "hover"];
|
|
6122
|
-
var RadioButton = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
6123
|
-
var _ref$className = _ref.className,
|
|
6124
|
-
className = _ref$className === void 0 ? "" : _ref$className,
|
|
6125
|
-
_ref$id = _ref.id,
|
|
6126
|
-
id = _ref$id === void 0 ? "radio" : _ref$id,
|
|
6127
|
-
hover = _ref.hover,
|
|
6128
|
-
props = _objectWithoutProperties(_ref, _excluded$t);
|
|
6129
|
-
|
|
6130
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledRadioButton, {
|
|
6131
|
-
className: classnames__default["default"]("c-radio-btn", {
|
|
6132
|
-
"c-radio-btn__hover": hover,
|
|
6133
|
-
"c-radio-btn__controlled": typeof hover === "boolean"
|
|
6134
|
-
}, className),
|
|
6135
|
-
$isHovered: hover,
|
|
6136
|
-
$isControlled: typeof hover === "boolean"
|
|
6137
|
-
}, /*#__PURE__*/React__default["default"].createElement(StyledRadioInput, _extends({
|
|
6138
|
-
id: id,
|
|
6139
|
-
className: "c-radio-btn--input",
|
|
6140
|
-
type: "radio",
|
|
6141
|
-
ref: ref
|
|
6142
|
-
}, props)), /*#__PURE__*/React__default["default"].createElement(StyledRadioLabel, {
|
|
6143
|
-
htmlFor: id,
|
|
6144
|
-
className: "c-radio-btn--label"
|
|
6145
|
-
}, /*#__PURE__*/React__default["default"].createElement(RadioButtonIcon$1, {
|
|
6146
|
-
width: "16",
|
|
6147
|
-
height: "16"
|
|
6148
|
-
})));
|
|
6149
|
-
});
|
|
6150
|
-
RadioButton.displayName = "RadioButton";
|
|
6151
|
-
|
|
6152
6044
|
var StyledHiglightedText = styled__default["default"].span.withConfig({
|
|
6153
6045
|
displayName: "useHighlightText__StyledHiglightedText",
|
|
6154
6046
|
componentId: "sc-13agf6o-0"
|
|
@@ -6241,6 +6133,57 @@
|
|
|
6241
6133
|
});
|
|
6242
6134
|
Option.displayName = "Option";
|
|
6243
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
|
+
|
|
6244
6187
|
var StyledOptionGroup = styled__default["default"].div.withConfig({
|
|
6245
6188
|
displayName: "Styles__StyledOptionGroup",
|
|
6246
6189
|
componentId: "sc-16v5afu-0"
|
|
@@ -6393,7 +6336,7 @@
|
|
|
6393
6336
|
StyledScrollShadowLeft.displayName = "StyledScrollShadowLeft";
|
|
6394
6337
|
StyledScrollShadowRight.displayName = "StyledScrollShadowRight";
|
|
6395
6338
|
|
|
6396
|
-
var _excluded$
|
|
6339
|
+
var _excluded$t = ["children", "className", "disableVertical", "disableHorizontal", "invertHorizontal", "invertVertical", "innerColor", "outerColor"];
|
|
6397
6340
|
var ScrollShadow = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
6398
6341
|
var children = _ref.children,
|
|
6399
6342
|
className = _ref.className,
|
|
@@ -6407,7 +6350,7 @@
|
|
|
6407
6350
|
invertVertical = _ref$invertVertical === void 0 ? false : _ref$invertVertical,
|
|
6408
6351
|
innerColor = _ref.innerColor,
|
|
6409
6352
|
outerColor = _ref.outerColor,
|
|
6410
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6353
|
+
rest = _objectWithoutProperties(_ref, _excluded$t);
|
|
6411
6354
|
|
|
6412
6355
|
var _useState = React.useState({
|
|
6413
6356
|
top: 0,
|
|
@@ -6537,7 +6480,7 @@
|
|
|
6537
6480
|
return height;
|
|
6538
6481
|
};
|
|
6539
6482
|
|
|
6540
|
-
var _excluded$
|
|
6483
|
+
var _excluded$s = ["as", "className", "invert", "style"];
|
|
6541
6484
|
var ScrollElement = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
6542
6485
|
var _ref$as = _ref.as,
|
|
6543
6486
|
as = _ref$as === void 0 ? "div" : _ref$as,
|
|
@@ -6545,7 +6488,7 @@
|
|
|
6545
6488
|
_ref$invert = _ref.invert,
|
|
6546
6489
|
invert = _ref$invert === void 0 ? false : _ref$invert,
|
|
6547
6490
|
style = _ref.style,
|
|
6548
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6491
|
+
rest = _objectWithoutProperties(_ref, _excluded$s);
|
|
6549
6492
|
|
|
6550
6493
|
var internalRef = useInitScrollRef(null, invert);
|
|
6551
6494
|
var handleRef = useForkRef(internalRef, ref);
|
|
@@ -7000,7 +6943,7 @@
|
|
|
7000
6943
|
});
|
|
7001
6944
|
StyledInput.displayName = "StyledInput";
|
|
7002
6945
|
|
|
7003
|
-
var _excluded$
|
|
6946
|
+
var _excluded$r = ["className", "type", "disabled", "size", "invalid"];
|
|
7004
6947
|
var Input = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
7005
6948
|
var _ref$className = _ref.className,
|
|
7006
6949
|
className = _ref$className === void 0 ? "" : _ref$className,
|
|
@@ -7012,7 +6955,7 @@
|
|
|
7012
6955
|
size = _ref$size === void 0 ? "regular" : _ref$size,
|
|
7013
6956
|
_ref$invalid = _ref.invalid,
|
|
7014
6957
|
invalid = _ref$invalid === void 0 ? false : _ref$invalid,
|
|
7015
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
6958
|
+
rest = _objectWithoutProperties(_ref, _excluded$r);
|
|
7016
6959
|
|
|
7017
6960
|
return /*#__PURE__*/React__default["default"].createElement(StyledInput, _extends({
|
|
7018
6961
|
ref: ref,
|
|
@@ -7025,6 +6968,63 @@
|
|
|
7025
6968
|
});
|
|
7026
6969
|
Input.displayName = "Input";
|
|
7027
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
|
+
|
|
7028
7028
|
var StyledSelectInput = styled__default["default"](Input).withConfig({
|
|
7029
7029
|
displayName: "Styles__StyledSelectInput",
|
|
7030
7030
|
componentId: "sc-gfxqpu-0"
|
|
@@ -7035,18 +7035,28 @@
|
|
|
7035
7035
|
componentId: "sc-gfxqpu-1"
|
|
7036
7036
|
})(["margin:12px 12px 0 12px;display:flex;", "{width:100%;border-radius:4px;}*{margin:auto 0;}"], StyledSelectInput);
|
|
7037
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";
|
|
7038
7048
|
|
|
7039
7049
|
var StyledOptionIndicator = styled__default["default"].div.withConfig({
|
|
7040
7050
|
displayName: "Styles__StyledOptionIndicator",
|
|
7041
7051
|
componentId: "sc-6fiqyy-0"
|
|
7042
|
-
})(["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) {
|
|
7043
7053
|
return props.backgroundColor && !props.children && styled.css(["background-color:", ";"], props.backgroundColor);
|
|
7044
7054
|
});
|
|
7045
7055
|
StyledOptionIndicator.displayName = "StyledOptionIndicator";
|
|
7046
7056
|
var StyledOptionText = styled__default["default"].span.withConfig({
|
|
7047
7057
|
displayName: "Styles__StyledOptionText",
|
|
7048
7058
|
componentId: "sc-6fiqyy-1"
|
|
7049
|
-
})(["", "
|
|
7059
|
+
})(["", " flex-grow:1;line-height:18px;", ""], {
|
|
7050
7060
|
"overflow": "hidden",
|
|
7051
7061
|
"textOverflow": "ellipsis",
|
|
7052
7062
|
"whiteSpace": "nowrap"
|
|
@@ -7054,12 +7064,18 @@
|
|
|
7054
7064
|
return props.textColor && styled.css(["color:", ";"], props.textColor);
|
|
7055
7065
|
});
|
|
7056
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;flex-shrink:0;"]);
|
|
7071
|
+
StyledAdditionalInfo.displayName = "StyledAdditionalInfo";
|
|
7057
7072
|
|
|
7058
7073
|
var OptionContent = function OptionContent(_ref) {
|
|
7059
7074
|
var imageUrl = _ref.imageUrl,
|
|
7060
7075
|
color = _ref.color,
|
|
7061
7076
|
textColor = _ref.textColor,
|
|
7062
|
-
name = _ref.name
|
|
7077
|
+
name = _ref.name,
|
|
7078
|
+
additionalInfo = _ref.additionalInfo;
|
|
7063
7079
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, imageUrl || color ? /*#__PURE__*/React__default["default"].createElement(StyledOptionIndicator, {
|
|
7064
7080
|
className: "c-option--label",
|
|
7065
7081
|
backgroundColor: color
|
|
@@ -7069,7 +7085,7 @@
|
|
|
7069
7085
|
}) : null) : null, /*#__PURE__*/React__default["default"].createElement(StyledOptionText, {
|
|
7070
7086
|
className: "c-option--text",
|
|
7071
7087
|
textColor: textColor
|
|
7072
|
-
}, name));
|
|
7088
|
+
}, name), additionalInfo ? /*#__PURE__*/React__default["default"].createElement(StyledAdditionalInfo, null, additionalInfo) : null);
|
|
7073
7089
|
};
|
|
7074
7090
|
OptionContent.displayName = "OptionContent";
|
|
7075
7091
|
|
|
@@ -7252,12 +7268,13 @@
|
|
|
7252
7268
|
imageUrl: option.image,
|
|
7253
7269
|
color: option.color,
|
|
7254
7270
|
textColor: option.textColor,
|
|
7255
|
-
name: option.name
|
|
7256
|
-
|
|
7271
|
+
name: option.name,
|
|
7272
|
+
additionalInfo: option.additionalInfo
|
|
7273
|
+
}), option.id === null ? type === "multiple" ? /*#__PURE__*/React__default["default"].createElement(StyledCheckbox, _extends({
|
|
7257
7274
|
checked: isAllOptionsChecked
|
|
7258
|
-
}, props)) : /*#__PURE__*/React__default["default"].createElement(
|
|
7275
|
+
}, props)) : /*#__PURE__*/React__default["default"].createElement(StyledRadioButton, _extends({
|
|
7259
7276
|
checked: selectedOptions.length < 1 || !selectedOptions[0]
|
|
7260
|
-
}, 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));
|
|
7261
7278
|
}, [isAllOptionsChecked, selectedOptions, type]);
|
|
7262
7279
|
return /*#__PURE__*/React__default["default"].createElement(Tag, props, /*#__PURE__*/React__default["default"].createElement("div", null, !disableSearch ? /*#__PURE__*/React__default["default"].createElement(StyledSelectForm, {
|
|
7263
7280
|
ref: formRef
|