@ids-group-ltd/ids-design-system 0.14.1 → 0.14.3

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.
Files changed (126) hide show
  1. package/CHANGELOG.md +336 -0
  2. package/components.md +41 -38
  3. package/docs/agent/INDEX.md +3 -3
  4. package/docs/agent/charts/column-series-component.md +1 -1
  5. package/docs/agent/charts/ds-bar-chart.md +3 -3
  6. package/docs/agent/charts/ds-chart.md +1 -1
  7. package/docs/agent/charts/ds-column-chart.md +3 -3
  8. package/docs/agent/charts/ds-config.md +1 -1
  9. package/docs/agent/charts/ds-funnel-chart.md +3 -3
  10. package/docs/agent/charts/ds-heatmap-chart.md +1 -1
  11. package/docs/agent/charts/ds-line-chart.md +2 -2
  12. package/docs/agent/charts/ds-pie-chart.md +2 -2
  13. package/docs/agent/charts/ds-scatter-chart.md +1 -1
  14. package/docs/agent/charts/ds-waterfall-chart.md +1 -1
  15. package/docs/agent/charts/line-series-component.md +1 -1
  16. package/docs/agent/feedback/ds-description-list.md +3 -0
  17. package/docs/agent/forms/ds-color-picker.md +1 -1
  18. package/docs/agent/forms/ds-date-picker.md +1 -1
  19. package/docs/agent/forms/ds-select.md +1 -1
  20. package/docs/agent/forms/ds-textarea.md +1 -1
  21. package/docs/agent/forms/ds-time-picker.md +1 -1
  22. package/docs/agent/forms/the-picker-family-ds-select-ds-multi-select-ds-autocomplete.md +1 -1
  23. package/docs/agent/foundations/tokens.md +1 -1
  24. package/docs/agent/navigation/ds-pagination.md +1 -1
  25. package/docs/agent/navigation/ds-tabs.md +2 -1
  26. package/docs/agent/overlays/ds-bottom-sheet.md +1 -1
  27. package/docs/agent/overlays/ds-drawer.md +1 -1
  28. package/docs/agent/overlays/ds-modal.md +1 -1
  29. package/docs/agent/overlays/ds-popover.md +1 -1
  30. package/docs/agent/overlays/ds-tooltip.md +4 -4
  31. package/docs/agent/tables/ds-table.md +1 -1
  32. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs +4 -2
  33. package/fesm2022/ids-group-ltd-ids-design-system-components-autocomplete.mjs.map +1 -1
  34. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs +22 -16
  35. package/fesm2022/ids-group-ltd-ids-design-system-components-bar-chart.mjs.map +1 -1
  36. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs +16 -4
  37. package/fesm2022/ids-group-ltd-ids-design-system-components-bottom-sheet.mjs.map +1 -1
  38. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs +19 -7
  39. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-legend.mjs.map +1 -1
  40. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs +180 -19
  41. package/fesm2022/ids-group-ltd-ids-design-system-components-chart-tooltip.mjs.map +1 -1
  42. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs +175 -93
  43. package/fesm2022/ids-group-ltd-ids-design-system-components-chart.mjs.map +1 -1
  44. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs +25 -10
  45. package/fesm2022/ids-group-ltd-ids-design-system-components-color-picker.mjs.map +1 -1
  46. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs +10 -11
  47. package/fesm2022/ids-group-ltd-ids-design-system-components-column-chart.mjs.map +1 -1
  48. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs +28 -11
  49. package/fesm2022/ids-group-ltd-ids-design-system-components-date-picker.mjs.map +1 -1
  50. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs +3 -3
  51. package/fesm2022/ids-group-ltd-ids-design-system-components-description-list.mjs.map +1 -1
  52. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs +13 -4
  53. package/fesm2022/ids-group-ltd-ids-design-system-components-drawer.mjs.map +1 -1
  54. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs +32 -18
  55. package/fesm2022/ids-group-ltd-ids-design-system-components-funnel-chart.mjs.map +1 -1
  56. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs +47 -7
  57. package/fesm2022/ids-group-ltd-ids-design-system-components-heatmap-chart.mjs.map +1 -1
  58. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs +11 -11
  59. package/fesm2022/ids-group-ltd-ids-design-system-components-line-chart.mjs.map +1 -1
  60. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs +5 -3
  61. package/fesm2022/ids-group-ltd-ids-design-system-components-multi-select.mjs.map +1 -1
  62. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs +11 -5
  63. package/fesm2022/ids-group-ltd-ids-design-system-components-pagination.mjs.map +1 -1
  64. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs +15 -13
  65. package/fesm2022/ids-group-ltd-ids-design-system-components-pie-chart.mjs.map +1 -1
  66. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs +35 -5
  67. package/fesm2022/ids-group-ltd-ids-design-system-components-scatter-chart.mjs.map +1 -1
  68. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs +5 -4
  69. package/fesm2022/ids-group-ltd-ids-design-system-components-select.mjs.map +1 -1
  70. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs +1 -1
  71. package/fesm2022/ids-group-ltd-ids-design-system-components-sidenav.mjs.map +1 -1
  72. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs +1 -1
  73. package/fesm2022/ids-group-ltd-ids-design-system-components-stat.mjs.map +1 -1
  74. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs +32 -7
  75. package/fesm2022/ids-group-ltd-ids-design-system-components-table.mjs.map +1 -1
  76. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs +66 -6
  77. package/fesm2022/ids-group-ltd-ids-design-system-components-tabs.mjs.map +1 -1
  78. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs +84 -10
  79. package/fesm2022/ids-group-ltd-ids-design-system-components-textarea.mjs.map +1 -1
  80. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs +16 -5
  81. package/fesm2022/ids-group-ltd-ids-design-system-components-time-picker.mjs.map +1 -1
  82. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs +138 -10
  83. package/fesm2022/ids-group-ltd-ids-design-system-components-tooltip.mjs.map +1 -1
  84. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs +25 -9
  85. package/fesm2022/ids-group-ltd-ids-design-system-components-waterfall-chart.mjs.map +1 -1
  86. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs +87 -11
  87. package/fesm2022/ids-group-ltd-ids-design-system-components.mjs.map +1 -1
  88. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs +4 -1
  89. package/fesm2022/ids-group-ltd-ids-design-system-core.mjs.map +1 -1
  90. package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
  91. package/migrations/0.14.2.json +427 -0
  92. package/migrations/0.14.3.json +71 -0
  93. package/package.json +1 -1
  94. package/schematics/check-overrides/surface.json +36 -2
  95. package/styles/_chart-frame.scss +34 -12
  96. package/styles/_chart-interactive.scss +10 -9
  97. package/styles/_chart-motion.scss +139 -16
  98. package/styles/_overlay-motion.scss +6 -0
  99. package/styles/_tokens.scss +19 -4
  100. package/themes/_semantic.scss +1 -0
  101. package/themes/dark/_theme.scss +1 -0
  102. package/types/ids-group-ltd-ids-design-system-components-bar-chart.d.ts +24 -10
  103. package/types/ids-group-ltd-ids-design-system-components-bottom-sheet.d.ts +4 -1
  104. package/types/ids-group-ltd-ids-design-system-components-chart-legend.d.ts +6 -1
  105. package/types/ids-group-ltd-ids-design-system-components-chart-tooltip.d.ts +33 -2
  106. package/types/ids-group-ltd-ids-design-system-components-chart.d.ts +151 -103
  107. package/types/ids-group-ltd-ids-design-system-components-color-picker.d.ts +4 -2
  108. package/types/ids-group-ltd-ids-design-system-components-column-chart.d.ts +8 -9
  109. package/types/ids-group-ltd-ids-design-system-components-date-picker.d.ts +4 -2
  110. package/types/ids-group-ltd-ids-design-system-components-description-list.d.ts +1 -1
  111. package/types/ids-group-ltd-ids-design-system-components-drawer.d.ts +4 -1
  112. package/types/ids-group-ltd-ids-design-system-components-funnel-chart.d.ts +23 -11
  113. package/types/ids-group-ltd-ids-design-system-components-heatmap-chart.d.ts +29 -2
  114. package/types/ids-group-ltd-ids-design-system-components-line-chart.d.ts +8 -8
  115. package/types/ids-group-ltd-ids-design-system-components-pagination.d.ts +3 -1
  116. package/types/ids-group-ltd-ids-design-system-components-pie-chart.d.ts +17 -7
  117. package/types/ids-group-ltd-ids-design-system-components-scatter-chart.d.ts +20 -2
  118. package/types/ids-group-ltd-ids-design-system-components-table.d.ts +6 -2
  119. package/types/ids-group-ltd-ids-design-system-components-tabs.d.ts +13 -2
  120. package/types/ids-group-ltd-ids-design-system-components-textarea.d.ts +31 -5
  121. package/types/ids-group-ltd-ids-design-system-components-time-picker.d.ts +3 -2
  122. package/types/ids-group-ltd-ids-design-system-components-tooltip.d.ts +20 -2
  123. package/types/ids-group-ltd-ids-design-system-components-waterfall-chart.d.ts +11 -2
  124. package/types/ids-group-ltd-ids-design-system-components.d.ts +33 -6
  125. package/types/ids-group-ltd-ids-design-system-core.d.ts +14 -1
  126. package/types/ids-group-ltd-ids-design-system.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.14.1",
2
+ "version": "0.14.3",
3
3
  "tokens": [
4
4
  "--ds-accordion-body-padding",
5
5
  "--ds-accordion-body-text-color",
@@ -310,6 +310,7 @@
310
310
  "--ds-description-list-column-gap",
311
311
  "--ds-description-list-label-width",
312
312
  "--ds-description-list-row-gap",
313
+ "--ds-description-list-value-min-width",
313
314
  "--ds-divider-color",
314
315
  "--ds-divider-label-color",
315
316
  "--ds-divider-strong-color",
@@ -550,12 +551,16 @@
550
551
  "--ds-modal-title-text-color-info",
551
552
  "--ds-modal-title-text-color-success",
552
553
  "--ds-modal-title-text-color-warning",
554
+ "--ds-motion-chart-mark-detail-duration",
553
555
  "--ds-motion-chart-mark-duration",
554
556
  "--ds-motion-chart-mark-easing",
555
557
  "--ds-motion-chart-mark-enter-duration",
556
558
  "--ds-motion-chart-mark-enter-easing",
557
559
  "--ds-motion-chart-mark-exit-duration",
558
560
  "--ds-motion-chart-mark-exit-easing",
561
+ "--ds-motion-chart-mark-grow-duration",
562
+ "--ds-motion-chart-mark-grow-easing",
563
+ "--ds-motion-chart-mark-sweep-duration",
559
564
  "--ds-motion-chart-state-duration",
560
565
  "--ds-motion-chart-state-easing",
561
566
  "--ds-motion-check-enter-duration",
@@ -866,6 +871,8 @@
866
871
  "--ds-tabs-gap",
867
872
  "--ds-tabs-panel-padding-top",
868
873
  "--ds-tabs-pills-bg-color",
874
+ "--ds-tabs-scroll-arrow-bg-color-hover",
875
+ "--ds-tabs-scroll-arrow-icon-color-hover",
869
876
  "--ds-tag-active-bg-color",
870
877
  "--ds-tag-active-border",
871
878
  "--ds-tag-active-label-color",
@@ -1190,6 +1197,7 @@
1190
1197
  "framed",
1191
1198
  "grid-line",
1192
1199
  "interactive",
1200
+ "is-active",
1193
1201
  "is-dimmed",
1194
1202
  "is-error",
1195
1203
  "is-pinned",
@@ -1198,6 +1206,7 @@
1198
1206
  "percent",
1199
1207
  "pin-marker",
1200
1208
  "pin-reset",
1209
+ "pins",
1201
1210
  "row",
1202
1211
  "rows",
1203
1212
  "segment",
@@ -1223,6 +1232,7 @@
1223
1232
  "sheet-body",
1224
1233
  "sheet-handle",
1225
1234
  "sheet-overlay",
1235
+ "sheet-static",
1226
1236
  "sheet-title",
1227
1237
  "snapping"
1228
1238
  ],
@@ -1306,6 +1316,7 @@
1306
1316
  "entries",
1307
1317
  "entry",
1308
1318
  "hatched",
1319
+ "ringed",
1309
1320
  "swatch",
1310
1321
  "value"
1311
1322
  ],
@@ -1330,6 +1341,7 @@
1330
1341
  "is-rotated",
1331
1342
  "marks",
1332
1343
  "measuring",
1344
+ "pins",
1333
1345
  "stage-table",
1334
1346
  "zero-line"
1335
1347
  ],
@@ -1440,6 +1452,7 @@
1440
1452
  "drawer",
1441
1453
  "drawer-root",
1442
1454
  "drawer-scrim",
1455
+ "drawer-static",
1443
1456
  "footer",
1444
1457
  "header",
1445
1458
  "is-disabled",
@@ -1518,12 +1531,14 @@
1518
1531
  "funnel-chart",
1519
1532
  "grid-line",
1520
1533
  "interactive",
1534
+ "is-active",
1521
1535
  "is-dimmed",
1522
1536
  "is-error",
1523
1537
  "is-pinned",
1524
1538
  "mark-leave",
1525
1539
  "pin-marker",
1526
1540
  "pin-reset",
1541
+ "pins",
1527
1542
  "shape",
1528
1543
  "skeleton",
1529
1544
  "stage",
@@ -1545,10 +1560,15 @@
1545
1560
  "grid-scroll",
1546
1561
  "heatmap-chart",
1547
1562
  "interactive",
1563
+ "is-active",
1548
1564
  "is-dimmed",
1549
1565
  "is-error",
1550
1566
  "is-missing",
1551
1567
  "is-pinned",
1568
+ "mark-leave",
1569
+ "pin-marker",
1570
+ "pin-reset",
1571
+ "pins",
1552
1572
  "row-label",
1553
1573
  "scale",
1554
1574
  "scale-label",
@@ -1831,6 +1851,7 @@
1831
1851
  "framed",
1832
1852
  "grid-line",
1833
1853
  "interactive",
1854
+ "is-active",
1834
1855
  "is-dimmed",
1835
1856
  "is-error",
1836
1857
  "is-pinned",
@@ -1844,6 +1865,7 @@
1844
1865
  "pie-chart",
1845
1866
  "pin-marker",
1846
1867
  "pin-reset",
1868
+ "pins",
1847
1869
  "ring",
1848
1870
  "ring-outline",
1849
1871
  "ring-svg",
@@ -1883,11 +1905,14 @@
1883
1905
  "framed",
1884
1906
  "grid-line",
1885
1907
  "interactive",
1908
+ "is-active",
1886
1909
  "is-dimmed",
1887
1910
  "is-error",
1888
1911
  "is-horizontal",
1889
1912
  "is-pinned",
1890
1913
  "mark-leave",
1914
+ "pin-reset",
1915
+ "pins",
1891
1916
  "point",
1892
1917
  "scatter-chart",
1893
1918
  "stage-table",
@@ -2161,12 +2186,15 @@
2161
2186
  "ds-tab": [],
2162
2187
  "ds-tabs": [
2163
2188
  "active",
2189
+ "at-edge",
2164
2190
  "badge",
2165
2191
  "disabled",
2166
2192
  "is-disabled",
2167
2193
  "panel",
2168
2194
  "pills",
2195
+ "scroll-arrow",
2169
2196
  "scrollable",
2197
+ "scrolling-host",
2170
2198
  "secondary",
2171
2199
  "tab",
2172
2200
  "tab-close",
@@ -2193,9 +2221,13 @@
2193
2221
  "label",
2194
2222
  "lg",
2195
2223
  "optional-marker",
2224
+ "over-limit",
2225
+ "overflow-mirror",
2196
2226
  "read-only",
2197
2227
  "req",
2198
- "sm"
2228
+ "sm",
2229
+ "soft-limit",
2230
+ "visually-hidden"
2199
2231
  ],
2200
2232
  "ds-time-columns": [
2201
2233
  "col",
@@ -2221,6 +2253,7 @@
2221
2253
  "time-clear",
2222
2254
  "time-footer",
2223
2255
  "time-panel",
2256
+ "time-static",
2224
2257
  "time-value",
2225
2258
  "trigger",
2226
2259
  "trigger-wrap"
@@ -2293,6 +2326,7 @@
2293
2326
  "empty-text",
2294
2327
  "framed",
2295
2328
  "is-error",
2329
+ "pin-reset",
2296
2330
  "skeleton",
2297
2331
  "stage-table",
2298
2332
  "waterfall-chart"
@@ -133,25 +133,38 @@
133
133
  position: relative;
134
134
  }
135
135
 
136
- /* Bottom CENTRE: the panel it undoes opens above the held mark, so a control at the top is the
137
- one thing the panel covers. A corner competes with a legend on the pie and with the value
138
- labels on a column chart, and on a wide card it is a long way from the mark it undoes.
136
+ :host(.framed) {
137
+ --_chart-pin-reset-inset: var(--ds-chart-frame-padding);
138
+ }
139
139
 
140
- 44px minimum box around a 12px label, because it is a real control and the library's own touch
141
- rule applies to it. */
140
+ // Room on the caption's line while the control is up, so a long caption wraps short of it rather
141
+ // than running under it; a chart with no caption gains the line. The shift answers a click.
142
+ // ponytail: a fixed room fits `Unpin`; a translation longer than about ten characters overlaps
143
+ // the caption's end, measure the control if one ever does.
144
+ :host:has(.pin-reset) figure > figcaption {
145
+ padding-inline-end: calc(5rem + var(--space-2));
146
+ }
147
+
148
+ :host:has(.pin-reset) figure:not(:has(> figcaption)) {
149
+ padding-block-start: calc(var(--space-6) + var(--space-2));
150
+ }
151
+
152
+ /* Top END, on the caption's line: the bottom of a chart carries its axis labels, its legend or its
153
+ table, and a control floating over them hides the words the reader is comparing. The caption
154
+ line is the one run of a chart with room to its end.
155
+
156
+ Drawn at the caption's height; the 44px the library's touch rule asks of a real control is the
157
+ hit area around it, not its box. */
142
158
  .pin-reset {
143
159
  position: absolute;
144
- inset-block-end: var(--space-2);
145
- inset-inline: 0;
160
+ inset-block-start: var(--_chart-pin-reset-inset, 0);
161
+ inset-inline-end: var(--_chart-pin-reset-inset, 0);
146
162
  z-index: 1;
147
- justify-self: center;
148
- margin-inline: auto;
149
163
  display: inline-flex;
150
164
  align-items: center;
151
165
  gap: var(--space-1);
152
- min-block-size: var(--space-12);
153
- inline-size: fit-content;
154
- padding: var(--space-1) var(--space-3);
166
+ block-size: var(--space-6);
167
+ padding: 0 var(--space-2-5);
155
168
  border: var(--border-width-default) solid var(--border-divider);
156
169
  border-radius: var(--radius-pill);
157
170
  background: var(--surface-default);
@@ -161,6 +174,15 @@
161
174
  box-shadow: var(--shadow-1);
162
175
  cursor: pointer;
163
176
 
177
+ &::before {
178
+ position: absolute;
179
+ inset: 50% auto auto 50%;
180
+ inline-size: max(100%, var(--hit-comfy));
181
+ block-size: var(--hit-comfy);
182
+ transform: translate(-50%, -50%);
183
+ content: '';
184
+ }
185
+
164
186
  &:hover {
165
187
  color: var(--text-primary);
166
188
  border-color: var(--border-strong);
@@ -23,8 +23,10 @@
23
23
  }
24
24
  }
25
25
 
26
- // Include on the CONTAINER, never on the mark: `:has()` asks the container whether anything inside
27
- // it is hovered, which is what lets a pointer highlight work with no component state.
26
+ // Include on the CONTAINER, never on the mark: `:has()` asks the container whether one of its
27
+ // marks is the active one. `.is-active` is the component's, set from the same state the tooltip
28
+ // reads, so the highlight waits out the hover delay with the tooltip rather than flashing on every
29
+ // mark the pointer crosses. The component also sets it on focus.
28
30
  //
29
31
  // Gated on `.dims-others`, which the chart puts on the container from its `dimOthers` input. Off by
30
32
  // default, because dimming is not free: measured 2026-09-13, OKLab dE x100, the worst pair of three
@@ -40,12 +42,8 @@
40
42
  // it the two rules dim each other out: the hover rule takes down the pinned mark because the
41
43
  // pointer has moved off it, the pin rule takes down the hovered mark because it is not the pinned
42
44
  // one, and every mark on the chart ends up faded with nothing lit.
43
- &.dims-others:not(:has(#{$mark}.is-pinned)):has(#{$mark}.interactive:hover)
44
- #{$mark}.interactive:not(:hover),
45
- &.dims-others:not(:has(#{$mark}.is-pinned)):has(
46
- #{$mark}.interactive:focus-visible
47
- )
48
- #{$mark}.interactive:not(:focus-visible),
45
+ &.dims-others:not(:has(#{$mark}.is-pinned)):has(#{$mark}.is-active)
46
+ #{$mark}:not(.is-active),
49
47
  // A pinned mark keeps the others down after the pointer has gone, which is the whole point of
50
48
  // pinning: the reader looks away from the chart and the comparison is still on screen.
51
49
  &.dims-others:has(#{$mark}.is-pinned) #{$mark}:not(.is-pinned) {
@@ -53,8 +51,11 @@
53
51
  }
54
52
  }
55
53
 
54
+ // `.interactive` is a mark a consumer made clickable, `.pins` one a click would hold. The pointer
55
+ // cursor promises a click, so it goes where one of the two is true and nowhere else.
56
56
  @mixin clickable($mark) {
57
- #{$mark}.interactive {
57
+ #{$mark}.interactive,
58
+ #{$mark}.pins {
58
59
  cursor: pointer;
59
60
  }
60
61
  }
@@ -14,23 +14,26 @@
14
14
  // its function form: the component puts `.mark-leave` on the mark and Angular removes it on
15
15
  // `animationend`, with no `getAnimations()` call.
16
16
  //
17
- // A mark ARRIVES BY GROWING FROM ITS OWN BASELINE, never by scaling about its centre: a uniform
18
- // scale reads as the whole chart zooming, and it moves the mark's baseline, which is the one line
19
- // on a chart that must not move. A mark with no baseline to grow from — a ring arc, a funnel band,
20
- // a line — fades instead, for the same reason.
17
+ // A mark with a baseline ARRIVES BY GROWING FROM IT, never by scaling about its centre: a uniform
18
+ // scale reads as the whole chart zooming, and it moves the baseline, which is the one line on a
19
+ // chart that must not move. A mark with no baseline - a point, a cell, a ring - settles in from a
20
+ // scale close to one, and a line draws on along its own path.
21
21
  //
22
- // `prefers-reduced-motion` is handled globally in `_tokens.scss` — nothing here re-handles it.
22
+ // The phases are staged by delay, not by script: the marks arrive after the exit, and what follows a
23
+ // mark (its value label, a marker) waits `$after` on top of that.
24
+ //
25
+ // `prefers-reduced-motion` zeroes the durations in `_tokens.scss`. The delays are the one thing that
26
+ // stays, because a stagger is written per mark as a plain length, so `enters` zeroes them here: with
27
+ // a zero duration and `backwards` fill a delayed mark would stay invisible for its delay.
23
28
 
24
29
  @keyframes ds-chart-mark-grow-y {
25
30
  from {
26
- opacity: 0;
27
31
  transform: scaleY(0);
28
32
  }
29
33
  }
30
34
 
31
35
  @keyframes ds-chart-mark-grow-x {
32
36
  from {
33
- opacity: 0;
34
37
  transform: scaleX(0);
35
38
  }
36
39
  }
@@ -41,6 +44,36 @@
41
44
  }
42
45
  }
43
46
 
47
+ // `--_chart-rise-distance` is for a canvas whose viewBox stretches: there a pixel is a user unit,
48
+ // so a chart sets a percentage of the mark's own box on the canvas instead.
49
+ @keyframes ds-chart-mark-rise {
50
+ from {
51
+ opacity: 0;
52
+ transform: translateY(var(--_chart-rise-distance, 4px));
53
+ }
54
+ }
55
+
56
+ @keyframes ds-chart-mark-settle {
57
+ from {
58
+ opacity: 0;
59
+ transform: scale(0.96);
60
+ }
61
+ }
62
+
63
+ @keyframes ds-chart-ring-sweep {
64
+ from {
65
+ opacity: 0;
66
+ transform: rotate(-30deg) scale(0.96);
67
+ }
68
+ }
69
+
70
+ // Needs `pathLength="1"` and `stroke-dasharray: 1` on the path, so one unit is the whole line.
71
+ @keyframes ds-chart-line-draw {
72
+ from {
73
+ stroke-dashoffset: 1;
74
+ }
75
+ }
76
+
44
77
  @keyframes ds-chart-mark-exit {
45
78
  to {
46
79
  opacity: 0;
@@ -54,14 +87,23 @@
54
87
  }
55
88
  }
56
89
 
57
- @mixin enters($selector, $keyframes) {
90
+ @mixin enters(
91
+ $selector,
92
+ $keyframes,
93
+ $duration: var(--ds-motion-chart-mark-enter-duration),
94
+ $easing: var(--ds-motion-chart-mark-enter-easing),
95
+ $after: 0ms
96
+ ) {
58
97
  #{$selector} {
59
- animation: #{$keyframes} var(--ds-motion-chart-mark-enter-duration)
60
- var(--ds-motion-chart-mark-enter-easing)
98
+ animation: #{$keyframes} #{$duration} #{$easing}
61
99
  calc(
62
- var(--ds-motion-chart-mark-exit-duration) + var(--_chart-mark-stagger, 0ms)
100
+ var(--ds-motion-chart-mark-exit-duration) + #{$after} + var(--_chart-mark-stagger, 0ms)
63
101
  )
64
102
  backwards;
103
+
104
+ @media (prefers-reduced-motion: reduce) {
105
+ animation-delay: 0ms;
106
+ }
65
107
  }
66
108
  }
67
109
 
@@ -74,7 +116,12 @@
74
116
  transform-origin: bottom;
75
117
  }
76
118
 
77
- @include enters('#{$fill}', ds-chart-mark-grow-y);
119
+ @include enters(
120
+ '#{$fill}',
121
+ ds-chart-mark-grow-y,
122
+ var(--ds-motion-chart-mark-grow-duration),
123
+ var(--ds-motion-chart-mark-grow-easing)
124
+ );
78
125
  @include leaves($mark);
79
126
  }
80
127
 
@@ -84,12 +131,88 @@
84
131
  transform-origin: left;
85
132
  }
86
133
 
87
- @include enters('#{$fill}', ds-chart-mark-grow-x);
134
+ #{$mark} #{$fill}:dir(rtl) {
135
+ transform-origin: right;
136
+ }
137
+
138
+ @include enters(
139
+ '#{$fill}',
140
+ ds-chart-mark-grow-x,
141
+ var(--ds-motion-chart-mark-grow-duration),
142
+ var(--ds-motion-chart-mark-grow-easing)
143
+ );
88
144
  @include leaves($mark);
89
145
  }
90
146
 
91
- /* A mark with no baseline of its own — a ring arc, a funnel band, a line. */
92
- @mixin fades-in($mark) {
93
- @include enters('#{$mark}', ds-chart-mark-fade-in);
147
+ /* A mark that only appears - an area under its line, a connector, a legend swatch. */
148
+ @mixin fades-in($mark, $after: 0ms, $duration: var(--ds-motion-chart-mark-enter-duration)) {
149
+ @include enters(
150
+ '#{$mark}',
151
+ ds-chart-mark-fade-in,
152
+ $duration,
153
+ var(--ds-motion-chart-mark-enter-easing),
154
+ $after
155
+ );
156
+ @include leaves($mark);
157
+ }
158
+
159
+ /* A mark with no baseline that stands for one reading - a scatter point, a heat map cell - settles
160
+ in about its own centre. */
161
+ @mixin settles-in($mark, $after: 0ms) {
162
+ #{$mark} {
163
+ transform-box: fill-box;
164
+ transform-origin: center;
165
+ }
166
+
167
+ @include enters(
168
+ '#{$mark}',
169
+ ds-chart-mark-settle,
170
+ var(--ds-motion-chart-mark-enter-duration),
171
+ var(--ds-motion-chart-mark-enter-easing),
172
+ $after
173
+ );
94
174
  @include leaves($mark);
95
175
  }
176
+
177
+ /* A ring turns into place as one element, so its slices keep their angles relative to each other. */
178
+ @mixin sweeps-in($ring) {
179
+ #{$ring} {
180
+ transform-box: fill-box;
181
+ transform-origin: center;
182
+ }
183
+
184
+ @include enters(
185
+ '#{$ring}',
186
+ ds-chart-ring-sweep,
187
+ var(--ds-motion-chart-mark-sweep-duration),
188
+ var(--ds-motion-chart-mark-grow-easing)
189
+ );
190
+ }
191
+
192
+ /* A solid line draws on from its first reading. A dashed line fades instead: the draw animates the
193
+ same dash properties the dash pattern is made of. */
194
+ @mixin draws-on($path) {
195
+ #{$path} {
196
+ stroke-dasharray: 1;
197
+ }
198
+
199
+ @include enters(
200
+ '#{$path}',
201
+ ds-chart-line-draw,
202
+ var(--ds-motion-chart-mark-sweep-duration),
203
+ var(--ds-motion-chart-mark-enter-easing)
204
+ );
205
+ @include leaves($path);
206
+ }
207
+
208
+ /* What belongs to a mark - its value label, a marker on a line - rises in once the mark has
209
+ arrived. `$after` is how long the mark takes. */
210
+ @mixin follows($detail, $after) {
211
+ @include enters(
212
+ '#{$detail}',
213
+ ds-chart-mark-rise,
214
+ var(--ds-motion-chart-mark-detail-duration),
215
+ var(--ds-motion-chart-mark-enter-easing),
216
+ $after
217
+ );
218
+ }
@@ -47,6 +47,12 @@
47
47
  --_overlay-enter-origin: center left;
48
48
  }
49
49
 
50
+ // A chart tooltip reopens on every mark the pointer crosses, and a scale shifts its rows while it
51
+ // settles, so a hop reads as the swatch drifting into place. It fades instead.
52
+ &.ds-chart-tooltip-pane {
53
+ --_overlay-enter-keyframes: var(--ds-overlay-enter-keyframes, ds-fade-in);
54
+ }
55
+
50
56
  @media (prefers-reduced-motion: reduce) {
51
57
  --_overlay-enter-duration: 0ms;
52
58
  }
@@ -115,6 +115,7 @@
115
115
  --duration-base: 180ms;
116
116
  --duration-slow: 260ms;
117
117
  --duration-slower: 400ms;
118
+ --duration-slowest: 600ms;
118
119
 
119
120
  /* Loop durations sit outside the transition scale on purpose — they describe
120
121
  rhythm, not response. */
@@ -126,12 +127,17 @@
126
127
  - emphasized: overlay / modal / drawer entries and exits; overshoots
127
128
  - decelerate: something appearing (toast, tooltip, popover open)
128
129
  - accelerate: something leaving (toast dismiss, modal close)
129
- - spring: overshoot for small celebratory feedback; sparingly */
130
+ - spring: overshoot for small celebratory feedback; sparingly
131
+ - emphasized-decelerate: a large mark arriving, long and calm at the end
132
+ - settle: a mark growing into its value; a critically damped spring, so it never
133
+ overshoots and never shows a value the data does not hold */
130
134
  --ease-standard: cubic-bezier(.2, 0, 0, 1);
131
135
  --ease-emphasized: cubic-bezier(.3, 0, .1, 1.4);
132
136
  --ease-decelerate: cubic-bezier(0, 0, 0, 1);
133
137
  --ease-accelerate: cubic-bezier(.3, 0, 1, 1);
134
138
  --ease-spring: cubic-bezier(.5, 1.5, .5, 1);
139
+ --ease-emphasized-decelerate: cubic-bezier(.05, .7, .1, 1);
140
+ --ease-settle: linear(0, 0.09 6.3%, 0.265 12.5%, 0.444 18.8%, 0.596 25%, 0.715 31.3%, 0.803 37.5%, 0.867 43.8%, 0.911 50%, 0.942 56.3%, 0.962 62.5%, 0.976 68.8%, 0.986 75%, 0.992 81.3%, 0.996 87.5%, 0.998 93.8%, 1);
135
141
 
136
142
  /* Motion ROLES — name the intent once and every surface at that scale follows. `exit` and
137
143
  `exit-large` stay separate because panel LEAVES run at --duration-base, not fast, and a few
@@ -163,9 +169,16 @@
163
169
  --ds-motion-chart-mark-easing: var(--ease-decelerate);
164
170
 
165
171
  /* A mark arriving and a mark leaving are separate roles because the enter waits out the exit:
166
- the two durations are added, and one role could not carry both halves of that sum. */
167
- --ds-motion-chart-mark-enter-duration: var(--duration-base);
168
- --ds-motion-chart-mark-enter-easing: var(--ease-decelerate);
172
+ the two durations are added, and one role could not carry both halves of that sum. An arrival
173
+ is timed by what arrives: `enter` for a mark that fades or settles in place, `grow` for one that
174
+ grows out of its baseline and `sweep` for a ring or a line drawing on, `detail` for what
175
+ follows a mark (its value label, a marker). */
176
+ --ds-motion-chart-mark-enter-duration: var(--duration-slower);
177
+ --ds-motion-chart-mark-enter-easing: var(--ease-emphasized-decelerate);
178
+ --ds-motion-chart-mark-grow-duration: var(--duration-slowest);
179
+ --ds-motion-chart-mark-grow-easing: var(--ease-settle);
180
+ --ds-motion-chart-mark-sweep-duration: var(--duration-slowest);
181
+ --ds-motion-chart-mark-detail-duration: var(--duration-base);
169
182
  --ds-motion-chart-mark-exit-duration: var(--duration-fast);
170
183
  --ds-motion-chart-mark-exit-easing: var(--ease-accelerate);
171
184
 
@@ -495,6 +508,7 @@
495
508
  --grid-cols-card-minh: 120px;
496
509
  --grid-cols-card-thumb: 80px;
497
510
  --dl-spec-label-w: 120px;
511
+ --dl-spec-value-min-w: 14rem;
498
512
  --scroll-spec-h: 220px;
499
513
  --tab-spec-maxw: 220px;
500
514
  --tab-spec-dot-offset: var(--border-width-strong); /* negated at the use site */
@@ -507,6 +521,7 @@
507
521
  --duration-base: 0ms;
508
522
  --duration-slow: 0ms;
509
523
  --duration-slower: 0ms;
524
+ --duration-slowest: 0ms;
510
525
 
511
526
  /* Loops are slowed, never frozen: a stopped spinner reads as "hung", not
512
527
  "loading". The one large motion that does halt is the page-wide skeleton
@@ -180,6 +180,7 @@
180
180
  --error-subtitle: var(--red-50);
181
181
  --error-muted: var(--red-100);
182
182
  --error-muted-strong: var(--red-200);
183
+ --error-highlight: var(--red-300);
183
184
  --error-border: var(--red-200);
184
185
  --error-text: var(--red-600);
185
186
 
@@ -66,6 +66,7 @@
66
66
  --error-subtitle: hsl(0deg 45% 16%);
67
67
  --error-muted: hsl(0deg 40% 24%);
68
68
  --error-muted-strong: hsl(0deg 38% 32%);
69
+ --error-highlight: hsl(0deg 38% 40%);
69
70
  --error-border: hsl(0deg 38% 32%);
70
71
  --error-text: hsl(0deg 85% 74%);
71
72
 
@@ -122,7 +122,21 @@ declare class BarChartComponent {
122
122
  * included. Unset falls back to `DS_CONFIG.chart.valueFormat`, then `DS_CONFIG.locale` /
123
123
  * `LOCALE_ID`. */
124
124
  readonly valueFormat: _angular_core.InputSignal<ChartValueFormat | null>;
125
- private readonly defaults;
125
+ /** Holds the clicked row and its tooltip in place, with a pin disc on it, until a second click,
126
+ * Escape or a press outside releases it. Unset falls back to `DS_CONFIG.chart.pinOnClick`, then
127
+ * `true`. `rowClicked` fires either way - pinning is a state, not a handler. */
128
+ readonly pinOnClick: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
129
+ protected readonly defaults: {
130
+ locale: string;
131
+ frame: _angular_core.Signal<ChartFrame>;
132
+ dataTable: _angular_core.Signal<ChartDataTable>;
133
+ emptyText: _angular_core.Signal<string>;
134
+ errorText: _angular_core.Signal<string>;
135
+ valueFormat: _angular_core.Signal<ChartValueFormat>;
136
+ tooltipLingerMs: _angular_core.Signal<number>;
137
+ pinOnClick: _angular_core.Signal<boolean>;
138
+ hoverDelayMs: _angular_core.Signal<number>;
139
+ };
126
140
  protected readonly intl: _angular_core.Signal<_ids_group_ltd_ids_design_system_core.DsIntl>;
127
141
  readonly frameResolved: _angular_core.Signal<ChartFrame>;
128
142
  readonly dataTableResolved: _angular_core.Signal<ChartDataTable>;
@@ -136,11 +150,6 @@ declare class BarChartComponent {
136
150
  /** The row that was clicked, or activated with Enter or Space. Fires whether or not
137
151
  * `interactive` is set. */
138
152
  readonly rowClicked: _angular_core.OutputEmitterRef<BarChartRow>;
139
- /** Holds the hovered mark and its tooltip in place when it is clicked, until Escape or a press
140
- * outside releases it. Off by default: a click is already the drill-down hook, and a mark left
141
- * lit after the pointer has gone needs a reader who knows why it is lit. `rowClicked` fires
142
- * either way — pinning is a state, not a handler. */
143
- readonly pinOnClick: _angular_core.InputSignalWithTransform<boolean, unknown>;
144
153
  /** Dims every OTHER mark while one is hovered or focused, so the reader's eye is held on the
145
154
  * one under the pointer. Off by default: the dimming costs the separation BETWEEN the dimmed
146
155
  * marks — measured 2026-09-13, the worst pair of three dimmed series falls from dE 14.8 at full
@@ -153,9 +162,9 @@ declare class BarChartComponent {
153
162
  * is unaffected. */
154
163
  readonly highlighted: _angular_core.InputSignal<string | null>;
155
164
  protected isSegmentDimmed(key: string): boolean;
156
- /** Milliseconds between one mark's entrance and the next. `0`, the default, is no stagger at
157
- * all; `40` is the documented non-zero step. The total is capped, so a long series does not
158
- * crawl in. */
165
+ /** Milliseconds between one row's entrance and the next, `40` by default; `0` turns the stagger
166
+ * off. The whole spread stays within 260ms, so a long chart
167
+ * narrows the step instead of crawling in. */
159
168
  readonly staggerMs: _angular_core.InputSignalWithTransform<number, unknown>;
160
169
  protected markStagger(index: number): string;
161
170
  /** Whether a hovered or focused row opens a tooltip. `'axis'` is not offered — a bar
@@ -166,6 +175,11 @@ declare class BarChartComponent {
166
175
  }> | undefined>;
167
176
  private readonly tooltipLingerResolved;
168
177
  protected readonly activeMark: _ids_group_ltd_ids_design_system_components_chart_tooltip.ChartActiveMark;
178
+ protected readonly hoveredLabel: _angular_core.WritableSignal<number>;
179
+ /** Naming a row by its label fades the rest whether or not `dimOthers` is set, the way a legend
180
+ * singles out its series. The row itself answers the pointer, so the fade waits out the same
181
+ * hover delay as the tooltip. */
182
+ protected readonly dimsOthers: _angular_core.Signal<boolean>;
169
183
  protected onMarkClick(payload: BarChartRow, index: number, event: Event): void;
170
184
  protected readonly roving: _ids_group_ltd_ids_design_system_components.RovingMarks;
171
185
  protected onMarkFocus(index: number, event: FocusEvent): void;
@@ -214,7 +228,7 @@ declare class BarChartComponent {
214
228
  * when the data lands; falls back to three when `data` is still empty. */
215
229
  protected readonly skeletonRows: _angular_core.Signal<unknown[]>;
216
230
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<BarChartComponent, never>;
217
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<BarChartComponent, "ds-bar-chart", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "frame": { "alias": "frame"; "required": false; "isSignal": true; }; "tooltipLingerMs": { "alias": "tooltipLingerMs"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "summary": { "alias": "summary"; "required": false; "isSignal": true; }; "dataTable": { "alias": "dataTable"; "required": false; "isSignal": true; }; "partOfWhole": { "alias": "partOfWhole"; "required": false; "isSignal": true; }; "showPercent": { "alias": "showPercent"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "errorText": { "alias": "errorText"; "required": false; "isSignal": true; }; "valueFormat": { "alias": "valueFormat"; "required": false; "isSignal": true; }; "interactive": { "alias": "interactive"; "required": false; "isSignal": true; }; "pinOnClick": { "alias": "pinOnClick"; "required": false; "isSignal": true; }; "dimOthers": { "alias": "dimOthers"; "required": false; "isSignal": true; }; "highlighted": { "alias": "highlighted"; "required": false; "isSignal": true; }; "staggerMs": { "alias": "staggerMs"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; }, { "rowClicked": "rowClicked"; }, ["tooltipTemplate"], never, true, never>;
231
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<BarChartComponent, "ds-bar-chart", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "frame": { "alias": "frame"; "required": false; "isSignal": true; }; "tooltipLingerMs": { "alias": "tooltipLingerMs"; "required": false; "isSignal": true; }; "caption": { "alias": "caption"; "required": false; "isSignal": true; }; "summary": { "alias": "summary"; "required": false; "isSignal": true; }; "dataTable": { "alias": "dataTable"; "required": false; "isSignal": true; }; "partOfWhole": { "alias": "partOfWhole"; "required": false; "isSignal": true; }; "showPercent": { "alias": "showPercent"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "errorText": { "alias": "errorText"; "required": false; "isSignal": true; }; "valueFormat": { "alias": "valueFormat"; "required": false; "isSignal": true; }; "pinOnClick": { "alias": "pinOnClick"; "required": false; "isSignal": true; }; "interactive": { "alias": "interactive"; "required": false; "isSignal": true; }; "dimOthers": { "alias": "dimOthers"; "required": false; "isSignal": true; }; "highlighted": { "alias": "highlighted"; "required": false; "isSignal": true; }; "staggerMs": { "alias": "staggerMs"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; }, { "rowClicked": "rowClicked"; }, ["tooltipTemplate"], never, true, never>;
218
232
  }
219
233
 
220
234
  export { BarChartComponent };