@douglasneuroinformatics/libui 4.8.3 → 4.9.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.
package/dist/components.js
CHANGED
|
@@ -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,
|
|
@@ -2979,13 +2982,14 @@ var BooleanFieldRadio = ({
|
|
|
2979
2982
|
value: stringifyBoolean(value),
|
|
2980
2983
|
onValueChange: handleValueChange,
|
|
2981
2984
|
children: [
|
|
2985
|
+
/* @__PURE__ */ jsx114(FieldGroup.Description, { description }),
|
|
2982
2986
|
/* @__PURE__ */ jsxs39(FieldGroup.Row, { children: [
|
|
2983
2987
|
/* @__PURE__ */ jsx114(RadioGroup4.Item, { id: `${name}-true`, value: "true" }),
|
|
2984
2988
|
/* @__PURE__ */ jsx114(
|
|
2985
2989
|
Label3,
|
|
2986
2990
|
{
|
|
2987
2991
|
"aria-disabled": disabled || readOnly,
|
|
2988
|
-
className: "
|
|
2992
|
+
className: "text-muted-foreground font-normal",
|
|
2989
2993
|
htmlFor: `${name}-true`,
|
|
2990
2994
|
children: options?.true ?? t("form.radioLabels.true")
|
|
2991
2995
|
}
|
|
@@ -2997,7 +3001,7 @@ var BooleanFieldRadio = ({
|
|
|
2997
3001
|
Label3,
|
|
2998
3002
|
{
|
|
2999
3003
|
"aria-disabled": disabled || readOnly,
|
|
3000
|
-
className: "
|
|
3004
|
+
className: "text-muted-foreground font-normal",
|
|
3001
3005
|
htmlFor: `${name}-false`,
|
|
3002
3006
|
children: options?.false ?? t("form.radioLabels.false")
|
|
3003
3007
|
}
|