@firestitch/style 18.1.0 → 18.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestitch/style",
3
- "version": "18.1.0",
3
+ "version": "18.1.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/Firestitch/ngx-style"
@@ -1,7 +1,7 @@
1
1
  // =============================================================================
2
2
  // THE SELECTION CONTROLS
3
3
  // =============================================================================
4
- // Checkbox, radio, slide toggle, slider and chip.
4
+ // Checkbox, radio, slide toggle, slider, chip and pseudo-checkbox.
5
5
  //
6
6
  // WHY THIS FILE EXISTS - Ray 2026-09-14. Material themes these five entirely
7
7
  // through its own tokens, and an app on an M2 theme gets the LIGHT theme's
@@ -24,10 +24,16 @@
24
24
  //
25
25
  // ONE FILE FOR THE FAMILY, not one control at a time. These were fixed app-side
26
26
  // one control at a time for years, which is why a project could have a correct
27
- // select and an invisible checkbox in the same dialog. The five share three
27
+ // select and an invisible checkbox in the same dialog. They share three
28
28
  // questions - what colour is the control unselected, selected, and what colour
29
29
  // is its label - so they are answered together or they drift.
30
30
  //
31
+ // The pseudo-checkbox arrived a version later than the rest and proves the
32
+ // point: it looks like the checkbox, so it was assumed to be themed by the
33
+ // checkbox, and a multi-select shipped with an invisible tick while the
34
+ // checkbox beside it was correct. A control belongs in this file because of
35
+ // what it IS, not because of what it resembles - add the next one here too.
36
+ //
31
37
  // GLOBAL, NOT SCOPED. These emit at :root like every other block in this
32
38
  // package. A checkbox inside a dialog, menu or select panel renders in a CDK
33
39
  // overlay attached to <body>, outside any app shell class, so a scoped block
@@ -167,5 +173,35 @@
167
173
  --mat-chip-focus-state-layer-color: var(--fs-color-selected, light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.12)));
168
174
  --mat-chip-selected-hover-state-layer-color: var(--fs-color-selected, light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.12)));
169
175
  --mat-chip-selected-focus-state-layer-color: var(--fs-color-selected, light-dark(rgba(0, 0, 0, 0.08), rgba(255, 255, 255, 0.12)));
176
+
177
+ // =========================================================================
178
+ // PSEUDO-CHECKBOX
179
+ // =========================================================================
180
+ // The tick in a multi-select option, and in a selection list. It LOOKS like
181
+ // the checkbox above and is a different component with its own token
182
+ // family - which is exactly why it was missed when the other five were
183
+ // themed: a <mat-select [multiple]> renders a mat-pseudo-checkbox, never a
184
+ // mat-checkbox, so none of the --mat-checkbox-* values above reach it.
185
+ //
186
+ // Left unset it falls through to Material's M2 light default
187
+ // (rgba(0, 0, 0, 0.54) unselected), which on a dark panel is a near-black
188
+ // outline on a near-black surface - the same invisible-control bug this
189
+ // file was written to end, one control short of the family.
190
+ //
191
+ // FULL is the variant that draws a box; MINIMAL draws only a checkmark with
192
+ // no container. Both are themed: an app choosing either gets a control that
193
+ // reads, and the two never disagree about what "selected" looks like.
194
+ --mat-pseudo-checkbox-full-unselected-icon-color: var(--fs-hairline-strong, light-dark(rgba(0, 0, 0, 0.38), rgba(255, 255, 255, 0.38)));
195
+ --mat-pseudo-checkbox-full-selected-icon-color: var(--fs-color-primary, #1B474E);
196
+ --mat-pseudo-checkbox-full-selected-checkmark-color: var(--fs-surface-background, light-dark(#FFFFFF, #232428));
197
+
198
+ --mat-pseudo-checkbox-full-disabled-unselected-icon-color: var(--fs-hairline, light-dark(#f0f0f0, rgba(255, 255, 255, 0.22)));
199
+ --mat-pseudo-checkbox-full-disabled-selected-icon-color: var(--fs-hairline-strong, light-dark(rgba(0, 0, 0, 0.38), rgba(255, 255, 255, 0.38)));
200
+ --mat-pseudo-checkbox-full-disabled-selected-checkmark-color: var(--fs-surface-background, light-dark(#FFFFFF, #232428));
201
+
202
+ // The minimal variant has no box to fill, so the CHECKMARK carries the
203
+ // brand rather than sitting on it - the inverse of the full variant above.
204
+ --mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--fs-color-primary, #1B474E);
205
+ --mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: var(--fs-color-text-faint, light-dark(rgba(0, 0, 0, 0.38), #6A7779));
170
206
  }
171
207
  }