@immich/ui 0.61.0 → 0.61.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.
@@ -20,7 +20,7 @@
20
20
 
21
21
  <div class={cleanClass('flex h-dvh flex-col overflow-hidden', className)}>
22
22
  {#if bar}
23
- <div class={cleanClass('h-control-bar-container px-2 pt-2', zIndex.AppShellBar, bar.class)}>
23
+ <div class={cleanClass('min-h-control-bar-container px-2 pt-2', zIndex.AppShellBar, bar.class)}>
24
24
  {@render bar.children?.()}
25
25
  </div>
26
26
  {:else if header}
@@ -12,7 +12,7 @@
12
12
  let { border = true, class: className, children }: Props = $props();
13
13
 
14
14
  const styles = tv({
15
- base: 'h-control-bar-container flex items-center gap-2',
15
+ base: 'min-h-control-bar-container flex items-center gap-2',
16
16
  variants: {
17
17
  border: {
18
18
  true: 'border-b',
@@ -14,14 +14,7 @@
14
14
  children: Snippet;
15
15
  } & HTMLAttributes<HTMLElement>;
16
16
 
17
- const {
18
- class: className,
19
- size = 'medium',
20
- variant = 'filled',
21
- color = 'primary',
22
- children,
23
- ...restProps
24
- }: Props = $props();
17
+ const { class: className, size, variant = 'filled', color = 'primary', children, ...restProps }: Props = $props();
25
18
 
26
19
  const styles = tv({
27
20
  base: 'font-monospace rounded-lg px-2 py-1',
@@ -11,7 +11,7 @@
11
11
  children?: Snippet;
12
12
  } & HTMLAttributes<HTMLElement>;
13
13
 
14
- const { class: className, size = 'small', children, ...restProps }: Props = $props();
14
+ const { class: className, size, children, ...restProps }: Props = $props();
15
15
 
16
16
  const styles = tv({
17
17
  base: 'bg-subtle rounded-md border border-b-2 px-1 py-0.5 font-mono shadow',
@@ -40,7 +40,7 @@
40
40
  base: 'flex items-center justify-center gap-1 rounded-md text-sm font-medium outline-offset-2 transition-colors focus-visible:outline-2',
41
41
  variants: {
42
42
  disabled: {
43
- true: 'disabled:pointer-events-none disabled:opacity-50 aria-disabled:opacity-50',
43
+ true: 'cursor-not-allowed disabled:opacity-50 aria-disabled:opacity-50',
44
44
  false: 'cursor-pointer',
45
45
  },
46
46
  shape: styleVariants.shape,
@@ -80,20 +80,20 @@
80
80
  filledColor: styleVariants.filledColor,
81
81
  filledColorHover: styleVariants.filledColorHover,
82
82
  outlineColor: {
83
- primary: 'border-primary bg-primary/10 text-primary hover:bg-primary/20 border',
84
- secondary: 'border-dark bg-light-100 text-dark hover:bg-light-200 border',
85
- success: 'border-success bg-success/10 text-success hover:bg-success/20 border',
86
- danger: 'border-danger bg-danger/10 text-danger hover:bg-danger/20 border',
87
- warning: 'border-warning bg-warning/10 text-warning hover:bg-warning/20 border',
88
- info: 'border-info bg-info/10 text-info hover:bg-info/20 border',
83
+ primary: 'border-primary bg-primary/10 text-primary not-disabled:hover:bg-primary/20 border',
84
+ secondary: 'border-dark bg-light-100 text-dark not-disabled:hover:bg-light-200 border',
85
+ success: 'border-success bg-success/10 text-success not-disabled:hover:bg-success/20 border',
86
+ danger: 'border-danger bg-danger/10 text-danger not-disabled:hover:bg-danger/20 border',
87
+ warning: 'border-warning bg-warning/10 text-warning not-disabled:hover:bg-warning/20 border',
88
+ info: 'border-info bg-info/10 text-info not-disabled:hover:bg-info/20 border',
89
89
  },
90
90
  ghostColor: {
91
- primary: 'text-primary hover:bg-primary-50',
92
- secondary: 'text-dark hover:bg-light-100',
93
- success: 'text-success hover:bg-success-50',
94
- danger: 'text-danger hover:bg-danger-50',
95
- warning: 'text-warning hover:bg-warning-50',
96
- info: 'text-info hover:bg-info-50',
91
+ primary: 'text-primary not-disabled:hover:bg-primary-50',
92
+ secondary: 'text-dark not-disabled:hover:bg-light-100',
93
+ success: 'text-success not-disabled:hover:bg-success-50',
94
+ danger: 'text-danger not-disabled:hover:bg-danger-50',
95
+ warning: 'text-warning not-disabled:hover:bg-warning-50',
96
+ info: 'text-info not-disabled:hover:bg-info-50',
97
97
  },
98
98
  },
99
99
  });
package/dist/styles.js CHANGED
@@ -55,12 +55,12 @@ export const styleVariants = {
55
55
  info: 'bg-info text-light',
56
56
  },
57
57
  filledColorHover: {
58
- primary: 'hover:bg-primary/80',
59
- secondary: 'hover:bg-dark/80',
60
- success: 'hover:bg-success/80',
61
- danger: 'hover:bg-danger/80',
62
- warning: 'hover:bg-warning/80',
63
- info: 'hover:bg-info/80',
58
+ primary: 'not-disabled:hover:bg-primary/80',
59
+ secondary: 'not-disabled:hover:bg-dark/80',
60
+ success: 'not-disabled:hover:bg-success/80',
61
+ danger: 'not-disabled:hover:bg-danger/80',
62
+ warning: 'not-disabled:hover:bg-warning/80',
63
+ info: 'not-disabled:hover:bg-info/80',
64
64
  },
65
65
  textSize: {
66
66
  tiny: 'text-xs',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@immich/ui",
3
- "version": "0.61.0",
3
+ "version": "0.61.2",
4
4
  "license": "GNU Affero General Public License version 3",
5
5
  "repository": {
6
6
  "type": "git",
@@ -55,7 +55,7 @@
55
55
  "svelte-highlight": "^7.8.4",
56
56
  "tailwind-merge": "^3.0.0",
57
57
  "tailwind-variants": "^3.0.0",
58
- "@immich/svelte-markdown-preprocess": "^0.1.0"
58
+ "@immich/svelte-markdown-preprocess": "^0.2.1"
59
59
  },
60
60
  "volta": {
61
61
  "node": "24.13.0"