sit-onyx 1.0.0-beta.94 → 1.0.0-beta.95
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/OnyxAlertDialog/OnyxAlertDialog.vue.d.ts +58 -0
- package/dist/components/OnyxAlertDialog/types.d.ts +8 -0
- package/dist/components/OnyxNavBar/modules/OnyxFlyoutMenu/types.d.ts +5 -0
- package/dist/i18n/locales/de-DE.json +3 -0
- package/dist/i18n/locales/en-US.json +3 -0
- package/dist/index.cjs +4 -4
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1433 -1367
- package/dist/style.css +1 -1
- package/dist/utils/validity.d.ts +1 -1
- package/package.json +4 -4
- package/src/i18n/locales/de-DE.json +3 -0
- package/src/i18n/locales/en-US.json +3 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { OnyxAlertDialogProps } from "./types";
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: Readonly<{
|
|
5
|
+
/**
|
|
6
|
+
* Dialog content.
|
|
7
|
+
*/
|
|
8
|
+
default(): unknown;
|
|
9
|
+
/**
|
|
10
|
+
* Optional slot to override the headline with custom content.
|
|
11
|
+
*/
|
|
12
|
+
headline?(bindings: Pick<OnyxAlertDialogProps, "label">): unknown;
|
|
13
|
+
/**
|
|
14
|
+
* Slot to display custom actions at the bottom of the dialog, e.g. buttons for confirm or cancelling the current user workflow.
|
|
15
|
+
* For accessibility purposes it is recommended to set autofocus on one button, preferably the "cancel" button if one exists.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```vue
|
|
19
|
+
* <OnyxButton label="Cancel" color="neutral" mode="plain" autofocus />
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
actions?(): unknown;
|
|
23
|
+
}> & {
|
|
24
|
+
/**
|
|
25
|
+
* Dialog content.
|
|
26
|
+
*/
|
|
27
|
+
default(): unknown;
|
|
28
|
+
/**
|
|
29
|
+
* Optional slot to override the headline with custom content.
|
|
30
|
+
*/
|
|
31
|
+
headline?(bindings: Pick<OnyxAlertDialogProps, "label">): unknown;
|
|
32
|
+
/**
|
|
33
|
+
* Slot to display custom actions at the bottom of the dialog, e.g. buttons for confirm or cancelling the current user workflow.
|
|
34
|
+
* For accessibility purposes it is recommended to set autofocus on one button, preferably the "cancel" button if one exists.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```vue
|
|
38
|
+
* <OnyxButton label="Cancel" color="neutral" mode="plain" autofocus />
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
actions?(): unknown;
|
|
42
|
+
};
|
|
43
|
+
refs: {};
|
|
44
|
+
rootEl: any;
|
|
45
|
+
};
|
|
46
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
47
|
+
declare const __VLS_component: import("vue").DefineComponent<OnyxAlertDialogProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
48
|
+
close: () => any;
|
|
49
|
+
}, string, import("vue").PublicProps, Readonly<OnyxAlertDialogProps> & Readonly<{
|
|
50
|
+
onClose?: (() => any) | undefined;
|
|
51
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
52
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
53
|
+
export default _default;
|
|
54
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
55
|
+
new (): {
|
|
56
|
+
$slots: S;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { OnyxDialogProps } from "../OnyxDialog/types";
|
|
2
|
+
import type { OnyxIconProps } from "../OnyxIcon/types";
|
|
3
|
+
export type OnyxAlertDialogProps = Omit<OnyxDialogProps, "modal" | "alert"> & {
|
|
4
|
+
/**
|
|
5
|
+
* Optional icon to show.
|
|
6
|
+
*/
|
|
7
|
+
icon?: Omit<OnyxIconProps, "size">;
|
|
8
|
+
};
|
|
@@ -5,6 +5,11 @@ export type OnyxFlyoutMenuProps = {
|
|
|
5
5
|
* If `undefined`, the state will be managed internally.
|
|
6
6
|
*/
|
|
7
7
|
open?: ManagedProp<boolean>;
|
|
8
|
+
/**
|
|
9
|
+
* If the flyout is expanded on click or hover.
|
|
10
|
+
* The default value is 'hover' which will expand the flyout on hover.
|
|
11
|
+
*/
|
|
12
|
+
trigger?: "hover" | "click";
|
|
8
13
|
/**
|
|
9
14
|
* Aria label for the flyout.
|
|
10
15
|
*/
|