@ids-group-ltd/ids-design-system 1.1.1 → 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 +869 -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-empty-state.md +2 -1
- package/agent/feedback/ds-stat.md +1 -1
- package/agent/feedback/ds-toast.md +2 -2
- package/agent/feedback/ds-tree.md +4 -2
- package/agent/forms/ds-button.md +3 -3
- package/agent/forms/ds-chat-input.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/navigation/ds-splitter.md +1 -1
- 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 +60 -51
- 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 +122 -21
- 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-empty-state.mjs +14 -7
- package/fesm2022/ids-group-ltd-ids-design-system-components-empty-state.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-popover.mjs +9 -2
- package/fesm2022/ids-group-ltd-ids-design-system-components-popover.mjs.map +1 -1
- 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 +58 -9
- 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 +25 -1
- 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 +143 -0
- package/migrations/1.2.0.json +1433 -0
- package/migrations/README.md +11 -2
- package/package.json +28 -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 +397 -73
- package/schematics/collection.json +1 -1
- package/stylelint/deprecated-tokens.json +7 -0
- package/stylelint/index.mjs +17 -3
- package/stylelint/known-tokens.mjs +139 -0
- package/stylelint/report.mjs +185 -0
- package/stylelint/tokens.mjs +160 -0
- package/stylelint/use-tokens.mjs +397 -0
- package/styles/_check-box.scss +6 -5
- 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 +34 -7
- package/styles/ds.scss +1 -0
- package/themes/README.md +16 -21
- package/themes/_semantic.scss +134 -61
- package/themes/dark/_theme.scss +20 -24
- 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 +67 -6
- 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-empty-state.d.ts +7 -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 +26 -4
- package/types/ids-group-ltd-ids-design-system-components.d.ts +26 -1
- package/types/ids-group-ltd-ids-design-system-core.d.ts +38 -2
- package/types/ids-group-ltd-ids-design-system.d.ts +10 -7
- package/agent/navigation/ds-sidenav.md +0 -13
package/themes/_semantic.scss
CHANGED
|
@@ -1,5 +1,63 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
@use 'sass:string';
|
|
2
|
+
|
|
3
|
+
// Tier 2 semantic role assignments: the light-default formulas over the inputs below, resolved through the
|
|
4
|
+
// per-theme palette; dark overrides only the deltas. At runtime exactly one theme block matches.
|
|
5
|
+
|
|
6
|
+
$state-step-hover: 0.05;
|
|
7
|
+
$state-step-pressed: 0.12;
|
|
8
|
+
|
|
9
|
+
// A hover or pressed fill: $fill's OKLCH lightness moved by $step away from the label colour $on (darker under
|
|
10
|
+
// a light label, lighter under a dark one), or toward it for both states when the pressed step would leave
|
|
11
|
+
// 0.3-0.95. A relative colour reads one origin only, so the origin is $fill mixed half and half with black or
|
|
12
|
+
// white chosen by $on: its lightness over 0.5 says the label is dark, and the fill's own lightness and chroma
|
|
13
|
+
// are recovered from it. It steps in oklab, doubling a and b back: a near-grey colour read in oklch falls under
|
|
14
|
+
// the browser's achromatic threshold, its hue reads as `none` and renders red.
|
|
15
|
+
@function state-step($fill, $on, $step) {
|
|
16
|
+
$away: 'oklch(from #{$on} clamp(0, (0.5 - l) * 1000, 1) 0 0)';
|
|
17
|
+
$probe: 'color-mix(in oklab, #{$fill}, #{$away})';
|
|
18
|
+
$dark-label: 'clamp(0, (l - 0.5) * 100000, 1)';
|
|
19
|
+
$fill-l: '(2 * l - #{$dark-label})';
|
|
20
|
+
$away-sign: '(2 * #{$dark-label} - 1)';
|
|
21
|
+
$pressed-l: '(#{$fill-l} + #{$away-sign} * #{$state-step-pressed})';
|
|
22
|
+
$flip: '(clamp(0, (0.3 - #{$pressed-l}) * 100000, 1) + clamp(0, (#{$pressed-l} - 0.95) * 100000, 1))';
|
|
23
|
+
|
|
24
|
+
@return string.unquote('oklab(from #{$probe} calc(#{$fill-l} + #{$away-sign} * (1 - 2 * #{$flip}) * #{$step}) calc(a * 2) calc(b * 2))');
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// The input colours, declared once at :root for every theme. The theme blocks hold only the formulas
|
|
28
|
+
// over them, so a brand that sets an input once (--primary, a channel, an -on colour) is read by light
|
|
29
|
+
// and dark alike; a dark block that redeclared one would win over the brand by specificity.
|
|
30
|
+
@mixin inputs {
|
|
31
|
+
--primary: var(--blue-600);
|
|
32
|
+
--primary-on: white;
|
|
33
|
+
--primary-h: var(--blue-h);
|
|
34
|
+
--primary-s: var(--blue-s);
|
|
35
|
+
--primary-l: var(--blue-l);
|
|
36
|
+
|
|
37
|
+
/* Override --secondary-h/s/l (or --secondary) to reskin; hover and pressed recompose. */
|
|
38
|
+
--secondary-h: var(--orange-h);
|
|
39
|
+
--secondary-s: var(--orange-s);
|
|
40
|
+
--secondary-l: var(--orange-l);
|
|
41
|
+
--secondary: hsl(var(--secondary-h) var(--secondary-s) var(--secondary-l));
|
|
42
|
+
--secondary-on: var(--primary-on);
|
|
43
|
+
|
|
44
|
+
/* Third brand hue (tertiary button, tonal accents). Override --tertiary-h/s/l (or --tertiary) to reskin. */
|
|
45
|
+
--tertiary-h: var(--violet-h);
|
|
46
|
+
--tertiary-s: var(--violet-s);
|
|
47
|
+
--tertiary-l: var(--violet-l);
|
|
48
|
+
--tertiary: hsl(var(--tertiary-h) var(--tertiary-s) var(--tertiary-l));
|
|
49
|
+
--tertiary-on: var(--primary-on);
|
|
50
|
+
|
|
51
|
+
--error-h: var(--red-h);
|
|
52
|
+
--error-s: var(--red-s);
|
|
53
|
+
--error-l: var(--red-l);
|
|
54
|
+
--success-h: var(--green-h);
|
|
55
|
+
--success-s: var(--green-s);
|
|
56
|
+
--success-l: var(--green-l);
|
|
57
|
+
--warning-h: var(--yellow-h);
|
|
58
|
+
--warning-s: var(--yellow-s);
|
|
59
|
+
--warning-l: var(--yellow-l);
|
|
60
|
+
}
|
|
3
61
|
|
|
4
62
|
@mixin roles {
|
|
5
63
|
/* Surfaces.
|
|
@@ -12,7 +70,10 @@
|
|
|
12
70
|
overlay of that level, which rebinds them so a hover never matches the overlay fill
|
|
13
71
|
· tint : brand-tinted (active rows, sidenav active item)
|
|
14
72
|
· inverted : dark-on-light callouts, toasts
|
|
15
|
-
Hover
|
|
73
|
+
Hover and pressed on any surface: --state-layer-hover / -pressed, the element's own text colour at
|
|
74
|
+
--opacity-state-hover / -pressed over whatever is under it. Ghost and outline buttons lay --state-overlay
|
|
75
|
+
at --opacity-overlay-hover / -pressed instead: their label colour on the page, --state-overlay-tinted
|
|
76
|
+
inside a coloured surface (surface-level.tinted), where a blue layer on a red alert turns purple. */
|
|
16
77
|
--surface-canvas: var(--neutral-50);
|
|
17
78
|
--surface-default: var(--neutral-0);
|
|
18
79
|
--surface-secondary: var(--neutral-100);
|
|
@@ -22,6 +83,12 @@
|
|
|
22
83
|
--surface-tint: hsl(from var(--primary) h 100% 97%);
|
|
23
84
|
--surface-disabled: var(--neutral-100);
|
|
24
85
|
--surface-muted: var(--neutral-150);
|
|
86
|
+
--state-layer-hover: color-mix(in oklab, currentcolor calc(var(--opacity-state-hover) * 100%), transparent);
|
|
87
|
+
--state-layer-pressed: color-mix(in oklab, currentcolor calc(var(--opacity-state-pressed) * 100%), transparent);
|
|
88
|
+
--state-overlay: currentcolor;
|
|
89
|
+
--state-overlay-tinted: black;
|
|
90
|
+
--opacity-overlay-hover: 0.06;
|
|
91
|
+
--opacity-overlay-pressed: 0.12;
|
|
25
92
|
--surface-overlay-secondary: var(--surface-secondary);
|
|
26
93
|
--surface-overlay-muted: var(--surface-muted);
|
|
27
94
|
--surface-overlay-raised: var(--surface-overlay);
|
|
@@ -39,18 +106,38 @@
|
|
|
39
106
|
|
|
40
107
|
--border-default: var(--neutral-200);
|
|
41
108
|
--border-strong: var(--neutral-300);
|
|
42
|
-
|
|
43
|
-
|
|
109
|
+
|
|
110
|
+
/* Every field and control boundary. Translucent, so it darkens with the surface under it: 3.35-3.45:1
|
|
111
|
+
on the page, a card, an overlay and their secondary and muted fills (measured 2026-11-14). A box
|
|
112
|
+
drawing it clips its fill to the padding box, or the border mixes with the box's own fill. */
|
|
113
|
+
--border-field: rgb(0 0 0 / 46%);
|
|
114
|
+
--border-field-hover: rgb(0 0 0 / 68%);
|
|
115
|
+
|
|
116
|
+
/* Read-only ds-input, ds-select and ds-textarea. Translucent like --border-field, so it reads the
|
|
117
|
+
same on any surface: lighter than a field, stronger than a disabled one, below 3:1. */
|
|
118
|
+
--border-readonly: rgb(0 0 0 / 24%);
|
|
119
|
+
|
|
120
|
+
/* Disabled field and control boundary. Translucent like --border-field, so it stays visible on
|
|
121
|
+
--surface-muted, which equals --neutral-150; below 3:1, as disabled is exempt. */
|
|
122
|
+
--border-disabled: rgb(0 0 0 / 12%);
|
|
123
|
+
|
|
124
|
+
/* Selected segment inside a ds-segmented track, which draws no border: the fill is the boundary, at
|
|
125
|
+
least 3:1 against the track (4.98:1, measured 2026-11-09). Declared with the theme, so a ds-color
|
|
126
|
+
zone does not recolour it. */
|
|
127
|
+
--segmented-selected: var(--accent);
|
|
128
|
+
--segmented-selected-on: var(--accent-on);
|
|
44
129
|
--border-overlay: var(--border-default);
|
|
45
130
|
--border-subtitle: var(--neutral-150);
|
|
46
131
|
--border-divider: var(--neutral-150);
|
|
47
132
|
--border-inverted: var(--neutral-700);
|
|
48
|
-
--border-disabled: var(--neutral-150);
|
|
49
133
|
|
|
50
134
|
--text-primary: var(--neutral-900);
|
|
51
135
|
--text-secondary: var(--neutral-700);
|
|
52
136
|
--text-tertiary: var(--neutral-500);
|
|
53
137
|
--text-tertiary-overlay: var(--text-tertiary);
|
|
138
|
+
|
|
139
|
+
/* Decoration only: a grip, the days of a neighbouring month. 2.53:1 on white is below the 4.5:1 text
|
|
140
|
+
floor; quiet text that must be read is --text-tertiary (4.74:1). */
|
|
54
141
|
--text-muted: var(--neutral-400);
|
|
55
142
|
--text-disabled: var(--neutral-400);
|
|
56
143
|
--text-inverted: var(--neutral-0);
|
|
@@ -59,6 +146,7 @@
|
|
|
59
146
|
--text-on-media-shadow: 0 1px 3px hsl(0deg 0% 0% / 70%);
|
|
60
147
|
--text-link: var(--blue-700);
|
|
61
148
|
--text-link-visited: hsl(var(--blue-h) calc(var(--blue-s) * 0.6) 45%);
|
|
149
|
+
--text-link-state-ink: black;
|
|
62
150
|
--text-on-primary: white;
|
|
63
151
|
--text-on-success: white;
|
|
64
152
|
|
|
@@ -71,85 +159,62 @@
|
|
|
71
159
|
--icon-muted: var(--neutral-400);
|
|
72
160
|
--icon-on-primary: white;
|
|
73
161
|
|
|
74
|
-
/*
|
|
75
|
-
|
|
76
|
-
--primary-
|
|
77
|
-
--primary-
|
|
78
|
-
--primary-
|
|
79
|
-
--error-h: var(--red-h);
|
|
80
|
-
--error-s: var(--red-s);
|
|
81
|
-
--error-l: var(--red-l);
|
|
82
|
-
--success-h: var(--green-h);
|
|
83
|
-
--success-s: var(--green-s);
|
|
84
|
-
--success-l: var(--green-l);
|
|
85
|
-
--warning-h: var(--yellow-h);
|
|
86
|
-
--warning-s: var(--yellow-s);
|
|
87
|
-
--warning-l: var(--yellow-l);
|
|
88
|
-
|
|
89
|
-
/* Hover, pressed and selected-hover derive from --primary via color-mix(), so overriding only --primary
|
|
90
|
-
propagates to every state. Steps (12% / 24% darker) mirror the blue 600, 700, 800 ramp. */
|
|
91
|
-
--primary: var(--blue-600);
|
|
92
|
-
--primary-hover: color-mix(in srgb, var(--primary) 88%, black);
|
|
93
|
-
--primary-pressed: color-mix(in srgb, var(--primary) 76%, black);
|
|
94
|
-
--primary-selected-hover: color-mix(in srgb, var(--primary) 88%, black);
|
|
162
|
+
/* Hover, pressed and selected-hover step the role's lightness (state-step above), so overriding only
|
|
163
|
+
--primary propagates to every state. */
|
|
164
|
+
--primary-hover: #{state-step('var(--primary)', 'var(--primary-on)', $state-step-hover)};
|
|
165
|
+
--primary-pressed: #{state-step('var(--primary)', 'var(--primary-on)', $state-step-pressed)};
|
|
166
|
+
--primary-selected-hover: #{state-step('var(--primary)', 'var(--primary-on)', $state-step-hover)};
|
|
95
167
|
--primary-subtitle: hsl(from var(--primary) h 100% 97%);
|
|
96
168
|
--primary-muted: hsl(from var(--primary) h 95% 94%);
|
|
97
169
|
--primary-muted-strong: hsl(from var(--primary) h 95% 89%);
|
|
98
|
-
--primary-strong: hsl(from var(--primary) h calc(s * 0.85) calc(l - 7));
|
|
99
|
-
--primary-on: white;
|
|
100
170
|
|
|
101
|
-
/*
|
|
102
|
-
--
|
|
103
|
-
--
|
|
104
|
-
--secondary-l: var(--orange-l);
|
|
171
|
+
/* The tonal press: the -muted fill mixed toward the family's base, read by the tonal ds-button. */
|
|
172
|
+
--primary-muted-pressed: color-mix(in srgb, var(--primary-muted) 72%, var(--primary));
|
|
173
|
+
--primary-strong: hsl(from var(--primary) h calc(s * 0.85) calc(l - 7));
|
|
105
174
|
|
|
106
|
-
--secondary:
|
|
107
|
-
--secondary-
|
|
108
|
-
--secondary-pressed: color-mix(in srgb, var(--secondary) 76%, black);
|
|
175
|
+
--secondary-hover: #{state-step('var(--secondary)', 'var(--secondary-on)', $state-step-hover)};
|
|
176
|
+
--secondary-pressed: #{state-step('var(--secondary)', 'var(--secondary-on)', $state-step-pressed)};
|
|
109
177
|
--secondary-strong: hsl(var(--secondary-h) var(--secondary-s) calc(var(--secondary-l) - 11%));
|
|
110
178
|
--secondary-subtitle: hsl(var(--secondary-h) 100% 97%);
|
|
111
179
|
--secondary-muted: hsl(var(--secondary-h) 95% 94%);
|
|
112
180
|
--secondary-muted-strong: hsl(var(--secondary-h) 95% 89%);
|
|
113
|
-
--secondary-
|
|
181
|
+
--secondary-muted-pressed: color-mix(in srgb, var(--secondary-muted) 72%, var(--secondary));
|
|
114
182
|
|
|
115
|
-
|
|
116
|
-
--tertiary-
|
|
117
|
-
--tertiary-s: var(--violet-s);
|
|
118
|
-
--tertiary-l: var(--violet-l);
|
|
119
|
-
|
|
120
|
-
--tertiary: hsl(var(--tertiary-h) var(--tertiary-s) var(--tertiary-l));
|
|
121
|
-
--tertiary-hover: color-mix(in srgb, var(--tertiary) 88%, black);
|
|
122
|
-
--tertiary-pressed: color-mix(in srgb, var(--tertiary) 76%, black);
|
|
183
|
+
--tertiary-hover: #{state-step('var(--tertiary)', 'var(--tertiary-on)', $state-step-hover)};
|
|
184
|
+
--tertiary-pressed: #{state-step('var(--tertiary)', 'var(--tertiary-on)', $state-step-pressed)};
|
|
123
185
|
--tertiary-strong: hsl(var(--tertiary-h) var(--tertiary-s) calc(var(--tertiary-l) - 11%));
|
|
124
186
|
--tertiary-subtitle: hsl(var(--tertiary-h) 100% 97%);
|
|
125
187
|
--tertiary-muted: hsl(var(--tertiary-h) 95% 94%);
|
|
126
188
|
--tertiary-muted-strong: hsl(var(--tertiary-h) 95% 89%);
|
|
127
|
-
--tertiary-
|
|
189
|
+
--tertiary-muted-pressed: color-mix(in srgb, var(--tertiary-muted) 72%, var(--tertiary));
|
|
128
190
|
|
|
129
191
|
/* -hover and -pressed derive from the base role like --primary-hover. -text, -border, -subtitle
|
|
130
192
|
and -muted are ramp picks: their contrast targets are tuned, not procedural. */
|
|
131
193
|
--success: var(--green-500);
|
|
132
|
-
--success-hover:
|
|
194
|
+
--success-hover: #{state-step('var(--success)', 'var(--success-on)', $state-step-hover)};
|
|
133
195
|
--success-subtitle: var(--green-50);
|
|
134
196
|
--success-muted: var(--green-100);
|
|
135
197
|
--success-muted-strong: var(--green-200);
|
|
198
|
+
--success-muted-pressed: color-mix(in srgb, var(--success-muted) 72%, var(--success));
|
|
136
199
|
--success-border: var(--green-200);
|
|
137
200
|
--success-text: var(--green-700);
|
|
138
201
|
|
|
139
202
|
--warning: var(--yellow-400);
|
|
140
|
-
--warning-hover:
|
|
203
|
+
--warning-hover: #{state-step('var(--warning)', 'var(--warning-on)', $state-step-hover)};
|
|
141
204
|
--warning-subtitle: var(--yellow-50);
|
|
142
205
|
--warning-muted: var(--yellow-100);
|
|
143
206
|
--warning-muted-strong: var(--yellow-200);
|
|
207
|
+
--warning-muted-pressed: color-mix(in srgb, var(--warning-muted) 72%, var(--warning));
|
|
144
208
|
--warning-border: var(--yellow-200);
|
|
145
209
|
--warning-text: var(--yellow-700);
|
|
146
210
|
|
|
147
211
|
--error: var(--red-500);
|
|
148
|
-
--error-hover:
|
|
149
|
-
--error-pressed:
|
|
212
|
+
--error-hover: #{state-step('var(--error)', 'var(--error-on)', $state-step-hover)};
|
|
213
|
+
--error-pressed: #{state-step('var(--error)', 'var(--error-on)', $state-step-pressed)};
|
|
150
214
|
--error-subtitle: var(--red-50);
|
|
151
215
|
--error-muted: var(--red-100);
|
|
152
216
|
--error-muted-strong: var(--red-200);
|
|
217
|
+
--error-muted-pressed: color-mix(in srgb, var(--error-muted) 72%, var(--error));
|
|
153
218
|
--error-highlight: var(--red-300);
|
|
154
219
|
--error-border: var(--red-200);
|
|
155
220
|
--error-text: var(--red-600);
|
|
@@ -157,35 +222,42 @@
|
|
|
157
222
|
/* -pressed (success/warning) and -on: roles the --accent-* pointers need from every ds-color
|
|
158
223
|
family. There is no --<status>-strong: for status families -text is the readable on-tint
|
|
159
224
|
colour and --accent-strong asks for it by name; brand families carry it as -strong. */
|
|
160
|
-
--success-pressed:
|
|
161
|
-
--warning-pressed:
|
|
225
|
+
--success-pressed: #{state-step('var(--success)', 'var(--success-on)', $state-step-pressed)};
|
|
226
|
+
--warning-pressed: #{state-step('var(--warning)', 'var(--warning-on)', $state-step-pressed)};
|
|
162
227
|
--error-on: var(--text-on-error);
|
|
163
228
|
--success-on: var(--text-on-success);
|
|
164
229
|
--warning-on: var(--text-on-warning);
|
|
165
230
|
|
|
166
231
|
--info: var(--sky-500);
|
|
167
|
-
--info-hover:
|
|
232
|
+
--info-hover: #{state-step('var(--info)', 'var(--text-on-primary)', $state-step-hover)};
|
|
168
233
|
--info-subtitle: var(--sky-50);
|
|
169
234
|
--info-muted: var(--sky-100);
|
|
170
235
|
--info-border: var(--sky-200);
|
|
171
236
|
--info-text: var(--sky-700);
|
|
172
237
|
|
|
238
|
+
/* The neutral colour of ds-button: a --text-secondary fill under --surface-default, stepped and tinted
|
|
239
|
+
with the same formulas as the brand families. */
|
|
240
|
+
--neutral-fill: var(--text-secondary);
|
|
241
|
+
--neutral-fill-on: var(--surface-default);
|
|
242
|
+
--neutral-fill-hover: #{state-step('var(--neutral-fill)', 'var(--neutral-fill-on)', $state-step-hover)};
|
|
243
|
+
--neutral-fill-pressed: #{state-step('var(--neutral-fill)', 'var(--neutral-fill-on)', $state-step-pressed)};
|
|
244
|
+
--neutral-fill-muted: color-mix(in srgb, var(--neutral-fill) 14%, var(--surface-default));
|
|
245
|
+
--neutral-fill-muted-strong: color-mix(in srgb, var(--neutral-fill) 22%, var(--surface-default));
|
|
246
|
+
--neutral-fill-muted-pressed: color-mix(in srgb, var(--neutral-fill-muted) 72%, var(--neutral-fill));
|
|
247
|
+
|
|
173
248
|
/* Separates the two bands of the field halo. Not `transparent`: a transparent shadow layer is a no-op, so
|
|
174
249
|
the outer band shows as one solid slab. `--surface-default`, not `--surface-canvas`, which draws a dark rim. */
|
|
175
250
|
--focus-ring-inner: var(--surface-default);
|
|
176
|
-
--focus-ring-outer-h: var(--primary-h);
|
|
177
|
-
--focus-ring-outer-s: var(--primary-s);
|
|
178
|
-
--focus-ring-outer-l: var(--primary-l);
|
|
179
251
|
--focus-ring-outer-alpha: 1;
|
|
180
252
|
|
|
181
253
|
/* Flat focus colour for components drawing an `outline` (a row in a clipping list, a swatch grid); it must
|
|
182
|
-
stay defined or `outline-color` falls to `currentColor`. `--accent`, not `--
|
|
254
|
+
stay defined or `outline-color` falls to `currentColor`. `--accent`, not `--primary`, so a
|
|
183
255
|
`ds-color` zone follows the family. */
|
|
184
256
|
--focus-ring-color: var(--accent);
|
|
185
257
|
|
|
186
258
|
--focus-ring:
|
|
187
259
|
0 0 0 2px var(--focus-ring-inner),
|
|
188
|
-
0 0 0 4px
|
|
260
|
+
0 0 0 4px rgb(from var(--primary) r g b / var(--focus-ring-outer-alpha));
|
|
189
261
|
--focus-ring-inverted:
|
|
190
262
|
0 0 0 2px var(--neutral-900),
|
|
191
263
|
0 0 0 4px var(--blue-300);
|
|
@@ -197,7 +269,7 @@
|
|
|
197
269
|
eaten by `overflow: hidden`. Reached through `[data-focus="inset"]`. */
|
|
198
270
|
--focus-ring-inset:
|
|
199
271
|
inset 0 0 0 2px var(--focus-ring-inner),
|
|
200
|
-
inset 0 0 0 4px
|
|
272
|
+
inset 0 0 0 4px rgb(from var(--primary) r g b / var(--focus-ring-outer-alpha));
|
|
201
273
|
--focus-ring-inset-error:
|
|
202
274
|
inset 0 0 0 2px var(--focus-ring-inner),
|
|
203
275
|
inset 0 0 0 4px hsl(var(--error-h) var(--error-s) var(--error-l) / 100%);
|
|
@@ -205,7 +277,7 @@
|
|
|
205
277
|
/* Field focus: coloured halo only. The alpha is a token so dark themes can boost it. */
|
|
206
278
|
--focus-field-alpha: .22;
|
|
207
279
|
--focus-field:
|
|
208
|
-
0 0 0 3px
|
|
280
|
+
0 0 0 3px rgb(from var(--primary) r g b / var(--focus-field-alpha));
|
|
209
281
|
--focus-field-error:
|
|
210
282
|
0 0 0 3px hsl(var(--error-h) var(--error-s) var(--error-l) / var(--focus-field-alpha));
|
|
211
283
|
|
|
@@ -239,8 +311,9 @@
|
|
|
239
311
|
--accent-subtitle: var(--primary-subtitle);
|
|
240
312
|
--accent-muted: var(--primary-muted);
|
|
241
313
|
--accent-muted-strong: var(--primary-muted-strong);
|
|
314
|
+
--accent-muted-pressed: var(--primary-muted-pressed);
|
|
242
315
|
--accent-on: var(--primary-on);
|
|
243
316
|
--accent-focus-ring: var(--focus-ring);
|
|
244
|
-
--accent-focus-field: var(--
|
|
317
|
+
--accent-focus-field: 0 0 0 var(--border-width-default) var(--primary);
|
|
245
318
|
--accent-surface-tint: var(--surface-tint);
|
|
246
319
|
}
|
package/themes/dark/_theme.scss
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Dark theme role overrides. Most roles follow the inverted --neutral-* ramp because custom
|
|
2
2
|
// properties resolve at use time; only roles that cannot follow the flip are overridden: tint
|
|
3
|
-
// surfaces, on-tint text,
|
|
3
|
+
// surfaces, on-tint text, overlay surfaces, scrim, focus halo alpha, and charts.
|
|
4
4
|
|
|
5
5
|
@use 'palette';
|
|
6
6
|
@use '../semantic';
|
|
@@ -9,22 +9,6 @@
|
|
|
9
9
|
@include palette.palette;
|
|
10
10
|
@include semantic.roles;
|
|
11
11
|
|
|
12
|
-
// Hover/pressed must lighten on dark: the light recipe's 88% / 76% steps, mixed toward white.
|
|
13
|
-
--primary-hover: color-mix(in srgb, var(--primary) 88%, white);
|
|
14
|
-
--primary-pressed: color-mix(in srgb, var(--primary) 76%, white);
|
|
15
|
-
--primary-selected-hover: color-mix(in srgb, var(--primary) 88%, white);
|
|
16
|
-
--secondary-hover: color-mix(in srgb, var(--secondary) 88%, white);
|
|
17
|
-
--secondary-pressed: color-mix(in srgb, var(--secondary) 76%, white);
|
|
18
|
-
--tertiary-hover: color-mix(in srgb, var(--tertiary) 88%, white);
|
|
19
|
-
--tertiary-pressed: color-mix(in srgb, var(--tertiary) 76%, white);
|
|
20
|
-
--success-hover: color-mix(in srgb, var(--success) 88%, white);
|
|
21
|
-
--warning-hover: color-mix(in srgb, var(--warning) 88%, white);
|
|
22
|
-
--error-hover: color-mix(in srgb, var(--error) 88%, white);
|
|
23
|
-
--error-pressed: color-mix(in srgb, var(--error) 76%, white);
|
|
24
|
-
--success-pressed: color-mix(in srgb, var(--success) 76%, white);
|
|
25
|
-
--warning-pressed: color-mix(in srgb, var(--warning) 76%, white);
|
|
26
|
-
--info-hover: color-mix(in srgb, var(--info) 88%, white);
|
|
27
|
-
|
|
28
12
|
// A container overlay (modal, drawer) sits one neutral step above the page and a popover-class overlay one
|
|
29
13
|
// above that, so a menu opened in a modal stays separate; what each holds steps up with it.
|
|
30
14
|
--surface-overlay: var(--neutral-100);
|
|
@@ -35,30 +19,42 @@
|
|
|
35
19
|
--surface-overlay-raised-muted: var(--neutral-300);
|
|
36
20
|
--surface-overlay-tint: color-mix(in srgb, var(--primary) 30%, var(--surface-overlay));
|
|
37
21
|
--surface-overlay-raised-tint: color-mix(in srgb, var(--primary) 30%, var(--surface-overlay-raised));
|
|
38
|
-
--accent-strong-overlay: hsl(from var(--primary) h 90% 80%);
|
|
39
22
|
--border-overlay: var(--border-strong);
|
|
40
|
-
|
|
41
|
-
--
|
|
23
|
+
|
|
24
|
+
// Lowest pair --surface-overlay-raised-muted, 3.35:1; highest the page, 4.33:1 (measured 2026-11-14).
|
|
25
|
+
--border-field: rgb(255 255 255 / 44%);
|
|
26
|
+
--border-field-hover: rgb(255 255 255 / 68%);
|
|
27
|
+
--border-readonly: rgb(255 255 255 / 24%);
|
|
28
|
+
--border-disabled: rgb(255 255 255 / 14%);
|
|
29
|
+
|
|
30
|
+
// --accent is 2.86:1 against the dark track; this fill is 7.45:1 (measured 2026-11-09).
|
|
31
|
+
--segmented-selected: var(--accent-strong-overlay);
|
|
32
|
+
--segmented-selected-on: var(--surface-default);
|
|
42
33
|
--text-tertiary-overlay: var(--neutral-700);
|
|
43
34
|
|
|
44
|
-
--
|
|
35
|
+
--state-overlay-tinted: white;
|
|
36
|
+
--opacity-overlay-hover: 0.08;
|
|
37
|
+
--opacity-overlay-pressed: 0.14;
|
|
38
|
+
|
|
39
|
+
--surface-tint: color-mix(in srgb, var(--primary) 30%, var(--surface-default));
|
|
45
40
|
--primary-subtitle: hsl(from var(--primary) h 45% 18%);
|
|
46
41
|
--primary-muted: hsl(from var(--primary) h 40% 26%);
|
|
47
42
|
--primary-muted-strong: hsl(from var(--primary) h 42% 32%);
|
|
48
|
-
--primary-strong: hsl(from var(--primary) h 90%
|
|
43
|
+
--primary-strong: hsl(from var(--primary) h 90% 80%);
|
|
49
44
|
|
|
50
45
|
--secondary-subtitle: hsl(var(--secondary-h) 45% 18%);
|
|
51
46
|
--secondary-muted: hsl(var(--secondary-h) 40% 26%);
|
|
52
47
|
--secondary-muted-strong: hsl(var(--secondary-h) 42% 32%);
|
|
53
|
-
--secondary-strong: hsl(var(--secondary-h) 90%
|
|
48
|
+
--secondary-strong: hsl(var(--secondary-h) 90% 80%);
|
|
54
49
|
|
|
55
50
|
--tertiary-subtitle: hsl(var(--tertiary-h) 45% 18%);
|
|
56
51
|
--tertiary-muted: hsl(var(--tertiary-h) 40% 26%);
|
|
57
52
|
--tertiary-muted-strong: hsl(var(--tertiary-h) 42% 32%);
|
|
58
|
-
--tertiary-strong: hsl(var(--tertiary-h) 90%
|
|
53
|
+
--tertiary-strong: hsl(var(--tertiary-h) 90% 80%);
|
|
59
54
|
|
|
60
55
|
--text-link: hsl(var(--blue-h) 90% 74%);
|
|
61
56
|
--text-link-visited: hsl(var(--blue-h) 50% 70%);
|
|
57
|
+
--text-link-state-ink: white;
|
|
62
58
|
|
|
63
59
|
--success-subtitle: hsl(132deg 38% 14%);
|
|
64
60
|
--success-muted: hsl(132deg 34% 20%);
|
|
@@ -65,12 +65,12 @@ declare class AppLayoutScrollService {
|
|
|
65
65
|
|
|
66
66
|
/**
|
|
67
67
|
* Fixed-frame application layout: the host is pinned to the viewport and ONLY
|
|
68
|
-
* the content region scrolls, so the
|
|
68
|
+
* the content region scrolls, so the nav rail and topbar stay put.
|
|
69
69
|
* Consumers project their own chrome into the slots:
|
|
70
70
|
*
|
|
71
71
|
* ```html
|
|
72
72
|
* <ds-app-layout>
|
|
73
|
-
* <ds-
|
|
73
|
+
* <ds-nav nav>…</ds-nav>
|
|
74
74
|
* <ds-topbar topbar>…</ds-topbar>
|
|
75
75
|
* <router-outlet />
|
|
76
76
|
* </ds-app-layout>
|
|
@@ -122,7 +122,7 @@ declare class AppLayoutComponent {
|
|
|
122
122
|
protected closeRail(): void;
|
|
123
123
|
private watchDesktopBreakpoint;
|
|
124
124
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AppLayoutComponent, never>;
|
|
125
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AppLayoutComponent, "ds-app-layout", never, { "topbarSpan": { "alias": "topbarSpan"; "required": false; "isSignal": true; }; "railOpen": { "alias": "railOpen"; "required": false; "isSignal": true; }; "railLabel": { "alias": "railLabel"; "required": false; "isSignal": true; }; "restoreScroll": { "alias": "restoreScroll"; "required": false; "isSignal": true; }; "restoreScrollTimeout": { "alias": "restoreScrollTimeout"; "required": false; "isSignal": true; }; "scrollReset": { "alias": "scrollReset"; "required": false; "isSignal": true; }; }, { "railOpen": "railOpenChange"; }, never, ["[sidenav]", "[topbar]", "*"], true, never>;
|
|
125
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AppLayoutComponent, "ds-app-layout", never, { "topbarSpan": { "alias": "topbarSpan"; "required": false; "isSignal": true; }; "railOpen": { "alias": "railOpen"; "required": false; "isSignal": true; }; "railLabel": { "alias": "railLabel"; "required": false; "isSignal": true; }; "restoreScroll": { "alias": "restoreScroll"; "required": false; "isSignal": true; }; "restoreScrollTimeout": { "alias": "restoreScrollTimeout"; "required": false; "isSignal": true; }; "scrollReset": { "alias": "scrollReset"; "required": false; "isSignal": true; }; }, { "railOpen": "railOpenChange"; }, never, ["[nav], [sidenav]", "[topbar]", "*"], true, never>;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { CardElevation, CardPadding } from '@ids-group-ltd/ids-design-system/core';
|
|
3
|
-
import { BrandNameDirective } from '@ids-group-ltd/ids-design-system/components/
|
|
3
|
+
import { BrandNameDirective } from '@ids-group-ltd/ids-design-system/components/nav';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Scaffold for the UNauthenticated screens (sign-in, forgot password, reset,
|
|
@@ -9,7 +9,7 @@ import { BrandNameDirective } from '@ids-group-ltd/ids-design-system/components/
|
|
|
9
9
|
* The host is the ONLY full-height box (a nested `100vh` wrapper would scroll a
|
|
10
10
|
* page whose content fits) and carries the safe-area insets.
|
|
11
11
|
*
|
|
12
|
-
* The brand row takes the same CONTRACT as `ds-
|
|
12
|
+
* The brand row takes the same CONTRACT as `ds-nav`: a `brand` string gets a
|
|
13
13
|
* letter-mark tile plus wordmark, `logoLetter` overrides the glyph, `[dsBrandName]`
|
|
14
14
|
* projects a two-tone wordmark (import `BrandNameDirective` alongside this
|
|
15
15
|
* component, or the attribute is inert and the wordmark lands in the card), and
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import * as _ids_group_ltd_ids_design_system_core from '@ids-group-ltd/ids-design-system/core';
|
|
3
|
+
import { IconName } from '@ids-group-ltd/ids-design-system/core';
|
|
4
|
+
|
|
5
|
+
type BadgeAppearance = 'default' | 'lozenge';
|
|
3
6
|
|
|
4
7
|
declare class BadgeComponent {
|
|
5
8
|
protected readonly intl: _angular_core.Signal<_ids_group_ltd_ids_design_system_core.DsIntl>;
|
|
@@ -11,6 +14,13 @@ declare class BadgeComponent {
|
|
|
11
14
|
readonly withDotResolved: _angular_core.Signal<boolean>;
|
|
12
15
|
/** Solid accent fill instead of the default subtle background. */
|
|
13
16
|
readonly solid: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
17
|
+
/** `'lozenge'` draws a status lozenge: a 1px border in the status border colour, 14px regular
|
|
18
|
+
* text, 2px 4px padding, 20px high, a 12px icon. `'default'` is the bold 12px badge. */
|
|
19
|
+
readonly appearance: _angular_core.InputSignal<BadgeAppearance>;
|
|
20
|
+
/** Leading icon, decorative: the label carries the meaning. Drawn in the status icon colour,
|
|
21
|
+
* 12px in the lozenge and 16px otherwise. Not shown while `count` is set. */
|
|
22
|
+
readonly icon: _angular_core.InputSignal<IconName | null>;
|
|
23
|
+
protected readonly iconSize: _angular_core.Signal<12 | 16>;
|
|
14
24
|
/** Numeric count to display; overrides projected content when set. */
|
|
15
25
|
readonly count: _angular_core.InputSignal<number | null>;
|
|
16
26
|
/** Counts above this show as `"max+"`. */
|
|
@@ -19,11 +29,20 @@ declare class BadgeComponent {
|
|
|
19
29
|
* Unset falls back to `DS_INTL.badge.noun`. */
|
|
20
30
|
readonly countLabel: _angular_core.InputSignal<string | null>;
|
|
21
31
|
readonly countLabelResolved: _angular_core.Signal<string>;
|
|
32
|
+
/** When `count` changes, the digits that change roll to the new value and the badge eases to its new width:
|
|
33
|
+
* a rise comes in from the top, a fall from the bottom. Off under `prefers-reduced-motion: reduce`.
|
|
34
|
+
* Unset falls back to `DS_CONFIG.badge.animateCount`, then `true`. */
|
|
35
|
+
readonly animateCount: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
|
|
36
|
+
readonly animateCountResolved: _angular_core.Signal<boolean>;
|
|
37
|
+
private readonly reducedMotion;
|
|
38
|
+
protected readonly rolls: _angular_core.Signal<boolean>;
|
|
22
39
|
protected readonly countDisplay: _angular_core.Signal<string | null>;
|
|
23
40
|
protected readonly classes: _angular_core.Signal<string>;
|
|
24
41
|
protected readonly countAriaLabel: _angular_core.Signal<string | null>;
|
|
42
|
+
private watchReducedMotion;
|
|
25
43
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BadgeComponent, never>;
|
|
26
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BadgeComponent, "ds-badge", never, { "status": { "alias": "status"; "required": false; "isSignal": true; }; "withDot": { "alias": "withDot"; "required": false; "isSignal": true; }; "solid": { "alias": "solid"; "required": false; "isSignal": true; }; "count": { "alias": "count"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "countLabel": { "alias": "countLabel"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
44
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BadgeComponent, "ds-badge", never, { "status": { "alias": "status"; "required": false; "isSignal": true; }; "withDot": { "alias": "withDot"; "required": false; "isSignal": true; }; "solid": { "alias": "solid"; "required": false; "isSignal": true; }; "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "count": { "alias": "count"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "countLabel": { "alias": "countLabel"; "required": false; "isSignal": true; }; "animateCount": { "alias": "animateCount"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
27
45
|
}
|
|
28
46
|
|
|
29
47
|
export { BadgeComponent };
|
|
48
|
+
export type { BadgeAppearance };
|
|
@@ -6,7 +6,7 @@ import { Params, QueryParamsHandling, IsActiveMatchOptions } from '@angular/rout
|
|
|
6
6
|
import { DsSize, IconName } from '@ids-group-ltd/ids-design-system/core';
|
|
7
7
|
|
|
8
8
|
type ButtonColor = 'primary' | 'secondary' | 'tertiary' | 'neutral' | 'error' | 'success' | 'warning';
|
|
9
|
-
type ButtonVariant = 'solid' | 'tonal' | 'ghost' | 'outline' | 'text';
|
|
9
|
+
type ButtonVariant = 'solid' | 'tonal' | 'ghost' | 'outline' | 'surface' | 'text';
|
|
10
10
|
type ButtonType = 'button' | 'submit' | 'reset';
|
|
11
11
|
type ButtonAlign = 'center' | 'between';
|
|
12
12
|
type ButtonLoadingMode = 'auto' | 'icon' | 'replace';
|
|
@@ -46,9 +46,9 @@ declare class ButtonComponent extends DsMessageBase {
|
|
|
46
46
|
/** How `routerLinkActive` decides the `active` class; prefix by default. It also bounds the
|
|
47
47
|
* announcement: with `{ exact: true }` a prefix match announces nothing rather than `true`.
|
|
48
48
|
* Pass `ariaCurrent` alongside to keep one. */
|
|
49
|
-
readonly routerLinkActiveOptions: _angular_core.InputSignal<{
|
|
49
|
+
readonly routerLinkActiveOptions: _angular_core.InputSignal<IsActiveMatchOptions | {
|
|
50
50
|
exact: boolean;
|
|
51
|
-
}
|
|
51
|
+
}>;
|
|
52
52
|
/** Overrides what the link announces. Unset, an exact match announces `page` and a prefix match
|
|
53
53
|
* `true`; `null` announces nothing; use `step` or `location` when the link is not a page. */
|
|
54
54
|
readonly ariaCurrent: _angular_core.InputSignal<DsAriaCurrent | null | undefined>;
|
|
@@ -95,6 +95,9 @@ declare class ButtonComponent extends DsMessageBase {
|
|
|
95
95
|
protected readonly destination: _angular_core.Signal<_ids_group_ltd_ids_design_system_components.DsDestination>;
|
|
96
96
|
protected readonly linkModifiers: _angular_core.Signal<DsLinkModifiers>;
|
|
97
97
|
protected readonly ariaCurrentResolved: _angular_core.Signal<DsAriaCurrent | undefined>;
|
|
98
|
+
private readonly successText;
|
|
99
|
+
private successTimer;
|
|
100
|
+
protected readonly successLabel: _angular_core.Signal<string | null>;
|
|
98
101
|
protected readonly classes: _angular_core.Signal<string>;
|
|
99
102
|
protected readonly loadingIconSlot: _angular_core.Signal<"leading" | "trailing" | null>;
|
|
100
103
|
protected readonly softDisabled: _angular_core.Signal<boolean>;
|
|
@@ -105,7 +108,15 @@ declare class ButtonComponent extends DsMessageBase {
|
|
|
105
108
|
protected readonly hasMessageRow: _angular_core.Signal<boolean>;
|
|
106
109
|
private readonly fieldMessage;
|
|
107
110
|
protected readonly message: _angular_core.Signal<_ids_group_ltd_ids_design_system_components.DsFieldMessage>;
|
|
111
|
+
private readonly injector;
|
|
112
|
+
private readonly tweenTarget;
|
|
113
|
+
private widthTween;
|
|
108
114
|
constructor();
|
|
115
|
+
/** Shows a check and `label` in the success colour for 1.5 s, and announces `label` politely. Call
|
|
116
|
+
* it once the work behind `loading` has succeeded; the button then returns to its own label. A
|
|
117
|
+
* second call restarts the 1.5 s, and `loading` hides it at once. */
|
|
118
|
+
showSuccess(label: string): void;
|
|
119
|
+
private tweenWidth;
|
|
109
120
|
protected onClick(event: MouseEvent): void;
|
|
110
121
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
111
122
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ButtonComponent, "ds-button", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "routerLink": { "alias": "routerLink"; "required": false; "isSignal": true; }; "href": { "alias": "href"; "required": false; "isSignal": true; }; "fragment": { "alias": "fragment"; "required": false; "isSignal": true; }; "queryParams": { "alias": "queryParams"; "required": false; "isSignal": true; }; "queryParamsHandling": { "alias": "queryParamsHandling"; "required": false; "isSignal": true; }; "target": { "alias": "target"; "required": false; "isSignal": true; }; "rel": { "alias": "rel"; "required": false; "isSignal": true; }; "routerLinkActiveOptions": { "alias": "routerLinkActiveOptions"; "required": false; "isSignal": true; }; "ariaCurrent": { "alias": "ariaCurrent"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "loadingMode": { "alias": "loadingMode"; "required": false; "isSignal": true; }; "fullWidth": { "alias": "fullWidth"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "trailingIcon": { "alias": "trailingIcon"; "required": false; "isSignal": true; }; "ariaHasPopup": { "alias": "ariaHasPopup"; "required": false; "isSignal": true; }; "ariaExpanded": { "alias": "ariaExpanded"; "required": false; "isSignal": true; }; "ariaControls": { "alias": "ariaControls"; "required": false; "isSignal": true; }; "disabledReason": { "alias": "disabledReason"; "required": false; "isSignal": true; }; "ariaDescribedBy": { "alias": "ariaDescribedBy"; "required": false; "isSignal": true; }; }, { "pressed": "pressed"; }, never, ["*", "[dsButtonSubtext]"], true, never>;
|