smbls 2.6.3 → 2.6.5
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/__/Media copy.js +2 -2
- package/src/atoms/Block.js +1 -5
- package/src/atoms/Theme.js +1 -1
package/package.json
CHANGED
package/src/__/Media copy.js
CHANGED
|
@@ -83,7 +83,7 @@ const init = (element, s) => {
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
export const initUpdate = el => {
|
|
86
|
-
// FORCE
|
|
86
|
+
// FORCE CLIENT_STATE UPDATE:
|
|
87
87
|
const { props, class: className } = el
|
|
88
88
|
const rootState = el.__root ? el.__root.state : el.state
|
|
89
89
|
// if (el.key !== 'app') return
|
|
@@ -96,7 +96,7 @@ export const initUpdate = el => {
|
|
|
96
96
|
if (rootState.globalTheme === parse) {
|
|
97
97
|
props.theme = getTheme(theme[key])
|
|
98
98
|
} else props.theme = theme
|
|
99
|
-
className.
|
|
99
|
+
className.MEDIA_FORCED_BY_CLIENT_STATE = props.theme
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
}
|
package/src/atoms/Block.js
CHANGED
|
@@ -2,10 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
import { getSpacingBasedOnRatio, getSpacingByKey } from '@symbo.ls/scratch'
|
|
4
4
|
|
|
5
|
-
const transformGap = gap => ({
|
|
6
|
-
gap: gap.split(' ').map(v => getSpacingByKey(v, 'gap').gap).join(' ')
|
|
7
|
-
})
|
|
8
|
-
|
|
9
5
|
export const Block = {
|
|
10
6
|
class: {
|
|
11
7
|
boxSizing: ({ props }) => props.boxSizing ? ({ boxSizing: props.boxSizing }) : {
|
|
@@ -99,7 +95,7 @@ export const Block = {
|
|
|
99
95
|
marginBlockStart: ({ props }) => props.marginBlockStart ? getSpacingBasedOnRatio(props, 'marginBlockStart') : null,
|
|
100
96
|
marginBlockEnd: ({ props }) => props.marginBlockEnd ? getSpacingBasedOnRatio(props, 'marginBlockEnd') : null,
|
|
101
97
|
|
|
102
|
-
gap: ({ props }) => props.gap ?
|
|
98
|
+
gap: ({ props }) => props.gap ? getSpacingBasedOnRatio(props, 'gap') : null,
|
|
103
99
|
gridArea: ({ props }) => props.gridArea && ({ gridArea: props.gridArea }),
|
|
104
100
|
|
|
105
101
|
flex: ({ props }) => props.flex && ({ flex: props.flex }),
|
package/src/atoms/Theme.js
CHANGED
|
@@ -43,7 +43,7 @@ const transformBackgroundImage = (backgroundImage, ctx, globalTheme) => ({
|
|
|
43
43
|
backgroundImage: backgroundImage.split(', ').map(v => {
|
|
44
44
|
if (v.slice(0, 2) === '--') return `var(${v})`
|
|
45
45
|
if (v.includes('url') || v.includes('gradient')) return v
|
|
46
|
-
else if (ctx.
|
|
46
|
+
else if (ctx.CLIENT_SYSTEM.GRADIENT[backgroundImage]) {
|
|
47
47
|
return getMediaColor(backgroundImage, 'backgroundImage', globalTheme)
|
|
48
48
|
}
|
|
49
49
|
return `url(${v})`
|