@page-speed/forms 0.6.7 → 0.6.9
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/README.md +34 -0
- package/dist/{chunk-ML6FGUYS.js → chunk-AI5Q4N6D.js} +8 -14
- package/dist/chunk-AI5Q4N6D.js.map +1 -0
- package/dist/{chunk-UQ6JPOBF.cjs → chunk-I4EKHIVF.cjs} +8 -14
- package/dist/chunk-I4EKHIVF.cjs.map +1 -0
- package/dist/inputs.cjs +12 -12
- package/dist/inputs.js +1 -1
- package/dist/integration.cjs +61 -38
- package/dist/integration.cjs.map +1 -1
- package/dist/integration.d.cts +23 -8
- package/dist/integration.d.ts +23 -8
- package/dist/integration.js +51 -28
- package/dist/integration.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-ML6FGUYS.js.map +0 -1
- package/dist/chunk-UQ6JPOBF.cjs.map +0 -1
|
@@ -310,8 +310,10 @@ function CheckboxGroup({
|
|
|
310
310
|
const maxReached = Boolean(maxSelections && countableValue >= maxSelections);
|
|
311
311
|
const containerClass = React19__namespace.useMemo(() => {
|
|
312
312
|
return chunkQMWZLGON_cjs.cn(
|
|
313
|
-
"w-full
|
|
313
|
+
"w-full grid grid-cols-1 border-0 m-0 p-0 min-w-0",
|
|
314
314
|
(layout === "grid" || layout === "inline") && "md:grid-cols-2",
|
|
315
|
+
layout === "grid" && "gap-3",
|
|
316
|
+
layout === "inline" && "gap-0",
|
|
315
317
|
className
|
|
316
318
|
);
|
|
317
319
|
}, [layout, className]);
|
|
@@ -468,14 +470,7 @@ function Radio({
|
|
|
468
470
|
return options.some((option) => option.description);
|
|
469
471
|
}, [options]);
|
|
470
472
|
const groupDescriptionId = description ? `${name}-description` : void 0;
|
|
471
|
-
return /* @__PURE__ */ React19__namespace.createElement("div", { className: chunkQMWZLGON_cjs.cn("w-full", className), "data-invalid": error || void 0 }, (label || description) && /* @__PURE__ */ React19__namespace.createElement("div", { className: "mb-3 space-y-1" }, label && /* @__PURE__ */ React19__namespace.createElement("div", { className: "text-base font-medium leading-none" }, label), description && /* @__PURE__ */ React19__namespace.createElement(
|
|
472
|
-
chunkQMWZLGON_cjs.FieldDescription,
|
|
473
|
-
{
|
|
474
|
-
id: groupDescriptionId,
|
|
475
|
-
className: "leading-snug"
|
|
476
|
-
},
|
|
477
|
-
description
|
|
478
|
-
)), /* @__PURE__ */ React19__namespace.createElement(
|
|
473
|
+
return /* @__PURE__ */ React19__namespace.createElement("div", { className: chunkQMWZLGON_cjs.cn("w-full", className), "data-invalid": error || void 0 }, (label || description) && /* @__PURE__ */ React19__namespace.createElement("div", { className: "mb-3 space-y-1" }, label && /* @__PURE__ */ React19__namespace.createElement("div", { className: "text-base font-medium leading-none" }, label), description && /* @__PURE__ */ React19__namespace.createElement(chunkQMWZLGON_cjs.FieldDescription, { id: groupDescriptionId, className: "leading-snug" }, description)), /* @__PURE__ */ React19__namespace.createElement(
|
|
479
474
|
RadioGroup,
|
|
480
475
|
{
|
|
481
476
|
name,
|
|
@@ -485,9 +480,8 @@ function Radio({
|
|
|
485
480
|
disabled,
|
|
486
481
|
required,
|
|
487
482
|
className: chunkQMWZLGON_cjs.cn(
|
|
488
|
-
"gap-3",
|
|
489
|
-
layout === "
|
|
490
|
-
layout === "inline" && "flex flex-wrap"
|
|
483
|
+
layout === "grid" && "grid grid-cols-1 md:grid-cols-2 gap-3",
|
|
484
|
+
layout === "inline" && "flex flex-wrap gap-0"
|
|
491
485
|
),
|
|
492
486
|
"aria-invalid": error || props["aria-invalid"],
|
|
493
487
|
"aria-describedby": groupDescriptionId || props["aria-describedby"],
|
|
@@ -4082,5 +4076,5 @@ exports.Select = Select2;
|
|
|
4082
4076
|
exports.Switch = Switch2;
|
|
4083
4077
|
exports.TextArea = TextArea;
|
|
4084
4078
|
exports.TimePicker = TimePicker;
|
|
4085
|
-
//# sourceMappingURL=chunk-
|
|
4086
|
-
//# sourceMappingURL=chunk-
|
|
4079
|
+
//# sourceMappingURL=chunk-I4EKHIVF.cjs.map
|
|
4080
|
+
//# sourceMappingURL=chunk-I4EKHIVF.cjs.map
|