@ovotech/element-native 3.8.0 → 3.8.1-canary-dff71b6-233
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/Accordion/Accordion.js +4 -9
- package/dist/components/Accordion/styles.d.ts +1225 -484
- package/dist/components/Accordion/styles.js +4 -3
- package/dist/components/ActionCard/ActionCard.js +4 -3
- package/dist/components/ActionList/ActionList.d.ts +1 -1
- package/dist/components/ActionList/ActionList.js +2 -1
- package/dist/components/ActionList/styled.d.ts +2502 -1020
- package/dist/components/ActionList/styled.js +6 -5
- package/dist/components/Badge/Badge.d.ts +408 -161
- package/dist/components/Badge/Badge.js +3 -2
- package/dist/components/CTAButton/CTAButton.js +7 -6
- package/dist/components/Card/Card.d.ts +410 -161
- package/dist/components/Card/Card.js +5 -4
- package/dist/components/Checkbox/Checkbox.js +4 -3
- package/dist/components/DataTable/styles.d.ts +5472 -2261
- package/dist/components/DataTable/styles.js +14 -15
- package/dist/components/DateField/DateField.js +4 -3
- package/dist/components/DescriptionList/styled.d.ts +407 -160
- package/dist/components/DescriptionList/styled.js +5 -4
- package/dist/components/Disclosure/Disclosure.js +4 -3
- package/dist/components/Em/Em.d.ts +407 -160
- package/dist/components/ErrorText/ErrorText.d.ts +407 -160
- package/dist/components/ErrorText/ErrorText.js +2 -3
- package/dist/components/FilterSelect/FilterSelect.js +5 -4
- package/dist/components/Grid/Col.d.ts +407 -160
- package/dist/components/Grid/Col.js +3 -3
- package/dist/components/Grid/Row.d.ts +407 -160
- package/dist/components/Grid/Row.js +4 -4
- package/dist/components/Heading1/Heading1.d.ts +3 -1
- package/dist/components/Heading1/Heading1.js +6 -4
- package/dist/components/Heading2/Heading2.d.ts +3 -1
- package/dist/components/Heading2/Heading2.js +6 -4
- package/dist/components/Heading3/Heading3.d.ts +3 -1
- package/dist/components/Heading3/Heading3.js +6 -4
- package/dist/components/Heading4/Heading4.d.ts +3 -1
- package/dist/components/Heading4/Heading4.js +6 -4
- package/dist/components/HintText/HintText.d.ts +407 -160
- package/dist/components/HintText/HintText.js +2 -3
- package/dist/components/Input/Input.js +7 -4
- package/dist/components/Label/Label.d.ts +5 -241
- package/dist/components/Label/Label.js +17 -4
- package/dist/components/LabelText/LabelText.d.ts +407 -160
- package/dist/components/LabelText/LabelText.js +2 -1
- package/dist/components/Lead/Lead.d.ts +5 -241
- package/dist/components/Lead/Lead.js +19 -4
- package/dist/components/LineThrough/LineThrough.d.ts +407 -160
- package/dist/components/List/styled.d.ts +1636 -648
- package/dist/components/List/styled.js +4 -4
- package/dist/components/Margin/Margin.d.ts +408 -162
- package/dist/components/Margin/Margin.js +2 -3
- package/dist/components/NavHeader/NavHeader.d.ts +10 -2
- package/dist/components/NavHeader/NavHeader.js +25 -29
- package/dist/components/NavHeader/NavHeader.styles.d.ts +3845 -1387
- package/dist/components/NavHeader/NavHeader.styles.js +18 -17
- package/dist/components/Notification/Notification.d.ts +816 -322
- package/dist/components/Notification/Notification.js +18 -15
- package/dist/components/P/P.d.ts +2 -0
- package/dist/components/P/P.js +3 -2
- package/dist/components/PasswordInput/PasswordInput.styled.d.ts +407 -160
- package/dist/components/PasswordInput/PasswordInput.styled.js +2 -1
- package/dist/components/{HorizontalCarousel/HorizontalCarousel.d.ts → ProductCarousel/ProductCarousel.d.ts} +2 -2
- package/dist/components/ProductCarousel/ProductCarousel.js +128 -0
- package/dist/components/ProductCarousel/anchor-point.d.ts +10 -0
- package/dist/components/ProductCarousel/anchor-point.js +53 -0
- package/dist/components/ProductCarousel/index.d.ts +1 -0
- package/dist/components/ProductCarousel/index.js +5 -0
- package/dist/components/Radio/Radio.js +5 -4
- package/dist/components/RadioCard/RadioCard.d.ts +9 -0
- package/dist/components/RadioCard/RadioCard.js +72 -0
- package/dist/components/RadioCard/index.d.ts +1 -0
- package/dist/components/RadioCard/index.js +5 -0
- package/dist/components/SelectField/Select.d.ts +407 -160
- package/dist/components/SelectField/Select.js +8 -7
- package/dist/components/SkeletonCTA/SkeletonCTA.js +2 -1
- package/dist/components/SkeletonCircle/SkeletonCircle.js +2 -2
- package/dist/components/SkeletonText/SkeletonText.js +4 -1
- package/dist/components/Small/Small.d.ts +407 -160
- package/dist/components/Small/Small.js +2 -1
- package/dist/components/Stack/Stack.d.ts +1 -2
- package/dist/components/Stack/Stack.js +2 -1
- package/dist/components/Strong/Strong.d.ts +407 -160
- package/dist/components/SubLabelText/SubLabelText.d.ts +407 -160
- package/dist/components/SubLabelText/SubLabelText.js +2 -1
- package/dist/components/Tabs/Tab.js +8 -7
- package/dist/components/Tabs/TabList.js +2 -1
- package/dist/components/Tabs/TabPanel.js +2 -1
- package/dist/components/Tabs/Tabs.js +2 -1
- package/dist/components/TextareaInput/TextareaInput.js +2 -2
- package/dist/components/Toast/Toast.js +3 -2
- package/dist/components/Toggle/Toggle.js +2 -2
- package/dist/components/Toggle/styles.d.ts +1638 -650
- package/dist/components/Toggle/styles.js +5 -4
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +2 -0
- package/dist/esm/components/Accordion/Accordion.js +4 -9
- package/dist/esm/components/Accordion/styles.js +4 -3
- package/dist/esm/components/ActionCard/ActionCard.js +4 -3
- package/dist/esm/components/ActionList/ActionList.js +2 -1
- package/dist/esm/components/ActionList/styled.js +6 -5
- package/dist/esm/components/Badge/Badge.js +3 -2
- package/dist/esm/components/CTAButton/CTAButton.js +7 -6
- package/dist/esm/components/Card/Card.js +5 -4
- package/dist/esm/components/Checkbox/Checkbox.js +4 -3
- package/dist/esm/components/DataTable/styles.js +14 -15
- package/dist/esm/components/DateField/DateField.js +4 -3
- package/dist/esm/components/DescriptionList/styled.js +5 -4
- package/dist/esm/components/Disclosure/Disclosure.js +4 -3
- package/dist/esm/components/ErrorText/ErrorText.js +2 -3
- package/dist/esm/components/FilterSelect/FilterSelect.js +5 -4
- package/dist/esm/components/Grid/Col.js +3 -3
- package/dist/esm/components/Grid/Row.js +4 -4
- package/dist/esm/components/Heading1/Heading1.js +5 -3
- package/dist/esm/components/Heading2/Heading2.js +5 -3
- package/dist/esm/components/Heading3/Heading3.js +5 -3
- package/dist/esm/components/Heading4/Heading4.js +5 -3
- package/dist/esm/components/HintText/HintText.js +2 -3
- package/dist/esm/components/Input/Input.js +7 -4
- package/dist/esm/components/Label/Label.js +17 -4
- package/dist/esm/components/LabelText/LabelText.js +2 -1
- package/dist/esm/components/Lead/Lead.js +19 -4
- package/dist/esm/components/List/styled.js +4 -4
- package/dist/esm/components/Margin/Margin.js +2 -3
- package/dist/esm/components/NavHeader/NavHeader.js +26 -30
- package/dist/esm/components/NavHeader/NavHeader.styles.js +17 -16
- package/dist/esm/components/Notification/Notification.js +18 -15
- package/dist/esm/components/P/P.js +3 -2
- package/dist/esm/components/PasswordInput/PasswordInput.styled.js +2 -1
- package/dist/esm/components/ProductCarousel/ProductCarousel.js +98 -0
- package/dist/esm/components/ProductCarousel/anchor-point.js +49 -0
- package/dist/esm/components/ProductCarousel/index.js +1 -0
- package/dist/esm/components/Radio/Radio.js +5 -4
- package/dist/esm/components/RadioCard/RadioCard.js +66 -0
- package/dist/esm/components/RadioCard/index.js +1 -0
- package/dist/esm/components/SelectField/Select.js +8 -7
- package/dist/esm/components/SkeletonCTA/SkeletonCTA.js +2 -1
- package/dist/esm/components/SkeletonCircle/SkeletonCircle.js +1 -1
- package/dist/esm/components/SkeletonText/SkeletonText.js +4 -1
- package/dist/esm/components/Small/Small.js +2 -1
- package/dist/esm/components/Stack/Stack.js +2 -1
- package/dist/esm/components/SubLabelText/SubLabelText.js +2 -1
- package/dist/esm/components/Tabs/Tab.js +9 -8
- package/dist/esm/components/Tabs/TabList.js +2 -1
- package/dist/esm/components/Tabs/TabPanel.js +2 -1
- package/dist/esm/components/Tabs/Tabs.js +2 -1
- package/dist/esm/components/TextareaInput/TextareaInput.js +2 -2
- package/dist/esm/components/Toast/Toast.js +3 -2
- package/dist/esm/components/Toggle/Toggle.js +2 -2
- package/dist/esm/components/Toggle/styles.js +5 -4
- package/dist/esm/components/index.js +2 -0
- package/dist/esm/utils/utils.js +1 -7
- package/dist/styled.native.d.ts +2523 -1041
- package/dist/utils/utils.d.ts +1 -3
- package/dist/utils/utils.js +1 -9
- package/package.json +5 -4
- package/dist/components/HorizontalCarousel/HorizontalCarousel.js +0 -92
- package/dist/components/HorizontalCarousel/index.d.ts +0 -1
- package/dist/components/HorizontalCarousel/index.js +0 -17
- package/dist/esm/components/HorizontalCarousel/HorizontalCarousel.js +0 -62
- package/dist/esm/components/HorizontalCarousel/index.js +0 -1
- /package/dist/components/{HorizontalCarousel → ProductCarousel}/NavigationDots.d.ts +0 -0
- /package/dist/components/{HorizontalCarousel → ProductCarousel}/NavigationDots.js +0 -0
- /package/dist/esm/components/{HorizontalCarousel → ProductCarousel}/NavigationDots.js +0 -0
|
@@ -1,243 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
export declare const Lead: import("react").ForwardRefExoticComponent<
|
|
4
|
-
|
|
5
|
-
[x: number]: any;
|
|
6
|
-
[x: symbol]: any;
|
|
2
|
+
import { TextProps } from 'react-native';
|
|
3
|
+
export declare const Lead: import("react").ForwardRefExoticComponent<TextProps & {
|
|
4
|
+
inverted?: boolean | undefined;
|
|
7
5
|
} & {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
radius: Record<"small" | "medium" | "large" | "max", string>;
|
|
11
|
-
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
12
|
-
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
13
|
-
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
14
|
-
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
15
|
-
transition: Record<"medium" | "slow" | "fast", string>;
|
|
16
|
-
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
17
|
-
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
18
|
-
lightest: string;
|
|
19
|
-
lighter: string;
|
|
20
|
-
light: string;
|
|
21
|
-
base: string;
|
|
22
|
-
dark: string;
|
|
23
|
-
darker: string;
|
|
24
|
-
darkest: string;
|
|
25
|
-
}> & {
|
|
26
|
-
brand: Record<string, string>;
|
|
27
|
-
};
|
|
28
|
-
fontFamily: Record<"body" | "mono" | "heading" | "bodyBold", {
|
|
29
|
-
native: string;
|
|
30
|
-
web: string;
|
|
31
|
-
}>;
|
|
32
|
-
fontWeight: Record<"bold" | "book" | "black", string | number>;
|
|
33
|
-
fontSize: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
34
|
-
small: string | number;
|
|
35
|
-
large: string | number;
|
|
36
|
-
}>;
|
|
37
|
-
lineHeight: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
38
|
-
small: string | number;
|
|
39
|
-
large: string | number;
|
|
40
|
-
}>;
|
|
41
|
-
letterSpacing: Record<"base" | "compressed" | "extraCompressed", number>;
|
|
42
|
-
};
|
|
43
|
-
semantic: {
|
|
44
|
-
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
45
|
-
message: Record<"base" | "link" | "secondary" | "error" | "branded", string>;
|
|
46
|
-
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
47
|
-
focus: Record<"surface" | "outline" | "hover", string>;
|
|
48
|
-
inverted: Record<"surface" | "border", string> & {
|
|
49
|
-
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
50
|
-
};
|
|
51
|
-
success: {
|
|
52
|
-
border: string;
|
|
53
|
-
surface: string;
|
|
54
|
-
surfaceEmphasis: string;
|
|
55
|
-
message: string;
|
|
56
|
-
messageOnEmphasis: string;
|
|
57
|
-
};
|
|
58
|
-
warning: {
|
|
59
|
-
border: string;
|
|
60
|
-
surface: string;
|
|
61
|
-
surfaceEmphasis: string;
|
|
62
|
-
message: string;
|
|
63
|
-
messageOnEmphasis: string;
|
|
64
|
-
};
|
|
65
|
-
error: {
|
|
66
|
-
border: string;
|
|
67
|
-
surface: string;
|
|
68
|
-
surfaceEmphasis: string;
|
|
69
|
-
message: string;
|
|
70
|
-
messageOnEmphasis: string;
|
|
71
|
-
};
|
|
72
|
-
info: {
|
|
73
|
-
border: string;
|
|
74
|
-
surface: string;
|
|
75
|
-
surfaceEmphasis: string;
|
|
76
|
-
message: string;
|
|
77
|
-
messageOnEmphasis: string;
|
|
78
|
-
};
|
|
79
|
-
data: Record<"branded" | "gas" | "electric", Record<2 | 1 | 3 | 4, string>>;
|
|
80
|
-
};
|
|
81
|
-
component: {
|
|
82
|
-
heading1: {
|
|
83
|
-
fontFamily: string;
|
|
84
|
-
fontWeight: string | number;
|
|
85
|
-
fontSize: {
|
|
86
|
-
small: string | number;
|
|
87
|
-
large: string | number;
|
|
88
|
-
};
|
|
89
|
-
lineHeight: {
|
|
90
|
-
small: string | number;
|
|
91
|
-
large: string | number;
|
|
92
|
-
};
|
|
93
|
-
};
|
|
94
|
-
heading2: {
|
|
95
|
-
fontFamily: string;
|
|
96
|
-
fontWeight: string | number;
|
|
97
|
-
fontSize: {
|
|
98
|
-
small: string | number;
|
|
99
|
-
large: string | number;
|
|
100
|
-
};
|
|
101
|
-
lineHeight: {
|
|
102
|
-
small: string | number;
|
|
103
|
-
large: string | number;
|
|
104
|
-
};
|
|
105
|
-
};
|
|
106
|
-
heading3: {
|
|
107
|
-
fontFamily: string;
|
|
108
|
-
fontWeight: string | number;
|
|
109
|
-
fontSize: {
|
|
110
|
-
small: string | number;
|
|
111
|
-
large: string | number;
|
|
112
|
-
};
|
|
113
|
-
lineHeight: {
|
|
114
|
-
small: string | number;
|
|
115
|
-
large: string | number;
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
heading4: {
|
|
119
|
-
fontFamily: string;
|
|
120
|
-
fontWeight: string | number;
|
|
121
|
-
fontSize: {
|
|
122
|
-
small: string | number;
|
|
123
|
-
large: string | number;
|
|
124
|
-
};
|
|
125
|
-
lineHeight: {
|
|
126
|
-
small: string | number;
|
|
127
|
-
large: string | number;
|
|
128
|
-
};
|
|
129
|
-
};
|
|
130
|
-
lead: {
|
|
131
|
-
fontFamily: string;
|
|
132
|
-
fontWeight: string | number;
|
|
133
|
-
fontSize: {
|
|
134
|
-
small: string | number;
|
|
135
|
-
large: string | number;
|
|
136
|
-
};
|
|
137
|
-
lineHeight: {
|
|
138
|
-
small: string | number;
|
|
139
|
-
large: string | number;
|
|
140
|
-
};
|
|
141
|
-
};
|
|
142
|
-
body: {
|
|
143
|
-
fontFamily: string;
|
|
144
|
-
fontWeight: string | number;
|
|
145
|
-
fontSize: {
|
|
146
|
-
small: string | number;
|
|
147
|
-
large: string | number;
|
|
148
|
-
};
|
|
149
|
-
lineHeight: {
|
|
150
|
-
small: string | number;
|
|
151
|
-
large: string | number;
|
|
152
|
-
};
|
|
153
|
-
};
|
|
154
|
-
small: {
|
|
155
|
-
fontFamily: string;
|
|
156
|
-
fontWeight: string | number;
|
|
157
|
-
fontSize: {
|
|
158
|
-
small: string | number;
|
|
159
|
-
large: string | number;
|
|
160
|
-
};
|
|
161
|
-
lineHeight: {
|
|
162
|
-
small: string | number;
|
|
163
|
-
large: string | number;
|
|
164
|
-
};
|
|
165
|
-
};
|
|
166
|
-
label: {
|
|
167
|
-
fontFamily: string;
|
|
168
|
-
fontWeight: string | number;
|
|
169
|
-
fontSize: {
|
|
170
|
-
small: string | number;
|
|
171
|
-
large: string | number;
|
|
172
|
-
};
|
|
173
|
-
lineHeight: {
|
|
174
|
-
small: string | number;
|
|
175
|
-
large: string | number;
|
|
176
|
-
};
|
|
177
|
-
};
|
|
178
|
-
cta: {
|
|
179
|
-
primary: {
|
|
180
|
-
message: string;
|
|
181
|
-
surface: string;
|
|
182
|
-
messageHover: string;
|
|
183
|
-
surfaceHover: string;
|
|
184
|
-
messageFocused: string;
|
|
185
|
-
surfaceFocused: string;
|
|
186
|
-
outlineFocused: string;
|
|
187
|
-
backgroundFocused: string;
|
|
188
|
-
};
|
|
189
|
-
secondary: {
|
|
190
|
-
message: string;
|
|
191
|
-
surface: string;
|
|
192
|
-
messageHover: string;
|
|
193
|
-
surfaceHover: string;
|
|
194
|
-
messageFocused: string;
|
|
195
|
-
surfaceFocused: string;
|
|
196
|
-
outlineFocused: string;
|
|
197
|
-
backgroundFocused: string;
|
|
198
|
-
};
|
|
199
|
-
destructive: {
|
|
200
|
-
message: string;
|
|
201
|
-
surface: string;
|
|
202
|
-
messageHover: string;
|
|
203
|
-
surfaceHover: string;
|
|
204
|
-
messageFocused: string;
|
|
205
|
-
surfaceFocused: string;
|
|
206
|
-
outlineFocused: string;
|
|
207
|
-
backgroundFocused: string;
|
|
208
|
-
};
|
|
209
|
-
};
|
|
210
|
-
badge: {
|
|
211
|
-
variants: {
|
|
212
|
-
neutral: {
|
|
213
|
-
foreground: string;
|
|
214
|
-
background: string;
|
|
215
|
-
};
|
|
216
|
-
red: {
|
|
217
|
-
foreground: string;
|
|
218
|
-
background: string;
|
|
219
|
-
};
|
|
220
|
-
orange: {
|
|
221
|
-
foreground: string;
|
|
222
|
-
background: string;
|
|
223
|
-
};
|
|
224
|
-
yellow: {
|
|
225
|
-
foreground: string;
|
|
226
|
-
background: string;
|
|
227
|
-
};
|
|
228
|
-
green: {
|
|
229
|
-
foreground: string;
|
|
230
|
-
background: string;
|
|
231
|
-
};
|
|
232
|
-
blue: {
|
|
233
|
-
foreground: string;
|
|
234
|
-
background: string;
|
|
235
|
-
};
|
|
236
|
-
};
|
|
237
|
-
};
|
|
238
|
-
};
|
|
239
|
-
} | undefined;
|
|
240
|
-
} & {
|
|
241
|
-
as?: string | import("react").ComponentType<any> | undefined;
|
|
242
|
-
forwardedAs?: string | import("react").ComponentType<any> | undefined;
|
|
243
|
-
}, import("../../hooks").BreakpointNames>, string | number | symbol> & import("react").RefAttributes<Text>>;
|
|
6
|
+
children?: import("react").ReactNode;
|
|
7
|
+
} & import("react").RefAttributes<unknown>>;
|
|
@@ -3,6 +3,17 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
3
3
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
4
|
return cooked;
|
|
5
5
|
};
|
|
6
|
+
var __assign = (this && this.__assign) || function () {
|
|
7
|
+
__assign = Object.assign || function(t) {
|
|
8
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
+
s = arguments[i];
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
+
t[p] = s[p];
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
};
|
|
15
|
+
return __assign.apply(this, arguments);
|
|
16
|
+
};
|
|
6
17
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
18
|
if (k2 === undefined) k2 = k;
|
|
8
19
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -28,11 +39,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
28
39
|
};
|
|
29
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
41
|
exports.Lead = void 0;
|
|
42
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
43
|
+
var element_core_1 = require("@ovotech/element-core");
|
|
44
|
+
var react_1 = require("react");
|
|
31
45
|
var styled_native_1 = __importStar(require("../../styled.native"));
|
|
32
|
-
var utils_1 = require("../../utils");
|
|
33
46
|
var StyledLead = styled_native_1.default.Text(function (_a) {
|
|
34
|
-
var _b = _a.theme, core = _b.core, semantic = _b.semantic, smallAndUp = _a.smallAndUp;
|
|
35
|
-
return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n "], ["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n "])), core.fontFamily.body.native, core.fontSize.lead[smallAndUp ? 'large' : 'small'], core.lineHeight.lead[smallAndUp ? 'large' : 'small'],
|
|
47
|
+
var _b = _a.theme, core = _b.core, semantic = _b.semantic, smallAndUp = _a.smallAndUp, inverted = _a.inverted;
|
|
48
|
+
return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n "], ["\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n color: ", ";\n "])), core.fontFamily.body.native, (0, element_core_1.numToPx)(core.fontSize.lead[smallAndUp ? 'large' : 'small']), (0, element_core_1.numToPx)(core.lineHeight.lead[smallAndUp ? 'large' : 'small']), inverted
|
|
49
|
+
? semantic.inverted.message.link
|
|
50
|
+
: semantic.message.branded);
|
|
36
51
|
});
|
|
37
|
-
exports.Lead = (0,
|
|
52
|
+
exports.Lead = (0, react_1.forwardRef)(function (props, ref) { return ((0, jsx_runtime_1.jsx)(StyledLead, __assign({}, props, { ref: ref }))); });
|
|
38
53
|
var templateObject_1;
|