@douglasneuroinformatics/libui 3.1.0 → 3.1.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.
- package/dist/components.js +2 -2
- package/dist/components.js.map +1 -1
- package/dist/douglasneuroinformatics-libui-3.1.1.tgz +0 -0
- package/package.json +1 -1
- package/src/components/Form/NumberField/NumberFieldSelect.tsx +1 -1
- package/src/components/Form/StringField/StringFieldSelect.tsx +1 -1
- package/dist/douglasneuroinformatics-libui-3.1.0.tgz +0 -0
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douglasneuroinformatics/libui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.1.
|
|
4
|
+
"version": "3.1.1",
|
|
5
5
|
"packageManager": "pnpm@9.3.0",
|
|
6
6
|
"description": "Generic UI components for DNP projects, built using React and Tailwind CSS",
|
|
7
7
|
"author": "Joshua Unrau",
|
|
@@ -42,7 +42,7 @@ export const NumberFieldSelect = <T extends number = number>({
|
|
|
42
42
|
// Option needs to be type number (this was a design flaw), but is actually always coerced to string anyways
|
|
43
43
|
const text = (disableAutoPrefix ? '' : `${option} - `) + options[option as any as T];
|
|
44
44
|
return (
|
|
45
|
-
<Select.Item key={option} value={option}>
|
|
45
|
+
<Select.Item data-cy={`${name}-select-item`} key={option} value={option}>
|
|
46
46
|
{text}
|
|
47
47
|
</Select.Item>
|
|
48
48
|
);
|
|
@@ -38,7 +38,7 @@ export const StringFieldSelect = <T extends string = string>({
|
|
|
38
38
|
</Select.Trigger>
|
|
39
39
|
<Select.Content data-cy={`${name}-select-content`} data-testid={`${name}-select-content`}>
|
|
40
40
|
{Object.keys(options).map((option) => (
|
|
41
|
-
<Select.Item key={option} value={option}>
|
|
41
|
+
<Select.Item data-cy={`${name}-select-item`} key={option} value={option}>
|
|
42
42
|
{options[option as T]}
|
|
43
43
|
</Select.Item>
|
|
44
44
|
))}
|
|
Binary file
|