@immich/ui 0.22.1 → 0.22.3

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.
@@ -12,7 +12,7 @@
12
12
  ...buttonProps
13
13
  }: IconButtonProps = $props();
14
14
 
15
- const buttonTitle = title || ariaLabel;
15
+ const buttonTitle = $derived(title || ariaLabel);
16
16
  </script>
17
17
 
18
18
  <Button icon {...buttonProps} title={buttonTitle} aria-label={ariaLabel}>
@@ -65,6 +65,14 @@
65
65
  <Dialog.Portal>
66
66
  <Dialog.Overlay class="absolute start-0 top-0 flex h-dvh w-screen bg-black/30" />
67
67
  <Dialog.Content
68
+ onkeydown={(e) => {
69
+ if (e.key === 'Escape' && open) {
70
+ // Stop propagation to ensure modals close before immich-web takes over
71
+ e.stopPropagation();
72
+ open = false;
73
+ onClose?.();
74
+ }
75
+ }}
68
76
  class={cleanClass(
69
77
  'absolute start-0 top-0 flex h-dvh w-screen items-center justify-center overflow-hidden sm:p-4',
70
78
  )}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@immich/ui",
3
- "version": "0.22.1",
3
+ "version": "0.22.3",
4
4
  "license": "GNU Affero General Public License version 3",
5
5
  "scripts": {
6
6
  "create": "node scripts/create.js",
@@ -68,11 +68,11 @@
68
68
  },
69
69
  "dependencies": {
70
70
  "@mdi/js": "^7.4.47",
71
- "bits-ui": "^1.0.0-next.46",
71
+ "bits-ui": "^1.5.3",
72
72
  "tailwind-merge": "^2.5.4",
73
73
  "tailwind-variants": "^1.0.0"
74
74
  },
75
75
  "volta": {
76
- "node": "22.15.0"
76
+ "node": "22.15.1"
77
77
  }
78
78
  }