@symbo.ls/scratch 2.11.375 → 2.11.394

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/src/system/svg.js CHANGED
@@ -28,14 +28,14 @@ export const appendSVGSprite = (LIBRARY, options = DEF_OPTIONS) => {
28
28
  appendSVG(lib, options)
29
29
  }
30
30
 
31
- export const setIcon = (val, key) => {
31
+ export const setSvgIcon = (val, key) => {
32
32
  const CONFIG = getActiveConfig()
33
- if (CONFIG.useIconSprite) {
33
+ if (CONFIG.useIconSprite && !CONFIG.SEMANTIC_ICONS?.[key]) {
34
34
  return setSVG(val, key)
35
35
  } return val
36
36
  }
37
37
 
38
- export const appendIconsSprite = (LIBRARY, options = DEF_OPTIONS) => {
38
+ export const appendSvgIconsSprite = (LIBRARY, options = DEF_OPTIONS) => {
39
39
  const CONFIG = getActiveConfig()
40
40
 
41
41
  const lib = Object.keys(LIBRARY).length ? {} : CONFIG.ICONS