@gem-sdk/core 1.23.0-staging.304 → 1.23.0-staging.307

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.
@@ -155,6 +155,7 @@ const getSingleColorVariable = (color)=>{
155
155
  return `var(--g-c-${color}, ${color})`;
156
156
  };
157
157
  function isColor(color) {
158
+ if (!color || typeof color !== 'string') return false;
158
159
  return color?.startsWith('#') || color?.startsWith('rgb') || color?.startsWith('hsl') || color?.startsWith('transparent');
159
160
  }
160
161
  const getGlobalColorStyle = (data)=>{
@@ -61,7 +61,7 @@ const composeTypographyV2 = (value, attrs)=>{
61
61
  return makeStyle.removeNullUndefined({
62
62
  ...makeStyle.makeStyle({
63
63
  fs: !attrs?.italic ? value?.fontStyle : undefined,
64
- ff: value?.fontFamily ? `var(--g-font-${value.fontFamily.replace(/ /g, '-')}, '${value.fontFamily}')` : undefined,
64
+ ff: value?.fontFamily ? `var(--g-font-${value.fontFamily.replace(/ /g, '-')}, '${value.fontFamily}')` : undefined,
65
65
  weight: !attrs?.bold ? value?.fontWeight : undefined,
66
66
  ls: value?.letterSpacing,
67
67
  lh: value?.lineHeight
@@ -153,6 +153,7 @@ const getSingleColorVariable = (color)=>{
153
153
  return `var(--g-c-${color}, ${color})`;
154
154
  };
155
155
  function isColor(color) {
156
+ if (!color || typeof color !== 'string') return false;
156
157
  return color?.startsWith('#') || color?.startsWith('rgb') || color?.startsWith('hsl') || color?.startsWith('transparent');
157
158
  }
158
159
  const getGlobalColorStyle = (data)=>{
@@ -59,7 +59,7 @@ const composeTypographyV2 = (value, attrs)=>{
59
59
  return removeNullUndefined({
60
60
  ...makeStyle({
61
61
  fs: !attrs?.italic ? value?.fontStyle : undefined,
62
- ff: value?.fontFamily ? `var(--g-font-${value.fontFamily.replace(/ /g, '-')}, '${value.fontFamily}')` : undefined,
62
+ ff: value?.fontFamily ? `var(--g-font-${value.fontFamily.replace(/ /g, '-')}, '${value.fontFamily}')` : undefined,
63
63
  weight: !attrs?.bold ? value?.fontWeight : undefined,
64
64
  ls: value?.letterSpacing,
65
65
  lh: value?.lineHeight
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/core",
3
- "version": "1.23.0-staging.304",
3
+ "version": "1.23.0-staging.307",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",