@snack-uikit/toggles 0.13.25 → 0.13.26-preview-ea1a9bc3.0
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.
|
@@ -60,7 +60,7 @@ exports.TogglePrivate = (0, react_1.forwardRef)(function TogglePrivate(_a, ref)
|
|
|
60
60
|
onKeyUp: onKeyUp
|
|
61
61
|
}, (0, utils_1.getVisualStateAttributes)(visualState), {
|
|
62
62
|
children: [render(visualState), (0, jsx_runtime_1.jsx)("input", Object.assign({}, otherProps, {
|
|
63
|
-
"data-test-id":
|
|
63
|
+
"data-test-id": "".concat(testId, "-native-input"),
|
|
64
64
|
ref: ref,
|
|
65
65
|
type: mode,
|
|
66
66
|
className: styles_module_scss_1.default.togglePrivate,
|
package/dist/cjs/utils.js
CHANGED
|
@@ -9,7 +9,7 @@ const constants_1 = require("./constants");
|
|
|
9
9
|
function getVisualStateAttributes(state) {
|
|
10
10
|
return Object.entries(state).reduce(function (result, _ref) {
|
|
11
11
|
let [name, value] = _ref;
|
|
12
|
-
result[
|
|
12
|
+
result["data-".concat(name.toLowerCase())] = value;
|
|
13
13
|
return result;
|
|
14
14
|
}, {});
|
|
15
15
|
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"title": "Toggles",
|
|
7
|
-
"version": "0.13.
|
|
7
|
+
"version": "0.13.26-preview-ea1a9bc3.0",
|
|
8
8
|
"sideEffects": [
|
|
9
9
|
"*.css",
|
|
10
10
|
"*.woff",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"license": "Apache-2.0",
|
|
37
37
|
"scripts": {},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@snack-uikit/icons": "0.27.
|
|
39
|
+
"@snack-uikit/icons": "0.27.7-preview-ea1a9bc3.0",
|
|
40
40
|
"@snack-uikit/utils": "4.0.1",
|
|
41
41
|
"classnames": "2.5.1",
|
|
42
42
|
"merge-refs": "1.3.0",
|
|
43
43
|
"uncontrollable": "8.0.4"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "39719176042e1faa36c12e0bf6b63ee265fa70f1"
|
|
46
46
|
}
|