@soybeanjs/ui 0.15.0-beta.3 → 0.15.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/anchor/anchor.vue.d.ts +1 -1
- package/dist/components/backtop/backtop.vue.d.ts +2 -2
- package/dist/components/color-area/color-area.vue.d.ts +2 -2
- package/dist/components/color-picker/color-picker.vue.d.ts +5 -5
- package/dist/components/color-slider/color-slider.vue.d.ts +2 -2
- 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/context-menu/context-menu-wrapper.vue.d.ts +2 -2
- package/dist/components/context-menu/context-menu.vue.d.ts +2 -2
- package/dist/components/dialog/dialog.vue.d.ts +7 -7
- package/dist/components/drawer/drawer.vue.d.ts +7 -7
- 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/dropdown-menu/dropdown-menu-wrapper.vue.d.ts +2 -2
- package/dist/components/dropdown-menu/dropdown-menu.vue.d.ts +2 -2
- package/dist/components/editable/editable.vue.d.ts +2 -2
- package/dist/components/input-otp/input-otp.vue.d.ts +2 -2
- package/dist/components/layout/index.d.ts +4 -4
- package/dist/components/layout/index.js +1 -1
- package/dist/components/layout/layout-classic.js +1 -0
- package/dist/components/layout/layout-classic.vue.d.ts +30 -0
- package/dist/components/layout/layout.js +1 -1
- package/dist/components/layout/layout.vue.d.ts +5 -16
- package/dist/components/layout/types.d.ts +12 -30
- package/dist/components/layout/variants.js +1 -1
- package/dist/components/menubar/menubar.vue.d.ts +2 -2
- package/dist/components/page-tabs/page-tabs.vue.d.ts +2 -2
- package/dist/components/popconfirm/popconfirm.vue.d.ts +4 -4
- package/dist/components/switch/switch.vue.d.ts +3 -3
- package/dist/constants/components.js +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/styles.css +49 -19
- package/dist/theme/context.js +1 -1
- package/package.json +5 -5
- package/dist/components/layout/layout-trigger.js +0 -1
- package/dist/components/layout/layout-trigger.vue.d.ts +0 -20
|
@@ -15,8 +15,8 @@ declare const __VLS_export: _$vue.DefineComponent<AnchorProps, {}, {}, {}, {}, _
|
|
|
15
15
|
href: string;
|
|
16
16
|
}) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
|
-
offsetTop: number;
|
|
19
18
|
sticky: boolean;
|
|
19
|
+
offsetTop: number;
|
|
20
20
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
declare const _default: typeof __VLS_export;
|
|
22
22
|
//#endregion
|
|
@@ -9,11 +9,11 @@ type __VLS_Slots = {} & {
|
|
|
9
9
|
default?: (props: typeof __VLS_8) => any;
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_base: _$vue.DefineComponent<BacktopProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
12
|
-
change: (visible: boolean) => any;
|
|
13
12
|
click: (event: MouseEvent) => any;
|
|
13
|
+
change: (visible: boolean) => any;
|
|
14
14
|
}, string, _$vue.PublicProps, Readonly<BacktopProps> & Readonly<{
|
|
15
|
-
onChange?: ((visible: boolean) => any) | undefined;
|
|
16
15
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
16
|
+
onChange?: ((visible: boolean) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
18
|
icon: string;
|
|
19
19
|
size: ThemeSize;
|
|
@@ -4,13 +4,13 @@ import * as _$_soybeanjs_headless_shared0 from "@soybeanjs/headless/shared";
|
|
|
4
4
|
|
|
5
5
|
//#region src/components/color-area/color-area.vue.d.ts
|
|
6
6
|
declare const __VLS_export: _$vue.DefineComponent<ColorAreaProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
7
|
-
change: (value: string) => any;
|
|
8
7
|
"update:modelValue": (value: string) => any;
|
|
8
|
+
change: (value: string) => any;
|
|
9
9
|
"update:color": (value: _$_soybeanjs_headless_shared0.NormalizedColor) => any;
|
|
10
10
|
changeEnd: (value: string) => any;
|
|
11
11
|
}, string, _$vue.PublicProps, Readonly<ColorAreaProps> & Readonly<{
|
|
12
|
-
onChange?: ((value: string) => any) | undefined;
|
|
13
12
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
13
|
+
onChange?: ((value: string) => any) | undefined;
|
|
14
14
|
"onUpdate:color"?: ((value: _$_soybeanjs_headless_shared0.NormalizedColor) => any) | undefined;
|
|
15
15
|
onChangeEnd?: ((value: string) => any) | undefined;
|
|
16
16
|
}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -16,26 +16,26 @@ type __VLS_Slots = {} & {
|
|
|
16
16
|
trigger?: (props: typeof __VLS_11) => any;
|
|
17
17
|
};
|
|
18
18
|
declare const __VLS_base: _$vue.DefineComponent<ColorPickerProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
19
|
-
change: (value: string) => any;
|
|
20
19
|
"update:modelValue": (value: string) => any;
|
|
21
20
|
"update:open": (value: boolean) => any;
|
|
21
|
+
change: (value: string) => any;
|
|
22
22
|
"update:color": (value: _$_soybeanjs_headless_shared0.NormalizedColor) => any;
|
|
23
23
|
"update:format": (value: ColorFormat) => any;
|
|
24
24
|
}, string, _$vue.PublicProps, Readonly<ColorPickerProps> & Readonly<{
|
|
25
|
-
onChange?: ((value: string) => any) | undefined;
|
|
26
25
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
27
26
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
27
|
+
onChange?: ((value: string) => any) | undefined;
|
|
28
28
|
"onUpdate:color"?: ((value: _$_soybeanjs_headless_shared0.NormalizedColor) => any) | undefined;
|
|
29
29
|
"onUpdate:format"?: ((value: ColorFormat) => any) | undefined;
|
|
30
30
|
}>, {
|
|
31
|
-
disabled: boolean;
|
|
32
|
-
modelValue: string | ColorValue;
|
|
33
31
|
defaultValue: string | ColorValue;
|
|
32
|
+
modelValue: string | ColorValue;
|
|
33
|
+
disabled: boolean;
|
|
34
34
|
open: boolean;
|
|
35
35
|
defaultOpen: boolean;
|
|
36
|
-
modal: boolean;
|
|
37
36
|
placement: _$_soybeanjs_headless0.Placement;
|
|
38
37
|
showArrow: boolean;
|
|
38
|
+
modal: boolean;
|
|
39
39
|
format: ColorFormat;
|
|
40
40
|
defaultFormat: ColorFormat;
|
|
41
41
|
colorSpace: ColorSpace;
|
|
@@ -5,13 +5,13 @@ import * as _$_soybeanjs_headless_shared0 from "@soybeanjs/headless/shared";
|
|
|
5
5
|
|
|
6
6
|
//#region src/components/color-slider/color-slider.vue.d.ts
|
|
7
7
|
declare const __VLS_export: _$vue.DefineComponent<ColorSliderProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
8
|
-
change: (value: string) => any;
|
|
9
8
|
"update:modelValue": (value: string) => any;
|
|
9
|
+
change: (value: string) => any;
|
|
10
10
|
"update:color": (value: _$_soybeanjs_headless_shared0.NormalizedColor) => any;
|
|
11
11
|
changeEnd: (value: string) => any;
|
|
12
12
|
}, string, _$vue.PublicProps, Readonly<ColorSliderProps> & Readonly<{
|
|
13
|
-
onChange?: ((value: string) => any) | undefined;
|
|
14
13
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
14
|
+
onChange?: ((value: string) => any) | undefined;
|
|
15
15
|
"onUpdate:color"?: ((value: _$_soybeanjs_headless_shared0.NormalizedColor) => any) | undefined;
|
|
16
16
|
onChangeEnd?: ((value: string) => any) | undefined;
|
|
17
17
|
}>, {
|
|
@@ -9,20 +9,20 @@ declare const __VLS_export: <T extends DefinedValue = DefinedValue>(__VLS_props:
|
|
|
9
9
|
onSelect?: ((item: _$_soybeanjs_headless0.MenuCheckboxOptionData<T>, event: Event) => any) | undefined;
|
|
10
10
|
"onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
|
|
11
11
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
12
|
+
onEntryFocus?: ((event: Event) => any) | undefined;
|
|
12
13
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
13
14
|
onPointerDownOutside?: ((event: _$_soybeanjs_headless0.PointerDownOutsideEvent) => any) | undefined;
|
|
14
15
|
onFocusOutside?: ((event: _$_soybeanjs_headless0.FocusOutsideEvent) => any) | undefined;
|
|
15
16
|
onInteractOutside?: ((event: _$_soybeanjs_headless0.PointerDownOutsideEvent | _$_soybeanjs_headless0.FocusOutsideEvent) => any) | undefined;
|
|
16
17
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
17
18
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
18
|
-
onEntryFocus?: ((event: Event) => any) | undefined;
|
|
19
19
|
}> & (typeof globalThis extends {
|
|
20
20
|
__VLS_PROPS_FALLBACK: infer P;
|
|
21
21
|
} ? P : {});
|
|
22
22
|
expose: (exposed: {}) => void;
|
|
23
23
|
attrs: any;
|
|
24
24
|
slots: ContextMenuCheckboxSlots<T>;
|
|
25
|
-
emit: ((evt: "select", item: _$_soybeanjs_headless0.MenuCheckboxOptionData<T>, event: Event) => void) & ((evt: "update:modelValue", value: T[]) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: _$_soybeanjs_headless0.PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: _$_soybeanjs_headless0.FocusOutsideEvent) => void) & ((evt: "interactOutside", event: _$_soybeanjs_headless0.PointerDownOutsideEvent | _$_soybeanjs_headless0.FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void)
|
|
25
|
+
emit: ((evt: "select", item: _$_soybeanjs_headless0.MenuCheckboxOptionData<T>, event: Event) => void) & ((evt: "update:modelValue", value: T[]) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "entryFocus", event: Event) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: _$_soybeanjs_headless0.PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: _$_soybeanjs_headless0.FocusOutsideEvent) => void) & ((evt: "interactOutside", event: _$_soybeanjs_headless0.PointerDownOutsideEvent | _$_soybeanjs_headless0.FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void);
|
|
26
26
|
}>) => _$vue.VNode & {
|
|
27
27
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
28
28
|
};
|
|
@@ -9,20 +9,20 @@ declare const __VLS_export: <T extends AcceptableBooleanValue = AcceptableBoolea
|
|
|
9
9
|
onSelect?: ((item: _$_soybeanjs_headless0.MenuRadioOptionData<T>, event: Event) => any) | undefined;
|
|
10
10
|
"onUpdate:modelValue"?: ((payload: NonNullable<T>) => any) | undefined;
|
|
11
11
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
12
|
+
onEntryFocus?: ((event: Event) => any) | undefined;
|
|
12
13
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
13
14
|
onPointerDownOutside?: ((event: _$_soybeanjs_headless0.PointerDownOutsideEvent) => any) | undefined;
|
|
14
15
|
onFocusOutside?: ((event: _$_soybeanjs_headless0.FocusOutsideEvent) => any) | undefined;
|
|
15
16
|
onInteractOutside?: ((event: _$_soybeanjs_headless0.PointerDownOutsideEvent | _$_soybeanjs_headless0.FocusOutsideEvent) => any) | undefined;
|
|
16
17
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
17
18
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
18
|
-
onEntryFocus?: ((event: Event) => any) | undefined;
|
|
19
19
|
}> & (typeof globalThis extends {
|
|
20
20
|
__VLS_PROPS_FALLBACK: infer P;
|
|
21
21
|
} ? P : {});
|
|
22
22
|
expose: (exposed: {}) => void;
|
|
23
23
|
attrs: any;
|
|
24
24
|
slots: ContextMenuRadioSlots<T>;
|
|
25
|
-
emit: ((evt: "select", item: _$_soybeanjs_headless0.MenuRadioOptionData<T>, event: Event) => void) & ((evt: "update:modelValue", payload: NonNullable<T>) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: _$_soybeanjs_headless0.PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: _$_soybeanjs_headless0.FocusOutsideEvent) => void) & ((evt: "interactOutside", event: _$_soybeanjs_headless0.PointerDownOutsideEvent | _$_soybeanjs_headless0.FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void)
|
|
25
|
+
emit: ((evt: "select", item: _$_soybeanjs_headless0.MenuRadioOptionData<T>, event: Event) => void) & ((evt: "update:modelValue", payload: NonNullable<T>) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "entryFocus", event: Event) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: _$_soybeanjs_headless0.PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: _$_soybeanjs_headless0.FocusOutsideEvent) => void) & ((evt: "interactOutside", event: _$_soybeanjs_headless0.PointerDownOutsideEvent | _$_soybeanjs_headless0.FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void);
|
|
26
26
|
}>) => _$vue.VNode & {
|
|
27
27
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
28
28
|
};
|
|
@@ -11,22 +11,22 @@ type __VLS_Slots = {} & {
|
|
|
11
11
|
};
|
|
12
12
|
declare const __VLS_base: _$vue.DefineComponent<ContextMenuWrapperProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
13
13
|
"update:open": (value: boolean) => any;
|
|
14
|
+
entryFocus: (event: Event) => any;
|
|
14
15
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
15
16
|
pointerDownOutside: (event: _$_soybeanjs_headless0.PointerDownOutsideEvent) => any;
|
|
16
17
|
focusOutside: (event: _$_soybeanjs_headless0.FocusOutsideEvent) => any;
|
|
17
18
|
interactOutside: (event: _$_soybeanjs_headless0.PointerDownOutsideEvent | _$_soybeanjs_headless0.FocusOutsideEvent) => any;
|
|
18
19
|
openAutoFocus: (event: Event) => any;
|
|
19
20
|
closeAutoFocus: (event: Event) => any;
|
|
20
|
-
entryFocus: (event: Event) => any;
|
|
21
21
|
}, string, _$vue.PublicProps, Readonly<ContextMenuWrapperProps> & Readonly<{
|
|
22
22
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
23
|
+
onEntryFocus?: ((event: Event) => any) | undefined;
|
|
23
24
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
24
25
|
onPointerDownOutside?: ((event: _$_soybeanjs_headless0.PointerDownOutsideEvent) => any) | undefined;
|
|
25
26
|
onFocusOutside?: ((event: _$_soybeanjs_headless0.FocusOutsideEvent) => any) | undefined;
|
|
26
27
|
onInteractOutside?: ((event: _$_soybeanjs_headless0.PointerDownOutsideEvent | _$_soybeanjs_headless0.FocusOutsideEvent) => any) | undefined;
|
|
27
28
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
28
29
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
29
|
-
onEntryFocus?: ((event: Event) => any) | undefined;
|
|
30
30
|
}>, {
|
|
31
31
|
modal: boolean;
|
|
32
32
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -8,20 +8,20 @@ declare const __VLS_export: <T extends DefinedValue = DefinedValue>(__VLS_props:
|
|
|
8
8
|
props: _$vue.PublicProps & __VLS_PrettifyLocal<ContextMenuProps<T> & {
|
|
9
9
|
onSelect?: ((item: _$_soybeanjs_headless0.MenuOptionData<T>, event: Event) => any) | undefined;
|
|
10
10
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
11
|
+
onEntryFocus?: ((event: Event) => any) | undefined;
|
|
11
12
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
12
13
|
onPointerDownOutside?: ((event: _$_soybeanjs_headless0.PointerDownOutsideEvent) => any) | undefined;
|
|
13
14
|
onFocusOutside?: ((event: _$_soybeanjs_headless0.FocusOutsideEvent) => any) | undefined;
|
|
14
15
|
onInteractOutside?: ((event: _$_soybeanjs_headless0.PointerDownOutsideEvent | _$_soybeanjs_headless0.FocusOutsideEvent) => any) | undefined;
|
|
15
16
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
16
17
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
17
|
-
onEntryFocus?: ((event: Event) => any) | undefined;
|
|
18
18
|
}> & (typeof globalThis extends {
|
|
19
19
|
__VLS_PROPS_FALLBACK: infer P;
|
|
20
20
|
} ? P : {});
|
|
21
21
|
expose: (exposed: {}) => void;
|
|
22
22
|
attrs: any;
|
|
23
23
|
slots: ContextMenuSlots<T>;
|
|
24
|
-
emit: ((evt: "select", item: _$_soybeanjs_headless0.MenuOptionData<T>, event: Event) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: _$_soybeanjs_headless0.PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: _$_soybeanjs_headless0.FocusOutsideEvent) => void) & ((evt: "interactOutside", event: _$_soybeanjs_headless0.PointerDownOutsideEvent | _$_soybeanjs_headless0.FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void)
|
|
24
|
+
emit: ((evt: "select", item: _$_soybeanjs_headless0.MenuOptionData<T>, event: Event) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "entryFocus", event: Event) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: _$_soybeanjs_headless0.PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: _$_soybeanjs_headless0.FocusOutsideEvent) => void) & ((evt: "interactOutside", event: _$_soybeanjs_headless0.PointerDownOutsideEvent | _$_soybeanjs_headless0.FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void);
|
|
25
25
|
}>) => _$vue.VNode & {
|
|
26
26
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
27
27
|
};
|
|
@@ -5,9 +5,6 @@ import * as _$_soybeanjs_headless0 from "@soybeanjs/headless";
|
|
|
5
5
|
//#region src/components/dialog/dialog.vue.d.ts
|
|
6
6
|
type __VLS_Slots = DialogSlots;
|
|
7
7
|
declare const __VLS_base: _$vue.DefineComponent<DialogProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
8
|
-
close: (event: MouseEvent) => any;
|
|
9
|
-
cancel: (event: MouseEvent) => any;
|
|
10
|
-
confirm: (event: MouseEvent) => any;
|
|
11
8
|
"update:open": (value: boolean) => any;
|
|
12
9
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
13
10
|
pointerDownOutside: (event: _$_soybeanjs_headless0.PointerDownOutsideEvent) => any;
|
|
@@ -15,10 +12,10 @@ declare const __VLS_base: _$vue.DefineComponent<DialogProps, {}, {}, {}, {}, _$v
|
|
|
15
12
|
interactOutside: (event: _$_soybeanjs_headless0.PointerDownOutsideEvent | _$_soybeanjs_headless0.FocusOutsideEvent) => any;
|
|
16
13
|
openAutoFocus: (event: Event) => any;
|
|
17
14
|
closeAutoFocus: (event: Event) => any;
|
|
15
|
+
close: (event: MouseEvent) => any;
|
|
16
|
+
cancel: (event: MouseEvent) => any;
|
|
17
|
+
confirm: (event: MouseEvent) => any;
|
|
18
18
|
}, string, _$vue.PublicProps, Readonly<DialogProps> & Readonly<{
|
|
19
|
-
onClose?: ((event: MouseEvent) => any) | undefined;
|
|
20
|
-
onCancel?: ((event: MouseEvent) => any) | undefined;
|
|
21
|
-
onConfirm?: ((event: MouseEvent) => any) | undefined;
|
|
22
19
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
23
20
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
24
21
|
onPointerDownOutside?: ((event: _$_soybeanjs_headless0.PointerDownOutsideEvent) => any) | undefined;
|
|
@@ -26,9 +23,12 @@ declare const __VLS_base: _$vue.DefineComponent<DialogProps, {}, {}, {}, {}, _$v
|
|
|
26
23
|
onInteractOutside?: ((event: _$_soybeanjs_headless0.PointerDownOutsideEvent | _$_soybeanjs_headless0.FocusOutsideEvent) => any) | undefined;
|
|
27
24
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
28
25
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
26
|
+
onClose?: ((event: MouseEvent) => any) | undefined;
|
|
27
|
+
onCancel?: ((event: MouseEvent) => any) | undefined;
|
|
28
|
+
onConfirm?: ((event: MouseEvent) => any) | undefined;
|
|
29
29
|
}>, {
|
|
30
|
-
showClose: boolean;
|
|
31
30
|
open: boolean;
|
|
31
|
+
showClose: boolean;
|
|
32
32
|
modal: boolean;
|
|
33
33
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
34
34
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -5,9 +5,6 @@ import * as _$_soybeanjs_headless0 from "@soybeanjs/headless";
|
|
|
5
5
|
//#region src/components/drawer/drawer.vue.d.ts
|
|
6
6
|
type __VLS_Slots = DrawerSlots;
|
|
7
7
|
declare const __VLS_base: _$vue.DefineComponent<DrawerProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
8
|
-
close: (event: MouseEvent) => any;
|
|
9
|
-
cancel: (event: MouseEvent) => any;
|
|
10
|
-
confirm: (event: MouseEvent) => any;
|
|
11
8
|
"update:open": (value: boolean) => any;
|
|
12
9
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
13
10
|
pointerDownOutside: (event: _$_soybeanjs_headless0.PointerDownOutsideEvent) => any;
|
|
@@ -15,10 +12,10 @@ declare const __VLS_base: _$vue.DefineComponent<DrawerProps, {}, {}, {}, {}, _$v
|
|
|
15
12
|
interactOutside: (event: _$_soybeanjs_headless0.PointerDownOutsideEvent | _$_soybeanjs_headless0.FocusOutsideEvent) => any;
|
|
16
13
|
openAutoFocus: (event: Event) => any;
|
|
17
14
|
closeAutoFocus: (event: Event) => any;
|
|
15
|
+
close: (event: MouseEvent) => any;
|
|
16
|
+
cancel: (event: MouseEvent) => any;
|
|
17
|
+
confirm: (event: MouseEvent) => any;
|
|
18
18
|
}, string, _$vue.PublicProps, Readonly<DrawerProps> & Readonly<{
|
|
19
|
-
onClose?: ((event: MouseEvent) => any) | undefined;
|
|
20
|
-
onCancel?: ((event: MouseEvent) => any) | undefined;
|
|
21
|
-
onConfirm?: ((event: MouseEvent) => any) | undefined;
|
|
22
19
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
23
20
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
24
21
|
onPointerDownOutside?: ((event: _$_soybeanjs_headless0.PointerDownOutsideEvent) => any) | undefined;
|
|
@@ -26,9 +23,12 @@ declare const __VLS_base: _$vue.DefineComponent<DrawerProps, {}, {}, {}, {}, _$v
|
|
|
26
23
|
onInteractOutside?: ((event: _$_soybeanjs_headless0.PointerDownOutsideEvent | _$_soybeanjs_headless0.FocusOutsideEvent) => any) | undefined;
|
|
27
24
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
28
25
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
26
|
+
onClose?: ((event: MouseEvent) => any) | undefined;
|
|
27
|
+
onCancel?: ((event: MouseEvent) => any) | undefined;
|
|
28
|
+
onConfirm?: ((event: MouseEvent) => any) | undefined;
|
|
29
29
|
}>, {
|
|
30
|
-
showClose: boolean;
|
|
31
30
|
open: boolean;
|
|
31
|
+
showClose: boolean;
|
|
32
32
|
modal: boolean;
|
|
33
33
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
34
34
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -9,20 +9,20 @@ declare const __VLS_export: <T extends DefinedValue = DefinedValue>(__VLS_props:
|
|
|
9
9
|
onSelect?: ((item: _$_soybeanjs_headless0.MenuCheckboxOptionData<T>, event: Event) => any) | undefined;
|
|
10
10
|
"onUpdate:modelValue"?: ((value: T[]) => any) | undefined;
|
|
11
11
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
12
|
+
onEntryFocus?: ((event: Event) => any) | undefined;
|
|
12
13
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
13
14
|
onPointerDownOutside?: ((event: _$_soybeanjs_headless0.PointerDownOutsideEvent) => any) | undefined;
|
|
14
15
|
onFocusOutside?: ((event: _$_soybeanjs_headless0.FocusOutsideEvent) => any) | undefined;
|
|
15
16
|
onInteractOutside?: ((event: _$_soybeanjs_headless0.PointerDownOutsideEvent | _$_soybeanjs_headless0.FocusOutsideEvent) => any) | undefined;
|
|
16
17
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
17
18
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
18
|
-
onEntryFocus?: ((event: Event) => any) | undefined;
|
|
19
19
|
}> & (typeof globalThis extends {
|
|
20
20
|
__VLS_PROPS_FALLBACK: infer P;
|
|
21
21
|
} ? P : {});
|
|
22
22
|
expose: (exposed: {}) => void;
|
|
23
23
|
attrs: any;
|
|
24
24
|
slots: DropdownMenuCheckboxSlots<T>;
|
|
25
|
-
emit: ((evt: "select", item: _$_soybeanjs_headless0.MenuCheckboxOptionData<T>, event: Event) => void) & ((evt: "update:modelValue", value: T[]) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: _$_soybeanjs_headless0.PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: _$_soybeanjs_headless0.FocusOutsideEvent) => void) & ((evt: "interactOutside", event: _$_soybeanjs_headless0.PointerDownOutsideEvent | _$_soybeanjs_headless0.FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void)
|
|
25
|
+
emit: ((evt: "select", item: _$_soybeanjs_headless0.MenuCheckboxOptionData<T>, event: Event) => void) & ((evt: "update:modelValue", value: T[]) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "entryFocus", event: Event) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: _$_soybeanjs_headless0.PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: _$_soybeanjs_headless0.FocusOutsideEvent) => void) & ((evt: "interactOutside", event: _$_soybeanjs_headless0.PointerDownOutsideEvent | _$_soybeanjs_headless0.FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void);
|
|
26
26
|
}>) => _$vue.VNode & {
|
|
27
27
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
28
28
|
};
|
|
@@ -9,20 +9,20 @@ declare const __VLS_export: <T extends AcceptableBooleanValue = AcceptableBoolea
|
|
|
9
9
|
onSelect?: ((item: _$_soybeanjs_headless0.MenuRadioOptionData<T>, event: Event) => any) | undefined;
|
|
10
10
|
"onUpdate:modelValue"?: ((payload: NonNullable<T>) => any) | undefined;
|
|
11
11
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
12
|
+
onEntryFocus?: ((event: Event) => any) | undefined;
|
|
12
13
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
13
14
|
onPointerDownOutside?: ((event: _$_soybeanjs_headless0.PointerDownOutsideEvent) => any) | undefined;
|
|
14
15
|
onFocusOutside?: ((event: _$_soybeanjs_headless0.FocusOutsideEvent) => any) | undefined;
|
|
15
16
|
onInteractOutside?: ((event: _$_soybeanjs_headless0.PointerDownOutsideEvent | _$_soybeanjs_headless0.FocusOutsideEvent) => any) | undefined;
|
|
16
17
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
17
18
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
18
|
-
onEntryFocus?: ((event: Event) => any) | undefined;
|
|
19
19
|
}> & (typeof globalThis extends {
|
|
20
20
|
__VLS_PROPS_FALLBACK: infer P;
|
|
21
21
|
} ? P : {});
|
|
22
22
|
expose: (exposed: {}) => void;
|
|
23
23
|
attrs: any;
|
|
24
24
|
slots: DropdownMenuRadioSlots<T>;
|
|
25
|
-
emit: ((evt: "select", item: _$_soybeanjs_headless0.MenuRadioOptionData<T>, event: Event) => void) & ((evt: "update:modelValue", payload: NonNullable<T>) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: _$_soybeanjs_headless0.PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: _$_soybeanjs_headless0.FocusOutsideEvent) => void) & ((evt: "interactOutside", event: _$_soybeanjs_headless0.PointerDownOutsideEvent | _$_soybeanjs_headless0.FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void)
|
|
25
|
+
emit: ((evt: "select", item: _$_soybeanjs_headless0.MenuRadioOptionData<T>, event: Event) => void) & ((evt: "update:modelValue", payload: NonNullable<T>) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "entryFocus", event: Event) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: _$_soybeanjs_headless0.PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: _$_soybeanjs_headless0.FocusOutsideEvent) => void) & ((evt: "interactOutside", event: _$_soybeanjs_headless0.PointerDownOutsideEvent | _$_soybeanjs_headless0.FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void);
|
|
26
26
|
}>) => _$vue.VNode & {
|
|
27
27
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
28
28
|
};
|
|
@@ -11,22 +11,22 @@ type __VLS_Slots = {} & {
|
|
|
11
11
|
};
|
|
12
12
|
declare const __VLS_base: _$vue.DefineComponent<DropdownMenuWrapperProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
13
13
|
"update:open": (value: boolean) => any;
|
|
14
|
+
entryFocus: (event: Event) => any;
|
|
14
15
|
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
15
16
|
pointerDownOutside: (event: _$_soybeanjs_headless0.PointerDownOutsideEvent) => any;
|
|
16
17
|
focusOutside: (event: _$_soybeanjs_headless0.FocusOutsideEvent) => any;
|
|
17
18
|
interactOutside: (event: _$_soybeanjs_headless0.PointerDownOutsideEvent | _$_soybeanjs_headless0.FocusOutsideEvent) => any;
|
|
18
19
|
openAutoFocus: (event: Event) => any;
|
|
19
20
|
closeAutoFocus: (event: Event) => any;
|
|
20
|
-
entryFocus: (event: Event) => any;
|
|
21
21
|
}, string, _$vue.PublicProps, Readonly<DropdownMenuWrapperProps> & Readonly<{
|
|
22
22
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
23
|
+
onEntryFocus?: ((event: Event) => any) | undefined;
|
|
23
24
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
24
25
|
onPointerDownOutside?: ((event: _$_soybeanjs_headless0.PointerDownOutsideEvent) => any) | undefined;
|
|
25
26
|
onFocusOutside?: ((event: _$_soybeanjs_headless0.FocusOutsideEvent) => any) | undefined;
|
|
26
27
|
onInteractOutside?: ((event: _$_soybeanjs_headless0.PointerDownOutsideEvent | _$_soybeanjs_headless0.FocusOutsideEvent) => any) | undefined;
|
|
27
28
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
28
29
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
29
|
-
onEntryFocus?: ((event: Event) => any) | undefined;
|
|
30
30
|
}>, {
|
|
31
31
|
open: boolean;
|
|
32
32
|
modal: boolean;
|
|
@@ -8,20 +8,20 @@ declare const __VLS_export: <T extends DefinedValue = DefinedValue>(__VLS_props:
|
|
|
8
8
|
props: _$vue.PublicProps & __VLS_PrettifyLocal<DropdownMenuProps<T> & {
|
|
9
9
|
onSelect?: ((item: _$_soybeanjs_headless0.MenuOptionData<T>, event: Event) => any) | undefined;
|
|
10
10
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
11
|
+
onEntryFocus?: ((event: Event) => any) | undefined;
|
|
11
12
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
12
13
|
onPointerDownOutside?: ((event: _$_soybeanjs_headless0.PointerDownOutsideEvent) => any) | undefined;
|
|
13
14
|
onFocusOutside?: ((event: _$_soybeanjs_headless0.FocusOutsideEvent) => any) | undefined;
|
|
14
15
|
onInteractOutside?: ((event: _$_soybeanjs_headless0.PointerDownOutsideEvent | _$_soybeanjs_headless0.FocusOutsideEvent) => any) | undefined;
|
|
15
16
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
16
17
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
17
|
-
onEntryFocus?: ((event: Event) => any) | undefined;
|
|
18
18
|
}> & (typeof globalThis extends {
|
|
19
19
|
__VLS_PROPS_FALLBACK: infer P;
|
|
20
20
|
} ? P : {});
|
|
21
21
|
expose: (exposed: {}) => void;
|
|
22
22
|
attrs: any;
|
|
23
23
|
slots: DropdownMenuSlots<T>;
|
|
24
|
-
emit: ((evt: "select", item: _$_soybeanjs_headless0.MenuOptionData<T>, event: Event) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: _$_soybeanjs_headless0.PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: _$_soybeanjs_headless0.FocusOutsideEvent) => void) & ((evt: "interactOutside", event: _$_soybeanjs_headless0.PointerDownOutsideEvent | _$_soybeanjs_headless0.FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void)
|
|
24
|
+
emit: ((evt: "select", item: _$_soybeanjs_headless0.MenuOptionData<T>, event: Event) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "entryFocus", event: Event) => void) & ((evt: "escapeKeyDown", event: KeyboardEvent) => void) & ((evt: "pointerDownOutside", event: _$_soybeanjs_headless0.PointerDownOutsideEvent) => void) & ((evt: "focusOutside", event: _$_soybeanjs_headless0.FocusOutsideEvent) => void) & ((evt: "interactOutside", event: _$_soybeanjs_headless0.PointerDownOutsideEvent | _$_soybeanjs_headless0.FocusOutsideEvent) => void) & ((evt: "openAutoFocus", event: Event) => void) & ((evt: "closeAutoFocus", event: Event) => void);
|
|
25
25
|
}>) => _$vue.VNode & {
|
|
26
26
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
27
27
|
};
|
|
@@ -66,12 +66,12 @@ type __VLS_Slots = {} & {
|
|
|
66
66
|
'cancel-trigger'?: (props: typeof __VLS_56) => any;
|
|
67
67
|
};
|
|
68
68
|
declare const __VLS_base: _$vue.DefineComponent<EditableProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
69
|
-
submit: (value: string) => any;
|
|
70
69
|
"update:modelValue": (value: string) => any;
|
|
70
|
+
submit: (value: string) => any;
|
|
71
71
|
"update:state": (state: _$_soybeanjs_headless0.EditableEventState) => any;
|
|
72
72
|
}, string, _$vue.PublicProps, Readonly<EditableProps> & Readonly<{
|
|
73
|
-
onSubmit?: ((value: string) => any) | undefined;
|
|
74
73
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
74
|
+
onSubmit?: ((value: string) => any) | undefined;
|
|
75
75
|
"onUpdate:state"?: ((state: _$_soybeanjs_headless0.EditableEventState) => any) | undefined;
|
|
76
76
|
}>, {}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
77
77
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -6,9 +6,9 @@ type __VLS_Slots = InputOtpSlots;
|
|
|
6
6
|
declare const __VLS_base: _$vue.DefineComponent<InputOtpProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
7
7
|
input: (value: string) => any;
|
|
8
8
|
select: (event: Event) => any;
|
|
9
|
-
change: (event: Event) => any;
|
|
10
9
|
"update:modelValue": (value: string) => any;
|
|
11
10
|
blur: (event: FocusEvent) => any;
|
|
11
|
+
change: (event: Event) => any;
|
|
12
12
|
focus: (event: FocusEvent) => any;
|
|
13
13
|
mouseleave: (event: MouseEvent) => any;
|
|
14
14
|
mouseover: (event: MouseEvent) => any;
|
|
@@ -17,9 +17,9 @@ declare const __VLS_base: _$vue.DefineComponent<InputOtpProps, {}, {}, {}, {}, _
|
|
|
17
17
|
}, string, _$vue.PublicProps, Readonly<InputOtpProps> & Readonly<{
|
|
18
18
|
onInput?: ((value: string) => any) | undefined;
|
|
19
19
|
onSelect?: ((event: Event) => any) | undefined;
|
|
20
|
-
onChange?: ((event: Event) => any) | undefined;
|
|
21
20
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
22
21
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
22
|
+
onChange?: ((event: Event) => any) | undefined;
|
|
23
23
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
24
24
|
onMouseleave?: ((event: MouseEvent) => any) | undefined;
|
|
25
25
|
onMouseover?: ((event: MouseEvent) => any) | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LayoutEmits, LayoutProps } from "./types.js";
|
|
1
|
+
import { LayoutClassicEmits, LayoutClassicProps, LayoutClassicScrollBehavior, LayoutClassicSlots, LayoutCollapsible, LayoutEmits, LayoutProps, LayoutSide, LayoutSlots, LayoutVariant } from "./types.js";
|
|
2
2
|
import { _default } from "./layout.vue.js";
|
|
3
|
-
import { _default as _default$1 } from "./layout-
|
|
4
|
-
import {
|
|
5
|
-
export {
|
|
3
|
+
import { _default as _default$1 } from "./layout-classic.vue.js";
|
|
4
|
+
import { LayoutTrigger as SLayoutTrigger } from "@soybeanjs/headless";
|
|
5
|
+
export { SLayoutTrigger };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./layout.js";import"./layout-
|
|
1
|
+
import"./layout.js";import"./layout-classic.js";import{LayoutTrigger as e}from"@soybeanjs/headless";export{e as SLayoutTrigger};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{mergeBaseVariants as e,mergeSlotVariants as t}from"../../theme/shared.js";import{themeSizeMap as n,themeSizeRatio as r}from"../../theme/config.js";import"../../theme/index.js";import{buttonVariants as i}from"../button/variants.js";import{drawerVariants as a}from"../drawer/variants.js";import{layoutClassicVariants as o}from"./variants.js";import{computed as s,createBlock as c,createSlots as l,defineComponent as u,guardReactiveProps as d,mergeProps as f,normalizeProps as p,openBlock as m,renderList as h,renderSlot as g,unref as _,useSlots as v,withCtx as y}from"vue";import{useOmitProps as b}from"@soybeanjs/headless/composables";import{LayoutClassicCompact as x,provideLayoutClassicUi as S}from"@soybeanjs/headless";import{keysOf as C}from"@soybeanjs/utils";const w=u({name:`SLayoutClassic`,__name:`layout-classic`,props:{class:{},size:{default:`md`},ui:{},orientation:{},scrollBehavior:{},scrollId:{},baseZIndex:{},fixedTop:{type:Boolean,default:!0},fullContent:{type:Boolean},sidebarVisible:{type:Boolean,default:!0},headerVisible:{type:Boolean,default:!0},tabVisible:{type:Boolean,default:!0},footerVisible:{type:Boolean,default:!0},fixedFooter:{type:Boolean},stretchFooter:{type:Boolean,default:!0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!0},side:{},sidebarWidth:{},collapsedSidebarWidth:{},isMobile:{type:Boolean},mobileSidebarWidth:{},headerHeight:{},tabHeight:{},footerHeight:{},pxToRem:{},sidebarProps:{},railProps:{},mainProps:{},headerProps:{},tabProps:{},contentProps:{},footerProps:{},mobileProps:{}},emits:[`update:open`],setup(u,{emit:w}){let T=u,E=w,D=v(),O=b(T,[`class`,`size`,`ui`,`pxToRem`]),k=s(()=>C(D).filter(e=>e!==`sidebar`)),A=e=>T.pxToRem?T.pxToRem(e):e*r[T.size]/n.md;return S(s(()=>{let n=o({size:T.size,side:T.side,fullContent:T.fullContent}),r=a({size:T.size,side:T.side}),s=i({size:T.size,color:`accent`,variant:`ghost`,shape:`square`,fitContent:!0});return t(e(n,{mobileDrawer:r.popup(),trigger:s}),T.ui,{root:T.class})})),(e,t)=>(m(),c(_(x),f(_(O),{"px-to-rem":A,"onUpdate:open":t[0]||=e=>E(`update:open`,e)}),l({sidebar:y(t=>[g(e.$slots,`sidebar`,p(d(t)))]),_:2},[h(k.value,t=>({name:t,fn:y(()=>[g(e.$slots,t)])}))]),1040))}});export{w as default};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ThemeSize } from "../../theme/types.js";
|
|
2
|
+
import { LayoutClassicProps, LayoutClassicSlots } from "./types.js";
|
|
3
|
+
import * as _$vue from "vue";
|
|
4
|
+
|
|
5
|
+
//#region src/components/layout/layout-classic.vue.d.ts
|
|
6
|
+
type __VLS_Slots = LayoutClassicSlots;
|
|
7
|
+
declare const __VLS_base: _$vue.DefineComponent<LayoutClassicProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
8
|
+
"update:open": (open: boolean) => any;
|
|
9
|
+
}, string, _$vue.PublicProps, Readonly<LayoutClassicProps> & Readonly<{
|
|
10
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
11
|
+
}>, {
|
|
12
|
+
size: ThemeSize;
|
|
13
|
+
open: boolean;
|
|
14
|
+
defaultOpen: boolean;
|
|
15
|
+
sidebarVisible: boolean;
|
|
16
|
+
headerVisible: boolean;
|
|
17
|
+
tabVisible: boolean;
|
|
18
|
+
footerVisible: boolean;
|
|
19
|
+
fixedTop: boolean;
|
|
20
|
+
stretchFooter: boolean;
|
|
21
|
+
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
export { _default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{mergeSlotVariants as
|
|
1
|
+
import{mergeBaseVariants as e,mergeSlotVariants as t}from"../../theme/shared.js";import{themeSizeMap as n,themeSizeRatio as r}from"../../theme/config.js";import"../../theme/index.js";import{buttonVariants as i}from"../button/variants.js";import{drawerVariants as a}from"../drawer/variants.js";import{layoutVariants as o}from"./variants.js";import{computed as s,createBlock as c,createSlots as l,defineComponent as u,guardReactiveProps as d,mergeProps as f,normalizeProps as p,openBlock as m,renderList as h,renderSlot as g,unref as _,useSlots as v,withCtx as y}from"vue";import{useOmitProps as b}from"@soybeanjs/headless/composables";import{LayoutCompact as x,provideLayoutUi as S}from"@soybeanjs/headless";import{keysOf as C}from"@soybeanjs/utils";const w=u({name:`SLayout`,__name:`layout`,props:{class:{},size:{default:`md`},ui:{},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:!0},side:{},variant:{},collapsible:{},sidebarVisible:{type:Boolean,default:!0},sidebarWidth:{},collapsedSidebarWidth:{},isMobile:{type:Boolean},mobileSidebarWidth:{},headerVisible:{type:Boolean,default:!0},headerHeight:{},tabVisible:{type:Boolean,default:!0},tabHeight:{},footerVisible:{type:Boolean,default:!0},footerHeight:{},fullContent:{type:Boolean},pxToRem:{},sidebarProps:{},railProps:{},mainProps:{},headerProps:{},tabProps:{},contentProps:{},footerProps:{},mobileProps:{}},emits:[`update:open`],setup(u,{emit:w}){let T=u,E=w,D=v(),O=b(T,[`class`,`size`,`ui`,`pxToRem`]),k=s(()=>C(D).filter(e=>e!==`sidebar`)),A=e=>T.pxToRem?T.pxToRem(e):e*r[T.size]/n.md;return S(s(()=>{let n=o({size:T.size,variant:T.variant,side:T.side,collapsible:T.collapsible,fullContent:T.fullContent}),r=a({size:T.size,side:T.side}),s=i({size:T.size,color:`accent`,variant:`ghost`,shape:`square`,fitContent:!0});return t(e(n,{mobileDrawer:r.popup(),trigger:s}),T.ui,{root:T.class})})),(e,t)=>(m(),c(_(x),f(_(O),{"px-to-rem":A,"onUpdate:open":t[0]||=e=>E(`update:open`,e)}),l({sidebar:y(t=>[g(e.$slots,`sidebar`,p(d(t)))]),_:2},[h(k.value,t=>({name:t,fn:y(()=>[g(e.$slots,t)])}))]),1040))}});export{w as default};
|
|
@@ -1,23 +1,9 @@
|
|
|
1
1
|
import { ThemeSize } from "../../theme/types.js";
|
|
2
|
-
import { LayoutProps } from "./types.js";
|
|
2
|
+
import { LayoutProps, LayoutSlots } from "./types.js";
|
|
3
3
|
import * as _$vue from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/components/layout/layout.vue.d.ts
|
|
6
|
-
|
|
7
|
-
open: boolean | undefined;
|
|
8
|
-
collapsedSidebarWidth: number;
|
|
9
|
-
}, __VLS_35: {}, __VLS_43: {}, __VLS_51: {}, __VLS_59: {};
|
|
10
|
-
type __VLS_Slots = {} & {
|
|
11
|
-
sidebar?: (props: typeof __VLS_16) => any;
|
|
12
|
-
} & {
|
|
13
|
-
header?: (props: typeof __VLS_35) => any;
|
|
14
|
-
} & {
|
|
15
|
-
tab?: (props: typeof __VLS_43) => any;
|
|
16
|
-
} & {
|
|
17
|
-
default?: (props: typeof __VLS_51) => any;
|
|
18
|
-
} & {
|
|
19
|
-
footer?: (props: typeof __VLS_59) => any;
|
|
20
|
-
};
|
|
6
|
+
type __VLS_Slots = LayoutSlots;
|
|
21
7
|
declare const __VLS_base: _$vue.DefineComponent<LayoutProps, {}, {}, {}, {}, _$vue.ComponentOptionsMixin, _$vue.ComponentOptionsMixin, {
|
|
22
8
|
"update:open": (open: boolean) => any;
|
|
23
9
|
}, string, _$vue.PublicProps, Readonly<LayoutProps> & Readonly<{
|
|
@@ -25,6 +11,9 @@ declare const __VLS_base: _$vue.DefineComponent<LayoutProps, {}, {}, {}, {}, _$v
|
|
|
25
11
|
}>, {
|
|
26
12
|
size: ThemeSize;
|
|
27
13
|
open: boolean;
|
|
14
|
+
defaultOpen: boolean;
|
|
15
|
+
sidebarVisible: boolean;
|
|
16
|
+
headerVisible: boolean;
|
|
28
17
|
tabVisible: boolean;
|
|
29
18
|
footerVisible: boolean;
|
|
30
19
|
}, {}, {}, {}, string, _$vue.ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,38 +1,20 @@
|
|
|
1
1
|
import { ThemeSize } from "../../theme/types.js";
|
|
2
|
-
import { ClassValue,
|
|
2
|
+
import { ClassValue, LayoutClassicCompactEmits, LayoutClassicCompactProps, LayoutClassicCompactSlots, LayoutClassicScrollBehavior, LayoutClassicUi, LayoutCollapsible, LayoutCompactEmits, LayoutCompactProps, LayoutCompactSlots, LayoutSide, LayoutUi, LayoutVariant } from "@soybeanjs/headless";
|
|
3
3
|
|
|
4
4
|
//#region src/components/layout/types.d.ts
|
|
5
|
-
interface LayoutProps extends
|
|
5
|
+
interface LayoutProps extends LayoutCompactProps {
|
|
6
6
|
class?: ClassValue;
|
|
7
7
|
size?: ThemeSize;
|
|
8
8
|
ui?: Partial<LayoutUi>;
|
|
9
|
-
/**
|
|
10
|
-
* whether the content takes the full height of the layout (include).
|
|
11
|
-
*
|
|
12
|
-
* @default false
|
|
13
|
-
*/
|
|
14
|
-
fullContent?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* whether to show the tab.
|
|
17
|
-
*
|
|
18
|
-
* @default true
|
|
19
|
-
*/
|
|
20
|
-
tabVisible?: boolean;
|
|
21
|
-
/**
|
|
22
|
-
* whether to show the footer.
|
|
23
|
-
*
|
|
24
|
-
* @default true
|
|
25
|
-
*/
|
|
26
|
-
footerVisible?: boolean;
|
|
27
|
-
sidebarProps?: LayoutSidebarProps;
|
|
28
|
-
railProps?: LayoutRailProps;
|
|
29
|
-
mainProps?: LayoutMainProps;
|
|
30
|
-
headerProps?: LayoutHeaderProps;
|
|
31
|
-
tabProps?: LayoutTabProps;
|
|
32
|
-
contentProps?: LayoutContentProps;
|
|
33
|
-
footerProps?: LayoutFooterProps;
|
|
34
|
-
mobileProps?: LayoutMobileProps;
|
|
35
9
|
}
|
|
36
|
-
type LayoutEmits =
|
|
10
|
+
type LayoutEmits = LayoutCompactEmits;
|
|
11
|
+
type LayoutSlots = LayoutCompactSlots;
|
|
12
|
+
interface LayoutClassicProps extends LayoutClassicCompactProps {
|
|
13
|
+
class?: ClassValue;
|
|
14
|
+
size?: ThemeSize;
|
|
15
|
+
ui?: Partial<LayoutClassicUi>;
|
|
16
|
+
}
|
|
17
|
+
type LayoutClassicEmits = LayoutClassicCompactEmits;
|
|
18
|
+
type LayoutClassicSlots = LayoutClassicCompactSlots;
|
|
37
19
|
//#endregion
|
|
38
|
-
export { LayoutEmits, LayoutProps };
|
|
20
|
+
export { LayoutClassicEmits, LayoutClassicProps, type LayoutClassicScrollBehavior, LayoutClassicSlots, type LayoutCollapsible, LayoutEmits, LayoutProps, type LayoutSide, LayoutSlots, type LayoutVariant };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{tv as e}from"tailwind-variants";const t=e({slots:{root:`group relative flex w-full h-full data-[side=right]:flex-row-reverse`,sidebarRoot:`h-full block lt-md:hidden`,sidebarWrapper:`absolute inset-y-0 z-10
|
|
1
|
+
import{tv as e}from"tailwind-variants";const t=e({slots:{root:`group relative flex w-full h-full data-[side=right]:flex-row-reverse`,sidebarRoot:`h-full block lt-md:hidden`,sidebarWrapper:`absolute inset-y-0 z-10 flex h-full w-[--soybean-sidebar-width] transition-[left,right,width,opacity] duration-200 ease-linear lt-md:hidden`,sidebar:[`flex flex-col w-full h-full bg-sidebar`,`group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-border group-data-[variant=floating]:border-solid group-data-[variant=floating]:shadow`],sidebarGapHandler:[`relative h-full w-[--soybean-sidebar-width] bg-transparent transition-width duration-200 ease-linear`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`],mobileDrawer:`w-[--soybean-sidebar-width] bg-sidebar p-0`,mobileOverlay:[`fixed inset-0 z-50 bg-black/80`,`data-[state=open]:animate-in data-[state=open]:fade-in-0`,`data-[state=closed]:animate-out data-[state=closed]:fade-out-0`],mobile:`flex flex-col w-full h-full`,rail:[`absolute inset-y-0 z-20 flex w-[--soybean-layout-spacing] -translate-x-1/2 transition-all ease-linear lt-sm:hidden`,`after:absolute after:inset-y-0 after:left-1/2 after:content-empty after:w-[calc(var(--soybean-layout-spacing)/8)] hover:after:bg-sidebar-border`],trigger:``,main:`relative flex flex-1 flex-col items-stretch bg-background overflow-hidden`,header:`relative flex items-center shrink-0 h-[--soybean-layout-header-height]`,tab:`shrink-0 h-[--soybean-layout-tab-height] bg-background`,content:`grow overflow-auto bg-background`,footer:`shrink-0 h-[--soybean-layout-footer-height]`},variants:{size:{xs:{root:`text-2xs [--soybean-layout-spacing:0.75rem]`},sm:{root:`text-xs [--soybean-layout-spacing:0.875rem]`},md:{root:`text-sm [--soybean-layout-spacing:1rem]`},lg:{root:`text-base [--soybean-layout-spacing:1.25rem]`},xl:{root:`text-lg [--soybean-layout-spacing:1.5rem]`},"2xl":{root:`text-xl [--soybean-layout-spacing:1.75rem]`}},variant:{sidebar:{sidebarGapHandler:`group-data-[collapsible=icon]:w-[--soybean-collapsed-sidebar-width]`,sidebarWrapper:`group-data-[collapsible=icon]:w-[--soybean-collapsed-sidebar-width] group-data-[side=left]:border-r group-data-[side=right]:border-l`},floating:{sidebarGapHandler:`w-[calc(var(--soybean-sidebar-width)+var(--soybean-layout-spacing))] group-data-[collapsible=icon]:w-[calc(var(--soybean-collapsed-sidebar-width)+var(--soybean-layout-spacing))]`,sidebarWrapper:`p-[calc(var(--soybean-layout-spacing)/2)] w-[calc(var(--soybean-sidebar-width)+var(--soybean-layout-spacing))] group-data-[collapsible=icon]:w-[calc(var(--soybean-collapsed-sidebar-width)+var(--soybean-layout-spacing))]`},inset:{root:`bg-sidebar`,sidebarGapHandler:`w-[calc(var(--soybean-sidebar-width)+var(--soybean-layout-spacing))] group-data-[collapsible=icon]:w-[calc(var(--soybean-collapsed-sidebar-width)+var(--soybean-layout-spacing))]`,sidebarWrapper:`p-[calc(var(--soybean-layout-spacing)/2)] w-[calc(var(--soybean-sidebar-width)+var(--soybean-layout-spacing))] group-data-[collapsible=icon]:w-[calc(var(--soybean-collapsed-sidebar-width)+var(--soybean-layout-spacing))]`,main:`md:m-[calc(var(--soybean-layout-spacing)/2)] md:ms-0 md:rounded-xl md:shadow`}},side:{left:{sidebarWrapper:`start-0 group-data-[collapsible=offcanvas]:start-[calc(var(--soybean-sidebar-width)*-1)]`,rail:`cursor-w-resize group-data-[state=collapsed]:cursor-e-resize -end-[var(--soybean-layout-spacing)]`},right:{sidebarWrapper:`end-0 group-data-[collapsible=offcanvas]:end-[calc(var(--soybean-sidebar-width)*-1)]`,rail:`cursor-e-resize group-data-[state=collapsed]:cursor-w-resize start-0`}},collapsible:{offcanvas:{sidebarWrapper:`group-data-[state=collapsed]:opacity-0`,rail:`translate-x-0 after:start-full hover:bg-sidebar`},icon:{}},fullContent:{true:{tab:`fixed left-0 top-0 z-49 w-full`,content:`fixed inset-0 z-49 group-data-[tab-visible=true]:mt-[--soybean-layout-tab-height]`},false:{content:`relative`}}},compoundVariants:[{side:`left`,collapsible:`offcanvas`,class:{rail:`-end-[var(--soybean-layout-spacing)/2]`}},{side:`right`,collapsible:`offcanvas`,class:{rail:`-start-[var(--soybean-layout-spacing)/2]`}},{side:`left`,variant:`inset`,collapsible:`offcanvas`,class:{rail:`group-data-[state=collapsed]:end-0`}},{side:`right`,variant:`inset`,collapsible:`offcanvas`,class:{rail:`group-data-[state=collapsed]:start-0`}},{side:`left`,variant:`floating`,collapsible:`offcanvas`,class:{rail:`group-data-[state=collapsed]:end-[calc(var(--soybean-layout-spacing)/2)]`}},{side:`right`,variant:`floating`,collapsible:`offcanvas`,class:{rail:`group-data-[state=collapsed]:start-[calc(var(--soybean-layout-spacing)/2)]`}},{variant:`inset`,collapsible:`offcanvas`,class:{main:`md:group-data-[state=collapsed]:ms-[calc(var(--soybean-layout-spacing)/2)]`}}],defaultVariants:{variant:`sidebar`,side:`left`,collapsible:`icon`}}),n=e({slots:{root:`group relative h-full transition-all-300`,main:`flex flex-col h-full group-data-[scroll-behavior=wrapper]:overflow-y-auto transition-all-300`,sidebarRoot:`lt-md:hidden`,sidebarWrapper:[`absolute inset-y-0 z-[--soybean-layout-sidebar-z-index] flex h-full w-[--soybean-sidebar-width] transition-[inset-inline-start,inset-inline-end,width,opacity] duration-200 ease-linear lt-md:hidden`,`group-data-[state=collapsed]:w-[--soybean-collapsed-sidebar-width] pt-[--soybean-layout-sidebar-top-gap] pb-[--soybean-layout-sidebar-bottom-gap]`],sidebar:[`flex flex-col w-full h-full bg-sidebar`,`group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-border group-data-[variant=floating]:border-solid group-data-[variant=floating]:shadow`],mobileDrawer:`w-[--soybean-sidebar-width] bg-sidebar p-0`,mobileOverlay:[`fixed inset-0 z-50 bg-black/80`,`data-[state=open]:animate-in data-[state=open]:fade-in-0`,`data-[state=closed]:animate-out data-[state=closed]:fade-out-0`],mobile:`flex flex-col w-full h-full`,rail:[`absolute inset-y-0 z-20 flex w-[--soybean-layout-spacing] -translate-x-1/2 transition-all ease-linear lt-sm:hidden`,`after:absolute after:inset-y-0 after:start-1/2 after:content-empty after:w-[calc(var(--soybean-layout-spacing)/8)] hover:after:bg-sidebar-border`],trigger:``,header:[`shrink-0 flex items-center h-[--soybean-layout-header-height]`,`group-data-[fixed-top=true]:absolute group-data-[fixed-top=true]:z-[--soybean-layout-header-z-index] group-data-[fixed-top=true]:top-0 group-data-[fixed-top=true]:inset-x-0`],headerPlaceholder:`shrink-0 h-[--soybean-layout-header-height] overflow-hidden`,tab:`shrink-0 h-[--soybean-layout-tab-height] group-data-[fixed-top=true]:z-[--soybean-layout-tab-z-index]`,tabPlaceholder:`shrink-0 h-[--soybean-layout-tab-height] overflow-hidden`,content:`grow bg-background group-data-[scroll-behavior=content]:overflow-y-auto`,footer:[`shrink-0 h-[--soybean-layout-footer-height]`,`group-data-[fixed-footer=true]:absolute group-data-[fixed-footer=true]:z-[--soybean-layout-footer-z-index] group-data-[fixed-footer=true]:bottom-0 group-data-[fixed-footer=true]:inset-x-0`],footerPlaceholder:`shrink-0 h-[--soybean-layout-footer-height] overflow-hidden`},variants:{size:{xs:{root:`text-2xs [--soybean-layout-spacing:0.75rem]`},sm:{root:`text-xs [--soybean-layout-spacing:0.875rem]`},md:{root:`text-sm [--soybean-layout-spacing:1rem]`},lg:{root:`text-base [--soybean-layout-spacing:1.25rem]`},xl:{root:`text-lg [--soybean-layout-spacing:1.5rem]`},"2xl":{root:`text-xl [--soybean-layout-spacing:1.75rem]`}},side:{left:{main:`ps-[--soybean-layout-start-gap]`,sidebarWrapper:`start-0 border-r`,rail:`cursor-w-resize group-data-[state=collapsed]:cursor-e-resize -end-[var(--soybean-layout-spacing)]`,header:`group-data-[fixed-top=true]:ps-[--soybean-layout-header-start-gap]`,footer:`group-data-[fixed-footer=true]:ps-[--soybean-layout-footer-start-gap]`},right:{main:`pe-[--soybean-layout-start-gap]`,sidebarWrapper:`end-0 border-l`,rail:`cursor-e-resize group-data-[state=collapsed]:cursor-w-resize start-0`,header:`group-data-[fixed-top=true]:pe-[--soybean-layout-header-start-gap]`,footer:`group-data-[fixed-footer=true]:pe-[--soybean-layout-footer-start-gap]`}},fullContent:{true:{tab:`fixed start-0 top-0 z-[--soybean-layout-base-z-index] w-full`,content:`fixed inset-0 z-[--soybean-layout-base-z-index] group-data-[tab-visible=true]:mt-[--soybean-layout-tab-height] overflow-auto`},false:{tab:`group-data-[fixed-top=true]:absolute group-data-[fixed-top=true]:inset-x-0 group-data-[fixed-top=true]:top-[--soybean-layout-header-height]`,content:`relative`}}},compoundVariants:[{side:`left`,fullContent:!1,class:{tab:`group-data-[fixed-top=true]:ps-[--soybean-layout-start-gap]`}},{side:`right`,fullContent:!1,class:{tab:`group-data-[fixed-top=true]:pe-[--soybean-layout-start-gap]`}}],defaultVariants:{size:`md`,side:`left`,fullContent:!1}});export{n as layoutClassicVariants,t as layoutVariants};
|