@dhis2-ui/switch 7.10.3 → 7.11.1
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.
|
@@ -91,7 +91,7 @@ class Switch extends _react.Component {
|
|
|
91
91
|
});
|
|
92
92
|
return /*#__PURE__*/_react.default.createElement("label", {
|
|
93
93
|
"data-test": dataTest,
|
|
94
|
-
className: _style.default.dynamic([["
|
|
94
|
+
className: _style.default.dynamic([["3592976892", [_uiConstants.colors.grey900, _uiConstants.theme.disabled, _uiConstants.theme.focus]]]) + " " + ((0, _classnames.default)(className, {
|
|
95
95
|
disabled,
|
|
96
96
|
dense
|
|
97
97
|
}) || "")
|
|
@@ -108,17 +108,17 @@ class Switch extends _react.Component {
|
|
|
108
108
|
onChange: this.handleChange,
|
|
109
109
|
onFocus: this.handleFocus,
|
|
110
110
|
onBlur: this.handleBlur,
|
|
111
|
-
className: _style.default.dynamic([["
|
|
111
|
+
className: _style.default.dynamic([["3592976892", [_uiConstants.colors.grey900, _uiConstants.theme.disabled, _uiConstants.theme.focus]]])
|
|
112
112
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
113
|
-
className: _style.default.dynamic([["
|
|
113
|
+
className: _style.default.dynamic([["3592976892", [_uiConstants.colors.grey900, _uiConstants.theme.disabled, _uiConstants.theme.focus]]]) + " " + ((0, _classnames.default)('icon', {
|
|
114
114
|
dense
|
|
115
115
|
}) || "")
|
|
116
116
|
}, /*#__PURE__*/_react.default.createElement(_switchIcons.SwitchRegular, {
|
|
117
117
|
className: classes
|
|
118
118
|
})), label, /*#__PURE__*/_react.default.createElement(_style.default, {
|
|
119
|
-
id: "
|
|
119
|
+
id: "3592976892",
|
|
120
120
|
dynamic: [_uiConstants.colors.grey900, _uiConstants.theme.disabled, _uiConstants.theme.focus]
|
|
121
|
-
}, [`label.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;color:${_uiConstants.colors.grey900};font-size:16px;line-height:20px;}`, "label.dense.__jsx-style-dynamic-selector{font-size:14px;line-height:16px;}", `label.disabled.__jsx-style-dynamic-selector{cursor:not-allowed;color:${_uiConstants.theme.disabled};}`, "input.__jsx-style-dynamic-selector{opacity:0;position:absolute;height:18px;width:35px;margin-left:3px;}", "label.dense.__jsx-style-dynamic-selector input.__jsx-style-dynamic-selector{height:14px;width:27px;}", ".icon.__jsx-style-dynamic-selector{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-right:5px;border:2px solid transparent;padding:1px;border-radius:14px;}", "label.dense.__jsx-style-dynamic-selector .icon.__jsx-style-dynamic-selector{margin-right:3px;border-radius:12px;}", `input.__jsx-style-dynamic-selector:focus+.icon.__jsx-style-dynamic-selector{outline:3px solid ${_uiConstants.theme.focus};outline-offset:-
|
|
121
|
+
}, [`label.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;color:${_uiConstants.colors.grey900};font-size:16px;line-height:20px;}`, "label.dense.__jsx-style-dynamic-selector{font-size:14px;line-height:16px;}", `label.disabled.__jsx-style-dynamic-selector{cursor:not-allowed;color:${_uiConstants.theme.disabled};}`, "input.__jsx-style-dynamic-selector{opacity:0;position:absolute;height:18px;width:35px;margin-left:3px;}", "label.dense.__jsx-style-dynamic-selector input.__jsx-style-dynamic-selector{height:14px;width:27px;}", ".icon.__jsx-style-dynamic-selector{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-right:5px;border:2px solid transparent;padding:1px;border-radius:14px;}", "label.dense.__jsx-style-dynamic-selector .icon.__jsx-style-dynamic-selector{margin-right:3px;border-radius:12px;}", `input.__jsx-style-dynamic-selector:focus+.icon.__jsx-style-dynamic-selector{outline:3px solid ${_uiConstants.theme.focus};outline-offset:-3px;}`]));
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
}
|
|
@@ -74,7 +74,7 @@ class Switch extends Component {
|
|
|
74
74
|
});
|
|
75
75
|
return /*#__PURE__*/React.createElement("label", {
|
|
76
76
|
"data-test": dataTest,
|
|
77
|
-
className: _JSXStyle.dynamic([["
|
|
77
|
+
className: _JSXStyle.dynamic([["3592976892", [colors.grey900, theme.disabled, theme.focus]]]) + " " + (cx(className, {
|
|
78
78
|
disabled,
|
|
79
79
|
dense
|
|
80
80
|
}) || "")
|
|
@@ -91,17 +91,17 @@ class Switch extends Component {
|
|
|
91
91
|
onChange: this.handleChange,
|
|
92
92
|
onFocus: this.handleFocus,
|
|
93
93
|
onBlur: this.handleBlur,
|
|
94
|
-
className: _JSXStyle.dynamic([["
|
|
94
|
+
className: _JSXStyle.dynamic([["3592976892", [colors.grey900, theme.disabled, theme.focus]]])
|
|
95
95
|
}), /*#__PURE__*/React.createElement("div", {
|
|
96
|
-
className: _JSXStyle.dynamic([["
|
|
96
|
+
className: _JSXStyle.dynamic([["3592976892", [colors.grey900, theme.disabled, theme.focus]]]) + " " + (cx('icon', {
|
|
97
97
|
dense
|
|
98
98
|
}) || "")
|
|
99
99
|
}, /*#__PURE__*/React.createElement(SwitchRegular, {
|
|
100
100
|
className: classes
|
|
101
101
|
})), label, /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
102
|
-
id: "
|
|
102
|
+
id: "3592976892",
|
|
103
103
|
dynamic: [colors.grey900, theme.disabled, theme.focus]
|
|
104
|
-
}, [`label.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;color:${colors.grey900};font-size:16px;line-height:20px;}`, "label.dense.__jsx-style-dynamic-selector{font-size:14px;line-height:16px;}", `label.disabled.__jsx-style-dynamic-selector{cursor:not-allowed;color:${theme.disabled};}`, "input.__jsx-style-dynamic-selector{opacity:0;position:absolute;height:18px;width:35px;margin-left:3px;}", "label.dense.__jsx-style-dynamic-selector input.__jsx-style-dynamic-selector{height:14px;width:27px;}", ".icon.__jsx-style-dynamic-selector{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-right:5px;border:2px solid transparent;padding:1px;border-radius:14px;}", "label.dense.__jsx-style-dynamic-selector .icon.__jsx-style-dynamic-selector{margin-right:3px;border-radius:12px;}", `input.__jsx-style-dynamic-selector:focus+.icon.__jsx-style-dynamic-selector{outline:3px solid ${theme.focus};outline-offset:-
|
|
104
|
+
}, [`label.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;color:${colors.grey900};font-size:16px;line-height:20px;}`, "label.dense.__jsx-style-dynamic-selector{font-size:14px;line-height:16px;}", `label.disabled.__jsx-style-dynamic-selector{cursor:not-allowed;color:${theme.disabled};}`, "input.__jsx-style-dynamic-selector{opacity:0;position:absolute;height:18px;width:35px;margin-left:3px;}", "label.dense.__jsx-style-dynamic-selector input.__jsx-style-dynamic-selector{height:14px;width:27px;}", ".icon.__jsx-style-dynamic-selector{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;margin-right:5px;border:2px solid transparent;padding:1px;border-radius:14px;}", "label.dense.__jsx-style-dynamic-selector .icon.__jsx-style-dynamic-selector{margin-right:3px;border-radius:12px;}", `input.__jsx-style-dynamic-selector:focus+.icon.__jsx-style-dynamic-selector{outline:3px solid ${theme.focus};outline-offset:-3px;}`]));
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhis2-ui/switch",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.11.1",
|
|
4
4
|
"description": "UI Switch",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@dhis2/prop-types": "^3.0.0-beta.1",
|
|
35
|
-
"@dhis2-ui/field": "7.
|
|
36
|
-
"@dhis2-ui/required": "7.
|
|
37
|
-
"@dhis2/ui-constants": "7.
|
|
35
|
+
"@dhis2-ui/field": "7.11.1",
|
|
36
|
+
"@dhis2-ui/required": "7.11.1",
|
|
37
|
+
"@dhis2/ui-constants": "7.11.1",
|
|
38
38
|
"classnames": "^2.3.1",
|
|
39
39
|
"prop-types": "^15.7.2"
|
|
40
40
|
},
|