@sofya-ds/tokens 1.3.2 → 1.3.5
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/index.cjs +9 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -46,7 +46,8 @@ var sofyaTextStyleNames = [
|
|
|
46
46
|
"h4",
|
|
47
47
|
"h5",
|
|
48
48
|
"body",
|
|
49
|
-
"tiny"
|
|
49
|
+
"tiny",
|
|
50
|
+
"extra-tiny"
|
|
50
51
|
];
|
|
51
52
|
var sofyaSurfaceNames = ["card", "panel", "focus"];
|
|
52
53
|
var sharedTypography = {
|
|
@@ -279,6 +280,13 @@ function createTextStyleScale(typography) {
|
|
|
279
280
|
letterSpacing: "0"
|
|
280
281
|
},
|
|
281
282
|
tiny: {
|
|
283
|
+
fontFamily: typography.sans,
|
|
284
|
+
fontSize: "14px",
|
|
285
|
+
fontWeight: "400",
|
|
286
|
+
lineHeight: "18px",
|
|
287
|
+
letterSpacing: "0.014px"
|
|
288
|
+
},
|
|
289
|
+
"extra-tiny": {
|
|
282
290
|
fontFamily: typography.sans,
|
|
283
291
|
fontSize: "12px",
|
|
284
292
|
fontWeight: "400",
|
package/dist/index.d.cts
CHANGED
|
@@ -50,7 +50,7 @@ interface SofyaTypographyScale {
|
|
|
50
50
|
display: string;
|
|
51
51
|
mono: string;
|
|
52
52
|
}
|
|
53
|
-
declare const sofyaTextStyleNames: readonly ["h1", "h2", "h3", "h4", "h5", "body", "tiny"];
|
|
53
|
+
declare const sofyaTextStyleNames: readonly ["h1", "h2", "h3", "h4", "h5", "body", "tiny", "extra-tiny"];
|
|
54
54
|
type SofyaTextStyleName = (typeof sofyaTextStyleNames)[number];
|
|
55
55
|
interface SofyaTextStyle {
|
|
56
56
|
fontFamily: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ interface SofyaTypographyScale {
|
|
|
50
50
|
display: string;
|
|
51
51
|
mono: string;
|
|
52
52
|
}
|
|
53
|
-
declare const sofyaTextStyleNames: readonly ["h1", "h2", "h3", "h4", "h5", "body", "tiny"];
|
|
53
|
+
declare const sofyaTextStyleNames: readonly ["h1", "h2", "h3", "h4", "h5", "body", "tiny", "extra-tiny"];
|
|
54
54
|
type SofyaTextStyleName = (typeof sofyaTextStyleNames)[number];
|
|
55
55
|
interface SofyaTextStyle {
|
|
56
56
|
fontFamily: string;
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,8 @@ var sofyaTextStyleNames = [
|
|
|
6
6
|
"h4",
|
|
7
7
|
"h5",
|
|
8
8
|
"body",
|
|
9
|
-
"tiny"
|
|
9
|
+
"tiny",
|
|
10
|
+
"extra-tiny"
|
|
10
11
|
];
|
|
11
12
|
var sofyaSurfaceNames = ["card", "panel", "focus"];
|
|
12
13
|
var sharedTypography = {
|
|
@@ -239,6 +240,13 @@ function createTextStyleScale(typography) {
|
|
|
239
240
|
letterSpacing: "0"
|
|
240
241
|
},
|
|
241
242
|
tiny: {
|
|
243
|
+
fontFamily: typography.sans,
|
|
244
|
+
fontSize: "14px",
|
|
245
|
+
fontWeight: "400",
|
|
246
|
+
lineHeight: "18px",
|
|
247
|
+
letterSpacing: "0.014px"
|
|
248
|
+
},
|
|
249
|
+
"extra-tiny": {
|
|
242
250
|
fontFamily: typography.sans,
|
|
243
251
|
fontSize: "12px",
|
|
244
252
|
fontWeight: "400",
|