@immich/ui 0.61.3 → 0.61.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.
@@ -2,7 +2,6 @@
2
2
  import { zIndex } from '../../constants.js';
3
3
  import { Tooltip } from 'bits-ui';
4
4
  import type { Snippet } from 'svelte';
5
- import { fly } from 'svelte/transition';
6
5
 
7
6
  type Props = Tooltip.RootProps & {
8
7
  text?: string | null;
@@ -18,21 +17,30 @@
18
17
  <Tooltip.Portal>
19
18
  <Tooltip.Content
20
19
  sideOffset={8}
21
- forceMount
22
- class="bg-light-800 text-light {zIndex.Tooltip} rounded-lg px-3.5 py-2 text-xs shadow-lg"
20
+ class="tooltip-content bg-light-800 text-light {zIndex.Tooltip} rounded-lg px-3.5 py-2 text-xs shadow-lg"
23
21
  >
24
- {#snippet child({ wrapperProps, props, open })}
25
- {#if open}
26
- <div {...wrapperProps}>
27
- <div {...props} transition:fly={{ y: 4, duration: 150 }}>
28
- {text}
29
- </div>
30
- </div>
31
- {/if}
32
- {/snippet}
22
+ {text}
33
23
  </Tooltip.Content>
34
24
  </Tooltip.Portal>
35
25
  </Tooltip.Root>
36
26
  {:else}
37
27
  {@render child({ props: {} })}
38
28
  {/if}
29
+
30
+ <style>
31
+ :global(.tooltip-content[data-state='delayed-open']),
32
+ :global(.tooltip-content[data-state='instant-open']) {
33
+ animation: tooltip-enter 150ms ease-out;
34
+ }
35
+
36
+ @keyframes tooltip-enter {
37
+ from {
38
+ opacity: 0;
39
+ transform: translateY(4px);
40
+ }
41
+ to {
42
+ opacity: 1;
43
+ transform: translateY(0);
44
+ }
45
+ }
46
+ </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@immich/ui",
3
- "version": "0.61.3",
3
+ "version": "0.61.4",
4
4
  "license": "GNU Affero General Public License version 3",
5
5
  "repository": {
6
6
  "type": "git",