simplestyle-js 4.0.1 → 4.0.3
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 +9 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# simplestyle-js
|
|
2
|
+
|
|
3
|
+
An ultra-tiny, neat, easy-to-use CSS-in-JS library with SSR support,
|
|
4
|
+
tiny bundle size and only *one runtime dependency*.
|
|
5
|
+
|
|
6
|
+
`6.06kB` / `2.55kB gzip` ([courtesy of bundlejs.com](https://bundlejs.com/?q=simplestyle-js%404.0.1))
|
|
7
|
+
|
|
1
8
|
# Simplestyle-js Reference
|
|
2
9
|
|
|
3
10
|
A concise guide to the core `simplestyle-js` APIs, how they fit together, and how to use them in browser and server-rendered apps (including Next.js).
|
|
@@ -5,7 +12,7 @@ A concise guide to the core `simplestyle-js` APIs, how they fit together, and ho
|
|
|
5
12
|
## Table of Contents
|
|
6
13
|
- [Install](#install)
|
|
7
14
|
- [Quick Start](#quick-start)
|
|
8
|
-
- [API Reference
|
|
15
|
+
- [API Reference](#api-reference-from-srcindexts)
|
|
9
16
|
- [Patterns and Tips](#patterns-and-tips)
|
|
10
17
|
- [SSR](#ssr)
|
|
11
18
|
- [SSR steps for most SSR / SSG frameworks (including Next.js)](#ssr-steps-for-most-ssr--ssg-frameworks)
|
|
@@ -64,7 +71,7 @@ const Button = (props) => <button {...props} className={classes.root}>Awesome bu
|
|
|
64
71
|
|
|
65
72
|
Rules support nested selectors via `&`, media queries, and `$className` back-references to other generated classes.
|
|
66
73
|
|
|
67
|
-
## API Reference
|
|
74
|
+
## API Reference
|
|
68
75
|
|
|
69
76
|
- `createStyles(ruleId, rules, options?)`
|
|
70
77
|
- Builds a set of class names and CSS from a rules object. Returns `{ classes, stylesheet, updateSheet }`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "simplestyle-js",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3",
|
|
4
4
|
"description": "An incredibly straightforward and simple CSS-in-JS solution with zero runtime dependencies, and out-of-the-box TypeScript support",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
"coveralls": "^3.1.1",
|
|
44
44
|
"eslint-config-react-yas": "^6.0.11",
|
|
45
45
|
"husky": "^9.1.7",
|
|
46
|
+
"jsdom": "^27.2.0",
|
|
46
47
|
"postcss": "^8.5.6",
|
|
47
48
|
"react": ">=18",
|
|
48
49
|
"react-dom": ">=18",
|
|
@@ -53,8 +54,7 @@
|
|
|
53
54
|
},
|
|
54
55
|
"dependencies": {
|
|
55
56
|
"csstype": "^3.2.3",
|
|
56
|
-
"deepmerge": "^4.3.1"
|
|
57
|
-
"jsdom": "^27.2.0"
|
|
57
|
+
"deepmerge": "^4.3.1"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"react": ">=16.8"
|