@immich/ui 0.28.0 → 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}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@immich/ui",
3
- "version": "0.28.0",
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",