pixelize-design-library 2.4.2-beta.68 → 2.4.2-beta.69

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
@@ -14,7 +14,7 @@ line below names its issue number.
14
14
  ## [Unreleased] — 2.4.2-beta.x
15
15
 
16
16
  The theme-tokens/dark-mode line. Every entry below has shipped in a `2.4.2-beta.N` prerelease, the latest
17
- being `2.4.2-beta.67` (the `beta` dist-tag); betas carry no per-version headings, and "Unreleased" means not yet in
17
+ being `2.4.2-beta.68` (the `beta` dist-tag); betas carry no per-version headings, and "Unreleased" means not yet in
18
18
  a stable release. The breaking items below land together in the next major.
19
19
 
20
20
  ### Added
@@ -584,9 +584,9 @@ a stable release. The breaking items below land together in the next major.
584
584
  cursor on a selected row the stacked rung, and Arrow/Home/End draw the same neutral 1px inset ring (also on Select All and
585
585
  Add New); the mouse clears it. Labels use `Select`'s neutral ink ladder in light (dark unchanged). Selected-label weight,
586
586
  radius, `activeIndex` sentinels, `insideSelect` and every prop, id and ARIA attribute are unchanged.
587
- - **`Select` popup, light: the selected row gets a fill (screenshots pending).** Hover stays today's faint brand tint
588
- (lavender `#f1edf6`, emerald `#ebefef`). Selected is the next deeper step of the same tint (lavender `#e7e0f0`, emerald
589
- `#dde4e4`, about 1.29:1 on the panel) and selected+hover one more (`#dfd6eb`, `#d2dbdb`), so hover, selected and both
587
+ - **`Select` popup, light: the selected row gets a fill (screenshots pending).** Hover, selected and
588
+ selected+hover are neutral greys, identical on all nine brands (`#eeeeee`, `#e3e3e3`, `#dadada`; selected about 1.28:1 on the
589
+ panel; the first beta.68 build carried each brand's tint instead, strongest on meadow, and beta.69 removes it), so the three
590
590
  read as one family and every adjacent pair is at least 1.10:1 (selected vs stacked 1.08:1). Arrow-key navigation now
591
591
  also draws the neutral 1px inset ring in light (`#7b7b7b`, 3:1 on all four fills), because keyboard-on-selected is only
592
592
  1.08:1 from a plain selected row; the mouse never draws it. Multi checked rows get the same fill (checkbox fill stays
@@ -1988,7 +1988,7 @@ from `optionRowDescriptionInk(theme.colors)` (exported from the package root) ra
1988
1988
  and mode, so a list that fills both the selected row and the hovered row shows two identical fills
1989
1989
  and the user cannot tell which one is chosen. Library option lists paint one fill — the cursor's —
1990
1990
  and mark selection with `optionRowWeight` plus a trailing `Check` in `colors.accentText`. (`Select`'s own popup
1991
- additionally fills the selected row (a deeper step of the hover tint in light, a neutral rung in dark; not exported); a custom list keeps one fill.)
1991
+ additionally fills the selected row (neutral grey rungs in both modes, identical on every brand; not exported); a custom list keeps one fill.)
1992
1992
 
1993
1993
  **Apply:** `bg={optionRowFill(listRowBackgrounds(colors), isActive)}` for an index-driven list, or
1994
1994
  `{...optionRowCursorSx(listRowBackgrounds(colors))}` for rows that take DOM focus; both are exported
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.selectRowBackgrounds = exports.DISTINCT_ROW_STEP = exports.SELECTED_ROW_STEP = exports.listRowBackgrounds = void 0;
4
- const accentText_1 = require("./accentText");
5
4
  const color_1 = require("./color");
6
5
  const outlineRung_1 = require("./outlineRung");
7
6
  const listRowBackgrounds = (colors) => {
@@ -16,17 +15,13 @@ const listRowBackgrounds = (colors) => {
16
15
  exports.listRowBackgrounds = listRowBackgrounds;
17
16
  exports.SELECTED_ROW_STEP = 1.28;
18
17
  exports.DISTINCT_ROW_STEP = 1.1;
19
- // NOTE: light steps deeper in the hover tint's own hue; dark uses neutral greys. Both derive direction from the panel.
18
+ // NOTE: every rung is a neutral step off the panel, so hover and selected carry no brand hue in either mode.
20
19
  const selectRowBackgrounds = (colors) => {
21
20
  const panel = colors.surfaceRaised;
22
- const { active: hoverTint } = (0, exports.listRowBackgrounds)(colors);
23
- const isDark = (0, accentText_1.isDarkCanvas)(panel);
24
- const active = isDark ? (0, outlineRung_1.neutralStep)(panel, outlineRung_1.MIN_PERCEPTIBLE_STEP) : hoverTint;
21
+ const active = (0, outlineRung_1.neutralStep)(panel, outlineRung_1.MIN_PERCEPTIBLE_STEP);
25
22
  const selectedStep = Math.max(exports.SELECTED_ROW_STEP, (0, color_1.contrastRatio)(active, panel) * exports.DISTINCT_ROW_STEP);
26
- const selected = isDark ? (0, outlineRung_1.neutralStep)(panel, selectedStep) : (0, outlineRung_1.tintStep)(hoverTint, panel, selectedStep);
27
- const selectedActive = isDark
28
- ? (0, outlineRung_1.neutralStep)(selected, outlineRung_1.STACKED_STATE_STEP)
29
- : (0, outlineRung_1.tintStep)(selected, selected, outlineRung_1.STACKED_STATE_STEP);
23
+ const selected = (0, outlineRung_1.neutralStep)(panel, selectedStep);
24
+ const selectedActive = (0, outlineRung_1.neutralStep)(selected, outlineRung_1.STACKED_STATE_STEP);
30
25
  return { active, selected, selectedActive, keyboardRing: (0, outlineRung_1.neutralStep)(selectedActive, outlineRung_1.AA_NON_TEXT) };
31
26
  };
32
27
  exports.selectRowBackgrounds = selectRowBackgrounds;
@@ -1,4 +1,3 @@
1
- import { isDarkCanvas } from "./accentText.js";
2
1
  import { contrastRatio } from "./color.js";
3
2
  import { AA_NON_TEXT, MIN_PERCEPTIBLE_STEP, neutralStep, resolveHoverTint, STACKED_STATE_STEP, tintStep, } from "./outlineRung.js";
4
3
  export const listRowBackgrounds = (colors) => {
@@ -12,16 +11,12 @@ export const listRowBackgrounds = (colors) => {
12
11
  };
13
12
  export const SELECTED_ROW_STEP = 1.28;
14
13
  export const DISTINCT_ROW_STEP = 1.1;
15
- // NOTE: light steps deeper in the hover tint's own hue; dark uses neutral greys. Both derive direction from the panel.
14
+ // NOTE: every rung is a neutral step off the panel, so hover and selected carry no brand hue in either mode.
16
15
  export const selectRowBackgrounds = (colors) => {
17
16
  const panel = colors.surfaceRaised;
18
- const { active: hoverTint } = listRowBackgrounds(colors);
19
- const isDark = isDarkCanvas(panel);
20
- const active = isDark ? neutralStep(panel, MIN_PERCEPTIBLE_STEP) : hoverTint;
17
+ const active = neutralStep(panel, MIN_PERCEPTIBLE_STEP);
21
18
  const selectedStep = Math.max(SELECTED_ROW_STEP, contrastRatio(active, panel) * DISTINCT_ROW_STEP);
22
- const selected = isDark ? neutralStep(panel, selectedStep) : tintStep(hoverTint, panel, selectedStep);
23
- const selectedActive = isDark
24
- ? neutralStep(selected, STACKED_STATE_STEP)
25
- : tintStep(selected, selected, STACKED_STATE_STEP);
19
+ const selected = neutralStep(panel, selectedStep);
20
+ const selectedActive = neutralStep(selected, STACKED_STATE_STEP);
26
21
  return { active, selected, selectedActive, keyboardRing: neutralStep(selectedActive, AA_NON_TEXT) };
27
22
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixelize-design-library",
3
- "version": "2.4.2-beta.68",
3
+ "version": "2.4.2-beta.69",
4
4
  "description": "React component library for Pixelize apps: themeable Chakra-based components, design tokens and light/dark brand theming.",
5
5
  "keywords": [
6
6
  "react",