wc-mixin/src
Buddy 76d78e1925 Accept a CSSStyleSheet as css; move example CSS and templates into files
css is now string | CSSStyleSheet. A sheet is adopted as-is: into its own
shadow root, an enclosing shadow root, or document.adoptedStyleSheets for
light DOM at the document level. Strings behave as before.

The examples import their styles with `with { type: 'css' }` and their
static templates with `with { type: 'text' }`. Safari doesn't support those
yet, so vite.config.ts rewrites them into modules Vite builds: a constructed
CSSStyleSheet, or the file's text. npm run examples now just runs vite,
with root set in the config.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 11:44:27 -08:00
..
events.ts Add typed events map: true, listener options, listen<E>(), or custom<T>() 2026-11-10 09:59:09 -08:00
index.ts Add typed events map: true, listener options, listen<E>(), or custom<T>() 2026-11-10 09:59:09 -08:00
props.ts Add typed WebComponent mixin factory 2026-11-06 00:08:56 -08:00
types.ts Accept a CSSStyleSheet as css; move example CSS and templates into files 2026-11-10 11:44:27 -08:00
web-component.ts Accept a CSSStyleSheet as css; move example CSS and templates into files 2026-11-10 11:44:27 -08:00