@symbo.ls/init 2.11.243 → 2.11.272
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/index.js +6 -0
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -75,6 +75,7 @@ export const init = (config, options = SET_OPTIONS) => {
|
|
|
75
75
|
const UPDATE_OPTIONS = {
|
|
76
76
|
emotion: defaultEmotion
|
|
77
77
|
}
|
|
78
|
+
|
|
78
79
|
export const reInit = (config, RC_FILE, options = UPDATE_OPTIONS) => {
|
|
79
80
|
const emotion = options.emotion || defaultEmotion
|
|
80
81
|
const resultConfig = mergeWithLocalFile(config || {}, RC_FILE)
|
|
@@ -86,6 +87,11 @@ export const reInit = (config, RC_FILE, options = UPDATE_OPTIONS) => {
|
|
|
86
87
|
emotion.injectGlobal(conf.RESET)
|
|
87
88
|
}
|
|
88
89
|
|
|
90
|
+
export const applyCSS = (styles, options = UPDATE_OPTIONS) => {
|
|
91
|
+
const emotion = options.emotion || defaultEmotion
|
|
92
|
+
emotion.injectGlobal(styles)
|
|
93
|
+
}
|
|
94
|
+
|
|
89
95
|
export const updateVars = (config, options = UPDATE_OPTIONS) => {
|
|
90
96
|
const emotion = options.emotion || defaultEmotion
|
|
91
97
|
emotion.injectGlobal({ ':root': config.CSS_VARS })
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/init",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.272",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"gitHead": "
|
|
5
|
+
"gitHead": "d9b2868d7416869c993f7847bcac544d879336cc",
|
|
6
6
|
"source": "index.js",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"dependencies": {
|