@ids-group-ltd/ids-design-system 1.1.2 → 1.2.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/CHANGELOG.md +755 -0
- package/agent/INDEX.md +8 -7
- package/agent/charts/ds-scatter-chart.md +1 -1
- package/agent/feedback/ds-badge.md +2 -2
- package/agent/feedback/ds-chat-message.md +1 -1
- package/agent/feedback/ds-chat-step.md +2 -2
- package/agent/feedback/ds-chat-thread.md +1 -1
- package/agent/feedback/ds-stat.md +1 -1
- package/agent/feedback/ds-toast.md +2 -2
- package/agent/feedback/ds-tree.md +1 -1
- package/agent/forms/ds-button.md +3 -3
- package/agent/forms/ds-dropzone.md +1 -1
- package/agent/forms/ds-icon-button.md +3 -3
- package/agent/forms/ds-number-stepper.md +3 -3
- package/agent/forms/ds-search.md +1 -1
- package/agent/forms/ds-split-button.md +1 -1
- package/agent/foundations/tokens.md +4 -3
- package/agent/navigation/ds-app-layout.md +1 -1
- package/agent/navigation/ds-nav-divider.md +6 -0
- package/agent/navigation/{ds-sidenav-footer.md → ds-nav-footer.md} +3 -3
- package/agent/navigation/{ds-sidenav-group.md → ds-nav-group.md} +2 -2
- package/agent/navigation/{ds-sidenav-item.md → ds-nav-item.md} +6 -6
- package/agent/navigation/ds-nav.md +15 -0
- package/agent/overlays/ds-drawer.md +1 -1
- package/agent/platform/toast-service.md +1 -1
- package/components/README.md +24 -24
- package/components.md +51 -45
- package/design-system.md +8 -7
- package/eslint/deprecated-api.json +108 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-accordion.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-alert.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-app-layout.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-auth-layout.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-avatar.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge-badge-count-roll.component-BDNXADJZ.mjs +182 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge-badge-count-roll.component-BDNXADJZ.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs +37 -8
- package/fesm2022/ids-group-ltd-ids-design-system-components-badge.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-banner.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs +5 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-button-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs +76 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-calendar-day.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-chat.mjs +77 -18
- package/fesm2022/ids-group-ltd-ids-design-system-components-chat.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-checkbox.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-definition-term.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-definition-term.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +65 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs +76 -9
- package/fesm2022/ids-group-ltd-ids-design-system-components-dropzone.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-field-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs +6 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-icon-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-info-hint.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-inline-edit.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-inline-edit.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-list.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-menu.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-modal.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-nav-footer.mjs +113 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-nav-footer.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-nav.mjs +228 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-nav.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs +61 -10
- package/fesm2022/ids-group-ltd-ids-design-system-components-number-stepper.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-otp-input.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +36 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-radio-group.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-reveal.mjs +56 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-reveal.mjs.map +1 -0
- package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +10 -39
- package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs +7 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-search.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs +33 -6
- package/fesm2022/ids-group-ltd-ids-design-system-components-segmented.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs +4 -98
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav-footer.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +11 -179
- package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-skeleton.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-slider.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs +3 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-split-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +68 -5
- package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-stepper.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-switch.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-table-columns.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +41 -3
- package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-tag.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +6 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +4 -4
- package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs +27 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-timeline.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs +54 -19
- package/fesm2022/ids-group-ltd-ids-design-system-components-toast.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-toggle-button.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +8 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs +21 -11
- package/fesm2022/ids-group-ltd-ids-design-system-components-tree.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs +2 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-w3w.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +153 -1
- package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +11 -0
- package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +4 -1
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/1.1.1.json +14 -4
- package/migrations/1.1.2.json +11 -3
- package/migrations/1.2.0.json +1433 -0
- package/migrations/README.md +8 -1
- package/package.json +25 -1
- package/schematics/check-overrides/index.cjs +28 -3
- package/schematics/check-overrides/scan.cjs +151 -2
- package/schematics/check-overrides/schema.json +4 -0
- package/schematics/check-overrides/surface.json +389 -74
- package/schematics/collection.json +1 -1
- package/stylelint/deprecated-tokens.json +7 -0
- package/styles/_check-box.scss +4 -3
- package/styles/_dropdown-overlay.scss +6 -8
- package/styles/_ds-color.scss +7 -2
- package/styles/_field-state.scss +4 -2
- package/styles/_focus.scss +12 -5
- package/styles/_link.scss +4 -4
- package/styles/_optical-center.scss +29 -0
- package/styles/_reveal.scss +8 -0
- package/styles/_status.scss +17 -7
- package/styles/_step-marker.scss +192 -6
- package/styles/_surface-level.scss +16 -0
- package/styles/_text-shimmer.scss +21 -0
- package/styles/_theme-activation.scss +17 -4
- package/styles/_tokens.scss +26 -7
- package/styles/ds.scss +1 -0
- package/themes/README.md +16 -21
- package/themes/_semantic.scss +129 -64
- package/themes/dark/_theme.scss +17 -25
- package/types/ids-group-ltd-ids-design-system-components-app-layout.d.ts +3 -3
- package/types/ids-group-ltd-ids-design-system-components-auth-layout.d.ts +2 -2
- package/types/ids-group-ltd-ids-design-system-components-badge.d.ts +20 -1
- package/types/ids-group-ltd-ids-design-system-components-button.d.ts +14 -3
- package/types/ids-group-ltd-ids-design-system-components-chat.d.ts +49 -4
- package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +9 -1
- package/types/ids-group-ltd-ids-design-system-components-dropzone.d.ts +28 -2
- package/types/ids-group-ltd-ids-design-system-components-icon-button.d.ts +8 -5
- package/types/ids-group-ltd-ids-design-system-components-nav-footer.d.ts +88 -0
- package/types/ids-group-ltd-ids-design-system-components-nav.d.ts +152 -0
- package/types/ids-group-ltd-ids-design-system-components-number-stepper.d.ts +21 -3
- package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +1 -0
- package/types/ids-group-ltd-ids-design-system-components-reveal.d.ts +31 -0
- package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +2 -8
- package/types/ids-group-ltd-ids-design-system-components-search.d.ts +4 -1
- package/types/ids-group-ltd-ids-design-system-components-segmented.d.ts +3 -0
- package/types/ids-group-ltd-ids-design-system-components-sidenav-footer.d.ts +12 -83
- package/types/ids-group-ltd-ids-design-system-components-sidenav.d.ts +21 -131
- package/types/ids-group-ltd-ids-design-system-components-split-button.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-stat.d.ts +10 -1
- package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +1 -0
- package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +1 -1
- package/types/ids-group-ltd-ids-design-system-components-timeline.d.ts +3 -1
- package/types/ids-group-ltd-ids-design-system-components-toast.d.ts +27 -6
- package/types/ids-group-ltd-ids-design-system-components-tree.d.ts +9 -5
- package/types/ids-group-ltd-ids-design-system-components.d.ts +26 -1
- package/types/ids-group-ltd-ids-design-system-core.d.ts +19 -1
- package/types/ids-group-ltd-ids-design-system.d.ts +7 -4
- package/agent/navigation/ds-sidenav.md +0 -13
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"schema": "./ng-add/schema.json"
|
|
8
8
|
},
|
|
9
9
|
"check-overrides": {
|
|
10
|
-
"description": "Report --ds-* overrides the installed version never reads,
|
|
10
|
+
"description": "Report --ds-* overrides the installed version never reads, ds-* selectors naming classes its components do not render, and semantic tokens a theme block of your own leaves unset.",
|
|
11
11
|
"factory": "./check-overrides/index.cjs#checkOverrides",
|
|
12
12
|
"schema": "./check-overrides/schema.json"
|
|
13
13
|
}
|
|
@@ -2610,6 +2610,13 @@
|
|
|
2610
2610
|
"since": "0.10.0",
|
|
2611
2611
|
"itemId": "0.10.0#floating-label-token-overrides"
|
|
2612
2612
|
},
|
|
2613
|
+
{
|
|
2614
|
+
"name": "--focus-ring-outer-h",
|
|
2615
|
+
"replacement": null,
|
|
2616
|
+
"kind": "removed",
|
|
2617
|
+
"since": "1.2.0",
|
|
2618
|
+
"itemId": "1.2.0#focus-ring-outer-channels-removed"
|
|
2619
|
+
},
|
|
2613
2620
|
{
|
|
2614
2621
|
"name": "--info-subtle",
|
|
2615
2622
|
"replacement": "--info-subtitle",
|
package/styles/_check-box.scss
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
@mixin resolvers {
|
|
7
7
|
--_checkbox-bg-color: var(--ds-checkbox-bg-color, var(--surface-default));
|
|
8
8
|
--_checkbox-border-color: var(--ds-checkbox-border-color, var(--border-field));
|
|
9
|
-
--_checkbox-hover-border-color: var(--ds-checkbox-hover-border-color, var(--
|
|
9
|
+
--_checkbox-hover-border-color: var(--ds-checkbox-hover-border-color, var(--border-field-hover));
|
|
10
10
|
--_checkbox-selected-bg-color: var(--ds-checkbox-selected-bg-color, var(--accent));
|
|
11
11
|
--_checkbox-selected-border-color: var(--ds-checkbox-selected-border-color, var(--accent));
|
|
12
12
|
--_checkbox-radius: var(--ds-checkbox-radius, var(--ds-radius-inner));
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
border: var(--check-bw) solid
|
|
23
23
|
var(--_checkbox-border-color, var(--ds-checkbox-border-color, var(--border-field)));
|
|
24
24
|
background: var(--_checkbox-bg-color, var(--ds-checkbox-bg-color, var(--surface-default)));
|
|
25
|
+
background-clip: padding-box;
|
|
25
26
|
cursor: pointer;
|
|
26
27
|
display: inline-grid;
|
|
27
28
|
place-items: center;
|
|
@@ -34,8 +35,8 @@
|
|
|
34
35
|
transition: background-color var(--duration-fast) var(--ease-standard),
|
|
35
36
|
border-color var(--duration-fast) var(--ease-standard);
|
|
36
37
|
|
|
37
|
-
&:hover:not(:disabled) {
|
|
38
|
-
border-color: var(--_checkbox-hover-border-color, var(--ds-checkbox-hover-border-color, var(--
|
|
38
|
+
&:hover:not(:disabled, :checked, :indeterminate) {
|
|
39
|
+
border-color: var(--_checkbox-hover-border-color, var(--ds-checkbox-hover-border-color, var(--border-field-hover)));
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
@include press.feedback;
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
@use 'check-mark' as check-mark;
|
|
7
7
|
@use 'text-clip' as text-clip;
|
|
8
8
|
@use 'visually-hidden' as visually-hidden;
|
|
9
|
+
@use 'surface-level' as surface-level;
|
|
9
10
|
|
|
10
11
|
.ds-dropdown-panel {
|
|
11
12
|
--_option-selected-bg-color: var(--ds-option-selected-bg-color, var(--surface-overlay-raised-tint));
|
|
@@ -19,7 +20,7 @@
|
|
|
19
20
|
--_option-padding: var(--ds-option-padding, var(--space-2) var(--space-2-5));
|
|
20
21
|
--_option-radius: var(--ds-option-radius, var(--ds-radius-inner));
|
|
21
22
|
--_option-row-gap: var(--ds-option-row-gap, 2px);
|
|
22
|
-
--_option-bg-color-active: var(--ds-option-bg-color-active, var(--
|
|
23
|
+
--_option-bg-color-active: var(--ds-option-bg-color-active, var(--state-layer-hover));
|
|
23
24
|
--_option-font-weight: var(--ds-option-font-weight, var(--font-weight-medium));
|
|
24
25
|
--_option-font-size: var(--ds-option-font-size, var(--font-size-s));
|
|
25
26
|
--_option-line-height: var(--ds-option-line-height, var(--line-height-flat));
|
|
@@ -30,11 +31,8 @@
|
|
|
30
31
|
|
|
31
32
|
--_dropdown-panel-bg-color: var(--ds-dropdown-panel-bg-color, var(--surface-overlay-raised));
|
|
32
33
|
--_dropdown-panel-border-color: var(--ds-dropdown-panel-border-color, var(--border-overlay));
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
--surface-tint: var(--surface-overlay-raised-tint);
|
|
36
|
-
--accent-surface-tint: var(--surface-overlay-raised-tint);
|
|
37
|
-
--accent-strong: var(--accent-strong-overlay);
|
|
34
|
+
|
|
35
|
+
@include surface-level.overlay('overlay-raised');
|
|
38
36
|
--_dropdown-panel-shadow: var(--ds-dropdown-panel-shadow, var(--shadow-popover));
|
|
39
37
|
--_dropdown-panel-max-height: var(--ds-dropdown-panel-max-height, 320px);
|
|
40
38
|
|
|
@@ -66,7 +64,7 @@
|
|
|
66
64
|
}
|
|
67
65
|
|
|
68
66
|
.dropdown-list {
|
|
69
|
-
max-height: var(--picker-maxh);
|
|
67
|
+
max-height: var(--ds-dropdown-panel-max-height, var(--picker-maxh));
|
|
70
68
|
list-style: none;
|
|
71
69
|
margin: 0;
|
|
72
70
|
padding: 0;
|
|
@@ -187,7 +185,7 @@
|
|
|
187
185
|
}
|
|
188
186
|
|
|
189
187
|
&:active:not(.is-disabled, :disabled) {
|
|
190
|
-
background: var(--
|
|
188
|
+
background: var(--state-layer-pressed);
|
|
191
189
|
}
|
|
192
190
|
|
|
193
191
|
&:focus-visible {
|
package/styles/_ds-color.scss
CHANGED
|
@@ -7,7 +7,7 @@ $families: secondary, tertiary, error, success, warning;
|
|
|
7
7
|
//
|
|
8
8
|
// Each pointer ends in a fallback: a role a family does not define is guaranteed-invalid and would reset
|
|
9
9
|
// every declaration reading it to `unset` with no console message. -hover, -pressed and -strong fall
|
|
10
|
-
// back to the family base, tints to its -muted, -on and the focus pointers to the theme-wide role.
|
|
10
|
+
// back to the family base, tints and the tonal press to its -muted, -on and the focus pointers to the theme-wide role.
|
|
11
11
|
@mixin family-vars($family) {
|
|
12
12
|
--accent: var(--#{$family});
|
|
13
13
|
--accent-hover: var(--#{$family}-hover, var(--#{$family}));
|
|
@@ -16,9 +16,10 @@ $families: secondary, tertiary, error, success, warning;
|
|
|
16
16
|
--accent-subtitle: var(--#{$family}-subtitle, var(--#{$family}-muted));
|
|
17
17
|
--accent-muted: var(--#{$family}-muted, var(--surface-muted));
|
|
18
18
|
--accent-muted-strong: var(--#{$family}-muted-strong, var(--#{$family}-muted));
|
|
19
|
+
--accent-muted-pressed: var(--#{$family}-muted-pressed, var(--#{$family}-muted));
|
|
19
20
|
--accent-on: var(--#{$family}-on, var(--text-on-primary));
|
|
20
21
|
--accent-focus-ring: var(--focus-ring-#{$family}, var(--focus-ring));
|
|
21
|
-
--accent-focus-field: var(--
|
|
22
|
+
--accent-focus-field: 0 0 0 var(--border-width-default) var(--#{$family});
|
|
22
23
|
--accent-surface-tint: var(--#{$family}-subtitle, var(--#{$family}-muted));
|
|
23
24
|
|
|
24
25
|
// Re-declared: `--focus-ring-color: var(--accent)` on :root is resolved there, so the subtree would ring brand-blue.
|
|
@@ -39,4 +40,8 @@ $families: secondary, tertiary, error, success, warning;
|
|
|
39
40
|
[ds-color='#{$family}'] {
|
|
40
41
|
@include family-vars($family);
|
|
41
42
|
}
|
|
43
|
+
|
|
44
|
+
:root[data-focus='halo'] [ds-color='#{$family}'] {
|
|
45
|
+
--accent-focus-field: var(--focus-field-#{$family}, var(--focus-field));
|
|
46
|
+
}
|
|
42
47
|
}
|
package/styles/_field-state.scss
CHANGED
|
@@ -6,9 +6,10 @@
|
|
|
6
6
|
$error-border: var(--error),
|
|
7
7
|
$error-bg: var(--error-subtitle),
|
|
8
8
|
$error-focus-shadow: var(--ds-field-focus-shadow-error),
|
|
9
|
-
$warning-border: var(--warning
|
|
9
|
+
$warning-border: var(--ds-field-border-warning),
|
|
10
10
|
$success-border: var(--success),
|
|
11
11
|
$warning-focus-shadow: var(--ds-field-focus-shadow-warning),
|
|
12
|
+
$warning-focus-border: var(--ds-field-focus-border-warning),
|
|
12
13
|
$success-focus-shadow: var(--ds-field-focus-shadow-success)
|
|
13
14
|
) {
|
|
14
15
|
// `:not(.in-group)`: a segment ties `.in-group` at (0,3,0) and this mixin is included last, so the fill
|
|
@@ -24,12 +25,13 @@
|
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
27
|
|
|
27
|
-
//
|
|
28
|
+
// The warning border is 1.57:1 against a white field, under the 3:1 WCAG 1.4.11 asks; `--ds-field-border-warning: var(--warning-text)` gives 4.59:1.
|
|
28
29
|
:host([data-field-state='warning']:not(.in-group)) #{$box}:not(.disabled):not(:disabled) {
|
|
29
30
|
border-color: #{$warning-border};
|
|
30
31
|
|
|
31
32
|
&:focus-within,
|
|
32
33
|
&:focus-visible {
|
|
34
|
+
border-color: #{$warning-focus-border};
|
|
33
35
|
box-shadow: #{$warning-focus-shadow};
|
|
34
36
|
}
|
|
35
37
|
}
|
package/styles/_focus.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Focus-indicator style, switched in one place: `<html data-focus="...">`.
|
|
2
|
-
// Controls take an `outline` (a negative offset draws inside an `overflow` ancestor); fields a
|
|
2
|
+
// Controls take an `outline` (a negative offset draws inside an `overflow` ancestor); fields a crisp ring through `--ds-field-focus-shadow`.
|
|
3
3
|
|
|
4
4
|
// The control indicator. Does not touch box-shadow, so a focused card keeps its elevation; a state
|
|
5
5
|
// painting its own shadow must yield, see `state-shadow`.
|
|
@@ -72,15 +72,21 @@
|
|
|
72
72
|
|
|
73
73
|
// `--warning-text`, not `--focus-ring-warning`: the bright warning hue is 1.47:1 on white, too faint for a ring.
|
|
74
74
|
--ds-field-focus-shadow-warning: 0 0 0 2px var(--focus-ring-inner), 0 0 0 4px var(--warning-text);
|
|
75
|
+
--ds-field-focus-border-warning: var(--warning-text);
|
|
75
76
|
--ds-field-focus-shadow-success: var(--focus-ring-success);
|
|
76
77
|
}
|
|
77
78
|
|
|
78
79
|
:root[data-focus='edge'] {
|
|
79
80
|
--focus-ring-offset: 0px;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
--ds-field-focus-shadow
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:root[data-focus='halo'] {
|
|
84
|
+
--ds-field-focus-shadow: var(--focus-field);
|
|
85
|
+
--ds-field-focus-shadow-error: var(--focus-field-error);
|
|
86
|
+
--ds-field-focus-shadow-warning: var(--focus-field-warning);
|
|
87
|
+
--ds-field-focus-border-warning: var(--warning-text);
|
|
88
|
+
--ds-field-focus-shadow-success: var(--focus-field-success);
|
|
89
|
+
--accent-focus-field: var(--focus-field);
|
|
84
90
|
}
|
|
85
91
|
|
|
86
92
|
// Not pinned to :root: set it on a clipping element and everything inside keeps an indicator.
|
|
@@ -89,6 +95,7 @@
|
|
|
89
95
|
--ds-field-focus-shadow: var(--focus-ring-inset);
|
|
90
96
|
--ds-field-focus-shadow-error: var(--focus-ring-inset-error);
|
|
91
97
|
--ds-field-focus-shadow-warning: inset 0 0 0 2px var(--focus-ring-inner), inset 0 0 0 4px var(--warning-text);
|
|
98
|
+
--ds-field-focus-border-warning: var(--warning-text);
|
|
92
99
|
--ds-field-focus-shadow-success: inset 0 0 0 2px var(--focus-ring-inner), inset 0 0 0 4px var(--success);
|
|
93
100
|
}
|
|
94
101
|
|
package/styles/_link.scss
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
.link {
|
|
6
6
|
--_link-color: var(--ds-link-color, var(--text-link));
|
|
7
|
-
--_link-color-hover: var(--ds-link-color-hover, color-mix(in srgb, var(--_link-color) 80%,
|
|
8
|
-
--_link-color-active: var(--ds-link-color-active, color-mix(in srgb, var(--_link-color) 65%,
|
|
7
|
+
--_link-color-hover: var(--ds-link-color-hover, color-mix(in srgb, var(--_link-color) 80%, var(--text-link-state-ink)));
|
|
8
|
+
--_link-color-active: var(--ds-link-color-active, color-mix(in srgb, var(--_link-color) 65%, var(--text-link-state-ink)));
|
|
9
9
|
--_link-color-visited: var(--ds-link-color-visited, var(--text-link-visited));
|
|
10
|
-
--_link-color-visited-hover: var(--ds-link-color-visited-hover, color-mix(in srgb, var(--_link-color-visited) 80%,
|
|
11
|
-
--_link-color-visited-active: var(--ds-link-color-visited-active, color-mix(in srgb, var(--_link-color-visited) 65%,
|
|
10
|
+
--_link-color-visited-hover: var(--ds-link-color-visited-hover, color-mix(in srgb, var(--_link-color-visited) 80%, var(--text-link-state-ink)));
|
|
11
|
+
--_link-color-visited-active: var(--ds-link-color-visited-active, color-mix(in srgb, var(--_link-color-visited) 65%, var(--text-link-state-ink)));
|
|
12
12
|
--_link-color-disabled: var(--ds-link-color-disabled, var(--text-disabled));
|
|
13
13
|
--_link-underline-color: var(--ds-link-underline-color, currentcolor);
|
|
14
14
|
--_link-underline-thickness: var(--ds-link-underline-thickness, 1px);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* A short label in a small box: a count, initials, a page, step or day number. Centring the line box
|
|
2
|
+
leaves the glyphs high, since figures and capitals have no descender, so the label's box is
|
|
3
|
+
trimmed to cap height and baseline. The baseline still lands on a whole CSS pixel, so up to half
|
|
4
|
+
a pixel stays. Without `text-box` support the label keeps line-box centring. */
|
|
5
|
+
|
|
6
|
+
/* The label is the only child of a box that centres it (`place-items: center`). It must be an
|
|
7
|
+
element: `text-box` does not reach the anonymous box of bare text. The trailing letter-spacing is
|
|
8
|
+
handed back so it does not pull the glyphs left of centre. */
|
|
9
|
+
@mixin label($letter-spacing: null) {
|
|
10
|
+
text-box: trim-both cap alphabetic;
|
|
11
|
+
|
|
12
|
+
@if $letter-spacing {
|
|
13
|
+
margin-inline-end: calc(-1 * #{$letter-spacing});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* The box sizes itself around its text (a pill with no fixed height): the trimmed leading comes back
|
|
18
|
+
as equal padding, so the pill keeps its height and the capitals sit in its middle. */
|
|
19
|
+
@mixin pill($padding-block: null) {
|
|
20
|
+
@supports (text-box: trim-both cap alphabetic) {
|
|
21
|
+
text-box: trim-both cap alphabetic;
|
|
22
|
+
|
|
23
|
+
@if $padding-block {
|
|
24
|
+
padding-block: calc(#{$padding-block} + (1lh - 1cap) / 2);
|
|
25
|
+
} @else {
|
|
26
|
+
padding-block: calc((1lh - 1cap) / 2);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// The class `dsReveal` puts on an item while it fades in. The item waits `--ds-reveal-index` steps of
|
|
2
|
+
// `--stagger-step`, never more than `--stagger-max` steps.
|
|
3
|
+
.ds-reveal {
|
|
4
|
+
--_ds-reveal-steps: min(var(--ds-reveal-index, 0), var(--stagger-max));
|
|
5
|
+
|
|
6
|
+
animation: ds-fade-in var(--duration-base) var(--ease-standard) both;
|
|
7
|
+
animation-delay: calc(var(--_ds-reveal-steps) * var(--stagger-step));
|
|
8
|
+
}
|
package/styles/_status.scss
CHANGED
|
@@ -8,8 +8,9 @@
|
|
|
8
8
|
// shipped: (bg: #E1EFFF, text: #0A6DB3),
|
|
9
9
|
// ));
|
|
10
10
|
//
|
|
11
|
-
// Map entry: (bg:, text?:, dot?:). `bg` is the badge fill, `text` the badge label (unset:
|
|
12
|
-
// --text-secondary), `dot` the ds-status-dot colour (unset: `text`)
|
|
11
|
+
// Map entry: (bg:, text?:, dot?:, border?:). `bg` is the badge fill, `text` the badge label (unset:
|
|
12
|
+
// --text-secondary), `dot` the ds-status-dot colour and the badge icon colour (unset: `text`),
|
|
13
|
+
// `border` the border of a `lozenge` badge (unset: --border-default).
|
|
13
14
|
|
|
14
15
|
@use 'sass:map';
|
|
15
16
|
|
|
@@ -18,6 +19,7 @@
|
|
|
18
19
|
$bg: map.get($spec, bg);
|
|
19
20
|
$text: map.get($spec, text);
|
|
20
21
|
$dot: map.get($spec, dot);
|
|
22
|
+
$border: map.get($spec, border);
|
|
21
23
|
|
|
22
24
|
ds-badge[data-status='#{$name}'] {
|
|
23
25
|
--ds-badge-bg-color: #{$bg};
|
|
@@ -25,6 +27,14 @@
|
|
|
25
27
|
@if $text {
|
|
26
28
|
--ds-badge-label-color: #{$text};
|
|
27
29
|
}
|
|
30
|
+
|
|
31
|
+
@if $dot {
|
|
32
|
+
--ds-badge-icon-color: #{$dot};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@if $border {
|
|
36
|
+
--ds-badge-border-color: #{$border};
|
|
37
|
+
}
|
|
28
38
|
}
|
|
29
39
|
|
|
30
40
|
ds-status-dot[data-status='#{$name}'] {
|
|
@@ -40,10 +50,10 @@
|
|
|
40
50
|
// Opt-in: emitted only when called.
|
|
41
51
|
@mixin semantic-preset {
|
|
42
52
|
@include define((
|
|
43
|
-
info: (bg: var(--info-subtitle), text: var(--info-text), dot: var(--info)),
|
|
44
|
-
success: (bg: var(--success-subtitle), text: var(--success-text), dot: var(--success)),
|
|
45
|
-
warning: (bg: var(--warning-subtitle), text: var(--warning-text), dot: var(--warning)),
|
|
46
|
-
error: (bg: var(--error-subtitle), text: var(--error-text), dot: var(--error)),
|
|
47
|
-
neutral: (bg: var(--surface-secondary), text: var(--text-secondary),dot: var(--icon-muted)),
|
|
53
|
+
info: (bg: var(--info-subtitle), text: var(--info-text), dot: var(--info), border: var(--info-border)),
|
|
54
|
+
success: (bg: var(--success-subtitle), text: var(--success-text), dot: var(--success), border: var(--success-border)),
|
|
55
|
+
warning: (bg: var(--warning-subtitle), text: var(--warning-text), dot: var(--warning), border: var(--warning-border)),
|
|
56
|
+
error: (bg: var(--error-subtitle), text: var(--error-text), dot: var(--error), border: var(--error-border)),
|
|
57
|
+
neutral: (bg: var(--surface-secondary), text: var(--text-secondary),dot: var(--icon-muted), border: var(--border-default)),
|
|
48
58
|
));
|
|
49
59
|
}
|
package/styles/_step-marker.scss
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
// The step marker shared by ds-timeline-item and ds-chat-step, read from the host's `--_<prefix>-node-*`
|
|
2
|
-
// properties: the ring, its fill and the centred glyph.
|
|
3
|
-
|
|
2
|
+
// properties: the ring, its fill and the centred glyph. A status change fades the colours and
|
|
3
|
+
// cross-fades the dashed ring of a planned step. The spinner arrives as an arc growing to its length;
|
|
4
|
+
// a glyph arriving closes the arc into a ring, grows the fill out of it and draws the glyph stroke by
|
|
5
|
+
// stroke (`prepareMarkerStrokes` splits the strokes). Every one-shot duration is zero under
|
|
6
|
+
// `prefers-reduced-motion: reduce`.
|
|
7
|
+
@property --_step-arc-sweep {
|
|
8
|
+
syntax: '<angle>';
|
|
9
|
+
inherits: true;
|
|
10
|
+
initial-value: 90deg;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@mixin node($prefix, $border-width, $spinner-size) {
|
|
4
14
|
.node {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
15
|
+
position: relative;
|
|
16
|
+
display: inline-grid;
|
|
17
|
+
place-items: center;
|
|
8
18
|
flex: none;
|
|
9
19
|
width: var(--_#{$prefix}-node-size);
|
|
10
20
|
height: var(--_#{$prefix}-node-size);
|
|
@@ -12,6 +22,178 @@
|
|
|
12
22
|
background-color: var(--_#{$prefix}-node-bg-color);
|
|
13
23
|
color: var(--_#{$prefix}-node-color);
|
|
14
24
|
border: $border-width solid var(--_#{$prefix}-node-border-color);
|
|
25
|
+
transition-property: background-color, border-color, color;
|
|
26
|
+
transition-duration: var(--duration-base);
|
|
27
|
+
transition-timing-function: var(--ease-standard);
|
|
28
|
+
|
|
29
|
+
// A dashed border cannot fade into a solid one, so the dashes are a layer of their own.
|
|
30
|
+
&::before {
|
|
31
|
+
content: '';
|
|
32
|
+
position: absolute;
|
|
33
|
+
inset: calc(-1 * #{$border-width});
|
|
34
|
+
box-sizing: border-box;
|
|
35
|
+
border: $border-width dashed var(--_#{$prefix}-node-border-color);
|
|
36
|
+
border-radius: inherit;
|
|
37
|
+
opacity: 0;
|
|
38
|
+
transition: opacity var(--duration-base) var(--ease-standard);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.mark {
|
|
43
|
+
grid-area: 1 / 1;
|
|
44
|
+
display: inline-flex;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
:host(.is-settled) {
|
|
48
|
+
--_step-arc-close: var(--duration-slow);
|
|
49
|
+
--_step-fill-delay: calc(var(--duration-slow) * 0.75);
|
|
50
|
+
--_step-draw-delay: calc(var(--_step-fill-delay) + var(--duration-base) * 0.6);
|
|
51
|
+
--_step-draw-stagger: calc(var(--duration-fast) * 0.6);
|
|
52
|
+
|
|
53
|
+
.mark-in:has(> ds-spinner) {
|
|
54
|
+
animation: ds-step-arc-grow var(--duration-slow) var(--ease-standard) both;
|
|
55
|
+
|
|
56
|
+
ds-spinner {
|
|
57
|
+
mask: conic-gradient(
|
|
58
|
+
from -45deg,
|
|
59
|
+
var(--surface-default) var(--_step-arc-sweep),
|
|
60
|
+
transparent 0 90deg,
|
|
61
|
+
var(--surface-default) 0
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.mark-out {
|
|
67
|
+
animation: ds-step-mark-out var(--ds-motion-check-exit-duration)
|
|
68
|
+
var(--ds-motion-check-exit-easing) both;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// A glyph arriving takes the spinner's arc over where it stands, so the spinner goes at once.
|
|
72
|
+
.node:has(> .mark > ds-icon) > .mark-out:has(> ds-spinner) {
|
|
73
|
+
display: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// Angular keeps the enter class while the element's own animation runs, so the glyph's mark holds
|
|
77
|
+
// one as long as the fill and the strokes it carries.
|
|
78
|
+
.mark-in:has(> ds-icon) {
|
|
79
|
+
animation: ds-step-mark-hold
|
|
80
|
+
calc(var(--_step-draw-delay) + var(--duration-base) + var(--_step-draw-stagger)) linear both;
|
|
81
|
+
|
|
82
|
+
&::before {
|
|
83
|
+
content: '';
|
|
84
|
+
position: absolute;
|
|
85
|
+
inset: calc(-1 * #{$border-width});
|
|
86
|
+
border-radius: var(--radius-pill);
|
|
87
|
+
background-color: var(--_#{$prefix}-node-bg-color);
|
|
88
|
+
animation: ds-step-fill var(--duration-base) var(--ease-decelerate) var(--_step-fill-delay) both;
|
|
89
|
+
--_step-fill-from: calc((var(--_#{$prefix}-node-size) - #{$spinner-size}) / 2 - #{$border-width});
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// The spinner's arc in the new colour, from the angle and length `holdMarkerArc` read off the
|
|
93
|
+
// spinner: its tail keeps the spinner's turn while its head runs on round to a full ring.
|
|
94
|
+
&::after {
|
|
95
|
+
content: '';
|
|
96
|
+
position: absolute;
|
|
97
|
+
top: 50%;
|
|
98
|
+
left: 50%;
|
|
99
|
+
width: #{$spinner-size};
|
|
100
|
+
height: #{$spinner-size};
|
|
101
|
+
box-sizing: border-box;
|
|
102
|
+
translate: -50% -50%;
|
|
103
|
+
border: #{$border-width} solid var(--_#{$prefix}-node-border-color);
|
|
104
|
+
border-radius: var(--radius-pill);
|
|
105
|
+
mask: conic-gradient(
|
|
106
|
+
from -45deg,
|
|
107
|
+
var(--surface-default) var(--_step-arc-sweep),
|
|
108
|
+
transparent 0
|
|
109
|
+
);
|
|
110
|
+
animation:
|
|
111
|
+
ds-step-arc-close var(--_step-arc-close) var(--ease-standard) both,
|
|
112
|
+
ds-step-arc-turn var(--duration-loop-fast) linear both;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
ds-icon {
|
|
116
|
+
position: relative;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
::ng-deep svg > * {
|
|
120
|
+
stroke-dasharray: 1 2;
|
|
121
|
+
animation: ds-step-stroke var(--duration-base) var(--ease-standard) var(--_step-draw-delay) both;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
::ng-deep svg > * + * {
|
|
125
|
+
animation-delay: calc(var(--_step-draw-delay) + var(--_step-draw-stagger));
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// The ring stays unfilled until the growing fill reaches its edge. Keyed on the glyph, not on the
|
|
130
|
+
// enter class, which Angular adds a task after the status changes.
|
|
131
|
+
.node:has(> .mark > ds-icon) {
|
|
132
|
+
transition-delay: calc(var(--_step-fill-delay) + var(--duration-base)), 0s, 0s;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
@at-root {
|
|
137
|
+
@keyframes ds-step-arc-grow {
|
|
138
|
+
from {
|
|
139
|
+
opacity: 0;
|
|
140
|
+
--_step-arc-sweep: 0deg;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
@keyframes ds-step-mark-out {
|
|
145
|
+
to {
|
|
146
|
+
opacity: 0;
|
|
147
|
+
scale: 0.4;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@keyframes ds-step-mark-hold {
|
|
152
|
+
to {
|
|
153
|
+
opacity: 1;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@keyframes ds-step-arc-close {
|
|
158
|
+
from {
|
|
159
|
+
--_step-arc-sweep: var(--_step-arc-length, 90deg);
|
|
160
|
+
}
|
|
161
|
+
to {
|
|
162
|
+
--_step-arc-sweep: 360deg;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
@keyframes ds-step-arc-turn {
|
|
167
|
+
from {
|
|
168
|
+
rotate: var(--_step-arc-from, 0deg);
|
|
169
|
+
}
|
|
170
|
+
to {
|
|
171
|
+
rotate: calc(var(--_step-arc-from, 0deg) + 1turn);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
@keyframes ds-step-fill {
|
|
176
|
+
0% {
|
|
177
|
+
opacity: 0;
|
|
178
|
+
inset: var(--_step-fill-from);
|
|
179
|
+
}
|
|
180
|
+
0.1% {
|
|
181
|
+
opacity: 1;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
@keyframes ds-step-stroke {
|
|
186
|
+
0% {
|
|
187
|
+
opacity: 0;
|
|
188
|
+
stroke-dashoffset: 1;
|
|
189
|
+
}
|
|
190
|
+
0.1% {
|
|
191
|
+
opacity: 1;
|
|
192
|
+
}
|
|
193
|
+
100% {
|
|
194
|
+
stroke-dashoffset: 0;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
15
197
|
}
|
|
16
198
|
}
|
|
17
199
|
|
|
@@ -40,7 +222,11 @@
|
|
|
40
222
|
|
|
41
223
|
:host([data-status='pending']) {
|
|
42
224
|
.node {
|
|
43
|
-
border-
|
|
225
|
+
border-color: transparent;
|
|
226
|
+
|
|
227
|
+
&::before {
|
|
228
|
+
opacity: 1;
|
|
229
|
+
}
|
|
44
230
|
}
|
|
45
231
|
|
|
46
232
|
.heading {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// The one list of roles an overlay rebinds to its level, so a row inside it keeps its hover, muted
|
|
2
|
+
// and selected fills one step off the overlay's own fill. Every overlay includes it; a role added here
|
|
3
|
+
// reaches all of them.
|
|
4
|
+
@mixin overlay($level: 'overlay') {
|
|
5
|
+
--surface-secondary: var(--surface-#{$level}-secondary);
|
|
6
|
+
--surface-muted: var(--surface-#{$level}-muted);
|
|
7
|
+
--surface-tint: var(--surface-#{$level}-tint);
|
|
8
|
+
--accent-surface-tint: var(--surface-#{$level}-tint);
|
|
9
|
+
--accent-strong: var(--accent-strong-overlay);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// A coloured surface (an alert, a banner) turns the ghost and outline state overlay from the control's
|
|
13
|
+
// own colour to the theme's neutral one, so hover shades the surface instead of mixing two hues.
|
|
14
|
+
@mixin tinted {
|
|
15
|
+
--state-overlay: var(--state-overlay-tinted);
|
|
16
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// A highlight that sweeps across a line of text in a loop, for the line that says work is under way.
|
|
2
|
+
// The keyframes are emitted where the mixin is included: emulated encapsulation renames an animation
|
|
3
|
+
// and its keyframes together only inside one component stylesheet. Under
|
|
4
|
+
// `prefers-reduced-motion: reduce` nothing is drawn and the text keeps its own colour.
|
|
5
|
+
@mixin sweep($base, $highlight) {
|
|
6
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
7
|
+
background: linear-gradient(90deg, $base 40%, $highlight 50%, $base 60%) 100% 0 / 300% 100%
|
|
8
|
+
no-repeat;
|
|
9
|
+
background-clip: text;
|
|
10
|
+
color: transparent;
|
|
11
|
+
animation: ds-text-shimmer var(--duration-loop-slow) linear infinite;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@at-root {
|
|
15
|
+
@keyframes ds-text-shimmer {
|
|
16
|
+
to {
|
|
17
|
+
background-position: 0 0;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
1
|
+
// The input colours (--primary, the channels, the -on colours) and light apply at bare :root. Dark is
|
|
2
|
+
// opt-in via <html data-theme="dark">; its block declares every formula again, so it replaces light
|
|
3
|
+
// rather than patching it, and never an input, so a brand that sets --primary once is read by both. No
|
|
4
|
+
// automatic prefers-color-scheme switch: opt in with provideDsTheme({ followSystem: true }). The dark
|
|
5
|
+
// block comes last so it wins over the light-context overrides (brand-gray neutrals) at equal specificity.
|
|
5
6
|
|
|
7
|
+
@use '../themes/semantic';
|
|
6
8
|
@use '../themes/light/theme' as light;
|
|
7
9
|
@use '../themes/dark/theme' as dark;
|
|
8
10
|
|
|
9
11
|
:root {
|
|
10
12
|
color-scheme: light; // opts out of UA force-dark
|
|
11
13
|
|
|
14
|
+
@include semantic.inputs;
|
|
12
15
|
@include light.theme;
|
|
13
16
|
}
|
|
14
17
|
|
|
@@ -34,3 +37,13 @@
|
|
|
34
37
|
|
|
35
38
|
@include dark.theme;
|
|
36
39
|
}
|
|
40
|
+
|
|
41
|
+
// Forced colours paint every field border CanvasText, so a disabled field would read as an enabled
|
|
42
|
+
// one; a system colour is kept by the browser where an author colour is not.
|
|
43
|
+
@media (forced-colors: active) {
|
|
44
|
+
:root,
|
|
45
|
+
:root[data-theme='dark'] {
|
|
46
|
+
--border-disabled: GrayText;
|
|
47
|
+
--text-disabled: GrayText;
|
|
48
|
+
}
|
|
49
|
+
}
|