@ids-group-ltd/ids-design-system 0.5.1 → 0.6.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 +98 -0
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +873 -153
- package/fesm2022/ids-group-ltd-ids-design-system.mjs.map +1 -1
- package/migrations/0.6.0.json +35 -0
- package/package.json +1 -1
- package/styles/_breakpoints.scss +14 -5
- package/styles/_layout-utils.scss +27 -7
- package/styles/_page-grid.scss +3 -0
- package/styles/_tokens.scss +3 -3
- package/styles/_typography.scss +1 -1
- package/styles/ds.scss +2 -0
- package/types/ids-group-ltd-ids-design-system.d.ts +438 -14
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,104 @@ While the package is on `0.x`, minor releases may contain breaking changes.
|
|
|
8
8
|
|
|
9
9
|
## Unreleased
|
|
10
10
|
|
|
11
|
+
## 0.6.1 — 2026-07-16
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- **`ds-date-picker` panel now closes on scroll of any scroll container.** 0.6.0 used the CDK
|
|
16
|
+
close-scroll strategy, which only observes the window and registered `cdkScrollable`s — so a plain
|
|
17
|
+
`overflow: auto` container (e.g. an app's scrolling `<main>`) never triggered the close and the
|
|
18
|
+
panel floated. It now also closes via a capture-phase document scroll listener, which catches the
|
|
19
|
+
non-bubbling scroll from any nested container.
|
|
20
|
+
- **`ds-date-picker` masked typing works on mobile keyboards.** Segment-aware editing was wired to
|
|
21
|
+
`keydown`, but Android/Gboard fires no reliable `keydown` for edits (Backspace arrives as a
|
|
22
|
+
`beforeinput` with `inputType: "deleteContentBackward"`), so deletion fell back to a native delete
|
|
23
|
+
+ re-mask that couldn't cross a `/` separator — leaving the caret stuck (many taps to pass a
|
|
24
|
+
separator). Editing (digit entry, Backspace, Delete, selection replace) now also routes through
|
|
25
|
+
`beforeinput`, so a single tap crosses separators on a phone, matching desktop.
|
|
26
|
+
- **`ds-date-picker` panel drops the misleading `aria-modal` attribute.** The calendar panel is
|
|
27
|
+
non-modal (no backdrop, the rest of the page stays interactive) but still advertised
|
|
28
|
+
`aria-modal="true"`, telling assistive technology the page behind it was inert. Removed so the
|
|
29
|
+
announced ARIA state matches the panel's actual non-blocking behaviour.
|
|
30
|
+
|
|
31
|
+
## 0.6.0 — 2026-07-16
|
|
32
|
+
|
|
33
|
+
### Breaking
|
|
34
|
+
|
|
35
|
+
- **`styles/breakpoints` is side-effect-free — `--bp-*` now comes from an explicit `emit-vars`
|
|
36
|
+
mixin.** The partial exposes the `$bp-*` Sass aliases and `up()` / `down()` mixins with zero CSS
|
|
37
|
+
output on plain `@use`, so component styles can import it for media queries without duplicating a
|
|
38
|
+
`:root` block. The `--bp-*` runtime custom properties (for JS via `getComputedStyle`) are emitted
|
|
39
|
+
only when `emit-vars` is included. `styles/ds` includes it once — **unaffected** for consumers of
|
|
40
|
+
the aggregate. À-la-carte consumers who `@use '@ids-group-ltd/ids-design-system/styles/breakpoints'`
|
|
41
|
+
directly and need `--bp-*` must add `@include bp.emit-vars;` themselves.
|
|
42
|
+
|
|
43
|
+
### Added
|
|
44
|
+
|
|
45
|
+
- **`menu` icon** (hamburger, three horizontal bars) in the icon registry.
|
|
46
|
+
|
|
47
|
+
### Changed
|
|
48
|
+
|
|
49
|
+
- **`.grid-2` / `.grid-3` / `.grid-4` layout utils collapse to a single column below 640px**
|
|
50
|
+
(`$bp-sm`), matching the rest of the responsive grid tiers.
|
|
51
|
+
- **`.grid-3` / `.grid-4` layout-utils collapse tiers normalized to canonical breakpoints**: 1100px →
|
|
52
|
+
1024px (`$bp-lg`), 820px → 768px (`$bp-md`).
|
|
53
|
+
- **`ds-page-header` actions full-width threshold normalized to canonical breakpoint**: 720px → 768px
|
|
54
|
+
(`$bp-md`).
|
|
55
|
+
- **`.t-mono-block` scrolls instead of overflowing.** Added `max-width: 100%; overflow-x: auto;` so
|
|
56
|
+
long unbroken lines scroll within the block rather than forcing page-level horizontal overflow.
|
|
57
|
+
- **`ds-modal` panel clamps to the viewport on small screens.** New `max-width: calc(100vw -
|
|
58
|
+
var(--space-6))`; `max-height` is now `90vh` with a `90dvh` fallback (browsers without `dvh`
|
|
59
|
+
support keep `90vh`).
|
|
60
|
+
- **`ds-date-picker` shows per-segment placeholders and a fixed-width value.** Each empty
|
|
61
|
+
`MM` / `DD` / `YYYY` segment now renders its own format-letter placeholder (e.g. `MM/DD/YYYY`),
|
|
62
|
+
and a partially-typed segment shows the typed digits followed by muted padding letters. Achieved
|
|
63
|
+
with a transparent input layered over a per-slot overlay, so the value stays fixed-width and the
|
|
64
|
+
caret stays aligned as you type across segments (single and range mode).
|
|
65
|
+
- **`ds-date-picker` calendar panel is now non-blocking (no backdrop).** The panel renders with
|
|
66
|
+
`hasBackdrop: false`, so hover/pointer events reach the rest of the page instead of being
|
|
67
|
+
swallowed by a full-screen scrim, and the trigger input stays live — clicking it while the panel
|
|
68
|
+
is open repositions the caret without closing. The panel closes on a pointer-down outside the
|
|
69
|
+
field and panel, on Escape, on selecting a day, and on scroll.
|
|
70
|
+
|
|
71
|
+
### Fixed
|
|
72
|
+
|
|
73
|
+
- **`ds-description-list` no longer forces page-wide horizontal scroll on narrow viewports.** The
|
|
74
|
+
item's `1fr` grid column had no `minmax(0, …)`, so its min-content contribution (long unbroken
|
|
75
|
+
values like API keys) blew out the track past the container; both grid tracks now use
|
|
76
|
+
`minmax(0, …)` and the value gains `overflow-wrap: anywhere` to actually wrap into the freed space.
|
|
77
|
+
- **`ds-drawer` / `ds-bottom-sheet` / `ds-modal` no longer hang mid-close when the tab is backgrounded.**
|
|
78
|
+
Teardown waited on the leave animation's `animationend`, but Chrome freezes CSS animations on a
|
|
79
|
+
hidden document, so the event never fired and the panel stayed stuck in its `closing` state with
|
|
80
|
+
the scrim visible and body scroll locked; each now also arms a 300ms synthetic-fallback timer that
|
|
81
|
+
completes teardown if `animationend` doesn't arrive first (whichever fires first wins, the other is
|
|
82
|
+
cancelled). `ds-drawer`'s `animationend` name check also switched from a loose `.includes()` match
|
|
83
|
+
to per-placement `.endsWith()`, matching the guard already used by `ds-bottom-sheet` / `ds-modal`.
|
|
84
|
+
- **`ds-popover` overlay no longer touches or crosses the viewport edge on small screens.** The
|
|
85
|
+
`FlexibleConnectedPositionStrategy` had no viewport margin, so panels near an edge could butt
|
|
86
|
+
right up against it or overflow past it; now reserves an 8px margin on all sides.
|
|
87
|
+
- **`ds-date-picker` calendar panel no longer overflows phone viewports.** Below 640px (`$bp-sm`)
|
|
88
|
+
the panel clamps to `calc(100vw - var(--space-4))` and the presets column stacks below the day
|
|
89
|
+
grid instead of sitting beside it, replacing the fixed 454px-wide side-by-side layout that
|
|
90
|
+
overflowed the screen.
|
|
91
|
+
- **`ds-date-picker` text entry is now segment-aware — editing one field no longer disturbs the
|
|
92
|
+
others or the caret.** Typing, Backspace and Delete stay within the focused `MM` / `DD` / `YYYY`
|
|
93
|
+
field (single and range mode); previously correcting one segment could shift digits across the
|
|
94
|
+
`/` separators and fling the caret to the end.
|
|
95
|
+
- **`ds-date-picker` no longer shows a mask residue or a false invalid state when pristine.** An
|
|
96
|
+
untouched field previously held a `__/__/____` residue that was read out to screen readers and
|
|
97
|
+
could trip validation on blur; it now renders empty and raises no invalid state until the user
|
|
98
|
+
actually enters a value (single and range mode).
|
|
99
|
+
- **`ds-date-picker` paste is slot-aware.** Pasting digits fills segments sequentially from the
|
|
100
|
+
caret position rather than flattening the field or clearing unrelated segments.
|
|
101
|
+
- **`ds-date-picker` range values can no longer be corrupted by clearing one segment.** Parsing is
|
|
102
|
+
now slot-based instead of slicing by digit count, so clearing one segment of a range no longer
|
|
103
|
+
pulls a digit from an adjacent segment into the emptied slot; a date is parsed and validated only
|
|
104
|
+
once all of its slots are filled.
|
|
105
|
+
- **`ds-date-picker` exposes its format hint to screen readers via `aria-placeholder`.** After the
|
|
106
|
+
native placeholder was removed for the overlay rework, the `MM/DD/YYYY` format hint is now surfaced
|
|
107
|
+
to assistive technology through `aria-placeholder`.
|
|
108
|
+
|
|
11
109
|
## 0.5.1 — 2026-07-13
|
|
12
110
|
|
|
13
111
|
### Breaking
|