@slimr/css 2.1.18 → 2.1.19
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 +4 -2
- package/package.json +2 -2
- package/tsconfig.json +1 -1
package/README.md
CHANGED
|
@@ -42,7 +42,8 @@ Injects css to the page head
|
|
|
42
42
|
- Has local cache to recall prior adds, to reduce duplicates and dom changes
|
|
43
43
|
|
|
44
44
|
```typescript
|
|
45
|
-
import {
|
|
45
|
+
import {addCSs} from '@slimr/css'
|
|
46
|
+
|
|
46
47
|
addCss(`.foo { color: green; }`) // queues css for injection
|
|
47
48
|
addCss(`.foo { color: green; }`) // ignored bc duplicate
|
|
48
49
|
addCss(`.foo { background: purplse`) // queues more css
|
|
@@ -76,7 +77,8 @@ c6 = css`w: [100%, null, 400px]` // width = 100% on mobile and table, 400px on d
|
|
|
76
77
|
Joins class names and omits falsey props
|
|
77
78
|
|
|
78
79
|
```typescript
|
|
79
|
-
import {
|
|
80
|
+
import {classJoin} from '@slimr/css'
|
|
81
|
+
|
|
80
82
|
classJoin('a', 'b', 'c') // 'a b c'
|
|
81
83
|
classJoin('a', 0, 'b', null, 'c') // 'a b c'
|
|
82
84
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slimr/css",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.19",
|
|
4
4
|
"author": "Brian Dombrowski",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"private": false,
|
|
@@ -34,6 +34,6 @@
|
|
|
34
34
|
"prepack": "run-s build"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@slimr/util": "3.2.
|
|
37
|
+
"@slimr/util": "3.2.16"
|
|
38
38
|
}
|
|
39
39
|
}
|