@ovotech/element-native 3.2.3-canary-490fc38-128 → 3.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (267) hide show
  1. package/dist/components/Accordion/styles.d.ts +27 -27
  2. package/dist/components/Accordion/styles.js +1 -1
  3. package/dist/components/ActionList/styled.d.ts +45 -45
  4. package/dist/components/ActionList/styled.js +1 -1
  5. package/dist/components/Badge/Badge.d.ts +9 -9
  6. package/dist/components/Card/Card.d.ts +9 -9
  7. package/dist/components/Checkbox/Checkbox.js +5 -4
  8. package/dist/components/DataTable/styles.d.ts +99 -99
  9. package/dist/components/DescriptionList/styled.d.ts +9 -9
  10. package/dist/components/ErrorText/ErrorText.d.ts +9 -9
  11. package/dist/components/Field/Field.js +3 -1
  12. package/dist/components/Grid/Col.d.ts +9 -9
  13. package/dist/components/Grid/Row.d.ts +9 -9
  14. package/dist/components/HintText/HintText.d.ts +9 -9
  15. package/dist/components/Input/PasswordInput.styled.d.ts +9 -9
  16. package/dist/components/LabelText/LabelText.d.ts +9 -9
  17. package/dist/components/List/List.d.ts +270 -19
  18. package/dist/components/List/List.js +55 -2
  19. package/dist/components/List/index.d.ts +1 -1
  20. package/dist/components/List/index.js +4 -1
  21. package/dist/components/Margin/Margin.d.ts +11 -11
  22. package/dist/components/Notification/Notification.d.ts +18 -18
  23. package/dist/components/SelectField/Select.d.ts +9 -9
  24. package/dist/components/SkeletonLoading/Skeleton.d.ts +9 -9
  25. package/dist/components/Stack/Stack.d.ts +2 -2
  26. package/dist/components/SubLabelText/SubLabelText.d.ts +9 -9
  27. package/dist/components/SummaryList/SummaryList.d.ts +14 -0
  28. package/dist/components/SummaryList/SummaryList.js +47 -0
  29. package/dist/components/SummaryList/index.d.ts +1 -0
  30. package/dist/components/SummaryList/index.js +6 -0
  31. package/dist/components/Text/Text.d.ts +45 -45
  32. package/dist/components/TextLink/TextLink.js +3 -6
  33. package/dist/components/index.d.ts +1 -0
  34. package/dist/components/index.js +1 -0
  35. package/dist/esm/components/Accordion/styles.js +1 -1
  36. package/dist/esm/components/ActionList/styled.js +1 -1
  37. package/dist/esm/components/Checkbox/Checkbox.js +5 -4
  38. package/dist/esm/components/Field/Field.js +4 -2
  39. package/dist/esm/components/List/List.js +52 -2
  40. package/dist/esm/components/List/index.js +1 -1
  41. package/dist/esm/components/SummaryList/SummaryList.js +43 -0
  42. package/dist/esm/components/SummaryList/index.js +1 -0
  43. package/dist/esm/components/TextLink/TextLink.js +5 -8
  44. package/dist/esm/components/index.js +1 -0
  45. package/dist/esm/index.js +1 -0
  46. package/dist/esm/providers/IconsProvider.js +3 -46
  47. package/dist/esm/providers/icons/ArrowDown.js +2 -2
  48. package/dist/esm/providers/icons/ArrowLeft.js +2 -2
  49. package/dist/esm/providers/icons/ArrowRight.js +2 -2
  50. package/dist/esm/providers/icons/ArrowUp.js +2 -2
  51. package/dist/esm/providers/icons/CaretDown.js +2 -2
  52. package/dist/esm/providers/icons/CaretLeft.js +2 -2
  53. package/dist/esm/providers/icons/CaretRight.js +2 -2
  54. package/dist/esm/providers/icons/CaretUp.js +2 -2
  55. package/dist/esm/providers/icons/Chart.js +2 -2
  56. package/dist/esm/providers/icons/Check.js +2 -2
  57. package/dist/esm/providers/icons/ChevronDown.js +2 -2
  58. package/dist/esm/providers/icons/ChevronLeft.js +2 -2
  59. package/dist/esm/providers/icons/ChevronLeftSmall.js +2 -2
  60. package/dist/esm/providers/icons/ChevronLeftSmallFirst.js +2 -2
  61. package/dist/esm/providers/icons/ChevronRight.js +2 -2
  62. package/dist/esm/providers/icons/ChevronRightSmall.js +2 -2
  63. package/dist/esm/providers/icons/ChevronRightSmallLast.js +2 -2
  64. package/dist/esm/providers/icons/ChevronUp.js +2 -2
  65. package/dist/esm/providers/icons/Cross.js +2 -2
  66. package/dist/esm/providers/icons/Dollar.js +2 -2
  67. package/dist/esm/providers/icons/Download.js +2 -2
  68. package/dist/esm/providers/icons/Electricity.js +2 -2
  69. package/dist/esm/providers/icons/Euro.js +2 -2
  70. package/dist/esm/providers/icons/Gas.js +3 -3
  71. package/dist/esm/providers/icons/Help.js +2 -2
  72. package/dist/esm/providers/icons/Hide.js +2 -2
  73. package/dist/esm/providers/icons/Home.js +2 -2
  74. package/dist/esm/providers/icons/Info.js +2 -2
  75. package/dist/esm/providers/icons/Link.js +2 -2
  76. package/dist/esm/providers/icons/Minus.js +2 -2
  77. package/dist/esm/providers/icons/NewWindow.js +3 -3
  78. package/dist/esm/providers/icons/PaymentCard.js +2 -2
  79. package/dist/esm/providers/icons/Plus.js +2 -2
  80. package/dist/esm/providers/icons/Pound.js +2 -2
  81. package/dist/esm/providers/icons/Search.js +2 -2
  82. package/dist/esm/providers/icons/Show.js +2 -2
  83. package/dist/esm/providers/icons/Tune.js +2 -2
  84. package/dist/esm/providers/icons/User.js +2 -2
  85. package/dist/esm/providers/icons/index.js +3 -46
  86. package/dist/esm/theme/create-theme.js +330 -0
  87. package/dist/esm/{providers/icons/Doc.js → theme/index.js} +8 -3
  88. package/dist/esm/theme/theme.js +1 -0
  89. package/dist/index.d.ts +1 -0
  90. package/dist/index.js +1 -0
  91. package/dist/providers/IconsProvider.js +2 -45
  92. package/dist/providers/icons/ArrowDown.js +2 -25
  93. package/dist/providers/icons/ArrowLeft.js +2 -25
  94. package/dist/providers/icons/ArrowRight.js +2 -25
  95. package/dist/providers/icons/ArrowUp.js +2 -25
  96. package/dist/providers/icons/CaretDown.js +2 -25
  97. package/dist/providers/icons/CaretLeft.js +2 -25
  98. package/dist/providers/icons/CaretRight.js +2 -25
  99. package/dist/providers/icons/CaretUp.js +2 -25
  100. package/dist/providers/icons/Chart.js +2 -25
  101. package/dist/providers/icons/Check.js +2 -25
  102. package/dist/providers/icons/ChevronDown.js +2 -25
  103. package/dist/providers/icons/ChevronLeft.js +2 -25
  104. package/dist/providers/icons/ChevronLeftSmall.js +2 -25
  105. package/dist/providers/icons/ChevronLeftSmallFirst.js +2 -25
  106. package/dist/providers/icons/ChevronRight.js +2 -25
  107. package/dist/providers/icons/ChevronRightSmall.js +2 -25
  108. package/dist/providers/icons/ChevronRightSmallLast.js +2 -25
  109. package/dist/providers/icons/ChevronUp.js +2 -25
  110. package/dist/providers/icons/Cross.js +2 -25
  111. package/dist/providers/icons/Dollar.js +2 -25
  112. package/dist/providers/icons/Download.js +2 -25
  113. package/dist/providers/icons/Electricity.js +2 -25
  114. package/dist/providers/icons/Euro.js +2 -25
  115. package/dist/providers/icons/Gas.js +2 -25
  116. package/dist/providers/icons/Help.js +2 -25
  117. package/dist/providers/icons/Hide.js +2 -25
  118. package/dist/providers/icons/Home.js +2 -25
  119. package/dist/providers/icons/Info.js +2 -25
  120. package/dist/providers/icons/Link.js +2 -25
  121. package/dist/providers/icons/Minus.js +2 -25
  122. package/dist/providers/icons/NewWindow.js +2 -25
  123. package/dist/providers/icons/PaymentCard.js +2 -25
  124. package/dist/providers/icons/Plus.js +2 -25
  125. package/dist/providers/icons/Pound.js +2 -25
  126. package/dist/providers/icons/Search.js +2 -25
  127. package/dist/providers/icons/Show.js +2 -25
  128. package/dist/providers/icons/Tune.js +2 -25
  129. package/dist/providers/icons/User.js +2 -25
  130. package/dist/providers/icons/index.d.ts +3 -46
  131. package/dist/providers/icons/index.js +3 -46
  132. package/dist/styled.native.d.ts +49 -49
  133. package/dist/theme/create-theme.d.ts +18 -0
  134. package/dist/theme/create-theme.js +337 -0
  135. package/dist/theme/index.d.ts +231 -0
  136. package/dist/theme/index.js +37 -0
  137. package/dist/theme/theme.d.ts +193 -0
  138. package/dist/theme/theme.js +2 -0
  139. package/package.json +2 -2
  140. package/dist/esm/providers/icons/Address.js +0 -14
  141. package/dist/esm/providers/icons/Advice.js +0 -14
  142. package/dist/esm/providers/icons/Archive.js +0 -14
  143. package/dist/esm/providers/icons/Award.js +0 -14
  144. package/dist/esm/providers/icons/Battery.js +0 -14
  145. package/dist/esm/providers/icons/Cal.js +0 -14
  146. package/dist/esm/providers/icons/CalBook.js +0 -14
  147. package/dist/esm/providers/icons/ChartFilled.js +0 -14
  148. package/dist/esm/providers/icons/CheckCircle.js +0 -14
  149. package/dist/esm/providers/icons/CloseCircle.js +0 -14
  150. package/dist/esm/providers/icons/Eco.js +0 -14
  151. package/dist/esm/providers/icons/EcoHome.js +0 -14
  152. package/dist/esm/providers/icons/Edit.js +0 -14
  153. package/dist/esm/providers/icons/ElectricCar.js +0 -14
  154. package/dist/esm/providers/icons/ElectricHome.js +0 -14
  155. package/dist/esm/providers/icons/EnergyAdvice.js +0 -14
  156. package/dist/esm/providers/icons/Equals.js +0 -14
  157. package/dist/esm/providers/icons/GlobeAddress.js +0 -14
  158. package/dist/esm/providers/icons/HomeFilled.js +0 -14
  159. package/dist/esm/providers/icons/HydroPower.js +0 -14
  160. package/dist/esm/providers/icons/Mail.js +0 -14
  161. package/dist/esm/providers/icons/MailOpen.js +0 -14
  162. package/dist/esm/providers/icons/Menu.js +0 -14
  163. package/dist/esm/providers/icons/Message.js +0 -14
  164. package/dist/esm/providers/icons/MessageFilled.js +0 -14
  165. package/dist/esm/providers/icons/Mobile.js +0 -14
  166. package/dist/esm/providers/icons/Phone.js +0 -14
  167. package/dist/esm/providers/icons/Pricing.js +0 -14
  168. package/dist/esm/providers/icons/Security.js +0 -14
  169. package/dist/esm/providers/icons/SmartHome.js +0 -14
  170. package/dist/esm/providers/icons/SmartMeter.js +0 -14
  171. package/dist/esm/providers/icons/Solar.js +0 -14
  172. package/dist/esm/providers/icons/Star.js +0 -14
  173. package/dist/esm/providers/icons/Sun.js +0 -14
  174. package/dist/esm/providers/icons/Trees.js +0 -14
  175. package/dist/esm/providers/icons/UserFilled.js +0 -14
  176. package/dist/esm/providers/icons/Wallet.js +0 -14
  177. package/dist/esm/providers/icons/WalletFilled.js +0 -14
  178. package/dist/esm/providers/icons/WarmHome.js +0 -14
  179. package/dist/esm/providers/icons/Warning.js +0 -14
  180. package/dist/esm/providers/icons/WebAddress.js +0 -14
  181. package/dist/esm/providers/icons/WindPower.js +0 -14
  182. package/dist/providers/icons/Address.d.ts +0 -2
  183. package/dist/providers/icons/Address.js +0 -41
  184. package/dist/providers/icons/Advice.d.ts +0 -2
  185. package/dist/providers/icons/Advice.js +0 -41
  186. package/dist/providers/icons/Archive.d.ts +0 -2
  187. package/dist/providers/icons/Archive.js +0 -41
  188. package/dist/providers/icons/Award.d.ts +0 -2
  189. package/dist/providers/icons/Award.js +0 -41
  190. package/dist/providers/icons/Battery.d.ts +0 -2
  191. package/dist/providers/icons/Battery.js +0 -41
  192. package/dist/providers/icons/Cal.d.ts +0 -2
  193. package/dist/providers/icons/Cal.js +0 -41
  194. package/dist/providers/icons/CalBook.d.ts +0 -2
  195. package/dist/providers/icons/CalBook.js +0 -41
  196. package/dist/providers/icons/ChartFilled.d.ts +0 -2
  197. package/dist/providers/icons/ChartFilled.js +0 -41
  198. package/dist/providers/icons/CheckCircle.d.ts +0 -2
  199. package/dist/providers/icons/CheckCircle.js +0 -41
  200. package/dist/providers/icons/CloseCircle.d.ts +0 -2
  201. package/dist/providers/icons/CloseCircle.js +0 -41
  202. package/dist/providers/icons/Doc.d.ts +0 -2
  203. package/dist/providers/icons/Doc.js +0 -41
  204. package/dist/providers/icons/Eco.d.ts +0 -2
  205. package/dist/providers/icons/Eco.js +0 -41
  206. package/dist/providers/icons/EcoHome.d.ts +0 -2
  207. package/dist/providers/icons/EcoHome.js +0 -41
  208. package/dist/providers/icons/Edit.d.ts +0 -2
  209. package/dist/providers/icons/Edit.js +0 -41
  210. package/dist/providers/icons/ElectricCar.d.ts +0 -2
  211. package/dist/providers/icons/ElectricCar.js +0 -41
  212. package/dist/providers/icons/ElectricHome.d.ts +0 -2
  213. package/dist/providers/icons/ElectricHome.js +0 -41
  214. package/dist/providers/icons/EnergyAdvice.d.ts +0 -2
  215. package/dist/providers/icons/EnergyAdvice.js +0 -41
  216. package/dist/providers/icons/Equals.d.ts +0 -2
  217. package/dist/providers/icons/Equals.js +0 -41
  218. package/dist/providers/icons/GlobeAddress.d.ts +0 -2
  219. package/dist/providers/icons/GlobeAddress.js +0 -41
  220. package/dist/providers/icons/HomeFilled.d.ts +0 -2
  221. package/dist/providers/icons/HomeFilled.js +0 -41
  222. package/dist/providers/icons/HydroPower.d.ts +0 -2
  223. package/dist/providers/icons/HydroPower.js +0 -41
  224. package/dist/providers/icons/Mail.d.ts +0 -2
  225. package/dist/providers/icons/Mail.js +0 -41
  226. package/dist/providers/icons/MailOpen.d.ts +0 -2
  227. package/dist/providers/icons/MailOpen.js +0 -41
  228. package/dist/providers/icons/Menu.d.ts +0 -2
  229. package/dist/providers/icons/Menu.js +0 -41
  230. package/dist/providers/icons/Message.d.ts +0 -2
  231. package/dist/providers/icons/Message.js +0 -41
  232. package/dist/providers/icons/MessageFilled.d.ts +0 -2
  233. package/dist/providers/icons/MessageFilled.js +0 -41
  234. package/dist/providers/icons/Mobile.d.ts +0 -2
  235. package/dist/providers/icons/Mobile.js +0 -41
  236. package/dist/providers/icons/Phone.d.ts +0 -2
  237. package/dist/providers/icons/Phone.js +0 -41
  238. package/dist/providers/icons/Pricing.d.ts +0 -2
  239. package/dist/providers/icons/Pricing.js +0 -41
  240. package/dist/providers/icons/Security.d.ts +0 -2
  241. package/dist/providers/icons/Security.js +0 -41
  242. package/dist/providers/icons/SmartHome.d.ts +0 -2
  243. package/dist/providers/icons/SmartHome.js +0 -41
  244. package/dist/providers/icons/SmartMeter.d.ts +0 -2
  245. package/dist/providers/icons/SmartMeter.js +0 -41
  246. package/dist/providers/icons/Solar.d.ts +0 -2
  247. package/dist/providers/icons/Solar.js +0 -41
  248. package/dist/providers/icons/Star.d.ts +0 -2
  249. package/dist/providers/icons/Star.js +0 -41
  250. package/dist/providers/icons/Sun.d.ts +0 -2
  251. package/dist/providers/icons/Sun.js +0 -41
  252. package/dist/providers/icons/Trees.d.ts +0 -2
  253. package/dist/providers/icons/Trees.js +0 -41
  254. package/dist/providers/icons/UserFilled.d.ts +0 -2
  255. package/dist/providers/icons/UserFilled.js +0 -41
  256. package/dist/providers/icons/Wallet.d.ts +0 -2
  257. package/dist/providers/icons/Wallet.js +0 -41
  258. package/dist/providers/icons/WalletFilled.d.ts +0 -2
  259. package/dist/providers/icons/WalletFilled.js +0 -41
  260. package/dist/providers/icons/WarmHome.d.ts +0 -2
  261. package/dist/providers/icons/WarmHome.js +0 -41
  262. package/dist/providers/icons/Warning.d.ts +0 -2
  263. package/dist/providers/icons/Warning.js +0 -41
  264. package/dist/providers/icons/WebAddress.d.ts +0 -2
  265. package/dist/providers/icons/WebAddress.js +0 -41
  266. package/dist/providers/icons/WindPower.d.ts +0 -2
  267. package/dist/providers/icons/WindPower.js +0 -41
@@ -2,13 +2,13 @@ import { ComponentProps, ReactNode } from 'react';
2
2
  import { View } from 'react-native';
3
3
  export declare type NotificationVariantName = 'error' | 'success' | 'info' | 'warning';
4
4
  declare type NotificationProps = Omit<ComponentProps<typeof Notification>, 'variant'>;
5
- export declare const NotificationContentBox: import("styled-components").StyledComponent<typeof import("react-native").View, {
5
+ export declare const NotificationContentBox: import("styled-components").StyledComponent<typeof import("react-native").View, import("../../theme/theme").Theme & {
6
6
  core: {
7
7
  radius: Record<"small" | "medium" | "large" | "max", string>;
8
8
  borderWidth: Record<"small" | "medium" | "large", string>;
9
9
  breakpoint: Record<"small" | "medium" | "large", string | number>;
10
10
  mediaQuery: Record<"small" | "medium" | "large", string>;
11
- space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
11
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15, string>;
12
12
  transition: Record<"medium" | "slow" | "fast", string>;
13
13
  opacity: Record<"solid" | "transparent" | "translucent", string | number>;
14
14
  color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
@@ -22,16 +22,16 @@ export declare const NotificationContentBox: import("styled-components").StyledC
22
22
  }> & {
23
23
  brand: Record<string, string>;
24
24
  };
25
- fontFamily: Record<"body" | "mono" | "heading" | "bodyBold", {
25
+ fontFamily: Record<"heading" | "body" | "mono" | "bodyBold", {
26
26
  native: string;
27
27
  web: string;
28
28
  }>;
29
29
  fontWeight: Record<"bold" | "book" | "black", string | number>;
30
- fontSize: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
30
+ fontSize: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
31
31
  small: string | number;
32
32
  large: string | number;
33
33
  }>;
34
- lineHeight: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
34
+ lineHeight: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
35
35
  small: string | number;
36
36
  large: string | number;
37
37
  }>;
@@ -39,10 +39,10 @@ export declare const NotificationContentBox: import("styled-components").StyledC
39
39
  };
40
40
  semantic: {
41
41
  surface: Record<"base" | "cutout" | "elevated", string>;
42
- message: Record<"base" | "link" | "secondary" | "error" | "branded", string>;
42
+ message: Record<"base" | "link" | "error" | "secondary" | "branded", string>;
43
43
  border: Record<"graphic" | "differentiated" | "functional", string>;
44
44
  focus: Record<"surface" | "outline" | "hover", string>;
45
- inverted: Record<"surface" | "border", string> & {
45
+ inverted: Record<"border" | "surface", string> & {
46
46
  message: Record<"base" | "link" | "secondary" | "branded", string>;
47
47
  };
48
48
  success: {
@@ -73,7 +73,7 @@ export declare const NotificationContentBox: import("styled-components").StyledC
73
73
  message: string;
74
74
  messageOnEmphasis: string;
75
75
  };
76
- data: Record<"branded" | "gas" | "electric", Record<2 | 1 | 3 | 4, string>>;
76
+ data: Record<"gas" | "branded" | "electric", Record<2 | 1 | 3 | 4, string>>;
77
77
  };
78
78
  component: {
79
79
  heading1: {
@@ -229,14 +229,14 @@ export declare const NotificationContentBox: import("styled-components").StyledC
229
229
  };
230
230
  };
231
231
  };
232
- }, {}, never>;
233
- export declare const NotificationTitleBox: import("styled-components").StyledComponent<typeof import("react-native").View, {
232
+ } & object, {}, never>;
233
+ export declare const NotificationTitleBox: import("styled-components").StyledComponent<typeof import("react-native").View, import("../../theme/theme").Theme & {
234
234
  core: {
235
235
  radius: Record<"small" | "medium" | "large" | "max", string>;
236
236
  borderWidth: Record<"small" | "medium" | "large", string>;
237
237
  breakpoint: Record<"small" | "medium" | "large", string | number>;
238
238
  mediaQuery: Record<"small" | "medium" | "large", string>;
239
- space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
239
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15, string>;
240
240
  transition: Record<"medium" | "slow" | "fast", string>;
241
241
  opacity: Record<"solid" | "transparent" | "translucent", string | number>;
242
242
  color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
@@ -250,16 +250,16 @@ export declare const NotificationTitleBox: import("styled-components").StyledCom
250
250
  }> & {
251
251
  brand: Record<string, string>;
252
252
  };
253
- fontFamily: Record<"body" | "mono" | "heading" | "bodyBold", {
253
+ fontFamily: Record<"heading" | "body" | "mono" | "bodyBold", {
254
254
  native: string;
255
255
  web: string;
256
256
  }>;
257
257
  fontWeight: Record<"bold" | "book" | "black", string | number>;
258
- fontSize: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
258
+ fontSize: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
259
259
  small: string | number;
260
260
  large: string | number;
261
261
  }>;
262
- lineHeight: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
262
+ lineHeight: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
263
263
  small: string | number;
264
264
  large: string | number;
265
265
  }>;
@@ -267,10 +267,10 @@ export declare const NotificationTitleBox: import("styled-components").StyledCom
267
267
  };
268
268
  semantic: {
269
269
  surface: Record<"base" | "cutout" | "elevated", string>;
270
- message: Record<"base" | "link" | "secondary" | "error" | "branded", string>;
270
+ message: Record<"base" | "link" | "error" | "secondary" | "branded", string>;
271
271
  border: Record<"graphic" | "differentiated" | "functional", string>;
272
272
  focus: Record<"surface" | "outline" | "hover", string>;
273
- inverted: Record<"surface" | "border", string> & {
273
+ inverted: Record<"border" | "surface", string> & {
274
274
  message: Record<"base" | "link" | "secondary" | "branded", string>;
275
275
  };
276
276
  success: {
@@ -301,7 +301,7 @@ export declare const NotificationTitleBox: import("styled-components").StyledCom
301
301
  message: string;
302
302
  messageOnEmphasis: string;
303
303
  };
304
- data: Record<"branded" | "gas" | "electric", Record<2 | 1 | 3 | 4, string>>;
304
+ data: Record<"gas" | "branded" | "electric", Record<2 | 1 | 3 | 4, string>>;
305
305
  };
306
306
  component: {
307
307
  heading1: {
@@ -457,7 +457,7 @@ export declare const NotificationTitleBox: import("styled-components").StyledCom
457
457
  };
458
458
  };
459
459
  };
460
- }, {
460
+ } & object, {
461
461
  variant: NotificationVariantName;
462
462
  noMargin?: boolean | undefined;
463
463
  dismissible: boolean;
@@ -11,13 +11,13 @@ export declare type SelectProps = {
11
11
  onSelected?(value: SelectOption): void;
12
12
  testID?: string;
13
13
  };
14
- declare const SelectOption: import("styled-components").StyledComponent<typeof import("react-native").TouchableOpacity, {
14
+ declare const SelectOption: import("styled-components").StyledComponent<typeof import("react-native").TouchableOpacity, import("../../theme/theme").Theme & {
15
15
  core: {
16
16
  radius: Record<"small" | "medium" | "large" | "max", string>;
17
17
  borderWidth: Record<"small" | "medium" | "large", string>;
18
18
  breakpoint: Record<"small" | "medium" | "large", string | number>;
19
19
  mediaQuery: Record<"small" | "medium" | "large", string>;
20
- space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
20
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15, string>;
21
21
  transition: Record<"medium" | "slow" | "fast", string>;
22
22
  opacity: Record<"solid" | "transparent" | "translucent", string | number>;
23
23
  color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
@@ -31,16 +31,16 @@ declare const SelectOption: import("styled-components").StyledComponent<typeof i
31
31
  }> & {
32
32
  brand: Record<string, string>;
33
33
  };
34
- fontFamily: Record<"body" | "mono" | "heading" | "bodyBold", {
34
+ fontFamily: Record<"heading" | "body" | "mono" | "bodyBold", {
35
35
  native: string;
36
36
  web: string;
37
37
  }>;
38
38
  fontWeight: Record<"bold" | "book" | "black", string | number>;
39
- fontSize: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
39
+ fontSize: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
40
40
  small: string | number;
41
41
  large: string | number;
42
42
  }>;
43
- lineHeight: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
43
+ lineHeight: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
44
44
  small: string | number;
45
45
  large: string | number;
46
46
  }>;
@@ -48,10 +48,10 @@ declare const SelectOption: import("styled-components").StyledComponent<typeof i
48
48
  };
49
49
  semantic: {
50
50
  surface: Record<"base" | "cutout" | "elevated", string>;
51
- message: Record<"base" | "link" | "secondary" | "error" | "branded", string>;
51
+ message: Record<"base" | "link" | "error" | "secondary" | "branded", string>;
52
52
  border: Record<"graphic" | "differentiated" | "functional", string>;
53
53
  focus: Record<"surface" | "outline" | "hover", string>;
54
- inverted: Record<"surface" | "border", string> & {
54
+ inverted: Record<"border" | "surface", string> & {
55
55
  message: Record<"base" | "link" | "secondary" | "branded", string>;
56
56
  };
57
57
  success: {
@@ -82,7 +82,7 @@ declare const SelectOption: import("styled-components").StyledComponent<typeof i
82
82
  message: string;
83
83
  messageOnEmphasis: string;
84
84
  };
85
- data: Record<"branded" | "gas" | "electric", Record<2 | 1 | 3 | 4, string>>;
85
+ data: Record<"gas" | "branded" | "electric", Record<2 | 1 | 3 | 4, string>>;
86
86
  };
87
87
  component: {
88
88
  heading1: {
@@ -238,7 +238,7 @@ declare const SelectOption: import("styled-components").StyledComponent<typeof i
238
238
  };
239
239
  };
240
240
  };
241
- }, {
241
+ } & object, {
242
242
  isLastOption: boolean;
243
243
  }, never>;
244
244
  export declare const Select: ({ options, defaultSelected, noOptionMessage, onSelected, hasError, testID, }: SelectProps) => JSX.Element;
@@ -1,10 +1,10 @@
1
- export declare const Skeleton: import("styled-components").StyledComponent<typeof import("react-native").View, {
1
+ export declare const Skeleton: import("styled-components").StyledComponent<typeof import("react-native").View, import("../../theme/theme").Theme & {
2
2
  core: {
3
3
  radius: Record<"small" | "medium" | "large" | "max", string>;
4
4
  borderWidth: Record<"small" | "medium" | "large", string>;
5
5
  breakpoint: Record<"small" | "medium" | "large", string | number>;
6
6
  mediaQuery: Record<"small" | "medium" | "large", string>;
7
- space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
7
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15, string>;
8
8
  transition: Record<"medium" | "slow" | "fast", string>;
9
9
  opacity: Record<"solid" | "transparent" | "translucent", string | number>;
10
10
  color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
@@ -18,16 +18,16 @@ export declare const Skeleton: import("styled-components").StyledComponent<typeo
18
18
  }> & {
19
19
  brand: Record<string, string>;
20
20
  };
21
- fontFamily: Record<"body" | "mono" | "heading" | "bodyBold", {
21
+ fontFamily: Record<"heading" | "body" | "mono" | "bodyBold", {
22
22
  native: string;
23
23
  web: string;
24
24
  }>;
25
25
  fontWeight: Record<"bold" | "book" | "black", string | number>;
26
- fontSize: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
26
+ fontSize: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
27
27
  small: string | number;
28
28
  large: string | number;
29
29
  }>;
30
- lineHeight: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
30
+ lineHeight: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
31
31
  small: string | number;
32
32
  large: string | number;
33
33
  }>;
@@ -35,10 +35,10 @@ export declare const Skeleton: import("styled-components").StyledComponent<typeo
35
35
  };
36
36
  semantic: {
37
37
  surface: Record<"base" | "cutout" | "elevated", string>;
38
- message: Record<"base" | "link" | "secondary" | "error" | "branded", string>;
38
+ message: Record<"base" | "link" | "error" | "secondary" | "branded", string>;
39
39
  border: Record<"graphic" | "differentiated" | "functional", string>;
40
40
  focus: Record<"surface" | "outline" | "hover", string>;
41
- inverted: Record<"surface" | "border", string> & {
41
+ inverted: Record<"border" | "surface", string> & {
42
42
  message: Record<"base" | "link" | "secondary" | "branded", string>;
43
43
  };
44
44
  success: {
@@ -69,7 +69,7 @@ export declare const Skeleton: import("styled-components").StyledComponent<typeo
69
69
  message: string;
70
70
  messageOnEmphasis: string;
71
71
  };
72
- data: Record<"branded" | "gas" | "electric", Record<2 | 1 | 3 | 4, string>>;
72
+ data: Record<"gas" | "branded" | "electric", Record<2 | 1 | 3 | 4, string>>;
73
73
  };
74
74
  component: {
75
75
  heading1: {
@@ -225,4 +225,4 @@ export declare const Skeleton: import("styled-components").StyledComponent<typeo
225
225
  };
226
226
  };
227
227
  };
228
- }, {}, never>;
228
+ } & object, {}, never>;
@@ -1,7 +1,7 @@
1
- import { Theme } from '@ovotech/element-core';
2
1
  import { ReactNode } from 'react';
3
2
  import { ViewProps } from 'react-native';
4
- declare type SpaceKey = keyof Theme['core']['space'];
3
+ import { Theme } from '../../theme';
4
+ declare type SpaceKey = keyof Theme['space'];
5
5
  declare type Props = ViewProps & {
6
6
  spaceBetween: SpaceKey | SpaceKey[];
7
7
  children: ReactNode;
@@ -5,13 +5,13 @@ declare const SubLabelText: import("react").ForwardRefExoticComponent<Pick<Omit<
5
5
  [x: number]: any;
6
6
  [x: symbol]: any;
7
7
  } & {
8
- theme?: {
8
+ theme?: (import("../../theme/theme").Theme & {
9
9
  core: {
10
10
  radius: Record<"small" | "medium" | "large" | "max", string>;
11
11
  borderWidth: Record<"small" | "medium" | "large", string>;
12
12
  breakpoint: Record<"small" | "medium" | "large", string | number>;
13
13
  mediaQuery: Record<"small" | "medium" | "large", string>;
14
- space: Record<0 | 2 | 1 | 3 | 4 | 10 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
14
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15, string>;
15
15
  transition: Record<"medium" | "slow" | "fast", string>;
16
16
  opacity: Record<"solid" | "transparent" | "translucent", string | number>;
17
17
  color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
@@ -25,16 +25,16 @@ declare const SubLabelText: import("react").ForwardRefExoticComponent<Pick<Omit<
25
25
  }> & {
26
26
  brand: Record<string, string>;
27
27
  };
28
- fontFamily: Record<"body" | "mono" | "heading" | "bodyBold", {
28
+ fontFamily: Record<"heading" | "body" | "mono" | "bodyBold", {
29
29
  native: string;
30
30
  web: string;
31
31
  }>;
32
32
  fontWeight: Record<"bold" | "book" | "black", string | number>;
33
- fontSize: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
33
+ fontSize: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
34
34
  small: string | number;
35
35
  large: string | number;
36
36
  }>;
37
- lineHeight: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
37
+ lineHeight: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
38
38
  small: string | number;
39
39
  large: string | number;
40
40
  }>;
@@ -42,10 +42,10 @@ declare const SubLabelText: import("react").ForwardRefExoticComponent<Pick<Omit<
42
42
  };
43
43
  semantic: {
44
44
  surface: Record<"base" | "cutout" | "elevated", string>;
45
- message: Record<"base" | "link" | "secondary" | "error" | "branded", string>;
45
+ message: Record<"base" | "link" | "error" | "secondary" | "branded", string>;
46
46
  border: Record<"graphic" | "differentiated" | "functional", string>;
47
47
  focus: Record<"surface" | "outline" | "hover", string>;
48
- inverted: Record<"surface" | "border", string> & {
48
+ inverted: Record<"border" | "surface", string> & {
49
49
  message: Record<"base" | "link" | "secondary" | "branded", string>;
50
50
  };
51
51
  success: {
@@ -76,7 +76,7 @@ declare const SubLabelText: import("react").ForwardRefExoticComponent<Pick<Omit<
76
76
  message: string;
77
77
  messageOnEmphasis: string;
78
78
  };
79
- data: Record<"branded" | "gas" | "electric", Record<2 | 1 | 3 | 4, string>>;
79
+ data: Record<"gas" | "branded" | "electric", Record<2 | 1 | 3 | 4, string>>;
80
80
  };
81
81
  component: {
82
82
  heading1: {
@@ -232,7 +232,7 @@ declare const SubLabelText: import("react").ForwardRefExoticComponent<Pick<Omit<
232
232
  };
233
233
  };
234
234
  };
235
- } | undefined;
235
+ } & object) | undefined;
236
236
  } & {
237
237
  as?: string | import("react").ComponentType<any> | undefined;
238
238
  forwardedAs?: string | import("react").ComponentType<any> | undefined;
@@ -0,0 +1,14 @@
1
+ import { ComponentProps, ReactNode } from 'react';
2
+ import { Dd, Dl } from '../List';
3
+ declare type SummaryListProps = ComponentProps<typeof Dl>;
4
+ /**
5
+ * @deprecated This component has been deprecated and will be removed in a future release.
6
+ * Please use the Description List (List/Dl) component instead.
7
+ * */
8
+ declare const SummaryList: ({ children, ...rest }: SummaryListProps) => JSX.Element;
9
+ declare type SummaryItemProps = ComponentProps<typeof Dd> & {
10
+ label: ReactNode;
11
+ index?: number;
12
+ };
13
+ declare const SummaryItem: ({ label, children, index, ...rest }: SummaryItemProps) => JSX.Element;
14
+ export { SummaryList, SummaryItem };
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __rest = (this && this.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.SummaryItem = exports.SummaryList = void 0;
26
+ var jsx_runtime_1 = require("react/jsx-runtime");
27
+ var react_1 = require("react");
28
+ var List_1 = require("../List");
29
+ /**
30
+ * @deprecated This component has been deprecated and will be removed in a future release.
31
+ * Please use the Description List (List/Dl) component instead.
32
+ * */
33
+ var SummaryList = function (_a) {
34
+ var children = _a.children, rest = __rest(_a, ["children"]);
35
+ console.warn('SummaryList component has been deprecated and will be removed in a future release. Please use the DescriptionList component instead.');
36
+ return ((0, jsx_runtime_1.jsx)(List_1.Dl, __assign({}, rest, { children: react_1.Children.map(children, function (child, index) {
37
+ return (0, react_1.cloneElement)(child, {
38
+ index: index,
39
+ });
40
+ }) })));
41
+ };
42
+ exports.SummaryList = SummaryList;
43
+ var SummaryItem = function (_a) {
44
+ var label = _a.label, children = _a.children, index = _a.index, rest = __rest(_a, ["label", "children", "index"]);
45
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(List_1.Dt, __assign({ style: index === 0 ? { marginTop: 0 } : undefined }, { children: label })), (0, jsx_runtime_1.jsx)(List_1.Dd, __assign({}, rest, { children: children }))] }));
46
+ };
47
+ exports.SummaryItem = SummaryItem;
@@ -0,0 +1 @@
1
+ export { SummaryList, SummaryItem } from './SummaryList';
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SummaryItem = exports.SummaryList = void 0;
4
+ var SummaryList_1 = require("./SummaryList");
5
+ Object.defineProperty(exports, "SummaryList", { enumerable: true, get: function () { return SummaryList_1.SummaryList; } });
6
+ Object.defineProperty(exports, "SummaryItem", { enumerable: true, get: function () { return SummaryList_1.SummaryItem; } });