@symbo.ls/scratch 0.3.16 → 0.3.17
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/package.json +1 -1
- package/src/config/cases.js +3 -0
- package/src/config/index.js +2 -0
- package/src/methods/set.js +5 -1
package/package.json
CHANGED
package/src/config/index.js
CHANGED
package/src/methods/set.js
CHANGED
|
@@ -104,7 +104,6 @@ const getThemeValue = theme => {
|
|
|
104
104
|
|
|
105
105
|
export const getTheme = value => {
|
|
106
106
|
const { THEME } = CONFIG
|
|
107
|
-
// console.log('theme', THEME, CONFIG)
|
|
108
107
|
if (isObjectLike(value) && value[1]) {
|
|
109
108
|
const themeName = value[0]
|
|
110
109
|
const subThemeName = value[1]
|
|
@@ -214,6 +213,10 @@ const setFontFamily = (val, key) => {
|
|
|
214
213
|
return { var: CSSvar, value: str, arr: value, type }
|
|
215
214
|
}
|
|
216
215
|
|
|
216
|
+
const setCases = (val, key) => {
|
|
217
|
+
return val()
|
|
218
|
+
}
|
|
219
|
+
|
|
217
220
|
const setSameValue = (val, key) => val
|
|
218
221
|
|
|
219
222
|
export const SETTERS = {
|
|
@@ -225,6 +228,7 @@ export const SETTERS = {
|
|
|
225
228
|
typography: setSameValue,
|
|
226
229
|
spacing: setSameValue,
|
|
227
230
|
media: setSameValue,
|
|
231
|
+
cases: setCases,
|
|
228
232
|
icons: setSameValue
|
|
229
233
|
}
|
|
230
234
|
|