@thekestongroup/ui 0.13.1 → 0.15.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/components/Popover/popover.d.ts +3 -2
- package/dist/components/Spinner/Spinner.vue.d.ts +1 -1
- package/dist/keston-ui.js +703 -699
- package/package.json +1 -1
- package/src/components/AppLauncher/AppLauncher.stories.ts +1 -1
- package/src/components/AppLauncher/AppLauncher.vue +9 -12
- package/src/components/AppLauncher/apps.ts +5 -5
- package/src/components/AppShell/AppShell.stories.ts +2 -2
- package/src/components/AppShell/AppShell.vue +10 -9
- package/src/components/Avatar/Avatar.vue +3 -3
- package/src/components/AvatarGroup/AvatarGroup.vue +4 -4
- package/src/components/Badge/Badge.vue +2 -2
- package/src/components/Breadcrumb/Breadcrumb.vue +5 -5
- package/src/components/Button/Button.stories.ts +1 -1
- package/src/components/Button/Button.vue +12 -9
- package/src/components/Calendar/Calendar.stories.ts +2 -2
- package/src/components/Calendar/Calendar.vue +8 -8
- package/src/components/Card/Card.stories.ts +5 -5
- package/src/components/Card/Card.vue +3 -3
- package/src/components/CardSelect/CardSelect.vue +10 -7
- package/src/components/ChangeIndicator/ChangeIndicator.vue +2 -2
- package/src/components/Checkbox/Checkbox.vue +5 -5
- package/src/components/CheckboxGroup/CheckboxGroup.stories.ts +1 -1
- package/src/components/CheckboxGroup/CheckboxGroup.vue +2 -2
- package/src/components/Checklist/Checklist.vue +3 -3
- package/src/components/Chip/Chip.stories.ts +1 -1
- package/src/components/Chip/Chip.vue +2 -2
- package/src/components/Divider/Divider.vue +4 -4
- package/src/components/EmptyState/EmptyState.vue +3 -3
- package/src/components/Footer/Footer.vue +4 -4
- package/src/components/FormField/FieldMessage.vue +3 -3
- package/src/components/FormField/FormField.stories.ts +1 -1
- package/src/components/FormField/FormField.vue +8 -3
- package/src/components/Header/Header.stories.ts +8 -8
- package/src/components/Header/Header.vue +10 -7
- package/src/components/InfoTip/InfoTip.stories.ts +1 -1
- package/src/components/InfoTip/InfoTip.vue +1 -1
- package/src/components/Input/Input.vue +1 -1
- package/src/components/InputCode/InputCode.stories.ts +1 -1
- package/src/components/InputCode/InputCode.vue +4 -4
- package/src/components/InputDate/InputDate.stories.ts +1 -1
- package/src/components/InputDate/InputDate.vue +5 -5
- package/src/components/InputNumber/InputNumber.stories.ts +1 -1
- package/src/components/InputNumber/InputNumber.vue +6 -6
- package/src/components/InputPassword/InputPassword.vue +4 -4
- package/src/components/InputRichText/InputRichText.stories.ts +1 -1
- package/src/components/InputRichText/InputRichText.vue +3 -3
- package/src/components/InputTextArea/InputTextArea.vue +1 -1
- package/src/components/Link/Link.stories.ts +4 -4
- package/src/components/Link/Link.vue +1 -1
- package/src/components/Menu/Menu.vue +6 -5
- package/src/components/Notification/Notification.stories.ts +3 -3
- package/src/components/Notification/Notification.vue +9 -9
- package/src/components/Notification/NotificationPane.vue +3 -3
- package/src/components/Notification/Toaster.vue +1 -1
- package/src/components/PageHeader/PageHeader.vue +2 -2
- package/src/components/Popover/Popover.stories.ts +2 -2
- package/src/components/Popover/popover.ts +4 -3
- package/src/components/Progress/Progress.vue +1 -1
- package/src/components/RadioGroup/RadioGroup.vue +6 -6
- package/src/components/RelativeTime/RelativeTime.stories.ts +1 -1
- package/src/components/Select/Select.stories.ts +1 -1
- package/src/components/Select/Select.vue +22 -18
- package/src/components/SettingsRow/SettingsRow.vue +1 -1
- package/src/components/Sidebar/Sidebar.stories.ts +2 -2
- package/src/components/Sidebar/Sidebar.vue +9 -9
- package/src/components/Slideover/Slideover.stories.ts +5 -5
- package/src/components/Slideover/Slideover.vue +6 -6
- package/src/components/Spinner/Spinner.stories.ts +7 -7
- package/src/components/Spinner/Spinner.vue +1 -1
- package/src/components/StatTile/StatTile.stories.ts +2 -2
- package/src/components/StatTile/StatTile.vue +6 -6
- package/src/components/Steps/Steps.vue +2 -2
- package/src/components/SummaryList/SummaryList.vue +8 -8
- package/src/components/Switch/Switch.vue +3 -3
- package/src/components/Table/Table.vue +12 -12
- package/src/components/Tabs/Tabs.vue +4 -4
- package/src/components/Tooltip/Tooltip.stories.ts +1 -1
- package/src/components/Tooltip/Tooltip.vue +1 -1
- package/src/components/UnsavedChangesBar/UnsavedChangesBar.stories.ts +1 -1
- package/src/components/UnsavedChangesBar/UnsavedChangesBar.vue +1 -1
- package/src/examples/AppPages.stories.ts +3 -3
- package/src/examples/FormLayout.stories.ts +3 -3
- package/src/examples/KestonIdPages.stories.ts +18 -18
- package/src/examples/SchoolPages.stories.ts +5 -5
- package/src/styles/theme.css +94 -5
|
@@ -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;
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* The shared look of floating panels: Popover, and anything else built on
|
|
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 and radius as a basic Button, a shadow,
|
|
6
7
|
* and the theme's fade in / out (Reka waits for the fade-out to finish
|
|
7
8
|
* before removing the panel).
|
|
8
9
|
*/
|
|
@@ -13,4 +14,4 @@ export declare const popoverContent: string[];
|
|
|
13
14
|
* covers the panel's border where they meet. Reka rotates the arrow's wrapper
|
|
14
15
|
* for each side, so this only needs drawing pointing down.
|
|
15
16
|
*/
|
|
16
|
-
export declare const popoverArrow = "block size-2.5 -translate-y-1/2 rotate-45 border-r border-b border-
|
|
17
|
+
export declare const popoverArrow = "block size-2.5 -translate-y-1/2 rotate-45 border-r border-b border-ink/10 bg-surface-elevated";
|
|
@@ -6,7 +6,7 @@ import { HTMLAttributes } from 'vue';
|
|
|
6
6
|
* - `value` from 0 to `max`: a ring that fills as the value goes up.
|
|
7
7
|
*
|
|
8
8
|
* It takes the surrounding text colour, like an icon, so put a text colour
|
|
9
|
-
* class on it or its parent (e.g. `class="text-primary"`).
|
|
9
|
+
* class on it or its parent (e.g. `class="text-primary-fg"`).
|
|
10
10
|
*/
|
|
11
11
|
export interface SpinnerProps {
|
|
12
12
|
/** Progress from 0 to `max`. Leave out (or null) for a continuous spinner. */
|