@symbo.ls/atoms 2.11.221 → 2.11.227
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/Theme.js +11 -5
- package/package.json +2 -2
package/Theme.js
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from '@symbo.ls/scratch'
|
|
12
12
|
|
|
13
13
|
import { depth } from './Shape/style'
|
|
14
|
-
import { isUndefined } from '@domql/utils'
|
|
14
|
+
import { isUndefined, isString } from '@domql/utils'
|
|
15
15
|
|
|
16
16
|
export const getSystemTheme = ({ context, state }) => {
|
|
17
17
|
const rootState = state && state.__root
|
|
@@ -101,9 +101,15 @@ export const Theme = {
|
|
|
101
101
|
border: ({ props, deps }) => !isUndefined(props.border) && ({
|
|
102
102
|
border: deps.transformBorder(props.border)
|
|
103
103
|
}),
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
104
|
+
|
|
105
|
+
borderColor: (element) => {
|
|
106
|
+
const { props, deps } = element
|
|
107
|
+
const globalTheme = deps.getSystemTheme(element)
|
|
108
|
+
if (!props.borderColor) return
|
|
109
|
+
return {
|
|
110
|
+
borderColor: deps.getMediaColor(props.borderColor, globalTheme)
|
|
111
|
+
}
|
|
112
|
+
},
|
|
107
113
|
borderStyle: ({ props }) => !isUndefined(props.borderStyle) && ({
|
|
108
114
|
borderStyle: props.borderStyle
|
|
109
115
|
}),
|
|
@@ -130,7 +136,7 @@ export const Theme = {
|
|
|
130
136
|
})
|
|
131
137
|
},
|
|
132
138
|
|
|
133
|
-
boxShadow: ({ props, deps }) =>
|
|
139
|
+
boxShadow: ({ props, deps }) => isString(props.boxShadow) && ({
|
|
134
140
|
boxShadow: deps.transformBoxShadow(props.boxShadow)
|
|
135
141
|
}),
|
|
136
142
|
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/atoms",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.227",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"gitHead": "
|
|
6
|
+
"gitHead": "6ac105edd74f4d797b096bebfdf80b473831f26e",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@domql/state": "latest",
|
|
9
9
|
"@domql/utils": "latest",
|