@ids-group-ltd/ids-design-system 0.4.0 → 0.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ids-group-ltd/ids-design-system",
3
- "version": "0.4.0",
3
+ "version": "0.5.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/",
@@ -1,10 +1,9 @@
1
- // Enter/leave motion for CDK-overlay panels that carry the `ds-overlay-pane`
2
- // panelClass (select, dropdown, combobox, date-picker, popover, tooltip).
3
- // Animates the panel's ROOT CHILD, not the pane itself, so CDK's positioning
4
- // transforms on `.cdk-overlay-pane` are left untouched. The leave variant is
5
- // driven by `ds-leaving`, added by disposeWithLeave() (components/overlay-motion.ts).
6
- // prefers-reduced-motion zeroes --duration-fast → instant (animationend still
7
- // fires, so disposeWithLeave still tears down).
1
+ // Enter motion for CDK-overlay panels that carry the `ds-overlay-pane`
2
+ // panelClass (select, autocomplete, multi-select, date-picker, time-picker,
3
+ // color-picker, popover, tooltip). Animates the panel's ROOT CHILD, not the
4
+ // pane itself, so CDK's positioning transforms on `.cdk-overlay-pane` are left
5
+ // untouched. The leave/exit animation was removed (close is instant) — see the
6
+ // TODO(overlay-leave) in components/overlay-motion.ts to reinstate it.
8
7
 
9
8
  .cdk-overlay-pane.ds-overlay-pane > * {
10
9
  animation: ds-overlay-in var(--duration-fast) var(--ease-decelerate);
@@ -8,15 +8,17 @@
8
8
  //
9
9
  // Tier | Range | Cols | Gutter | Margin | Cap
10
10
  // ------------ | -------------- | ---- | ------------- | ------------- | ----------------
11
- // Mobile | <= 640px | 4 | --space-3 (12px) | --space-4 (16px) | fluid
12
- // Tablet | 641-1024px | 8 | --space-4 (16px) | --space-6 (24px) | fluid
13
- // Desktop | 1025-1440px | 12 | --space-5 (20px) | --space-8 (32px) | fluid
11
+ // Mobile | < 640px | 4 | --space-3 (12px) | --space-4 (16px) | fluid
12
+ // Tablet | 640-1023px | 8 | --space-4 (16px) | --space-6 (24px) | fluid
13
+ // Desktop | 1024-1440px | 12 | --space-5 (20px) | --space-8 (32px) | fluid
14
14
  // Desktop wide | >= 1441px | 12 | --space-6 (24px) | --space-10 (40px) | --col-cap-content (1280px)
15
15
  //
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
19
 
20
+ @use 'breakpoints' as bp;
21
+
20
22
  .page-grid {
21
23
  display: grid;
22
24
  gap: var(--page-gutter);
@@ -24,22 +26,22 @@
24
26
  max-width: var(--col-cap-content);
25
27
  margin: 0 auto;
26
28
 
27
- // Mobile (default, <= 640px) — 4 columns
29
+ // Mobile (default, < 640px) — 4 columns
28
30
  --page-gutter: var(--page-gutter-mobile);
29
31
  --page-margin: var(--page-margin-mobile);
30
32
 
31
33
  grid-template-columns: repeat(4, minmax(0, 1fr));
32
34
 
33
- // Tablet (641-1024px) — 8 columns
34
- @media (width >= 641px) {
35
+ // Tablet (640-1023px) — 8 columns
36
+ @include bp.up(sm) {
35
37
  --page-gutter: var(--page-gutter-tablet);
36
38
  --page-margin: var(--page-margin-tablet);
37
39
 
38
40
  grid-template-columns: repeat(8, minmax(0, 1fr));
39
41
  }
40
42
 
41
- // Desktop (1025-1440px) — 12 columns, fluid width
42
- @media (width >= 1025px) {
43
+ // Desktop (1024-1440px) — 12 columns, fluid width
44
+ @include bp.up(lg) {
43
45
  --page-gutter: var(--page-gutter-desktop);
44
46
  --page-margin: var(--page-margin-desktop);
45
47
 
@@ -47,7 +49,7 @@
47
49
  }
48
50
 
49
51
  // Desktop wide (>= 1441px) — 12 columns, container capped at --col-cap-content
50
- @media (width >= 1441px) {
52
+ @include bp.up(xl) {
51
53
  --page-gutter: var(--page-gutter-wide);
52
54
  --page-margin: var(--page-margin-wide);
53
55
  }
@@ -0,0 +1,28 @@
1
+ // Rounded press feedback — Recipe C (approved by Stas 2026-07-02).
2
+ //
3
+ // Complements the global tap-highlight reset (_reset.scss). The native mobile
4
+ // tap overlay was a rectangle that ignored border-radius; we removed it, and
5
+ // this gives each interactive control a press state that INHERITS its shape:
6
+ // `filter` + `transform` apply to the rendered element, so any border-radius /
7
+ // clip is followed automatically, and neither conflicts with the box-shadow
8
+ // focus rings (different properties).
9
+ //
10
+ // Usage — @include INSIDE the clickable element's own selector, so `&:active`
11
+ // resolves to that element:
12
+ // @use '../../styles/press' as press; // relative path from the component
13
+ // .check { …; @include press.feedback; }
14
+ //
15
+ // Tunable per component (read-with-fallback, like the --ds-* layer):
16
+ // --ds-press-brightness (default .9) darken amount on press
17
+ // --ds-press-scale (default .97) micro press-scale
18
+ //
19
+ // Intentionally does NOT declare `transition` — that would clobber the host
20
+ // element's existing transition. Press is immediate (crisp on tap); components
21
+ // wanting an eased release add `filter`/`transform` to their own transition.
22
+
23
+ @mixin feedback {
24
+ &:active:not(:disabled):not([disabled]):not(.is-disabled) {
25
+ filter: brightness(var(--ds-press-brightness, 0.9));
26
+ transform: scale(var(--ds-press-scale, 0.97));
27
+ }
28
+ }
@@ -13,6 +13,15 @@ html, body {
13
13
  background: var(--surface-canvas);
14
14
  -webkit-font-smoothing: antialiased;
15
15
  text-rendering: optimizelegibility;
16
+
17
+ /* Suppress the native mobile tap-highlight. Android Chrome paints a flat
18
+ rectangular overlay on tap whose geometry is browser-controlled (ignores
19
+ border-radius, NOT clipped by overflow), so on pill/rounded controls it
20
+ pokes square corners out past the shape. We can only set its colour, not
21
+ reshape it — so we remove it and let each control's own rounded
22
+ :active/:focus-visible state provide press feedback. Inherited → covers all
23
+ descendants. */
24
+ -webkit-tap-highlight-color: transparent;
16
25
  }
17
26
  button, input, select, textarea { font-family: inherit; }
18
27
 
@@ -81,6 +81,10 @@
81
81
  --border-width-default: 1px; /* every border, divider, field outline */
82
82
  --border-width-strong: 2px; /* radio dot, slider thumb, tabs underline, focus ring inner band, dropzone dash */
83
83
 
84
+ /* Focus outline-offset — gap between an element edge and its focus ring;
85
+ unifies the 2px offset repeated across stepper/table/dropzone/color-picker. */
86
+ --focus-ring-offset: 2px;
87
+
84
88
  /* ============================================================
85
89
  Elevation
86
90
  Channel-split substrate so a re-skin can re-tint shadows.
@@ -306,6 +310,10 @@
306
310
  --check-indet-h: 2px;
307
311
  --radio-dot-size: 10px;
308
312
  --radio-bw-checked: var(--border-width-strong);
313
+ --check-glyph-sm: 14px; /* .size-sm / .size-lg control box — fixed, not density-scaled */
314
+ --check-glyph-lg: 24px;
315
+ --radio-glyph-sm: 14px;
316
+ --radio-glyph-lg: 24px;
309
317
 
310
318
  /* Switch */
311
319
  --switch-track-w: 36px;
@@ -371,8 +379,12 @@
371
379
  --modal-w-sm: 480px;
372
380
  --modal-w-md: 640px;
373
381
  --modal-w-lg: 800px;
382
+ --modal-w-xl: 1024px;
383
+ --modal-w-fullscreen: calc(100vw - var(--space-6));
384
+ --modal-h-fullscreen: calc(100vh - var(--space-6));
374
385
 
375
386
  /* Drawer */
387
+ --drawer-w-sm: 320px;
376
388
  --drawer-w-md: 480px;
377
389
  --drawer-w-lg: 640px;
378
390
 
@@ -394,7 +406,6 @@
394
406
 
395
407
  /* Search */
396
408
  --search-h: var(--hit-md);
397
- --search-maxw: 320px;
398
409
 
399
410
  /* OTP / PIN input — one box per digit. */
400
411
  --otp-cell-w: var(--space-12); /* 48px */
@@ -424,6 +435,7 @@
424
435
  --sidenav-logo-size: var(--hit-sm); /* 28px — square brand mark */
425
436
  --sidenav-collapsed-item: var(--hit-cozy); /* 40px — collapsed nav-item hit area */
426
437
  --sidenav-section-pad-b: var(--space-1-5); /* nav-section bottom padding */
438
+ --sidenav-item-rail-width: 3px; /* active-item left rail */
427
439
 
428
440
  /* Form section grid */
429
441
  --form-section-label-w: 280px; /* labels column width */
@@ -431,6 +443,10 @@
431
443
  /* Page header */
432
444
  --page-header-sub-mt: var(--space-1); /* subtitle top margin */
433
445
 
446
+ /* Bottom sheet */
447
+ --bottom-sheet-handle-w: 36px; /* drag-handle bar */
448
+ --bottom-sheet-handle-h: 4px;
449
+
434
450
  /* Field internals */
435
451
  --field-textarea-rows-min: 60px; /* min-h for inline textarea inside the field wrapper */
436
452
  --field-floating-pad-t: 18px; /* top padding when --floating, leaves room for label */
@@ -440,6 +456,7 @@
440
456
  /* Button group */
441
457
  --btn-group-overlap: calc(var(--border-width-default) * -1); /* -1px — collapses adjacent borders */
442
458
  --btn-link-uloff: 3px; /* underline-offset on link buttons */
459
+ --breadcrumbs-link-uloff: 2px; /* underline-offset on breadcrumb links */
443
460
 
444
461
  /* Card */
445
462
  --card-hover-lift: 1px; /* translateY on .card--hover */
@@ -448,6 +465,7 @@
448
465
  /* Sort icon (table headers) */
449
466
  --sort-ic-size: var(--icon-xs); /* 12px */
450
467
  --sort-ic-gap: var(--space-1-5); /* 6px */
468
+ --sort-ic-opacity-idle: 0.4; /* unsorted column icon */
451
469
 
452
470
  /* Tag close glyph (when literal svg sits inside .tag .x) */
453
471
  --tag-close-glyph: var(--icon-xs); /* 12px */
@@ -494,9 +512,9 @@
494
512
  --cmdk-list-maxh: var(--popover-maxh); /* alias — keeps cmdk + popover synced */
495
513
 
496
514
  /* Datepicker */
497
- --datepicker-w: 280px;
498
- --datepicker-cell-gap: var(--space-0-5); /* 2px — grid gap between day cells */
499
- --datepicker-nav-size: var(--hit-xs); /* 24px — month-step buttons */
515
+ --date-picker-w: 280px;
516
+ --date-picker-cell-gap: var(--space-0-5); /* 2px — grid gap between day cells */
517
+ --date-picker-nav-size: var(--hit-xs); /* 24px — month-step buttons */
500
518
 
501
519
  /* Modal close button */
502
520
  --modal-close-size: var(--hit-xs); /* 24px */