@cyber-harbour/ui 1.0.58 → 1.0.59

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyber-harbour/ui",
3
- "version": "1.0.58",
3
+ "version": "1.0.59",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -124,7 +124,7 @@ export const convertPaletteToRem = (
124
124
  result[key] = convertPaletteToRem(value, baseSize, key);
125
125
  }
126
126
  // If value is a string and contains 'px', convert it to rem
127
- else if (typeof value === 'string' && value.includes('px')) {
127
+ else if (typeof value === 'string' && /^\d+(\.\d+)?px$/.test(value.trim())) {
128
128
  result[key] = pxToRem(value, baseSize);
129
129
  }
130
130
  // Handle numeric values that represent pixels for specific properties