@symbo.ls/atoms 2.11.434 → 2.11.438
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/Media.js +2 -1
- package/Text.js +5 -4
- package/package.json +2 -2
package/Media.js
CHANGED
|
@@ -97,7 +97,8 @@ const applyMediaProps = (key, props, result, element) => {
|
|
|
97
97
|
return
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
const
|
|
100
|
+
const printValue = '@media ' + (mediaValue === 'print' ? `${mediaValue}` : `screen and ${mediaValue}`)
|
|
101
|
+
const mediaKey = mediaValue ? printValue : key
|
|
101
102
|
result[mediaKey] = generatedClass
|
|
102
103
|
return result[mediaKey]
|
|
103
104
|
}
|
package/Text.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
import { isUndefined } from '@domql/utils'
|
|
3
|
+
import { exec, isUndefined } from '@domql/utils'
|
|
4
4
|
import { getFontSizeByKey, getFontFamily } from '@symbo.ls/scratch'
|
|
5
5
|
|
|
6
6
|
export const Text = {
|
|
7
|
-
deps: { getFontSizeByKey, getFontFamily },
|
|
7
|
+
deps: { exec, getFontSizeByKey, getFontFamily },
|
|
8
8
|
|
|
9
|
-
text: (
|
|
9
|
+
text: (el) => {
|
|
10
|
+
const { key, props, state, deps } = el
|
|
10
11
|
if (props.text === true) return (state && state[key]) || (props && props[key])
|
|
11
|
-
return props.text
|
|
12
|
+
return deps.exec(props.text, el)
|
|
12
13
|
},
|
|
13
14
|
|
|
14
15
|
class: {
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/atoms",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.438",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"gitHead": "
|
|
6
|
+
"gitHead": "57bac07f08cd6a88591767f41a408e0915815237",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@domql/state": "latest",
|
|
9
9
|
"@domql/utils": "latest",
|