@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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@douglasneuroinformatics/libui",
3
3
  "type": "module",
4
- "version": "3.6.2",
4
+ "version": "3.6.4",
5
5
  "packageManager": "pnpm@9.12.1",
6
6
  "description": "Generic UI components for DNP projects, built using React and Tailwind CSS",
7
7
  "author": "Joshua Unrau",
@@ -60,8 +60,15 @@ export const FileDropzone = ({
60
60
  });
61
61
 
62
62
  return (
63
- <div className={cn('border border-dashed p-4', className)} data-testid="dropzone" {...getRootProps()}>
64
- <div className="flex flex-col items-center gap-3">
63
+ <div
64
+ className={cn(
65
+ 'flex flex-col items-center justify-center rounded-md border border-dashed border-slate-400 p-4 dark:border-slate-600',
66
+ className
67
+ )}
68
+ data-testid="dropzone"
69
+ {...getRootProps()}
70
+ >
71
+ <div className="flex flex-col items-center justify-center gap-3">
65
72
  <UploadIcon style={{ height: 24, strokeWidth: 2, width: 24 }} />
66
73
  <div className="flex flex-col items-center gap-1 text-center">
67
74
  <h3 className="text-lg font-semibold tracking-tight" data-testid="dropzone-title">
@@ -64,9 +64,9 @@ export const StringFieldPassword = ({
64
64
  </FieldGroup.Row>
65
65
  {strength !== null && (
66
66
  <motion.div
67
- animate={{ width: `${Math.max(strength, value?.length ? 1 : 0) * 25}%` }}
67
+ animate={{ width: `${Math.max(strength * 25, 5)}%` }}
68
68
  className="h-1 w-full overflow-hidden rounded"
69
- initial={{ width: '0%' }}
69
+ initial={{ width: '5%' }}
70
70
  transition={{ duration: 0.5 }}
71
71
  >
72
72
  <div