@genexus/mercury 0.4.2 → 0.4.3

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.
@@ -62,10 +62,12 @@ export const getIconPath = (iconMetadata, vendorAlias = MERCURY_ALIAS) => {
62
62
  */
63
63
  export const getIconPathExpanded = (iconMetadata, iconMetadataExpanded, vendorAlias = MERCURY_ALIAS) => `${getIconPath(iconMetadata, vendorAlias)}${EXPANDED_SEPARATOR}${getIconPath(iconMetadataExpanded, vendorAlias)}`;
64
64
  const getCustomFullValue = (iconName, vendorAliasOrName, suffix) => {
65
- const vendorPrefix = vendorAliasOrName === MERCURY_ALIAS ? "" : `${vendorAliasOrName}-`;
65
+ const vendorPrefix = vendorAliasOrName === MERCURY_ALIAS
66
+ ? ""
67
+ : `-${vendorAliasOrName}`;
66
68
  return suffix
67
- ? `var(--icon__${vendorPrefix}${iconName}--${suffix})`
68
- : `var(--icon__${vendorPrefix}${iconName})`;
69
+ ? `var(--icon${vendorPrefix}__${iconName}--${suffix})`
70
+ : `var(--icon${vendorPrefix}__${iconName})`;
69
71
  };
70
72
  /**
71
73
  * Parses the incoming iconMetadata, assuming Mercury as the default vendor if
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@genexus/mercury",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "Mercury is the design system designed for GeneXus IDE Web and GeneXus Next",
5
5
  "main": "dist/mercury.scss",
6
6
  "module": "dist/assets-manager.js",
@@ -14,6 +14,7 @@
14
14
  "build-no-svg": "tsc && npm run build.scss && npm run copy-tasks",
15
15
  "build.scss": "scss-bundle -e ./src/mercury.scss -o dist/mercury.scss && npm run build.bundles",
16
16
  "build.bundles": "fse copy --all --keepExisting --errorOnExist --dereference --preserveTimestamps --quiet src/bundles/scss dist/bundles/scss && sass --load-path=src --no-source-map --style compressed dist/bundles/scss:dist/bundles/css",
17
+ "start": "vite --port 5200 --open showcase/button.html",
17
18
  "validate.ci": "npm run build-no-svg",
18
19
  "icons-svg": "ssg-svg --srcDir=src/icons/svg-source --outDir=src/assets/icons/_generated/ --configFilePath=src/icons/svg-source/.config/color-states.json --showcaseDir=showcase/icons/ --showcaseBaseHref=../assets/icons/ --logDir=./log --objectFilePath=src/assets/MERCURY_ASSETS.ts",
19
20
  "icons-sass": "ssg-sass --srcDir=src/assets/icons/ --outDir=src/icons/_generated/ --configFilePath=src/icons/svg-source/.config/color-states.json",
@@ -29,7 +30,8 @@
29
30
  "chokidar-cli": "^3.0.0",
30
31
  "sass": "~1.72.0",
31
32
  "scss-bundle": "~3.1.2",
32
- "typescript": "~5.5.3"
33
+ "typescript": "~5.5.3",
34
+ "vite": "~5.3.4"
33
35
  },
34
36
  "engines": {
35
37
  "pnpm": ">=3"