@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
@@ -11,10 +11,10 @@ declare const LabelText: 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 LabelText: 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 LabelText: 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,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
30
  exports.LabelText = 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 StyledLabelText = 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 color: ", ";\n font-size: ", ";\n "], ["\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n "])), field.label.fontFamily, (0, theme_1.calculateLineHeight)(fontSize, field.lineHeight), field.label.color, fontSize);
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 color: ", ";\n font-size: ", ";\n "], ["\n font-family: ", ";\n line-height: ", ";\n color: ", ";\n font-size: ", ";\n "])), core.fontFamily.bodyBold.native, core.lineHeight.body.small, semantic.message.base, fontSize);
38
39
  });
39
40
  var LabelText = (0, utils_1.styledComponentWithBreakpoints)(StyledLabelText);
40
41
  exports.LabelText = LabelText;
@@ -1,6 +1,6 @@
1
- import React, { PropsWithChildren } from 'react';
1
+ import { PropsWithChildren } from 'react';
2
2
  import { Text, View, ViewProps } from 'react-native';
3
- declare const ListWrapper: React.ForwardRefExoticComponent<Pick<Omit<{
3
+ declare const ListWrapper: import("react").ForwardRefExoticComponent<Pick<Omit<{
4
4
  [x: string]: any;
5
5
  [x: number]: any;
6
6
  [x: symbol]: any;
@@ -11,10 +11,10 @@ declare const ListWrapper: 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 ListWrapper: 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,17 +207,41 @@ declare const ListWrapper: 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
  } & {
231
- as?: string | React.ComponentType<any> | undefined;
232
- forwardedAs?: string | React.ComponentType<any> | undefined;
233
- }, import("../../hooks").BreakpointNames>, string | number | symbol> & React.RefAttributes<View>>;
234
- declare const Ul: ({ children, showBullets, ...rest }: React.PropsWithChildren<ViewProps & {
237
+ as?: string | import("react").ComponentType<any> | undefined;
238
+ forwardedAs?: string | import("react").ComponentType<any> | undefined;
239
+ }, import("../../hooks").BreakpointNames>, string | number | symbol> & import("react").RefAttributes<View>>;
240
+ declare const Ul: ({ children, showBullets, ...rest }: PropsWithChildren<ViewProps & {
235
241
  showBullets?: boolean | undefined;
236
242
  }>) => JSX.Element;
237
243
  declare const Ol: ({ children, ...rest }: PropsWithChildren<ViewProps>) => JSX.Element;
238
- declare const Li: React.ForwardRefExoticComponent<Pick<Omit<{
244
+ declare const Li: import("react").ForwardRefExoticComponent<Pick<Omit<{
239
245
  [x: string]: any;
240
246
  [x: number]: any;
241
247
  [x: symbol]: any;
@@ -246,10 +252,10 @@ declare const Li: React.ForwardRefExoticComponent<Pick<Omit<{
246
252
  borderWidth: Record<"small" | "medium" | "large", string>;
247
253
  breakpoint: Record<"small" | "medium" | "large", string | number>;
248
254
  mediaQuery: Record<"small" | "medium" | "large", string>;
249
- space: Record<0 | 2 | 1 | 10 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
255
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15, string>;
250
256
  transition: Record<"medium" | "slow" | "fast", string>;
251
- opacity: Record<"transparent" | "translucent" | "solid", string | number>;
252
- color: Record<"sand" | "red" | "orange" | "yellow" | "lime" | "green" | "teal" | "blue" | "purple", {
257
+ opacity: Record<"solid" | "transparent" | "translucent", string | number>;
258
+ color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
253
259
  lightest: string;
254
260
  lighter: string;
255
261
  light: string;
@@ -265,71 +271,53 @@ declare const Li: React.ForwardRefExoticComponent<Pick<Omit<{
265
271
  web: string;
266
272
  }>;
267
273
  fontWeight: Record<"bold" | "book" | "black", string | number>;
268
- fontSize: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
274
+ fontSize: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
269
275
  small: string | number;
270
276
  large: string | number;
271
277
  }>;
272
- lineHeight: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
278
+ lineHeight: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
273
279
  small: string | number;
274
280
  large: string | number;
275
281
  }>;
282
+ letterSpacing: Record<"base" | "compressed" | "extraCompressed", number>;
276
283
  };
277
284
  semantic: {
278
285
  surface: Record<"base" | "cutout" | "elevated", string>;
279
286
  message: Record<"base" | "link" | "error" | "secondary" | "branded", string>;
280
287
  border: Record<"graphic" | "differentiated" | "functional", string>;
281
- focus: Record<"outline" | "surface", string>;
282
- inverted: Record<"surface" | "border", string> & {
288
+ focus: Record<"surface" | "outline" | "hover", string>;
289
+ inverted: Record<"border" | "surface", string> & {
283
290
  message: Record<"base" | "link" | "secondary" | "branded", string>;
284
291
  };
285
292
  success: {
286
293
  border: string;
287
294
  surface: string;
288
- message: {
289
- base: string;
290
- secondary: string;
291
- };
295
+ surfaceEmphasis: string;
296
+ message: string;
297
+ messageOnEmphasis: string;
292
298
  };
293
299
  warning: {
294
300
  border: string;
295
301
  surface: string;
296
- message: {
297
- base: string;
298
- secondary: string;
299
- };
302
+ surfaceEmphasis: string;
303
+ message: string;
304
+ messageOnEmphasis: string;
300
305
  };
301
306
  error: {
302
307
  border: string;
303
308
  surface: string;
304
- message: {
305
- base: string;
306
- secondary: string;
307
- };
309
+ surfaceEmphasis: string;
310
+ message: string;
311
+ messageOnEmphasis: string;
308
312
  };
309
313
  info: {
310
314
  border: string;
311
315
  surface: string;
312
- message: {
313
- base: string;
314
- secondary: string;
315
- };
316
- };
317
- electricity: {
318
- border: string;
319
- surface: string;
320
- message: {
321
- base: string;
322
- secondary: string;
323
- };
324
- };
325
- gas: {
326
- border: string;
327
- surface: string;
328
- message: {
329
- base: string;
330
- secondary: string;
331
- };
316
+ surfaceEmphasis: string;
317
+ message: string;
318
+ messageOnEmphasis: string;
332
319
  };
320
+ data: Record<"gas" | "branded" | "electric", Record<2 | 1 | 3 | 4, string>>;
333
321
  };
334
322
  component: {
335
323
  heading1: {
@@ -460,17 +448,41 @@ declare const Li: React.ForwardRefExoticComponent<Pick<Omit<{
460
448
  backgroundFocused: string;
461
449
  };
462
450
  };
451
+ badge: {
452
+ variants: {
453
+ red: {
454
+ foreground: string;
455
+ background: string;
456
+ };
457
+ orange: {
458
+ foreground: string;
459
+ background: string;
460
+ };
461
+ yellow: {
462
+ foreground: string;
463
+ background: string;
464
+ };
465
+ green: {
466
+ foreground: string;
467
+ background: string;
468
+ };
469
+ blue: {
470
+ foreground: string;
471
+ background: string;
472
+ };
473
+ };
474
+ };
463
475
  };
464
476
  }) | undefined;
465
477
  } & {
466
- as?: string | React.ComponentType<any> | undefined;
467
- forwardedAs?: string | React.ComponentType<any> | undefined;
468
- }, import("../../hooks").BreakpointNames>, string | number | symbol> & React.RefAttributes<Text>>;
478
+ as?: string | import("react").ComponentType<any> | undefined;
479
+ forwardedAs?: string | import("react").ComponentType<any> | undefined;
480
+ }, import("../../hooks").BreakpointNames>, string | number | symbol> & import("react").RefAttributes<Text>>;
469
481
  /**
470
482
  * @deprecated This component has been deprecated and will be removed in a future release.
471
483
  * Please use the DescriptionList component instead.
472
484
  * */
473
- declare const Dl: React.ForwardRefExoticComponent<Pick<Omit<{
485
+ declare const Dl: import("react").ForwardRefExoticComponent<Pick<Omit<{
474
486
  [x: string]: any;
475
487
  [x: number]: any;
476
488
  [x: symbol]: any;
@@ -481,10 +493,10 @@ declare const Dl: React.ForwardRefExoticComponent<Pick<Omit<{
481
493
  borderWidth: Record<"small" | "medium" | "large", string>;
482
494
  breakpoint: Record<"small" | "medium" | "large", string | number>;
483
495
  mediaQuery: Record<"small" | "medium" | "large", string>;
484
- space: Record<0 | 2 | 1 | 10 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | 12 | 13 | 14 | 15, string>;
496
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15, string>;
485
497
  transition: Record<"medium" | "slow" | "fast", string>;
486
- opacity: Record<"transparent" | "translucent" | "solid", string | number>;
487
- color: Record<"sand" | "red" | "orange" | "yellow" | "lime" | "green" | "teal" | "blue" | "purple", {
498
+ opacity: Record<"solid" | "transparent" | "translucent", string | number>;
499
+ color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
488
500
  lightest: string;
489
501
  lighter: string;
490
502
  light: string;
@@ -500,71 +512,53 @@ declare const Dl: React.ForwardRefExoticComponent<Pick<Omit<{
500
512
  web: string;
501
513
  }>;
502
514
  fontWeight: Record<"bold" | "book" | "black", string | number>;
503
- fontSize: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
515
+ fontSize: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
504
516
  small: string | number;
505
517
  large: string | number;
506
518
  }>;
507
- lineHeight: Record<"small" | "body" | "label" | "heading1" | "heading2" | "heading3" | "heading4" | "lead", {
519
+ lineHeight: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
508
520
  small: string | number;
509
521
  large: string | number;
510
522
  }>;
523
+ letterSpacing: Record<"base" | "compressed" | "extraCompressed", number>;
511
524
  };
512
525
  semantic: {
513
526
  surface: Record<"base" | "cutout" | "elevated", string>;
514
527
  message: Record<"base" | "link" | "error" | "secondary" | "branded", string>;
515
528
  border: Record<"graphic" | "differentiated" | "functional", string>;
516
- focus: Record<"outline" | "surface", string>;
517
- inverted: Record<"surface" | "border", string> & {
529
+ focus: Record<"surface" | "outline" | "hover", string>;
530
+ inverted: Record<"border" | "surface", string> & {
518
531
  message: Record<"base" | "link" | "secondary" | "branded", string>;
519
532
  };
520
533
  success: {
521
534
  border: string;
522
535
  surface: string;
523
- message: {
524
- base: string;
525
- secondary: string;
526
- };
536
+ surfaceEmphasis: string;
537
+ message: string;
538
+ messageOnEmphasis: string;
527
539
  };
528
540
  warning: {
529
541
  border: string;
530
542
  surface: string;
531
- message: {
532
- base: string;
533
- secondary: string;
534
- };
543
+ surfaceEmphasis: string;
544
+ message: string;
545
+ messageOnEmphasis: string;
535
546
  };
536
547
  error: {
537
548
  border: string;
538
549
  surface: string;
539
- message: {
540
- base: string;
541
- secondary: string;
542
- };
550
+ surfaceEmphasis: string;
551
+ message: string;
552
+ messageOnEmphasis: string;
543
553
  };
544
554
  info: {
545
555
  border: string;
546
556
  surface: string;
547
- message: {
548
- base: string;
549
- secondary: string;
550
- };
551
- };
552
- electricity: {
553
- border: string;
554
- surface: string;
555
- message: {
556
- base: string;
557
- secondary: string;
558
- };
559
- };
560
- gas: {
561
- border: string;
562
- surface: string;
563
- message: {
564
- base: string;
565
- secondary: string;
566
- };
557
+ surfaceEmphasis: string;
558
+ message: string;
559
+ messageOnEmphasis: string;
567
560
  };
561
+ data: Record<"gas" | "branded" | "electric", Record<2 | 1 | 3 | 4, string>>;
568
562
  };
569
563
  component: {
570
564
  heading1: {
@@ -695,12 +689,36 @@ declare const Dl: React.ForwardRefExoticComponent<Pick<Omit<{
695
689
  backgroundFocused: string;
696
690
  };
697
691
  };
692
+ badge: {
693
+ variants: {
694
+ red: {
695
+ foreground: string;
696
+ background: string;
697
+ };
698
+ orange: {
699
+ foreground: string;
700
+ background: string;
701
+ };
702
+ yellow: {
703
+ foreground: string;
704
+ background: string;
705
+ };
706
+ green: {
707
+ foreground: string;
708
+ background: string;
709
+ };
710
+ blue: {
711
+ foreground: string;
712
+ background: string;
713
+ };
714
+ };
715
+ };
698
716
  };
699
717
  }) | undefined;
700
718
  } & {
701
- as?: string | React.ComponentType<any> | undefined;
702
- forwardedAs?: string | React.ComponentType<any> | undefined;
703
- }, import("../../hooks").BreakpointNames>, string | number | symbol> & React.RefAttributes<View>>;
719
+ as?: string | import("react").ComponentType<any> | undefined;
720
+ forwardedAs?: string | import("react").ComponentType<any> | undefined;
721
+ }, import("../../hooks").BreakpointNames>, string | number | symbol> & import("react").RefAttributes<View>>;
704
722
  /**
705
723
  * @deprecated This component has been deprecated and will be removed in a future release.
706
724
  * Please use the DescriptionList component instead.