@cloudflare/component-radio 6.0.4 → 6.0.5
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 +6 -0
- package/es/Radio.js +7 -3
- package/es/RadioGroup.js +2 -1
- package/lib/Radio.js +7 -3
- package/lib/RadioGroup.js +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/es/Radio.js
CHANGED
|
@@ -92,12 +92,16 @@ function Radio(_ref3) {
|
|
|
92
92
|
onChange: onChange && (e => onChange(e.target.value)),
|
|
93
93
|
className: noLabel ? className : undefined,
|
|
94
94
|
disabled: disabled
|
|
95
|
-
}, rest
|
|
95
|
+
}, rest, {
|
|
96
|
+
"data-source-file": "@cloudflare/component-radio:src/Radio.tsx:80"
|
|
97
|
+
}));
|
|
96
98
|
return noLabel ? input : /*#__PURE__*/React.createElement("label", {
|
|
97
99
|
htmlFor: name,
|
|
98
|
-
className: className
|
|
100
|
+
className: className,
|
|
101
|
+
"data-source-file": "@cloudflare/component-radio:src/Radio.tsx:94"
|
|
99
102
|
}, input, label && /*#__PURE__*/React.createElement(Label, {
|
|
100
|
-
disabled: disabled
|
|
103
|
+
disabled: disabled,
|
|
104
|
+
"data-source-file": "@cloudflare/component-radio:src/Radio.tsx:96"
|
|
101
105
|
}, label));
|
|
102
106
|
}
|
|
103
107
|
|
package/es/RadioGroup.js
CHANGED
|
@@ -10,7 +10,8 @@ function RadioGroup(_ref) {
|
|
|
10
10
|
disabled
|
|
11
11
|
} = _ref;
|
|
12
12
|
return /*#__PURE__*/React.createElement("div", {
|
|
13
|
-
className: className
|
|
13
|
+
className: className,
|
|
14
|
+
"data-source-file": "@cloudflare/component-radio:src/RadioGroup.tsx:14"
|
|
14
15
|
}, React.Children.map(children, child => {
|
|
15
16
|
if (! /*#__PURE__*/React.isValidElement(child)) {
|
|
16
17
|
return child;
|
package/lib/Radio.js
CHANGED
|
@@ -100,13 +100,17 @@ function Radio(_ref3) {
|
|
|
100
100
|
},
|
|
101
101
|
className: noLabel ? className : undefined,
|
|
102
102
|
disabled: disabled
|
|
103
|
-
}, rest
|
|
103
|
+
}, rest, {
|
|
104
|
+
"data-source-file": "@cloudflare/component-radio:src/Radio.tsx:80"
|
|
105
|
+
}));
|
|
104
106
|
|
|
105
107
|
return noLabel ? input : /*#__PURE__*/_react.default.createElement("label", {
|
|
106
108
|
htmlFor: name,
|
|
107
|
-
className: className
|
|
109
|
+
className: className,
|
|
110
|
+
"data-source-file": "@cloudflare/component-radio:src/Radio.tsx:94"
|
|
108
111
|
}, input, label && /*#__PURE__*/_react.default.createElement(Label, {
|
|
109
|
-
disabled: disabled
|
|
112
|
+
disabled: disabled,
|
|
113
|
+
"data-source-file": "@cloudflare/component-radio:src/Radio.tsx:96"
|
|
110
114
|
}, label));
|
|
111
115
|
}
|
|
112
116
|
|
package/lib/RadioGroup.js
CHANGED
|
@@ -18,7 +18,8 @@ function RadioGroup(_ref) {
|
|
|
18
18
|
onChange = _ref.onChange,
|
|
19
19
|
disabled = _ref.disabled;
|
|
20
20
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
21
|
-
className: className
|
|
21
|
+
className: className,
|
|
22
|
+
"data-source-file": "@cloudflare/component-radio:src/RadioGroup.tsx:14"
|
|
22
23
|
}, _react.default.Children.map(children, function (child) {
|
|
23
24
|
if (! /*#__PURE__*/_react.default.isValidElement(child)) {
|
|
24
25
|
return child;
|