@page-speed/forms 0.6.8 → 0.7.0

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.
@@ -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 gap-3 grid grid-cols-1 border-0 m-0 p-0 min-w-0",
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 === "grid" && "grid grid-cols-1 md:grid-cols-2",
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-UQ6JPOBF.cjs.map
4086
- //# sourceMappingURL=chunk-UQ6JPOBF.cjs.map
4079
+ //# sourceMappingURL=chunk-I4EKHIVF.cjs.map
4080
+ //# sourceMappingURL=chunk-I4EKHIVF.cjs.map