@hero-design/rn 8.12.0 → 8.12.2

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 (56) hide show
  1. package/.turbo/turbo-build.log +9 -9
  2. package/es/index.js +121 -34
  3. package/lib/index.js +120 -33
  4. package/package.json +5 -5
  5. package/src/components/Button/Button.tsx +42 -2
  6. package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +1 -1
  7. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +1 -1
  8. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  9. package/src/components/Button/StyledButton.tsx +21 -14
  10. package/src/components/Button/__tests__/Button.spec.tsx +46 -1
  11. package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +1564 -0
  12. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +126 -110
  13. package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +24 -22
  14. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +17 -3
  15. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +29 -12
  16. package/src/components/FAB/ActionGroup/ActionItem.tsx +17 -6
  17. package/src/components/FAB/ActionGroup/StyledActionItem.tsx +15 -17
  18. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +170 -160
  19. package/src/components/FAB/FAB.tsx +3 -1
  20. package/src/components/List/BasicListItem.tsx +6 -0
  21. package/src/components/List/ListItem.tsx +6 -0
  22. package/src/components/List/StyledBasicListItem.tsx +2 -2
  23. package/src/components/List/StyledListItem.tsx +2 -2
  24. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +22 -18
  25. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +32 -28
  26. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +44 -36
  27. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +50 -46
  28. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +22 -18
  29. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +33 -27
  30. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +4 -0
  31. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +11 -9
  32. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +132 -108
  33. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +268 -166
  34. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +11 -9
  35. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +132 -108
  36. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +232 -139
  37. package/src/components/TextInput/StyledTextInput.tsx +3 -0
  38. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +466 -28
  39. package/src/components/TextInput/__tests__/index.spec.tsx +32 -0
  40. package/src/components/TextInput/index.tsx +32 -4
  41. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +34 -6
  42. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +46 -15
  43. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +18 -0
  44. package/src/theme/components/button.ts +16 -2
  45. package/src/theme/components/fab.ts +2 -0
  46. package/src/theme/components/textInput.ts +1 -0
  47. package/src/theme/global/borders.ts +2 -0
  48. package/types/components/Button/Button.d.ts +1 -1
  49. package/types/components/Button/StyledButton.d.ts +4 -3
  50. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +3 -3
  51. package/types/components/List/StyledBasicListItem.d.ts +3 -3
  52. package/types/components/List/StyledListItem.d.ts +3 -3
  53. package/types/theme/components/button.d.ts +14 -0
  54. package/types/theme/components/fab.d.ts +2 -0
  55. package/types/theme/components/textInput.d.ts +1 -0
  56. package/types/theme/global/borders.d.ts +1 -0
@@ -380,6 +380,38 @@ describe('TextInput', () => {
380
380
  });
381
381
  });
382
382
 
383
+ describe('backgroundColor', () => {
384
+ it('renders correctly', () => {
385
+ const wrapper = renderWithTheme(
386
+ <TextInput
387
+ label="Amount (AUD)"
388
+ prefix="dollar-sign"
389
+ required
390
+ helpText="This is helper text"
391
+ placeholder="Enter Amount"
392
+ defaultValue="1000"
393
+ value="2000"
394
+ maxLength={255}
395
+ style={{ backgroundColor: theme.colors.neutralGlobalSurface }}
396
+ />
397
+ );
398
+
399
+ expect(wrapper.toJSON()).toMatchSnapshot();
400
+ expect(wrapper.getByTestId('text-input')).toHaveStyle({
401
+ backgroundColor: theme.colors.neutralGlobalSurface,
402
+ });
403
+ expect(wrapper.getByTestId('text-input-border')).toHaveStyle({
404
+ backgroundColor: theme.colors.neutralGlobalSurface,
405
+ });
406
+ expect(wrapper.getByTestId('label-container')).toHaveStyle({
407
+ backgroundColor: theme.colors.neutralGlobalSurface,
408
+ });
409
+ expect(wrapper.getByText('Amount (AUD)')).toHaveStyle({
410
+ backgroundColor: theme.colors.neutralGlobalSurface,
411
+ });
412
+ });
413
+ });
414
+
383
415
  describe('ref', () => {
384
416
  it('ref methods work correctly', () => {
385
417
  const mockChildMethod = jest.fn();
@@ -217,9 +217,31 @@ const TextInput = forwardRef<TextInputHandles, TextInputProps>(
217
217
  };
218
218
  }, [textStyle]);
219
219
 
220
+ const { backgroundColor, styleWithoutBackgroundColor } = useMemo(() => {
221
+ if (!style) {
222
+ return {
223
+ backgroundColor: theme.__hd__.textInput.colors.containerBackground,
224
+ };
225
+ }
226
+
227
+ const flattenTextStyle = StyleSheet.flatten(style);
228
+ return {
229
+ backgroundColor:
230
+ flattenTextStyle.backgroundColor ??
231
+ theme.__hd__.textInput.colors.containerBackground,
232
+ styleWithoutBackgroundColor: omit(
233
+ ['backgroundColor'],
234
+ flattenTextStyle
235
+ ),
236
+ };
237
+ }, [style, theme]);
238
+
220
239
  const nativeInputProps: NativeTextInputProps = {
221
240
  style: StyleSheet.flatten([
222
- { color: theme.__hd__.textInput.colors.text },
241
+ {
242
+ backgroundColor,
243
+ color: theme.__hd__.textInput.colors.text,
244
+ },
223
245
  textStyleWithoutBorderStyle,
224
246
  ]),
225
247
  testID: 'text-input',
@@ -253,7 +275,7 @@ const TextInput = forwardRef<TextInputHandles, TextInputProps>(
253
275
 
254
276
  return (
255
277
  <StyledContainer
256
- style={style}
278
+ style={styleWithoutBackgroundColor}
257
279
  pointerEvents={
258
280
  variant === 'disabled' || variant === 'readonly' ? 'none' : 'auto'
259
281
  }
@@ -263,10 +285,15 @@ const TextInput = forwardRef<TextInputHandles, TextInputProps>(
263
285
  <StyledBorderBackDrop
264
286
  themeFocused={isFocused}
265
287
  themeVariant={variant}
266
- style={borderStyle}
288
+ testID="text-input-border"
289
+ style={[{ backgroundColor }, borderStyle]}
267
290
  />
268
291
  {(isFocused || (label && !isEmptyValue)) && (
269
- <StyledLabelContainer pointerEvents="none">
292
+ <StyledLabelContainer
293
+ pointerEvents="none"
294
+ testID="label-container"
295
+ style={{ backgroundColor }}
296
+ >
270
297
  {required && (
271
298
  <StyledAsteriskLabel themeVariant={variant} fontSize="small">
272
299
  *
@@ -278,6 +305,7 @@ const TextInput = forwardRef<TextInputHandles, TextInputProps>(
278
305
  testID="input-label"
279
306
  fontSize="small"
280
307
  themeVariant={variant}
308
+ style={{ backgroundColor }}
281
309
  >
282
310
  {label}
283
311
  </StyledLabel>
@@ -44,6 +44,8 @@ exports[`TimePickerAndroid renders correct with hide suffix 1`] = `
44
44
  Array [
45
45
  Object {
46
46
  "alignItems": "center",
47
+ "backgroundColor": "#ffffff",
48
+ "borderRadius": 8,
47
49
  "flexDirection": "row",
48
50
  "padding": 16,
49
51
  },
@@ -64,9 +66,15 @@ exports[`TimePickerAndroid renders correct with hide suffix 1`] = `
64
66
  "right": 0,
65
67
  "top": 0,
66
68
  },
67
- undefined,
69
+ Array [
70
+ Object {
71
+ "backgroundColor": "#ffffff",
72
+ },
73
+ undefined,
74
+ ],
68
75
  ]
69
76
  }
77
+ testID="text-input-border"
70
78
  themeFocused={false}
71
79
  themeVariant="filled"
72
80
  />
@@ -83,9 +91,12 @@ exports[`TimePickerAndroid renders correct with hide suffix 1`] = `
83
91
  "top": -10,
84
92
  "zIndex": 1,
85
93
  },
86
- undefined,
94
+ Object {
95
+ "backgroundColor": "#ffffff",
96
+ },
87
97
  ]
88
98
  }
99
+ testID="label-container"
89
100
  >
90
101
  <Text
91
102
  style={
@@ -101,7 +112,9 @@ exports[`TimePickerAndroid renders correct with hide suffix 1`] = `
101
112
  Object {
102
113
  "color": "#001f23",
103
114
  },
104
- undefined,
115
+ Object {
116
+ "backgroundColor": "#ffffff",
117
+ },
105
118
  ],
106
119
  ]
107
120
  }
@@ -151,6 +164,7 @@ exports[`TimePickerAndroid renders correct with hide suffix 1`] = `
151
164
  "textAlignVertical": "center",
152
165
  },
153
166
  Object {
167
+ "backgroundColor": "#ffffff",
154
168
  "color": "#001f23",
155
169
  },
156
170
  ]
@@ -258,6 +272,8 @@ exports[`TimePickerAndroid renders correctly 1`] = `
258
272
  Array [
259
273
  Object {
260
274
  "alignItems": "center",
275
+ "backgroundColor": "#ffffff",
276
+ "borderRadius": 8,
261
277
  "flexDirection": "row",
262
278
  "padding": 16,
263
279
  },
@@ -278,9 +294,15 @@ exports[`TimePickerAndroid renders correctly 1`] = `
278
294
  "right": 0,
279
295
  "top": 0,
280
296
  },
281
- undefined,
297
+ Array [
298
+ Object {
299
+ "backgroundColor": "#ffffff",
300
+ },
301
+ undefined,
302
+ ],
282
303
  ]
283
304
  }
305
+ testID="text-input-border"
284
306
  themeFocused={false}
285
307
  themeVariant="filled"
286
308
  />
@@ -297,9 +319,12 @@ exports[`TimePickerAndroid renders correctly 1`] = `
297
319
  "top": -10,
298
320
  "zIndex": 1,
299
321
  },
300
- undefined,
322
+ Object {
323
+ "backgroundColor": "#ffffff",
324
+ },
301
325
  ]
302
326
  }
327
+ testID="label-container"
303
328
  >
304
329
  <Text
305
330
  style={
@@ -315,7 +340,9 @@ exports[`TimePickerAndroid renders correctly 1`] = `
315
340
  Object {
316
341
  "color": "#001f23",
317
342
  },
318
- undefined,
343
+ Object {
344
+ "backgroundColor": "#ffffff",
345
+ },
319
346
  ],
320
347
  ]
321
348
  }
@@ -365,6 +392,7 @@ exports[`TimePickerAndroid renders correctly 1`] = `
365
392
  "textAlignVertical": "center",
366
393
  },
367
394
  Object {
395
+ "backgroundColor": "#ffffff",
368
396
  "color": "#001f23",
369
397
  },
370
398
  ]
@@ -44,6 +44,8 @@ exports[`TimePickerIOS renders correct with hide suffix 1`] = `
44
44
  Array [
45
45
  Object {
46
46
  "alignItems": "center",
47
+ "backgroundColor": "#ffffff",
48
+ "borderRadius": 8,
47
49
  "flexDirection": "row",
48
50
  "padding": 16,
49
51
  },
@@ -64,9 +66,15 @@ exports[`TimePickerIOS renders correct with hide suffix 1`] = `
64
66
  "right": 0,
65
67
  "top": 0,
66
68
  },
67
- undefined,
69
+ Array [
70
+ Object {
71
+ "backgroundColor": "#ffffff",
72
+ },
73
+ undefined,
74
+ ],
68
75
  ]
69
76
  }
77
+ testID="text-input-border"
70
78
  themeFocused={false}
71
79
  themeVariant="filled"
72
80
  />
@@ -83,9 +91,12 @@ exports[`TimePickerIOS renders correct with hide suffix 1`] = `
83
91
  "top": -10,
84
92
  "zIndex": 1,
85
93
  },
86
- undefined,
94
+ Object {
95
+ "backgroundColor": "#ffffff",
96
+ },
87
97
  ]
88
98
  }
99
+ testID="label-container"
89
100
  >
90
101
  <Text
91
102
  style={
@@ -101,7 +112,9 @@ exports[`TimePickerIOS renders correct with hide suffix 1`] = `
101
112
  Object {
102
113
  "color": "#001f23",
103
114
  },
104
- undefined,
115
+ Object {
116
+ "backgroundColor": "#ffffff",
117
+ },
105
118
  ],
106
119
  ]
107
120
  }
@@ -151,6 +164,7 @@ exports[`TimePickerIOS renders correct with hide suffix 1`] = `
151
164
  "textAlignVertical": "center",
152
165
  },
153
166
  Object {
167
+ "backgroundColor": "#ffffff",
154
168
  "color": "#001f23",
155
169
  },
156
170
  ]
@@ -258,6 +272,8 @@ exports[`TimePickerIOS renders correctly 1`] = `
258
272
  Array [
259
273
  Object {
260
274
  "alignItems": "center",
275
+ "backgroundColor": "#ffffff",
276
+ "borderRadius": 8,
261
277
  "flexDirection": "row",
262
278
  "padding": 16,
263
279
  },
@@ -278,9 +294,15 @@ exports[`TimePickerIOS renders correctly 1`] = `
278
294
  "right": 0,
279
295
  "top": 0,
280
296
  },
281
- undefined,
297
+ Array [
298
+ Object {
299
+ "backgroundColor": "#ffffff",
300
+ },
301
+ undefined,
302
+ ],
282
303
  ]
283
304
  }
305
+ testID="text-input-border"
284
306
  themeFocused={false}
285
307
  themeVariant="filled"
286
308
  />
@@ -297,9 +319,12 @@ exports[`TimePickerIOS renders correctly 1`] = `
297
319
  "top": -10,
298
320
  "zIndex": 1,
299
321
  },
300
- undefined,
322
+ Object {
323
+ "backgroundColor": "#ffffff",
324
+ },
301
325
  ]
302
326
  }
327
+ testID="label-container"
303
328
  >
304
329
  <Text
305
330
  style={
@@ -315,7 +340,9 @@ exports[`TimePickerIOS renders correctly 1`] = `
315
340
  Object {
316
341
  "color": "#001f23",
317
342
  },
318
- undefined,
343
+ Object {
344
+ "backgroundColor": "#ffffff",
345
+ },
319
346
  ],
320
347
  ]
321
348
  }
@@ -365,6 +392,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
365
392
  "textAlignVertical": "center",
366
393
  },
367
394
  Object {
395
+ "backgroundColor": "#ffffff",
368
396
  "color": "#001f23",
369
397
  },
370
398
  ]
@@ -688,7 +716,6 @@ exports[`TimePickerIOS renders correctly 1`] = `
688
716
  }
689
717
  }
690
718
  accessible={true}
691
- collapsable={false}
692
719
  focusable={true}
693
720
  onClick={[Function]}
694
721
  onResponderGrant={[Function]}
@@ -698,14 +725,18 @@ exports[`TimePickerIOS renders correctly 1`] = `
698
725
  onResponderTerminationRequest={[Function]}
699
726
  onStartShouldSetResponder={[Function]}
700
727
  style={
701
- Object {
702
- "alignItems": "center",
703
- "borderWidth": 0,
704
- "flexDirection": "row",
705
- "justifyContent": "center",
706
- "opacity": 1,
707
- "padding": 16,
708
- }
728
+ Array [
729
+ Object {
730
+ "alignItems": "center",
731
+ "backgroundColor": "transparent",
732
+ "borderRadius": 4,
733
+ "borderWidth": 0,
734
+ "flexDirection": "row",
735
+ "justifyContent": "center",
736
+ "padding": 12,
737
+ },
738
+ undefined,
739
+ ]
709
740
  }
710
741
  >
711
742
  <Text
@@ -183,8 +183,20 @@ Object {
183
183
  "disabledBorder": "#bfc1c5",
184
184
  "disabledText": "#bfc1c5",
185
185
  "invertedText": "#ffffff",
186
+ "pressedBackground": Object {
187
+ "filledDanger": "#fcebe7",
188
+ "filledPrimary": "#664780",
189
+ "filledSecondary": "#664780",
190
+ "outlineDanger": "#fcebe7",
191
+ "outlinedPrimary": "#ece8ef",
192
+ "outlinedSecondary": "#ece8ef",
193
+ "textDanger": "#fcebe7",
194
+ "textPrimary": "#ece8ef",
195
+ "textSecondary": "#ece8ef",
196
+ },
186
197
  "primary": "#401960",
187
198
  "secondary": "#795e90",
199
+ "textLoadingBackground": "#ece8ef",
188
200
  "utilityBackground": "#f6f6f7",
189
201
  },
190
202
  "fontSize": Object {
@@ -201,6 +213,7 @@ Object {
201
213
  },
202
214
  "radii": Object {
203
215
  "default": 32,
216
+ "text": 4,
204
217
  "utilityRadii": 8,
205
218
  },
206
219
  "sizes": Object {
@@ -209,6 +222,7 @@ Object {
209
222
  "space": Object {
210
223
  "buttonPadding": 16,
211
224
  "iconPadding": 12,
225
+ "textButtonPadding": 12,
212
226
  "utilityPadding": 8,
213
227
  },
214
228
  },
@@ -396,9 +410,11 @@ Object {
396
410
  "fab": Object {
397
411
  "colors": Object {
398
412
  "actionItemBackground": "#401960",
413
+ "actionItemPressedBackground": "#664780",
399
414
  "actionItemText": "#ffffff",
400
415
  "backdropBackground": "#000000",
401
416
  "buttonBackground": "#401960",
417
+ "buttonPressedBackground": "#664780",
402
418
  "headerText": "#001f23",
403
419
  "icon": "#ffffff",
404
420
  "titleText": "#ffffff",
@@ -829,6 +845,7 @@ Object {
829
845
  "filled": "#001f23",
830
846
  "readonly": "#808f91",
831
847
  },
848
+ "containerBackground": "#ffffff",
832
849
  "error": "#de350b",
833
850
  "labelBackground": "#ffffff",
834
851
  "labels": Object {
@@ -1081,6 +1098,7 @@ Object {
1081
1098
  "xxxxxlarge": 40,
1082
1099
  },
1083
1100
  "radii": Object {
1101
+ "5xlarge": 32,
1084
1102
  "base": 4,
1085
1103
  "large": 12,
1086
1104
  "medium": 8,
@@ -22,6 +22,7 @@ const getButtonTheme = (theme: GlobalTheme) => {
22
22
 
23
23
  const space = {
24
24
  buttonPadding: theme.space.medium,
25
+ textButtonPadding: theme.space.smallMedium,
25
26
  iconPadding: theme.space.smallMedium,
26
27
  utilityPadding: theme.space.small,
27
28
  };
@@ -31,8 +32,9 @@ const getButtonTheme = (theme: GlobalTheme) => {
31
32
  };
32
33
 
33
34
  const radii = {
34
- default: theme.space.xlarge,
35
- utilityRadii: theme.space.small,
35
+ default: theme.radii['5xlarge'],
36
+ utilityRadii: theme.radii.medium,
37
+ text: theme.radii.base,
36
38
  };
37
39
 
38
40
  const colors = {
@@ -45,6 +47,18 @@ const getButtonTheme = (theme: GlobalTheme) => {
45
47
  disabledBackground: theme.colors.disabledOnDefaultGlobalSurface,
46
48
  invertedText: theme.colors.onDarkGlobalSurface,
47
49
  utilityBackground: theme.colors.neutralGlobalSurface,
50
+ textLoadingBackground: theme.colors.highlightedSurface,
51
+ pressedBackground: {
52
+ filledPrimary: theme.colors.pressedSurface,
53
+ filledSecondary: theme.colors.pressedSurface,
54
+ filledDanger: theme.colors.errorSurface,
55
+ outlinedPrimary: theme.colors.highlightedSurface,
56
+ outlinedSecondary: theme.colors.highlightedSurface,
57
+ outlineDanger: theme.colors.errorSurface,
58
+ textPrimary: theme.colors.highlightedSurface,
59
+ textSecondary: theme.colors.highlightedSurface,
60
+ textDanger: theme.colors.errorSurface,
61
+ },
48
62
  };
49
63
 
50
64
  return {
@@ -3,9 +3,11 @@ import type { GlobalTheme } from '../global';
3
3
  const getFABTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
5
  buttonBackground: theme.colors.primary,
6
+ buttonPressedBackground: theme.colors.pressedSurface,
6
7
  icon: theme.colors.onPrimary,
7
8
  headerText: theme.colors.onDefaultGlobalSurface,
8
9
  actionItemBackground: theme.colors.primary,
10
+ actionItemPressedBackground: theme.colors.pressedSurface,
9
11
  backdropBackground: theme.colors.overlayGlobalSurface,
10
12
  titleText: theme.colors.onPrimary,
11
13
  actionItemText: theme.colors.onPrimary,
@@ -3,6 +3,7 @@ import type { GlobalTheme } from '../global';
3
3
  const getTextInputTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
5
  labelBackground: theme.colors.defaultGlobalSurface,
6
+ containerBackground: theme.colors.defaultGlobalSurface,
6
7
  asterisks: {
7
8
  default: theme.colors.onErrorSurface,
8
9
  error: theme.colors.onErrorSurface,
@@ -11,6 +11,7 @@ interface Radii {
11
11
  xlarge: number;
12
12
  xxlarge: number;
13
13
  xxxlarge: number;
14
+ '5xlarge': number;
14
15
  }
15
16
 
16
17
  const getBorderWidths = (baseBorderWidth: number): BorderWidths => ({
@@ -26,6 +27,7 @@ const getRadii = (baseRadius: number): Radii => ({
26
27
  xlarge: baseRadius * 4, // 16
27
28
  xxlarge: baseRadius * 5, // 20
28
29
  xxxlarge: baseRadius * 6, // 24
30
+ '5xlarge': baseRadius * 8, // 32
29
31
  });
30
32
 
31
33
  export { getBorderWidths, getRadii };
@@ -1,4 +1,4 @@
1
- import type { ReactChild } from 'react';
1
+ import { ReactChild } from 'react';
2
2
  import type { StyleProp, ViewStyle } from 'react-native';
3
3
  import type { IconName } from '../Icon';
4
4
  import type { Intent, ThemeVariant } from './StyledButton';
@@ -1,16 +1,17 @@
1
1
  /// <reference types="react" />
2
- import { TouchableOpacity, View } from 'react-native';
2
+ import { TouchableHighlight, View } from 'react-native';
3
3
  import type { Theme } from '@emotion/react';
4
4
  declare type Intent = 'primary' | 'secondary' | 'danger';
5
5
  declare type ThemeVariant = 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'text-primary' | 'text-secondary' | 'text-danger';
6
- declare const StyledButtonContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
6
+ declare const StyledButtonContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableHighlightProps & {
7
7
  theme?: Theme | undefined;
8
8
  as?: import("react").ElementType<any> | undefined;
9
9
  } & {
10
10
  disabled?: boolean | undefined;
11
11
  themeVariant: ThemeVariant;
12
+ loading?: boolean | undefined;
12
13
  }, {}, {
13
- ref?: import("react").Ref<TouchableOpacity> | undefined;
14
+ ref?: import("react").Ref<TouchableHighlight> | undefined;
14
15
  }>;
15
16
  declare const StyledButtonText: import("@emotion/native").StyledComponent<import("../..").TextProps & {
16
17
  theme?: Theme | undefined;
@@ -1,12 +1,12 @@
1
1
  /// <reference types="react" />
2
- import { TouchableOpacity } from 'react-native';
2
+ import { TouchableHighlight } from 'react-native';
3
3
  import type { TouchableOpacityProps } from 'react-native';
4
4
  import type { IconProps } from '../../Icon';
5
- declare const StyledActionItem: import("@emotion/native").StyledComponent<TouchableOpacityProps & {
5
+ declare const StyledActionItem: import("@emotion/native").StyledComponent<import("react-native").TouchableHighlightProps & {
6
6
  theme?: import("@emotion/react").Theme | undefined;
7
7
  as?: import("react").ElementType<any> | undefined;
8
8
  }, {}, {
9
- ref?: import("react").Ref<TouchableOpacity> | undefined;
9
+ ref?: import("react").Ref<TouchableHighlight> | undefined;
10
10
  }>;
11
11
  declare const StyledActionItemText: import("@emotion/native").StyledComponent<import("../../..").TextProps & {
12
12
  theme?: import("@emotion/react").Theme | undefined;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { TouchableOpacity, View } from 'react-native';
2
+ import { TouchableHighlight, View } from 'react-native';
3
3
  declare const StyledPrefixContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
4
4
  theme?: import("@emotion/react").Theme | undefined;
5
5
  as?: import("react").ElementType<any> | undefined;
@@ -18,13 +18,13 @@ declare const StyledTitleContainer: import("@emotion/native").StyledComponent<im
18
18
  }, {}, {
19
19
  ref?: import("react").Ref<View> | undefined;
20
20
  }>;
21
- declare const StyledListItemContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
21
+ declare const StyledListItemContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableHighlightProps & {
22
22
  theme?: import("@emotion/react").Theme | undefined;
23
23
  as?: import("react").ElementType<any> | undefined;
24
24
  } & {
25
25
  themeSelected?: boolean | undefined;
26
26
  themeDisabled?: boolean | undefined;
27
27
  }, {}, {
28
- ref?: import("react").Ref<TouchableOpacity> | undefined;
28
+ ref?: import("react").Ref<TouchableHighlight> | undefined;
29
29
  }>;
30
30
  export { StyledListItemContainer, StyledPrefixContainer, StyledTitleContainer, StyledSuffixContainer, };
@@ -1,15 +1,15 @@
1
1
  /// <reference types="react" />
2
- import { TouchableOpacity, View } from 'react-native';
2
+ import { TouchableHighlight, View } from 'react-native';
3
3
  export declare type Variant = 'full-width' | 'card';
4
4
  export declare type LeadingStatusIntent = 'success' | 'warning' | 'danger' | 'info' | 'archived';
5
- declare const StyledListItemContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
5
+ declare const StyledListItemContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableHighlightProps & {
6
6
  theme?: import("@emotion/react").Theme | undefined;
7
7
  as?: import("react").ElementType<any> | undefined;
8
8
  } & {
9
9
  themeSelected?: boolean | undefined;
10
10
  themeVariant?: Variant | undefined;
11
11
  }, {}, {
12
- ref?: import("react").Ref<TouchableOpacity> | undefined;
12
+ ref?: import("react").Ref<TouchableHighlight> | undefined;
13
13
  }>;
14
14
  declare const StyledContentContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
15
15
  theme?: import("@emotion/react").Theme | undefined;
@@ -18,6 +18,7 @@ declare const getButtonTheme: (theme: GlobalTheme) => {
18
18
  radii: {
19
19
  default: number;
20
20
  utilityRadii: number;
21
+ text: number;
21
22
  };
22
23
  colors: {
23
24
  primary: string;
@@ -29,12 +30,25 @@ declare const getButtonTheme: (theme: GlobalTheme) => {
29
30
  disabledBackground: string;
30
31
  invertedText: string;
31
32
  utilityBackground: string;
33
+ textLoadingBackground: string;
34
+ pressedBackground: {
35
+ filledPrimary: string;
36
+ filledSecondary: string;
37
+ filledDanger: string;
38
+ outlinedPrimary: string;
39
+ outlinedSecondary: string;
40
+ outlineDanger: string;
41
+ textPrimary: string;
42
+ textSecondary: string;
43
+ textDanger: string;
44
+ };
32
45
  };
33
46
  lineHeight: {
34
47
  default: number;
35
48
  };
36
49
  space: {
37
50
  buttonPadding: number;
51
+ textButtonPadding: number;
38
52
  iconPadding: number;
39
53
  utilityPadding: number;
40
54
  };
@@ -15,9 +15,11 @@ declare const getFABTheme: (theme: GlobalTheme) => {
15
15
  };
16
16
  colors: {
17
17
  buttonBackground: string;
18
+ buttonPressedBackground: string;
18
19
  icon: string;
19
20
  headerText: string;
20
21
  actionItemBackground: string;
22
+ actionItemPressedBackground: string;
21
23
  backdropBackground: string;
22
24
  titleText: string;
23
25
  actionItemText: string;
@@ -2,6 +2,7 @@ import type { GlobalTheme } from '../global';
2
2
  declare const getTextInputTheme: (theme: GlobalTheme) => {
3
3
  colors: {
4
4
  labelBackground: string;
5
+ containerBackground: string;
5
6
  asterisks: {
6
7
  default: string;
7
8
  error: string;
@@ -10,6 +10,7 @@ interface Radii {
10
10
  xlarge: number;
11
11
  xxlarge: number;
12
12
  xxxlarge: number;
13
+ '5xlarge': number;
13
14
  }
14
15
  declare const getBorderWidths: (baseBorderWidth: number) => BorderWidths;
15
16
  declare const getRadii: (baseRadius: number) => Radii;