@carbon/react 1.19.0-rc.0 → 1.19.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.
- package/es/components/Toggle/Toggle.js +1 -1
- package/es/{components → es/components}/Checkbox/Checkbox.Skeleton.d.ts +0 -0
- package/es/{components → es/components}/Checkbox/Checkbox.d.ts +0 -0
- package/es/{components → es/components}/Checkbox/index.d.ts +0 -0
- package/es/{components → es/components}/Text/Text.d.ts +0 -0
- package/es/{components → es/components}/Text/TextDirection.d.ts +0 -0
- package/es/{components → es/components}/Text/createTextComponent.d.ts +0 -0
- package/es/{components → es/components}/Text/index.d.ts +0 -0
- package/es/{internal → es/internal}/usePrefix.d.ts +0 -0
- package/es/feature-flags.js +2 -1
- package/lib/components/Toggle/Toggle.js +1 -1
- package/lib/feature-flags.js +2 -1
- package/lib/{components → lib/components}/Checkbox/Checkbox.Skeleton.d.ts +0 -0
- package/lib/{components → lib/components}/Checkbox/Checkbox.d.ts +0 -0
- package/lib/{components → lib/components}/Checkbox/index.d.ts +0 -0
- package/lib/{components → lib/components}/Text/Text.d.ts +0 -0
- package/lib/{components → lib/components}/Text/TextDirection.d.ts +0 -0
- package/lib/{components → lib/components}/Text/createTextComponent.d.ts +0 -0
- package/lib/{components → lib/components}/Text/index.d.ts +0 -0
- package/lib/{internal → lib/internal}/usePrefix.d.ts +0 -0
- package/package.json +8 -8
|
@@ -61,7 +61,7 @@ function Toggle(_ref) {
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
var isSm = size === 'sm';
|
|
64
|
-
var sideLabel = checked ? labelB : labelA;
|
|
64
|
+
var sideLabel = hideLabel ? labelText : checked ? labelB : labelA;
|
|
65
65
|
var wrapperClasses = cx("".concat(prefix, "--toggle"), (_classNames = {}, _defineProperty(_classNames, "".concat(prefix, "--toggle--disabled"), disabled), _defineProperty(_classNames, "".concat(prefix, "--toggle--readonly"), readOnly), _classNames), className);
|
|
66
66
|
var labelTextClasses = cx("".concat(prefix, "--toggle__label-text"), _defineProperty({}, "".concat(prefix, "--visually-hidden"), hideLabel));
|
|
67
67
|
var appearanceClasses = cx("".concat(prefix, "--toggle__appearance"), _defineProperty({}, "".concat(prefix, "--toggle__appearance--sm"), isSm));
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/es/feature-flags.js
CHANGED
|
@@ -71,7 +71,7 @@ function Toggle(_ref) {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
var isSm = size === 'sm';
|
|
74
|
-
var sideLabel = checked ? labelB : labelA;
|
|
74
|
+
var sideLabel = hideLabel ? labelText : checked ? labelB : labelA;
|
|
75
75
|
var wrapperClasses = cx__default["default"]("".concat(prefix, "--toggle"), (_classNames = {}, _rollupPluginBabelHelpers.defineProperty(_classNames, "".concat(prefix, "--toggle--disabled"), disabled), _rollupPluginBabelHelpers.defineProperty(_classNames, "".concat(prefix, "--toggle--readonly"), readOnly), _classNames), className);
|
|
76
76
|
var labelTextClasses = cx__default["default"]("".concat(prefix, "--toggle__label-text"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(prefix, "--visually-hidden"), hideLabel));
|
|
77
77
|
var appearanceClasses = cx__default["default"]("".concat(prefix, "--toggle__appearance"), _rollupPluginBabelHelpers.defineProperty({}, "".concat(prefix, "--toggle__appearance--sm"), isSm));
|
package/lib/feature-flags.js
CHANGED
|
@@ -32,5 +32,6 @@ var FeatureFlags__namespace = /*#__PURE__*/_interopNamespace(FeatureFlags);
|
|
|
32
32
|
FeatureFlags__namespace.merge({
|
|
33
33
|
'enable-css-custom-properties': true,
|
|
34
34
|
'enable-css-grid': true,
|
|
35
|
-
'enable-v11-release': true
|
|
35
|
+
'enable-v11-release': true,
|
|
36
|
+
'enable-experimental-tile-contrast': false
|
|
36
37
|
});
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/react",
|
|
3
3
|
"description": "React components for the Carbon Design System",
|
|
4
|
-
"version": "1.19.0
|
|
4
|
+
"version": "1.19.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"module": "es/index.js",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@babel/runtime": "^7.18.3",
|
|
46
|
-
"@carbon/feature-flags": "^0.11.0
|
|
47
|
-
"@carbon/icons-react": "^11.13.0
|
|
48
|
-
"@carbon/layout": "^11.9.0
|
|
49
|
-
"@carbon/styles": "^1.19.0
|
|
46
|
+
"@carbon/feature-flags": "^0.11.0",
|
|
47
|
+
"@carbon/icons-react": "^11.13.0",
|
|
48
|
+
"@carbon/layout": "^11.9.0",
|
|
49
|
+
"@carbon/styles": "^1.19.0",
|
|
50
50
|
"@carbon/telemetry": "0.1.0",
|
|
51
51
|
"classnames": "2.3.2",
|
|
52
52
|
"copy-to-clipboard": "^3.3.1",
|
|
@@ -73,11 +73,11 @@
|
|
|
73
73
|
"@babel/preset-env": "^7.18.2",
|
|
74
74
|
"@babel/preset-react": "^7.17.12",
|
|
75
75
|
"@carbon/test-utils": "^10.26.0",
|
|
76
|
-
"@carbon/themes": "^11.14.0
|
|
76
|
+
"@carbon/themes": "^11.14.0",
|
|
77
77
|
"@rollup/plugin-babel": "^6.0.0",
|
|
78
78
|
"@rollup/plugin-commonjs": "^21.0.0",
|
|
79
79
|
"@rollup/plugin-node-resolve": "^15.0.0",
|
|
80
|
-
"@rollup/plugin-typescript": "^
|
|
80
|
+
"@rollup/plugin-typescript": "^10.0.0",
|
|
81
81
|
"@storybook/addon-a11y": "^6.5.6",
|
|
82
82
|
"@storybook/addon-actions": "^6.5.6",
|
|
83
83
|
"@storybook/addon-docs": "^6.5.6",
|
|
@@ -135,5 +135,5 @@
|
|
|
135
135
|
"**/*.scss",
|
|
136
136
|
"**/*.css"
|
|
137
137
|
],
|
|
138
|
-
"gitHead": "
|
|
138
|
+
"gitHead": "8206000d08eba6a443d7846b692a3543a47a6e66"
|
|
139
139
|
}
|