@ovotech/element-native 2.1.0 → 2.2.0-canary-1cac2ba-73

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 (147) hide show
  1. package/dist/components/Accordion/Accordion.js +20 -19
  2. package/dist/components/Accordion/Icon.js +7 -10
  3. package/dist/components/Accordion/styles.d.ts +688 -46
  4. package/dist/components/Accordion/styles.js +56 -49
  5. package/dist/components/Badge/Badge.d.ts +237 -8
  6. package/dist/components/Badge/Badge.js +35 -16
  7. package/dist/components/CTAButton/CTAButton.d.ts +7 -12
  8. package/dist/components/CTAButton/CTAButton.js +18 -19
  9. package/dist/components/CTALink/CTALink.d.ts +3 -3
  10. package/dist/components/Card/Card.d.ts +228 -5
  11. package/dist/components/Card/Card.js +5 -25
  12. package/dist/components/Checkbox/Checkbox.js +14 -19
  13. package/dist/components/DataTable/DataTable.d.ts +3 -12
  14. package/dist/components/DataTable/DataTable.js +8 -71
  15. package/dist/components/DataTable/TableRow.d.ts +2 -0
  16. package/dist/components/DataTable/TableRow.js +33 -0
  17. package/dist/components/DataTable/index.d.ts +2 -0
  18. package/dist/components/DataTable/index.js +16 -0
  19. package/dist/components/DataTable/styles.d.ts +2517 -0
  20. package/dist/components/DataTable/styles.js +77 -0
  21. package/dist/components/DataTable/types.d.ts +15 -0
  22. package/dist/components/DataTable/types.js +2 -0
  23. package/dist/components/DateField/DateField.js +9 -9
  24. package/dist/components/DescriptionList/DescriptionList.d.ts +10 -0
  25. package/dist/components/DescriptionList/DescriptionList.js +66 -0
  26. package/dist/components/DescriptionList/index.d.ts +1 -0
  27. package/dist/components/DescriptionList/index.js +6 -0
  28. package/dist/components/DescriptionList/styled.d.ts +241 -0
  29. package/dist/components/DescriptionList/styled.js +88 -0
  30. package/dist/components/Disclosure/Disclosure.js +7 -10
  31. package/dist/components/ErrorSummaryNotification/ErrorSummaryNotification.d.ts +1 -1
  32. package/dist/components/ErrorText/ErrorText.d.ts +228 -1
  33. package/dist/components/ErrorText/ErrorText.js +1 -1
  34. package/dist/components/Field/Field.js +3 -3
  35. package/dist/components/Grid/Col.d.ts +228 -1
  36. package/dist/components/Grid/Row.d.ts +228 -1
  37. package/dist/components/Heading/Heading.js +8 -24
  38. package/dist/components/HintText/HintText.d.ts +228 -1
  39. package/dist/components/HintText/HintText.js +1 -1
  40. package/dist/components/Icon/Icon.d.ts +2 -3
  41. package/dist/components/Icon/Icon.js +2 -2
  42. package/dist/components/Input/Input.d.ts +1 -1
  43. package/dist/components/Input/Input.js +13 -16
  44. package/dist/components/Input/PasswordInput.styled.d.ts +228 -1
  45. package/dist/components/Input/PasswordInput.styled.js +2 -5
  46. package/dist/components/Input/PasswordVisibilityToggle.js +2 -5
  47. package/dist/components/Input/{TelInput.d.ts → PhoneInput.d.ts} +2 -2
  48. package/dist/components/Input/{TelInput.js → PhoneInput.js} +3 -3
  49. package/dist/components/Input/TextareaInput.js +11 -9
  50. package/dist/components/Input/index.d.ts +1 -1
  51. package/dist/components/Input/index.js +3 -3
  52. package/dist/components/LabelText/LabelText.d.ts +228 -1
  53. package/dist/components/LabelText/LabelText.js +1 -1
  54. package/dist/components/List/List.d.ts +706 -3
  55. package/dist/components/List/List.js +18 -5
  56. package/dist/components/Margin/Margin.d.ts +228 -1
  57. package/dist/components/NavHeader/NavHeader.js +4 -4
  58. package/dist/components/Notification/Notification.d.ts +466 -20
  59. package/dist/components/Notification/Notification.js +32 -44
  60. package/dist/components/Radio/Radio.js +13 -29
  61. package/dist/components/SelectField/Select.d.ts +244 -0
  62. package/dist/components/SelectField/Select.js +101 -0
  63. package/dist/components/SelectField/SelectField.d.ts +7 -0
  64. package/dist/components/SelectField/SelectField.js +38 -0
  65. package/dist/components/SelectField/index.d.ts +1 -0
  66. package/dist/components/SelectField/index.js +5 -0
  67. package/dist/components/SkeletonLoading/Skeleton.d.ts +228 -1
  68. package/dist/components/SubLabelText/SubLabelText.d.ts +228 -1
  69. package/dist/components/SubLabelText/SubLabelText.js +1 -1
  70. package/dist/components/SummaryList/SummaryList.d.ts +4 -0
  71. package/dist/components/SummaryList/SummaryList.js +5 -0
  72. package/dist/components/Tabs/Tab.js +22 -19
  73. package/dist/components/Tabs/TabList.d.ts +11 -1
  74. package/dist/components/Tabs/TabList.js +19 -16
  75. package/dist/components/Tabs/TabPanel.js +32 -6
  76. package/dist/components/Tabs/Tabs.d.ts +8 -6
  77. package/dist/components/Tabs/Tabs.js +10 -6
  78. package/dist/components/Text/Text.d.ts +1140 -5
  79. package/dist/components/Text/Text.js +6 -10
  80. package/dist/components/TextField/PhoneField.d.ts +10 -0
  81. package/dist/components/TextField/PhoneField.js +56 -0
  82. package/dist/components/TextField/TelField.d.ts +4 -0
  83. package/dist/components/TextField/TelField.js +7 -2
  84. package/dist/components/TextField/index.d.ts +1 -0
  85. package/dist/components/TextField/index.js +3 -1
  86. package/dist/components/TextLink/TextLink.js +2 -2
  87. package/dist/components/index.d.ts +2 -0
  88. package/dist/components/index.js +2 -0
  89. package/dist/esm/components/Accordion/Accordion.js +23 -22
  90. package/dist/esm/components/Accordion/Icon.js +8 -8
  91. package/dist/esm/components/Accordion/styles.js +29 -48
  92. package/dist/esm/components/Badge/Badge.js +35 -16
  93. package/dist/esm/components/CTAButton/CTAButton.js +20 -21
  94. package/dist/esm/components/Card/Card.js +5 -25
  95. package/dist/esm/components/Checkbox/Checkbox.js +12 -20
  96. package/dist/esm/components/DataTable/DataTable.js +3 -66
  97. package/dist/esm/components/DataTable/TableRow.js +26 -0
  98. package/dist/esm/components/DataTable/index.js +2 -0
  99. package/dist/esm/components/DataTable/styles.js +51 -0
  100. package/dist/esm/components/DataTable/types.js +1 -0
  101. package/dist/esm/components/DateField/DateField.js +9 -9
  102. package/dist/esm/components/DescriptionList/DescriptionList.js +39 -0
  103. package/dist/esm/components/DescriptionList/index.js +1 -0
  104. package/dist/esm/components/DescriptionList/styled.js +57 -0
  105. package/dist/esm/components/Disclosure/Disclosure.js +9 -12
  106. package/dist/esm/components/ErrorText/ErrorText.js +1 -1
  107. package/dist/esm/components/Field/Field.js +3 -3
  108. package/dist/esm/components/Heading/Heading.js +8 -24
  109. package/dist/esm/components/HintText/HintText.js +1 -1
  110. package/dist/esm/components/Icon/Icon.js +2 -2
  111. package/dist/esm/components/Input/Input.js +15 -18
  112. package/dist/esm/components/Input/PasswordInput.styled.js +2 -5
  113. package/dist/esm/components/Input/PasswordVisibilityToggle.js +3 -6
  114. package/dist/esm/components/Input/{TelInput.js → PhoneInput.js} +2 -2
  115. package/dist/esm/components/Input/TextareaInput.js +11 -9
  116. package/dist/esm/components/Input/index.js +1 -1
  117. package/dist/esm/components/LabelText/LabelText.js +1 -1
  118. package/dist/esm/components/List/List.js +17 -5
  119. package/dist/esm/components/NavHeader/NavHeader.js +4 -4
  120. package/dist/esm/components/Notification/Notification.js +34 -46
  121. package/dist/esm/components/Radio/Radio.js +13 -29
  122. package/dist/esm/components/SelectField/Select.js +74 -0
  123. package/dist/esm/components/SelectField/SelectField.js +31 -0
  124. package/dist/esm/components/SelectField/index.js +1 -0
  125. package/dist/esm/components/SubLabelText/SubLabelText.js +1 -1
  126. package/dist/esm/components/SummaryList/SummaryList.js +5 -0
  127. package/dist/esm/components/Tabs/Tab.js +22 -16
  128. package/dist/esm/components/Tabs/TabList.js +18 -16
  129. package/dist/esm/components/Tabs/TabPanel.js +9 -6
  130. package/dist/esm/components/Tabs/Tabs.js +9 -6
  131. package/dist/esm/components/Text/Text.js +6 -10
  132. package/dist/esm/components/TextField/PhoneField.js +30 -0
  133. package/dist/esm/components/TextField/TelField.js +7 -2
  134. package/dist/esm/components/TextField/index.js +1 -0
  135. package/dist/esm/components/TextLink/TextLink.js +2 -2
  136. package/dist/esm/components/index.js +2 -0
  137. package/dist/esm/providers/icons/Logo.js +6 -3
  138. package/dist/esm/theme/create-theme.js +2 -176
  139. package/dist/esm/theme/index.js +13 -2
  140. package/dist/providers/icons/Logo.js +5 -2
  141. package/dist/styled.native.d.ts +1363 -1
  142. package/dist/theme/create-theme.d.ts +1 -1
  143. package/dist/theme/create-theme.js +2 -176
  144. package/dist/theme/index.d.ts +228 -2
  145. package/dist/theme/index.js +13 -2
  146. package/dist/theme/theme.d.ts +1 -110
  147. package/package.json +9 -6
@@ -1 +1,228 @@
1
- export declare const Skeleton: import("styled-components").StyledComponent<typeof import("react-native").View, import("../../theme/theme").Theme, {}, never>;
1
+ export declare const Skeleton: import("styled-components").StyledComponent<typeof import("react-native").View, import("../../theme/theme").Theme & {
2
+ core: {
3
+ radius: Record<"small" | "medium" | "large" | "max", string>;
4
+ borderWidth: Record<"small" | "medium" | "large", string>;
5
+ breakpoint: Record<"small" | "medium" | "large", string | number>;
6
+ mediaQuery: Record<"small" | "medium" | "large", string>;
7
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15, string>;
8
+ transition: Record<"medium" | "slow" | "fast", string>;
9
+ opacity: Record<"solid" | "transparent" | "translucent", string | number>;
10
+ color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
11
+ lightest: string;
12
+ lighter: string;
13
+ light: string;
14
+ base: string;
15
+ dark: string;
16
+ darker: string;
17
+ darkest: string;
18
+ }> & {
19
+ brand: Record<string, string>;
20
+ };
21
+ fontFamily: Record<"heading" | "body" | "mono" | "bodyBold", {
22
+ native: string;
23
+ web: string;
24
+ }>;
25
+ fontWeight: Record<"bold" | "book" | "black", string | number>;
26
+ fontSize: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
27
+ small: string | number;
28
+ large: string | number;
29
+ }>;
30
+ lineHeight: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
31
+ small: string | number;
32
+ large: string | number;
33
+ }>;
34
+ letterSpacing: Record<"base" | "compressed" | "extraCompressed", number>;
35
+ };
36
+ semantic: {
37
+ surface: Record<"base" | "cutout" | "elevated", string>;
38
+ message: Record<"base" | "link" | "error" | "secondary" | "branded", string>;
39
+ border: Record<"graphic" | "differentiated" | "functional", string>;
40
+ focus: Record<"surface" | "outline" | "hover", string>;
41
+ inverted: Record<"border" | "surface", string> & {
42
+ message: Record<"base" | "link" | "secondary" | "branded", string>;
43
+ };
44
+ success: {
45
+ border: string;
46
+ surface: string;
47
+ surfaceEmphasis: string;
48
+ message: string;
49
+ messageOnEmphasis: string;
50
+ };
51
+ warning: {
52
+ border: string;
53
+ surface: string;
54
+ surfaceEmphasis: string;
55
+ message: string;
56
+ messageOnEmphasis: string;
57
+ };
58
+ error: {
59
+ border: string;
60
+ surface: string;
61
+ surfaceEmphasis: string;
62
+ message: string;
63
+ messageOnEmphasis: string;
64
+ };
65
+ info: {
66
+ border: string;
67
+ surface: string;
68
+ surfaceEmphasis: string;
69
+ message: string;
70
+ messageOnEmphasis: string;
71
+ };
72
+ data: Record<"gas" | "branded" | "electric", Record<2 | 1 | 3 | 4, string>>;
73
+ };
74
+ component: {
75
+ heading1: {
76
+ fontFamily: string;
77
+ fontWeight: string | number;
78
+ fontSize: {
79
+ small: string | number;
80
+ large: string | number;
81
+ };
82
+ lineHeight: {
83
+ small: string | number;
84
+ large: string | number;
85
+ };
86
+ };
87
+ heading2: {
88
+ fontFamily: string;
89
+ fontWeight: string | number;
90
+ fontSize: {
91
+ small: string | number;
92
+ large: string | number;
93
+ };
94
+ lineHeight: {
95
+ small: string | number;
96
+ large: string | number;
97
+ };
98
+ };
99
+ heading3: {
100
+ fontFamily: string;
101
+ fontWeight: string | number;
102
+ fontSize: {
103
+ small: string | number;
104
+ large: string | number;
105
+ };
106
+ lineHeight: {
107
+ small: string | number;
108
+ large: string | number;
109
+ };
110
+ };
111
+ heading4: {
112
+ fontFamily: string;
113
+ fontWeight: string | number;
114
+ fontSize: {
115
+ small: string | number;
116
+ large: string | number;
117
+ };
118
+ lineHeight: {
119
+ small: string | number;
120
+ large: string | number;
121
+ };
122
+ };
123
+ lead: {
124
+ fontFamily: string;
125
+ fontWeight: string | number;
126
+ fontSize: {
127
+ small: string | number;
128
+ large: string | number;
129
+ };
130
+ lineHeight: {
131
+ small: string | number;
132
+ large: string | number;
133
+ };
134
+ };
135
+ body: {
136
+ fontFamily: string;
137
+ fontWeight: string | number;
138
+ fontSize: {
139
+ small: string | number;
140
+ large: string | number;
141
+ };
142
+ lineHeight: {
143
+ small: string | number;
144
+ large: string | number;
145
+ };
146
+ };
147
+ small: {
148
+ fontFamily: string;
149
+ fontWeight: string | number;
150
+ fontSize: {
151
+ small: string | number;
152
+ large: string | number;
153
+ };
154
+ lineHeight: {
155
+ small: string | number;
156
+ large: string | number;
157
+ };
158
+ };
159
+ label: {
160
+ fontFamily: string;
161
+ fontWeight: string | number;
162
+ fontSize: {
163
+ small: string | number;
164
+ large: string | number;
165
+ };
166
+ lineHeight: {
167
+ small: string | number;
168
+ large: string | number;
169
+ };
170
+ };
171
+ cta: {
172
+ primary: {
173
+ message: string;
174
+ surface: string;
175
+ messageHover: string;
176
+ surfaceHover: string;
177
+ messageFocused: string;
178
+ surfaceFocused: string;
179
+ outlineFocused: string;
180
+ backgroundFocused: string;
181
+ };
182
+ secondary: {
183
+ message: string;
184
+ surface: string;
185
+ messageHover: string;
186
+ surfaceHover: string;
187
+ messageFocused: string;
188
+ surfaceFocused: string;
189
+ outlineFocused: string;
190
+ backgroundFocused: string;
191
+ };
192
+ destructive: {
193
+ message: string;
194
+ surface: string;
195
+ messageHover: string;
196
+ surfaceHover: string;
197
+ messageFocused: string;
198
+ surfaceFocused: string;
199
+ outlineFocused: string;
200
+ backgroundFocused: string;
201
+ };
202
+ };
203
+ badge: {
204
+ variants: {
205
+ red: {
206
+ foreground: string;
207
+ background: string;
208
+ };
209
+ orange: {
210
+ foreground: string;
211
+ background: string;
212
+ };
213
+ yellow: {
214
+ foreground: string;
215
+ background: string;
216
+ };
217
+ green: {
218
+ foreground: string;
219
+ background: string;
220
+ };
221
+ blue: {
222
+ foreground: string;
223
+ background: string;
224
+ };
225
+ };
226
+ };
227
+ };
228
+ }, {}, never>;
@@ -5,7 +5,234 @@ declare const SubLabelText: import("react").ForwardRefExoticComponent<Pick<Omit<
5
5
  [x: number]: any;
6
6
  [x: symbol]: any;
7
7
  } & {
8
- theme?: import("../../theme/theme").Theme | undefined;
8
+ theme?: (import("../../theme/theme").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 | 6 | 7 | 8 | 9 | 10 | 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<"heading" | "body" | "mono" | "bodyBold", {
29
+ native: string;
30
+ web: string;
31
+ }>;
32
+ fontWeight: Record<"bold" | "book" | "black", string | number>;
33
+ fontSize: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
34
+ small: string | number;
35
+ large: string | number;
36
+ }>;
37
+ lineHeight: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
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" | "error" | "secondary" | "branded", string>;
46
+ border: Record<"graphic" | "differentiated" | "functional", string>;
47
+ focus: Record<"surface" | "outline" | "hover", string>;
48
+ inverted: Record<"border" | "surface", string> & {
49
+ message: Record<"base" | "link" | "secondary" | "branded", string>;
50
+ };
51
+ success: {
52
+ border: string;
53
+ surface: string;
54
+ surfaceEmphasis: string;
55
+ message: string;
56
+ messageOnEmphasis: string;
57
+ };
58
+ warning: {
59
+ border: string;
60
+ surface: string;
61
+ surfaceEmphasis: string;
62
+ message: string;
63
+ messageOnEmphasis: string;
64
+ };
65
+ error: {
66
+ border: string;
67
+ surface: string;
68
+ surfaceEmphasis: string;
69
+ message: string;
70
+ messageOnEmphasis: string;
71
+ };
72
+ info: {
73
+ border: string;
74
+ surface: string;
75
+ surfaceEmphasis: string;
76
+ message: string;
77
+ messageOnEmphasis: string;
78
+ };
79
+ data: Record<"gas" | "branded" | "electric", Record<2 | 1 | 3 | 4, string>>;
80
+ };
81
+ component: {
82
+ heading1: {
83
+ fontFamily: string;
84
+ fontWeight: string | number;
85
+ fontSize: {
86
+ small: string | number;
87
+ large: string | number;
88
+ };
89
+ lineHeight: {
90
+ small: string | number;
91
+ large: string | number;
92
+ };
93
+ };
94
+ heading2: {
95
+ fontFamily: string;
96
+ fontWeight: string | number;
97
+ fontSize: {
98
+ small: string | number;
99
+ large: string | number;
100
+ };
101
+ lineHeight: {
102
+ small: string | number;
103
+ large: string | number;
104
+ };
105
+ };
106
+ heading3: {
107
+ fontFamily: string;
108
+ fontWeight: string | number;
109
+ fontSize: {
110
+ small: string | number;
111
+ large: string | number;
112
+ };
113
+ lineHeight: {
114
+ small: string | number;
115
+ large: string | number;
116
+ };
117
+ };
118
+ heading4: {
119
+ fontFamily: string;
120
+ fontWeight: string | number;
121
+ fontSize: {
122
+ small: string | number;
123
+ large: string | number;
124
+ };
125
+ lineHeight: {
126
+ small: string | number;
127
+ large: string | number;
128
+ };
129
+ };
130
+ lead: {
131
+ fontFamily: string;
132
+ fontWeight: string | number;
133
+ fontSize: {
134
+ small: string | number;
135
+ large: string | number;
136
+ };
137
+ lineHeight: {
138
+ small: string | number;
139
+ large: string | number;
140
+ };
141
+ };
142
+ body: {
143
+ fontFamily: string;
144
+ fontWeight: string | number;
145
+ fontSize: {
146
+ small: string | number;
147
+ large: string | number;
148
+ };
149
+ lineHeight: {
150
+ small: string | number;
151
+ large: string | number;
152
+ };
153
+ };
154
+ small: {
155
+ fontFamily: string;
156
+ fontWeight: string | number;
157
+ fontSize: {
158
+ small: string | number;
159
+ large: string | number;
160
+ };
161
+ lineHeight: {
162
+ small: string | number;
163
+ large: string | number;
164
+ };
165
+ };
166
+ label: {
167
+ fontFamily: string;
168
+ fontWeight: string | number;
169
+ fontSize: {
170
+ small: string | number;
171
+ large: string | number;
172
+ };
173
+ lineHeight: {
174
+ small: string | number;
175
+ large: string | number;
176
+ };
177
+ };
178
+ cta: {
179
+ primary: {
180
+ message: string;
181
+ surface: string;
182
+ messageHover: string;
183
+ surfaceHover: string;
184
+ messageFocused: string;
185
+ surfaceFocused: string;
186
+ outlineFocused: string;
187
+ backgroundFocused: string;
188
+ };
189
+ secondary: {
190
+ message: string;
191
+ surface: string;
192
+ messageHover: string;
193
+ surfaceHover: string;
194
+ messageFocused: string;
195
+ surfaceFocused: string;
196
+ outlineFocused: string;
197
+ backgroundFocused: string;
198
+ };
199
+ destructive: {
200
+ message: string;
201
+ surface: string;
202
+ messageHover: string;
203
+ surfaceHover: string;
204
+ messageFocused: string;
205
+ surfaceFocused: string;
206
+ outlineFocused: string;
207
+ backgroundFocused: string;
208
+ };
209
+ };
210
+ badge: {
211
+ variants: {
212
+ red: {
213
+ foreground: string;
214
+ background: string;
215
+ };
216
+ orange: {
217
+ foreground: string;
218
+ background: string;
219
+ };
220
+ yellow: {
221
+ foreground: string;
222
+ background: string;
223
+ };
224
+ green: {
225
+ foreground: string;
226
+ background: string;
227
+ };
228
+ blue: {
229
+ foreground: string;
230
+ background: string;
231
+ };
232
+ };
233
+ };
234
+ };
235
+ }) | undefined;
9
236
  } & {
10
237
  as?: string | import("react").ComponentType<any> | undefined;
11
238
  forwardedAs?: string | import("react").ComponentType<any> | undefined;
@@ -34,7 +34,7 @@ var utils_1 = require("../../utils");
34
34
  var StyledSubLabelText = styled_native_1.default.Text(function (_a) {
35
35
  var field = _a.theme.field, smallAndUp = _a.smallAndUp;
36
36
  var fontSize = smallAndUp ? field.fontSize[1] : field.fontSize[0];
37
- return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n "], ["\n font-family: ", ";\n line-height: ", ";\n font-weight: ", ";\n color: ", ";\n font-size: ", ";\n "])), field.fontFamily, (0, theme_1.calculateLineHeight)(fontSize, field.lineHeight), field.subLabel.fontWeight, field.subLabel.color, fontSize);
37
+ return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n "], ["\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n "])), field.fontFamily, (0, theme_1.calculateLineHeight)(fontSize, field.lineHeight), field.subLabel.color, fontSize);
38
38
  });
39
39
  var SubLabelText = (0, utils_1.styledComponentWithBreakpoints)(StyledSubLabelText);
40
40
  exports.SubLabelText = SubLabelText;
@@ -1,6 +1,10 @@
1
1
  import { ComponentProps, ReactNode } from 'react';
2
2
  import { Dd, Dl } from '../List';
3
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
+ * */
4
8
  declare const SummaryList: ({ children, ...rest }: SummaryListProps) => JSX.Element;
5
9
  declare type SummaryItemProps = ComponentProps<typeof Dd> & {
6
10
  label: ReactNode;
@@ -48,8 +48,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
48
48
  exports.SummaryItem = exports.SummaryList = void 0;
49
49
  var react_1 = __importStar(require("react"));
50
50
  var List_1 = require("../List");
51
+ /**
52
+ * @deprecated This component has been deprecated and will be removed in a future release.
53
+ * Please use the Description List (List/Dl) component instead.
54
+ * */
51
55
  var SummaryList = function (_a) {
52
56
  var children = _a.children, rest = __rest(_a, ["children"]);
57
+ console.warn('SummaryList component has been deprecated and will be removed in a future release. Please use the DescriptionList component instead.');
53
58
  return (react_1.default.createElement(List_1.Dl, __assign({}, rest), react_1.Children.map(children, function (child, index) {
54
59
  return (0, react_1.cloneElement)(child, {
55
60
  index: index,
@@ -1,4 +1,8 @@
1
1
  "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
2
6
  var __assign = (this && this.__assign) || function () {
3
7
  __assign = Object.assign || function(t) {
4
8
  for (var s, i = 1, n = arguments.length; i < n; i++) {
@@ -44,31 +48,30 @@ var __rest = (this && this.__rest) || function (s, e) {
44
48
  }
45
49
  return t;
46
50
  };
47
- var __importDefault = (this && this.__importDefault) || function (mod) {
48
- return (mod && mod.__esModule) ? mod : { "default": mod };
49
- };
50
51
  Object.defineProperty(exports, "__esModule", { value: true });
51
52
  exports.Tab = void 0;
52
53
  var react_1 = __importStar(require("react"));
53
54
  var hooks_1 = require("../../hooks");
54
- var styled_native_1 = __importDefault(require("../../styled.native"));
55
- var utils_1 = require("../../utils");
56
- var StyledText = styled_native_1.default.Text(function (_a) {
57
- var tabs = _a.theme.tabs, smallAndUp = _a.smallAndUp, active = _a.active;
58
- return "\n font-size: ".concat(tabs.tab.fontSize[smallAndUp ? 1 : 0], ";\n font-family: ").concat(tabs.tab.fontFamily, ";\n font-weight: ").concat(tabs.tab.fontWeight, ";\n background-color: ").concat(active ? tabs.tab.active.backgroundColor : tabs.tab.inactive.backgroundColor, ";\n line-height: ").concat("".concat(tabs.tab.lineHeight * (0, utils_1.pxToNumber)(tabs.tab.fontSize[0]), "px"), ";\n color: ").concat(active ? tabs.tab.active.foregroundColor : tabs.tab.inactive.foregroundColor, ";\n text-align: center;\n padding: ").concat("".concat(tabs.tab.paddingVertical[smallAndUp ? 1 : 0], " ").concat(tabs.tab.paddingHorizontal[smallAndUp ? 1 : 0]), ";\n");
55
+ var styled_native_1 = __importStar(require("../../styled.native"));
56
+ var TabText = styled_native_1.default.Text(function (_a) {
57
+ var _b = _a.theme, core = _b.core, semantic = _b.semantic, smallAndUp = _a.smallAndUp;
58
+ return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-size: ", ";\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n text-align: center;\n padding: ", " ", ";\n "], ["\n font-size: ", ";\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n text-align: center;\n padding: ", " ", ";\n "])), core.fontSize.body.small, core.fontFamily.bodyBold.native, core.lineHeight.body.small, semantic.message.base, core.space[3], core.space[smallAndUp ? 3 : 2]);
59
59
  });
60
- var StyledTouchableOpacity = styled_native_1.default.TouchableOpacity(function (_a) {
61
- var _b = _a.active, active = _b === void 0 ? false : _b, _c = _a.first, first = _c === void 0 ? false : _c, _d = _a.last, last = _d === void 0 ? false : _d, _e = _a.stretch, stretch = _e === void 0 ? false : _e, _f = _a.theme, card = _f.card, tabs = _f.tabs, inline = _a.inline;
62
- return "flex-grow: ".concat(stretch ? 1 : 0, ";\n border: ").concat(card.borderWidth, " solid ").concat(tabs.tab.borderColor, ";\n border-bottom-color: ").concat(active ? tabs.tab.active.backgroundColor : card.borderColor, ";\n border-top-color: ").concat(inline ? card.borderColor : tabs.tab.borderColor, ";\n border-right-color: ").concat(last && inline ? card.borderColor : tabs.tab.borderColor, "};\n border-left-color: ").concat(first && inline ? card.borderColor : tabs.tab.borderColor, "};\n border-right-width: ").concat(card.borderWidth, ";\n border-left-width: ").concat(first ? card.borderWidth : 0, ";\n background-color: ").concat(active ? tabs.tab.active.borderColor : tabs.tab.inactive.backgroundColor, ";\n padding-bottom: ").concat(tabs.tab.borderBottomWidth, ";\n");
60
+ var TabTouchable = styled_native_1.default.TouchableOpacity(function (_a) {
61
+ var _b = _a.active, active = _b === void 0 ? false : _b, _c = _a.first, first = _c === void 0 ? false : _c, _d = _a.last, last = _d === void 0 ? false : _d, _e = _a.stretch, stretch = _e === void 0 ? false : _e, _f = _a.theme, core = _f.core, semantic = _f.semantic, inline = _a.inline;
62
+ return (0, styled_native_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n flex-grow: ", ";\n border: ", " solid ", ";\n ", "\n ", "\n ", "\n ", "\n "], ["\n flex-grow: ", ";\n border: ", " solid ", ";\n ", "\n ", "\n ", "\n ", "\n "])), stretch ? 1 : 0, core.borderWidth.small, semantic.border.differentiated, active
63
+ ? (0, styled_native_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n border-bottom-color: ", ";\n border-bottom-width: ", ";\n "], ["\n border-bottom-color: ", ";\n border-bottom-width: ", ";\n "])), semantic.message.branded, core.borderWidth.medium) : '', !inline
64
+ ? (0, styled_native_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n border-top-color: transparent;\n border-top-width: 0;\n "], ["\n border-top-color: transparent;\n border-top-width: 0;\n "]))) : '', last && inline
65
+ ? ''
66
+ : (0, styled_native_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n border-right-color: transparent;\n border-right-width: 0;\n "], ["\n border-right-color: transparent;\n border-right-width: 0;\n "]))), first && inline
67
+ ? ''
68
+ : (0, styled_native_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n border-left-color: transparent;\n border-left-width: 0;\n "], ["\n border-left-color: transparent;\n border-left-width: 0;\n "]))));
63
69
  });
64
- exports.Tab = (0, react_1.forwardRef)(function (
65
- // eslint-disable-next-line
66
- _a, ref) {
67
- var active = _a.active, fullWidth = _a.fullWidth, children = _a.children, rest = __rest(_a,
68
- // eslint-disable-next-line
69
- ["active", "fullWidth", "children"]);
70
+ exports.Tab = (0, react_1.forwardRef)(function (_a, ref) {
71
+ var active = _a.active, fullWidth = _a.fullWidth, children = _a.children, rest = __rest(_a, ["active", "fullWidth", "children"]);
70
72
  var stretch = (0, hooks_1.useFullWidth)(fullWidth);
71
73
  var breakpoints = (0, hooks_1.useBreakpoint)();
72
- return (react_1.default.createElement(StyledTouchableOpacity, __assign({ accessibilityRole: "tab", accessibilityState: { selected: active }, active: active, stretch: stretch, ref: ref }, rest),
73
- react_1.default.createElement(StyledText, __assign({ active: active }, breakpoints), children)));
74
+ return (react_1.default.createElement(TabTouchable, __assign({ accessibilityRole: "tab", accessibilityState: { selected: active }, active: active, stretch: stretch, ref: ref }, rest),
75
+ react_1.default.createElement(TabText, __assign({ active: active }, breakpoints), children)));
74
76
  });
77
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6;
@@ -1 +1,11 @@
1
- export declare const TabList: import("styled-components").StyledComponent<({ children, setActiveTab, activeTab, tabRefs, fullWidth, inline, ...rest }: any) => JSX.Element, import("../../theme/theme").Theme, {}, never>;
1
+ import React from 'react';
2
+ import { ViewProps } from 'react-native';
3
+ declare type TabListProps = ViewProps & {
4
+ fullWidth?: 'always' | 'never' | 'small';
5
+ setActiveTab?: (i: number) => void;
6
+ activeTab?: number;
7
+ tabRefs?: React.RefObject<any>[];
8
+ inline?: boolean;
9
+ };
10
+ export declare const TabList: ({ children, setActiveTab, activeTab, tabRefs, fullWidth, inline, ...rest }: TabListProps) => JSX.Element;
11
+ export {};
@@ -51,24 +51,27 @@ var __rest = (this && this.__rest) || function (s, e) {
51
51
  Object.defineProperty(exports, "__esModule", { value: true });
52
52
  exports.TabList = void 0;
53
53
  var react_1 = __importStar(require("react"));
54
- var react_native_1 = require("react-native");
55
54
  var styled_native_1 = __importStar(require("../../styled.native"));
56
55
  var utils_1 = require("../../utils");
57
- exports.TabList = (0, styled_native_1.default)(function (_a) {
56
+ var StyledTabList = styled_native_1.default.View(function (_a) {
57
+ var core = _a.theme.core;
58
+ return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n flex-direction: row;\n margin: -", ";\n "], ["\n flex-direction: row;\n margin: -", ";\n "])), core.borderWidth.small);
59
+ });
60
+ var TabList = function (_a) {
58
61
  var children = _a.children, setActiveTab = _a.setActiveTab, activeTab = _a.activeTab, tabRefs = _a.tabRefs, fullWidth = _a.fullWidth, inline = _a.inline, rest = __rest(_a, ["children", "setActiveTab", "activeTab", "tabRefs", "fullWidth", "inline"]);
59
- return (react_1.default.createElement(react_native_1.View, __assign({ accessibilityRole: "tablist" }, rest), react_1.Children.map(children, function (child, i) {
60
- return (0, react_1.cloneElement)(child, {
61
- onPress: (0, utils_1.callAll)(function () { return setActiveTab && setActiveTab(i); }, child.props.onPress),
62
- active: activeTab === i,
63
- fullWidth: fullWidth,
64
- ref: tabRefs[i],
65
- first: i === 0,
66
- last: react_1.Children.count(children) - 1 === i,
67
- inline: inline,
68
- });
62
+ return (react_1.default.createElement(StyledTabList, __assign({ accessibilityRole: "tablist" }, rest), react_1.Children.map(children, function (child, i) {
63
+ return child
64
+ ? (0, react_1.cloneElement)(child, {
65
+ onPress: (0, utils_1.callAll)(function () { return setActiveTab && setActiveTab(i); }, child.props.onPress),
66
+ active: activeTab === i,
67
+ fullWidth: fullWidth,
68
+ ref: tabRefs === null || tabRefs === void 0 ? void 0 : tabRefs[i],
69
+ first: i === 0,
70
+ last: react_1.Children.count(children) - 1 === i,
71
+ inline: inline,
72
+ })
73
+ : null;
69
74
  })));
70
- })(function (_a) {
71
- var card = _a.theme.card;
72
- return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n flex-direction: row;\n margin: -", ";\n "], ["\n flex-direction: row;\n margin: -", ";\n "])), card.borderWidth);
73
- });
75
+ };
76
+ exports.TabList = TabList;
74
77
  var templateObject_1;