@castui/cast-ui 1.1.0 → 1.1.1
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/components/Typography/Typography.d.ts +1 -1
- package/dist/components/Typography/Typography.d.ts.map +1 -1
- package/dist/components/Typography/Typography.js +0 -1
- package/dist/components/Typography/Typography.js.map +1 -1
- package/dist/default.reference.json +3 -3
- package/dist/tokens/generated/default.js +3 -3
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type TextProps } from 'react-native';
|
|
2
|
-
export type TypographyVariant = 'display' | 'h1' | 'h2' | 'h3' | 'subtitle' | 'body' | 'small' | 'caption' | 'overline' | 'label'
|
|
2
|
+
export type TypographyVariant = 'display' | 'h1' | 'h2' | 'h3' | 'subtitle' | 'body' | 'small' | 'caption' | 'overline' | 'label';
|
|
3
3
|
export interface TypographyProps extends Omit<TextProps, 'style'> {
|
|
4
4
|
/** Text style variant. @default 'body' */
|
|
5
5
|
variant?: TypographyVariant;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/Typography.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,SAAS,EAAkB,MAAM,cAAc,CAAC;AAOpE,MAAM,MAAM,iBAAiB,GACzB,SAAS,GACT,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,UAAU,GACV,MAAM,GACN,OAAO,GACP,SAAS,GACT,UAAU,GACV,OAAO,
|
|
1
|
+
{"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../../src/components/Typography/Typography.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,SAAS,EAAkB,MAAM,cAAc,CAAC;AAOpE,MAAM,MAAM,iBAAiB,GACzB,SAAS,GACT,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,UAAU,GACV,MAAM,GACN,OAAO,GACP,SAAS,GACT,UAAU,GACV,OAAO,CAAC;AAEZ,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC;IAC/D,0CAA0C;IAC1C,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,2BAA2B;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,oBAAoB;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAiCD;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,EACzB,OAAgB,EAChB,KAAK,EACL,KAAK,EACL,QAAQ,EACR,GAAG,SAAS,EACb,EAAE,eAAe,2CAuBjB"}
|
|
@@ -12,7 +12,6 @@ const VARIANT_MAP = {
|
|
|
12
12
|
caption: { fontWeight: 'body', letterSpacing: 'body', fontFamily: 'interface' },
|
|
13
13
|
overline: { fontWeight: 'button', letterSpacing: 'label', fontFamily: 'interface' },
|
|
14
14
|
label: { fontWeight: 'button', letterSpacing: 'body', fontFamily: 'interface' },
|
|
15
|
-
button: { fontWeight: 'button', letterSpacing: 'label', fontFamily: 'interface' },
|
|
16
15
|
};
|
|
17
16
|
// ---------------------------------------------------------------------------
|
|
18
17
|
// Component
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Typography.js","sourceRoot":"","sources":["../../../src/components/Typography/Typography.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAkC,MAAM,cAAc,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"Typography.js","sourceRoot":"","sources":["../../../src/components/Typography/Typography.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAkC,MAAM,cAAc,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AA2CpD,MAAM,WAAW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KAAK,CAAC,QAAQ,CAAC;IAC3B,MAAM,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;IAErC,MAAM,SAAS,GAAc;QAC3B,QAAQ,EAAE,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC;QAC/B,UAAU,EAAE,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC;QACnC,aAAa,EAAE,GAAG,CAAC,aAAa,CAAC,OAAO,CAAC,aAAa,CAAC;QACvD,KAAK,EAAE,KAAK,IAAI,GAAG,CAAC,KAAK,CAAC,SAAS;QACnC,GAAG,CAAC,KAAK,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC;QAClC,GAAG,CAAC,OAAO,KAAK,UAAU,IAAI,EAAE,aAAa,EAAE,WAAW,EAAE,CAAC;QAC7D,GAAG,WAAW,CACZ,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,UAAU,CAAC,EAClC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,UAAU,CAAC,CACnC;KACF,CAAC;IAEF,OAAO,CACL,KAAC,IAAI,OAAK,SAAS,EAAE,KAAK,EAAE,SAAS,YAClC,QAAQ,GACJ,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"caption": 16,
|
|
69
69
|
"overline": 16,
|
|
70
70
|
"label": 16,
|
|
71
|
-
"button":
|
|
71
|
+
"button": 20
|
|
72
72
|
},
|
|
73
73
|
"letterSpacing": {
|
|
74
74
|
"heading": -0.02,
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
"borderWidth": 2,
|
|
131
131
|
"textSize": 16,
|
|
132
132
|
"fontWeight": 500,
|
|
133
|
-
"lineHeight":
|
|
133
|
+
"lineHeight": 20,
|
|
134
134
|
"fontFamily": "system-ui",
|
|
135
135
|
"filled": {
|
|
136
136
|
"background": "#0F172A",
|
|
@@ -279,7 +279,7 @@
|
|
|
279
279
|
"contentColor": "#FFFFFF",
|
|
280
280
|
"textSize": 12.8,
|
|
281
281
|
"fontWeight": 500,
|
|
282
|
-
"lineHeight":
|
|
282
|
+
"lineHeight": 16,
|
|
283
283
|
"fontFamily": "system-ui"
|
|
284
284
|
},
|
|
285
285
|
"chip": {
|
|
@@ -68,7 +68,7 @@ export const defaultTheme = {
|
|
|
68
68
|
caption: 16,
|
|
69
69
|
overline: 16,
|
|
70
70
|
label: 16,
|
|
71
|
-
button:
|
|
71
|
+
button: 20,
|
|
72
72
|
},
|
|
73
73
|
letterSpacing: {
|
|
74
74
|
heading: -0.02,
|
|
@@ -130,7 +130,7 @@ export const defaultTheme = {
|
|
|
130
130
|
borderWidth: 2,
|
|
131
131
|
textSize: 16,
|
|
132
132
|
fontWeight: 500,
|
|
133
|
-
lineHeight:
|
|
133
|
+
lineHeight: 20,
|
|
134
134
|
fontFamily: "system-ui",
|
|
135
135
|
filled: {
|
|
136
136
|
background: "#0F172A",
|
|
@@ -279,7 +279,7 @@ export const defaultTheme = {
|
|
|
279
279
|
contentColor: "#FFFFFF",
|
|
280
280
|
textSize: 12.8,
|
|
281
281
|
fontWeight: 500,
|
|
282
|
-
lineHeight:
|
|
282
|
+
lineHeight: 16,
|
|
283
283
|
fontFamily: "system-ui",
|
|
284
284
|
},
|
|
285
285
|
chip: {
|
package/package.json
CHANGED