@meddleware/ui 0.1.41 → 0.1.43

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
@@ -69,7 +69,7 @@ Seasonal theming is entirely in `@meddleware/design-tokens` (import `seasons.css
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
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`. |
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`; `contained` false lets the page use the full width; a `footer-note` slot adds a sentence to the footer. |
73
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. |
74
74
 
75
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):
@@ -9,6 +9,8 @@ type __VLS_Props = {
9
9
  devUrl?: string | false;
10
10
  /** Whether the shell adds the (visually hidden) page heading. Default true; false when the page brings its own `h1`. */
11
11
  pageHeading?: boolean;
12
+ /** Limit the page to the tool width (default). False for a full-width console. */
13
+ contained?: boolean;
12
14
  /** The colour mode a first visit gets; a saved choice always wins. */
13
15
  defaultMode?: 'light' | 'dark' | 'system';
14
16
  };
@@ -19,12 +21,15 @@ declare const __VLS_template: () => {
19
21
  actions?: (props: {}) => any;
20
22
  } & {
21
23
  default?: (props: {}) => any;
24
+ } & {
25
+ 'footer-note'?: (props: {}) => any;
22
26
  };
23
27
  };
24
28
  type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
25
29
  declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
26
30
  docsUrl: string | false;
27
31
  devUrl: string | false;
32
+ contained: boolean;
28
33
  pageHeading: boolean;
29
34
  defaultMode: "light" | "dark" | "system";
30
35
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -27,11 +27,15 @@ var y = {
27
27
  type: Boolean,
28
28
  default: !0
29
29
  },
30
+ contained: {
31
+ type: Boolean,
32
+ default: !0
33
+ },
30
34
  defaultMode: { default: "dark" }
31
35
  },
32
36
  setup(p) {
33
37
  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: "" }, {
38
+ return (o, s) => (m(), c(a, { contained: p.contained }, {
35
39
  header: v(() => [f(e, { variant: "dark" }, {
36
40
  brand: v(() => [h(o.$slots, "brand", {}, () => [f(n), d(" " + g(p.title), 1)])]),
37
41
  actions: v(() => [h(o.$slots, "actions"), f(r, {
@@ -49,11 +53,12 @@ var y = {
49
53
  "organisation-name": "Meddleware",
50
54
  "rights-statement": "jam"
51
55
  })]),
52
- _: 1
56
+ default: v(() => [h(o.$slots, "footer-note")]),
57
+ _: 3
53
58
  }, 8, ["docs-url", "dev-url"])]),
54
59
  default: v(() => [p.pageHeading ? (m(), u("h1", y, g(p.title), 1)) : l("", !0), h(o.$slots, "default")]),
55
60
  _: 3
56
- }));
61
+ }, 8, ["contained"]));
57
62
  }
58
63
  });
59
64
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meddleware/ui",
3
- "version": "0.1.41",
3
+ "version": "0.1.43",
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",
@@ -49,7 +49,7 @@
49
49
  },
50
50
  "dependencies": {
51
51
  "@meddleware/design-tokens": "^0.1.13",
52
- "@meddleware/web-utils": "^0.0.3"
52
+ "@meddleware/web-utils": "^0.0.4"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@axe-core/playwright": "^4.13.0",