@immich/ui 0.27.2 → 0.28.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.
@@ -13,6 +13,10 @@
13
13
  size,
14
14
  ...props
15
15
  }: PasswordInputProps = $props();
16
+
17
+ let labelValue = $derived(
18
+ isVisible ? t('hide_password', translations) : t('show_password', translations),
19
+ );
16
20
  </script>
17
21
 
18
22
  <Input bind:value {size} type={isVisible ? 'text' : 'password'} {color} {...props}>
@@ -26,8 +30,8 @@
26
30
  class="me-1"
27
31
  icon={isVisible ? mdiEyeOffOutline : mdiEyeOutline}
28
32
  onclick={() => (isVisible = !isVisible)}
29
- title={isVisible ? t('hide_password', translations) : t('show_password', translations)}
30
- aria-label={t('show_password', translations)}
33
+ title={labelValue}
34
+ aria-label={labelValue}
31
35
  />
32
36
  {/if}
33
37
  {/snippet}
@@ -32,33 +32,33 @@
32
32
  base: 'relative flex flex-col justify-center',
33
33
  variants: {
34
34
  disabled: {
35
- true: 'cursor-not-allowed',
35
+ true: 'cursor-not-allowed opacity-38',
36
36
  false: 'cursor-pointer',
37
37
  },
38
38
  },
39
39
  });
40
40
 
41
41
  const bar = tv({
42
- base: 'my-2 h-3 w-12 rounded-full border border-transparent',
42
+ base: 'h-8 w-13 rounded-full border border-2',
43
43
  variants: {
44
44
  fillColor: {
45
- default: 'bg-gray-300 dark:bg-gray-400',
46
- primary: 'bg-primary/50 dark:bg-primary',
47
- secondary: 'bg-dark/50',
48
- success: 'bg-success/50',
49
- danger: 'bg-danger/50',
50
- warning: 'bg-warning/50',
51
- info: 'bg-info/50',
45
+ default: 'border-gray-400 bg-gray-300 dark:border-gray-500 dark:bg-gray-400',
46
+ primary: 'bg-primary/50 dark:bg-primary border-transparent',
47
+ secondary: 'bg-dark/50 border-transparent',
48
+ success: 'bg-success/50 border-transparent',
49
+ danger: 'bg-danger/50 border-transparent',
50
+ warning: 'bg-warning/50 border-transparent',
51
+ info: 'bg-info/50 border-transparent',
52
52
  },
53
53
  },
54
54
  });
55
55
 
56
56
  const dot = tv({
57
- base: 'absolute h-6 w-6 rounded-full transition-transform duration-400',
57
+ base: 'absolute h-4 w-4 origin-center rounded-full transition-transform duration-100',
58
58
  variants: {
59
59
  checked: {
60
- true: 'translate-x-6 border border-gray-500/10 shadow-sm rtl:-translate-x-6 dark:border-gray-800/50',
61
- false: '',
60
+ true: 'translate-x-7 scale-150 rtl:-translate-x-7',
61
+ false: 'translate-x-2 rtl:-translate-x-2',
62
62
  },
63
63
  fillColor: {
64
64
  default: 'bg-gray-400 dark:bg-gray-500',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@immich/ui",
3
- "version": "0.27.2",
3
+ "version": "0.28.1",
4
4
  "license": "GNU Affero General Public License version 3",
5
5
  "scripts": {
6
6
  "create": "node scripts/create.js",