@page-speed/forms 0.5.6 → 0.5.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/dist/{chunk-QZ4PK62A.js → chunk-5WWMVS2I.js} +9 -10
- package/dist/chunk-5WWMVS2I.js.map +1 -0
- package/dist/{chunk-WVSLOSNU.cjs → chunk-FIDKDYT7.cjs} +8 -9
- package/dist/chunk-FIDKDYT7.cjs.map +1 -0
- package/dist/inputs.cjs +13 -13
- package/dist/inputs.js +1 -1
- package/dist/integration.cjs +13 -13
- package/dist/integration.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-QZ4PK62A.js.map +0 -1
- package/dist/chunk-WVSLOSNU.cjs.map +0 -1
|
@@ -296,9 +296,9 @@ function Checkbox2({
|
|
|
296
296
|
}
|
|
297
297
|
));
|
|
298
298
|
if (!label) {
|
|
299
|
-
return /* @__PURE__ */ React21__namespace.createElement(
|
|
299
|
+
return /* @__PURE__ */ React21__namespace.createElement("div", { className }, checkbox);
|
|
300
300
|
}
|
|
301
|
-
return /* @__PURE__ */ React21__namespace.createElement(
|
|
301
|
+
return /* @__PURE__ */ React21__namespace.createElement("div", { className: "space-y-0", "data-invalid": error || void 0 }, /* @__PURE__ */ React21__namespace.createElement(
|
|
302
302
|
chunkQQSBW6N3_cjs.FieldLabel,
|
|
303
303
|
{
|
|
304
304
|
htmlFor: checkboxId,
|
|
@@ -320,7 +320,7 @@ function Checkbox2({
|
|
|
320
320
|
)
|
|
321
321
|
},
|
|
322
322
|
checkbox,
|
|
323
|
-
/* @__PURE__ */ React21__namespace.createElement(
|
|
323
|
+
/* @__PURE__ */ React21__namespace.createElement("div", { className: "flex-1 space-y-1" }, /* @__PURE__ */ React21__namespace.createElement("span", { className: "text-sm font-medium leading-none" }, label), description && /* @__PURE__ */ React21__namespace.createElement(
|
|
324
324
|
chunkQQSBW6N3_cjs.FieldDescription,
|
|
325
325
|
{
|
|
326
326
|
id: `${checkboxId}-description`,
|
|
@@ -549,7 +549,7 @@ function Radio({
|
|
|
549
549
|
return options.some((option) => option.description);
|
|
550
550
|
}, [options]);
|
|
551
551
|
const groupDescriptionId = description ? `${name}-description` : void 0;
|
|
552
|
-
return /* @__PURE__ */ React21__namespace.createElement(
|
|
552
|
+
return /* @__PURE__ */ React21__namespace.createElement("div", { className: chunkQQSBW6N3_cjs.cn("w-full", className), "data-invalid": error || void 0 }, (label || description) && /* @__PURE__ */ React21__namespace.createElement("div", { className: "mb-3 space-y-1" }, label && /* @__PURE__ */ React21__namespace.createElement("div", { className: "text-base font-medium leading-none" }, label), description && /* @__PURE__ */ React21__namespace.createElement(
|
|
553
553
|
chunkQQSBW6N3_cjs.FieldDescription,
|
|
554
554
|
{
|
|
555
555
|
id: groupDescriptionId,
|
|
@@ -593,9 +593,8 @@ function Radio({
|
|
|
593
593
|
)
|
|
594
594
|
},
|
|
595
595
|
/* @__PURE__ */ React21__namespace.createElement(
|
|
596
|
-
|
|
596
|
+
"div",
|
|
597
597
|
{
|
|
598
|
-
orientation: "horizontal",
|
|
599
598
|
className: chunkQQSBW6N3_cjs.cn(
|
|
600
599
|
"flex w-full gap-3",
|
|
601
600
|
useChoiceCard ? "items-start" : "items-center"
|
|
@@ -611,7 +610,7 @@ function Radio({
|
|
|
611
610
|
"aria-describedby": hasDescription ? `${radioId}-description` : void 0
|
|
612
611
|
}
|
|
613
612
|
),
|
|
614
|
-
/* @__PURE__ */ React21__namespace.createElement(
|
|
613
|
+
/* @__PURE__ */ React21__namespace.createElement("div", { className: "flex-1 space-y-1" }, /* @__PURE__ */ React21__namespace.createElement("span", { className: "text-sm font-medium leading-none" }, option.label), option.description && /* @__PURE__ */ React21__namespace.createElement(
|
|
615
614
|
chunkQQSBW6N3_cjs.FieldDescription,
|
|
616
615
|
{
|
|
617
616
|
id: `${radioId}-description`,
|
|
@@ -4165,5 +4164,5 @@ exports.Switch = Switch2;
|
|
|
4165
4164
|
exports.TextArea = TextArea;
|
|
4166
4165
|
exports.TextInput = TextInput;
|
|
4167
4166
|
exports.TimePicker = TimePicker;
|
|
4168
|
-
//# sourceMappingURL=chunk-
|
|
4169
|
-
//# sourceMappingURL=chunk-
|
|
4167
|
+
//# sourceMappingURL=chunk-FIDKDYT7.cjs.map
|
|
4168
|
+
//# sourceMappingURL=chunk-FIDKDYT7.cjs.map
|