@symbo.ls/atoms 2.11.263 → 2.11.269
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/Block.js +1 -0
- package/Svg.js +6 -6
- package/Text.js +1 -2
- package/Theme.js +8 -2
- package/package.json +2 -2
package/Block.js
CHANGED
package/Svg.js
CHANGED
|
@@ -31,12 +31,12 @@ export const Svg = {
|
|
|
31
31
|
|
|
32
32
|
SVGKey = SVG[symbolId] = Math.random()
|
|
33
33
|
if (props.src) {
|
|
34
|
-
deps.init({
|
|
35
|
-
|
|
36
|
-
}, {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
})
|
|
34
|
+
// deps.init({
|
|
35
|
+
// svg: { [SVGKey]: props.src }
|
|
36
|
+
// }, {
|
|
37
|
+
// document: context.document,
|
|
38
|
+
// emotion: context.emotion
|
|
39
|
+
// })
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
return useSVGSymbol(SVGKey)
|
package/Text.js
CHANGED
|
@@ -24,6 +24,7 @@ export const Text = {
|
|
|
24
24
|
// lineHeight: ({ props }) => !isUndefined(props.lineHeight) && getSpacingBasedOnRatio(props, 'lineHeight', null, ''),
|
|
25
25
|
textDecoration: ({ props }) => !isUndefined(props.textDecoration) && ({ textDecoration: props.textDecoration }),
|
|
26
26
|
textTransform: ({ props }) => !isUndefined(props.textTransform) && ({ textTransform: props.textTransform }),
|
|
27
|
+
wordBreak: ({ props }) => !isUndefined(props.wordBreak) && ({ wordBreak: props.wordBreak }),
|
|
27
28
|
whiteSpace: ({ props }) => !isUndefined(props.whiteSpace) && ({ whiteSpace: props.whiteSpace }),
|
|
28
29
|
wordWrap: ({ props }) => !isUndefined(props.wordWrap) && ({ wordWrap: props.wordWrap }),
|
|
29
30
|
letterSpacing: ({ props }) => !isUndefined(props.letterSpacing) && ({ letterSpacing: props.letterSpacing }),
|
|
@@ -71,5 +72,3 @@ export const Footnote = {
|
|
|
71
72
|
export const B = { tag: 'b' }
|
|
72
73
|
|
|
73
74
|
export const I = { tag: 'i' }
|
|
74
|
-
|
|
75
|
-
// export const Paragraph = { tag: 'p' }
|
package/Theme.js
CHANGED
|
@@ -38,8 +38,14 @@ export const Theme = {
|
|
|
38
38
|
const { props, deps } = element
|
|
39
39
|
const globalTheme = deps.getSystemTheme(element)
|
|
40
40
|
if (!props.theme) return
|
|
41
|
-
const
|
|
42
|
-
|
|
41
|
+
const hasSubtheme = props.theme.includes(' ') && !props.theme.includes('@')
|
|
42
|
+
const globalThemeForced = `@${props.themeModifier || globalTheme}`
|
|
43
|
+
if (hasSubtheme) {
|
|
44
|
+
const themeAppliedInVal = props.theme.split(' ')
|
|
45
|
+
themeAppliedInVal.splice(1, 0, globalThemeForced)
|
|
46
|
+
return deps.getMediaTheme(themeAppliedInVal)
|
|
47
|
+
} else if (props.theme.includes('@{globalTheme}')) props.theme.replace('@{globalTheme}', globalThemeForced)
|
|
48
|
+
return deps.getMediaTheme(props.theme, `@${props.themeModifier || globalTheme}`)
|
|
43
49
|
},
|
|
44
50
|
|
|
45
51
|
color: (element) => {
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/atoms",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.269",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"gitHead": "
|
|
6
|
+
"gitHead": "9539c62d29cc279dbe7e149aa96bb8ee019c7119",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@domql/state": "latest",
|
|
9
9
|
"@domql/utils": "latest",
|