@threadlabs/looma 0.44.5 → 0.45.0
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 +24 -0
- package/components/shared/icons.js +1 -0
- package/components/ui-button/ui-button.html +3 -1
- package/components/ui-icon/ui-icon.html +1 -0
- package/components/ui-icon-button/ui-icon-button.html +3 -1
- package/components/ui-site-header/ui-site-header.html +163 -31
- package/components/ui-site-header/ui-site-header.js +82 -0
- package/dist/index.js +14 -13
- package/docs/card.html +11 -7
- package/docs/catalog.json +99 -14
- package/editor/icons.d.ts +1 -0
- package/editor/index.js +2 -1
- package/package.json +1 -1
- package/styles/ui-button.css +3 -1
- package/styles/ui-icon-button.css +3 -1
- package/styles/ui-site-header.css +353 -27
- package/vanilla/UiIcon.js +1 -1
- package/vanilla/UiSiteHeader.d.ts +2 -0
- package/vanilla/UiSiteHeader.js +72 -27
- package/vue/UiButton.vue +6 -1
- package/vue/UiIcon.vue +4 -0
- package/vue/UiIconButton.vue +6 -1
- package/vue/UiSiteHeader.d.ts +17 -5
- package/vue/UiSiteHeader.vue +599 -40
- package/vue/chunks/UiButton.js +1 -1
- package/vue/chunks/UiIcon.js +15 -1
- package/vue/chunks/UiIconButton.js +1 -1
- package/vue/chunks/UiSiteHeader.js +225 -18
- package/vue/components.css +396 -36
- package/vue/editor/index.js +14 -0
package/vue/components.css
CHANGED
|
@@ -1184,15 +1184,20 @@ svg,.arc {
|
|
|
1184
1184
|
align-self: center;
|
|
1185
1185
|
}
|
|
1186
1186
|
:scope[data-appearance="outline"]:not([data-tone="neutral"]):where([data-hn-ui-button]) {
|
|
1187
|
+
--_outline-highlight: var(--ui-surface-highlight, linear-gradient(transparent, transparent));
|
|
1187
1188
|
--_outline-wash: oklch(from var(--_tone) l c h / calc(8% * var(--ui-tonal-opacity, 1)));
|
|
1188
1189
|
border-color: var(--ui-button-border, var(--_tone-outline-border, var(--_tone-text)));
|
|
1189
1190
|
background-color: var(--ui-button-surface, transparent);
|
|
1190
1191
|
box-shadow: var(--ui-button-shadow, var(--ui-neutral-shadow));
|
|
1191
1192
|
background-image:
|
|
1192
1193
|
linear-gradient(var(--_outline-wash), var(--_outline-wash)),
|
|
1193
|
-
var(--
|
|
1194
|
+
var(--_outline-highlight);
|
|
1194
1195
|
}
|
|
1195
1196
|
:scope[data-appearance="outline"]:not([data-tone="neutral"]):hover:not(:disabled, [aria-disabled="true"]):where([data-hn-ui-button]) {
|
|
1197
|
+
--_outline-highlight: var(
|
|
1198
|
+
--ui-neutral-highlight,
|
|
1199
|
+
var(--ui-surface-highlight, linear-gradient(transparent, transparent))
|
|
1200
|
+
);
|
|
1196
1201
|
--_outline-wash: oklch(from var(--_tone) l c h / calc(12% * var(--ui-tonal-opacity, 1)));
|
|
1197
1202
|
background-color: var(--ui-button-hover-surface, transparent);
|
|
1198
1203
|
border-color: var(--ui-button-hover-border, var(--_tone-outline-border));
|
|
@@ -4044,6 +4049,7 @@ html[data-ui-input-modality="touch"] :scope:where([data-hn-ui-icon-button])::aft
|
|
|
4044
4049
|
color: var(--ui-icon-button-hover-text, var(--_icon-button-text, var(--ui-text-primary)));
|
|
4045
4050
|
}
|
|
4046
4051
|
:scope[data-appearance="outline"]:not([data-tone="neutral"]):where([data-hn-ui-icon-button]) {
|
|
4052
|
+
--_outline-highlight: var(--ui-surface-highlight, linear-gradient(transparent, transparent));
|
|
4047
4053
|
--_outline-wash: oklch(
|
|
4048
4054
|
from var(--_icon-button-solid-surface, var(--ui-accent))
|
|
4049
4055
|
l c h / calc(8% * var(--ui-tonal-opacity, 1))
|
|
@@ -4052,9 +4058,13 @@ html[data-ui-input-modality="touch"] :scope:where([data-hn-ui-icon-button])::aft
|
|
|
4052
4058
|
background-color: var(--ui-icon-button-outline-surface, transparent);
|
|
4053
4059
|
background-image:
|
|
4054
4060
|
linear-gradient(var(--_outline-wash), var(--_outline-wash)),
|
|
4055
|
-
var(--
|
|
4061
|
+
var(--_outline-highlight);
|
|
4056
4062
|
}
|
|
4057
4063
|
:scope[data-appearance="outline"]:not([data-tone="neutral"]):hover:enabled:not([aria-disabled="true"]):where([data-hn-ui-icon-button]) {
|
|
4064
|
+
--_outline-highlight: var(
|
|
4065
|
+
--ui-neutral-highlight,
|
|
4066
|
+
var(--ui-surface-highlight, linear-gradient(transparent, transparent))
|
|
4067
|
+
);
|
|
4058
4068
|
--_outline-wash: oklch(
|
|
4059
4069
|
from var(--_icon-button-solid-surface, var(--ui-accent))
|
|
4060
4070
|
l c h / calc(12% * var(--ui-tonal-opacity, 1))
|
|
@@ -10031,7 +10041,7 @@ dialog:where([data-hn-ui-search-shell]) {
|
|
|
10031
10041
|
}
|
|
10032
10042
|
|
|
10033
10043
|
/* Text shares a baseline inside one group; the group is centred beside any control height. */
|
|
10034
|
-
/*
|
|
10044
|
+
/* The same navigation remains inline before upgrade and on desktop. No links are cloned or moved. */
|
|
10035
10045
|
@scope (.ui-site-header) to ([data-hn]) {
|
|
10036
10046
|
:scope:where([data-hn-ui-site-header]) {
|
|
10037
10047
|
box-sizing: border-box !important;
|
|
@@ -10053,16 +10063,13 @@ dialog:where([data-hn-ui-search-shell]) {
|
|
|
10053
10063
|
inset-block-start: 0;
|
|
10054
10064
|
z-index: var(--ui-site-header-z-index, 10);
|
|
10055
10065
|
}
|
|
10056
|
-
.
|
|
10057
|
-
display:
|
|
10066
|
+
.actions:where([data-hn-ui-site-header]) {
|
|
10067
|
+
display: grid !important;
|
|
10058
10068
|
flex: none;
|
|
10059
10069
|
align-items: center !important;
|
|
10060
10070
|
gap: var(--ui-space-2) !important;
|
|
10061
10071
|
min-inline-size: 0;
|
|
10062
10072
|
max-inline-size: 100%;
|
|
10063
|
-
}
|
|
10064
|
-
.actions:where([data-hn-ui-site-header]) {
|
|
10065
|
-
display: grid !important;
|
|
10066
10073
|
grid-auto-flow: column !important;
|
|
10067
10074
|
grid-auto-columns: minmax(max-content, var(--ui-control-min-block-size)) !important;
|
|
10068
10075
|
justify-items: center !important;
|
|
@@ -10099,9 +10106,6 @@ dialog:where([data-hn-ui-search-shell]) {
|
|
|
10099
10106
|
font-size: var(--ui-font-size-sm);
|
|
10100
10107
|
font-weight: var(--ui-font-semibold);
|
|
10101
10108
|
}
|
|
10102
|
-
:scope:has(> .menu:not(:empty)) .navigation:where([data-hn-ui-site-header]) {
|
|
10103
|
-
display: none !important;
|
|
10104
|
-
}
|
|
10105
10109
|
.navigation > :where(:not([data-hn-ui-site-header])):is(a) {
|
|
10106
10110
|
color: inherit;
|
|
10107
10111
|
text-decoration: none;
|
|
@@ -10114,7 +10118,7 @@ dialog:where([data-hn-ui-search-shell]) {
|
|
|
10114
10118
|
outline: var(--ui-focus-width) solid var(--ui-focus-ring);
|
|
10115
10119
|
outline-offset: var(--ui-focus-width);
|
|
10116
10120
|
}
|
|
10117
|
-
.
|
|
10121
|
+
.actions:empty:where([data-hn-ui-site-header]),.brand:empty:where([data-hn-ui-site-header]),.navigation:empty:where([data-hn-ui-site-header]) {
|
|
10118
10122
|
display: none !important;
|
|
10119
10123
|
}
|
|
10120
10124
|
@media (min-width: 40rem) {
|
|
@@ -10122,47 +10126,399 @@ dialog:where([data-hn-ui-search-shell]) {
|
|
|
10122
10126
|
min-block-size: var(--ui-site-header-height, 4.25rem);
|
|
10123
10127
|
column-gap: var(--ui-space-4) !important;
|
|
10124
10128
|
}
|
|
10125
|
-
:scope[data-ui-site-header-state~="breakpoint=sm"]
|
|
10126
|
-
.navigation:not(:empty):where([data-hn-ui-site-header]) {
|
|
10127
|
-
display: flex !important;
|
|
10128
|
-
}
|
|
10129
|
-
:scope[data-ui-site-header-state~="breakpoint=sm"]
|
|
10130
|
-
.menu:where([data-hn-ui-site-header]) {
|
|
10131
|
-
display: none !important;
|
|
10132
|
-
}
|
|
10133
10129
|
}
|
|
10134
10130
|
@media (min-width: 48rem) {
|
|
10135
10131
|
:scope[data-ui-site-header-state~="breakpoint=md"]:where([data-hn-ui-site-header]) {
|
|
10136
10132
|
min-block-size: var(--ui-site-header-height, 4.25rem);
|
|
10137
10133
|
column-gap: var(--ui-space-4) !important;
|
|
10138
10134
|
}
|
|
10139
|
-
:scope[data-ui-site-header-state~="breakpoint=md"]
|
|
10140
|
-
.navigation:not(:empty):where([data-hn-ui-site-header]) {
|
|
10141
|
-
display: flex !important;
|
|
10142
|
-
}
|
|
10143
|
-
:scope[data-ui-site-header-state~="breakpoint=md"]
|
|
10144
|
-
.menu:where([data-hn-ui-site-header]) {
|
|
10145
|
-
display: none !important;
|
|
10146
|
-
}
|
|
10147
10135
|
}
|
|
10148
10136
|
@media (min-width: 64rem) {
|
|
10149
10137
|
:scope[data-ui-site-header-state~="breakpoint=lg"]:where([data-hn-ui-site-header]) {
|
|
10150
10138
|
min-block-size: var(--ui-site-header-height, 4.25rem);
|
|
10151
10139
|
column-gap: var(--ui-space-4) !important;
|
|
10152
10140
|
}
|
|
10153
|
-
:scope[data-ui-site-header-state~="breakpoint=lg"]
|
|
10154
|
-
.navigation:not(:empty):where([data-hn-ui-site-header]) {
|
|
10155
|
-
display: flex !important;
|
|
10156
10141
|
}
|
|
10157
|
-
:
|
|
10158
|
-
|
|
10159
|
-
|
|
10142
|
+
.navigation-panel:where([data-hn-ui-site-header]) {
|
|
10143
|
+
position: static;
|
|
10144
|
+
display: flex !important;
|
|
10145
|
+
align-items: baseline !important;
|
|
10146
|
+
min-inline-size: 0;
|
|
10147
|
+
max-inline-size: none;
|
|
10148
|
+
margin: 0 !important;
|
|
10149
|
+
padding: 0 !important;
|
|
10150
|
+
border: 0;
|
|
10151
|
+
background: transparent;
|
|
10152
|
+
color: inherit;
|
|
10153
|
+
}
|
|
10154
|
+
.navigation-panel:not([open]):where([data-hn-ui-site-header]),.menu:where([data-hn-ui-site-header]),.panel-heading:where([data-hn-ui-site-header]) {
|
|
10155
|
+
display: none !important;
|
|
10156
|
+
}
|
|
10157
|
+
:scope[data-ui-site-header-state~="drawer"] .identity:where([data-hn-ui-site-header]) {
|
|
10158
|
+
flex-wrap: nowrap !important;
|
|
10159
|
+
align-items: center !important;
|
|
10160
|
+
}
|
|
10161
|
+
:scope[data-ui-site-header-state~="drawer"] .brand:where([data-hn-ui-site-header]) {
|
|
10162
|
+
flex: 1 1 0;
|
|
10163
|
+
}
|
|
10164
|
+
:scope[data-ui-site-header-state~="enhanced"][data-ui-site-header-state~="drawer"]:has(.navigation:not(:empty), .custom-menu:not(:empty))
|
|
10165
|
+
.menu:where([data-hn-ui-site-header]) {
|
|
10166
|
+
display: grid !important;
|
|
10167
|
+
grid-template-columns: minmax(max-content, var(--ui-control-min-block-size)) !important;
|
|
10168
|
+
justify-items: center !important;
|
|
10169
|
+
flex: none;
|
|
10170
|
+
}
|
|
10171
|
+
.automatic-menu:where([data-hn-ui-site-header]) {
|
|
10172
|
+
display: grid !important;
|
|
10173
|
+
justify-items: center !important;
|
|
10174
|
+
}
|
|
10175
|
+
.custom-menu:empty:where([data-hn-ui-site-header]),.menu:has(> .custom-menu:not(:empty)) .automatic-menu:where([data-hn-ui-site-header]) {
|
|
10176
|
+
display: none !important;
|
|
10177
|
+
}
|
|
10178
|
+
:scope[data-ui-site-header-state~="drawer"]
|
|
10179
|
+
.navigation-panel:where([data-hn-ui-site-header]) {
|
|
10180
|
+
position: fixed;
|
|
10181
|
+
inset-block: 0;
|
|
10182
|
+
inset-inline-start: 0;
|
|
10183
|
+
inset-inline-end: auto;
|
|
10184
|
+
box-sizing: border-box !important;
|
|
10185
|
+
inline-size: min(var(--ui-site-header-navigation-width, 280px), 85vw);
|
|
10186
|
+
max-inline-size: none;
|
|
10187
|
+
block-size: 100dvh;
|
|
10188
|
+
max-block-size: none;
|
|
10189
|
+
margin: 0 !important;
|
|
10190
|
+
padding: 0 !important;
|
|
10191
|
+
overflow: hidden;
|
|
10192
|
+
border: 0;
|
|
10193
|
+
border-inline-end: var(--ui-border-width) solid
|
|
10194
|
+
var(--ui-overlay-border, var(--ui-border-divider));
|
|
10195
|
+
background: var(--ui-overlay-surface, var(--ui-surface-elevated));
|
|
10196
|
+
color: var(--ui-text-primary);
|
|
10197
|
+
box-shadow: var(--ui-elevation-overlay, var(--ui-shadow-lg));
|
|
10198
|
+
transform: translateX(-100%);
|
|
10199
|
+
transition:
|
|
10200
|
+
transform var(--ui-motion-reveal) var(--ui-motion-reveal-ease),
|
|
10201
|
+
display var(--ui-motion-reveal) allow-discrete,
|
|
10202
|
+
overlay var(--ui-motion-reveal) allow-discrete;
|
|
10203
|
+
}
|
|
10204
|
+
:scope[data-ui-site-header-state~="drawer"]
|
|
10205
|
+
.navigation-panel[open]:where([data-hn-ui-site-header]) {
|
|
10206
|
+
display: flex !important;
|
|
10207
|
+
flex-direction: column !important;
|
|
10208
|
+
align-items: stretch !important;
|
|
10209
|
+
transform: translateX(0);
|
|
10210
|
+
}
|
|
10211
|
+
:scope[data-ui-site-header-state~="drawer"]
|
|
10212
|
+
.navigation-panel:dir(rtl):not([open]):where([data-hn-ui-site-header]) {
|
|
10213
|
+
transform: translateX(100%);
|
|
10214
|
+
}
|
|
10215
|
+
@starting-style {
|
|
10216
|
+
:scope[data-ui-site-header-state~="drawer"]
|
|
10217
|
+
.navigation-panel[open]:where([data-hn-ui-site-header]) {
|
|
10218
|
+
transform: translateX(-100%);
|
|
10219
|
+
}
|
|
10220
|
+
:scope[data-ui-site-header-state~="drawer"]
|
|
10221
|
+
.navigation-panel[open]:dir(rtl):where([data-hn-ui-site-header]) {
|
|
10222
|
+
transform: translateX(100%);
|
|
10223
|
+
}
|
|
10224
|
+
}
|
|
10225
|
+
:scope:where([data-hn-ui-site-header]) {
|
|
10226
|
+
--_ui-site-header-backdrop: var(--ui-overlay-backdrop, rgb(0 0 0 / 0.32));
|
|
10227
|
+
}
|
|
10228
|
+
.navigation-panel:where([data-hn-ui-site-header])::backdrop {
|
|
10229
|
+
background: var(--_ui-site-header-backdrop);
|
|
10230
|
+
}
|
|
10231
|
+
.navigation-panel[data-ui-backdrop-hidden]:where([data-hn-ui-site-header])::backdrop {
|
|
10232
|
+
background: transparent;
|
|
10233
|
+
}
|
|
10234
|
+
:scope[data-ui-site-header-state~="drawer"]
|
|
10235
|
+
.panel-heading:where([data-hn-ui-site-header]) {
|
|
10236
|
+
display: flex !important;
|
|
10237
|
+
align-items: center !important;
|
|
10238
|
+
justify-content: space-between !important;
|
|
10239
|
+
gap: var(--ui-space-3) !important;
|
|
10240
|
+
padding: var(--ui-space-4) !important;
|
|
10241
|
+
flex: none;
|
|
10242
|
+
border-block-end: var(--ui-border-width) solid var(--ui-border-divider);
|
|
10243
|
+
}
|
|
10244
|
+
.panel-title:where([data-hn-ui-site-header]) {
|
|
10245
|
+
font-size: var(--ui-font-size-lg);
|
|
10246
|
+
font-weight: var(--ui-font-semibold);
|
|
10247
|
+
line-height: var(--ui-line-height-tight);
|
|
10248
|
+
}
|
|
10249
|
+
:scope[data-ui-site-header-state~="drawer"] .navigation:where([data-hn-ui-site-header]) {
|
|
10250
|
+
font-weight: var(--ui-font-normal);
|
|
10251
|
+
flex: 1 1 auto;
|
|
10252
|
+
flex-direction: column !important;
|
|
10253
|
+
flex-wrap: nowrap !important;
|
|
10254
|
+
align-items: stretch !important;
|
|
10255
|
+
gap: var(--ui-space-4) !important;
|
|
10256
|
+
min-block-size: 0;
|
|
10257
|
+
overflow: auto;
|
|
10258
|
+
--_ui-scroll-fade-direction: to bottom;
|
|
10259
|
+
--_ui-scroll-fade-size: var(--ui-scroll-fade-size, 24px);
|
|
10260
|
+
mask-image: linear-gradient(
|
|
10261
|
+
var(--_ui-scroll-fade-direction),
|
|
10262
|
+
transparent,
|
|
10263
|
+
#000 var(--_ui-scroll-fade-start),
|
|
10264
|
+
#000 calc(100% - var(--_ui-scroll-fade-end)),
|
|
10265
|
+
transparent
|
|
10266
|
+
);
|
|
10267
|
+
animation:
|
|
10268
|
+
ui-scroll-fade-start linear,
|
|
10269
|
+
ui-scroll-fade-start-hold linear,
|
|
10270
|
+
ui-scroll-fade-end-hold linear,
|
|
10271
|
+
ui-scroll-fade-end linear;
|
|
10272
|
+
animation-timeline: scroll(self block);
|
|
10273
|
+
animation-range:
|
|
10274
|
+
0 var(--_ui-scroll-fade-size),
|
|
10275
|
+
var(--_ui-scroll-fade-size) calc(100% + 1px),
|
|
10276
|
+
-1px calc(100% - var(--_ui-scroll-fade-size)),
|
|
10277
|
+
calc(100% - var(--_ui-scroll-fade-size)) 100%;
|
|
10278
|
+
overscroll-behavior: contain;
|
|
10279
|
+
padding: var(--ui-space-4) !important;
|
|
10280
|
+
}
|
|
10281
|
+
@media (prefers-reduced-motion: reduce) {
|
|
10282
|
+
:scope[data-ui-site-header-state~="drawer"]
|
|
10283
|
+
.navigation-panel:where([data-hn-ui-site-header]) {
|
|
10284
|
+
transition: none;
|
|
10160
10285
|
}
|
|
10161
10286
|
}
|
|
10162
10287
|
:scope[hidden]:where([data-hn-ui-site-header]) {
|
|
10163
10288
|
display: none !important;
|
|
10164
10289
|
}
|
|
10165
10290
|
}
|
|
10291
|
+
@scope ([data-slotted~="ui-site-header"]:not([data-hn])) to ([data-hn], [data-slotted]) {
|
|
10292
|
+
:where(.ui-site-header):where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header]) {
|
|
10293
|
+
box-sizing: border-box !important;
|
|
10294
|
+
display: flex !important;
|
|
10295
|
+
flex-wrap: wrap !important;
|
|
10296
|
+
align-items: center !important;
|
|
10297
|
+
align-content: center !important;
|
|
10298
|
+
gap: var(--ui-space-2) !important;
|
|
10299
|
+
inline-size: 100%;
|
|
10300
|
+
min-inline-size: 0;
|
|
10301
|
+
min-block-size: var(--ui-site-header-compact-height, 3.75rem);
|
|
10302
|
+
padding: var(--ui-space-2) var(--ui-site-header-padding-inline, var(--ui-space-4)) !important;
|
|
10303
|
+
border-block-end: var(--ui-border-width) solid var(--ui-site-header-border, var(--ui-border));
|
|
10304
|
+
background: var(--ui-site-header-surface, var(--ui-surface));
|
|
10305
|
+
color: var(--ui-text-primary);
|
|
10306
|
+
}
|
|
10307
|
+
:where(.ui-site-header)[data-ui-site-header-state~="sticky"]:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header]) {
|
|
10308
|
+
position: sticky;
|
|
10309
|
+
inset-block-start: 0;
|
|
10310
|
+
z-index: var(--ui-site-header-z-index, 10);
|
|
10311
|
+
}
|
|
10312
|
+
.actions:where(:scope, :scope *):where([data-hn-ui-site-header]) {
|
|
10313
|
+
display: grid !important;
|
|
10314
|
+
flex: none;
|
|
10315
|
+
align-items: center !important;
|
|
10316
|
+
gap: var(--ui-space-2) !important;
|
|
10317
|
+
min-inline-size: 0;
|
|
10318
|
+
max-inline-size: 100%;
|
|
10319
|
+
grid-auto-flow: column !important;
|
|
10320
|
+
grid-auto-columns: minmax(max-content, var(--ui-control-min-block-size)) !important;
|
|
10321
|
+
justify-items: center !important;
|
|
10322
|
+
margin-inline-start: auto !important;
|
|
10323
|
+
}
|
|
10324
|
+
.identity:where(:scope, :scope *):where([data-hn-ui-site-header]) {
|
|
10325
|
+
display: flex !important;
|
|
10326
|
+
flex: 1 1 0;
|
|
10327
|
+
flex-wrap: wrap !important;
|
|
10328
|
+
align-items: baseline !important;
|
|
10329
|
+
gap: var(--ui-space-2) var(--ui-space-6) !important;
|
|
10330
|
+
min-inline-size: 0;
|
|
10331
|
+
}
|
|
10332
|
+
.brand:where(:scope, :scope *):where([data-hn-ui-site-header]) {
|
|
10333
|
+
min-inline-size: 0;
|
|
10334
|
+
font-size: var(--ui-font-size-lg);
|
|
10335
|
+
font-weight: var(--ui-font-bold);
|
|
10336
|
+
}
|
|
10337
|
+
.navigation:where(:scope, :scope *):where([data-hn-ui-site-header]) {
|
|
10338
|
+
display: flex !important;
|
|
10339
|
+
flex-wrap: wrap !important;
|
|
10340
|
+
align-items: baseline !important;
|
|
10341
|
+
gap: var(--ui-space-2) var(--ui-space-5) !important;
|
|
10342
|
+
min-inline-size: 0;
|
|
10343
|
+
font-size: var(--ui-font-size-sm);
|
|
10344
|
+
font-weight: var(--ui-font-semibold);
|
|
10345
|
+
}
|
|
10346
|
+
.actions:empty:where(:scope, :scope *):where([data-hn-ui-site-header]),.brand:empty:where(:scope, :scope *):where([data-hn-ui-site-header]),.navigation:empty:where(:scope, :scope *):where([data-hn-ui-site-header]) {
|
|
10347
|
+
display: none !important;
|
|
10348
|
+
}
|
|
10349
|
+
@media (min-width: 40rem) {
|
|
10350
|
+
:where(.ui-site-header)[data-ui-site-header-state~="breakpoint=sm"]:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header]) {
|
|
10351
|
+
min-block-size: var(--ui-site-header-height, 4.25rem);
|
|
10352
|
+
column-gap: var(--ui-space-4) !important;
|
|
10353
|
+
}
|
|
10354
|
+
}
|
|
10355
|
+
@media (min-width: 48rem) {
|
|
10356
|
+
:where(.ui-site-header)[data-ui-site-header-state~="breakpoint=md"]:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header]) {
|
|
10357
|
+
min-block-size: var(--ui-site-header-height, 4.25rem);
|
|
10358
|
+
column-gap: var(--ui-space-4) !important;
|
|
10359
|
+
}
|
|
10360
|
+
}
|
|
10361
|
+
@media (min-width: 64rem) {
|
|
10362
|
+
:where(.ui-site-header)[data-ui-site-header-state~="breakpoint=lg"]:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header]) {
|
|
10363
|
+
min-block-size: var(--ui-site-header-height, 4.25rem);
|
|
10364
|
+
column-gap: var(--ui-space-4) !important;
|
|
10365
|
+
}
|
|
10366
|
+
}
|
|
10367
|
+
.navigation-panel:where(:scope, :scope *):where([data-hn-ui-site-header]) {
|
|
10368
|
+
position: static;
|
|
10369
|
+
display: flex !important;
|
|
10370
|
+
align-items: baseline !important;
|
|
10371
|
+
min-inline-size: 0;
|
|
10372
|
+
max-inline-size: none;
|
|
10373
|
+
margin: 0 !important;
|
|
10374
|
+
padding: 0 !important;
|
|
10375
|
+
border: 0;
|
|
10376
|
+
background: transparent;
|
|
10377
|
+
color: inherit;
|
|
10378
|
+
}
|
|
10379
|
+
.navigation-panel:not([open]):where(:scope, :scope *):where([data-hn-ui-site-header]),.menu:where(:scope, :scope *):where([data-hn-ui-site-header]),.panel-heading:where(:scope, :scope *):where([data-hn-ui-site-header]) {
|
|
10380
|
+
display: none !important;
|
|
10381
|
+
}
|
|
10382
|
+
:where(.ui-site-header)[data-ui-site-header-state~="drawer"]
|
|
10383
|
+
.identity:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header]) {
|
|
10384
|
+
flex-wrap: nowrap !important;
|
|
10385
|
+
align-items: center !important;
|
|
10386
|
+
}
|
|
10387
|
+
:where(.ui-site-header)[data-ui-site-header-state~="drawer"]
|
|
10388
|
+
.brand:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header]) {
|
|
10389
|
+
flex: 1 1 0;
|
|
10390
|
+
}
|
|
10391
|
+
:where(.ui-site-header)[data-ui-site-header-state~="enhanced"][data-ui-site-header-state~="drawer"]:has(.navigation:not(:empty), .custom-menu:not(:empty))
|
|
10392
|
+
.menu:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header]) {
|
|
10393
|
+
display: grid !important;
|
|
10394
|
+
grid-template-columns: minmax(max-content, var(--ui-control-min-block-size)) !important;
|
|
10395
|
+
justify-items: center !important;
|
|
10396
|
+
flex: none;
|
|
10397
|
+
}
|
|
10398
|
+
.automatic-menu:where(:scope, :scope *):where([data-hn-ui-site-header]) {
|
|
10399
|
+
display: grid !important;
|
|
10400
|
+
justify-items: center !important;
|
|
10401
|
+
}
|
|
10402
|
+
.custom-menu:empty:where(:scope, :scope *):where([data-hn-ui-site-header]),.menu:has(> .custom-menu:not(:empty)):where(:scope, :scope *)
|
|
10403
|
+
.automatic-menu:where([data-hn-ui-site-header]) {
|
|
10404
|
+
display: none !important;
|
|
10405
|
+
}
|
|
10406
|
+
:where(.ui-site-header)[data-ui-site-header-state~="drawer"]
|
|
10407
|
+
.navigation-panel:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header]) {
|
|
10408
|
+
position: fixed;
|
|
10409
|
+
inset-block: 0;
|
|
10410
|
+
inset-inline-start: 0;
|
|
10411
|
+
inset-inline-end: auto;
|
|
10412
|
+
box-sizing: border-box !important;
|
|
10413
|
+
inline-size: min(var(--ui-site-header-navigation-width, 280px), 85vw);
|
|
10414
|
+
max-inline-size: none;
|
|
10415
|
+
block-size: 100dvh;
|
|
10416
|
+
max-block-size: none;
|
|
10417
|
+
margin: 0 !important;
|
|
10418
|
+
padding: 0 !important;
|
|
10419
|
+
overflow: hidden;
|
|
10420
|
+
border: 0;
|
|
10421
|
+
border-inline-end: var(--ui-border-width) solid
|
|
10422
|
+
var(--ui-overlay-border, var(--ui-border-divider));
|
|
10423
|
+
background: var(--ui-overlay-surface, var(--ui-surface-elevated));
|
|
10424
|
+
color: var(--ui-text-primary);
|
|
10425
|
+
box-shadow: var(--ui-elevation-overlay, var(--ui-shadow-lg));
|
|
10426
|
+
transform: translateX(-100%);
|
|
10427
|
+
transition:
|
|
10428
|
+
transform var(--ui-motion-reveal) var(--ui-motion-reveal-ease),
|
|
10429
|
+
display var(--ui-motion-reveal) allow-discrete,
|
|
10430
|
+
overlay var(--ui-motion-reveal) allow-discrete;
|
|
10431
|
+
}
|
|
10432
|
+
:where(.ui-site-header)[data-ui-site-header-state~="drawer"]
|
|
10433
|
+
.navigation-panel[open]:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header]) {
|
|
10434
|
+
display: flex !important;
|
|
10435
|
+
flex-direction: column !important;
|
|
10436
|
+
align-items: stretch !important;
|
|
10437
|
+
transform: translateX(0);
|
|
10438
|
+
}
|
|
10439
|
+
:where(.ui-site-header)[data-ui-site-header-state~="drawer"]
|
|
10440
|
+
.navigation-panel:dir(rtl):not([open]):where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header]) {
|
|
10441
|
+
transform: translateX(100%);
|
|
10442
|
+
}
|
|
10443
|
+
@starting-style {
|
|
10444
|
+
:where(.ui-site-header)[data-ui-site-header-state~="drawer"]
|
|
10445
|
+
.navigation-panel[open]:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header]) {
|
|
10446
|
+
transform: translateX(-100%);
|
|
10447
|
+
}
|
|
10448
|
+
:where(.ui-site-header)[data-ui-site-header-state~="drawer"]
|
|
10449
|
+
.navigation-panel[open]:dir(rtl):where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header]) {
|
|
10450
|
+
transform: translateX(100%);
|
|
10451
|
+
}
|
|
10452
|
+
}
|
|
10453
|
+
:where(.ui-site-header):where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header]) {
|
|
10454
|
+
--_ui-site-header-backdrop: var(--ui-overlay-backdrop, rgb(0 0 0 / 0.32));
|
|
10455
|
+
}
|
|
10456
|
+
.navigation-panel:where(:not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where(:scope, :scope
|
|
10457
|
+
*):where([data-hn-ui-site-header])::backdrop {
|
|
10458
|
+
background: var(--_ui-site-header-backdrop);
|
|
10459
|
+
}
|
|
10460
|
+
.navigation-panel[data-ui-backdrop-hidden]:where(:not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where(:scope, :scope
|
|
10461
|
+
*):where([data-hn-ui-site-header])::backdrop {
|
|
10462
|
+
background: transparent;
|
|
10463
|
+
}
|
|
10464
|
+
:where(.ui-site-header)[data-ui-site-header-state~="drawer"]
|
|
10465
|
+
.panel-heading:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header]) {
|
|
10466
|
+
display: flex !important;
|
|
10467
|
+
align-items: center !important;
|
|
10468
|
+
justify-content: space-between !important;
|
|
10469
|
+
gap: var(--ui-space-3) !important;
|
|
10470
|
+
padding: var(--ui-space-4) !important;
|
|
10471
|
+
flex: none;
|
|
10472
|
+
border-block-end: var(--ui-border-width) solid var(--ui-border-divider);
|
|
10473
|
+
}
|
|
10474
|
+
.panel-title:where(:scope, :scope *):where([data-hn-ui-site-header]) {
|
|
10475
|
+
font-size: var(--ui-font-size-lg);
|
|
10476
|
+
font-weight: var(--ui-font-semibold);
|
|
10477
|
+
line-height: var(--ui-line-height-tight);
|
|
10478
|
+
}
|
|
10479
|
+
:where(.ui-site-header)[data-ui-site-header-state~="drawer"]
|
|
10480
|
+
.navigation:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header]) {
|
|
10481
|
+
font-weight: var(--ui-font-normal);
|
|
10482
|
+
flex: 1 1 auto;
|
|
10483
|
+
flex-direction: column !important;
|
|
10484
|
+
flex-wrap: nowrap !important;
|
|
10485
|
+
align-items: stretch !important;
|
|
10486
|
+
gap: var(--ui-space-4) !important;
|
|
10487
|
+
min-block-size: 0;
|
|
10488
|
+
overflow: auto;
|
|
10489
|
+
--_ui-scroll-fade-direction: to bottom;
|
|
10490
|
+
--_ui-scroll-fade-size: var(--ui-scroll-fade-size, 24px);
|
|
10491
|
+
mask-image: linear-gradient(
|
|
10492
|
+
var(--_ui-scroll-fade-direction),
|
|
10493
|
+
transparent,
|
|
10494
|
+
#000 var(--_ui-scroll-fade-start),
|
|
10495
|
+
#000 calc(100% - var(--_ui-scroll-fade-end)),
|
|
10496
|
+
transparent
|
|
10497
|
+
);
|
|
10498
|
+
animation:
|
|
10499
|
+
ui-scroll-fade-start linear,
|
|
10500
|
+
ui-scroll-fade-start-hold linear,
|
|
10501
|
+
ui-scroll-fade-end-hold linear,
|
|
10502
|
+
ui-scroll-fade-end linear;
|
|
10503
|
+
animation-timeline: scroll(self block);
|
|
10504
|
+
animation-range:
|
|
10505
|
+
0 var(--_ui-scroll-fade-size),
|
|
10506
|
+
var(--_ui-scroll-fade-size) calc(100% + 1px),
|
|
10507
|
+
-1px calc(100% - var(--_ui-scroll-fade-size)),
|
|
10508
|
+
calc(100% - var(--_ui-scroll-fade-size)) 100%;
|
|
10509
|
+
overscroll-behavior: contain;
|
|
10510
|
+
padding: var(--ui-space-4) !important;
|
|
10511
|
+
}
|
|
10512
|
+
@media (prefers-reduced-motion: reduce) {
|
|
10513
|
+
:where(.ui-site-header)[data-ui-site-header-state~="drawer"]
|
|
10514
|
+
.navigation-panel:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header]) {
|
|
10515
|
+
transition: none;
|
|
10516
|
+
}
|
|
10517
|
+
}
|
|
10518
|
+
:where(.ui-site-header)[hidden]:where(:scope, :not([data-hn], [data-slotted]:not([data-slotted~="ui-site-header"]))):where([data-hn-ui-site-header]) {
|
|
10519
|
+
display: none !important;
|
|
10520
|
+
}
|
|
10521
|
+
}
|
|
10166
10522
|
|
|
10167
10523
|
@property --_ui-skeleton-viewport-x {
|
|
10168
10524
|
syntax: "<length>";
|
|
@@ -13364,16 +13720,18 @@ html[data-ui-input-modality="touch"]
|
|
|
13364
13720
|
}
|
|
13365
13721
|
|
|
13366
13722
|
:scope:where([data-component~="ui-button"])[data-appearance="outline"]:not([data-tone="neutral"]) {
|
|
13723
|
+
--_outline-highlight: var(--ui-surface-highlight, linear-gradient(transparent, transparent));
|
|
13367
13724
|
--_outline-wash: oklch(from var(--_tone) l c h / calc(8% * var(--ui-tonal-opacity, 1)));
|
|
13368
13725
|
border-color: var(--ui-button-border, var(--_tone-outline-border, var(--_tone-text)));
|
|
13369
13726
|
background-color: var(--ui-button-surface, transparent);
|
|
13370
13727
|
box-shadow: var(--ui-button-shadow, var(--ui-neutral-shadow));
|
|
13371
13728
|
background-image:
|
|
13372
13729
|
linear-gradient(var(--_outline-wash), var(--_outline-wash)),
|
|
13373
|
-
var(--
|
|
13730
|
+
var(--_outline-highlight);
|
|
13374
13731
|
}
|
|
13375
13732
|
|
|
13376
13733
|
:scope:where([data-component~="ui-button"])[data-appearance="outline"]:not([data-tone="neutral"]):hover:not(:disabled, [aria-disabled="true"]) {
|
|
13734
|
+
--_outline-highlight: var(--ui-neutral-highlight, var(--ui-surface-highlight, linear-gradient(transparent, transparent)));
|
|
13377
13735
|
--_outline-wash: oklch(from var(--_tone) l c h / calc(12% * var(--ui-tonal-opacity, 1)));
|
|
13378
13736
|
background-color: var(--ui-button-hover-surface, transparent);
|
|
13379
13737
|
border-color: var(--ui-button-hover-border, var(--_tone-outline-border));
|
|
@@ -14430,15 +14788,17 @@ html[data-ui-input-modality="touch"]
|
|
|
14430
14788
|
}
|
|
14431
14789
|
|
|
14432
14790
|
:scope:where([data-component~="ui-icon-button"])[data-appearance="outline"]:not([data-tone="neutral"]) {
|
|
14791
|
+
--_outline-highlight: var(--ui-surface-highlight, linear-gradient(transparent, transparent));
|
|
14433
14792
|
--_outline-wash: oklch(from var(--_icon-button-solid-surface, var(--ui-accent)) l c h / calc(8% * var(--ui-tonal-opacity, 1)));
|
|
14434
14793
|
border-color: var(--ui-icon-button-border, var(--_tone-outline-border));
|
|
14435
14794
|
background-color: var(--ui-icon-button-outline-surface, transparent);
|
|
14436
14795
|
background-image:
|
|
14437
14796
|
linear-gradient(var(--_outline-wash), var(--_outline-wash)),
|
|
14438
|
-
var(--
|
|
14797
|
+
var(--_outline-highlight);
|
|
14439
14798
|
}
|
|
14440
14799
|
|
|
14441
14800
|
:scope:where([data-component~="ui-icon-button"])[data-appearance="outline"]:not([data-tone="neutral"]):hover:enabled:not([aria-disabled="true"]) {
|
|
14801
|
+
--_outline-highlight: var(--ui-neutral-highlight, var(--ui-surface-highlight, linear-gradient(transparent, transparent)));
|
|
14442
14802
|
--_outline-wash: oklch(from var(--_icon-button-solid-surface, var(--ui-accent)) l c h / calc(12% * var(--ui-tonal-opacity, 1)));
|
|
14443
14803
|
background-color: var(--ui-icon-button-hover-surface, transparent);
|
|
14444
14804
|
border-color: var(--ui-icon-button-hover-border, var(--_tone-outline-border));
|
package/vue/editor/index.js
CHANGED
|
@@ -6837,6 +6837,20 @@ function createUiIcon(options = {}, html) {
|
|
|
6837
6837
|
"tag": "path",
|
|
6838
6838
|
"d": "M21 12a9 9 0 1 1-6.219-8.56"
|
|
6839
6839
|
}],
|
|
6840
|
+
"menu": [
|
|
6841
|
+
{
|
|
6842
|
+
"tag": "path",
|
|
6843
|
+
"d": "M4 5h16"
|
|
6844
|
+
},
|
|
6845
|
+
{
|
|
6846
|
+
"tag": "path",
|
|
6847
|
+
"d": "M4 12h16"
|
|
6848
|
+
},
|
|
6849
|
+
{
|
|
6850
|
+
"tag": "path",
|
|
6851
|
+
"d": "M4 19h16"
|
|
6852
|
+
}
|
|
6853
|
+
],
|
|
6840
6854
|
"merge": [
|
|
6841
6855
|
{
|
|
6842
6856
|
"tag": "path",
|