@threadlabs/looma 0.32.1 → 0.33.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/README.md +15 -0
- package/bin/looma-docs.mjs +3 -0
- package/components/shared/icons.js +1 -0
- package/components/shared/overlay.js +1 -1
- package/components/ui-action-bar/ui-action-bar.html +11 -11
- package/components/ui-affordance-scope/ui-affordance-scope.html +2 -2
- package/components/ui-avatar/ui-avatar.html +8 -8
- package/components/ui-avatar-group/ui-avatar-group.html +14 -14
- package/components/ui-avatar-group/ui-avatar-group.js +3 -2
- package/components/ui-badge/ui-badge.html +43 -43
- package/components/ui-breadcrumb-item/ui-breadcrumb-item.html +13 -13
- package/components/ui-breadcrumbs/ui-breadcrumbs.html +8 -8
- package/components/ui-button/ui-button.html +32 -29
- package/components/ui-callout/ui-callout.html +9 -9
- package/components/ui-card/ui-card.html +11 -11
- package/components/ui-checkbox/ui-checkbox.html +52 -33
- package/components/ui-cluster/ui-cluster.html +21 -21
- package/components/ui-color-picker/ui-color-picker.html +135 -0
- package/components/ui-color-picker/ui-color-picker.js +76 -0
- package/components/ui-combobox/ui-combobox.html +43 -43
- package/components/ui-container/ui-container.html +7 -7
- package/components/ui-context-menu/ui-context-menu.html +9 -9
- package/components/ui-cover/ui-cover.html +8 -8
- package/components/ui-description-item/ui-description-item.html +7 -7
- package/components/ui-description-list/ui-description-list.html +4 -4
- package/components/ui-dialog/ui-dialog.html +26 -26
- package/components/ui-disclosure/ui-disclosure.html +23 -23
- package/components/ui-editable/ui-editable.html +16 -16
- package/components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.html +9 -9
- package/components/ui-editor-link-form/ui-editor-link-form.html +1 -2
- package/components/ui-editor-mention-menu/ui-editor-mention-menu.html +23 -23
- package/components/ui-editor-mention-menu-item/ui-editor-mention-menu-item.html +10 -10
- package/components/ui-editor-slash-menu/ui-editor-slash-menu.html +29 -29
- package/components/ui-editor-slash-menu-group/ui-editor-slash-menu-group.html +5 -5
- package/components/ui-editor-slash-menu-item/ui-editor-slash-menu-item.html +11 -11
- package/components/ui-editor-surface/ui-editor-surface.html +2 -2
- package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +25 -25
- package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +13 -13
- package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +31 -31
- package/components/ui-editor-toolbar/ui-editor-toolbar.html +13 -13
- package/components/ui-floating-action-button/ui-floating-action-button.html +8 -8
- package/components/ui-form-field/ui-form-field.html +15 -15
- package/components/ui-form-field/ui-form-field.js +12 -4
- package/components/ui-grid/ui-grid.html +4 -4
- package/components/ui-icon/ui-icon.html +3 -2
- package/components/ui-icon-button/ui-icon-button.html +15 -14
- package/components/ui-image/ui-image.html +14 -14
- package/components/ui-input/ui-input.html +8 -8
- package/components/ui-input-group/ui-input-group.html +18 -18
- package/components/ui-list/ui-list.html +11 -11
- package/components/ui-list-item/ui-list-item.html +18 -18
- package/components/ui-listbox/ui-listbox.html +10 -10
- package/components/ui-menu/ui-menu.html +18 -17
- package/components/ui-menu-group/ui-menu-group.html +4 -4
- package/components/ui-menu-item/ui-menu-item.html +20 -20
- package/components/ui-meter/ui-meter.html +5 -5
- package/components/ui-nav-item/ui-nav-item.html +20 -20
- package/components/ui-page-header/ui-page-header.html +18 -17
- package/components/ui-popover/ui-popover.html +8 -8
- package/components/ui-radio/ui-radio.html +25 -17
- package/components/ui-radio-group/ui-radio-group.html +10 -10
- package/components/ui-reel/ui-reel.html +5 -5
- package/components/ui-scroll-area/ui-scroll-area.html +10 -10
- package/components/ui-search-result-row/ui-search-result-row.html +19 -19
- package/components/ui-search-shell/ui-search-shell.html +22 -22
- package/components/ui-section/ui-section.html +24 -23
- package/components/ui-select/ui-select.html +10 -10
- package/components/ui-separator/ui-separator.html +2 -2
- package/components/ui-sidebar/ui-sidebar.html +8 -8
- package/components/ui-spinner/ui-spinner.html +6 -6
- package/components/ui-stack/ui-stack.html +12 -12
- package/components/ui-status-message/ui-status-message.html +17 -17
- package/components/ui-swatch/ui-swatch.html +2 -2
- package/components/ui-switch/ui-switch.html +36 -26
- package/components/ui-switcher/ui-switcher.html +7 -7
- package/components/ui-table/ui-table.html +6 -6
- package/components/ui-tabs/ui-tabs.html +16 -15
- package/components/ui-text/ui-text.html +3 -2
- package/components/ui-textarea/ui-textarea.html +10 -10
- package/components/ui-toast/ui-toast.html +9 -9
- package/components/ui-toast-region/ui-toast-region.html +12 -12
- package/components/ui-tooltip/ui-tooltip.html +15 -15
- package/components/ui-top-bar/ui-top-bar.html +11 -11
- package/components/ui-tree/ui-tree.html +5 -5
- package/components/ui-tree-item/ui-tree-item.html +36 -36
- package/dist/index.js +46 -45
- package/docs/README.md +116 -0
- package/docs/card.html +63 -0
- package/docs/card.js +32 -0
- package/docs/catalog-view.js +18 -0
- package/docs/catalog-view.mjs +11 -0
- package/docs/catalog.json +22974 -0
- package/docs/catalog.mjs +131 -0
- package/docs/cli.mjs +26 -0
- package/docs/commands.mjs +94 -0
- package/docs/customizer-render.mjs +40 -0
- package/docs/customizer.js +118 -0
- package/docs/documentation.css +8 -0
- package/docs/examples/ui-action-bar/examples/01-form-footer.behavior.js +7 -0
- package/docs/examples/ui-button/examples/08-loading.behavior.js +21 -0
- package/docs/examples/ui-checkbox/examples/02-checked-indeterminate-and-disabled.behavior.js +30 -0
- package/docs/examples/ui-combobox/examples/06-selected-values.behavior.js +11 -0
- package/docs/examples/ui-search-shell/examples/02-label-dismissible-status-and-footer.behavior.js +34 -0
- package/docs/examples/ui-toast/examples/01-authored.behavior.js +15 -0
- package/docs/examples/ui-toast/examples/02-danger.behavior.js +2 -0
- package/docs/examples/ui-tree/examples/03-max-depth-2-and-hover-expand-delay-300.behavior.js +30 -0
- package/docs/examples/ui-tree/examples/06-move-without-dragging.behavior.js +2 -0
- package/docs/examples/ui-tree/examples/07-multiple-selection.behavior.js +16 -0
- package/docs/examples/ui-tree-item/examples/02-container.behavior.js +1 -0
- package/docs/index.d.ts +54 -0
- package/docs/index.mjs +4 -0
- package/docs/local-server.mjs +68 -0
- package/docs/preview.js +20 -0
- package/docs/reference.html +1 -0
- package/docs/reference.js +36 -0
- package/docs/render.mjs +84 -0
- package/docs/site.mjs +198 -0
- package/docs/store.mjs +92 -0
- package/docs/theme.mjs +100 -0
- package/docs/workspace.mjs +32 -0
- package/package.json +28 -3
- package/styles/ui-action-bar.css +11 -11
- package/styles/ui-affordance-scope.css +2 -2
- package/styles/ui-avatar-group.css +14 -14
- package/styles/ui-avatar.css +8 -8
- package/styles/ui-badge.css +41 -41
- package/styles/ui-breadcrumb-item.css +13 -13
- package/styles/ui-breadcrumbs.css +8 -8
- package/styles/ui-button.css +30 -28
- package/styles/ui-callout.css +9 -9
- package/styles/ui-card.css +11 -11
- package/styles/ui-checkbox.css +52 -33
- package/styles/ui-cluster.css +21 -21
- package/styles/ui-color-picker.css +120 -0
- package/styles/ui-combobox.css +86 -86
- package/styles/ui-container.css +7 -7
- package/styles/ui-context-menu.css +9 -9
- package/styles/ui-cover.css +8 -8
- package/styles/ui-description-item.css +7 -7
- package/styles/ui-description-list.css +4 -4
- package/styles/ui-dialog.css +52 -52
- package/styles/ui-disclosure.css +23 -23
- package/styles/ui-editable.css +16 -16
- package/styles/ui-editor-insert-table-grid.css +9 -9
- package/styles/ui-editor-mention-menu-item.css +10 -10
- package/styles/ui-editor-mention-menu.css +23 -23
- package/styles/ui-editor-slash-menu-group.css +5 -5
- package/styles/ui-editor-slash-menu-item.css +11 -11
- package/styles/ui-editor-slash-menu.css +29 -29
- package/styles/ui-editor-surface.css +2 -2
- package/styles/ui-editor-table-context-menu.css +25 -25
- package/styles/ui-editor-table-overlay.css +13 -13
- package/styles/ui-editor-table-toolbar.css +31 -31
- package/styles/ui-editor-toolbar.css +13 -13
- package/styles/ui-floating-action-button.css +8 -8
- package/styles/ui-form-field.css +13 -13
- package/styles/ui-grid.css +4 -4
- package/styles/ui-icon-button.css +13 -13
- package/styles/ui-icon.css +2 -2
- package/styles/ui-image.css +14 -14
- package/styles/ui-input-group.css +18 -18
- package/styles/ui-input.css +8 -8
- package/styles/ui-list-item.css +18 -18
- package/styles/ui-list.css +11 -11
- package/styles/ui-listbox.css +20 -20
- package/styles/ui-menu-group.css +4 -4
- package/styles/ui-menu-item.css +20 -20
- package/styles/ui-menu.css +16 -16
- package/styles/ui-meter.css +5 -5
- package/styles/ui-nav-item.css +20 -20
- package/styles/ui-page-header.css +18 -17
- package/styles/ui-popover.css +8 -8
- package/styles/ui-radio-group.css +10 -10
- package/styles/ui-radio.css +26 -18
- package/styles/ui-reel.css +5 -5
- package/styles/ui-scroll-area.css +10 -10
- package/styles/ui-search-result-row.css +19 -19
- package/styles/ui-search-shell.css +22 -22
- package/styles/ui-section.css +24 -23
- package/styles/ui-select.css +10 -10
- package/styles/ui-separator.css +2 -2
- package/styles/ui-sidebar.css +8 -8
- package/styles/ui-spinner.css +6 -6
- package/styles/ui-stack.css +12 -12
- package/styles/ui-status-message.css +17 -17
- package/styles/ui-swatch.css +2 -2
- package/styles/ui-switch.css +36 -28
- package/styles/ui-switcher.css +7 -7
- package/styles/ui-table.css +6 -6
- package/styles/ui-tabs.css +11 -11
- package/styles/ui-text.css +3 -2
- package/styles/ui-textarea.css +10 -10
- package/styles/ui-toast-region.css +24 -24
- package/styles/ui-toast.css +18 -18
- package/styles/ui-tooltip.css +15 -15
- package/styles/ui-top-bar.css +11 -11
- package/styles/ui-tree-item.css +71 -71
- package/styles/ui-tree.css +5 -5
- package/theme-system.css +80 -0
- package/tokens.css +14 -3
- package/vanilla/UiColorPicker.d.ts +30 -0
- package/vanilla/UiColorPicker.js +77 -0
- package/vanilla/UiIcon.js +1 -1
- package/vanilla/index.js +1 -0
- package/vue/UiActionBar.vue +11 -11
- package/vue/UiAffordanceScope.vue +2 -2
- package/vue/UiAvatar.vue +8 -8
- package/vue/UiAvatarGroup.vue +14 -14
- package/vue/UiBadge.vue +43 -42
- package/vue/UiBreadcrumbItem.vue +13 -13
- package/vue/UiBreadcrumbs.vue +8 -8
- package/vue/UiButton.vue +34 -29
- package/vue/UiCallout.vue +9 -9
- package/vue/UiCard.vue +11 -11
- package/vue/UiCheckbox.vue +57 -34
- package/vue/UiCluster.vue +21 -21
- package/vue/UiColorPicker.d.ts +65 -0
- package/vue/UiColorPicker.js +2 -0
- package/vue/UiColorPicker.vue +422 -0
- package/vue/UiCombobox.vue +86 -86
- package/vue/UiContainer.vue +7 -7
- package/vue/UiContextMenu.vue +9 -9
- package/vue/UiCover.vue +8 -8
- package/vue/UiDescriptionItem.vue +7 -7
- package/vue/UiDescriptionList.vue +4 -4
- package/vue/UiDialog.vue +52 -52
- package/vue/UiDisclosure.vue +23 -23
- package/vue/UiEditable.vue +16 -16
- package/vue/UiEditorInsertTableGrid.vue +9 -9
- package/vue/UiEditorMentionMenu.vue +23 -23
- package/vue/UiEditorMentionMenuItem.vue +10 -10
- package/vue/UiEditorSlashMenu.vue +29 -29
- package/vue/UiEditorSlashMenuGroup.vue +5 -5
- package/vue/UiEditorSlashMenuItem.vue +11 -11
- package/vue/UiEditorSurface.vue +2 -2
- package/vue/UiEditorTableContextMenu.vue +25 -25
- package/vue/UiEditorTableOverlay.vue +13 -13
- package/vue/UiEditorTableToolbar.vue +31 -31
- package/vue/UiEditorToolbar.vue +13 -13
- package/vue/UiFloatingActionButton.vue +8 -8
- package/vue/UiFormField.vue +14 -14
- package/vue/UiGrid.vue +4 -4
- package/vue/UiIcon.vue +6 -2
- package/vue/UiIconButton.vue +14 -14
- package/vue/UiImage.vue +14 -14
- package/vue/UiInput.vue +9 -8
- package/vue/UiInputGroup.vue +18 -18
- package/vue/UiList.vue +11 -11
- package/vue/UiListItem.vue +18 -18
- package/vue/UiListbox.vue +20 -20
- package/vue/UiMenu.vue +16 -16
- package/vue/UiMenuGroup.vue +4 -4
- package/vue/UiMenuItem.vue +20 -20
- package/vue/UiMeter.vue +5 -5
- package/vue/UiNavItem.vue +20 -20
- package/vue/UiPageHeader.vue +18 -17
- package/vue/UiPopover.vue +8 -8
- package/vue/UiRadio.vue +28 -17
- package/vue/UiRadioGroup.vue +10 -10
- package/vue/UiReel.vue +5 -5
- package/vue/UiScrollArea.vue +10 -10
- package/vue/UiSearchResultRow.vue +19 -19
- package/vue/UiSearchShell.vue +22 -22
- package/vue/UiSection.vue +24 -23
- package/vue/UiSelect.vue +11 -10
- package/vue/UiSeparator.vue +2 -2
- package/vue/UiSidebar.vue +8 -8
- package/vue/UiSpinner.vue +6 -6
- package/vue/UiStack.vue +12 -12
- package/vue/UiStatusMessage.vue +17 -17
- package/vue/UiSwatch.vue +2 -2
- package/vue/UiSwitch.vue +38 -25
- package/vue/UiSwitcher.vue +7 -7
- package/vue/UiTable.vue +6 -6
- package/vue/UiTabs.vue +13 -13
- package/vue/UiText.vue +3 -2
- package/vue/UiTextarea.vue +10 -10
- package/vue/UiToast.vue +18 -18
- package/vue/UiToastRegion.vue +24 -24
- package/vue/UiTooltip.vue +15 -15
- package/vue/UiTopBar.vue +11 -11
- package/vue/UiTree.vue +5 -5
- package/vue/UiTreeItem.vue +73 -71
- 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 +2 -2
- package/vue/chunks/UiBreadcrumbItem.js +1 -1
- package/vue/chunks/UiBreadcrumbs.js +1 -1
- package/vue/chunks/UiButton.js +2 -2
- package/vue/chunks/UiCallout.js +1 -1
- package/vue/chunks/UiCard.js +1 -1
- package/vue/chunks/UiCheckbox.js +1 -1
- package/vue/chunks/UiCluster.js +1 -1
- package/vue/chunks/UiColorPicker.js +326 -0
- package/vue/chunks/UiCombobox.js +1 -1
- package/vue/chunks/UiContainer.js +1 -1
- package/vue/chunks/UiContextMenu.js +1 -1
- package/vue/chunks/UiCover.js +1 -1
- package/vue/chunks/UiDescriptionItem.js +1 -1
- package/vue/chunks/UiDescriptionList.js +1 -1
- package/vue/chunks/UiDialog.js +1 -1
- package/vue/chunks/UiDisclosure.js +1 -1
- package/vue/chunks/UiEditable.js +1 -1
- package/vue/chunks/UiEditorImageToolbar.js +1 -1
- package/vue/chunks/UiEditorInsertTableGrid.js +1 -1
- package/vue/chunks/UiEditorLinkForm.js +1 -1
- package/vue/chunks/UiEditorMentionMenu.js +1 -1
- package/vue/chunks/UiEditorMentionMenuItem.js +1 -1
- package/vue/chunks/UiEditorSlashMenu.js +1 -1
- package/vue/chunks/UiEditorSlashMenuGroup.js +1 -1
- package/vue/chunks/UiEditorSlashMenuItem.js +1 -1
- package/vue/chunks/UiEditorSurface.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/UiEditorToolbar.js +1 -1
- package/vue/chunks/UiFloatingActionButton.js +1 -1
- package/vue/chunks/UiFormField.js +2 -2
- package/vue/chunks/UiGrid.js +1 -1
- package/vue/chunks/UiIcon.js +5 -1
- package/vue/chunks/UiIconButton.js +2 -2
- package/vue/chunks/UiImage.js +1 -1
- 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/UiMenuGroup.js +1 -1
- package/vue/chunks/UiMenuItem.js +1 -1
- package/vue/chunks/UiMeter.js +1 -1
- package/vue/chunks/UiNavItem.js +1 -1
- package/vue/chunks/UiPageHeader.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 +1 -1
- package/vue/chunks/UiScrollArea.js +1 -1
- 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/UiSpinner.js +1 -1
- package/vue/chunks/UiStack.js +1 -1
- 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 +1 -1
- package/vue/chunks/UiTable.js +1 -1
- package/vue/chunks/UiTabs.js +3 -3
- package/vue/chunks/UiText.js +1 -1
- 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 +1857 -1654
- package/vue/editor/index.js +28 -11
- package/vue/index.d.ts +1 -0
- package/vue/index.js +3 -2
package/styles/ui-section.css
CHANGED
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
/* A part of a view: a heading, an optional line under it, actions for the whole section at its
|
|
11
11
|
end, and the content. Sections space themselves out through the Stack around them. */
|
|
12
12
|
:scope:where([data-component~="ui-section"]) {
|
|
13
|
-
display: flex;
|
|
14
|
-
flex-direction: column;
|
|
15
|
-
gap: var(--ui-space-4);
|
|
13
|
+
display: flex !important;
|
|
14
|
+
flex-direction: column !important;
|
|
15
|
+
gap: var(--ui-space-4) !important;
|
|
16
16
|
min-inline-size: 0;
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
--_ui-selection-context-surface: initial;
|
|
21
21
|
--_ui-selection-context-border: initial;
|
|
22
22
|
--_ui-selection-context-text: initial;
|
|
23
|
-
padding: var(--ui-space-5);
|
|
23
|
+
padding: var(--ui-space-5) !important;
|
|
24
24
|
border: var(--ui-border-width) solid var(--ui-border-strong);
|
|
25
25
|
border-radius: var(--ui-radius-lg);
|
|
26
26
|
background: var(--ui-surface-raised);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
:scope:where([data-component~="ui-section"])[data-ui-section-state~="variant=divided"] {
|
|
30
|
-
padding-block-start: var(--ui-space-6);
|
|
30
|
+
padding-block-start: var(--ui-space-6) !important;
|
|
31
31
|
border-block-start: var(--ui-border-width) solid var(--ui-border-divider);
|
|
32
32
|
}
|
|
33
33
|
|
|
@@ -50,23 +50,24 @@
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
.head {
|
|
53
|
-
display: flex;
|
|
54
|
-
flex-wrap: wrap;
|
|
55
|
-
align-items: flex-start;
|
|
56
|
-
justify-content: space-between;
|
|
57
|
-
gap: var(--ui-space-2) var(--ui-space-4);
|
|
53
|
+
display: flex !important;
|
|
54
|
+
flex-wrap: wrap !important;
|
|
55
|
+
align-items: flex-start !important;
|
|
56
|
+
justify-content: space-between !important;
|
|
57
|
+
gap: var(--ui-space-2) var(--ui-space-4) !important;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
.copy {
|
|
61
|
-
display: flex;
|
|
61
|
+
display: flex !important;
|
|
62
62
|
flex: 1 1 16rem;
|
|
63
|
-
flex-direction: column;
|
|
64
|
-
gap: var(--ui-space-1);
|
|
63
|
+
flex-direction: column !important;
|
|
64
|
+
gap: var(--ui-space-1) !important;
|
|
65
65
|
min-inline-size: 0;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
.heading {
|
|
69
|
-
|
|
69
|
+
font-family: var(--ui-font-display, inherit);
|
|
70
|
+
margin: 0 !important;
|
|
70
71
|
color: var(--ui-text-primary);
|
|
71
72
|
font-size: var(--ui-font-size-lg);
|
|
72
73
|
font-weight: var(--ui-font-semibold);
|
|
@@ -84,30 +85,30 @@
|
|
|
84
85
|
}
|
|
85
86
|
|
|
86
87
|
.actions {
|
|
87
|
-
display: inline-flex;
|
|
88
|
-
flex-wrap: wrap;
|
|
89
|
-
gap: var(--ui-space-2);
|
|
88
|
+
display: inline-flex !important;
|
|
89
|
+
flex-wrap: wrap !important;
|
|
90
|
+
gap: var(--ui-space-2) !important;
|
|
90
91
|
}
|
|
91
92
|
|
|
92
93
|
.body {
|
|
93
|
-
display: flex;
|
|
94
|
-
flex-direction: column;
|
|
95
|
-
gap: var(--ui-space-4);
|
|
94
|
+
display: flex !important;
|
|
95
|
+
flex-direction: column !important;
|
|
96
|
+
gap: var(--ui-space-4) !important;
|
|
96
97
|
min-inline-size: 0;
|
|
97
98
|
}
|
|
98
99
|
|
|
99
100
|
.description:empty,
|
|
100
101
|
.actions:empty {
|
|
101
|
-
display: none;
|
|
102
|
+
display: none !important;
|
|
102
103
|
}
|
|
103
104
|
|
|
104
105
|
.head:has(.heading[hidden]):has(.description:empty):has(.actions:empty) {
|
|
105
|
-
display: none;
|
|
106
|
+
display: none !important;
|
|
106
107
|
}
|
|
107
108
|
|
|
108
109
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
109
110
|
:scope:where([data-component~="ui-section"])[hidden] {
|
|
110
|
-
display: none;
|
|
111
|
+
display: none !important;
|
|
111
112
|
}
|
|
112
113
|
}
|
|
113
114
|
@scope ([data-component~="ui-section"]) to ([data-component]) {
|
package/styles/ui-select.css
CHANGED
|
@@ -50,13 +50,13 @@
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
:scope:where([data-component~="ui-select"]) {
|
|
53
|
-
box-sizing: border-box;
|
|
54
|
-
display: inline-block;
|
|
53
|
+
box-sizing: border-box !important;
|
|
54
|
+
display: inline-block !important;
|
|
55
55
|
inline-size: var(--ui-select-inline-size, 100%);
|
|
56
56
|
min-inline-size: 0;
|
|
57
57
|
min-block-size: var(--ui-control-size-md);
|
|
58
|
-
margin: 0;
|
|
59
|
-
padding: var(--ui-space-2) var(--ui-space-3);
|
|
58
|
+
margin: 0 !important;
|
|
59
|
+
padding: var(--ui-control-inset-block-md, var(--ui-space-2)) var(--ui-space-3) !important;
|
|
60
60
|
border: var(--ui-border-width) solid var(--ui-select-border, var(--ui-control-border, var(--ui-border-strong)));
|
|
61
61
|
border-radius: var(--ui-select-radius, var(--ui-field-radius, var(--ui-radius-md)));
|
|
62
62
|
background-color: var(--ui-select-surface, var(--ui-control-surface, var(--ui-surface-elevated)));
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
* The root stays a native <s-lect>, so the icon is a background image rather than an element. */
|
|
76
76
|
:scope:where([data-component~="ui-select"]) {
|
|
77
77
|
appearance: none;
|
|
78
|
-
padding-inline-end: calc(var(--ui-space-3) + 1.5rem);
|
|
78
|
+
padding-inline-end: calc(var(--ui-space-3) + 1.5rem) !important;
|
|
79
79
|
background-image: var(
|
|
80
80
|
--ui-select-chevron,
|
|
81
81
|
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c5c58' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
|
|
@@ -122,8 +122,8 @@
|
|
|
122
122
|
|
|
123
123
|
:scope:where([data-component~="ui-select"])[data-ui-select-state~="size=sm"] {
|
|
124
124
|
min-block-size: var(--ui-control-size-sm);
|
|
125
|
-
padding: var(--ui-space-1) var(--ui-space-2);
|
|
126
|
-
padding-inline-end: calc(var(--ui-space-2) + var(--ui-icon-size-sm) + var(--ui-space-1));
|
|
125
|
+
padding: var(--ui-control-inset-block-sm, var(--ui-space-1)) var(--ui-space-2) !important;
|
|
126
|
+
padding-inline-end: calc(var(--ui-space-2) + var(--ui-icon-size-sm) + var(--ui-space-1)) !important;
|
|
127
127
|
background-position: right var(--ui-space-2) center;
|
|
128
128
|
background-size: var(--ui-icon-size-sm) var(--ui-icon-size-sm);
|
|
129
129
|
font-size: var(--ui-font-size-sm);
|
|
@@ -131,8 +131,8 @@
|
|
|
131
131
|
|
|
132
132
|
:scope:where([data-component~="ui-select"])[data-ui-select-state~="size=lg"] {
|
|
133
133
|
min-block-size: var(--ui-control-size-lg);
|
|
134
|
-
padding: var(--ui-space-3) var(--ui-space-4);
|
|
135
|
-
padding-inline-end: calc(var(--ui-space-4) + 1.5rem);
|
|
134
|
+
padding: var(--ui-control-inset-block-lg, var(--ui-space-3)) var(--ui-space-4) !important;
|
|
135
|
+
padding-inline-end: calc(var(--ui-space-4) + 1.5rem) !important;
|
|
136
136
|
background-position: right var(--ui-space-4) center;
|
|
137
137
|
font-size: var(--ui-font-size-md);
|
|
138
138
|
}
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
|
|
153
153
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
154
154
|
:scope:where([data-component~="ui-select"])[hidden] {
|
|
155
|
-
display: none;
|
|
155
|
+
display: none !important;
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
@scope ([data-component~="ui-select"]) to ([data-component]) {
|
package/styles/ui-separator.css
CHANGED
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
|
|
16
16
|
/* The root is the hr, so the rules name :host; a bare hr matches only a descendant. */
|
|
17
17
|
:scope:where([data-component~="ui-separator"]) {
|
|
18
|
-
box-sizing: border-box;
|
|
18
|
+
box-sizing: border-box !important;
|
|
19
19
|
align-self: stretch;
|
|
20
|
-
margin: 0;
|
|
20
|
+
margin: 0 !important;
|
|
21
21
|
border: 0;
|
|
22
22
|
border-block-start: var(--ui-border-width) solid var(--ui-separator-color, var(--_separator-color, var(--ui-border-divider)));
|
|
23
23
|
}
|
package/styles/ui-sidebar.css
CHANGED
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
--_ui-sidebar-expanded-width: var(--_sidebar-width, var(--ui-sidebar-width, 280px));
|
|
36
36
|
|
|
37
37
|
position: relative;
|
|
38
|
-
box-sizing: border-box;
|
|
39
|
-
display: flex;
|
|
40
|
-
flex-direction: column;
|
|
38
|
+
box-sizing: border-box !important;
|
|
39
|
+
display: flex !important;
|
|
40
|
+
flex-direction: column !important;
|
|
41
41
|
flex: none;
|
|
42
42
|
inline-size: var(--_sidebar-width, var(--ui-sidebar-width, 280px));
|
|
43
43
|
max-inline-size: 100%;
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
.resizer[hidden] {
|
|
116
|
-
display: none;
|
|
116
|
+
display: none !important;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
:scope:where([data-component~="ui-sidebar"])[data-ui-sidebar-state~="side=end"] .resizer {
|
|
@@ -165,8 +165,8 @@
|
|
|
165
165
|
inset-block: 0;
|
|
166
166
|
inset-inline-start: 0;
|
|
167
167
|
inset-inline-end: auto;
|
|
168
|
-
margin: 0;
|
|
169
|
-
padding: 0;
|
|
168
|
+
margin: 0 !important;
|
|
169
|
+
padding: 0 !important;
|
|
170
170
|
inline-size: min(var(--_sidebar-width, var(--ui-sidebar-width, 280px)), 85vw);
|
|
171
171
|
max-block-size: none;
|
|
172
172
|
block-size: 100dvh;
|
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
|
|
182
182
|
/* The author display above would otherwise override the UA rule that hides a closed popover. */
|
|
183
183
|
:scope:where([data-component~="ui-sidebar"])[popover]:not(:popover-open) {
|
|
184
|
-
display: none;
|
|
184
|
+
display: none !important;
|
|
185
185
|
transform: translateX(-100%);
|
|
186
186
|
}
|
|
187
187
|
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
|
|
221
221
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
222
222
|
:scope:where([data-component~="ui-sidebar"])[hidden] {
|
|
223
|
-
display: none;
|
|
223
|
+
display: none !important;
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
@scope ([data-component~="ui-sidebar"]) to ([data-component]) {
|
package/styles/ui-spinner.css
CHANGED
|
@@ -9,11 +9,11 @@
|
|
|
9
9
|
@scope ([data-component~="ui-spinner"]) to ([data-component], [data-slotted]) {
|
|
10
10
|
/* A rounded SVG arc grows and recedes over a quiet full-circle track. */
|
|
11
11
|
:scope:where([data-component~="ui-spinner"]) {
|
|
12
|
-
display: inline-flex;
|
|
12
|
+
display: inline-flex !important;
|
|
13
13
|
flex: none;
|
|
14
|
-
align-items: center;
|
|
15
|
-
justify-content: center;
|
|
16
|
-
box-sizing: border-box;
|
|
14
|
+
align-items: center !important;
|
|
15
|
+
justify-content: center !important;
|
|
16
|
+
box-sizing: border-box !important;
|
|
17
17
|
inline-size: 1em;
|
|
18
18
|
block-size: 1em;
|
|
19
19
|
color: currentColor;
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
svg {
|
|
29
|
-
display: block;
|
|
29
|
+
display: block !important;
|
|
30
30
|
inline-size: 100%;
|
|
31
31
|
block-size: 100%;
|
|
32
32
|
animation: ui-spinner-rotate 2s linear infinite;
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
|
|
79
79
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
80
80
|
:scope:where([data-component~="ui-spinner"])[hidden] {
|
|
81
|
-
display: none;
|
|
81
|
+
display: none !important;
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
@scope ([data-component~="ui-spinner"]) to ([data-component]) {
|
package/styles/ui-stack.css
CHANGED
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
|
|
21
21
|
:scope:where([data-component~="ui-stack"]) {
|
|
22
22
|
--_layout-gap: var(--ui-space-4);
|
|
23
|
-
display: flex;
|
|
24
|
-
flex-direction: column;
|
|
25
|
-
align-items: stretch;
|
|
26
|
-
gap: var(--ui-stack-gap, var(--_layout-gap));
|
|
23
|
+
display: flex !important;
|
|
24
|
+
flex-direction: column !important;
|
|
25
|
+
align-items: stretch !important;
|
|
26
|
+
gap: var(--ui-stack-gap, var(--_layout-gap)) !important;
|
|
27
27
|
min-inline-size: 0;
|
|
28
28
|
max-inline-size: 100%;
|
|
29
|
-
margin: 0;
|
|
29
|
+
margin: 0 !important;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
:scope:where([data-component~="ui-stack"])[data-ui-stack-state~="fill"] {
|
|
@@ -57,27 +57,27 @@
|
|
|
57
57
|
--_layout-gap: var(--ui-space-6);
|
|
58
58
|
}
|
|
59
59
|
:scope:where([data-component~="ui-stack"])[data-ui-stack-state~="align=start"] {
|
|
60
|
-
align-items: flex-start;
|
|
60
|
+
align-items: flex-start !important;
|
|
61
61
|
}
|
|
62
62
|
:scope:where([data-component~="ui-stack"])[data-ui-stack-state~="align=center"] {
|
|
63
|
-
align-items: center;
|
|
63
|
+
align-items: center !important;
|
|
64
64
|
}
|
|
65
65
|
:scope:where([data-component~="ui-stack"])[data-ui-stack-state~="align=end"] {
|
|
66
|
-
align-items: flex-end;
|
|
66
|
+
align-items: flex-end !important;
|
|
67
67
|
}
|
|
68
68
|
:scope:where([data-component~="ui-stack"])[data-ui-stack-state~="justify=center"] {
|
|
69
|
-
justify-content: center;
|
|
69
|
+
justify-content: center !important;
|
|
70
70
|
}
|
|
71
71
|
:scope:where([data-component~="ui-stack"])[data-ui-stack-state~="justify=end"] {
|
|
72
|
-
justify-content: flex-end;
|
|
72
|
+
justify-content: flex-end !important;
|
|
73
73
|
}
|
|
74
74
|
:scope:where([data-component~="ui-stack"])[data-ui-stack-state~="justify=between"] {
|
|
75
|
-
justify-content: space-between;
|
|
75
|
+
justify-content: space-between !important;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
79
79
|
:scope:where([data-component~="ui-stack"])[hidden] {
|
|
80
|
-
display: none;
|
|
80
|
+
display: none !important;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
@scope ([data-component~="ui-stack"]) to ([data-component]) {
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
/* The one way a view says it is loading, has nothing yet, or failed, with an optional next step.
|
|
11
11
|
Every view says it the same way, in the same place, at the same size. */
|
|
12
12
|
:scope:where([data-component~="ui-status-message"]) {
|
|
13
|
-
display: flex;
|
|
14
|
-
flex-wrap: wrap;
|
|
15
|
-
align-items: center;
|
|
16
|
-
gap: var(--ui-space-2) var(--ui-space-4);
|
|
17
|
-
padding-block: var(--ui-space-4);
|
|
13
|
+
display: flex !important;
|
|
14
|
+
flex-wrap: wrap !important;
|
|
15
|
+
align-items: center !important;
|
|
16
|
+
gap: var(--ui-space-2) var(--ui-space-4) !important;
|
|
17
|
+
padding-block: var(--ui-space-4) !important;
|
|
18
18
|
color: var(--ui-text-muted);
|
|
19
19
|
font-size: var(--ui-font-size-md);
|
|
20
20
|
line-height: var(--ui-line-height);
|
|
@@ -25,30 +25,30 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
:scope:where([data-component~="ui-status-message"])[data-ui-status-message-state~="layout=panel"] {
|
|
28
|
-
padding: var(--ui-space-6);
|
|
28
|
+
padding: var(--ui-space-6) !important;
|
|
29
29
|
border: var(--ui-border-width) dashed var(--ui-border-strong);
|
|
30
30
|
border-radius: var(--ui-radius-lg);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
:scope:where([data-component~="ui-status-message"])[data-ui-status-message-state~="layout=fill"] {
|
|
34
34
|
flex: 1;
|
|
35
|
-
flex-direction: column;
|
|
36
|
-
justify-content: center;
|
|
35
|
+
flex-direction: column !important;
|
|
36
|
+
justify-content: center !important;
|
|
37
37
|
min-block-size: 50vh;
|
|
38
38
|
text-align: center;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.copy {
|
|
42
|
-
display: flex;
|
|
42
|
+
display: flex !important;
|
|
43
43
|
flex: 1 1 12rem;
|
|
44
|
-
flex-direction: column;
|
|
45
|
-
gap: var(--ui-space-1);
|
|
44
|
+
flex-direction: column !important;
|
|
45
|
+
gap: var(--ui-space-1) !important;
|
|
46
46
|
min-inline-size: 0;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
:scope:where([data-component~="ui-status-message"])[data-ui-status-message-state~="layout=fill"] .copy {
|
|
50
50
|
flex: none;
|
|
51
|
-
align-items: center;
|
|
51
|
+
align-items: center !important;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
.heading {
|
|
@@ -57,18 +57,18 @@
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
.action {
|
|
60
|
-
display: inline-flex;
|
|
61
|
-
flex-wrap: wrap;
|
|
62
|
-
gap: var(--ui-space-2);
|
|
60
|
+
display: inline-flex !important;
|
|
61
|
+
flex-wrap: wrap !important;
|
|
62
|
+
gap: var(--ui-space-2) !important;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
.action:empty {
|
|
66
|
-
display: none;
|
|
66
|
+
display: none !important;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
70
70
|
:scope:where([data-component~="ui-status-message"])[hidden] {
|
|
71
|
-
display: none;
|
|
71
|
+
display: none !important;
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
@scope ([data-component~="ui-status-message"]) to ([data-component]) {
|
package/styles/ui-swatch.css
CHANGED
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
--_text: var(--ui-text-secondary);
|
|
20
20
|
|
|
21
21
|
appearance: none;
|
|
22
|
-
box-sizing: border-box;
|
|
22
|
+
box-sizing: border-box !important;
|
|
23
23
|
flex: 0 0 auto;
|
|
24
24
|
inline-size: var(--ui-swatch-size, 1.65rem);
|
|
25
25
|
block-size: var(--ui-swatch-size, 1.65rem);
|
|
26
|
-
margin: 0;
|
|
26
|
+
margin: 0 !important;
|
|
27
27
|
border: var(--ui-border-width) solid color-mix(in srgb, var(--_surface) 75%, var(--_text) 25%);
|
|
28
28
|
border-radius: 50%;
|
|
29
29
|
background: var(--_surface);
|
package/styles/ui-switch.css
CHANGED
|
@@ -23,12 +23,19 @@
|
|
|
23
23
|
|
|
24
24
|
:scope:where([data-component~="ui-switch"]) {
|
|
25
25
|
/* Hooks do not inherit, so the parts below read them from the root. */
|
|
26
|
-
--_ui-switch-track-width: var(--ui-switch-track-width);
|
|
27
|
-
--_ui-switch-track-height: var(--ui-switch-track-height);
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
--_ui-switch-track-width: var(--ui-switch-track-width, var(--ui-choice-track-width));
|
|
27
|
+
--_ui-switch-track-height: var(--ui-switch-track-height, var(--ui-choice-track-height));
|
|
28
|
+
|
|
29
|
+
--_thumb: calc(var(--_ui-switch-track-height) * 2 / 3);
|
|
30
|
+
--_inset: calc((var(--_ui-switch-track-height) - var(--_thumb)) / 2 - var(--ui-border-width));
|
|
31
|
+
|
|
32
|
+
display: inline-flex !important;
|
|
33
|
+
align-items: flex-start !important;
|
|
34
|
+
flex-direction: row !important;
|
|
35
|
+
flex-wrap: nowrap !important;
|
|
36
|
+
padding: 0 !important;
|
|
37
|
+
line-height: var(--ui-line-height-md) !important;
|
|
38
|
+
gap: var(--ui-switch-gap, var(--ui-space-2)) !important;
|
|
32
39
|
max-inline-size: 100%;
|
|
33
40
|
color: var(--ui-text-primary);
|
|
34
41
|
cursor: pointer;
|
|
@@ -36,15 +43,21 @@
|
|
|
36
43
|
|
|
37
44
|
/* The label, and under it an optional line saying what the choice means. */
|
|
38
45
|
.text {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
46
|
+
font: inherit !important;
|
|
47
|
+
align-self: auto !important;
|
|
48
|
+
margin: 0 !important;
|
|
49
|
+
padding: 0 !important;
|
|
50
|
+
display: flex !important;
|
|
51
|
+
flex-direction: column !important;
|
|
52
|
+
gap: var(--ui-space-1) !important;
|
|
42
53
|
min-inline-size: 0;
|
|
43
54
|
}
|
|
44
55
|
|
|
45
56
|
.label {
|
|
46
57
|
min-inline-size: 0;
|
|
47
|
-
|
|
58
|
+
font: inherit !important;
|
|
59
|
+
line-height: var(--ui-line-height-md) !important;
|
|
60
|
+
padding-block: max(0px, calc((var(--_ui-switch-track-height, 1.5rem) - 1lh) / 2)) !important;
|
|
48
61
|
}
|
|
49
62
|
|
|
50
63
|
.description {
|
|
@@ -54,33 +67,36 @@
|
|
|
54
67
|
}
|
|
55
68
|
|
|
56
69
|
.description:empty {
|
|
57
|
-
display: none;
|
|
70
|
+
display: none !important;
|
|
58
71
|
}
|
|
59
72
|
|
|
60
73
|
input {
|
|
74
|
+
font: inherit !important;
|
|
75
|
+
box-sizing: border-box !important;
|
|
76
|
+
align-self: auto !important;
|
|
61
77
|
appearance: none;
|
|
62
78
|
-webkit-appearance: none;
|
|
63
79
|
position: relative;
|
|
64
80
|
flex: 0 0 auto;
|
|
65
81
|
width: var(--_ui-switch-track-width, 2.5rem);
|
|
66
82
|
height: var(--_ui-switch-track-height, 1.5rem);
|
|
67
|
-
padding: 0;
|
|
83
|
+
padding: 0 !important;
|
|
68
84
|
border: var(--ui-border-width) solid var(--ui-control-border, var(--ui-border-strong));
|
|
69
85
|
border-radius: var(--ui-radius-round);
|
|
70
86
|
background-color: var(--ui-control-surface, var(--ui-surface-default));
|
|
71
87
|
box-shadow: var(--ui-control-inset);
|
|
72
88
|
cursor: pointer;
|
|
73
89
|
transition: background-color var(--ui-motion-base) var(--ui-motion-ease), border-color var(--ui-motion-base) var(--ui-motion-ease);
|
|
74
|
-
margin: 0;
|
|
90
|
+
margin: max(0px, calc((1lh - var(--_ui-switch-track-height, 1.5rem)) / 2)) 0 0 !important;
|
|
75
91
|
}
|
|
76
92
|
|
|
77
93
|
input:where(:not([data-component], [data-slotted]))::after {
|
|
78
94
|
content: "";
|
|
79
95
|
position: absolute;
|
|
80
|
-
top:
|
|
81
|
-
left:
|
|
82
|
-
width:
|
|
83
|
-
height:
|
|
96
|
+
top: var(--_inset);
|
|
97
|
+
left: var(--_inset);
|
|
98
|
+
width: var(--_thumb);
|
|
99
|
+
height: var(--_thumb);
|
|
84
100
|
border-radius: var(--ui-radius-round);
|
|
85
101
|
background: var(--ui-text-secondary);
|
|
86
102
|
box-shadow: var(--ui-shadow-xs);
|
|
@@ -93,7 +109,7 @@
|
|
|
93
109
|
}
|
|
94
110
|
|
|
95
111
|
input:checked:where(:not([data-component], [data-slotted]))::after {
|
|
96
|
-
transform: translateX(
|
|
112
|
+
transform: translateX(calc(var(--_ui-switch-track-width) - var(--_ui-switch-track-height)));
|
|
97
113
|
background: var(--ui-text-on-accent);
|
|
98
114
|
}
|
|
99
115
|
|
|
@@ -144,13 +160,7 @@
|
|
|
144
160
|
:scope:where([data-component~="ui-switch"])[data-ui-switch-state~="size=lg"] {
|
|
145
161
|
--_line: calc(var(--_font) * var(--ui-line-height-md));
|
|
146
162
|
font-size: var(--_font);
|
|
147
|
-
padding-block: calc((var(--_row) - var(--
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/* The label centres on the track. */
|
|
151
|
-
:scope:where([data-component~="ui-switch"])[data-ui-switch-state~="size=sm"] .text,
|
|
152
|
-
:scope:where([data-component~="ui-switch"])[data-ui-switch-state~="size=lg"] .text {
|
|
153
|
-
margin-top: calc((var(--_ui-switch-track-height, 1.5rem) - var(--_line)) / 2);
|
|
163
|
+
padding-block: max(0px, calc((var(--_row) - max(var(--_line), var(--_ui-switch-track-height, 1.5rem))) / 2)) !important;
|
|
154
164
|
}
|
|
155
165
|
|
|
156
166
|
@media (pointer: coarse) {
|
|
@@ -161,7 +171,7 @@
|
|
|
161
171
|
|
|
162
172
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
163
173
|
:scope:where([data-component~="ui-switch"])[hidden] {
|
|
164
|
-
display: none;
|
|
174
|
+
display: none !important;
|
|
165
175
|
}
|
|
166
176
|
}
|
|
167
177
|
@scope ([data-component~="ui-switch"]) to ([data-component]) {
|
|
@@ -176,8 +186,6 @@
|
|
|
176
186
|
and the first line centres in that control height, so the label shares a row's baseline.
|
|
177
187
|
Multi-line labels and descriptions still grow downward from that first line. */
|
|
178
188
|
|
|
179
|
-
/* The label centres on the track. */
|
|
180
|
-
|
|
181
189
|
@media (pointer: coarse) {
|
|
182
190
|
}
|
|
183
191
|
|
package/styles/ui-switcher.css
CHANGED
|
@@ -24,12 +24,12 @@
|
|
|
24
24
|
/* Lays its children out from its own box: below the threshold each track takes the full width;
|
|
25
25
|
at or above it, tracks shrink to 1px so every child fits one row and empty tracks collapse.
|
|
26
26
|
The large multiplier makes the whole row flip at once. */
|
|
27
|
-
display: grid;
|
|
27
|
+
display: grid !important;
|
|
28
28
|
grid-template-columns: repeat(auto-fit, minmax(var(--_switcher-track), 1fr));
|
|
29
|
-
gap: var(--ui-switcher-gap, var(--_switcher-gap));
|
|
29
|
+
gap: var(--ui-switcher-gap, var(--_switcher-gap)) !important;
|
|
30
30
|
min-inline-size: 0;
|
|
31
31
|
max-inline-size: 100%;
|
|
32
|
-
margin: 0;
|
|
32
|
+
margin: 0 !important;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
:scope:where([data-component~="ui-switcher"])[data-ui-switcher-state~="overLimit"] {
|
|
@@ -61,18 +61,18 @@
|
|
|
61
61
|
--_switcher-threshold: 60rem;
|
|
62
62
|
}
|
|
63
63
|
:scope:where([data-component~="ui-switcher"])[data-ui-switcher-state~="align=start"] {
|
|
64
|
-
align-items: start;
|
|
64
|
+
align-items: start !important;
|
|
65
65
|
}
|
|
66
66
|
:scope:where([data-component~="ui-switcher"])[data-ui-switcher-state~="align=center"] {
|
|
67
|
-
align-items: center;
|
|
67
|
+
align-items: center !important;
|
|
68
68
|
}
|
|
69
69
|
:scope:where([data-component~="ui-switcher"])[data-ui-switcher-state~="align=end"] {
|
|
70
|
-
align-items: end;
|
|
70
|
+
align-items: end !important;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
74
74
|
:scope:where([data-component~="ui-switcher"])[hidden] {
|
|
75
|
-
display: none;
|
|
75
|
+
display: none !important;
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
@scope ([data-component~="ui-switcher"]) to ([data-component]) {
|
package/styles/ui-table.css
CHANGED
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
--_pad-block: var(--ui-space-1);
|
|
17
17
|
--_pad-inline: var(--ui-space-3);
|
|
18
18
|
--_row-size: var(--ui-control-size);
|
|
19
|
-
display: block;
|
|
20
|
-
box-sizing: border-box;
|
|
19
|
+
display: block !important;
|
|
20
|
+
box-sizing: border-box !important;
|
|
21
21
|
max-inline-size: 100%;
|
|
22
22
|
min-inline-size: 0;
|
|
23
23
|
min-block-size: 0;
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
|
|
66
66
|
/* A component that sets its display still honours the hidden attribute on its root. */
|
|
67
67
|
:scope:where([data-component~="ui-table"])[hidden] {
|
|
68
|
-
display: none;
|
|
68
|
+
display: none !important;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
@scope ([data-component~="ui-table"]) to ([data-component]) {
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
:where([data-slotted], [data-slotted] *):is(caption) {
|
|
90
|
-
padding-block-end: var(--ui-space-2);
|
|
90
|
+
padding-block-end: var(--ui-space-2) !important;
|
|
91
91
|
color: var(--ui-text-secondary);
|
|
92
92
|
font-weight: var(--ui-font-medium);
|
|
93
93
|
text-align: start;
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
:where([data-slotted], [data-slotted] *):is(th),
|
|
99
99
|
:where([data-slotted], [data-slotted] *):is(td) {
|
|
100
100
|
block-size: var(--_row-size);
|
|
101
|
-
padding: var(--_pad-block) var(--_pad-inline);
|
|
101
|
+
padding: var(--_pad-block) var(--_pad-inline) !important;
|
|
102
102
|
border-block-end: var(--ui-border-width) solid var(--ui-border-subtle);
|
|
103
103
|
text-align: start;
|
|
104
104
|
vertical-align: middle;
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
|
|
107
107
|
:where([data-slotted], [data-slotted] *):is(thead th) {
|
|
108
108
|
block-size: auto;
|
|
109
|
-
padding-block: var(--ui-space-2);
|
|
109
|
+
padding-block: var(--ui-space-2) !important;
|
|
110
110
|
border-block-end-color: var(--ui-border-divider);
|
|
111
111
|
background: var(--ui-surface);
|
|
112
112
|
color: var(--ui-text-muted);
|