@dmsi/wedgekit-react 0.0.168 → 0.0.169
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.
|
@@ -284,6 +284,7 @@ var Radio = (_a) => {
|
|
|
284
284
|
"label",
|
|
285
285
|
{
|
|
286
286
|
htmlFor: radioId,
|
|
287
|
+
"data-testid": testid,
|
|
287
288
|
className: (0, import_clsx3.default)(
|
|
288
289
|
"flex items-center",
|
|
289
290
|
componentGap,
|
|
@@ -296,7 +297,7 @@ var Radio = (_a) => {
|
|
|
296
297
|
"input",
|
|
297
298
|
__spreadValues({
|
|
298
299
|
id: radioId,
|
|
299
|
-
"data-testid": testid,
|
|
300
|
+
"data-testid": testid ? `${testid}-input` : void 0,
|
|
300
301
|
type: "radio",
|
|
301
302
|
className: "sr-only peer",
|
|
302
303
|
disabled,
|
package/dist/components/Radio.js
CHANGED
|
@@ -52,6 +52,7 @@ var Radio = (_a) => {
|
|
|
52
52
|
"label",
|
|
53
53
|
{
|
|
54
54
|
htmlFor: radioId,
|
|
55
|
+
"data-testid": testid,
|
|
55
56
|
className: clsx(
|
|
56
57
|
"flex items-center",
|
|
57
58
|
componentGap,
|
|
@@ -64,7 +65,7 @@ var Radio = (_a) => {
|
|
|
64
65
|
"input",
|
|
65
66
|
__spreadValues({
|
|
66
67
|
id: radioId,
|
|
67
|
-
"data-testid": testid,
|
|
68
|
+
"data-testid": testid ? `${testid}-input` : void 0,
|
|
68
69
|
type: "radio",
|
|
69
70
|
className: "sr-only peer",
|
|
70
71
|
disabled,
|
package/package.json
CHANGED
package/src/components/Radio.tsx
CHANGED
|
@@ -61,6 +61,7 @@ export const Radio = ({
|
|
|
61
61
|
return (
|
|
62
62
|
<label
|
|
63
63
|
htmlFor={radioId}
|
|
64
|
+
data-testid={testid}
|
|
64
65
|
className={clsx(
|
|
65
66
|
"flex items-center",
|
|
66
67
|
componentGap,
|
|
@@ -71,7 +72,7 @@ export const Radio = ({
|
|
|
71
72
|
<div className="relative">
|
|
72
73
|
<input
|
|
73
74
|
id={radioId}
|
|
74
|
-
data-testid={testid}
|
|
75
|
+
data-testid={testid ? `${testid}-input` : undefined}
|
|
75
76
|
type="radio"
|
|
76
77
|
className="sr-only peer"
|
|
77
78
|
disabled={disabled}
|