@ovotech/element-native 3.2.3-canary-490fc38-128 → 3.2.3
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/styled.d.ts +45 -45
- package/dist/components/ActionList/styled.js +1 -1
- package/dist/components/Badge/Badge.d.ts +9 -9
- package/dist/components/Card/Card.d.ts +9 -9
- package/dist/components/Checkbox/Checkbox.js +5 -4
- 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 +3 -1
- 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 +270 -19
- package/dist/components/List/List.js +55 -2
- package/dist/components/List/index.d.ts +1 -1
- package/dist/components/List/index.js +4 -1
- 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/SummaryList/SummaryList.d.ts +14 -0
- package/dist/components/SummaryList/SummaryList.js +47 -0
- package/dist/components/SummaryList/index.d.ts +1 -0
- package/dist/components/SummaryList/index.js +6 -0
- package/dist/components/Text/Text.d.ts +45 -45
- package/dist/components/TextLink/TextLink.js +3 -6
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/esm/components/Accordion/styles.js +1 -1
- package/dist/esm/components/ActionList/styled.js +1 -1
- package/dist/esm/components/Checkbox/Checkbox.js +5 -4
- package/dist/esm/components/Field/Field.js +4 -2
- package/dist/esm/components/List/List.js +52 -2
- package/dist/esm/components/List/index.js +1 -1
- package/dist/esm/components/SummaryList/SummaryList.js +43 -0
- package/dist/esm/components/SummaryList/index.js +1 -0
- package/dist/esm/components/TextLink/TextLink.js +5 -8
- package/dist/esm/components/index.js +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/providers/IconsProvider.js +3 -46
- 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/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/Check.js +2 -2
- 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/Cross.js +2 -2
- package/dist/esm/providers/icons/Dollar.js +2 -2
- package/dist/esm/providers/icons/Download.js +2 -2
- package/dist/esm/providers/icons/Electricity.js +2 -2
- package/dist/esm/providers/icons/Euro.js +2 -2
- package/dist/esm/providers/icons/Gas.js +3 -3
- 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/Info.js +2 -2
- package/dist/esm/providers/icons/Link.js +2 -2
- package/dist/esm/providers/icons/Minus.js +2 -2
- package/dist/esm/providers/icons/NewWindow.js +3 -3
- package/dist/esm/providers/icons/PaymentCard.js +2 -2
- package/dist/esm/providers/icons/Plus.js +2 -2
- package/dist/esm/providers/icons/Pound.js +2 -2
- package/dist/esm/providers/icons/Search.js +2 -2
- package/dist/esm/providers/icons/Show.js +2 -2
- package/dist/esm/providers/icons/Tune.js +2 -2
- package/dist/esm/providers/icons/User.js +2 -2
- package/dist/esm/providers/icons/index.js +3 -46
- package/dist/esm/theme/create-theme.js +330 -0
- package/dist/esm/{providers/icons/Doc.js → theme/index.js} +8 -3
- package/dist/esm/theme/theme.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/providers/IconsProvider.js +2 -45
- package/dist/providers/icons/ArrowDown.js +2 -25
- package/dist/providers/icons/ArrowLeft.js +2 -25
- package/dist/providers/icons/ArrowRight.js +2 -25
- package/dist/providers/icons/ArrowUp.js +2 -25
- package/dist/providers/icons/CaretDown.js +2 -25
- package/dist/providers/icons/CaretLeft.js +2 -25
- package/dist/providers/icons/CaretRight.js +2 -25
- package/dist/providers/icons/CaretUp.js +2 -25
- package/dist/providers/icons/Chart.js +2 -25
- package/dist/providers/icons/Check.js +2 -25
- package/dist/providers/icons/ChevronDown.js +2 -25
- package/dist/providers/icons/ChevronLeft.js +2 -25
- package/dist/providers/icons/ChevronLeftSmall.js +2 -25
- package/dist/providers/icons/ChevronLeftSmallFirst.js +2 -25
- package/dist/providers/icons/ChevronRight.js +2 -25
- package/dist/providers/icons/ChevronRightSmall.js +2 -25
- package/dist/providers/icons/ChevronRightSmallLast.js +2 -25
- package/dist/providers/icons/ChevronUp.js +2 -25
- package/dist/providers/icons/Cross.js +2 -25
- package/dist/providers/icons/Dollar.js +2 -25
- package/dist/providers/icons/Download.js +2 -25
- package/dist/providers/icons/Electricity.js +2 -25
- package/dist/providers/icons/Euro.js +2 -25
- package/dist/providers/icons/Gas.js +2 -25
- package/dist/providers/icons/Help.js +2 -25
- package/dist/providers/icons/Hide.js +2 -25
- package/dist/providers/icons/Home.js +2 -25
- package/dist/providers/icons/Info.js +2 -25
- package/dist/providers/icons/Link.js +2 -25
- package/dist/providers/icons/Minus.js +2 -25
- package/dist/providers/icons/NewWindow.js +2 -25
- package/dist/providers/icons/PaymentCard.js +2 -25
- package/dist/providers/icons/Plus.js +2 -25
- package/dist/providers/icons/Pound.js +2 -25
- package/dist/providers/icons/Search.js +2 -25
- package/dist/providers/icons/Show.js +2 -25
- package/dist/providers/icons/Tune.js +2 -25
- package/dist/providers/icons/User.js +2 -25
- package/dist/providers/icons/index.d.ts +3 -46
- package/dist/providers/icons/index.js +3 -46
- package/dist/styled.native.d.ts +49 -49
- package/dist/theme/create-theme.d.ts +18 -0
- package/dist/theme/create-theme.js +337 -0
- package/dist/theme/index.d.ts +231 -0
- package/dist/theme/index.js +37 -0
- package/dist/theme/theme.d.ts +193 -0
- package/dist/theme/theme.js +2 -0
- package/package.json +2 -2
- package/dist/esm/providers/icons/Address.js +0 -14
- package/dist/esm/providers/icons/Advice.js +0 -14
- package/dist/esm/providers/icons/Archive.js +0 -14
- package/dist/esm/providers/icons/Award.js +0 -14
- package/dist/esm/providers/icons/Battery.js +0 -14
- package/dist/esm/providers/icons/Cal.js +0 -14
- package/dist/esm/providers/icons/CalBook.js +0 -14
- package/dist/esm/providers/icons/ChartFilled.js +0 -14
- package/dist/esm/providers/icons/CheckCircle.js +0 -14
- package/dist/esm/providers/icons/CloseCircle.js +0 -14
- package/dist/esm/providers/icons/Eco.js +0 -14
- package/dist/esm/providers/icons/EcoHome.js +0 -14
- package/dist/esm/providers/icons/Edit.js +0 -14
- package/dist/esm/providers/icons/ElectricCar.js +0 -14
- package/dist/esm/providers/icons/ElectricHome.js +0 -14
- package/dist/esm/providers/icons/EnergyAdvice.js +0 -14
- package/dist/esm/providers/icons/Equals.js +0 -14
- package/dist/esm/providers/icons/GlobeAddress.js +0 -14
- package/dist/esm/providers/icons/HomeFilled.js +0 -14
- package/dist/esm/providers/icons/HydroPower.js +0 -14
- package/dist/esm/providers/icons/Mail.js +0 -14
- package/dist/esm/providers/icons/MailOpen.js +0 -14
- package/dist/esm/providers/icons/Menu.js +0 -14
- package/dist/esm/providers/icons/Message.js +0 -14
- package/dist/esm/providers/icons/MessageFilled.js +0 -14
- package/dist/esm/providers/icons/Mobile.js +0 -14
- package/dist/esm/providers/icons/Phone.js +0 -14
- package/dist/esm/providers/icons/Pricing.js +0 -14
- package/dist/esm/providers/icons/Security.js +0 -14
- package/dist/esm/providers/icons/SmartHome.js +0 -14
- package/dist/esm/providers/icons/SmartMeter.js +0 -14
- package/dist/esm/providers/icons/Solar.js +0 -14
- package/dist/esm/providers/icons/Star.js +0 -14
- package/dist/esm/providers/icons/Sun.js +0 -14
- package/dist/esm/providers/icons/Trees.js +0 -14
- package/dist/esm/providers/icons/UserFilled.js +0 -14
- package/dist/esm/providers/icons/Wallet.js +0 -14
- package/dist/esm/providers/icons/WalletFilled.js +0 -14
- package/dist/esm/providers/icons/WarmHome.js +0 -14
- package/dist/esm/providers/icons/Warning.js +0 -14
- package/dist/esm/providers/icons/WebAddress.js +0 -14
- package/dist/esm/providers/icons/WindPower.js +0 -14
- package/dist/providers/icons/Address.d.ts +0 -2
- package/dist/providers/icons/Address.js +0 -41
- package/dist/providers/icons/Advice.d.ts +0 -2
- package/dist/providers/icons/Advice.js +0 -41
- package/dist/providers/icons/Archive.d.ts +0 -2
- package/dist/providers/icons/Archive.js +0 -41
- package/dist/providers/icons/Award.d.ts +0 -2
- package/dist/providers/icons/Award.js +0 -41
- package/dist/providers/icons/Battery.d.ts +0 -2
- package/dist/providers/icons/Battery.js +0 -41
- package/dist/providers/icons/Cal.d.ts +0 -2
- package/dist/providers/icons/Cal.js +0 -41
- package/dist/providers/icons/CalBook.d.ts +0 -2
- package/dist/providers/icons/CalBook.js +0 -41
- package/dist/providers/icons/ChartFilled.d.ts +0 -2
- package/dist/providers/icons/ChartFilled.js +0 -41
- package/dist/providers/icons/CheckCircle.d.ts +0 -2
- package/dist/providers/icons/CheckCircle.js +0 -41
- package/dist/providers/icons/CloseCircle.d.ts +0 -2
- package/dist/providers/icons/CloseCircle.js +0 -41
- package/dist/providers/icons/Doc.d.ts +0 -2
- package/dist/providers/icons/Doc.js +0 -41
- package/dist/providers/icons/Eco.d.ts +0 -2
- package/dist/providers/icons/Eco.js +0 -41
- package/dist/providers/icons/EcoHome.d.ts +0 -2
- package/dist/providers/icons/EcoHome.js +0 -41
- package/dist/providers/icons/Edit.d.ts +0 -2
- package/dist/providers/icons/Edit.js +0 -41
- package/dist/providers/icons/ElectricCar.d.ts +0 -2
- package/dist/providers/icons/ElectricCar.js +0 -41
- package/dist/providers/icons/ElectricHome.d.ts +0 -2
- package/dist/providers/icons/ElectricHome.js +0 -41
- package/dist/providers/icons/EnergyAdvice.d.ts +0 -2
- package/dist/providers/icons/EnergyAdvice.js +0 -41
- package/dist/providers/icons/Equals.d.ts +0 -2
- package/dist/providers/icons/Equals.js +0 -41
- package/dist/providers/icons/GlobeAddress.d.ts +0 -2
- package/dist/providers/icons/GlobeAddress.js +0 -41
- package/dist/providers/icons/HomeFilled.d.ts +0 -2
- package/dist/providers/icons/HomeFilled.js +0 -41
- package/dist/providers/icons/HydroPower.d.ts +0 -2
- package/dist/providers/icons/HydroPower.js +0 -41
- package/dist/providers/icons/Mail.d.ts +0 -2
- package/dist/providers/icons/Mail.js +0 -41
- package/dist/providers/icons/MailOpen.d.ts +0 -2
- package/dist/providers/icons/MailOpen.js +0 -41
- package/dist/providers/icons/Menu.d.ts +0 -2
- package/dist/providers/icons/Menu.js +0 -41
- package/dist/providers/icons/Message.d.ts +0 -2
- package/dist/providers/icons/Message.js +0 -41
- package/dist/providers/icons/MessageFilled.d.ts +0 -2
- package/dist/providers/icons/MessageFilled.js +0 -41
- package/dist/providers/icons/Mobile.d.ts +0 -2
- package/dist/providers/icons/Mobile.js +0 -41
- package/dist/providers/icons/Phone.d.ts +0 -2
- package/dist/providers/icons/Phone.js +0 -41
- package/dist/providers/icons/Pricing.d.ts +0 -2
- package/dist/providers/icons/Pricing.js +0 -41
- package/dist/providers/icons/Security.d.ts +0 -2
- package/dist/providers/icons/Security.js +0 -41
- package/dist/providers/icons/SmartHome.d.ts +0 -2
- package/dist/providers/icons/SmartHome.js +0 -41
- package/dist/providers/icons/SmartMeter.d.ts +0 -2
- package/dist/providers/icons/SmartMeter.js +0 -41
- package/dist/providers/icons/Solar.d.ts +0 -2
- package/dist/providers/icons/Solar.js +0 -41
- package/dist/providers/icons/Star.d.ts +0 -2
- package/dist/providers/icons/Star.js +0 -41
- package/dist/providers/icons/Sun.d.ts +0 -2
- package/dist/providers/icons/Sun.js +0 -41
- package/dist/providers/icons/Trees.d.ts +0 -2
- package/dist/providers/icons/Trees.js +0 -41
- package/dist/providers/icons/UserFilled.d.ts +0 -2
- package/dist/providers/icons/UserFilled.js +0 -41
- package/dist/providers/icons/Wallet.d.ts +0 -2
- package/dist/providers/icons/Wallet.js +0 -41
- package/dist/providers/icons/WalletFilled.d.ts +0 -2
- package/dist/providers/icons/WalletFilled.js +0 -41
- package/dist/providers/icons/WarmHome.d.ts +0 -2
- package/dist/providers/icons/WarmHome.js +0 -41
- package/dist/providers/icons/Warning.d.ts +0 -2
- package/dist/providers/icons/Warning.js +0 -41
- package/dist/providers/icons/WebAddress.d.ts +0 -2
- package/dist/providers/icons/WebAddress.js +0 -41
- package/dist/providers/icons/WindPower.d.ts +0 -2
- package/dist/providers/icons/WindPower.js +0 -41
|
@@ -2,13 +2,13 @@ import { ComponentProps, ReactNode } from 'react';
|
|
|
2
2
|
import { View } from 'react-native';
|
|
3
3
|
export declare type NotificationVariantName = 'error' | 'success' | 'info' | 'warning';
|
|
4
4
|
declare type NotificationProps = Omit<ComponentProps<typeof Notification>, 'variant'>;
|
|
5
|
-
export declare const NotificationContentBox: import("styled-components").StyledComponent<typeof import("react-native").View, {
|
|
5
|
+
export declare const NotificationContentBox: import("styled-components").StyledComponent<typeof import("react-native").View, import("../../theme/theme").Theme & {
|
|
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 |
|
|
11
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 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 NotificationContentBox: import("styled-components").StyledC
|
|
|
22
22
|
}> & {
|
|
23
23
|
brand: Record<string, string>;
|
|
24
24
|
};
|
|
25
|
-
fontFamily: Record<"
|
|
25
|
+
fontFamily: Record<"heading" | "body" | "mono" | "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" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
|
|
31
31
|
small: string | number;
|
|
32
32
|
large: string | number;
|
|
33
33
|
}>;
|
|
34
|
-
lineHeight: Record<"small" | "body" | "label" | "
|
|
34
|
+
lineHeight: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
|
|
35
35
|
small: string | number;
|
|
36
36
|
large: string | number;
|
|
37
37
|
}>;
|
|
@@ -39,10 +39,10 @@ export declare const NotificationContentBox: import("styled-components").StyledC
|
|
|
39
39
|
};
|
|
40
40
|
semantic: {
|
|
41
41
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
42
|
-
message: Record<"base" | "link" | "
|
|
42
|
+
message: Record<"base" | "link" | "error" | "secondary" | "branded", string>;
|
|
43
43
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
44
44
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
45
|
-
inverted: Record<"
|
|
45
|
+
inverted: Record<"border" | "surface", string> & {
|
|
46
46
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
47
47
|
};
|
|
48
48
|
success: {
|
|
@@ -73,7 +73,7 @@ export declare const NotificationContentBox: import("styled-components").StyledC
|
|
|
73
73
|
message: string;
|
|
74
74
|
messageOnEmphasis: string;
|
|
75
75
|
};
|
|
76
|
-
data: Record<"
|
|
76
|
+
data: Record<"gas" | "branded" | "electric", Record<2 | 1 | 3 | 4, string>>;
|
|
77
77
|
};
|
|
78
78
|
component: {
|
|
79
79
|
heading1: {
|
|
@@ -229,14 +229,14 @@ export declare const NotificationContentBox: import("styled-components").StyledC
|
|
|
229
229
|
};
|
|
230
230
|
};
|
|
231
231
|
};
|
|
232
|
-
}, {}, never>;
|
|
233
|
-
export declare const NotificationTitleBox: import("styled-components").StyledComponent<typeof import("react-native").View, {
|
|
232
|
+
} & object, {}, never>;
|
|
233
|
+
export declare const NotificationTitleBox: import("styled-components").StyledComponent<typeof import("react-native").View, import("../../theme/theme").Theme & {
|
|
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 |
|
|
239
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 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 NotificationTitleBox: import("styled-components").StyledCom
|
|
|
250
250
|
}> & {
|
|
251
251
|
brand: Record<string, string>;
|
|
252
252
|
};
|
|
253
|
-
fontFamily: Record<"
|
|
253
|
+
fontFamily: Record<"heading" | "body" | "mono" | "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" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
|
|
259
259
|
small: string | number;
|
|
260
260
|
large: string | number;
|
|
261
261
|
}>;
|
|
262
|
-
lineHeight: Record<"small" | "body" | "label" | "
|
|
262
|
+
lineHeight: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
|
|
263
263
|
small: string | number;
|
|
264
264
|
large: string | number;
|
|
265
265
|
}>;
|
|
@@ -267,10 +267,10 @@ export declare const NotificationTitleBox: import("styled-components").StyledCom
|
|
|
267
267
|
};
|
|
268
268
|
semantic: {
|
|
269
269
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
270
|
-
message: Record<"base" | "link" | "
|
|
270
|
+
message: Record<"base" | "link" | "error" | "secondary" | "branded", string>;
|
|
271
271
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
272
272
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
273
|
-
inverted: Record<"
|
|
273
|
+
inverted: Record<"border" | "surface", string> & {
|
|
274
274
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
275
275
|
};
|
|
276
276
|
success: {
|
|
@@ -301,7 +301,7 @@ export declare const NotificationTitleBox: import("styled-components").StyledCom
|
|
|
301
301
|
message: string;
|
|
302
302
|
messageOnEmphasis: string;
|
|
303
303
|
};
|
|
304
|
-
data: Record<"
|
|
304
|
+
data: Record<"gas" | "branded" | "electric", Record<2 | 1 | 3 | 4, string>>;
|
|
305
305
|
};
|
|
306
306
|
component: {
|
|
307
307
|
heading1: {
|
|
@@ -457,7 +457,7 @@ export declare const NotificationTitleBox: import("styled-components").StyledCom
|
|
|
457
457
|
};
|
|
458
458
|
};
|
|
459
459
|
};
|
|
460
|
-
}, {
|
|
460
|
+
} & object, {
|
|
461
461
|
variant: NotificationVariantName;
|
|
462
462
|
noMargin?: boolean | undefined;
|
|
463
463
|
dismissible: boolean;
|
|
@@ -11,13 +11,13 @@ export declare type SelectProps = {
|
|
|
11
11
|
onSelected?(value: SelectOption): void;
|
|
12
12
|
testID?: string;
|
|
13
13
|
};
|
|
14
|
-
declare const SelectOption: import("styled-components").StyledComponent<typeof import("react-native").TouchableOpacity, {
|
|
14
|
+
declare const SelectOption: import("styled-components").StyledComponent<typeof import("react-native").TouchableOpacity, import("../../theme/theme").Theme & {
|
|
15
15
|
core: {
|
|
16
16
|
radius: Record<"small" | "medium" | "large" | "max", string>;
|
|
17
17
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
18
18
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
19
19
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
20
|
-
space: Record<0 | 2 | 1 | 3 | 4 |
|
|
20
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15, string>;
|
|
21
21
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
22
22
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
23
23
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -31,16 +31,16 @@ declare const SelectOption: import("styled-components").StyledComponent<typeof i
|
|
|
31
31
|
}> & {
|
|
32
32
|
brand: Record<string, string>;
|
|
33
33
|
};
|
|
34
|
-
fontFamily: Record<"
|
|
34
|
+
fontFamily: Record<"heading" | "body" | "mono" | "bodyBold", {
|
|
35
35
|
native: string;
|
|
36
36
|
web: string;
|
|
37
37
|
}>;
|
|
38
38
|
fontWeight: Record<"bold" | "book" | "black", string | number>;
|
|
39
|
-
fontSize: Record<"small" | "body" | "label" | "
|
|
39
|
+
fontSize: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
|
|
40
40
|
small: string | number;
|
|
41
41
|
large: string | number;
|
|
42
42
|
}>;
|
|
43
|
-
lineHeight: Record<"small" | "body" | "label" | "
|
|
43
|
+
lineHeight: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
|
|
44
44
|
small: string | number;
|
|
45
45
|
large: string | number;
|
|
46
46
|
}>;
|
|
@@ -48,10 +48,10 @@ declare const SelectOption: import("styled-components").StyledComponent<typeof i
|
|
|
48
48
|
};
|
|
49
49
|
semantic: {
|
|
50
50
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
51
|
-
message: Record<"base" | "link" | "
|
|
51
|
+
message: Record<"base" | "link" | "error" | "secondary" | "branded", string>;
|
|
52
52
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
53
53
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
54
|
-
inverted: Record<"
|
|
54
|
+
inverted: Record<"border" | "surface", string> & {
|
|
55
55
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
56
56
|
};
|
|
57
57
|
success: {
|
|
@@ -82,7 +82,7 @@ declare const SelectOption: import("styled-components").StyledComponent<typeof i
|
|
|
82
82
|
message: string;
|
|
83
83
|
messageOnEmphasis: string;
|
|
84
84
|
};
|
|
85
|
-
data: Record<"
|
|
85
|
+
data: Record<"gas" | "branded" | "electric", Record<2 | 1 | 3 | 4, string>>;
|
|
86
86
|
};
|
|
87
87
|
component: {
|
|
88
88
|
heading1: {
|
|
@@ -238,7 +238,7 @@ declare const SelectOption: import("styled-components").StyledComponent<typeof i
|
|
|
238
238
|
};
|
|
239
239
|
};
|
|
240
240
|
};
|
|
241
|
-
}, {
|
|
241
|
+
} & object, {
|
|
242
242
|
isLastOption: boolean;
|
|
243
243
|
}, never>;
|
|
244
244
|
export declare const Select: ({ options, defaultSelected, noOptionMessage, onSelected, hasError, testID, }: SelectProps) => JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export declare const Skeleton: import("styled-components").StyledComponent<typeof import("react-native").View, {
|
|
1
|
+
export declare const Skeleton: import("styled-components").StyledComponent<typeof import("react-native").View, import("../../theme/theme").Theme & {
|
|
2
2
|
core: {
|
|
3
3
|
radius: Record<"small" | "medium" | "large" | "max", string>;
|
|
4
4
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
5
5
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
6
6
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
7
|
-
space: Record<0 | 2 | 1 | 3 | 4 |
|
|
7
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15, string>;
|
|
8
8
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
9
9
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
10
10
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -18,16 +18,16 @@ export declare const Skeleton: import("styled-components").StyledComponent<typeo
|
|
|
18
18
|
}> & {
|
|
19
19
|
brand: Record<string, string>;
|
|
20
20
|
};
|
|
21
|
-
fontFamily: Record<"
|
|
21
|
+
fontFamily: Record<"heading" | "body" | "mono" | "bodyBold", {
|
|
22
22
|
native: string;
|
|
23
23
|
web: string;
|
|
24
24
|
}>;
|
|
25
25
|
fontWeight: Record<"bold" | "book" | "black", string | number>;
|
|
26
|
-
fontSize: Record<"small" | "body" | "label" | "
|
|
26
|
+
fontSize: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
|
|
27
27
|
small: string | number;
|
|
28
28
|
large: string | number;
|
|
29
29
|
}>;
|
|
30
|
-
lineHeight: Record<"small" | "body" | "label" | "
|
|
30
|
+
lineHeight: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
|
|
31
31
|
small: string | number;
|
|
32
32
|
large: string | number;
|
|
33
33
|
}>;
|
|
@@ -35,10 +35,10 @@ export declare const Skeleton: import("styled-components").StyledComponent<typeo
|
|
|
35
35
|
};
|
|
36
36
|
semantic: {
|
|
37
37
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
38
|
-
message: Record<"base" | "link" | "
|
|
38
|
+
message: Record<"base" | "link" | "error" | "secondary" | "branded", string>;
|
|
39
39
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
40
40
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
41
|
-
inverted: Record<"
|
|
41
|
+
inverted: Record<"border" | "surface", string> & {
|
|
42
42
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
43
43
|
};
|
|
44
44
|
success: {
|
|
@@ -69,7 +69,7 @@ export declare const Skeleton: import("styled-components").StyledComponent<typeo
|
|
|
69
69
|
message: string;
|
|
70
70
|
messageOnEmphasis: string;
|
|
71
71
|
};
|
|
72
|
-
data: Record<"
|
|
72
|
+
data: Record<"gas" | "branded" | "electric", Record<2 | 1 | 3 | 4, string>>;
|
|
73
73
|
};
|
|
74
74
|
component: {
|
|
75
75
|
heading1: {
|
|
@@ -225,4 +225,4 @@ export declare const Skeleton: import("styled-components").StyledComponent<typeo
|
|
|
225
225
|
};
|
|
226
226
|
};
|
|
227
227
|
};
|
|
228
|
-
}, {}, never>;
|
|
228
|
+
} & object, {}, never>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Theme } from '@ovotech/element-core';
|
|
2
1
|
import { ReactNode } from 'react';
|
|
3
2
|
import { ViewProps } from 'react-native';
|
|
4
|
-
|
|
3
|
+
import { Theme } from '../../theme';
|
|
4
|
+
declare type SpaceKey = keyof Theme['space'];
|
|
5
5
|
declare type Props = ViewProps & {
|
|
6
6
|
spaceBetween: SpaceKey | SpaceKey[];
|
|
7
7
|
children: ReactNode;
|
|
@@ -5,13 +5,13 @@ declare const SubLabelText: import("react").ForwardRefExoticComponent<Pick<Omit<
|
|
|
5
5
|
[x: number]: any;
|
|
6
6
|
[x: symbol]: any;
|
|
7
7
|
} & {
|
|
8
|
-
theme?: {
|
|
8
|
+
theme?: (import("../../theme/theme").Theme & {
|
|
9
9
|
core: {
|
|
10
10
|
radius: Record<"small" | "medium" | "large" | "max", string>;
|
|
11
11
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
12
12
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
13
13
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
14
|
-
space: Record<0 | 2 | 1 | 3 | 4 |
|
|
14
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15, string>;
|
|
15
15
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
16
16
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
17
17
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -25,16 +25,16 @@ declare const SubLabelText: import("react").ForwardRefExoticComponent<Pick<Omit<
|
|
|
25
25
|
}> & {
|
|
26
26
|
brand: Record<string, string>;
|
|
27
27
|
};
|
|
28
|
-
fontFamily: Record<"
|
|
28
|
+
fontFamily: Record<"heading" | "body" | "mono" | "bodyBold", {
|
|
29
29
|
native: string;
|
|
30
30
|
web: string;
|
|
31
31
|
}>;
|
|
32
32
|
fontWeight: Record<"bold" | "book" | "black", string | number>;
|
|
33
|
-
fontSize: Record<"small" | "body" | "label" | "
|
|
33
|
+
fontSize: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
|
|
34
34
|
small: string | number;
|
|
35
35
|
large: string | number;
|
|
36
36
|
}>;
|
|
37
|
-
lineHeight: Record<"small" | "body" | "label" | "
|
|
37
|
+
lineHeight: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
|
|
38
38
|
small: string | number;
|
|
39
39
|
large: string | number;
|
|
40
40
|
}>;
|
|
@@ -42,10 +42,10 @@ declare const SubLabelText: import("react").ForwardRefExoticComponent<Pick<Omit<
|
|
|
42
42
|
};
|
|
43
43
|
semantic: {
|
|
44
44
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
45
|
-
message: Record<"base" | "link" | "
|
|
45
|
+
message: Record<"base" | "link" | "error" | "secondary" | "branded", string>;
|
|
46
46
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
47
47
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
48
|
-
inverted: Record<"
|
|
48
|
+
inverted: Record<"border" | "surface", string> & {
|
|
49
49
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
50
50
|
};
|
|
51
51
|
success: {
|
|
@@ -76,7 +76,7 @@ declare const SubLabelText: import("react").ForwardRefExoticComponent<Pick<Omit<
|
|
|
76
76
|
message: string;
|
|
77
77
|
messageOnEmphasis: string;
|
|
78
78
|
};
|
|
79
|
-
data: Record<"
|
|
79
|
+
data: Record<"gas" | "branded" | "electric", Record<2 | 1 | 3 | 4, string>>;
|
|
80
80
|
};
|
|
81
81
|
component: {
|
|
82
82
|
heading1: {
|
|
@@ -232,7 +232,7 @@ declare const SubLabelText: import("react").ForwardRefExoticComponent<Pick<Omit<
|
|
|
232
232
|
};
|
|
233
233
|
};
|
|
234
234
|
};
|
|
235
|
-
} | undefined;
|
|
235
|
+
} & object) | undefined;
|
|
236
236
|
} & {
|
|
237
237
|
as?: string | import("react").ComponentType<any> | undefined;
|
|
238
238
|
forwardedAs?: string | import("react").ComponentType<any> | undefined;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import { Dd, Dl } from '../List';
|
|
3
|
+
declare type SummaryListProps = ComponentProps<typeof Dl>;
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated This component has been deprecated and will be removed in a future release.
|
|
6
|
+
* Please use the Description List (List/Dl) component instead.
|
|
7
|
+
* */
|
|
8
|
+
declare const SummaryList: ({ children, ...rest }: SummaryListProps) => JSX.Element;
|
|
9
|
+
declare type SummaryItemProps = ComponentProps<typeof Dd> & {
|
|
10
|
+
label: ReactNode;
|
|
11
|
+
index?: number;
|
|
12
|
+
};
|
|
13
|
+
declare const SummaryItem: ({ label, children, index, ...rest }: SummaryItemProps) => JSX.Element;
|
|
14
|
+
export { SummaryList, SummaryItem };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.SummaryItem = exports.SummaryList = void 0;
|
|
26
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
27
|
+
var react_1 = require("react");
|
|
28
|
+
var List_1 = require("../List");
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated This component has been deprecated and will be removed in a future release.
|
|
31
|
+
* Please use the Description List (List/Dl) component instead.
|
|
32
|
+
* */
|
|
33
|
+
var SummaryList = function (_a) {
|
|
34
|
+
var children = _a.children, rest = __rest(_a, ["children"]);
|
|
35
|
+
console.warn('SummaryList component has been deprecated and will be removed in a future release. Please use the DescriptionList component instead.');
|
|
36
|
+
return ((0, jsx_runtime_1.jsx)(List_1.Dl, __assign({}, rest, { children: react_1.Children.map(children, function (child, index) {
|
|
37
|
+
return (0, react_1.cloneElement)(child, {
|
|
38
|
+
index: index,
|
|
39
|
+
});
|
|
40
|
+
}) })));
|
|
41
|
+
};
|
|
42
|
+
exports.SummaryList = SummaryList;
|
|
43
|
+
var SummaryItem = function (_a) {
|
|
44
|
+
var label = _a.label, children = _a.children, index = _a.index, rest = __rest(_a, ["label", "children", "index"]);
|
|
45
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(List_1.Dt, __assign({ style: index === 0 ? { marginTop: 0 } : undefined }, { children: label })), (0, jsx_runtime_1.jsx)(List_1.Dd, __assign({}, rest, { children: children }))] }));
|
|
46
|
+
};
|
|
47
|
+
exports.SummaryItem = SummaryItem;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SummaryList, SummaryItem } from './SummaryList';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SummaryItem = exports.SummaryList = void 0;
|
|
4
|
+
var SummaryList_1 = require("./SummaryList");
|
|
5
|
+
Object.defineProperty(exports, "SummaryList", { enumerable: true, get: function () { return SummaryList_1.SummaryList; } });
|
|
6
|
+
Object.defineProperty(exports, "SummaryItem", { enumerable: true, get: function () { return SummaryList_1.SummaryItem; } });
|