@douglasneuroinformatics/libui 2.0.0 → 2.0.2
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/index.js
CHANGED
|
@@ -97,7 +97,7 @@ var buttonVariants = cva(
|
|
|
97
97
|
},
|
|
98
98
|
variants: {
|
|
99
99
|
size: {
|
|
100
|
-
icon: "p-1.5",
|
|
100
|
+
icon: "p-1.5 aspect-square",
|
|
101
101
|
lg: "h-10 rounded-md px-8",
|
|
102
102
|
md: "h-9 px-4 py-2",
|
|
103
103
|
sm: "h-8 rounded-md px-3 text-xs"
|
|
@@ -1857,6 +1857,7 @@ var DateField = ({ error, label, name, setValue, value }) => {
|
|
|
1857
1857
|
autoComplete: "off",
|
|
1858
1858
|
"data-cy": "date-input",
|
|
1859
1859
|
"data-testid": "date-input",
|
|
1860
|
+
name,
|
|
1860
1861
|
placeholder: "YYYY-MM-DD",
|
|
1861
1862
|
type: "text",
|
|
1862
1863
|
value: inputValue,
|
|
@@ -2232,8 +2233,8 @@ var StringFieldSelect = ({
|
|
|
2232
2233
|
/* @__PURE__ */ jsx108(FieldGroup.Description, { description })
|
|
2233
2234
|
] }),
|
|
2234
2235
|
/* @__PURE__ */ jsxs36(Select, { name, value: value ?? "", onValueChange: (value2) => setValue(value2), children: [
|
|
2235
|
-
/* @__PURE__ */ jsx108(Select.Trigger, { children: /* @__PURE__ */ jsx108(Select.Value, {}) }),
|
|
2236
|
-
/* @__PURE__ */ jsx108(Select.Content, { children: Object.keys(options).map((option) => /* @__PURE__ */ jsx108(Select.Item, { value: option, children: options[option] }, option)) })
|
|
2236
|
+
/* @__PURE__ */ jsx108(Select.Trigger, { "data-cy": `${name}-select-trigger`, "data-testid": `${name}-select-trigger`, children: /* @__PURE__ */ jsx108(Select.Value, {}) }),
|
|
2237
|
+
/* @__PURE__ */ jsx108(Select.Content, { "data-cy": `${name}-select-content`, "data-testid": `${name}-select-content`, children: Object.keys(options).map((option) => /* @__PURE__ */ jsx108(Select.Item, { value: option, children: options[option] }, option)) })
|
|
2237
2238
|
] }),
|
|
2238
2239
|
/* @__PURE__ */ jsx108(FieldGroup.Error, { error })
|
|
2239
2240
|
] });
|