ng-hub-ui-ds 22.7.13 → 22.7.14

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 CHANGED
@@ -5,6 +5,12 @@ All notable changes to `ng-hub-ui-ds` are documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [22.7.14] - 2026-08-24
9
+
10
+ ### Added
11
+
12
+ - **The eleven `hub-loading` variables documented**, following the initial `ng-hub-ui-loading@22.0.0`. One of them, `--hub-loading-accent`, joins the accent-slot annex: all five indicator variants read that single slot, so the library derives no `subtle`/`emphasis`/`on` family the way a component with surfaces and borders does. Three carry a literal default on purpose — `--hub-loading-size`, `--hub-loading-speed` and `--hub-loading-backdrop-blur` — because an indicator's diameter is not a spacing step, its loop period is not a transition duration, and a scrim's blur is not a shadow; borrowing a `sys` token that means something else would tie them to a scale that would move for unrelated reasons. The scrim itself does follow the theme, through `--hub-loading-backdrop-bg` mixing `--hub-sys-surface-page` with transparency, which is what lets one declaration read as a white veil on a light theme and a dark one on a dark theme.
13
+
8
14
  ## [22.7.13] - 2026-08-23
9
15
 
10
16
  ### Added
@@ -617,6 +617,7 @@ Every accent slot discovered in the libraries (declared or consumed), one row pe
617
617
  | `--hub-list-accent-subtle` | subtle |
618
618
  | `--hub-list-accent-emphasis` | emphasis |
619
619
  | `--hub-list-accent-on` | on |
620
+ | `--hub-loading-accent` | base (single indicator slot; the variants share one colour, so no role family is derived) |
620
621
  | `--hub-modal-accent` | base |
621
622
  | `--hub-modal-accent-subtle` | subtle |
622
623
  | `--hub-modal-accent-emphasis` | emphasis |
@@ -2452,6 +2453,24 @@ The signature field reuses the `.hub-field__*` shell from `ng-hub-ui-forms`, so
2452
2453
  | `--hub-signature-font-size` | `var(--hub-input-font-size, 1rem)` | Field font size | `IN_USE` | `signature/src/lib/components/signature/signature.component.scss:11` |
2453
2454
  | `--hub-signature-actions-gap` | `var(--hub-ref-space-2, 0.5rem)` | Gap between the clear / undo / redo actions | `IN_USE` | `signature/src/lib/components/signature/signature.component.scss:12` |
2454
2455
 
2456
+ ### `loading`
2457
+
2458
+ One accent drives all five indicator variants, so recolouring the spinner recolours the dots, the bars, the pulse and the ring with it — the `color` input feeds this single slot through `resolveHubAccent()`, exactly as the button's accent does. Three tokens have no honest counterpart in the design system and therefore carry a literal rather than borrowing a `sys` token that means something else: an indicator's diameter is not a spacing step, its loop period is not a transition duration, and a scrim's blur is not a shadow. The backdrop instead follows `--hub-sys-surface-page`, which is what lets one declaration read as a white veil on a light theme and a dark one on a dark theme without a second token to keep in sync. Theme the whole indicator in one call with the `hub-loading-theme()` Sass mixin.
2459
+
2460
+ | Token | Initial value | Usage | Status | Source |
2461
+ | ----- | ------------- | ----- | ------ | ------ |
2462
+ | `--hub-loading-accent` | `var(--hub-sys-color-primary, #0d6efd)` | Indicator colour, shared by all five variants | `IN_USE` | `loading/src/lib/components/loading/loading.component.scss:7` |
2463
+ | `--hub-loading-size` | `2.5rem` | Indicator diameter; the `sm` / `lg` modifiers re-declare it | `IN_USE` | `loading/src/lib/components/loading/loading.component.scss:8` |
2464
+ | `--hub-loading-thickness` | `calc(var(--hub-ref-border-width, 1px) * 3)` | Stroke weight of the `spinner` and `ring` variants | `IN_USE` | `loading/src/lib/components/loading/loading.component.scss:9` |
2465
+ | `--hub-loading-speed` | `0.9s` | Period of one animation loop, for every variant | `IN_USE` | `loading/src/lib/components/loading/loading.component.scss:10` |
2466
+ | `--hub-loading-gap` | `var(--hub-sys-gap-2, var(--hub-ref-space-2, 0.5rem))` | Space between indicator, message and projected content | `IN_USE` | `loading/src/lib/components/loading/loading.component.scss:11` |
2467
+ | `--hub-loading-text-color` | `var(--hub-sys-text-primary, var(--hub-ref-color-gray-900, #212529))` | Message colour | `IN_USE` | `loading/src/lib/components/loading/loading.component.scss:12` |
2468
+ | `--hub-loading-font-size` | `var(--hub-ref-font-size-sm, 0.875rem)` | Message font size; the `sm` / `lg` modifiers re-declare it | `IN_USE` | `loading/src/lib/components/loading/loading.component.scss:13` |
2469
+ | `--hub-loading-backdrop-bg` | `color-mix(in srgb, var(--hub-sys-surface-page, #ffffff) 72%, transparent)` | Scrim painted behind the `overlay` and `fullscreen` modes | `IN_USE` | `loading/src/lib/components/loading/loading.component.scss:16` |
2470
+ | `--hub-loading-backdrop-blur` | `2px` | Blur radius applied to whatever the scrim covers | `IN_USE` | `loading/src/lib/components/loading/loading.component.scss:17` |
2471
+ | `--hub-loading-z-index` | `var(--hub-sys-zindex-modal, 1055)` | Stacking order of the `fullscreen` overlay | `IN_USE` | `loading/src/lib/components/loading/loading.component.scss:18` |
2472
+ | `--hub-loading-image-size` | `var(--hub-loading-size)` | Size of the branding image supplied through `image` | `IN_USE` | `loading/src/lib/components/loading/loading.component.scss:19` |
2473
+
2455
2474
  ## Appendix
2456
2475
 
2457
2476
  ### Glossary
@@ -2549,6 +2568,7 @@ Unique custom properties **declared** in each library's source (`.scss` + inline
2549
2568
  | `ds` | 230 |
2550
2569
  | `forms` | 157 |
2551
2570
  | `icons` | 6 |
2571
+ | `loading` | 11 |
2552
2572
  | `milestones` | 15 |
2553
2573
  | `modal` | 89 |
2554
2574
  | `nav` | 110 |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ng-hub-ui-ds",
3
- "version": "22.7.13",
3
+ "version": "22.7.14",
4
4
  "license": "MIT",
5
5
  "scripts": {
6
6
  "build:tokens": "sass styles/tokens/hub-tokens.scss styles/tokens/hub-tokens.css --style=expanded --no-source-map",