@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.
@@ -296,9 +296,9 @@ function Checkbox2({
296
296
  }
297
297
  ));
298
298
  if (!label) {
299
- return /* @__PURE__ */ React21__namespace.createElement(chunkQQSBW6N3_cjs.Field, { className }, checkbox);
299
+ return /* @__PURE__ */ React21__namespace.createElement("div", { className }, checkbox);
300
300
  }
301
- return /* @__PURE__ */ React21__namespace.createElement(chunkQQSBW6N3_cjs.Field, { className: "gap-0", invalid: Boolean(error) }, /* @__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(chunkQQSBW6N3_cjs.Field, { className: "flex-1 gap-1" }, /* @__PURE__ */ React21__namespace.createElement("span", { className: "text-sm font-medium leading-none" }, label), description && /* @__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(chunkQQSBW6N3_cjs.Field, { className: chunkQQSBW6N3_cjs.cn("w-full", className), invalid: Boolean(error) }, (label || description) && /* @__PURE__ */ React21__namespace.createElement(chunkQQSBW6N3_cjs.Field, { className: "mb-3 gap-1" }, label && /* @__PURE__ */ React21__namespace.createElement("div", { className: "text-base font-medium leading-none" }, label), description && /* @__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
- chunkQQSBW6N3_cjs.Field,
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(chunkQQSBW6N3_cjs.Field, { className: "flex-1 gap-1" }, /* @__PURE__ */ React21__namespace.createElement("span", { className: "text-sm font-medium leading-none" }, option.label), option.description && /* @__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-WVSLOSNU.cjs.map
4169
- //# sourceMappingURL=chunk-WVSLOSNU.cjs.map
4167
+ //# sourceMappingURL=chunk-FIDKDYT7.cjs.map
4168
+ //# sourceMappingURL=chunk-FIDKDYT7.cjs.map