@desynova-digital/components 8.9.2 → 8.9.3
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.
|
@@ -114,7 +114,7 @@ var Checkbox = function Checkbox(props) {
|
|
|
114
114
|
{
|
|
115
115
|
theme: props.theme,
|
|
116
116
|
selected: props.defaultChecked,
|
|
117
|
-
className: props.isDisabled ? "disabled" : ""
|
|
117
|
+
className: props.isDisabled && props.access !== 'read' ? "disabled" : ""
|
|
118
118
|
},
|
|
119
119
|
props.children
|
|
120
120
|
) : null,
|
|
@@ -166,7 +166,8 @@ var CheckboxGroup = function CheckboxGroup(props) {
|
|
|
166
166
|
onChange: child.props.isDisabled ? props.onChange : function () {},
|
|
167
167
|
theme: props.theme,
|
|
168
168
|
type: props.type,
|
|
169
|
-
fillRule: props.fillRule || ''
|
|
169
|
+
fillRule: props.fillRule || '',
|
|
170
|
+
access: child.props.access
|
|
170
171
|
}) : null;
|
|
171
172
|
})
|
|
172
173
|
);
|
|
@@ -184,7 +185,8 @@ Checkbox.propTypes = {
|
|
|
184
185
|
/** Callback function which is called when the user selects an option */
|
|
185
186
|
onChange: _propTypes2.default.func,
|
|
186
187
|
type: _propTypes2.default.oneOf(["default", "label", "switch"]),
|
|
187
|
-
fillRule: _propTypes2.default.string
|
|
188
|
+
fillRule: _propTypes2.default.string,
|
|
189
|
+
access: _propTypes2.default.string
|
|
188
190
|
};
|
|
189
191
|
|
|
190
192
|
Checkbox.defaultProps = {
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@desynova-digital/components",
|
|
3
|
-
"version": "8.9.
|
|
3
|
+
"version": "8.9.3",
|
|
4
4
|
"description": "Components for Desynova Digital",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "desynova-digital",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"repository": "desynova-digital",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@desynova-digital/tokens": "8.9.
|
|
10
|
+
"@desynova-digital/tokens": "8.9.3",
|
|
11
11
|
"prop-types": "^15.7.2",
|
|
12
12
|
"styled-components": "^4.3.2"
|
|
13
13
|
},
|