Commit Graph
2 Commits
Author SHA1 Message Date
Kamran Ahmed 66d71fd269 Style the playground with Tailwind CSS
- Add tailwindcss v4 via the @tailwindcss/vite plugin
- Convert the layout, sidebar and stage to utility classes
- Keep driver.js-targeting popover styles in src/styles/global.css
  since those elements are rendered by the library, not our markup
2026-06-23 09:48:04 +01:00
Kamran Ahmed 6d3863642b Modernize tooling and add an Astro examples playground
Library:
- Update all dev dependencies to latest (vite 4->8, vitest 0.34->4,
  typescript 5.2->6, @types/node 26, dts-bundle-generator 9, prettier 3.8)
- Replace deprecated @vitest/coverage-c8 with @vitest/coverage-v8
- Drop unused ts-node; add jsdom and a jsdom test environment
- ESM vite config, modern tsconfig (ES2020, Bundler resolution),
  Rollup 4 asset-name handling so the CSS still emits as driver.css

Playground:
- Replace the 1,165-line index.html with playground/, a self-contained
  Astro app that imports the library from source with HMR
- Each scenario is its own file under playground/src/examples grouped into
  Highlight / Popover & Buttons / Tour / API, listed in a sidebar and run
  on its own page; shared demo markup lives in Stage.astro
- All 41 original scenarios ported and type-checked against the library types
- Wire `pnpm dev` to the playground; document local development in the readme
2026-06-23 09:48:04 +01:00