@symbo.ls/atoms 2.10.163 → 2.10.168
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/Block.js +2 -1
- package/Svg.js +2 -2
- package/package.json +2 -2
package/Block.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict'
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { isString } from '@domql/utils'
|
|
4
|
+
import { getSpacingBasedOnRatio, getSpacingByKey } from '@symbo.ls/scratch'
|
|
4
5
|
|
|
5
6
|
const transfromGap = gap => isString(gap) && ({
|
|
6
7
|
gap: gap.split(' ').map(v => getSpacingByKey(v, 'gap').gap).join(' ')
|
package/Svg.js
CHANGED
|
@@ -13,12 +13,12 @@ export const Svg = {
|
|
|
13
13
|
'xmlns:xlink': 'http://www.w3.org/1999/xlink'
|
|
14
14
|
},
|
|
15
15
|
html: ({ key, props, context, ...el }) => {
|
|
16
|
-
const { designSystem,
|
|
16
|
+
const { designSystem, utils } = context
|
|
17
17
|
const SVG = designSystem && designSystem.SVG
|
|
18
18
|
const useSvgSprite = props.spriteId || (context.designSystem && context.designSystem.useSvgSprite)
|
|
19
19
|
const useSVGSymbol = icon => `<use xlink:href="#${icon}" />`
|
|
20
20
|
|
|
21
|
-
const init =
|
|
21
|
+
const init = utils && utils.init
|
|
22
22
|
|
|
23
23
|
if (!useSvgSprite && props.src) return props.src
|
|
24
24
|
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/atoms",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.168",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"gitHead": "
|
|
6
|
+
"gitHead": "c9937422aa846691fa6187c7a3975c313114617a",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@domql/utils": "latest",
|
|
9
9
|
"@symbo.ls/create-emotion": "latest",
|