@symbo.ls/init 2.11.239 → 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 +12 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -75,7 +75,8 @@ 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)
|
|
81
82
|
const conf = set({
|
|
@@ -86,6 +87,16 @@ export const updateReset = (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
|
+
|
|
95
|
+
export const updateVars = (config, options = UPDATE_OPTIONS) => {
|
|
96
|
+
const emotion = options.emotion || defaultEmotion
|
|
97
|
+
emotion.injectGlobal({ ':root': config.CSS_VARS })
|
|
98
|
+
}
|
|
99
|
+
|
|
89
100
|
export const setClass = (props, options = UPDATE_OPTIONS) => {}// setClassname(props, options.emotion.css)
|
|
90
101
|
|
|
91
102
|
export { DYNAMIC_JSON }
|
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": {
|