@symbo.ls/scratch 2.11.450 → 2.11.464
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/dist/cjs/factory.js +112 -41
- package/dist/cjs/index.js +259 -88
- package/dist/cjs/set.js +259 -88
- package/dist/cjs/system/color.js +255 -85
- package/dist/cjs/system/document.js +255 -85
- package/dist/cjs/system/font.js +255 -85
- package/dist/cjs/system/index.js +259 -88
- package/dist/cjs/system/reset.js +255 -85
- package/dist/cjs/system/shadow.js +255 -85
- package/dist/cjs/system/spacing.js +255 -85
- package/dist/cjs/system/svg.js +259 -88
- package/dist/cjs/system/theme.js +255 -85
- package/dist/cjs/system/timing.js +255 -85
- package/dist/cjs/system/typography.js +255 -85
- package/dist/cjs/transforms/index.js +255 -85
- package/dist/cjs/utils/color.js +111 -40
- package/dist/cjs/utils/index.js +259 -88
- package/dist/cjs/utils/sequence.js +255 -85
- package/dist/cjs/utils/sprite.js +116 -44
- package/dist/cjs/utils/var.js +255 -85
- package/package.json +3 -3
- package/src/factory.js +1 -1
- package/src/utils/sprite.js +4 -3
package/src/utils/sprite.js
CHANGED
|
@@ -18,11 +18,12 @@ export const generateSprite = (icons) => {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
const parseRootAttributes = (htmlString) => {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
const val = htmlString.default || htmlString
|
|
22
|
+
if (!isString(val)) {
|
|
23
|
+
return console.warn(`parseRootAttributes: ${val} is not a string`)
|
|
23
24
|
}
|
|
24
25
|
|
|
25
|
-
const match =
|
|
26
|
+
const match = val.match(/<svg\s+(.*?)>/)
|
|
26
27
|
if (!match || !match[1]) {
|
|
27
28
|
return {}
|
|
28
29
|
}
|