@ovotech/element-native 3.2.3 → 3.3.0-canary-8dfcb66-130
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/styles.d.ts +27 -27
- package/dist/components/Accordion/styles.js +1 -1
- package/dist/components/ActionList/ActionList.d.ts +1 -0
- package/dist/components/ActionList/ActionList.js +4 -3
- package/dist/components/ActionList/styled.d.ts +46 -45
- package/dist/components/ActionList/styled.js +4 -2
- package/dist/components/Badge/Badge.d.ts +9 -9
- package/dist/components/Card/Card.d.ts +9 -9
- package/dist/components/Checkbox/Checkbox.js +4 -5
- package/dist/components/DataTable/styles.d.ts +99 -99
- package/dist/components/DescriptionList/styled.d.ts +9 -9
- package/dist/components/ErrorText/ErrorText.d.ts +9 -9
- package/dist/components/Field/Field.js +1 -3
- package/dist/components/Grid/Col.d.ts +9 -9
- package/dist/components/Grid/Row.d.ts +9 -9
- package/dist/components/HintText/HintText.d.ts +9 -9
- package/dist/components/Input/PasswordInput.styled.d.ts +9 -9
- package/dist/components/LabelText/LabelText.d.ts +9 -9
- package/dist/components/List/List.d.ts +19 -270
- package/dist/components/List/List.js +2 -55
- package/dist/components/List/index.d.ts +1 -1
- package/dist/components/List/index.js +1 -4
- package/dist/components/Margin/Margin.d.ts +11 -11
- package/dist/components/Notification/Notification.d.ts +18 -18
- package/dist/components/SelectField/Select.d.ts +9 -9
- package/dist/components/SkeletonLoading/Skeleton.d.ts +9 -9
- package/dist/components/Stack/Stack.d.ts +2 -2
- package/dist/components/SubLabelText/SubLabelText.d.ts +9 -9
- package/dist/components/Text/Text.d.ts +45 -45
- package/dist/components/TextLink/TextLink.js +6 -3
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.js +0 -1
- package/dist/esm/components/Accordion/styles.js +1 -1
- package/dist/esm/components/ActionList/ActionList.js +4 -3
- package/dist/esm/components/ActionList/styled.js +4 -2
- package/dist/esm/components/Checkbox/Checkbox.js +4 -5
- package/dist/esm/components/Field/Field.js +2 -4
- package/dist/esm/components/List/List.js +2 -52
- package/dist/esm/components/List/index.js +1 -1
- package/dist/esm/components/TextLink/TextLink.js +8 -5
- package/dist/esm/components/index.js +0 -1
- package/dist/esm/index.js +0 -1
- package/dist/esm/providers/IconsProvider.js +46 -3
- package/dist/esm/providers/icons/Address.js +14 -0
- package/dist/esm/providers/icons/Advice.js +14 -0
- package/dist/esm/providers/icons/Archive.js +14 -0
- package/dist/esm/providers/icons/ArrowDown.js +2 -2
- package/dist/esm/providers/icons/ArrowLeft.js +2 -2
- package/dist/esm/providers/icons/ArrowRight.js +2 -2
- package/dist/esm/providers/icons/ArrowUp.js +2 -2
- package/dist/esm/providers/icons/Award.js +14 -0
- package/dist/esm/providers/icons/Battery.js +14 -0
- package/dist/esm/providers/icons/Cal.js +14 -0
- package/dist/esm/providers/icons/CalBook.js +14 -0
- package/dist/esm/providers/icons/CaretDown.js +2 -2
- package/dist/esm/providers/icons/CaretLeft.js +2 -2
- package/dist/esm/providers/icons/CaretRight.js +2 -2
- package/dist/esm/providers/icons/CaretUp.js +2 -2
- package/dist/esm/providers/icons/Chart.js +2 -2
- package/dist/esm/providers/icons/ChartFilled.js +14 -0
- package/dist/esm/providers/icons/Check.js +2 -2
- package/dist/esm/providers/icons/CheckCircle.js +14 -0
- package/dist/esm/providers/icons/ChevronDown.js +2 -2
- package/dist/esm/providers/icons/ChevronLeft.js +2 -2
- package/dist/esm/providers/icons/ChevronLeftSmall.js +2 -2
- package/dist/esm/providers/icons/ChevronLeftSmallFirst.js +2 -2
- package/dist/esm/providers/icons/ChevronRight.js +2 -2
- package/dist/esm/providers/icons/ChevronRightSmall.js +2 -2
- package/dist/esm/providers/icons/ChevronRightSmallLast.js +2 -2
- package/dist/esm/providers/icons/ChevronUp.js +2 -2
- package/dist/esm/providers/icons/CloseCircle.js +14 -0
- package/dist/esm/providers/icons/Cross.js +2 -2
- package/dist/esm/{theme/index.js → providers/icons/Doc.js} +3 -8
- package/dist/esm/providers/icons/Dollar.js +2 -2
- package/dist/esm/providers/icons/Download.js +2 -2
- package/dist/esm/providers/icons/Eco.js +14 -0
- package/dist/esm/providers/icons/EcoHome.js +14 -0
- package/dist/esm/providers/icons/Edit.js +14 -0
- package/dist/esm/providers/icons/ElectricCar.js +14 -0
- package/dist/esm/providers/icons/ElectricHome.js +14 -0
- package/dist/esm/providers/icons/Electricity.js +2 -2
- package/dist/esm/providers/icons/EnergyAdvice.js +14 -0
- package/dist/esm/providers/icons/Equals.js +14 -0
- package/dist/esm/providers/icons/Euro.js +2 -2
- package/dist/esm/providers/icons/Gas.js +3 -3
- package/dist/esm/providers/icons/GlobeAddress.js +14 -0
- package/dist/esm/providers/icons/Help.js +2 -2
- package/dist/esm/providers/icons/Hide.js +2 -2
- package/dist/esm/providers/icons/Home.js +2 -2
- package/dist/esm/providers/icons/HomeFilled.js +14 -0
- package/dist/esm/providers/icons/HydroPower.js +14 -0
- package/dist/esm/providers/icons/Info.js +2 -2
- package/dist/esm/providers/icons/Link.js +2 -2
- package/dist/esm/providers/icons/Mail.js +14 -0
- package/dist/esm/providers/icons/MailOpen.js +14 -0
- package/dist/esm/providers/icons/Menu.js +14 -0
- package/dist/esm/providers/icons/Message.js +14 -0
- package/dist/esm/providers/icons/MessageFilled.js +14 -0
- package/dist/esm/providers/icons/Minus.js +2 -2
- package/dist/esm/providers/icons/Mobile.js +14 -0
- package/dist/esm/providers/icons/NewWindow.js +3 -3
- package/dist/esm/providers/icons/PaymentCard.js +2 -2
- package/dist/esm/providers/icons/Phone.js +14 -0
- package/dist/esm/providers/icons/Plus.js +2 -2
- package/dist/esm/providers/icons/Pound.js +2 -2
- package/dist/esm/providers/icons/Pricing.js +14 -0
- package/dist/esm/providers/icons/Search.js +2 -2
- package/dist/esm/providers/icons/Security.js +14 -0
- package/dist/esm/providers/icons/Show.js +2 -2
- package/dist/esm/providers/icons/SmartHome.js +14 -0
- package/dist/esm/providers/icons/SmartMeter.js +14 -0
- package/dist/esm/providers/icons/Solar.js +14 -0
- package/dist/esm/providers/icons/Star.js +14 -0
- package/dist/esm/providers/icons/Sun.js +14 -0
- package/dist/esm/providers/icons/Trees.js +14 -0
- package/dist/esm/providers/icons/Tune.js +2 -2
- package/dist/esm/providers/icons/User.js +2 -2
- package/dist/esm/providers/icons/UserFilled.js +14 -0
- package/dist/esm/providers/icons/Wallet.js +14 -0
- package/dist/esm/providers/icons/WalletFilled.js +14 -0
- package/dist/esm/providers/icons/WarmHome.js +14 -0
- package/dist/esm/providers/icons/Warning.js +14 -0
- package/dist/esm/providers/icons/WebAddress.js +14 -0
- package/dist/esm/providers/icons/WindPower.js +14 -0
- package/dist/esm/providers/icons/index.js +46 -3
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/providers/IconsProvider.js +45 -2
- package/dist/providers/icons/Address.d.ts +2 -0
- package/dist/providers/icons/Address.js +41 -0
- package/dist/providers/icons/Advice.d.ts +2 -0
- package/dist/providers/icons/Advice.js +41 -0
- package/dist/providers/icons/Archive.d.ts +2 -0
- package/dist/providers/icons/Archive.js +41 -0
- package/dist/providers/icons/ArrowDown.js +25 -2
- package/dist/providers/icons/ArrowLeft.js +25 -2
- package/dist/providers/icons/ArrowRight.js +25 -2
- package/dist/providers/icons/ArrowUp.js +25 -2
- package/dist/providers/icons/Award.d.ts +2 -0
- package/dist/providers/icons/Award.js +41 -0
- package/dist/providers/icons/Battery.d.ts +2 -0
- package/dist/providers/icons/Battery.js +41 -0
- package/dist/providers/icons/Cal.d.ts +2 -0
- package/dist/providers/icons/Cal.js +41 -0
- package/dist/providers/icons/CalBook.d.ts +2 -0
- package/dist/providers/icons/CalBook.js +41 -0
- package/dist/providers/icons/CaretDown.js +25 -2
- package/dist/providers/icons/CaretLeft.js +25 -2
- package/dist/providers/icons/CaretRight.js +25 -2
- package/dist/providers/icons/CaretUp.js +25 -2
- package/dist/providers/icons/Chart.js +25 -2
- package/dist/providers/icons/ChartFilled.d.ts +2 -0
- package/dist/providers/icons/ChartFilled.js +41 -0
- package/dist/providers/icons/Check.js +25 -2
- package/dist/providers/icons/CheckCircle.d.ts +2 -0
- package/dist/providers/icons/CheckCircle.js +41 -0
- package/dist/providers/icons/ChevronDown.js +25 -2
- package/dist/providers/icons/ChevronLeft.js +25 -2
- package/dist/providers/icons/ChevronLeftSmall.js +25 -2
- package/dist/providers/icons/ChevronLeftSmallFirst.js +25 -2
- package/dist/providers/icons/ChevronRight.js +25 -2
- package/dist/providers/icons/ChevronRightSmall.js +25 -2
- package/dist/providers/icons/ChevronRightSmallLast.js +25 -2
- package/dist/providers/icons/ChevronUp.js +25 -2
- package/dist/providers/icons/CloseCircle.d.ts +2 -0
- package/dist/providers/icons/CloseCircle.js +41 -0
- package/dist/providers/icons/Cross.js +25 -2
- package/dist/providers/icons/Doc.d.ts +2 -0
- package/dist/providers/icons/Doc.js +41 -0
- package/dist/providers/icons/Dollar.js +25 -2
- package/dist/providers/icons/Download.js +25 -2
- package/dist/providers/icons/Eco.d.ts +2 -0
- package/dist/providers/icons/Eco.js +41 -0
- package/dist/providers/icons/EcoHome.d.ts +2 -0
- package/dist/providers/icons/EcoHome.js +41 -0
- package/dist/providers/icons/Edit.d.ts +2 -0
- package/dist/providers/icons/Edit.js +41 -0
- package/dist/providers/icons/ElectricCar.d.ts +2 -0
- package/dist/providers/icons/ElectricCar.js +41 -0
- package/dist/providers/icons/ElectricHome.d.ts +2 -0
- package/dist/providers/icons/ElectricHome.js +41 -0
- package/dist/providers/icons/Electricity.js +25 -2
- package/dist/providers/icons/EnergyAdvice.d.ts +2 -0
- package/dist/providers/icons/EnergyAdvice.js +41 -0
- package/dist/providers/icons/Equals.d.ts +2 -0
- package/dist/providers/icons/Equals.js +41 -0
- package/dist/providers/icons/Euro.js +25 -2
- package/dist/providers/icons/Gas.js +25 -2
- package/dist/providers/icons/GlobeAddress.d.ts +2 -0
- package/dist/providers/icons/GlobeAddress.js +41 -0
- package/dist/providers/icons/Help.js +25 -2
- package/dist/providers/icons/Hide.js +25 -2
- package/dist/providers/icons/Home.js +25 -2
- package/dist/providers/icons/HomeFilled.d.ts +2 -0
- package/dist/providers/icons/HomeFilled.js +41 -0
- package/dist/providers/icons/HydroPower.d.ts +2 -0
- package/dist/providers/icons/HydroPower.js +41 -0
- package/dist/providers/icons/Info.js +25 -2
- package/dist/providers/icons/Link.js +25 -2
- package/dist/providers/icons/Mail.d.ts +2 -0
- package/dist/providers/icons/Mail.js +41 -0
- package/dist/providers/icons/MailOpen.d.ts +2 -0
- package/dist/providers/icons/MailOpen.js +41 -0
- package/dist/providers/icons/Menu.d.ts +2 -0
- package/dist/providers/icons/Menu.js +41 -0
- package/dist/providers/icons/Message.d.ts +2 -0
- package/dist/providers/icons/Message.js +41 -0
- package/dist/providers/icons/MessageFilled.d.ts +2 -0
- package/dist/providers/icons/MessageFilled.js +41 -0
- package/dist/providers/icons/Minus.js +25 -2
- package/dist/providers/icons/Mobile.d.ts +2 -0
- package/dist/providers/icons/Mobile.js +41 -0
- package/dist/providers/icons/NewWindow.js +25 -2
- package/dist/providers/icons/PaymentCard.js +25 -2
- package/dist/providers/icons/Phone.d.ts +2 -0
- package/dist/providers/icons/Phone.js +41 -0
- package/dist/providers/icons/Plus.js +25 -2
- package/dist/providers/icons/Pound.js +25 -2
- package/dist/providers/icons/Pricing.d.ts +2 -0
- package/dist/providers/icons/Pricing.js +41 -0
- package/dist/providers/icons/Search.js +25 -2
- package/dist/providers/icons/Security.d.ts +2 -0
- package/dist/providers/icons/Security.js +41 -0
- package/dist/providers/icons/Show.js +25 -2
- package/dist/providers/icons/SmartHome.d.ts +2 -0
- package/dist/providers/icons/SmartHome.js +41 -0
- package/dist/providers/icons/SmartMeter.d.ts +2 -0
- package/dist/providers/icons/SmartMeter.js +41 -0
- package/dist/providers/icons/Solar.d.ts +2 -0
- package/dist/providers/icons/Solar.js +41 -0
- package/dist/providers/icons/Star.d.ts +2 -0
- package/dist/providers/icons/Star.js +41 -0
- package/dist/providers/icons/Sun.d.ts +2 -0
- package/dist/providers/icons/Sun.js +41 -0
- package/dist/providers/icons/Trees.d.ts +2 -0
- package/dist/providers/icons/Trees.js +41 -0
- package/dist/providers/icons/Tune.js +25 -2
- package/dist/providers/icons/User.js +25 -2
- package/dist/providers/icons/UserFilled.d.ts +2 -0
- package/dist/providers/icons/UserFilled.js +41 -0
- package/dist/providers/icons/Wallet.d.ts +2 -0
- package/dist/providers/icons/Wallet.js +41 -0
- package/dist/providers/icons/WalletFilled.d.ts +2 -0
- package/dist/providers/icons/WalletFilled.js +41 -0
- package/dist/providers/icons/WarmHome.d.ts +2 -0
- package/dist/providers/icons/WarmHome.js +41 -0
- package/dist/providers/icons/Warning.d.ts +2 -0
- package/dist/providers/icons/Warning.js +41 -0
- package/dist/providers/icons/WebAddress.d.ts +2 -0
- package/dist/providers/icons/WebAddress.js +41 -0
- package/dist/providers/icons/WindPower.d.ts +2 -0
- package/dist/providers/icons/WindPower.js +41 -0
- package/dist/providers/icons/index.d.ts +46 -3
- package/dist/providers/icons/index.js +46 -3
- package/dist/styled.native.d.ts +49 -49
- package/package.json +2 -2
- package/dist/components/SummaryList/SummaryList.d.ts +0 -14
- package/dist/components/SummaryList/SummaryList.js +0 -47
- package/dist/components/SummaryList/index.d.ts +0 -1
- package/dist/components/SummaryList/index.js +0 -6
- package/dist/esm/components/SummaryList/SummaryList.js +0 -43
- package/dist/esm/components/SummaryList/index.js +0 -1
- package/dist/esm/theme/create-theme.js +0 -330
- package/dist/esm/theme/theme.js +0 -1
- package/dist/theme/create-theme.d.ts +0 -18
- package/dist/theme/create-theme.js +0 -337
- package/dist/theme/index.d.ts +0 -231
- package/dist/theme/index.js +0 -37
- package/dist/theme/theme.d.ts +0 -193
- package/dist/theme/theme.js +0 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import Animated from 'react-native-reanimated';
|
|
2
|
-
export declare const StyledAccordion: import("styled-components").StyledComponent<typeof Animated.View,
|
|
2
|
+
export declare const StyledAccordion: import("styled-components").StyledComponent<typeof Animated.View, {
|
|
3
3
|
core: {
|
|
4
4
|
radius: Record<"small" | "medium" | "large" | "max", string>;
|
|
5
5
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
6
6
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
7
7
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
8
|
-
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|
|
8
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
9
9
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
10
10
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
11
11
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -19,16 +19,16 @@ export declare const StyledAccordion: import("styled-components").StyledComponen
|
|
|
19
19
|
}> & {
|
|
20
20
|
brand: Record<string, string>;
|
|
21
21
|
};
|
|
22
|
-
fontFamily: Record<"
|
|
22
|
+
fontFamily: Record<"body" | "mono" | "heading" | "bodyBold", {
|
|
23
23
|
native: string;
|
|
24
24
|
web: string;
|
|
25
25
|
}>;
|
|
26
26
|
fontWeight: Record<"bold" | "book" | "black", string | number>;
|
|
27
|
-
fontSize: Record<"small" | "body" | "label" | "
|
|
27
|
+
fontSize: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
28
28
|
small: string | number;
|
|
29
29
|
large: string | number;
|
|
30
30
|
}>;
|
|
31
|
-
lineHeight: Record<"small" | "body" | "label" | "
|
|
31
|
+
lineHeight: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
32
32
|
small: string | number;
|
|
33
33
|
large: string | number;
|
|
34
34
|
}>;
|
|
@@ -36,10 +36,10 @@ export declare const StyledAccordion: import("styled-components").StyledComponen
|
|
|
36
36
|
};
|
|
37
37
|
semantic: {
|
|
38
38
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
39
|
-
message: Record<"base" | "link" | "
|
|
39
|
+
message: Record<"base" | "link" | "secondary" | "error" | "branded", string>;
|
|
40
40
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
41
41
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
42
|
-
inverted: Record<"
|
|
42
|
+
inverted: Record<"surface" | "border", string> & {
|
|
43
43
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
44
44
|
};
|
|
45
45
|
success: {
|
|
@@ -70,7 +70,7 @@ export declare const StyledAccordion: import("styled-components").StyledComponen
|
|
|
70
70
|
message: string;
|
|
71
71
|
messageOnEmphasis: string;
|
|
72
72
|
};
|
|
73
|
-
data: Record<"
|
|
73
|
+
data: Record<"branded" | "gas" | "electric", Record<2 | 1 | 3 | 4, string>>;
|
|
74
74
|
};
|
|
75
75
|
component: {
|
|
76
76
|
heading1: {
|
|
@@ -226,17 +226,17 @@ export declare const StyledAccordion: import("styled-components").StyledComponen
|
|
|
226
226
|
};
|
|
227
227
|
};
|
|
228
228
|
};
|
|
229
|
-
}
|
|
229
|
+
}, {
|
|
230
230
|
first?: boolean | undefined;
|
|
231
231
|
last?: boolean | undefined;
|
|
232
232
|
}, never>;
|
|
233
|
-
export declare const StyledAccordionHeader: import("styled-components").StyledComponent<typeof import("react-native").TouchableOpacity,
|
|
233
|
+
export declare const StyledAccordionHeader: import("styled-components").StyledComponent<typeof import("react-native").TouchableOpacity, {
|
|
234
234
|
core: {
|
|
235
235
|
radius: Record<"small" | "medium" | "large" | "max", string>;
|
|
236
236
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
237
237
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
238
238
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
239
|
-
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|
|
239
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
240
240
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
241
241
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
242
242
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -250,16 +250,16 @@ export declare const StyledAccordionHeader: import("styled-components").StyledCo
|
|
|
250
250
|
}> & {
|
|
251
251
|
brand: Record<string, string>;
|
|
252
252
|
};
|
|
253
|
-
fontFamily: Record<"
|
|
253
|
+
fontFamily: Record<"body" | "mono" | "heading" | "bodyBold", {
|
|
254
254
|
native: string;
|
|
255
255
|
web: string;
|
|
256
256
|
}>;
|
|
257
257
|
fontWeight: Record<"bold" | "book" | "black", string | number>;
|
|
258
|
-
fontSize: Record<"small" | "body" | "label" | "
|
|
258
|
+
fontSize: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
259
259
|
small: string | number;
|
|
260
260
|
large: string | number;
|
|
261
261
|
}>;
|
|
262
|
-
lineHeight: Record<"small" | "body" | "label" | "
|
|
262
|
+
lineHeight: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
263
263
|
small: string | number;
|
|
264
264
|
large: string | number;
|
|
265
265
|
}>;
|
|
@@ -267,10 +267,10 @@ export declare const StyledAccordionHeader: import("styled-components").StyledCo
|
|
|
267
267
|
};
|
|
268
268
|
semantic: {
|
|
269
269
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
270
|
-
message: Record<"base" | "link" | "
|
|
270
|
+
message: Record<"base" | "link" | "secondary" | "error" | "branded", string>;
|
|
271
271
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
272
272
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
273
|
-
inverted: Record<"
|
|
273
|
+
inverted: Record<"surface" | "border", string> & {
|
|
274
274
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
275
275
|
};
|
|
276
276
|
success: {
|
|
@@ -301,7 +301,7 @@ export declare const StyledAccordionHeader: import("styled-components").StyledCo
|
|
|
301
301
|
message: string;
|
|
302
302
|
messageOnEmphasis: string;
|
|
303
303
|
};
|
|
304
|
-
data: Record<"
|
|
304
|
+
data: Record<"branded" | "gas" | "electric", Record<2 | 1 | 3 | 4, string>>;
|
|
305
305
|
};
|
|
306
306
|
component: {
|
|
307
307
|
heading1: {
|
|
@@ -457,14 +457,14 @@ export declare const StyledAccordionHeader: import("styled-components").StyledCo
|
|
|
457
457
|
};
|
|
458
458
|
};
|
|
459
459
|
};
|
|
460
|
-
}
|
|
461
|
-
export declare const StyledContainer: import("styled-components").StyledComponent<typeof import("react-native").View,
|
|
460
|
+
}, {}, never>;
|
|
461
|
+
export declare const StyledContainer: import("styled-components").StyledComponent<typeof import("react-native").View, {
|
|
462
462
|
core: {
|
|
463
463
|
radius: Record<"small" | "medium" | "large" | "max", string>;
|
|
464
464
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
465
465
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
466
466
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
467
|
-
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|
|
467
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
468
468
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
469
469
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
470
470
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -478,16 +478,16 @@ export declare const StyledContainer: import("styled-components").StyledComponen
|
|
|
478
478
|
}> & {
|
|
479
479
|
brand: Record<string, string>;
|
|
480
480
|
};
|
|
481
|
-
fontFamily: Record<"
|
|
481
|
+
fontFamily: Record<"body" | "mono" | "heading" | "bodyBold", {
|
|
482
482
|
native: string;
|
|
483
483
|
web: string;
|
|
484
484
|
}>;
|
|
485
485
|
fontWeight: Record<"bold" | "book" | "black", string | number>;
|
|
486
|
-
fontSize: Record<"small" | "body" | "label" | "
|
|
486
|
+
fontSize: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
487
487
|
small: string | number;
|
|
488
488
|
large: string | number;
|
|
489
489
|
}>;
|
|
490
|
-
lineHeight: Record<"small" | "body" | "label" | "
|
|
490
|
+
lineHeight: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
491
491
|
small: string | number;
|
|
492
492
|
large: string | number;
|
|
493
493
|
}>;
|
|
@@ -495,10 +495,10 @@ export declare const StyledContainer: import("styled-components").StyledComponen
|
|
|
495
495
|
};
|
|
496
496
|
semantic: {
|
|
497
497
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
498
|
-
message: Record<"base" | "link" | "
|
|
498
|
+
message: Record<"base" | "link" | "secondary" | "error" | "branded", string>;
|
|
499
499
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
500
500
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
501
|
-
inverted: Record<"
|
|
501
|
+
inverted: Record<"surface" | "border", string> & {
|
|
502
502
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
503
503
|
};
|
|
504
504
|
success: {
|
|
@@ -529,7 +529,7 @@ export declare const StyledContainer: import("styled-components").StyledComponen
|
|
|
529
529
|
message: string;
|
|
530
530
|
messageOnEmphasis: string;
|
|
531
531
|
};
|
|
532
|
-
data: Record<"
|
|
532
|
+
data: Record<"branded" | "gas" | "electric", Record<2 | 1 | 3 | 4, string>>;
|
|
533
533
|
};
|
|
534
534
|
component: {
|
|
535
535
|
heading1: {
|
|
@@ -685,4 +685,4 @@ export declare const StyledContainer: import("styled-components").StyledComponen
|
|
|
685
685
|
};
|
|
686
686
|
};
|
|
687
687
|
};
|
|
688
|
-
}
|
|
688
|
+
}, {}, never>;
|
|
@@ -50,7 +50,7 @@ exports.StyledAccordion = (0, styled_native_1.default)(react_native_reanimated_1
|
|
|
50
50
|
});
|
|
51
51
|
exports.StyledAccordionHeader = styled_native_1.default.TouchableOpacity(function (_a) {
|
|
52
52
|
var core = _a.theme.core;
|
|
53
|
-
return (0, styled_native_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n
|
|
53
|
+
return (0, styled_native_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n padding-top: ", ";\n padding-left: ", ";\n padding-right: 18px;\n padding-bottom: 18px;\n flex-direction: row;\n align-items: flex-start;\n justify-content: space-between;\n "], ["\n padding-top: ", ";\n padding-left: ", ";\n padding-right: 18px;\n padding-bottom: 18px;\n flex-direction: row;\n align-items: flex-start;\n justify-content: space-between;\n "])), core.space[5], core.space[3]);
|
|
54
54
|
});
|
|
55
55
|
exports.StyledContainer = styled_native_1.default.View(function (_a) {
|
|
56
56
|
var core = _a.theme.core;
|
|
@@ -17,6 +17,7 @@ declare type ActionProps = PropsWithChildren<ViewProps & {
|
|
|
17
17
|
fullWidth?: FullWidthOptions;
|
|
18
18
|
ref?: Ref<View>;
|
|
19
19
|
testID?: string;
|
|
20
|
+
inList?: boolean;
|
|
20
21
|
}>;
|
|
21
22
|
declare const ActionList: ({ children, inverted, ...rest }: ActionListProps) => JSX.Element;
|
|
22
23
|
declare const Action: ({ accessibilityRole, actionType, children, fullWidth, inverted, onPress, testID, ...rest }: ActionProps) => JSX.Element;
|
|
@@ -43,14 +43,15 @@ var ActionList = function (_a) {
|
|
|
43
43
|
fullWidth: 'always',
|
|
44
44
|
index: index,
|
|
45
45
|
hasBorder: childCount > 1 && index !== childCount - 1,
|
|
46
|
-
inverted: (_a = child.props.inverted) !== null && _a !== void 0 ? _a : inverted,
|
|
46
|
+
inverted: (_a = child.props.inverted) !== null && _a !== void 0 ? _a : inverted,
|
|
47
|
+
inList: true,
|
|
47
48
|
});
|
|
48
49
|
}) })));
|
|
49
50
|
};
|
|
50
51
|
exports.ActionList = ActionList;
|
|
51
52
|
var ActionWrapper = function (_a) {
|
|
52
53
|
var children = _a.children, accessibilityRole = _a.accessibilityRole, _b = _a.activeOpacity, activeOpacity = _b === void 0 ? 0.75 : _b, fullWidth = _a.fullWidth, _c = _a.hasBorder, hasBorder = _c === void 0 ? false : _c, _d = _a.inverted, inverted = _d === void 0 ? false : _d, onPress = _a.onPress, testID = _a.testID, rest = __rest(_a, ["children", "accessibilityRole", "activeOpacity", "fullWidth", "hasBorder", "inverted", "onPress", "testID"]);
|
|
53
|
-
return ((0, jsx_runtime_1.jsx)(styled_1.StyledActionWrapper, __assign({ hasBorder: hasBorder, inverted: inverted, testID: testID }, rest, { children: (0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, __assign({ activeOpacity: activeOpacity, accessibilityRole: accessibilityRole, onPress: onPress }, { children: (0, jsx_runtime_1.jsx)(styled_1.StyledActionInner, __assign({ fullWidth: fullWidth }, { children: children })) })) })));
|
|
54
|
+
return ((0, jsx_runtime_1.jsx)(styled_1.StyledActionWrapper, __assign({ hasBorder: hasBorder, inverted: inverted, testID: testID }, rest, { children: (0, jsx_runtime_1.jsx)(react_native_1.TouchableOpacity, __assign({ activeOpacity: activeOpacity, accessibilityRole: accessibilityRole, onPress: onPress }, { children: (0, jsx_runtime_1.jsx)(styled_1.StyledActionInner, __assign({ fullWidth: fullWidth, inList: rest === null || rest === void 0 ? void 0 : rest.inList }, { children: children })) })) })));
|
|
54
55
|
};
|
|
55
56
|
var Action = function (_a) {
|
|
56
57
|
var _b = _a.accessibilityRole, accessibilityRole = _b === void 0 ? 'link' : _b, _c = _a.actionType, actionType = _c === void 0 ? 'link' : _c, children = _a.children, _d = _a.fullWidth, fullWidth = _d === void 0 ? 'never' : _d, _e = _a.inverted, inverted = _e === void 0 ? false : _e, onPress = _a.onPress, testID = _a.testID, rest = __rest(_a, ["accessibilityRole", "actionType", "children", "fullWidth", "inverted", "onPress", "testID"]);
|
|
@@ -63,6 +64,6 @@ var Action = function (_a) {
|
|
|
63
64
|
if (fullWidth === 'small') {
|
|
64
65
|
fullWidth = smallAndUp ? 'never' : 'always';
|
|
65
66
|
}
|
|
66
|
-
return ((0, jsx_runtime_1.jsxs)(ActionWrapper, __assign({ accessibilityRole: accessibilityRole, fullWidth: fullWidth, inverted: inverted, onPress: onPress, testID: testID }, rest, { children: [isBackAction ? ((0, jsx_runtime_1.jsx)(styled_1.StyledLeftIcon, { inverted: inverted, name: ACTION_TYPES.back, size: 16 })) : null, (0, jsx_runtime_1.jsx)(styled_1.StyledActionText, __assign({ smallAndUp: smallAndUp, inverted: inverted }, { children: children })), updatedIconRight ? ((0, jsx_runtime_1.jsx)(styled_1.StyledRightIcon, { inverted: inverted, name: updatedIconRight, marginTop: actionType === 'link' ? 1 : 0, size: 16 })) : null] })));
|
|
67
|
+
return ((0, jsx_runtime_1.jsxs)(ActionWrapper, __assign({ accessibilityRole: accessibilityRole, fullWidth: fullWidth, inverted: inverted, onPress: onPress, testID: testID }, rest, { children: [isBackAction ? ((0, jsx_runtime_1.jsx)(styled_1.StyledLeftIcon, { inverted: inverted, name: ACTION_TYPES.back, size: 16 })) : null, (0, jsx_runtime_1.jsx)(styled_1.StyledActionText, __assign({ smallAndUp: smallAndUp, inverted: inverted, inList: rest === null || rest === void 0 ? void 0 : rest.inList }, { children: children })), updatedIconRight ? ((0, jsx_runtime_1.jsx)(styled_1.StyledRightIcon, { inverted: inverted, name: updatedIconRight, marginTop: actionType === 'link' ? 1 : 0, size: 16 })) : null] })));
|
|
67
68
|
};
|
|
68
69
|
exports.Action = Action;
|
|
@@ -2,13 +2,13 @@ import { Theme } from '@ovotech/element-core';
|
|
|
2
2
|
import { FullWidthOptions } from '../../hooks';
|
|
3
3
|
import { ListWrapper } from '../List/List';
|
|
4
4
|
export declare const StyledActionList: typeof ListWrapper;
|
|
5
|
-
export declare const StyledActionWrapper: import("styled-components").StyledComponent<typeof import("react-native").View,
|
|
5
|
+
export declare const StyledActionWrapper: import("styled-components").StyledComponent<typeof import("react-native").View, {
|
|
6
6
|
core: {
|
|
7
7
|
radius: Record<"small" | "medium" | "large" | "max", string>;
|
|
8
8
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
9
9
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
10
10
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
11
|
-
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|
|
11
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
12
12
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
13
13
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
14
14
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -22,16 +22,16 @@ export declare const StyledActionWrapper: import("styled-components").StyledComp
|
|
|
22
22
|
}> & {
|
|
23
23
|
brand: Record<string, string>;
|
|
24
24
|
};
|
|
25
|
-
fontFamily: Record<"
|
|
25
|
+
fontFamily: Record<"body" | "mono" | "heading" | "bodyBold", {
|
|
26
26
|
native: string;
|
|
27
27
|
web: string;
|
|
28
28
|
}>;
|
|
29
29
|
fontWeight: Record<"bold" | "book" | "black", string | number>;
|
|
30
|
-
fontSize: Record<"small" | "body" | "label" | "
|
|
30
|
+
fontSize: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
31
31
|
small: string | number;
|
|
32
32
|
large: string | number;
|
|
33
33
|
}>;
|
|
34
|
-
lineHeight: Record<"small" | "body" | "label" | "
|
|
34
|
+
lineHeight: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
35
35
|
small: string | number;
|
|
36
36
|
large: string | number;
|
|
37
37
|
}>;
|
|
@@ -39,10 +39,10 @@ export declare const StyledActionWrapper: import("styled-components").StyledComp
|
|
|
39
39
|
};
|
|
40
40
|
semantic: {
|
|
41
41
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
42
|
-
message: Record<"base" | "link" | "
|
|
42
|
+
message: Record<"base" | "link" | "secondary" | "error" | "branded", string>;
|
|
43
43
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
44
44
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
45
|
-
inverted: Record<"
|
|
45
|
+
inverted: Record<"surface" | "border", string> & {
|
|
46
46
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
47
47
|
};
|
|
48
48
|
success: {
|
|
@@ -73,7 +73,7 @@ export declare const StyledActionWrapper: import("styled-components").StyledComp
|
|
|
73
73
|
message: string;
|
|
74
74
|
messageOnEmphasis: string;
|
|
75
75
|
};
|
|
76
|
-
data: Record<"
|
|
76
|
+
data: Record<"branded" | "gas" | "electric", Record<2 | 1 | 3 | 4, string>>;
|
|
77
77
|
};
|
|
78
78
|
component: {
|
|
79
79
|
heading1: {
|
|
@@ -229,17 +229,17 @@ export declare const StyledActionWrapper: import("styled-components").StyledComp
|
|
|
229
229
|
};
|
|
230
230
|
};
|
|
231
231
|
};
|
|
232
|
-
}
|
|
232
|
+
}, {
|
|
233
233
|
hasBorder?: boolean | undefined;
|
|
234
234
|
inverted?: boolean | undefined;
|
|
235
235
|
}, never>;
|
|
236
|
-
export declare const StyledActionInner: import("styled-components").StyledComponent<typeof import("react-native").View,
|
|
236
|
+
export declare const StyledActionInner: import("styled-components").StyledComponent<typeof import("react-native").View, {
|
|
237
237
|
core: {
|
|
238
238
|
radius: Record<"small" | "medium" | "large" | "max", string>;
|
|
239
239
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
240
240
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
241
241
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
242
|
-
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|
|
242
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
243
243
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
244
244
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
245
245
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -253,16 +253,16 @@ export declare const StyledActionInner: import("styled-components").StyledCompon
|
|
|
253
253
|
}> & {
|
|
254
254
|
brand: Record<string, string>;
|
|
255
255
|
};
|
|
256
|
-
fontFamily: Record<"
|
|
256
|
+
fontFamily: Record<"body" | "mono" | "heading" | "bodyBold", {
|
|
257
257
|
native: string;
|
|
258
258
|
web: string;
|
|
259
259
|
}>;
|
|
260
260
|
fontWeight: Record<"bold" | "book" | "black", string | number>;
|
|
261
|
-
fontSize: Record<"small" | "body" | "label" | "
|
|
261
|
+
fontSize: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
262
262
|
small: string | number;
|
|
263
263
|
large: string | number;
|
|
264
264
|
}>;
|
|
265
|
-
lineHeight: Record<"small" | "body" | "label" | "
|
|
265
|
+
lineHeight: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
266
266
|
small: string | number;
|
|
267
267
|
large: string | number;
|
|
268
268
|
}>;
|
|
@@ -270,10 +270,10 @@ export declare const StyledActionInner: import("styled-components").StyledCompon
|
|
|
270
270
|
};
|
|
271
271
|
semantic: {
|
|
272
272
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
273
|
-
message: Record<"base" | "link" | "
|
|
273
|
+
message: Record<"base" | "link" | "secondary" | "error" | "branded", string>;
|
|
274
274
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
275
275
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
276
|
-
inverted: Record<"
|
|
276
|
+
inverted: Record<"surface" | "border", string> & {
|
|
277
277
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
278
278
|
};
|
|
279
279
|
success: {
|
|
@@ -304,7 +304,7 @@ export declare const StyledActionInner: import("styled-components").StyledCompon
|
|
|
304
304
|
message: string;
|
|
305
305
|
messageOnEmphasis: string;
|
|
306
306
|
};
|
|
307
|
-
data: Record<"
|
|
307
|
+
data: Record<"branded" | "gas" | "electric", Record<2 | 1 | 3 | 4, string>>;
|
|
308
308
|
};
|
|
309
309
|
component: {
|
|
310
310
|
heading1: {
|
|
@@ -460,16 +460,16 @@ export declare const StyledActionInner: import("styled-components").StyledCompon
|
|
|
460
460
|
};
|
|
461
461
|
};
|
|
462
462
|
};
|
|
463
|
-
}
|
|
463
|
+
}, {
|
|
464
464
|
fullWidth?: FullWidthOptions | undefined;
|
|
465
465
|
}, never>;
|
|
466
|
-
export declare const StyledActionText: import("styled-components").StyledComponent<typeof import("react-native").Text,
|
|
466
|
+
export declare const StyledActionText: import("styled-components").StyledComponent<typeof import("react-native").Text, {
|
|
467
467
|
core: {
|
|
468
468
|
radius: Record<"small" | "medium" | "large" | "max", string>;
|
|
469
469
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
470
470
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
471
471
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
472
|
-
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|
|
472
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
473
473
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
474
474
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
475
475
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -483,16 +483,16 @@ export declare const StyledActionText: import("styled-components").StyledCompone
|
|
|
483
483
|
}> & {
|
|
484
484
|
brand: Record<string, string>;
|
|
485
485
|
};
|
|
486
|
-
fontFamily: Record<"
|
|
486
|
+
fontFamily: Record<"body" | "mono" | "heading" | "bodyBold", {
|
|
487
487
|
native: string;
|
|
488
488
|
web: string;
|
|
489
489
|
}>;
|
|
490
490
|
fontWeight: Record<"bold" | "book" | "black", string | number>;
|
|
491
|
-
fontSize: Record<"small" | "body" | "label" | "
|
|
491
|
+
fontSize: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
492
492
|
small: string | number;
|
|
493
493
|
large: string | number;
|
|
494
494
|
}>;
|
|
495
|
-
lineHeight: Record<"small" | "body" | "label" | "
|
|
495
|
+
lineHeight: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
496
496
|
small: string | number;
|
|
497
497
|
large: string | number;
|
|
498
498
|
}>;
|
|
@@ -500,10 +500,10 @@ export declare const StyledActionText: import("styled-components").StyledCompone
|
|
|
500
500
|
};
|
|
501
501
|
semantic: {
|
|
502
502
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
503
|
-
message: Record<"base" | "link" | "
|
|
503
|
+
message: Record<"base" | "link" | "secondary" | "error" | "branded", string>;
|
|
504
504
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
505
505
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
506
|
-
inverted: Record<"
|
|
506
|
+
inverted: Record<"surface" | "border", string> & {
|
|
507
507
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
508
508
|
};
|
|
509
509
|
success: {
|
|
@@ -534,7 +534,7 @@ export declare const StyledActionText: import("styled-components").StyledCompone
|
|
|
534
534
|
message: string;
|
|
535
535
|
messageOnEmphasis: string;
|
|
536
536
|
};
|
|
537
|
-
data: Record<"
|
|
537
|
+
data: Record<"branded" | "gas" | "electric", Record<2 | 1 | 3 | 4, string>>;
|
|
538
538
|
};
|
|
539
539
|
component: {
|
|
540
540
|
heading1: {
|
|
@@ -690,17 +690,18 @@ export declare const StyledActionText: import("styled-components").StyledCompone
|
|
|
690
690
|
};
|
|
691
691
|
};
|
|
692
692
|
};
|
|
693
|
-
}
|
|
693
|
+
}, {
|
|
694
694
|
smallAndUp: boolean;
|
|
695
695
|
inverted?: boolean | undefined;
|
|
696
|
+
inList?: boolean | undefined;
|
|
696
697
|
}, never>;
|
|
697
|
-
export declare const StyledRightIcon: import("styled-components").StyledComponent<({ name, size, color, testID, ...rest }: import("../Icon/Icon").IconProps) => JSX.Element | null,
|
|
698
|
+
export declare const StyledRightIcon: import("styled-components").StyledComponent<({ name, size, color, testID, ...rest }: import("../Icon/Icon").IconProps) => JSX.Element | null, {
|
|
698
699
|
core: {
|
|
699
700
|
radius: Record<"small" | "medium" | "large" | "max", string>;
|
|
700
701
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
701
702
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
702
703
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
703
|
-
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|
|
704
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
704
705
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
705
706
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
706
707
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -714,16 +715,16 @@ export declare const StyledRightIcon: import("styled-components").StyledComponen
|
|
|
714
715
|
}> & {
|
|
715
716
|
brand: Record<string, string>;
|
|
716
717
|
};
|
|
717
|
-
fontFamily: Record<"
|
|
718
|
+
fontFamily: Record<"body" | "mono" | "heading" | "bodyBold", {
|
|
718
719
|
native: string;
|
|
719
720
|
web: string;
|
|
720
721
|
}>;
|
|
721
722
|
fontWeight: Record<"bold" | "book" | "black", string | number>;
|
|
722
|
-
fontSize: Record<"small" | "body" | "label" | "
|
|
723
|
+
fontSize: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
723
724
|
small: string | number;
|
|
724
725
|
large: string | number;
|
|
725
726
|
}>;
|
|
726
|
-
lineHeight: Record<"small" | "body" | "label" | "
|
|
727
|
+
lineHeight: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
727
728
|
small: string | number;
|
|
728
729
|
large: string | number;
|
|
729
730
|
}>;
|
|
@@ -731,10 +732,10 @@ export declare const StyledRightIcon: import("styled-components").StyledComponen
|
|
|
731
732
|
};
|
|
732
733
|
semantic: {
|
|
733
734
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
734
|
-
message: Record<"base" | "link" | "
|
|
735
|
+
message: Record<"base" | "link" | "secondary" | "error" | "branded", string>;
|
|
735
736
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
736
737
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
737
|
-
inverted: Record<"
|
|
738
|
+
inverted: Record<"surface" | "border", string> & {
|
|
738
739
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
739
740
|
};
|
|
740
741
|
success: {
|
|
@@ -765,7 +766,7 @@ export declare const StyledRightIcon: import("styled-components").StyledComponen
|
|
|
765
766
|
message: string;
|
|
766
767
|
messageOnEmphasis: string;
|
|
767
768
|
};
|
|
768
|
-
data: Record<"
|
|
769
|
+
data: Record<"branded" | "gas" | "electric", Record<2 | 1 | 3 | 4, string>>;
|
|
769
770
|
};
|
|
770
771
|
component: {
|
|
771
772
|
heading1: {
|
|
@@ -921,17 +922,17 @@ export declare const StyledRightIcon: import("styled-components").StyledComponen
|
|
|
921
922
|
};
|
|
922
923
|
};
|
|
923
924
|
};
|
|
924
|
-
}
|
|
925
|
+
}, {
|
|
925
926
|
inverted?: boolean | undefined;
|
|
926
927
|
marginTop: keyof Theme['core']['space'];
|
|
927
928
|
}, never>;
|
|
928
|
-
export declare const StyledLeftIcon: import("styled-components").StyledComponent<({ name, size, color, testID, ...rest }: import("../Icon/Icon").IconProps) => JSX.Element | null,
|
|
929
|
+
export declare const StyledLeftIcon: import("styled-components").StyledComponent<({ name, size, color, testID, ...rest }: import("../Icon/Icon").IconProps) => JSX.Element | null, {
|
|
929
930
|
core: {
|
|
930
931
|
radius: Record<"small" | "medium" | "large" | "max", string>;
|
|
931
932
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
932
933
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
933
934
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
934
|
-
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|
|
935
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
935
936
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
936
937
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
937
938
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -945,16 +946,16 @@ export declare const StyledLeftIcon: import("styled-components").StyledComponent
|
|
|
945
946
|
}> & {
|
|
946
947
|
brand: Record<string, string>;
|
|
947
948
|
};
|
|
948
|
-
fontFamily: Record<"
|
|
949
|
+
fontFamily: Record<"body" | "mono" | "heading" | "bodyBold", {
|
|
949
950
|
native: string;
|
|
950
951
|
web: string;
|
|
951
952
|
}>;
|
|
952
953
|
fontWeight: Record<"bold" | "book" | "black", string | number>;
|
|
953
|
-
fontSize: Record<"small" | "body" | "label" | "
|
|
954
|
+
fontSize: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
954
955
|
small: string | number;
|
|
955
956
|
large: string | number;
|
|
956
957
|
}>;
|
|
957
|
-
lineHeight: Record<"small" | "body" | "label" | "
|
|
958
|
+
lineHeight: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
958
959
|
small: string | number;
|
|
959
960
|
large: string | number;
|
|
960
961
|
}>;
|
|
@@ -962,10 +963,10 @@ export declare const StyledLeftIcon: import("styled-components").StyledComponent
|
|
|
962
963
|
};
|
|
963
964
|
semantic: {
|
|
964
965
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
965
|
-
message: Record<"base" | "link" | "
|
|
966
|
+
message: Record<"base" | "link" | "secondary" | "error" | "branded", string>;
|
|
966
967
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
967
968
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
968
|
-
inverted: Record<"
|
|
969
|
+
inverted: Record<"surface" | "border", string> & {
|
|
969
970
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
970
971
|
};
|
|
971
972
|
success: {
|
|
@@ -996,7 +997,7 @@ export declare const StyledLeftIcon: import("styled-components").StyledComponent
|
|
|
996
997
|
message: string;
|
|
997
998
|
messageOnEmphasis: string;
|
|
998
999
|
};
|
|
999
|
-
data: Record<"
|
|
1000
|
+
data: Record<"branded" | "gas" | "electric", Record<2 | 1 | 3 | 4, string>>;
|
|
1000
1001
|
};
|
|
1001
1002
|
component: {
|
|
1002
1003
|
heading1: {
|
|
@@ -1152,6 +1153,6 @@ export declare const StyledLeftIcon: import("styled-components").StyledComponent
|
|
|
1152
1153
|
};
|
|
1153
1154
|
};
|
|
1154
1155
|
};
|
|
1155
|
-
}
|
|
1156
|
+
}, {
|
|
1156
1157
|
inverted?: boolean | undefined;
|
|
1157
1158
|
}, never>;
|
|
@@ -41,11 +41,13 @@ exports.StyledActionInner = styled_native_1.default.View(function (_a) {
|
|
|
41
41
|
return "\n display: flex;\n flex-direction: row;\n justify-content: ".concat(fullWidth === 'always' ? 'space-between' : 'flex-start', ";\n align-items: center;\n min-height: 44px;\n");
|
|
42
42
|
});
|
|
43
43
|
exports.StyledActionText = styled_native_1.default.Text(function (_a) {
|
|
44
|
-
var _b = _a.theme, core = _b.core, semantic = _b.semantic, smallAndUp = _a.smallAndUp, _c = _a.inverted, inverted = _c === void 0 ? false : _c;
|
|
44
|
+
var _b = _a.theme, core = _b.core, semantic = _b.semantic, smallAndUp = _a.smallAndUp, _c = _a.inverted, inverted = _c === void 0 ? false : _c, _d = _a.inList, inList = _d === void 0 ? false : _d;
|
|
45
45
|
var fontSize = smallAndUp
|
|
46
46
|
? core.fontSize.body.large
|
|
47
47
|
: core.fontSize.body.small;
|
|
48
|
-
return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n
|
|
48
|
+
return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n color: ", ";\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n flex: ", ";\n "], ["\n color: ", ";\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n flex: ", ";\n "])), inverted
|
|
49
|
+
? semantic.inverted.message.base
|
|
50
|
+
: semantic.message.base, core.fontFamily.bodyBold.native, fontSize, core.lineHeight.body.small, inList ? 1 : 'none');
|
|
49
51
|
});
|
|
50
52
|
exports.StyledRightIcon = (0, styled_native_1.default)(Icon_1.Icon)(function (_a) {
|
|
51
53
|
var _b = _a.theme, core = _b.core, semantic = _b.semantic, inverted = _a.inverted, marginTop = _a.marginTop;
|