@threadlabs/looma 0.42.0 → 0.43.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +36 -81
- package/components/ui-callout/ui-callout.html +30 -68
- package/components/ui-card/ui-card.html +47 -21
- package/components/ui-checkbox/ui-checkbox.html +1 -15
- 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 +1 -31
- package/components/ui-disclosure/ui-disclosure.html +1 -15
- package/components/ui-editor-mention-menu/ui-editor-mention-menu.js +3 -0
- package/components/ui-editor-slash-menu/ui-editor-slash-menu.js +4 -0
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +3 -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 +52 -87
- package/components/ui-input/ui-input.html +5 -55
- package/components/ui-input-group/ui-input-group.html +1 -13
- 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 +0 -22
- package/components/ui-menu-item/ui-menu-item.html +0 -26
- 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 +0 -30
- package/components/ui-radio/ui-radio.html +7 -13
- 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-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-swatch/ui-swatch.html +0 -5
- package/components/ui-switch/ui-switch.html +1 -15
- package/components/ui-switcher/ui-switcher.html +1 -11
- package/components/ui-tabs/ui-tabs.html +1 -19
- package/components/ui-text/ui-text.html +19 -6
- 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 +1 -43
- 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 +13 -11
- package/docs/card.html +2 -6
- package/docs/card.js +7 -37
- package/docs/catalog.json +821 -202
- package/docs/catalog.mjs +1 -1
- package/docs/customizer-render.mjs +27 -14
- package/docs/customizer.js +42 -9
- package/docs/documentation.css +3 -7
- package/docs/examples/ui-button/examples/08-loading.behavior.js +1 -1
- package/docs/examples/ui-checkbox/examples/02-checked-indeterminate-and-disabled.behavior.js +1 -1
- package/docs/examples/ui-editor-mention-menu/examples/00-preview.behavior.js +1 -0
- package/docs/examples/ui-editor-slash-menu/examples/00-preview.behavior.js +81 -0
- package/docs/examples/ui-editor-table-overlay/examples/00-preview.behavior.js +24 -0
- package/docs/examples/ui-search-shell/examples/00-preview.behavior.js +14 -0
- package/docs/examples/ui-search-shell/examples/02-label-dismissible-status-and-footer.behavior.js +7 -7
- package/docs/examples/ui-toast/examples/01-authored.behavior.js +2 -2
- package/docs/index.d.ts +1 -1
- package/docs/local-server.mjs +2 -5
- package/docs/palette.mjs +5 -4
- package/docs/pastoral.svg +54 -0
- package/docs/portrait.svg +15 -0
- package/docs/render.mjs +33 -3
- package/docs/site.mjs +22 -54
- package/docs/theme.mjs +97 -35
- 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 +35 -83
- package/styles/ui-callout.css +32 -72
- package/styles/ui-card.css +42 -18
- package/styles/ui-checkbox.css +3 -19
- 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 +5 -67
- package/styles/ui-disclosure.css +3 -19
- package/styles/ui-editor-table-overlay.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 +51 -89
- 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-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 +2 -30
- package/styles/ui-menu.css +2 -26
- package/styles/ui-meter.css +8 -4
- package/styles/ui-nav-item.css +2 -22
- package/styles/ui-popover.css +2 -34
- package/styles/ui-radio-group.css +1 -6
- package/styles/ui-radio.css +9 -17
- 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-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-swatch.css +1 -6
- package/styles/ui-switch.css +3 -19
- package/styles/ui-switcher.css +2 -14
- package/styles/ui-tabs.css +3 -23
- package/styles/ui-text.css +10 -2
- 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 +3 -47
- 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 +6 -2
- package/tokens.css +55 -21
- 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/UiEditorTableOverlay.js +50 -36
- 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 +78 -97
- package/vue/UiCallout.vue +30 -71
- package/vue/UiCard.d.ts +2 -2
- package/vue/UiCard.vue +77 -26
- package/vue/UiCheckbox.vue +1 -15
- 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 +3 -33
- package/vue/UiDisclosure.vue +1 -15
- package/vue/UiEditorTableOverlay.d.ts +11 -1
- package/vue/UiEditorTableOverlay.vue +100 -65
- 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 +103 -99
- package/vue/UiInput.vue +1 -54
- package/vue/UiInputGroup.vue +8 -20
- package/vue/UiList.vue +2 -12
- package/vue/UiListItem.vue +8 -26
- package/vue/UiListbox.vue +0 -23
- package/vue/UiMenu.vue +1 -23
- package/vue/UiMenuItem.vue +0 -26
- package/vue/UiMeter.d.ts +2 -2
- package/vue/UiMeter.vue +47 -12
- package/vue/UiNavItem.vue +3 -21
- package/vue/UiPopover.vue +1 -32
- package/vue/UiRadio.vue +1 -11
- 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/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/UiSwatch.vue +1 -6
- package/vue/UiSwitch.vue +1 -15
- package/vue/UiSwitcher.vue +1 -14
- package/vue/UiTabs.vue +1 -19
- package/vue/UiText.d.ts +2 -2
- package/vue/UiText.vue +29 -4
- package/vue/UiTextarea.vue +0 -50
- package/vue/UiToast.vue +26 -34
- package/vue/UiToastRegion.vue +26 -55
- package/vue/UiTooltip.vue +1 -43
- 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/UiEditorTableOverlay.js +41 -13
- 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/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/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/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 +633 -2068
- package/vue/editor/index.js +7 -1
- package/docs/preview.js +0 -22
package/styles/ui-meter.css
CHANGED
|
@@ -10,10 +10,6 @@
|
|
|
10
10
|
/* How far along something is: a track, filled from the start in the tone's colour. The track is a
|
|
11
11
|
quiet border colour, so an empty meter still shows; every tone's fill keeps 3:1 against the
|
|
12
12
|
track and the page. */
|
|
13
|
-
@property --ui-meter-inline-size {
|
|
14
|
-
syntax: "*";
|
|
15
|
-
inherits: false;
|
|
16
|
-
}
|
|
17
13
|
|
|
18
14
|
:scope:where([data-component~="ui-meter"]) {
|
|
19
15
|
--_meter-fill: var(--ui-text-muted);
|
|
@@ -45,6 +41,14 @@
|
|
|
45
41
|
box-shadow: inset 0 1px rgb(255 255 255 / 0.26), inset 0 -1px rgb(0 0 0 / 0.1);
|
|
46
42
|
}
|
|
47
43
|
|
|
44
|
+
:scope:where([data-component~="ui-meter"])[data-ui-meter-state~="tone=accent-secondary"] {
|
|
45
|
+
--_meter-fill: var(--ui-accent-secondary-solid);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:scope:where([data-component~="ui-meter"])[data-ui-meter-state~="tone=accent-tertiary"] {
|
|
49
|
+
--_meter-fill: var(--ui-accent-tertiary-solid);
|
|
50
|
+
}
|
|
51
|
+
|
|
48
52
|
:scope:where([data-component~="ui-meter"])[data-ui-meter-state~="tone=accent"] {
|
|
49
53
|
--_meter-fill: var(--ui-accent-solid);
|
|
50
54
|
}
|
package/styles/ui-nav-item.css
CHANGED
|
@@ -7,25 +7,7 @@
|
|
|
7
7
|
[data-component~="ui-nav-item"] { --html-next-scope-owner: "ui-nav-item" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-nav-item"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
/*
|
|
11
|
-
@property --ui-nav-item-current-surface {
|
|
12
|
-
syntax: "*";
|
|
13
|
-
inherits: false;
|
|
14
|
-
}
|
|
15
|
-
@property --ui-nav-item-indicator-color {
|
|
16
|
-
syntax: "*";
|
|
17
|
-
inherits: false;
|
|
18
|
-
}
|
|
19
|
-
@property --ui-nav-item-indicator-width {
|
|
20
|
-
syntax: "*";
|
|
21
|
-
inherits: false;
|
|
22
|
-
}
|
|
23
|
-
@property --ui-nav-item-inline-size {
|
|
24
|
-
syntax: "*";
|
|
25
|
-
inherits: false;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/* One destination in a side or rail navigation: an icon to find it by (leading), its name (the
|
|
10
|
+
/* One destination in a side or rail navigation: an icon to find it by (leading), its name (the
|
|
29
11
|
default slot), and an optional line under it (description), such as the record a section
|
|
30
12
|
belongs to. Label and description are one line each and end in an ellipsis, so every item in a
|
|
31
13
|
navigation has the same height and the rail never grows sideways. */
|
|
@@ -179,9 +161,7 @@
|
|
|
179
161
|
}
|
|
180
162
|
}
|
|
181
163
|
@scope ([data-component~="ui-nav-item"]) to ([data-component]) {
|
|
182
|
-
/*
|
|
183
|
-
|
|
184
|
-
/* One destination in a side or rail navigation: an icon to find it by (leading), its name (the
|
|
164
|
+
/* One destination in a side or rail navigation: an icon to find it by (leading), its name (the
|
|
185
165
|
default slot), and an optional line under it (description), such as the record a section
|
|
186
166
|
belongs to. Label and description are one line each and end in an ellipsis, so every item in a
|
|
187
167
|
navigation has the same height and the rail never grows sideways. */
|
package/styles/ui-popover.css
CHANGED
|
@@ -7,37 +7,7 @@
|
|
|
7
7
|
[data-component~="ui-popover"] { --html-next-scope-owner: "ui-popover" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-popover"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
|
|
11
|
-
@property --ui-popover-surface {
|
|
12
|
-
syntax: "*";
|
|
13
|
-
inherits: false;
|
|
14
|
-
}
|
|
15
|
-
@property --ui-popover-border {
|
|
16
|
-
syntax: "*";
|
|
17
|
-
inherits: false;
|
|
18
|
-
}
|
|
19
|
-
@property --ui-popover-radius {
|
|
20
|
-
syntax: "*";
|
|
21
|
-
inherits: false;
|
|
22
|
-
}
|
|
23
|
-
@property --ui-popover-shadow {
|
|
24
|
-
syntax: "*";
|
|
25
|
-
inherits: false;
|
|
26
|
-
}
|
|
27
|
-
@property --ui-popover-viewport-gap {
|
|
28
|
-
syntax: "*";
|
|
29
|
-
inherits: false;
|
|
30
|
-
}
|
|
31
|
-
@property --ui-popover-offset {
|
|
32
|
-
syntax: "*";
|
|
33
|
-
inherits: false;
|
|
34
|
-
}
|
|
35
|
-
@property --ui-popover-padding {
|
|
36
|
-
syntax: "*";
|
|
37
|
-
inherits: false;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
:scope:where([data-component~="ui-popover"]) {
|
|
10
|
+
:scope:where([data-component~="ui-popover"]) {
|
|
41
11
|
--_ui-material-scale: 0.55;
|
|
42
12
|
--_ui-popover-surface: var(--ui-popover-surface);
|
|
43
13
|
--_ui-popover-border: var(--ui-popover-border);
|
|
@@ -194,9 +164,7 @@
|
|
|
194
164
|
}
|
|
195
165
|
}
|
|
196
166
|
@scope ([data-component~="ui-popover"]) to ([data-component]) {
|
|
197
|
-
/*
|
|
198
|
-
|
|
199
|
-
/* Purpose and measured size shape one shared separation lever. The content plane stays opaque;
|
|
167
|
+
/* Purpose and measured size shape one shared separation lever. The content plane stays opaque;
|
|
200
168
|
transparency, frosting and edge light belong to the surrounding decorative material. */
|
|
201
169
|
|
|
202
170
|
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
|
|
@@ -7,12 +7,7 @@
|
|
|
7
7
|
[data-component~="ui-radio-group"] { --html-next-scope-owner: "ui-radio-group" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-radio-group"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
|
|
11
|
-
syntax: "*";
|
|
12
|
-
inherits: false;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
:scope:where([data-component~="ui-radio-group"]) {
|
|
10
|
+
:scope:where([data-component~="ui-radio-group"]) {
|
|
16
11
|
--_ui-radio-group-invalid-text: var(--ui-radio-group-invalid-text, var(--ui-field-danger, var(--ui-danger-solid)));
|
|
17
12
|
display: inline-flex !important;
|
|
18
13
|
align-items: center !important;
|
package/styles/ui-radio.css
CHANGED
|
@@ -7,18 +7,8 @@
|
|
|
7
7
|
[data-component~="ui-radio"] { --html-next-scope-owner: "ui-radio" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-radio"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
syntax: "*";
|
|
13
|
-
inherits: false;
|
|
14
|
-
}
|
|
15
|
-
@property --ui-radio-size {
|
|
16
|
-
syntax: "*";
|
|
17
|
-
inherits: false;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
:scope:where([data-component~="ui-radio"]) {
|
|
21
|
-
/* Hooks do not inherit, so the parts below read them from the root. */
|
|
10
|
+
:scope:where([data-component~="ui-radio"]) {
|
|
11
|
+
/* Resolve shared part values at the component root. */
|
|
22
12
|
--_ui-radio-size: var(--ui-radio-size, var(--ui-choice-mark-size));
|
|
23
13
|
|
|
24
14
|
display: inline-flex !important;
|
|
@@ -129,7 +119,9 @@
|
|
|
129
119
|
}
|
|
130
120
|
|
|
131
121
|
@media (prefers-reduced-motion: reduce) {
|
|
132
|
-
input:where(:not([data-component], [data-slotted]))::after {
|
|
122
|
+
input:where(:not([data-component], [data-slotted]))::after {
|
|
123
|
+
transition: none;
|
|
124
|
+
}
|
|
133
125
|
}
|
|
134
126
|
|
|
135
127
|
@media (forced-colors: active) {
|
|
@@ -139,7 +131,9 @@
|
|
|
139
131
|
background: none;
|
|
140
132
|
box-shadow: none;
|
|
141
133
|
}
|
|
142
|
-
input:where(:not([data-component], [data-slotted]))::after {
|
|
134
|
+
input:where(:not([data-component], [data-slotted]))::after {
|
|
135
|
+
display: none !important;
|
|
136
|
+
}
|
|
143
137
|
}
|
|
144
138
|
|
|
145
139
|
/* A sized choice keeps its box and aligns instead: the label takes that size's field type size,
|
|
@@ -168,9 +162,7 @@
|
|
|
168
162
|
}
|
|
169
163
|
}
|
|
170
164
|
@scope ([data-component~="ui-radio"]) to ([data-component]) {
|
|
171
|
-
/*
|
|
172
|
-
|
|
173
|
-
/* The label, and under it an optional line saying what the choice means. */
|
|
165
|
+
/* The label, and under it an optional line saying what the choice means. */
|
|
174
166
|
|
|
175
167
|
/* The native radio retains grouping, validation and keyboard behavior.
|
|
176
168
|
Its empty well recedes; the filled selection and its dot stay crisp. */
|
package/styles/ui-reel.css
CHANGED
|
@@ -7,17 +7,7 @@
|
|
|
7
7
|
[data-component~="ui-reel"] { --html-next-scope-owner: "ui-reel" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-reel"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
|
|
11
|
-
@property --ui-reel-gap {
|
|
12
|
-
syntax: "*";
|
|
13
|
-
inherits: false;
|
|
14
|
-
}
|
|
15
|
-
@property --ui-reel-item-width {
|
|
16
|
-
syntax: "*";
|
|
17
|
-
inherits: false;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
:scope:where([data-component~="ui-reel"]) {
|
|
10
|
+
:scope:where([data-component~="ui-reel"]) {
|
|
21
11
|
--_reel-gap: var(--ui-space-4);
|
|
22
12
|
--_reel-item-width: max-content;
|
|
23
13
|
/* Sizes its children from its own box: one row of columns, each the item width, that never
|
|
@@ -94,9 +84,7 @@
|
|
|
94
84
|
}
|
|
95
85
|
}
|
|
96
86
|
@scope ([data-component~="ui-reel"]) to ([data-component]) {
|
|
97
|
-
/*
|
|
98
|
-
|
|
99
|
-
/* Each end that hides items fades: the scroll fade every Looma scroller uses (see ui-scroll-area). */
|
|
87
|
+
/* Each end that hides items fades: the scroll fade every Looma scroller uses (see ui-scroll-area). */
|
|
100
88
|
:scope:where([data-component~="ui-reel"])[data-ui-reel-state~="snap=start"] > :where([data-slotted], [data-slotted] *):is(*) {
|
|
101
89
|
scroll-snap-align: start;
|
|
102
90
|
}
|
|
@@ -7,41 +7,7 @@
|
|
|
7
7
|
[data-component~="ui-search-result-row"] { --html-next-scope-owner: "ui-search-result-row" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-search-result-row"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
|
|
11
|
-
@property --ui-search-result-row-border {
|
|
12
|
-
syntax: "*";
|
|
13
|
-
inherits: false;
|
|
14
|
-
}
|
|
15
|
-
@property --ui-search-result-row-gap {
|
|
16
|
-
syntax: "*";
|
|
17
|
-
inherits: false;
|
|
18
|
-
}
|
|
19
|
-
@property --ui-search-result-row-hover-surface {
|
|
20
|
-
syntax: "*";
|
|
21
|
-
inherits: false;
|
|
22
|
-
}
|
|
23
|
-
@property --ui-search-result-row-min-height {
|
|
24
|
-
syntax: "*";
|
|
25
|
-
inherits: false;
|
|
26
|
-
}
|
|
27
|
-
@property --ui-search-result-row-padding-block {
|
|
28
|
-
syntax: "*";
|
|
29
|
-
inherits: false;
|
|
30
|
-
}
|
|
31
|
-
@property --ui-search-result-row-padding-inline {
|
|
32
|
-
syntax: "*";
|
|
33
|
-
inherits: false;
|
|
34
|
-
}
|
|
35
|
-
@property --ui-search-result-row-selected-bg {
|
|
36
|
-
syntax: "*";
|
|
37
|
-
inherits: false;
|
|
38
|
-
}
|
|
39
|
-
@property --ui-search-result-row-surface {
|
|
40
|
-
syntax: "*";
|
|
41
|
-
inherits: false;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
:scope:where([data-component~="ui-search-result-row"]) {
|
|
10
|
+
:scope:where([data-component~="ui-search-result-row"]) {
|
|
45
11
|
appearance: none;
|
|
46
12
|
inline-size: 100%;
|
|
47
13
|
min-block-size: var(--ui-search-result-row-min-height, 56px);
|
|
@@ -145,9 +111,7 @@
|
|
|
145
111
|
}
|
|
146
112
|
}
|
|
147
113
|
@scope ([data-component~="ui-search-result-row"]) to ([data-component]) {
|
|
148
|
-
/*
|
|
149
|
-
|
|
150
|
-
/* Slot wrappers own their line boxes even when an app makes buttons inherit body typography. */
|
|
114
|
+
/* Slot wrappers own their line boxes even when an app makes buttons inherit body typography. */
|
|
151
115
|
|
|
152
116
|
/* An unused region takes no space. */
|
|
153
117
|
|
|
@@ -7,50 +7,8 @@
|
|
|
7
7
|
[data-component~="ui-search-shell"] { --html-next-scope-owner: "ui-search-shell" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-search-shell"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
syntax: "*";
|
|
13
|
-
inherits: false;
|
|
14
|
-
}
|
|
15
|
-
@property --ui-search-shell-focus-color {
|
|
16
|
-
syntax: "*";
|
|
17
|
-
inherits: false;
|
|
18
|
-
}
|
|
19
|
-
@property --ui-search-shell-max-height {
|
|
20
|
-
syntax: "*";
|
|
21
|
-
inherits: false;
|
|
22
|
-
}
|
|
23
|
-
@property --ui-search-shell-max-width {
|
|
24
|
-
syntax: "*";
|
|
25
|
-
inherits: false;
|
|
26
|
-
}
|
|
27
|
-
@property --ui-search-shell-padding-top {
|
|
28
|
-
syntax: "*";
|
|
29
|
-
inherits: false;
|
|
30
|
-
}
|
|
31
|
-
@property --ui-search-shell-radius {
|
|
32
|
-
syntax: "*";
|
|
33
|
-
inherits: false;
|
|
34
|
-
}
|
|
35
|
-
@property --ui-search-shell-shadow {
|
|
36
|
-
syntax: "*";
|
|
37
|
-
inherits: false;
|
|
38
|
-
}
|
|
39
|
-
@property --ui-search-shell-surface {
|
|
40
|
-
syntax: "*";
|
|
41
|
-
inherits: false;
|
|
42
|
-
}
|
|
43
|
-
@property --ui-search-shell-viewport-gap {
|
|
44
|
-
syntax: "*";
|
|
45
|
-
inherits: false;
|
|
46
|
-
}
|
|
47
|
-
@property --ui-search-shell-z-index {
|
|
48
|
-
syntax: "*";
|
|
49
|
-
inherits: false;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
:scope:where([data-component~="ui-search-shell"]) {
|
|
53
|
-
/* Hooks do not inherit, so the parts below read them from the root. */
|
|
10
|
+
:scope:where([data-component~="ui-search-shell"]) {
|
|
11
|
+
/* Resolve shared part values at the component root. */
|
|
54
12
|
--_ui-search-shell-z-index: var(--ui-search-shell-z-index);
|
|
55
13
|
--_ui-search-shell-padding-top: var(--ui-search-shell-padding-top);
|
|
56
14
|
--_ui-search-shell-viewport-gap: var(--ui-search-shell-viewport-gap);
|
|
@@ -184,9 +142,7 @@
|
|
|
184
142
|
}
|
|
185
143
|
}
|
|
186
144
|
@scope ([data-component~="ui-search-shell"]) to ([data-component]) {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
:where([data-slotted], [data-slotted] *):is(input[slot="search"]) {
|
|
145
|
+
:where([data-slotted], [data-slotted] *):is(input[slot="search"]) {
|
|
190
146
|
box-sizing: border-box !important;
|
|
191
147
|
inline-size: 100%;
|
|
192
148
|
min-block-size: var(--ui-control-min-block-size);
|
package/styles/ui-select.css
CHANGED
|
@@ -7,49 +7,7 @@
|
|
|
7
7
|
[data-component~="ui-select"] { --html-next-scope-owner: "ui-select" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-select"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
|
|
11
|
-
@property --ui-select-border {
|
|
12
|
-
syntax: "*";
|
|
13
|
-
inherits: false;
|
|
14
|
-
}
|
|
15
|
-
@property --ui-select-border-hover {
|
|
16
|
-
syntax: "*";
|
|
17
|
-
inherits: false;
|
|
18
|
-
}
|
|
19
|
-
@property --ui-select-focus-border {
|
|
20
|
-
syntax: "*";
|
|
21
|
-
inherits: false;
|
|
22
|
-
}
|
|
23
|
-
@property --ui-select-focus-shadow {
|
|
24
|
-
syntax: "*";
|
|
25
|
-
inherits: false;
|
|
26
|
-
}
|
|
27
|
-
@property --ui-select-inline-size {
|
|
28
|
-
syntax: "*";
|
|
29
|
-
inherits: false;
|
|
30
|
-
}
|
|
31
|
-
@property --ui-select-invalid-border {
|
|
32
|
-
syntax: "*";
|
|
33
|
-
inherits: false;
|
|
34
|
-
}
|
|
35
|
-
@property --ui-select-invalid-focus-shadow {
|
|
36
|
-
syntax: "*";
|
|
37
|
-
inherits: false;
|
|
38
|
-
}
|
|
39
|
-
@property --ui-select-radius {
|
|
40
|
-
syntax: "*";
|
|
41
|
-
inherits: false;
|
|
42
|
-
}
|
|
43
|
-
@property --ui-select-shadow {
|
|
44
|
-
syntax: "*";
|
|
45
|
-
inherits: false;
|
|
46
|
-
}
|
|
47
|
-
@property --ui-select-surface {
|
|
48
|
-
syntax: "*";
|
|
49
|
-
inherits: false;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
:scope:where([data-component~="ui-select"]) {
|
|
10
|
+
:scope:where([data-component~="ui-select"]) {
|
|
53
11
|
--_ui-select-size: var(--ui-control-size-md);
|
|
54
12
|
--_ui-select-inset-block: var(--ui-control-inset-block-md, var(--ui-space-2));
|
|
55
13
|
box-sizing: border-box !important;
|
|
@@ -167,9 +125,7 @@
|
|
|
167
125
|
}
|
|
168
126
|
}
|
|
169
127
|
@scope ([data-component~="ui-select"]) to ([data-component]) {
|
|
170
|
-
/*
|
|
171
|
-
|
|
172
|
-
/* The select draws its own chevron: the native caret cannot be inset or sized consistently.
|
|
128
|
+
/* The select draws its own chevron: the native caret cannot be inset or sized consistently.
|
|
173
129
|
* The root stays a native <s-lect>, so the icon is a background image rather than an element. */
|
|
174
130
|
:scope:where([data-component~="ui-select"])[data-ui-select-state~="muted"] :where([data-slotted], [data-slotted] *):is(option),
|
|
175
131
|
:scope:where([data-component~="ui-select"])[data-ui-select-state~="muted"] :where([data-slotted], [data-slotted] *):is(optgroup) {
|
package/styles/ui-separator.css
CHANGED
|
@@ -7,13 +7,7 @@
|
|
|
7
7
|
[data-component~="ui-separator"] { --html-next-scope-owner: "ui-separator" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-separator"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
/*
|
|
11
|
-
@property --ui-separator-color {
|
|
12
|
-
syntax: "*";
|
|
13
|
-
inherits: false;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/* The root is the hr, so the rules name :host; a bare hr matches only a descendant. */
|
|
10
|
+
/* The root is the hr, so the rules name :host; a bare hr matches only a descendant. */
|
|
17
11
|
:scope:where([data-component~="ui-separator"]) {
|
|
18
12
|
box-sizing: border-box !important;
|
|
19
13
|
align-self: stretch;
|
|
@@ -49,7 +43,5 @@
|
|
|
49
43
|
}
|
|
50
44
|
}
|
|
51
45
|
@scope ([data-component~="ui-separator"]) to ([data-component]) {
|
|
52
|
-
/*
|
|
53
|
-
|
|
54
|
-
/* The root is the hr, so the rules name :host; a bare hr matches only a descendant. */
|
|
46
|
+
/* The root is the hr, so the rules name :host; a bare hr matches only a descendant. */
|
|
55
47
|
}
|
package/styles/ui-sidebar.css
CHANGED
|
@@ -7,30 +7,8 @@
|
|
|
7
7
|
[data-component~="ui-sidebar"] { --html-next-scope-owner: "ui-sidebar" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-sidebar"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
syntax: "*";
|
|
13
|
-
inherits: false;
|
|
14
|
-
}
|
|
15
|
-
@property --ui-sidebar-border {
|
|
16
|
-
syntax: "*";
|
|
17
|
-
inherits: false;
|
|
18
|
-
}
|
|
19
|
-
@property --ui-sidebar-surface {
|
|
20
|
-
syntax: "*";
|
|
21
|
-
inherits: false;
|
|
22
|
-
}
|
|
23
|
-
@property --ui-sidebar-width {
|
|
24
|
-
syntax: "*";
|
|
25
|
-
inherits: false;
|
|
26
|
-
}
|
|
27
|
-
@property --ui-sidebar-collapsed-width {
|
|
28
|
-
syntax: "*";
|
|
29
|
-
inherits: false;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
:scope:where([data-component~="ui-sidebar"]) {
|
|
33
|
-
/* Hooks do not inherit, so the parts below read them from the root. */
|
|
10
|
+
:scope:where([data-component~="ui-sidebar"]) {
|
|
11
|
+
/* Resolve shared part values at the component root. */
|
|
34
12
|
--_ui-sidebar-backdrop: var(--ui-sidebar-backdrop);
|
|
35
13
|
--_ui-sidebar-expanded-width: var(--_sidebar-width, var(--ui-sidebar-width, 280px));
|
|
36
14
|
|
|
@@ -129,7 +107,7 @@
|
|
|
129
107
|
inset-inline-start: 3px;
|
|
130
108
|
inline-size: 2px;
|
|
131
109
|
background: color-mix(in srgb, var(--ui-affordance-guide-color, var(--ui-border-strong)) 45%, transparent);
|
|
132
|
-
opacity: calc(var(--ui-affordance-guide-opacity) * var(--
|
|
110
|
+
opacity: calc(var(--ui-affordance-guide-opacity) * var(--_ui-affordance-scope-guide, 1));
|
|
133
111
|
transition:
|
|
134
112
|
background-color var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease),
|
|
135
113
|
opacity var(--ui-affordance-motion, var(--ui-motion-fast)) var(--ui-motion-ease);
|
|
@@ -224,9 +202,7 @@
|
|
|
224
202
|
}
|
|
225
203
|
}
|
|
226
204
|
@scope ([data-component~="ui-sidebar"]) to ([data-component]) {
|
|
227
|
-
/*
|
|
228
|
-
|
|
229
|
-
/* The panel's content scrolls, and each edge that hides content fades: the scroll fade every
|
|
205
|
+
/* The panel's content scrolls, and each edge that hides content fades: the scroll fade every
|
|
230
206
|
Looma scroller uses (see ui-scroll-area). */
|
|
231
207
|
|
|
232
208
|
/* Collapsed while docked. */
|
|
@@ -7,32 +7,7 @@
|
|
|
7
7
|
[data-component~="ui-site-header"] { --html-next-scope-owner: "ui-site-header" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-site-header"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
|
|
11
|
-
syntax: "*";
|
|
12
|
-
inherits: false;
|
|
13
|
-
}
|
|
14
|
-
@property --ui-site-header-compact-height {
|
|
15
|
-
syntax: "*";
|
|
16
|
-
inherits: false;
|
|
17
|
-
}
|
|
18
|
-
@property --ui-site-header-padding-inline {
|
|
19
|
-
syntax: "*";
|
|
20
|
-
inherits: false;
|
|
21
|
-
}
|
|
22
|
-
@property --ui-site-header-surface {
|
|
23
|
-
syntax: "*";
|
|
24
|
-
inherits: false;
|
|
25
|
-
}
|
|
26
|
-
@property --ui-site-header-border {
|
|
27
|
-
syntax: "*";
|
|
28
|
-
inherits: false;
|
|
29
|
-
}
|
|
30
|
-
@property --ui-site-header-z-index {
|
|
31
|
-
syntax: "*";
|
|
32
|
-
inherits: false;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
:scope:where([data-component~="ui-site-header"]) {
|
|
10
|
+
:scope:where([data-component~="ui-site-header"]) {
|
|
36
11
|
box-sizing: border-box !important;
|
|
37
12
|
display: flex !important;
|
|
38
13
|
flex-wrap: wrap !important;
|
package/styles/ui-skeleton.css
CHANGED
|
@@ -7,16 +7,7 @@
|
|
|
7
7
|
[data-component~="ui-skeleton"] { --html-next-scope-owner: "ui-skeleton" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-skeleton"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
|
|
11
|
-
@property --ui-skeleton-width {
|
|
12
|
-
syntax: "*";
|
|
13
|
-
inherits: false;
|
|
14
|
-
}
|
|
15
|
-
@property --ui-skeleton-height {
|
|
16
|
-
syntax: "*";
|
|
17
|
-
inherits: false;
|
|
18
|
-
}
|
|
19
|
-
@property --_ui-skeleton-viewport-x {
|
|
10
|
+
@property --_ui-skeleton-viewport-x {
|
|
20
11
|
syntax: "<length>";
|
|
21
12
|
inherits: false;
|
|
22
13
|
initial-value: 0px;
|
|
@@ -108,8 +99,7 @@
|
|
|
108
99
|
}
|
|
109
100
|
}
|
|
110
101
|
@scope ([data-component~="ui-skeleton"]) to ([data-component]) {
|
|
111
|
-
|
|
112
|
-
@media (prefers-reduced-motion: reduce) {
|
|
102
|
+
@media (prefers-reduced-motion: reduce) {
|
|
113
103
|
}
|
|
114
104
|
@media (forced-colors: active) {
|
|
115
105
|
}
|
package/styles/ui-stack.css
CHANGED
|
@@ -7,13 +7,7 @@
|
|
|
7
7
|
[data-component~="ui-stack"] { --html-next-scope-owner: "ui-stack" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-stack"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
|
|
11
|
-
@property --ui-stack-height {
|
|
12
|
-
syntax: "*";
|
|
13
|
-
inherits: false;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
@property --ui-stack-gap {
|
|
10
|
+
@property --_ui-stack-height {
|
|
17
11
|
syntax: "*";
|
|
18
12
|
inherits: false;
|
|
19
13
|
}
|
|
@@ -23,7 +17,7 @@
|
|
|
23
17
|
display: flex !important;
|
|
24
18
|
flex-direction: column !important;
|
|
25
19
|
align-items: stretch !important;
|
|
26
|
-
gap: var(--ui-stack-gap, var(--_layout-gap)) !important;
|
|
20
|
+
gap: var(--ui-stack-gap, calc(var(--_layout-gap) * clamp(0.75, var(--ui-rhythm, 1), 1.5))) !important;
|
|
27
21
|
min-inline-size: 0;
|
|
28
22
|
max-inline-size: 100%;
|
|
29
23
|
margin: 0 !important;
|
|
@@ -34,7 +28,7 @@
|
|
|
34
28
|
min-block-size: 0;
|
|
35
29
|
}
|
|
36
30
|
:scope:where([data-component~="ui-stack"])[data-ui-stack-state~="height"] {
|
|
37
|
-
block-size: calc(var(--
|
|
31
|
+
block-size: calc(var(--_ui-stack-height, 0) * 1px);
|
|
38
32
|
min-block-size: 0;
|
|
39
33
|
}
|
|
40
34
|
|
|
@@ -81,7 +75,5 @@
|
|
|
81
75
|
}
|
|
82
76
|
}
|
|
83
77
|
@scope ([data-component~="ui-stack"]) to ([data-component]) {
|
|
84
|
-
/*
|
|
85
|
-
|
|
86
|
-
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
78
|
+
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
87
79
|
}
|
package/styles/ui-swatch.css
CHANGED
|
@@ -7,12 +7,7 @@
|
|
|
7
7
|
[data-component~="ui-swatch"] { --html-next-scope-owner: "ui-swatch" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-swatch"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
|
|
11
|
-
syntax: "*";
|
|
12
|
-
inherits: false;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
/* A native radio drawn as a round dot. Inside a ui-radio-group the group names it, applies its
|
|
10
|
+
/* A native radio drawn as a round dot. Inside a ui-radio-group the group names it, applies its
|
|
16
11
|
value, and moves between swatches with the arrow keys. */
|
|
17
12
|
:scope:where([data-component~="ui-swatch"]) {
|
|
18
13
|
--_surface: var(--ui-surface-subtle);
|
package/styles/ui-switch.css
CHANGED
|
@@ -7,22 +7,8 @@
|
|
|
7
7
|
[data-component~="ui-switch"] { --html-next-scope-owner: "ui-switch" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-switch"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
syntax: "*";
|
|
13
|
-
inherits: false;
|
|
14
|
-
}
|
|
15
|
-
@property --ui-switch-track-height {
|
|
16
|
-
syntax: "*";
|
|
17
|
-
inherits: false;
|
|
18
|
-
}
|
|
19
|
-
@property --ui-switch-track-width {
|
|
20
|
-
syntax: "*";
|
|
21
|
-
inherits: false;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
:scope:where([data-component~="ui-switch"]) {
|
|
25
|
-
/* Hooks do not inherit, so the parts below read them from the root. */
|
|
10
|
+
:scope:where([data-component~="ui-switch"]) {
|
|
11
|
+
/* Resolve shared part values at the component root. */
|
|
26
12
|
--_ui-switch-track-width: var(--ui-switch-track-width, var(--ui-choice-track-width));
|
|
27
13
|
--_ui-switch-track-height: var(--ui-switch-track-height, var(--ui-choice-track-height));
|
|
28
14
|
|
|
@@ -175,9 +161,7 @@
|
|
|
175
161
|
}
|
|
176
162
|
}
|
|
177
163
|
@scope ([data-component~="ui-switch"]) to ([data-component]) {
|
|
178
|
-
/*
|
|
179
|
-
|
|
180
|
-
/* The label, and under it an optional line saying what the choice means. */
|
|
164
|
+
/* The label, and under it an optional line saying what the choice means. */
|
|
181
165
|
|
|
182
166
|
@media (prefers-reduced-motion: reduce) {
|
|
183
167
|
}
|
package/styles/ui-switcher.css
CHANGED
|
@@ -7,17 +7,7 @@
|
|
|
7
7
|
[data-component~="ui-switcher"] { --html-next-scope-owner: "ui-switcher" !important; }
|
|
8
8
|
}
|
|
9
9
|
@scope ([data-component~="ui-switcher"]) to ([data-component], [data-slotted]) {
|
|
10
|
-
|
|
11
|
-
@property --ui-switcher-gap {
|
|
12
|
-
syntax: "*";
|
|
13
|
-
inherits: false;
|
|
14
|
-
}
|
|
15
|
-
@property --ui-switcher-threshold {
|
|
16
|
-
syntax: "*";
|
|
17
|
-
inherits: false;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
:scope:where([data-component~="ui-switcher"]) {
|
|
10
|
+
:scope:where([data-component~="ui-switcher"]) {
|
|
21
11
|
--_switcher-gap: var(--ui-space-4);
|
|
22
12
|
--_switcher-threshold: 30rem;
|
|
23
13
|
--_switcher-track: clamp(1px, (var(--ui-switcher-threshold, var(--_switcher-threshold)) - 100%) * 999, 100%);
|
|
@@ -76,7 +66,5 @@
|
|
|
76
66
|
}
|
|
77
67
|
}
|
|
78
68
|
@scope ([data-component~="ui-switcher"]) to ([data-component]) {
|
|
79
|
-
/*
|
|
80
|
-
|
|
81
|
-
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
69
|
+
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
82
70
|
}
|