@ovotech/element-native 2.2.0 → 3.0.0-canary-edaf96f-93

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 (302) hide show
  1. package/dist/components/Accordion/Accordion.d.ts +2 -2
  2. package/dist/components/Accordion/Accordion.js +22 -25
  3. package/dist/components/Accordion/Group.js +10 -32
  4. package/dist/components/Accordion/Icon.js +19 -14
  5. package/dist/components/Accordion/hooks.d.ts +1 -1
  6. package/dist/components/Accordion/hooks.js +3 -26
  7. package/dist/components/Accordion/styles.d.ts +688 -46
  8. package/dist/components/Accordion/styles.js +56 -49
  9. package/dist/components/Badge/Badge.d.ts +54 -46
  10. package/dist/components/Badge/Badge.js +35 -20
  11. package/dist/components/CTAButton/CTAButton.d.ts +7 -12
  12. package/dist/components/CTAButton/CTAButton.js +23 -27
  13. package/dist/components/CTALink/CTALink.d.ts +4 -4
  14. package/dist/components/CTALink/CTALink.js +5 -27
  15. package/dist/components/Card/Card.d.ts +47 -45
  16. package/dist/components/Card/Card.js +5 -25
  17. package/dist/components/Checkbox/Checkbox.d.ts +3 -3
  18. package/dist/components/Checkbox/Checkbox.js +18 -57
  19. package/dist/components/Checkbox/CheckboxField.js +7 -37
  20. package/dist/components/DataTable/DataTable.d.ts +3 -12
  21. package/dist/components/DataTable/DataTable.js +11 -98
  22. package/dist/components/DataTable/TableRow.d.ts +2 -0
  23. package/dist/components/DataTable/TableRow.js +31 -0
  24. package/dist/components/DataTable/index.d.ts +2 -0
  25. package/dist/components/DataTable/index.js +16 -0
  26. package/dist/components/DataTable/styles.d.ts +2517 -0
  27. package/dist/components/DataTable/styles.js +77 -0
  28. package/dist/components/DataTable/types.d.ts +15 -0
  29. package/dist/components/DataTable/types.js +2 -0
  30. package/dist/components/DateField/DateField.d.ts +2 -2
  31. package/dist/components/DateField/DateField.js +9 -28
  32. package/dist/components/DescriptionList/DescriptionList.js +8 -32
  33. package/dist/components/DescriptionList/styled.d.ts +50 -44
  34. package/dist/components/DescriptionList/styled.js +9 -34
  35. package/dist/components/Disclosure/Disclosure.d.ts +3 -3
  36. package/dist/components/Disclosure/Disclosure.js +12 -18
  37. package/dist/components/Divider/Divider.js +4 -7
  38. package/dist/components/ErrorSummaryNotification/ErrorSummaryNotification.d.ts +1 -1
  39. package/dist/components/ErrorSummaryNotification/ErrorSummaryNotification.js +6 -28
  40. package/dist/components/ErrorText/ErrorText.d.ts +45 -39
  41. package/dist/components/ErrorText/ErrorText.js +7 -4
  42. package/dist/components/Field/Field.d.ts +2 -2
  43. package/dist/components/Field/Field.js +18 -49
  44. package/dist/components/FormGroup/FormGroup.js +2 -3
  45. package/dist/components/Grid/Col.d.ts +45 -39
  46. package/dist/components/Grid/Col.js +4 -3
  47. package/dist/components/Grid/Row.d.ts +47 -41
  48. package/dist/components/Grid/Row.js +7 -10
  49. package/dist/components/Heading/Heading.js +21 -32
  50. package/dist/components/HintText/HintText.d.ts +45 -39
  51. package/dist/components/HintText/HintText.js +7 -4
  52. package/dist/components/Icon/Icon.d.ts +3 -4
  53. package/dist/components/Icon/Icon.js +5 -27
  54. package/dist/components/Input/CurrencyInput.d.ts +6 -6
  55. package/dist/components/Input/CurrencyInput.js +3 -25
  56. package/dist/components/Input/EmailInput.d.ts +6 -6
  57. package/dist/components/Input/EmailInput.js +3 -25
  58. package/dist/components/Input/Input.d.ts +8 -8
  59. package/dist/components/Input/Input.js +26 -32
  60. package/dist/components/Input/NumberInput.d.ts +6 -6
  61. package/dist/components/Input/NumberInput.js +3 -25
  62. package/dist/components/Input/PasswordInput.d.ts +6 -6
  63. package/dist/components/Input/PasswordInput.js +3 -25
  64. package/dist/components/Input/PasswordInput.styled.d.ts +45 -39
  65. package/dist/components/Input/PasswordInput.styled.js +2 -5
  66. package/dist/components/Input/PasswordVisibilityToggle.js +14 -29
  67. package/dist/components/Input/PhoneInput.d.ts +10 -0
  68. package/dist/components/Input/PhoneInput.js +19 -0
  69. package/dist/components/Input/TextInput.d.ts +6 -6
  70. package/dist/components/Input/TextInput.js +3 -25
  71. package/dist/components/Input/TextareaInput.d.ts +6 -6
  72. package/dist/components/Input/TextareaInput.js +13 -10
  73. package/dist/components/Input/index.d.ts +1 -1
  74. package/dist/components/Input/index.js +3 -3
  75. package/dist/components/LabelText/LabelText.d.ts +45 -39
  76. package/dist/components/LabelText/LabelText.js +5 -4
  77. package/dist/components/List/List.d.ts +149 -131
  78. package/dist/components/List/List.js +30 -44
  79. package/dist/components/Margin/Margin.d.ts +45 -39
  80. package/dist/components/Margin/Margin.js +3 -3
  81. package/dist/components/NavHeader/NavHeader.d.ts +1 -1
  82. package/dist/components/NavHeader/NavHeader.js +34 -35
  83. package/dist/components/Notification/Notification.d.ts +104 -100
  84. package/dist/components/Notification/Notification.js +32 -49
  85. package/dist/components/Radio/Radio.d.ts +3 -3
  86. package/dist/components/Radio/Radio.js +16 -61
  87. package/dist/components/Radio/RadioField.js +11 -41
  88. package/dist/components/SelectField/Select.d.ts +244 -0
  89. package/dist/components/SelectField/Select.js +102 -0
  90. package/dist/components/SelectField/SelectField.d.ts +7 -0
  91. package/dist/components/SelectField/SelectField.js +33 -0
  92. package/dist/components/SelectField/index.d.ts +1 -0
  93. package/dist/components/SelectField/index.js +5 -0
  94. package/dist/components/SkeletonLoading/Skeleton.d.ts +45 -39
  95. package/dist/components/SkeletonLoading/SkeletonAnimation.js +22 -33
  96. package/dist/components/SkeletonLoading/SkeletonCTA.js +4 -5
  97. package/dist/components/SkeletonLoading/SkeletonCircle.js +4 -6
  98. package/dist/components/SkeletonLoading/SkeletonHeading.js +4 -5
  99. package/dist/components/SkeletonLoading/SkeletonText.js +5 -5
  100. package/dist/components/Stack/Stack.js +6 -28
  101. package/dist/components/Stretch/Stretch.js +2 -2
  102. package/dist/components/SubLabelText/SubLabelText.d.ts +45 -39
  103. package/dist/components/SubLabelText/SubLabelText.js +5 -4
  104. package/dist/components/SummaryList/SummaryList.js +8 -32
  105. package/dist/components/Tabs/Tab.d.ts +4 -4
  106. package/dist/components/Tabs/Tab.js +23 -20
  107. package/dist/components/Tabs/TabList.d.ts +11 -222
  108. package/dist/components/Tabs/TabList.js +22 -18
  109. package/dist/components/Tabs/TabPanel.js +33 -10
  110. package/dist/components/Tabs/Tabs.d.ts +8 -227
  111. package/dist/components/Tabs/Tabs.js +26 -23
  112. package/dist/components/Text/Text.d.ts +234 -204
  113. package/dist/components/Text/Text.js +17 -20
  114. package/dist/components/TextField/CurrencyField.d.ts +6 -6
  115. package/dist/components/TextField/CurrencyField.js +3 -26
  116. package/dist/components/TextField/EmailField.d.ts +6 -6
  117. package/dist/components/TextField/EmailField.js +3 -26
  118. package/dist/components/TextField/NumberField.d.ts +6 -6
  119. package/dist/components/TextField/NumberField.js +3 -26
  120. package/dist/components/TextField/PasswordField.d.ts +6 -6
  121. package/dist/components/TextField/PasswordField.js +3 -26
  122. package/dist/components/TextField/PhoneField.d.ts +10 -0
  123. package/dist/components/TextField/PhoneField.js +33 -0
  124. package/dist/components/TextField/TelField.d.ts +10 -6
  125. package/dist/components/TextField/TelField.js +9 -27
  126. package/dist/components/TextField/TextField.d.ts +6 -6
  127. package/dist/components/TextField/TextField.js +3 -26
  128. package/dist/components/TextField/TextareaField.d.ts +6 -6
  129. package/dist/components/TextField/TextareaField.js +3 -26
  130. package/dist/components/TextField/index.d.ts +1 -0
  131. package/dist/components/TextField/index.js +3 -1
  132. package/dist/components/TextLink/TextLink.d.ts +4 -4
  133. package/dist/components/TextLink/TextLink.js +5 -8
  134. package/dist/components/index.d.ts +1 -0
  135. package/dist/components/index.js +1 -0
  136. package/dist/esm/components/Accordion/Accordion.js +25 -28
  137. package/dist/esm/components/Accordion/Group.js +10 -9
  138. package/dist/esm/components/Accordion/Icon.js +20 -12
  139. package/dist/esm/components/Accordion/hooks.js +3 -3
  140. package/dist/esm/components/Accordion/styles.js +29 -48
  141. package/dist/esm/components/Badge/Badge.js +35 -17
  142. package/dist/esm/components/CTAButton/CTAButton.js +24 -28
  143. package/dist/esm/components/CTALink/CTALink.js +5 -4
  144. package/dist/esm/components/Card/Card.js +5 -25
  145. package/dist/esm/components/Checkbox/Checkbox.js +15 -34
  146. package/dist/esm/components/Checkbox/CheckboxField.js +7 -14
  147. package/dist/esm/components/DataTable/DataTable.js +10 -74
  148. package/dist/esm/components/DataTable/TableRow.js +27 -0
  149. package/dist/esm/components/DataTable/index.js +2 -0
  150. package/dist/esm/components/DataTable/styles.js +51 -0
  151. package/dist/esm/components/DataTable/types.js +1 -0
  152. package/dist/esm/components/DateField/DateField.js +9 -28
  153. package/dist/esm/components/DescriptionList/DescriptionList.js +8 -9
  154. package/dist/esm/components/DescriptionList/styled.js +9 -31
  155. package/dist/esm/components/Disclosure/Disclosure.js +13 -19
  156. package/dist/esm/components/Divider/Divider.js +4 -4
  157. package/dist/esm/components/ErrorSummaryNotification/ErrorSummaryNotification.js +6 -5
  158. package/dist/esm/components/ErrorText/ErrorText.js +7 -4
  159. package/dist/esm/components/Field/Field.js +18 -26
  160. package/dist/esm/components/FormGroup/FormGroup.js +2 -3
  161. package/dist/esm/components/Grid/Col.js +4 -3
  162. package/dist/esm/components/Grid/Row.js +7 -7
  163. package/dist/esm/components/Heading/Heading.js +21 -29
  164. package/dist/esm/components/HintText/HintText.js +7 -4
  165. package/dist/esm/components/Icon/Icon.js +5 -4
  166. package/dist/esm/components/Input/CurrencyInput.js +3 -2
  167. package/dist/esm/components/Input/EmailInput.js +3 -2
  168. package/dist/esm/components/Input/Input.js +27 -33
  169. package/dist/esm/components/Input/NumberInput.js +3 -2
  170. package/dist/esm/components/Input/PasswordInput.js +3 -2
  171. package/dist/esm/components/Input/PasswordInput.styled.js +2 -5
  172. package/dist/esm/components/Input/PasswordVisibilityToggle.js +15 -7
  173. package/dist/esm/components/Input/{TelInput.js → PhoneInput.js} +4 -3
  174. package/dist/esm/components/Input/TextInput.js +3 -2
  175. package/dist/esm/components/Input/TextareaInput.js +13 -10
  176. package/dist/esm/components/Input/index.js +1 -1
  177. package/dist/esm/components/LabelText/LabelText.js +5 -4
  178. package/dist/esm/components/List/List.js +31 -45
  179. package/dist/esm/components/Margin/Margin.js +3 -3
  180. package/dist/esm/components/NavHeader/NavHeader.js +34 -32
  181. package/dist/esm/components/Notification/Notification.js +33 -50
  182. package/dist/esm/components/Radio/Radio.js +16 -38
  183. package/dist/esm/components/Radio/RadioField.js +11 -18
  184. package/dist/esm/components/SelectField/Select.js +75 -0
  185. package/dist/esm/components/SelectField/SelectField.js +29 -0
  186. package/dist/esm/components/SelectField/index.js +1 -0
  187. package/dist/esm/components/SkeletonLoading/SkeletonAnimation.js +23 -11
  188. package/dist/esm/components/SkeletonLoading/SkeletonCTA.js +4 -5
  189. package/dist/esm/components/SkeletonLoading/SkeletonCircle.js +4 -6
  190. package/dist/esm/components/SkeletonLoading/SkeletonHeading.js +4 -5
  191. package/dist/esm/components/SkeletonLoading/SkeletonText.js +5 -5
  192. package/dist/esm/components/Stack/Stack.js +6 -5
  193. package/dist/esm/components/Stretch/Stretch.js +2 -2
  194. package/dist/esm/components/SubLabelText/SubLabelText.js +5 -4
  195. package/dist/esm/components/SummaryList/SummaryList.js +8 -9
  196. package/dist/esm/components/Tabs/Tab.js +23 -17
  197. package/dist/esm/components/Tabs/TabList.js +21 -18
  198. package/dist/esm/components/Tabs/TabPanel.js +10 -7
  199. package/dist/esm/components/Tabs/Tabs.js +25 -23
  200. package/dist/esm/components/Text/Text.js +17 -20
  201. package/dist/esm/components/TextField/CurrencyField.js +3 -3
  202. package/dist/esm/components/TextField/EmailField.js +3 -3
  203. package/dist/esm/components/TextField/NumberField.js +3 -3
  204. package/dist/esm/components/TextField/PasswordField.js +3 -3
  205. package/dist/esm/components/TextField/PhoneField.js +30 -0
  206. package/dist/esm/components/TextField/TelField.js +9 -4
  207. package/dist/esm/components/TextField/TextField.js +3 -3
  208. package/dist/esm/components/TextField/TextareaField.js +3 -3
  209. package/dist/esm/components/TextField/index.js +1 -0
  210. package/dist/esm/components/TextLink/TextLink.js +5 -8
  211. package/dist/esm/components/index.js +1 -0
  212. package/dist/esm/hooks/use-breakpoint.js +4 -4
  213. package/dist/esm/providers/IconsProvider.js +3 -2
  214. package/dist/esm/providers/icons/ArrowDown.js +2 -3
  215. package/dist/esm/providers/icons/ArrowLeft.js +2 -3
  216. package/dist/esm/providers/icons/ArrowRight.js +2 -3
  217. package/dist/esm/providers/icons/ArrowUp.js +2 -3
  218. package/dist/esm/providers/icons/CaretDown.js +2 -3
  219. package/dist/esm/providers/icons/CaretLeft.js +2 -3
  220. package/dist/esm/providers/icons/CaretRight.js +2 -3
  221. package/dist/esm/providers/icons/CaretUp.js +2 -3
  222. package/dist/esm/providers/icons/Chart.js +2 -3
  223. package/dist/esm/providers/icons/Check.js +2 -3
  224. package/dist/esm/providers/icons/ChevronDown.js +2 -3
  225. package/dist/esm/providers/icons/ChevronLeft.js +2 -3
  226. package/dist/esm/providers/icons/ChevronLeftSmall.js +2 -3
  227. package/dist/esm/providers/icons/ChevronLeftSmallFirst.js +2 -3
  228. package/dist/esm/providers/icons/ChevronRight.js +2 -3
  229. package/dist/esm/providers/icons/ChevronRightSmall.js +2 -3
  230. package/dist/esm/providers/icons/ChevronRightSmallLast.js +2 -3
  231. package/dist/esm/providers/icons/ChevronUp.js +2 -3
  232. package/dist/esm/providers/icons/Cross.js +2 -3
  233. package/dist/esm/providers/icons/Dollar.js +2 -3
  234. package/dist/esm/providers/icons/Download.js +2 -3
  235. package/dist/esm/providers/icons/Electricity.js +2 -3
  236. package/dist/esm/providers/icons/Euro.js +2 -3
  237. package/dist/esm/providers/icons/Gas.js +2 -4
  238. package/dist/esm/providers/icons/Help.js +2 -3
  239. package/dist/esm/providers/icons/Hide.js +2 -3
  240. package/dist/esm/providers/icons/Home.js +2 -3
  241. package/dist/esm/providers/icons/Info.js +2 -3
  242. package/dist/esm/providers/icons/Link.js +2 -4
  243. package/dist/esm/providers/icons/Logo.js +3 -4
  244. package/dist/esm/providers/icons/Minus.js +2 -3
  245. package/dist/esm/providers/icons/NewWindow.js +2 -3
  246. package/dist/esm/providers/icons/PaymentCard.js +2 -3
  247. package/dist/esm/providers/icons/Plus.js +2 -3
  248. package/dist/esm/providers/icons/Pound.js +2 -3
  249. package/dist/esm/providers/icons/Search.js +2 -3
  250. package/dist/esm/providers/icons/Show.js +2 -3
  251. package/dist/esm/providers/icons/User.js +2 -3
  252. package/dist/esm/theme/create-theme.js +0 -153
  253. package/dist/esm/utils/utils.js +7 -3
  254. package/dist/hooks/use-breakpoint.js +4 -4
  255. package/dist/providers/IconsProvider.js +3 -25
  256. package/dist/providers/icons/ArrowDown.js +2 -6
  257. package/dist/providers/icons/ArrowLeft.js +2 -6
  258. package/dist/providers/icons/ArrowRight.js +2 -6
  259. package/dist/providers/icons/ArrowUp.js +2 -6
  260. package/dist/providers/icons/CaretDown.js +2 -6
  261. package/dist/providers/icons/CaretLeft.js +2 -6
  262. package/dist/providers/icons/CaretRight.js +2 -6
  263. package/dist/providers/icons/CaretUp.js +2 -6
  264. package/dist/providers/icons/Chart.js +2 -6
  265. package/dist/providers/icons/Check.js +2 -6
  266. package/dist/providers/icons/ChevronDown.js +2 -6
  267. package/dist/providers/icons/ChevronLeft.js +2 -6
  268. package/dist/providers/icons/ChevronLeftSmall.js +2 -6
  269. package/dist/providers/icons/ChevronLeftSmallFirst.js +2 -6
  270. package/dist/providers/icons/ChevronRight.js +2 -6
  271. package/dist/providers/icons/ChevronRightSmall.js +2 -6
  272. package/dist/providers/icons/ChevronRightSmallLast.js +2 -6
  273. package/dist/providers/icons/ChevronUp.js +2 -6
  274. package/dist/providers/icons/Cross.js +2 -6
  275. package/dist/providers/icons/Dollar.js +2 -6
  276. package/dist/providers/icons/Download.js +2 -6
  277. package/dist/providers/icons/Electricity.js +2 -6
  278. package/dist/providers/icons/Euro.js +2 -6
  279. package/dist/providers/icons/Gas.js +2 -7
  280. package/dist/providers/icons/Help.js +2 -6
  281. package/dist/providers/icons/Hide.js +2 -6
  282. package/dist/providers/icons/Home.js +2 -6
  283. package/dist/providers/icons/Info.js +2 -6
  284. package/dist/providers/icons/Link.js +2 -7
  285. package/dist/providers/icons/Logo.js +2 -6
  286. package/dist/providers/icons/Minus.js +2 -6
  287. package/dist/providers/icons/NewWindow.js +2 -6
  288. package/dist/providers/icons/PaymentCard.js +2 -6
  289. package/dist/providers/icons/Plus.js +2 -6
  290. package/dist/providers/icons/Pound.js +2 -6
  291. package/dist/providers/icons/Search.js +2 -6
  292. package/dist/providers/icons/Show.js +2 -6
  293. package/dist/providers/icons/User.js +2 -6
  294. package/dist/styled.native.d.ts +270 -234
  295. package/dist/theme/create-theme.js +0 -153
  296. package/dist/theme/index.d.ts +45 -39
  297. package/dist/theme/theme.d.ts +0 -90
  298. package/dist/utils/utils.d.ts +5 -4
  299. package/dist/utils/utils.js +8 -26
  300. package/package.json +6 -5
  301. package/dist/components/Input/TelInput.d.ts +0 -10
  302. package/dist/components/Input/TelInput.js +0 -41
@@ -10,29 +10,6 @@ var __assign = (this && this.__assign) || function () {
10
10
  };
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
- if (k2 === undefined) k2 = k;
15
- var desc = Object.getOwnPropertyDescriptor(m, k);
16
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
- desc = { enumerable: true, get: function() { return m[k]; } };
18
- }
19
- Object.defineProperty(o, k2, desc);
20
- }) : (function(o, m, k, k2) {
21
- if (k2 === undefined) k2 = k;
22
- o[k2] = m[k];
23
- }));
24
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
- Object.defineProperty(o, "default", { enumerable: true, value: v });
26
- }) : function(o, v) {
27
- o["default"] = v;
28
- });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
36
13
  var __rest = (this && this.__rest) || function (s, e) {
37
14
  var t = {};
38
15
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -46,7 +23,8 @@ var __rest = (this && this.__rest) || function (s, e) {
46
23
  };
47
24
  Object.defineProperty(exports, "__esModule", { value: true });
48
25
  exports.ErrorSummaryNotification = void 0;
49
- var react_1 = __importStar(require("react"));
26
+ var jsx_runtime_1 = require("react/jsx-runtime");
27
+ var react_1 = require("react");
50
28
  var react_native_1 = require("react-native");
51
29
  var List_1 = require("../List");
52
30
  var Notification_1 = require("../Notification");
@@ -65,9 +43,9 @@ var ErrorSummaryNotification = function (_a) {
65
43
  // This means that errors needs to have referential integrity otherwise the notification
66
44
  // will be focused all the time.
67
45
  }, [errors, scrollViewRef.current, ref.current]);
68
- return (react_1.default.createElement(Notification_1.ErrorNotification, __assign({ ref: ref }, rest), errors.length === 0 ? null : (react_1.default.createElement(List_1.Ul, null, errors.map(function (_a) {
69
- var message = _a.message, fieldId = _a.id;
70
- return (react_1.default.createElement(List_1.Li, { key: fieldId }, message));
71
- })))));
46
+ 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
+ var message = _a.message, fieldId = _a.id;
48
+ return ((0, jsx_runtime_1.jsx)(List_1.Li, { children: message }, fieldId));
49
+ }) })) })));
72
50
  };
73
51
  exports.ErrorSummaryNotification = ErrorSummaryNotification;
@@ -11,10 +11,10 @@ declare const ErrorText: import("react").ForwardRefExoticComponent<Pick<Omit<{
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 | 10 | 3 | 4 | 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
- opacity: Record<"transparent" | "translucent" | "solid", string | number>;
17
- color: Record<"sand" | "red" | "orange" | "yellow" | "lime" | "green" | "teal" | "blue" | "purple", {
16
+ opacity: Record<"solid" | "transparent" | "translucent", string | number>;
17
+ color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
18
18
  lightest: string;
19
19
  lighter: string;
20
20
  light: string;
@@ -30,71 +30,53 @@ declare const ErrorText: import("react").ForwardRefExoticComponent<Pick<Omit<{
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
  }>;
41
+ letterSpacing: Record<"base" | "compressed" | "extraCompressed", number>;
41
42
  };
42
43
  semantic: {
43
44
  surface: Record<"base" | "cutout" | "elevated", string>;
44
45
  message: Record<"base" | "link" | "error" | "secondary" | "branded", string>;
45
46
  border: Record<"graphic" | "differentiated" | "functional", string>;
46
- focus: Record<"outline" | "surface", string>;
47
- inverted: Record<"surface" | "border", string> & {
47
+ focus: Record<"surface" | "outline" | "hover", string>;
48
+ inverted: Record<"border" | "surface", string> & {
48
49
  message: Record<"base" | "link" | "secondary" | "branded", string>;
49
50
  };
50
51
  success: {
51
52
  border: string;
52
53
  surface: string;
53
- message: {
54
- base: string;
55
- secondary: string;
56
- };
54
+ surfaceEmphasis: string;
55
+ message: string;
56
+ messageOnEmphasis: string;
57
57
  };
58
58
  warning: {
59
59
  border: string;
60
60
  surface: string;
61
- message: {
62
- base: string;
63
- secondary: string;
64
- };
61
+ surfaceEmphasis: string;
62
+ message: string;
63
+ messageOnEmphasis: string;
65
64
  };
66
65
  error: {
67
66
  border: string;
68
67
  surface: string;
69
- message: {
70
- base: string;
71
- secondary: string;
72
- };
68
+ surfaceEmphasis: string;
69
+ message: string;
70
+ messageOnEmphasis: string;
73
71
  };
74
72
  info: {
75
73
  border: string;
76
74
  surface: string;
77
- message: {
78
- base: string;
79
- secondary: string;
80
- };
81
- };
82
- electricity: {
83
- border: string;
84
- surface: string;
85
- message: {
86
- base: string;
87
- secondary: string;
88
- };
89
- };
90
- gas: {
91
- border: string;
92
- surface: string;
93
- message: {
94
- base: string;
95
- secondary: string;
96
- };
75
+ surfaceEmphasis: string;
76
+ message: string;
77
+ messageOnEmphasis: string;
97
78
  };
79
+ data: Record<"gas" | "branded" | "electric", Record<2 | 1 | 3 | 4, string>>;
98
80
  };
99
81
  component: {
100
82
  heading1: {
@@ -225,6 +207,30 @@ declare const ErrorText: import("react").ForwardRefExoticComponent<Pick<Omit<{
225
207
  backgroundFocused: string;
226
208
  };
227
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
+ };
228
234
  };
229
235
  }) | undefined;
230
236
  } & {
@@ -29,12 +29,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
30
  exports.ErrorText = void 0;
31
31
  var styled_native_1 = __importStar(require("../../styled.native"));
32
- var theme_1 = require("../../theme");
33
32
  var utils_1 = require("../../utils");
34
33
  var StyledErrorText = styled_native_1.default.Text(function (_a) {
35
- var field = _a.theme.field, smallAndUp = _a.smallAndUp;
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-size: ", ";\n color: ", ";\n "], ["\n font-family: ", ";\n line-height: ", ";\n font-size: ", ";\n color: ", ";\n "])), field.error.fontFamily, (0, theme_1.calculateLineHeight)(fontSize, field.lineHeight), fontSize, field.error.color);
34
+ var _b = _a.theme, core = _b.core, semantic = _b.semantic, smallAndUp = _a.smallAndUp;
35
+ var fontSize = smallAndUp
36
+ ? core.fontSize.body.large
37
+ : core.fontSize.body.small;
38
+ return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n font-family: ", ";\n line-height: ", ";\n font-size: ", ";\n color: ", ";\n "], ["\n font-family: ", ";\n line-height: ", ";\n font-size: ", ";\n color: ", ";\n "])), core.fontFamily.body.native, smallAndUp
39
+ ? core.lineHeight.body.large
40
+ : core.lineHeight.body.small, fontSize, semantic.error.message);
38
41
  });
39
42
  var ErrorText = (0, utils_1.styledComponentWithBreakpoints)(StyledErrorText);
40
43
  exports.ErrorText = ErrorText;
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  import { TextInput } from 'react-native';
3
3
  export declare type FieldProps = {
4
4
  label: string;
@@ -10,4 +10,4 @@ export declare type FieldProps = {
10
10
  affixWidth?: number;
11
11
  children: ReactNode;
12
12
  };
13
- export declare const Field: React.ForwardRefExoticComponent<FieldProps & React.RefAttributes<TextInput>>;
13
+ export declare const Field: import("react").ForwardRefExoticComponent<FieldProps & import("react").RefAttributes<TextInput>>;
@@ -10,29 +10,6 @@ var __assign = (this && this.__assign) || function () {
10
10
  };
11
11
  return __assign.apply(this, arguments);
12
12
  };
13
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
- if (k2 === undefined) k2 = k;
15
- var desc = Object.getOwnPropertyDescriptor(m, k);
16
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
17
- desc = { enumerable: true, get: function() { return m[k]; } };
18
- }
19
- Object.defineProperty(o, k2, desc);
20
- }) : (function(o, m, k, k2) {
21
- if (k2 === undefined) k2 = k;
22
- o[k2] = m[k];
23
- }));
24
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
- Object.defineProperty(o, "default", { enumerable: true, value: v });
26
- }) : function(o, v) {
27
- o["default"] = v;
28
- });
29
- var __importStar = (this && this.__importStar) || function (mod) {
30
- if (mod && mod.__esModule) return mod;
31
- var result = {};
32
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
33
- __setModuleDefault(result, mod);
34
- return result;
35
- };
36
13
  var __rest = (this && this.__rest) || function (s, e) {
37
14
  var t = {};
38
15
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -46,7 +23,8 @@ var __rest = (this && this.__rest) || function (s, e) {
46
23
  };
47
24
  Object.defineProperty(exports, "__esModule", { value: true });
48
25
  exports.Field = void 0;
49
- var react_1 = __importStar(require("react"));
26
+ var jsx_runtime_1 = require("react/jsx-runtime");
27
+ var react_1 = require("react");
50
28
  var react_native_1 = require("react-native");
51
29
  var styled_native_1 = require("../../styled.native");
52
30
  var utils_1 = require("../../utils");
@@ -65,30 +43,21 @@ exports.Field = (0, react_1.forwardRef)(function (_a, ref) {
65
43
  var accessibilityLabel = [labelText, (0, utils_1.getText)(hint), (0, utils_1.getText)(error)]
66
44
  .filter(Boolean)
67
45
  .join(', ');
68
- return (react_1.default.createElement(FormGroup_1.FormGroup, { error: hasError || undefined, testID: "nb-field-form-group" },
69
- react_1.default.createElement(Stack_1.Stack, { spaceBetween: 1 },
70
- react_1.default.createElement(react_native_1.TouchableWithoutFeedback, { onPress: function () {
71
- if (inputRef.current) {
72
- // @ts-ignore. Toggle picker if this is a select menu.
73
- if (inputRef.current.togglePicker) {
74
- // @ts-ignore
75
- inputRef.current.togglePicker();
76
- }
77
- else {
78
- // @ts-ignore
79
- inputRef.current.focus();
46
+ return ((0, jsx_runtime_1.jsx)(FormGroup_1.FormGroup, __assign({ error: hasError || undefined, testID: "nb-field-form-group" }, { children: (0, jsx_runtime_1.jsxs)(Stack_1.Stack, __assign({ spaceBetween: 1 }, { children: [(0, jsx_runtime_1.jsx)(react_native_1.TouchableWithoutFeedback, __assign({ onPress: function () {
47
+ if (inputRef.current) {
48
+ // @ts-ignore. Toggle picker if this is a select menu.
49
+ if (inputRef.current.togglePicker) {
50
+ // @ts-ignore
51
+ inputRef.current.togglePicker();
52
+ }
53
+ else {
54
+ // @ts-ignore
55
+ inputRef.current.focus();
56
+ }
80
57
  }
81
- }
82
- } },
83
- react_1.default.createElement(react_native_1.View, null,
84
- react_1.default.createElement(LabelText_1.LabelText, null,
85
- label,
86
- optional ? ' (optional)' : null),
87
- hint ? react_1.default.createElement(HintText_1.HintText, null, hint) : null)),
88
- react_1.default.createElement(Stretch_1.Stretch, { defaultWidth: "".concat(Math.ceil(characters * 0.8 * parseInt(field.fontSize[0])) + affixWidth, "px"), fullWidth: fullWidth }, react_1.Children.map(children, function (child) {
89
- return (0, react_1.isValidElement)(child)
90
- ? (0, react_1.cloneElement)(child, __assign({ invalid: hasError || undefined, ref: (0, utils_1.mergeRefs)(inputRef, ref), accessibilityLabel: accessibilityLabel }, rest))
91
- : child;
92
- })),
93
- error ? react_1.default.createElement(ErrorText_1.ErrorText, null, error) : null)));
58
+ } }, { children: (0, jsx_runtime_1.jsxs)(react_native_1.View, { children: [(0, jsx_runtime_1.jsxs)(LabelText_1.LabelText, { children: [label, optional ? ' (optional)' : null] }), hint ? (0, jsx_runtime_1.jsx)(HintText_1.HintText, { children: hint }) : null, error ? (0, jsx_runtime_1.jsx)(ErrorText_1.ErrorText, { children: error }) : null] }) })), (0, jsx_runtime_1.jsx)(Stretch_1.Stretch, __assign({ defaultWidth: "".concat(Math.ceil(characters * 0.8 * parseInt(field.fontSize[0])) + affixWidth, "px"), fullWidth: fullWidth }, { children: react_1.Children.map(children, function (child) {
59
+ return (0, react_1.isValidElement)(child)
60
+ ? (0, react_1.cloneElement)(child, __assign({ invalid: hasError || undefined, ref: (0, utils_1.mergeRefs)(inputRef, ref), accessibilityLabel: accessibilityLabel }, rest))
61
+ : child;
62
+ }) }))] })) })));
94
63
  });
@@ -30,14 +30,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
30
30
  };
31
31
  Object.defineProperty(exports, "__esModule", { value: true });
32
32
  exports.FormGroup = void 0;
33
- var react_1 = __importDefault(require("react"));
33
+ var jsx_runtime_1 = require("react/jsx-runtime");
34
34
  var react_native_1 = require("react-native");
35
35
  var styled_native_1 = __importDefault(require("../../styled.native"));
36
36
  var FormGroupWrapper = styled_native_1.default.View(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n flex-direction: row;\n"], ["\n flex-direction: row;\n"])));
37
37
  var FormGroup = function (_a) {
38
38
  var children = _a.children, error = _a.error, rest = __rest(_a, ["children", "error"]);
39
- return (react_1.default.createElement(FormGroupWrapper, __assign({}, rest),
40
- react_1.default.createElement(react_native_1.View, { style: { flex: 1 } }, children)));
39
+ return ((0, jsx_runtime_1.jsx)(FormGroupWrapper, __assign({}, rest, { children: (0, jsx_runtime_1.jsx)(react_native_1.View, __assign({ style: { flex: 1 } }, { children: children })) })));
41
40
  };
42
41
  exports.FormGroup = FormGroup;
43
42
  var templateObject_1;
@@ -10,10 +10,10 @@ declare const Col: import("react").ForwardRefExoticComponent<Pick<Omit<{
10
10
  borderWidth: Record<"small" | "medium" | "large", string>;
11
11
  breakpoint: Record<"small" | "medium" | "large", string | number>;
12
12
  mediaQuery: Record<"small" | "medium" | "large", string>;
13
- space: Record<0 | 2 | 1 | 10 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
13
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15, string>;
14
14
  transition: Record<"medium" | "slow" | "fast", string>;
15
- opacity: Record<"transparent" | "translucent" | "solid", string | number>;
16
- color: Record<"sand" | "red" | "orange" | "yellow" | "lime" | "green" | "teal" | "blue" | "purple", {
15
+ opacity: Record<"solid" | "transparent" | "translucent", string | number>;
16
+ color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
17
17
  lightest: string;
18
18
  lighter: string;
19
19
  light: string;
@@ -29,71 +29,53 @@ declare const Col: import("react").ForwardRefExoticComponent<Pick<Omit<{
29
29
  web: string;
30
30
  }>;
31
31
  fontWeight: Record<"bold" | "book" | "black", string | number>;
32
- fontSize: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
32
+ fontSize: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
33
33
  small: string | number;
34
34
  large: string | number;
35
35
  }>;
36
- lineHeight: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
36
+ lineHeight: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
37
37
  small: string | number;
38
38
  large: string | number;
39
39
  }>;
40
+ letterSpacing: Record<"base" | "compressed" | "extraCompressed", number>;
40
41
  };
41
42
  semantic: {
42
43
  surface: Record<"base" | "cutout" | "elevated", string>;
43
44
  message: Record<"base" | "link" | "error" | "secondary" | "branded", string>;
44
45
  border: Record<"graphic" | "differentiated" | "functional", string>;
45
- focus: Record<"outline" | "surface", string>;
46
- inverted: Record<"surface" | "border", string> & {
46
+ focus: Record<"surface" | "outline" | "hover", string>;
47
+ inverted: Record<"border" | "surface", string> & {
47
48
  message: Record<"base" | "link" | "secondary" | "branded", string>;
48
49
  };
49
50
  success: {
50
51
  border: string;
51
52
  surface: string;
52
- message: {
53
- base: string;
54
- secondary: string;
55
- };
53
+ surfaceEmphasis: string;
54
+ message: string;
55
+ messageOnEmphasis: string;
56
56
  };
57
57
  warning: {
58
58
  border: string;
59
59
  surface: string;
60
- message: {
61
- base: string;
62
- secondary: string;
63
- };
60
+ surfaceEmphasis: string;
61
+ message: string;
62
+ messageOnEmphasis: string;
64
63
  };
65
64
  error: {
66
65
  border: string;
67
66
  surface: string;
68
- message: {
69
- base: string;
70
- secondary: string;
71
- };
67
+ surfaceEmphasis: string;
68
+ message: string;
69
+ messageOnEmphasis: string;
72
70
  };
73
71
  info: {
74
72
  border: string;
75
73
  surface: string;
76
- message: {
77
- base: string;
78
- secondary: string;
79
- };
80
- };
81
- electricity: {
82
- border: string;
83
- surface: string;
84
- message: {
85
- base: string;
86
- secondary: string;
87
- };
88
- };
89
- gas: {
90
- border: string;
91
- surface: string;
92
- message: {
93
- base: string;
94
- secondary: string;
95
- };
74
+ surfaceEmphasis: string;
75
+ message: string;
76
+ messageOnEmphasis: string;
96
77
  };
78
+ data: Record<"gas" | "branded" | "electric", Record<2 | 1 | 3 | 4, string>>;
97
79
  };
98
80
  component: {
99
81
  heading1: {
@@ -224,6 +206,30 @@ declare const Col: import("react").ForwardRefExoticComponent<Pick<Omit<{
224
206
  backgroundFocused: string;
225
207
  };
226
208
  };
209
+ badge: {
210
+ variants: {
211
+ red: {
212
+ foreground: string;
213
+ background: string;
214
+ };
215
+ orange: {
216
+ foreground: string;
217
+ background: string;
218
+ };
219
+ yellow: {
220
+ foreground: string;
221
+ background: string;
222
+ };
223
+ green: {
224
+ foreground: string;
225
+ background: string;
226
+ };
227
+ blue: {
228
+ foreground: string;
229
+ background: string;
230
+ };
231
+ };
232
+ };
227
233
  };
228
234
  }) | undefined;
229
235
  } & {
@@ -32,8 +32,9 @@ var styled_native_1 = __importStar(require("../../styled.native"));
32
32
  var utils_1 = require("../../utils");
33
33
  var utils_2 = require("../../utils/utils");
34
34
  var StyledCol = styled_native_1.default.View(function (_a) {
35
- var grid = _a.theme.grid, _b = _a.span, span = _b === void 0 ? 12 : _b, small = _a.small, medium = _a.medium, large = _a.large, smallAndUp = _a.smallAndUp, mediumAndUp = _a.mediumAndUp, largeAndUp = _a.largeAndUp;
36
- var halfGutter = grid.gutter.map(function (g) { return (0, utils_2.pxToNumber)(g) / 2 + 'px'; });
35
+ var core = _a.theme.core, _b = _a.span, span = _b === void 0 ? 12 : _b, small = _a.small, medium = _a.medium, large = _a.large, smallAndUp = _a.smallAndUp, mediumAndUp = _a.mediumAndUp, largeAndUp = _a.largeAndUp;
36
+ var gutter = [core.space[4], core.space[8]];
37
+ var halfGutter = gutter.map(function (g) { return (0, utils_2.pxToNumber)(g) / 2 + 'px'; });
37
38
  var smallScreen = !smallAndUp;
38
39
  var percentage = (span / 12) * 100;
39
40
  var smallPercentage = small ? (small / 12) * 100 : percentage;
@@ -51,7 +52,7 @@ var StyledCol = styled_native_1.default.View(function (_a) {
51
52
  ? mediumPercentage
52
53
  : smallAndUp
53
54
  ? smallPercentage
54
- : percentage, smallScreen ? halfGutter[0] : halfGutter[1], smallScreen ? halfGutter[0] : halfGutter[1], smallScreen ? grid.gutter[0] : grid.gutter[1]);
55
+ : percentage, smallScreen ? halfGutter[0] : halfGutter[1], smallScreen ? halfGutter[0] : halfGutter[1], smallScreen ? gutter[0] : gutter[1]);
55
56
  });
56
57
  var Col = (0, utils_1.styledComponentWithBreakpoints)(StyledCol);
57
58
  exports.Col = Col;
@@ -1,4 +1,4 @@
1
- import React, { ComponentProps } from 'react';
1
+ import { ComponentProps } from 'react';
2
2
  import { Breakpoints } from '../../hooks';
3
3
  declare const StyledRow: import("styled-components").StyledComponent<typeof import("react-native").View, import("../../theme/theme").Theme & {
4
4
  core: {
@@ -6,10 +6,10 @@ declare const StyledRow: import("styled-components").StyledComponent<typeof impo
6
6
  borderWidth: Record<"small" | "medium" | "large", string>;
7
7
  breakpoint: Record<"small" | "medium" | "large", string | number>;
8
8
  mediaQuery: Record<"small" | "medium" | "large", string>;
9
- space: Record<0 | 2 | 1 | 10 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
9
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15, string>;
10
10
  transition: Record<"medium" | "slow" | "fast", string>;
11
- opacity: Record<"transparent" | "translucent" | "solid", string | number>;
12
- color: Record<"sand" | "red" | "orange" | "yellow" | "lime" | "green" | "teal" | "blue" | "purple", {
11
+ opacity: Record<"solid" | "transparent" | "translucent", string | number>;
12
+ color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
13
13
  lightest: string;
14
14
  lighter: string;
15
15
  light: string;
@@ -25,71 +25,53 @@ declare const StyledRow: import("styled-components").StyledComponent<typeof impo
25
25
  web: string;
26
26
  }>;
27
27
  fontWeight: Record<"bold" | "book" | "black", string | number>;
28
- fontSize: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
28
+ fontSize: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
29
29
  small: string | number;
30
30
  large: string | number;
31
31
  }>;
32
- lineHeight: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
32
+ lineHeight: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
33
33
  small: string | number;
34
34
  large: string | number;
35
35
  }>;
36
+ letterSpacing: Record<"base" | "compressed" | "extraCompressed", number>;
36
37
  };
37
38
  semantic: {
38
39
  surface: Record<"base" | "cutout" | "elevated", string>;
39
40
  message: Record<"base" | "link" | "error" | "secondary" | "branded", string>;
40
41
  border: Record<"graphic" | "differentiated" | "functional", string>;
41
- focus: Record<"outline" | "surface", string>;
42
- inverted: Record<"surface" | "border", string> & {
42
+ focus: Record<"surface" | "outline" | "hover", string>;
43
+ inverted: Record<"border" | "surface", string> & {
43
44
  message: Record<"base" | "link" | "secondary" | "branded", string>;
44
45
  };
45
46
  success: {
46
47
  border: string;
47
48
  surface: string;
48
- message: {
49
- base: string;
50
- secondary: string;
51
- };
49
+ surfaceEmphasis: string;
50
+ message: string;
51
+ messageOnEmphasis: string;
52
52
  };
53
53
  warning: {
54
54
  border: string;
55
55
  surface: string;
56
- message: {
57
- base: string;
58
- secondary: string;
59
- };
56
+ surfaceEmphasis: string;
57
+ message: string;
58
+ messageOnEmphasis: string;
60
59
  };
61
60
  error: {
62
61
  border: string;
63
62
  surface: string;
64
- message: {
65
- base: string;
66
- secondary: string;
67
- };
63
+ surfaceEmphasis: string;
64
+ message: string;
65
+ messageOnEmphasis: string;
68
66
  };
69
67
  info: {
70
68
  border: string;
71
69
  surface: string;
72
- message: {
73
- base: string;
74
- secondary: string;
75
- };
76
- };
77
- electricity: {
78
- border: string;
79
- surface: string;
80
- message: {
81
- base: string;
82
- secondary: string;
83
- };
84
- };
85
- gas: {
86
- border: string;
87
- surface: string;
88
- message: {
89
- base: string;
90
- secondary: string;
91
- };
70
+ surfaceEmphasis: string;
71
+ message: string;
72
+ messageOnEmphasis: string;
92
73
  };
74
+ data: Record<"gas" | "branded" | "electric", Record<2 | 1 | 3 | 4, string>>;
93
75
  };
94
76
  component: {
95
77
  heading1: {
@@ -220,11 +202,35 @@ declare const StyledRow: import("styled-components").StyledComponent<typeof impo
220
202
  backgroundFocused: string;
221
203
  };
222
204
  };
205
+ badge: {
206
+ variants: {
207
+ red: {
208
+ foreground: string;
209
+ background: string;
210
+ };
211
+ orange: {
212
+ foreground: string;
213
+ background: string;
214
+ };
215
+ yellow: {
216
+ foreground: string;
217
+ background: string;
218
+ };
219
+ green: {
220
+ foreground: string;
221
+ background: string;
222
+ };
223
+ blue: {
224
+ foreground: string;
225
+ background: string;
226
+ };
227
+ };
228
+ };
223
229
  };
224
230
  }, {
225
231
  isNested?: boolean | undefined;
226
232
  } & {
227
- children?: React.ReactNode;
233
+ children?: import("react").ReactNode;
228
234
  } & Breakpoints, never>;
229
235
  declare const Row: ({ children, ...rest }: ComponentProps<typeof StyledRow>) => JSX.Element;
230
236
  export { Row };