@meddleware/ui 0.1.39 → 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 +2 -0
- package/dist/base.css +2 -1
- package/dist/brand/apple-touch-icon.png +0 -0
- package/dist/brand/favicon.ico +0 -0
- package/dist/brand/favicon.svg +1 -0
- package/dist/brand/icon-192.png +0 -0
- package/dist/brand/icon-512.png +0 -0
- package/dist/brand/mark.d.ts +2 -0
- package/dist/brand/mark.js +4 -0
- package/dist/components/AppToolShell.js +5 -0
- package/dist/components/AppToolShell.vue.d.ts +38 -0
- package/dist/components/AppToolShell.vue_vue_type_script_setup_true_lang.js +60 -0
- package/dist/components/BrandMark.css +1 -0
- package/dist/components/BrandMark.js +7 -0
- package/dist/components/BrandMark.vue.d.ts +7 -0
- package/dist/components/BrandMark.vue_vue_type_script_setup_true_lang.js +28 -0
- package/dist/components/UiDataTable.css +1 -1
- package/dist/components/UiDataTable.js +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +57 -55
- package/package.json +9 -5
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}}
|
|
@@ -21,7 +22,7 @@
|
|
|
21
22
|
@layer mw.reset;@layer mw.components{.mw-check[data-v-896bf59f]{gap:var(--space-xs);align-items:flex-start;display:flex}.mw-check__box[data-v-896bf59f]{inline-size:calc(var(--space-sm) + var(--space-3xs));block-size:calc(var(--space-sm) + var(--space-3xs));accent-color:var(--accent);flex-shrink:0;margin:0}.mw-check__hint[data-v-896bf59f]{color:var(--muted);font-size:var(--font-size-sm)}}
|
|
22
23
|
@layer mw.reset;@layer mw.components{.mw-code[data-v-53c0f7b8]{min-inline-size:0;max-inline-size:100%;margin:0}.mw-code__pre[data-v-53c0f7b8]{padding:var(--space-xs);background:var(--lift);color:var(--text);border:1px solid var(--border);border-radius:var(--radius-sm);font-family:var(--mw-font-mono);font-size:var(--font-size-sm);margin:0;overflow:auto}.mw-code__pre--wrap[data-v-53c0f7b8]{white-space:pre-wrap;overflow-wrap:anywhere}.mw-code__pre[data-v-53c0f7b8]:focus-visible{outline:2px solid var(--focus-ring);outline-offset:-2px}}
|
|
23
24
|
@layer mw.reset;@layer mw.components{.mw-copy[data-v-e8bdae3c]{min-width:1.5rem;min-height:1.5rem;color:var(--muted);cursor:pointer;transition:color var(--transition-base);background:0 0;border:none;flex:none;justify-content:center;align-items:center;padding:0;line-height:1;display:inline-flex;position:relative}.mw-copy[data-v-e8bdae3c]:hover{color:var(--text)}.mw-copy--copied[data-v-e8bdae3c]{color:var(--mw-link,var(--accent))}}
|
|
24
|
-
@layer mw.reset;@layer mw.components{.mw-data-table-wrap[data-v-
|
|
25
|
+
@layer mw.reset;@layer mw.components{.mw-data-table-wrap[data-v-57394578]{scrollbar-width:thin;position:relative;overflow-x:auto}.mw-data-table-wrap[data-v-57394578]:focus-visible{outline:2px solid var(--focus-ring);outline-offset:-2px}.mw-data-table[data-v-57394578]{border-collapse:collapse;width:100%;font-size:var(--font-size-sm)}.mw-data-table[data-v-57394578] th{text-align:left;padding:var(--space-3xs) var(--space-2xs);font-size:var(--font-size-2xs);font-weight:var(--font-weight-semibold);letter-spacing:var(--tracking-wide);text-transform:uppercase;color:var(--muted);border-bottom:1px solid var(--border);white-space:nowrap}.mw-data-table[data-v-57394578] tbody th[scope=row]{font-size:inherit;letter-spacing:normal;text-transform:none;color:var(--text);white-space:normal;vertical-align:middle}.mw-data-table[data-v-57394578] td{padding:var(--space-3xs) var(--space-2xs);border-bottom:1px solid var(--border);vertical-align:middle}.mw-data-table[data-v-57394578] tbody tr:last-child td,.mw-data-table[data-v-57394578] tbody tr:last-child th{border-bottom:none}.mw-data-table[data-v-57394578] tbody tr:nth-child(2n) td,.mw-data-table[data-v-57394578] tbody tr:nth-child(2n) th{background:var(--lift)}.mw-data-table__empty[data-v-57394578]{padding:var(--space-md) var(--space-sm);text-align:center;color:var(--muted);font-size:var(--font-size-sm);margin:0}.mw-data-table__hint[data-v-57394578]{padding:var(--space-3xs) var(--space-2xs);color:var(--muted);font-size:var(--font-size-xs);display:block;position:sticky;left:0}}
|
|
25
26
|
@layer mw.reset;@layer mw.components{.mw-dialog[data-v-a4a786e3]{--_width:var(--a58c281a);width:var(--_width);border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);max-height:90dvh;color:var(--text);box-shadow:var(--shadow-3);padding:0}.mw-dialog[data-v-a4a786e3]::backdrop{background:var(--backdrop);-webkit-backdrop-filter:blur(var(--space-4xs));backdrop-filter:blur(var(--space-4xs))}.mw-dialog__content[data-v-a4a786e3]{gap:var(--space-sm);padding:var(--space-md);flex-direction:column;display:flex}.mw-dialog__header[data-v-a4a786e3]{justify-content:space-between;align-items:center;gap:var(--space-sm);display:flex}.mw-dialog__title[data-v-a4a786e3]{font-size:var(--font-size-base);font-weight:var(--font-weight-semibold);margin:0}.mw-dialog__close[data-v-a4a786e3]{padding:0 var(--space-3xs);border-radius:var(--radius);color:var(--muted);font-size:var(--font-size-xl);cursor:pointer;background:0 0;border:0;line-height:1}.mw-dialog__close[data-v-a4a786e3]:hover{color:var(--text)}.mw-dialog__actions[data-v-a4a786e3]{justify-content:flex-end;gap:var(--space-xs);flex-wrap:wrap;display:flex}}
|
|
26
27
|
@layer mw.reset;@layer mw.components{.mw-empty[data-v-8463293a]{align-items:center;gap:var(--space-xs);padding:var(--space-md) var(--space-sm);text-align:center;flex-direction:column;display:flex}.mw-empty__text[data-v-8463293a]{color:var(--muted);margin:0}}
|
|
27
28
|
@layer mw.reset;@layer mw.components{.mw-field-hint[data-v-e1611375]{vertical-align:middle;margin-inline-start:var(--space-3xs);display:inline-block;position:relative}.mw-field-hint__btn[data-v-e1611375]{inline-size:calc(var(--space-sm) + var(--space-3xs));block-size:calc(var(--space-sm) + var(--space-3xs));font-size:var(--font-size-sm);font-weight:var(--font-weight-bold);border:1px solid var(--muted);color:var(--muted);cursor:help;background:0 0;border-radius:50%;justify-content:center;align-items:center;padding:0;font-family:inherit;line-height:1;display:inline-flex}.mw-field-hint__btn[data-v-e1611375]:focus-visible{outline:2px solid var(--focus-ring);outline-offset:1px}.mw-field-hint__tip[data-v-e1611375]{top:calc(100% + var(--space-3xs));z-index:var(--z-popover);min-width:calc(var(--mw-content-narrow) / 2);max-width:min(var(--mw-content-narrow), 90vw);padding:var(--space-2xs) var(--space-xs);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);font-size:var(--font-size-sm);font-weight:var(--font-weight-regular);line-height:var(--leading-normal);color:var(--text);box-shadow:var(--shadow-2);display:none;position:absolute;left:0}.mw-field-hint:not(.mw-field-hint--dismissed):hover .mw-field-hint__tip[data-v-e1611375],.mw-field-hint:not(.mw-field-hint--dismissed):focus-within .mw-field-hint__tip[data-v-e1611375]{display:block}}
|
|
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 };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** The tool's name: the brand in the header and the page's (visually hidden) heading. */
|
|
3
|
+
title: string;
|
|
4
|
+
/** The tool's page name on the docs and developer sites (`access-gate` → `…/blockchain/sui/access-gate/`, `…/sui/access-gate/`). */
|
|
5
|
+
slug: 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;
|
|
12
|
+
/** The colour mode a first visit gets; a saved choice always wins. */
|
|
13
|
+
defaultMode?: 'light' | 'dark' | 'system';
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_template: () => {
|
|
16
|
+
__VLS_Slots: {
|
|
17
|
+
brand?: (props: {}) => any;
|
|
18
|
+
} & {
|
|
19
|
+
actions?: (props: {}) => any;
|
|
20
|
+
} & {
|
|
21
|
+
default?: (props: {}) => any;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
|
|
25
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
26
|
+
docsUrl: string | false;
|
|
27
|
+
devUrl: string | false;
|
|
28
|
+
pageHeading: boolean;
|
|
29
|
+
defaultMode: "light" | "dark" | "system";
|
|
30
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import e from "./AppHeader.js";
|
|
2
|
+
import t from "./AppFooter.js";
|
|
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";
|
|
9
|
+
//#region src/components/AppToolShell.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
+
var y = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "mw-visually-hidden"
|
|
13
|
+
}, b = /*@__PURE__*/ p({
|
|
14
|
+
__name: "AppToolShell",
|
|
15
|
+
props: {
|
|
16
|
+
title: {},
|
|
17
|
+
slug: {},
|
|
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
|
+
},
|
|
30
|
+
defaultMode: { default: "dark" }
|
|
31
|
+
},
|
|
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)
|
|
40
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"])]),
|
|
41
|
+
_: 3
|
|
42
|
+
})]),
|
|
43
|
+
footer: v(() => [f(t, {
|
|
44
|
+
"docs-url": C.value,
|
|
45
|
+
"dev-url": w.value
|
|
46
|
+
}, {
|
|
47
|
+
start: v(() => [f(i, {
|
|
48
|
+
"symbol-variant": "kopimi",
|
|
49
|
+
"organisation-name": "Meddleware",
|
|
50
|
+
"rights-statement": "jam"
|
|
51
|
+
})]),
|
|
52
|
+
_: 1
|
|
53
|
+
}, 8, ["docs-url", "dev-url"])]),
|
|
54
|
+
default: v(() => [p.pageHeading ? (m(), u("h1", y, g(p.title), 1)) : l("", !0), h(o.$slots, "default")]),
|
|
55
|
+
_: 3
|
|
56
|
+
}));
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
//#endregion
|
|
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 };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer mw.reset;@layer mw.components{.mw-data-table-wrap[data-v-
|
|
1
|
+
@layer mw.reset;@layer mw.components{.mw-data-table-wrap[data-v-57394578]{scrollbar-width:thin;position:relative;overflow-x:auto}.mw-data-table-wrap[data-v-57394578]:focus-visible{outline:2px solid var(--focus-ring);outline-offset:-2px}.mw-data-table[data-v-57394578]{border-collapse:collapse;width:100%;font-size:var(--font-size-sm)}.mw-data-table[data-v-57394578] th{text-align:left;padding:var(--space-3xs) var(--space-2xs);font-size:var(--font-size-2xs);font-weight:var(--font-weight-semibold);letter-spacing:var(--tracking-wide);text-transform:uppercase;color:var(--muted);border-bottom:1px solid var(--border);white-space:nowrap}.mw-data-table[data-v-57394578] tbody th[scope=row]{font-size:inherit;letter-spacing:normal;text-transform:none;color:var(--text);white-space:normal;vertical-align:middle}.mw-data-table[data-v-57394578] td{padding:var(--space-3xs) var(--space-2xs);border-bottom:1px solid var(--border);vertical-align:middle}.mw-data-table[data-v-57394578] tbody tr:last-child td,.mw-data-table[data-v-57394578] tbody tr:last-child th{border-bottom:none}.mw-data-table[data-v-57394578] tbody tr:nth-child(2n) td,.mw-data-table[data-v-57394578] tbody tr:nth-child(2n) th{background:var(--lift)}.mw-data-table__empty[data-v-57394578]{padding:var(--space-md) var(--space-sm);text-align:center;color:var(--muted);font-size:var(--font-size-sm);margin:0}.mw-data-table__hint[data-v-57394578]{padding:var(--space-3xs) var(--space-2xs);color:var(--muted);font-size:var(--font-size-xs);display:block;position:sticky;left:0}}
|
|
@@ -2,6 +2,6 @@ import e from "../_virtual/_plugin-vue_export-helper.js";
|
|
|
2
2
|
import t from "./UiDataTable.vue_vue_type_script_setup_true_lang.js";
|
|
3
3
|
import "./UiDataTable.css";
|
|
4
4
|
//#region src/components/UiDataTable.vue
|
|
5
|
-
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-
|
|
5
|
+
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-57394578"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { n as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
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
|
+
export { default as AppToolShell } from './components/AppToolShell.vue';
|
|
5
|
+
export { default as BrandMark } from './components/BrandMark.vue';
|
|
4
6
|
export { default as ColorModeControl } from './components/ColorModeControl.vue';
|
|
5
7
|
export { default as UiButton } from './components/UiButton.vue';
|
|
6
8
|
export { default as UiCard } from './components/UiCard.vue';
|
package/dist/index.js
CHANGED
|
@@ -2,58 +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/
|
|
6
|
-
import a from "./components/
|
|
7
|
-
import o from "./components/
|
|
8
|
-
import s from "./components/
|
|
9
|
-
import c from "./components/
|
|
10
|
-
import l from "./
|
|
11
|
-
import u from "./components/
|
|
12
|
-
import
|
|
13
|
-
import f from "./components/
|
|
14
|
-
import p from "./components/
|
|
15
|
-
import m from "./components/
|
|
16
|
-
import h from "./components/
|
|
17
|
-
import g from "./components/
|
|
18
|
-
import _ from "./
|
|
19
|
-
import v from "./components/
|
|
20
|
-
import y from "./components/
|
|
21
|
-
import b from "./components/
|
|
22
|
-
import x from "./components/
|
|
23
|
-
import S from "./components/
|
|
24
|
-
import C from "./components/
|
|
25
|
-
import w from "./components/
|
|
26
|
-
import T from "./components/
|
|
27
|
-
import E from "./components/
|
|
28
|
-
import D from "./components/
|
|
29
|
-
import O from "./components/
|
|
30
|
-
import k from "./components/
|
|
31
|
-
import A from "./components/
|
|
32
|
-
import j from "./components/
|
|
33
|
-
import M from "./components/
|
|
34
|
-
import N from "./components/
|
|
35
|
-
import P from "./components/
|
|
36
|
-
import F from "./components/
|
|
37
|
-
import I from "./components/
|
|
38
|
-
import L from "./components/
|
|
39
|
-
import R from "./components/
|
|
40
|
-
import z from "./components/
|
|
41
|
-
import B from "./components/
|
|
42
|
-
import V from "./components/
|
|
43
|
-
import H from "./components/
|
|
44
|
-
import U from "./components/
|
|
45
|
-
import W from "./components/
|
|
46
|
-
import G from "./components/
|
|
47
|
-
import
|
|
48
|
-
import q from "./components/
|
|
49
|
-
import J from "./components/
|
|
50
|
-
import Y from "./
|
|
51
|
-
import X from "./components/
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import {
|
|
56
|
-
import
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
|
|
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.
|
|
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,25 +35,28 @@
|
|
|
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"
|
|
46
49
|
},
|
|
47
50
|
"dependencies": {
|
|
48
51
|
"@meddleware/design-tokens": "^0.1.13",
|
|
49
|
-
"@meddleware/web-utils": "^0.0.
|
|
52
|
+
"@meddleware/web-utils": "^0.0.3"
|
|
50
53
|
},
|
|
51
54
|
"devDependencies": {
|
|
52
55
|
"@axe-core/playwright": "^4.13.0",
|
|
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",
|