smbls 0.15.25 → 0.15.27

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 CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "UI Library built on Scratch and DOMQL",
4
4
  "private": false,
5
5
  "author": "symbo.ls",
6
- "version": "0.15.25",
6
+ "version": "0.15.27",
7
7
  "repository": "https://github.com/symbo-ls/smbls",
8
8
  "main": "src/index.js",
9
9
  "files": [
@@ -18,7 +18,7 @@ export const Animation = {
18
18
  animation: (el) => el.props.animation && {
19
19
  animationName: applyAnimationProps(el.props.animation, el),
20
20
  animationDuration: getTimingByKey(el.props.animationDuration || 'A').timing,
21
- animationDelay: getTimingByKey(el.props.animationDelay).timing || '0s',
21
+ animationDelay: getTimingByKey(el.props.animationDelay || '0s').timing,
22
22
  animationTimingFunction: getTimingFunction(el.props.animationTimingFunction || 'ease'),
23
23
  animationFillMode: el.props.animationFillMode || 'both',
24
24
  animationPlayState: el.props.animationPlayState,
@@ -142,3 +142,4 @@ export const Block = {
142
142
  }
143
143
 
144
144
  export const Span = { tag: 'span' }
145
+ // export const Article = { tag: 'article' }
package/src/atoms/Text.js CHANGED
@@ -13,7 +13,10 @@ export const Text = {
13
13
  textTransform: ({ props }) => props.textTransform && ({ textTransform: props.textTransform }),
14
14
  whiteSpace: ({ props }) => props.whiteSpace && ({ whiteSpace: props.whiteSpace }),
15
15
  textAlign: ({ props }) => props.textAlign && ({ textAlign: props.textAlign }),
16
- fontWeight: ({ props }) => props.fontWeight && ({ fontWeight: props.fontWeight })
16
+ fontWeight: ({ props }) => props.fontWeight && ({
17
+ fontWeight: props.fontWeight,
18
+ fontVariationSettings: '"wdth" ' + props.fontWeight
19
+ })
17
20
  }
18
21
  }
19
22
 
@@ -29,3 +32,5 @@ export const Strong = {
29
32
  tag: 'strong',
30
33
  props: { fontWeight: '900' }
31
34
  }
35
+ export const Underline = { tag: 'u' }
36
+ export const Italic = { tag: 'i' }