@soybeanjs/ui 0.0.19 → 0.1.0
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/dist/components/accordion/accordion.vue.d.ts +3 -3
- package/dist/components/alert/alert.vue.d.ts +4 -4
- package/dist/components/alert-dialog/alert-dialog-action.vue.d.ts +3 -3
- package/dist/components/alert-dialog/alert-dialog-cancel.vue.d.ts +3 -3
- package/dist/components/alert-dialog/alert-dialog.vue.d.ts +4 -4
- package/dist/components/avatar/avatar.vue.d.ts +7 -7
- package/dist/components/badge/badge.vue.d.ts +4 -4
- package/dist/components/breadcrumb/breadcrumb.vue.d.ts +3 -3
- package/dist/components/button/button-group.vue.d.ts +6 -6
- package/dist/components/button/button-icon.vue.d.ts +3 -3
- package/dist/components/button/button-link.vue.d.ts +6 -4
- package/dist/components/button/button-loading.vue.d.ts +3 -3
- package/dist/components/button/button.vue.d.ts +4 -4
- package/dist/components/card/card.vue.d.ts +3 -3
- package/dist/components/checkbox/checkbox-card-group.vue.d.ts +3 -3
- package/dist/components/checkbox/checkbox-card.vue.d.ts +8 -8
- package/dist/components/checkbox/checkbox-group.vue.d.ts +3 -3
- package/dist/components/checkbox/checkbox.vue.d.ts +12 -12
- package/dist/components/collapsible/collapsible.vue.d.ts +4 -4
- package/dist/components/command/command.vue.d.ts +7 -7
- package/dist/components/config-provider/config-provider.js +1 -1
- package/dist/components/config-provider/config-provider.vue.d.ts +9 -5
- package/dist/components/config-provider/context.d.ts +2 -0
- package/dist/components/config-provider/context.js +1 -1
- package/dist/components/config-provider/types.d.ts +2 -2
- package/dist/components/context-menu/context-menu-checkbox.js +1 -1
- package/dist/components/context-menu/context-menu-checkbox.vue.d.ts +8 -8
- package/dist/components/context-menu/context-menu-radio.js +1 -1
- package/dist/components/context-menu/context-menu-radio.vue.d.ts +8 -8
- package/dist/components/context-menu/context-menu-wrapper.js +1 -1
- package/dist/components/context-menu/context-menu-wrapper.vue.d.ts +11 -11
- package/dist/components/context-menu/context-menu.vue.d.ts +8 -8
- package/dist/components/context-menu/types.d.ts +2 -1
- package/dist/components/dialog/dialog-close.vue.d.ts +2 -2
- package/dist/components/dialog/dialog-pure.vue.d.ts +12 -12
- package/dist/components/dialog/dialog.vue.d.ts +12 -12
- package/dist/components/drawer/drawer-close.vue.d.ts +2 -2
- package/dist/components/drawer/drawer.vue.d.ts +12 -12
- package/dist/components/dropdown-menu/dropdown-menu-checkbox.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-checkbox.vue.d.ts +8 -8
- package/dist/components/dropdown-menu/dropdown-menu-radio.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-radio.vue.d.ts +8 -8
- package/dist/components/dropdown-menu/dropdown-menu-wrapper.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu-wrapper.vue.d.ts +11 -11
- package/dist/components/dropdown-menu/dropdown-menu.vue.d.ts +8 -8
- package/dist/components/dropdown-menu/types.d.ts +2 -1
- package/dist/components/form/form.vue.d.ts +2 -2
- package/dist/components/form/use-form.d.ts +22 -22
- package/dist/components/icon/icon.js +1 -1
- package/dist/components/icon/icon.vue.d.ts +3 -7
- package/dist/components/input/input.vue.d.ts +4 -4
- package/dist/components/kbd/kbd.vue.d.ts +3 -3
- package/dist/components/label/label.vue.d.ts +2 -2
- package/dist/components/layout/layout-trigger.vue.d.ts +2 -2
- package/dist/components/layout/layout.vue.d.ts +5 -5
- package/dist/components/link/link.js +1 -1
- package/dist/components/link/link.vue.d.ts +6 -4
- package/dist/components/list/list-item.vue.d.ts +2 -2
- package/dist/components/list/list.vue.d.ts +2 -2
- package/dist/components/menu/menu-checkbox-options.vue.d.ts +3 -3
- package/dist/components/menu/menu-option.vue.d.ts +8 -8
- package/dist/components/menu/menu-options.vue.d.ts +8 -8
- package/dist/components/menu/menu-radio-options.js +1 -1
- package/dist/components/menu/menu-radio-options.vue.d.ts +3 -3
- package/dist/components/menu/types.d.ts +1 -1
- package/dist/components/navigation-menu/navigation-menu.vue.d.ts +4 -4
- package/dist/components/number-input/number-input.vue.d.ts +4 -4
- package/dist/components/pagination/pagination.vue.d.ts +4 -4
- package/dist/components/password/password.vue.d.ts +4 -4
- package/dist/components/popover/popover.vue.d.ts +11 -11
- package/dist/components/radio-group/radio-card-group.vue.d.ts +3 -3
- package/dist/components/radio-group/radio-card.vue.d.ts +2 -2
- package/dist/components/radio-group/radio-group.vue.d.ts +3 -3
- package/dist/components/radio-group/radio.vue.d.ts +2 -2
- package/dist/components/segment/segment.vue.d.ts +3 -3
- package/dist/components/select/select.vue.d.ts +7 -7
- package/dist/components/separator/separator.vue.d.ts +5 -5
- package/dist/components/switch/switch.vue.d.ts +25 -25
- package/dist/components/tabs/tabs.vue.d.ts +3 -3
- package/dist/components/tag/tag.vue.d.ts +4 -4
- package/dist/components/textarea/textarea.vue.d.ts +4 -4
- package/dist/components/toast/context.js +1 -1
- package/dist/components/toast/toast-provider.js +1 -1
- package/dist/components/toast/types.d.ts +0 -1
- package/dist/components/tooltip/tooltip.vue.d.ts +7 -7
- package/dist/components/tree/tree-virtualizer.vue.d.ts +5 -5
- package/dist/components/tree/tree.vue.d.ts +5 -5
- package/dist/components/tree-menu/tree-menu-styled-item.vue.d.ts +2 -2
- package/dist/components/tree-menu/tree-menu.vue.d.ts +3 -3
- package/dist/components/virtualizer/virtualizer.vue.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/styles.css +7 -1
- package/dist/variants/badge.d.ts +3 -3
- package/dist/variants/button.d.ts +3 -3
- package/dist/variants/checkbox.d.ts +3 -3
- package/dist/variants/kbd.d.ts +3 -3
- package/dist/variants/layout.js +1 -1
- package/dist/variants/menu.js +1 -1
- package/dist/variants/pagination.d.ts +3 -3
- package/dist/variants/radio-group.d.ts +3 -3
- package/dist/variants/separator.d.ts +3 -3
- package/dist/variants/switch.d.ts +3 -3
- package/dist/variants/tabs.d.ts +3 -3
- package/dist/variants/tabs.js +1 -1
- package/dist/variants/tag.d.ts +3 -3
- package/dist/variants/textarea.d.ts +3 -3
- package/package.json +5 -5
|
@@ -13,6 +13,7 @@ interface DropdownMenuWrapperProps extends DropdownMenuRootProps {
|
|
|
13
13
|
ui?: Partial<MenuExtendedUi>;
|
|
14
14
|
disabled?: boolean;
|
|
15
15
|
placement?: Placement;
|
|
16
|
+
indicatorPosition?: 'start' | 'end';
|
|
16
17
|
showArrow?: boolean;
|
|
17
18
|
triggerProps?: DropdownMenuTriggerProps;
|
|
18
19
|
portalProps?: DropdownMenuPortalProps;
|
|
@@ -21,7 +22,7 @@ interface DropdownMenuWrapperProps extends DropdownMenuRootProps {
|
|
|
21
22
|
arrowProps?: DropdownMenuArrowProps;
|
|
22
23
|
}
|
|
23
24
|
type DropdownMenuWrapperEmits = DropdownMenuRootEmits & DropdownMenuContentEmits;
|
|
24
|
-
interface DropdownMenuProps<T extends DefinedValue = DefinedValue, S extends MenuOptionData<T> = MenuOptionData<T>> extends DropdownMenuWrapperProps, MenuOptionsProps<T, S> {}
|
|
25
|
+
interface DropdownMenuProps<T extends DefinedValue = DefinedValue, S extends MenuOptionData<T> = MenuOptionData<T>> extends Omit<DropdownMenuWrapperProps, 'indicatorPosition'>, MenuOptionsProps<T, S> {}
|
|
25
26
|
type DropdownMenuEmits<T extends MenuOptionData = MenuOptionData> = DropdownMenuWrapperEmits & MenuOptionsEmits<T>;
|
|
26
27
|
interface DropdownMenuCheckboxProps<T extends DefinedValue = DefinedValue, S extends MenuCheckboxOptionData<T> = MenuCheckboxOptionData<T>> extends DropdownMenuWrapperProps, MenuCheckboxOptionsProps<T, S> {
|
|
27
28
|
/**
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { FormProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue63 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/form/form.vue.d.ts
|
|
5
5
|
declare var __VLS_1: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_1) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue63.DefineComponent<FormProps, {}, {}, {}, {}, vue63.ComponentOptionsMixin, vue63.ComponentOptionsMixin, {}, string, vue63.PublicProps, Readonly<FormProps> & Readonly<{}>, {}, {}, {}, {}, string, vue63.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FormFieldArrayComponent, FormFieldComponent } from "./types.js";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as vue68 from "vue";
|
|
3
|
+
import * as _soybeanjs_headless1 from "@soybeanjs/headless";
|
|
4
4
|
import { FormValues, InferStandardSchemaInput, Path, StandardSchemaV1, UseFormOptions } from "@soybeanjs/headless";
|
|
5
5
|
|
|
6
6
|
//#region src/components/form/use-form.d.ts
|
|
@@ -9,36 +9,36 @@ declare function useForm$1<S extends StandardSchemaV1<FormValues, FormValues>>(o
|
|
|
9
9
|
SFormFieldArray: FormFieldArrayComponent<InferStandardSchemaInput<S>>;
|
|
10
10
|
handleSubmit: (event?: Event) => void;
|
|
11
11
|
handleReset: (event?: Event) => void;
|
|
12
|
-
useFieldArray: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name, opts?:
|
|
13
|
-
useField: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name, opts?:
|
|
14
|
-
dirty:
|
|
12
|
+
useFieldArray: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name, opts?: _soybeanjs_headless1.FormRegisterOptions<_soybeanjs_headless1.PathValue<InferStandardSchemaInput<S>, Name>> | undefined) => vue68.Ref<_soybeanjs_headless1.FormFieldArrayStates<InferStandardSchemaInput<S>, Name>, _soybeanjs_headless1.FormFieldArrayStates<InferStandardSchemaInput<S>, Name>>;
|
|
13
|
+
useField: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name, opts?: _soybeanjs_headless1.FormRegisterOptions<_soybeanjs_headless1.PathValue<InferStandardSchemaInput<S>, Name>> | undefined) => vue68.Ref<_soybeanjs_headless1.FormFieldState<InferStandardSchemaInput<S>, Name>, _soybeanjs_headless1.FormFieldState<InferStandardSchemaInput<S>, Name>>;
|
|
14
|
+
dirty: vue68.ComputedRef<boolean>;
|
|
15
15
|
setSubmitting: (isSubmitting: boolean) => void;
|
|
16
|
-
registerField: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name, opts?:
|
|
17
|
-
registerFieldArray: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name, opts?:
|
|
16
|
+
registerField: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name, opts?: _soybeanjs_headless1.FormRegisterOptions<_soybeanjs_headless1.PathValue<InferStandardSchemaInput<S>, Name>> | undefined) => vue68.Ref<_soybeanjs_headless1.FormFieldState<InferStandardSchemaInput<S>, Name>, _soybeanjs_headless1.FormFieldState<InferStandardSchemaInput<S>, Name>>;
|
|
17
|
+
registerFieldArray: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name, opts?: _soybeanjs_headless1.FormRegisterOptions<_soybeanjs_headless1.PathValue<InferStandardSchemaInput<S>, Name>> | undefined) => vue68.Ref<_soybeanjs_headless1.FormFieldState<InferStandardSchemaInput<S>, Name>, _soybeanjs_headless1.FormFieldState<InferStandardSchemaInput<S>, Name>>;
|
|
18
18
|
validateField: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name) => Promise<string | undefined | void>;
|
|
19
|
-
getFieldValue: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name) =>
|
|
20
|
-
getFieldMeta: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name) =>
|
|
19
|
+
getFieldValue: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name) => vue68.WritableComputedRef<_soybeanjs_headless1.PathValue<InferStandardSchemaInput<S>, Name>, _soybeanjs_headless1.PathValue<InferStandardSchemaInput<S>, Name>>;
|
|
20
|
+
getFieldMeta: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name) => vue68.Ref<_soybeanjs_headless1.FormFieldMeta>;
|
|
21
21
|
getFieldError: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name) => string | undefined;
|
|
22
22
|
getFieldTouched: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name) => boolean | undefined;
|
|
23
23
|
getFieldDirty: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name) => boolean;
|
|
24
|
-
getFieldState: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name) =>
|
|
25
|
-
setValues: (values: InferStandardSchemaInput<S>, shouldValidate?: boolean) => Promise<void> | Promise<
|
|
26
|
-
setErrors: (errors:
|
|
27
|
-
setFieldValue: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name, value:
|
|
24
|
+
getFieldState: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name) => vue68.Ref<_soybeanjs_headless1.FormFieldState<InferStandardSchemaInput<S>, Name>, _soybeanjs_headless1.FormFieldState<InferStandardSchemaInput<S>, Name>>;
|
|
25
|
+
setValues: (values: InferStandardSchemaInput<S>, shouldValidate?: boolean) => Promise<void> | Promise<_soybeanjs_headless1.FormErrors<InferStandardSchemaInput<S>>>;
|
|
26
|
+
setErrors: (errors: _soybeanjs_headless1.FormErrors<InferStandardSchemaInput<S>>) => void;
|
|
27
|
+
setFieldValue: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name, value: _soybeanjs_headless1.PathValue<InferStandardSchemaInput<S>, Name>, shouldValidate?: boolean) => Promise<void> | Promise<_soybeanjs_headless1.FormErrors<InferStandardSchemaInput<S>>>;
|
|
28
28
|
setFieldTouched: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name, touched: boolean) => void;
|
|
29
29
|
setFieldError: <Name extends Path<InferStandardSchemaInput<S>>>(name: Name, error: string | undefined) => void;
|
|
30
|
-
setFieldArrayValue: <Name extends Path<InferStandardSchemaInput<S>>, Method extends (...args: any) => any>(name: Name, value:
|
|
30
|
+
setFieldArrayValue: <Name extends Path<InferStandardSchemaInput<S>>, Method extends (...args: any) => any>(name: Name, value: _soybeanjs_headless1.PathValue<InferStandardSchemaInput<S>, Name>, method: Method, args?: Partial<{
|
|
31
31
|
argA: Parameters<Method>[1];
|
|
32
32
|
argB: Parameters<Method>[2];
|
|
33
|
-
}> | undefined, shouldSetValue?: boolean) => Promise<void> | Promise<
|
|
34
|
-
validateForm: (values?: InferStandardSchemaInput<S> | undefined) => Promise<
|
|
35
|
-
resetForm: (nextState?:
|
|
33
|
+
}> | undefined, shouldSetValue?: boolean) => Promise<void> | Promise<_soybeanjs_headless1.FormErrors<InferStandardSchemaInput<S>>>;
|
|
34
|
+
validateForm: (values?: InferStandardSchemaInput<S> | undefined) => Promise<_soybeanjs_headless1.FormErrors<InferStandardSchemaInput<S>>>;
|
|
35
|
+
resetForm: (nextState?: _soybeanjs_headless1.FormResetState<InferStandardSchemaInput<S>> | undefined) => void;
|
|
36
36
|
values: InferStandardSchemaInput<S>;
|
|
37
|
-
touched:
|
|
38
|
-
errors:
|
|
39
|
-
submitCount:
|
|
40
|
-
isSubmitting:
|
|
41
|
-
isValidating:
|
|
37
|
+
touched: vue68.Ref<_soybeanjs_headless1.FormTouched<InferStandardSchemaInput<S>>, _soybeanjs_headless1.FormTouched<InferStandardSchemaInput<S>>>;
|
|
38
|
+
errors: vue68.Ref<_soybeanjs_headless1.FormErrors<InferStandardSchemaInput<S>>, _soybeanjs_headless1.FormErrors<InferStandardSchemaInput<S>>>;
|
|
39
|
+
submitCount: vue68.ShallowRef<number>;
|
|
40
|
+
isSubmitting: vue68.ShallowRef<boolean>;
|
|
41
|
+
isValidating: vue68.ShallowRef<boolean>;
|
|
42
42
|
};
|
|
43
43
|
//#endregion
|
|
44
44
|
export { useForm$1 as useForm };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useConfigProvider as e}from"../config-provider/context.js";import{computed as t,createBlock as n,defineComponent as r,mergeProps as i,normalizeStyle as a,openBlock as o,resolveDynamicComponent as s,unref as c}from"vue";import{Icon as l}from"@iconify/vue";var u=r({name:`SIcon`,__name:`icon`,props:{icon:{},ssr:{type:Boolean},customise:{},id:{},style:{},title:{},mode:{},color:{},flip:{},horizontalFlip:{type:Boolean},verticalFlip:{type:Boolean},rotate:{},hFlip:{type:Boolean},vFlip:{type:Boolean},width:{
|
|
1
|
+
import{useConfigProvider as e}from"../config-provider/context.js";import{computed as t,createBlock as n,defineComponent as r,mergeProps as i,normalizeStyle as a,openBlock as o,resolveDynamicComponent as s,unref as c}from"vue";import{Icon as l}from"@iconify/vue";var u=r({name:`SIcon`,__name:`icon`,props:{icon:{},ssr:{type:Boolean},customise:{type:Function},id:{},style:{},title:{},mode:{},color:{},flip:{},horizontalFlip:{type:Boolean},verticalFlip:{type:Boolean},rotate:{},hFlip:{type:Boolean},vFlip:{type:Boolean},width:{},height:{},inline:{type:Boolean},ariaHidden:{type:Boolean}},setup(r){let u=r,d=e(),f=t(()=>{let{width:e,height:t}=u,n=d?.iconify?.value||{};return{width:e||n.width,height:t||n.height}}),p=t(()=>({...u,...f.value}));function m(e){return typeof e==`string`||typeof e==`object`&&`body`in e}return(e,t)=>m(r.icon)?(o(),n(c(l),i({key:0},p.value,{icon:r.icon,style:{"flex-shrink":`0`}}),null,16,[`icon`])):(o(),n(s(r.icon),{key:1,style:a([{"flex-shrink":`0`},{width:f.value.width,height:f.value.height}])},null,8,[`style`]))}});export{u as default};
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { IconProps
|
|
2
|
-
import * as
|
|
3
|
-
import * as _iconify_vue0 from "@iconify/vue";
|
|
1
|
+
import { IconProps } from "./types.js";
|
|
2
|
+
import * as vue174 from "vue";
|
|
4
3
|
|
|
5
4
|
//#region src/components/icon/icon.vue.d.ts
|
|
6
|
-
declare const __VLS_export:
|
|
7
|
-
height: _iconify_vue0.IconifyIconSize;
|
|
8
|
-
width: _iconify_vue0.IconifyIconSize;
|
|
9
|
-
}, {}, {}, {}, string, vue173.ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const __VLS_export: vue174.DefineComponent<IconProps, {}, {}, {}, {}, vue174.ComponentOptionsMixin, vue174.ComponentOptionsMixin, {}, string, vue174.PublicProps, Readonly<IconProps> & Readonly<{}>, {}, {}, {}, {}, string, vue174.ComponentProvideOptions, false, {}, any>;
|
|
10
6
|
declare const _default: typeof __VLS_export;
|
|
11
7
|
//#endregion
|
|
12
8
|
export { _default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InputProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue58 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/input/input.vue.d.ts
|
|
5
5
|
declare var __VLS_10: {}, __VLS_24: {};
|
|
@@ -8,11 +8,11 @@ type __VLS_Slots = {} & {
|
|
|
8
8
|
} & {
|
|
9
9
|
trailing?: (props: typeof __VLS_24) => any;
|
|
10
10
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
11
|
+
declare const __VLS_base: vue58.DefineComponent<InputProps, {}, {}, {}, {}, vue58.ComponentOptionsMixin, vue58.ComponentOptionsMixin, {
|
|
12
12
|
"update:modelValue": (value: string) => any;
|
|
13
|
-
}, string,
|
|
13
|
+
}, string, vue58.PublicProps, Readonly<InputProps> & Readonly<{
|
|
14
14
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
15
|
-
}>, {}, {}, {}, {}, string,
|
|
15
|
+
}>, {}, {}, {}, {}, string, vue58.ComponentProvideOptions, false, {}, any>;
|
|
16
16
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
17
|
declare const _default: typeof __VLS_export;
|
|
18
18
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { KbdProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue188 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/kbd/kbd.vue.d.ts
|
|
5
|
-
declare const __VLS_export:
|
|
5
|
+
declare const __VLS_export: vue188.DefineComponent<KbdProps, {}, {}, {}, {}, vue188.ComponentOptionsMixin, vue188.ComponentOptionsMixin, {}, string, vue188.PublicProps, Readonly<KbdProps> & Readonly<{}>, {
|
|
6
6
|
symbolize: boolean;
|
|
7
|
-
}, {}, {}, {}, string,
|
|
7
|
+
}, {}, {}, {}, string, vue188.ComponentProvideOptions, false, {}, any>;
|
|
8
8
|
declare const _default: typeof __VLS_export;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { _default };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { LabelProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue83 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/label/label.vue.d.ts
|
|
5
5
|
declare var __VLS_8: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_8) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue83.DefineComponent<LabelProps, {}, {}, {}, {}, vue83.ComponentOptionsMixin, vue83.ComponentOptionsMixin, {}, string, vue83.PublicProps, Readonly<LabelProps> & Readonly<{}>, {}, {}, {}, {}, string, vue83.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue268 from "vue";
|
|
2
2
|
import { LayoutTriggerProps } from "@soybeanjs/headless";
|
|
3
3
|
|
|
4
4
|
//#region src/components/layout/layout-trigger.vue.d.ts
|
|
@@ -6,7 +6,7 @@ declare var __VLS_8: {};
|
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_8) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue268.DefineComponent<LayoutTriggerProps, {}, {}, {}, {}, vue268.ComponentOptionsMixin, vue268.ComponentOptionsMixin, {}, string, vue268.PublicProps, Readonly<LayoutTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, vue268.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ThemeSize } from "../../theme/types.js";
|
|
2
2
|
import "../../theme/index.js";
|
|
3
3
|
import { LayoutProps } from "./types.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vue258 from "vue";
|
|
5
5
|
|
|
6
6
|
//#region src/components/layout/layout.vue.d.ts
|
|
7
7
|
declare var __VLS_16: {
|
|
@@ -19,14 +19,14 @@ type __VLS_Slots = {} & {
|
|
|
19
19
|
} & {
|
|
20
20
|
footer?: (props: typeof __VLS_53) => any;
|
|
21
21
|
};
|
|
22
|
-
declare const __VLS_base:
|
|
22
|
+
declare const __VLS_base: vue258.DefineComponent<LayoutProps, {}, {}, {}, {}, vue258.ComponentOptionsMixin, vue258.ComponentOptionsMixin, {
|
|
23
23
|
"update:open": (open: boolean) => any;
|
|
24
|
-
}, string,
|
|
24
|
+
}, string, vue258.PublicProps, Readonly<LayoutProps> & Readonly<{
|
|
25
25
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
26
26
|
}>, {
|
|
27
|
-
size: ThemeSize;
|
|
28
27
|
open: boolean;
|
|
29
|
-
|
|
28
|
+
size: ThemeSize;
|
|
29
|
+
}, {}, {}, {}, string, vue258.ComponentProvideOptions, false, {}, any>;
|
|
30
30
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
31
31
|
declare const _default: typeof __VLS_export;
|
|
32
32
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{cn as e}from"../../theme/merge.js";import{linkVariants as t}from"../../variants/link.js";import{computed as n,createBlock as r,defineComponent as i,
|
|
1
|
+
import{cn as e}from"../../theme/merge.js";import{linkVariants as t}from"../../variants/link.js";import{computed as n,createBlock as r,defineComponent as i,guardReactiveProps as a,mergeProps as o,normalizeProps as s,openBlock as c,renderSlot as l,unref as u,withCtx as d}from"vue";import{Link as f}from"@soybeanjs/headless";var p=i({name:`SLink`,__name:`link`,props:{class:{},to:{},href:{},disabled:{type:Boolean,default:void 0},inactiveClass:{},external:{type:Boolean,default:void 0},target:{},rel:{},noRel:{type:Boolean,default:void 0},prefetchedClass:{},prefetch:{type:Boolean,default:void 0},prefetchOn:{},noPrefetch:{type:Boolean,default:void 0},trailingSlash:{},asChild:{type:Boolean},as:{},custom:{type:Boolean,default:void 0},activeClass:{},exactActiveClass:{},ariaCurrentValue:{},viewTransition:{type:Boolean,default:void 0},replace:{type:Boolean,default:void 0}},setup(i){let p=i,m=t(),h=n(()=>e(m,p.class));return(e,t)=>(c(),r(u(f),o(p,{class:h.value}),{default:d(t=>[l(e.$slots,`default`,s(a(t)))]),_:3},16,[`class`]))}});export{p as default};
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import { LinkProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue95 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/link/link.vue.d.ts
|
|
5
5
|
declare var __VLS_8: {
|
|
6
6
|
isHref: boolean;
|
|
7
|
+
isActive?: boolean;
|
|
8
|
+
isExactActive?: boolean;
|
|
7
9
|
};
|
|
8
10
|
type __VLS_Slots = {} & {
|
|
9
11
|
default?: (props: typeof __VLS_8) => any;
|
|
10
12
|
};
|
|
11
|
-
declare const __VLS_base:
|
|
13
|
+
declare const __VLS_base: vue95.DefineComponent<LinkProps, {}, {}, {}, {}, vue95.ComponentOptionsMixin, vue95.ComponentOptionsMixin, {}, string, vue95.PublicProps, Readonly<LinkProps> & Readonly<{}>, {
|
|
12
14
|
disabled: boolean;
|
|
13
|
-
replace: boolean;
|
|
14
15
|
custom: boolean;
|
|
15
16
|
viewTransition: boolean;
|
|
17
|
+
replace: boolean;
|
|
16
18
|
external: boolean;
|
|
17
19
|
noRel: boolean;
|
|
18
20
|
prefetch: boolean;
|
|
19
21
|
noPrefetch: boolean;
|
|
20
|
-
}, {}, {}, {}, string,
|
|
22
|
+
}, {}, {}, {}, string, vue95.ComponentProvideOptions, false, {}, any>;
|
|
21
23
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
22
24
|
declare const _default: typeof __VLS_export;
|
|
23
25
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ListItemProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue295 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/list/list-item.vue.d.ts
|
|
5
5
|
declare var __VLS_8: {}, __VLS_22: {}, __VLS_30: {}, __VLS_32: {}, __VLS_34: {};
|
|
@@ -14,7 +14,7 @@ type __VLS_Slots = {} & {
|
|
|
14
14
|
} & {
|
|
15
15
|
trailing?: (props: typeof __VLS_34) => any;
|
|
16
16
|
};
|
|
17
|
-
declare const __VLS_base:
|
|
17
|
+
declare const __VLS_base: vue295.DefineComponent<ListItemProps, {}, {}, {}, {}, vue295.ComponentOptionsMixin, vue295.ComponentOptionsMixin, {}, string, vue295.PublicProps, Readonly<ListItemProps> & Readonly<{}>, {}, {}, {}, {}, string, vue295.ComponentProvideOptions, false, {}, any>;
|
|
18
18
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
19
|
declare const _default: typeof __VLS_export;
|
|
20
20
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ListProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue290 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/list/list.vue.d.ts
|
|
5
5
|
declare var __VLS_8: {};
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_8) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base:
|
|
9
|
+
declare const __VLS_base: vue290.DefineComponent<ListProps, {}, {}, {}, {}, vue290.ComponentOptionsMixin, vue290.ComponentOptionsMixin, {}, string, vue290.PublicProps, Readonly<ListProps> & Readonly<{}>, {}, {}, {}, {}, string, vue290.ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
11
|
declare const _default: typeof __VLS_export;
|
|
12
12
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { MenuCheckboxOptionData, MenuCheckboxOptionsProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue125 from "vue";
|
|
3
3
|
import { DefinedValue } from "@soybeanjs/headless";
|
|
4
4
|
|
|
5
5
|
//#region src/components/menu/menu-checkbox-options.vue.d.ts
|
|
6
6
|
declare const __VLS_export: <T extends DefinedValue = DefinedValue, S extends MenuCheckboxOptionData<T> = MenuCheckboxOptionData<T>>(__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<{
|
|
7
|
-
props:
|
|
7
|
+
props: vue125.PublicProps & __VLS_PrettifyLocal<MenuCheckboxOptionsProps<T, S> & {
|
|
8
8
|
onSelect?: ((item: S, event: Event) => any) | undefined;
|
|
9
9
|
"onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
|
|
10
10
|
}> & (typeof globalThis extends {
|
|
@@ -19,7 +19,7 @@ declare const __VLS_export: <T extends DefinedValue = DefinedValue, S extends Me
|
|
|
19
19
|
'item-indicator-icon': (props: S) => any;
|
|
20
20
|
};
|
|
21
21
|
emit: ((evt: "select", item: S, event: Event) => void) & ((evt: "update:modelValue", value: T[]) => void);
|
|
22
|
-
}>) =>
|
|
22
|
+
}>) => vue125.VNode & {
|
|
23
23
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
24
24
|
};
|
|
25
25
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { MenuOptionData, MenuOptionProps } from "./types.js";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as vue121 from "vue";
|
|
3
|
+
import * as _soybeanjs_headless46 from "@soybeanjs/headless";
|
|
4
4
|
import { DefinedValue } from "@soybeanjs/headless";
|
|
5
5
|
|
|
6
6
|
//#region src/components/menu/menu-option.vue.d.ts
|
|
7
7
|
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<{
|
|
8
|
-
props:
|
|
8
|
+
props: vue121.PublicProps & __VLS_PrettifyLocal<MenuOptionProps<T> & {
|
|
9
9
|
onSelect?: ((item: MenuOptionData<T>, event: Event) => any) | undefined;
|
|
10
10
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
11
11
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
12
|
-
onPointerDownOutside?: ((event:
|
|
13
|
-
onFocusOutside?: ((event:
|
|
14
|
-
onInteractOutside?: ((event:
|
|
12
|
+
onPointerDownOutside?: ((event: _soybeanjs_headless46.PointerDownOutsideEvent) => any) | undefined;
|
|
13
|
+
onFocusOutside?: ((event: _soybeanjs_headless46.FocusOutsideEvent) => any) | undefined;
|
|
14
|
+
onInteractOutside?: ((event: _soybeanjs_headless46.PointerDownOutsideEvent | _soybeanjs_headless46.FocusOutsideEvent) => any) | undefined;
|
|
15
15
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
16
16
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
17
17
|
onEntryFocus?: ((event: Event) => any) | undefined;
|
|
@@ -38,8 +38,8 @@ declare const __VLS_export: <T extends DefinedValue = DefinedValue>(__VLS_props:
|
|
|
38
38
|
item: MenuOptionData<T>;
|
|
39
39
|
}) => any;
|
|
40
40
|
};
|
|
41
|
-
emit: ((evt: "select", item: MenuOptionData<T>, event: Event) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event:
|
|
42
|
-
}>) =>
|
|
41
|
+
emit: ((evt: "select", item: MenuOptionData<T>, event: Event) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: _soybeanjs_headless46.PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: _soybeanjs_headless46.FocusOutsideEvent) => void) & ((evt: "interactOutside", event: _soybeanjs_headless46.PointerDownOutsideEvent | _soybeanjs_headless46.FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void) & ((evt: "entryFocus", event: Event) => void);
|
|
42
|
+
}>) => vue121.VNode & {
|
|
43
43
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
44
44
|
};
|
|
45
45
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { MenuOptionData, MenuOptionsProps } from "./types.js";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as vue123 from "vue";
|
|
3
|
+
import * as _soybeanjs_headless54 from "@soybeanjs/headless";
|
|
4
4
|
import { DefinedValue } from "@soybeanjs/headless";
|
|
5
5
|
|
|
6
6
|
//#region src/components/menu/menu-options.vue.d.ts
|
|
7
7
|
declare const __VLS_export: <T extends DefinedValue = DefinedValue, S extends MenuOptionData<T> = MenuOptionData<T>>(__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<{
|
|
8
|
-
props:
|
|
8
|
+
props: vue123.PublicProps & __VLS_PrettifyLocal<MenuOptionsProps<T, S> & {
|
|
9
9
|
onSelect?: ((item: S, event: Event) => any) | undefined;
|
|
10
10
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
11
11
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
12
|
-
onPointerDownOutside?: ((event:
|
|
13
|
-
onFocusOutside?: ((event:
|
|
14
|
-
onInteractOutside?: ((event:
|
|
12
|
+
onPointerDownOutside?: ((event: _soybeanjs_headless54.PointerDownOutsideEvent) => any) | undefined;
|
|
13
|
+
onFocusOutside?: ((event: _soybeanjs_headless54.FocusOutsideEvent) => any) | undefined;
|
|
14
|
+
onInteractOutside?: ((event: _soybeanjs_headless54.PointerDownOutsideEvent | _soybeanjs_headless54.FocusOutsideEvent) => any) | undefined;
|
|
15
15
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
16
16
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
17
17
|
onEntryFocus?: ((event: Event) => any) | undefined;
|
|
@@ -38,8 +38,8 @@ declare const __VLS_export: <T extends DefinedValue = DefinedValue, S extends Me
|
|
|
38
38
|
item: MenuOptionData<T>;
|
|
39
39
|
}) => any;
|
|
40
40
|
};
|
|
41
|
-
emit: ((evt: "select", item: S, event: Event) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event:
|
|
42
|
-
}>) =>
|
|
41
|
+
emit: ((evt: "select", item: S, event: Event) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: _soybeanjs_headless54.PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: _soybeanjs_headless54.FocusOutsideEvent) => void) & ((evt: "interactOutside", event: _soybeanjs_headless54.PointerDownOutsideEvent | _soybeanjs_headless54.FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void) & ((evt: "entryFocus", event: Event) => void);
|
|
42
|
+
}>) => vue123.VNode & {
|
|
43
43
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
44
44
|
};
|
|
45
45
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import e from"../icon/icon.js";import t from"../kbd/kbd.js";import n from"./menu-item-slot.js";import{useCommonSlotKeys as r}from"./shared.js";import{useMenuExtraUi as i}from"./context.js";import{Fragment as a,createBlock as o,createCommentVNode as s,createElementBlock as c,createSlots as l,createVNode as u,defineComponent as d,mergeProps as f,
|
|
1
|
+
import e from"../icon/icon.js";import t from"../kbd/kbd.js";import n from"./menu-item-slot.js";import{useCommonSlotKeys as r}from"./shared.js";import{useMenuExtraUi as i}from"./context.js";import{Fragment as a,createBlock as o,createCommentVNode as s,createElementBlock as c,createSlots as l,createVNode as u,defineComponent as d,mergeProps as f,openBlock as p,renderList as m,renderSlot as h,unref as g,useSlots as _,withCtx as v}from"vue";import{useOmitProps as y}from"@soybeanjs/headless/composables";import{MenuGroupLabel as b,MenuItemIndicator as x,MenuRadioGroup as S,MenuRadioItem as C,MenuSeparator as w}from"@soybeanjs/headless";var T=d({name:`SMenuRadio`,__name:`menu-radio-options`,props:{items:{},groupLabelProps:{},radioItemProps:{},indicatorProps:{},shortcutProps:{},separatorProps:{},modelValue:{},defaultValue:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{}},emits:[`update:modelValue`,`select`],setup(d,{emit:T}){let E=d,D=T,O=r(_()),k=y(E,[`items`,`radioItemProps`,`groupLabelProps`,`indicatorProps`]),A=i();return(r,i)=>(p(),o(g(S),f(g(k),{"onUpdate:modelValue":i[0]||=e=>D(`update:modelValue`,e)}),{default:v(()=>[(p(!0),c(a,null,m(d.items,i=>(p(),c(a,{key:i.value},[i.isGroupLabel?(p(),o(g(b),f({key:0,ref_for:!0},d.groupLabelProps),{default:v(()=>[u(n,{icon:i.icon,label:i.label},l({_:2},[m(g(O),e=>({name:e,fn:v(()=>[h(r.$slots,e,f({ref_for:!0},i))])}))]),1032,[`icon`,`label`])]),_:2},1040)):(p(),o(g(C),f({key:1,ref_for:!0},d.radioItemProps,{value:i.value,disabled:i.disabled,"text-value":i.textValue,onSelect:e=>D(`select`,i,e)}),{default:v(()=>[u(n,{icon:i.icon,label:i.label},l({indicator:v(()=>[u(g(x),f({ref_for:!0},d.indicatorProps),{default:v(()=>[h(r.$slots,`item-indicator-icon`,f({ref_for:!0},i),()=>[u(e,{icon:`icon-park-outline:dot`})])]),_:2},1040)]),shortcut:v(()=>[i.shortcut?(p(),o(t,f({key:0,ref_for:!0},d.shortcutProps,{value:i.shortcut,class:g(A).shortcut}),null,16,[`value`,`class`])):s(`v-if`,!0)]),_:2},[m(g(O),e=>({name:e,fn:v(()=>[h(r.$slots,e,f({ref_for:!0},i))])}))]),1032,[`icon`,`label`])]),_:2},1040,[`value`,`disabled`,`text-value`,`onSelect`])),i.separator?(p(),o(g(w),f({key:2,ref_for:!0},d.separatorProps),null,16)):s(`v-if`,!0)],64))),128))]),_:3},16))}});export{T as default};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { MenuRadioOptionData, MenuRadioOptionsProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue127 from "vue";
|
|
3
3
|
import { AcceptableBooleanValue } from "@soybeanjs/headless";
|
|
4
4
|
|
|
5
5
|
//#region src/components/menu/menu-radio-options.vue.d.ts
|
|
6
6
|
declare const __VLS_export: <T extends AcceptableBooleanValue = AcceptableBooleanValue, S extends MenuRadioOptionData<T> = MenuRadioOptionData<T>>(__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<{
|
|
7
|
-
props:
|
|
7
|
+
props: vue127.PublicProps & __VLS_PrettifyLocal<MenuRadioOptionsProps<T, S> & {
|
|
8
8
|
onSelect?: ((item: S, event: Event) => any) | undefined;
|
|
9
9
|
"onUpdate:modelValue"?: ((payload: NonNullable<T>) => any) | undefined;
|
|
10
10
|
}> & (typeof globalThis extends {
|
|
@@ -19,7 +19,7 @@ declare const __VLS_export: <T extends AcceptableBooleanValue = AcceptableBoolea
|
|
|
19
19
|
'item-indicator-icon': (props: S) => any;
|
|
20
20
|
};
|
|
21
21
|
emit: ((evt: "select", item: S, event: Event) => void) & ((evt: "update:modelValue", payload: NonNullable<T>) => void);
|
|
22
|
-
}>) =>
|
|
22
|
+
}>) => vue127.VNode & {
|
|
23
23
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
24
24
|
};
|
|
25
25
|
declare const _default: typeof __VLS_export;
|
|
@@ -35,7 +35,7 @@ interface MenuOptionData<T = DefinedValue> extends Pick<MenuItemProps, 'disabled
|
|
|
35
35
|
children?: MenuOptionData<T>[];
|
|
36
36
|
}
|
|
37
37
|
interface MenuShortcutProps extends Omit<KbdProps$1, 'value'> {}
|
|
38
|
-
type MenuExtraUiSlot = 'subTriggerIcon' | 'itemLinkIcon' | 'shortcut'
|
|
38
|
+
type MenuExtraUiSlot = 'subTriggerIcon' | 'itemLinkIcon' | 'shortcut';
|
|
39
39
|
type MenuExtraUi = UiClass<MenuExtraUiSlot>;
|
|
40
40
|
type MenuExtendedUi = MenuUi & MenuExtraUi;
|
|
41
41
|
interface MenuOptionProps<T extends DefinedValue = DefinedValue> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NavigationMenuOptionData, NavigationMenuProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue248 from "vue";
|
|
3
3
|
import * as _soybeanjs_headless184 from "@soybeanjs/headless";
|
|
4
4
|
|
|
5
5
|
//#region src/components/navigation-menu/navigation-menu.vue.d.ts
|
|
@@ -25,7 +25,7 @@ type Slots = {
|
|
|
25
25
|
}) => any;
|
|
26
26
|
};
|
|
27
27
|
type __VLS_Slots = Slots;
|
|
28
|
-
declare const __VLS_base:
|
|
28
|
+
declare const __VLS_base: vue248.DefineComponent<NavigationMenuProps, {}, {}, {}, {}, vue248.ComponentOptionsMixin, vue248.ComponentOptionsMixin, {
|
|
29
29
|
select: (payload: CustomEvent<{
|
|
30
30
|
originalEvent: Event;
|
|
31
31
|
}>) => any;
|
|
@@ -34,7 +34,7 @@ declare const __VLS_base: vue284.DefineComponent<NavigationMenuProps, {}, {}, {}
|
|
|
34
34
|
pointerDownOutside: (event: _soybeanjs_headless184.PointerDownOutsideEvent) => any;
|
|
35
35
|
focusOutside: (event: _soybeanjs_headless184.FocusOutsideEvent) => any;
|
|
36
36
|
interactOutside: (event: _soybeanjs_headless184.PointerDownOutsideEvent | _soybeanjs_headless184.FocusOutsideEvent) => any;
|
|
37
|
-
}, string,
|
|
37
|
+
}, string, vue248.PublicProps, Readonly<NavigationMenuProps> & Readonly<{
|
|
38
38
|
onSelect?: ((payload: CustomEvent<{
|
|
39
39
|
originalEvent: Event;
|
|
40
40
|
}>) => any) | undefined;
|
|
@@ -43,7 +43,7 @@ declare const __VLS_base: vue284.DefineComponent<NavigationMenuProps, {}, {}, {}
|
|
|
43
43
|
onPointerDownOutside?: ((event: _soybeanjs_headless184.PointerDownOutsideEvent) => any) | undefined;
|
|
44
44
|
onFocusOutside?: ((event: _soybeanjs_headless184.FocusOutsideEvent) => any) | undefined;
|
|
45
45
|
onInteractOutside?: ((event: _soybeanjs_headless184.PointerDownOutsideEvent | _soybeanjs_headless184.FocusOutsideEvent) => any) | undefined;
|
|
46
|
-
}>, {}, {}, {}, {}, string,
|
|
46
|
+
}>, {}, {}, {}, {}, string, vue248.ComponentProvideOptions, false, {}, any>;
|
|
47
47
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
48
48
|
declare const _default: typeof __VLS_export;
|
|
49
49
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NumberInputProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue243 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/number-input/number-input.vue.d.ts
|
|
5
5
|
declare var __VLS_10: {}, __VLS_24: {}, __VLS_32: {}, __VLS_45: {};
|
|
@@ -12,11 +12,11 @@ type __VLS_Slots = {} & {
|
|
|
12
12
|
} & {
|
|
13
13
|
increment?: (props: typeof __VLS_45) => any;
|
|
14
14
|
};
|
|
15
|
-
declare const __VLS_base:
|
|
15
|
+
declare const __VLS_base: vue243.DefineComponent<NumberInputProps, {}, {}, {}, {}, vue243.ComponentOptionsMixin, vue243.ComponentOptionsMixin, {
|
|
16
16
|
"update:modelValue": (val: number) => any;
|
|
17
|
-
}, string,
|
|
17
|
+
}, string, vue243.PublicProps, Readonly<NumberInputProps> & Readonly<{
|
|
18
18
|
"onUpdate:modelValue"?: ((val: number) => any) | undefined;
|
|
19
|
-
}>, {}, {}, {}, {}, string,
|
|
19
|
+
}>, {}, {}, {}, {}, string, vue243.ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
21
|
declare const _default: typeof __VLS_export;
|
|
22
22
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PaginationProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue90 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/pagination/pagination.vue.d.ts
|
|
5
5
|
declare var __VLS_22: {}, __VLS_35: {}, __VLS_53: {}, __VLS_66: {}, __VLS_79: {};
|
|
@@ -14,13 +14,13 @@ type __VLS_Slots = {} & {
|
|
|
14
14
|
} & {
|
|
15
15
|
last?: (props: typeof __VLS_79) => any;
|
|
16
16
|
};
|
|
17
|
-
declare const __VLS_base:
|
|
17
|
+
declare const __VLS_base: vue90.DefineComponent<PaginationProps, {}, {}, {}, {}, vue90.ComponentOptionsMixin, vue90.ComponentOptionsMixin, {
|
|
18
18
|
"update:page": (value: number) => any;
|
|
19
|
-
}, string,
|
|
19
|
+
}, string, vue90.PublicProps, Readonly<PaginationProps> & Readonly<{
|
|
20
20
|
"onUpdate:page"?: ((value: number) => any) | undefined;
|
|
21
21
|
}>, {
|
|
22
22
|
showFirstOrLast: boolean;
|
|
23
|
-
}, {}, {}, {}, string,
|
|
23
|
+
}, {}, {}, {}, string, vue90.ComponentProvideOptions, false, {}, any>;
|
|
24
24
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
25
|
declare const _default: typeof __VLS_export;
|
|
26
26
|
type __VLS_WithSlots<T, S> = T & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PasswordProps } from "./types.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as vue285 from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/password/password.vue.d.ts
|
|
5
5
|
declare var __VLS_10: {}, __VLS_24: {}, __VLS_26: {
|
|
@@ -13,15 +13,15 @@ type __VLS_Slots = {} & {
|
|
|
13
13
|
} & {
|
|
14
14
|
visible?: (props: typeof __VLS_26) => any;
|
|
15
15
|
};
|
|
16
|
-
declare const __VLS_base:
|
|
16
|
+
declare const __VLS_base: vue285.DefineComponent<PasswordProps, {}, {}, {}, {}, vue285.ComponentOptionsMixin, vue285.ComponentOptionsMixin, {
|
|
17
17
|
"update:modelValue": (value: string) => any;
|
|
18
18
|
"update:visible": (visible: boolean) => any;
|
|
19
|
-
}, string,
|
|
19
|
+
}, string, vue285.PublicProps, Readonly<PasswordProps> & Readonly<{
|
|
20
20
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
21
21
|
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
22
22
|
}>, {
|
|
23
23
|
visible: boolean;
|
|
24
|
-
}, {}, {}, {}, string,
|
|
24
|
+
}, {}, {}, {}, string, vue285.ComponentProvideOptions, false, {}, any>;
|
|
25
25
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
26
26
|
declare const _default: typeof __VLS_export;
|
|
27
27
|
type __VLS_WithSlots<T, S> = T & {
|