@uni-design-system/uni-core 6.0.0 → 6.1.0

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/esm/index.js CHANGED
@@ -2006,7 +2006,7 @@ var FontWeightMap = {
2006
2006
  };
2007
2007
  //#endregion
2008
2008
  //#region src/concepts/typography/typeface.helpers.ts
2009
- var px = (value) => `${value}px`;
2009
+ var px = (value) => typeof value === "number" ? `${value}px` : value;
2010
2010
  /**
2011
2011
  * Converts a TextStyle (numeric, design-token oriented) into a
2012
2012
  * TypeFaceDefinition (CSS-ready) so a theme's `typefaces` map can be