@immich/ui 0.24.2 → 0.24.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.
@@ -8,6 +8,7 @@
8
8
  import { tv } from 'tailwind-variants';
9
9
 
10
10
  let {
11
+ ref = $bindable(null),
11
12
  containerRef = $bindable(null),
12
13
  shape = 'semi-round',
13
14
  size = 'medium',
@@ -97,7 +98,7 @@
97
98
  <Text color="secondary" size="small" id={descriptionId}>{description}</Text>
98
99
  {/if}
99
100
 
100
- <div class={cleanClass('relative w-full', label && 'mt-1.5')}>
101
+ <div class="relative w-full">
101
102
  {#if leadingIcon}
102
103
  <div tabindex="-1" class={iconStyles({ size })}>
103
104
  {#if leadingIcon}
@@ -131,6 +132,7 @@
131
132
  }),
132
133
  className,
133
134
  )}
135
+ bind:this={ref}
134
136
  bind:value
135
137
  {...restProps}
136
138
  />
@@ -1,4 +1,4 @@
1
1
  import type { InputProps } from '../../types.js';
2
- declare const Input: import("svelte").Component<InputProps, {}, "value" | "containerRef">;
2
+ declare const Input: import("svelte").Component<InputProps, {}, "value" | "ref" | "containerRef">;
3
3
  type Input = ReturnType<typeof Input>;
4
4
  export default Input;
package/dist/types.d.ts CHANGED
@@ -100,6 +100,7 @@ export type FieldContext = {
100
100
  readOnly?: boolean;
101
101
  } & LabelProps;
102
102
  type BaseInputProps = {
103
+ ref?: HTMLInputElement | null;
103
104
  class?: string;
104
105
  value?: string;
105
106
  size?: Size;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@immich/ui",
3
- "version": "0.24.2",
3
+ "version": "0.24.4",
4
4
  "license": "GNU Affero General Public License version 3",
5
5
  "scripts": {
6
6
  "create": "node scripts/create.js",