@symbo.ls/atoms 3.0.2 → 3.0.6
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 +1 -1
- package/InteractiveComponent.js +34 -42
- package/Shape/index.js +2 -4
- package/Svg.js +0 -1
- package/Text.js +5 -4
- package/Theme.js +1 -1
- package/Video.js +2 -4
- package/package.json +2 -2
package/Box.js
CHANGED
package/InteractiveComponent.js
CHANGED
|
@@ -8,49 +8,43 @@ const style = {
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export const Hoverable = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
opacity: 0.85,
|
|
11
|
+
transition: 'C defaultBezier',
|
|
12
|
+
transitionProperty: 'opacity, transform',
|
|
13
|
+
opacity: 0.85,
|
|
15
14
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|
-
|
|
29
|
-
}
|
|
27
|
+
':hover': { opacity: 1 }
|
|
30
28
|
}
|
|
31
29
|
}
|
|
32
30
|
|
|
33
31
|
export const Clickable = {
|
|
34
32
|
extends: 'Hoverable',
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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
|
-
|
|
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
|
-
|
|
38
|
-
round: '100%'
|
|
39
|
-
}
|
|
37
|
+
round: '100%'
|
|
40
38
|
}
|
|
41
39
|
|
|
42
40
|
export default Shape
|
package/Svg.js
CHANGED
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
|
-
|
|
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
|
-
|
|
24
|
+
fontSize: 'B',
|
|
25
|
+
fontWeight: 500
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
export const Subhead = {
|
|
28
29
|
tag: 'span',
|
|
29
|
-
|
|
30
|
+
fontSize: 'Z1'
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
export const Footnote = {
|
|
33
34
|
tag: 'span',
|
|
34
|
-
|
|
35
|
+
fontSize: 'Z'
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
export const B = { tag: 'b' }
|
package/Theme.js
CHANGED
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.
|
|
3
|
+
"version": "3.0.6",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"gitHead": "
|
|
6
|
+
"gitHead": "d78a3603eea303118e84a46c24160c6d590bdb90",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@domql/state": "^3.0.0",
|
|
9
9
|
"@domql/utils": "^3.0.0",
|