@immich/ui 0.14.1 → 0.14.2

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.
@@ -33,11 +33,11 @@
33
33
  shape="round"
34
34
  color={hidden ? 'primary' : 'secondary'}
35
35
  variant="filled"
36
- class="absolute bottom-2 right-4 z-[100] m-2 opacity-100 md:hidden"
36
+ class="absolute bottom-2 right-4 m-2 opacity-100 md:hidden"
37
37
  />
38
38
  <Scrollable
39
39
  class={cleanClass(
40
- 'z-[90] h-dvh w-full shrink-0 bg-light pb-16 text-dark md:relative md:block md:w-min md:pb-0',
40
+ 'h-dvh w-full shrink-0 bg-light pb-16 text-dark md:relative md:block md:w-min md:pb-0',
41
41
 
42
42
  hidden ? 'hidden' : '',
43
43
  className,
@@ -20,12 +20,14 @@
20
20
  open?: boolean;
21
21
  expandable?: boolean;
22
22
  children: Snippet;
23
+ onClose?: () => void;
23
24
  };
24
25
 
25
26
  let {
26
27
  title,
27
28
  size = 'medium',
28
29
  open = $bindable(true),
30
+ onClose,
29
31
  class: className,
30
32
  children,
31
33
  ...restProps
@@ -51,6 +53,8 @@
51
53
 
52
54
  const handleClose = () => {
53
55
  open = false;
56
+ onClose?.();
57
+ restProps?.onOpenChange?.(false);
54
58
  };
55
59
  </script>
56
60
 
@@ -12,5 +12,6 @@ declare const Modal: import("svelte").Component<{
12
12
  open?: boolean;
13
13
  expandable?: boolean;
14
14
  children: Snippet;
15
+ onClose?: () => void;
15
16
  }, {}, "open">;
16
17
  export default Modal;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@immich/ui",
3
- "version": "0.14.1",
3
+ "version": "0.14.2",
4
4
  "license": "GNU Affero General Public License version 3",
5
5
  "scripts": {
6
6
  "create": "node scripts/create.js",