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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/dist/components/Accordion/Accordion.js +20 -19
  2. package/dist/components/Accordion/Icon.js +7 -10
  3. package/dist/components/Accordion/styles.d.ts +688 -46
  4. package/dist/components/Accordion/styles.js +56 -49
  5. package/dist/components/Badge/Badge.d.ts +237 -8
  6. package/dist/components/Badge/Badge.js +35 -16
  7. package/dist/components/CTAButton/CTAButton.d.ts +7 -12
  8. package/dist/components/CTAButton/CTAButton.js +18 -19
  9. package/dist/components/CTALink/CTALink.d.ts +3 -3
  10. package/dist/components/Card/Card.d.ts +228 -5
  11. package/dist/components/Card/Card.js +5 -25
  12. package/dist/components/Checkbox/Checkbox.js +14 -19
  13. package/dist/components/DataTable/DataTable.d.ts +3 -12
  14. package/dist/components/DataTable/DataTable.js +8 -71
  15. package/dist/components/DataTable/TableRow.d.ts +2 -0
  16. package/dist/components/DataTable/TableRow.js +33 -0
  17. package/dist/components/DataTable/index.d.ts +2 -0
  18. package/dist/components/DataTable/index.js +16 -0
  19. package/dist/components/DataTable/styles.d.ts +2517 -0
  20. package/dist/components/DataTable/styles.js +77 -0
  21. package/dist/components/DataTable/types.d.ts +15 -0
  22. package/dist/components/DataTable/types.js +2 -0
  23. package/dist/components/DateField/DateField.js +9 -9
  24. package/dist/components/DescriptionList/DescriptionList.d.ts +10 -0
  25. package/dist/components/DescriptionList/DescriptionList.js +66 -0
  26. package/dist/components/DescriptionList/index.d.ts +1 -0
  27. package/dist/components/DescriptionList/index.js +6 -0
  28. package/dist/components/DescriptionList/styled.d.ts +241 -0
  29. package/dist/components/DescriptionList/styled.js +88 -0
  30. package/dist/components/Disclosure/Disclosure.js +7 -10
  31. package/dist/components/ErrorSummaryNotification/ErrorSummaryNotification.d.ts +1 -1
  32. package/dist/components/ErrorText/ErrorText.d.ts +228 -1
  33. package/dist/components/ErrorText/ErrorText.js +1 -1
  34. package/dist/components/Field/Field.js +3 -3
  35. package/dist/components/Grid/Col.d.ts +228 -1
  36. package/dist/components/Grid/Row.d.ts +228 -1
  37. package/dist/components/Heading/Heading.js +8 -24
  38. package/dist/components/HintText/HintText.d.ts +228 -1
  39. package/dist/components/HintText/HintText.js +1 -1
  40. package/dist/components/Icon/Icon.d.ts +2 -3
  41. package/dist/components/Icon/Icon.js +2 -2
  42. package/dist/components/Input/Input.d.ts +1 -1
  43. package/dist/components/Input/Input.js +13 -16
  44. package/dist/components/Input/PasswordInput.styled.d.ts +228 -1
  45. package/dist/components/Input/PasswordInput.styled.js +2 -5
  46. package/dist/components/Input/PasswordVisibilityToggle.js +2 -5
  47. package/dist/components/Input/{TelInput.d.ts → PhoneInput.d.ts} +2 -2
  48. package/dist/components/Input/{TelInput.js → PhoneInput.js} +3 -3
  49. package/dist/components/Input/TextareaInput.js +11 -9
  50. package/dist/components/Input/index.d.ts +1 -1
  51. package/dist/components/Input/index.js +3 -3
  52. package/dist/components/LabelText/LabelText.d.ts +228 -1
  53. package/dist/components/LabelText/LabelText.js +1 -1
  54. package/dist/components/List/List.d.ts +706 -3
  55. package/dist/components/List/List.js +18 -5
  56. package/dist/components/Margin/Margin.d.ts +228 -1
  57. package/dist/components/NavHeader/NavHeader.js +4 -4
  58. package/dist/components/Notification/Notification.d.ts +466 -20
  59. package/dist/components/Notification/Notification.js +32 -44
  60. package/dist/components/Radio/Radio.js +13 -29
  61. package/dist/components/SelectField/Select.d.ts +244 -0
  62. package/dist/components/SelectField/Select.js +101 -0
  63. package/dist/components/SelectField/SelectField.d.ts +7 -0
  64. package/dist/components/SelectField/SelectField.js +38 -0
  65. package/dist/components/SelectField/index.d.ts +1 -0
  66. package/dist/components/SelectField/index.js +5 -0
  67. package/dist/components/SkeletonLoading/Skeleton.d.ts +228 -1
  68. package/dist/components/SubLabelText/SubLabelText.d.ts +228 -1
  69. package/dist/components/SubLabelText/SubLabelText.js +1 -1
  70. package/dist/components/SummaryList/SummaryList.d.ts +4 -0
  71. package/dist/components/SummaryList/SummaryList.js +5 -0
  72. package/dist/components/Tabs/Tab.js +22 -19
  73. package/dist/components/Tabs/TabList.d.ts +11 -1
  74. package/dist/components/Tabs/TabList.js +19 -16
  75. package/dist/components/Tabs/TabPanel.js +32 -6
  76. package/dist/components/Tabs/Tabs.d.ts +8 -6
  77. package/dist/components/Tabs/Tabs.js +10 -6
  78. package/dist/components/Text/Text.d.ts +1140 -5
  79. package/dist/components/Text/Text.js +6 -10
  80. package/dist/components/TextField/PhoneField.d.ts +10 -0
  81. package/dist/components/TextField/PhoneField.js +56 -0
  82. package/dist/components/TextField/TelField.d.ts +4 -0
  83. package/dist/components/TextField/TelField.js +7 -2
  84. package/dist/components/TextField/index.d.ts +1 -0
  85. package/dist/components/TextField/index.js +3 -1
  86. package/dist/components/TextLink/TextLink.js +2 -2
  87. package/dist/components/index.d.ts +2 -0
  88. package/dist/components/index.js +2 -0
  89. package/dist/esm/components/Accordion/Accordion.js +23 -22
  90. package/dist/esm/components/Accordion/Icon.js +8 -8
  91. package/dist/esm/components/Accordion/styles.js +29 -48
  92. package/dist/esm/components/Badge/Badge.js +35 -16
  93. package/dist/esm/components/CTAButton/CTAButton.js +20 -21
  94. package/dist/esm/components/Card/Card.js +5 -25
  95. package/dist/esm/components/Checkbox/Checkbox.js +12 -20
  96. package/dist/esm/components/DataTable/DataTable.js +3 -66
  97. package/dist/esm/components/DataTable/TableRow.js +26 -0
  98. package/dist/esm/components/DataTable/index.js +2 -0
  99. package/dist/esm/components/DataTable/styles.js +51 -0
  100. package/dist/esm/components/DataTable/types.js +1 -0
  101. package/dist/esm/components/DateField/DateField.js +9 -9
  102. package/dist/esm/components/DescriptionList/DescriptionList.js +39 -0
  103. package/dist/esm/components/DescriptionList/index.js +1 -0
  104. package/dist/esm/components/DescriptionList/styled.js +57 -0
  105. package/dist/esm/components/Disclosure/Disclosure.js +9 -12
  106. package/dist/esm/components/ErrorText/ErrorText.js +1 -1
  107. package/dist/esm/components/Field/Field.js +3 -3
  108. package/dist/esm/components/Heading/Heading.js +8 -24
  109. package/dist/esm/components/HintText/HintText.js +1 -1
  110. package/dist/esm/components/Icon/Icon.js +2 -2
  111. package/dist/esm/components/Input/Input.js +15 -18
  112. package/dist/esm/components/Input/PasswordInput.styled.js +2 -5
  113. package/dist/esm/components/Input/PasswordVisibilityToggle.js +3 -6
  114. package/dist/esm/components/Input/{TelInput.js → PhoneInput.js} +2 -2
  115. package/dist/esm/components/Input/TextareaInput.js +11 -9
  116. package/dist/esm/components/Input/index.js +1 -1
  117. package/dist/esm/components/LabelText/LabelText.js +1 -1
  118. package/dist/esm/components/List/List.js +17 -5
  119. package/dist/esm/components/NavHeader/NavHeader.js +4 -4
  120. package/dist/esm/components/Notification/Notification.js +34 -46
  121. package/dist/esm/components/Radio/Radio.js +13 -29
  122. package/dist/esm/components/SelectField/Select.js +74 -0
  123. package/dist/esm/components/SelectField/SelectField.js +31 -0
  124. package/dist/esm/components/SelectField/index.js +1 -0
  125. package/dist/esm/components/SubLabelText/SubLabelText.js +1 -1
  126. package/dist/esm/components/SummaryList/SummaryList.js +5 -0
  127. package/dist/esm/components/Tabs/Tab.js +22 -16
  128. package/dist/esm/components/Tabs/TabList.js +18 -16
  129. package/dist/esm/components/Tabs/TabPanel.js +9 -6
  130. package/dist/esm/components/Tabs/Tabs.js +9 -6
  131. package/dist/esm/components/Text/Text.js +6 -10
  132. package/dist/esm/components/TextField/PhoneField.js +30 -0
  133. package/dist/esm/components/TextField/TelField.js +7 -2
  134. package/dist/esm/components/TextField/index.js +1 -0
  135. package/dist/esm/components/TextLink/TextLink.js +2 -2
  136. package/dist/esm/components/index.js +2 -0
  137. package/dist/esm/providers/icons/Logo.js +6 -3
  138. package/dist/esm/theme/create-theme.js +2 -176
  139. package/dist/esm/theme/index.js +13 -2
  140. package/dist/providers/icons/Logo.js +5 -2
  141. package/dist/styled.native.d.ts +1363 -1
  142. package/dist/theme/create-theme.d.ts +1 -1
  143. package/dist/theme/create-theme.js +2 -176
  144. package/dist/theme/index.d.ts +228 -2
  145. package/dist/theme/index.js +13 -2
  146. package/dist/theme/theme.d.ts +1 -110
  147. package/package.json +9 -6
@@ -12,7 +12,7 @@ declare type TwoLevelPartial<T> = {
12
12
  declare type OneLevelPartial<T> = {
13
13
  [P in keyof T]?: Partial<T[P]>;
14
14
  };
15
- export declare type RequiredThemeKeys = Pick<Theme, 'borderWidths' | 'radii' | 'breakpoints' | 'shadows' | 'space' | 'fonts' | 'lineHeights' | 'fontSizes' | 'responsiveFontSizes' | 'responsiveLineHeights' | 'fontWeights' | 'colors'>;
15
+ export declare type RequiredThemeKeys = Pick<Theme, 'borderWidths' | 'radii' | 'breakpoints' | 'shadows' | 'space' | 'fonts' | 'lineHeights' | 'fontSizes' | 'responsiveFontSizes' | 'responsiveLineHeights' | 'colors'>;
16
16
  export declare const defaultTokens: RequiredThemeKeys;
17
17
  export declare function createTheme<T, A = {}>(customTheme: ThreeLevelPartial<Theme> & T, additional?: ThreeLevelPartial<Theme> & A): Theme & T & A;
18
18
  export {};
@@ -90,12 +90,6 @@ exports.defaultTokens = {
90
90
  standard: 1.5,
91
91
  },
92
92
  fontSizes: ['12px', '14px', '16px', '20px', '24px', '28px', '32px', '48px'],
93
- fontWeights: {
94
- normal: 400,
95
- bold: 700,
96
- semiBold: 600,
97
- heading: 900,
98
- },
99
93
  colors: {
100
94
  primary: brand.primary.base,
101
95
  primaryAlt: brand.primary.darker,
@@ -156,7 +150,7 @@ function createTheme(customTheme, additional) {
156
150
  var mergeOptions = { arrayMerge: function (_, source) { return source; } };
157
151
  var customThemeWithAdditional = (0, deepmerge_1.default)(customTheme, additional || {}, mergeOptions);
158
152
  var theme = (0, deepmerge_1.default)(exports.defaultTokens, customThemeWithAdditional, mergeOptions);
159
- var fontSizes = theme.fontSizes, breakpoints = theme.breakpoints, colors = theme.colors, fontWeights = theme.fontWeights, fonts = theme.fonts, lineHeights = theme.lineHeights, space = theme.space, radii = theme.radii, shadows = theme.shadows, borderWidths = theme.borderWidths, responsiveFontSizes = theme.responsiveFontSizes, responsiveLineHeights = theme.responsiveLineHeights;
153
+ var fontSizes = theme.fontSizes, breakpoints = theme.breakpoints, colors = theme.colors, fonts = theme.fonts, lineHeights = theme.lineHeights, space = theme.space, radii = theme.radii, shadows = theme.shadows, borderWidths = theme.borderWidths, responsiveFontSizes = theme.responsiveFontSizes, responsiveLineHeights = theme.responsiveLineHeights;
160
154
  return (0, deepmerge_1.default)({
161
155
  field: {
162
156
  fontFamily: fonts.body,
@@ -166,21 +160,17 @@ function createTheme(customTheme, additional) {
166
160
  gap: space[2],
167
161
  error: {
168
162
  color: colors.error,
169
- fontWeight: fontWeights.bold,
170
163
  fontFamily: fonts.bold,
171
164
  },
172
165
  hint: {
173
- fontWeight: fontWeights.normal,
174
166
  color: colors.border,
175
167
  },
176
168
  label: {
177
169
  color: colors.heading,
178
- fontWeight: fontWeights.bold,
179
170
  fontFamily: fonts.bold,
180
171
  },
181
172
  subLabel: {
182
173
  color: colors.border,
183
- fontWeight: fontWeights.normal,
184
174
  },
185
175
  legend: {
186
176
  marginBottom: space[1],
@@ -200,7 +190,6 @@ function createTheme(customTheme, additional) {
200
190
  fontSize: responsiveFontSizes.body,
201
191
  color: colors.body,
202
192
  lineHeight: lineHeights.standard,
203
- fontWeight: fontWeights.normal,
204
193
  height: space[11],
205
194
  borderColor: colors.border,
206
195
  borderWidth: borderWidths.standard,
@@ -221,75 +210,6 @@ function createTheme(customTheme, additional) {
221
210
  borderColor: colors.borderMuted,
222
211
  padding: [space[3], space[6], space[9]],
223
212
  },
224
- badge: {
225
- fontWeight: fontWeights.bold,
226
- fontFamily: fonts.bold,
227
- lineHeight: lineHeights.standard,
228
- paddingHorizontal: space[2],
229
- borderRadius: radii.small,
230
- fontSize: responsiveFontSizes.body,
231
- variants: {
232
- default: {
233
- background: colors.primaryMuted,
234
- foreground: colors.primaryAlt,
235
- },
236
- error: {
237
- background: colors.errorMuted,
238
- foreground: colors.errorAlt,
239
- },
240
- success: {
241
- background: colors.successMuted,
242
- foreground: colors.successAlt,
243
- },
244
- info: {
245
- background: colors.infoMuted,
246
- foreground: colors.infoAlt,
247
- },
248
- warning: {
249
- background: colors.warningMuted,
250
- foreground: colors.warningAlt,
251
- },
252
- },
253
- },
254
- cta: {
255
- fontSize: responsiveFontSizes.body,
256
- fontWeight: fontWeights.bold,
257
- fontFamily: fonts.bold,
258
- lineHeight: lineHeights.standard,
259
- paddingVertical: space[2],
260
- paddingHorizontal: space[3],
261
- borderRadius: radii.small,
262
- borderWidth: borderWidths.standard,
263
- iconGap: space[1],
264
- minHeight: space[11],
265
- variants: {
266
- primary: {
267
- background: colors.primary,
268
- foreground: colors.primaryContrast,
269
- border: colors.primary,
270
- },
271
- secondary: {
272
- background: colors.primaryContrast,
273
- foreground: colors.primary,
274
- border: colors.primary,
275
- },
276
- destructive: {
277
- background: colors.error,
278
- foreground: colors.errorContrast,
279
- border: colors.error,
280
- },
281
- missionPrimary: {
282
- background: colors.mission,
283
- foreground: colors.missionContrast,
284
- border: colors.mission,
285
- },
286
- missionSecondary: {
287
- background: colors.primaryContrast,
288
- foreground: colors.primary,
289
- border: colors.primary,
290
- },
291
- },
292
- },
293
213
  checkbox: {
294
214
  touchSize: space[11],
295
215
  size: space[6],
@@ -304,44 +224,8 @@ function createTheme(customTheme, additional) {
304
224
  checkColor: colors.info,
305
225
  errorColor: colors.error,
306
226
  },
307
- notification: {
308
- borderRadius: radii.small,
309
- borderWidth: borderWidths.heavy,
310
- borderColor: colors.error,
311
- background: colors.errorMuted,
312
- paddingX: [space[2], space[2]],
313
- paddingY: [space[3], space[6]],
314
- dismiss: {
315
- touchSize: space[6],
316
- size: space[4],
317
- icon: 'cross',
318
- },
319
- variants: {
320
- error: {
321
- borderColor: colors.errorMuted,
322
- background: colors.errorMuted,
323
- textColor: colors.errorAlt,
324
- },
325
- success: {
326
- borderColor: colors.successMuted,
327
- background: colors.successMuted,
328
- textColor: colors.successAlt,
329
- },
330
- info: {
331
- borderColor: colors.infoMuted,
332
- background: colors.infoMuted,
333
- textColor: colors.infoAlt,
334
- },
335
- warning: {
336
- borderColor: colors.warningMuted,
337
- background: colors.warningMuted,
338
- textColor: colors.warningAlt,
339
- },
340
- },
341
- },
342
227
  text: {
343
228
  fontFamily: fonts.body,
344
- fontWeight: fontWeights.normal,
345
229
  lineHeight: 1,
346
230
  color: colors.body,
347
231
  p: {
@@ -355,7 +239,6 @@ function createTheme(customTheme, additional) {
355
239
  lineHeight: responsiveLineHeights.small,
356
240
  },
357
241
  strong: {
358
- fontWeight: fontWeights.bold,
359
242
  fontFamily: fonts.bold,
360
243
  },
361
244
  },
@@ -372,19 +255,17 @@ function createTheme(customTheme, additional) {
372
255
  },
373
256
  descriptionTerm: {
374
257
  color: colors.heading,
375
- fontWeight: fontWeights.bold,
376
258
  fontFamily: fonts.bold,
377
259
  marginTop: [space[3], space[4]],
378
260
  marginBottom: [space[1], space[1]],
379
261
  },
380
262
  },
381
263
  textLink: {
264
+ fontFamily: fonts.body,
382
265
  color: colors.primary,
383
- fontWeight: fontWeights.normal,
384
266
  },
385
267
  heading: {
386
268
  fontFamily: fonts.heading,
387
- fontWeight: fontWeights.heading,
388
269
  color: colors.heading,
389
270
  heading1: {
390
271
  fontSize: responsiveFontSizes.level1,
@@ -426,7 +307,6 @@ function createTheme(customTheme, additional) {
426
307
  checkedBackground: colors.infoMuted,
427
308
  errorColor: colors.error,
428
309
  },
429
- fontWeights: fontWeights,
430
310
  fontSizes: fontSizes,
431
311
  fonts: fonts,
432
312
  responsiveFontSizes: responsiveFontSizes,
@@ -444,35 +324,6 @@ function createTheme(customTheme, additional) {
444
324
  iconGap: [space[1], space[2]],
445
325
  panelGap: [space[2], space[3]],
446
326
  },
447
- dataTable: {
448
- borderWidth: borderWidths.standard,
449
- borderRadius: radii.small,
450
- borderColor: colors.canvasMuted,
451
- responsivePadding: {
452
- vertical: [space[2], space[3]],
453
- horizontal: [space[1], space[1]],
454
- },
455
- tableHeader: {
456
- color: colors.heading,
457
- backgroundColor: colors.canvas,
458
- borderWidth: borderWidths.standard,
459
- borderColor: colors.border,
460
- fontWeight: fontWeights.bold,
461
- fontFamily: fonts.bold,
462
- },
463
- tableCaption: {
464
- color: colors.heading,
465
- fontWeight: fontWeights.bold,
466
- fontFamily: fonts.bold,
467
- },
468
- tableCell: {
469
- color: colors.body,
470
- },
471
- tableRow: {
472
- backgroundColor: colors.canvas,
473
- stripeColor: colors.canvasMuted,
474
- },
475
- },
476
327
  accordion: {
477
328
  header: {
478
329
  color: colors.primary,
@@ -481,31 +332,6 @@ function createTheme(customTheme, additional) {
481
332
  iconGap: space[3],
482
333
  },
483
334
  },
484
- tabs: {
485
- tab: {
486
- borderTopWidth: borderWidths.heavy,
487
- borderBottomWidth: borderWidths.heavy,
488
- borderColor: colors.canvas,
489
- fontSize: responsiveFontSizes.body,
490
- fontWeight: fontWeights.bold,
491
- fontFamily: fonts.bold,
492
- lineHeight: lineHeights.standard,
493
- paddingHorizontal: [space[4], space[4]],
494
- paddingVertical: [space[3], space[3]],
495
- active: {
496
- borderColor: colors.primary,
497
- foregroundColor: colors.primary,
498
- backgroundColor: colors.canvas,
499
- },
500
- inactive: {
501
- foregroundColor: colors.heading,
502
- backgroundColor: colors.canvas,
503
- },
504
- hover: {
505
- foregroundColor: colors.primaryAlt,
506
- },
507
- },
508
- },
509
335
  }, theme, mergeOptions);
510
336
  }
511
337
  exports.createTheme = createTheme;
@@ -1,5 +1,231 @@
1
- export * from './theme';
2
1
  export * from './create-theme';
3
- export declare const theme: import("./theme").Theme;
2
+ export declare const theme: import("./theme").Theme & {
3
+ core: {
4
+ radius: Record<"small" | "medium" | "large" | "max", string>;
5
+ borderWidth: Record<"small" | "medium" | "large", string>;
6
+ breakpoint: Record<"small" | "medium" | "large", string | number>;
7
+ mediaQuery: Record<"small" | "medium" | "large", string>;
8
+ space: Record<0 | 2 | 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15, string>;
9
+ transition: Record<"medium" | "slow" | "fast", string>;
10
+ opacity: Record<"solid" | "transparent" | "translucent", string | number>;
11
+ color: Record<"neutral" | "red" | "orange" | "yellow" | "green" | "blue", {
12
+ lightest: string;
13
+ lighter: string;
14
+ light: string;
15
+ base: string;
16
+ dark: string;
17
+ darker: string;
18
+ darkest: string;
19
+ }> & {
20
+ brand: Record<string, string>;
21
+ };
22
+ fontFamily: Record<"heading" | "body" | "mono" | "bodyBold", {
23
+ native: string;
24
+ web: string;
25
+ }>;
26
+ fontWeight: Record<"bold" | "book" | "black", string | number>;
27
+ fontSize: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
28
+ small: string | number;
29
+ large: string | number;
30
+ }>;
31
+ lineHeight: Record<"small" | "body" | "label" | "lead" | "heading1" | "heading2" | "heading3" | "heading4", {
32
+ small: string | number;
33
+ large: string | number;
34
+ }>;
35
+ letterSpacing: Record<"base" | "compressed" | "extraCompressed", number>;
36
+ };
37
+ semantic: {
38
+ surface: Record<"base" | "cutout" | "elevated", string>;
39
+ message: Record<"base" | "link" | "error" | "secondary" | "branded", string>;
40
+ border: Record<"graphic" | "differentiated" | "functional", string>;
41
+ focus: Record<"surface" | "outline" | "hover", string>;
42
+ inverted: Record<"border" | "surface", string> & {
43
+ message: Record<"base" | "link" | "secondary" | "branded", string>;
44
+ };
45
+ success: {
46
+ border: string;
47
+ surface: string;
48
+ surfaceEmphasis: string;
49
+ message: string;
50
+ messageOnEmphasis: string;
51
+ };
52
+ warning: {
53
+ border: string;
54
+ surface: string;
55
+ surfaceEmphasis: string;
56
+ message: string;
57
+ messageOnEmphasis: string;
58
+ };
59
+ error: {
60
+ border: string;
61
+ surface: string;
62
+ surfaceEmphasis: string;
63
+ message: string;
64
+ messageOnEmphasis: string;
65
+ };
66
+ info: {
67
+ border: string;
68
+ surface: string;
69
+ surfaceEmphasis: string;
70
+ message: string;
71
+ messageOnEmphasis: string;
72
+ };
73
+ data: Record<"gas" | "branded" | "electric", Record<2 | 1 | 3 | 4, string>>;
74
+ };
75
+ component: {
76
+ heading1: {
77
+ fontFamily: string;
78
+ fontWeight: string | number;
79
+ fontSize: {
80
+ small: string | number;
81
+ large: string | number;
82
+ };
83
+ lineHeight: {
84
+ small: string | number;
85
+ large: string | number;
86
+ };
87
+ };
88
+ heading2: {
89
+ fontFamily: string;
90
+ fontWeight: string | number;
91
+ fontSize: {
92
+ small: string | number;
93
+ large: string | number;
94
+ };
95
+ lineHeight: {
96
+ small: string | number;
97
+ large: string | number;
98
+ };
99
+ };
100
+ heading3: {
101
+ fontFamily: string;
102
+ fontWeight: string | number;
103
+ fontSize: {
104
+ small: string | number;
105
+ large: string | number;
106
+ };
107
+ lineHeight: {
108
+ small: string | number;
109
+ large: string | number;
110
+ };
111
+ };
112
+ heading4: {
113
+ fontFamily: string;
114
+ fontWeight: string | number;
115
+ fontSize: {
116
+ small: string | number;
117
+ large: string | number;
118
+ };
119
+ lineHeight: {
120
+ small: string | number;
121
+ large: string | number;
122
+ };
123
+ };
124
+ lead: {
125
+ fontFamily: string;
126
+ fontWeight: string | number;
127
+ fontSize: {
128
+ small: string | number;
129
+ large: string | number;
130
+ };
131
+ lineHeight: {
132
+ small: string | number;
133
+ large: string | number;
134
+ };
135
+ };
136
+ body: {
137
+ fontFamily: string;
138
+ fontWeight: string | number;
139
+ fontSize: {
140
+ small: string | number;
141
+ large: string | number;
142
+ };
143
+ lineHeight: {
144
+ small: string | number;
145
+ large: string | number;
146
+ };
147
+ };
148
+ small: {
149
+ fontFamily: string;
150
+ fontWeight: string | number;
151
+ fontSize: {
152
+ small: string | number;
153
+ large: string | number;
154
+ };
155
+ lineHeight: {
156
+ small: string | number;
157
+ large: string | number;
158
+ };
159
+ };
160
+ label: {
161
+ fontFamily: string;
162
+ fontWeight: string | number;
163
+ fontSize: {
164
+ small: string | number;
165
+ large: string | number;
166
+ };
167
+ lineHeight: {
168
+ small: string | number;
169
+ large: string | number;
170
+ };
171
+ };
172
+ cta: {
173
+ primary: {
174
+ message: string;
175
+ surface: string;
176
+ messageHover: string;
177
+ surfaceHover: string;
178
+ messageFocused: string;
179
+ surfaceFocused: string;
180
+ outlineFocused: string;
181
+ backgroundFocused: string;
182
+ };
183
+ secondary: {
184
+ message: string;
185
+ surface: string;
186
+ messageHover: string;
187
+ surfaceHover: string;
188
+ messageFocused: string;
189
+ surfaceFocused: string;
190
+ outlineFocused: string;
191
+ backgroundFocused: string;
192
+ };
193
+ destructive: {
194
+ message: string;
195
+ surface: string;
196
+ messageHover: string;
197
+ surfaceHover: string;
198
+ messageFocused: string;
199
+ surfaceFocused: string;
200
+ outlineFocused: string;
201
+ backgroundFocused: string;
202
+ };
203
+ };
204
+ badge: {
205
+ variants: {
206
+ red: {
207
+ foreground: string;
208
+ background: string;
209
+ };
210
+ orange: {
211
+ foreground: string;
212
+ background: string;
213
+ };
214
+ yellow: {
215
+ foreground: string;
216
+ background: string;
217
+ };
218
+ green: {
219
+ foreground: string;
220
+ background: string;
221
+ };
222
+ blue: {
223
+ foreground: string;
224
+ background: string;
225
+ };
226
+ };
227
+ };
228
+ };
229
+ };
4
230
  export declare type Theme = typeof theme;
5
231
  export declare const calculateLineHeight: (size: string, lineHeight?: number) => string;
@@ -1,4 +1,15 @@
1
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
+ };
2
13
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
14
  if (k2 === undefined) k2 = k;
4
15
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -15,11 +26,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
26
  };
16
27
  Object.defineProperty(exports, "__esModule", { value: true });
17
28
  exports.calculateLineHeight = exports.theme = void 0;
29
+ var element_core_1 = require("@ovotech/element-core");
18
30
  var utils_1 = require("../utils");
19
31
  var create_theme_1 = require("./create-theme");
20
- __exportStar(require("./theme"), exports);
21
32
  __exportStar(require("./create-theme"), exports);
22
- exports.theme = (0, create_theme_1.createTheme)({});
33
+ exports.theme = (0, create_theme_1.createTheme)(__assign({}, element_core_1.themeNative));
23
34
  var calculateLineHeight = function (size, lineHeight) {
24
35
  return (0, utils_1.pxToNumber)(size) * (lineHeight || 1) + 'px';
25
36
  };