@symbo.ls/atoms 3.0.2 → 3.0.100

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/Box.js CHANGED
@@ -30,10 +30,6 @@ export const Box = {
30
30
  translate: el => el.props.translate
31
31
  },
32
32
 
33
- class: {
34
- style: el => el.style || el.props?.style
35
- },
36
-
37
33
  onBeforeClassAssign
38
34
  }
39
35
 
@@ -8,49 +8,43 @@ const style = {
8
8
  }
9
9
 
10
10
  export const Hoverable = {
11
- props: {
12
- transition: 'C defaultBezier',
13
- transitionProperty: 'opacity, transform',
14
- opacity: 0.85,
11
+ transition: 'C defaultBezier',
12
+ transitionProperty: 'opacity, transform',
13
+ opacity: 0.85,
15
14
 
16
- ':hover': {
17
- opacity: 0.9,
18
- transform: 'scale(1.015)'
19
- },
20
- ':active': {
21
- opacity: 1,
22
- transform: 'scale(1.015)'
23
- },
24
- '.active': {
25
- opacity: 1,
26
- transform: 'scale(1.015)',
15
+ ':hover': {
16
+ opacity: 0.9,
17
+ transform: 'scale(1.015)'
18
+ },
19
+ ':active': {
20
+ opacity: 1,
21
+ transform: 'scale(1.015)'
22
+ },
23
+ '.active': {
24
+ opacity: 1,
25
+ transform: 'scale(1.015)',
27
26
 
28
- ':hover': { opacity: 1 }
29
- }
27
+ ':hover': { opacity: 1 }
30
28
  }
31
29
  }
32
30
 
33
31
  export const Clickable = {
34
32
  extends: 'Hoverable',
35
- props: {
36
- ':active': {
37
- opacity: 1,
38
- transform: 'scale(1.015)'
39
- },
40
- '.active': {
41
- opacity: 1
42
- }
33
+ ':active': {
34
+ opacity: 1,
35
+ transform: 'scale(1.015)'
36
+ },
37
+ '.active': {
38
+ opacity: 1
43
39
  }
44
40
  }
45
41
 
46
42
  export const Focusable = {
47
- props: {
48
- border: 'none',
49
- outline: 'solid, 0, blue .3',
50
- ':focus-visible': {
51
- opacity: 1,
52
- outline: 'solid, X, blue .3'
53
- }
43
+ border: 'none',
44
+ outline: 'solid, 0, blue .3',
45
+ ':focus-visible': {
46
+ opacity: 1,
47
+ outline: 'solid, X, blue .3'
54
48
  },
55
49
 
56
50
  attr: {
@@ -62,16 +56,14 @@ export const Focusable = {
62
56
  export const FocusableComponent = {
63
57
  extends: 'Focusable',
64
58
  tag: 'button',
65
- props: {
66
- fontSize: 'A',
67
- type: 'button',
68
- border: 'none',
69
- textDecoration: 'none',
70
- lineHeight: '1',
71
- whiteSpace: 'nowrap',
72
- fontFamily: 'inherit',
73
- style
74
- },
59
+ fontSize: 'A',
60
+ type: 'button',
61
+ border: 'none',
62
+ textDecoration: 'none',
63
+ lineHeight: '1',
64
+ whiteSpace: 'nowrap',
65
+ fontFamily: 'inherit',
66
+ style,
75
67
  attr: {
76
68
  type: ({ props }) => props.type
77
69
  }
package/Shape/index.js CHANGED
@@ -7,7 +7,7 @@ import { getSpacingBasedOnRatio, getMediaColor } from '@symbo.ls/scratch'
7
7
  export const Shape = {
8
8
  deps: { exec, getSpacingBasedOnRatio, getMediaColor },
9
9
 
10
- class: {
10
+ classlist: {
11
11
  shape: ({ props, deps }) => {
12
12
  const { shape } = props
13
13
  return deps.exec(SHAPES[shape], ({ props, deps }))
@@ -34,9 +34,7 @@ export const Shape = {
34
34
  }
35
35
 
36
36
  export const Circle = {
37
- props: {
38
- round: '100%'
39
- }
37
+ round: '100%'
40
38
  }
41
39
 
42
40
  export default Shape
package/Svg.js CHANGED
@@ -3,7 +3,6 @@
3
3
  // create SVG symbol
4
4
  export const Svg = {
5
5
  tag: 'svg',
6
- props: {},
7
6
  attr: {
8
7
  xmlns: 'http://www.w3.org/2000/svg',
9
8
  'xmlns:xlink': 'http://www.w3.org/1999/xlink'
package/Text.js CHANGED
@@ -12,7 +12,7 @@ export const P = { tag: 'p' }
12
12
  export const Caption = { tag: 'caption' }
13
13
  export const Strong = {
14
14
  tag: 'strong',
15
- props: { fontWeight: '700' }
15
+ fontWeight: '700'
16
16
  }
17
17
  export const Underline = { tag: 'u' }
18
18
  export const Italic = { tag: 'i' }
@@ -21,17 +21,18 @@ export const Title = {}
21
21
 
22
22
  export const Headline = {
23
23
  tag: 'h6',
24
- props: { fontSize: 'B', fontWeight: 500 }
24
+ fontSize: 'B',
25
+ fontWeight: 500
25
26
  }
26
27
 
27
28
  export const Subhead = {
28
29
  tag: 'span',
29
- props: { fontSize: 'Z1' }
30
+ fontSize: 'Z1'
30
31
  }
31
32
 
32
33
  export const Footnote = {
33
34
  tag: 'span',
34
- props: { fontSize: 'Z' }
35
+ fontSize: 'Z'
35
36
  }
36
37
 
37
38
  export const B = { tag: 'b' }
package/Theme.js CHANGED
@@ -13,7 +13,7 @@ export const Theme = {
13
13
  depth
14
14
  },
15
15
 
16
- class: {
16
+ classlist: {
17
17
  depth: ({ props, deps }) => !isUndefined(props.depth) && deps.depth[props.depth]
18
18
  }
19
19
  }
package/Video.js CHANGED
@@ -3,6 +3,8 @@
3
3
  export const Video = {
4
4
  tag: 'video',
5
5
 
6
+ controls: true,
7
+
6
8
  childExtends: {
7
9
  tag: 'source',
8
10
  attr: {
@@ -12,10 +14,6 @@ export const Video = {
12
14
  }
13
15
  },
14
16
 
15
- props: {
16
- controls: true
17
- },
18
-
19
17
  attr: {
20
18
  src: ({ props }) => props.src,
21
19
  playsinline: ({ props }) => props.playsinline,
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/atoms",
3
- "version": "3.0.2",
3
+ "version": "3.0.100",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "c4dacc88fa3a65574680d11e320307dd2a22e6e9",
6
+ "gitHead": "1302a0674cc4d420f304737973a7f7bece86f359",
7
7
  "dependencies": {
8
8
  "@domql/state": "^3.0.0",
9
9
  "@domql/utils": "^3.0.0",