@threadlabs/looma 0.45.2 → 0.46.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/EXPRESSIVE-MARKDOWN.md +23 -17
- package/components/ui-section/ui-section.html +18 -7
- package/components/ui-site-header/ui-site-header.html +25 -6
- package/components/ui-site-header/ui-site-header.js +4 -3
- package/dist/index.js +1 -1
- package/docs/catalog.json +3 -3
- package/editor/chunks/expressmark.js +1562 -0
- package/editor/chunks/extensions.js +327 -1051
- package/editor/expressmark.d.ts +17 -5
- package/editor/expressmark.js +1 -1037
- package/editor/extensions/footnote.d.ts +7 -12
- package/editor/extensions/index.d.ts +2 -2
- package/editor/extensions/index.js +3 -3
- package/editor/extensions/link-definition.d.ts +10 -0
- package/editor/index.js +3 -3
- package/markdown/fixtures.d.ts +1 -1
- package/markdown/fixtures.js +22 -16
- package/markdown/index.d.ts +2 -3
- package/markdown/index.js +2 -3
- package/package.json +2 -9
- package/styles/ui-section.css +12 -3
- package/styles/ui-site-header.css +54 -6
- package/vanilla/UiSection.js +6 -5
- package/vanilla/UiSiteHeader.js +29 -44
- package/vue/UiSection.vue +19 -12
- package/vue/UiSiteHeader.d.ts +2 -2
- package/vue/UiSiteHeader.vue +157 -72
- package/vue/chunks/UiSection.js +32 -29
- package/vue/chunks/UiSiteHeader.js +27 -49
- package/vue/components.css +151 -8
- package/vue/editor/LoomaEditor.d.ts +1 -1
- package/vue/editor/index.js +225 -186
- package/editor/chunks/reference-display.js +0 -453
- package/editor/extensions/markdown.d.ts +0 -16
- package/markdown/markdown-it.d.ts +0 -21
- package/markdown/markdown-it.js +0 -562
package/vanilla/UiSiteHeader.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// Generated by HTML Next 1.0.0-alpha.69 for Vanilla DOM. Do not edit.
|
|
2
|
-
import { attachGeneratedController, buildTemplate,
|
|
2
|
+
import { attachGeneratedController, buildTemplate, toAttribute, toText, writeAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, checkBoolean, checkFormat, checkString, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
|
|
3
3
|
import * as controller from "../components/ui-site-header/ui-site-header.js";
|
|
4
4
|
import "../styles/ui-site-header.css";
|
|
5
5
|
|
|
6
|
-
const T0 = ["",[],"\n ",["div",["class","identity"],"\n ",["div",["class","brand"],4],"\n ",["div",["class","menu"],"\n ",["div",["class","custom-menu"],4],"\n ",["div",["class","automatic-menu"],"\n ",["ui-icon-button",["size","sm","aria-haspopup","dialog","aria-expanded","false"],["ui-icon",["name","menu"]]],"\n "],"\n "],"\n ",["dialog",["class","navigation-panel"],"\n ",["div",["class","panel-heading"],"\n ",["span",["class","panel-title"],0],"\n ",["ui-icon-button",["size","sm"],["ui-icon",["name","x"]]],"\n "],"\n
|
|
6
|
+
const T0 = ["",[],"\n ",["div",["class","identity"],"\n ",["div",["class","brand"],4],"\n ",["div",["class","menu"],"\n ",["div",["class","custom-menu"],4],"\n ",["div",["class","automatic-menu"],"\n ",["ui-icon-button",["size","sm","aria-haspopup","dialog","aria-expanded","false"],["ui-icon",["name","menu"]]],"\n "],"\n "],"\n ",["div",["class","inline-navigation"],["nav",["class","navigation"],4]],"\n ",["dialog",["class","navigation-panel"],"\n ",["div",["class","panel-heading"],"\n ",["span",["class","panel-title"],0],"\n ",["ui-icon-button",["size","sm"],["ui-icon",["name","x"]]],"\n "],"\n "],"\n "],"\n ",["div",["class","actions"],4],"\n "];
|
|
7
7
|
const T1 = ["",[]];
|
|
8
8
|
const T2 = ["",[]];
|
|
9
9
|
const T3 = ["",[]];
|
|
@@ -62,41 +62,24 @@ export function createUiSiteHeader(options = {}, html) {
|
|
|
62
62
|
const s0 = toAttribute(x0, "label");
|
|
63
63
|
if (s0 !== r.v0) writeAttribute(r.a2, "label", r.v0 = s0);
|
|
64
64
|
}
|
|
65
|
-
if (c === -1) {
|
|
66
|
-
const x1 = true;
|
|
67
|
-
const s1 = toAttribute(x1, "open");
|
|
68
|
-
if (s1 !== r.v1) writeAttribute(r.a3, "open", r.v1 = s1);
|
|
69
|
-
}
|
|
70
|
-
if (c & 1073741826) {
|
|
71
|
-
const x2 = readIndex({ "true": "dialog", "false": "none" }, textCall("concat", [v[1]]));
|
|
72
|
-
if (x2 !== NONCONFORMING) {
|
|
73
|
-
const s2 = toAttribute(x2, "role");
|
|
74
|
-
if (s2 !== r.v2) writeAttribute(r.a3, "role", r.v2 = s2);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
if (c & 1073741842) {
|
|
78
|
-
const x3 = readIndex({ "true": v[4], "false": null }, textCall("concat", [v[1]]));
|
|
79
|
-
if (x3 !== NONCONFORMING) {
|
|
80
|
-
const s3 = toAttribute(x3, "aria-label");
|
|
81
|
-
if (s3 !== r.v3) writeAttribute(r.a3, "aria-label", r.v3 = s3);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
65
|
if (c & 16) {
|
|
85
|
-
const
|
|
86
|
-
const
|
|
87
|
-
if (
|
|
88
|
-
const
|
|
89
|
-
if (
|
|
66
|
+
const x1 = v[4];
|
|
67
|
+
const s1 = toAttribute(x1, "aria-label");
|
|
68
|
+
if (s1 !== r.v1) writeAttribute(r.a4, "aria-label", r.v1 = s1);
|
|
69
|
+
const s2 = toAttribute(x1, "aria-label");
|
|
70
|
+
if (s2 !== r.v2) writeAttribute(r.a6, "aria-label", r.v2 = s2);
|
|
71
|
+
const s3 = toText(x1);
|
|
72
|
+
if (s3 !== r.v3) r.a7.data = r.v3 = s3;
|
|
90
73
|
}
|
|
91
74
|
if (c & 8) {
|
|
92
|
-
const
|
|
93
|
-
const
|
|
94
|
-
if (
|
|
75
|
+
const x2 = v[3];
|
|
76
|
+
const s4 = toAttribute(x2, "label");
|
|
77
|
+
if (s4 !== r.v4) writeAttribute(r.a8, "label", r.v4 = s4);
|
|
95
78
|
}
|
|
96
79
|
if (c & 71) {
|
|
97
|
-
const
|
|
98
|
-
const
|
|
99
|
-
if (
|
|
80
|
+
const x3 = hostState(["sticky","breakpoint","drawer","enhanced"], [v[6], v[2], v[1], v[0]]);
|
|
81
|
+
const s5 = x3;
|
|
82
|
+
if (s5 !== r.v5) writeAttribute(r.n, "data-ui-site-header-state", (r.v5 = s5) === "" ? null : s5);
|
|
100
83
|
}
|
|
101
84
|
if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "brand", J, false, undefined, d);
|
|
102
85
|
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m1(d); at.before(r.b0.n); } }
|
|
@@ -104,10 +87,10 @@ export function createUiSiteHeader(options = {}, html) {
|
|
|
104
87
|
if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a1, r.e1, "menu", J, false, undefined, d);
|
|
105
88
|
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b1 = m2(d); at.before(r.b1.n); } }
|
|
106
89
|
else if (r.b1 !== undefined) p2(r.b1, c, d);
|
|
107
|
-
if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.
|
|
90
|
+
if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.a5, r.e2, "navigation", J, false, undefined, d);
|
|
108
91
|
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m3(d); at.before(r.b2.n); } }
|
|
109
92
|
else if (r.b2 !== undefined) p3(r.b2, c, d);
|
|
110
|
-
if (r.f3 === undefined) { r.f3 = 1; const at = fillSlot(r.
|
|
93
|
+
if (r.f3 === undefined) { r.f3 = 1; const at = fillSlot(r.a9, r.e3, "actions", J, false, undefined, d);
|
|
111
94
|
if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b3 = m4(d); at.before(r.b3.n); } }
|
|
112
95
|
else if (r.b3 !== undefined) p4(r.b3, c, d);
|
|
113
96
|
};
|
|
@@ -119,23 +102,25 @@ export function createUiSiteHeader(options = {}, html) {
|
|
|
119
102
|
const t5 = t4.firstChild;
|
|
120
103
|
const t6 = t4.nextSibling.nextSibling.firstChild.nextSibling;
|
|
121
104
|
const t7 = t3.nextSibling.nextSibling;
|
|
122
|
-
const t8 = t7.firstChild
|
|
123
|
-
const t9 = t8.firstChild
|
|
124
|
-
const t10 =
|
|
125
|
-
const t11 =
|
|
126
|
-
const t12 =
|
|
105
|
+
const t8 = t7.firstChild;
|
|
106
|
+
const t9 = t8.firstChild;
|
|
107
|
+
const t10 = t7.nextSibling.nextSibling;
|
|
108
|
+
const t11 = t10.firstChild.nextSibling;
|
|
109
|
+
const t12 = t11.firstChild.nextSibling;
|
|
127
110
|
const t13 = t12.firstChild;
|
|
128
|
-
const t14 =
|
|
129
|
-
const
|
|
111
|
+
const t14 = t12.nextSibling.nextSibling;
|
|
112
|
+
const t15 = t0.nextSibling.nextSibling.firstChild;
|
|
113
|
+
const R = { n: element, a2: t6, a4: t8, a6: t10, a7: t13, a8: t14, v0: null, v1: null, v2: null, v3: "", v4: null, v5: undefined, a0: t2, e0: t2.nextSibling, b0: undefined, f0: undefined, a1: t5, e1: t5.nextSibling, b1: undefined, f1: undefined, a5: t9, e2: t9.nextSibling, b2: undefined, f2: undefined, a9: t15, e3: t15.nextSibling, b3: undefined, f3: undefined };
|
|
130
114
|
const I = { B };
|
|
131
115
|
const J = project(I, children, slots);
|
|
132
116
|
I.R = new Set();
|
|
133
117
|
attachGeneratedController(element, S, v, (c, d) => { ((c, d) => p0(R, c, d))(c, d); for (const f of I.R) f(c, d); }, undefined, undefined, I);
|
|
134
118
|
manageProps(I);
|
|
135
119
|
I.r["trigger"] = t6;
|
|
136
|
-
I.r["
|
|
137
|
-
I.r["
|
|
138
|
-
I.r["
|
|
120
|
+
I.r["inline"] = t7;
|
|
121
|
+
I.r["navigation"] = t8;
|
|
122
|
+
I.r["panel"] = t10;
|
|
123
|
+
I.r["close"] = t14;
|
|
139
124
|
return element;
|
|
140
125
|
}
|
|
141
126
|
defineComponent("ui-site-header", createUiSiteHeader, ["breakpoint","closeLabel","label","menuLabel","sticky"]);
|
package/vue/UiSection.vue
CHANGED
|
@@ -141,16 +141,14 @@ const hostState = computed(() =>
|
|
|
141
141
|
<legend class="legend" data-hn-ui-section :hidden="!checkedProps.heading">
|
|
142
142
|
<h2 class="heading" data-hn-ui-section>{{ checkedProps.heading }}</h2>
|
|
143
143
|
</legend>
|
|
144
|
-
<span class="
|
|
145
|
-
class="
|
|
144
|
+
<span class="content" data-hn-ui-section><span class="head" data-hn-ui-section><span
|
|
145
|
+
class="copy"
|
|
146
146
|
data-hn-ui-section
|
|
147
|
-
><slot name="description" /></span></span>{{
|
|
148
|
-
|
|
149
|
-
data-hn-ui-section
|
|
150
|
-
|
|
151
|
-
class="body"
|
|
152
|
-
data-hn-ui-section
|
|
153
|
-
><slot /></span>
|
|
147
|
+
><span class="description" data-hn-ui-section><slot name="description" /></span></span>{{
|
|
148
|
+
' '
|
|
149
|
+
}}<span class="actions" data-hn-ui-section><slot name="actions" /></span></span>{{
|
|
150
|
+
' '
|
|
151
|
+
}}<span class="body" data-hn-ui-section><slot /></span></span>
|
|
154
152
|
</fieldset>
|
|
155
153
|
<section
|
|
156
154
|
v-else
|
|
@@ -211,13 +209,14 @@ const hostState = computed(() =>
|
|
|
211
209
|
box-sizing: border-box !important;
|
|
212
210
|
margin: 0 !important;
|
|
213
211
|
padding-block-start: var(--ui-space-4) !important;
|
|
212
|
+
padding-inline: calc(var(--ui-space-5) - var(--ui-space-2)) !important;
|
|
214
213
|
}
|
|
215
214
|
|
|
216
215
|
:global(.legend:where([data-hn-ui-section])) {
|
|
217
216
|
max-inline-size: 100%;
|
|
218
217
|
box-sizing: border-box !important;
|
|
219
218
|
padding-inline: var(--ui-space-2) !important;
|
|
220
|
-
margin
|
|
219
|
+
margin: 0 !important;
|
|
221
220
|
overflow-wrap: anywhere;
|
|
222
221
|
}
|
|
223
222
|
|
|
@@ -225,8 +224,16 @@ const hostState = computed(() =>
|
|
|
225
224
|
transform: translateY(-1px);
|
|
226
225
|
}
|
|
227
226
|
|
|
228
|
-
:global(
|
|
229
|
-
|
|
227
|
+
:global(.content:where([data-hn-ui-section])) {
|
|
228
|
+
display: flex !important;
|
|
229
|
+
flex-direction: column !important;
|
|
230
|
+
gap: var(--ui-space-4) !important;
|
|
231
|
+
padding-inline: var(--ui-space-2) !important;
|
|
232
|
+
min-inline-size: 0;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
:global(:scope[data-ui-section-state~="variant=fieldset"] .body:where([data-hn-ui-section])) {
|
|
236
|
+
display: contents !important;
|
|
230
237
|
}
|
|
231
238
|
|
|
232
239
|
:global(:scope[data-ui-section-state~="variant=fieldset"]
|
package/vue/UiSiteHeader.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
2
|
import { type InputBindings } from './props.js';
|
|
3
|
-
declare var __VLS_1: {}, __VLS_3: {},
|
|
3
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_18: {}, __VLS_33: {};
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
5
5
|
brand?: (props: typeof __VLS_1) => any;
|
|
6
6
|
} & {
|
|
7
7
|
menu?: (props: typeof __VLS_3) => any;
|
|
8
8
|
} & {
|
|
9
|
-
navigation?: (props: typeof
|
|
9
|
+
navigation?: (props: typeof __VLS_18) => any;
|
|
10
10
|
} & {
|
|
11
11
|
actions?: (props: typeof __VLS_33) => any;
|
|
12
12
|
};
|
package/vue/UiSiteHeader.vue
CHANGED
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
import { computed, getCurrentInstance, provide, ref, useTemplateRef, watchSyncEffect } from 'vue'
|
|
4
4
|
import type { PropType } from 'vue'
|
|
5
5
|
import {
|
|
6
|
-
attribute,
|
|
7
6
|
checkHydratedRoot,
|
|
8
|
-
concat,
|
|
9
7
|
createDispatch,
|
|
10
8
|
nativeAttrs,
|
|
11
9
|
useComponentHost,
|
|
@@ -154,65 +152,12 @@ const hydrationInstance = getCurrentInstance()
|
|
|
154
152
|
|
|
155
153
|
const root = ref<HTMLElement | null>(null)
|
|
156
154
|
const triggerElement = useTemplateRef<HTMLElement>('triggerElement')
|
|
155
|
+
const inlineElement = useTemplateRef<HTMLElement>('inlineElement')
|
|
156
|
+
const navigationElement = useTemplateRef<HTMLElement>('navigationElement')
|
|
157
157
|
const panelElement = useTemplateRef<HTMLElement>('panelElement')
|
|
158
158
|
const closeElement = useTemplateRef<HTMLElement>('closeElement')
|
|
159
|
-
const navigationElement = useTemplateRef<HTMLElement>('navigationElement')
|
|
160
159
|
const enhanced = ref(false)
|
|
161
160
|
const drawer = ref(false)
|
|
162
|
-
let guardedPrevious: any = null
|
|
163
|
-
const guarded = computed(() => {
|
|
164
|
-
const candidate: any = ((objectValue: any, indexValue: any) =>
|
|
165
|
-
objectValue === Symbol.for('html-next.invalid-result')
|
|
166
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
167
|
-
? Symbol.for('html-next.invalid-result')
|
|
168
|
-
: objectValue[indexValue])({ true: 'dialog', false: 'none' }, concat(drawer.value))
|
|
169
|
-
if (candidate === Symbol.for('html-next.invalid-result')) {
|
|
170
|
-
return guardedPrevious
|
|
171
|
-
}
|
|
172
|
-
return guardedPrevious = attribute(((objectValue: any, indexValue: any) =>
|
|
173
|
-
objectValue === Symbol.for('html-next.invalid-result')
|
|
174
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
175
|
-
? Symbol.for('html-next.invalid-result')
|
|
176
|
-
: objectValue[indexValue])({ true: 'dialog', false: 'none' }, concat(drawer.value)))
|
|
177
|
-
})
|
|
178
|
-
let guardedBindingPrevious: any = null
|
|
179
|
-
const guardedBinding = computed(() => {
|
|
180
|
-
const candidate: any = ((objectValue: any, indexValue: any) =>
|
|
181
|
-
objectValue === Symbol.for('html-next.invalid-result')
|
|
182
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
183
|
-
? Symbol.for('html-next.invalid-result')
|
|
184
|
-
: objectValue[indexValue])(
|
|
185
|
-
{ true: checkedProps.value.label, false: null },
|
|
186
|
-
concat(drawer.value),
|
|
187
|
-
)
|
|
188
|
-
if (candidate === Symbol.for('html-next.invalid-result')) {
|
|
189
|
-
return guardedBindingPrevious
|
|
190
|
-
}
|
|
191
|
-
return guardedBindingPrevious = typeof (((objectValue: any, indexValue: any) =>
|
|
192
|
-
objectValue === Symbol.for('html-next.invalid-result')
|
|
193
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
194
|
-
? Symbol.for('html-next.invalid-result')
|
|
195
|
-
: objectValue[indexValue])(
|
|
196
|
-
{ true: checkedProps.value.label, false: null },
|
|
197
|
-
concat(drawer.value),
|
|
198
|
-
)) === 'boolean'
|
|
199
|
-
? String(((objectValue: any, indexValue: any) =>
|
|
200
|
-
objectValue === Symbol.for('html-next.invalid-result')
|
|
201
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
202
|
-
? Symbol.for('html-next.invalid-result')
|
|
203
|
-
: objectValue[indexValue])(
|
|
204
|
-
{ true: checkedProps.value.label, false: null },
|
|
205
|
-
concat(drawer.value),
|
|
206
|
-
))
|
|
207
|
-
: attribute(((objectValue: any, indexValue: any) =>
|
|
208
|
-
objectValue === Symbol.for('html-next.invalid-result')
|
|
209
|
-
|| indexValue === Symbol.for('html-next.invalid-result')
|
|
210
|
-
? Symbol.for('html-next.invalid-result')
|
|
211
|
-
: objectValue[indexValue])(
|
|
212
|
-
{ true: checkedProps.value.label, false: null },
|
|
213
|
-
concat(drawer.value),
|
|
214
|
-
))
|
|
215
|
-
})
|
|
216
161
|
provide('html-next:ui-site-header:enhanced', enhanced)
|
|
217
162
|
provide('html-next:ui-site-header:drawer', drawer)
|
|
218
163
|
checkHydratedRoot('header', 'ui-site-header')
|
|
@@ -264,9 +209,10 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
|
|
|
264
209
|
propValidityState({ contract: propValidityContract, values: { ...props } }, name),
|
|
265
210
|
refs: {
|
|
266
211
|
trigger: triggerElement,
|
|
212
|
+
inline: inlineElement,
|
|
213
|
+
navigation: navigationElement,
|
|
267
214
|
panel: panelElement,
|
|
268
215
|
close: closeElement,
|
|
269
|
-
navigation: navigationElement,
|
|
270
216
|
},
|
|
271
217
|
state: { enhanced, drawer },
|
|
272
218
|
})
|
|
@@ -307,12 +253,20 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
|
|
|
307
253
|
><UiIcon class="ui-icon" name="menu" /></UiIconButton>
|
|
308
254
|
</div>
|
|
309
255
|
</div>
|
|
256
|
+
<div class="inline-navigation" data-hn-ui-site-header ref="inlineElement">
|
|
257
|
+
<nav
|
|
258
|
+
class="navigation"
|
|
259
|
+
data-hn-ui-site-header
|
|
260
|
+
:aria-label="checkedProps.label ?? undefined"
|
|
261
|
+
ref="navigationElement"
|
|
262
|
+
>
|
|
263
|
+
<slot name="navigation" />
|
|
264
|
+
</nav>
|
|
265
|
+
</div>
|
|
310
266
|
<dialog
|
|
311
267
|
class="navigation-panel"
|
|
312
268
|
data-hn-ui-site-header
|
|
313
|
-
:
|
|
314
|
-
:role="guarded"
|
|
315
|
-
:aria-label="guardedBinding"
|
|
269
|
+
:aria-label="checkedProps.label ?? undefined"
|
|
316
270
|
ref="panelElement"
|
|
317
271
|
>
|
|
318
272
|
<div class="panel-heading" data-hn-ui-site-header>
|
|
@@ -330,14 +284,6 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
|
|
|
330
284
|
ref="closeElement"
|
|
331
285
|
><UiIcon class="ui-icon" name="x" /></UiIconButton>
|
|
332
286
|
</div>
|
|
333
|
-
<nav
|
|
334
|
-
class="navigation"
|
|
335
|
-
data-hn-ui-site-header
|
|
336
|
-
:aria-label="checkedProps.label ?? undefined"
|
|
337
|
-
ref="navigationElement"
|
|
338
|
-
>
|
|
339
|
-
<slot name="navigation" />
|
|
340
|
-
</nav>
|
|
341
287
|
</dialog>
|
|
342
288
|
</div>
|
|
343
289
|
<div class="actions" data-hn-ui-site-header><slot name="actions" /></div>
|
|
@@ -346,7 +292,8 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
|
|
|
346
292
|
|
|
347
293
|
<style scoped>
|
|
348
294
|
/* Text shares a baseline inside one group; the group is centred beside any control height. */
|
|
349
|
-
/*
|
|
295
|
+
/* One live navigation stays inline until its native mobile dialog opens. */
|
|
296
|
+
/* Authored native sidebar triggers remain usable before JavaScript upgrades the header. */
|
|
350
297
|
@scope (.ui-site-header) to ([data-hn]) {
|
|
351
298
|
:global(:scope:where([data-hn-ui-site-header])) {
|
|
352
299
|
box-sizing: border-box !important;
|
|
@@ -447,7 +394,7 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
|
|
|
447
394
|
column-gap: var(--ui-space-4) !important;
|
|
448
395
|
}
|
|
449
396
|
}
|
|
450
|
-
:global(.navigation
|
|
397
|
+
:global(.inline-navigation:where([data-hn-ui-site-header])) {
|
|
451
398
|
position: static;
|
|
452
399
|
display: flex !important;
|
|
453
400
|
align-items: baseline !important;
|
|
@@ -459,6 +406,8 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
|
|
|
459
406
|
background: transparent;
|
|
460
407
|
color: inherit;
|
|
461
408
|
}
|
|
409
|
+
:global(:scope[data-ui-site-header-state~="drawer"]
|
|
410
|
+
.inline-navigation:where([data-hn-ui-site-header])),
|
|
462
411
|
:global(.navigation-panel:not([open]):where([data-hn-ui-site-header])),
|
|
463
412
|
:global(.menu:where([data-hn-ui-site-header])),
|
|
464
413
|
:global(.panel-heading:where([data-hn-ui-site-header])) {
|
|
@@ -478,6 +427,73 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
|
|
|
478
427
|
justify-items: center !important;
|
|
479
428
|
flex: none;
|
|
480
429
|
}
|
|
430
|
+
@media (width < 40rem) {
|
|
431
|
+
:global(:scope[data-ui-site-header-state~="breakpoint=sm"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
432
|
+
.identity:where([data-hn-ui-site-header])) {
|
|
433
|
+
flex-wrap: nowrap !important;
|
|
434
|
+
align-items: center !important;
|
|
435
|
+
}
|
|
436
|
+
:global(:scope[data-ui-site-header-state~="breakpoint=sm"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
437
|
+
.brand:where([data-hn-ui-site-header])) {
|
|
438
|
+
flex: 1 1 0;
|
|
439
|
+
}
|
|
440
|
+
:global(:scope[data-ui-site-header-state~="breakpoint=sm"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
441
|
+
.menu:where([data-hn-ui-site-header])) {
|
|
442
|
+
display: grid !important;
|
|
443
|
+
grid-template-columns: minmax(max-content, var(--ui-control-min-block-size)) !important;
|
|
444
|
+
justify-items: center !important;
|
|
445
|
+
flex: none;
|
|
446
|
+
}
|
|
447
|
+
:global(:scope[data-ui-site-header-state~="breakpoint=sm"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
448
|
+
.inline-navigation:where([data-hn-ui-site-header])) {
|
|
449
|
+
display: none !important;
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
@media (width < 48rem) {
|
|
453
|
+
:global(:scope[data-ui-site-header-state~="breakpoint=md"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
454
|
+
.identity:where([data-hn-ui-site-header])) {
|
|
455
|
+
flex-wrap: nowrap !important;
|
|
456
|
+
align-items: center !important;
|
|
457
|
+
}
|
|
458
|
+
:global(:scope[data-ui-site-header-state~="breakpoint=md"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
459
|
+
.brand:where([data-hn-ui-site-header])) {
|
|
460
|
+
flex: 1 1 0;
|
|
461
|
+
}
|
|
462
|
+
:global(:scope[data-ui-site-header-state~="breakpoint=md"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
463
|
+
.menu:where([data-hn-ui-site-header])) {
|
|
464
|
+
display: grid !important;
|
|
465
|
+
grid-template-columns: minmax(max-content, var(--ui-control-min-block-size)) !important;
|
|
466
|
+
justify-items: center !important;
|
|
467
|
+
flex: none;
|
|
468
|
+
}
|
|
469
|
+
:global(:scope[data-ui-site-header-state~="breakpoint=md"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
470
|
+
.inline-navigation:where([data-hn-ui-site-header])) {
|
|
471
|
+
display: none !important;
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
@media (width < 64rem) {
|
|
475
|
+
:global(:scope[data-ui-site-header-state~="breakpoint=lg"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
476
|
+
.identity:where([data-hn-ui-site-header])) {
|
|
477
|
+
flex-wrap: nowrap !important;
|
|
478
|
+
align-items: center !important;
|
|
479
|
+
}
|
|
480
|
+
:global(:scope[data-ui-site-header-state~="breakpoint=lg"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
481
|
+
.brand:where([data-hn-ui-site-header])) {
|
|
482
|
+
flex: 1 1 0;
|
|
483
|
+
}
|
|
484
|
+
:global(:scope[data-ui-site-header-state~="breakpoint=lg"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
485
|
+
.menu:where([data-hn-ui-site-header])) {
|
|
486
|
+
display: grid !important;
|
|
487
|
+
grid-template-columns: minmax(max-content, var(--ui-control-min-block-size)) !important;
|
|
488
|
+
justify-items: center !important;
|
|
489
|
+
flex: none;
|
|
490
|
+
}
|
|
491
|
+
:global(:scope[data-ui-site-header-state~="breakpoint=lg"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
492
|
+
.inline-navigation:where([data-hn-ui-site-header])) {
|
|
493
|
+
display: none !important;
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
|
|
481
497
|
:global(.automatic-menu:where([data-hn-ui-site-header])) {
|
|
482
498
|
display: grid !important;
|
|
483
499
|
justify-items: center !important;
|
|
@@ -677,7 +693,7 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
|
|
|
677
693
|
column-gap: var(--ui-space-4) !important;
|
|
678
694
|
}
|
|
679
695
|
}
|
|
680
|
-
:global(.navigation
|
|
696
|
+
:global(.inline-navigation:where(:scope, :scope *):where([data-hn-ui-site-header])) {
|
|
681
697
|
position: static;
|
|
682
698
|
display: flex !important;
|
|
683
699
|
align-items: baseline !important;
|
|
@@ -689,6 +705,8 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
|
|
|
689
705
|
background: transparent;
|
|
690
706
|
color: inherit;
|
|
691
707
|
}
|
|
708
|
+
:global(:where(.ui-site-header)[data-ui-site-header-state~="drawer"]
|
|
709
|
+
.inline-navigation:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])),
|
|
692
710
|
:global(.navigation-panel:not([open]):where(:scope, :scope *):where([data-hn-ui-site-header])),
|
|
693
711
|
:global(.menu:where(:scope, :scope *):where([data-hn-ui-site-header])),
|
|
694
712
|
:global(.panel-heading:where(:scope, :scope *):where([data-hn-ui-site-header])) {
|
|
@@ -710,6 +728,73 @@ useComponentHost(() => import('../components/ui-site-header/ui-site-header.js'),
|
|
|
710
728
|
justify-items: center !important;
|
|
711
729
|
flex: none;
|
|
712
730
|
}
|
|
731
|
+
@media (width < 40rem) {
|
|
732
|
+
:global(:where(.ui-site-header)[data-ui-site-header-state~="breakpoint=sm"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
733
|
+
.identity:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])) {
|
|
734
|
+
flex-wrap: nowrap !important;
|
|
735
|
+
align-items: center !important;
|
|
736
|
+
}
|
|
737
|
+
:global(:where(.ui-site-header)[data-ui-site-header-state~="breakpoint=sm"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
738
|
+
.brand:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])) {
|
|
739
|
+
flex: 1 1 0;
|
|
740
|
+
}
|
|
741
|
+
:global(:where(.ui-site-header)[data-ui-site-header-state~="breakpoint=sm"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
742
|
+
.menu:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])) {
|
|
743
|
+
display: grid !important;
|
|
744
|
+
grid-template-columns: minmax(max-content, var(--ui-control-min-block-size)) !important;
|
|
745
|
+
justify-items: center !important;
|
|
746
|
+
flex: none;
|
|
747
|
+
}
|
|
748
|
+
:global(:where(.ui-site-header)[data-ui-site-header-state~="breakpoint=sm"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
749
|
+
.inline-navigation:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])) {
|
|
750
|
+
display: none !important;
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
@media (width < 48rem) {
|
|
754
|
+
:global(:where(.ui-site-header)[data-ui-site-header-state~="breakpoint=md"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
755
|
+
.identity:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])) {
|
|
756
|
+
flex-wrap: nowrap !important;
|
|
757
|
+
align-items: center !important;
|
|
758
|
+
}
|
|
759
|
+
:global(:where(.ui-site-header)[data-ui-site-header-state~="breakpoint=md"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
760
|
+
.brand:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])) {
|
|
761
|
+
flex: 1 1 0;
|
|
762
|
+
}
|
|
763
|
+
:global(:where(.ui-site-header)[data-ui-site-header-state~="breakpoint=md"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
764
|
+
.menu:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])) {
|
|
765
|
+
display: grid !important;
|
|
766
|
+
grid-template-columns: minmax(max-content, var(--ui-control-min-block-size)) !important;
|
|
767
|
+
justify-items: center !important;
|
|
768
|
+
flex: none;
|
|
769
|
+
}
|
|
770
|
+
:global(:where(.ui-site-header)[data-ui-site-header-state~="breakpoint=md"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
771
|
+
.inline-navigation:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])) {
|
|
772
|
+
display: none !important;
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
@media (width < 64rem) {
|
|
776
|
+
:global(:where(.ui-site-header)[data-ui-site-header-state~="breakpoint=lg"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
777
|
+
.identity:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])) {
|
|
778
|
+
flex-wrap: nowrap !important;
|
|
779
|
+
align-items: center !important;
|
|
780
|
+
}
|
|
781
|
+
:global(:where(.ui-site-header)[data-ui-site-header-state~="breakpoint=lg"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
782
|
+
.brand:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])) {
|
|
783
|
+
flex: 1 1 0;
|
|
784
|
+
}
|
|
785
|
+
:global(:where(.ui-site-header)[data-ui-site-header-state~="breakpoint=lg"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
786
|
+
.menu:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])) {
|
|
787
|
+
display: grid !important;
|
|
788
|
+
grid-template-columns: minmax(max-content, var(--ui-control-min-block-size)) !important;
|
|
789
|
+
justify-items: center !important;
|
|
790
|
+
flex: none;
|
|
791
|
+
}
|
|
792
|
+
:global(:where(.ui-site-header)[data-ui-site-header-state~="breakpoint=lg"]:not([data-ui-site-header-state~="enhanced"]):has(.custom-menu:not(:empty))
|
|
793
|
+
.inline-navigation:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header])) {
|
|
794
|
+
display: none !important;
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
|
|
713
798
|
:global(.automatic-menu:where(:scope, :scope *):where([data-hn-ui-site-header])) {
|
|
714
799
|
display: grid !important;
|
|
715
800
|
justify-items: center !important;
|
package/vue/chunks/UiSection.js
CHANGED
|
@@ -14,49 +14,53 @@ var _hoisted_3 = {
|
|
|
14
14
|
"data-hn-ui-section": ""
|
|
15
15
|
};
|
|
16
16
|
var _hoisted_4 = {
|
|
17
|
-
class: "
|
|
17
|
+
class: "content",
|
|
18
18
|
"data-hn-ui-section": ""
|
|
19
19
|
};
|
|
20
20
|
var _hoisted_5 = {
|
|
21
|
-
class: "
|
|
21
|
+
class: "head",
|
|
22
22
|
"data-hn-ui-section": ""
|
|
23
23
|
};
|
|
24
24
|
var _hoisted_6 = {
|
|
25
|
-
class: "
|
|
25
|
+
class: "copy",
|
|
26
26
|
"data-hn-ui-section": ""
|
|
27
27
|
};
|
|
28
28
|
var _hoisted_7 = {
|
|
29
|
-
class: "
|
|
29
|
+
class: "description",
|
|
30
30
|
"data-hn-ui-section": ""
|
|
31
31
|
};
|
|
32
32
|
var _hoisted_8 = {
|
|
33
|
+
class: "actions",
|
|
34
|
+
"data-hn-ui-section": ""
|
|
35
|
+
};
|
|
36
|
+
var _hoisted_9 = {
|
|
33
37
|
class: "body",
|
|
34
38
|
"data-hn-ui-section": ""
|
|
35
39
|
};
|
|
36
|
-
var
|
|
40
|
+
var _hoisted_10 = [
|
|
37
41
|
"data-ui-section-prop-heading",
|
|
38
42
|
"data-ui-section-prop-tone",
|
|
39
43
|
"data-ui-section-prop-variant",
|
|
40
44
|
"data-ui-section-state"
|
|
41
45
|
];
|
|
42
|
-
var
|
|
46
|
+
var _hoisted_11 = {
|
|
43
47
|
class: "head",
|
|
44
48
|
"data-hn-ui-section": ""
|
|
45
49
|
};
|
|
46
|
-
var
|
|
50
|
+
var _hoisted_12 = {
|
|
47
51
|
class: "copy",
|
|
48
52
|
"data-hn-ui-section": ""
|
|
49
53
|
};
|
|
50
|
-
var
|
|
51
|
-
var
|
|
54
|
+
var _hoisted_13 = ["hidden"];
|
|
55
|
+
var _hoisted_14 = {
|
|
52
56
|
class: "description",
|
|
53
57
|
"data-hn-ui-section": ""
|
|
54
58
|
};
|
|
55
|
-
var
|
|
59
|
+
var _hoisted_15 = {
|
|
56
60
|
class: "actions",
|
|
57
61
|
"data-hn-ui-section": ""
|
|
58
62
|
};
|
|
59
|
-
var
|
|
63
|
+
var _hoisted_16 = {
|
|
60
64
|
class: "body",
|
|
61
65
|
"data-hn-ui-section": ""
|
|
62
66
|
};
|
|
@@ -175,20 +179,19 @@ var UiSection_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
175
179
|
"data-ui-section-prop-variant": unref(reflectedProp)("variant", "variant", checkedProps.value.variant, void 0, false),
|
|
176
180
|
"data-ui-section-state": hostState.value || void 0,
|
|
177
181
|
ref: "@html-next/root"
|
|
178
|
-
}), [
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
createElementVNode("span", _hoisted_5, [createElementVNode("span", _hoisted_6, [renderSlot(_ctx.$slots, "description", {}, void 0, true)])]),
|
|
182
|
+
}), [createElementVNode("legend", {
|
|
183
|
+
class: "legend",
|
|
184
|
+
"data-hn-ui-section": "",
|
|
185
|
+
hidden: !checkedProps.value.heading
|
|
186
|
+
}, [createElementVNode("h2", _hoisted_3, toDisplayString(checkedProps.value.heading), 1)], 8, _hoisted_2), createElementVNode("span", _hoisted_4, [
|
|
187
|
+
createElementVNode("span", _hoisted_5, [
|
|
188
|
+
createElementVNode("span", _hoisted_6, [createElementVNode("span", _hoisted_7, [renderSlot(_ctx.$slots, "description", {}, void 0, true)])]),
|
|
186
189
|
_cache[0] || (_cache[0] = createTextVNode(toDisplayString(" "), -1)),
|
|
187
|
-
createElementVNode("span",
|
|
190
|
+
createElementVNode("span", _hoisted_8, [renderSlot(_ctx.$slots, "actions", {}, void 0, true)])
|
|
188
191
|
]),
|
|
189
192
|
_cache[1] || (_cache[1] = createTextVNode(toDisplayString(" "), -1)),
|
|
190
|
-
createElementVNode("span",
|
|
191
|
-
], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
193
|
+
createElementVNode("span", _hoisted_9, [renderSlot(_ctx.$slots, "default", {}, void 0, true)])
|
|
194
|
+
])], 16, _hoisted_1)), [[unref(vPropValidity), {
|
|
192
195
|
contract: propValidityContract,
|
|
193
196
|
values: { ...props }
|
|
194
197
|
}]]) : withDirectives((openBlock(), createElementBlock("section", mergeProps({
|
|
@@ -203,23 +206,23 @@ var UiSection_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
203
206
|
"data-ui-section-state": hostState.value || void 0,
|
|
204
207
|
ref: "@html-next/root"
|
|
205
208
|
}), [
|
|
206
|
-
createElementVNode("span",
|
|
207
|
-
createElementVNode("span",
|
|
209
|
+
createElementVNode("span", _hoisted_11, [
|
|
210
|
+
createElementVNode("span", _hoisted_12, [createElementVNode("h2", {
|
|
208
211
|
class: "heading",
|
|
209
212
|
"data-hn-ui-section": "",
|
|
210
213
|
hidden: !checkedProps.value.heading
|
|
211
|
-
}, toDisplayString(checkedProps.value.heading), 9,
|
|
214
|
+
}, toDisplayString(checkedProps.value.heading), 9, _hoisted_13), createElementVNode("span", _hoisted_14, [renderSlot(_ctx.$slots, "description", {}, void 0, true)])]),
|
|
212
215
|
_cache[2] || (_cache[2] = createTextVNode(toDisplayString(" "), -1)),
|
|
213
|
-
createElementVNode("span",
|
|
216
|
+
createElementVNode("span", _hoisted_15, [renderSlot(_ctx.$slots, "actions", {}, void 0, true)])
|
|
214
217
|
]),
|
|
215
218
|
_cache[3] || (_cache[3] = createTextVNode(toDisplayString(" "), -1)),
|
|
216
|
-
createElementVNode("span",
|
|
217
|
-
], 16,
|
|
219
|
+
createElementVNode("span", _hoisted_16, [renderSlot(_ctx.$slots, "default", {}, void 0, true)])
|
|
220
|
+
], 16, _hoisted_10)), [[unref(vPropValidity), {
|
|
218
221
|
contract: propValidityContract,
|
|
219
222
|
values: { ...props }
|
|
220
223
|
}]]);
|
|
221
224
|
};
|
|
222
225
|
}
|
|
223
|
-
}), [["__scopeId", "data-v-
|
|
226
|
+
}), [["__scopeId", "data-v-c33b404c"]]);
|
|
224
227
|
//#endregion
|
|
225
228
|
export { UiSection_default as t };
|