@thekestongroup/ui 0.1.3 → 0.2.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/AppLauncher.vue.d.ts +10 -0
- package/dist/components/Avatar.vue.d.ts +16 -0
- package/dist/components/Button.vue.d.ts +1 -1
- package/dist/components/Drawer.vue.d.ts +1 -1
- package/dist/components/NotificationsMenu.vue.d.ts +3 -0
- package/dist/components/ProfileSwitcher.vue.d.ts +24 -0
- package/dist/components/ToastItem.vue.d.ts +7 -0
- package/dist/components/TopBar.vue.d.ts +34 -0
- package/dist/index.d.ts +8 -1
- package/dist/keston-ui.cjs +5 -5
- package/dist/keston-ui.js +3546 -2827
- package/dist/lib/toast.d.ts +23 -2
- package/dist/lib/types.d.ts +5 -0
- package/package.json +2 -1
- package/src/components/AppLauncher.vue +63 -0
- package/src/components/Avatar.vue +51 -0
- package/src/components/NotificationsMenu.vue +115 -0
- package/src/components/ProfileSwitcher.vue +113 -0
- package/src/components/ToastItem.vue +158 -0
- package/src/components/ToastRenderer.vue +13 -40
- package/src/components/TopBar.vue +52 -0
- package/src/index.ts +14 -0
- package/src/lib/toast.ts +78 -2
- package/src/lib/types.ts +5 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AppLink } from '../lib/types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
apps: AppLink[];
|
|
4
|
+
current?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
current: string;
|
|
8
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type Size = 'sm' | 'md' | 'lg';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
name?: string;
|
|
4
|
+
email?: string;
|
|
5
|
+
src?: string;
|
|
6
|
+
size?: Size;
|
|
7
|
+
class?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
10
|
+
name: string;
|
|
11
|
+
email: string;
|
|
12
|
+
src: string;
|
|
13
|
+
size: Size;
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
@@ -12,10 +12,10 @@ type __VLS_Slots = {} & {
|
|
|
12
12
|
default?: (props: typeof __VLS_1) => any;
|
|
13
13
|
};
|
|
14
14
|
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
15
|
-
variant: Variant;
|
|
16
15
|
size: Size;
|
|
17
16
|
type: "button" | "submit" | "reset";
|
|
18
17
|
disabled: boolean;
|
|
18
|
+
variant: Variant;
|
|
19
19
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
20
20
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
21
|
declare const _default: typeof __VLS_export;
|
|
@@ -21,8 +21,8 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {
|
|
|
21
21
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
22
22
|
}>, {
|
|
23
23
|
title: string;
|
|
24
|
-
description: string;
|
|
25
24
|
side: Side;
|
|
25
|
+
description: string;
|
|
26
26
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
27
27
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
28
|
declare const _default: typeof __VLS_export;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
declare const _default: typeof __VLS_export;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
name?: string;
|
|
3
|
+
email?: string;
|
|
4
|
+
orgName?: string;
|
|
5
|
+
avatarSrc?: string;
|
|
6
|
+
accountSettingsUrl?: string;
|
|
7
|
+
differentAccountUrl?: string;
|
|
8
|
+
settingsLabel?: string;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
11
|
+
signOut: () => any;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
onSignOut?: (() => any) | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
name: string;
|
|
16
|
+
email: string;
|
|
17
|
+
orgName: string;
|
|
18
|
+
avatarSrc: string;
|
|
19
|
+
accountSettingsUrl: string;
|
|
20
|
+
differentAccountUrl: string;
|
|
21
|
+
settingsLabel: string;
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ToastObject } from 'reka-ui';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
toast: ToastObject;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { AppLink } from '../lib/types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
appName: string;
|
|
4
|
+
apps?: AppLink[];
|
|
5
|
+
current?: string;
|
|
6
|
+
showMenu?: boolean;
|
|
7
|
+
};
|
|
8
|
+
declare var __VLS_6: {}, __VLS_8: {}, __VLS_10: {}, __VLS_12: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
search?: (props: typeof __VLS_6) => any;
|
|
11
|
+
} & {
|
|
12
|
+
actions?: (props: typeof __VLS_8) => any;
|
|
13
|
+
} & {
|
|
14
|
+
notifications?: (props: typeof __VLS_10) => any;
|
|
15
|
+
} & {
|
|
16
|
+
profile?: (props: typeof __VLS_12) => any;
|
|
17
|
+
};
|
|
18
|
+
declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
19
|
+
menu: () => any;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
21
|
+
onMenu?: (() => any) | undefined;
|
|
22
|
+
}>, {
|
|
23
|
+
apps: AppLink[];
|
|
24
|
+
current: string;
|
|
25
|
+
showMenu: boolean;
|
|
26
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
27
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
31
|
+
new (): {
|
|
32
|
+
$slots: S;
|
|
33
|
+
};
|
|
34
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { default as Avatar } from './components/Avatar.vue';
|
|
2
|
+
export { default as AppLauncher } from './components/AppLauncher.vue';
|
|
1
3
|
export { default as Button } from './components/Button.vue';
|
|
2
4
|
export { default as Checkbox } from './components/Checkbox.vue';
|
|
3
5
|
export { default as CloseButton } from './components/CloseButton.vue';
|
|
@@ -8,11 +10,16 @@ export { default as Input } from './components/Input.vue';
|
|
|
8
10
|
export { default as Label } from './components/Label.vue';
|
|
9
11
|
export { default as DropdownMenuItem } from './components/DropdownMenuItem.vue';
|
|
10
12
|
export { default as DropdownMenuSeparator } from './components/DropdownMenuSeparator.vue';
|
|
13
|
+
export { default as NotificationsMenu } from './components/NotificationsMenu.vue';
|
|
11
14
|
export { default as Popover } from './components/Popover.vue';
|
|
15
|
+
export { default as ProfileSwitcher } from './components/ProfileSwitcher.vue';
|
|
12
16
|
export { default as Select } from './components/Select.vue';
|
|
13
17
|
export type { SelectOption } from './components/Select.vue';
|
|
14
18
|
export { default as Separator } from './components/Separator.vue';
|
|
15
19
|
export { default as Tooltip } from './components/Tooltip.vue';
|
|
16
20
|
export { default as Toaster } from './components/Toaster.vue';
|
|
21
|
+
export { default as TopBar } from './components/TopBar.vue';
|
|
17
22
|
export { toast, toastManager } from './lib/toast';
|
|
18
|
-
export
|
|
23
|
+
export { clearNotifications, markNotificationsRead, removeNotification, toastNotifications, } from './lib/toast';
|
|
24
|
+
export type { AppLink } from './lib/types';
|
|
25
|
+
export type { ToastStatus, ToastNotification, ToastObject, ToastAddOptions, ToastUpdateOptions, ToastPromiseOptions, } from './lib/toast';
|