@a4ui/core 0.6.0 → 0.8.0
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 +16 -0
- package/dist/elements.css +2903 -0
- package/dist/elements.d.ts +2 -0
- package/dist/elements.iife.js +6 -0
- package/dist/elements.js +6486 -0
- package/dist/index.d.ts +7 -1
- package/dist/index.js +2047 -1558
- package/dist/ui/CalendarHeatmap.d.ts +26 -0
- package/dist/ui/Clock.d.ts +28 -0
- package/dist/ui/ColorPicker.d.ts +22 -0
- package/dist/ui/Comment.d.ts +42 -0
- package/dist/ui/Countdown.d.ts +2 -1
- package/dist/ui/Portal.d.ts +22 -0
- package/dist/ui/Sortable.d.ts +33 -0
- package/package.json +9 -3
- package/preset.js +3 -1
package/README.md
CHANGED
|
@@ -88,6 +88,22 @@ recolors live, then copy the exported CSS or JSON and apply it as a
|
|
|
88
88
|
`ThemeDefinition`. This is separate from the light/dark `setTheme`/`toggleTheme`
|
|
89
89
|
mode switch — a theme recolors underneath either mode.
|
|
90
90
|
|
|
91
|
+
## Framework integration
|
|
92
|
+
|
|
93
|
+
A4ui is a **SolidJS** library. It works natively in **Vite + Solid**,
|
|
94
|
+
**SolidStart** (SSR), and **Astro** (as Solid islands). For **React / Next.js**,
|
|
95
|
+
**Vue**, or plain HTML, ship the self-contained **Web Components** bundle
|
|
96
|
+
(`@a4ui/core/elements` — Solid is compiled in, no Solid toolchain needed):
|
|
97
|
+
|
|
98
|
+
```html
|
|
99
|
+
<link rel="stylesheet" href="…/@a4ui/core/dist/elements.css" />
|
|
100
|
+
<script type="module" src="…/@a4ui/core/dist/elements.js"></script>
|
|
101
|
+
<a4-button variant="primary" label="Save"></a4-button>
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Full setup for each stack — including the honest React/Next caveat and the SSR
|
|
105
|
+
notes — is in **[INTEGRATIONS.md](./INTEGRATIONS.md)**.
|
|
106
|
+
|
|
91
107
|
## Server rendering
|
|
92
108
|
|
|
93
109
|
A4ui is **client-first** — the components render in the browser (the glass,
|