sit-onyx 1.0.0-beta.7 → 1.0.0-beta.9
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/OnyxFormElement/OnyxFormElement.vue.d.ts +9 -2
- package/dist/components/OnyxFormElement/types.d.ts +6 -0
- package/dist/components/OnyxNavBar/modules/OnyxFlyoutMenu/OnyxFlyoutMenu.vue.d.ts +4 -2
- package/dist/components/OnyxNavBar/modules/OnyxFlyoutMenu/types.d.ts +0 -5
- package/dist/components/OnyxNavBar/modules/OnyxMenuItem/types.d.ts +1 -1
- package/dist/components/OnyxNavBar/modules/OnyxUserMenu/OnyxUserMenu.vue.d.ts +9 -1
- package/dist/components/OnyxNavBar/modules/OnyxUserMenu/UserMenuLayout.vue.d.ts +9 -3
- package/dist/components/OnyxNavBar/modules/OnyxUserMenu/types.d.ts +0 -5
- package/dist/index.cjs +3 -3
- package/dist/index.js +1121 -1106
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
import type { OnyxFormElementProps } from "./types";
|
|
2
2
|
declare function __VLS_template(): Readonly<{
|
|
3
3
|
/** The place for the actual form element */
|
|
4
|
-
default(
|
|
4
|
+
default(props: {
|
|
5
|
+
id: string;
|
|
6
|
+
}): unknown;
|
|
5
7
|
}> & {
|
|
6
8
|
/** The place for the actual form element */
|
|
7
|
-
default(
|
|
9
|
+
default(props: {
|
|
10
|
+
id: string;
|
|
11
|
+
}): unknown;
|
|
8
12
|
};
|
|
9
13
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxFormElementProps>, {
|
|
10
14
|
required: boolean;
|
|
15
|
+
id: string;
|
|
11
16
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<OnyxFormElementProps>, {
|
|
12
17
|
required: boolean;
|
|
18
|
+
id: string;
|
|
13
19
|
}>>>, {
|
|
14
20
|
required: boolean;
|
|
21
|
+
id: string;
|
|
15
22
|
}, {}>;
|
|
16
23
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
17
24
|
export default _default;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import type { RequiredMarkerProp } from "../../composables/required";
|
|
2
2
|
import type { FormErrorMessages } from "../../composables/useCustomValidity";
|
|
3
3
|
export type OnyxFormElementProps = RequiredMarkerProp & {
|
|
4
|
+
/**
|
|
5
|
+
* The id of a labelable form-related element.
|
|
6
|
+
* If not given an id will be generated.
|
|
7
|
+
* The id is passed as a `default` slot property.
|
|
8
|
+
*/
|
|
9
|
+
id?: string;
|
|
4
10
|
/**
|
|
5
11
|
* Current value of the form element.
|
|
6
12
|
*/
|
|
@@ -6,7 +6,9 @@ declare const _default: <TValue extends SelectOptionValue = SelectOptionValue>(_
|
|
|
6
6
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
7
7
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
8
8
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
9
|
-
}, never>, "onUpdate:open"> &
|
|
9
|
+
}, never>, "onUpdate:open"> & ({
|
|
10
|
+
open?: boolean;
|
|
11
|
+
} & OnyxFlyoutMenuProps)> & __VLS_BuiltInPublicProps;
|
|
10
12
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
11
13
|
attrs: any;
|
|
12
14
|
slots: ReturnType<() => Readonly<{
|
|
@@ -44,7 +46,7 @@ declare const _default: <TValue extends SelectOptionValue = SelectOptionValue>(_
|
|
|
44
46
|
*/
|
|
45
47
|
footer?(): unknown;
|
|
46
48
|
}>;
|
|
47
|
-
emit: (
|
|
49
|
+
emit: (evt: "update:open", open: boolean) => void;
|
|
48
50
|
}>) => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
49
51
|
[key: string]: any;
|
|
50
52
|
}> & {
|
|
@@ -2,7 +2,7 @@ import type { OnyxColor } from "../../../../types";
|
|
|
2
2
|
export type OnyxMenuItemProps = {
|
|
3
3
|
/**
|
|
4
4
|
* URL that the menu item points to.
|
|
5
|
-
* If the property is set
|
|
5
|
+
* If the property is set the menuitem will act as an anchor, otherwise it will act as an button.
|
|
6
6
|
*/
|
|
7
7
|
href?: string;
|
|
8
8
|
/**
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type { OnyxUserMenuProps } from "./types";
|
|
2
|
+
declare let __VLS_typeProps: OnyxUserMenuProps;
|
|
3
|
+
type __VLS_PublicProps = {
|
|
4
|
+
"flyoutOpen"?: boolean;
|
|
5
|
+
} & typeof __VLS_typeProps;
|
|
2
6
|
declare function __VLS_template(): Readonly<{
|
|
3
7
|
/**
|
|
4
8
|
* Slot for the menu options. Its recommended to use the `OnyxMenuItem` component here.
|
|
@@ -18,7 +22,11 @@ declare function __VLS_template(): Readonly<{
|
|
|
18
22
|
*/
|
|
19
23
|
footer?(): unknown;
|
|
20
24
|
};
|
|
21
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<
|
|
25
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_TypePropsToOption<__VLS_PublicProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
26
|
+
"update:flyoutOpen": (flyoutOpen: boolean) => void;
|
|
27
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_PublicProps>>> & {
|
|
28
|
+
"onUpdate:flyoutOpen"?: ((flyoutOpen: boolean) => any) | undefined;
|
|
29
|
+
}, {}, {}>;
|
|
22
30
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
23
31
|
export default _default;
|
|
24
32
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import type { SelectOptionValue } from "../../../../types";
|
|
2
2
|
declare const _default: <TValue extends SelectOptionValue = SelectOptionValue>(__VLS_props: Awaited<typeof __VLS_setup>["props"], __VLS_ctx?: __VLS_Prettify<Pick<Awaited<typeof __VLS_setup>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
-
props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
|
|
3
|
+
props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
|
|
4
|
+
"onUpdate:flyoutOpen"?: ((flyoutOpen: boolean) => any) | undefined;
|
|
5
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
6
|
+
"onUpdate:flyoutOpen"?: ((flyoutOpen: boolean) => any) | undefined;
|
|
7
|
+
}, never>, "onUpdate:flyoutOpen"> & ({
|
|
8
|
+
flyoutOpen?: boolean;
|
|
9
|
+
} & {
|
|
4
10
|
isMobile: boolean;
|
|
5
|
-
}> & __VLS_BuiltInPublicProps;
|
|
11
|
+
})> & __VLS_BuiltInPublicProps;
|
|
6
12
|
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
7
13
|
attrs: any;
|
|
8
14
|
slots: ReturnType<() => Readonly<{
|
|
@@ -16,7 +22,7 @@ declare const _default: <TValue extends SelectOptionValue = SelectOptionValue>(_
|
|
|
16
22
|
options?(): unknown;
|
|
17
23
|
footer?(): unknown;
|
|
18
24
|
}>;
|
|
19
|
-
emit:
|
|
25
|
+
emit: (evt: "update:flyoutOpen", flyoutOpen: boolean) => void;
|
|
20
26
|
}>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
21
27
|
[key: string]: any;
|
|
22
28
|
}> & {
|
|
@@ -11,9 +11,4 @@ export type OnyxUserMenuProps = {
|
|
|
11
11
|
* Optional user description that is displayed when the menu is opened.
|
|
12
12
|
*/
|
|
13
13
|
description?: string;
|
|
14
|
-
/**
|
|
15
|
-
* If the flyout is expanded or not.
|
|
16
|
-
* If `undefined`, the state will be managed internally.
|
|
17
|
-
*/
|
|
18
|
-
open?: boolean;
|
|
19
14
|
};
|