@threadlabs/looma 0.41.2 → 0.43.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/components/ui-action-bar/ui-action-bar.html +1 -7
- package/components/ui-affordance-scope/ui-affordance-scope.html +4 -4
- package/components/ui-avatar/ui-avatar.html +0 -22
- package/components/ui-avatar-group/ui-avatar-group.html +1 -11
- package/components/ui-badge/ui-badge.html +57 -78
- package/components/ui-button/ui-button.html +66 -90
- package/components/ui-button/ui-button.js +2 -2
- package/components/ui-callout/ui-callout.html +31 -69
- package/components/ui-card/ui-card.html +47 -21
- package/components/ui-checkbox/ui-checkbox.html +2 -16
- package/components/ui-cluster/ui-cluster.html +1 -7
- package/components/ui-combobox/ui-combobox.html +7 -70
- package/components/ui-container/ui-container.html +2 -12
- package/components/ui-context-menu/ui-context-menu.html +1 -23
- package/components/ui-dialog/ui-dialog.html +9 -41
- package/components/ui-disclosure/ui-disclosure.html +1 -15
- package/components/ui-editor-mention-menu/ui-editor-mention-menu.html +1 -1
- package/components/ui-editor-mention-menu-item/ui-editor-mention-menu-item.html +1 -1
- package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +1 -1
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +2 -2
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +2 -2
- package/components/ui-floating-action-button/ui-floating-action-button.html +0 -14
- package/components/ui-form-field/ui-form-field.html +2 -32
- package/components/ui-grid/ui-grid.html +1 -11
- package/components/ui-icon/ui-icon.html +1 -12
- package/components/ui-icon-button/ui-icon-button.html +94 -94
- package/components/ui-input/ui-input.html +5 -55
- package/components/ui-input-group/ui-input-group.html +1 -13
- package/components/ui-light-editor/ui-light-editor.html +1 -1
- package/components/ui-list/ui-list.html +0 -10
- package/components/ui-list-item/ui-list-item.html +1 -19
- package/components/ui-listbox/ui-listbox.html +0 -21
- package/components/ui-menu/ui-menu.html +8 -32
- package/components/ui-menu-item/ui-menu-item.html +1 -27
- package/components/ui-meter/ui-meter.html +11 -6
- package/components/ui-nav-item/ui-nav-item.html +0 -18
- package/components/ui-popover/ui-popover.html +9 -41
- package/components/ui-radio/ui-radio.html +58 -12
- package/components/ui-radio-group/ui-radio-group.html +0 -5
- package/components/ui-reel/ui-reel.html +1 -11
- package/components/ui-search-result-row/ui-search-result-row.html +0 -34
- package/components/ui-search-shell/ui-search-shell.html +1 -43
- package/components/ui-section/ui-section.html +1 -1
- package/components/ui-select/ui-select.html +0 -42
- package/components/ui-separator/ui-separator.html +0 -6
- package/components/ui-sidebar/ui-sidebar.html +2 -24
- package/components/ui-site-header/ui-site-header.html +0 -25
- package/components/ui-skeleton/ui-skeleton.html +0 -9
- package/components/ui-stack/ui-stack.html +6 -11
- package/components/ui-status-message/ui-status-message.html +1 -1
- package/components/ui-swatch/ui-swatch.html +0 -5
- package/components/ui-switch/ui-switch.html +6 -17
- package/components/ui-switcher/ui-switcher.html +1 -11
- package/components/ui-tabs/ui-tabs.html +4 -22
- package/components/ui-text/ui-text.html +20 -7
- package/components/ui-textarea/ui-textarea.html +0 -50
- package/components/ui-toast/ui-toast.html +12 -27
- package/components/ui-toast-region/ui-toast-region.html +13 -34
- package/components/ui-tooltip/ui-tooltip.html +9 -53
- package/components/ui-top-bar/ui-top-bar.html +1 -31
- package/components/ui-tree/ui-tree.html +1 -16
- package/components/ui-tree-item/ui-tree-item.html +1 -23
- package/components/ui-tree-item/ui-tree-item.js +0 -1
- package/dist/index.js +1 -1
- package/docs/README.md +15 -9
- package/docs/catalog.json +973 -186
- package/docs/customizer-render.mjs +25 -9
- package/docs/customizer.js +42 -2
- package/docs/fonts.mjs +1 -1
- package/docs/palette.mjs +5 -4
- package/docs/theme.mjs +214 -51
- package/docs/value-editors.mjs +2 -1
- package/package.json +2 -2
- package/styles/ui-action-bar.css +3 -11
- package/styles/ui-affordance-scope.css +4 -4
- package/styles/ui-avatar-group.css +3 -15
- package/styles/ui-avatar.css +2 -26
- package/styles/ui-badge.css +56 -80
- package/styles/ui-button.css +65 -92
- package/styles/ui-callout.css +33 -73
- package/styles/ui-card.css +42 -18
- package/styles/ui-checkbox.css +4 -20
- package/styles/ui-cluster.css +2 -10
- package/styles/ui-combobox.css +7 -140
- package/styles/ui-container.css +2 -14
- package/styles/ui-context-menu.css +3 -27
- package/styles/ui-dialog.css +22 -88
- package/styles/ui-disclosure.css +3 -19
- package/styles/ui-editor-mention-menu-item.css +1 -1
- package/styles/ui-editor-mention-menu.css +1 -1
- package/styles/ui-editor-table-context-menu.css +1 -1
- package/styles/ui-editor-table-overlay.css +2 -2
- package/styles/ui-editor-table-toolbar.css +2 -2
- package/styles/ui-floating-action-button.css +2 -18
- package/styles/ui-form-field.css +4 -36
- package/styles/ui-grid.css +2 -14
- package/styles/ui-icon-button.css +93 -96
- package/styles/ui-icon.css +3 -16
- package/styles/ui-input-group.css +2 -14
- package/styles/ui-input.css +6 -57
- package/styles/ui-light-editor.css +2 -2
- package/styles/ui-list-item.css +3 -23
- package/styles/ui-list.css +2 -14
- package/styles/ui-listbox.css +2 -44
- package/styles/ui-menu-item.css +3 -31
- package/styles/ui-menu.css +11 -37
- package/styles/ui-meter.css +8 -4
- package/styles/ui-nav-item.css +2 -22
- package/styles/ui-popover.css +12 -46
- package/styles/ui-radio-group.css +1 -6
- package/styles/ui-radio.css +68 -15
- package/styles/ui-reel.css +2 -14
- package/styles/ui-search-result-row.css +2 -38
- package/styles/ui-search-shell.css +3 -47
- package/styles/ui-section.css +1 -1
- package/styles/ui-select.css +2 -46
- package/styles/ui-separator.css +2 -10
- package/styles/ui-sidebar.css +4 -28
- package/styles/ui-site-header.css +1 -26
- package/styles/ui-skeleton.css +2 -12
- package/styles/ui-stack.css +4 -12
- package/styles/ui-status-message.css +1 -1
- package/styles/ui-swatch.css +1 -6
- package/styles/ui-switch.css +8 -21
- package/styles/ui-switcher.css +2 -14
- package/styles/ui-tabs.css +6 -26
- package/styles/ui-text.css +11 -3
- package/styles/ui-textarea.css +2 -54
- package/styles/ui-toast-region.css +29 -73
- package/styles/ui-toast.css +24 -54
- package/styles/ui-tooltip.css +12 -58
- package/styles/ui-top-bar.css +3 -35
- package/styles/ui-tree-item.css +5 -51
- package/styles/ui-tree.css +3 -20
- package/theme-system.css +16 -10
- package/tokens.css +75 -18
- package/vanilla/UiBadge.d.ts +1 -1
- package/vanilla/UiBadge.js +1 -1
- package/vanilla/UiButton.d.ts +1 -1
- package/vanilla/UiButton.js +1 -1
- package/vanilla/UiCard.d.ts +1 -1
- package/vanilla/UiCard.js +1 -1
- package/vanilla/UiIconButton.d.ts +1 -1
- package/vanilla/UiIconButton.js +1 -1
- package/vanilla/UiMeter.d.ts +1 -1
- package/vanilla/UiMeter.js +1 -1
- package/vanilla/UiStack.js +1 -1
- package/vanilla/UiText.d.ts +1 -1
- package/vanilla/UiText.js +1 -1
- package/vue/UiActionBar.vue +3 -9
- package/vue/UiAffordanceScope.vue +4 -4
- package/vue/UiAvatar.vue +1 -28
- package/vue/UiAvatarGroup.vue +1 -11
- package/vue/UiBadge.d.ts +2 -2
- package/vue/UiBadge.vue +84 -81
- package/vue/UiButton.d.ts +2 -2
- package/vue/UiButton.vue +120 -106
- package/vue/UiCallout.vue +31 -72
- package/vue/UiCard.d.ts +2 -2
- package/vue/UiCard.vue +77 -32
- package/vue/UiCheckbox.vue +2 -16
- package/vue/UiCluster.vue +1 -10
- package/vue/UiCombobox.vue +13 -72
- package/vue/UiContainer.vue +1 -13
- package/vue/UiContextMenu.vue +1 -30
- package/vue/UiDialog.vue +23 -77
- package/vue/UiDisclosure.vue +1 -15
- package/vue/UiEditorMentionMenu.vue +1 -1
- package/vue/UiEditorMentionMenuItem.vue +1 -1
- package/vue/UiEditorTableContextMenu.vue +1 -1
- package/vue/UiEditorTableOverlay.vue +2 -2
- package/vue/UiEditorTableToolbar.vue +2 -2
- package/vue/UiFloatingActionButton.vue +0 -22
- package/vue/UiFormField.vue +6 -33
- package/vue/UiGrid.vue +1 -13
- package/vue/UiIcon.vue +1 -16
- package/vue/UiIconButton.d.ts +2 -2
- package/vue/UiIconButton.vue +145 -106
- package/vue/UiInput.vue +1 -54
- package/vue/UiInputGroup.vue +8 -20
- package/vue/UiLightEditor.vue +2 -2
- package/vue/UiList.vue +2 -12
- package/vue/UiListItem.vue +8 -26
- package/vue/UiListbox.vue +0 -23
- package/vue/UiMenu.vue +12 -44
- package/vue/UiMenuItem.vue +1 -27
- package/vue/UiMeter.d.ts +2 -2
- package/vue/UiMeter.vue +47 -12
- package/vue/UiNavItem.vue +3 -21
- package/vue/UiPopover.vue +12 -53
- package/vue/UiRadio.vue +58 -12
- package/vue/UiRadioGroup.vue +0 -11
- package/vue/UiReel.vue +1 -11
- package/vue/UiSearchResultRow.vue +0 -35
- package/vue/UiSearchShell.vue +1 -53
- package/vue/UiSection.vue +1 -1
- package/vue/UiSelect.vue +0 -42
- package/vue/UiSeparator.vue +0 -7
- package/vue/UiSidebar.vue +3 -26
- package/vue/UiSiteHeader.vue +0 -24
- package/vue/UiSkeleton.vue +0 -9
- package/vue/UiStack.vue +6 -11
- package/vue/UiStatusMessage.vue +1 -1
- package/vue/UiSwatch.vue +1 -6
- package/vue/UiSwitch.vue +6 -17
- package/vue/UiSwitcher.vue +1 -14
- package/vue/UiTabs.vue +4 -22
- package/vue/UiText.d.ts +2 -2
- package/vue/UiText.vue +30 -5
- package/vue/UiTextarea.vue +0 -50
- package/vue/UiToast.vue +26 -34
- package/vue/UiToastRegion.vue +26 -55
- package/vue/UiTooltip.vue +12 -64
- package/vue/UiTopBar.vue +1 -34
- package/vue/UiTree.vue +2 -17
- package/vue/UiTreeItem.vue +2 -28
- package/vue/chunks/UiActionBar.js +1 -1
- package/vue/chunks/UiAffordanceScope.js +1 -1
- package/vue/chunks/UiAvatar.js +1 -1
- package/vue/chunks/UiAvatarGroup.js +1 -1
- package/vue/chunks/UiBadge.js +4 -2
- package/vue/chunks/UiButton.js +4 -2
- package/vue/chunks/UiCallout.js +1 -1
- package/vue/chunks/UiCard.js +5 -3
- package/vue/chunks/UiCheckbox.js +1 -1
- package/vue/chunks/UiCluster.js +2 -2
- package/vue/chunks/UiCombobox.js +3 -3
- package/vue/chunks/UiContainer.js +2 -2
- package/vue/chunks/UiContextMenu.js +1 -1
- package/vue/chunks/UiDialog.js +1 -1
- package/vue/chunks/UiDisclosure.js +1 -1
- package/vue/chunks/UiEditorMentionMenu.js +1 -1
- package/vue/chunks/UiEditorMentionMenuItem.js +1 -1
- package/vue/chunks/UiEditorTableContextMenu.js +1 -1
- package/vue/chunks/UiEditorTableOverlay.js +1 -1
- package/vue/chunks/UiEditorTableToolbar.js +1 -1
- package/vue/chunks/UiFloatingActionButton.js +1 -1
- package/vue/chunks/UiFormField.js +1 -1
- package/vue/chunks/UiGrid.js +2 -2
- package/vue/chunks/UiIcon.js +1 -1
- package/vue/chunks/UiIconButton.js +4 -2
- package/vue/chunks/UiInput.js +1 -1
- package/vue/chunks/UiInputGroup.js +1 -1
- package/vue/chunks/UiLightEditor.js +1 -1
- package/vue/chunks/UiList.js +1 -1
- package/vue/chunks/UiListItem.js +1 -1
- package/vue/chunks/UiListbox.js +1 -1
- package/vue/chunks/UiMenu.js +1 -1
- package/vue/chunks/UiMenuItem.js +1 -1
- package/vue/chunks/UiMeter.js +4 -2
- package/vue/chunks/UiNavItem.js +1 -1
- package/vue/chunks/UiPopover.js +1 -1
- package/vue/chunks/UiRadio.js +1 -1
- package/vue/chunks/UiRadioGroup.js +1 -1
- package/vue/chunks/UiReel.js +2 -2
- package/vue/chunks/UiSearchResultRow.js +1 -1
- package/vue/chunks/UiSearchShell.js +1 -1
- package/vue/chunks/UiSection.js +1 -1
- package/vue/chunks/UiSelect.js +1 -1
- package/vue/chunks/UiSeparator.js +1 -1
- package/vue/chunks/UiSidebar.js +1 -1
- package/vue/chunks/UiSiteHeader.js +1 -1
- package/vue/chunks/UiSkeleton.js +1 -1
- package/vue/chunks/UiStack.js +3 -3
- package/vue/chunks/UiStatusMessage.js +1 -1
- package/vue/chunks/UiSwatch.js +1 -1
- package/vue/chunks/UiSwitch.js +1 -1
- package/vue/chunks/UiSwitcher.js +2 -2
- package/vue/chunks/UiTabs.js +1 -1
- package/vue/chunks/UiText.js +4 -2
- package/vue/chunks/UiTextarea.js +1 -1
- package/vue/chunks/UiToast.js +1 -1
- package/vue/chunks/UiToastRegion.js +1 -1
- package/vue/chunks/UiTooltip.js +1 -1
- package/vue/chunks/UiTopBar.js +1 -1
- package/vue/chunks/UiTree.js +1 -1
- package/vue/chunks/UiTreeItem.js +1 -1
- package/vue/components.css +857 -2184
- package/vue/editor/index.js +8 -2
package/vue/UiMenu.vue
CHANGED
|
@@ -325,35 +325,13 @@ useComponentHost(() => import('../components/ui-menu/ui-menu.js'), {
|
|
|
325
325
|
</template>
|
|
326
326
|
|
|
327
327
|
<style scoped>
|
|
328
|
-
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
329
|
-
@property --ui-menu-surface {
|
|
330
|
-
syntax: "*";
|
|
331
|
-
inherits: false;
|
|
332
|
-
}
|
|
333
|
-
@property --ui-menu-border {
|
|
334
|
-
syntax: "*";
|
|
335
|
-
inherits: false;
|
|
336
|
-
}
|
|
337
|
-
@property --ui-menu-radius {
|
|
338
|
-
syntax: "*";
|
|
339
|
-
inherits: false;
|
|
340
|
-
}
|
|
341
|
-
@property --ui-menu-shadow {
|
|
342
|
-
syntax: "*";
|
|
343
|
-
inherits: false;
|
|
344
|
-
}
|
|
345
|
-
@property --ui-menu-viewport-gap {
|
|
346
|
-
syntax: "*";
|
|
347
|
-
inherits: false;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
328
|
/* Compact sets its items' defaults, so nothing has to rescale a global; an item's own hooks
|
|
351
|
-
|
|
329
|
+
still win. */
|
|
352
330
|
|
|
353
331
|
/* Small follows its trigger down: an item's own hooks still win. */
|
|
354
332
|
|
|
355
333
|
/* Purpose and measured size shape one shared separation lever. The content plane stays opaque;
|
|
356
|
-
transparency,
|
|
334
|
+
transparency, frosting and edge light belong to the surrounding decorative material. */
|
|
357
335
|
|
|
358
336
|
@scope (.ui-menu) to ([data-hn]) {
|
|
359
337
|
:global(:scope[data-ui-menu-state~="density=compact"]:where([data-hn-ui-menu])) {
|
|
@@ -427,21 +405,11 @@ useComponentHost(() => import('../components/ui-menu/ui-menu.js'), {
|
|
|
427
405
|
overflow: auto;
|
|
428
406
|
}
|
|
429
407
|
:global(:scope:not([inline]) .surface:where([data-hn-ui-menu])) {
|
|
430
|
-
--_ui-material-glassiness:
|
|
431
|
-
clamp(0, var(--ui-glassiness, 0), 1) + 2 * pow(clamp(0, var(--ui-glassiness, 0), 1), 4)
|
|
432
|
-
);
|
|
408
|
+
--_ui-material-glassiness: clamp(0, var(--ui-glassiness, 0), 1);
|
|
433
409
|
--_ui-material-separation: clamp(0, var(--ui-surface-separation, 0), 1);
|
|
434
|
-
--_ui-material-active: clamp(
|
|
435
|
-
0,
|
|
436
|
-
calc((var(--_ui-material-glassiness) + var(--_ui-material-separation)) * 100000),
|
|
437
|
-
1
|
|
438
|
-
);
|
|
410
|
+
--_ui-material-active: clamp(0, calc(var(--_ui-material-separation) * 100000), 1);
|
|
439
411
|
--_ui-material-rim: calc(
|
|
440
|
-
(
|
|
441
|
-
var(--_ui-material-separation) + var(--_ui-material-glassiness) * 0.25
|
|
442
|
-
) *
|
|
443
|
-
var(--_ui-material-scale, 0.28) *
|
|
444
|
-
8px
|
|
412
|
+
var(--_ui-material-separation) * var(--_ui-material-scale, 0.28) * 8px
|
|
445
413
|
);
|
|
446
414
|
--_ui-material-content-color: var(
|
|
447
415
|
--_ui-menu-surface,
|
|
@@ -484,12 +452,12 @@ useComponentHost(() => import('../components/ui-menu/ui-menu.js'), {
|
|
|
484
452
|
var(--ui-elevation-overlay, var(--ui-shadow-lg))
|
|
485
453
|
)
|
|
486
454
|
);
|
|
487
|
-
backdrop-filter: blur(
|
|
488
|
-
calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 0.28) * 18px)
|
|
489
|
-
) saturate(calc(1 + var(--_ui-material-glassiness) * var(--_ui-material-scale, 0.28) * 0.18));
|
|
490
455
|
-webkit-backdrop-filter: blur(
|
|
491
|
-
calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 0.28) *
|
|
492
|
-
)
|
|
456
|
+
calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 0.28) * 32px)
|
|
457
|
+
);
|
|
458
|
+
backdrop-filter: blur(
|
|
459
|
+
calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 0.28) * 32px)
|
|
460
|
+
);
|
|
493
461
|
}
|
|
494
462
|
|
|
495
463
|
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
|
|
@@ -501,8 +469,8 @@ useComponentHost(() => import('../components/ui-menu/ui-menu.js'), {
|
|
|
501
469
|
@media (prefers-reduced-transparency: reduce) {
|
|
502
470
|
:global(:scope:not([inline]) .surface:where([data-hn-ui-menu])) {
|
|
503
471
|
background: var(--_ui-material-content-color);
|
|
504
|
-
backdrop-filter: none;
|
|
505
472
|
-webkit-backdrop-filter: none;
|
|
473
|
+
backdrop-filter: none;
|
|
506
474
|
}
|
|
507
475
|
}
|
|
508
476
|
|
|
@@ -511,8 +479,8 @@ useComponentHost(() => import('../components/ui-menu/ui-menu.js'), {
|
|
|
511
479
|
background: Canvas;
|
|
512
480
|
border-color: CanvasText;
|
|
513
481
|
box-shadow: none;
|
|
514
|
-
backdrop-filter: none;
|
|
515
482
|
-webkit-backdrop-filter: none;
|
|
483
|
+
backdrop-filter: none;
|
|
516
484
|
}
|
|
517
485
|
}
|
|
518
486
|
|
package/vue/UiMenuItem.vue
CHANGED
|
@@ -364,32 +364,6 @@ useComponentHost(() => import('../components/ui-menu-item/ui-menu-item.js'), {
|
|
|
364
364
|
</template>
|
|
365
365
|
|
|
366
366
|
<style scoped>
|
|
367
|
-
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
368
|
-
@property --ui-menu-item-font-size {
|
|
369
|
-
syntax: "*";
|
|
370
|
-
inherits: false;
|
|
371
|
-
}
|
|
372
|
-
@property --ui-menu-item-hover-surface {
|
|
373
|
-
syntax: "*";
|
|
374
|
-
inherits: false;
|
|
375
|
-
}
|
|
376
|
-
@property --ui-menu-item-min-block-size {
|
|
377
|
-
syntax: "*";
|
|
378
|
-
inherits: false;
|
|
379
|
-
}
|
|
380
|
-
@property --ui-menu-item-padding-block {
|
|
381
|
-
syntax: "*";
|
|
382
|
-
inherits: false;
|
|
383
|
-
}
|
|
384
|
-
@property --ui-menu-item-padding-inline {
|
|
385
|
-
syntax: "*";
|
|
386
|
-
inherits: false;
|
|
387
|
-
}
|
|
388
|
-
@property --ui-menu-item-radius {
|
|
389
|
-
syntax: "*";
|
|
390
|
-
inherits: false;
|
|
391
|
-
}
|
|
392
|
-
|
|
393
367
|
/* A named icon has a fixed column; an icon-enabled menu reserves it on every row. */
|
|
394
368
|
|
|
395
369
|
/* A menu marks its chosen item with a check, as menus conventionally do; a radio circle reads
|
|
@@ -453,7 +427,7 @@ useComponentHost(() => import('../components/ui-menu-item/ui-menu-item.js'), {
|
|
|
453
427
|
}
|
|
454
428
|
|
|
455
429
|
:global(:scope[data-ui-menu-item-state~="tone=danger"]:where([data-hn-ui-menu-item])) {
|
|
456
|
-
color: var(--ui-danger);
|
|
430
|
+
color: var(--ui-danger-subtle-text);
|
|
457
431
|
}
|
|
458
432
|
|
|
459
433
|
:global(.label:where([data-hn-ui-menu-item])) {
|
package/vue/UiMeter.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
20
20
|
type: PropType<"sm" | "md" | null>;
|
|
21
21
|
};
|
|
22
22
|
tone: {
|
|
23
|
-
type: PropType<"neutral" | "accent" | "info" | "success" | "warning" | "danger" | null>;
|
|
23
|
+
type: PropType<"neutral" | "accent" | "accent-secondary" | "accent-tertiary" | "info" | "success" | "warning" | "danger" | null>;
|
|
24
24
|
};
|
|
25
25
|
value: {
|
|
26
26
|
type: PropType<number | null>;
|
|
@@ -54,7 +54,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
54
54
|
type: PropType<"sm" | "md" | null>;
|
|
55
55
|
};
|
|
56
56
|
tone: {
|
|
57
|
-
type: PropType<"neutral" | "accent" | "info" | "success" | "warning" | "danger" | null>;
|
|
57
|
+
type: PropType<"neutral" | "accent" | "accent-secondary" | "accent-tertiary" | "info" | "success" | "warning" | "danger" | null>;
|
|
58
58
|
};
|
|
59
59
|
value: {
|
|
60
60
|
type: PropType<number | null>;
|
package/vue/UiMeter.vue
CHANGED
|
@@ -91,8 +91,17 @@ const propValidityContract = {
|
|
|
91
91
|
required: false,
|
|
92
92
|
target: { attribute: 'tone' },
|
|
93
93
|
description:
|
|
94
|
-
'Which colour the filled part speaks in, as on Badge: neutral is a quiet grey, accent draws the eye, and info, success, warning, and danger mark a state\n (such as nothing yet, partial, complete, or needs attention). Colour alone says nothing to assistive technology or in forced colours, so say the state in\n valueText or in text beside the meter too.',
|
|
95
|
-
values: [
|
|
94
|
+
'Which colour the filled part speaks in, as on Badge: neutral is a quiet grey, accent draws the eye, and info, success, warning, and danger mark a state\n (such as nothing yet, partial, complete, or needs attention). Colour alone says nothing to assistive technology or in forced colours, so say the state in\n valueText or in text beside the meter too. Supporting brand families use accent-secondary and accent-tertiary; their usable colors derive from the theme,\n and unset families follow the primary accent.',
|
|
95
|
+
values: [
|
|
96
|
+
'neutral',
|
|
97
|
+
'accent',
|
|
98
|
+
'accent-secondary',
|
|
99
|
+
'accent-tertiary',
|
|
100
|
+
'info',
|
|
101
|
+
'success',
|
|
102
|
+
'warning',
|
|
103
|
+
'danger',
|
|
104
|
+
],
|
|
96
105
|
default: 'neutral',
|
|
97
106
|
},
|
|
98
107
|
value: {
|
|
@@ -134,7 +143,15 @@ const props = defineProps({
|
|
|
134
143
|
size: { type: null as unknown as PropType<'sm' | 'md' | null> },
|
|
135
144
|
tone: {
|
|
136
145
|
type: null as unknown as PropType<
|
|
137
|
-
|
|
146
|
+
| 'neutral'
|
|
147
|
+
| 'accent'
|
|
148
|
+
| 'accent-secondary'
|
|
149
|
+
| 'accent-tertiary'
|
|
150
|
+
| 'info'
|
|
151
|
+
| 'success'
|
|
152
|
+
| 'warning'
|
|
153
|
+
| 'danger'
|
|
154
|
+
| null
|
|
138
155
|
>,
|
|
139
156
|
},
|
|
140
157
|
value: { type: null as unknown as PropType<number | null> },
|
|
@@ -227,11 +244,25 @@ const checkedProps = computed(() => {
|
|
|
227
244
|
size: propInputs.value<'sm' | 'md' | null>('size', props['size'], props[BINDING_INPUTS_PROP]) as
|
|
228
245
|
| 'sm'
|
|
229
246
|
| 'md',
|
|
230
|
-
tone: propInputs.value<
|
|
231
|
-
'
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
247
|
+
tone: propInputs.value<
|
|
248
|
+
| 'neutral'
|
|
249
|
+
| 'accent'
|
|
250
|
+
| 'accent-secondary'
|
|
251
|
+
| 'accent-tertiary'
|
|
252
|
+
| 'info'
|
|
253
|
+
| 'success'
|
|
254
|
+
| 'warning'
|
|
255
|
+
| 'danger'
|
|
256
|
+
| null
|
|
257
|
+
>('tone', props['tone'], props[BINDING_INPUTS_PROP]) as
|
|
258
|
+
| 'neutral'
|
|
259
|
+
| 'accent'
|
|
260
|
+
| 'accent-secondary'
|
|
261
|
+
| 'accent-tertiary'
|
|
262
|
+
| 'info'
|
|
263
|
+
| 'success'
|
|
264
|
+
| 'warning'
|
|
265
|
+
| 'danger',
|
|
235
266
|
value: propInputs.value<number | null>(
|
|
236
267
|
'value',
|
|
237
268
|
props['value'],
|
|
@@ -895,10 +926,6 @@ const hostState = computed(() =>
|
|
|
895
926
|
/* How far along something is: a track, filled from the start in the tone's colour. The track is a
|
|
896
927
|
quiet border colour, so an empty meter still shows; every tone's fill keeps 3:1 against the
|
|
897
928
|
track and the page. */
|
|
898
|
-
@property --ui-meter-inline-size {
|
|
899
|
-
syntax: "*";
|
|
900
|
-
inherits: false;
|
|
901
|
-
}
|
|
902
929
|
|
|
903
930
|
/* Segments: the track and its fill show through a mask of equal segments with a gap between them.
|
|
904
931
|
A mask over the whole meter, rather than one element per segment, because the expression
|
|
@@ -947,6 +974,14 @@ const hostState = computed(() =>
|
|
|
947
974
|
box-shadow: inset 0 1px rgb(255 255 255 / 0.26), inset 0 -1px rgb(0 0 0 / 0.1);
|
|
948
975
|
}
|
|
949
976
|
|
|
977
|
+
:global(:scope[data-ui-meter-state~="tone=accent-secondary"]) {
|
|
978
|
+
--_meter-fill: var(--ui-accent-secondary-solid);
|
|
979
|
+
}
|
|
980
|
+
|
|
981
|
+
:global(:scope[data-ui-meter-state~="tone=accent-tertiary"]) {
|
|
982
|
+
--_meter-fill: var(--ui-accent-tertiary-solid);
|
|
983
|
+
}
|
|
984
|
+
|
|
950
985
|
:global(:scope[data-ui-meter-state~="tone=accent"]) {
|
|
951
986
|
--_meter-fill: var(--ui-accent-solid);
|
|
952
987
|
}
|
package/vue/UiNavItem.vue
CHANGED
|
@@ -330,28 +330,10 @@ const hostState = computed(() =>
|
|
|
330
330
|
</template>
|
|
331
331
|
|
|
332
332
|
<style scoped>
|
|
333
|
-
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
334
|
-
@property --ui-nav-item-current-surface {
|
|
335
|
-
syntax: "*";
|
|
336
|
-
inherits: false;
|
|
337
|
-
}
|
|
338
|
-
@property --ui-nav-item-indicator-color {
|
|
339
|
-
syntax: "*";
|
|
340
|
-
inherits: false;
|
|
341
|
-
}
|
|
342
|
-
@property --ui-nav-item-indicator-width {
|
|
343
|
-
syntax: "*";
|
|
344
|
-
inherits: false;
|
|
345
|
-
}
|
|
346
|
-
@property --ui-nav-item-inline-size {
|
|
347
|
-
syntax: "*";
|
|
348
|
-
inherits: false;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
333
|
/* One destination in a side or rail navigation: an icon to find it by (leading), its name (the
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
334
|
+
default slot), and an optional line under it (description), such as the record a section
|
|
335
|
+
belongs to. Label and description are one line each and end in an ellipsis, so every item in a
|
|
336
|
+
navigation has the same height and the rail never grows sideways. */
|
|
355
337
|
|
|
356
338
|
/* The ring is an outline, drawn inside the item: forced colors keep an outline where they drop a
|
|
357
339
|
box shadow, and a scrolling rail cannot clip a ring that stays within the item. */
|
package/vue/UiPopover.vue
CHANGED
|
@@ -304,38 +304,8 @@ useComponentHost(() => import('../components/ui-popover/ui-popover.js'), {
|
|
|
304
304
|
</template>
|
|
305
305
|
|
|
306
306
|
<style scoped>
|
|
307
|
-
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
308
|
-
@property --ui-popover-surface {
|
|
309
|
-
syntax: "*";
|
|
310
|
-
inherits: false;
|
|
311
|
-
}
|
|
312
|
-
@property --ui-popover-border {
|
|
313
|
-
syntax: "*";
|
|
314
|
-
inherits: false;
|
|
315
|
-
}
|
|
316
|
-
@property --ui-popover-radius {
|
|
317
|
-
syntax: "*";
|
|
318
|
-
inherits: false;
|
|
319
|
-
}
|
|
320
|
-
@property --ui-popover-shadow {
|
|
321
|
-
syntax: "*";
|
|
322
|
-
inherits: false;
|
|
323
|
-
}
|
|
324
|
-
@property --ui-popover-viewport-gap {
|
|
325
|
-
syntax: "*";
|
|
326
|
-
inherits: false;
|
|
327
|
-
}
|
|
328
|
-
@property --ui-popover-offset {
|
|
329
|
-
syntax: "*";
|
|
330
|
-
inherits: false;
|
|
331
|
-
}
|
|
332
|
-
@property --ui-popover-padding {
|
|
333
|
-
syntax: "*";
|
|
334
|
-
inherits: false;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
307
|
/* Purpose and measured size shape one shared separation lever. The content plane stays opaque;
|
|
338
|
-
|
|
308
|
+
transparency, frosting and edge light belong to the surrounding decorative material. */
|
|
339
309
|
|
|
340
310
|
/* A toolbar or card can supply its own surface, including an unclipped shadow. */
|
|
341
311
|
|
|
@@ -361,7 +331,6 @@ useComponentHost(() => import('../components/ui-popover/ui-popover.js'), {
|
|
|
361
331
|
background: transparent;
|
|
362
332
|
box-shadow: none;
|
|
363
333
|
}
|
|
364
|
-
|
|
365
334
|
:global(.surface:where([data-hn-ui-popover])) {
|
|
366
335
|
box-sizing: border-box !important;
|
|
367
336
|
max-inline-size: inherit;
|
|
@@ -378,21 +347,11 @@ useComponentHost(() => import('../components/ui-popover/ui-popover.js'), {
|
|
|
378
347
|
);
|
|
379
348
|
}
|
|
380
349
|
:global(.surface:where([data-hn-ui-popover])) {
|
|
381
|
-
--_ui-material-glassiness:
|
|
382
|
-
clamp(0, var(--ui-glassiness, 0), 1) + 2 * pow(clamp(0, var(--ui-glassiness, 0), 1), 4)
|
|
383
|
-
);
|
|
350
|
+
--_ui-material-glassiness: clamp(0, var(--ui-glassiness, 0), 1);
|
|
384
351
|
--_ui-material-separation: clamp(0, var(--ui-surface-separation, 0), 1);
|
|
385
|
-
--_ui-material-active: clamp(
|
|
386
|
-
0,
|
|
387
|
-
calc((var(--_ui-material-glassiness) + var(--_ui-material-separation)) * 100000),
|
|
388
|
-
1
|
|
389
|
-
);
|
|
352
|
+
--_ui-material-active: clamp(0, calc(var(--_ui-material-separation) * 100000), 1);
|
|
390
353
|
--_ui-material-rim: calc(
|
|
391
|
-
(
|
|
392
|
-
var(--_ui-material-separation) + var(--_ui-material-glassiness) * 0.25
|
|
393
|
-
) *
|
|
394
|
-
var(--_ui-material-scale, 0.55) *
|
|
395
|
-
8px
|
|
354
|
+
var(--_ui-material-separation) * var(--_ui-material-scale, 0.55) * 8px
|
|
396
355
|
);
|
|
397
356
|
--_ui-material-content-color: var(
|
|
398
357
|
--_ui-popover-surface,
|
|
@@ -435,12 +394,12 @@ useComponentHost(() => import('../components/ui-popover/ui-popover.js'), {
|
|
|
435
394
|
var(--ui-elevation-overlay, var(--ui-shadow-lg))
|
|
436
395
|
)
|
|
437
396
|
);
|
|
438
|
-
backdrop-filter: blur(
|
|
439
|
-
calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 0.55) * 18px)
|
|
440
|
-
) saturate(calc(1 + var(--_ui-material-glassiness) * var(--_ui-material-scale, 0.55) * 0.18));
|
|
441
397
|
-webkit-backdrop-filter: blur(
|
|
442
|
-
calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 0.55) *
|
|
443
|
-
)
|
|
398
|
+
calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 0.55) * 32px)
|
|
399
|
+
);
|
|
400
|
+
backdrop-filter: blur(
|
|
401
|
+
calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 0.55) * 32px)
|
|
402
|
+
);
|
|
444
403
|
}
|
|
445
404
|
|
|
446
405
|
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
|
|
@@ -452,8 +411,8 @@ useComponentHost(() => import('../components/ui-popover/ui-popover.js'), {
|
|
|
452
411
|
@media (prefers-reduced-transparency: reduce) {
|
|
453
412
|
:global(.surface:where([data-hn-ui-popover])) {
|
|
454
413
|
background: var(--_ui-material-content-color);
|
|
455
|
-
backdrop-filter: none;
|
|
456
414
|
-webkit-backdrop-filter: none;
|
|
415
|
+
backdrop-filter: none;
|
|
457
416
|
}
|
|
458
417
|
}
|
|
459
418
|
|
|
@@ -462,8 +421,8 @@ useComponentHost(() => import('../components/ui-popover/ui-popover.js'), {
|
|
|
462
421
|
background: Canvas;
|
|
463
422
|
border-color: CanvasText;
|
|
464
423
|
box-shadow: none;
|
|
465
|
-
backdrop-filter: none;
|
|
466
424
|
-webkit-backdrop-filter: none;
|
|
425
|
+
backdrop-filter: none;
|
|
467
426
|
}
|
|
468
427
|
}
|
|
469
428
|
:global(:scope[data-ui-popover-state~="bare"] .surface:where([data-hn-ui-popover])) {
|
|
@@ -472,8 +431,8 @@ useComponentHost(() => import('../components/ui-popover/ui-popover.js'), {
|
|
|
472
431
|
border: 0;
|
|
473
432
|
background: transparent;
|
|
474
433
|
box-shadow: none;
|
|
475
|
-
backdrop-filter: none;
|
|
476
434
|
-webkit-backdrop-filter: none;
|
|
435
|
+
backdrop-filter: none;
|
|
477
436
|
}
|
|
478
437
|
|
|
479
438
|
:global(:scope:not([data-ui-popover-state~="internalOpen"]):where([data-hn-ui-popover])) {
|
package/vue/UiRadio.vue
CHANGED
|
@@ -291,18 +291,11 @@ useComponentHost(() => import('../components/ui-radio/ui-radio.js'), {
|
|
|
291
291
|
</template>
|
|
292
292
|
|
|
293
293
|
<style scoped>
|
|
294
|
-
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
295
|
-
@property --ui-radio-gap {
|
|
296
|
-
syntax: "*";
|
|
297
|
-
inherits: false;
|
|
298
|
-
}
|
|
299
|
-
@property --ui-radio-size {
|
|
300
|
-
syntax: "*";
|
|
301
|
-
inherits: false;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
294
|
/* The label, and under it an optional line saying what the choice means. */
|
|
305
295
|
|
|
296
|
+
/* The native radio retains grouping, validation and keyboard behavior.
|
|
297
|
+
Its empty well recedes; the filled selection and its dot stay crisp. */
|
|
298
|
+
|
|
306
299
|
/* A sized choice keeps its box and aligns instead: the label takes that size's field type size,
|
|
307
300
|
and the first line centres in that control height, so the label shares a row's baseline.
|
|
308
301
|
Multi-line labels and descriptions still grow downward from that first line. */
|
|
@@ -311,7 +304,7 @@ useComponentHost(() => import('../components/ui-radio/ui-radio.js'), {
|
|
|
311
304
|
|
|
312
305
|
@scope (.ui-radio) to ([data-hn]) {
|
|
313
306
|
:global(:scope:where([data-hn-ui-radio])) {
|
|
314
|
-
/*
|
|
307
|
+
/* Resolve shared part values at the component root. */
|
|
315
308
|
--_ui-radio-size: var(--ui-radio-size, var(--ui-choice-mark-size));
|
|
316
309
|
|
|
317
310
|
display: inline-flex !important;
|
|
@@ -361,9 +354,36 @@ useComponentHost(() => import('../components/ui-radio/ui-radio.js'), {
|
|
|
361
354
|
inline-size: var(--_ui-radio-size, 1.125rem);
|
|
362
355
|
block-size: var(--_ui-radio-size, 1.125rem);
|
|
363
356
|
margin: max(0px, calc((1lh - var(--_ui-radio-size, 1.125rem)) / 2)) 0 0 !important;
|
|
364
|
-
|
|
357
|
+
-webkit-appearance: none;
|
|
358
|
+
appearance: none;
|
|
359
|
+
position: relative;
|
|
360
|
+
border: var(--ui-border-width) solid var(--ui-control-border, var(--ui-border-strong));
|
|
361
|
+
border-radius: var(--ui-radius-round);
|
|
362
|
+
background-color: var(--ui-control-surface, var(--ui-surface-default));
|
|
363
|
+
background-image: var(--ui-surface-highlight, none);
|
|
364
|
+
box-shadow: var(--ui-control-inset);
|
|
365
365
|
cursor: pointer;
|
|
366
366
|
}
|
|
367
|
+
:global(input:where([data-hn-ui-radio])::after) {
|
|
368
|
+
content: "";
|
|
369
|
+
position: absolute;
|
|
370
|
+
inset: 28%;
|
|
371
|
+
border-radius: var(--ui-radius-round);
|
|
372
|
+
background-color: var(--ui-text-on-accent);
|
|
373
|
+
opacity: 0;
|
|
374
|
+
transition: opacity var(--ui-motion-fast) var(--ui-motion-ease);
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
:global(input:checked:where([data-hn-ui-radio])) {
|
|
378
|
+
background-color: var(--ui-accent-solid);
|
|
379
|
+
background-image: var(--ui-accent-highlight, none);
|
|
380
|
+
border-color: var(--ui-accent-solid);
|
|
381
|
+
box-shadow: none;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
:global(input:checked:where([data-hn-ui-radio])::after) {
|
|
385
|
+
opacity: 1;
|
|
386
|
+
}
|
|
367
387
|
|
|
368
388
|
:global(input:focus-visible:where([data-hn-ui-radio])) {
|
|
369
389
|
outline: var(--ui-focus-width) solid var(--ui-focus-ring, var(--ui-accent-solid));
|
|
@@ -378,8 +398,34 @@ useComponentHost(() => import('../components/ui-radio/ui-radio.js'), {
|
|
|
378
398
|
color: var(--ui-disabled-text);
|
|
379
399
|
}
|
|
380
400
|
:global(:scope[data-ui-radio-state~="disabled"] input:where([data-hn-ui-radio])) {
|
|
401
|
+
border-color: var(--ui-disabled-border);
|
|
402
|
+
background-color: var(--ui-disabled-surface);
|
|
403
|
+
background-image: none;
|
|
404
|
+
box-shadow: none;
|
|
381
405
|
cursor: not-allowed;
|
|
382
406
|
}
|
|
407
|
+
|
|
408
|
+
:global(:scope[data-ui-radio-state~="disabled"] input:where([data-hn-ui-radio])::after) {
|
|
409
|
+
background-color: var(--ui-disabled-text);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
@media (prefers-reduced-motion: reduce) {
|
|
413
|
+
:global(input:where([data-hn-ui-radio])::after) {
|
|
414
|
+
transition: none;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
@media (forced-colors: active) {
|
|
419
|
+
:global(input:where([data-hn-ui-radio])) {
|
|
420
|
+
-webkit-appearance: auto;
|
|
421
|
+
appearance: auto;
|
|
422
|
+
background: none;
|
|
423
|
+
box-shadow: none;
|
|
424
|
+
}
|
|
425
|
+
:global(input:where([data-hn-ui-radio])::after) {
|
|
426
|
+
display: none !important;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
383
429
|
:global(:scope[data-ui-radio-state~="size=sm"]:where([data-hn-ui-radio])) {
|
|
384
430
|
--_font: var(--ui-font-size-sm);
|
|
385
431
|
--_row: var(--ui-control-size-sm);
|
package/vue/UiRadioGroup.vue
CHANGED
|
@@ -345,13 +345,7 @@ useComponentHost(() => import('../components/ui-radio-group/ui-radio-group.js'),
|
|
|
345
345
|
</template>
|
|
346
346
|
|
|
347
347
|
<style scoped>
|
|
348
|
-
@property --ui-radio-group-invalid-text {
|
|
349
|
-
syntax: "*";
|
|
350
|
-
inherits: false;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
348
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
354
|
-
|
|
355
349
|
@scope (.ui-radio-group) to ([data-hn]) {
|
|
356
350
|
:global(:scope:where([data-hn-ui-radio-group])) {
|
|
357
351
|
--_ui-radio-group-invalid-text: var(
|
|
@@ -366,7 +360,6 @@ useComponentHost(() => import('../components/ui-radio-group/ui-radio-group.js'),
|
|
|
366
360
|
padding: 0 !important;
|
|
367
361
|
border: 0;
|
|
368
362
|
}
|
|
369
|
-
|
|
370
363
|
:global(legend:where([data-hn-ui-radio-group])) {
|
|
371
364
|
float: inline-start;
|
|
372
365
|
inline-size: 100%;
|
|
@@ -375,11 +368,9 @@ useComponentHost(() => import('../components/ui-radio-group/ui-radio-group.js'),
|
|
|
375
368
|
color: var(--ui-text-primary);
|
|
376
369
|
font-weight: var(--ui-font-medium);
|
|
377
370
|
}
|
|
378
|
-
|
|
379
371
|
:global(legend + *:where([data-hn-ui-radio-group])) {
|
|
380
372
|
clear: both;
|
|
381
373
|
}
|
|
382
|
-
|
|
383
374
|
:global(legend.sr-only:where([data-hn-ui-radio-group])) {
|
|
384
375
|
position: absolute;
|
|
385
376
|
inline-size: 1px;
|
|
@@ -388,11 +379,9 @@ useComponentHost(() => import('../components/ui-radio-group/ui-radio-group.js'),
|
|
|
388
379
|
clip-path: inset(50%);
|
|
389
380
|
white-space: nowrap;
|
|
390
381
|
}
|
|
391
|
-
|
|
392
382
|
:global(:scope[data-ui-radio-group-state~="invalid"] legend:where([data-hn-ui-radio-group])) {
|
|
393
383
|
color: var(--_ui-radio-group-invalid-text);
|
|
394
384
|
}
|
|
395
|
-
|
|
396
385
|
:global(:scope[data-ui-radio-group-state~="orientation=vertical"]:where([data-hn-ui-radio-group])) {
|
|
397
386
|
display: inline-grid !important;
|
|
398
387
|
justify-items: start !important;
|
package/vue/UiReel.vue
CHANGED
|
@@ -24,7 +24,7 @@ const propValidityContract = {
|
|
|
24
24
|
required: false,
|
|
25
25
|
target: { attribute: 'gap' },
|
|
26
26
|
description:
|
|
27
|
-
'Space between items, on the spacing scale: xs is 0.5rem, s 0.75rem, m 1rem (also the default), l 1.5rem, and xl 2rem. The --ui-reel-gap custom property,\n set on
|
|
27
|
+
'Space between items, on the spacing scale: xs is 0.5rem, s 0.75rem, m 1rem (also the default), l 1.5rem, and xl 2rem. The --ui-reel-gap custom property,\n set on :root, an ancestor, or the component itself, overrides it.',
|
|
28
28
|
values: ['xs', 's', 'm', 'l', 'xl'],
|
|
29
29
|
},
|
|
30
30
|
itemWidth: {
|
|
@@ -133,16 +133,6 @@ const hostState = computed(() =>
|
|
|
133
133
|
</template>
|
|
134
134
|
|
|
135
135
|
<style scoped>
|
|
136
|
-
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
137
|
-
@property --ui-reel-gap {
|
|
138
|
-
syntax: "*";
|
|
139
|
-
inherits: false;
|
|
140
|
-
}
|
|
141
|
-
@property --ui-reel-item-width {
|
|
142
|
-
syntax: "*";
|
|
143
|
-
inherits: false;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
136
|
/* Each end that hides items fades: the scroll fade every Looma scroller uses (see ui-scroll-area). */
|
|
147
137
|
|
|
148
138
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
@@ -150,40 +150,6 @@ const hostState = computed(() =>
|
|
|
150
150
|
</template>
|
|
151
151
|
|
|
152
152
|
<style scoped>
|
|
153
|
-
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
154
|
-
@property --ui-search-result-row-border {
|
|
155
|
-
syntax: "*";
|
|
156
|
-
inherits: false;
|
|
157
|
-
}
|
|
158
|
-
@property --ui-search-result-row-gap {
|
|
159
|
-
syntax: "*";
|
|
160
|
-
inherits: false;
|
|
161
|
-
}
|
|
162
|
-
@property --ui-search-result-row-hover-surface {
|
|
163
|
-
syntax: "*";
|
|
164
|
-
inherits: false;
|
|
165
|
-
}
|
|
166
|
-
@property --ui-search-result-row-min-height {
|
|
167
|
-
syntax: "*";
|
|
168
|
-
inherits: false;
|
|
169
|
-
}
|
|
170
|
-
@property --ui-search-result-row-padding-block {
|
|
171
|
-
syntax: "*";
|
|
172
|
-
inherits: false;
|
|
173
|
-
}
|
|
174
|
-
@property --ui-search-result-row-padding-inline {
|
|
175
|
-
syntax: "*";
|
|
176
|
-
inherits: false;
|
|
177
|
-
}
|
|
178
|
-
@property --ui-search-result-row-selected-bg {
|
|
179
|
-
syntax: "*";
|
|
180
|
-
inherits: false;
|
|
181
|
-
}
|
|
182
|
-
@property --ui-search-result-row-surface {
|
|
183
|
-
syntax: "*";
|
|
184
|
-
inherits: false;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
153
|
/* Slot wrappers own their line boxes even when an app makes buttons inherit body typography. */
|
|
188
154
|
|
|
189
155
|
/* An unused region takes no space. */
|
|
@@ -209,7 +175,6 @@ const hostState = computed(() =>
|
|
|
209
175
|
text-align: left;
|
|
210
176
|
transition: background-color var(--ui-motion-fast) var(--ui-motion-ease);
|
|
211
177
|
}
|
|
212
|
-
|
|
213
178
|
:global(:scope[data-ui-search-result-row-state~="density=compact"]:where([data-hn-ui-search-result-row])) {
|
|
214
179
|
min-block-size: var(--ui-search-result-row-min-height, 3.125rem);
|
|
215
180
|
padding-block: var(--ui-search-result-row-padding-block, var(--ui-space-1)) !important;
|