@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
|
@@ -5,13 +5,13 @@ export declare const P: import("react").ForwardRefExoticComponent<Pick<Omit<{
|
|
|
5
5
|
[x: number]: any;
|
|
6
6
|
[x: symbol]: any;
|
|
7
7
|
} & {
|
|
8
|
-
theme?:
|
|
8
|
+
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 | 5 | 6 | 7 | 8 | 9 |
|
|
14
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 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 @@ export declare const P: import("react").ForwardRefExoticComponent<Pick<Omit<{
|
|
|
25
25
|
}> & {
|
|
26
26
|
brand: Record<string, string>;
|
|
27
27
|
};
|
|
28
|
-
fontFamily: Record<"
|
|
28
|
+
fontFamily: Record<"body" | "mono" | "heading" | "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" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
34
34
|
small: string | number;
|
|
35
35
|
large: string | number;
|
|
36
36
|
}>;
|
|
37
|
-
lineHeight: Record<"small" | "body" | "label" | "
|
|
37
|
+
lineHeight: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
38
38
|
small: string | number;
|
|
39
39
|
large: string | number;
|
|
40
40
|
}>;
|
|
@@ -42,10 +42,10 @@ export declare const P: 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" | "secondary" | "error" | "branded", string>;
|
|
46
46
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
47
47
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
48
|
-
inverted: Record<"
|
|
48
|
+
inverted: Record<"surface" | "border", string> & {
|
|
49
49
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
50
50
|
};
|
|
51
51
|
success: {
|
|
@@ -76,7 +76,7 @@ export declare const P: import("react").ForwardRefExoticComponent<Pick<Omit<{
|
|
|
76
76
|
message: string;
|
|
77
77
|
messageOnEmphasis: string;
|
|
78
78
|
};
|
|
79
|
-
data: Record<"
|
|
79
|
+
data: Record<"branded" | "gas" | "electric", Record<2 | 1 | 3 | 4, string>>;
|
|
80
80
|
};
|
|
81
81
|
component: {
|
|
82
82
|
heading1: {
|
|
@@ -232,7 +232,7 @@ export declare const P: import("react").ForwardRefExoticComponent<Pick<Omit<{
|
|
|
232
232
|
};
|
|
233
233
|
};
|
|
234
234
|
};
|
|
235
|
-
}
|
|
235
|
+
} | undefined;
|
|
236
236
|
} & {
|
|
237
237
|
as?: string | import("react").ComponentType<any> | undefined;
|
|
238
238
|
forwardedAs?: string | import("react").ComponentType<any> | undefined;
|
|
@@ -242,13 +242,13 @@ export declare const Small: import("react").ForwardRefExoticComponent<Pick<Omit<
|
|
|
242
242
|
[x: number]: any;
|
|
243
243
|
[x: symbol]: any;
|
|
244
244
|
} & {
|
|
245
|
-
theme?:
|
|
245
|
+
theme?: {
|
|
246
246
|
core: {
|
|
247
247
|
radius: Record<"small" | "medium" | "large" | "max", string>;
|
|
248
248
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
249
249
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
250
250
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
251
|
-
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|
|
251
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
252
252
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
253
253
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
254
254
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -262,16 +262,16 @@ export declare const Small: import("react").ForwardRefExoticComponent<Pick<Omit<
|
|
|
262
262
|
}> & {
|
|
263
263
|
brand: Record<string, string>;
|
|
264
264
|
};
|
|
265
|
-
fontFamily: Record<"
|
|
265
|
+
fontFamily: Record<"body" | "mono" | "heading" | "bodyBold", {
|
|
266
266
|
native: string;
|
|
267
267
|
web: string;
|
|
268
268
|
}>;
|
|
269
269
|
fontWeight: Record<"bold" | "book" | "black", string | number>;
|
|
270
|
-
fontSize: Record<"small" | "body" | "label" | "
|
|
270
|
+
fontSize: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
271
271
|
small: string | number;
|
|
272
272
|
large: string | number;
|
|
273
273
|
}>;
|
|
274
|
-
lineHeight: Record<"small" | "body" | "label" | "
|
|
274
|
+
lineHeight: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
275
275
|
small: string | number;
|
|
276
276
|
large: string | number;
|
|
277
277
|
}>;
|
|
@@ -279,10 +279,10 @@ export declare const Small: import("react").ForwardRefExoticComponent<Pick<Omit<
|
|
|
279
279
|
};
|
|
280
280
|
semantic: {
|
|
281
281
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
282
|
-
message: Record<"base" | "link" | "
|
|
282
|
+
message: Record<"base" | "link" | "secondary" | "error" | "branded", string>;
|
|
283
283
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
284
284
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
285
|
-
inverted: Record<"
|
|
285
|
+
inverted: Record<"surface" | "border", string> & {
|
|
286
286
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
287
287
|
};
|
|
288
288
|
success: {
|
|
@@ -313,7 +313,7 @@ export declare const Small: import("react").ForwardRefExoticComponent<Pick<Omit<
|
|
|
313
313
|
message: string;
|
|
314
314
|
messageOnEmphasis: string;
|
|
315
315
|
};
|
|
316
|
-
data: Record<"
|
|
316
|
+
data: Record<"branded" | "gas" | "electric", Record<2 | 1 | 3 | 4, string>>;
|
|
317
317
|
};
|
|
318
318
|
component: {
|
|
319
319
|
heading1: {
|
|
@@ -469,18 +469,18 @@ export declare const Small: import("react").ForwardRefExoticComponent<Pick<Omit<
|
|
|
469
469
|
};
|
|
470
470
|
};
|
|
471
471
|
};
|
|
472
|
-
}
|
|
472
|
+
} | undefined;
|
|
473
473
|
} & {
|
|
474
474
|
as?: string | import("react").ComponentType<any> | undefined;
|
|
475
475
|
forwardedAs?: string | import("react").ComponentType<any> | undefined;
|
|
476
476
|
}, import("../../hooks").BreakpointNames>, string | number | symbol> & import("react").RefAttributes<Text>>;
|
|
477
|
-
export declare const Strong: import("styled-components").StyledComponent<typeof import("react-native").Text,
|
|
477
|
+
export declare const Strong: import("styled-components").StyledComponent<typeof import("react-native").Text, {
|
|
478
478
|
core: {
|
|
479
479
|
radius: Record<"small" | "medium" | "large" | "max", string>;
|
|
480
480
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
481
481
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
482
482
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
483
|
-
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|
|
483
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
484
484
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
485
485
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
486
486
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -494,16 +494,16 @@ export declare const Strong: import("styled-components").StyledComponent<typeof
|
|
|
494
494
|
}> & {
|
|
495
495
|
brand: Record<string, string>;
|
|
496
496
|
};
|
|
497
|
-
fontFamily: Record<"
|
|
497
|
+
fontFamily: Record<"body" | "mono" | "heading" | "bodyBold", {
|
|
498
498
|
native: string;
|
|
499
499
|
web: string;
|
|
500
500
|
}>;
|
|
501
501
|
fontWeight: Record<"bold" | "book" | "black", string | number>;
|
|
502
|
-
fontSize: Record<"small" | "body" | "label" | "
|
|
502
|
+
fontSize: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
503
503
|
small: string | number;
|
|
504
504
|
large: string | number;
|
|
505
505
|
}>;
|
|
506
|
-
lineHeight: Record<"small" | "body" | "label" | "
|
|
506
|
+
lineHeight: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
507
507
|
small: string | number;
|
|
508
508
|
large: string | number;
|
|
509
509
|
}>;
|
|
@@ -511,10 +511,10 @@ export declare const Strong: import("styled-components").StyledComponent<typeof
|
|
|
511
511
|
};
|
|
512
512
|
semantic: {
|
|
513
513
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
514
|
-
message: Record<"base" | "link" | "
|
|
514
|
+
message: Record<"base" | "link" | "secondary" | "error" | "branded", string>;
|
|
515
515
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
516
516
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
517
|
-
inverted: Record<"
|
|
517
|
+
inverted: Record<"surface" | "border", string> & {
|
|
518
518
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
519
519
|
};
|
|
520
520
|
success: {
|
|
@@ -545,7 +545,7 @@ export declare const Strong: import("styled-components").StyledComponent<typeof
|
|
|
545
545
|
message: string;
|
|
546
546
|
messageOnEmphasis: string;
|
|
547
547
|
};
|
|
548
|
-
data: Record<"
|
|
548
|
+
data: Record<"branded" | "gas" | "electric", Record<2 | 1 | 3 | 4, string>>;
|
|
549
549
|
};
|
|
550
550
|
component: {
|
|
551
551
|
heading1: {
|
|
@@ -701,14 +701,14 @@ export declare const Strong: import("styled-components").StyledComponent<typeof
|
|
|
701
701
|
};
|
|
702
702
|
};
|
|
703
703
|
};
|
|
704
|
-
}
|
|
705
|
-
export declare const Em: import("styled-components").StyledComponent<typeof import("react-native").Text,
|
|
704
|
+
}, {}, never>;
|
|
705
|
+
export declare const Em: import("styled-components").StyledComponent<typeof import("react-native").Text, {
|
|
706
706
|
core: {
|
|
707
707
|
radius: Record<"small" | "medium" | "large" | "max", string>;
|
|
708
708
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
709
709
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
710
710
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
711
|
-
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|
|
711
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
712
712
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
713
713
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
714
714
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -722,16 +722,16 @@ export declare const Em: import("styled-components").StyledComponent<typeof impo
|
|
|
722
722
|
}> & {
|
|
723
723
|
brand: Record<string, string>;
|
|
724
724
|
};
|
|
725
|
-
fontFamily: Record<"
|
|
725
|
+
fontFamily: Record<"body" | "mono" | "heading" | "bodyBold", {
|
|
726
726
|
native: string;
|
|
727
727
|
web: string;
|
|
728
728
|
}>;
|
|
729
729
|
fontWeight: Record<"bold" | "book" | "black", string | number>;
|
|
730
|
-
fontSize: Record<"small" | "body" | "label" | "
|
|
730
|
+
fontSize: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
731
731
|
small: string | number;
|
|
732
732
|
large: string | number;
|
|
733
733
|
}>;
|
|
734
|
-
lineHeight: Record<"small" | "body" | "label" | "
|
|
734
|
+
lineHeight: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
735
735
|
small: string | number;
|
|
736
736
|
large: string | number;
|
|
737
737
|
}>;
|
|
@@ -739,10 +739,10 @@ export declare const Em: import("styled-components").StyledComponent<typeof impo
|
|
|
739
739
|
};
|
|
740
740
|
semantic: {
|
|
741
741
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
742
|
-
message: Record<"base" | "link" | "
|
|
742
|
+
message: Record<"base" | "link" | "secondary" | "error" | "branded", string>;
|
|
743
743
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
744
744
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
745
|
-
inverted: Record<"
|
|
745
|
+
inverted: Record<"surface" | "border", string> & {
|
|
746
746
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
747
747
|
};
|
|
748
748
|
success: {
|
|
@@ -773,7 +773,7 @@ export declare const Em: import("styled-components").StyledComponent<typeof impo
|
|
|
773
773
|
message: string;
|
|
774
774
|
messageOnEmphasis: string;
|
|
775
775
|
};
|
|
776
|
-
data: Record<"
|
|
776
|
+
data: Record<"branded" | "gas" | "electric", Record<2 | 1 | 3 | 4, string>>;
|
|
777
777
|
};
|
|
778
778
|
component: {
|
|
779
779
|
heading1: {
|
|
@@ -929,14 +929,14 @@ export declare const Em: import("styled-components").StyledComponent<typeof impo
|
|
|
929
929
|
};
|
|
930
930
|
};
|
|
931
931
|
};
|
|
932
|
-
}
|
|
933
|
-
export declare const LineThrough: import("styled-components").StyledComponent<typeof import("react-native").Text,
|
|
932
|
+
}, {}, never>;
|
|
933
|
+
export declare const LineThrough: import("styled-components").StyledComponent<typeof import("react-native").Text, {
|
|
934
934
|
core: {
|
|
935
935
|
radius: Record<"small" | "medium" | "large" | "max", string>;
|
|
936
936
|
borderWidth: Record<"small" | "medium" | "large", string>;
|
|
937
937
|
breakpoint: Record<"small" | "medium" | "large", string | number>;
|
|
938
938
|
mediaQuery: Record<"small" | "medium" | "large", string>;
|
|
939
|
-
space: Record<0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 |
|
|
939
|
+
space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
|
|
940
940
|
transition: Record<"medium" | "slow" | "fast", string>;
|
|
941
941
|
opacity: Record<"solid" | "transparent" | "translucent", string | number>;
|
|
942
942
|
color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
|
|
@@ -950,16 +950,16 @@ export declare const LineThrough: import("styled-components").StyledComponent<ty
|
|
|
950
950
|
}> & {
|
|
951
951
|
brand: Record<string, string>;
|
|
952
952
|
};
|
|
953
|
-
fontFamily: Record<"
|
|
953
|
+
fontFamily: Record<"body" | "mono" | "heading" | "bodyBold", {
|
|
954
954
|
native: string;
|
|
955
955
|
web: string;
|
|
956
956
|
}>;
|
|
957
957
|
fontWeight: Record<"bold" | "book" | "black", string | number>;
|
|
958
|
-
fontSize: Record<"small" | "body" | "label" | "
|
|
958
|
+
fontSize: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
959
959
|
small: string | number;
|
|
960
960
|
large: string | number;
|
|
961
961
|
}>;
|
|
962
|
-
lineHeight: Record<"small" | "body" | "label" | "
|
|
962
|
+
lineHeight: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
|
|
963
963
|
small: string | number;
|
|
964
964
|
large: string | number;
|
|
965
965
|
}>;
|
|
@@ -967,10 +967,10 @@ export declare const LineThrough: import("styled-components").StyledComponent<ty
|
|
|
967
967
|
};
|
|
968
968
|
semantic: {
|
|
969
969
|
surface: Record<"base" | "cutout" | "elevated", string>;
|
|
970
|
-
message: Record<"base" | "link" | "
|
|
970
|
+
message: Record<"base" | "link" | "secondary" | "error" | "branded", string>;
|
|
971
971
|
border: Record<"graphic" | "differentiated" | "functional", string>;
|
|
972
972
|
focus: Record<"surface" | "outline" | "hover", string>;
|
|
973
|
-
inverted: Record<"
|
|
973
|
+
inverted: Record<"surface" | "border", string> & {
|
|
974
974
|
message: Record<"base" | "link" | "secondary" | "branded", string>;
|
|
975
975
|
};
|
|
976
976
|
success: {
|
|
@@ -1001,7 +1001,7 @@ export declare const LineThrough: import("styled-components").StyledComponent<ty
|
|
|
1001
1001
|
message: string;
|
|
1002
1002
|
messageOnEmphasis: string;
|
|
1003
1003
|
};
|
|
1004
|
-
data: Record<"
|
|
1004
|
+
data: Record<"branded" | "gas" | "electric", Record<2 | 1 | 3 | 4, string>>;
|
|
1005
1005
|
};
|
|
1006
1006
|
component: {
|
|
1007
1007
|
heading1: {
|
|
@@ -1157,5 +1157,5 @@ export declare const LineThrough: import("styled-components").StyledComponent<ty
|
|
|
1157
1157
|
};
|
|
1158
1158
|
};
|
|
1159
1159
|
};
|
|
1160
|
-
}
|
|
1160
|
+
}, {}, never>;
|
|
1161
1161
|
export declare const TextGroup: ({ children, ...rest }: PropsWithChildren<ViewProps>) => JSX.Element;
|
|
@@ -60,13 +60,16 @@ var StyledText = styled_native_1.default.Text(function (_a) {
|
|
|
60
60
|
var _b = _a.theme, core = _b.core, semantic = _b.semantic;
|
|
61
61
|
return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n color: ", ";\n text-decoration: underline;\n text-decoration-color: ", ";\n "], ["\n font-family: ", ";\n color: ", ";\n text-decoration: underline;\n text-decoration-color: ", ";\n "])), core.fontFamily.body.native, semantic.message.link, semantic.message.link);
|
|
62
62
|
});
|
|
63
|
+
var StyledIcon = (0, styled_native_1.default)(Icon_1.Icon)(function (_a) {
|
|
64
|
+
var semantic = _a.theme.semantic;
|
|
65
|
+
return (0, styled_native_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), semantic.message.branded);
|
|
66
|
+
});
|
|
63
67
|
var TextLink = (0, react_1.forwardRef)(function (_a, ref) {
|
|
64
68
|
var children = _a.children, _b = _a.opensInNewWindow, opensInNewWindow = _b === void 0 ? false : _b, accessibilityLabel = _a.accessibilityLabel, rest = __rest(_a, ["children", "opensInNewWindow", "accessibilityLabel"]);
|
|
65
|
-
var textLink = (0, react_1.useContext)(styled_native_1.ThemeContext).textLink;
|
|
66
69
|
var updatedAccessibilityLabel = opensInNewWindow
|
|
67
70
|
? "".concat(accessibilityLabel ? accessibilityLabel : (0, utils_1.getText)(children), " (opens in new window)")
|
|
68
71
|
: accessibilityLabel;
|
|
69
|
-
return ((0, jsx_runtime_1.jsxs)(react_native_1.Text, __assign({}, rest, { accessibilityLabel: updatedAccessibilityLabel, ref: ref }, { children: [(0, jsx_runtime_1.jsx)(StyledText, { children: children }), opensInNewWindow && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["\u00A0", (0, jsx_runtime_1.jsx)(
|
|
72
|
+
return ((0, jsx_runtime_1.jsxs)(react_native_1.Text, __assign({}, rest, { accessibilityLabel: updatedAccessibilityLabel, ref: ref }, { children: [(0, jsx_runtime_1.jsx)(StyledText, { children: children }), opensInNewWindow && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["\u00A0", (0, jsx_runtime_1.jsx)(StyledIcon, { size: 12, name: "new-window" })] }))] })));
|
|
70
73
|
});
|
|
71
74
|
exports.TextLink = TextLink;
|
|
72
|
-
var templateObject_1;
|
|
75
|
+
var templateObject_1, templateObject_2;
|
package/dist/components/index.js
CHANGED
|
@@ -36,7 +36,6 @@ __exportStar(require("./List"), exports);
|
|
|
36
36
|
__exportStar(require("./Margin"), exports);
|
|
37
37
|
__exportStar(require("./Notification"), exports);
|
|
38
38
|
__exportStar(require("./Radio"), exports);
|
|
39
|
-
__exportStar(require("./SummaryList"), exports);
|
|
40
39
|
__exportStar(require("./Stack"), exports);
|
|
41
40
|
__exportStar(require("./Tabs"), exports);
|
|
42
41
|
__exportStar(require("./Text"), exports);
|
|
@@ -21,7 +21,7 @@ export var StyledAccordion = styled(Animated.View)(function (_a) {
|
|
|
21
21
|
});
|
|
22
22
|
export var StyledAccordionHeader = styled.TouchableOpacity(function (_a) {
|
|
23
23
|
var core = _a.theme.core;
|
|
24
|
-
return css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n
|
|
24
|
+
return 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]);
|
|
25
25
|
});
|
|
26
26
|
export var StyledContainer = styled.View(function (_a) {
|
|
27
27
|
var core = _a.theme.core;
|
|
@@ -40,13 +40,14 @@ var ActionList = function (_a) {
|
|
|
40
40
|
fullWidth: 'always',
|
|
41
41
|
index: index,
|
|
42
42
|
hasBorder: childCount > 1 && index !== childCount - 1,
|
|
43
|
-
inverted: (_a = child.props.inverted) !== null && _a !== void 0 ? _a : inverted,
|
|
43
|
+
inverted: (_a = child.props.inverted) !== null && _a !== void 0 ? _a : inverted,
|
|
44
|
+
inList: true,
|
|
44
45
|
});
|
|
45
46
|
}) })));
|
|
46
47
|
};
|
|
47
48
|
var ActionWrapper = function (_a) {
|
|
48
49
|
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"]);
|
|
49
|
-
return (_jsx(StyledActionWrapper, __assign({ hasBorder: hasBorder, inverted: inverted, testID: testID }, rest, { children: _jsx(TouchableOpacity, __assign({ activeOpacity: activeOpacity, accessibilityRole: accessibilityRole, onPress: onPress }, { children: _jsx(StyledActionInner, __assign({ fullWidth: fullWidth }, { children: children })) })) })));
|
|
50
|
+
return (_jsx(StyledActionWrapper, __assign({ hasBorder: hasBorder, inverted: inverted, testID: testID }, rest, { children: _jsx(TouchableOpacity, __assign({ activeOpacity: activeOpacity, accessibilityRole: accessibilityRole, onPress: onPress }, { children: _jsx(StyledActionInner, __assign({ fullWidth: fullWidth, inList: rest === null || rest === void 0 ? void 0 : rest.inList }, { children: children })) })) })));
|
|
50
51
|
};
|
|
51
52
|
var Action = function (_a) {
|
|
52
53
|
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"]);
|
|
@@ -59,6 +60,6 @@ var Action = function (_a) {
|
|
|
59
60
|
if (fullWidth === 'small') {
|
|
60
61
|
fullWidth = smallAndUp ? 'never' : 'always';
|
|
61
62
|
}
|
|
62
|
-
return (_jsxs(ActionWrapper, __assign({ accessibilityRole: accessibilityRole, fullWidth: fullWidth, inverted: inverted, onPress: onPress, testID: testID }, rest, { children: [isBackAction ? (_jsx(StyledLeftIcon, { inverted: inverted, name: ACTION_TYPES.back, size: 16 })) : null, _jsx(StyledActionText, __assign({ smallAndUp: smallAndUp, inverted: inverted }, { children: children })), updatedIconRight ? (_jsx(StyledRightIcon, { inverted: inverted, name: updatedIconRight, marginTop: actionType === 'link' ? 1 : 0, size: 16 })) : null] })));
|
|
63
|
+
return (_jsxs(ActionWrapper, __assign({ accessibilityRole: accessibilityRole, fullWidth: fullWidth, inverted: inverted, onPress: onPress, testID: testID }, rest, { children: [isBackAction ? (_jsx(StyledLeftIcon, { inverted: inverted, name: ACTION_TYPES.back, size: 16 })) : null, _jsx(StyledActionText, __assign({ smallAndUp: smallAndUp, inverted: inverted, inList: rest === null || rest === void 0 ? void 0 : rest.inList }, { children: children })), updatedIconRight ? (_jsx(StyledRightIcon, { inverted: inverted, name: updatedIconRight, marginTop: actionType === 'link' ? 1 : 0, size: 16 })) : null] })));
|
|
63
64
|
};
|
|
64
65
|
export { ActionList, Action };
|
|
@@ -15,11 +15,13 @@ export var StyledActionInner = styled.View(function (_a) {
|
|
|
15
15
|
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");
|
|
16
16
|
});
|
|
17
17
|
export var StyledActionText = styled.Text(function (_a) {
|
|
18
|
-
var _b = _a.theme, core = _b.core, semantic = _b.semantic, smallAndUp = _a.smallAndUp, _c = _a.inverted, inverted = _c === void 0 ? false : _c;
|
|
18
|
+
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;
|
|
19
19
|
var fontSize = smallAndUp
|
|
20
20
|
? core.fontSize.body.large
|
|
21
21
|
: core.fontSize.body.small;
|
|
22
|
-
return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n
|
|
22
|
+
return 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
|
|
23
|
+
? semantic.inverted.message.base
|
|
24
|
+
: semantic.message.base, core.fontFamily.bodyBold.native, fontSize, core.lineHeight.body.small, inList ? 1 : 'none');
|
|
23
25
|
});
|
|
24
26
|
export var StyledRightIcon = styled(Icon)(function (_a) {
|
|
25
27
|
var _b = _a.theme, core = _b.core, semantic = _b.semantic, inverted = _a.inverted, marginTop = _a.marginTop;
|
|
@@ -28,7 +28,6 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
28
28
|
import { forwardRef } from 'react';
|
|
29
29
|
import { TouchableOpacity, View, } from 'react-native';
|
|
30
30
|
import styled from '../../styled.native';
|
|
31
|
-
import { pxToNumber } from '../../utils';
|
|
32
31
|
import { ErrorText } from '../ErrorText';
|
|
33
32
|
import { FormGroup } from '../FormGroup';
|
|
34
33
|
import { HintText } from '../HintText';
|
|
@@ -36,10 +35,10 @@ import { Icon } from '../Icon/Icon';
|
|
|
36
35
|
import { LabelText } from '../LabelText';
|
|
37
36
|
import { Stack } from '../Stack';
|
|
38
37
|
var StyledCheckboxInputWrapper = styled.View(function (_a) {
|
|
39
|
-
var
|
|
40
|
-
var checkboxSize =
|
|
41
|
-
var gap =
|
|
42
|
-
return "\n width: ".concat(checkboxSize + gap, "px;\n height: ").concat(
|
|
38
|
+
var core = _a.theme.core;
|
|
39
|
+
var checkboxSize = core.space[6];
|
|
40
|
+
var gap = core.space[2];
|
|
41
|
+
return "\n width: ".concat(parseInt(checkboxSize) + parseInt(gap), "px;\n height: ").concat(core.space[11], ";\n ");
|
|
43
42
|
});
|
|
44
43
|
var StyledCheckboxInput = styled.View(function (_a) {
|
|
45
44
|
var _b = _a.theme, core = _b.core, semantic = _b.semantic, invalid = _a.invalid, checked = _a.checked;
|
|
@@ -21,9 +21,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
-
import { Children, cloneElement, isValidElement, createRef,
|
|
24
|
+
import { Children, cloneElement, isValidElement, createRef, forwardRef, } from 'react';
|
|
25
25
|
import { TouchableWithoutFeedback, View } from 'react-native';
|
|
26
|
-
import { ThemeContext } from '../../styled.native';
|
|
27
26
|
import { getText, mergeRefs } from '../../utils';
|
|
28
27
|
import { ErrorText } from '../ErrorText';
|
|
29
28
|
import { FormGroup } from '../FormGroup';
|
|
@@ -33,7 +32,6 @@ import { Stack } from '../Stack';
|
|
|
33
32
|
import { Stretch } from '../Stretch';
|
|
34
33
|
export var Field = forwardRef(function (_a, ref) {
|
|
35
34
|
var children = _a.children, label = _a.label, _b = _a.optional, optional = _b === void 0 ? false : _b, hint = _a.hint, error = _a.error, _c = _a.fullWidth, fullWidth = _c === void 0 ? 'small' : _c, _d = _a.characters, characters = _d === void 0 ? 25 : _d, _e = _a.affixWidth, affixWidth = _e === void 0 ? 0 : _e, rest = __rest(_a, ["children", "label", "optional", "hint", "error", "fullWidth", "characters", "affixWidth"]);
|
|
36
|
-
var field = useContext(ThemeContext).field;
|
|
37
35
|
var hasError = !!error;
|
|
38
36
|
var inputRef = createRef();
|
|
39
37
|
var labelText = optional ? "".concat(label, " (optional)") : label;
|
|
@@ -52,7 +50,7 @@ export var Field = forwardRef(function (_a, ref) {
|
|
|
52
50
|
inputRef.current.focus();
|
|
53
51
|
}
|
|
54
52
|
}
|
|
55
|
-
} }, { children: _jsxs(View, { children: [_jsxs(LabelText, { children: [label, optional ? ' (optional)' : null] }), hint ? _jsx(HintText, { children: hint }) : null, error ? _jsx(ErrorText, { children: error }) : null] }) })), _jsx(Stretch, __assign({ defaultWidth: "".concat(Math.ceil(characters * 0.8 *
|
|
53
|
+
} }, { children: _jsxs(View, { children: [_jsxs(LabelText, { children: [label, optional ? ' (optional)' : null] }), hint ? _jsx(HintText, { children: hint }) : null, error ? _jsx(ErrorText, { children: error }) : null] }) })), _jsx(Stretch, __assign({ defaultWidth: "".concat(Math.ceil(characters * 0.8 * 16) + affixWidth, "px"), fullWidth: fullWidth }, { children: Children.map(children, function (child) {
|
|
56
54
|
return isValidElement(child)
|
|
57
55
|
? cloneElement(child, __assign({ invalid: hasError || undefined, ref: mergeRefs(inputRef, ref), accessibilityLabel: accessibilityLabel }, rest))
|
|
58
56
|
: child;
|
|
@@ -27,7 +27,6 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
27
27
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
28
|
import { Children } from 'react';
|
|
29
29
|
import { View } from 'react-native';
|
|
30
|
-
import { useBreakpoint } from '../../hooks';
|
|
31
30
|
import styled, { css } from '../../styled.native';
|
|
32
31
|
import { pxToNumber, styledComponentWithBreakpoints } from '../../utils';
|
|
33
32
|
import { Stack } from '../Stack';
|
|
@@ -83,54 +82,5 @@ var StyledLi = styled.Text(function (_a) {
|
|
|
83
82
|
return css(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n flex: 1;\n "], ["\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n flex: 1;\n "])), core.fontFamily.body.native, lineHeight, semantic.message.base, fontSize);
|
|
84
83
|
});
|
|
85
84
|
var Li = styledComponentWithBreakpoints(StyledLi);
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
* Please use the DescriptionList component instead.
|
|
89
|
-
* */
|
|
90
|
-
var Dl = ListWrapper;
|
|
91
|
-
var StyledDtText = styled.Text(function (_a) {
|
|
92
|
-
var list = _a.theme.list, smallAndUp = _a.smallAndUp;
|
|
93
|
-
var fontSize = smallAndUp
|
|
94
|
-
? list.listItem.fontSize[1]
|
|
95
|
-
: list.listItem.fontSize[0];
|
|
96
|
-
var lineHeight = smallAndUp
|
|
97
|
-
? list.listItem.lineHeight[1]
|
|
98
|
-
: list.listItem.lineHeight[0];
|
|
99
|
-
return css(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n flex: 1;\n "], ["\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n flex: 1;\n "])), list.descriptionTerm.fontFamily, lineHeight, list.descriptionTerm.color, fontSize);
|
|
100
|
-
});
|
|
101
|
-
var DtText = styledComponentWithBreakpoints(StyledDtText);
|
|
102
|
-
var StyledDtItem = styled.View(function (_a) {
|
|
103
|
-
var core = _a.theme.core, smallAndUp = _a.smallAndUp;
|
|
104
|
-
var marginTop = smallAndUp ? core.space[4] : core.space[3];
|
|
105
|
-
return css(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n margin-top: ", ";\n margin-bottom: ", ";\n flex-direction: row;\n "], ["\n margin-top: ", ";\n margin-bottom: ", ";\n flex-direction: row;\n "])), marginTop, core.space[1]);
|
|
106
|
-
});
|
|
107
|
-
var DtItem = styledComponentWithBreakpoints(StyledDtItem);
|
|
108
|
-
/**
|
|
109
|
-
* @deprecated This component has been deprecated and will be removed in a future release.
|
|
110
|
-
* Please use the DescriptionList component instead.
|
|
111
|
-
* */
|
|
112
|
-
var Dt = function (_a) {
|
|
113
|
-
var children = _a.children, rest = __rest(_a, ["children"]);
|
|
114
|
-
return (_jsx(DtItem, __assign({}, rest, { children: _jsx(DtText, { children: children }) })));
|
|
115
|
-
};
|
|
116
|
-
var StyledDdText = styled.Text(function (_a) {
|
|
117
|
-
var _b = _a.theme, text = _b.text, list = _b.list, smallAndUp = _a.smallAndUp;
|
|
118
|
-
var fontSize = smallAndUp
|
|
119
|
-
? list.listItem.fontSize[1]
|
|
120
|
-
: list.listItem.fontSize[0];
|
|
121
|
-
var lineHeight = smallAndUp
|
|
122
|
-
? list.listItem.lineHeight[1]
|
|
123
|
-
: list.listItem.lineHeight[0];
|
|
124
|
-
return css(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n flex: 1;\n "], ["\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n flex: 1;\n "])), text.fontFamily, lineHeight, text.color, fontSize);
|
|
125
|
-
});
|
|
126
|
-
/**
|
|
127
|
-
* @deprecated This component has been deprecated and will be removed in a future release.
|
|
128
|
-
* Please use the DescriptionList component instead.
|
|
129
|
-
* */
|
|
130
|
-
var Dd = function (_a) {
|
|
131
|
-
var children = _a.children, rest = __rest(_a, ["children"]);
|
|
132
|
-
var breakpoints = useBreakpoint();
|
|
133
|
-
return (_jsx(View, __assign({ style: { flexDirection: 'row' } }, rest, { children: _jsx(StyledDdText, __assign({}, breakpoints, { children: children })) })));
|
|
134
|
-
};
|
|
135
|
-
export { Ul, Ol, Li, Dl, Dt, Dd, ListWrapper };
|
|
136
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
|
|
85
|
+
export { Ul, Ol, Li, ListWrapper };
|
|
86
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Ol, Ul, Li
|
|
1
|
+
export { Ol, Ul, Li } from './List';
|
|
@@ -25,22 +25,25 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
25
25
|
return t;
|
|
26
26
|
};
|
|
27
27
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
|
-
import { forwardRef
|
|
28
|
+
import { forwardRef } from 'react';
|
|
29
29
|
import { Text } from 'react-native';
|
|
30
|
-
import styled, { css
|
|
30
|
+
import styled, { css } from '../../styled.native';
|
|
31
31
|
import { getText } from '../../utils/utils';
|
|
32
32
|
import { Icon } from '../Icon';
|
|
33
33
|
var StyledText = styled.Text(function (_a) {
|
|
34
34
|
var _b = _a.theme, core = _b.core, semantic = _b.semantic;
|
|
35
35
|
return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n color: ", ";\n text-decoration: underline;\n text-decoration-color: ", ";\n "], ["\n font-family: ", ";\n color: ", ";\n text-decoration: underline;\n text-decoration-color: ", ";\n "])), core.fontFamily.body.native, semantic.message.link, semantic.message.link);
|
|
36
36
|
});
|
|
37
|
+
var StyledIcon = styled(Icon)(function (_a) {
|
|
38
|
+
var semantic = _a.theme.semantic;
|
|
39
|
+
return css(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n color: ", ";\n "], ["\n color: ", ";\n "])), semantic.message.branded);
|
|
40
|
+
});
|
|
37
41
|
var TextLink = forwardRef(function (_a, ref) {
|
|
38
42
|
var children = _a.children, _b = _a.opensInNewWindow, opensInNewWindow = _b === void 0 ? false : _b, accessibilityLabel = _a.accessibilityLabel, rest = __rest(_a, ["children", "opensInNewWindow", "accessibilityLabel"]);
|
|
39
|
-
var textLink = useContext(ThemeContext).textLink;
|
|
40
43
|
var updatedAccessibilityLabel = opensInNewWindow
|
|
41
44
|
? "".concat(accessibilityLabel ? accessibilityLabel : getText(children), " (opens in new window)")
|
|
42
45
|
: accessibilityLabel;
|
|
43
|
-
return (_jsxs(Text, __assign({}, rest, { accessibilityLabel: updatedAccessibilityLabel, ref: ref }, { children: [_jsx(StyledText, { children: children }), opensInNewWindow && (_jsxs(_Fragment, { children: ["\u00A0", _jsx(
|
|
46
|
+
return (_jsxs(Text, __assign({}, rest, { accessibilityLabel: updatedAccessibilityLabel, ref: ref }, { children: [_jsx(StyledText, { children: children }), opensInNewWindow && (_jsxs(_Fragment, { children: ["\u00A0", _jsx(StyledIcon, { size: 12, name: "new-window" })] }))] })));
|
|
44
47
|
});
|
|
45
48
|
export { TextLink };
|
|
46
|
-
var templateObject_1;
|
|
49
|
+
var templateObject_1, templateObject_2;
|
package/dist/esm/index.js
CHANGED