@meddleware/ui 0.1.40 → 0.1.41

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 CHANGED
@@ -68,6 +68,8 @@ Seasonal theming is entirely in `@meddleware/design-tokens` (import `seasons.css
68
68
  | --- | --- |
69
69
  | `AppHeader` | Top bar (`<header>`). `sidebarId` shows a menu button below 45em that opens that sidebar as a drawer. Slots `brand`, default and `actions` render **directly** in the header — no wrapper elements. The brand slot's single element comes first and takes the brand typography, pushing everything after it to the inline end; default-slot content that should fill the gap sets its own `flex: 1`. |
70
70
  | `AppSidebar` | Side panel (`<aside>`) around a component-owned `<nav>` (default slot; `navLabel`, default "Primary"). Below 45em it becomes a **drawer** on the Popover API, opened by `AppHeader`'s menu button (give the sidebar an `id`, pass it as `sidebar-id`), closed by Escape, a click outside, or choosing an item. The `head`, `body` and `foot` slots render directly and style themselves; the nav grows, so body/foot content settles at the bottom. |
71
+ | `BrandMark` | The company mark, the Kopimi "K" (public domain, vendored; `src/brand/README.md`), drawn in `currentColor` so it takes the accent in either colour mode. Decorative unless given `label`. The favicon set (`favicon.svg` with a dark-mode colour, `favicon.ico`, `apple-touch-icon.png`, `icon-192.png`, `icon-512.png`) is published as `@meddleware/ui/brand/*`; apps get it through `@meddleware/frontend-config`'s `brandIcons`. |
72
+ | `AppToolShell` | The frame of a standalone tool app: header with the mark and the tool's name, `actions` slot, colour-mode control, footer with the documentation links and the copyright line. `docsUrl` / `devUrl` take a URL or `false` (no link); `pageHeading` false when the page has its own `h1`. |
71
73
  | `AppFooter` | Page footer (`<footer>`). Slots `start`, default and `end` render directly; `docsUrl` / `devUrl` render a component-owned `<nav aria-label="Documentation">` at the inline end. |
72
74
 
73
75
  All three accept a `variant` prop (a CSS class, `mw-panel--dark` and so on, defined in the reset; `colors` overrides are written to the element through the CSSOM, never as an inline `style` attribute, so they work under a strict CSP):
package/dist/base.css CHANGED
@@ -4,6 +4,7 @@
4
4
  @layer mw.reset;@layer mw.components{.mw-header[data-v-2037e3f5]{align-items:center;gap:var(--space-2xs);min-height:var(--mw-header-height);padding:var(--space-4xs) var(--space-sm);background:var(--_bg);color:var(--_text);border-bottom:1px solid var(--_border);font-family:var(--mw-font-sans);transition:background var(--transition-base), backdrop-filter var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);flex-wrap:wrap;display:flex}.mw-header--sticky[data-v-2037e3f5]{z-index:var(--z-header);position:sticky;top:0}.mw-header--scrolled[data-v-2037e3f5]{background:color-mix(in srgb, var(--bg) 82%, transparent);-webkit-backdrop-filter:blur(var(--space-2xs));backdrop-filter:blur(var(--space-2xs));border-bottom-color:var(--border);box-shadow:var(--shadow-1)}.mw-header__brand[data-v-2037e3f5]{align-items:center;gap:var(--space-2xs);font-weight:var(--font-weight-brand);letter-spacing:var(--tracking-wide);overflow-wrap:anywhere;min-inline-size:0;margin-inline-end:auto;text-decoration:none;display:flex}.mw-header a[data-v-2037e3f5-s]{color:inherit}.mw-header__menu[data-v-2037e3f5]{padding:var(--space-3xs);border:1px solid var(--_border);border-radius:var(--radius-sm);color:inherit;cursor:pointer;background:0 0;justify-content:center;align-items:center;display:none}.mw-header__menu[data-v-2037e3f5]:hover{background:color-mix(in srgb, currentColor 12%, transparent)}@media (width<45em){.mw-header__menu[data-v-2037e3f5]{display:inline-flex}}.mw-header[data-v-2037e3f5]:not(.mw-header--transparent){--ok:var(--_ok);--danger:var(--_danger);--info:var(--_info)}}
5
5
  @layer mw.reset;@layer mw.components{.mw-sidebar[data-v-f5e6df6c]{--_width:var(--v4ba6c322);height:100%;width:var(--_width);background:var(--_bg);color:var(--_text);border:0;border-right:1px solid var(--_border);font-family:var(--mw-font-sans);flex-direction:column;margin:0;padding:0;display:flex;position:static;inset:auto;overflow:visible}.mw-sidebar__nav[data-v-f5e6df6c]{gap:var(--space-3xs);padding:var(--space-xs) 0;flex-direction:column;flex:auto;display:flex;overflow-y:auto}@media (width<45em){.mw-sidebar[data-v-f5e6df6c]:not(:popover-open){display:none}.mw-sidebar[data-v-f5e6df6c]:popover-open{width:min(var(--_width), 85vw);height:100dvh;box-shadow:var(--shadow-3);position:fixed;inset:0 auto 0 0}.mw-sidebar[data-v-f5e6df6c]::backdrop{background:var(--backdrop)}}.mw-sidebar a[data-v-f5e6df6c-s]{color:inherit}.mw-sidebar[data-v-f5e6df6c]:not(.mw-sidebar--transparent){--ok:var(--_ok);--danger:var(--_danger);--info:var(--_info)}}
6
6
  @layer mw.reset;@layer mw.components{.mw-tab-nav[data-v-7b318cd8]{gap:var(--space-3xs);border-bottom:var(--space-4xs) solid var(--border);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}.mw-tab-nav__item[data-v-7b318cd8]{display:contents}.mw-tab-nav__tab[data-v-7b318cd8]{appearance:none;border:none;border-bottom:var(--space-4xs) solid transparent;padding:var(--space-2xs) var(--space-sm);margin-bottom:calc(-1 * var(--space-4xs));cursor:pointer;font-size:var(--font-size-base);color:var(--muted);transition:color var(--transition-base), border-color var(--transition-base);background:0 0;border-radius:0}.mw-tab-nav__tab[data-v-7b318cd8]:hover{color:var(--text)}.mw-tab-nav__tab--active[data-v-7b318cd8]{border-bottom-color:var(--accent);color:var(--text);font-weight:var(--font-weight-semibold)}.mw-tab-nav--raised[data-v-7b318cd8]{border-bottom:1px solid var(--border);background:var(--surface);padding:var(--space-3xs) var(--space-3xs) 0;align-items:flex-end;gap:var(--space-4xs);scrollbar-width:none;flex-shrink:0;overflow-x:auto}.mw-tab-nav--raised[data-v-7b318cd8]::-webkit-scrollbar{display:none}.mw-tab-nav--raised .mw-tab-nav__tab[data-v-7b318cd8]{border-bottom:1px solid var(--border);padding:var(--space-3xs) var(--space-xs) var(--space-3xs);font-size:var(--font-size-sm);font-weight:var(--font-weight-medium);color:var(--muted);background:var(--lift);border-top:var(--space-4xs) solid transparent;white-space:nowrap;transition:color var(--transition-base), background var(--transition-base), border-color var(--transition-base);border-left:1px solid #0000;border-right:1px solid #0000;margin-bottom:-1px}.mw-tab-nav--raised .mw-tab-nav__tab[data-v-7b318cd8]:hover:not(.mw-tab-nav__tab--active){color:var(--text);background:var(--surface)}.mw-tab-nav--raised .mw-tab-nav__tab--active[data-v-7b318cd8]{color:var(--text);background:var(--bg);border-color:var(--accent) var(--border) var(--bg) var(--border);font-weight:var(--font-weight-semibold)}.mw-tab-nav--raised.mw-tab-nav--lg[data-v-7b318cd8]{gap:var(--space-4xs);padding:var(--space-3xs) var(--space-3xs) 0}.mw-tab-nav--raised.mw-tab-nav--lg .mw-tab-nav__tab[data-v-7b318cd8]{padding:var(--space-2xs) var(--space-sm);font-size:var(--font-size-base);font-weight:var(--font-weight-semibold)}.mw-tab-nav--flush[data-v-7b318cd8]{background:0 0;padding-inline:0}}
7
+ @layer mw.reset;@layer mw.components{.mw-brand-mark[data-v-701f75be]{inline-size:var(--mw-brand-size,1em);block-size:var(--mw-brand-size,1em);vertical-align:-.125em;flex:none;display:inline-block}}
7
8
  @layer mw.reset;@layer mw.components{.mw-mode[data-v-905a9db8]{gap:var(--space-4xs);min-inline-size:0;padding:var(--space-4xs);border:1px solid var(--_border,var(--border));border-radius:var(--radius);margin:0;display:inline-flex}.mw-mode__btn[data-v-905a9db8]{justify-content:center;align-items:center;gap:var(--space-3xs);min-block-size:1.5rem;min-inline-size:1.5rem;padding:var(--space-3xs) var(--space-2xs);border-radius:var(--radius-sm);color:var(--_muted,var(--muted));font:inherit;font-size:var(--font-size-sm);cursor:pointer;transition:color var(--transition-base), background var(--transition-base);background:0 0;border:0;display:inline-flex}.mw-mode__btn[data-v-905a9db8]:hover{color:var(--_text,var(--text))}.mw-mode__btn.is-active[data-v-905a9db8]{color:var(--_text,var(--text));background:color-mix(in srgb, var(--_text,var(--text)) 14%, transparent)}.mw-mode__btn[data-v-905a9db8]:focus-visible{outline:2px solid var(--focus-ring);outline-offset:1px}@media (forced-colors:active){.mw-mode__btn.is-active[data-v-905a9db8]{outline-offset:-2px;outline:2px solid highlight}}@media (width<40em){.mw-mode__label[data-v-905a9db8]{display:none}}}
8
9
  @layer mw.reset;@layer mw.components{.ca-root[data-v-60f80445]{align-items:center;gap:.35em;max-width:100%;display:inline-flex}.ca-value[data-v-60f80445]{font-family:var(--mw-font-mono);font-size:inherit;overflow-wrap:anywhere;white-space:normal;min-width:0}}
9
10
  @layer mw.reset;@layer mw.components{.copyright-line[data-v-e1afe1f4]{text-align:center;max-width:100%;display:inline-block}.symbol-link[data-v-e1afe1f4]{white-space:nowrap;color:inherit;vertical-align:text-top;padding:0 var(--space-4xs);align-items:center;text-decoration:none;display:inline-flex}.symbol-link[data-v-e1afe1f4]:hover{text-decoration:underline}.symbol-mark[data-v-e1afe1f4]{vertical-align:-.15em;display:inline}}
Binary file
Binary file
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="-88 1 790 790"><style>path{fill:#86321d}@media (prefers-color-scheme:dark){path{fill:#e79475}}</style><path d="m441.08 720.52l-93.24 66.61-417.03-295.1 0.004-251.03 93.239-65.58 149.6 104.51v-210.05l93.24-66.6 94.27 66.604v210.05l67.62-47.13 79.93 56.36 80.94-57.39 94.26 66.61v251.03l-94.26 65.58-80.94-57.38-67.63 48.15z M-43.573 241l67.626 48.16 68.65-48.16-68.65-48.16zm80.948 57.38l67.625 48.15 68.65-48.15-67.62-48.17zm79.925 57.37l68.64 48.16 68.66-48.16-68.66-48.15zm149.59-334.03l-68.65 48.16 68.65 48.156 68.65-48.156zm0 114.76l-68.65 48.16 68.65 48.16 67.63-49.18zm0 113.74l-68.65 48.16 68.65 48.15 67.63-48.15zm-68.65 162.91l68.65 47.14 67.63-48.16-67.63-47.14zm80.95 56.35l68.65 48.16 67.62-48.16-67.62-48.15zm149.59-219.26l-68.65 48.16 67.63 48.15 68.65-48.15zm160.87 0l-67.63 48.16 67.63 48.15 68.65-48.15z" fill-rule="evenodd" /></svg>
Binary file
Binary file
@@ -0,0 +1,2 @@
1
+ export declare const MARK_VIEW_BOX = "-88 1 790 790";
2
+ export declare const MARK_PATH = "m441.08 720.52l-93.24 66.61-417.03-295.1 0.004-251.03 93.239-65.58 149.6 104.51v-210.05l93.24-66.6 94.27 66.604v210.05l67.62-47.13 79.93 56.36 80.94-57.39 94.26 66.61v251.03l-94.26 65.58-80.94-57.38-67.63 48.15z M-43.573 241l67.626 48.16 68.65-48.16-68.65-48.16zm80.948 57.38l67.625 48.15 68.65-48.15-67.62-48.17zm79.925 57.37l68.64 48.16 68.66-48.16-68.66-48.15zm149.59-334.03l-68.65 48.16 68.65 48.156 68.65-48.156zm0 114.76l-68.65 48.16 68.65 48.16 67.63-49.18zm0 113.74l-68.65 48.16 68.65 48.15 67.63-48.15zm-68.65 162.91l68.65 47.14 67.63-48.16-67.63-47.14zm80.95 56.35l68.65 48.16 67.62-48.16-67.62-48.15zm149.59-219.26l-68.65 48.16 67.63 48.15 68.65-48.15zm160.87 0l-67.63 48.16 67.63 48.15 68.65-48.15z";
@@ -0,0 +1,4 @@
1
+ //#region src/brand/mark.ts
2
+ var e = "-88 1 790 790", t = "m441.08 720.52l-93.24 66.61-417.03-295.1 0.004-251.03 93.239-65.58 149.6 104.51v-210.05l93.24-66.6 94.27 66.604v210.05l67.62-47.13 79.93 56.36 80.94-57.39 94.26 66.61v251.03l-94.26 65.58-80.94-57.38-67.63 48.15z M-43.573 241l67.626 48.16 68.65-48.16-68.65-48.16zm80.948 57.38l67.625 48.15 68.65-48.15-67.62-48.17zm79.925 57.37l68.64 48.16 68.66-48.16-68.66-48.15zm149.59-334.03l-68.65 48.16 68.65 48.156 68.65-48.156zm0 114.76l-68.65 48.16 68.65 48.16 67.63-49.18zm0 113.74l-68.65 48.16 68.65 48.15 67.63-48.15zm-68.65 162.91l68.65 47.14 67.63-48.16-67.63-47.14zm80.95 56.35l68.65 48.16 67.62-48.16-67.62-48.15zm149.59-219.26l-68.65 48.16 67.63 48.15 68.65-48.15zm160.87 0l-67.63 48.16 67.63 48.15 68.65-48.15z";
3
+ //#endregion
4
+ export { t as MARK_PATH, e as MARK_VIEW_BOX };
@@ -3,8 +3,12 @@ type __VLS_Props = {
3
3
  title: string;
4
4
  /** The tool's page name on the docs and developer sites (`access-gate` → `…/blockchain/sui/access-gate/`, `…/sui/access-gate/`). */
5
5
  slug: string;
6
- docsUrl?: string;
7
- devUrl?: string;
6
+ /** The documentation link: a URL, or `false` for none (default: the tool's page on the docs site). */
7
+ docsUrl?: string | false;
8
+ /** The developer-documentation link: a URL, or `false` for none (default: the tool's page on the developer site). */
9
+ devUrl?: string | false;
10
+ /** Whether the shell adds the (visually hidden) page heading. Default true; false when the page brings its own `h1`. */
11
+ pageHeading?: boolean;
8
12
  /** The colour mode a first visit gets; a saved choice always wins. */
9
13
  defaultMode?: 'light' | 'dark' | 'system';
10
14
  };
@@ -19,8 +23,9 @@ declare const __VLS_template: () => {
19
23
  };
20
24
  type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
21
25
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
22
- docsUrl: string;
23
- devUrl: string;
26
+ docsUrl: string | false;
27
+ devUrl: string | false;
28
+ pageHeading: boolean;
24
29
  defaultMode: "light" | "dark" | "system";
25
30
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
31
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,46 +1,60 @@
1
1
  import e from "./AppHeader.js";
2
2
  import t from "./AppFooter.js";
3
- import n from "./ColorModeControl.js";
4
- import r from "./CopyrightLine.js";
5
- import i from "./UiAppShell.js";
6
- import { useColorMode as a } from "../composables/useColorMode.js";
7
- import { computed as o, createBlock as s, createElementVNode as c, createTextVNode as l, createVNode as u, defineComponent as d, openBlock as f, renderSlot as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
3
+ import n from "./BrandMark.js";
4
+ import r from "./ColorModeControl.js";
5
+ import i from "./CopyrightLine.js";
6
+ import a from "./UiAppShell.js";
7
+ import { useColorMode as o } from "../composables/useColorMode.js";
8
+ import { computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createTextVNode as d, createVNode as f, defineComponent as p, openBlock as m, renderSlot as h, toDisplayString as g, unref as _, withCtx as v } from "vue";
8
9
  //#region src/components/AppToolShell.vue?vue&type=script&setup=true&lang.ts
9
- var _ = { class: "mw-visually-hidden" }, v = /*@__PURE__*/ d({
10
+ var y = {
11
+ key: 0,
12
+ class: "mw-visually-hidden"
13
+ }, b = /*@__PURE__*/ p({
10
14
  __name: "AppToolShell",
11
15
  props: {
12
16
  title: {},
13
17
  slug: {},
14
- docsUrl: { default: void 0 },
15
- devUrl: { default: void 0 },
18
+ docsUrl: {
19
+ type: [String, Boolean],
20
+ default: void 0
21
+ },
22
+ devUrl: {
23
+ type: [String, Boolean],
24
+ default: void 0
25
+ },
26
+ pageHeading: {
27
+ type: Boolean,
28
+ default: !0
29
+ },
16
30
  defaultMode: { default: "dark" }
17
31
  },
18
- setup(d) {
19
- let v = d, { mode: y, set: b } = a(v.defaultMode), x = o(() => v.docsUrl || `https://docs.meddleware.co.uk/blockchain/sui/${v.slug}/`), S = o(() => v.devUrl || `https://meddleware.dev/sui/${v.slug}/`);
20
- return (a, o) => (f(), s(i, { contained: "" }, {
21
- header: g(() => [u(e, { variant: "dark" }, {
22
- brand: g(() => [p(a.$slots, "brand", {}, () => [l(m(d.title), 1)])]),
23
- actions: g(() => [p(a.$slots, "actions"), u(n, {
24
- "model-value": h(y),
25
- "onUpdate:modelValue": h(b)
32
+ setup(p) {
33
+ let b = p, { mode: x, set: S } = o(b.defaultMode), C = s(() => b.docsUrl === !1 ? void 0 : b.docsUrl || `https://docs.meddleware.co.uk/blockchain/sui/${b.slug}/`), w = s(() => b.devUrl === !1 ? void 0 : b.devUrl || `https://meddleware.dev/sui/${b.slug}/`);
34
+ return (o, s) => (m(), c(a, { contained: "" }, {
35
+ header: v(() => [f(e, { variant: "dark" }, {
36
+ brand: v(() => [h(o.$slots, "brand", {}, () => [f(n), d(" " + g(p.title), 1)])]),
37
+ actions: v(() => [h(o.$slots, "actions"), f(r, {
38
+ "model-value": _(x),
39
+ "onUpdate:modelValue": _(S)
26
40
  }, null, 8, ["model-value", "onUpdate:modelValue"])]),
27
41
  _: 3
28
42
  })]),
29
- footer: g(() => [u(t, {
30
- "docs-url": x.value,
31
- "dev-url": S.value
43
+ footer: v(() => [f(t, {
44
+ "docs-url": C.value,
45
+ "dev-url": w.value
32
46
  }, {
33
- start: g(() => [u(r, {
47
+ start: v(() => [f(i, {
34
48
  "symbol-variant": "kopimi",
35
49
  "organisation-name": "Meddleware",
36
50
  "rights-statement": "jam"
37
51
  })]),
38
52
  _: 1
39
53
  }, 8, ["docs-url", "dev-url"])]),
40
- default: g(() => [c("h1", _, m(d.title), 1), p(a.$slots, "default")]),
54
+ default: v(() => [p.pageHeading ? (m(), u("h1", y, g(p.title), 1)) : l("", !0), h(o.$slots, "default")]),
41
55
  _: 3
42
56
  }));
43
57
  }
44
58
  });
45
59
  //#endregion
46
- export { v as default };
60
+ export { b as default };
@@ -0,0 +1 @@
1
+ @layer mw.reset;@layer mw.components{.mw-brand-mark[data-v-701f75be]{inline-size:var(--mw-brand-size,1em);block-size:var(--mw-brand-size,1em);vertical-align:-.125em;flex:none;display:inline-block}}
@@ -0,0 +1,7 @@
1
+ import e from "../_virtual/_plugin-vue_export-helper.js";
2
+ import t from "./BrandMark.vue_vue_type_script_setup_true_lang.js";
3
+ import "./BrandMark.css";
4
+ //#region src/components/BrandMark.vue
5
+ var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-701f75be"]]);
6
+ //#endregion
7
+ export { n as default };
@@ -0,0 +1,7 @@
1
+ type __VLS_Props = {
2
+ /** An accessible name, for a mark that stands alone. Without it the mark is hidden from assistive technology. */
3
+ label?: string;
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
7
+ export default _default;
@@ -0,0 +1,28 @@
1
+ import { MARK_PATH as e, MARK_VIEW_BOX as t } from "../brand/mark.js";
2
+ import { createElementBlock as n, createElementVNode as r, defineComponent as i, openBlock as a, unref as o } from "vue";
3
+ //#region src/components/BrandMark.vue?vue&type=script&setup=true&lang.ts
4
+ var s = [
5
+ "viewBox",
6
+ "role",
7
+ "aria-label",
8
+ "aria-hidden"
9
+ ], c = ["d"], l = /*@__PURE__*/ i({
10
+ __name: "BrandMark",
11
+ props: { label: {} },
12
+ setup(i) {
13
+ return (l, u) => (a(), n("svg", {
14
+ class: "mw-brand-mark",
15
+ viewBox: o(t),
16
+ role: i.label ? "img" : void 0,
17
+ "aria-label": i.label,
18
+ "aria-hidden": i.label ? void 0 : "true",
19
+ focusable: "false"
20
+ }, [r("path", {
21
+ d: o(e),
22
+ fill: "currentColor",
23
+ "fill-rule": "evenodd"
24
+ }, null, 8, c)], 8, s));
25
+ }
26
+ });
27
+ //#endregion
28
+ export { l as default };
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ export { default as AppHeader } from './components/AppHeader.vue';
2
2
  export { default as AppSidebar } from './components/AppSidebar.vue';
3
3
  export { default as AppFooter } from './components/AppFooter.vue';
4
4
  export { default as AppToolShell } from './components/AppToolShell.vue';
5
+ export { default as BrandMark } from './components/BrandMark.vue';
5
6
  export { default as ColorModeControl } from './components/ColorModeControl.vue';
6
7
  export { default as UiButton } from './components/UiButton.vue';
7
8
  export { default as UiCard } from './components/UiCard.vue';
package/dist/index.js CHANGED
@@ -2,59 +2,60 @@ import { useStickyOffset as e } from "./composables/useStickyOffset.js";
2
2
  import t from "./components/AppHeader.js";
3
3
  import n from "./components/AppSidebar.js";
4
4
  import r from "./components/AppFooter.js";
5
- import i from "./components/ColorModeControl.js";
6
- import a from "./components/CopyrightLine.js";
7
- import o from "./components/UiSkipLink.js";
8
- import s from "./components/UiAppShell.js";
9
- import { useColorMode as c } from "./composables/useColorMode.js";
10
- import l from "./components/AppToolShell.js";
11
- import u from "./components/UiButton.js";
12
- import d from "./components/UiCard.js";
13
- import f from "./components/UiSelect.js";
14
- import p from "./components/UiNotice.js";
15
- import m from "./components/SidebarItem.js";
16
- import h from "./components/SidebarGroup.js";
17
- import { tabIds as g } from "./tabs.js";
18
- import _ from "./components/AppTabNav.js";
19
- import v from "./components/UiTabPanel.js";
20
- import y from "./components/UiDialog.js";
21
- import b from "./components/UiCopyButton.js";
22
- import x from "./components/CopyableAddress.js";
23
- import S from "./components/ExplorerLink.js";
24
- import C from "./components/UiStepper.js";
25
- import w from "./components/UiSegmentedControl.js";
26
- import T from "./components/UiFieldHint.js";
27
- import E from "./components/UiFormField.js";
28
- import D from "./components/UiToolIntro.js";
29
- import O from "./components/UiInput.js";
30
- import k from "./components/UiTextarea.js";
31
- import A from "./components/UiFileField.js";
32
- import j from "./components/UiTextField.js";
33
- import M from "./components/UiSelectField.js";
34
- import N from "./components/UiCheckField.js";
35
- import P from "./components/UiDateTimeField.js";
36
- import F from "./components/UiMeter.js";
37
- import I from "./components/UiPager.js";
38
- import L from "./components/UiLiveStatus.js";
39
- import R from "./components/UiEmptyState.js";
40
- import z from "./components/UiCodeBlock.js";
41
- import B from "./components/UiAmount.js";
42
- import V from "./components/UiPanel.js";
43
- import H from "./components/UiBadge.js";
44
- import U from "./components/UiToolbarButton.js";
45
- import W from "./components/UiToolbar.js";
46
- import G from "./components/UiStatGrid.js";
47
- import K from "./components/UiStatRow.js";
48
- import q from "./components/UiDataTable.js";
49
- import { useNow as J } from "./composables/useNow.js";
50
- import Y from "./components/UiStatusDot.js";
51
- import X from "./components/UiStatusBar.js";
52
- import Z from "./components/UiActivityFeed.js";
53
- import Q from "./components/UiActivityItem.js";
54
- import { MIN_STATUS_POLL_MS as $, useStatusSnapshot as ee } from "./composables/useStatusSnapshot.js";
55
- import te from "./components/StatusWidget.js";
56
- import { useSeason as ne } from "./composables/useSeason.js";
57
- import { usePager as re } from "./composables/usePager.js";
58
- import { RUNTIME_CONFIG_PATH as ie, RUNTIME_ENDPOINT_KEYS as ae, loadRuntimeConfig as oe, parseEndpoint as se, parseRuntimeConfig as ce, resetRuntimeConfigForTesting as le, runtimeEndpoints as ue, withRuntimeEnv as de } from "./runtime-config.js";
59
- import { DEFAULT_TRUNCATE_CHARS as fe, STATUS_HEADLINE as pe, STATUS_LABEL as me, isStatusLevel as he, parseSnapshot as ge, safeHref as _e, safeIcon as ve, safePath as ye, suiExplorerUrl as be, truncateMiddle as xe, walruscanBlobUrl as Se } from "@meddleware/web-utils";
60
- export { r as AppFooter, t as AppHeader, n as AppSidebar, _ as AppTabNav, l as AppToolShell, i as ColorModeControl, x as CopyableAddress, a as CopyrightLine, fe as DEFAULT_TRUNCATE_CHARS, S as ExplorerLink, $ as MIN_STATUS_POLL_MS, ie as RUNTIME_CONFIG_PATH, ae as RUNTIME_ENDPOINT_KEYS, pe as STATUS_HEADLINE, me as STATUS_LABEL, h as SidebarGroup, m as SidebarItem, te as StatusWidget, Z as UiActivityFeed, Q as UiActivityItem, B as UiAmount, s as UiAppShell, H as UiBadge, u as UiButton, d as UiCard, N as UiCheckField, z as UiCodeBlock, b as UiCopyButton, q as UiDataTable, P as UiDateTimeField, y as UiDialog, R as UiEmptyState, T as UiFieldHint, A as UiFileField, E as UiFormField, O as UiInput, L as UiLiveStatus, F as UiMeter, p as UiNotice, I as UiPager, V as UiPanel, w as UiSegmentedControl, f as UiSelect, M as UiSelectField, o as UiSkipLink, G as UiStatGrid, K as UiStatRow, X as UiStatusBar, Y as UiStatusDot, C as UiStepper, v as UiTabPanel, j as UiTextField, k as UiTextarea, D as UiToolIntro, W as UiToolbar, U as UiToolbarButton, he as isStatusLevel, oe as loadRuntimeConfig, se as parseEndpoint, ce as parseRuntimeConfig, ge as parseSnapshot, le as resetRuntimeConfigForTesting, ue as runtimeEndpoints, _e as safeHref, ve as safeIcon, ye as safePath, be as suiExplorerUrl, g as tabIds, xe as truncateMiddle, c as useColorMode, J as useNow, re as usePager, ne as useSeason, ee as useStatusSnapshot, e as useStickyOffset, Se as walruscanBlobUrl, de as withRuntimeEnv };
5
+ import i from "./components/BrandMark.js";
6
+ import a from "./components/ColorModeControl.js";
7
+ import o from "./components/CopyrightLine.js";
8
+ import s from "./components/UiSkipLink.js";
9
+ import c from "./components/UiAppShell.js";
10
+ import { useColorMode as l } from "./composables/useColorMode.js";
11
+ import u from "./components/AppToolShell.js";
12
+ import d from "./components/UiButton.js";
13
+ import f from "./components/UiCard.js";
14
+ import p from "./components/UiSelect.js";
15
+ import m from "./components/UiNotice.js";
16
+ import h from "./components/SidebarItem.js";
17
+ import g from "./components/SidebarGroup.js";
18
+ import { tabIds as _ } from "./tabs.js";
19
+ import v from "./components/AppTabNav.js";
20
+ import y from "./components/UiTabPanel.js";
21
+ import b from "./components/UiDialog.js";
22
+ import x from "./components/UiCopyButton.js";
23
+ import S from "./components/CopyableAddress.js";
24
+ import C from "./components/ExplorerLink.js";
25
+ import w from "./components/UiStepper.js";
26
+ import T from "./components/UiSegmentedControl.js";
27
+ import E from "./components/UiFieldHint.js";
28
+ import D from "./components/UiFormField.js";
29
+ import O from "./components/UiToolIntro.js";
30
+ import k from "./components/UiInput.js";
31
+ import A from "./components/UiTextarea.js";
32
+ import j from "./components/UiFileField.js";
33
+ import M from "./components/UiTextField.js";
34
+ import N from "./components/UiSelectField.js";
35
+ import P from "./components/UiCheckField.js";
36
+ import F from "./components/UiDateTimeField.js";
37
+ import I from "./components/UiMeter.js";
38
+ import L from "./components/UiPager.js";
39
+ import R from "./components/UiLiveStatus.js";
40
+ import z from "./components/UiEmptyState.js";
41
+ import B from "./components/UiCodeBlock.js";
42
+ import V from "./components/UiAmount.js";
43
+ import H from "./components/UiPanel.js";
44
+ import U from "./components/UiBadge.js";
45
+ import W from "./components/UiToolbarButton.js";
46
+ import G from "./components/UiToolbar.js";
47
+ import K from "./components/UiStatGrid.js";
48
+ import q from "./components/UiStatRow.js";
49
+ import J from "./components/UiDataTable.js";
50
+ import { useNow as Y } from "./composables/useNow.js";
51
+ import X from "./components/UiStatusDot.js";
52
+ import Z from "./components/UiStatusBar.js";
53
+ import Q from "./components/UiActivityFeed.js";
54
+ import $ from "./components/UiActivityItem.js";
55
+ import { MIN_STATUS_POLL_MS as ee, useStatusSnapshot as te } from "./composables/useStatusSnapshot.js";
56
+ import ne from "./components/StatusWidget.js";
57
+ import { useSeason as re } from "./composables/useSeason.js";
58
+ import { usePager as ie } from "./composables/usePager.js";
59
+ import { RUNTIME_CONFIG_PATH as ae, RUNTIME_ENDPOINT_KEYS as oe, loadRuntimeConfig as se, parseEndpoint as ce, parseRuntimeConfig as le, resetRuntimeConfigForTesting as ue, runtimeEndpoints as de, withRuntimeEnv as fe } from "./runtime-config.js";
60
+ import { DEFAULT_TRUNCATE_CHARS as pe, STATUS_HEADLINE as me, STATUS_LABEL as he, isStatusLevel as ge, parseSnapshot as _e, safeHref as ve, safeIcon as ye, safePath as be, suiExplorerUrl as xe, truncateMiddle as Se, walruscanBlobUrl as Ce } from "@meddleware/web-utils";
61
+ export { r as AppFooter, t as AppHeader, n as AppSidebar, v as AppTabNav, u as AppToolShell, i as BrandMark, a as ColorModeControl, S as CopyableAddress, o as CopyrightLine, pe as DEFAULT_TRUNCATE_CHARS, C as ExplorerLink, ee as MIN_STATUS_POLL_MS, ae as RUNTIME_CONFIG_PATH, oe as RUNTIME_ENDPOINT_KEYS, me as STATUS_HEADLINE, he as STATUS_LABEL, g as SidebarGroup, h as SidebarItem, ne as StatusWidget, Q as UiActivityFeed, $ as UiActivityItem, V as UiAmount, c as UiAppShell, U as UiBadge, d as UiButton, f as UiCard, P as UiCheckField, B as UiCodeBlock, x as UiCopyButton, J as UiDataTable, F as UiDateTimeField, b as UiDialog, z as UiEmptyState, E as UiFieldHint, j as UiFileField, D as UiFormField, k as UiInput, R as UiLiveStatus, I as UiMeter, m as UiNotice, L as UiPager, H as UiPanel, T as UiSegmentedControl, p as UiSelect, N as UiSelectField, s as UiSkipLink, K as UiStatGrid, q as UiStatRow, Z as UiStatusBar, X as UiStatusDot, w as UiStepper, y as UiTabPanel, M as UiTextField, A as UiTextarea, O as UiToolIntro, G as UiToolbar, W as UiToolbarButton, ge as isStatusLevel, se as loadRuntimeConfig, ce as parseEndpoint, le as parseRuntimeConfig, _e as parseSnapshot, ue as resetRuntimeConfigForTesting, de as runtimeEndpoints, ve as safeHref, ye as safeIcon, be as safePath, xe as suiExplorerUrl, _ as tabIds, Se as truncateMiddle, l as useColorMode, Y as useNow, ie as usePager, re as useSeason, te as useStatusSnapshot, e as useStickyOffset, Ce as walruscanBlobUrl, fe as withRuntimeEnv };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meddleware/ui",
3
- "version": "0.1.40",
3
+ "version": "0.1.41",
4
4
  "description": "Shared Vue 3 component library for @meddleware UIs — layout shell (header/sidebar/footer), colour-mode control, and primitives. Built on @meddleware/design-tokens.",
5
5
  "homepage": "https://docs.meddleware.co.uk/",
6
6
  "license": "0BSD",
@@ -23,7 +23,8 @@
23
23
  },
24
24
  "./reset.css": "./dist/reset.css",
25
25
  "./base.css": "./dist/base.css",
26
- "./theme-init.js": "./dist/theme-init.js"
26
+ "./theme-init.js": "./dist/theme-init.js",
27
+ "./brand/*": "./dist/brand/*"
27
28
  },
28
29
  "files": [
29
30
  "dist"
@@ -34,12 +35,14 @@
34
35
  "lint:css": "stylelint \"src/**/*.{css,vue}\"",
35
36
  "lint:js": "eslint .",
36
37
  "lint": "npm run lint:css && npm run lint:js && npm run lint:html",
37
- "test": "vitest run",
38
+ "test": "vitest run && node scripts/check-brand.mjs",
38
39
  "lint:html": "html-validate \"src/**/*.vue\"",
39
40
  "build:gallery": "vite build --config vite.gallery.config.ts",
40
41
  "test:e2e": "playwright test",
41
42
  "shots": "SHOTS=1 playwright test",
42
- "check:dist": "node scripts/check-dist.mjs"
43
+ "check:dist": "node scripts/check-dist.mjs",
44
+ "build:brand": "node scripts/build-brand.mjs",
45
+ "check:brand": "node scripts/check-brand.mjs"
43
46
  },
44
47
  "peerDependencies": {
45
48
  "vue": "^3.5.0"
@@ -53,6 +56,7 @@
53
56
  "@meddleware/eslint-config": "^0.0.4",
54
57
  "@meddleware/frontend-config": "^0.0.2",
55
58
  "@playwright/test": "~1.64.1",
59
+ "@resvg/resvg-js": "^2.6.2",
56
60
  "@vitejs/plugin-vue": "^6.0.9",
57
61
  "@vue/eslint-config-typescript": "^14.9.0",
58
62
  "@vue/test-utils": "^2.5.1",