sit-onyx 1.0.0-alpha.151 → 1.0.0-alpha.152
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/OnyxColorSchemeDialog/OnyxColorSchemeDialog.vue.d.ts +1 -1
- package/dist/components/OnyxToast/OnyxToast.vue.d.ts +42 -0
- package/dist/components/OnyxToast/types.d.ts +34 -0
- package/dist/i18n/locales/en-US.json.d.ts +1 -0
- package/dist/index.cjs +4 -4
- package/dist/index.d.ts +2 -0
- package/dist/index.js +870 -804
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/i18n/locales/de-DE.json +1 -0
- package/src/i18n/locales/en-US.json +1 -0
|
@@ -3,8 +3,8 @@ import { ColorSchemeValue, OnyxColorSchemeDialogProps } from './types';
|
|
|
3
3
|
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OnyxColorSchemeDialogProps>, {
|
|
4
4
|
open: boolean;
|
|
5
5
|
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
-
"update:modelValue": (value: ColorSchemeValue) => void;
|
|
7
6
|
close: () => void;
|
|
7
|
+
"update:modelValue": (value: ColorSchemeValue) => void;
|
|
8
8
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OnyxColorSchemeDialogProps>, {
|
|
9
9
|
open: boolean;
|
|
10
10
|
}>>> & {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { OnyxToastProps } from './types';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OnyxToastProps>, {
|
|
4
|
+
color: string;
|
|
5
|
+
duration: number;
|
|
6
|
+
clickable: boolean;
|
|
7
|
+
icon: undefined;
|
|
8
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
click: () => void;
|
|
10
|
+
close: () => void;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OnyxToastProps>, {
|
|
12
|
+
color: string;
|
|
13
|
+
duration: number;
|
|
14
|
+
clickable: boolean;
|
|
15
|
+
icon: undefined;
|
|
16
|
+
}>>> & {
|
|
17
|
+
onClick?: (() => any) | undefined;
|
|
18
|
+
onClose?: (() => any) | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
color: Extract<import('../..').OnyxColor, "neutral" | "danger" | "warning" | "success">;
|
|
21
|
+
icon: string | false;
|
|
22
|
+
duration: number;
|
|
23
|
+
clickable: boolean;
|
|
24
|
+
}, {}>;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
27
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
28
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
29
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
30
|
+
} : {
|
|
31
|
+
type: import('vue').PropType<T[K]>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
type __VLS_WithDefaults<P, D> = {
|
|
36
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
37
|
+
default: D[K];
|
|
38
|
+
}> : P[K];
|
|
39
|
+
};
|
|
40
|
+
type __VLS_Prettify<T> = {
|
|
41
|
+
[K in keyof T]: T[K];
|
|
42
|
+
} & {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { DensityProp } from '../../composables/density';
|
|
2
|
+
import { OnyxColor } from '../../types';
|
|
3
|
+
|
|
4
|
+
export type OnyxToastProps = DensityProp & {
|
|
5
|
+
/**
|
|
6
|
+
* Main toast headline.
|
|
7
|
+
*/
|
|
8
|
+
headline: string;
|
|
9
|
+
/**
|
|
10
|
+
* Optional toast description (e.g. detailed error message).
|
|
11
|
+
*/
|
|
12
|
+
description?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Toast color.
|
|
15
|
+
*/
|
|
16
|
+
color?: Extract<OnyxColor, "neutral" | "danger" | "warning" | "success">;
|
|
17
|
+
/**
|
|
18
|
+
* Duration in milliseconds for the toast to close automatically.
|
|
19
|
+
* Timer will be paused when hovering the toast.
|
|
20
|
+
*
|
|
21
|
+
* Can be set to `0` to disable the auto closing.
|
|
22
|
+
*/
|
|
23
|
+
duration?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Whether the toast is clickable (will emit the `click` event).
|
|
26
|
+
* Will also hide the manual close button.
|
|
27
|
+
*/
|
|
28
|
+
clickable?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Icon to display. By default, an icon will be displayed depending on the current `color` property.
|
|
31
|
+
* Can be set to `false` to hide the icon.
|
|
32
|
+
*/
|
|
33
|
+
icon?: string | false;
|
|
34
|
+
};
|