@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
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
import { FontWeight, TextDecoration, TextTransform } from './typography.types';
|
|
2
2
|
import { SizeMap } from '../core.types';
|
|
3
|
+
/**
|
|
4
|
+
* A CSS length value: bare numbers are treated as px; strings pass through
|
|
5
|
+
* verbatim, so any unit Emotion accepts ('1.2rem', '2em', 'clamp(...)') works.
|
|
6
|
+
*/
|
|
7
|
+
export type CssLength = number | string;
|
|
3
8
|
export interface TextStyle {
|
|
4
9
|
fontFamily: string;
|
|
5
|
-
fontSize:
|
|
6
|
-
lineHeight:
|
|
10
|
+
fontSize: CssLength;
|
|
11
|
+
lineHeight: CssLength;
|
|
7
12
|
fontScale?: SizeMap;
|
|
8
13
|
fontWeight?: FontWeight;
|
|
9
14
|
fontStyle?: 'italic';
|
|
10
15
|
textTransform?: TextTransform;
|
|
11
16
|
textDecoration?: TextDecoration;
|
|
12
|
-
letterSpacing?:
|
|
13
|
-
textIndent?:
|
|
14
|
-
wordSpacing?:
|
|
17
|
+
letterSpacing?: CssLength;
|
|
18
|
+
textIndent?: CssLength;
|
|
19
|
+
wordSpacing?: CssLength;
|
|
15
20
|
whiteSpace?: 'nowrap';
|
|
16
21
|
}
|
|
17
22
|
export interface TypeFaceDefinition {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.model.d.ts","sourceRoot":"","sources":["../../../../src/concepts/typography/text.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,MAAM,WAAW,SAAS;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"text.model.d.ts","sourceRoot":"","sources":["../../../../src/concepts/typography/text.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AAExC,MAAM,WAAW,SAAS;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,UAAU,EAAE,SAAS,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,SAAS,CAAC,EAAE,QAAQ,CAAC;IACrB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,UAAU,CAAC,EAAE,QAAQ,CAAC;CACvB;AAED,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,WAAW,CAAC;IAC5B,SAAS,CAAC,EAAE,QAAQ,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeface.helpers.d.ts","sourceRoot":"","sources":["../../../../src/concepts/typography/typeface.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"typeface.helpers.d.ts","sourceRoot":"","sources":["../../../../src/concepts/typography/typeface.helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,SAAS,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAI7E;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,OAAO,SAAS,KAAG,kBAQ5C,CAAC;AAEH,eAAO,MAAM,WAAW,GACtB,YAAY,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,KACpC,MAAM,CAAC,MAAM,EAAE,kBAAkB,CAC8D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typeface.helpers.spec.d.ts","sourceRoot":"","sources":["../../../../src/concepts/typography/typeface.helpers.spec.ts"],"names":[],"mappings":""}
|