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