@symbo.ls/atoms 2.11.162 → 2.11.164
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/Shape/index.js +1 -1
- package/Shape/style.js +15 -15
- package/package.json +2 -2
package/Shape/index.js
CHANGED
|
@@ -20,7 +20,7 @@ export const Shape = {
|
|
|
20
20
|
class: {
|
|
21
21
|
shape: ({ props, deps }) => {
|
|
22
22
|
const { shape } = props
|
|
23
|
-
return deps.exec(SHAPES[shape], ({ props }))
|
|
23
|
+
return deps.exec(SHAPES[shape], ({ props, deps }))
|
|
24
24
|
},
|
|
25
25
|
shapeDirection: ({ props }) => {
|
|
26
26
|
const { shape, shapeDirection } = props
|
package/Shape/style.js
CHANGED
|
@@ -21,8 +21,8 @@ const getComputedBackgroundColor = ({ props }) => {
|
|
|
21
21
|
getColor(props.background)
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
const inheritTransition = ({ props }) => {
|
|
25
|
-
const exec = Timing.class.transition({ props })
|
|
24
|
+
const inheritTransition = ({ props, deps }) => {
|
|
25
|
+
const exec = Timing.class.transition({ props, deps })
|
|
26
26
|
return exec && exec.transition
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -34,7 +34,7 @@ export const SHAPES = {
|
|
|
34
34
|
borderRadius: '1.15em/2.5em'
|
|
35
35
|
},
|
|
36
36
|
|
|
37
|
-
tooltip: ({ props }) => ({
|
|
37
|
+
tooltip: ({ props, deps }) => ({
|
|
38
38
|
position: props.position || 'relative',
|
|
39
39
|
'&:before': {
|
|
40
40
|
content: '""',
|
|
@@ -42,8 +42,8 @@ export const SHAPES = {
|
|
|
42
42
|
width: '0px',
|
|
43
43
|
height: '0px',
|
|
44
44
|
border: '.35em solid',
|
|
45
|
-
borderColor: getComputedBackgroundColor({ props }),
|
|
46
|
-
transition: inheritTransition({ props }),
|
|
45
|
+
borderColor: getComputedBackgroundColor({ props, deps }),
|
|
46
|
+
transition: inheritTransition({ props, deps }),
|
|
47
47
|
transitionProperty: 'border-color',
|
|
48
48
|
position: 'absolute',
|
|
49
49
|
borderRadius: '.15em'
|
|
@@ -81,13 +81,13 @@ export const SHAPES = {
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
|
|
84
|
-
tag: ({ props }) => ({
|
|
84
|
+
tag: ({ props, deps }) => ({
|
|
85
85
|
position: 'relative',
|
|
86
86
|
'&:before': {
|
|
87
87
|
content: '""',
|
|
88
88
|
display: 'block',
|
|
89
|
-
background: getComputedBackgroundColor({ props }),
|
|
90
|
-
transition: inheritTransition({ props }),
|
|
89
|
+
background: getComputedBackgroundColor({ props, deps }),
|
|
90
|
+
transition: inheritTransition({ props, deps }),
|
|
91
91
|
transitionProperty: 'background',
|
|
92
92
|
borderRadius: '.25em',
|
|
93
93
|
position: 'absolute',
|
|
@@ -130,7 +130,7 @@ export const SHAPES = {
|
|
|
130
130
|
}
|
|
131
131
|
},
|
|
132
132
|
|
|
133
|
-
hexagon: ({ props }) => ({
|
|
133
|
+
hexagon: ({ props, deps }) => ({
|
|
134
134
|
position: 'relative',
|
|
135
135
|
'&:before, &:after': {
|
|
136
136
|
content: '""',
|
|
@@ -142,8 +142,8 @@ export const SHAPES = {
|
|
|
142
142
|
top: '50%',
|
|
143
143
|
transformOrigin: '50% 50%',
|
|
144
144
|
height: '73%',
|
|
145
|
-
background: getComputedBackgroundColor({ props }),
|
|
146
|
-
transition: inheritTransition({ props }),
|
|
145
|
+
background: getComputedBackgroundColor({ props, deps }),
|
|
146
|
+
transition: inheritTransition({ props, deps }),
|
|
147
147
|
transitionProperty: 'background'
|
|
148
148
|
},
|
|
149
149
|
'&:before': {
|
|
@@ -156,7 +156,7 @@ export const SHAPES = {
|
|
|
156
156
|
}
|
|
157
157
|
}),
|
|
158
158
|
|
|
159
|
-
chevron: ({ props }) => ({
|
|
159
|
+
chevron: ({ props, deps }) => ({
|
|
160
160
|
position: 'relative',
|
|
161
161
|
// overflow: 'hidden',
|
|
162
162
|
'&:before, &:after': {
|
|
@@ -167,15 +167,15 @@ export const SHAPES = {
|
|
|
167
167
|
aspectRatio: '1/1',
|
|
168
168
|
top: '50%',
|
|
169
169
|
transformOrigin: '50% 50%',
|
|
170
|
-
transition: inheritTransition({ props }),
|
|
170
|
+
transition: inheritTransition({ props, deps }),
|
|
171
171
|
transitionProperty: 'background'
|
|
172
172
|
|
|
173
173
|
},
|
|
174
174
|
'&:before': {
|
|
175
|
-
background: `linear-gradient(225deg, ${getComputedBackgroundColor({ props })} 25%, transparent 25%), linear-gradient(315deg, ${getComputedBackgroundColor({ props })} 25%, transparent 25%)`
|
|
175
|
+
background: `linear-gradient(225deg, ${getComputedBackgroundColor({ props, deps })} 25%, transparent 25%), linear-gradient(315deg, ${getComputedBackgroundColor({ props, deps })} 25%, transparent 25%)`
|
|
176
176
|
},
|
|
177
177
|
'&:after': {
|
|
178
|
-
background: getComputedBackgroundColor({ props }),
|
|
178
|
+
background: getComputedBackgroundColor({ props, deps }),
|
|
179
179
|
borderRadius: '.25em'
|
|
180
180
|
}
|
|
181
181
|
}),
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/atoms",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.164",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"gitHead": "
|
|
6
|
+
"gitHead": "943a48800e5959b8c1f15d5d8d49224565038c23",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@domql/state": "latest",
|
|
9
9
|
"@domql/utils": "latest",
|