@welcome-back/brand 0.6.0 → 0.6.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
@@ -320,6 +320,10 @@ POS_TOKENS['--wb-accent']; // '#171717'
320
320
 
321
321
  `posTokensCss(selector)` returns the same rule for another selector.
322
322
 
323
+ `POS_WIDE_MIN_WIDTH` (600) is the one layout switch: below it is phone /
324
+ payment terminal, from it on is tablet. It is a number because media queries
325
+ cannot read a CSS variable; pos-ui uses it as the `wide` screen in Tailwind.
326
+
323
327
  ### Category colours
324
328
 
325
329
  `CATEGORY_PALETTE` (`src/categoryPalette.ts`) is the 8-colour set of the POS
package/dist/cjs/index.js CHANGED
@@ -1,10 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.productImageKeptArea = exports.productImageAspectRatio = exports.PRODUCT_IMAGE_FRAMES = exports.categorySlotForIndex = exports.DEFAULT_CATEGORY_SLOT = exports.CATEGORY_PALETTE_TOKENS = exports.CATEGORY_PALETTE = exports.posTokensCss = exports.POS_TOKENS = exports.RunnerLoader = void 0;
3
+ exports.productImageKeptArea = exports.productImageAspectRatio = exports.PRODUCT_IMAGE_FRAMES = exports.categorySlotForIndex = exports.DEFAULT_CATEGORY_SLOT = exports.CATEGORY_PALETTE_TOKENS = exports.CATEGORY_PALETTE = exports.posTokensCss = exports.POS_WIDE_MIN_WIDTH = exports.POS_TOKENS = exports.RunnerLoader = void 0;
4
4
  var RunnerLoader_js_1 = require("./RunnerLoader.js");
5
5
  Object.defineProperty(exports, "RunnerLoader", { enumerable: true, get: function () { return RunnerLoader_js_1.RunnerLoader; } });
6
6
  var posTokens_js_1 = require("./posTokens.js");
7
7
  Object.defineProperty(exports, "POS_TOKENS", { enumerable: true, get: function () { return posTokens_js_1.POS_TOKENS; } });
8
+ Object.defineProperty(exports, "POS_WIDE_MIN_WIDTH", { enumerable: true, get: function () { return posTokens_js_1.POS_WIDE_MIN_WIDTH; } });
8
9
  Object.defineProperty(exports, "posTokensCss", { enumerable: true, get: function () { return posTokens_js_1.posTokensCss; } });
9
10
  var categoryPalette_js_1 = require("./categoryPalette.js");
10
11
  Object.defineProperty(exports, "CATEGORY_PALETTE", { enumerable: true, get: function () { return categoryPalette_js_1.CATEGORY_PALETTE; } });
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.POS_TOKENS = void 0;
3
+ exports.POS_WIDE_MIN_WIDTH = exports.POS_TOKENS = void 0;
4
4
  exports.posTokensCss = posTokensCss;
5
5
  /**
6
6
  * The WelcomeBack POS look: the CSS custom properties pos-ui paints with, and
@@ -54,6 +54,8 @@ exports.POS_TOKENS = {
54
54
  // Placeholder and hint text.
55
55
  "--wb-faint": "#6e6a5e",
56
56
  "--wb-primary-soft": "rgba(23, 23, 23, 0.15)",
57
+ // The keyboard focus ring (3 px), pos-ui `.focus-ring`. Paper C1.
58
+ "--wb-ring-soft": "rgba(23, 23, 23, 0.5)",
57
59
  // The brand tone. Same as the primary: the POS is monochrome.
58
60
  "--wb-brand": "#171717",
59
61
  // 12 px everywhere like the dashboard, 6 px for items inside a control
@@ -80,10 +82,18 @@ exports.POS_TOKENS = {
80
82
  "--wb-text-body": "15px",
81
83
  "--wb-text-small": "13px",
82
84
  "--wb-text-caption": "12px",
85
+ // Keypad digits and product initials (weight 600). Owner, 2026-10-21.
86
+ "--wb-text-key": "26px",
83
87
  "--wb-font": "'Inter'",
84
88
  // Category colours: --wb-cat-1 … --wb-cat-8 (+ -tint, -slot, -ink).
85
89
  ...categoryPalette_js_1.CATEGORY_PALETTE_TOKENS,
86
90
  };
91
+ /**
92
+ * The one layout switch of the POS: below this width is phone / payment
93
+ * terminal (sheets, narrow money), from it on is tablet. Media queries cannot
94
+ * read a CSS variable, so it is a number for the app's breakpoint config.
95
+ */
96
+ exports.POS_WIDE_MIN_WIDTH = 600;
87
97
  /** The tokens as one CSS rule, for apps that load them as a stylesheet. */
88
98
  function posTokensCss(selector = ":root") {
89
99
  const lines = Object.entries(exports.POS_TOKENS).map(([name, value]) => ` ${name}: ${value};`);
@@ -1,6 +1,6 @@
1
1
  export { RunnerLoader } from "./RunnerLoader.js";
2
2
  export type { RunnerLoaderProps } from "./RunnerLoader.js";
3
- export { POS_TOKENS, posTokensCss } from "./posTokens.js";
3
+ export { POS_TOKENS, POS_WIDE_MIN_WIDTH, posTokensCss } from "./posTokens.js";
4
4
  export type { PosToken } from "./posTokens.js";
5
5
  export { CATEGORY_PALETTE, CATEGORY_PALETTE_TOKENS, DEFAULT_CATEGORY_SLOT, categorySlotForIndex, } from "./categoryPalette.js";
6
6
  export type { CategoryColour, CategorySlot } from "./categoryPalette.js";
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  export { RunnerLoader } from "./RunnerLoader.js";
2
- export { POS_TOKENS, posTokensCss } from "./posTokens.js";
2
+ export { POS_TOKENS, POS_WIDE_MIN_WIDTH, posTokensCss } from "./posTokens.js";
3
3
  export { CATEGORY_PALETTE, CATEGORY_PALETTE_TOKENS, DEFAULT_CATEGORY_SLOT, categorySlotForIndex, } from "./categoryPalette.js";
4
4
  export { PRODUCT_IMAGE_FRAMES, productImageAspectRatio, productImageKeptArea, } from "./productImageFrames.js";
@@ -57,6 +57,7 @@ export declare const POS_TOKENS: {
57
57
  readonly "--wb-soldout-ink": "#713f12";
58
58
  readonly "--wb-faint": "#6e6a5e";
59
59
  readonly "--wb-primary-soft": "rgba(23, 23, 23, 0.15)";
60
+ readonly "--wb-ring-soft": "rgba(23, 23, 23, 0.5)";
60
61
  readonly "--wb-brand": "#171717";
61
62
  readonly "--wb-radius": "12px";
62
63
  readonly "--wb-radius-lg": "12px";
@@ -75,8 +76,15 @@ export declare const POS_TOKENS: {
75
76
  readonly "--wb-text-body": "15px";
76
77
  readonly "--wb-text-small": "13px";
77
78
  readonly "--wb-text-caption": "12px";
79
+ readonly "--wb-text-key": "26px";
78
80
  readonly "--wb-font": "'Inter'";
79
81
  };
80
82
  export type PosToken = keyof typeof POS_TOKENS;
83
+ /**
84
+ * The one layout switch of the POS: below this width is phone / payment
85
+ * terminal (sheets, narrow money), from it on is tablet. Media queries cannot
86
+ * read a CSS variable, so it is a number for the app's breakpoint config.
87
+ */
88
+ export declare const POS_WIDE_MIN_WIDTH = 600;
81
89
  /** The tokens as one CSS rule, for apps that load them as a stylesheet. */
82
90
  export declare function posTokensCss(selector?: string): string;
@@ -50,6 +50,8 @@ export const POS_TOKENS = {
50
50
  // Placeholder and hint text.
51
51
  "--wb-faint": "#6e6a5e",
52
52
  "--wb-primary-soft": "rgba(23, 23, 23, 0.15)",
53
+ // The keyboard focus ring (3 px), pos-ui `.focus-ring`. Paper C1.
54
+ "--wb-ring-soft": "rgba(23, 23, 23, 0.5)",
53
55
  // The brand tone. Same as the primary: the POS is monochrome.
54
56
  "--wb-brand": "#171717",
55
57
  // 12 px everywhere like the dashboard, 6 px for items inside a control
@@ -76,10 +78,18 @@ export const POS_TOKENS = {
76
78
  "--wb-text-body": "15px",
77
79
  "--wb-text-small": "13px",
78
80
  "--wb-text-caption": "12px",
81
+ // Keypad digits and product initials (weight 600). Owner, 2026-10-21.
82
+ "--wb-text-key": "26px",
79
83
  "--wb-font": "'Inter'",
80
84
  // Category colours: --wb-cat-1 … --wb-cat-8 (+ -tint, -slot, -ink).
81
85
  ...CATEGORY_PALETTE_TOKENS,
82
86
  };
87
+ /**
88
+ * The one layout switch of the POS: below this width is phone / payment
89
+ * terminal (sheets, narrow money), from it on is tablet. Media queries cannot
90
+ * read a CSS variable, so it is a number for the app's breakpoint config.
91
+ */
92
+ export const POS_WIDE_MIN_WIDTH = 600;
83
93
  /** The tokens as one CSS rule, for apps that load them as a stylesheet. */
84
94
  export function posTokensCss(selector = ":root") {
85
95
  const lines = Object.entries(POS_TOKENS).map(([name, value]) => ` ${name}: ${value};`);
@@ -26,6 +26,7 @@
26
26
  --wb-soldout-ink: #713f12;
27
27
  --wb-faint: #6e6a5e;
28
28
  --wb-primary-soft: rgba(23, 23, 23, 0.15);
29
+ --wb-ring-soft: rgba(23, 23, 23, 0.5);
29
30
  --wb-brand: #171717;
30
31
  --wb-radius: 12px;
31
32
  --wb-radius-lg: 12px;
@@ -44,6 +45,7 @@
44
45
  --wb-text-body: 15px;
45
46
  --wb-text-small: 13px;
46
47
  --wb-text-caption: 12px;
48
+ --wb-text-key: 26px;
47
49
  --wb-font: 'Inter';
48
50
  --wb-cat-1: #a07c2b;
49
51
  --wb-cat-1-tint: #f3ecdd;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@welcome-back/brand",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "description": "WelcomeBack brand assets for React apps: the running-W loader and the POS design tokens.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {