@immich/ui 0.60.1 → 0.60.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.
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import type { ActionBarProps } from '../../types.js';
|
|
7
7
|
import { isEnabled } from '../../utilities/common.js';
|
|
8
8
|
|
|
9
|
-
const { actions, overflowActions = [], children, ...restProps }: ActionBarProps = $props();
|
|
9
|
+
const { actions = [], overflowActions = [], children, ...restProps }: ActionBarProps = $props();
|
|
10
10
|
|
|
11
11
|
const items = $derived(overflowActions.filter((action) => isEnabled(action)));
|
|
12
12
|
</script>
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
closeIcon,
|
|
16
16
|
class: className,
|
|
17
17
|
shape = 'semi-round',
|
|
18
|
-
variant = '
|
|
18
|
+
variant = 'filled',
|
|
19
19
|
closeOnEsc = true,
|
|
20
20
|
static: isStatic = false,
|
|
21
21
|
translations,
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
base: `h-control-bar flex w-full items-center gap-2 px-2`,
|
|
29
29
|
variants: {
|
|
30
30
|
variant: {
|
|
31
|
-
filled: '
|
|
31
|
+
filled: 'bg-subtle',
|
|
32
32
|
outline: 'dark:border-light-200 shadow-md dark:border',
|
|
33
33
|
ghost: '',
|
|
34
34
|
},
|
package/dist/types.d.ts
CHANGED
|
@@ -317,7 +317,7 @@ export type ControlBarProps = {
|
|
|
317
317
|
static?: boolean;
|
|
318
318
|
} & HTMLAttributes<HTMLElement>;
|
|
319
319
|
export type ActionBarProps = ControlBarProps & {
|
|
320
|
-
actions
|
|
320
|
+
actions?: ActionItem[];
|
|
321
321
|
overflowActions?: ActionItem[];
|
|
322
322
|
};
|
|
323
323
|
export type ContextType = {
|