ui-ingredients 0.0.38 → 0.0.39

Sign up to get free protection for your applications and to get access to all the features.
@@ -39,7 +39,6 @@ export function createCombobox(props) {
39
39
  const o = combobox.connect(state, send, normalizeProps);
40
40
  return {
41
41
  ...o,
42
- collection,
43
42
  getInputProps() {
44
43
  return {
45
44
  'aria-describedby': field?.['aria-describedby'],
@@ -13,22 +13,25 @@
13
13
 
14
14
  <script lang="ts">
15
15
  import {mergeProps} from '../merge-props.js';
16
+ import {reflect} from '@zag-js/svelte';
16
17
  import {createSplitProps} from '@zag-js/utils';
17
18
  import {setFieldContext} from './context.svelte.js';
18
19
  import {createField} from './create-field.svelte.js';
19
20
 
20
21
  let {asChild, children, ...props}: FieldProps = $props();
21
22
 
22
- let [fieldProps, otherProps] = createSplitProps<CreateFieldProps>([
23
- 'id',
24
- 'ids',
25
- 'invalid',
26
- 'disabled',
27
- 'readOnly',
28
- 'required',
29
- ])(props);
30
-
31
- let field = createField(fieldProps);
23
+ let [fieldProps, otherProps] = $derived(
24
+ createSplitProps<CreateFieldProps>([
25
+ 'id',
26
+ 'ids',
27
+ 'invalid',
28
+ 'disabled',
29
+ 'readOnly',
30
+ 'required',
31
+ ])(props),
32
+ );
33
+
34
+ let field = createField(reflect(() => fieldProps));
32
35
 
33
36
  let mergedProps = $derived(mergeProps(otherProps, field.getRootProps()));
34
37
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ui-ingredients",
3
3
  "type": "module",
4
- "version": "0.0.38",
4
+ "version": "0.0.39",
5
5
  "packageManager": "pnpm@9.7.0",
6
6
  "svelte": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -147,6 +147,8 @@
147
147
  "release-it": "17.6.0",
148
148
  "svelte": "5.0.0-next.241",
149
149
  "svelte-check": "3.8.6",
150
+ "tailwind-merge": "2.5.2",
151
+ "tailwind-variants": "0.2.1",
150
152
  "tailwindcss": "3.4.10",
151
153
  "typescript": "5.5.4",
152
154
  "vite": "5.4.2",