@thekestongroup/ui 0.13.1 → 0.14.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/AppLauncher.vue.d.ts +3 -2
- package/dist/components/AppShell/AppShell.vue.d.ts +1 -1
- package/dist/components/Header/Header.vue.d.ts +2 -1
- package/dist/keston-ui.js +523 -520
- package/package.json +1 -1
- package/src/components/AppLauncher/AppLauncher.stories.ts +1 -1
- package/src/components/AppLauncher/AppLauncher.vue +8 -11
- package/src/components/AppLauncher/apps.ts +5 -5
- package/src/components/AppShell/AppShell.vue +8 -7
- package/src/components/Header/Header.vue +4 -1
|
@@ -3,8 +3,6 @@ export interface AppLauncherApp {
|
|
|
3
3
|
/** Matches `current` to mark the app you are in. */
|
|
4
4
|
id: string;
|
|
5
5
|
label: string;
|
|
6
|
-
/** A few words on what the app is for. */
|
|
7
|
-
description?: string;
|
|
8
6
|
href: string;
|
|
9
7
|
/** An icon component, or the name of one of the Keston app icons (id, admin, work, utilities, design). */
|
|
10
8
|
icon?: Component | string;
|
|
@@ -22,6 +20,8 @@ export interface AppLauncherProps {
|
|
|
22
20
|
apps?: AppLauncherApp[];
|
|
23
21
|
/** The `id` of the app you are in, shown as the current page. */
|
|
24
22
|
current?: string;
|
|
23
|
+
/** Which edge of the button the panel lines up with: `start` when the button is at the left of the header (AppShell), `end` when at the right. Default `end`. */
|
|
24
|
+
align?: 'start' | 'end';
|
|
25
25
|
/** Name of the button for screen readers. Default "Keston apps". */
|
|
26
26
|
label?: string;
|
|
27
27
|
class?: HTMLAttributes['class'];
|
|
@@ -29,5 +29,6 @@ export interface AppLauncherProps {
|
|
|
29
29
|
declare const _default: typeof __VLS_export;
|
|
30
30
|
export default _default;
|
|
31
31
|
declare const __VLS_export: import('vue').DefineComponent<AppLauncherProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AppLauncherProps> & Readonly<{}>, {
|
|
32
|
+
align: "end" | "start";
|
|
32
33
|
apps: AppLauncherApp[];
|
|
33
34
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -50,7 +50,7 @@ export interface AppShellProps {
|
|
|
50
50
|
collapsible?: boolean;
|
|
51
51
|
/** Show the Keston Group footer under the page. The Footer's props: `{ appName, version, … }`. Without it there is no footer. */
|
|
52
52
|
footer?: FooterProps;
|
|
53
|
-
/** Show the app launcher (a grid button for moving between Keston apps)
|
|
53
|
+
/** Show the app launcher (a grid button for moving between Keston apps) at the left of the header, before the menu button. `true` for the defaults, or the AppLauncher's props: `{ current: 'admin' }`. */
|
|
54
54
|
launcher?: boolean | AppLauncherProps;
|
|
55
55
|
/** Component used for sidebar items with `to`, and the title link, e.g. RouterLink. */
|
|
56
56
|
linkComponent?: SidebarProps['linkComponent'];
|
|
@@ -15,7 +15,7 @@ export type HeaderUserAction = 'account-settings' | 'switch-account' | 'log-out'
|
|
|
15
15
|
* the right (Account settings, Switch account, Log out). Each part can be
|
|
16
16
|
* overridden with a slot.
|
|
17
17
|
*
|
|
18
|
-
* Slots: leading (before the title, e.g. a logo), title, default (the middle,
|
|
18
|
+
* Slots: start (the very first thing, before the menu button, e.g. the app launcher; give it a `-ml-2.5` button to line up with the padding), leading (before the title, e.g. a logo), title, default (the middle,
|
|
19
19
|
* fills the space between title and trailing), trailing (actions before the
|
|
20
20
|
* account menu), account (replaces the account menu, or the Sign in button),
|
|
21
21
|
* account-menu (extra content in the account menu, above Switch account /
|
|
@@ -74,6 +74,7 @@ export interface HeaderProps {
|
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
76
|
type __VLS_Slots = {
|
|
77
|
+
start?(): unknown;
|
|
77
78
|
leading?(): unknown;
|
|
78
79
|
title?(): unknown;
|
|
79
80
|
default?(): unknown;
|