@symbo.ls/atoms 2.33.14 → 2.33.20
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 +15 -3
- package/Text.js +0 -1
- package/package.json +6 -6
package/Box.js
CHANGED
|
@@ -155,8 +155,8 @@ export const Box = {
|
|
|
155
155
|
[childrenAsDefault]: isObjectLike(v)
|
|
156
156
|
? v
|
|
157
157
|
: childrenAsDefault === 'state'
|
|
158
|
-
|
|
159
|
-
|
|
158
|
+
? { value: v }
|
|
159
|
+
: { text: v }
|
|
160
160
|
}))
|
|
161
161
|
}
|
|
162
162
|
} else if (isString(children) || isNumber(children)) {
|
|
@@ -1118,7 +1118,19 @@ export const Box = {
|
|
|
1118
1118
|
props.borderRadius || props.round,
|
|
1119
1119
|
props,
|
|
1120
1120
|
'borderRadius'
|
|
1121
|
-
)
|
|
1121
|
+
),
|
|
1122
|
+
clip: ({ props }) =>
|
|
1123
|
+
!isUndefined(props.clip)
|
|
1124
|
+
? {
|
|
1125
|
+
clip: props.clip
|
|
1126
|
+
}
|
|
1127
|
+
: null
|
|
1128
|
+
},
|
|
1129
|
+
|
|
1130
|
+
// scrollbar
|
|
1131
|
+
...{
|
|
1132
|
+
scrollbarWidth: ({ props, deps }) =>
|
|
1133
|
+
deps.transformSizeRatio('scrollbarWidth', props)
|
|
1122
1134
|
},
|
|
1123
1135
|
|
|
1124
1136
|
// container queries
|
package/Text.js
CHANGED
|
@@ -31,7 +31,6 @@ export const Text = {
|
|
|
31
31
|
font: ({ props }) => !isUndefined(props.font) && { font: props.font },
|
|
32
32
|
lineHeight: ({ props }) =>
|
|
33
33
|
!isUndefined(props.lineHeight) && { lineHeight: props.lineHeight },
|
|
34
|
-
// lineHeight: ({ props }) => !isUndefined(props.lineHeight) && getSpacingBasedOnRatio(props, 'lineHeight', null, ''),
|
|
35
34
|
textDecoration: ({ props }) =>
|
|
36
35
|
!isUndefined(props.textDecoration) && {
|
|
37
36
|
textDecoration: props.textDecoration
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/atoms",
|
|
3
|
-
"version": "2.33.
|
|
3
|
+
"version": "2.33.20",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"gitHead": "
|
|
6
|
+
"gitHead": "717ab2ed8690b295c7d6c79e31831048f20f4e86",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@domql/state": "^2.33.
|
|
9
|
-
"@domql/utils": "^2.33.
|
|
10
|
-
"@symbo.ls/emotion": "^2.33.
|
|
11
|
-
"@symbo.ls/scratch": "^2.33.
|
|
8
|
+
"@domql/state": "^2.33.20",
|
|
9
|
+
"@domql/utils": "^2.33.20",
|
|
10
|
+
"@symbo.ls/emotion": "^2.33.20",
|
|
11
|
+
"@symbo.ls/scratch": "^2.33.20"
|
|
12
12
|
},
|
|
13
13
|
"source": "src/index.js",
|
|
14
14
|
"devDependencies": {
|