@symbo.ls/atoms 2.11.162 → 2.11.166
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 +16 -17
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
import { getActiveConfig, getColor
|
|
3
|
+
import { getActiveConfig, getColor } from '@symbo.ls/scratch' // eslint-disable-line no-unused-vars
|
|
4
4
|
import { Timing } from '../Timing'
|
|
5
5
|
|
|
6
6
|
const CONFIG = getActiveConfig()
|
|
@@ -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,9 +156,8 @@ export const SHAPES = {
|
|
|
156
156
|
}
|
|
157
157
|
}),
|
|
158
158
|
|
|
159
|
-
chevron: ({ props }) => ({
|
|
159
|
+
chevron: ({ props, deps }) => ({
|
|
160
160
|
position: 'relative',
|
|
161
|
-
// overflow: 'hidden',
|
|
162
161
|
'&:before, &:after': {
|
|
163
162
|
content: '""',
|
|
164
163
|
display: 'block',
|
|
@@ -167,15 +166,15 @@ export const SHAPES = {
|
|
|
167
166
|
aspectRatio: '1/1',
|
|
168
167
|
top: '50%',
|
|
169
168
|
transformOrigin: '50% 50%',
|
|
170
|
-
transition: inheritTransition({ props }),
|
|
169
|
+
transition: inheritTransition({ props, deps }),
|
|
171
170
|
transitionProperty: 'background'
|
|
172
171
|
|
|
173
172
|
},
|
|
174
173
|
'&:before': {
|
|
175
|
-
background: `linear-gradient(225deg, ${getComputedBackgroundColor({ props })} 25%, transparent 25%), linear-gradient(315deg, ${getComputedBackgroundColor({ props })} 25%, transparent 25%)`
|
|
174
|
+
background: `linear-gradient(225deg, ${getComputedBackgroundColor({ props, deps })} 25%, transparent 25%), linear-gradient(315deg, ${getComputedBackgroundColor({ props, deps })} 25%, transparent 25%)`
|
|
176
175
|
},
|
|
177
176
|
'&:after': {
|
|
178
|
-
background: getComputedBackgroundColor({ props }),
|
|
177
|
+
background: getComputedBackgroundColor({ props, deps }),
|
|
179
178
|
borderRadius: '.25em'
|
|
180
179
|
}
|
|
181
180
|
}),
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/atoms",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.166",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"gitHead": "
|
|
6
|
+
"gitHead": "18340cf2fb602bcacd0567452298edd24f47f81f",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@domql/state": "latest",
|
|
9
9
|
"@domql/utils": "latest",
|