@meddleware/ui 0.1.45 → 0.1.46
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/base.css +1 -0
- package/dist/components/UiRoleGuide.css +1 -0
- package/dist/components/UiRoleGuide.js +7 -0
- package/dist/components/UiRoleGuide.vue.d.ts +36 -0
- package/dist/components/UiRoleGuide.vue_vue_type_script_setup_true_lang.js +75 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +49 -48
- package/package.json +1 -1
package/dist/base.css
CHANGED
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
@layer mw.reset;@layer mw.components{.mw-notice[data-v-9bed4c15]{padding:var(--space-2xs) var(--space-xs);border:1px solid var(--border);border-left-width:var(--space-4xs);border-radius:var(--radius);background:var(--lift);color:var(--text);font-size:var(--font-size-sm);margin:0}.mw-notice--error[data-v-9bed4c15]{border-left-color:var(--danger);background:color-mix(in srgb, var(--danger) 8%, var(--lift))}.mw-notice--ok[data-v-9bed4c15]{border-left-color:var(--ok);background:color-mix(in srgb, var(--ok) 8%, var(--lift))}.mw-notice--warning[data-v-9bed4c15]{border-left-color:var(--warning);background:color-mix(in srgb, var(--warning) 12%, var(--lift))}}
|
|
35
35
|
@layer mw.reset;@layer mw.components{.mw-pager[data-v-57e1edea]{gap:var(--space-sm);margin-top:var(--space-xs);flex-wrap:wrap;justify-content:flex-end;align-items:center;display:flex}.mw-pager__page[data-v-57e1edea]{color:var(--muted);font-size:var(--font-size-sm)}}
|
|
36
36
|
@layer mw.reset;@layer mw.components{.mw-panel[data-v-db89a6f2]{padding:var(--space-xs);border:1px solid var(--border);border-radius:var(--radius-xs);background:var(--surface);overflow:hidden}.mw-panel__title[data-v-db89a6f2]{margin:calc(-1 * var(--space-xs)) calc(-1 * var(--space-xs)) var(--space-xs);padding:var(--space-3xs) var(--space-xs);font-size:var(--font-size-2xs);font-weight:var(--font-weight-semibold);letter-spacing:var(--tracking-wide);line-height:inherit;text-transform:uppercase;color:var(--muted);background:var(--lift);border-bottom:1px solid var(--border)}}
|
|
37
|
+
@layer mw.reset;@layer mw.components{.mw-role-guide[data-v-d60d7087]{gap:var(--space-md);grid-template-columns:minmax(0,1fr);display:grid}.mw-role-guide__choices[data-v-d60d7087]{gap:var(--space-xs);border:0;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));inline-size:100%;min-inline-size:0;margin:0;padding:0;display:grid}.mw-role-guide__legend[data-v-d60d7087]{margin-bottom:var(--space-2xs);font-weight:var(--font-weight-semibold);grid-column:1/-1;padding:0}.mw-role-guide__choice[data-v-d60d7087]{gap:var(--space-4xs) var(--space-2xs);padding:var(--space-sm);border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);cursor:pointer;transition:border-color var(--transition-base), box-shadow var(--transition-base);grid-template-columns:auto 1fr;align-items:start;display:grid}.mw-role-guide__choice input[data-v-d60d7087]{block-size:1.25rem;inline-size:1.25rem;accent-color:var(--accent);grid-row:1/span 2;margin:.25em 0 0}.mw-role-guide__choice-title[data-v-d60d7087]{font-weight:var(--font-weight-semibold)}.mw-role-guide__choice-summary[data-v-d60d7087]{color:var(--muted);font-size:var(--font-size-sm)}.mw-role-guide__choice[data-v-d60d7087]:has(input:checked){border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}.mw-role-guide__choice[data-v-d60d7087]:has(input:focus-visible){outline:2px solid var(--focus-ring);outline-offset:2px}.mw-role-guide__panels[data-v-d60d7087]{gap:var(--space-md);grid-template-columns:minmax(0,1fr);display:grid}@supports selector(:has(*)){.mw-role-guide__panel[data-v-d60d7087]{display:none}:is(.mw-role-guide:has(.mw-role-guide__choice:first-of-type input:checked) .mw-role-guide__panel[data-v-d60d7087]:first-of-type,.mw-role-guide:has(.mw-role-guide__choice:nth-of-type(2) input:checked) .mw-role-guide__panel[data-v-d60d7087]:nth-of-type(2),.mw-role-guide:has(.mw-role-guide__choice:nth-of-type(3) input:checked) .mw-role-guide__panel[data-v-d60d7087]:nth-of-type(3),.mw-role-guide:has(.mw-role-guide__choice:nth-of-type(4) input:checked) .mw-role-guide__panel[data-v-d60d7087]:nth-of-type(4),.mw-role-guide:has(.mw-role-guide__choice:nth-of-type(5) input:checked) .mw-role-guide__panel[data-v-d60d7087]:nth-of-type(5),.mw-role-guide:has(.mw-role-guide__choice:nth-of-type(6) input:checked) .mw-role-guide__panel[data-v-d60d7087]:nth-of-type(6)){display:block}}.mw-role-guide__panel[data-v-d60d7087]{overflow-wrap:anywhere;min-inline-size:0;padding:var(--space-md);border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);scroll-margin-block-start:var(--space-2xl)}.mw-role-guide__title[data-v-d60d7087]{margin:0 0 var(--space-sm);font-size:var(--font-size-lg)}.mw-role-guide__steps[data-v-d60d7087]{margin:0 0 var(--space-sm);padding:0;list-style:none}.mw-role-guide__steps li[data-v-d60d7087]{min-block-size:2rem;padding-block-end:var(--space-sm);padding-inline-start:2.75rem;position:relative}.mw-role-guide__steps li[data-v-d60d7087]:not(:last-child){background:linear-gradient(var(--border), var(--border)) no-repeat calc(1rem - 1px) 2rem / 2px calc(100% - 2rem)}.mw-role-guide__num[data-v-d60d7087]{border:2px solid var(--accent);background:var(--surface);block-size:2rem;inline-size:2rem;font-weight:var(--font-weight-semibold);border-radius:50%;place-items:center;display:grid;position:absolute;inset-block-start:0;inset-inline-start:0}.mw-role-guide__facts[data-v-d60d7087]{gap:var(--space-3xs) var(--space-sm);margin:0 0 var(--space-sm);grid-template-columns:max-content minmax(0,1fr);display:grid}.mw-role-guide__facts dt[data-v-d60d7087]{font-weight:var(--font-weight-semibold)}.mw-role-guide__facts dd[data-v-d60d7087]{color:var(--muted);margin:0}.mw-role-guide__links[data-v-d60d7087]{gap:var(--space-xs);flex-wrap:wrap;margin:0;display:flex}@media (forced-colors:active){.mw-role-guide__choice[data-v-d60d7087]:has(input:checked){outline:2px solid highlight}}@media (prefers-reduced-motion:reduce){.mw-role-guide__choice[data-v-d60d7087]{transition:none}}}
|
|
37
38
|
@layer mw.reset;@layer mw.components{.mw-seg[data-v-895d43d3]{border:1px solid var(--border);border-radius:var(--radius);min-inline-size:0;margin:0;padding:0;display:inline-flex;overflow:hidden}.mw-seg__legend[data-v-895d43d3]{float:inline-start;width:100%;padding:var(--space-3xs) var(--space-xs);font-size:var(--font-size-sm)}.mw-seg--wrap[data-v-895d43d3]{flex-wrap:wrap}@media (width<36em){.mw-seg--grid[data-v-895d43d3]{grid-template-columns:repeat(auto-fit,minmax(min(100%,7rem),1fr));display:grid}.mw-seg--grid .mw-seg__item[data-v-895d43d3]{white-space:normal;padding-block:var(--space-4xs);text-align:center}}.mw-seg__item[data-v-895d43d3]{justify-content:center;align-items:center;gap:var(--space-3xs);min-height:var(--space-md);padding:0 var(--space-sm);border-right:1px solid var(--border);cursor:pointer;font-size:var(--font-size-sm);color:var(--text);transition:background var(--transition-base), color var(--transition-base);-webkit-user-select:none;user-select:none;white-space:nowrap;background:0 0;margin:0;display:flex}.mw-seg__item[data-v-895d43d3]:last-child{border-right:none}.mw-seg__item[data-v-895d43d3]:hover:not(.mw-seg__item--active){background:var(--lift)}.mw-seg__item--active[data-v-895d43d3]{background:var(--accent);color:var(--accent-contrast)}.mw-seg__item[data-v-895d43d3]:has(input:focus-visible){outline:2px solid var(--focus-ring);outline-offset:-2px}.mw-seg__item--disabled[data-v-895d43d3]{filter:grayscale(.6);pointer-events:none;cursor:not-allowed}.mw-seg__item input[type=radio][data-v-895d43d3]{opacity:0;pointer-events:none;width:0;height:0;position:absolute}}
|
|
38
39
|
@layer mw.reset;@layer mw.components{.mw-select[data-v-6af38ca7]{--_chevron-stroke:var(--muted);--_chevron-arm:var(--space-2xs);appearance:none;width:100%;padding:var(--space-2xs) calc(var(--space-md) + var(--space-2xs)) var(--space-2xs) var(--space-xs);background-color:var(--surface);background-image:linear-gradient(45deg, transparent calc(50% - var(--space-4xs) / 2), var(--_chevron-stroke) calc(50% - var(--space-4xs) / 2), var(--_chevron-stroke) calc(50% + var(--space-4xs) / 2), transparent calc(50% + var(--space-4xs) / 2)), linear-gradient(-45deg, transparent calc(50% - var(--space-4xs) / 2), var(--_chevron-stroke) calc(50% - var(--space-4xs) / 2), var(--_chevron-stroke) calc(50% + var(--space-4xs) / 2), transparent calc(50% + var(--space-4xs) / 2));background-position:right calc(var(--space-xs) + var(--_chevron-arm)) center, right var(--space-xs) center;background-size:var(--_chevron-arm) var(--_chevron-arm);color:var(--text);border:1px solid var(--control-border);border-radius:var(--radius);font:inherit;background-repeat:no-repeat}.mw-select[data-v-6af38ca7]:focus-visible{outline:2px solid var(--focus-ring);outline-offset:1px}}
|
|
39
40
|
@layer mw.reset;@layer mw.components{.mw-skip[data-v-ddc3c0de]{z-index:var(--z-skip);padding:var(--space-2xs) var(--space-xs);background:var(--accent);color:var(--accent-contrast);border-radius:var(--radius-sm);font-weight:var(--font-weight-semibold);position:absolute;inset-block-start:var(--space-2xs);inset-inline-start:var(--space-2xs);transform:translateY(-200%)}.mw-skip[data-v-ddc3c0de]:focus{transform:none}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer mw.reset;@layer mw.components{.mw-role-guide[data-v-d60d7087]{gap:var(--space-md);grid-template-columns:minmax(0,1fr);display:grid}.mw-role-guide__choices[data-v-d60d7087]{gap:var(--space-xs);border:0;grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr));inline-size:100%;min-inline-size:0;margin:0;padding:0;display:grid}.mw-role-guide__legend[data-v-d60d7087]{margin-bottom:var(--space-2xs);font-weight:var(--font-weight-semibold);grid-column:1/-1;padding:0}.mw-role-guide__choice[data-v-d60d7087]{gap:var(--space-4xs) var(--space-2xs);padding:var(--space-sm);border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);cursor:pointer;transition:border-color var(--transition-base), box-shadow var(--transition-base);grid-template-columns:auto 1fr;align-items:start;display:grid}.mw-role-guide__choice input[data-v-d60d7087]{block-size:1.25rem;inline-size:1.25rem;accent-color:var(--accent);grid-row:1/span 2;margin:.25em 0 0}.mw-role-guide__choice-title[data-v-d60d7087]{font-weight:var(--font-weight-semibold)}.mw-role-guide__choice-summary[data-v-d60d7087]{color:var(--muted);font-size:var(--font-size-sm)}.mw-role-guide__choice[data-v-d60d7087]:has(input:checked){border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}.mw-role-guide__choice[data-v-d60d7087]:has(input:focus-visible){outline:2px solid var(--focus-ring);outline-offset:2px}.mw-role-guide__panels[data-v-d60d7087]{gap:var(--space-md);grid-template-columns:minmax(0,1fr);display:grid}@supports selector(:has(*)){.mw-role-guide__panel[data-v-d60d7087]{display:none}:is(.mw-role-guide:has(.mw-role-guide__choice:first-of-type input:checked) .mw-role-guide__panel[data-v-d60d7087]:first-of-type,.mw-role-guide:has(.mw-role-guide__choice:nth-of-type(2) input:checked) .mw-role-guide__panel[data-v-d60d7087]:nth-of-type(2),.mw-role-guide:has(.mw-role-guide__choice:nth-of-type(3) input:checked) .mw-role-guide__panel[data-v-d60d7087]:nth-of-type(3),.mw-role-guide:has(.mw-role-guide__choice:nth-of-type(4) input:checked) .mw-role-guide__panel[data-v-d60d7087]:nth-of-type(4),.mw-role-guide:has(.mw-role-guide__choice:nth-of-type(5) input:checked) .mw-role-guide__panel[data-v-d60d7087]:nth-of-type(5),.mw-role-guide:has(.mw-role-guide__choice:nth-of-type(6) input:checked) .mw-role-guide__panel[data-v-d60d7087]:nth-of-type(6)){display:block}}.mw-role-guide__panel[data-v-d60d7087]{overflow-wrap:anywhere;min-inline-size:0;padding:var(--space-md);border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);scroll-margin-block-start:var(--space-2xl)}.mw-role-guide__title[data-v-d60d7087]{margin:0 0 var(--space-sm);font-size:var(--font-size-lg)}.mw-role-guide__steps[data-v-d60d7087]{margin:0 0 var(--space-sm);padding:0;list-style:none}.mw-role-guide__steps li[data-v-d60d7087]{min-block-size:2rem;padding-block-end:var(--space-sm);padding-inline-start:2.75rem;position:relative}.mw-role-guide__steps li[data-v-d60d7087]:not(:last-child){background:linear-gradient(var(--border), var(--border)) no-repeat calc(1rem - 1px) 2rem / 2px calc(100% - 2rem)}.mw-role-guide__num[data-v-d60d7087]{border:2px solid var(--accent);background:var(--surface);block-size:2rem;inline-size:2rem;font-weight:var(--font-weight-semibold);border-radius:50%;place-items:center;display:grid;position:absolute;inset-block-start:0;inset-inline-start:0}.mw-role-guide__facts[data-v-d60d7087]{gap:var(--space-3xs) var(--space-sm);margin:0 0 var(--space-sm);grid-template-columns:max-content minmax(0,1fr);display:grid}.mw-role-guide__facts dt[data-v-d60d7087]{font-weight:var(--font-weight-semibold)}.mw-role-guide__facts dd[data-v-d60d7087]{color:var(--muted);margin:0}.mw-role-guide__links[data-v-d60d7087]{gap:var(--space-xs);flex-wrap:wrap;margin:0;display:flex}@media (forced-colors:active){.mw-role-guide__choice[data-v-d60d7087]:has(input:checked){outline:2px solid highlight}}@media (prefers-reduced-motion:reduce){.mw-role-guide__choice[data-v-d60d7087]{transition:none}}}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import t from "./UiRoleGuide.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
+
import "./UiRoleGuide.css";
|
|
4
|
+
//#region src/components/UiRoleGuide.vue
|
|
5
|
+
var n = /*#__PURE__*/ e(t, [["__scopeId", "data-v-d60d7087"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/** One path through the guide. */
|
|
2
|
+
export interface RoleGuideRole {
|
|
3
|
+
/** Stable id, used in the address (`#for-<id>`) and the radio value: lowercase letters, digits and hyphens. */
|
|
4
|
+
id: string;
|
|
5
|
+
/** The choice's label and the panel's heading ("Use the tools"). */
|
|
6
|
+
title: string;
|
|
7
|
+
/** One line under the choice ("Get things done without being kept"). */
|
|
8
|
+
summary: string;
|
|
9
|
+
/** The numbered steps, in order (plain text). */
|
|
10
|
+
steps: string[];
|
|
11
|
+
/** "You'll need" (optional). */
|
|
12
|
+
need?: string;
|
|
13
|
+
/** "You get" (optional). */
|
|
14
|
+
get?: string;
|
|
15
|
+
/** Links onward; the first is drawn as the main action. External links name it in their text (e.g. "Developer guide ↗"). */
|
|
16
|
+
links?: {
|
|
17
|
+
text: string;
|
|
18
|
+
href: string;
|
|
19
|
+
}[];
|
|
20
|
+
}
|
|
21
|
+
type __VLS_Props = {
|
|
22
|
+
/** The paths, in order (two to six). */
|
|
23
|
+
roles: RoleGuideRole[];
|
|
24
|
+
/** The radio group's name: unique on the page. */
|
|
25
|
+
name: string;
|
|
26
|
+
/** The question the choices answer. */
|
|
27
|
+
legend?: string;
|
|
28
|
+
/** Heading rank of each panel's title, to fit the page's outline. */
|
|
29
|
+
level?: 2 | 3 | 4;
|
|
30
|
+
};
|
|
31
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
32
|
+
legend: string;
|
|
33
|
+
level: 2 | 3 | 4;
|
|
34
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
35
|
+
declare const _default: typeof __VLS_export;
|
|
36
|
+
export default _default;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import e from "./UiButton.js";
|
|
2
|
+
import { Fragment as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, defineComponent as s, onMounted as c, openBlock as l, ref as u, renderList as d, resolveDynamicComponent as f, toDisplayString as p, unref as m, withCtx as h } from "vue";
|
|
3
|
+
import { safeHref as g } from "@meddleware/web-utils";
|
|
4
|
+
//#region src/components/UiRoleGuide.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var _ = { class: "mw-role-guide" }, v = { class: "mw-role-guide__choices" }, y = { class: "mw-role-guide__legend" }, b = [
|
|
6
|
+
"name",
|
|
7
|
+
"value",
|
|
8
|
+
"checked",
|
|
9
|
+
"onChange"
|
|
10
|
+
], x = { class: "mw-role-guide__choice-title" }, S = { class: "mw-role-guide__choice-summary" }, C = { class: "mw-role-guide__panels" }, w = ["id", "aria-labelledby"], T = { class: "mw-role-guide__steps" }, E = {
|
|
11
|
+
class: "mw-role-guide__num",
|
|
12
|
+
"aria-hidden": "true"
|
|
13
|
+
}, D = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: "mw-role-guide__facts"
|
|
16
|
+
}, O = {
|
|
17
|
+
key: 1,
|
|
18
|
+
class: "mw-role-guide__links"
|
|
19
|
+
}, k = /*@__PURE__*/ s({
|
|
20
|
+
__name: "UiRoleGuide",
|
|
21
|
+
props: {
|
|
22
|
+
roles: {},
|
|
23
|
+
name: {},
|
|
24
|
+
legend: { default: "I'm here to…" },
|
|
25
|
+
level: { default: 3 }
|
|
26
|
+
},
|
|
27
|
+
setup(s) {
|
|
28
|
+
let k = s, A = u(k.roles[0]?.id ?? ""), j = (e) => `for-${e}`;
|
|
29
|
+
function M(e) {
|
|
30
|
+
A.value = e, typeof window < "u" && typeof history < "u" && history.replaceState(history.state, "", `#${j(e)}`);
|
|
31
|
+
}
|
|
32
|
+
return c(() => {
|
|
33
|
+
let e = window.location.hash.replace(/^#for-/, "");
|
|
34
|
+
k.roles.some((t) => t.id === e) && (A.value = e);
|
|
35
|
+
}), (c, u) => (l(), i("div", _, [a("fieldset", v, [a("legend", y, p(s.legend), 1), (l(!0), i(t, null, d(s.roles, (e) => (l(), i("label", {
|
|
36
|
+
key: e.id,
|
|
37
|
+
class: "mw-role-guide__choice"
|
|
38
|
+
}, [
|
|
39
|
+
a("input", {
|
|
40
|
+
type: "radio",
|
|
41
|
+
name: s.name,
|
|
42
|
+
value: e.id,
|
|
43
|
+
checked: A.value === e.id,
|
|
44
|
+
onChange: (t) => M(e.id)
|
|
45
|
+
}, null, 40, b),
|
|
46
|
+
a("span", x, p(e.title), 1),
|
|
47
|
+
a("span", S, p(e.summary), 1)
|
|
48
|
+
]))), 128))]), a("div", C, [(l(!0), i(t, null, d(s.roles, (c) => (l(), i("section", {
|
|
49
|
+
id: j(c.id),
|
|
50
|
+
key: c.id,
|
|
51
|
+
class: "mw-role-guide__panel",
|
|
52
|
+
"aria-labelledby": `${j(c.id)}-title`
|
|
53
|
+
}, [
|
|
54
|
+
(l(), n(f(`h${s.level}`), {
|
|
55
|
+
id: `${j(c.id)}-title`,
|
|
56
|
+
class: "mw-role-guide__title"
|
|
57
|
+
}, {
|
|
58
|
+
default: h(() => [o(p(c.title), 1)]),
|
|
59
|
+
_: 2
|
|
60
|
+
}, 1032, ["id"])),
|
|
61
|
+
a("ol", T, [(l(!0), i(t, null, d(c.steps, (e, t) => (l(), i("li", { key: t }, [a("span", E, p(t + 1), 1), o(p(e), 1)]))), 128))]),
|
|
62
|
+
c.need || c.get ? (l(), i("dl", D, [c.need ? (l(), i(t, { key: 0 }, [u[0] ||= a("dt", null, "You'll need", -1), a("dd", null, p(c.need), 1)], 64)) : r("", !0), c.get ? (l(), i(t, { key: 1 }, [u[1] ||= a("dt", null, "You get", -1), a("dd", null, p(c.get), 1)], 64)) : r("", !0)])) : r("", !0),
|
|
63
|
+
c.links?.length ? (l(), i("p", O, [(l(!0), i(t, null, d(c.links, (t, r) => (l(), n(e, {
|
|
64
|
+
key: t.href,
|
|
65
|
+
href: m(g)(t.href),
|
|
66
|
+
variant: r === 0 ? "primary" : "secondary"
|
|
67
|
+
}, {
|
|
68
|
+
default: h(() => [o(p(t.text), 1)]),
|
|
69
|
+
_: 2
|
|
70
|
+
}, 1032, ["href", "variant"]))), 128))])) : r("", !0)
|
|
71
|
+
], 8, w))), 128))])]));
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
//#endregion
|
|
75
|
+
export { k as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export { default as BrandMark } from './components/BrandMark.vue';
|
|
|
6
6
|
export { default as ColorModeControl } from './components/ColorModeControl.vue';
|
|
7
7
|
export { default as UiButton } from './components/UiButton.vue';
|
|
8
8
|
export { default as UiCard } from './components/UiCard.vue';
|
|
9
|
+
export { default as UiRoleGuide } from './components/UiRoleGuide.vue';
|
|
10
|
+
export type { RoleGuideRole } from './components/UiRoleGuide.vue';
|
|
9
11
|
export { default as UiSelect } from './components/UiSelect.vue';
|
|
10
12
|
export { default as UiNotice } from './components/UiNotice.vue';
|
|
11
13
|
export { default as SidebarItem } from './components/SidebarItem.vue';
|
package/dist/index.js
CHANGED
|
@@ -11,51 +11,52 @@ import { useColorMode as l } from "./composables/useColorMode.js";
|
|
|
11
11
|
import u from "./components/AppToolShell.js";
|
|
12
12
|
import d from "./components/UiButton.js";
|
|
13
13
|
import f from "./components/UiCard.js";
|
|
14
|
-
import p from "./components/
|
|
15
|
-
import m from "./components/
|
|
16
|
-
import h from "./components/
|
|
17
|
-
import g from "./components/
|
|
18
|
-
import
|
|
19
|
-
import v from "./
|
|
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 K from "./components/
|
|
48
|
-
import q from "./components/
|
|
49
|
-
import J from "./components/
|
|
50
|
-
import
|
|
51
|
-
import X from "./
|
|
52
|
-
import Z from "./components/
|
|
53
|
-
import Q from "./components/
|
|
54
|
-
import $ from "./components/
|
|
55
|
-
import
|
|
56
|
-
import ne from "./
|
|
57
|
-
import
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
|
|
14
|
+
import p from "./components/UiRoleGuide.js";
|
|
15
|
+
import m from "./components/UiSelect.js";
|
|
16
|
+
import h from "./components/UiNotice.js";
|
|
17
|
+
import g from "./components/SidebarItem.js";
|
|
18
|
+
import _ from "./components/SidebarGroup.js";
|
|
19
|
+
import { tabIds as v } from "./tabs.js";
|
|
20
|
+
import y from "./components/AppTabNav.js";
|
|
21
|
+
import b from "./components/UiTabPanel.js";
|
|
22
|
+
import x from "./components/UiDialog.js";
|
|
23
|
+
import S from "./components/UiCopyButton.js";
|
|
24
|
+
import C from "./components/CopyableAddress.js";
|
|
25
|
+
import w from "./components/ExplorerLink.js";
|
|
26
|
+
import T from "./components/UiStepper.js";
|
|
27
|
+
import E from "./components/UiSegmentedControl.js";
|
|
28
|
+
import D from "./components/UiFieldHint.js";
|
|
29
|
+
import O from "./components/UiFormField.js";
|
|
30
|
+
import k from "./components/UiToolIntro.js";
|
|
31
|
+
import A from "./components/UiInput.js";
|
|
32
|
+
import j from "./components/UiTextarea.js";
|
|
33
|
+
import M from "./components/UiFileField.js";
|
|
34
|
+
import N from "./components/UiTextField.js";
|
|
35
|
+
import P from "./components/UiSelectField.js";
|
|
36
|
+
import F from "./components/UiCheckField.js";
|
|
37
|
+
import I from "./components/UiDateTimeField.js";
|
|
38
|
+
import L from "./components/UiMeter.js";
|
|
39
|
+
import R from "./components/UiPager.js";
|
|
40
|
+
import z from "./components/UiLiveStatus.js";
|
|
41
|
+
import B from "./components/UiEmptyState.js";
|
|
42
|
+
import V from "./components/UiCodeBlock.js";
|
|
43
|
+
import H from "./components/UiAmount.js";
|
|
44
|
+
import U from "./components/UiPanel.js";
|
|
45
|
+
import W from "./components/UiBadge.js";
|
|
46
|
+
import G from "./components/UiToolbarButton.js";
|
|
47
|
+
import K from "./components/UiToolbar.js";
|
|
48
|
+
import q from "./components/UiStatGrid.js";
|
|
49
|
+
import J from "./components/UiStatRow.js";
|
|
50
|
+
import Y from "./components/UiDataTable.js";
|
|
51
|
+
import { useNow as X } from "./composables/useNow.js";
|
|
52
|
+
import Z from "./components/UiStatusDot.js";
|
|
53
|
+
import Q from "./components/UiStatusBar.js";
|
|
54
|
+
import $ from "./components/UiActivityFeed.js";
|
|
55
|
+
import ee from "./components/UiActivityItem.js";
|
|
56
|
+
import { MIN_STATUS_POLL_MS as te, useStatusSnapshot as ne } from "./composables/useStatusSnapshot.js";
|
|
57
|
+
import re from "./components/StatusWidget.js";
|
|
58
|
+
import { useSeason as ie } from "./composables/useSeason.js";
|
|
59
|
+
import { usePager as ae } from "./composables/usePager.js";
|
|
60
|
+
import { RUNTIME_CONFIG_PATH as oe, RUNTIME_ENDPOINT_KEYS as se, loadRuntimeConfig as ce, parseEndpoint as le, parseRuntimeConfig as ue, resetRuntimeConfigForTesting as de, runtimeEndpoints as fe, withRuntimeEnv as pe } from "./runtime-config.js";
|
|
61
|
+
import { DEFAULT_TRUNCATE_CHARS as me, STATUS_HEADLINE as he, STATUS_LABEL as ge, isStatusLevel as _e, parseSnapshot as ve, safeHref as ye, safeIcon as be, safePath as xe, suiExplorerUrl as Se, truncateMiddle as Ce, walruscanBlobUrl as we } from "@meddleware/web-utils";
|
|
62
|
+
export { r as AppFooter, t as AppHeader, n as AppSidebar, y as AppTabNav, u as AppToolShell, i as BrandMark, a as ColorModeControl, C as CopyableAddress, o as CopyrightLine, me as DEFAULT_TRUNCATE_CHARS, w as ExplorerLink, te as MIN_STATUS_POLL_MS, oe as RUNTIME_CONFIG_PATH, se as RUNTIME_ENDPOINT_KEYS, he as STATUS_HEADLINE, ge as STATUS_LABEL, _ as SidebarGroup, g as SidebarItem, re as StatusWidget, $ as UiActivityFeed, ee as UiActivityItem, H as UiAmount, c as UiAppShell, W as UiBadge, d as UiButton, f as UiCard, F as UiCheckField, V as UiCodeBlock, S as UiCopyButton, Y as UiDataTable, I as UiDateTimeField, x as UiDialog, B as UiEmptyState, D as UiFieldHint, M as UiFileField, O as UiFormField, A as UiInput, z as UiLiveStatus, L as UiMeter, h as UiNotice, R as UiPager, U as UiPanel, p as UiRoleGuide, E as UiSegmentedControl, m as UiSelect, P as UiSelectField, s as UiSkipLink, q as UiStatGrid, J as UiStatRow, Q as UiStatusBar, Z as UiStatusDot, T as UiStepper, b as UiTabPanel, N as UiTextField, j as UiTextarea, k as UiToolIntro, K as UiToolbar, G as UiToolbarButton, _e as isStatusLevel, ce as loadRuntimeConfig, le as parseEndpoint, ue as parseRuntimeConfig, ve as parseSnapshot, de as resetRuntimeConfigForTesting, fe as runtimeEndpoints, ye as safeHref, be as safeIcon, xe as safePath, Se as suiExplorerUrl, v as tabIds, Ce as truncateMiddle, l as useColorMode, X as useNow, ae as usePager, ie as useSeason, ne as useStatusSnapshot, e as useStickyOffset, we as walruscanBlobUrl, pe 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.46",
|
|
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",
|