@ovotech/element-native 3.5.0 → 3.6.0-canary-f98cc8f-173

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.
Files changed (52) hide show
  1. package/dist/components/ActionCard/ActionCard.js +13 -11
  2. package/dist/components/CTALink/CTALink.d.ts +1 -1
  3. package/dist/components/DescriptionList/styled.d.ts +214 -222
  4. package/dist/components/DescriptionList/styled.js +4 -2
  5. package/dist/components/ErrorSummaryNotification/ErrorSummaryNotification.js +2 -1
  6. package/dist/components/Label/Label.d.ts +243 -0
  7. package/dist/components/Label/Label.js +38 -0
  8. package/dist/components/Label/index.d.ts +1 -0
  9. package/dist/components/Label/index.js +5 -0
  10. package/dist/components/Lead/Lead.d.ts +243 -0
  11. package/dist/components/Lead/Lead.js +38 -0
  12. package/dist/components/Lead/index.d.ts +1 -0
  13. package/dist/components/Lead/index.js +5 -0
  14. package/dist/components/List/List.d.ts +4 -245
  15. package/dist/components/List/List.js +17 -66
  16. package/dist/components/List/styled.d.ts +7 -473
  17. package/dist/components/List/styled.js +9 -26
  18. package/dist/components/SelectField/Select.js +5 -3
  19. package/dist/components/Toggle/Toggle.d.ts +10 -0
  20. package/dist/components/Toggle/Toggle.js +56 -0
  21. package/dist/components/Toggle/index.d.ts +1 -0
  22. package/dist/components/Toggle/index.js +5 -0
  23. package/dist/components/Toggle/styles.d.ts +939 -0
  24. package/dist/components/Toggle/styles.js +28 -0
  25. package/dist/components/index.d.ts +28 -25
  26. package/dist/components/index.js +28 -25
  27. package/dist/esm/components/ActionCard/ActionCard.js +13 -11
  28. package/dist/esm/components/DescriptionList/styled.js +4 -2
  29. package/dist/esm/components/ErrorSummaryNotification/ErrorSummaryNotification.js +2 -1
  30. package/dist/esm/components/Label/Label.js +12 -0
  31. package/dist/esm/components/Label/index.js +1 -0
  32. package/dist/esm/components/Lead/Lead.js +12 -0
  33. package/dist/esm/components/Lead/index.js +1 -0
  34. package/dist/esm/components/List/List.js +19 -67
  35. package/dist/esm/components/List/styled.js +8 -25
  36. package/dist/esm/components/SelectField/Select.js +5 -3
  37. package/dist/esm/components/Toggle/Toggle.js +53 -0
  38. package/dist/esm/components/Toggle/index.js +1 -0
  39. package/dist/esm/components/Toggle/styles.js +22 -0
  40. package/dist/esm/components/index.js +28 -25
  41. package/dist/esm/providers/IconsProvider.js +2 -1
  42. package/dist/esm/providers/icons/Logo.js +3 -3
  43. package/dist/esm/providers/icons/Torch.js +14 -0
  44. package/dist/esm/providers/icons/index.js +1 -0
  45. package/dist/providers/IconsProvider.js +1 -0
  46. package/dist/providers/icons/Logo.js +1 -1
  47. package/dist/providers/icons/Torch.d.ts +2 -0
  48. package/dist/providers/icons/Torch.js +41 -0
  49. package/dist/providers/icons/index.d.ts +1 -0
  50. package/dist/providers/icons/index.js +1 -0
  51. package/dist/providers/types.d.ts +1 -1
  52. package/package.json +2 -2
@@ -49,7 +49,9 @@ var CloseIconShape_1 = require("./CloseIconShape");
49
49
  var IndicatorIconShape_1 = require("./IndicatorIconShape");
50
50
  var StyledCard = styled_native_1.default.Pressable(function (_a) {
51
51
  var _b = _a.theme, core = _b.core, semantic = _b.semantic, inline = _a.inline, inverted = _a.inverted, reducedBottomPadding = _a.reducedBottomPadding;
52
- return "\n border-radius: ".concat(inline ? core.space[6] : 0, ";\n background-color: ").concat(inverted ? semantic.inverted.surface : semantic.surface.elevated, ";\n padding-bottom: ").concat(reducedBottomPadding ? core.space[1] : core.space[4], ";\n padding: ").concat(core.space[4], ";\n overflow: hidden;\n border-width: 0;\n width: 100%;\n ");
52
+ var paddingVal = inline ? core.space[4] : core.space[6];
53
+ var reducedBottomPaddingVal = inline ? core.space[3] : core.space[5];
54
+ return "\n border-radius: ".concat(inline ? core.space[6] : 0, ";\n background-color: ").concat(inverted ? semantic.inverted.surface : semantic.surface.elevated, ";\n padding: ").concat(paddingVal, ";\n padding-bottom: ").concat(reducedBottomPadding ? reducedBottomPaddingVal : paddingVal, ";\n overflow: hidden;\n border-width: 0;\n width: 100%;\n ");
53
55
  });
54
56
  var StyledP = (0, styled_native_1.default)(P_1.P)(function (_a) {
55
57
  var semantic = _a.theme.semantic, inverted = _a.inverted;
@@ -64,21 +66,21 @@ var ActionCard = function (_a) {
64
66
  }
65
67
  }, []);
66
68
  var Heading = inline ? __1.Heading3 : __1.Heading2;
69
+ var cardPadding = parseInt(core.space[inline ? 4 : 6]);
70
+ var negativeMarginAdjustment = -cardPadding;
67
71
  return ((0, jsx_runtime_1.jsx)(StyledCard, __assign({ onPress: onPressIndicator, inline: inline, inverted: inverted, reducedBottomPadding: Boolean(buttonTitle && !ctaVariant), testID: "".concat(testID, "-card") }, { children: (0, jsx_runtime_1.jsxs)(react_native_1.View, __assign({ style: { flexDirection: 'row' } }, { children: [(0, jsx_runtime_1.jsx)(react_native_1.View, __assign({ style: { flex: 1 } }, { children: (0, jsx_runtime_1.jsxs)(__1.Stack, __assign({ spaceBetween: 2 }, { children: [(0, jsx_runtime_1.jsx)(Heading, __assign({ style: {
68
72
  color: inverted
69
73
  ? semantic.inverted.message.link
70
74
  : semantic.message.branded,
71
- paddingRight: image || !onPressCloseButton ? 0 : parseInt(core.space[6]),
75
+ paddingRight: image || !onPressCloseButton ? 0 : cardPadding,
72
76
  }, testID: "".concat(testID, "-heading") }, { children: title })), (0, jsx_runtime_1.jsxs)(react_native_1.View, { children: [typeof body === 'string' ? ((0, jsx_runtime_1.jsx)(react_native_1.View, __assign({ style: {
73
- paddingRight: !image && !title && onPressCloseButton
74
- ? parseInt(core.space[6])
75
- : 0,
77
+ paddingRight: !image && !title && onPressCloseButton ? cardPadding : 0,
76
78
  } }, { children: (0, jsx_runtime_1.jsx)(StyledP, __assign({ inverted: inverted }, { children: body })) }))) : (body), buttonTitle && onPressActionButton && !onPressIndicator ? (!ctaVariant ? ((0, jsx_runtime_1.jsx)(__1.Margin, __assign({ top: 2 }, { children: (0, jsx_runtime_1.jsx)(__1.Action, __assign({ inverted: inverted, inline: true, onPress: onPressActionButton, testID: "".concat(testID, "-button") }, { children: buttonTitle })) }))) : ((0, jsx_runtime_1.jsx)(__1.Margin, __assign({ top: 4 }, { children: (0, jsx_runtime_1.jsx)(__1.CTAButton, __assign({ onPress: onPressActionButton, testID: "".concat(testID, "-button"), variant: ctaVariant }, { children: buttonTitle })) })))) : null] })] })) })), image ? ((0, jsx_runtime_1.jsx)(masked_view_1.default, __assign({ style: {
77
79
  flex: 1,
78
80
  flexDirection: 'row',
79
81
  height: '100%',
80
- marginTop: -16,
81
- marginRight: -16,
82
+ marginTop: negativeMarginAdjustment,
83
+ marginRight: negativeMarginAdjustment,
82
84
  }, maskElement: (0, jsx_runtime_1.jsx)(react_native_1.View, { style: {
83
85
  width: '100%',
84
86
  height: 165,
@@ -96,16 +98,16 @@ var ActionCard = function (_a) {
96
98
  right: 0,
97
99
  }, accessible: true, accessibilityRole: "image", accessibilityLabel: accessibilityLabel }) }))) : null, onPressIndicator ? ((0, jsx_runtime_1.jsxs)(react_native_1.Pressable, __assign({ style: {
98
100
  position: 'absolute',
99
- right: -16,
100
- bottom: -16,
101
+ right: negativeMarginAdjustment,
102
+ bottom: negativeMarginAdjustment,
101
103
  }, onPress: onPressIndicator, testID: "".concat(testID, "-indicator-button") }, { children: [(0, jsx_runtime_1.jsx)(IndicatorIconShape_1.IndicatorIconShape, {}), (0, jsx_runtime_1.jsx)(__1.Icon, { size: 14, style: {
102
104
  position: 'absolute',
103
105
  right: inline ? 8 : 6,
104
106
  bottom: 16,
105
107
  }, color: semantic.surface.elevated, name: "chevron-right", accessibilityLabel: "chevron-right" })] }))) : null, onPressCloseButton && !onPressIndicator ? ((0, jsx_runtime_1.jsxs)(react_native_1.Pressable, __assign({ style: {
106
108
  position: 'absolute',
107
- right: -16,
108
- top: -16,
109
+ right: negativeMarginAdjustment,
110
+ top: negativeMarginAdjustment,
109
111
  }, onPress: onPressCloseButton, testID: "".concat(testID, "-close-button") }, { children: [(0, jsx_runtime_1.jsx)(CloseIconShape_1.CloseIconShape, {}), (0, jsx_runtime_1.jsx)(__1.Icon, { size: 14, style: {
110
112
  position: 'absolute',
111
113
  top: inline ? 14 : 12,
@@ -4,7 +4,7 @@ import { CTAButton } from '../CTAButton';
4
4
  declare type CTALinkProps = Omit<ComponentProps<typeof CTAButton>, 'ref'> & {
5
5
  ref: Ref<TouchableOpacity>;
6
6
  };
7
- declare const CTALink: import("react").ForwardRefExoticComponent<Pick<CTALinkProps, "fullWidth" | "iconLeft" | "iconRight" | keyof import("react-native/types").TouchableOpacityProps | "variant"> & import("react").RefAttributes<TouchableOpacity>>;
7
+ declare const CTALink: import("react").ForwardRefExoticComponent<Pick<CTALinkProps, "fullWidth" | "variant" | "iconLeft" | "iconRight" | keyof import("react-native/types").TouchableOpacityProps> & import("react").RefAttributes<TouchableOpacity>>;
8
8
  declare type CTAProps = Omit<ComponentProps<typeof CTALink>, 'variant'>;
9
9
  declare const PrimaryCTALink: import("react").ForwardRefExoticComponent<Pick<CTAProps, "key" | "fullWidth" | "iconLeft" | "iconRight" | keyof import("react-native/types").TouchableOpacityProps> & import("react").RefAttributes<TouchableOpacity>>;
10
10
  declare const SecondaryCTALink: import("react").ForwardRefExoticComponent<Pick<CTAProps, "key" | "fullWidth" | "iconLeft" | "iconRight" | keyof import("react-native/types").TouchableOpacityProps> & import("react").RefAttributes<TouchableOpacity>>;
@@ -1,245 +1,237 @@
1
1
  import { PropsWithChildren } from 'react';
2
- import { View, ViewProps } from 'react-native';
3
- export declare const Dl: import("react").ForwardRefExoticComponent<Pick<Omit<{
4
- [x: string]: any;
5
- [x: number]: any;
6
- [x: symbol]: any;
7
- } & {
8
- theme?: {
9
- core: {
10
- radius: Record<"small" | "medium" | "large" | "max", string>;
11
- borderWidth: Record<"small" | "medium" | "large", string>;
12
- breakpoint: Record<"small" | "medium" | "large", string | number>;
13
- mediaQuery: Record<"small" | "medium" | "large", string>;
14
- space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
15
- transition: Record<"medium" | "slow" | "fast", string>;
16
- opacity: Record<"solid" | "transparent" | "translucent", string | number>;
17
- color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
18
- lightest: string;
19
- lighter: string;
20
- light: string;
21
- base: string;
22
- dark: string;
23
- darker: string;
24
- darkest: string;
25
- }> & {
26
- brand: Record<string, string>;
27
- };
28
- fontFamily: Record<"body" | "mono" | "heading" | "bodyBold", {
29
- native: string;
30
- web: string;
31
- }>;
32
- fontWeight: Record<"bold" | "book" | "black", string | number>;
33
- fontSize: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
34
- small: string | number;
35
- large: string | number;
36
- }>;
37
- lineHeight: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
38
- small: string | number;
39
- large: string | number;
40
- }>;
41
- letterSpacing: Record<"base" | "compressed" | "extraCompressed", number>;
42
- };
43
- semantic: {
44
- surface: Record<"base" | "cutout" | "elevated", string>;
45
- message: Record<"base" | "link" | "secondary" | "error" | "branded", string>;
46
- border: Record<"graphic" | "differentiated" | "functional", string>;
47
- focus: Record<"surface" | "outline" | "hover", string>;
48
- inverted: Record<"surface" | "border", string> & {
49
- message: Record<"base" | "link" | "secondary" | "branded", string>;
50
- };
51
- success: {
52
- border: string;
53
- surface: string;
54
- surfaceEmphasis: string;
55
- message: string;
56
- messageOnEmphasis: string;
2
+ import { ViewProps } from 'react-native';
3
+ import { Breakpoints } from '../../hooks';
4
+ export declare const Dl: import("styled-components").StyledComponent<typeof import("react-native").View, {
5
+ core: {
6
+ radius: Record<"small" | "medium" | "large" | "max", string>;
7
+ borderWidth: Record<"small" | "medium" | "large", string>;
8
+ breakpoint: Record<"small" | "medium" | "large", string | number>;
9
+ mediaQuery: Record<"small" | "medium" | "large", string>;
10
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 10 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
11
+ transition: Record<"medium" | "slow" | "fast", string>;
12
+ opacity: Record<"solid" | "transparent" | "translucent", string | number>;
13
+ color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
14
+ lightest: string;
15
+ lighter: string;
16
+ light: string;
17
+ base: string;
18
+ dark: string;
19
+ darker: string;
20
+ darkest: string;
21
+ }> & {
22
+ brand: Record<string, string>;
23
+ };
24
+ fontFamily: Record<"body" | "mono" | "heading" | "bodyBold", {
25
+ native: string;
26
+ web: string;
27
+ }>;
28
+ fontWeight: Record<"bold" | "book" | "black", string | number>;
29
+ fontSize: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
30
+ small: string | number;
31
+ large: string | number;
32
+ }>;
33
+ lineHeight: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
34
+ small: string | number;
35
+ large: string | number;
36
+ }>;
37
+ letterSpacing: Record<"base" | "compressed" | "extraCompressed", number>;
38
+ };
39
+ semantic: {
40
+ surface: Record<"base" | "cutout" | "elevated", string>;
41
+ message: Record<"base" | "link" | "secondary" | "error" | "branded", string>;
42
+ border: Record<"graphic" | "differentiated" | "functional", string>;
43
+ focus: Record<"surface" | "outline" | "hover", string>;
44
+ inverted: Record<"surface" | "border", string> & {
45
+ message: Record<"base" | "link" | "secondary" | "branded", string>;
46
+ };
47
+ success: {
48
+ border: string;
49
+ surface: string;
50
+ surfaceEmphasis: string;
51
+ message: string;
52
+ messageOnEmphasis: string;
53
+ };
54
+ warning: {
55
+ border: string;
56
+ surface: string;
57
+ surfaceEmphasis: string;
58
+ message: string;
59
+ messageOnEmphasis: string;
60
+ };
61
+ error: {
62
+ border: string;
63
+ surface: string;
64
+ surfaceEmphasis: string;
65
+ message: string;
66
+ messageOnEmphasis: string;
67
+ };
68
+ info: {
69
+ border: string;
70
+ surface: string;
71
+ surfaceEmphasis: string;
72
+ message: string;
73
+ messageOnEmphasis: string;
74
+ };
75
+ data: Record<"branded" | "gas" | "electric", Record<2 | 1 | 3 | 4, string>>;
76
+ };
77
+ component: {
78
+ heading1: {
79
+ fontFamily: string;
80
+ fontWeight: string | number;
81
+ fontSize: {
82
+ small: string | number;
83
+ large: string | number;
57
84
  };
58
- warning: {
59
- border: string;
60
- surface: string;
61
- surfaceEmphasis: string;
62
- message: string;
63
- messageOnEmphasis: string;
85
+ lineHeight: {
86
+ small: string | number;
87
+ large: string | number;
64
88
  };
65
- error: {
66
- border: string;
67
- surface: string;
68
- surfaceEmphasis: string;
69
- message: string;
70
- messageOnEmphasis: string;
89
+ };
90
+ heading2: {
91
+ fontFamily: string;
92
+ fontWeight: string | number;
93
+ fontSize: {
94
+ small: string | number;
95
+ large: string | number;
71
96
  };
72
- info: {
73
- border: string;
74
- surface: string;
75
- surfaceEmphasis: string;
76
- message: string;
77
- messageOnEmphasis: string;
97
+ lineHeight: {
98
+ small: string | number;
99
+ large: string | number;
78
100
  };
79
- data: Record<"branded" | "gas" | "electric", Record<2 | 1 | 3 | 4, string>>;
80
101
  };
81
- component: {
82
- heading1: {
83
- fontFamily: string;
84
- fontWeight: string | number;
85
- fontSize: {
86
- small: string | number;
87
- large: string | number;
88
- };
89
- lineHeight: {
90
- small: string | number;
91
- large: string | number;
92
- };
102
+ heading3: {
103
+ fontFamily: string;
104
+ fontWeight: string | number;
105
+ fontSize: {
106
+ small: string | number;
107
+ large: string | number;
93
108
  };
94
- heading2: {
95
- fontFamily: string;
96
- fontWeight: string | number;
97
- fontSize: {
98
- small: string | number;
99
- large: string | number;
100
- };
101
- lineHeight: {
102
- small: string | number;
103
- large: string | number;
104
- };
109
+ lineHeight: {
110
+ small: string | number;
111
+ large: string | number;
105
112
  };
106
- heading3: {
107
- fontFamily: string;
108
- fontWeight: string | number;
109
- fontSize: {
110
- small: string | number;
111
- large: string | number;
112
- };
113
- lineHeight: {
114
- small: string | number;
115
- large: string | number;
116
- };
113
+ };
114
+ heading4: {
115
+ fontFamily: string;
116
+ fontWeight: string | number;
117
+ fontSize: {
118
+ small: string | number;
119
+ large: string | number;
117
120
  };
118
- heading4: {
119
- fontFamily: string;
120
- fontWeight: string | number;
121
- fontSize: {
122
- small: string | number;
123
- large: string | number;
124
- };
125
- lineHeight: {
126
- small: string | number;
127
- large: string | number;
128
- };
121
+ lineHeight: {
122
+ small: string | number;
123
+ large: string | number;
129
124
  };
130
- lead: {
131
- fontFamily: string;
132
- fontWeight: string | number;
133
- fontSize: {
134
- small: string | number;
135
- large: string | number;
136
- };
137
- lineHeight: {
138
- small: string | number;
139
- large: string | number;
140
- };
125
+ };
126
+ lead: {
127
+ fontFamily: string;
128
+ fontWeight: string | number;
129
+ fontSize: {
130
+ small: string | number;
131
+ large: string | number;
141
132
  };
142
- body: {
143
- fontFamily: string;
144
- fontWeight: string | number;
145
- fontSize: {
146
- small: string | number;
147
- large: string | number;
148
- };
149
- lineHeight: {
150
- small: string | number;
151
- large: string | number;
152
- };
133
+ lineHeight: {
134
+ small: string | number;
135
+ large: string | number;
153
136
  };
154
- small: {
155
- fontFamily: string;
156
- fontWeight: string | number;
157
- fontSize: {
158
- small: string | number;
159
- large: string | number;
160
- };
161
- lineHeight: {
162
- small: string | number;
163
- large: string | number;
164
- };
137
+ };
138
+ body: {
139
+ fontFamily: string;
140
+ fontWeight: string | number;
141
+ fontSize: {
142
+ small: string | number;
143
+ large: string | number;
144
+ };
145
+ lineHeight: {
146
+ small: string | number;
147
+ large: string | number;
165
148
  };
166
- label: {
167
- fontFamily: string;
168
- fontWeight: string | number;
169
- fontSize: {
170
- small: string | number;
171
- large: string | number;
149
+ };
150
+ small: {
151
+ fontFamily: string;
152
+ fontWeight: string | number;
153
+ fontSize: {
154
+ small: string | number;
155
+ large: string | number;
156
+ };
157
+ lineHeight: {
158
+ small: string | number;
159
+ large: string | number;
160
+ };
161
+ };
162
+ label: {
163
+ fontFamily: string;
164
+ fontWeight: string | number;
165
+ fontSize: {
166
+ small: string | number;
167
+ large: string | number;
168
+ };
169
+ lineHeight: {
170
+ small: string | number;
171
+ large: string | number;
172
+ };
173
+ };
174
+ cta: {
175
+ primary: {
176
+ message: string;
177
+ surface: string;
178
+ messageHover: string;
179
+ surfaceHover: string;
180
+ messageFocused: string;
181
+ surfaceFocused: string;
182
+ outlineFocused: string;
183
+ backgroundFocused: string;
184
+ };
185
+ secondary: {
186
+ message: string;
187
+ surface: string;
188
+ messageHover: string;
189
+ surfaceHover: string;
190
+ messageFocused: string;
191
+ surfaceFocused: string;
192
+ outlineFocused: string;
193
+ backgroundFocused: string;
194
+ };
195
+ destructive: {
196
+ message: string;
197
+ surface: string;
198
+ messageHover: string;
199
+ surfaceHover: string;
200
+ messageFocused: string;
201
+ surfaceFocused: string;
202
+ outlineFocused: string;
203
+ backgroundFocused: string;
204
+ };
205
+ };
206
+ badge: {
207
+ variants: {
208
+ neutral: {
209
+ foreground: string;
210
+ background: string;
172
211
  };
173
- lineHeight: {
174
- small: string | number;
175
- large: string | number;
212
+ red: {
213
+ foreground: string;
214
+ background: string;
176
215
  };
177
- };
178
- cta: {
179
- primary: {
180
- message: string;
181
- surface: string;
182
- messageHover: string;
183
- surfaceHover: string;
184
- messageFocused: string;
185
- surfaceFocused: string;
186
- outlineFocused: string;
187
- backgroundFocused: string;
216
+ orange: {
217
+ foreground: string;
218
+ background: string;
188
219
  };
189
- secondary: {
190
- message: string;
191
- surface: string;
192
- messageHover: string;
193
- surfaceHover: string;
194
- messageFocused: string;
195
- surfaceFocused: string;
196
- outlineFocused: string;
197
- backgroundFocused: string;
220
+ yellow: {
221
+ foreground: string;
222
+ background: string;
198
223
  };
199
- destructive: {
200
- message: string;
201
- surface: string;
202
- messageHover: string;
203
- surfaceHover: string;
204
- messageFocused: string;
205
- surfaceFocused: string;
206
- outlineFocused: string;
207
- backgroundFocused: string;
224
+ green: {
225
+ foreground: string;
226
+ background: string;
208
227
  };
209
- };
210
- badge: {
211
- variants: {
212
- neutral: {
213
- foreground: string;
214
- background: string;
215
- };
216
- red: {
217
- foreground: string;
218
- background: string;
219
- };
220
- orange: {
221
- foreground: string;
222
- background: string;
223
- };
224
- yellow: {
225
- foreground: string;
226
- background: string;
227
- };
228
- green: {
229
- foreground: string;
230
- background: string;
231
- };
232
- blue: {
233
- foreground: string;
234
- background: string;
235
- };
228
+ blue: {
229
+ foreground: string;
230
+ background: string;
236
231
  };
237
232
  };
238
233
  };
239
- } | undefined;
240
- } & {
241
- as?: string | import("react").ComponentType<any> | undefined;
242
- forwardedAs?: string | import("react").ComponentType<any> | undefined;
243
- }, import("../../hooks").BreakpointNames>, string | number | symbol> & import("react").RefAttributes<View>>;
234
+ };
235
+ }, Breakpoints, never>;
244
236
  export declare const Dt: ({ children, ...rest }: PropsWithChildren<ViewProps>) => JSX.Element;
245
237
  export declare const Dd: ({ children, ...rest }: PropsWithChildren<ViewProps>) => JSX.Element;
@@ -54,8 +54,10 @@ var jsx_runtime_1 = require("react/jsx-runtime");
54
54
  var react_native_1 = require("react-native");
55
55
  var styled_native_1 = __importStar(require("../../styled.native"));
56
56
  var utils_1 = require("../../utils");
57
- var List_1 = require("../List/List");
58
- exports.Dl = List_1.ListWrapper;
57
+ exports.Dl = styled_native_1.default.View(function (_a) {
58
+ var core = _a.theme.core, smallAndUp = _a.smallAndUp;
59
+ return "\n flex-direction: column;\n flex: 1;\n margin-vertical: ".concat(smallAndUp ? core.space[3] : core.space[2], ";\n");
60
+ });
59
61
  var StyledDtText = styled_native_1.default.Text(function (_a) {
60
62
  var _b = _a.theme, core = _b.core, semantic = _b.semantic;
61
63
  return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n font-size: ", ";\n color: ", ";\n\n flex: 1;\n "], ["\n font-family: ", ";\n line-height: ", ";\n font-size: ", ";\n color: ", ";\n\n flex: 1;\n "])), core.fontFamily.bodyBold.native, core.lineHeight.body.small, core.fontSize.body.small, semantic.message.base);
@@ -28,6 +28,7 @@ var react_1 = require("react");
28
28
  var react_native_1 = require("react-native");
29
29
  var List_1 = require("../List");
30
30
  var Notification_1 = require("../Notification");
31
+ var P_1 = require("../P");
31
32
  var ErrorSummaryNotification = function (_a) {
32
33
  var errors = _a.errors, scrollViewRef = _a.scrollViewRef, _b = _a.scrollPos, scrollPos = _b === void 0 ? { x: 0, y: 0 } : _b, rest = __rest(_a, ["errors", "scrollViewRef", "scrollPos"]);
33
34
  var ref = (0, react_1.createRef)();
@@ -45,7 +46,7 @@ var ErrorSummaryNotification = function (_a) {
45
46
  }, [errors, scrollViewRef.current, ref.current]);
46
47
  return ((0, jsx_runtime_1.jsx)(Notification_1.ErrorNotification, __assign({ ref: ref }, rest, { children: errors.length === 0 ? null : ((0, jsx_runtime_1.jsx)(List_1.Ul, { children: errors.map(function (_a) {
47
48
  var message = _a.message, fieldId = _a.id;
48
- return ((0, jsx_runtime_1.jsx)(List_1.Li, { children: message }, fieldId));
49
+ return ((0, jsx_runtime_1.jsx)(List_1.Li, { children: (0, jsx_runtime_1.jsx)(P_1.P, { children: message }) }, fieldId));
49
50
  }) })) })));
50
51
  };
51
52
  exports.ErrorSummaryNotification = ErrorSummaryNotification;