@coolms/ui-react 0.1.0-alpha.1 → 0.1.0-alpha.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/CHANGELOG.md CHANGED
@@ -2,9 +2,24 @@
2
2
 
3
3
  All notable changes to `@coolms/ui-react` are listed here. Versions follow [semantic versioning](https://semver.org/).
4
4
 
5
+ ## 0.1.0-alpha.2 (2026-10-28)
6
+
7
+ The token file is CSS a browser keeps whole.
8
+
9
+ - Fixed: `tokens.css` was a copy of `coolms/design-tokens`' SCSS file. Its first line, a `//` comment, is a comment in
10
+ SCSS but not in CSS, so a browser dropped the whole light `:root` block behind it: in the light theme every
11
+ `--cms-*` token was undefined and the components lost their colours, spacing and radii. It is now a copy of
12
+ `dist/coolms-tokens.css`, the same blocks with a CSS comment header, from `coolms/design-tokens` v0.5.0, pinned in
13
+ `design-tokens.lock.json` with the tag's commit.
14
+ - Added: `tools/check-css.mjs`, copied from v0.5.0 and pinned the same way, runs on the token file in
15
+ `tokens:check`; `tools/check-css-teeth.mjs` makes sure it still fails a `//` header and a missing file.
16
+ - Changed: the README's install line names no version (it named 0.1.0-alpha.1), and says to use 0.1.0-alpha.2 or
17
+ later.
18
+
5
19
  ## 0.1.0-alpha.1 (2026-10-23)
6
20
 
7
- The first pre-release.
21
+ The first pre-release. Published from `develop` at 91f0db3, which has no tag; the package already carries
22
+ `design-tokens.lock.json` (#1).
8
23
 
9
24
  - The 15 components of the CoolMS UI contract, each in every state the contract names. `elevation-required` is not
10
25
  offered.
package/README.md CHANGED
@@ -13,9 +13,13 @@ server helpers are how a React client reads it.
13
13
  ## Install
14
14
 
15
15
  ```bash
16
- npm install @coolms/ui-react@0.1.0-alpha.1
16
+ npm install @coolms/ui-react@VERSION
17
17
  ```
18
18
 
19
+ Replace `VERSION` with the exact version you test with, and pin it; the versions are listed on npm. Use
20
+ `0.1.0-alpha.2` or later: in `0.1.0-alpha.1` the token file's first line is not CSS, so a browser drops its light
21
+ theme and the components lose their colours, spacing and radii.
22
+
19
23
  React 19.2 or later is a peer dependency.
20
24
 
21
25
  ```tsx
@@ -77,8 +81,9 @@ npm run verify
77
81
 
78
82
  runs, in order:
79
83
 
80
- - `tokens:check`: the token file, the contract and its checker are the copies `design-tokens.lock.json` pins, and
81
- every token `kit.css` reads is defined.
84
+ - `tokens:check`: the token file, the contract and the checkers are the copies `design-tokens.lock.json` pins; the
85
+ token file is CSS a browser keeps whole, and the check still fails a `//` header; and every token `kit.css` reads is
86
+ defined.
82
87
  - `check`: `kit.contract.json` covers the contract, and the components and files it names exist.
83
88
  - `typecheck` and `test`.
84
89
  - `build`, then `check:built`: the published module loads, exports every declared component, and every target the
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "repository": "coolms/design-tokens",
3
- "tag": "v0.4.0",
4
- "commit": "c73ce8d220c5b9c821e20646110d6d29a0a077c9",
3
+ "tag": "v0.5.0",
4
+ "commit": "9e18a14ca2b5549ab217beab007a9f480dd3b12c",
5
5
  "files": {
6
- "dist/coolms-tokens.scss": {
6
+ "dist/coolms-tokens.css": {
7
7
  "to": "src/tokens/coolms-tokens.css",
8
- "sha256": "d47285d2faea3bb0bd88d8a2c447b4d045535e3f3ba0dcda5d23e7aeb2c47f8b"
8
+ "sha256": "bb89703ab55784b538c18a3dd82f95769980b2c83fa0733a81f628ae3d6ad1c3"
9
9
  },
10
10
  "contract/components.json": {
11
11
  "to": "contract/components.json",
@@ -18,6 +18,10 @@
18
18
  "tools/check-kit.mjs": {
19
19
  "to": "tools/check-kit.mjs",
20
20
  "sha256": "f8407f6accd55eb666eb6bbfe629a10f959c3bf6c62fe8ef2f1fe06a48471a8c"
21
+ },
22
+ "tools/check-css.mjs": {
23
+ "to": "tools/check-css.mjs",
24
+ "sha256": "231ca006b6e949f9882c98186527e2a974efb5acd60bfb8d05a37d82eae6a678"
21
25
  }
22
26
  }
23
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coolms/ui-react",
3
- "version": "0.1.0-alpha.1",
3
+ "version": "0.1.0-alpha.2",
4
4
  "description": "The CoolMS UI kit for React: the components of the CoolMS UI contract, styled by the CoolMS design tokens",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -36,7 +36,7 @@
36
36
  "typecheck": "tsc --noEmit -p tsconfig.json",
37
37
  "test": "vitest run",
38
38
  "check": "node tools/check-kit.mjs kit.contract.json && node tools/check-kit-sources.mjs kit.contract.json",
39
- "tokens:check": "node tools/tokens-lock.mjs && node tools/check-css-tokens.mjs",
39
+ "tokens:check": "node tools/tokens-lock.mjs && node tools/check-css.mjs src/tokens/coolms-tokens.css && node tools/check-css-teeth.mjs && node tools/check-css-tokens.mjs",
40
40
  "demo": "vite --config demo/vite.config.ts",
41
41
  "demo:build": "vite build --config demo/vite.config.ts",
42
42
  "verify": "npm run tokens:check && npm run check && npm run typecheck && npm test && npm run build && npm run check:built && npm run demo:build",
@@ -1,4 +1,4 @@
1
- // GENERATED by tools/design-tokens.mjs from tokens/coolms.tokens.json (coolms/design-tokens) -- do not edit; a consumer pins this file with design-tokens.lock.json.
1
+ /* GENERATED by tools/design-tokens.mjs from tokens/coolms.tokens.json (coolms/design-tokens) -- do not edit; a consumer pins this file with design-tokens.lock.json. */
2
2
  :root {
3
3
  --cms-accent: #F5A623;
4
4
  --cms-accent-hover: #E09200;