@douglasneuroinformatics/libui 3.6.2 → 3.6.4
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 +23 -12
- package/dist/components.js.map +1 -1
- package/dist/douglasneuroinformatics-libui-3.6.4.tgz +0 -0
- package/package.json +1 -1
- package/src/components/FileDropzone/FileDropzone.tsx +9 -2
- package/src/components/Form/StringField/StringFieldPassword.tsx +2 -2
- package/dist/douglasneuroinformatics-libui-3.6.2.tgz +0 -0
package/dist/components.js
CHANGED
|
@@ -2044,16 +2044,27 @@ var FileDropzone = ({
|
|
|
2044
2044
|
en: "Drag and drop files or click on box to upload",
|
|
2045
2045
|
fr: "Glissez-d\xE9posez les fichiers ou cliquez sur la case pour les t\xE9l\xE9charger"
|
|
2046
2046
|
});
|
|
2047
|
-
return /* @__PURE__ */ jsxs25(
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2047
|
+
return /* @__PURE__ */ jsxs25(
|
|
2048
|
+
"div",
|
|
2049
|
+
{
|
|
2050
|
+
className: cn(
|
|
2051
|
+
"flex flex-col items-center justify-center rounded-md border border-dashed border-slate-400 p-4 dark:border-slate-600",
|
|
2052
|
+
className
|
|
2053
|
+
),
|
|
2054
|
+
"data-testid": "dropzone",
|
|
2055
|
+
...getRootProps(),
|
|
2056
|
+
children: [
|
|
2057
|
+
/* @__PURE__ */ jsxs25("div", { className: "flex flex-col items-center justify-center gap-3", children: [
|
|
2058
|
+
/* @__PURE__ */ jsx92(UploadIcon, { style: { height: 24, strokeWidth: 2, width: 24 } }),
|
|
2059
|
+
/* @__PURE__ */ jsxs25("div", { className: "flex flex-col items-center gap-1 text-center", children: [
|
|
2060
|
+
/* @__PURE__ */ jsx92("h3", { className: "text-lg font-semibold tracking-tight", "data-testid": "dropzone-title", children: file ? file.name : isDragActive ? dragActiveTitle : dragInactiveTitle }),
|
|
2061
|
+
description && /* @__PURE__ */ jsx92("p", { className: "text-sm text-muted-foreground", children: description })
|
|
2062
|
+
] })
|
|
2063
|
+
] }),
|
|
2064
|
+
/* @__PURE__ */ jsx92("input", { ...getInputProps() })
|
|
2065
|
+
]
|
|
2066
|
+
}
|
|
2067
|
+
);
|
|
2057
2068
|
};
|
|
2058
2069
|
|
|
2059
2070
|
// src/components/Form/Form.tsx
|
|
@@ -3011,9 +3022,9 @@ var StringFieldPassword = ({
|
|
|
3011
3022
|
strength !== null && /* @__PURE__ */ jsx125(
|
|
3012
3023
|
motion4.div,
|
|
3013
3024
|
{
|
|
3014
|
-
animate: { width: `${Math.max(strength
|
|
3025
|
+
animate: { width: `${Math.max(strength * 25, 5)}%` },
|
|
3015
3026
|
className: "h-1 w-full overflow-hidden rounded",
|
|
3016
|
-
initial: { width: "
|
|
3027
|
+
initial: { width: "5%" },
|
|
3017
3028
|
transition: { duration: 0.5 },
|
|
3018
3029
|
children: /* @__PURE__ */ jsx125(
|
|
3019
3030
|
"div",
|