@thekestongroup/ui 0.20.0 → 0.22.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 +12 -4
- package/dist/components/Header/Header.vue.d.ts +5 -0
- package/dist/components/Popover/popover.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/keston-ui.js +1057 -973
- package/dist/lib/theme.d.ts +12 -3
- package/package.json +1 -1
- package/src/components/AppLauncher/AppLauncher.vue +52 -21
- package/src/components/AppLauncher/apps.ts +1 -1
- package/src/components/AppLauncher/icons/admin-dark.svg +1 -0
- package/src/components/AppLauncher/icons/admin.svg +1 -0
- package/src/components/AppLauncher/icons/design.svg +5 -0
- package/src/components/AppLauncher/icons/id-dark.svg +1 -0
- package/src/components/AppLauncher/icons/id.svg +1 -0
- package/src/components/AppLauncher/icons/keston-dark.svg +1 -0
- package/src/components/AppLauncher/icons/keston.svg +1 -0
- package/src/components/AppLauncher/icons/utilities.svg +1 -0
- package/src/components/Header/Header.stories.ts +20 -0
- package/src/components/Header/Header.vue +35 -9
- package/src/components/Popover/popover.ts +2 -2
- package/src/components/Tooltip/Tooltip.vue +1 -1
- package/src/index.ts +1 -1
- package/src/lib/theme.test.ts +16 -0
- package/src/lib/theme.ts +67 -5
|
@@ -4,14 +4,17 @@ export interface AppLauncherApp {
|
|
|
4
4
|
id: string;
|
|
5
5
|
label: string;
|
|
6
6
|
href: string;
|
|
7
|
-
/**
|
|
8
|
-
|
|
7
|
+
/**
|
|
8
|
+
* The app's icon: the name of a Keston app's (id, admin, work, utilities,
|
|
9
|
+
* design), an image (`{ light, dark }`), or an icon component.
|
|
10
|
+
*/
|
|
11
|
+
icon?: Component | string | AppLauncherImage;
|
|
9
12
|
/** Signs in with Keston ID, so it's given the `loginHint`. Default true. */
|
|
10
13
|
signsIn?: boolean;
|
|
11
14
|
}
|
|
12
15
|
/**
|
|
13
|
-
* The grid button in the header that opens a
|
|
14
|
-
* them. The same in every app: it lists `kestonApps` and marks the one you are in with `current`. In an app
|
|
16
|
+
* The grid button in the header that opens a list of the Keston Group's apps, so people can move between
|
|
17
|
+
* them: each app's icon and name, in rows like a Select's options, with a tick by the one you're in. The same in every app: it lists `kestonApps` and marks the one you are in with `current`. In an app
|
|
15
18
|
* built on AppShell, pass `launcher` to AppShell instead of using this directly.
|
|
16
19
|
*
|
|
17
20
|
* Apps open in the same tab, as moving between Keston apps is moving on, not a side trip (the footer's
|
|
@@ -34,6 +37,11 @@ export interface AppLauncherProps {
|
|
|
34
37
|
loginHint?: string;
|
|
35
38
|
class?: HTMLAttributes['class'];
|
|
36
39
|
}
|
|
40
|
+
/** An app's icon as an image, with an optional version for dark mode. */
|
|
41
|
+
export type AppLauncherImage = {
|
|
42
|
+
light: string;
|
|
43
|
+
dark?: string;
|
|
44
|
+
};
|
|
37
45
|
declare const _default: typeof __VLS_export;
|
|
38
46
|
export default _default;
|
|
39
47
|
declare const __VLS_export: import('vue').DefineComponent<AppLauncherProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AppLauncherProps> & Readonly<{}>, {
|
|
@@ -4,6 +4,11 @@ export interface HeaderUser {
|
|
|
4
4
|
email?: string;
|
|
5
5
|
/** Organisation or school the account belongs to, shown at the top of the account menu. */
|
|
6
6
|
organisation?: string;
|
|
7
|
+
/**
|
|
8
|
+
* The organisation's logo (e.g. a wordmark), shown at the top of the
|
|
9
|
+
* account menu instead of its name. Its alt text is the organisation's name.
|
|
10
|
+
*/
|
|
11
|
+
organisationLogo?: HeaderImage;
|
|
7
12
|
/** Picture URL. Initials are shown without one. */
|
|
8
13
|
avatar?: string;
|
|
9
14
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Reka's popper (e.g. InputDate's calendar), so they all match.
|
|
4
4
|
*
|
|
5
5
|
* An elevated panel (white; a step lighter than the page in dark mode) with
|
|
6
|
-
* the same border
|
|
6
|
+
* the same border as a basic Button, 8px corners like a Card or dialog, a shadow,
|
|
7
7
|
* and the theme's fade in / out (Reka waits for the fade-out to finish
|
|
8
8
|
* before removing the panel).
|
|
9
9
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export type { PageHeaderAction, PageHeaderProps } from './components/PageHeader/
|
|
|
11
11
|
export { default as SettingsRow } from './components/SettingsRow/SettingsRow.vue';
|
|
12
12
|
export type { SettingsRowProps } from './components/SettingsRow/SettingsRow.vue';
|
|
13
13
|
export { default as AppLauncher } from './components/AppLauncher/AppLauncher.vue';
|
|
14
|
-
export type { AppLauncherApp, AppLauncherProps } from './components/AppLauncher/AppLauncher.vue';
|
|
14
|
+
export type { AppLauncherApp, AppLauncherImage, AppLauncherProps } from './components/AppLauncher/AppLauncher.vue';
|
|
15
15
|
export { kestonApps } from './components/AppLauncher/apps';
|
|
16
16
|
export { default as Footer } from './components/Footer/Footer.vue';
|
|
17
17
|
export type { FooterLink, FooterProps } from './components/Footer/Footer.vue';
|