ng-hub-ui-forms 22.1.1 → 22.1.2

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/README.md CHANGED
@@ -84,7 +84,8 @@ The required `email` field reveals its error automatically on submit — no manu
84
84
  `ng-hub-ui-forms` unifies a set of accessible form fields behind one contract:
85
85
  bind them with **Reactive Forms** and the matching validation errors appear
86
86
  **automatically** at the control, group and form level. Fields are standalone,
87
- `OnPush` and signal-native; the select is a maintained fork of ng-select; the
87
+ `OnPush` and signal-native; the select is a maintained fork of
88
+ [ng-select](https://github.com/ng-select/ng-select) (see [Credits](#-credits)); the
88
89
  datepicker is built from scratch on native `Date` and the Angular CDK overlay.
89
90
  Everything is themed through canonical `--hub-*` CSS variables with runtime dark
90
91
  mode — no Bootstrap dependency.
@@ -284,6 +285,14 @@ See [CHANGELOG.md](./CHANGELOG.md).
284
285
 
285
286
  ---
286
287
 
288
+ ## 🙏 Credits
289
+
290
+ `hub-select` is a maintained **fork of [ng-select](https://github.com/ng-select/ng-select)** by the ng-select contributors. The upstream `src/ng-select` sources are vendored in place and re-themed with `--hub-*` tokens — pinned to upstream **`v23.0.1`** (tracked in [`src/lib/select/UPSTREAM`](./src/lib/select/UPSTREAM); deviations documented in [`src/lib/select/PATCHES.md`](./src/lib/select/PATCHES.md)). ng-select is distributed under the [MIT License](https://github.com/ng-select/ng-select/blob/master/LICENSE.md), and the original copyright notices are retained in the vendored files.
291
+
292
+ The datepicker, inputs and validation layer are original to `ng-hub-ui-forms`.
293
+
294
+ ---
295
+
287
296
  ## 📄 License
288
297
 
289
298
  MIT © [Carlos Morcillo](https://www.carlosmorcillo.com)
Binary file
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "ng-hub-ui-forms",
3
- "version": "22.1.1",
3
+ "version": "22.1.2",
4
4
  "license": "MIT",
5
5
  "description": "Accessible, signal-based form fields for Angular (input, textarea, slider, select, datepicker) with automatic error display for controls, FormGroups and FormArrays. Reactive Forms today, Signal Forms ready. Part of the ng-hub-ui family.",
6
6
  "author": "Carlos Morcillo <carlos.morcillo@me.com> (https://www.carlosmorcillo.com)",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "https://github.com/carlos-morcillo/ng-hub-ui-forms.git"
9
+ "url": "git+https://github.com/carlos-morcillo/ng-hub-ui-forms.git"
10
10
  },
11
11
  "homepage": "https://hubui.dev/",
12
12
  "keywords": [
@@ -140,7 +140,9 @@
140
140
  --hub-select-option-padding-y: var(--hub-ref-space-2, 0.5rem);
141
141
  --hub-select-option-marked-bg: var(--hub-sys-surface-elevated, #f8f9fa);
142
142
  --hub-select-option-selected-bg: var(--hub-sys-color-primary, #0d6efd);
143
- --hub-select-option-selected-color: var(--hub-ref-color-white, #fff);
143
+ // Text on the selected option sits on the primary accent — read the derived
144
+ // contrast token so a light/custom primary keeps the label legible.
145
+ --hub-select-option-selected-color: var(--hub-sys-color-primary-on, var(--hub-ref-color-white, #fff));
144
146
  --hub-select-optgroup-color: var(--hub-sys-text-muted, #6c757d);
145
147
  --hub-select-value-bg: var(--hub-sys-surface-elevated, #f8f9fa);
146
148
  --hub-select-value-color: var(--hub-sys-text-primary, #212529);
@@ -168,10 +170,12 @@
168
170
  --hub-daterangepicker-cell-border-radius: var(--hub-ref-radius-sm, 0.25rem);
169
171
  --hub-daterangepicker-cell-hover-bg: var(--hub-sys-surface-elevated, #f8f9fa);
170
172
  --hub-daterangepicker-active-bg: var(--hub-sys-color-primary, #0d6efd);
171
- --hub-daterangepicker-active-color: var(--hub-ref-color-white, #fff);
172
- // Light primary tint (theme-aware): `--hub-sys-color-primary-subtle` is a *dark* navy in
173
- // this design system, so derive a soft tint from the primary instead.
174
- --hub-daterangepicker-in-range-bg: color-mix(in srgb, var(--hub-sys-color-primary, #0d6efd) 14%, transparent);
173
+ // Text on the active day sits on the primary accent — derived contrast token.
174
+ --hub-daterangepicker-active-color: var(--hub-sys-color-primary-on, var(--hub-ref-color-white, #fff));
175
+ // Soft primary tint for the in-range band. Mixed in OKLCH (perceptually even)
176
+ // rather than sRGB; kept independent of `-subtle` (which mixes over the page
177
+ // surface, not transparent) so the band reads as a translucent overlay.
178
+ --hub-daterangepicker-in-range-bg: color-mix(in oklch, var(--hub-sys-color-primary, #0d6efd) 14%, transparent);
175
179
  --hub-daterangepicker-off-color: var(--hub-sys-text-muted, #6c757d);
176
180
  --hub-daterangepicker-nav-arrow-color: var(--hub-sys-text-muted, #6c757d);
177
181
  --hub-daterangepicker-nav-arrow-hover-color: var(--hub-sys-text-primary, #212529);
@@ -184,6 +188,7 @@
184
188
  --hub-select-button-padding-y: var(--hub-ref-space-2, 0.5rem);
185
189
  --hub-select-button-gap: var(--hub-ref-space-2, 0.5rem);
186
190
  --hub-select-button-selected-bg: var(--hub-sys-color-primary, #0d6efd);
187
- --hub-select-button-selected-color: var(--hub-ref-color-white, #fff);
191
+ // Text on the selected button sits on the primary accent — derived contrast token.
192
+ --hub-select-button-selected-color: var(--hub-sys-color-primary-on, var(--hub-ref-color-white, #fff));
188
193
  --hub-select-button-selected-border-color: var(--hub-sys-color-primary, #0d6efd);
189
194
  }
Binary file