@soybeanjs/ui 0.28.2 → 0.29.0-beta.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.
- package/README.md +143 -177
- package/README.zh-CN.md +144 -178
- package/dist/components/alert/alert.vue.d.ts +2 -2
- package/dist/components/autocomplete/autocomplete.vue.d.ts +2 -2
- package/dist/components/backtop/backtop.vue.d.ts +1 -1
- package/dist/components/button/button-icon.vue.d.ts +1 -1
- package/dist/components/button/button-link.vue.d.ts +1 -1
- package/dist/components/button/button-loading.vue.d.ts +2 -2
- package/dist/components/color-picker/color-picker.vue.d.ts +3 -3
- package/dist/components/combobox/combobox.vue.d.ts +2 -2
- package/dist/components/config-provider/config-provider.js +1 -1
- package/dist/components/context-menu/context-menu-checkbox.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu-radio.vue.d.ts +2 -2
- package/dist/components/date-picker/date-picker.js +1 -1
- package/dist/components/date-picker/date-picker.vue.d.ts +2 -2
- package/dist/components/date-range-picker/date-range-picker.vue.d.ts +2 -2
- package/dist/components/dialog/dialog.vue.d.ts +3 -3
- package/dist/components/drawer/drawer.vue.d.ts +3 -3
- package/dist/components/dropdown-menu/dropdown-menu-checkbox.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu-radio.vue.d.ts +2 -2
- package/dist/components/link/link.vue.d.ts +1 -1
- package/dist/components/menubar/menubar.vue.d.ts +2 -2
- package/dist/components/navigation-menu/navigation-menu.vue.d.ts +2 -2
- package/dist/components/page-tabs/page-tabs.vue.d.ts +1 -1
- package/dist/components/popconfirm/popconfirm.vue.d.ts +3 -3
- package/dist/components/select/select.vue.d.ts +2 -2
- package/dist/styles/alert.d.ts +3 -3
- package/dist/styles/badge.d.ts +1 -1
- package/dist/styles/button.d.ts +2 -2
- package/dist/styles/checkbox.d.ts +1 -1
- package/dist/styles/navigation-menu.js +1 -1
- package/dist/styles/pagination.d.ts +1 -1
- package/dist/styles/radio-group.d.ts +1 -1
- package/dist/styles/skeleton.d.ts +1 -1
- package/dist/styles/switch.d.ts +2 -2
- package/dist/styles/table.d.ts +2 -2
- package/dist/styles/tabs.d.ts +1 -1
- package/dist/styles/tag.d.ts +2 -2
- package/dist/styles/toggle-group.d.ts +1 -1
- package/dist/styles/toggle.d.ts +2 -2
- package/package.json +17 -62
|
@@ -2,7 +2,6 @@ import { DateRangePickerProps } from "./types.js";
|
|
|
2
2
|
|
|
3
3
|
//#region src/components/date-range-picker/date-range-picker.vue.d.ts
|
|
4
4
|
declare const __VLS_export: import("vue").DefineComponent<DateRangePickerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
5
|
-
"update:modelValue": (range: import("@soybeanjs/headless").DateRange) => any;
|
|
6
5
|
"update:open": (value: boolean) => any;
|
|
7
6
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
8
7
|
pointerDownOutside: (event: import("@soybeanjs/headless").PointerDownOutsideEvent) => any;
|
|
@@ -10,10 +9,10 @@ declare const __VLS_export: import("vue").DefineComponent<DateRangePickerProps,
|
|
|
10
9
|
interactOutside: (event: import("@soybeanjs/headless").PointerDownOutsideEvent | import("@soybeanjs/headless").FocusOutsideEvent) => any;
|
|
11
10
|
openAutoFocus: (event: Event) => any;
|
|
12
11
|
closeAutoFocus: (event: Event) => any;
|
|
12
|
+
"update:modelValue": (range: import("@soybeanjs/headless").DateRange) => any;
|
|
13
13
|
"update:placeholder": (date: import("@internationalized/date").DateValue) => any;
|
|
14
14
|
"update:startValue": (date: import("@internationalized/date").DateValue | undefined) => any;
|
|
15
15
|
}, string, import("vue").PublicProps, Readonly<DateRangePickerProps> & Readonly<{
|
|
16
|
-
"onUpdate:modelValue"?: ((range: import("@soybeanjs/headless").DateRange) => any) | undefined;
|
|
17
16
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
18
17
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
19
18
|
onPointerDownOutside?: ((event: import("@soybeanjs/headless").PointerDownOutsideEvent) => any) | undefined;
|
|
@@ -21,6 +20,7 @@ declare const __VLS_export: import("vue").DefineComponent<DateRangePickerProps,
|
|
|
21
20
|
onInteractOutside?: ((event: import("@soybeanjs/headless").PointerDownOutsideEvent | import("@soybeanjs/headless").FocusOutsideEvent) => any) | undefined;
|
|
22
21
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
23
22
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
23
|
+
"onUpdate:modelValue"?: ((range: import("@soybeanjs/headless").DateRange) => any) | undefined;
|
|
24
24
|
"onUpdate:placeholder"?: ((date: import("@internationalized/date").DateValue) => any) | undefined;
|
|
25
25
|
"onUpdate:startValue"?: ((date: import("@internationalized/date").DateValue | undefined) => any) | undefined;
|
|
26
26
|
}>, {
|
|
@@ -3,10 +3,10 @@ import { DialogProps, DialogSlots } from "./types.js";
|
|
|
3
3
|
//#region src/components/dialog/dialog.vue.d.ts
|
|
4
4
|
type __VLS_Slots = DialogSlots;
|
|
5
5
|
declare const __VLS_base: import("vue").DefineComponent<DialogProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
-
"update:open": (value: boolean) => any;
|
|
7
6
|
close: (event: MouseEvent) => any;
|
|
8
7
|
cancel: (event: MouseEvent) => any;
|
|
9
8
|
confirm: (event: MouseEvent) => any;
|
|
9
|
+
"update:open": (value: boolean) => any;
|
|
10
10
|
click: (event: PointerEvent) => any;
|
|
11
11
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
12
12
|
pointerDownOutside: (event: import("@soybeanjs/headless").PointerDownOutsideEvent) => any;
|
|
@@ -15,10 +15,10 @@ declare const __VLS_base: import("vue").DefineComponent<DialogProps, {}, {}, {},
|
|
|
15
15
|
openAutoFocus: (event: Event) => any;
|
|
16
16
|
closeAutoFocus: (event: Event) => any;
|
|
17
17
|
}, string, import("vue").PublicProps, Readonly<DialogProps> & Readonly<{
|
|
18
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
19
18
|
onClose?: ((event: MouseEvent) => any) | undefined;
|
|
20
19
|
onCancel?: ((event: MouseEvent) => any) | undefined;
|
|
21
20
|
onConfirm?: ((event: MouseEvent) => any) | undefined;
|
|
21
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
22
22
|
onClick?: ((event: PointerEvent) => any) | undefined;
|
|
23
23
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
24
24
|
onPointerDownOutside?: ((event: import("@soybeanjs/headless").PointerDownOutsideEvent) => any) | undefined;
|
|
@@ -27,8 +27,8 @@ declare const __VLS_base: import("vue").DefineComponent<DialogProps, {}, {}, {},
|
|
|
27
27
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
28
28
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
29
29
|
}>, {
|
|
30
|
-
open: boolean;
|
|
31
30
|
showClose: boolean;
|
|
31
|
+
open: boolean;
|
|
32
32
|
modal: boolean;
|
|
33
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
34
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -3,10 +3,10 @@ import { DrawerProps, DrawerSlots } from "./types.js";
|
|
|
3
3
|
//#region src/components/drawer/drawer.vue.d.ts
|
|
4
4
|
type __VLS_Slots = DrawerSlots;
|
|
5
5
|
declare const __VLS_base: import("vue").DefineComponent<DrawerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
-
"update:open": (value: boolean) => any;
|
|
7
6
|
close: (event: MouseEvent) => any;
|
|
8
7
|
cancel: (event: MouseEvent) => any;
|
|
9
8
|
confirm: (event: MouseEvent) => any;
|
|
9
|
+
"update:open": (value: boolean) => any;
|
|
10
10
|
click: (event: PointerEvent) => any;
|
|
11
11
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
12
12
|
pointerDownOutside: (event: import("@soybeanjs/headless").PointerDownOutsideEvent) => any;
|
|
@@ -15,10 +15,10 @@ declare const __VLS_base: import("vue").DefineComponent<DrawerProps, {}, {}, {},
|
|
|
15
15
|
openAutoFocus: (event: Event) => any;
|
|
16
16
|
closeAutoFocus: (event: Event) => any;
|
|
17
17
|
}, string, import("vue").PublicProps, Readonly<DrawerProps> & Readonly<{
|
|
18
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
19
18
|
onClose?: ((event: MouseEvent) => any) | undefined;
|
|
20
19
|
onCancel?: ((event: MouseEvent) => any) | undefined;
|
|
21
20
|
onConfirm?: ((event: MouseEvent) => any) | undefined;
|
|
21
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
22
22
|
onClick?: ((event: PointerEvent) => any) | undefined;
|
|
23
23
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
24
24
|
onPointerDownOutside?: ((event: import("@soybeanjs/headless").PointerDownOutsideEvent) => any) | undefined;
|
|
@@ -27,8 +27,8 @@ declare const __VLS_base: import("vue").DefineComponent<DrawerProps, {}, {}, {},
|
|
|
27
27
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
28
28
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
29
29
|
}>, {
|
|
30
|
-
open: boolean;
|
|
31
30
|
showClose: boolean;
|
|
31
|
+
open: boolean;
|
|
32
32
|
modal: boolean;
|
|
33
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
34
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -5,7 +5,6 @@ import { DefinedValue } from "@soybeanjs/headless/types";
|
|
|
5
5
|
declare const __VLS_export: <T extends DefinedValue = DefinedValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
6
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<DropdownMenuCheckboxProps<T> & {
|
|
7
7
|
onSelect?: ((item: import("@soybeanjs/headless").MenuCheckboxOptionData<T>, event: Event) => any) | undefined;
|
|
8
|
-
"onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
|
|
9
8
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10
9
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
11
10
|
onPointerDownOutside?: ((event: import("@soybeanjs/headless").PointerDownOutsideEvent) => any) | undefined;
|
|
@@ -13,6 +12,7 @@ declare const __VLS_export: <T extends DefinedValue = DefinedValue>(__VLS_props:
|
|
|
13
12
|
onInteractOutside?: ((event: import("@soybeanjs/headless").PointerDownOutsideEvent | import("@soybeanjs/headless").FocusOutsideEvent) => any) | undefined;
|
|
14
13
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
15
14
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
15
|
+
"onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
|
|
16
16
|
onEntryFocus?: ((event: Event) => any) | undefined;
|
|
17
17
|
}> & (typeof globalThis extends {
|
|
18
18
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -20,7 +20,7 @@ declare const __VLS_export: <T extends DefinedValue = DefinedValue>(__VLS_props:
|
|
|
20
20
|
expose: (exposed: {}) => void;
|
|
21
21
|
attrs: any;
|
|
22
22
|
slots: DropdownMenuCheckboxSlots<T>;
|
|
23
|
-
emit: ((evt: "select", item: import("@soybeanjs/headless").MenuCheckboxOptionData<T>, event: Event) => void) & ((evt: "update:
|
|
23
|
+
emit: ((evt: "select", item: import("@soybeanjs/headless").MenuCheckboxOptionData<T>, event: Event) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: import("@soybeanjs/headless").PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: import("@soybeanjs/headless").FocusOutsideEvent) => void) & ((evt: "interactOutside", event: import("@soybeanjs/headless").PointerDownOutsideEvent | import("@soybeanjs/headless").FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void) & ((evt: "update:modelValue", value: T[]) => void) & ((evt: "entryFocus", event: Event) => void);
|
|
24
24
|
}>) => import("vue").VNode & {
|
|
25
25
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
26
26
|
};
|
|
@@ -5,7 +5,6 @@ import { AcceptableBooleanValue } from "@soybeanjs/headless/types";
|
|
|
5
5
|
declare const __VLS_export: <T extends AcceptableBooleanValue = AcceptableBooleanValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
6
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<DropdownMenuRadioProps<T> & {
|
|
7
7
|
onSelect?: ((item: import("@soybeanjs/headless").MenuRadioOptionData<T>, event: Event) => any) | undefined;
|
|
8
|
-
"onUpdate:modelValue"?: ((payload: Exclude<T, undefined>) => any) | undefined;
|
|
9
8
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10
9
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
11
10
|
onPointerDownOutside?: ((event: import("@soybeanjs/headless").PointerDownOutsideEvent) => any) | undefined;
|
|
@@ -13,6 +12,7 @@ declare const __VLS_export: <T extends AcceptableBooleanValue = AcceptableBoolea
|
|
|
13
12
|
onInteractOutside?: ((event: import("@soybeanjs/headless").PointerDownOutsideEvent | import("@soybeanjs/headless").FocusOutsideEvent) => any) | undefined;
|
|
14
13
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
15
14
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
15
|
+
"onUpdate:modelValue"?: ((payload: Exclude<T, undefined>) => any) | undefined;
|
|
16
16
|
onEntryFocus?: ((event: Event) => any) | undefined;
|
|
17
17
|
}> & (typeof globalThis extends {
|
|
18
18
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -20,7 +20,7 @@ declare const __VLS_export: <T extends AcceptableBooleanValue = AcceptableBoolea
|
|
|
20
20
|
expose: (exposed: {}) => void;
|
|
21
21
|
attrs: any;
|
|
22
22
|
slots: DropdownMenuRadioSlots<T>;
|
|
23
|
-
emit: ((evt: "select", item: import("@soybeanjs/headless").MenuRadioOptionData<T>, event: Event) => void) & ((evt: "update:
|
|
23
|
+
emit: ((evt: "select", item: import("@soybeanjs/headless").MenuRadioOptionData<T>, event: Event) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: import("@soybeanjs/headless").PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: import("@soybeanjs/headless").FocusOutsideEvent) => void) & ((evt: "interactOutside", event: import("@soybeanjs/headless").PointerDownOutsideEvent | import("@soybeanjs/headless").FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void) & ((evt: "update:modelValue", payload: Exclude<T, undefined>) => void) & ((evt: "entryFocus", event: Event) => void);
|
|
24
24
|
}>) => import("vue").VNode & {
|
|
25
25
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
26
26
|
};
|
|
@@ -10,8 +10,8 @@ type __VLS_Slots = {} & {
|
|
|
10
10
|
default?: (props: typeof __VLS_8) => any;
|
|
11
11
|
};
|
|
12
12
|
declare const __VLS_base: import("vue").DefineComponent<LinkProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<LinkProps> & Readonly<{}>, {
|
|
13
|
-
replace: boolean;
|
|
14
13
|
disabled: boolean;
|
|
14
|
+
replace: boolean;
|
|
15
15
|
external: boolean;
|
|
16
16
|
viewTransition: boolean;
|
|
17
17
|
noRel: boolean;
|
|
@@ -5,7 +5,6 @@ import { DefinedValue } from "@soybeanjs/headless/types";
|
|
|
5
5
|
declare const __VLS_export: <T extends DefinedValue = DefinedValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
6
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<MenubarProps<T> & {
|
|
7
7
|
onSelect?: ((item: import("@soybeanjs/headless").MenuOptionData<T>, event: Event) => any) | undefined;
|
|
8
|
-
"onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
9
8
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10
9
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
11
10
|
onPointerDownOutside?: ((event: import("@soybeanjs/headless").PointerDownOutsideEvent) => any) | undefined;
|
|
@@ -13,6 +12,7 @@ declare const __VLS_export: <T extends DefinedValue = DefinedValue>(__VLS_props:
|
|
|
13
12
|
onInteractOutside?: ((event: import("@soybeanjs/headless").PointerDownOutsideEvent | import("@soybeanjs/headless").FocusOutsideEvent) => any) | undefined;
|
|
14
13
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
15
14
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
15
|
+
"onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
16
16
|
onEntryFocus?: ((event: Event) => any) | undefined;
|
|
17
17
|
}> & (typeof globalThis extends {
|
|
18
18
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -20,7 +20,7 @@ declare const __VLS_export: <T extends DefinedValue = DefinedValue>(__VLS_props:
|
|
|
20
20
|
expose: (exposed: {}) => void;
|
|
21
21
|
attrs: any;
|
|
22
22
|
slots: MenubarSlots<T>;
|
|
23
|
-
emit: ((evt: "select", item: import("@soybeanjs/headless").MenuOptionData<T>, event: Event) => void) & ((evt: "update:
|
|
23
|
+
emit: ((evt: "select", item: import("@soybeanjs/headless").MenuOptionData<T>, event: Event) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: import("@soybeanjs/headless").PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: import("@soybeanjs/headless").FocusOutsideEvent) => void) & ((evt: "interactOutside", event: import("@soybeanjs/headless").PointerDownOutsideEvent | import("@soybeanjs/headless").FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void) & ((evt: "update:modelValue", value: T) => void) & ((evt: "entryFocus", event: Event) => void);
|
|
24
24
|
}>) => import("vue").VNode & {
|
|
25
25
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
26
26
|
};
|
|
@@ -6,20 +6,20 @@ declare const __VLS_base: import("vue").DefineComponent<NavigationMenuProps, {},
|
|
|
6
6
|
select: (payload: CustomEvent<{
|
|
7
7
|
originalEvent: Event;
|
|
8
8
|
}>) => any;
|
|
9
|
-
"update:modelValue": (value: string) => any;
|
|
10
9
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
11
10
|
pointerDownOutside: (event: import("@soybeanjs/headless").PointerDownOutsideEvent) => any;
|
|
12
11
|
focusOutside: (event: import("@soybeanjs/headless").FocusOutsideEvent) => any;
|
|
13
12
|
interactOutside: (event: import("@soybeanjs/headless").PointerDownOutsideEvent | import("@soybeanjs/headless").FocusOutsideEvent) => any;
|
|
13
|
+
"update:modelValue": (value: string) => any;
|
|
14
14
|
}, string, import("vue").PublicProps, Readonly<NavigationMenuProps> & Readonly<{
|
|
15
15
|
onSelect?: ((payload: CustomEvent<{
|
|
16
16
|
originalEvent: Event;
|
|
17
17
|
}>) => any) | undefined;
|
|
18
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
19
18
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
20
19
|
onPointerDownOutside?: ((event: import("@soybeanjs/headless").PointerDownOutsideEvent) => any) | undefined;
|
|
21
20
|
onFocusOutside?: ((event: import("@soybeanjs/headless").FocusOutsideEvent) => any) | undefined;
|
|
22
21
|
onInteractOutside?: ((event: import("@soybeanjs/headless").PointerDownOutsideEvent | import("@soybeanjs/headless").FocusOutsideEvent) => any) | undefined;
|
|
22
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
23
23
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
24
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
25
|
declare const _default: typeof __VLS_export;
|
|
@@ -5,9 +5,9 @@ import { PageTabsOptionData } from "@soybeanjs/headless/page-tabs";
|
|
|
5
5
|
declare const __VLS_export: <T extends PageTabsOptionData = PageTabsOptionData>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
6
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<PageTabsProps<T> & {
|
|
7
7
|
onContextmenu?: ((tab: T) => any) | undefined;
|
|
8
|
-
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
9
8
|
onClose?: ((tab: T) => any) | undefined;
|
|
10
9
|
onClick?: ((tab: T) => any) | undefined;
|
|
10
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
11
11
|
"onUpdate:items"?: ((items: T[]) => any) | undefined;
|
|
12
12
|
onPin?: ((tab: T) => any) | undefined;
|
|
13
13
|
onSelectContextMenu?: ((menu: import("@soybeanjs/headless").PageTabsContextMenuOptionData, tab: T) => any) | undefined;
|
|
@@ -3,9 +3,9 @@ import { PopconfirmProps, PopconfirmSlots } from "./types.js";
|
|
|
3
3
|
//#region src/components/popconfirm/popconfirm.vue.d.ts
|
|
4
4
|
type __VLS_Slots = PopconfirmSlots;
|
|
5
5
|
declare const __VLS_base: import("vue").DefineComponent<PopconfirmProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
-
"update:open": (value: boolean) => any;
|
|
7
6
|
cancel: (event: PointerEvent) => any;
|
|
8
7
|
confirm: (event: PointerEvent) => any;
|
|
8
|
+
"update:open": (value: boolean) => any;
|
|
9
9
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
10
10
|
pointerDownOutside: (event: import("@soybeanjs/headless").PointerDownOutsideEvent) => any;
|
|
11
11
|
focusOutside: (event: import("@soybeanjs/headless").FocusOutsideEvent) => any;
|
|
@@ -13,9 +13,9 @@ declare const __VLS_base: import("vue").DefineComponent<PopconfirmProps, {}, {},
|
|
|
13
13
|
openAutoFocus: (event: Event) => any;
|
|
14
14
|
closeAutoFocus: (event: Event) => any;
|
|
15
15
|
}, string, import("vue").PublicProps, Readonly<PopconfirmProps> & Readonly<{
|
|
16
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
17
16
|
onCancel?: ((event: PointerEvent) => any) | undefined;
|
|
18
17
|
onConfirm?: ((event: PointerEvent) => any) | undefined;
|
|
18
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
19
19
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
20
20
|
onPointerDownOutside?: ((event: import("@soybeanjs/headless").PointerDownOutsideEvent) => any) | undefined;
|
|
21
21
|
onFocusOutside?: ((event: import("@soybeanjs/headless").FocusOutsideEvent) => any) | undefined;
|
|
@@ -23,8 +23,8 @@ declare const __VLS_base: import("vue").DefineComponent<PopconfirmProps, {}, {},
|
|
|
23
23
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
24
24
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
25
25
|
}>, {
|
|
26
|
-
open: boolean;
|
|
27
26
|
showCancel: "onlyWarning" | boolean;
|
|
27
|
+
open: boolean;
|
|
28
28
|
showArrow: boolean;
|
|
29
29
|
showIcon: boolean;
|
|
30
30
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -5,18 +5,18 @@ import { DefinedValue } from "@soybeanjs/headless/types";
|
|
|
5
5
|
declare const __VLS_export: <T extends DefinedValue, M extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
6
|
props: import("vue").PublicProps & __VLS_PrettifyLocal<SelectProps<T, M> & {
|
|
7
7
|
onSelect?: ((event: import("@soybeanjs/headless").SelectItemEvent<T>) => any) | undefined;
|
|
8
|
-
"onUpdate:modelValue"?: ((value: M extends true ? T[] : T) => any) | undefined;
|
|
9
8
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
10
9
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
11
10
|
onPointerDownOutside?: ((event: import("@soybeanjs/headless").PointerDownOutsideEvent) => any) | undefined;
|
|
12
11
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
12
|
+
"onUpdate:modelValue"?: ((value: M extends true ? T[] : T) => any) | undefined;
|
|
13
13
|
}> & (typeof globalThis extends {
|
|
14
14
|
__VLS_PROPS_FALLBACK: infer P;
|
|
15
15
|
} ? P : {});
|
|
16
16
|
expose: (exposed: {}) => void;
|
|
17
17
|
attrs: any;
|
|
18
18
|
slots: SelectSlots<T, M>;
|
|
19
|
-
emit: ((evt: "select", event: import("@soybeanjs/headless").SelectItemEvent<T>) => void) & ((evt: "update:
|
|
19
|
+
emit: ((evt: "select", event: import("@soybeanjs/headless").SelectItemEvent<T>) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: import("@soybeanjs/headless").PointerDownOutsideEvent) => void) & ((evt: "closeAutoFocus", event: Event) => void) & ((evt: "update:modelValue", value: M extends true ? T[] : T) => void);
|
|
20
20
|
}>) => import("vue").VNode & {
|
|
21
21
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
22
22
|
};
|
package/dist/styles/alert.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from "@soybeanjs/cva";
|
|
2
2
|
|
|
3
3
|
//#region src/styles/alert.d.ts
|
|
4
|
-
declare const alertVariants: import("@soybeanjs/cva").SCVResult<"icon" | "title" | "
|
|
4
|
+
declare const alertVariants: import("@soybeanjs/cva").SCVResult<"icon" | "title" | "description" | "content" | "close" | "root", NoInfer<{
|
|
5
5
|
color: {
|
|
6
6
|
primary: {
|
|
7
7
|
root: "border-primary text-primary";
|
|
@@ -93,8 +93,8 @@ declare const alertVariants: import("@soybeanjs/cva").SCVResult<"icon" | "title"
|
|
|
93
93
|
};
|
|
94
94
|
}>, {
|
|
95
95
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
96
|
-
color?: "
|
|
97
|
-
variant?: "
|
|
96
|
+
color?: "info" | "success" | "warning" | "primary" | "destructive" | "carbon" | "secondary" | "accent" | undefined;
|
|
97
|
+
variant?: "pure" | "outline" | "soft" | "ghost" | "solid" | undefined;
|
|
98
98
|
}>;
|
|
99
99
|
type AlertVariants = VariantProps<typeof alertVariants>;
|
|
100
100
|
type AlertVariant = NonNullable<AlertVariants['variant']>;
|
package/dist/styles/badge.d.ts
CHANGED
|
@@ -64,7 +64,7 @@ declare const badgeVariants: import("@soybeanjs/cva").SCVResult<"content" | "roo
|
|
|
64
64
|
};
|
|
65
65
|
}>, {
|
|
66
66
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
67
|
-
color?: "
|
|
67
|
+
color?: "info" | "success" | "warning" | "primary" | "destructive" | "carbon" | "secondary" | "accent" | undefined;
|
|
68
68
|
position?: "top-right" | "bottom-right" | "top-left" | "bottom-left" | undefined;
|
|
69
69
|
}>;
|
|
70
70
|
type BadgeVariants = VariantProps<typeof badgeVariants>;
|
package/dist/styles/button.d.ts
CHANGED
|
@@ -48,9 +48,9 @@ declare const buttonVariants: import("@soybeanjs/cva").CVResult<NoInfer<{
|
|
|
48
48
|
};
|
|
49
49
|
}>, {
|
|
50
50
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
51
|
-
color?: "
|
|
51
|
+
color?: "info" | "success" | "warning" | "primary" | "destructive" | "carbon" | "secondary" | "accent" | undefined;
|
|
52
|
+
variant?: "link" | "pure" | "outline" | "soft" | "ghost" | "solid" | "dashed" | "plain" | undefined;
|
|
52
53
|
shape?: "auto" | "rounded" | "square" | "circle" | undefined;
|
|
53
|
-
variant?: "link" | "outline" | "soft" | "ghost" | "solid" | "pure" | "dashed" | "plain" | undefined;
|
|
54
54
|
shadow?: "sm" | "md" | "lg" | "none" | undefined;
|
|
55
55
|
fitContent?: boolean | undefined;
|
|
56
56
|
}>;
|
|
@@ -78,7 +78,7 @@ declare const checkboxVariants: import("@soybeanjs/cva").SCVResult<"label" | "ro
|
|
|
78
78
|
};
|
|
79
79
|
}>, {
|
|
80
80
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
81
|
-
color?: "
|
|
81
|
+
color?: "info" | "success" | "warning" | "primary" | "destructive" | "carbon" | "secondary" | "accent" | undefined;
|
|
82
82
|
shape?: "rounded" | "square" | undefined;
|
|
83
83
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
84
84
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{scv as e}from"@soybeanjs/cva";const t=e({slots:{root:`group`,viewport:[`fixed z-50 origin-top-center overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg`,`start-[--soybean-navigation-menu-viewport-left] top-[--soybean-navigation-menu-viewport-top]`,`h-[--soybean-navigation-menu-viewport-height] w-[--soybean-navigation-menu-viewport-width]`,`data-[state=open]:animate-in data-[state=open]:zoom-in-90 data-[state=closed]:animate-out data-[state=closed]:zoom-out-95`,`group-data-[orientation=vertical]:mt-0`],content:[`start-0 top-0 w-auto md:absolute lt-md:w-full`,`data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in`,`data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out`,`data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52`,`rtl:data-[motion=from-end]:slide-in-from-left-52 rtl:data-[motion=from-start]:slide-in-from-right-52 rtl:data-[motion=to-end]:slide-out-to-left-52 rtl:data-[motion=to-start]:slide-out-to-right-52`],arrow:`w-1em h-0.5em fill-popover stroke-border rotate-180 group-data-[orientation=vertical]:rotate-90`,list:[`group grow flex items-center justify-center my-0 list-none`,`group-data-[orientation=vertical]:flex-col group-data-[orientation=vertical]:items-stretch`],subList:`grid grid-cols-[auto_auto] list-none my-0`,item:`list-none m-0`,subItem:`list-none m-0`,itemIcon:`shrink-0 text-muted-foreground`,trigger:[`group inline-flex items-center rounded-md bg-background font-medium transition-colors-200 decoration-none outline-none`,`hover:bg-accent hover:text-accent-foreground`,`focus:bg-accent focus:text-accent-foreground`,`disabled:pointer-events-none disabled:opacity-50`,`data-[active]:bg-accent/50`,`data-[state=open]:bg-accent/50`],subItemContent:`flex items-start rounded-md outline-none cursor-default select-none`,triggerIcon:`ms-auto transition duration-200 group-data-[state=open]:rotate-180`,indicator:[`fixed start-[--soybean-navigation-menu-indicator-left] top-[--soybean-navigation-menu-indicator-top] z-50`,`flex w-[--soybean-navigation-menu-indicator-size] items-end justify-center overflow-hidden transition-transform-200 ease-out`,`data-[state=visible]:animate-in data-[state=visible]:fade-in-0 data-[state=hidden]:animate-out data-[state=hidden]:fade-out-0`,`data-[orientation=vertical]:-rotate-90 [&[dir=rtl]]:data-[orientation=vertical]:rotate-90`],link:[`group relative w-full flex items-center rounded-md font-medium outline-none cursor-pointer decoration-none`,`focus:bg-accent focus:text-accent-foreground hover:bg-accent hover:text-accent-foreground`,`data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`],subLink:[`flex items-start select-none rounded-md no-underline outline-none transition-colors-200 cursor-pointer decoration-none`,`focus:bg-accent focus:text-accent-foreground hover:bg-accent hover:text-accent-foreground`,`data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`],linkIcon:`shrink-0 self-start text-muted-foreground rtl:rotate-270`,subLinkContent:`grow flex flex-col items-start`,subLinkLabel:`font-medium leading-none`,subLinkDescription:`line-clamp-2 text-muted-foreground leading-snug m-0`},variants:{size:{xs:{viewport:`mt-1.75 group-data-[orientation=vertical]:ms-3.5`,list:`gap-1 text-2xs`,subList:`gap-1.5 p-1.5 text-2xs`,trigger:`gap-1 px-1 py-1`,indicator:`h-1.75`,arrow:`size-2.25`,link:`gap-1 px-1 py-1`,subItemContent:`gap-1 px-1 py-1`,subLink:`gap-1 px-1 py-1`,linkIcon:`size-2 -ms-1`,subLinkDescription:`mt-1.25`},sm:{viewport:`mt-2 group-data-[orientation=vertical]:ms-4`,list:`gap-1.25 text-xs`,subList:`gap-1.75 p-1.75 text-xs`,trigger:`gap-1.5 px-1.5 py-1`,indicator:`h-2`,arrow:`size-2.5`,link:`gap-1.5 px-1.5 py-1`,subItemContent:`gap-1.5 px-1.5 py-1`,subLink:`gap-1.5 px-1.5 py-1`,linkIcon:`size-2.5 -ms-1.5`,subLinkDescription:`mt-1.25`},md:{viewport:`mt-[calc(0.625rem-1px)] group-data-[orientation=vertical]:ms-5`,list:`gap-1.5 text-sm`,subList:`gap-2 p-2 text-sm`,trigger:`gap-2 px-2 py-1.5`,indicator:`h-2.5`,arrow:`size-3`,link:`gap-2 px-2 py-1.5`,subItemContent:`gap-2 px-2 py-1.5`,subLink:`gap-2 px-2 py-1.5`,linkIcon:`size-3 -ms-2`,subLinkDescription:`mt-1.5`},lg:{viewport:`mt-3 group-data-[orientation=vertical]:ms-6`,list:`gap-1.75 text-base`,subList:`gap-2.5 p-2.5 text-base`,trigger:`gap-2.5 px-2.5 py-1.5`,indicator:`h-3`,arrow:`size-3.5`,link:`gap-2.5 px-2.5 py-1.5`,subItemContent:`gap-2.5 px-2.5 py-1.5`,subLink:`gap-2.5 px-2.5 py-1.5`,linkIcon:`size-3.5 -ms-2.5`,subLinkDescription:`mt-1.75`},xl:{viewport:`mt-3.5 group-data-[orientation=vertical]:ms-7`,list:`gap-2 text-lg`,subList:`gap-3 p-3 text-lg`,trigger:`gap-3 px-3 py-2`,indicator:`h-3.5`,arrow:`size-4`,link:`gap-3 px-3 py-2`,subItemContent:`gap-3 px-3 py-2`,subLink:`gap-3 px-3 py-2`,linkIcon:`size-4 -ms-3`,subLinkDescription:`mt-2`},"2xl":{viewport:`mt-4 group-data-[orientation=vertical]:ms-8`,list:`gap-2.5 text-xl`,subList:`gap-3.5 p-3.5 text-xl`,trigger:`gap-3.5 px-3.5 py-2.5`,indicator:`h-4`,arrow:`size-4.5`,link:`gap-3.5 px-3.5 py-2.5`,subItemContent:`gap-3.5 px-3.5 py-2.5`,subLink:`gap-3.5 px-3.5 py-2.5`,linkIcon:`size-4.5 -ms-3.5`,subLinkDescription:`mt-2.5`}}},defaultVariants:{size:`md`}});export{t as navigationMenuVariants};
|
|
1
|
+
import{scv as e}from"@soybeanjs/cva";const t=e({slots:{root:`group`,viewport:[`fixed z-50 origin-top-center overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg`,`start-[--soybean-navigation-menu-viewport-left] top-[--soybean-navigation-menu-viewport-top]`,`h-[--soybean-navigation-menu-viewport-height] w-[--soybean-navigation-menu-viewport-width]`,`transition-all duration-200 ease-out`,`data-[state=open]:animate-in data-[state=open]:zoom-in-90 data-[state=closed]:animate-out data-[state=closed]:zoom-out-95`,`group-data-[orientation=vertical]:mt-0`],content:[`start-0 top-0 w-auto md:absolute lt-md:w-full`,`data-[motion^=from-]:animate-in data-[motion^=from-]:fade-in`,`data-[motion^=to-]:animate-out data-[motion^=to-]:fade-out`,`data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52`,`rtl:data-[motion=from-end]:slide-in-from-left-52 rtl:data-[motion=from-start]:slide-in-from-right-52 rtl:data-[motion=to-end]:slide-out-to-left-52 rtl:data-[motion=to-start]:slide-out-to-right-52`],arrow:`w-1em h-0.5em fill-popover stroke-border rotate-180 group-data-[orientation=vertical]:rotate-90`,list:[`group grow flex items-center justify-center my-0 list-none`,`group-data-[orientation=vertical]:flex-col group-data-[orientation=vertical]:items-stretch`],subList:`grid grid-cols-[auto_auto] list-none my-0`,item:`list-none m-0`,subItem:`list-none m-0`,itemIcon:`shrink-0 text-muted-foreground`,trigger:[`group inline-flex items-center rounded-md bg-background font-medium transition-colors-200 decoration-none outline-none`,`hover:bg-accent hover:text-accent-foreground`,`focus:bg-accent focus:text-accent-foreground`,`disabled:pointer-events-none disabled:opacity-50`,`data-[active]:bg-accent/50`,`data-[state=open]:bg-accent/50`],subItemContent:`flex items-start rounded-md outline-none cursor-default select-none`,triggerIcon:`ms-auto transition duration-200 group-data-[state=open]:rotate-180`,indicator:[`fixed start-[--soybean-navigation-menu-indicator-left] top-[--soybean-navigation-menu-indicator-top] z-50`,`flex w-[--soybean-navigation-menu-indicator-size] items-end justify-center overflow-hidden transition-transform-200 ease-out`,`data-[state=visible]:animate-in data-[state=visible]:fade-in-0 data-[state=hidden]:animate-out data-[state=hidden]:fade-out-0`,`data-[orientation=vertical]:-rotate-90 [&[dir=rtl]]:data-[orientation=vertical]:rotate-90`],link:[`group relative w-full flex items-center rounded-md font-medium outline-none cursor-pointer decoration-none`,`focus:bg-accent focus:text-accent-foreground hover:bg-accent hover:text-accent-foreground`,`data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`],subLink:[`flex items-start select-none rounded-md no-underline outline-none transition-colors-200 cursor-pointer decoration-none`,`focus:bg-accent focus:text-accent-foreground hover:bg-accent hover:text-accent-foreground`,`data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`],linkIcon:`shrink-0 self-start text-muted-foreground rtl:rotate-270`,subLinkContent:`grow flex flex-col items-start`,subLinkLabel:`font-medium leading-none`,subLinkDescription:`line-clamp-2 text-muted-foreground leading-snug m-0`},variants:{size:{xs:{viewport:`mt-1.75 group-data-[orientation=vertical]:ms-3.5`,list:`gap-1 text-2xs`,subList:`gap-1.5 p-1.5 text-2xs`,trigger:`gap-1 px-1 py-1`,indicator:`h-1.75`,arrow:`size-2.25`,link:`gap-1 px-1 py-1`,subItemContent:`gap-1 px-1 py-1`,subLink:`gap-1 px-1 py-1`,linkIcon:`size-2 -ms-1`,subLinkDescription:`mt-1.25`},sm:{viewport:`mt-2 group-data-[orientation=vertical]:ms-4`,list:`gap-1.25 text-xs`,subList:`gap-1.75 p-1.75 text-xs`,trigger:`gap-1.5 px-1.5 py-1`,indicator:`h-2`,arrow:`size-2.5`,link:`gap-1.5 px-1.5 py-1`,subItemContent:`gap-1.5 px-1.5 py-1`,subLink:`gap-1.5 px-1.5 py-1`,linkIcon:`size-2.5 -ms-1.5`,subLinkDescription:`mt-1.25`},md:{viewport:`mt-[calc(0.625rem-1px)] group-data-[orientation=vertical]:ms-5`,list:`gap-1.5 text-sm`,subList:`gap-2 p-2 text-sm`,trigger:`gap-2 px-2 py-1.5`,indicator:`h-2.5`,arrow:`size-3`,link:`gap-2 px-2 py-1.5`,subItemContent:`gap-2 px-2 py-1.5`,subLink:`gap-2 px-2 py-1.5`,linkIcon:`size-3 -ms-2`,subLinkDescription:`mt-1.5`},lg:{viewport:`mt-3 group-data-[orientation=vertical]:ms-6`,list:`gap-1.75 text-base`,subList:`gap-2.5 p-2.5 text-base`,trigger:`gap-2.5 px-2.5 py-1.5`,indicator:`h-3`,arrow:`size-3.5`,link:`gap-2.5 px-2.5 py-1.5`,subItemContent:`gap-2.5 px-2.5 py-1.5`,subLink:`gap-2.5 px-2.5 py-1.5`,linkIcon:`size-3.5 -ms-2.5`,subLinkDescription:`mt-1.75`},xl:{viewport:`mt-3.5 group-data-[orientation=vertical]:ms-7`,list:`gap-2 text-lg`,subList:`gap-3 p-3 text-lg`,trigger:`gap-3 px-3 py-2`,indicator:`h-3.5`,arrow:`size-4`,link:`gap-3 px-3 py-2`,subItemContent:`gap-3 px-3 py-2`,subLink:`gap-3 px-3 py-2`,linkIcon:`size-4 -ms-3`,subLinkDescription:`mt-2`},"2xl":{viewport:`mt-4 group-data-[orientation=vertical]:ms-8`,list:`gap-2.5 text-xl`,subList:`gap-3.5 p-3.5 text-xl`,trigger:`gap-3.5 px-3.5 py-2.5`,indicator:`h-4`,arrow:`size-4.5`,link:`gap-3.5 px-3.5 py-2.5`,subItemContent:`gap-3.5 px-3.5 py-2.5`,subLink:`gap-3.5 px-3.5 py-2.5`,linkIcon:`size-4.5 -ms-3.5`,subLinkDescription:`mt-2.5`}}},defaultVariants:{size:`md`}});export{t as navigationMenuVariants};
|
|
@@ -62,8 +62,8 @@ declare const paginationVariants: import("@soybeanjs/cva").SCVResult<"list" | "n
|
|
|
62
62
|
};
|
|
63
63
|
}>, {
|
|
64
64
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
65
|
+
variant?: "pure" | "outline" | "soft" | "solid" | undefined;
|
|
65
66
|
shape?: "rounded" | "square" | undefined;
|
|
66
|
-
variant?: "outline" | "soft" | "solid" | "pure" | undefined;
|
|
67
67
|
actionAsSelected?: boolean | undefined;
|
|
68
68
|
}>;
|
|
69
69
|
type PaginationVariants = VariantProps<typeof paginationVariants>;
|
|
@@ -86,7 +86,7 @@ declare const radioGroupVariants: import("@soybeanjs/cva").SCVResult<"label" | "
|
|
|
86
86
|
};
|
|
87
87
|
}>, {
|
|
88
88
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
89
|
-
color?: "
|
|
89
|
+
color?: "info" | "success" | "warning" | "primary" | "destructive" | "carbon" | "secondary" | "accent" | undefined;
|
|
90
90
|
variant?: "outline" | "dot" | undefined;
|
|
91
91
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
92
92
|
}>;
|
|
@@ -20,8 +20,8 @@ declare const skeletonVariants: import("@soybeanjs/cva").CVResult<NoInfer<{
|
|
|
20
20
|
};
|
|
21
21
|
}>, {
|
|
22
22
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
23
|
-
animated?: boolean | undefined;
|
|
24
23
|
shape?: "auto" | "rounded" | undefined;
|
|
24
|
+
animated?: boolean | undefined;
|
|
25
25
|
}>;
|
|
26
26
|
type SkeletonVariants = VariantProps<typeof skeletonVariants>;
|
|
27
27
|
type SkeletonShape = NonNullable<SkeletonVariants['shape']>;
|
package/dist/styles/switch.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from "@soybeanjs/cva";
|
|
2
2
|
|
|
3
3
|
//#region src/styles/switch.d.ts
|
|
4
|
-
declare const switchVariants: import("@soybeanjs/cva").SCVResult<"root" | "
|
|
4
|
+
declare const switchVariants: import("@soybeanjs/cva").SCVResult<"root" | "control" | "thumb", NoInfer<{
|
|
5
5
|
color: {
|
|
6
6
|
primary: {
|
|
7
7
|
control: "data-[state=checked]:bg-primary focus-visible:ring-primary/30";
|
|
@@ -66,7 +66,7 @@ declare const switchVariants: import("@soybeanjs/cva").SCVResult<"root" | "thumb
|
|
|
66
66
|
};
|
|
67
67
|
}>, {
|
|
68
68
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
69
|
-
color?: "
|
|
69
|
+
color?: "info" | "success" | "warning" | "primary" | "destructive" | "carbon" | "secondary" | "accent" | undefined;
|
|
70
70
|
shape?: "rounded" | "square" | undefined;
|
|
71
71
|
}>;
|
|
72
72
|
type SwitchVariants = VariantProps<typeof switchVariants>;
|
package/dist/styles/table.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from "@soybeanjs/cva";
|
|
2
2
|
|
|
3
3
|
//#region src/styles/table.d.ts
|
|
4
|
-
declare const tableVariants: import("@soybeanjs/cva").SCVResult<"
|
|
4
|
+
declare const tableVariants: import("@soybeanjs/cva").SCVResult<"header" | "content" | "footer" | "fixed" | "root" | "resizeHandle" | "body" | "head" | "scroll" | "cell" | "row" | "selection" | "sortTrigger" | "filterInput" | "treeCell" | "treeToggle" | "treeTogglePlaceholder" | "filterTrigger" | "filterPopup" | "filterSearch" | "filterOptions" | "filterOption" | "filterOptionLabel" | "filterFooter" | "filterCount" | "filterAction" | "filterEmpty" | "radioIndicator" | "radioRoot", NoInfer<{
|
|
5
5
|
size: {
|
|
6
6
|
xs: {
|
|
7
7
|
root: "text-2xs";
|
|
@@ -113,8 +113,8 @@ declare const tableVariants: import("@soybeanjs/cva").SCVResult<"fixed" | "conte
|
|
|
113
113
|
};
|
|
114
114
|
}>, {
|
|
115
115
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
116
|
-
rounded?: boolean | undefined;
|
|
117
116
|
variant?: "default" | "simple" | undefined;
|
|
117
|
+
rounded?: boolean | undefined;
|
|
118
118
|
bordered?: boolean | undefined;
|
|
119
119
|
striped?: boolean | undefined;
|
|
120
120
|
}>;
|
package/dist/styles/tabs.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from "@soybeanjs/cva";
|
|
2
2
|
|
|
3
3
|
//#region src/styles/tabs.d.ts
|
|
4
|
-
declare const tabsVariants: import("@soybeanjs/cva").SCVResult<"list" | "content" | "root" | "
|
|
4
|
+
declare const tabsVariants: import("@soybeanjs/cva").SCVResult<"list" | "content" | "root" | "trigger" | "indicator" | "indicatorContent", NoInfer<{
|
|
5
5
|
size: {
|
|
6
6
|
xs: {
|
|
7
7
|
root: "text-2xs";
|
package/dist/styles/tag.d.ts
CHANGED
|
@@ -34,9 +34,9 @@ declare const tagVariants: import("@soybeanjs/cva").CVResult<NoInfer<{
|
|
|
34
34
|
};
|
|
35
35
|
}>, {
|
|
36
36
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
37
|
-
color?: "
|
|
37
|
+
color?: "info" | "success" | "warning" | "primary" | "destructive" | "carbon" | "secondary" | "accent" | undefined;
|
|
38
|
+
variant?: "pure" | "outline" | "soft" | "ghost" | "solid" | "raw" | undefined;
|
|
38
39
|
shape?: "auto" | "rounded" | undefined;
|
|
39
|
-
variant?: "outline" | "soft" | "ghost" | "solid" | "pure" | "raw" | undefined;
|
|
40
40
|
}>;
|
|
41
41
|
type TagVariants = VariantProps<typeof tagVariants>;
|
|
42
42
|
type TagVariant = NonNullable<TagVariants['variant']>;
|
|
@@ -69,7 +69,7 @@ declare const toggleGroupVariants: import("@soybeanjs/cva").SCVResult<"root" | "
|
|
|
69
69
|
};
|
|
70
70
|
}>, {
|
|
71
71
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
72
|
-
color?: "
|
|
72
|
+
color?: "info" | "success" | "warning" | "primary" | "destructive" | "carbon" | "secondary" | "accent" | undefined;
|
|
73
73
|
variant?: "outline" | "soft" | "ghost" | undefined;
|
|
74
74
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
75
75
|
}>;
|
package/dist/styles/toggle.d.ts
CHANGED
|
@@ -33,9 +33,9 @@ declare const toggleVariants: import("@soybeanjs/cva").CVResult<NoInfer<{
|
|
|
33
33
|
};
|
|
34
34
|
}>, {
|
|
35
35
|
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | undefined;
|
|
36
|
-
color?: "
|
|
37
|
-
shape?: "auto" | "rounded" | "square" | "circle" | undefined;
|
|
36
|
+
color?: "info" | "success" | "warning" | "primary" | "destructive" | "carbon" | "secondary" | "accent" | undefined;
|
|
38
37
|
variant?: "outline" | "soft" | "ghost" | undefined;
|
|
38
|
+
shape?: "auto" | "rounded" | "square" | "circle" | undefined;
|
|
39
39
|
}>;
|
|
40
40
|
type ToggleVariants = VariantProps<typeof toggleVariants>;
|
|
41
41
|
type ToggleVariant = NonNullable<ToggleVariants['variant']>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@soybeanjs/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.0-beta.2",
|
|
4
4
|
"description": "SoybeanUI is built on top of SoybeanHeadless, providing a collection of styled components for Vue 3.",
|
|
5
5
|
"homepage": "https://github.com/soybeanjs/soybean-ui",
|
|
6
6
|
"bugs": {
|
|
@@ -49,47 +49,26 @@
|
|
|
49
49
|
"@soybeanjs/hooks": "^0.3.0",
|
|
50
50
|
"@soybeanjs/shadcn-theme": "^0.3.4",
|
|
51
51
|
"@soybeanjs/utils": "^0.1.1",
|
|
52
|
-
"
|
|
53
|
-
"zod": "^4.4.3",
|
|
54
|
-
"@soybeanjs/headless": "^0.28.2"
|
|
52
|
+
"@soybeanjs/headless": "^0.29.0-beta.2"
|
|
55
53
|
},
|
|
56
54
|
"devDependencies": {
|
|
57
|
-
"@nuxt/kit": "^4.4.
|
|
58
|
-
"@soybeanjs/cli": "^1.7.2",
|
|
59
|
-
"@soybeanjs/eslint-config-vue": "^0.1.0",
|
|
60
|
-
"@soybeanjs/oxc-config": "^0.2.0",
|
|
61
|
-
"@soybeanjs/unocss-preset": "^0.2.0",
|
|
55
|
+
"@nuxt/kit": "^4.4.8",
|
|
62
56
|
"@soybeanjs/unocss-shadcn": "^0.7.0",
|
|
63
|
-
"@types/node": "^25.9.
|
|
57
|
+
"@types/node": "^25.9.2",
|
|
64
58
|
"@unocss/cli": "^66.7.0",
|
|
65
|
-
"@
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"axe-core": "^4.11.4",
|
|
70
|
-
"cac": "^7.0.0",
|
|
71
|
-
"eslint": "^10.4.1",
|
|
72
|
-
"happy-dom": "^20.9.0",
|
|
73
|
-
"lint-staged": "^17.0.5",
|
|
74
|
-
"nuxt": ">=4.4.6",
|
|
75
|
-
"oxfmt": "^0.52.0",
|
|
76
|
-
"oxlint": "^1.67.0",
|
|
77
|
-
"simple-git-hooks": "^2.13.1",
|
|
78
|
-
"tsdown": "0.22.1",
|
|
79
|
-
"tsx": "^4.22.3",
|
|
80
|
-
"typedoc": "^0.28.19",
|
|
59
|
+
"@vue/test-utils": "^2.4.11",
|
|
60
|
+
"axe-core": "^4.12.0",
|
|
61
|
+
"happy-dom": "^20.10.2",
|
|
62
|
+
"nuxt": "^4.4.8",
|
|
81
63
|
"typescript": "^6.0.3",
|
|
82
64
|
"unocss": "^66.7.0",
|
|
83
65
|
"unocss-preset-animations": "^1.3.0",
|
|
84
|
-
"unplugin-
|
|
85
|
-
"unplugin-vue": "7.2.0",
|
|
66
|
+
"unplugin-vue": "^7.2.0",
|
|
86
67
|
"unplugin-vue-components": "^32.1.0",
|
|
87
|
-
"
|
|
88
|
-
"vite-plugin-vue-meta-layouts": "^0.6.1",
|
|
89
|
-
"vitest": "^4.1.7",
|
|
68
|
+
"vitest": "npm:@voidzero-dev/vite-plus-test@latest",
|
|
90
69
|
"vue": "^3.5.35",
|
|
91
70
|
"vue-router": "^5.1.0",
|
|
92
|
-
"vue-tsc": "^3.3.
|
|
71
|
+
"vue-tsc": "^3.3.4"
|
|
93
72
|
},
|
|
94
73
|
"peerDependencies": {
|
|
95
74
|
"@nuxt/kit": "^4.3.0",
|
|
@@ -116,37 +95,13 @@
|
|
|
116
95
|
"optional": true
|
|
117
96
|
}
|
|
118
97
|
},
|
|
119
|
-
"simple-git-hooks": {
|
|
120
|
-
"commit-msg": "pnpm soy git-commit-verify",
|
|
121
|
-
"pre-commit": "pnpm typecheck && pnpm lint-staged"
|
|
122
|
-
},
|
|
123
|
-
"lint-staged": {
|
|
124
|
-
"*": "oxlint . --fix && oxfmt"
|
|
125
|
-
},
|
|
126
98
|
"scripts": {
|
|
127
|
-
"build": "
|
|
99
|
+
"build": "vp pack && pnpm build:css",
|
|
128
100
|
"build:css": "unocss 'src/styles/**/*.ts' -o dist/styles.css --minify",
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
"dev": "vite",
|
|
135
|
-
"dev:docs": "pnpm --filter @soybeanjs/ui-docs dev",
|
|
136
|
-
"fmt": "oxfmt",
|
|
137
|
-
"lint": "oxlint --fix && eslint --fix headless/ src/",
|
|
138
|
-
"preview": "vite preview",
|
|
139
|
-
"preview:docs": "pnpm --filter @soybeanjs/ui-docs preview",
|
|
140
|
-
"publish-pkg": "pnpm publish -r --access public",
|
|
141
|
-
"release": "soy release -e 'pnpm release-execute'",
|
|
142
|
-
"release-execute": "pnpm soy changelog && pnpm sui skills && pnpm sui changelog && pnpm sui changelog-translate",
|
|
143
|
-
"stub": "tsx scripts/stub.ts",
|
|
144
|
-
"sui": "tsx scripts/cli.ts",
|
|
145
|
-
"test": "vitest run",
|
|
146
|
-
"test:coverage": "vitest run --coverage",
|
|
147
|
-
"test:ui": "vitest --ui",
|
|
148
|
-
"test:watch": "vitest watch",
|
|
149
|
-
"typecheck": "vue-tsc --noEmit --skipLibCheck",
|
|
150
|
-
"upkg": "soy ncu"
|
|
101
|
+
"test": "vp test run",
|
|
102
|
+
"test:coverage": "vp test run --coverage",
|
|
103
|
+
"test:ui": "vp test --ui",
|
|
104
|
+
"test:watch": "vp test watch",
|
|
105
|
+
"typecheck": "vue-tsc --noEmit --skipLibCheck"
|
|
151
106
|
}
|
|
152
107
|
}
|