@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 CHANGED
@@ -217,6 +217,7 @@ export const Hr = {
217
217
  props: { margin: 'C1 0' }
218
218
  }
219
219
  export const Br = { tag: 'br' }
220
+ export const Div = { tag: 'div' }
220
221
  export const Span = { tag: 'span' }
221
222
  export const Ul = {
222
223
  tag: 'ul',
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
- svg: { [SVGKey]: props.src }
36
- }, {
37
- document: context.document,
38
- emotion: context.emotion
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 getMediaTheme = deps.getMediaTheme(props.theme, `@${props.themeModifier || globalTheme}`)
42
- return getMediaTheme
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.263",
3
+ "version": "2.11.269",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "d9a23448de2c05c7eb8577e0f53eecd2513a5041",
6
+ "gitHead": "9539c62d29cc279dbe7e149aa96bb8ee019c7119",
7
7
  "dependencies": {
8
8
  "@domql/state": "latest",
9
9
  "@domql/utils": "latest",