@cleartrip/ct-design-typography 4.0.0-SNAPSHOT-rnfinaltest62.0 → 4.0.0-SNAPSHOT-reactnative.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/type.d.ts +2 -2
- package/dist/type.d.ts.map +1 -1
- package/package.json +8 -8
- package/src/type.ts +2 -2
package/dist/type.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { TextStyle,
|
|
2
|
+
import { TextStyle, Styles } from '@cleartrip/ct-design-types';
|
|
3
3
|
export declare enum TypographyVariant {
|
|
4
4
|
HD1 = "HD1",
|
|
5
5
|
HD2 = "HD2",
|
|
@@ -57,7 +57,7 @@ export type TypographyColorType = `${TypographyColor}`;
|
|
|
57
57
|
export type TypographyNodeElementType = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'div' | 'li';
|
|
58
58
|
export interface TypographyStyleConfigProps {
|
|
59
59
|
root?: TextStyle[];
|
|
60
|
-
container?:
|
|
60
|
+
container?: Styles[];
|
|
61
61
|
}
|
|
62
62
|
export interface ITypography {
|
|
63
63
|
children: ReactNode;
|
package/dist/type.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../packages/components/Typography/src/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../packages/components/Typography/src/type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAE/D,oBAAY,iBAAiB;IAC3B,GAAG,QAAQ;IACX,GAAG,QAAQ;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AE,CAAC;CACtB;AAED,MAAM,WAAW,WAAW;IAI1B,QAAQ,EAAE,SAAS,CAAC;IAKpB,OAAO,EAAE,qBAAqB,CAAC;IAK/B,KAAK,CAAC,EAAE,mBAAmB,CAAC;IAK5B,YAAY,CAAC,EAAE,OAAO,CAAC;IAKvB,SAAS,CAAC,EAAE,OAAO,CAAC;IAKpB,WAAW,CAAC,EAAE,OAAO,CAAC;IAKtB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAKrB,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,aAAa,CAAC,EAAE,OAAO,CAAC;IAKxB,KAAK,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC,CAAC;IAK3B,SAAS,CAAC,EAAE,MAAM,CAAC;IAKnB,UAAU,CAAC,EAAE,OAAO,CAAC;IAKrB,aAAa,CAAC,EAAE,yBAAyB,CAAC;IAK1C,WAAW,CAAC,EAAE,0BAA0B,CAAC;CAC1C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cleartrip/ct-design-typography",
|
|
3
|
-
"version": "4.0.0-SNAPSHOT-
|
|
3
|
+
"version": "4.0.0-SNAPSHOT-reactnative.0",
|
|
4
4
|
"description": "Typography component with enhanced styleConfig support for RNW compatibility",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"main": "dist/ct-design-typography.cjs.js",
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@emotion/react": "^11.14.0",
|
|
21
21
|
"@emotion/styled": "^11.14.0",
|
|
22
|
-
"@cleartrip/ct-design-types": "4.0.0-SNAPSHOT-
|
|
23
|
-
"@cleartrip/ct-design-theme": "4.0.0-SNAPSHOT-
|
|
24
|
-
"@cleartrip/ct-design-conditional-wrap": "4.0.0-SNAPSHOT-
|
|
25
|
-
"@cleartrip/ct-design-container": "4.0.0-SNAPSHOT-
|
|
26
|
-
"@cleartrip/ct-design-style-manager": "4.0.0-SNAPSHOT-
|
|
27
|
-
"@cleartrip/ct-design-event-propagation": "4.0.0-SNAPSHOT-
|
|
28
|
-
"@cleartrip/ct-design-common-utils": "4.0.0-SNAPSHOT-
|
|
22
|
+
"@cleartrip/ct-design-types": "4.0.0-SNAPSHOT-reactnative.0",
|
|
23
|
+
"@cleartrip/ct-design-theme": "4.0.0-SNAPSHOT-reactnative.0",
|
|
24
|
+
"@cleartrip/ct-design-conditional-wrap": "4.0.0-SNAPSHOT-reactnative.0",
|
|
25
|
+
"@cleartrip/ct-design-container": "4.0.0-SNAPSHOT-reactnative.0",
|
|
26
|
+
"@cleartrip/ct-design-style-manager": "4.0.0-SNAPSHOT-reactnative.0",
|
|
27
|
+
"@cleartrip/ct-design-event-propagation": "4.0.0-SNAPSHOT-reactnative.0",
|
|
28
|
+
"@cleartrip/ct-design-common-utils": "4.0.0-SNAPSHOT-reactnative.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@emotion/babel-plugin": "^11.12.0"
|
package/src/type.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
import { TextStyle,
|
|
3
|
+
import { TextStyle, Styles } from '@cleartrip/ct-design-types';
|
|
4
4
|
|
|
5
5
|
export enum TypographyVariant {
|
|
6
6
|
HD1 = 'HD1',
|
|
@@ -70,7 +70,7 @@ export interface TypographyStyleConfigProps {
|
|
|
70
70
|
/**
|
|
71
71
|
* Styles for the container wrapper (when clickable)
|
|
72
72
|
*/
|
|
73
|
-
container?:
|
|
73
|
+
container?: Styles[];
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
export interface ITypography {
|