@thekestongroup/ui 0.10.0 → 0.11.1
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/README.md +8 -12
- package/dist/components/AppShell/AppShell.vue.d.ts +4 -1
- package/dist/components/Header/Header.vue.d.ts +6 -1
- package/dist/components/StatTile/StatTile.vue.d.ts +10 -1
- package/dist/keston-ui.js +451 -422
- package/package.json +1 -1
- package/src/components/AppShell/AppShell.vue +3 -1
- package/src/components/Header/Header.stories.ts +29 -0
- package/src/components/Header/Header.vue +14 -9
- package/src/components/StatTile/StatTile.stories.ts +10 -1
- package/src/components/StatTile/StatTile.vue +43 -6
package/README.md
CHANGED
|
@@ -112,19 +112,15 @@ prop, component or token).
|
|
|
112
112
|
|
|
113
113
|
1. With each change, run `pnpm changeset` and commit the file it creates.
|
|
114
114
|
Merging only collects changes: nothing is released yet.
|
|
115
|
-
2.
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
It tests and builds, works out the version from the changesets waiting,
|
|
123
|
-
updates `package.json` and `CHANGELOG.md`, commits and tags that on
|
|
124
|
-
`main`, and creates a GitHub Release. Then it starts the **Publish**
|
|
115
|
+
2. The **Release PR** workflow keeps a "Release vX" pull request up to date
|
|
116
|
+
with every changeset waiting on `main`: the new version in `package.json`
|
|
117
|
+
and the entry in `CHANGELOG.md`. It only proposes the release. You can also
|
|
118
|
+
run it by hand: Actions → Release PR → Run workflow.
|
|
119
|
+
3. When you want a release, merge that pull request. The **Tag release**
|
|
120
|
+
workflow then tags it, creates a GitHub Release and starts the **Publish**
|
|
125
121
|
workflow, which stages the release on npm (trusted publishing, no token
|
|
126
|
-
needed).
|
|
127
|
-
|
|
122
|
+
needed).
|
|
123
|
+
4. Approve the staged release on npmjs.com to make it live.
|
|
128
124
|
|
|
129
125
|
If staging on npm fails, run **Publish** again by hand on the release's tag
|
|
130
126
|
(e.g. `v0.4.0`); it skips a version that's already on npm.
|
|
@@ -21,7 +21,7 @@ import { SidebarItem, SidebarProps } from '../Sidebar/Sidebar.vue';
|
|
|
21
21
|
* account-settings, switch-account, log-out (and sign-in when signed out).
|
|
22
22
|
*
|
|
23
23
|
* Slots: default (the page), header-leading, header-middle, header-trailing,
|
|
24
|
-
* account, account-menu (passed to Header), sidebar-header and sidebar-footer (passed to Sidebar;
|
|
24
|
+
* account, account-menu and organisation (passed to Header), sidebar-header and sidebar-footer (passed to Sidebar;
|
|
25
25
|
* sidebar-header is only shown on wide screens, as the Slideover has its own
|
|
26
26
|
* title).
|
|
27
27
|
*/
|
|
@@ -64,6 +64,9 @@ type __VLS_Slots = {
|
|
|
64
64
|
'account-menu'?(props: {
|
|
65
65
|
close: () => void;
|
|
66
66
|
}): unknown;
|
|
67
|
+
organisation?(props: {
|
|
68
|
+
close: () => void;
|
|
69
|
+
}): unknown;
|
|
67
70
|
'sidebar-header'?(props: {
|
|
68
71
|
collapsed: boolean;
|
|
69
72
|
}): unknown;
|
|
@@ -19,7 +19,9 @@ export type HeaderUserAction = 'account-settings' | 'switch-account' | 'log-out'
|
|
|
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 /
|
|
22
|
-
* Log out: `{ close }`)
|
|
22
|
+
* Log out: `{ close }`), organisation (replaces the organisation heading at the
|
|
23
|
+
* very top of the account menu, e.g. with a row that switches organisation:
|
|
24
|
+
* `{ close }`).
|
|
23
25
|
*/
|
|
24
26
|
export interface HeaderProps {
|
|
25
27
|
/** Name of the app or area, shown next to the menu button. */
|
|
@@ -80,6 +82,9 @@ type __VLS_Slots = {
|
|
|
80
82
|
'account-menu'?(props: {
|
|
81
83
|
close: () => void;
|
|
82
84
|
}): unknown;
|
|
85
|
+
organisation?(props: {
|
|
86
|
+
close: () => void;
|
|
87
|
+
}): unknown;
|
|
83
88
|
};
|
|
84
89
|
declare const __VLS_base: import('vue').DefineComponent<HeaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
85
90
|
menu: () => any;
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import { Component, HTMLAttributes } from 'vue';
|
|
2
|
+
import { PrimitiveProps } from 'reka-ui';
|
|
2
3
|
/**
|
|
3
4
|
* One number that matters, in a small Card: "Open applications 48".
|
|
4
5
|
* Put several in a grid. Optionally with how it's changed ("+12% on last
|
|
5
6
|
* year") and a short description.
|
|
6
7
|
*
|
|
8
|
+
* Give it an `href` (or `as`, e.g. a router link, with its own `to`) and the
|
|
9
|
+
* whole tile becomes one link: an arrow in the corner shows it's clickable,
|
|
10
|
+
* and it darkens its border on hover and its background when pressed.
|
|
11
|
+
*
|
|
7
12
|
* Slots: value (e.g. a value with a unit in smaller text), description,
|
|
8
|
-
* footer (e.g. a "View all" link).
|
|
13
|
+
* footer (e.g. a "View all" link; not in a tile that is itself a link).
|
|
9
14
|
*/
|
|
10
15
|
export interface StatTileProps {
|
|
11
16
|
/** What the number is, e.g. "Open applications". */
|
|
@@ -28,6 +33,10 @@ export interface StatTileProps {
|
|
|
28
33
|
sentiment?: 'positive' | 'negative' | 'neutral';
|
|
29
34
|
/** Grey text under the value. */
|
|
30
35
|
description?: string;
|
|
36
|
+
/** Makes the whole tile a link to here. */
|
|
37
|
+
href?: string;
|
|
38
|
+
/** Element or component to render the link as, e.g. RouterLink (then pass its `to`). Makes the tile a link. */
|
|
39
|
+
as?: PrimitiveProps['as'];
|
|
31
40
|
class?: HTMLAttributes['class'];
|
|
32
41
|
}
|
|
33
42
|
type __VLS_Slots = {
|