@synopackageland/ui 0.4.0 → 0.4.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
@@ -402,6 +402,7 @@ pnpm dev # rebuild dist when library source changes
402
402
  pnpm check # lint, typecheck, tests, and production build
403
403
  pnpm story:build # build the component workbench
404
404
  pnpm check:host # after pnpm build: DSM host simulation screenshots (Chrome)
405
+ pnpm check:switch # after pnpm build: Switch knob geometry and click toggling (Chrome)
405
406
  ```
406
407
 
407
408
  `pnpm check:host` serves `tests/dsm-host` and screenshots each overlay scene in
@@ -411,6 +412,11 @@ stylesheet written for these tests that reproduces DSM's known element rules.
411
412
  The images must be identical, and must match `theme.css` on a plain page. They
412
413
  are left in `.dsm-host-shots/`.
413
414
 
415
+ `pnpm check:switch` renders the Switch off, on and disabled on the standalone theme and the
416
+ embedded theme (also under `host-simulation.css`), checks in headless Chrome that the knob stays
417
+ inside and centred in the track and that a real mouse click toggles an enabled switch. Screenshots
418
+ are left in `.switch-shots/`.
419
+
414
420
  In the workbench, open `DSM 7 / App Interior` and `DSM 7 / Advanced Components`
415
421
  for reference compositions. See [SPEC.md](./SPEC.md) for architecture and
416
422
  contribution rules, and [src/index.ts](./src/index.ts) for public exports.