@douglasneuroinformatics/libui 4.8.3 → 4.9.1

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.
@@ -2917,6 +2917,7 @@ import { match as match4 } from "ts-pattern";
2917
2917
  // src/components/Form/BooleanField/BooleanFieldCheckbox.tsx
2918
2918
  import { jsx as jsx113, jsxs as jsxs38 } from "react/jsx-runtime";
2919
2919
  var BooleanFieldCheckbox = ({
2920
+ description,
2920
2921
  disabled,
2921
2922
  error,
2922
2923
  label,
@@ -2941,7 +2942,8 @@ var BooleanFieldCheckbox = ({
2941
2942
  }
2942
2943
  }
2943
2944
  ),
2944
- /* @__PURE__ */ jsx113(Label3, { htmlFor: name, children: label })
2945
+ /* @__PURE__ */ jsx113(Label3, { htmlFor: name, children: label }),
2946
+ /* @__PURE__ */ jsx113(FieldGroup.Description, { description })
2945
2947
  ] }),
2946
2948
  /* @__PURE__ */ jsx113(FieldGroup.Error, { error })
2947
2949
  ] });
@@ -2953,6 +2955,7 @@ import { match as match3 } from "ts-pattern";
2953
2955
  import { jsx as jsx114, jsxs as jsxs39 } from "react/jsx-runtime";
2954
2956
  var stringifyBoolean = (value) => match3(value).with(void 0, () => "").with(true, () => "true").with(false, () => "false").exhaustive();
2955
2957
  var BooleanFieldRadio = ({
2958
+ description,
2956
2959
  disabled,
2957
2960
  error,
2958
2961
  label,
@@ -2970,7 +2973,10 @@ var BooleanFieldRadio = ({
2970
2973
  [match3, setValue]
2971
2974
  );
2972
2975
  return /* @__PURE__ */ jsxs39(FieldGroup, { name, children: [
2973
- /* @__PURE__ */ jsx114(Label3, { children: label }),
2976
+ /* @__PURE__ */ jsxs39(FieldGroup.Row, { children: [
2977
+ /* @__PURE__ */ jsx114(Label3, { children: label }),
2978
+ /* @__PURE__ */ jsx114(FieldGroup.Description, { description })
2979
+ ] }),
2974
2980
  /* @__PURE__ */ jsxs39(
2975
2981
  RadioGroup4,
2976
2982
  {
@@ -2981,27 +2987,11 @@ var BooleanFieldRadio = ({
2981
2987
  children: [
2982
2988
  /* @__PURE__ */ jsxs39(FieldGroup.Row, { children: [
2983
2989
  /* @__PURE__ */ jsx114(RadioGroup4.Item, { id: `${name}-true`, value: "true" }),
2984
- /* @__PURE__ */ jsx114(
2985
- Label3,
2986
- {
2987
- "aria-disabled": disabled || readOnly,
2988
- className: "font-normal text-muted-foreground",
2989
- htmlFor: `${name}-true`,
2990
- children: options?.true ?? t("form.radioLabels.true")
2991
- }
2992
- )
2990
+ /* @__PURE__ */ jsx114(Label3, { "aria-disabled": disabled || readOnly, className: "text-muted-foreground", htmlFor: `${name}-true`, children: options?.true ?? t("form.radioLabels.true") })
2993
2991
  ] }),
2994
2992
  /* @__PURE__ */ jsxs39(FieldGroup.Row, { children: [
2995
2993
  /* @__PURE__ */ jsx114(RadioGroup4.Item, { id: `${name}-false`, value: "false" }),
2996
- /* @__PURE__ */ jsx114(
2997
- Label3,
2998
- {
2999
- "aria-disabled": disabled || readOnly,
3000
- className: "font-normal text-muted-foreground",
3001
- htmlFor: `${name}-false`,
3002
- children: options?.false ?? t("form.radioLabels.false")
3003
- }
3004
- )
2994
+ /* @__PURE__ */ jsx114(Label3, { "aria-disabled": disabled || readOnly, className: "text-muted-foreground", htmlFor: `${name}-false`, children: options?.false ?? t("form.radioLabels.false") })
3005
2995
  ] })
3006
2996
  ]
3007
2997
  }