@cloudflare/component-radio 6.0.5 → 6.0.7
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/CHANGELOG.md +12 -0
- package/es/Radio.js +3 -7
- package/es/RadioGroup.js +1 -2
- package/lib/Radio.js +3 -7
- package/lib/RadioGroup.js +1 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 6.0.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 92aa24bd89: Accept React 18 and 19 in the peer ranges of smoke-tested components and styling packages. Keep React keys out of Grid and FormGrid styling props, and emit declarations compatible with React 19 types.
|
|
8
|
+
|
|
9
|
+
## 6.0.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- fc455fa761: Require explicit opt-in before injecting source-file debug attributes into package build artifacts.
|
|
14
|
+
|
|
3
15
|
## 6.0.5
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/es/Radio.js
CHANGED
|
@@ -92,16 +92,12 @@ function Radio(_ref3) {
|
|
|
92
92
|
onChange: onChange && (e => onChange(e.target.value)),
|
|
93
93
|
className: noLabel ? className : undefined,
|
|
94
94
|
disabled: disabled
|
|
95
|
-
}, rest
|
|
96
|
-
"data-source-file": "@cloudflare/component-radio:src/Radio.tsx:80"
|
|
97
|
-
}));
|
|
95
|
+
}, rest));
|
|
98
96
|
return noLabel ? input : /*#__PURE__*/React.createElement("label", {
|
|
99
97
|
htmlFor: name,
|
|
100
|
-
className: className
|
|
101
|
-
"data-source-file": "@cloudflare/component-radio:src/Radio.tsx:94"
|
|
98
|
+
className: className
|
|
102
99
|
}, input, label && /*#__PURE__*/React.createElement(Label, {
|
|
103
|
-
disabled: disabled
|
|
104
|
-
"data-source-file": "@cloudflare/component-radio:src/Radio.tsx:96"
|
|
100
|
+
disabled: disabled
|
|
105
101
|
}, label));
|
|
106
102
|
}
|
|
107
103
|
|
package/es/RadioGroup.js
CHANGED
|
@@ -10,8 +10,7 @@ function RadioGroup(_ref) {
|
|
|
10
10
|
disabled
|
|
11
11
|
} = _ref;
|
|
12
12
|
return /*#__PURE__*/React.createElement("div", {
|
|
13
|
-
className: className
|
|
14
|
-
"data-source-file": "@cloudflare/component-radio:src/RadioGroup.tsx:14"
|
|
13
|
+
className: className
|
|
15
14
|
}, React.Children.map(children, child => {
|
|
16
15
|
if (! /*#__PURE__*/React.isValidElement(child)) {
|
|
17
16
|
return child;
|
package/lib/Radio.js
CHANGED
|
@@ -100,17 +100,13 @@ function Radio(_ref3) {
|
|
|
100
100
|
},
|
|
101
101
|
className: noLabel ? className : undefined,
|
|
102
102
|
disabled: disabled
|
|
103
|
-
}, rest
|
|
104
|
-
"data-source-file": "@cloudflare/component-radio:src/Radio.tsx:80"
|
|
105
|
-
}));
|
|
103
|
+
}, rest));
|
|
106
104
|
|
|
107
105
|
return noLabel ? input : /*#__PURE__*/_react.default.createElement("label", {
|
|
108
106
|
htmlFor: name,
|
|
109
|
-
className: className
|
|
110
|
-
"data-source-file": "@cloudflare/component-radio:src/Radio.tsx:94"
|
|
107
|
+
className: className
|
|
111
108
|
}, input, label && /*#__PURE__*/_react.default.createElement(Label, {
|
|
112
|
-
disabled: disabled
|
|
113
|
-
"data-source-file": "@cloudflare/component-radio:src/Radio.tsx:96"
|
|
109
|
+
disabled: disabled
|
|
114
110
|
}, label));
|
|
115
111
|
}
|
|
116
112
|
|
package/lib/RadioGroup.js
CHANGED
|
@@ -18,8 +18,7 @@ function RadioGroup(_ref) {
|
|
|
18
18
|
onChange = _ref.onChange,
|
|
19
19
|
disabled = _ref.disabled;
|
|
20
20
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
21
|
-
className: className
|
|
22
|
-
"data-source-file": "@cloudflare/component-radio:src/RadioGroup.tsx:14"
|
|
21
|
+
className: className
|
|
23
22
|
}, _react.default.Children.map(children, function (child) {
|
|
24
23
|
if (! /*#__PURE__*/_react.default.isValidElement(child)) {
|
|
25
24
|
return child;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudflare/component-radio",
|
|
3
3
|
"description": "Cloudflare Radio Component",
|
|
4
|
-
"version": "6.0.
|
|
4
|
+
"version": "6.0.7",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
7
7
|
"author": "James Kyle <jkyle@cloudflare.com>",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"@cloudflare/style-const": "^6.0.0",
|
|
20
20
|
"@cloudflare/style-container": "^8.0.0",
|
|
21
|
-
"react": "^15.0.0-0 || ^16.0.0-0 || ^17.0.0-0"
|
|
21
|
+
"react": "^15.0.0-0 || ^16.0.0-0 || ^17.0.0-0 || ^18.0.0-0 || ^19.0.0-0"
|
|
22
22
|
},
|
|
23
23
|
"stratus": {
|
|
24
24
|
"srcDirectory": "./src",
|