ui-ingredients 0.0.18 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/collapsible/create-collapsible.svelte.d.ts +1 -0
- package/dist/collapsible/create-collapsible.svelte.js +1 -0
- package/dist/collapsible/root.svelte +2 -0
- package/dist/combobox/create-combobox.svelte.d.ts +1 -0
- package/dist/combobox/create-combobox.svelte.js +1 -0
- package/dist/combobox/root.svelte +2 -0
- package/dist/dialog/create-dialog.svelte.d.ts +1 -0
- package/dist/dialog/create-dialog.svelte.js +1 -0
- package/dist/editable/create-editable.svelte.d.ts +1 -0
- package/dist/editable/create-editable.svelte.js +1 -0
- package/dist/hover-card/create-hover-card.svelte.d.ts +1 -0
- package/dist/hover-card/create-hover-card.svelte.js +1 -0
- package/dist/menu/create-menu.svelte.d.ts +1 -0
- package/dist/menu/create-menu.svelte.js +1 -0
- package/dist/menu/option-item.svelte +5 -8
- package/dist/popover/create-popover.svelte.d.ts +1 -0
- package/dist/popover/create-popover.svelte.js +1 -0
- package/dist/select/create-select.svelte.d.ts +1 -0
- package/dist/select/create-select.svelte.js +1 -0
- package/dist/select/root.svelte +2 -0
- package/dist/tooltip/create-tooltip.svelte.d.ts +1 -0
- package/dist/tooltip/create-tooltip.svelte.js +1 -0
- package/dist/types.d.ts +2 -4
- package/package.json +2 -2
@@ -1,6 +1,7 @@
|
|
1
1
|
import * as collapsible from '@zag-js/collapsible';
|
2
2
|
export interface CreateCollapsibleProps extends Omit<collapsible.Context, 'id' | 'dir' | 'getRootNode' | 'open.controlled'> {
|
3
3
|
id?: string | null;
|
4
|
+
defaultOpen?: boolean;
|
4
5
|
}
|
5
6
|
export interface CreateCollapsibleReturn extends collapsible.Api {
|
6
7
|
}
|
@@ -5,6 +5,7 @@ export interface CreateComboboxProps<T> extends Omit<combobox.Context, 'id' | 'd
|
|
5
5
|
itemToString?: (item: T) => string;
|
6
6
|
itemToValue?: (item: T) => string;
|
7
7
|
isItemDisabled?: (item: T) => boolean;
|
8
|
+
defaultOpen?: boolean;
|
8
9
|
}
|
9
10
|
export interface CreateComboboxReturn extends combobox.Api {
|
10
11
|
}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import * as dialog from '@zag-js/dialog';
|
2
2
|
export interface CreateDialogProps extends Omit<dialog.Context, 'id' | 'dir' | 'getRootNode' | 'open.controlled'> {
|
3
3
|
id?: string | null;
|
4
|
+
defaultOpen?: boolean;
|
4
5
|
}
|
5
6
|
export interface CreateDialogReturn extends dialog.Api {
|
6
7
|
}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import * as editable from '@zag-js/editable';
|
2
2
|
export interface CreateEditableProps extends Omit<editable.Context, 'id' | 'dir' | 'getRootNode' | 'edit.controlled'> {
|
3
3
|
id?: string | null;
|
4
|
+
defaultEdit?: boolean;
|
4
5
|
}
|
5
6
|
export interface CreateEditableReturn extends editable.Api {
|
6
7
|
}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import * as hoverCard from '@zag-js/hover-card';
|
2
2
|
export interface CreateHoverCardProps extends Omit<hoverCard.Context, 'id' | 'dir' | 'getRootNode' | 'open.controlled'> {
|
3
3
|
id?: string | null;
|
4
|
+
defaultOpen?: boolean;
|
4
5
|
}
|
5
6
|
export interface CreateHoverCardReturn extends hoverCard.Api {
|
6
7
|
}
|
@@ -1,13 +1,10 @@
|
|
1
1
|
<script lang="ts" module>
|
2
|
-
import type {Assign, HtmlProps
|
2
|
+
import type {Assign, HtmlProps} from '../types.js';
|
3
3
|
import type {OptionItemProps, OptionItemState} from '@zag-js/menu';
|
4
4
|
import type {Snippet} from 'svelte';
|
5
5
|
|
6
6
|
export interface MenuOptionItemProps
|
7
|
-
extends Assign<
|
8
|
-
Omit<HtmlProps<'div'>, 'children'>,
|
9
|
-
PickPartial<OptionItemProps, 'type' | 'checked'>
|
10
|
-
> {
|
7
|
+
extends Assign<Omit<HtmlProps<'div'>, 'children'>, OptionItemProps> {
|
11
8
|
children?: Snippet<[state: OptionItemState]>;
|
12
9
|
}
|
13
10
|
</script>
|
@@ -17,9 +14,9 @@
|
|
17
14
|
import {menuContext, menuOptionItemPropsContext} from './context.svelte.js';
|
18
15
|
|
19
16
|
let {
|
20
|
-
type
|
17
|
+
type,
|
21
18
|
value,
|
22
|
-
checked
|
19
|
+
checked,
|
23
20
|
disabled,
|
24
21
|
valueText,
|
25
22
|
closeOnSelect,
|
@@ -30,7 +27,7 @@
|
|
30
27
|
|
31
28
|
let context = menuContext.get();
|
32
29
|
|
33
|
-
let itemProps = $derived({
|
30
|
+
let itemProps: OptionItemProps = $derived({
|
34
31
|
type,
|
35
32
|
value,
|
36
33
|
checked,
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import * as popover from '@zag-js/popover';
|
2
2
|
export interface CreatePopoverProps extends Omit<popover.Context, 'id' | 'dir' | 'getRootNode' | 'open.controlled'> {
|
3
3
|
id?: string | null;
|
4
|
+
defaultOpen?: boolean;
|
4
5
|
}
|
5
6
|
export interface CreatePopoverReturn extends popover.Api {
|
6
7
|
}
|
@@ -5,6 +5,7 @@ export interface CreateSelectProps<T> extends Omit<select.Context, 'id' | 'dir'
|
|
5
5
|
itemToString?: (item: T) => string;
|
6
6
|
itemToValue?: (item: T) => string;
|
7
7
|
isItemDisabled?: (item: T) => boolean;
|
8
|
+
defaultOpen?: boolean;
|
8
9
|
}
|
9
10
|
export interface CreateSelectReturn extends select.Api {
|
10
11
|
}
|
package/dist/select/root.svelte
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import * as tooltip from '@zag-js/tooltip';
|
2
2
|
export interface CreateTooltipProps extends Omit<tooltip.Context, 'id' | 'dir' | 'getRootNode' | 'open.controlled'> {
|
3
3
|
id?: string | null;
|
4
|
+
defaultOpen?: boolean;
|
4
5
|
}
|
5
6
|
export interface CreateTooltipReturn extends tooltip.Api {
|
6
7
|
}
|
package/dist/types.d.ts
CHANGED
@@ -1,9 +1,7 @@
|
|
1
1
|
import type { SvelteHTMLElements } from 'svelte/elements';
|
2
2
|
export type Assign<Target, Source> = Omit<Target, keyof Source> & Source;
|
3
|
-
type
|
4
|
-
[K in keyof
|
3
|
+
type IntrinsicElements = keyof {
|
4
|
+
[K in keyof SvelteHTMLElements as string extends K ? never : number extends K ? never : K]: string;
|
5
5
|
};
|
6
|
-
type IntrinsicElements = KnownKeys<SvelteHTMLElements>;
|
7
6
|
export type HtmlProps<T extends IntrinsicElements> = SvelteHTMLElements[T];
|
8
|
-
export type PickPartial<T, K extends keyof T> = Partial<Pick<T, K>> & Omit<T, K>;
|
9
7
|
export {};
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "ui-ingredients",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.0.
|
4
|
+
"version": "0.0.19",
|
5
5
|
"packageManager": "pnpm@9.7.0",
|
6
6
|
"svelte": "./dist/index.js",
|
7
7
|
"types": "./dist/index.d.ts",
|
@@ -140,7 +140,7 @@
|
|
140
140
|
"postcss": "8.4.41",
|
141
141
|
"publint": "0.2.10",
|
142
142
|
"release-it": "17.6.0",
|
143
|
-
"svelte": "5.0.0-next.
|
143
|
+
"svelte": "5.0.0-next.238",
|
144
144
|
"svelte-check": "3.8.6",
|
145
145
|
"tailwindcss": "3.4.10",
|
146
146
|
"typescript": "5.5.4",
|