@zohodesk/components 1.0.0-temp-189.2 → 1.0.0-temp-190
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/.cli/propValidation_report.html +1 -1
- package/README.md +5 -8
- package/es/CheckBox/CheckBox.js +0 -10
- package/es/CheckBox/props/propTypes.js +0 -1
- package/es/Radio/Radio.js +7 -26
- package/es/Radio/Radio.module.css +0 -3
- package/es/Radio/__tests__/__snapshots__/Radio.spec.js.snap +3 -3
- package/es/Radio/props/defaultProps.js +0 -1
- package/es/Radio/props/propTypes.js +0 -7
- package/es/v1/AppContainer/AppContainer.js +6 -0
- package/es/v1/CheckBox/CheckBox.js +0 -6
- package/es/v1/CheckBox/props/propTypes.js +0 -1
- package/es/v1/Radio/Radio.js +7 -22
- package/es/v1/Radio/props/defaultProps.js +0 -1
- package/es/v1/Radio/props/propTypes.js +0 -7
- package/es/v1/Select/SelectWithAvatar.js +4 -3
- package/es/v1/Select/props/propTypes.js +2 -1
- package/lib/CheckBox/CheckBox.js +24 -34
- package/lib/CheckBox/props/propTypes.js +0 -1
- package/lib/Radio/Radio.js +26 -45
- package/lib/Radio/Radio.module.css +0 -3
- package/lib/Radio/__tests__/__snapshots__/Radio.spec.js.snap +3 -3
- package/lib/Radio/props/defaultProps.js +0 -1
- package/lib/Radio/props/propTypes.js +0 -7
- package/lib/v1/AppContainer/AppContainer.js +12 -0
- package/lib/v1/CheckBox/CheckBox.js +0 -6
- package/lib/v1/CheckBox/props/propTypes.js +0 -1
- package/lib/v1/Radio/Radio.js +7 -22
- package/lib/v1/Radio/props/defaultProps.js +0 -1
- package/lib/v1/Radio/props/propTypes.js +0 -7
- package/lib/v1/Select/SelectWithAvatar.js +3 -2
- package/lib/v1/Select/props/propTypes.js +2 -1
- package/package.json +1 -1
- package/result.json +1 -1
package/lib/Radio/Radio.js
CHANGED
|
@@ -21,8 +21,6 @@ var _RadioModule = _interopRequireDefault(require("./Radio.module.css"));
|
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
23
|
|
|
24
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
25
|
-
|
|
26
24
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
27
25
|
|
|
28
26
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
@@ -55,7 +53,6 @@ var Radio = /*#__PURE__*/function (_React$Component) {
|
|
|
55
53
|
|
|
56
54
|
_this = _super.call(this, props);
|
|
57
55
|
_this.onChange = _this.onChange.bind(_assertThisInitialized(_this));
|
|
58
|
-
_this.handleGetRef = _this.handleGetRef.bind(_assertThisInitialized(_this));
|
|
59
56
|
return _this;
|
|
60
57
|
}
|
|
61
58
|
|
|
@@ -67,38 +64,28 @@ var Radio = /*#__PURE__*/function (_React$Component) {
|
|
|
67
64
|
value = _this$props.value;
|
|
68
65
|
onChange && onChange(value, e);
|
|
69
66
|
}
|
|
70
|
-
}, {
|
|
71
|
-
key: "handleGetRef",
|
|
72
|
-
value: function handleGetRef(ele) {
|
|
73
|
-
var _this$props2 = this.props,
|
|
74
|
-
getRef = _this$props2.getRef,
|
|
75
|
-
value = _this$props2.value;
|
|
76
|
-
getRef && getRef(ele, value);
|
|
77
|
-
}
|
|
78
67
|
}, {
|
|
79
68
|
key: "render",
|
|
80
69
|
value: function render() {
|
|
81
|
-
var _this$
|
|
82
|
-
id = _this$
|
|
83
|
-
name = _this$
|
|
84
|
-
value = _this$
|
|
85
|
-
checked = _this$
|
|
86
|
-
disabled = _this$
|
|
87
|
-
isReadOnly = _this$
|
|
88
|
-
palette = _this$
|
|
89
|
-
disabledTitle = _this$
|
|
90
|
-
title = _this$
|
|
91
|
-
text = _this$
|
|
92
|
-
labelPalette = _this$
|
|
93
|
-
size = _this$
|
|
94
|
-
labelSize = _this$
|
|
95
|
-
variant = _this$
|
|
96
|
-
active = _this$
|
|
97
|
-
isFilled = _this$
|
|
98
|
-
customClass = _this$
|
|
99
|
-
|
|
100
|
-
children = _this$props3.children,
|
|
101
|
-
a11y = _this$props3.a11y;
|
|
70
|
+
var _this$props2 = this.props,
|
|
71
|
+
id = _this$props2.id,
|
|
72
|
+
name = _this$props2.name,
|
|
73
|
+
value = _this$props2.value,
|
|
74
|
+
checked = _this$props2.checked,
|
|
75
|
+
disabled = _this$props2.disabled,
|
|
76
|
+
isReadOnly = _this$props2.isReadOnly,
|
|
77
|
+
palette = _this$props2.palette,
|
|
78
|
+
disabledTitle = _this$props2.disabledTitle,
|
|
79
|
+
title = _this$props2.title,
|
|
80
|
+
text = _this$props2.text,
|
|
81
|
+
labelPalette = _this$props2.labelPalette,
|
|
82
|
+
size = _this$props2.size,
|
|
83
|
+
labelSize = _this$props2.labelSize,
|
|
84
|
+
variant = _this$props2.variant,
|
|
85
|
+
active = _this$props2.active,
|
|
86
|
+
isFilled = _this$props2.isFilled,
|
|
87
|
+
customClass = _this$props2.customClass,
|
|
88
|
+
a11y = _this$props2.a11y;
|
|
102
89
|
var _customClass$customRa = customClass.customRadioWrap,
|
|
103
90
|
customRadioWrap = _customClass$customRa === void 0 ? '' : _customClass$customRa,
|
|
104
91
|
_customClass$customRa2 = customClass.customRadio,
|
|
@@ -110,18 +97,13 @@ var Radio = /*#__PURE__*/function (_React$Component) {
|
|
|
110
97
|
var ariaHidden = a11y.ariaHidden,
|
|
111
98
|
_a11y$role = a11y.role,
|
|
112
99
|
role = _a11y$role === void 0 ? 'radio' : _a11y$role,
|
|
113
|
-
tabIndex = a11y.tabIndex,
|
|
114
100
|
_a11y$ariaChecked = a11y.ariaChecked,
|
|
115
101
|
ariaChecked = _a11y$ariaChecked === void 0 ? checked : _a11y$ariaChecked,
|
|
116
102
|
ariaLabel = a11y.ariaLabel,
|
|
117
103
|
ariaLabelledby = a11y.ariaLabelledby,
|
|
118
104
|
_a11y$ariaReadonly = a11y.ariaReadonly,
|
|
119
105
|
ariaReadonly = _a11y$ariaReadonly === void 0 ? isReadOnly || disabled ? true : false : _a11y$ariaReadonly;
|
|
120
|
-
|
|
121
|
-
ContainerProps = _customProps$Containe === void 0 ? {} : _customProps$Containe,
|
|
122
|
-
_customProps$LabelPro = customProps.LabelProps,
|
|
123
|
-
LabelProps = _customProps$LabelPro === void 0 ? {} : _customProps$LabelPro;
|
|
124
|
-
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, _extends({
|
|
106
|
+
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
125
107
|
dataId: value ? value.toLowerCase() : 'RadioComp',
|
|
126
108
|
isCover: false,
|
|
127
109
|
isInline: text ? false : true,
|
|
@@ -131,14 +113,13 @@ var Radio = /*#__PURE__*/function (_React$Component) {
|
|
|
131
113
|
"data-title": toolTip,
|
|
132
114
|
onClick: !isReadOnly && !disabled ? this.onChange : '',
|
|
133
115
|
"aria-checked": ariaChecked,
|
|
134
|
-
tabindex: isReadOnly || disabled || ariaHidden ? '-1' :
|
|
135
|
-
eleRef: this.handleGetRef,
|
|
116
|
+
tabindex: isReadOnly || disabled || ariaHidden ? '-1' : '0',
|
|
136
117
|
role: role,
|
|
137
118
|
"aria-Hidden": ariaHidden,
|
|
138
119
|
"aria-label": ariaLabel,
|
|
139
120
|
"aria-labelledby": ariaLabelledby,
|
|
140
121
|
"aria-readonly": ariaReadonly
|
|
141
|
-
},
|
|
122
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
142
123
|
className: "".concat(_RadioModule["default"].radio, " ").concat(checked ? "".concat(_RadioModule["default"]["rdBox".concat(palette)]) : '', " \n ").concat(isReadOnly || disabled ? '' : "".concat(_RadioModule["default"]["hover".concat(palette)]), " ").concat(_RadioModule["default"][size], " ").concat(isFilled ? _RadioModule["default"].filled : '', " ").concat(_RadioModule["default"]["centerPath".concat(palette)], " ").concat(customRadio)
|
|
143
124
|
}, /*#__PURE__*/_react["default"].createElement("input", {
|
|
144
125
|
type: "hidden",
|
|
@@ -163,17 +144,17 @@ var Radio = /*#__PURE__*/function (_React$Component) {
|
|
|
163
144
|
}) : null))), text && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
164
145
|
flexible: true,
|
|
165
146
|
className: _RadioModule["default"].text
|
|
166
|
-
}, /*#__PURE__*/_react["default"].createElement(_Label["default"],
|
|
147
|
+
}, /*#__PURE__*/_react["default"].createElement(_Label["default"], {
|
|
167
148
|
text: text,
|
|
168
|
-
palette: labelPalette,
|
|
149
|
+
palette: disabled ? 'disable' : labelPalette,
|
|
169
150
|
size: labelSize,
|
|
170
151
|
type: "title",
|
|
171
152
|
clipped: true,
|
|
172
153
|
dataId: "".concat(text, "_label"),
|
|
173
154
|
variant: variant,
|
|
174
155
|
title: toolTip ? toolTip : text,
|
|
175
|
-
customClass: "".concat(checked && active ? "".concat(_RadioModule["default"]["".concat(palette, "checkedActive")]) : '', " \n ").concat(_RadioModule["default"]["".concat(palette, "Label")], " ").concat(accessMode, " ").concat(customLabel)
|
|
176
|
-
}
|
|
156
|
+
customClass: "".concat(checked && active && !disabled ? "".concat(_RadioModule["default"]["".concat(palette, "checkedActive")]) : '', " \n ").concat(_RadioModule["default"]["".concat(palette, "Label")], " ").concat(accessMode, " ").concat(customLabel)
|
|
157
|
+
})));
|
|
177
158
|
}
|
|
178
159
|
}]);
|
|
179
160
|
|
|
@@ -1145,7 +1145,7 @@ exports[`Radio rendering the accessMode when disabled 1`] = `
|
|
|
1145
1145
|
data-test-id="boxComponent"
|
|
1146
1146
|
>
|
|
1147
1147
|
<label
|
|
1148
|
-
class="label title medium
|
|
1148
|
+
class="label title medium disable font_default
|
|
1149
1149
|
dotted cursor
|
|
1150
1150
|
primaryLabel disabled "
|
|
1151
1151
|
data-id="RadioText_label"
|
|
@@ -1505,7 +1505,7 @@ exports[`Radio rendering the disabled is true 1`] = `
|
|
|
1505
1505
|
data-test-id="boxComponent"
|
|
1506
1506
|
>
|
|
1507
1507
|
<label
|
|
1508
|
-
class="label title medium
|
|
1508
|
+
class="label title medium disable font_default
|
|
1509
1509
|
dotted cursor
|
|
1510
1510
|
undefined disabled "
|
|
1511
1511
|
data-id="RadioText_label"
|
|
@@ -1567,7 +1567,7 @@ exports[`Radio rendering the disabledTitle 1`] = `
|
|
|
1567
1567
|
data-test-id="boxComponent"
|
|
1568
1568
|
>
|
|
1569
1569
|
<label
|
|
1570
|
-
class="label title medium
|
|
1570
|
+
class="label title medium disable font_default
|
|
1571
1571
|
dotted cursor
|
|
1572
1572
|
primaryLabel disabled "
|
|
1573
1573
|
data-id="RadioText_label"
|
|
@@ -14,7 +14,6 @@ var propTypes = {
|
|
|
14
14
|
checked: _propTypes["default"].bool,
|
|
15
15
|
disabled: _propTypes["default"].bool,
|
|
16
16
|
disabledTitle: _propTypes["default"].string,
|
|
17
|
-
getRef: _propTypes["default"].func,
|
|
18
17
|
id: _propTypes["default"].string,
|
|
19
18
|
isFilled: _propTypes["default"].bool,
|
|
20
19
|
isReadOnly: _propTypes["default"].bool,
|
|
@@ -31,20 +30,14 @@ var propTypes = {
|
|
|
31
30
|
customRadio: _propTypes["default"].string,
|
|
32
31
|
customLabel: _propTypes["default"].string
|
|
33
32
|
}),
|
|
34
|
-
customProps: _propTypes["default"].exact({
|
|
35
|
-
ContainerProps: _propTypes["default"].object,
|
|
36
|
-
LabelProps: _propTypes["default"].object
|
|
37
|
-
}),
|
|
38
33
|
a11y: _propTypes["default"].shape({
|
|
39
34
|
ariaChecked: _propTypes["default"].bool,
|
|
40
35
|
ariaHidden: _propTypes["default"].bool,
|
|
41
36
|
role: _propTypes["default"].string,
|
|
42
|
-
tabIndex: _propTypes["default"].oneOfType(_propTypes["default"].string, _propTypes["default"].number),
|
|
43
37
|
ariaLabelledby: _propTypes["default"].string,
|
|
44
38
|
ariaLabel: _propTypes["default"].string,
|
|
45
39
|
ariaReadonly: _propTypes["default"].bool
|
|
46
40
|
}),
|
|
47
|
-
children: _propTypes["default"].node,
|
|
48
41
|
onChange: _propTypes["default"].func,
|
|
49
42
|
text: _propTypes["default"].string
|
|
50
43
|
};
|
|
@@ -17,6 +17,18 @@ var _Layout = require("../Layout");
|
|
|
17
17
|
|
|
18
18
|
var _Tooltip = _interopRequireDefault(require("../Tooltip/Tooltip"));
|
|
19
19
|
|
|
20
|
+
require("../../common/basic.module.css");
|
|
21
|
+
|
|
22
|
+
require("@zohodesk/variables/assets/colorVariables.module.css");
|
|
23
|
+
|
|
24
|
+
require("@zohodesk/variables/assets/dotVariables.module.css");
|
|
25
|
+
|
|
26
|
+
require("@zohodesk/variables/assets/sizeVariables.module.css");
|
|
27
|
+
|
|
28
|
+
require("@zohodesk/variables/assets/fontsizeVariables.module.css");
|
|
29
|
+
|
|
30
|
+
require("@zohodesk/variables/lib/fontFamilyVariables.module.css");
|
|
31
|
+
|
|
20
32
|
require("@zohodesk/variables/assets/transitionVariables.module.css");
|
|
21
33
|
|
|
22
34
|
require("@zohodesk/variables/assets/no_transitionVariables.module.css");
|
|
@@ -38,7 +38,6 @@ var CheckBox = function CheckBox(props) {
|
|
|
38
38
|
isFilled = props.isFilled,
|
|
39
39
|
isClipped = props.isClipped,
|
|
40
40
|
getRef = props.getRef,
|
|
41
|
-
getContainerRef = props.getContainerRef,
|
|
42
41
|
variant = props.variant,
|
|
43
42
|
active = props.active,
|
|
44
43
|
dataId = props.dataId,
|
|
@@ -54,10 +53,6 @@ var CheckBox = function CheckBox(props) {
|
|
|
54
53
|
onChange && onChange(!checked, e);
|
|
55
54
|
}
|
|
56
55
|
|
|
57
|
-
function handleGetContainerRef(ele) {
|
|
58
|
-
getContainerRef && getContainerRef(ele, id);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
56
|
var _customProps$CheckBox = customProps.CheckBoxProps,
|
|
62
57
|
CheckBoxProps = _customProps$CheckBox === void 0 ? {} : _customProps$CheckBox,
|
|
63
58
|
_customProps$LabelPro = customProps.LabelProps,
|
|
@@ -90,7 +85,6 @@ var CheckBox = function CheckBox(props) {
|
|
|
90
85
|
onClick: isReadOnly || disabled ? null : onChange,
|
|
91
86
|
tabIndex: isReadOnly || disabled || ariaHidden ? '-1' : '0',
|
|
92
87
|
"aria-checked": ariaChecked,
|
|
93
|
-
eleRef: handleGetContainerRef,
|
|
94
88
|
role: role,
|
|
95
89
|
"aria-label": ariaLabel,
|
|
96
90
|
"aria-labelledby": ariaLabelledby,
|
|
@@ -18,7 +18,6 @@ var propTypes = {
|
|
|
18
18
|
disabled: _propTypes["default"].bool,
|
|
19
19
|
disabledTitle: _propTypes["default"].string,
|
|
20
20
|
getRef: _propTypes["default"].func,
|
|
21
|
-
getContainerRef: _propTypes["default"].func,
|
|
22
21
|
id: _propTypes["default"].string,
|
|
23
22
|
isFilled: _propTypes["default"].bool,
|
|
24
23
|
isClipped: _propTypes["default"].bool,
|
package/lib/v1/Radio/Radio.js
CHANGED
|
@@ -19,8 +19,6 @@ var _RadioModule = _interopRequireDefault(require("../../Radio/Radio.module.css"
|
|
|
19
19
|
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
21
|
|
|
22
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
23
|
-
|
|
24
22
|
var Radio = function Radio(props) {
|
|
25
23
|
var id = props.id,
|
|
26
24
|
name = props.name,
|
|
@@ -39,9 +37,6 @@ var Radio = function Radio(props) {
|
|
|
39
37
|
active = props.active,
|
|
40
38
|
isFilled = props.isFilled,
|
|
41
39
|
customClass = props.customClass,
|
|
42
|
-
customProps = props.customProps,
|
|
43
|
-
getRef = props.getRef,
|
|
44
|
-
children = props.children,
|
|
45
40
|
a11y = props.a11y;
|
|
46
41
|
var _customClass$customRa = customClass.customRadioWrap,
|
|
47
42
|
customRadioWrap = _customClass$customRa === void 0 ? '' : _customClass$customRa,
|
|
@@ -54,28 +49,19 @@ var Radio = function Radio(props) {
|
|
|
54
49
|
var ariaHidden = a11y.ariaHidden,
|
|
55
50
|
_a11y$role = a11y.role,
|
|
56
51
|
role = _a11y$role === void 0 ? 'radio' : _a11y$role,
|
|
57
|
-
tabIndex = a11y.tabIndex,
|
|
58
52
|
_a11y$ariaChecked = a11y.ariaChecked,
|
|
59
53
|
ariaChecked = _a11y$ariaChecked === void 0 ? checked : _a11y$ariaChecked,
|
|
60
54
|
ariaLabel = a11y.ariaLabel,
|
|
61
55
|
ariaLabelledby = a11y.ariaLabelledby,
|
|
62
56
|
_a11y$ariaReadonly = a11y.ariaReadonly,
|
|
63
57
|
ariaReadonly = _a11y$ariaReadonly === void 0 ? isReadOnly || disabled ? true : false : _a11y$ariaReadonly;
|
|
64
|
-
var _customProps$Containe = customProps.ContainerProps,
|
|
65
|
-
ContainerProps = _customProps$Containe === void 0 ? {} : _customProps$Containe,
|
|
66
|
-
_customProps$LabelPro = customProps.LabelProps,
|
|
67
|
-
LabelProps = _customProps$LabelPro === void 0 ? {} : _customProps$LabelPro;
|
|
68
58
|
|
|
69
59
|
function onChange(e) {
|
|
70
60
|
var onChange = props.onChange;
|
|
71
61
|
onChange && onChange(value, e);
|
|
72
62
|
}
|
|
73
63
|
|
|
74
|
-
|
|
75
|
-
getRef && getRef(ele, value);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, _extends({
|
|
64
|
+
return /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
79
65
|
dataId: value ? value.toLowerCase() : 'RadioComp',
|
|
80
66
|
isCover: false,
|
|
81
67
|
isInline: text ? false : true,
|
|
@@ -85,14 +71,13 @@ var Radio = function Radio(props) {
|
|
|
85
71
|
"data-title": toolTip,
|
|
86
72
|
onClick: !isReadOnly && !disabled ? onChange : '',
|
|
87
73
|
"aria-checked": ariaChecked,
|
|
88
|
-
tabindex: isReadOnly || disabled || ariaHidden ? '-1' :
|
|
89
|
-
eleRef: handleGetRef,
|
|
74
|
+
tabindex: isReadOnly || disabled || ariaHidden ? '-1' : '0',
|
|
90
75
|
role: role,
|
|
91
76
|
"aria-Hidden": ariaHidden,
|
|
92
77
|
"aria-label": ariaLabel,
|
|
93
78
|
"aria-labelledby": ariaLabelledby,
|
|
94
79
|
"aria-readonly": ariaReadonly
|
|
95
|
-
},
|
|
80
|
+
}, /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
96
81
|
className: "".concat(_RadioModule["default"].radio, " ").concat(checked ? "".concat(_RadioModule["default"]["rdBox".concat(palette)]) : '', "\n ").concat(isReadOnly || disabled ? '' : "".concat(_RadioModule["default"]["hover".concat(palette)]), " ").concat(_RadioModule["default"][size], " ").concat(isFilled ? _RadioModule["default"].filled : '', " ").concat(_RadioModule["default"]["centerPath".concat(palette)], " ").concat(customRadio)
|
|
97
82
|
}, /*#__PURE__*/_react["default"].createElement("input", {
|
|
98
83
|
type: "hidden",
|
|
@@ -117,17 +102,17 @@ var Radio = function Radio(props) {
|
|
|
117
102
|
}) : null))), text && /*#__PURE__*/_react["default"].createElement(_Layout.Box, {
|
|
118
103
|
flexible: true,
|
|
119
104
|
className: _RadioModule["default"].text
|
|
120
|
-
}, /*#__PURE__*/_react["default"].createElement(_Label["default"],
|
|
105
|
+
}, /*#__PURE__*/_react["default"].createElement(_Label["default"], {
|
|
121
106
|
text: text,
|
|
122
|
-
palette: labelPalette,
|
|
107
|
+
palette: disabled ? 'disable' : labelPalette,
|
|
123
108
|
size: labelSize,
|
|
124
109
|
type: "title",
|
|
125
110
|
clipped: true,
|
|
126
111
|
dataId: "".concat(text, "_label"),
|
|
127
112
|
variant: variant,
|
|
128
113
|
title: toolTip ? toolTip : text,
|
|
129
|
-
customClass: "".concat(checked && active ? "".concat(_RadioModule["default"]["".concat(palette, "checkedActive")]) : '', "\n ").concat(_RadioModule["default"]["".concat(palette, "Label")], " ").concat(accessMode, " ").concat(customLabel)
|
|
130
|
-
}
|
|
114
|
+
customClass: "".concat(checked && active && !disabled ? "".concat(_RadioModule["default"]["".concat(palette, "checkedActive")]) : '', "\n ").concat(_RadioModule["default"]["".concat(palette, "Label")], " ").concat(accessMode, " ").concat(customLabel)
|
|
115
|
+
})));
|
|
131
116
|
};
|
|
132
117
|
|
|
133
118
|
var _default = Radio;
|
|
@@ -14,7 +14,6 @@ var propTypes = {
|
|
|
14
14
|
checked: _propTypes["default"].bool,
|
|
15
15
|
disabled: _propTypes["default"].bool,
|
|
16
16
|
disabledTitle: _propTypes["default"].string,
|
|
17
|
-
getRef: _propTypes["default"].func,
|
|
18
17
|
id: _propTypes["default"].string,
|
|
19
18
|
isFilled: _propTypes["default"].bool,
|
|
20
19
|
isReadOnly: _propTypes["default"].bool,
|
|
@@ -31,20 +30,14 @@ var propTypes = {
|
|
|
31
30
|
customRadio: _propTypes["default"].string,
|
|
32
31
|
customLabel: _propTypes["default"].string
|
|
33
32
|
}),
|
|
34
|
-
customProps: _propTypes["default"].exact({
|
|
35
|
-
ContainerProps: _propTypes["default"].object,
|
|
36
|
-
LabelProps: _propTypes["default"].object
|
|
37
|
-
}),
|
|
38
33
|
a11y: _propTypes["default"].shape({
|
|
39
34
|
ariaChecked: _propTypes["default"].bool,
|
|
40
35
|
ariaHidden: _propTypes["default"].bool,
|
|
41
36
|
role: _propTypes["default"].string,
|
|
42
|
-
tabIndex: _propTypes["default"].oneOfType(_propTypes["default"].string, _propTypes["default"].number),
|
|
43
37
|
ariaLabelledby: _propTypes["default"].string,
|
|
44
38
|
ariaLabel: _propTypes["default"].string,
|
|
45
39
|
ariaReadonly: _propTypes["default"].bool
|
|
46
40
|
}),
|
|
47
|
-
children: _propTypes["default"].node,
|
|
48
41
|
onChange: _propTypes["default"].func,
|
|
49
42
|
text: _propTypes["default"].string
|
|
50
43
|
};
|
|
@@ -208,7 +208,8 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
|
|
|
208
208
|
htmlId = _this$props.htmlId,
|
|
209
209
|
needEffect = _this$props.needEffect,
|
|
210
210
|
isLoading = _this$props.isLoading,
|
|
211
|
-
dataSelectorId = _this$props.dataSelectorId
|
|
211
|
+
dataSelectorId = _this$props.dataSelectorId,
|
|
212
|
+
getFooter = _this$props.getFooter;
|
|
212
213
|
i18nKeys = Object.assign({}, i18nKeys, {
|
|
213
214
|
emptyText: i18nKeys.emptyText || emptyMessage,
|
|
214
215
|
searchEmptyText: i18nKeys.searchEmptyText || searchEmptyMessage
|
|
@@ -368,7 +369,7 @@ var SelectWithAvatarComponent = /*#__PURE__*/function (_SelectComponent) {
|
|
|
368
369
|
}), isFetchingOptions && /*#__PURE__*/_react["default"].createElement(_Layout.Container, {
|
|
369
370
|
isCover: false,
|
|
370
371
|
align: "both"
|
|
371
|
-
}, /*#__PURE__*/_react["default"].createElement(_Loader["default"], null))))));
|
|
372
|
+
}, /*#__PURE__*/_react["default"].createElement(_Loader["default"], null))), getFooter ? /*#__PURE__*/_react["default"].createElement(_Card.CardFooter, null, getFooter()) : null)));
|
|
372
373
|
}) : null);
|
|
373
374
|
}
|
|
374
375
|
}]);
|
|
@@ -249,7 +249,8 @@ var SelectWithAvatar_propTypes = _objectSpread(_objectSpread({}, Select_propType
|
|
|
249
249
|
htmlId: _propTypes["default"].string,
|
|
250
250
|
needEffect: _propTypes["default"].bool,
|
|
251
251
|
isLoading: _propTypes["default"].bool,
|
|
252
|
-
dataSelectorId: _propTypes["default"].string
|
|
252
|
+
dataSelectorId: _propTypes["default"].string,
|
|
253
|
+
getFooter: _propTypes["default"].func
|
|
253
254
|
});
|
|
254
255
|
|
|
255
256
|
exports.SelectWithAvatar_propTypes = SelectWithAvatar_propTypes;
|