@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
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
<prop name="height" type="number">An optional measured height in CSS pixels, for a viewport-bounded composition. Omit it to retain intrinsic sizing.</prop>
|
|
5
5
|
<prop name="gap" type="keyword" values="none, xs, s, m, l, xl"
|
|
6
6
|
>Space between items, on the spacing scale: none is zero, xs is 0.5rem, s 0.75rem, m 1rem (also the default), l 1.5rem, and xl 2rem. The --ui-stack-gap
|
|
7
|
-
custom property, set on the
|
|
7
|
+
custom property, set on :root, an ancestor, or the component itself, overrides it. Theme rhythm scales these vertical gaps, while an explicit gap override
|
|
8
|
+
stays exact.</prop>
|
|
8
9
|
<prop name="align" type="keyword" values="start, center, end, stretch"
|
|
9
10
|
>How items sit across the stack: stretch (the default) makes each fill the stack's width; start, center, and end keep each at its own width, against the
|
|
10
11
|
start, in the middle, or against the end.</prop>
|
|
@@ -12,15 +13,9 @@
|
|
|
12
13
|
>Where items sit along a stack that is taller than its content: start (the default), center, end, or between, which spreads the spare space between items.
|
|
13
14
|
It has no effect unless the stack is given a height or stretched to one.</prop>
|
|
14
15
|
</defs>
|
|
15
|
-
<div style:--
|
|
16
|
+
<div style:--_ui-stack-height="$height"><slot></slot></div>
|
|
16
17
|
<style>
|
|
17
|
-
|
|
18
|
-
@property --ui-stack-height {
|
|
19
|
-
syntax: "*";
|
|
20
|
-
inherits: false;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@property --ui-stack-gap {
|
|
18
|
+
@property --_ui-stack-height {
|
|
24
19
|
syntax: "*";
|
|
25
20
|
inherits: false;
|
|
26
21
|
}
|
|
@@ -30,7 +25,7 @@
|
|
|
30
25
|
display: flex !important;
|
|
31
26
|
flex-direction: column !important;
|
|
32
27
|
align-items: stretch !important;
|
|
33
|
-
gap: var(--ui-stack-gap, var(--_layout-gap)) !important;
|
|
28
|
+
gap: var(--ui-stack-gap, calc(var(--_layout-gap) * clamp(0.75, var(--ui-rhythm, 1), 1.5))) !important;
|
|
34
29
|
min-inline-size: 0;
|
|
35
30
|
max-inline-size: 100%;
|
|
36
31
|
margin: 0 !important;
|
|
@@ -41,7 +36,7 @@
|
|
|
41
36
|
min-block-size: 0;
|
|
42
37
|
}
|
|
43
38
|
:host([height]) {
|
|
44
|
-
block-size: calc(var(--
|
|
39
|
+
block-size: calc(var(--_ui-stack-height, 0) * 1px);
|
|
45
40
|
min-block-size: 0;
|
|
46
41
|
}
|
|
47
42
|
|
|
@@ -6,11 +6,6 @@
|
|
|
6
6
|
</defs>
|
|
7
7
|
<input type="radio" from:value="$tone" from:aria-label="$toneName">
|
|
8
8
|
<style>
|
|
9
|
-
@property --ui-swatch-size {
|
|
10
|
-
syntax: "*";
|
|
11
|
-
inherits: false;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
9
|
/* A native radio drawn as a round dot. Inside a ui-radio-group the group names it, applies its
|
|
15
10
|
value, and moves between swatches with the arrow keys. */
|
|
16
11
|
:host {
|
|
@@ -37,22 +37,8 @@
|
|
|
37
37
|
</span>
|
|
38
38
|
</label>
|
|
39
39
|
<style>
|
|
40
|
-
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
41
|
-
@property --ui-switch-gap {
|
|
42
|
-
syntax: "*";
|
|
43
|
-
inherits: false;
|
|
44
|
-
}
|
|
45
|
-
@property --ui-switch-track-height {
|
|
46
|
-
syntax: "*";
|
|
47
|
-
inherits: false;
|
|
48
|
-
}
|
|
49
|
-
@property --ui-switch-track-width {
|
|
50
|
-
syntax: "*";
|
|
51
|
-
inherits: false;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
40
|
:host {
|
|
55
|
-
/*
|
|
41
|
+
/* Resolve shared part values at the component root. */
|
|
56
42
|
--_ui-switch-track-width: var(--ui-switch-track-width, var(--ui-choice-track-width));
|
|
57
43
|
--_ui-switch-track-height: var(--ui-switch-track-height, var(--ui-choice-track-height));
|
|
58
44
|
|
|
@@ -129,7 +115,8 @@
|
|
|
129
115
|
width: var(--_thumb);
|
|
130
116
|
height: var(--_thumb);
|
|
131
117
|
border-radius: var(--ui-radius-round);
|
|
132
|
-
background: var(--ui-text-secondary);
|
|
118
|
+
background-color: var(--ui-text-secondary);
|
|
119
|
+
background-image: var(--ui-knob-highlight, none);
|
|
133
120
|
box-shadow: var(--ui-shadow-xs);
|
|
134
121
|
transition: transform var(--ui-motion-base) var(--ui-motion-ease), background-color var(--ui-motion-base) var(--ui-motion-ease);
|
|
135
122
|
}
|
|
@@ -142,7 +129,8 @@
|
|
|
142
129
|
|
|
143
130
|
input:checked::after {
|
|
144
131
|
transform: translateX(calc(var(--_ui-switch-track-width) - var(--_ui-switch-track-height)));
|
|
145
|
-
background: var(--ui-text-on-accent);
|
|
132
|
+
background-color: var(--ui-text-on-accent);
|
|
133
|
+
background-image: var(--ui-knob-on-accent-highlight, none);
|
|
146
134
|
}
|
|
147
135
|
|
|
148
136
|
input:focus-visible {
|
|
@@ -167,6 +155,7 @@
|
|
|
167
155
|
|
|
168
156
|
:host([disabled]) input::after {
|
|
169
157
|
background-color: var(--ui-disabled-text);
|
|
158
|
+
background-image: none;
|
|
170
159
|
box-shadow: none;
|
|
171
160
|
}
|
|
172
161
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<defs>
|
|
3
3
|
<prop name="gap" type="keyword" values="xs, s, m, l, xl"
|
|
4
4
|
>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-switcher-gap custom
|
|
5
|
-
property, set on
|
|
5
|
+
property, set on :root, an ancestor, or the component itself, overrides it.</prop>
|
|
6
6
|
<prop name="threshold" type="keyword" values="xs, sm, md, lg"
|
|
7
7
|
>The container width at which items switch between a row and a stack: wider, they all sit side by side; narrower, each takes the full width. xs is 20rem, sm
|
|
8
8
|
is 30rem (also the default), md is 45rem, and lg is 60rem.</prop>
|
|
@@ -15,16 +15,6 @@
|
|
|
15
15
|
</defs>
|
|
16
16
|
<div><slot></slot></div>
|
|
17
17
|
<style>
|
|
18
|
-
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
19
|
-
@property --ui-switcher-gap {
|
|
20
|
-
syntax: "*";
|
|
21
|
-
inherits: false;
|
|
22
|
-
}
|
|
23
|
-
@property --ui-switcher-threshold {
|
|
24
|
-
syntax: "*";
|
|
25
|
-
inherits: false;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
18
|
:host {
|
|
29
19
|
--_switcher-gap: var(--ui-space-4);
|
|
30
20
|
--_switcher-threshold: 30rem;
|
|
@@ -46,27 +46,9 @@
|
|
|
46
46
|
<div class="panels" $ref="panels"><slot></slot></div>
|
|
47
47
|
</div>
|
|
48
48
|
<style>
|
|
49
|
-
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
50
|
-
@property --ui-tabs-tab-min-block-size {
|
|
51
|
-
syntax: "*";
|
|
52
|
-
inherits: false;
|
|
53
|
-
}
|
|
54
|
-
@property --ui-tabs-tab-padding-block {
|
|
55
|
-
syntax: "*";
|
|
56
|
-
inherits: false;
|
|
57
|
-
}
|
|
58
|
-
@property --ui-tabs-tab-padding-inline {
|
|
59
|
-
syntax: "*";
|
|
60
|
-
inherits: false;
|
|
61
|
-
}
|
|
62
|
-
@property --ui-tabs-panel-padding {
|
|
63
|
-
syntax: "*";
|
|
64
|
-
inherits: false;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
49
|
/* Density resolves into the tab row's own values; the public tokens still override them. */
|
|
68
50
|
:host {
|
|
69
|
-
/*
|
|
51
|
+
/* Resolve shared part values at the component root. */
|
|
70
52
|
--_ui-tabs-tab-min-block-size: var(--ui-tabs-tab-min-block-size);
|
|
71
53
|
--_ui-tabs-tab-padding-block: var(--ui-tabs-tab-padding-block);
|
|
72
54
|
--_ui-tabs-tab-padding-inline: var(--ui-tabs-tab-padding-inline);
|
|
@@ -154,8 +136,8 @@
|
|
|
154
136
|
}
|
|
155
137
|
.list button[aria-selected="true"],
|
|
156
138
|
.list > :slotted(button[slot="tab"][aria-selected="true"]) {
|
|
157
|
-
color: var(--ui-accent-
|
|
158
|
-
border-block-end-color: var(--ui-accent-
|
|
139
|
+
color: var(--ui-accent-subtle-text);
|
|
140
|
+
border-block-end-color: var(--ui-accent-subtle-text);
|
|
159
141
|
}
|
|
160
142
|
.list button:focus-visible,
|
|
161
143
|
.list > :slotted(button[slot="tab"]:focus-visible) {
|
|
@@ -194,7 +176,7 @@
|
|
|
194
176
|
|
|
195
177
|
:host([orientation="vertical"]) .list button[aria-selected="true"],
|
|
196
178
|
:host([orientation="vertical"]) .list > :slotted(button[slot="tab"][aria-selected="true"]) {
|
|
197
|
-
border-inline-end-color: var(--ui-accent-
|
|
179
|
+
border-inline-end-color: var(--ui-accent-subtle-text);
|
|
198
180
|
}
|
|
199
181
|
|
|
200
182
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -11,10 +11,15 @@
|
|
|
11
11
|
<prop name="size" type="keyword" values="inherit, xs, sm, md, lg" default="inherit"
|
|
12
12
|
>The step on the type scale. inherit (the default) keeps the size of the text around it; xs is for fine print, sm for supporting text such as help and
|
|
13
13
|
metadata, md is body text, and lg is a lead paragraph.</prop>
|
|
14
|
-
<prop
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
<prop
|
|
15
|
+
name="tone"
|
|
16
|
+
type="keyword"
|
|
17
|
+
values="default, secondary, muted, accent, accent-secondary, accent-tertiary, danger, success, info, warning"
|
|
18
|
+
default="default"
|
|
19
|
+
>The text's colour, by meaning. default inherits its containing surface or control's foreground. secondary is supporting prose such as a description; muted
|
|
20
|
+
is quieter still, for metadata and hints; accent draws the eye; danger states an error; success confirms one; info marks something moving forward
|
|
21
|
+
normally; warning marks something that needs attention. Colour alone does not carry the meaning, so the words must say it too. Supporting brand families
|
|
22
|
+
use accent-secondary and accent-tertiary; their usable colors derive from the theme, and unset families follow the primary accent.</prop>
|
|
18
23
|
<prop name="weight" type="keyword" values="inherit, normal, medium, semibold" default="inherit"
|
|
19
24
|
>The weight. inherit keeps the surrounding weight; medium and semibold emphasise a name or a figure.</prop>
|
|
20
25
|
<prop name="variant" type="keyword" values="body, display, heading, label, caption, eyebrow, code" default="body"
|
|
@@ -53,7 +58,7 @@
|
|
|
53
58
|
:host {
|
|
54
59
|
margin: 0 !important;
|
|
55
60
|
min-inline-size: 0;
|
|
56
|
-
color:
|
|
61
|
+
color: inherit;
|
|
57
62
|
text-align: start;
|
|
58
63
|
}
|
|
59
64
|
|
|
@@ -94,8 +99,16 @@
|
|
|
94
99
|
:host([tone="muted"]) {
|
|
95
100
|
color: var(--ui-text-muted);
|
|
96
101
|
}
|
|
102
|
+
:host([tone="accent-secondary"]) {
|
|
103
|
+
color: var(--ui-accent-secondary-subtle-text);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
:host([tone="accent-tertiary"]) {
|
|
107
|
+
color: var(--ui-accent-tertiary-subtle-text);
|
|
108
|
+
}
|
|
109
|
+
|
|
97
110
|
:host([tone="accent"]) {
|
|
98
|
-
color: var(--ui-accent-
|
|
111
|
+
color: var(--ui-accent-subtle-text);
|
|
99
112
|
}
|
|
100
113
|
/* Every status tone uses the text-safe token a subtle badge sets its words in, so text and badges
|
|
101
114
|
in one tone match, and each holds 4.5:1 on sunken surfaces where some base colours fall short. */
|
|
@@ -157,7 +170,7 @@
|
|
|
157
170
|
/* A link in running text is underlined, so it stands apart from the words around it by more than
|
|
158
171
|
colour. */
|
|
159
172
|
:host :slotted(a) {
|
|
160
|
-
color: var(--ui-accent-
|
|
173
|
+
color: var(--ui-link-color, var(--ui-accent-subtle-text));
|
|
161
174
|
text-decoration: underline;
|
|
162
175
|
text-decoration-thickness: 0.06em;
|
|
163
176
|
text-underline-offset: 0.18em;
|
|
@@ -28,56 +28,6 @@
|
|
|
28
28
|
style:--_max-rows="$maxRows"
|
|
29
29
|
></textarea>
|
|
30
30
|
<style>
|
|
31
|
-
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
32
|
-
@property --ui-textarea-border-width {
|
|
33
|
-
syntax: "*";
|
|
34
|
-
inherits: false;
|
|
35
|
-
}
|
|
36
|
-
@property --ui-textarea-border {
|
|
37
|
-
syntax: "*";
|
|
38
|
-
inherits: false;
|
|
39
|
-
}
|
|
40
|
-
@property --ui-textarea-border-hover {
|
|
41
|
-
syntax: "*";
|
|
42
|
-
inherits: false;
|
|
43
|
-
}
|
|
44
|
-
@property --ui-textarea-focus-border {
|
|
45
|
-
syntax: "*";
|
|
46
|
-
inherits: false;
|
|
47
|
-
}
|
|
48
|
-
@property --ui-textarea-focus-outline {
|
|
49
|
-
syntax: "*";
|
|
50
|
-
inherits: false;
|
|
51
|
-
}
|
|
52
|
-
@property --ui-textarea-surface {
|
|
53
|
-
syntax: "*";
|
|
54
|
-
inherits: false;
|
|
55
|
-
}
|
|
56
|
-
@property --ui-textarea-focus-shadow {
|
|
57
|
-
syntax: "*";
|
|
58
|
-
inherits: false;
|
|
59
|
-
}
|
|
60
|
-
@property --ui-textarea-invalid-border {
|
|
61
|
-
syntax: "*";
|
|
62
|
-
inherits: false;
|
|
63
|
-
}
|
|
64
|
-
@property --ui-textarea-invalid-focus-shadow {
|
|
65
|
-
syntax: "*";
|
|
66
|
-
inherits: false;
|
|
67
|
-
}
|
|
68
|
-
@property --ui-textarea-radius {
|
|
69
|
-
syntax: "*";
|
|
70
|
-
inherits: false;
|
|
71
|
-
}
|
|
72
|
-
@property --ui-textarea-shadow {
|
|
73
|
-
syntax: "*";
|
|
74
|
-
inherits: false;
|
|
75
|
-
}
|
|
76
|
-
@property --ui-textarea-padding-inline-end {
|
|
77
|
-
syntax: "*";
|
|
78
|
-
inherits: false;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
31
|
:host {
|
|
82
32
|
box-sizing: border-box !important;
|
|
83
33
|
display: inline-block !important;
|
|
@@ -22,30 +22,11 @@
|
|
|
22
22
|
</div>
|
|
23
23
|
<style>
|
|
24
24
|
/* Component hooks stay on this toast; group overlay values may inherit from the region. */
|
|
25
|
-
@property --ui-toast-surface {
|
|
26
|
-
syntax: "*";
|
|
27
|
-
inherits: false;
|
|
28
|
-
}
|
|
29
|
-
@property --ui-toast-border {
|
|
30
|
-
syntax: "*";
|
|
31
|
-
inherits: false;
|
|
32
|
-
}
|
|
33
|
-
@property --ui-toast-radius {
|
|
34
|
-
syntax: "*";
|
|
35
|
-
inherits: false;
|
|
36
|
-
}
|
|
37
|
-
@property --ui-toast-shadow {
|
|
38
|
-
syntax: "*";
|
|
39
|
-
inherits: false;
|
|
40
|
-
}
|
|
41
|
-
@property --ui-toast-accent {
|
|
42
|
-
syntax: "*";
|
|
43
|
-
inherits: false;
|
|
44
|
-
}
|
|
45
25
|
|
|
46
26
|
:host {
|
|
47
|
-
--_ui-toast-accent: var(--ui-border-strong);
|
|
48
|
-
--_ui-
|
|
27
|
+
--_ui-toast-accent: var(--ui-overlay-border, var(--ui-border-strong));
|
|
28
|
+
--_ui-surface-text: var(--ui-text-primary);
|
|
29
|
+
--_ui-toast-surface: var(--ui-overlay-surface, var(--ui-surface-muted));
|
|
49
30
|
|
|
50
31
|
display: flex !important;
|
|
51
32
|
align-items: center !important;
|
|
@@ -59,7 +40,7 @@
|
|
|
59
40
|
border: var(--ui-border-width) solid var(--ui-toast-border, var(--ui-overlay-border, var(--ui-toast-accent, var(--_ui-toast-accent))));
|
|
60
41
|
border-radius: var(--ui-toast-radius, var(--ui-overlay-radius, var(--ui-radius-lg)));
|
|
61
42
|
background: var(--ui-toast-surface, var(--ui-overlay-surface, var(--_ui-toast-surface)));
|
|
62
|
-
color: var(--
|
|
43
|
+
color: var(--_ui-surface-text);
|
|
63
44
|
font-family: var(--ui-font-family-sans);
|
|
64
45
|
font-size: var(--ui-font-size-sm);
|
|
65
46
|
font-weight: var(--ui-font-normal);
|
|
@@ -69,19 +50,23 @@
|
|
|
69
50
|
}
|
|
70
51
|
|
|
71
52
|
:host([tone="info"]) {
|
|
72
|
-
--_ui-toast-accent: var(--ui-info-
|
|
53
|
+
--_ui-toast-accent: var(--ui-info-soft-border);
|
|
54
|
+
--_ui-surface-text: var(--ui-info-subtle-text);
|
|
73
55
|
--_ui-toast-surface: var(--ui-info-soft);
|
|
74
56
|
}
|
|
75
57
|
:host([tone="success"]) {
|
|
76
|
-
--_ui-toast-accent: var(--ui-success-
|
|
58
|
+
--_ui-toast-accent: var(--ui-success-soft-border);
|
|
59
|
+
--_ui-surface-text: var(--ui-success-subtle-text);
|
|
77
60
|
--_ui-toast-surface: var(--ui-success-soft);
|
|
78
61
|
}
|
|
79
62
|
:host([tone="warning"]) {
|
|
80
|
-
--_ui-toast-accent: var(--ui-warning-
|
|
63
|
+
--_ui-toast-accent: var(--ui-warning-soft-border);
|
|
64
|
+
--_ui-surface-text: var(--ui-warning-subtle-text);
|
|
81
65
|
--_ui-toast-surface: var(--ui-warning-soft);
|
|
82
66
|
}
|
|
83
67
|
:host([tone="danger"]) {
|
|
84
|
-
--_ui-toast-accent: var(--ui-danger-
|
|
68
|
+
--_ui-toast-accent: var(--ui-danger-soft-border);
|
|
69
|
+
--_ui-surface-text: var(--ui-danger-subtle-text);
|
|
85
70
|
--_ui-toast-surface: var(--ui-danger-soft);
|
|
86
71
|
}
|
|
87
72
|
|
|
@@ -51,34 +51,8 @@
|
|
|
51
51
|
</div>
|
|
52
52
|
</div>
|
|
53
53
|
<style>
|
|
54
|
-
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
55
|
-
@property --ui-toast-region-surface {
|
|
56
|
-
syntax: "*";
|
|
57
|
-
inherits: false;
|
|
58
|
-
}
|
|
59
|
-
@property --ui-toast-region-border {
|
|
60
|
-
syntax: "*";
|
|
61
|
-
inherits: false;
|
|
62
|
-
}
|
|
63
|
-
@property --ui-toast-region-radius {
|
|
64
|
-
syntax: "*";
|
|
65
|
-
inherits: false;
|
|
66
|
-
}
|
|
67
|
-
@property --ui-toast-region-shadow {
|
|
68
|
-
syntax: "*";
|
|
69
|
-
inherits: false;
|
|
70
|
-
}
|
|
71
|
-
@property --ui-toast-region-enter-duration {
|
|
72
|
-
syntax: "*";
|
|
73
|
-
inherits: false;
|
|
74
|
-
}
|
|
75
|
-
@property --ui-toast-region-exit-duration {
|
|
76
|
-
syntax: "*";
|
|
77
|
-
inherits: false;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
54
|
:host {
|
|
81
|
-
/*
|
|
55
|
+
/* Resolve shared part values at the component root. */
|
|
82
56
|
--_ui-toast-region-surface: var(--ui-toast-region-surface);
|
|
83
57
|
--_ui-toast-region-border: var(--ui-toast-region-border);
|
|
84
58
|
--_ui-toast-region-radius: var(--ui-toast-region-radius);
|
|
@@ -141,8 +115,9 @@
|
|
|
141
115
|
}
|
|
142
116
|
|
|
143
117
|
.toast {
|
|
144
|
-
--_ui-toast-region-accent: var(--ui-border-strong);
|
|
145
|
-
--_ui-
|
|
118
|
+
--_ui-toast-region-accent: var(--ui-overlay-border, var(--ui-border-strong));
|
|
119
|
+
--_ui-surface-text: var(--ui-text-primary);
|
|
120
|
+
--_ui-toast-region-tone-surface: var(--ui-overlay-surface, var(--ui-surface-muted));
|
|
146
121
|
display: grid !important;
|
|
147
122
|
grid-template-columns: 1fr auto;
|
|
148
123
|
gap: var(--ui-space-2) !important;
|
|
@@ -153,7 +128,7 @@
|
|
|
153
128
|
/* The close button's internal space supplies the rest of the trailing inset. */
|
|
154
129
|
padding-inline-end: var(--ui-space-2) !important;
|
|
155
130
|
background: var(--_ui-toast-region-surface, var(--ui-overlay-surface, var(--_ui-toast-region-tone-surface)));
|
|
156
|
-
color: var(--
|
|
131
|
+
color: var(--_ui-surface-text);
|
|
157
132
|
font-family: var(--ui-font-family-sans);
|
|
158
133
|
font-size: var(--ui-font-size-sm);
|
|
159
134
|
font-weight: var(--ui-font-normal);
|
|
@@ -163,19 +138,23 @@
|
|
|
163
138
|
}
|
|
164
139
|
|
|
165
140
|
.toast[data-tone="info"] {
|
|
166
|
-
--_ui-toast-region-accent: var(--ui-info-
|
|
141
|
+
--_ui-toast-region-accent: var(--ui-info-soft-border);
|
|
142
|
+
--_ui-surface-text: var(--ui-info-subtle-text);
|
|
167
143
|
--_ui-toast-region-tone-surface: var(--ui-info-soft);
|
|
168
144
|
}
|
|
169
145
|
.toast[data-tone="success"] {
|
|
170
|
-
--_ui-toast-region-accent: var(--ui-success-
|
|
146
|
+
--_ui-toast-region-accent: var(--ui-success-soft-border);
|
|
147
|
+
--_ui-surface-text: var(--ui-success-subtle-text);
|
|
171
148
|
--_ui-toast-region-tone-surface: var(--ui-success-soft);
|
|
172
149
|
}
|
|
173
150
|
.toast[data-tone="warning"] {
|
|
174
|
-
--_ui-toast-region-accent: var(--ui-warning-
|
|
151
|
+
--_ui-toast-region-accent: var(--ui-warning-soft-border);
|
|
152
|
+
--_ui-surface-text: var(--ui-warning-subtle-text);
|
|
175
153
|
--_ui-toast-region-tone-surface: var(--ui-warning-soft);
|
|
176
154
|
}
|
|
177
155
|
.toast[data-tone="danger"] {
|
|
178
|
-
--_ui-toast-region-accent: var(--ui-danger-
|
|
156
|
+
--_ui-toast-region-accent: var(--ui-danger-soft-border);
|
|
157
|
+
--_ui-surface-text: var(--ui-danger-subtle-text);
|
|
179
158
|
--_ui-toast-region-tone-surface: var(--ui-danger-soft);
|
|
180
159
|
}
|
|
181
160
|
|
|
@@ -38,51 +38,9 @@
|
|
|
38
38
|
<span class="shortcut"><slot name="shortcut"></slot></span>
|
|
39
39
|
</div></span>
|
|
40
40
|
<style>
|
|
41
|
-
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
42
|
-
@property --ui-tooltip-arrow-size {
|
|
43
|
-
syntax: "*";
|
|
44
|
-
inherits: false;
|
|
45
|
-
}
|
|
46
|
-
@property --ui-tooltip-border {
|
|
47
|
-
syntax: "*";
|
|
48
|
-
inherits: false;
|
|
49
|
-
}
|
|
50
|
-
@property --ui-tooltip-inverse-surface {
|
|
51
|
-
syntax: "*";
|
|
52
|
-
inherits: false;
|
|
53
|
-
}
|
|
54
|
-
@property --ui-tooltip-inverse-text {
|
|
55
|
-
syntax: "*";
|
|
56
|
-
inherits: false;
|
|
57
|
-
}
|
|
58
|
-
@property --ui-tooltip-max-inline-size {
|
|
59
|
-
syntax: "*";
|
|
60
|
-
inherits: false;
|
|
61
|
-
}
|
|
62
|
-
@property --ui-tooltip-offset {
|
|
63
|
-
syntax: "*";
|
|
64
|
-
inherits: false;
|
|
65
|
-
}
|
|
66
|
-
@property --ui-tooltip-radius {
|
|
67
|
-
syntax: "*";
|
|
68
|
-
inherits: false;
|
|
69
|
-
}
|
|
70
|
-
@property --ui-tooltip-shadow {
|
|
71
|
-
syntax: "*";
|
|
72
|
-
inherits: false;
|
|
73
|
-
}
|
|
74
|
-
@property --ui-tooltip-surface {
|
|
75
|
-
syntax: "*";
|
|
76
|
-
inherits: false;
|
|
77
|
-
}
|
|
78
|
-
@property --ui-tooltip-text {
|
|
79
|
-
syntax: "*";
|
|
80
|
-
inherits: false;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
41
|
:host {
|
|
84
42
|
--_ui-material-scale: 0.08;
|
|
85
|
-
/*
|
|
43
|
+
/* Resolve shared part values at the component root. */
|
|
86
44
|
--_ui-tooltip-border: var(--ui-tooltip-border);
|
|
87
45
|
--_ui-tooltip-max-inline-size: var(--ui-tooltip-max-inline-size);
|
|
88
46
|
--_ui-tooltip-radius: var(--ui-tooltip-radius);
|
|
@@ -135,12 +93,12 @@
|
|
|
135
93
|
}
|
|
136
94
|
|
|
137
95
|
/* Purpose and measured size shape one shared separation lever. The content plane stays opaque;
|
|
138
|
-
transparency,
|
|
96
|
+
transparency, frosting and edge light belong to the surrounding decorative material. */
|
|
139
97
|
.surface {
|
|
140
|
-
--_ui-material-glassiness:
|
|
98
|
+
--_ui-material-glassiness: clamp(0, var(--ui-glassiness, 0), 1);
|
|
141
99
|
--_ui-material-separation: clamp(0, var(--ui-surface-separation, 0), 1);
|
|
142
|
-
--_ui-material-active: clamp(0, calc(
|
|
143
|
-
--_ui-material-rim: calc(
|
|
100
|
+
--_ui-material-active: clamp(0, calc(var(--_ui-material-separation) * 100000), 1);
|
|
101
|
+
--_ui-material-rim: calc(var(--_ui-material-separation) * var(--_ui-material-scale, 0.08) * 8px);
|
|
144
102
|
--_ui-material-content-color: var(--_ui-tooltip-surface, var(--ui-material-content, var(--ui-overlay-surface, var(--ui-surface-elevated))));
|
|
145
103
|
--_ui-material-rim-color: color-mix(in srgb, var(--ui-material-glass, var(--ui-surface-elevated)) calc(var(--_ui-material-active) * 100%), transparent);
|
|
146
104
|
background:
|
|
@@ -163,10 +121,8 @@
|
|
|
163
121
|
var(--ui-elevation-tooltip, var(--ui-shadow-md))
|
|
164
122
|
)
|
|
165
123
|
);
|
|
166
|
-
backdrop-filter: blur(calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 0.08) *
|
|
167
|
-
|
|
168
|
-
-webkit-backdrop-filter: blur(calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 0.08) * 18px))
|
|
169
|
-
saturate(calc(1 + var(--_ui-material-glassiness) * var(--_ui-material-scale, 0.08) * 0.18));
|
|
124
|
+
-webkit-backdrop-filter: blur(calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 0.08) * 32px));
|
|
125
|
+
backdrop-filter: blur(calc(var(--_ui-material-glassiness) * var(--_ui-material-scale, 0.08) * 32px));
|
|
170
126
|
}
|
|
171
127
|
|
|
172
128
|
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
|
|
@@ -178,8 +134,8 @@
|
|
|
178
134
|
@media (prefers-reduced-transparency: reduce) {
|
|
179
135
|
.surface {
|
|
180
136
|
background: var(--_ui-material-content-color);
|
|
181
|
-
backdrop-filter: none;
|
|
182
137
|
-webkit-backdrop-filter: none;
|
|
138
|
+
backdrop-filter: none;
|
|
183
139
|
}
|
|
184
140
|
}
|
|
185
141
|
|
|
@@ -188,8 +144,8 @@
|
|
|
188
144
|
background: Canvas;
|
|
189
145
|
border-color: CanvasText;
|
|
190
146
|
box-shadow: none;
|
|
191
|
-
backdrop-filter: none;
|
|
192
147
|
-webkit-backdrop-filter: none;
|
|
148
|
+
backdrop-filter: none;
|
|
193
149
|
}
|
|
194
150
|
}
|
|
195
151
|
|
|
@@ -6,38 +6,8 @@
|
|
|
6
6
|
<div class="actions"><slot name="actions"></slot></div>
|
|
7
7
|
</header>
|
|
8
8
|
<style>
|
|
9
|
-
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
10
|
-
@property --ui-top-bar-actions-gap {
|
|
11
|
-
syntax: "*";
|
|
12
|
-
inherits: false;
|
|
13
|
-
}
|
|
14
|
-
@property --ui-top-bar-border {
|
|
15
|
-
syntax: "*";
|
|
16
|
-
inherits: false;
|
|
17
|
-
}
|
|
18
|
-
@property --ui-top-bar-gap {
|
|
19
|
-
syntax: "*";
|
|
20
|
-
inherits: false;
|
|
21
|
-
}
|
|
22
|
-
@property --ui-top-bar-height {
|
|
23
|
-
syntax: "*";
|
|
24
|
-
inherits: false;
|
|
25
|
-
}
|
|
26
|
-
@property --ui-top-bar-padding-inline {
|
|
27
|
-
syntax: "*";
|
|
28
|
-
inherits: false;
|
|
29
|
-
}
|
|
30
|
-
@property --ui-top-bar-surface {
|
|
31
|
-
syntax: "*";
|
|
32
|
-
inherits: false;
|
|
33
|
-
}
|
|
34
|
-
@property --ui-top-bar-z-index {
|
|
35
|
-
syntax: "*";
|
|
36
|
-
inherits: false;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
9
|
:host {
|
|
40
|
-
/*
|
|
10
|
+
/* Resolve shared part values at the component root. */
|
|
41
11
|
--_ui-top-bar-actions-gap: var(--ui-top-bar-actions-gap);
|
|
42
12
|
|
|
43
13
|
position: sticky;
|
|
@@ -59,20 +59,6 @@
|
|
|
59
59
|
</defs>
|
|
60
60
|
<div role="tree"><slot></slot></div>
|
|
61
61
|
<style>
|
|
62
|
-
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
63
|
-
@property --ui-tree-drop-color {
|
|
64
|
-
syntax: "*";
|
|
65
|
-
inherits: false;
|
|
66
|
-
}
|
|
67
|
-
@property --ui-tree-gutter {
|
|
68
|
-
syntax: "*";
|
|
69
|
-
inherits: false;
|
|
70
|
-
}
|
|
71
|
-
@property --ui-tree-indent {
|
|
72
|
-
syntax: "*";
|
|
73
|
-
inherits: false;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
62
|
/* Reaches the items the way density does, so the setting lives on the tree the way a reader
|
|
77
63
|
thinks about it: this list scrolls its long names. */
|
|
78
64
|
:host([marquee]) {
|
|
@@ -87,8 +73,7 @@
|
|
|
87
73
|
}
|
|
88
74
|
|
|
89
75
|
:host {
|
|
90
|
-
/*
|
|
91
|
-
starts again from its own settings. */
|
|
76
|
+
/* Resolve tree hooks here and reset private density defaults for nested trees. */
|
|
92
77
|
--_ui-tree-indent: var(--ui-tree-indent);
|
|
93
78
|
--_ui-tree-drop-color: var(--ui-tree-drop-color);
|
|
94
79
|
--_ui-default-tree-item-marquee: initial;
|
|
@@ -120,30 +120,8 @@
|
|
|
120
120
|
<span class="drop-indicator subtree-drop-indicator" aria-hidden="true"></span>
|
|
121
121
|
</div>
|
|
122
122
|
<style>
|
|
123
|
-
/* This component's hooks style the element they are set on, and never a nested one. */
|
|
124
|
-
@property --ui-tree-item-depth {
|
|
125
|
-
syntax: "*";
|
|
126
|
-
inherits: false;
|
|
127
|
-
}
|
|
128
|
-
@property --ui-tree-item-font-size {
|
|
129
|
-
syntax: "*";
|
|
130
|
-
inherits: false;
|
|
131
|
-
}
|
|
132
|
-
@property --ui-tree-item-label-padding-block {
|
|
133
|
-
syntax: "*";
|
|
134
|
-
inherits: false;
|
|
135
|
-
}
|
|
136
|
-
@property --ui-tree-item-label-padding-inline {
|
|
137
|
-
syntax: "*";
|
|
138
|
-
inherits: false;
|
|
139
|
-
}
|
|
140
|
-
@property --ui-tree-item-min-block-size {
|
|
141
|
-
syntax: "*";
|
|
142
|
-
inherits: false;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
123
|
:host {
|
|
146
|
-
/*
|
|
124
|
+
/* Resolve shared part values at the root. The tree's density
|
|
147
125
|
sets the defaults, in --_ui-default-*. */
|
|
148
126
|
--_ui-tree-item-min-block-size: var(--ui-tree-item-min-block-size, var(--_ui-default-tree-item-min-block-size));
|
|
149
127
|
--_ui-tree-item-font-size: var(--ui-tree-item-font-size, var(--_ui-default-tree-item-font-size));
|