@meteo28093/equinox-ui 0.1.6 → 0.1.7
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 +10 -19
- package/dist/equinox-ui.0.1.6.esm.js +444 -208
- package/dist/equinox-ui.0.1.6.global.js +449 -213
- package/dist/equinox-ui.0.1.7.esm.js +3111 -0
- package/dist/equinox-ui.0.1.7.global.js +3111 -0
- package/dist/equinox-ui.esm.js +444 -208
- package/dist/equinox-ui.global.js +449 -213
- package/equinox.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
# Equinox UI
|
|
2
2
|
|
|
3
3
|
Equinox UI is a web component library for blogs or small web projects.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
## Use with a CDN
|
|
7
|
+
|
|
8
|
+
```html
|
|
9
|
+
<link href="https://unpkg.com/@meteo28093/equinox-ui/equinox.css" rel="stylesheet">
|
|
10
|
+
<script src="https://unpkg.com/@meteo28093/equinox-ui" defer></script>
|
|
11
|
+
```
|
|
12
|
+
|
|
6
13
|
|
|
7
14
|
## Install from npm
|
|
8
15
|
|
|
@@ -54,7 +61,7 @@ document.body.innerHTML = `
|
|
|
54
61
|
`;
|
|
55
62
|
```
|
|
56
63
|
|
|
57
|
-
## Vue
|
|
64
|
+
## Vue
|
|
58
65
|
|
|
59
66
|
Import Equinox UI once in your client bootstrap file, then use the elements directly in Vue templates.
|
|
60
67
|
|
|
@@ -105,22 +112,6 @@ export default function App() {
|
|
|
105
112
|
|
|
106
113
|
For custom DOM events or imperative APIs, use refs and `addEventListener(...)` instead of expecting React's synthetic event system to map custom events automatically.
|
|
107
114
|
|
|
108
|
-
## SSR and client-only loading
|
|
109
|
-
|
|
110
|
-
The ESM bundle touches `window` and `document` during module evaluation, so load it only in browser/client code.
|
|
111
|
-
|
|
112
|
-
- Import it from `main.js`, `main.jsx`, or another browser entrypoint
|
|
113
|
-
- In SSR-capable frameworks, keep the import behind a client boundary such as a client-only component or browser-only bootstrap file
|
|
114
|
-
- Do not import the package from server-rendered modules
|
|
115
|
-
|
|
116
|
-
If smoother SSR support is needed later, the next packaging improvement would be to split browser-only side effects from import-safe exports.
|
|
117
|
-
|
|
118
|
-
## Use with a CDN
|
|
119
|
-
|
|
120
|
-
```html
|
|
121
|
-
<script src="https://unpkg.com/@meteo28093/equinox-ui"></script>
|
|
122
|
-
```
|
|
123
|
-
|
|
124
115
|
This registers components globally.
|
|
125
116
|
|
|
126
117
|
## Components
|