@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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douglasneuroinformatics/libui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.9.0",
|
|
5
5
|
"packageManager": "pnpm@10.7.1",
|
|
6
6
|
"description": "Generic UI components for DNP projects, built using React and Tailwind CSS",
|
|
7
7
|
"author": "Joshua Unrau",
|
|
@@ -13,6 +13,7 @@ export type BooleanFieldCheckboxProps = Simplify<
|
|
|
13
13
|
>;
|
|
14
14
|
|
|
15
15
|
export const BooleanFieldCheckbox = ({
|
|
16
|
+
description,
|
|
16
17
|
disabled,
|
|
17
18
|
error,
|
|
18
19
|
label,
|
|
@@ -36,6 +37,7 @@ export const BooleanFieldCheckbox = ({
|
|
|
36
37
|
}}
|
|
37
38
|
/>
|
|
38
39
|
<Label htmlFor={name}>{label}</Label>
|
|
40
|
+
<FieldGroup.Description description={description} />
|
|
39
41
|
</FieldGroup.Row>
|
|
40
42
|
<FieldGroup.Error error={error} />
|
|
41
43
|
</FieldGroup>
|
|
@@ -24,6 +24,7 @@ export type BooleanFieldRadioProps = Simplify<
|
|
|
24
24
|
>;
|
|
25
25
|
|
|
26
26
|
export const BooleanFieldRadio = ({
|
|
27
|
+
description,
|
|
27
28
|
disabled,
|
|
28
29
|
error,
|
|
29
30
|
label,
|
|
@@ -55,11 +56,12 @@ export const BooleanFieldRadio = ({
|
|
|
55
56
|
value={stringifyBoolean(value)}
|
|
56
57
|
onValueChange={handleValueChange}
|
|
57
58
|
>
|
|
59
|
+
<FieldGroup.Description description={description} />
|
|
58
60
|
<FieldGroup.Row>
|
|
59
61
|
<RadioGroup.Item id={`${name}-true`} value="true" />
|
|
60
62
|
<Label
|
|
61
63
|
aria-disabled={disabled || readOnly}
|
|
62
|
-
className="
|
|
64
|
+
className="text-muted-foreground font-normal"
|
|
63
65
|
htmlFor={`${name}-true`}
|
|
64
66
|
>
|
|
65
67
|
{options?.true ?? t('form.radioLabels.true')}
|
|
@@ -69,7 +71,7 @@ export const BooleanFieldRadio = ({
|
|
|
69
71
|
<RadioGroup.Item id={`${name}-false`} value="false" />
|
|
70
72
|
<Label
|
|
71
73
|
aria-disabled={disabled || readOnly}
|
|
72
|
-
className="
|
|
74
|
+
className="text-muted-foreground font-normal"
|
|
73
75
|
htmlFor={`${name}-false`}
|
|
74
76
|
>
|
|
75
77
|
{options?.false ?? t('form.radioLabels.false')}
|