@ids-group-ltd/ids-design-system 0.5.1 → 0.6.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 +77 -0
- package/fesm2022/ids-group-ltd-ids-design-system.mjs +798 -120
- 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 +424 -12
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.6.0",
|
|
3
|
+
"items": [
|
|
4
|
+
{
|
|
5
|
+
"id": "styles-breakpoints-pure-needs-vars",
|
|
6
|
+
"kind": "code-add",
|
|
7
|
+
"old": null,
|
|
8
|
+
"new": "@use '@ids-group-ltd/ids-design-system/styles/breakpoints' as bp;\n@include bp.emit-vars;",
|
|
9
|
+
"note": "styles/breakpoints stays side-effect-free on plain @use (map/$bp-*/up()/down() only, no CSS emitted) — the --bp-* runtime custom properties are now emitted only by its emit-vars mixin. Only consumers who followed the 0.4.0 guidance and `@use '@ids-group-ltd/ids-design-system/styles/breakpoints'` A LA CARTE (not via the styles/ds aggregate, which already includes emit-vars once) must additionally `@include bp.emit-vars;` to keep --bp-* defined. Consumers using styles/ds need no action. $bp-* Sass aliases and the up()/down() mixins are unaffected either way.",
|
|
10
|
+
"searchHints": [
|
|
11
|
+
"styles/breakpoints",
|
|
12
|
+
"@use '@ids-group-ltd/ids-design-system/styles/breakpoints'"
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"informational": [
|
|
17
|
+
".grid-2/.grid-3/.grid-4 layout utils now collapse to 1 column below 640px ($bp-sm) — visual only, no code change.",
|
|
18
|
+
".t-mono-block gains max-width: 100%; overflow-x: auto — long lines scroll instead of overflowing the page, no code change.",
|
|
19
|
+
"ds-modal panel clamps max-width: calc(100vw - var(--space-6)) and max-height 90vh with 90dvh fallback on small screens — visual only, no code change.",
|
|
20
|
+
"New `menu` (hamburger) icon added to the icon registry — additive.",
|
|
21
|
+
"ds-description-list item grid tracks now use minmax(0, …) and the value gains overflow-wrap: anywhere, fixing page-wide horizontal scroll caused by long unbroken values — visual only, no code change.",
|
|
22
|
+
"ds-drawer/ds-bottom-sheet/ds-modal teardown no longer hangs (scrim stuck, body scroll locked) when the tab is backgrounded mid-close — each now arms a 300ms synthetic-fallback timer alongside the animationend listener so teardown completes even if Chrome freezes the leave animation; no code change required from consumers.",
|
|
23
|
+
"ds-popover overlay now reserves an 8px viewport margin (FlexibleConnectedPositionStrategy.withViewportMargin(8)) — panels no longer touch or cross the screen edge on small viewports; visual only, no code change.",
|
|
24
|
+
"ds-date-picker calendar panel caps to calc(100vw - var(--space-4)) and stacks the presets column below the day grid below 640px ($bp-sm), replacing the fixed 454px-wide side-by-side layout that overflowed phone viewports — visual only, no code change.",
|
|
25
|
+
".grid-3/.grid-4 layout-utils collapse tiers normalized to canonical breakpoints: 1100px -> 1024px ($bp-lg), 820px -> 768px ($bp-md) — visual only, no code change.",
|
|
26
|
+
"ds-page-header actions full-width threshold normalized to canonical breakpoint: 720px -> 768px ($bp-md) — visual only, no code change.",
|
|
27
|
+
"ds-date-picker text entry is now segment-aware — typing/Backspace/Delete stay within the focused MM/DD/YYYY field (single and range mode) instead of shifting digits across the separators and moving the caret; behavior only, no code change.",
|
|
28
|
+
"ds-date-picker now shows per-segment placeholders (each empty MM/DD/YYYY segment renders its own format letters, partial segments show digits + muted padding) via a transparent input over a per-slot overlay, keeping the value fixed-width and the caret aligned — visual/behavior only, no code change.",
|
|
29
|
+
"ds-date-picker calendar panel is now non-blocking (hasBackdrop: false) — it closes on outside pointer-down but the trigger stays live (clicking the icon while open toggles it closed) and hover/pointer events reach the rest of the page; behavior only, no code change.",
|
|
30
|
+
"ds-date-picker no longer shows a __/__/____ mask residue or raises a false invalid state on blur when the field is pristine (single and range mode) — behavior only, no code change.",
|
|
31
|
+
"ds-date-picker paste is now slot-aware — pasted digits fill segments sequentially from the caret instead of flattening the field or clearing unrelated segments; behavior only, no code change.",
|
|
32
|
+
"ds-date-picker range values can no longer be corrupted by clearing one segment (slot-based parsing replaced digit-count slicing; a date is parsed/validated only once all its slots are filled) — behavior only, no code change.",
|
|
33
|
+
"ds-date-picker now exposes its MM/DD/YYYY format hint to screen readers via aria-placeholder after the native placeholder was removed for the overlay rework — a11y only, no code change."
|
|
34
|
+
]
|
|
35
|
+
}
|
package/package.json
CHANGED
package/styles/_breakpoints.scss
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// Breakpoint scale — SINGLE source for both representations:
|
|
2
|
-
// --bp-* runtime custom properties (
|
|
2
|
+
// --bp-* runtime custom properties (JS via getComputedStyle) — emitted only
|
|
3
|
+
// by the emit-vars mixin below, never by a plain @use
|
|
3
4
|
// $bp-* compile-time Sass aliases, usable inside @media
|
|
4
5
|
//
|
|
5
6
|
// Why $bp-* exist: a custom property CANNOT be used in a @media condition
|
|
@@ -10,6 +11,11 @@
|
|
|
10
11
|
// @include bp.up(md) { … } // width >= 768px
|
|
11
12
|
// @include bp.down(sm) { … } // width < 640px
|
|
12
13
|
// @media (width >= #{bp.$bp-lg}) { } // or read an alias directly
|
|
14
|
+
//
|
|
15
|
+
// Plain @use above is side-effect-free (no CSS emitted) — safe from any
|
|
16
|
+
// component SCSS without duplicating output. The runtime mirror is opt-in via
|
|
17
|
+
// the emit-vars mixin (see bottom of file) — call it from exactly one global
|
|
18
|
+
// stylesheet, not per component.
|
|
13
19
|
|
|
14
20
|
@use 'sass:map';
|
|
15
21
|
|
|
@@ -42,9 +48,12 @@ $bp-2xl: map.get($breakpoints, '2xl');
|
|
|
42
48
|
}
|
|
43
49
|
}
|
|
44
50
|
|
|
45
|
-
//
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
51
|
+
// Emits the --bp-* runtime mirror once — call from exactly one global stylesheet
|
|
52
|
+
// (styles/ds does this); plain @use stays CSS-free for component styles.
|
|
53
|
+
@mixin emit-vars {
|
|
54
|
+
:root {
|
|
55
|
+
@each $name, $value in $breakpoints {
|
|
56
|
+
--bp-#{$name}: #{$value};
|
|
57
|
+
}
|
|
49
58
|
}
|
|
50
59
|
}
|
|
@@ -1,14 +1,34 @@
|
|
|
1
1
|
// Layout utility classes — grid helpers from patterns.css §Grid helpers.
|
|
2
2
|
// (Divider lives in _divider.scss — single canonical source.)
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
|
|
6
|
-
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
|
|
4
|
+
@use 'breakpoints' as bp;
|
|
7
5
|
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
.grid-2 {
|
|
7
|
+
display: grid;
|
|
8
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
9
|
+
gap: var(--space-4);
|
|
10
|
+
|
|
11
|
+
@include bp.down(sm) { grid-template-columns: minmax(0, 1fr); }
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.grid-3 {
|
|
15
|
+
display: grid;
|
|
16
|
+
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
17
|
+
gap: var(--space-4);
|
|
18
|
+
|
|
19
|
+
@include bp.down(md) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
20
|
+
|
|
21
|
+
@include bp.down(sm) { grid-template-columns: minmax(0, 1fr); }
|
|
10
22
|
}
|
|
11
23
|
|
|
12
|
-
|
|
13
|
-
|
|
24
|
+
.grid-4 {
|
|
25
|
+
display: grid;
|
|
26
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
27
|
+
gap: var(--space-4);
|
|
28
|
+
|
|
29
|
+
@include bp.down(lg) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
30
|
+
|
|
31
|
+
@include bp.down(md) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
32
|
+
|
|
33
|
+
@include bp.down(sm) { grid-template-columns: minmax(0, 1fr); }
|
|
14
34
|
}
|
package/styles/_page-grid.scss
CHANGED
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
// Snap to columns, not pixels: 8+4 / 6+6 / 9+3 are canonical splits;
|
|
17
17
|
// 7+5 is forbidden. Prose blocks cap at --col-cap-text (720px) regardless
|
|
18
18
|
// of grid width.
|
|
19
|
+
//
|
|
20
|
+
// Mobile tier is the base rule below; the Tablet/Desktop/Desktop-wide tiers
|
|
21
|
+
// (the @include bp.up(...) blocks) nest inside the same selector below.
|
|
19
22
|
|
|
20
23
|
@use 'breakpoints' as bp;
|
|
21
24
|
|
package/styles/_tokens.scss
CHANGED
|
@@ -183,9 +183,9 @@
|
|
|
183
183
|
--opacity-state-active: 0.24; /* deepest pressed layer (e.g. tag close on :active) */
|
|
184
184
|
|
|
185
185
|
/* ============================================================
|
|
186
|
-
Breakpoints —
|
|
187
|
-
the --bp-* custom properties
|
|
188
|
-
|
|
186
|
+
Breakpoints — $bp-* Sass aliases + up()/down() mixins live in
|
|
187
|
+
_breakpoints.scss (pure); the --bp-* custom properties come from
|
|
188
|
+
its emit-vars mixin, included once by styles/ds.
|
|
189
189
|
============================================================ */
|
|
190
190
|
|
|
191
191
|
/* ============================================================
|
package/styles/_typography.scss
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
.t-caption { font: var(--font-weight-regular) var(--font-size-xs) / var(--line-height-base) var(--font-sans); color: var(--text-tertiary); }
|
|
21
21
|
.t-mono { font: var(--font-weight-medium) var(--font-size-mono) / var(--line-height-base) var(--font-mono); }
|
|
22
22
|
.t-mono-inline { font: var(--font-weight-regular) var(--font-size-mono) / 1 var(--font-mono); background: var(--surface-secondary); color: var(--text-primary); padding: 1px var(--space-1); border-radius: var(--radius-sm); }
|
|
23
|
-
.t-mono-block { font: var(--font-weight-regular) var(--font-size-mono) / var(--line-height-loose) var(--font-mono); background: var(--surface-secondary); border: var(--border-width-default) solid var(--border-divider); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); }
|
|
23
|
+
.t-mono-block { font: var(--font-weight-regular) var(--font-size-mono) / var(--line-height-loose) var(--font-mono); background: var(--surface-secondary); border: var(--border-width-default) solid var(--border-divider); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); max-width: 100%; overflow-x: auto; }
|
|
24
24
|
|
|
25
25
|
.sr-only {
|
|
26
26
|
position: absolute !important;
|
package/styles/ds.scss
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
// @use 'themes/base-palette'; @use 'styles/theme-activation'; @use 'styles/tokens';
|
|
14
14
|
// @use 'styles/fonts'; @use 'styles/link'; …
|
|
15
15
|
|
|
16
|
+
@use 'breakpoints' as bp-emit;
|
|
16
17
|
@forward '../themes/base-palette';
|
|
17
18
|
@forward 'theme-activation';
|
|
18
19
|
@forward 'tokens';
|
|
@@ -31,3 +32,4 @@
|
|
|
31
32
|
@forward 'toast-overlay';
|
|
32
33
|
@forward 'overlay-motion';
|
|
33
34
|
@forward 'skeleton-shimmer';
|
|
35
|
+
@include bp-emit.emit-vars;
|