@gympass/yoga 7.103.0 → 7.104.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/cjs/Text/Text.theme.js +33 -12
- package/cjs/Text/native/Text.js +44 -22
- package/cjs/Text/native/Text.test.js +17 -3
- package/cjs/Text/native/index.js +8 -0
- package/cjs/Text/textStyle.android.js +2 -0
- package/cjs/Text/textStyle.ios.js +2 -0
- package/cjs/Text/textStyle.web.js +2 -0
- package/cjs/Text/web/Text.js +44 -22
- package/cjs/Text/web/Text.test.js +13 -3
- package/cjs/Text/web/index.js +8 -0
- package/esm/Text/Text.theme.js +33 -12
- package/esm/Text/native/Text.js +40 -22
- package/esm/Text/native/Text.test.js +17 -3
- package/esm/Text/native/index.js +17 -9
- package/esm/Text/textStyle.android.js +2 -0
- package/esm/Text/textStyle.ios.js +2 -0
- package/esm/Text/textStyle.web.js +2 -0
- package/esm/Text/web/Text.js +40 -22
- package/esm/Text/web/Text.test.js +13 -3
- package/esm/Text/web/index.js +17 -9
- package/package.json +2 -2
- package/typings/NavigationMenu/web/Item/styles.d.ts +13 -7
- package/typings/index.d.ts +29 -19
package/cjs/Text/Text.theme.js
CHANGED
|
@@ -77,6 +77,39 @@ const Text = ({ fontSizes, lineHeights, fontWeights }) => ({
|
|
|
77
77
|
lineHeight: lineHeights.large,
|
|
78
78
|
fontWeight: fontWeights.medium
|
|
79
79
|
},
|
|
80
|
+
body1: {
|
|
81
|
+
fontsize: fontSizes.medium,
|
|
82
|
+
lineHeight: lineHeights.medium,
|
|
83
|
+
fontWeight: fontWeights.medium
|
|
84
|
+
},
|
|
85
|
+
body2: {
|
|
86
|
+
fontsize: fontSizes.small,
|
|
87
|
+
lineHeight: lineHeights.small,
|
|
88
|
+
fontWeight: fontWeights.medium
|
|
89
|
+
},
|
|
90
|
+
caption: {
|
|
91
|
+
fontsize: fontSizes.xsmall,
|
|
92
|
+
lineHeight: lineHeights.xsmall,
|
|
93
|
+
fontWeight: fontWeights.regular
|
|
94
|
+
},
|
|
95
|
+
overline: {
|
|
96
|
+
fontsize: fontSizes.xsmall,
|
|
97
|
+
lineHeight: lineHeights.xsmall,
|
|
98
|
+
fontWeight: fontWeights.bold
|
|
99
|
+
},
|
|
100
|
+
sectionTitle: {
|
|
101
|
+
fontsize: fontSizes.xsmall,
|
|
102
|
+
lineHeight: lineHeights.xsmall,
|
|
103
|
+
fontWeight: fontWeights.medium,
|
|
104
|
+
letterSpacing: 1,
|
|
105
|
+
textTransform: "uppercase"
|
|
106
|
+
},
|
|
107
|
+
smallestException: {
|
|
108
|
+
fontsize: fontSizes.xxsmall,
|
|
109
|
+
lineHeight: lineHeights.xxsmall,
|
|
110
|
+
fontWeight: fontWeights.regular
|
|
111
|
+
},
|
|
112
|
+
// deprecated, please don't use
|
|
80
113
|
p: {
|
|
81
114
|
fontsize: fontSizes.medium,
|
|
82
115
|
lineHeight: lineHeights.medium,
|
|
@@ -106,18 +139,6 @@ const Text = ({ fontSizes, lineHeights, fontWeights }) => ({
|
|
|
106
139
|
},
|
|
107
140
|
black: {
|
|
108
141
|
fontWeight: fontWeights.black
|
|
109
|
-
},
|
|
110
|
-
sectionTitle: {
|
|
111
|
-
fontsize: fontSizes.xsmall,
|
|
112
|
-
lineHeight: lineHeights.xsmall,
|
|
113
|
-
fontWeight: fontWeights.medium,
|
|
114
|
-
letterSpacing: 1,
|
|
115
|
-
textTransform: "uppercase"
|
|
116
|
-
},
|
|
117
|
-
smallestException: {
|
|
118
|
-
fontsize: fontSizes.xxsmall,
|
|
119
|
-
lineHeight: lineHeights.xxsmall,
|
|
120
|
-
fontWeight: fontWeights.regular
|
|
121
142
|
}
|
|
122
143
|
});
|
|
123
144
|
var Text_theme_default = Text;
|
package/cjs/Text/native/Text.js
CHANGED
|
@@ -43,7 +43,10 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
43
43
|
var Text_exports = {};
|
|
44
44
|
__export(Text_exports, {
|
|
45
45
|
Black: () => Black,
|
|
46
|
+
Body1: () => Body1,
|
|
47
|
+
Body2: () => Body2,
|
|
46
48
|
Bold: () => Bold,
|
|
49
|
+
Caption: () => Caption,
|
|
47
50
|
Display1: () => Display1,
|
|
48
51
|
Display2: () => Display2,
|
|
49
52
|
Display3: () => Display3,
|
|
@@ -56,6 +59,7 @@ __export(Text_exports, {
|
|
|
56
59
|
H5: () => H5,
|
|
57
60
|
Light: () => Light,
|
|
58
61
|
Medium: () => Medium,
|
|
62
|
+
Overline: () => Overline,
|
|
59
63
|
Regular: () => Regular,
|
|
60
64
|
SectionTitle: () => SectionTitle,
|
|
61
65
|
Small: () => Small,
|
|
@@ -75,6 +79,16 @@ const styledText = (type) => import_styled_components.default.Text`
|
|
|
75
79
|
${(0, import_textStyle.default)(type)}
|
|
76
80
|
${import_yoga_system.system}
|
|
77
81
|
`;
|
|
82
|
+
const Display1 = styledText("display1");
|
|
83
|
+
Display1.displayName = "Text.Display1";
|
|
84
|
+
const Display2 = styledText("display2");
|
|
85
|
+
Display2.displayName = "Text.Display2";
|
|
86
|
+
const Display3 = styledText("display3");
|
|
87
|
+
Display3.displayName = "Text.Display3";
|
|
88
|
+
const Display4 = styledText("display4");
|
|
89
|
+
Display4.displayName = "Text.Display4";
|
|
90
|
+
const DisplayNumber = styledText("displayNumber");
|
|
91
|
+
DisplayNumber.displayName = "Text.DisplayNumber";
|
|
78
92
|
const H1 = styledText("h1");
|
|
79
93
|
H1.displayName = "Text.H1";
|
|
80
94
|
const H2 = styledText("h2");
|
|
@@ -85,6 +99,18 @@ const H4 = styledText("h4");
|
|
|
85
99
|
H4.displayName = "Text.H4";
|
|
86
100
|
const H5 = styledText("h5");
|
|
87
101
|
H5.displayName = "Text.H5";
|
|
102
|
+
const Body1 = styledText("body1");
|
|
103
|
+
Body1.displayName = "Text.Body1";
|
|
104
|
+
const Body2 = styledText("body2");
|
|
105
|
+
Body2.displayName = "Text.Body2";
|
|
106
|
+
const Caption = styledText("caption");
|
|
107
|
+
Caption.displayName = "Text.caption";
|
|
108
|
+
const Overline = styledText("overline");
|
|
109
|
+
Overline.overline = "Text.DisplayNumber";
|
|
110
|
+
const SectionTitle = styledText("sectionTitle");
|
|
111
|
+
SectionTitle.displayName = "Text.SectionTitle";
|
|
112
|
+
const SmallestException = styledText("smallestException");
|
|
113
|
+
SmallestException.displayName = "Text.SmallestException";
|
|
88
114
|
const Small = styledText("small");
|
|
89
115
|
Small.displayName = "Text.Small";
|
|
90
116
|
const Tiny = styledText("tiny");
|
|
@@ -99,28 +125,25 @@ const Bold = styledText("bold");
|
|
|
99
125
|
Bold.displayName = "Text.Bold";
|
|
100
126
|
const Black = styledText("black");
|
|
101
127
|
Black.displayName = "Text.Black";
|
|
102
|
-
const SectionTitle = styledText("sectionTitle");
|
|
103
|
-
SectionTitle.displayName = "Text.SectionTitle";
|
|
104
|
-
const SmallestException = styledText("smallestException");
|
|
105
|
-
SmallestException.displayName = "Text.SmallestException";
|
|
106
|
-
const Display1 = styledText("display1");
|
|
107
|
-
Display1.displayName = "Text.Display1";
|
|
108
|
-
const Display2 = styledText("display2");
|
|
109
|
-
Display2.displayName = "Text.Display2";
|
|
110
|
-
const Display3 = styledText("display3");
|
|
111
|
-
Display3.displayName = "Text.Display3";
|
|
112
|
-
const Display4 = styledText("display4");
|
|
113
|
-
Display4.displayName = "Text.Display4";
|
|
114
|
-
const DisplayNumber = styledText("displayNumber");
|
|
115
|
-
DisplayNumber.displayName = "Text.DisplayNumber";
|
|
116
128
|
const TextRenderer = styledText("p");
|
|
117
129
|
const Text = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TextRenderer, __spreadValues({}, props));
|
|
118
130
|
Text.displayName = "Text";
|
|
131
|
+
Text.Display1 = Display1;
|
|
132
|
+
Text.Display2 = Display2;
|
|
133
|
+
Text.Display3 = Display3;
|
|
134
|
+
Text.Display4 = Display4;
|
|
135
|
+
Text.DisplayNumber = DisplayNumber;
|
|
119
136
|
Text.H1 = H1;
|
|
120
137
|
Text.H2 = H2;
|
|
121
138
|
Text.H3 = H3;
|
|
122
139
|
Text.H4 = H4;
|
|
123
140
|
Text.H5 = H5;
|
|
141
|
+
Text.Body1 = Body1;
|
|
142
|
+
Text.Body2 = Body2;
|
|
143
|
+
Text.Caption = Caption;
|
|
144
|
+
Text.Overline = Overline;
|
|
145
|
+
Text.SectionTitle = SectionTitle;
|
|
146
|
+
Text.SmallestException = SmallestException;
|
|
124
147
|
Text.Small = Small;
|
|
125
148
|
Text.Tiny = Tiny;
|
|
126
149
|
Text.Light = Light;
|
|
@@ -128,13 +151,6 @@ Text.Regular = Regular;
|
|
|
128
151
|
Text.Medium = Medium;
|
|
129
152
|
Text.Bold = Bold;
|
|
130
153
|
Text.Black = Black;
|
|
131
|
-
Text.SectionTitle = SectionTitle;
|
|
132
|
-
Text.SmallestException = SmallestException;
|
|
133
|
-
Text.Display1 = Display1;
|
|
134
|
-
Text.Display2 = Display2;
|
|
135
|
-
Text.Display3 = Display3;
|
|
136
|
-
Text.Display4 = Display4;
|
|
137
|
-
Text.DisplayNumber = DisplayNumber;
|
|
138
154
|
const fontSizes = (0, import_prop_types.oneOf)([
|
|
139
155
|
"xxsmall",
|
|
140
156
|
"xsmall",
|
|
@@ -174,6 +190,7 @@ Text.propTypes = {
|
|
|
174
190
|
size: (0, import_shared.deprecated)(fontSizes, "Use `fontSize` system prop instead"),
|
|
175
191
|
/** set the font-weight to regular */
|
|
176
192
|
light: import_prop_types.bool,
|
|
193
|
+
bold: import_prop_types.bool,
|
|
177
194
|
fontSize: fontSizes
|
|
178
195
|
};
|
|
179
196
|
Text.defaultProps = {
|
|
@@ -181,12 +198,16 @@ Text.defaultProps = {
|
|
|
181
198
|
variant: void 0,
|
|
182
199
|
size: void 0,
|
|
183
200
|
fontSize: "medium",
|
|
184
|
-
light: false
|
|
201
|
+
light: false,
|
|
202
|
+
bold: false
|
|
185
203
|
};
|
|
186
204
|
// Annotate the CommonJS export names for ESM import in node:
|
|
187
205
|
0 && (module.exports = {
|
|
188
206
|
Black,
|
|
207
|
+
Body1,
|
|
208
|
+
Body2,
|
|
189
209
|
Bold,
|
|
210
|
+
Caption,
|
|
190
211
|
Display1,
|
|
191
212
|
Display2,
|
|
192
213
|
Display3,
|
|
@@ -199,6 +220,7 @@ Text.defaultProps = {
|
|
|
199
220
|
H5,
|
|
200
221
|
Light,
|
|
201
222
|
Medium,
|
|
223
|
+
Overline,
|
|
202
224
|
Regular,
|
|
203
225
|
SectionTitle,
|
|
204
226
|
Small,
|
|
@@ -40,15 +40,19 @@ describe("<Text />", () => {
|
|
|
40
40
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.H2, { children: "Live the mission" }),
|
|
41
41
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.H3, { children: "Live the mission" }),
|
|
42
42
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.H4, { children: "Live the mission" }),
|
|
43
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.Body1, { children: "Live the mission" }),
|
|
44
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.Body2, { children: "Live the mission" }),
|
|
45
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.Caption, { children: "Live the mission" }),
|
|
46
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.Overline, { children: "Live the mission" }),
|
|
47
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.SectionTitle, { children: "Live the mission" }),
|
|
48
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.SmallestException, { children: "Live the mission" }),
|
|
43
49
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text, { children: "Live the mission" }),
|
|
44
50
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.Small, { children: "Live the mission" }),
|
|
45
51
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.Tiny, { children: "Live the mission" }),
|
|
46
52
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.Regular, { children: "Live the mission" }),
|
|
47
53
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.Medium, { children: "Live the mission" }),
|
|
48
54
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.Bold, { children: "Live the mission" }),
|
|
49
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.Black, { children: "Live the mission" })
|
|
50
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.SectionTitle, { children: "Live the mission" }),
|
|
51
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.SmallestException, { children: "Live the mission" })
|
|
55
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.Black, { children: "Live the mission" })
|
|
52
56
|
] })
|
|
53
57
|
);
|
|
54
58
|
expect(toJSON()).toMatchSnapshot();
|
|
@@ -174,5 +178,15 @@ describe("<Text />", () => {
|
|
|
174
178
|
);
|
|
175
179
|
expect(toJSON()).toMatchSnapshot();
|
|
176
180
|
});
|
|
181
|
+
it("should match snapshot with Text bold", () => {
|
|
182
|
+
const { toJSON } = (0, import_react_native.render)(
|
|
183
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import__.ThemeProvider, { children: [
|
|
184
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.H1, { bold: true, children: "Live the mission" }),
|
|
185
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.H2, { bold: true, children: "Live the mission" }),
|
|
186
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.H3, { bold: true, children: "Live the mission" })
|
|
187
|
+
] })
|
|
188
|
+
);
|
|
189
|
+
expect(toJSON()).toMatchSnapshot();
|
|
190
|
+
});
|
|
177
191
|
});
|
|
178
192
|
});
|
package/cjs/Text/native/index.js
CHANGED
|
@@ -19,7 +19,10 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
19
19
|
var native_exports = {};
|
|
20
20
|
__export(native_exports, {
|
|
21
21
|
Black: () => import_Text.Black,
|
|
22
|
+
Body1: () => import_Text.Body1,
|
|
23
|
+
Body2: () => import_Text.Body2,
|
|
22
24
|
Bold: () => import_Text.Bold,
|
|
25
|
+
Caption: () => import_Text.Caption,
|
|
23
26
|
Display1: () => import_Text.Display1,
|
|
24
27
|
Display2: () => import_Text.Display2,
|
|
25
28
|
Display3: () => import_Text.Display3,
|
|
@@ -32,6 +35,7 @@ __export(native_exports, {
|
|
|
32
35
|
H5: () => import_Text.H5,
|
|
33
36
|
Light: () => import_Text.Light,
|
|
34
37
|
Medium: () => import_Text.Medium,
|
|
38
|
+
Overline: () => import_Text.Overline,
|
|
35
39
|
Regular: () => import_Text.Regular,
|
|
36
40
|
SectionTitle: () => import_Text.SectionTitle,
|
|
37
41
|
Small: () => import_Text.Small,
|
|
@@ -44,7 +48,10 @@ var import_Text = require("./Text");
|
|
|
44
48
|
// Annotate the CommonJS export names for ESM import in node:
|
|
45
49
|
0 && (module.exports = {
|
|
46
50
|
Black,
|
|
51
|
+
Body1,
|
|
52
|
+
Body2,
|
|
47
53
|
Bold,
|
|
54
|
+
Caption,
|
|
48
55
|
Display1,
|
|
49
56
|
Display2,
|
|
50
57
|
Display3,
|
|
@@ -57,6 +64,7 @@ var import_Text = require("./Text");
|
|
|
57
64
|
H5,
|
|
58
65
|
Light,
|
|
59
66
|
Medium,
|
|
67
|
+
Overline,
|
|
60
68
|
Regular,
|
|
61
69
|
SectionTitle,
|
|
62
70
|
Small,
|
|
@@ -37,6 +37,7 @@ const textStyle = (type) => () => import_styled_components.css`
|
|
|
37
37
|
${(0, import_sharedTextStyle.default)(type)};
|
|
38
38
|
${({
|
|
39
39
|
light,
|
|
40
|
+
bold,
|
|
40
41
|
theme: {
|
|
41
42
|
yoga: {
|
|
42
43
|
baseFont,
|
|
@@ -59,6 +60,7 @@ const textStyle = (type) => () => import_styled_components.css`
|
|
|
59
60
|
font-family: '${finalFontFamily}';
|
|
60
61
|
|
|
61
62
|
${light ? `font-family: ${baseFont.family}-${fontWeights.light};` : ""}
|
|
63
|
+
${bold ? `font-family: ${baseFont.family}-${fontWeights.bold};` : ""}
|
|
62
64
|
`;
|
|
63
65
|
}}
|
|
64
66
|
`;
|
|
@@ -37,6 +37,7 @@ const textStyle = (type) => () => import_styled_components.css`
|
|
|
37
37
|
${(0, import_sharedTextStyle.default)(type)};
|
|
38
38
|
${({
|
|
39
39
|
light,
|
|
40
|
+
bold,
|
|
40
41
|
theme: {
|
|
41
42
|
yoga: {
|
|
42
43
|
baseFont,
|
|
@@ -54,6 +55,7 @@ const textStyle = (type) => () => import_styled_components.css`
|
|
|
54
55
|
font-family: ${finalFontFamily};
|
|
55
56
|
${fontWeight ? `font-weight: ${fontWeight};` : ""}
|
|
56
57
|
${light ? `font-weight: ${fontWeights.light};` : ""}
|
|
58
|
+
${bold ? `font-weight: ${fontWeights.bold};` : ""}
|
|
57
59
|
`;
|
|
58
60
|
}}
|
|
59
61
|
`;
|
|
@@ -38,6 +38,7 @@ const textStyle = (type) => () => import_styled_components.css`
|
|
|
38
38
|
|
|
39
39
|
${({
|
|
40
40
|
light,
|
|
41
|
+
bold,
|
|
41
42
|
numberOfLines,
|
|
42
43
|
theme: {
|
|
43
44
|
yoga: {
|
|
@@ -62,6 +63,7 @@ const textStyle = (type) => () => import_styled_components.css`
|
|
|
62
63
|
font-family: ${fontFamily ? `${fontFamily}, ` : ""}${baseFont.family};
|
|
63
64
|
${fontWeight ? `font-weight: ${fontWeight};` : ""}
|
|
64
65
|
${light ? `font-weight: ${fontWeights.light};` : ""}
|
|
66
|
+
${bold ? `font-weight: ${fontWeights.bold};` : ""}
|
|
65
67
|
`;
|
|
66
68
|
}}
|
|
67
69
|
`;
|
package/cjs/Text/web/Text.js
CHANGED
|
@@ -43,7 +43,10 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
43
43
|
var Text_exports = {};
|
|
44
44
|
__export(Text_exports, {
|
|
45
45
|
Black: () => Black,
|
|
46
|
+
Body1: () => Body1,
|
|
47
|
+
Body2: () => Body2,
|
|
46
48
|
Bold: () => Bold,
|
|
49
|
+
Caption: () => Caption,
|
|
47
50
|
Display1: () => Display1,
|
|
48
51
|
Display2: () => Display2,
|
|
49
52
|
Display3: () => Display3,
|
|
@@ -56,6 +59,7 @@ __export(Text_exports, {
|
|
|
56
59
|
H5: () => H5,
|
|
57
60
|
Light: () => Light,
|
|
58
61
|
Medium: () => Medium,
|
|
62
|
+
Overline: () => Overline,
|
|
59
63
|
Regular: () => Regular,
|
|
60
64
|
SectionTitle: () => SectionTitle,
|
|
61
65
|
Small: () => Small,
|
|
@@ -78,6 +82,16 @@ const styledText = (type, element = false) => (element ? import_styled_component
|
|
|
78
82
|
${(0, import_textStyle.default)(type)}
|
|
79
83
|
${import_yoga_system.system}
|
|
80
84
|
`;
|
|
85
|
+
const Display1 = styledText("display1");
|
|
86
|
+
Display1.displayName = "Text.Display1";
|
|
87
|
+
const Display2 = styledText("display2");
|
|
88
|
+
Display2.displayName = "Text.Display2";
|
|
89
|
+
const Display3 = styledText("display3");
|
|
90
|
+
Display3.displayName = "Text.Display3";
|
|
91
|
+
const Display4 = styledText("display4");
|
|
92
|
+
Display4.displayName = "Text.Display4";
|
|
93
|
+
const DisplayNumber = styledText("displayNumber");
|
|
94
|
+
DisplayNumber.displayName = "Text.DisplayNumber";
|
|
81
95
|
const H1 = styledText("h1", true);
|
|
82
96
|
H1.displayName = "Text.H1";
|
|
83
97
|
const H2 = styledText("h2", true);
|
|
@@ -88,6 +102,18 @@ const H4 = styledText("h4", true);
|
|
|
88
102
|
H4.displayName = "Text.H4";
|
|
89
103
|
const H5 = styledText("h5", true);
|
|
90
104
|
H5.displayName = "Text.H5";
|
|
105
|
+
const Body1 = styledText("body1");
|
|
106
|
+
Body1.displayName = "Text.Body1";
|
|
107
|
+
const Body2 = styledText("body2");
|
|
108
|
+
Body2.displayName = "Text.Body2";
|
|
109
|
+
const Caption = styledText("caption");
|
|
110
|
+
Caption.displayName = "Text.caption";
|
|
111
|
+
const Overline = styledText("overline");
|
|
112
|
+
Overline.overline = "Text.DisplayNumber";
|
|
113
|
+
const SectionTitle = styledText("sectionTitle");
|
|
114
|
+
SectionTitle.displayName = "Text.SectionTitle";
|
|
115
|
+
const SmallestException = styledText("smallestException");
|
|
116
|
+
SmallestException.displayName = "Text.SmallestException";
|
|
91
117
|
const Small = styledText("small");
|
|
92
118
|
Small.displayName = "Text.Small";
|
|
93
119
|
const Tiny = styledText("tiny");
|
|
@@ -102,28 +128,25 @@ const Bold = styledText("bold");
|
|
|
102
128
|
Bold.displayName = "Text.Bold";
|
|
103
129
|
const Black = styledText("black");
|
|
104
130
|
Black.displayName = "Text.Black";
|
|
105
|
-
const SectionTitle = styledText("sectionTitle");
|
|
106
|
-
SectionTitle.displayName = "Text.SectionTitle";
|
|
107
|
-
const SmallestException = styledText("smallestException");
|
|
108
|
-
SmallestException.displayName = "Text.SmallestException";
|
|
109
|
-
const Display1 = styledText("display1");
|
|
110
|
-
Display1.displayName = "Text.Display1";
|
|
111
|
-
const Display2 = styledText("display2");
|
|
112
|
-
Display2.displayName = "Text.Display2";
|
|
113
|
-
const Display3 = styledText("display3");
|
|
114
|
-
Display3.displayName = "Text.Display3";
|
|
115
|
-
const Display4 = styledText("display4");
|
|
116
|
-
Display4.displayName = "Text.Display4";
|
|
117
|
-
const DisplayNumber = styledText("displayNumber");
|
|
118
|
-
DisplayNumber.displayName = "Text.DisplayNumber";
|
|
119
131
|
const TextRenderer = styledText("p");
|
|
120
132
|
const Text = (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TextRenderer, __spreadValues({}, props));
|
|
121
133
|
Text.displayName = "Text";
|
|
134
|
+
Text.Display1 = Display1;
|
|
135
|
+
Text.Display2 = Display2;
|
|
136
|
+
Text.Display3 = Display3;
|
|
137
|
+
Text.Display4 = Display4;
|
|
138
|
+
Text.DisplayNumber = DisplayNumber;
|
|
122
139
|
Text.H1 = H1;
|
|
123
140
|
Text.H2 = H2;
|
|
124
141
|
Text.H3 = H3;
|
|
125
142
|
Text.H4 = H4;
|
|
126
143
|
Text.H5 = H5;
|
|
144
|
+
Text.Body1 = Body1;
|
|
145
|
+
Text.Body2 = Body2;
|
|
146
|
+
Text.Caption = Caption;
|
|
147
|
+
Text.Overline = Overline;
|
|
148
|
+
Text.SectionTitle = SectionTitle;
|
|
149
|
+
Text.SmallestException = SmallestException;
|
|
127
150
|
Text.Small = Small;
|
|
128
151
|
Text.Tiny = Tiny;
|
|
129
152
|
Text.Light = Light;
|
|
@@ -131,13 +154,6 @@ Text.Regular = Regular;
|
|
|
131
154
|
Text.Medium = Medium;
|
|
132
155
|
Text.Bold = Bold;
|
|
133
156
|
Text.Black = Black;
|
|
134
|
-
Text.SectionTitle = SectionTitle;
|
|
135
|
-
Text.SmallestException = SmallestException;
|
|
136
|
-
Text.Display1 = Display1;
|
|
137
|
-
Text.Display2 = Display2;
|
|
138
|
-
Text.Display3 = Display3;
|
|
139
|
-
Text.Display4 = Display4;
|
|
140
|
-
Text.DisplayNumber = DisplayNumber;
|
|
141
157
|
const fontSizes = (0, import_prop_types.oneOf)([
|
|
142
158
|
"xxsmall",
|
|
143
159
|
"xsmall",
|
|
@@ -178,6 +194,7 @@ Text.propTypes = {
|
|
|
178
194
|
size: (0, import_shared.deprecated)(fontSizes, "Use `fontSize` system prop instead"),
|
|
179
195
|
/** set the font-weight to regular */
|
|
180
196
|
light: import_prop_types.bool,
|
|
197
|
+
bold: import_prop_types.bool,
|
|
181
198
|
fontSize: fontSizes
|
|
182
199
|
};
|
|
183
200
|
Text.defaultProps = {
|
|
@@ -186,12 +203,16 @@ Text.defaultProps = {
|
|
|
186
203
|
size: void 0,
|
|
187
204
|
fontSize: "medium",
|
|
188
205
|
numberOfLines: void 0,
|
|
189
|
-
light: false
|
|
206
|
+
light: false,
|
|
207
|
+
bold: false
|
|
190
208
|
};
|
|
191
209
|
// Annotate the CommonJS export names for ESM import in node:
|
|
192
210
|
0 && (module.exports = {
|
|
193
211
|
Black,
|
|
212
|
+
Body1,
|
|
213
|
+
Body2,
|
|
194
214
|
Bold,
|
|
215
|
+
Caption,
|
|
195
216
|
Display1,
|
|
196
217
|
Display2,
|
|
197
218
|
Display3,
|
|
@@ -204,6 +225,7 @@ Text.defaultProps = {
|
|
|
204
225
|
H5,
|
|
205
226
|
Light,
|
|
206
227
|
Medium,
|
|
228
|
+
Overline,
|
|
207
229
|
Regular,
|
|
208
230
|
SectionTitle,
|
|
209
231
|
Small,
|
|
@@ -41,15 +41,19 @@ describe("<Text />", () => {
|
|
|
41
41
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.H3, { children: "Live the mission" }),
|
|
42
42
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.H4, { children: "Live the mission" }),
|
|
43
43
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.H5, { children: "Live the mission" }),
|
|
44
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.Body1, { children: "Live the mission" }),
|
|
45
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.Body2, { children: "Live the mission" }),
|
|
46
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.Caption, { children: "Live the mission" }),
|
|
47
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.Overline, { children: "Live the mission" }),
|
|
48
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.SectionTitle, { children: "Live the mission" }),
|
|
49
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.SmallestException, { children: "Live the mission" }),
|
|
44
50
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text, { children: "Live the mission" }),
|
|
45
51
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.Small, { children: "Live the mission" }),
|
|
46
52
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.Tiny, { children: "Live the mission" }),
|
|
47
53
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.Regular, { children: "Live the mission" }),
|
|
48
54
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.Medium, { children: "Live the mission" }),
|
|
49
55
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.Bold, { children: "Live the mission" }),
|
|
50
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.Black, { children: "Live the mission" })
|
|
51
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.SectionTitle, { children: "Live the mission" }),
|
|
52
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.SmallestException, { children: "Live the mission" })
|
|
56
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.Black, { children: "Live the mission" })
|
|
53
57
|
] })
|
|
54
58
|
);
|
|
55
59
|
expect(container).toMatchSnapshot();
|
|
@@ -175,5 +179,11 @@ describe("<Text />", () => {
|
|
|
175
179
|
);
|
|
176
180
|
expect(container).toMatchSnapshot();
|
|
177
181
|
});
|
|
182
|
+
it("should match snapshot with Text bold", () => {
|
|
183
|
+
const { container } = (0, import_react2.render)(
|
|
184
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__.ThemeProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import__2.Text.H1, { bold: true, children: "Live the mission" }) })
|
|
185
|
+
);
|
|
186
|
+
expect(container).toMatchSnapshot();
|
|
187
|
+
});
|
|
178
188
|
});
|
|
179
189
|
});
|
package/cjs/Text/web/index.js
CHANGED
|
@@ -19,7 +19,10 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
19
19
|
var web_exports = {};
|
|
20
20
|
__export(web_exports, {
|
|
21
21
|
Black: () => import_Text.Black,
|
|
22
|
+
Body1: () => import_Text.Body1,
|
|
23
|
+
Body2: () => import_Text.Body2,
|
|
22
24
|
Bold: () => import_Text.Bold,
|
|
25
|
+
Caption: () => import_Text.Caption,
|
|
23
26
|
Display1: () => import_Text.Display1,
|
|
24
27
|
Display2: () => import_Text.Display2,
|
|
25
28
|
Display3: () => import_Text.Display3,
|
|
@@ -32,6 +35,7 @@ __export(web_exports, {
|
|
|
32
35
|
H5: () => import_Text.H5,
|
|
33
36
|
Light: () => import_Text.Light,
|
|
34
37
|
Medium: () => import_Text.Medium,
|
|
38
|
+
Overline: () => import_Text.Overline,
|
|
35
39
|
Regular: () => import_Text.Regular,
|
|
36
40
|
SectionTitle: () => import_Text.SectionTitle,
|
|
37
41
|
Small: () => import_Text.Small,
|
|
@@ -44,7 +48,10 @@ var import_Text = require("./Text");
|
|
|
44
48
|
// Annotate the CommonJS export names for ESM import in node:
|
|
45
49
|
0 && (module.exports = {
|
|
46
50
|
Black,
|
|
51
|
+
Body1,
|
|
52
|
+
Body2,
|
|
47
53
|
Bold,
|
|
54
|
+
Caption,
|
|
48
55
|
Display1,
|
|
49
56
|
Display2,
|
|
50
57
|
Display3,
|
|
@@ -57,6 +64,7 @@ var import_Text = require("./Text");
|
|
|
57
64
|
H5,
|
|
58
65
|
Light,
|
|
59
66
|
Medium,
|
|
67
|
+
Overline,
|
|
60
68
|
Regular,
|
|
61
69
|
SectionTitle,
|
|
62
70
|
Small,
|
package/esm/Text/Text.theme.js
CHANGED
|
@@ -54,6 +54,39 @@ const Text = ({ fontSizes, lineHeights, fontWeights }) => ({
|
|
|
54
54
|
lineHeight: lineHeights.large,
|
|
55
55
|
fontWeight: fontWeights.medium
|
|
56
56
|
},
|
|
57
|
+
body1: {
|
|
58
|
+
fontsize: fontSizes.medium,
|
|
59
|
+
lineHeight: lineHeights.medium,
|
|
60
|
+
fontWeight: fontWeights.medium
|
|
61
|
+
},
|
|
62
|
+
body2: {
|
|
63
|
+
fontsize: fontSizes.small,
|
|
64
|
+
lineHeight: lineHeights.small,
|
|
65
|
+
fontWeight: fontWeights.medium
|
|
66
|
+
},
|
|
67
|
+
caption: {
|
|
68
|
+
fontsize: fontSizes.xsmall,
|
|
69
|
+
lineHeight: lineHeights.xsmall,
|
|
70
|
+
fontWeight: fontWeights.regular
|
|
71
|
+
},
|
|
72
|
+
overline: {
|
|
73
|
+
fontsize: fontSizes.xsmall,
|
|
74
|
+
lineHeight: lineHeights.xsmall,
|
|
75
|
+
fontWeight: fontWeights.bold
|
|
76
|
+
},
|
|
77
|
+
sectionTitle: {
|
|
78
|
+
fontsize: fontSizes.xsmall,
|
|
79
|
+
lineHeight: lineHeights.xsmall,
|
|
80
|
+
fontWeight: fontWeights.medium,
|
|
81
|
+
letterSpacing: 1,
|
|
82
|
+
textTransform: "uppercase"
|
|
83
|
+
},
|
|
84
|
+
smallestException: {
|
|
85
|
+
fontsize: fontSizes.xxsmall,
|
|
86
|
+
lineHeight: lineHeights.xxsmall,
|
|
87
|
+
fontWeight: fontWeights.regular
|
|
88
|
+
},
|
|
89
|
+
// deprecated, please don't use
|
|
57
90
|
p: {
|
|
58
91
|
fontsize: fontSizes.medium,
|
|
59
92
|
lineHeight: lineHeights.medium,
|
|
@@ -83,18 +116,6 @@ const Text = ({ fontSizes, lineHeights, fontWeights }) => ({
|
|
|
83
116
|
},
|
|
84
117
|
black: {
|
|
85
118
|
fontWeight: fontWeights.black
|
|
86
|
-
},
|
|
87
|
-
sectionTitle: {
|
|
88
|
-
fontsize: fontSizes.xsmall,
|
|
89
|
-
lineHeight: lineHeights.xsmall,
|
|
90
|
-
fontWeight: fontWeights.medium,
|
|
91
|
-
letterSpacing: 1,
|
|
92
|
-
textTransform: "uppercase"
|
|
93
|
-
},
|
|
94
|
-
smallestException: {
|
|
95
|
-
fontsize: fontSizes.xxsmall,
|
|
96
|
-
lineHeight: lineHeights.xxsmall,
|
|
97
|
-
fontWeight: fontWeights.regular
|
|
98
119
|
}
|
|
99
120
|
});
|
|
100
121
|
var Text_theme_default = Text;
|
package/esm/Text/native/Text.js
CHANGED
|
@@ -25,6 +25,16 @@ const styledText = (type) => styled.Text`
|
|
|
25
25
|
${textStyle(type)}
|
|
26
26
|
${system}
|
|
27
27
|
`;
|
|
28
|
+
const Display1 = styledText("display1");
|
|
29
|
+
Display1.displayName = "Text.Display1";
|
|
30
|
+
const Display2 = styledText("display2");
|
|
31
|
+
Display2.displayName = "Text.Display2";
|
|
32
|
+
const Display3 = styledText("display3");
|
|
33
|
+
Display3.displayName = "Text.Display3";
|
|
34
|
+
const Display4 = styledText("display4");
|
|
35
|
+
Display4.displayName = "Text.Display4";
|
|
36
|
+
const DisplayNumber = styledText("displayNumber");
|
|
37
|
+
DisplayNumber.displayName = "Text.DisplayNumber";
|
|
28
38
|
const H1 = styledText("h1");
|
|
29
39
|
H1.displayName = "Text.H1";
|
|
30
40
|
const H2 = styledText("h2");
|
|
@@ -35,6 +45,18 @@ const H4 = styledText("h4");
|
|
|
35
45
|
H4.displayName = "Text.H4";
|
|
36
46
|
const H5 = styledText("h5");
|
|
37
47
|
H5.displayName = "Text.H5";
|
|
48
|
+
const Body1 = styledText("body1");
|
|
49
|
+
Body1.displayName = "Text.Body1";
|
|
50
|
+
const Body2 = styledText("body2");
|
|
51
|
+
Body2.displayName = "Text.Body2";
|
|
52
|
+
const Caption = styledText("caption");
|
|
53
|
+
Caption.displayName = "Text.caption";
|
|
54
|
+
const Overline = styledText("overline");
|
|
55
|
+
Overline.overline = "Text.DisplayNumber";
|
|
56
|
+
const SectionTitle = styledText("sectionTitle");
|
|
57
|
+
SectionTitle.displayName = "Text.SectionTitle";
|
|
58
|
+
const SmallestException = styledText("smallestException");
|
|
59
|
+
SmallestException.displayName = "Text.SmallestException";
|
|
38
60
|
const Small = styledText("small");
|
|
39
61
|
Small.displayName = "Text.Small";
|
|
40
62
|
const Tiny = styledText("tiny");
|
|
@@ -49,28 +71,25 @@ const Bold = styledText("bold");
|
|
|
49
71
|
Bold.displayName = "Text.Bold";
|
|
50
72
|
const Black = styledText("black");
|
|
51
73
|
Black.displayName = "Text.Black";
|
|
52
|
-
const SectionTitle = styledText("sectionTitle");
|
|
53
|
-
SectionTitle.displayName = "Text.SectionTitle";
|
|
54
|
-
const SmallestException = styledText("smallestException");
|
|
55
|
-
SmallestException.displayName = "Text.SmallestException";
|
|
56
|
-
const Display1 = styledText("display1");
|
|
57
|
-
Display1.displayName = "Text.Display1";
|
|
58
|
-
const Display2 = styledText("display2");
|
|
59
|
-
Display2.displayName = "Text.Display2";
|
|
60
|
-
const Display3 = styledText("display3");
|
|
61
|
-
Display3.displayName = "Text.Display3";
|
|
62
|
-
const Display4 = styledText("display4");
|
|
63
|
-
Display4.displayName = "Text.Display4";
|
|
64
|
-
const DisplayNumber = styledText("displayNumber");
|
|
65
|
-
DisplayNumber.displayName = "Text.DisplayNumber";
|
|
66
74
|
const TextRenderer = styledText("p");
|
|
67
75
|
const Text = (props) => /* @__PURE__ */ jsx(TextRenderer, __spreadValues({}, props));
|
|
68
76
|
Text.displayName = "Text";
|
|
77
|
+
Text.Display1 = Display1;
|
|
78
|
+
Text.Display2 = Display2;
|
|
79
|
+
Text.Display3 = Display3;
|
|
80
|
+
Text.Display4 = Display4;
|
|
81
|
+
Text.DisplayNumber = DisplayNumber;
|
|
69
82
|
Text.H1 = H1;
|
|
70
83
|
Text.H2 = H2;
|
|
71
84
|
Text.H3 = H3;
|
|
72
85
|
Text.H4 = H4;
|
|
73
86
|
Text.H5 = H5;
|
|
87
|
+
Text.Body1 = Body1;
|
|
88
|
+
Text.Body2 = Body2;
|
|
89
|
+
Text.Caption = Caption;
|
|
90
|
+
Text.Overline = Overline;
|
|
91
|
+
Text.SectionTitle = SectionTitle;
|
|
92
|
+
Text.SmallestException = SmallestException;
|
|
74
93
|
Text.Small = Small;
|
|
75
94
|
Text.Tiny = Tiny;
|
|
76
95
|
Text.Light = Light;
|
|
@@ -78,13 +97,6 @@ Text.Regular = Regular;
|
|
|
78
97
|
Text.Medium = Medium;
|
|
79
98
|
Text.Bold = Bold;
|
|
80
99
|
Text.Black = Black;
|
|
81
|
-
Text.SectionTitle = SectionTitle;
|
|
82
|
-
Text.SmallestException = SmallestException;
|
|
83
|
-
Text.Display1 = Display1;
|
|
84
|
-
Text.Display2 = Display2;
|
|
85
|
-
Text.Display3 = Display3;
|
|
86
|
-
Text.Display4 = Display4;
|
|
87
|
-
Text.DisplayNumber = DisplayNumber;
|
|
88
100
|
const fontSizes = oneOf([
|
|
89
101
|
"xxsmall",
|
|
90
102
|
"xsmall",
|
|
@@ -124,6 +136,7 @@ Text.propTypes = {
|
|
|
124
136
|
size: deprecated(fontSizes, "Use `fontSize` system prop instead"),
|
|
125
137
|
/** set the font-weight to regular */
|
|
126
138
|
light: bool,
|
|
139
|
+
bold: bool,
|
|
127
140
|
fontSize: fontSizes
|
|
128
141
|
};
|
|
129
142
|
Text.defaultProps = {
|
|
@@ -131,11 +144,15 @@ Text.defaultProps = {
|
|
|
131
144
|
variant: void 0,
|
|
132
145
|
size: void 0,
|
|
133
146
|
fontSize: "medium",
|
|
134
|
-
light: false
|
|
147
|
+
light: false,
|
|
148
|
+
bold: false
|
|
135
149
|
};
|
|
136
150
|
export {
|
|
137
151
|
Black,
|
|
152
|
+
Body1,
|
|
153
|
+
Body2,
|
|
138
154
|
Bold,
|
|
155
|
+
Caption,
|
|
139
156
|
Display1,
|
|
140
157
|
Display2,
|
|
141
158
|
Display3,
|
|
@@ -148,6 +165,7 @@ export {
|
|
|
148
165
|
H5,
|
|
149
166
|
Light,
|
|
150
167
|
Medium,
|
|
168
|
+
Overline,
|
|
151
169
|
Regular,
|
|
152
170
|
SectionTitle,
|
|
153
171
|
Small,
|
|
@@ -17,15 +17,19 @@ describe("<Text />", () => {
|
|
|
17
17
|
/* @__PURE__ */ jsx(Text.H2, { children: "Live the mission" }),
|
|
18
18
|
/* @__PURE__ */ jsx(Text.H3, { children: "Live the mission" }),
|
|
19
19
|
/* @__PURE__ */ jsx(Text.H4, { children: "Live the mission" }),
|
|
20
|
+
/* @__PURE__ */ jsx(Text.Body1, { children: "Live the mission" }),
|
|
21
|
+
/* @__PURE__ */ jsx(Text.Body2, { children: "Live the mission" }),
|
|
22
|
+
/* @__PURE__ */ jsx(Text.Caption, { children: "Live the mission" }),
|
|
23
|
+
/* @__PURE__ */ jsx(Text.Overline, { children: "Live the mission" }),
|
|
24
|
+
/* @__PURE__ */ jsx(Text.SectionTitle, { children: "Live the mission" }),
|
|
25
|
+
/* @__PURE__ */ jsx(Text.SmallestException, { children: "Live the mission" }),
|
|
20
26
|
/* @__PURE__ */ jsx(Text, { children: "Live the mission" }),
|
|
21
27
|
/* @__PURE__ */ jsx(Text.Small, { children: "Live the mission" }),
|
|
22
28
|
/* @__PURE__ */ jsx(Text.Tiny, { children: "Live the mission" }),
|
|
23
29
|
/* @__PURE__ */ jsx(Text.Regular, { children: "Live the mission" }),
|
|
24
30
|
/* @__PURE__ */ jsx(Text.Medium, { children: "Live the mission" }),
|
|
25
31
|
/* @__PURE__ */ jsx(Text.Bold, { children: "Live the mission" }),
|
|
26
|
-
/* @__PURE__ */ jsx(Text.Black, { children: "Live the mission" })
|
|
27
|
-
/* @__PURE__ */ jsx(Text.SectionTitle, { children: "Live the mission" }),
|
|
28
|
-
/* @__PURE__ */ jsx(Text.SmallestException, { children: "Live the mission" })
|
|
32
|
+
/* @__PURE__ */ jsx(Text.Black, { children: "Live the mission" })
|
|
29
33
|
] })
|
|
30
34
|
);
|
|
31
35
|
expect(toJSON()).toMatchSnapshot();
|
|
@@ -151,5 +155,15 @@ describe("<Text />", () => {
|
|
|
151
155
|
);
|
|
152
156
|
expect(toJSON()).toMatchSnapshot();
|
|
153
157
|
});
|
|
158
|
+
it("should match snapshot with Text bold", () => {
|
|
159
|
+
const { toJSON } = render(
|
|
160
|
+
/* @__PURE__ */ jsxs(ThemeProvider, { children: [
|
|
161
|
+
/* @__PURE__ */ jsx(Text.H1, { bold: true, children: "Live the mission" }),
|
|
162
|
+
/* @__PURE__ */ jsx(Text.H2, { bold: true, children: "Live the mission" }),
|
|
163
|
+
/* @__PURE__ */ jsx(Text.H3, { bold: true, children: "Live the mission" })
|
|
164
|
+
] })
|
|
165
|
+
);
|
|
166
|
+
expect(toJSON()).toMatchSnapshot();
|
|
167
|
+
});
|
|
154
168
|
});
|
|
155
169
|
});
|
package/esm/Text/native/index.js
CHANGED
|
@@ -1,28 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
Display1,
|
|
3
|
+
Display2,
|
|
4
|
+
Display3,
|
|
5
|
+
Display4,
|
|
6
|
+
DisplayNumber,
|
|
3
7
|
H1,
|
|
4
8
|
H2,
|
|
5
9
|
H3,
|
|
6
10
|
H4,
|
|
7
11
|
H5,
|
|
12
|
+
Body1,
|
|
13
|
+
Body2,
|
|
14
|
+
Caption,
|
|
15
|
+
Overline,
|
|
16
|
+
SectionTitle,
|
|
17
|
+
SmallestException,
|
|
18
|
+
Text,
|
|
8
19
|
Small,
|
|
9
20
|
Tiny,
|
|
10
21
|
Light,
|
|
11
22
|
Regular,
|
|
12
23
|
Medium,
|
|
13
24
|
Bold,
|
|
14
|
-
Black
|
|
15
|
-
SectionTitle,
|
|
16
|
-
SmallestException,
|
|
17
|
-
Display1,
|
|
18
|
-
Display2,
|
|
19
|
-
Display3,
|
|
20
|
-
Display4,
|
|
21
|
-
DisplayNumber
|
|
25
|
+
Black
|
|
22
26
|
} from "./Text";
|
|
23
27
|
export {
|
|
24
28
|
Black,
|
|
29
|
+
Body1,
|
|
30
|
+
Body2,
|
|
25
31
|
Bold,
|
|
32
|
+
Caption,
|
|
26
33
|
Display1,
|
|
27
34
|
Display2,
|
|
28
35
|
Display3,
|
|
@@ -35,6 +42,7 @@ export {
|
|
|
35
42
|
H5,
|
|
36
43
|
Light,
|
|
37
44
|
Medium,
|
|
45
|
+
Overline,
|
|
38
46
|
Regular,
|
|
39
47
|
SectionTitle,
|
|
40
48
|
Small,
|
|
@@ -4,6 +4,7 @@ const textStyle = (type) => () => css`
|
|
|
4
4
|
${defaultStyle(type)};
|
|
5
5
|
${({
|
|
6
6
|
light,
|
|
7
|
+
bold,
|
|
7
8
|
theme: {
|
|
8
9
|
yoga: {
|
|
9
10
|
baseFont,
|
|
@@ -26,6 +27,7 @@ const textStyle = (type) => () => css`
|
|
|
26
27
|
font-family: '${finalFontFamily}';
|
|
27
28
|
|
|
28
29
|
${light ? `font-family: ${baseFont.family}-${fontWeights.light};` : ""}
|
|
30
|
+
${bold ? `font-family: ${baseFont.family}-${fontWeights.bold};` : ""}
|
|
29
31
|
`;
|
|
30
32
|
}}
|
|
31
33
|
`;
|
|
@@ -4,6 +4,7 @@ const textStyle = (type) => () => css`
|
|
|
4
4
|
${defaultStyle(type)};
|
|
5
5
|
${({
|
|
6
6
|
light,
|
|
7
|
+
bold,
|
|
7
8
|
theme: {
|
|
8
9
|
yoga: {
|
|
9
10
|
baseFont,
|
|
@@ -21,6 +22,7 @@ const textStyle = (type) => () => css`
|
|
|
21
22
|
font-family: ${finalFontFamily};
|
|
22
23
|
${fontWeight ? `font-weight: ${fontWeight};` : ""}
|
|
23
24
|
${light ? `font-weight: ${fontWeights.light};` : ""}
|
|
25
|
+
${bold ? `font-weight: ${fontWeights.bold};` : ""}
|
|
24
26
|
`;
|
|
25
27
|
}}
|
|
26
28
|
`;
|
|
@@ -5,6 +5,7 @@ const textStyle = (type) => () => css`
|
|
|
5
5
|
|
|
6
6
|
${({
|
|
7
7
|
light,
|
|
8
|
+
bold,
|
|
8
9
|
numberOfLines,
|
|
9
10
|
theme: {
|
|
10
11
|
yoga: {
|
|
@@ -29,6 +30,7 @@ const textStyle = (type) => () => css`
|
|
|
29
30
|
font-family: ${fontFamily ? `${fontFamily}, ` : ""}${baseFont.family};
|
|
30
31
|
${fontWeight ? `font-weight: ${fontWeight};` : ""}
|
|
31
32
|
${light ? `font-weight: ${fontWeights.light};` : ""}
|
|
33
|
+
${bold ? `font-weight: ${fontWeights.bold};` : ""}
|
|
32
34
|
`;
|
|
33
35
|
}}
|
|
34
36
|
`;
|
package/esm/Text/web/Text.js
CHANGED
|
@@ -27,6 +27,16 @@ const styledText = (type, element = false) => (element ? styled[type] : styled.p
|
|
|
27
27
|
${textStyle(type)}
|
|
28
28
|
${system}
|
|
29
29
|
`;
|
|
30
|
+
const Display1 = styledText("display1");
|
|
31
|
+
Display1.displayName = "Text.Display1";
|
|
32
|
+
const Display2 = styledText("display2");
|
|
33
|
+
Display2.displayName = "Text.Display2";
|
|
34
|
+
const Display3 = styledText("display3");
|
|
35
|
+
Display3.displayName = "Text.Display3";
|
|
36
|
+
const Display4 = styledText("display4");
|
|
37
|
+
Display4.displayName = "Text.Display4";
|
|
38
|
+
const DisplayNumber = styledText("displayNumber");
|
|
39
|
+
DisplayNumber.displayName = "Text.DisplayNumber";
|
|
30
40
|
const H1 = styledText("h1", true);
|
|
31
41
|
H1.displayName = "Text.H1";
|
|
32
42
|
const H2 = styledText("h2", true);
|
|
@@ -37,6 +47,18 @@ const H4 = styledText("h4", true);
|
|
|
37
47
|
H4.displayName = "Text.H4";
|
|
38
48
|
const H5 = styledText("h5", true);
|
|
39
49
|
H5.displayName = "Text.H5";
|
|
50
|
+
const Body1 = styledText("body1");
|
|
51
|
+
Body1.displayName = "Text.Body1";
|
|
52
|
+
const Body2 = styledText("body2");
|
|
53
|
+
Body2.displayName = "Text.Body2";
|
|
54
|
+
const Caption = styledText("caption");
|
|
55
|
+
Caption.displayName = "Text.caption";
|
|
56
|
+
const Overline = styledText("overline");
|
|
57
|
+
Overline.overline = "Text.DisplayNumber";
|
|
58
|
+
const SectionTitle = styledText("sectionTitle");
|
|
59
|
+
SectionTitle.displayName = "Text.SectionTitle";
|
|
60
|
+
const SmallestException = styledText("smallestException");
|
|
61
|
+
SmallestException.displayName = "Text.SmallestException";
|
|
40
62
|
const Small = styledText("small");
|
|
41
63
|
Small.displayName = "Text.Small";
|
|
42
64
|
const Tiny = styledText("tiny");
|
|
@@ -51,28 +73,25 @@ const Bold = styledText("bold");
|
|
|
51
73
|
Bold.displayName = "Text.Bold";
|
|
52
74
|
const Black = styledText("black");
|
|
53
75
|
Black.displayName = "Text.Black";
|
|
54
|
-
const SectionTitle = styledText("sectionTitle");
|
|
55
|
-
SectionTitle.displayName = "Text.SectionTitle";
|
|
56
|
-
const SmallestException = styledText("smallestException");
|
|
57
|
-
SmallestException.displayName = "Text.SmallestException";
|
|
58
|
-
const Display1 = styledText("display1");
|
|
59
|
-
Display1.displayName = "Text.Display1";
|
|
60
|
-
const Display2 = styledText("display2");
|
|
61
|
-
Display2.displayName = "Text.Display2";
|
|
62
|
-
const Display3 = styledText("display3");
|
|
63
|
-
Display3.displayName = "Text.Display3";
|
|
64
|
-
const Display4 = styledText("display4");
|
|
65
|
-
Display4.displayName = "Text.Display4";
|
|
66
|
-
const DisplayNumber = styledText("displayNumber");
|
|
67
|
-
DisplayNumber.displayName = "Text.DisplayNumber";
|
|
68
76
|
const TextRenderer = styledText("p");
|
|
69
77
|
const Text = (props) => /* @__PURE__ */ jsx(TextRenderer, __spreadValues({}, props));
|
|
70
78
|
Text.displayName = "Text";
|
|
79
|
+
Text.Display1 = Display1;
|
|
80
|
+
Text.Display2 = Display2;
|
|
81
|
+
Text.Display3 = Display3;
|
|
82
|
+
Text.Display4 = Display4;
|
|
83
|
+
Text.DisplayNumber = DisplayNumber;
|
|
71
84
|
Text.H1 = H1;
|
|
72
85
|
Text.H2 = H2;
|
|
73
86
|
Text.H3 = H3;
|
|
74
87
|
Text.H4 = H4;
|
|
75
88
|
Text.H5 = H5;
|
|
89
|
+
Text.Body1 = Body1;
|
|
90
|
+
Text.Body2 = Body2;
|
|
91
|
+
Text.Caption = Caption;
|
|
92
|
+
Text.Overline = Overline;
|
|
93
|
+
Text.SectionTitle = SectionTitle;
|
|
94
|
+
Text.SmallestException = SmallestException;
|
|
76
95
|
Text.Small = Small;
|
|
77
96
|
Text.Tiny = Tiny;
|
|
78
97
|
Text.Light = Light;
|
|
@@ -80,13 +99,6 @@ Text.Regular = Regular;
|
|
|
80
99
|
Text.Medium = Medium;
|
|
81
100
|
Text.Bold = Bold;
|
|
82
101
|
Text.Black = Black;
|
|
83
|
-
Text.SectionTitle = SectionTitle;
|
|
84
|
-
Text.SmallestException = SmallestException;
|
|
85
|
-
Text.Display1 = Display1;
|
|
86
|
-
Text.Display2 = Display2;
|
|
87
|
-
Text.Display3 = Display3;
|
|
88
|
-
Text.Display4 = Display4;
|
|
89
|
-
Text.DisplayNumber = DisplayNumber;
|
|
90
102
|
const fontSizes = oneOf([
|
|
91
103
|
"xxsmall",
|
|
92
104
|
"xsmall",
|
|
@@ -127,6 +139,7 @@ Text.propTypes = {
|
|
|
127
139
|
size: deprecated(fontSizes, "Use `fontSize` system prop instead"),
|
|
128
140
|
/** set the font-weight to regular */
|
|
129
141
|
light: bool,
|
|
142
|
+
bold: bool,
|
|
130
143
|
fontSize: fontSizes
|
|
131
144
|
};
|
|
132
145
|
Text.defaultProps = {
|
|
@@ -135,11 +148,15 @@ Text.defaultProps = {
|
|
|
135
148
|
size: void 0,
|
|
136
149
|
fontSize: "medium",
|
|
137
150
|
numberOfLines: void 0,
|
|
138
|
-
light: false
|
|
151
|
+
light: false,
|
|
152
|
+
bold: false
|
|
139
153
|
};
|
|
140
154
|
export {
|
|
141
155
|
Black,
|
|
156
|
+
Body1,
|
|
157
|
+
Body2,
|
|
142
158
|
Bold,
|
|
159
|
+
Caption,
|
|
143
160
|
Display1,
|
|
144
161
|
Display2,
|
|
145
162
|
Display3,
|
|
@@ -152,6 +169,7 @@ export {
|
|
|
152
169
|
H5,
|
|
153
170
|
Light,
|
|
154
171
|
Medium,
|
|
172
|
+
Overline,
|
|
155
173
|
Regular,
|
|
156
174
|
SectionTitle,
|
|
157
175
|
Small,
|
|
@@ -18,15 +18,19 @@ describe("<Text />", () => {
|
|
|
18
18
|
/* @__PURE__ */ jsx(Text.H3, { children: "Live the mission" }),
|
|
19
19
|
/* @__PURE__ */ jsx(Text.H4, { children: "Live the mission" }),
|
|
20
20
|
/* @__PURE__ */ jsx(Text.H5, { children: "Live the mission" }),
|
|
21
|
+
/* @__PURE__ */ jsx(Text.Body1, { children: "Live the mission" }),
|
|
22
|
+
/* @__PURE__ */ jsx(Text.Body2, { children: "Live the mission" }),
|
|
23
|
+
/* @__PURE__ */ jsx(Text.Caption, { children: "Live the mission" }),
|
|
24
|
+
/* @__PURE__ */ jsx(Text.Overline, { children: "Live the mission" }),
|
|
25
|
+
/* @__PURE__ */ jsx(Text.SectionTitle, { children: "Live the mission" }),
|
|
26
|
+
/* @__PURE__ */ jsx(Text.SmallestException, { children: "Live the mission" }),
|
|
21
27
|
/* @__PURE__ */ jsx(Text, { children: "Live the mission" }),
|
|
22
28
|
/* @__PURE__ */ jsx(Text.Small, { children: "Live the mission" }),
|
|
23
29
|
/* @__PURE__ */ jsx(Text.Tiny, { children: "Live the mission" }),
|
|
24
30
|
/* @__PURE__ */ jsx(Text.Regular, { children: "Live the mission" }),
|
|
25
31
|
/* @__PURE__ */ jsx(Text.Medium, { children: "Live the mission" }),
|
|
26
32
|
/* @__PURE__ */ jsx(Text.Bold, { children: "Live the mission" }),
|
|
27
|
-
/* @__PURE__ */ jsx(Text.Black, { children: "Live the mission" })
|
|
28
|
-
/* @__PURE__ */ jsx(Text.SectionTitle, { children: "Live the mission" }),
|
|
29
|
-
/* @__PURE__ */ jsx(Text.SmallestException, { children: "Live the mission" })
|
|
33
|
+
/* @__PURE__ */ jsx(Text.Black, { children: "Live the mission" })
|
|
30
34
|
] })
|
|
31
35
|
);
|
|
32
36
|
expect(container).toMatchSnapshot();
|
|
@@ -152,5 +156,11 @@ describe("<Text />", () => {
|
|
|
152
156
|
);
|
|
153
157
|
expect(container).toMatchSnapshot();
|
|
154
158
|
});
|
|
159
|
+
it("should match snapshot with Text bold", () => {
|
|
160
|
+
const { container } = render(
|
|
161
|
+
/* @__PURE__ */ jsx(ThemeProvider, { children: /* @__PURE__ */ jsx(Text.H1, { bold: true, children: "Live the mission" }) })
|
|
162
|
+
);
|
|
163
|
+
expect(container).toMatchSnapshot();
|
|
164
|
+
});
|
|
155
165
|
});
|
|
156
166
|
});
|
package/esm/Text/web/index.js
CHANGED
|
@@ -1,28 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
Display1,
|
|
3
|
+
Display2,
|
|
4
|
+
Display3,
|
|
5
|
+
Display4,
|
|
6
|
+
DisplayNumber,
|
|
3
7
|
H1,
|
|
4
8
|
H2,
|
|
5
9
|
H3,
|
|
6
10
|
H4,
|
|
7
11
|
H5,
|
|
12
|
+
Body1,
|
|
13
|
+
Body2,
|
|
14
|
+
Caption,
|
|
15
|
+
Overline,
|
|
16
|
+
SectionTitle,
|
|
17
|
+
SmallestException,
|
|
18
|
+
Text,
|
|
8
19
|
Small,
|
|
9
20
|
Tiny,
|
|
10
21
|
Light,
|
|
11
22
|
Regular,
|
|
12
23
|
Medium,
|
|
13
24
|
Bold,
|
|
14
|
-
Black
|
|
15
|
-
SectionTitle,
|
|
16
|
-
SmallestException,
|
|
17
|
-
Display1,
|
|
18
|
-
Display2,
|
|
19
|
-
Display3,
|
|
20
|
-
Display4,
|
|
21
|
-
DisplayNumber
|
|
25
|
+
Black
|
|
22
26
|
} from "./Text";
|
|
23
27
|
export {
|
|
24
28
|
Black,
|
|
29
|
+
Body1,
|
|
30
|
+
Body2,
|
|
25
31
|
Bold,
|
|
32
|
+
Caption,
|
|
26
33
|
Display1,
|
|
27
34
|
Display2,
|
|
28
35
|
Display3,
|
|
@@ -35,6 +42,7 @@ export {
|
|
|
35
42
|
H5,
|
|
36
43
|
Light,
|
|
37
44
|
Medium,
|
|
45
|
+
Overline,
|
|
38
46
|
Regular,
|
|
39
47
|
SectionTitle,
|
|
40
48
|
Small,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gympass/yoga",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.104.0",
|
|
4
4
|
"description": "Gympass component library",
|
|
5
5
|
"main": "./cjs",
|
|
6
6
|
"types": "./typings/index.d.ts",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"react-native": "0.72.3",
|
|
58
58
|
"styled-components": "^4.4.0"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "89d776e82d74a009e4fbca47fb21a00461e234b6",
|
|
61
61
|
"module": "./esm",
|
|
62
62
|
"private": false,
|
|
63
63
|
"react-native": "./cjs/index.native.js"
|
|
@@ -22,11 +22,22 @@ declare const StyledTag: styled_components.StyledComponent<{
|
|
|
22
22
|
declare const StyledText: styled_components.StyledComponent<{
|
|
23
23
|
(props: any): JSX.Element;
|
|
24
24
|
displayName: string;
|
|
25
|
+
Display1: styled_components.StyledComponent<string, any, {}, never>;
|
|
26
|
+
Display2: styled_components.StyledComponent<string, any, {}, never>;
|
|
27
|
+
Display3: styled_components.StyledComponent<string, any, {}, never>;
|
|
28
|
+
Display4: styled_components.StyledComponent<string, any, {}, never>;
|
|
29
|
+
DisplayNumber: styled_components.StyledComponent<string, any, {}, never>;
|
|
25
30
|
H1: styled_components.StyledComponent<string, any, {}, never>;
|
|
26
31
|
H2: styled_components.StyledComponent<string, any, {}, never>;
|
|
27
32
|
H3: styled_components.StyledComponent<string, any, {}, never>;
|
|
28
33
|
H4: styled_components.StyledComponent<string, any, {}, never>;
|
|
29
34
|
H5: styled_components.StyledComponent<string, any, {}, never>;
|
|
35
|
+
Body1: styled_components.StyledComponent<string, any, {}, never>;
|
|
36
|
+
Body2: styled_components.StyledComponent<string, any, {}, never>;
|
|
37
|
+
Caption: styled_components.StyledComponent<string, any, {}, never>;
|
|
38
|
+
Overline: styled_components.StyledComponent<string, any, {}, never>;
|
|
39
|
+
SectionTitle: styled_components.StyledComponent<string, any, {}, never>;
|
|
40
|
+
SmallestException: styled_components.StyledComponent<string, any, {}, never>;
|
|
30
41
|
Small: styled_components.StyledComponent<string, any, {}, never>;
|
|
31
42
|
Tiny: styled_components.StyledComponent<string, any, {}, never>;
|
|
32
43
|
Light: styled_components.StyledComponent<string, any, {}, never>;
|
|
@@ -34,19 +45,13 @@ declare const StyledText: styled_components.StyledComponent<{
|
|
|
34
45
|
Medium: styled_components.StyledComponent<string, any, {}, never>;
|
|
35
46
|
Bold: styled_components.StyledComponent<string, any, {}, never>;
|
|
36
47
|
Black: styled_components.StyledComponent<string, any, {}, never>;
|
|
37
|
-
SectionTitle: styled_components.StyledComponent<string, any, {}, never>;
|
|
38
|
-
SmallestException: styled_components.StyledComponent<string, any, {}, never>;
|
|
39
|
-
Display1: styled_components.StyledComponent<string, any, {}, never>;
|
|
40
|
-
Display2: styled_components.StyledComponent<string, any, {}, never>;
|
|
41
|
-
Display3: styled_components.StyledComponent<string, any, {}, never>;
|
|
42
|
-
Display4: styled_components.StyledComponent<string, any, {}, never>;
|
|
43
|
-
DisplayNumber: styled_components.StyledComponent<string, any, {}, never>;
|
|
44
48
|
propTypes: {
|
|
45
49
|
inverted: prop_types.Requireable<boolean>;
|
|
46
50
|
numberOfLines: prop_types.Requireable<number>;
|
|
47
51
|
variant: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
|
|
48
52
|
size: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
|
|
49
53
|
light: prop_types.Requireable<boolean>;
|
|
54
|
+
bold: prop_types.Requireable<boolean>;
|
|
50
55
|
fontSize: prop_types.Requireable<string>;
|
|
51
56
|
};
|
|
52
57
|
defaultProps: {
|
|
@@ -56,6 +61,7 @@ declare const StyledText: styled_components.StyledComponent<{
|
|
|
56
61
|
fontSize: string;
|
|
57
62
|
numberOfLines: undefined;
|
|
58
63
|
light: boolean;
|
|
64
|
+
bold: boolean;
|
|
59
65
|
};
|
|
60
66
|
}, any, {}, never>;
|
|
61
67
|
declare const StyledItem: styled_components.StyledComponent<string, any, {
|
package/typings/index.d.ts
CHANGED
|
@@ -184,14 +184,41 @@ declare const Col: styled_components.StyledComponent<string, any, {}, never>;
|
|
|
184
184
|
|
|
185
185
|
declare const Hide: styled_components.StyledComponent<string, any, {}, never>;
|
|
186
186
|
|
|
187
|
+
declare const Display1: styled_components.StyledComponent<string, any, {}, never>;
|
|
188
|
+
declare const Display2: styled_components.StyledComponent<string, any, {}, never>;
|
|
189
|
+
declare const Display3: styled_components.StyledComponent<string, any, {}, never>;
|
|
190
|
+
declare const Display4: styled_components.StyledComponent<string, any, {}, never>;
|
|
191
|
+
declare const DisplayNumber: styled_components.StyledComponent<string, any, {}, never>;
|
|
192
|
+
declare const H1: styled_components.StyledComponent<string, any, {}, never>;
|
|
193
|
+
declare const H2: styled_components.StyledComponent<string, any, {}, never>;
|
|
194
|
+
declare const H3: styled_components.StyledComponent<string, any, {}, never>;
|
|
195
|
+
declare const H4: styled_components.StyledComponent<string, any, {}, never>;
|
|
196
|
+
declare const H5: styled_components.StyledComponent<string, any, {}, never>;
|
|
197
|
+
declare const Body1: styled_components.StyledComponent<string, any, {}, never>;
|
|
198
|
+
declare const Body2: styled_components.StyledComponent<string, any, {}, never>;
|
|
199
|
+
declare const Caption: styled_components.StyledComponent<string, any, {}, never>;
|
|
200
|
+
declare const Overline: styled_components.StyledComponent<string, any, {}, never>;
|
|
201
|
+
declare const SectionTitle: styled_components.StyledComponent<string, any, {}, never>;
|
|
202
|
+
declare const SmallestException: styled_components.StyledComponent<string, any, {}, never>;
|
|
187
203
|
declare function Text(props: any): JSX.Element;
|
|
188
204
|
declare namespace Text {
|
|
189
205
|
export const displayName: string;
|
|
206
|
+
export { Display1 };
|
|
207
|
+
export { Display2 };
|
|
208
|
+
export { Display3 };
|
|
209
|
+
export { Display4 };
|
|
210
|
+
export { DisplayNumber };
|
|
190
211
|
export { H1 };
|
|
191
212
|
export { H2 };
|
|
192
213
|
export { H3 };
|
|
193
214
|
export { H4 };
|
|
194
215
|
export { H5 };
|
|
216
|
+
export { Body1 };
|
|
217
|
+
export { Body2 };
|
|
218
|
+
export { Caption };
|
|
219
|
+
export { Overline };
|
|
220
|
+
export { SectionTitle };
|
|
221
|
+
export { SmallestException };
|
|
195
222
|
export { Small };
|
|
196
223
|
export { Tiny };
|
|
197
224
|
export { Light };
|
|
@@ -199,19 +226,13 @@ declare namespace Text {
|
|
|
199
226
|
export { Medium };
|
|
200
227
|
export { Bold };
|
|
201
228
|
export { Black };
|
|
202
|
-
export { SectionTitle };
|
|
203
|
-
export { SmallestException };
|
|
204
|
-
export { Display1 };
|
|
205
|
-
export { Display2 };
|
|
206
|
-
export { Display3 };
|
|
207
|
-
export { Display4 };
|
|
208
|
-
export { DisplayNumber };
|
|
209
229
|
export namespace propTypes {
|
|
210
230
|
export { bool as inverted };
|
|
211
231
|
export { number as numberOfLines };
|
|
212
232
|
export const variant: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
|
|
213
233
|
export const size: (props: any, propName: any, componentName: any, ...rest: any[]) => any;
|
|
214
234
|
export { bool as light };
|
|
235
|
+
export { bool as bold };
|
|
215
236
|
export { fontSizes as fontSize };
|
|
216
237
|
}
|
|
217
238
|
export namespace defaultProps {
|
|
@@ -223,13 +244,9 @@ declare namespace Text {
|
|
|
223
244
|
export const fontSize: string;
|
|
224
245
|
export const numberOfLines: undefined;
|
|
225
246
|
export const light: boolean;
|
|
247
|
+
export const bold: boolean;
|
|
226
248
|
}
|
|
227
249
|
}
|
|
228
|
-
declare const H1: styled_components.StyledComponent<string, any, {}, never>;
|
|
229
|
-
declare const H2: styled_components.StyledComponent<string, any, {}, never>;
|
|
230
|
-
declare const H3: styled_components.StyledComponent<string, any, {}, never>;
|
|
231
|
-
declare const H4: styled_components.StyledComponent<string, any, {}, never>;
|
|
232
|
-
declare const H5: styled_components.StyledComponent<string, any, {}, never>;
|
|
233
250
|
declare const Small: styled_components.StyledComponent<string, any, {}, never>;
|
|
234
251
|
declare const Tiny: styled_components.StyledComponent<string, any, {}, never>;
|
|
235
252
|
declare const Light: styled_components.StyledComponent<string, any, {}, never>;
|
|
@@ -237,13 +254,6 @@ declare const Regular: styled_components.StyledComponent<string, any, {}, never>
|
|
|
237
254
|
declare const Medium: styled_components.StyledComponent<string, any, {}, never>;
|
|
238
255
|
declare const Bold: styled_components.StyledComponent<string, any, {}, never>;
|
|
239
256
|
declare const Black: styled_components.StyledComponent<string, any, {}, never>;
|
|
240
|
-
declare const SectionTitle: styled_components.StyledComponent<string, any, {}, never>;
|
|
241
|
-
declare const SmallestException: styled_components.StyledComponent<string, any, {}, never>;
|
|
242
|
-
declare const Display1: styled_components.StyledComponent<string, any, {}, never>;
|
|
243
|
-
declare const Display2: styled_components.StyledComponent<string, any, {}, never>;
|
|
244
|
-
declare const Display3: styled_components.StyledComponent<string, any, {}, never>;
|
|
245
|
-
declare const Display4: styled_components.StyledComponent<string, any, {}, never>;
|
|
246
|
-
declare const DisplayNumber: styled_components.StyledComponent<string, any, {}, never>;
|
|
247
257
|
|
|
248
258
|
declare const fontSizes: prop_types.Requireable<string>;
|
|
249
259
|
|