@ids-group-ltd/ids-design-system 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +116 -0
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +283 -180
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.1.0.json +9 -0
- package/migrations/0.2.0.json +73 -0
- package/migrations/0.2.1.json +7 -0
- package/migrations/0.2.2.json +8 -0
- package/migrations/0.3.0.json +49 -0
- package/migrations/0.4.0.json +149 -0
- package/migrations/0.5.0.json +256 -0
- package/migrations/0.5.1.json +307 -0
- package/migrations/AUTHORING.md +134 -0
- package/migrations/README.md +35 -0
- package/package.json +1 -1
- package/styles/_status.scss +57 -0
- package/styles/_tokens.scss +9 -1
- package/themes/_base-palette.scss +14 -3
- package/themes/_semantic.scss +20 -38
- package/themes/dark/_theme.scss +1 -7
- package/types/ids-group-ltd-ids-design-system.d.ts +148 -101
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,122 @@ While the package is on `0.x`, minor releases may contain breaking changes.
|
|
|
8
8
|
|
|
9
9
|
## Unreleased
|
|
10
10
|
|
|
11
|
+
## 0.5.1 — 2026-07-13
|
|
12
|
+
|
|
13
|
+
### Breaking
|
|
14
|
+
|
|
15
|
+
- **Status vocabulary unified — `danger` → `error`, `warn` → `warning`.** A new exported
|
|
16
|
+
`DsStatus = 'info' | 'success' | 'warning' | 'error'` is the canonical status vocabulary.
|
|
17
|
+
Renamed to match it: the boolean input `[danger]` → `[error]` on `ds-modal` / `ds-modal-card` /
|
|
18
|
+
`ds-menu-item`; `ds-stat` `variant` value `'danger'` → `'error'`; `ds-progress` `variant` value
|
|
19
|
+
`'warn'` → `'warning'` (`ProgressVariant` is now `'default' | Exclude<DsStatus, 'info'>`);
|
|
20
|
+
`ModalConfirmTone` `'danger'` → `'error'` (also `ModalService.confirm({ tone })`);
|
|
21
|
+
`SplitButtonItem.danger` → `.error`. Public tokens renamed in lockstep:
|
|
22
|
+
`--ds-menu-item-danger-label-color` → `--ds-menu-item-error-label-color` and
|
|
23
|
+
`--ds-progress-bar-color-warn` → `--ds-progress-bar-color-warning`. CSS state classes and every
|
|
24
|
+
default value are otherwise unchanged.
|
|
25
|
+
- **Event outputs renamed to past-participle (consistent event naming).** Dismissal events unified
|
|
26
|
+
to `closed`: `ds-alert` / `ds-banner` / `ds-toast` `(dismissed)` → `(closed)`. Action events made
|
|
27
|
+
past-tense: `ds-table` `(rowClick)` → `(rowClicked)`, `ds-stepper` `(stepClick)` →
|
|
28
|
+
`(stepClicked)`, `ds-calendar-day` `(daySelect)` → `(daySelected)`, `ds-tabs` `(tabClose)` →
|
|
29
|
+
`(tabClosed)`, `ds-tree` `(nodeSelect)` → `(nodeSelected)`, `ds-split-button` `(itemSelect)` →
|
|
30
|
+
`(itemSelected)`.
|
|
31
|
+
- **`ds-progress` — `indeterminate` is now a boolean input, not a `variant` value.** The animation
|
|
32
|
+
mode was conflated with the colour variant (a bar could not be `success`-coloured *and*
|
|
33
|
+
indeterminate). Migration: `<ds-progress variant="indeterminate" />` →
|
|
34
|
+
`<ds-progress indeterminate />`; `'indeterminate'` removed from `ProgressVariant`.
|
|
35
|
+
- **`ds-badge` / `ds-status-dot` status API redesigned — factory statuses replaced by a
|
|
36
|
+
consumer-defined registry.** `ds-badge`'s `[variant]` input (`BadgeVariant`) is replaced by
|
|
37
|
+
`[status]` (typed `DsStatusKey`); `ds-status-dot`'s `[status]` is retyped `StatusValue` →
|
|
38
|
+
`DsStatusKey` and no longer defaults to `'planning'`. Both now render the value as a `data-status`
|
|
39
|
+
attribute instead of a factory CSS class, so the built-in per-status rules (`.badge.planning` /
|
|
40
|
+
`.active` / `.confirmed` / `.completed` / `.info` / `.success` / `.warning` / `.error` /
|
|
41
|
+
`.neutral` / `.secondary`, plus the matching `.status-dot.*`) and the factory `--status-*`
|
|
42
|
+
lifecycle theme tokens (`--status-planning-bg-color`, `--status-confirmed-*`, `--status-active-*`,
|
|
43
|
+
`--status-completed-*`) are all removed. The exported types `BadgeVariant`, `BadgeLifecycle`,
|
|
44
|
+
`BadgeSemantic`, and `StatusValue` are removed. Migrate `variant="active"` → `status="active"`,
|
|
45
|
+
then define your own status colours via the new `styles/status` SCSS API (see Added) keyed on
|
|
46
|
+
`[data-status]`. `[count]` mode, `[solid]`, `[withDot]`, `[max]`, and the `--ds-badge-*` /
|
|
47
|
+
`--ds-status-dot-*` hooks are unchanged.
|
|
48
|
+
- **`title` is now required on `ds-drawer`, `ds-bottom-sheet`, and `ds-accordion-item`** (was
|
|
49
|
+
optional). Their `title` is the component's accessible name (dialog `aria-labelledby`) or the
|
|
50
|
+
disclosure-button label, so a missing title left them unnamed. `ds-modal` / `ds-modal-card` stay
|
|
51
|
+
required (unchanged); `ds-page-header` is now **optional** (its `title` is a plain `<h1>`, not an
|
|
52
|
+
accessible-name dependency — a non-breaking loosening).
|
|
53
|
+
- **Default `secondary` / `tertiary` hues now diverge from `primary`.** Previously both roles
|
|
54
|
+
defaulted to the `--primary` channels, so an un-branded app rendered `primary`, `secondary`, and
|
|
55
|
+
`tertiary` as the same blue. They now default to distinct palette families — `--secondary-h/s/l` →
|
|
56
|
+
`--orange-h/s/l` (warm orange) and `--tertiary-h/s/l` → `--violet-h/s/l` (cool violet), in both
|
|
57
|
+
light and dark themes. Consumers who already set `--secondary-h/s/l` / `--tertiary-h/s/l` per brand
|
|
58
|
+
are unaffected; to keep the old single-hue look, point those channels back at `--primary-h/s/l`.
|
|
59
|
+
- **`--static-white` theme token removed.** The fixed-value `--static-white` custom property is gone;
|
|
60
|
+
its uses now emit the literal `white`. No visual change, but a consumer who referenced
|
|
61
|
+
`var(--static-white)` must replace it with `white` (`--static-ink` is retained).
|
|
62
|
+
|
|
63
|
+
### Added
|
|
64
|
+
|
|
65
|
+
- **`DsStatus` type export** — `'info' | 'success' | 'warning' | 'error'`, the shared status
|
|
66
|
+
vocabulary used across status-bearing components.
|
|
67
|
+
- **`ds-progress` `[indeterminate]` boolean input** — orthogonal to `variant` (see Breaking).
|
|
68
|
+
- **`DividerSpacing` is now exported** from the public API (the `ds-divider` `[spacing]` input type
|
|
69
|
+
was previously declared but not re-exported).
|
|
70
|
+
- **Extensible status system — `DsStatusRegistry` / `DsStatusKey` + `styles/status` SCSS API.** New
|
|
71
|
+
public exports: `DsStatusRegistry` (an empty interface consumers augment via declaration merging to
|
|
72
|
+
register their own status keys) and `DsStatusKey` (an open `string` until the registry is augmented,
|
|
73
|
+
then a union of the registered keys — the type of `ds-badge` / `ds-status-dot` `[status]`). A new
|
|
74
|
+
SCSS entry point `@use '@ids-group-ltd/ids-design-system/styles/status'` exposes `define($map)` —
|
|
75
|
+
wires `[data-status]` selectors to the `--ds-badge-*` / `--ds-status-dot-*` tokens from a Sass map
|
|
76
|
+
of `name: (bg:, text?:, dot?:)` — and `semantic-preset`, a ready-made `info` / `success` /
|
|
77
|
+
`warning` / `error` / `neutral` set. This is the replacement for the removed factory statuses (see
|
|
78
|
+
Breaking).
|
|
79
|
+
|
|
80
|
+
### Changed
|
|
81
|
+
|
|
82
|
+
- **Press-feedback reworked — no button-style press on non-buttons.** The `:active` scale+brightness
|
|
83
|
+
press was removed from the overlay field triggers `ds-autocomplete` / `ds-select` /
|
|
84
|
+
`ds-multi-select` (opening the panel is the feedback). List/menu rows and the color-picker trigger
|
|
85
|
+
(`ds-menu-item`, `ds-list`, `ds-tree`, `ds-accordion` header, `ds-color-picker`) swap the scale for a
|
|
86
|
+
flat rounded `:active` background. Press-scale stays on buttons and compact actionable controls
|
|
87
|
+
(`ds-button`, `ds-calendar-day`, `ds-pagination`, `ds-tabs`, `ds-segmented`, `ds-toggle-button`,
|
|
88
|
+
`ds-sidenav-item`, checkbox / radio / switch). Small icon action buttons — close / dismiss /
|
|
89
|
+
clear / remove `×`, plus the `ds-tag` chip close (used by autocomplete & multi-select chips) — now
|
|
90
|
+
consistently get the button press-scale too (they previously had no `:active` feedback, or only a
|
|
91
|
+
flat tint).
|
|
92
|
+
- **`ds-date-picker` keeps the format mask visible while typing.** In manual-input mode the unfilled
|
|
93
|
+
tail of the date mask now stays on-screen as a muted ghost (after typing `12/` the field reads
|
|
94
|
+
`12/DD/YYYY`) instead of the placeholder vanishing on the first keystroke. The typed value renders
|
|
95
|
+
in the monospace font so digits land exactly on the mask's `D`/`M`/`Y` positions and the tail never
|
|
96
|
+
shifts as you type.
|
|
97
|
+
|
|
98
|
+
### Fixed
|
|
99
|
+
|
|
100
|
+
- **Boolean attribute coercion on all boolean inputs.** ~54 boolean inputs across ~30 components
|
|
101
|
+
gained `transform: booleanAttribute`, so a bare or string attribute (`<ds-x required>` /
|
|
102
|
+
`disabled="false"`) now coerces correctly instead of being read as a truthy string. Property-
|
|
103
|
+
binding consumers are unaffected.
|
|
104
|
+
- **`ds-button` tonal fill — `:active` now darkens past `:hover`.** The `tonal` variant reused the
|
|
105
|
+
same token (`--c-muted-strong`) for both hover and active, so the pressed background was identical
|
|
106
|
+
to hover; active now mixes that tint ~10% toward black for a distinct pressed step.
|
|
107
|
+
- **Per-instance overlay panel token overrides now reach the portaled pane.** `--ds-*` panel tokens
|
|
108
|
+
set on the host of `ds-autocomplete`, `ds-multi-select`, `ds-date-picker`, `ds-color-picker`,
|
|
109
|
+
`ds-popover`, and `ds-time-picker` were ignored because the panel renders in a CDK overlay
|
|
110
|
+
(portaled outside `:host`, where the custom properties no longer inherit); the host's resolved
|
|
111
|
+
panel tokens are now forwarded onto the overlay element on open. (`ds-select` uses the shared
|
|
112
|
+
global panel class and was never affected.)
|
|
113
|
+
- **`ds-autocomplete` / `ds-multi-select` panels no longer render transparent.** Their internal panel
|
|
114
|
+
colour resolvers were declared on `:host`, but the panel is portaled — so the background collapsed
|
|
115
|
+
to transparent (page content bled through) with broken hover/active highlighting; the resolvers now
|
|
116
|
+
sit on the panel element itself.
|
|
117
|
+
- **`ds-tabs` `secondary` variant now applies.** The secondary-toned active indicator and label were
|
|
118
|
+
keyed off `.tabs.secondary`, but the variant class lands on the host, so the selector never
|
|
119
|
+
matched; rewritten to `:host(.secondary)`.
|
|
120
|
+
- **`ds-date-picker` range mask no longer clips the second date**, and the trigger's value-to-icon
|
|
121
|
+
gap is tightened to 4px. The field now reserves an extra character of width so the wider range-mode
|
|
122
|
+
mask (two dates) is no longer cut off.
|
|
123
|
+
- **`ultra-compact` density tier gained full token coverage.** `[data-density="ultra-compact"]` now
|
|
124
|
+
also scales avatar size, sidenav width, badge / status-dot sizes, and switch geometry — previously
|
|
125
|
+
left at the cozy defaults, so those controls didn't shrink with the tier.
|
|
126
|
+
|
|
11
127
|
## 0.5.0 — 2026-07-08
|
|
12
128
|
|
|
13
129
|
### Breaking
|