@thekestongroup/ui 0.21.0 → 0.23.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.
@@ -4,14 +4,17 @@ export interface AppLauncherApp {
4
4
  id: string;
5
5
  label: string;
6
6
  href: string;
7
- /** An icon component, or the name of one of the Keston app icons (id, admin, work, utilities, design). */
8
- icon?: Component | string;
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 panel of the Keston Group's apps, so people can move between
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<{}>, {
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';