smbls 2.6.10 → 2.6.12
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/Input.js +1 -0
- package/src/TextArea.js +15 -0
- package/src/atoms/Grid.js +4 -0
- package/src/atoms/InteractiveComponent.js +0 -4
- package/src/atoms/Media.js +1 -1
- package/src/atoms/Text.js +4 -1
- package/src/index.js +1 -0
package/package.json
CHANGED
package/src/Input.js
CHANGED
package/src/TextArea.js
ADDED
package/src/atoms/Grid.js
CHANGED
|
@@ -10,13 +10,17 @@ export const Grid = {
|
|
|
10
10
|
template: ({ props }) => props.template ? ({ gridTemplate: props.template }) : null,
|
|
11
11
|
templateAreas: ({ props }) => props.templateAreas ? ({ gridTemplateAreas: props.templateAreas }) : null,
|
|
12
12
|
|
|
13
|
+
column: ({ props }) => props.column ? ({ gridColumn: props.column }) : null,
|
|
13
14
|
columns: ({ props }) => props.columns ? ({ gridTemplateColumns: props.columns }) : null,
|
|
14
15
|
templateColumns: ({ props }) => props.templateColumns ? ({ gridTemplateColumns: props.templateColumns }) : null,
|
|
15
16
|
autoColumns: ({ props }) => props.autoColumns ? ({ gridAutoColumns: props.autoColumns }) : null,
|
|
17
|
+
columnStart: ({ props }) => props.columnStart ? ({ gridColumnStart: props.columnStart }) : null,
|
|
16
18
|
|
|
19
|
+
row: ({ props }) => props.row ? ({ gridRow: props.row }) : null,
|
|
17
20
|
rows: ({ props }) => props.rows ? ({ gridTemplateRows: props.rows }) : null,
|
|
18
21
|
templateRows: ({ props }) => props.templateRows ? ({ gridTemplateRows: props.templateRows }) : null,
|
|
19
22
|
autoRows: ({ props }) => props.autoRows ? ({ gridAutoRows: props.autoRows }) : null,
|
|
23
|
+
rowStart: ({ props }) => props.rowStart ? ({ gridRowStart: props.rowStart }) : null,
|
|
20
24
|
|
|
21
25
|
autoFlow: ({ props }) => props.autoFlow ? ({ gridAutoFlow: props.autoFlow }) : null,
|
|
22
26
|
|
package/src/atoms/Media.js
CHANGED
|
@@ -146,7 +146,7 @@ export const initUpdate = element => {
|
|
|
146
146
|
if (key === 'theme') {
|
|
147
147
|
props.update({
|
|
148
148
|
themeModifier: globalTheme
|
|
149
|
-
}, { preventRecursive: true, ignoreInitUpdate: true })
|
|
149
|
+
}, { preventRecursive: true, ignoreInitUpdate: true, preventDefineUpdate: '$setStateCollection' })
|
|
150
150
|
} else if (key === 'true') applyTrueProps(props[key], CLASS_NAMES, element)
|
|
151
151
|
if (setter) setter(key, props[key], CLASS_NAMES, element)
|
|
152
152
|
}
|
package/src/atoms/Text.js
CHANGED
|
@@ -3,7 +3,10 @@
|
|
|
3
3
|
import { getFontSizeByKey, getFontFamily } from '@symbo.ls/scratch'
|
|
4
4
|
|
|
5
5
|
export const Text = {
|
|
6
|
-
text: ({ props }) =>
|
|
6
|
+
text: ({ key, props, state }) => {
|
|
7
|
+
if (props.text === true) return (state && state[key]) || (props && props[key])
|
|
8
|
+
return props.text
|
|
9
|
+
},
|
|
7
10
|
class: {
|
|
8
11
|
fontSize: ({ props }) => props.fontSize ? getFontSizeByKey(props.fontSize) : null,
|
|
9
12
|
fontFamily: ({ props }) => props.fontFamily && ({ fontFamily: getFontFamily(props.fontFamily) || props.fontFamily }),
|