@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.
@@ -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("div", { className: cn("border border-dashed p-4", className), "data-testid": "dropzone", ...getRootProps(), children: [
2048
- /* @__PURE__ */ jsxs25("div", { className: "flex flex-col items-center gap-3", children: [
2049
- /* @__PURE__ */ jsx92(UploadIcon, { style: { height: 24, strokeWidth: 2, width: 24 } }),
2050
- /* @__PURE__ */ jsxs25("div", { className: "flex flex-col items-center gap-1 text-center", children: [
2051
- /* @__PURE__ */ jsx92("h3", { className: "text-lg font-semibold tracking-tight", "data-testid": "dropzone-title", children: file ? file.name : isDragActive ? dragActiveTitle : dragInactiveTitle }),
2052
- description && /* @__PURE__ */ jsx92("p", { className: "text-sm text-muted-foreground", children: description })
2053
- ] })
2054
- ] }),
2055
- /* @__PURE__ */ jsx92("input", { ...getInputProps() })
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, value?.length ? 1 : 0) * 25}%` },
3025
+ animate: { width: `${Math.max(strength * 25, 5)}%` },
3015
3026
  className: "h-1 w-full overflow-hidden rounded",
3016
- initial: { width: "0%" },
3027
+ initial: { width: "5%" },
3017
3028
  transition: { duration: 0.5 },
3018
3029
  children: /* @__PURE__ */ jsx125(
3019
3030
  "div",