@ids-group-ltd/ids-design-system 0.6.3 → 0.7.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.
@@ -0,0 +1,263 @@
1
+ {
2
+ "version": "0.7.0",
3
+ "items": [
4
+ {
5
+ "id": "size-type-icon-button-to-dssize",
6
+ "kind": "type-rename",
7
+ "old": "IconButtonSize",
8
+ "new": "DsSize",
9
+ "note": "The per-component size scale is now the shared `DsSize` ('sm'|'md'|'lg'), exported from the package root. Rename this type BEFORE `ButtonSize` — this identifier contains it, so an unordered replace would corrupt it. Collapse any duplicate `DsSize` imports that result.",
10
+ "searchHints": [
11
+ "IconButtonSize"
12
+ ]
13
+ },
14
+ {
15
+ "id": "size-type-button-to-dssize",
16
+ "kind": "type-rename",
17
+ "old": "ButtonSize",
18
+ "new": "DsSize",
19
+ "note": "Removed — use the shared `DsSize` from the package root. Rename `IconButtonSize` FIRST (it contains `ButtonSize`). Collapse any duplicate `DsSize` imports.",
20
+ "searchHints": [
21
+ "ButtonSize"
22
+ ]
23
+ },
24
+ {
25
+ "id": "size-type-input-to-dssize",
26
+ "kind": "type-rename",
27
+ "old": "InputSize",
28
+ "new": "DsSize",
29
+ "note": "Removed — use the shared `DsSize` from the package root; collapse any duplicate `DsSize` imports if you import several of these together.",
30
+ "searchHints": [
31
+ "InputSize"
32
+ ]
33
+ },
34
+ {
35
+ "id": "size-type-select-to-dssize",
36
+ "kind": "type-rename",
37
+ "old": "SelectSize",
38
+ "new": "DsSize",
39
+ "note": "Removed — use the shared `DsSize` from the package root; collapse any duplicate `DsSize` imports.",
40
+ "searchHints": [
41
+ "SelectSize"
42
+ ]
43
+ },
44
+ {
45
+ "id": "size-type-search-to-dssize",
46
+ "kind": "type-rename",
47
+ "old": "SearchSize",
48
+ "new": "DsSize",
49
+ "note": "Removed — use the shared `DsSize` from the package root; collapse any duplicate `DsSize` imports.",
50
+ "searchHints": [
51
+ "SearchSize"
52
+ ]
53
+ },
54
+ {
55
+ "id": "size-type-checkbox-to-dssize",
56
+ "kind": "type-rename",
57
+ "old": "CheckboxSize",
58
+ "new": "DsSize",
59
+ "note": "Removed — use the shared `DsSize` from the package root; collapse any duplicate `DsSize` imports.",
60
+ "searchHints": [
61
+ "CheckboxSize"
62
+ ]
63
+ },
64
+ {
65
+ "id": "size-type-radio-to-dssize",
66
+ "kind": "type-rename",
67
+ "old": "RadioSize",
68
+ "new": "DsSize",
69
+ "note": "Removed — use the shared `DsSize` from the package root; collapse any duplicate `DsSize` imports.",
70
+ "searchHints": [
71
+ "RadioSize"
72
+ ]
73
+ },
74
+ {
75
+ "id": "size-type-switch-to-dssize",
76
+ "kind": "type-rename",
77
+ "old": "SwitchSize",
78
+ "new": "DsSize",
79
+ "note": "Removed — use the shared `DsSize` from the package root; collapse any duplicate `DsSize` imports.",
80
+ "searchHints": [
81
+ "SwitchSize"
82
+ ]
83
+ },
84
+ {
85
+ "id": "size-type-spinner-to-dssize",
86
+ "kind": "type-rename",
87
+ "old": "SpinnerSize",
88
+ "new": "DsSize",
89
+ "note": "Removed — use the shared `DsSize` from the package root; collapse any duplicate `DsSize` imports.",
90
+ "searchHints": [
91
+ "SpinnerSize"
92
+ ]
93
+ },
94
+ {
95
+ "id": "size-type-textarea-to-dssize",
96
+ "kind": "type-rename",
97
+ "old": "TextareaSize",
98
+ "new": "DsSize",
99
+ "note": "Removed — use the shared `DsSize` from the package root; collapse any duplicate `DsSize` imports.",
100
+ "searchHints": [
101
+ "TextareaSize"
102
+ ]
103
+ },
104
+ {
105
+ "id": "size-type-number-stepper-to-dssize",
106
+ "kind": "type-rename",
107
+ "old": "NumberStepperSize",
108
+ "new": "DsSize",
109
+ "note": "Removed — use the shared `DsSize` from the package root; collapse any duplicate `DsSize` imports.",
110
+ "searchHints": [
111
+ "NumberStepperSize"
112
+ ]
113
+ },
114
+ {
115
+ "id": "size-type-date-picker-to-dssize",
116
+ "kind": "type-rename",
117
+ "old": "DatePickerSize",
118
+ "new": "DsSize",
119
+ "note": "Removed — use the shared `DsSize` from the package root; collapse any duplicate `DsSize` imports.",
120
+ "searchHints": [
121
+ "DatePickerSize"
122
+ ]
123
+ },
124
+ {
125
+ "id": "size-type-time-picker-to-dssize",
126
+ "kind": "type-rename",
127
+ "old": "TimePickerSize",
128
+ "new": "DsSize",
129
+ "note": "Removed — use the shared `DsSize` from the package root; collapse any duplicate `DsSize` imports.",
130
+ "searchHints": [
131
+ "TimePickerSize"
132
+ ]
133
+ },
134
+ {
135
+ "id": "size-type-drawer-to-dssize",
136
+ "kind": "type-rename",
137
+ "old": "DrawerSize",
138
+ "new": "DsSize",
139
+ "note": "Removed — use the shared `DsSize` from the package root; collapse any duplicate `DsSize` imports.",
140
+ "searchHints": [
141
+ "DrawerSize"
142
+ ]
143
+ },
144
+ {
145
+ "id": "size-type-autocomplete-to-dssize",
146
+ "kind": "type-rename",
147
+ "old": "AutocompleteSize",
148
+ "new": "DsSize",
149
+ "note": "Removed — use the shared `DsSize` from the package root; collapse any duplicate `DsSize` imports.",
150
+ "searchHints": [
151
+ "AutocompleteSize"
152
+ ]
153
+ },
154
+ {
155
+ "id": "pagination-page-change-to-current-page-change",
156
+ "kind": "output-rename",
157
+ "old": "ds-pagination[pageChange]",
158
+ "new": "currentPageChange",
159
+ "note": "The manual (pageChange) output is removed; the currentPage two-way model already emits (currentPageChange) on every page change (including the reset to page 1 after a size change). Rename (pageChange)=\"...\" to (currentPageChange)=\"...\" on ds-pagination. (pageSizeChange) is UNCHANGED — it is now the pageSize model's implicit output, same name and payload; [(currentPage)] / [(pageSize)] two-way bindings need no change.",
160
+ "searchHints": [
161
+ "(pageChange)",
162
+ "pageChange"
163
+ ]
164
+ },
165
+ {
166
+ "id": "input-with-addon-removed",
167
+ "kind": "removed-api",
168
+ "old": "ds-input[withAddon]",
169
+ "new": null,
170
+ "note": "Removed (distinct from withAddonRight below — match the exact attribute; withAddon is a substring of withAddonRight). The flush-addon layout is now derived from the DOM: a boxed .addon projected into [dsInputPrefix] (<span dsInputPrefix class=\"addon\">…</span>) sits flush automatically via :has(), and a bare <ds-icon dsInputPrefix> keeps its inset. Delete the [withAddon] attribute — a boxed addon renders identically; a bare icon that used the flag regains its proper left inset (bugfix).",
171
+ "searchHints": [
172
+ "[withAddon]"
173
+ ]
174
+ },
175
+ {
176
+ "id": "input-with-addon-right-removed",
177
+ "kind": "removed-api",
178
+ "old": "ds-input[withAddonRight]",
179
+ "new": null,
180
+ "note": "Removed — the trailing counterpart of withAddon. A boxed .addon.right projected into [dsInputSuffix] now sits flush automatically via :has(). Delete the [withAddonRight] attribute.",
181
+ "searchHints": [
182
+ "[withAddonRight]"
183
+ ]
184
+ },
185
+ {
186
+ "id": "app-shell-selector-to-app-layout",
187
+ "kind": "selector-rename",
188
+ "old": "ds-app-shell",
189
+ "new": "ds-app-layout",
190
+ "note": "Component renamed (shipped as ds-app-shell in the tagged 0.6.3 source). Behaviour unchanged — rename the element and its closing tag. Also rename the class, service and tokens (separate entries below).",
191
+ "searchHints": [
192
+ "ds-app-shell"
193
+ ]
194
+ },
195
+ {
196
+ "id": "app-shell-class-to-app-layout",
197
+ "kind": "type-rename",
198
+ "old": "AppShellComponent",
199
+ "new": "AppLayoutComponent",
200
+ "note": "The exported component class renamed alongside the ds-app-shell → ds-app-layout selector. Update imports / type references.",
201
+ "searchHints": [
202
+ "AppShellComponent"
203
+ ]
204
+ },
205
+ {
206
+ "id": "shell-scroll-service-to-layout-scroll-service",
207
+ "kind": "type-rename",
208
+ "old": "ShellScrollService",
209
+ "new": "LayoutScrollService",
210
+ "note": "The exported scroll-to-top-on-navigation service renamed with the app-shell → app-layout rename. Update inject()/import references; the scrollToTop() API is unchanged.",
211
+ "searchHints": [
212
+ "ShellScrollService"
213
+ ]
214
+ },
215
+ {
216
+ "id": "app-shell-tokens-to-app-layout",
217
+ "kind": "token-rename",
218
+ "old": "--ds-app-shell-",
219
+ "new": "--ds-app-layout-",
220
+ "note": "Prefix rename for the four layout tokens: --ds-app-shell-pad-x / -pad-y / -content-max-width / -height → --ds-app-layout-*. DS-owned tokens only (no others ship under this prefix); a consumer's own --ds-app-shell-* variable is out of scope. Confirm the new name exists in the installed package.",
221
+ "searchHints": [
222
+ "--ds-app-shell-"
223
+ ]
224
+ },
225
+ {
226
+ "id": "select-clear-button-dom-change",
227
+ "kind": "behavior",
228
+ "old": null,
229
+ "new": null,
230
+ "note": "ds-select's clear-x is now keyboard-operable: the trigger changed from <button role=\"combobox\"> to <div role=\"combobox\" tabindex=\"0\">, and the clear affordance from a mouse-only <span aria-hidden> to a real <button aria-label=\"Clear selection\">. Nothing stops compiling, but a consumer that targeted the old <button role=combobox> trigger or the <span> clear in CSS selectors or e2e/unit tests must retarget to the div / the button.",
231
+ "searchHints": [
232
+ "ds-select",
233
+ "role=\"combobox\"",
234
+ "Clear selection"
235
+ ]
236
+ },
237
+ {
238
+ "id": "field-reserve-message-default-on",
239
+ "kind": "behavior",
240
+ "old": null,
241
+ "new": null,
242
+ "note": "Message-bearing fields (ds-input, ds-textarea, ds-select, ds-autocomplete, ds-multi-select, ds-checkbox, ds-radio, ds-radio-group, ds-switch, ds-slider, ds-otp-input, ds-date-picker, ds-time-picker, ds-color-picker) now reserve one message line of height by DEFAULT via the new reserveMessage input (default true). Was: the footer existed only when a hint/error/counter was present, so a field with no message was shorter and grew when a message first appeared. Purely visual — nothing stops compiling. To restore the old collapsing behaviour on a field, set [reserveMessage]=\"false\". Review form vertical rhythm: the reserved row sits ~23px under the control, so tightly-stacked field pairs may read as a gap. (ds-search and ds-number-stepper have no message row and are NOT affected.)",
243
+ "searchHints": [
244
+ "<ds-input",
245
+ "<ds-textarea",
246
+ "<ds-select",
247
+ "reserveMessage"
248
+ ]
249
+ }
250
+ ],
251
+ "informational": [
252
+ "AvatarSize, ModalSize and ContainerSize are NOT removed — they remain and now extend DsSize ('xs' | DsSize, DsSize | 'xl' | 'fullscreen', DsSize | 'xl' | 'full'); no change needed for consumers using those three.",
253
+ "ds-avatar gains deterministic seeded tinting: [seed]/[avoidHues] inputs derive a stable per-person OKLCH background + auto-contrast text; standalone exports avatarTint(seed, options), AvatarTintOptions and initialsFrom(first, last) (also accepts a full-name string), and [tint] now also accepts 'neutral' — additive, off by default, no code change.",
254
+ "New override tokens --ds-sidenav-item-label-weight and --ds-modal-title-weight (previously baked into font: shorthands); defaults unchanged (--font-weight-semibold / --font-weight-bold) — additive, no code change.",
255
+ "ds-table gains opt-in inputs total (server-side paging: feed the full row count and pass one pre-sliced page), sortingOrder (e.g. ['asc','desc'] to drop the unsorted state), animateHeight (tween body height on a row-set change), scrollToTopOnPageChange, plus TableColumn.srLabel (visually-hidden header name) — all additive, off by default, no code change.",
256
+ "ds-search gains a size input (sm/md/lg); default md keeps the prior 36px height, so existing consumers are unaffected — additive, no code change.",
257
+ "ds-badge gains a countLabel input (default 'notifications') for the count's accessible-label noun — additive, no code change.",
258
+ "Bugfixes, no code change: --ds-avatar-size now applies at every size (not only md); ds-table clamps an out-of-range page after a client-side filter shrinks the result set; collapsed ds-sidenav no longer overflows by 1px; dsTooltip now listens on focusin/focusout so keyboard focus toggles the tip and re-rendered anchors no longer strand panels; stacked overlays (modal/drawer/bottom-sheet) no longer unlock body scroll under each other (shared ref-counted BodyScrollLockService).",
259
+ "ds-sidenav-item gains an optional (activate) output — emits the click MouseEvent; preventDefault() intercepts navigation on an href item, but a routerLink item navigates regardless. Additive, no code change.",
260
+ "BodyScrollLockService is now a public export — inject it to make a consumer's own full-screen overlay share the DS body-scroll lock (paired lock()/unlock()). Additive, no code change.",
261
+ "ds-menu: a disabled ds-menu-item is now keyboard-focusable (aria-disabled, kept in the roving/arrow/type-ahead order) instead of being dropped from nav and rendered as a native disabled button; activation stays blocked and a [dsTooltip] on it now shows on focus. Behavior/a11y only, no code change — but an e2e/unit test asserting a disabled menu item is unfocusable/native-disabled must be updated."
262
+ ]
263
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ids-group-ltd/ids-design-system",
3
- "version": "0.6.3",
3
+ "version": "0.7.0",
4
4
  "description": "IDS Group Angular design system: components, tokens, themes",
5
5
  "license": "MIT",
6
6
  "homepage": "https://ids-ds.proto.ids-group.co.uk/",
@@ -21,7 +21,7 @@
21
21
  // wanting an eased release add `filter`/`transform` to their own transition.
22
22
 
23
23
  @mixin feedback {
24
- &:active:not(:disabled):not([disabled]):not(.is-disabled) {
24
+ &:active:not(:disabled, [disabled], .is-disabled) {
25
25
  filter: brightness(var(--ds-press-brightness, 0.9));
26
26
  transform: scale(var(--ds-press-scale, 0.97));
27
27
  }
@@ -29,6 +29,7 @@
29
29
 
30
30
  ds-badge[data-status='#{$name}'] {
31
31
  --ds-badge-bg-color: #{$bg};
32
+
32
33
  @if $text {
33
34
  --ds-badge-label-color: #{$text};
34
35
  }
@@ -138,9 +138,6 @@
138
138
  --btn-focus-z: var(--layer-raised);
139
139
  --btn-group-focus-z: 2; /* focused button rises above its neighbour */
140
140
 
141
- /* ============================================================
142
- Motion
143
- ============================================================ */
144
141
  --duration-instant: 80ms;
145
142
  --duration-fast: 120ms;
146
143
  --duration-base: 180ms;
@@ -203,9 +200,6 @@
203
200
  --page-margin-desktop: var(--space-8); /* 32px */
204
201
  --page-margin-wide: var(--space-10); /* 40px */
205
202
 
206
- /* ============================================================
207
- System chrome
208
- ============================================================ */
209
203
  --scrollbar-w: 10px;
210
204
  --scrollbar-thumb: var(--neutral-300);
211
205
  --scrollbar-thumb-hover: var(--neutral-400);
@@ -265,9 +259,6 @@
265
259
  --hit-comfy: 44px; /* WCAG min for touch */
266
260
  --hit-touch: 48px; /* mobile-friendly — also used by floating-label fields */
267
261
 
268
- /* ============================================================
269
- Iconography
270
- ============================================================ */
271
262
  --icon-2xs: 10px;
272
263
  --icon-xs: 12px;
273
264
  --icon-sm: 14px;
@@ -426,7 +417,7 @@
426
417
  inside component CSS. Grouped by component for readability.
427
418
  ============================================================ */
428
419
 
429
- /* Top bar / app shell */
420
+ /* Top bar / app layout */
430
421
  --topbar-h: var(--space-14); /* 56px — global app bar height */
431
422
 
432
423
  /* Sidenav internals — w / w-collapsed defined above */
@@ -598,9 +589,6 @@
598
589
  --tab-spec-dot-offset: var(--border-width-strong); /* -2px notification offset (negated inline) */
599
590
  }
600
591
 
601
- /* ============================================================
602
- Reduced motion
603
- ============================================================ */
604
592
  @media (prefers-reduced-motion: reduce) {
605
593
  :root {
606
594
  --duration-instant: 0ms;
@@ -648,6 +636,7 @@
648
636
  --sidenav-w: 200px;
649
637
  --field-floating-label-top: 4px;
650
638
  --segmented-btn-h: 20px;
639
+
651
640
  /* Ultra also compresses field + table padding (tighter than compact/comfy). */
652
641
  --field-pad-x: var(--space-2);
653
642
  --field-pad-y: var(--space-1);
package/themes/README.md CHANGED
@@ -4,11 +4,11 @@ Colour is layered in three concerns: a **base palette** (theme-independent primi
4
4
 
5
5
  ## Architecture: three layers
6
6
 
7
- | Layer | Lives in | Examples | Applied at |
8
- | ------------------------------ | ---------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------- |
9
- | **Base palette** (primitives) | `themes/_base-palette.scss` | `--blue-600`, `--cool-gray-*`, `--brand-gray-*`, `--red-h/s/l`, `--static-white`, fonts, `--shadow-tint-h/s` | `:root` (theme-independent) |
10
- | **Theme** (role map) | `themes/_semantic.scss` + `themes/<t>/_*.scss` | `--primary`, `--surface-canvas`, `--text-primary`, the `--neutral-*` slot, `--focus-ring` | `:root` (light) / `:root[data-theme='dark']` |
11
- | **Component / scale** | `styles/_tokens.scss`, `*.component.scss` | `--space-*`, `--radius-*`, `--ds-button-bg-color`, `--duration-fast` | `:root` (theme-independent) |
7
+ | Layer | Lives in | Examples | Applied at |
8
+ | ----------------------------- | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | -------------------------------------------- |
9
+ | **Base palette** (primitives) | `themes/_base-palette.scss` | `--blue-600`, `--cool-gray-*`, `--brand-gray-*`, `--red-h/s/l`, `--static-white`, fonts, `--shadow-tint-h/s` | `:root` (theme-independent) |
10
+ | **Theme** (role map) | `themes/_semantic.scss` + `themes/<t>/_*.scss` | `--primary`, `--surface-canvas`, `--text-primary`, the `--neutral-*` slot, `--focus-ring` | `:root` (light) / `:root[data-theme='dark']` |
11
+ | **Component / scale** | `styles/_tokens.scss`, `*.component.scss` | `--space-*`, `--radius-*`, `--ds-button-bg-color`, `--duration-fast` | `:root` (theme-independent) |
12
12
 
13
13
  **Hard rule:** components NEVER consume base-palette primitives directly. `var(--blue-600)` inside `button.component.scss` is a bug — use a Tier-2 role (`--primary`, `--text-secondary`) or a component token.
14
14
 
@@ -33,8 +33,12 @@ Colour is layered in three concerns: a **base palette** (theme-independent primi
33
33
  - `<html data-theme="light">` — also light (explicit; same as the default)
34
34
 
35
35
  ```scss
36
- :root { @include light.theme; } // default
37
- :root[data-theme='dark'] { @include dark.theme; } // opt-in (complete set → fully wins)
36
+ :root {
37
+ @include light.theme;
38
+ } // default
39
+ :root[data-theme='dark'] {
40
+ @include dark.theme;
41
+ } // opt-in (complete set → fully wins)
38
42
  ```
39
43
 
40
44
  There is **no automatic `prefers-color-scheme` switch** — light is deterministic by default. To follow the OS, opt in at the app root with `provideDsTheme`: