@hero-design/rn 7.16.0-alpha.0 → 7.16.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/assets/fonts/hero-icons.ttf +0 -0
  2. package/es/index.js +39711 -474
  3. package/lib/assets/fonts/hero-icons.ttf +0 -0
  4. package/lib/index.js +39777 -474
  5. package/package.json +2 -2
  6. package/rollup.config.js +2 -0
  7. package/src/components/BottomSheet/Header.tsx +1 -2
  8. package/src/components/BottomSheet/StyledBottomSheet.tsx +18 -23
  9. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +22 -22
  10. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +11 -11
  11. package/src/components/Icon/HeroIcon/selection.json +1 -1
  12. package/src/components/Icon/IconList.ts +0 -1
  13. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +0 -31
  14. package/src/components/Icon/__tests__/index.spec.tsx +0 -5
  15. package/src/components/Icon/index.tsx +9 -24
  16. package/src/components/RichTextEditor/index.tsx +2 -8
  17. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +22 -22
  18. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +20 -20
  19. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +11 -11
  20. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +3 -6
  21. package/src/theme/components/bottomSheet.ts +4 -8
  22. package/src/types.ts +2 -10
  23. package/types/components/BottomSheet/StyledBottomSheet.d.ts +2 -4
  24. package/types/components/Icon/AnimatedIcon.d.ts +5 -0
  25. package/types/components/Icon/IconList.d.ts +1 -1
  26. package/types/components/Icon/index.d.ts +5 -1
  27. package/types/components/Icon/utils.d.ts +1 -1
  28. package/types/components/RichTextEditor/index.d.ts +4 -1
  29. package/types/theme/components/bottomSheet.d.ts +6 -3
  30. package/types/types.d.ts +2 -1
  31. package/src/components/Icon/AnimatedIcon.tsx +0 -46
@@ -126,7 +126,6 @@ const IconList = [
126
126
  'print',
127
127
  'raising-hands',
128
128
  'reply',
129
- 'reply-arrow',
130
129
  'reschedule',
131
130
  'rostering',
132
131
  'save',
@@ -1,36 +1,5 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
- exports[`Icon render correctly with spin prop 1`] = `
4
- <View
5
- collapsable={false}
6
- nativeID="animatedComponent"
7
- style={
8
- Object {
9
- "transform": Array [
10
- Object {
11
- "rotate": "0deg",
12
- },
13
- ],
14
- }
15
- }
16
- >
17
- <HeroIcon
18
- name="sync"
19
- style={
20
- Array [
21
- Object {
22
- "color": "#292a2b",
23
- "fontSize": 24,
24
- },
25
- undefined,
26
- ]
27
- }
28
- themeIntent="text"
29
- themeSize="medium"
30
- />
31
- </View>
32
- `;
33
-
34
3
  exports[`Icon renders correctly 1`] = `
35
4
  <HeroIcon
36
5
  name="home"
@@ -22,9 +22,4 @@ describe('Icon', () => {
22
22
 
23
23
  expect(toJSON()).toMatchSnapshot();
24
24
  });
25
-
26
- it('render correctly with spin prop', () => {
27
- const { toJSON } = renderWithTheme(<Icon icon="sync" spin />);
28
- expect(toJSON()).toMatchSnapshot();
29
- });
30
25
  });
@@ -2,7 +2,6 @@ import React from 'react';
2
2
  import { StyleProp, TextStyle } from 'react-native';
3
3
  import IconList from './IconList';
4
4
  import HeroIcon from './HeroIcon';
5
- import AnimatedIcon from './AnimatedIcon';
6
5
 
7
6
  export type IconName = typeof IconList[number];
8
7
 
@@ -27,10 +26,6 @@ export interface IconProps {
27
26
  * Size of the Icon.
28
27
  */
29
28
  size?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
30
- /**
31
- * Rotate icon with animation.
32
- */
33
- spin?: boolean;
34
29
  /**
35
30
  * Additional style.
36
31
  */
@@ -47,24 +42,14 @@ const Icon = ({
47
42
  size = 'medium',
48
43
  intent = 'text',
49
44
  testID,
50
- spin = false,
51
- }: IconProps) =>
52
- spin ? (
53
- <AnimatedIcon
54
- name={icon}
55
- themeIntent={intent}
56
- themeSize={size}
57
- style={style}
58
- testID={testID}
59
- />
60
- ) : (
61
- <HeroIcon
62
- name={icon}
63
- themeIntent={intent}
64
- themeSize={size}
65
- style={style}
66
- testID={testID}
67
- />
68
- );
45
+ }: IconProps) => (
46
+ <HeroIcon
47
+ name={icon}
48
+ themeIntent={intent}
49
+ themeSize={size}
50
+ style={style}
51
+ testID={testID}
52
+ />
53
+ );
69
54
 
70
55
  export default Icon;
@@ -1,14 +1,8 @@
1
- import { ToolbarButtonName } from './constants';
2
- import Toolbar from './EditorToolbar';
1
+ import RichTextEditor from './RichTextEditor';
3
2
  import MentionList from './MentionList';
4
- import RichTextEditor, {
5
- RichTextEditorProps,
6
- RichTextEditorRef,
7
- } from './RichTextEditor';
3
+ import Toolbar from './EditorToolbar';
8
4
 
9
5
  export default Object.assign(RichTextEditor, {
10
6
  MentionList,
11
7
  Toolbar,
12
8
  });
13
-
14
- export { RichTextEditorProps, RichTextEditorRef, ToolbarButtonName };
@@ -241,9 +241,8 @@ Array [
241
241
  }
242
242
  }
243
243
  />
244
- <RCTSafeAreaView
244
+ <View
245
245
  collapsable={false}
246
- emulateUnlessSupported={true}
247
246
  nativeID="animatedComponent"
248
247
  onLayout={[Function]}
249
248
  style={
@@ -278,19 +277,22 @@ Array [
278
277
  Array [
279
278
  Object {
280
279
  "flexDirection": "row",
281
- "paddingHorizontal": 16,
282
- "paddingVertical": 8,
280
+ "minHeight": 64,
283
281
  },
284
282
  undefined,
285
283
  ]
286
284
  }
287
285
  >
288
286
  <View
287
+ adjacentIcon={true}
289
288
  style={
290
289
  Array [
291
290
  Object {
292
291
  "flex": 1,
293
292
  "justifyContent": "center",
293
+ "paddingLeft": 24,
294
+ "paddingRight": 0,
295
+ "paddingVertical": 8,
294
296
  },
295
297
  undefined,
296
298
  ]
@@ -321,10 +323,8 @@ Array [
321
323
  Array [
322
324
  Object {
323
325
  "alignItems": "center",
324
- "height": 48,
325
326
  "justifyContent": "center",
326
- "marginLeft": 12,
327
- "width": 48,
327
+ "width": 72,
328
328
  },
329
329
  undefined,
330
330
  ]
@@ -355,13 +355,13 @@ Array [
355
355
  Array [
356
356
  Object {
357
357
  "color": "#292a2b",
358
- "fontSize": 20,
358
+ "fontSize": 24,
359
359
  },
360
360
  undefined,
361
361
  ]
362
362
  }
363
363
  themeIntent="text"
364
- themeSize="small"
364
+ themeSize="medium"
365
365
  />
366
366
  </View>
367
367
  </View>
@@ -901,7 +901,7 @@ Array [
901
901
  "flexDirection": "row",
902
902
  "justifyContent": "flex-end",
903
903
  "minHeight": 64,
904
- "paddingHorizontal": 12,
904
+ "paddingHorizontal": 24,
905
905
  "paddingVertical": 8,
906
906
  },
907
907
  undefined,
@@ -953,7 +953,7 @@ Array [
953
953
  </View>
954
954
  </View>
955
955
  </View>
956
- </RCTSafeAreaView>
956
+ </View>
957
957
  </View>
958
958
  </Modal>,
959
959
  ]
@@ -1197,8 +1197,7 @@ Array [
1197
1197
  }
1198
1198
  }
1199
1199
  />
1200
- <RCTSafeAreaView
1201
- emulateUnlessSupported={true}
1200
+ <View
1202
1201
  onLayout={[Function]}
1203
1202
  style={
1204
1203
  Object {
@@ -1232,19 +1231,22 @@ Array [
1232
1231
  Array [
1233
1232
  Object {
1234
1233
  "flexDirection": "row",
1235
- "paddingHorizontal": 16,
1236
- "paddingVertical": 8,
1234
+ "minHeight": 64,
1237
1235
  },
1238
1236
  undefined,
1239
1237
  ]
1240
1238
  }
1241
1239
  >
1242
1240
  <View
1241
+ adjacentIcon={true}
1243
1242
  style={
1244
1243
  Array [
1245
1244
  Object {
1246
1245
  "flex": 1,
1247
1246
  "justifyContent": "center",
1247
+ "paddingLeft": 24,
1248
+ "paddingRight": 0,
1249
+ "paddingVertical": 8,
1248
1250
  },
1249
1251
  undefined,
1250
1252
  ]
@@ -1275,10 +1277,8 @@ Array [
1275
1277
  Array [
1276
1278
  Object {
1277
1279
  "alignItems": "center",
1278
- "height": 48,
1279
1280
  "justifyContent": "center",
1280
- "marginLeft": 12,
1281
- "width": 48,
1281
+ "width": 72,
1282
1282
  },
1283
1283
  undefined,
1284
1284
  ]
@@ -1307,13 +1307,13 @@ Array [
1307
1307
  Array [
1308
1308
  Object {
1309
1309
  "color": "#292a2b",
1310
- "fontSize": 20,
1310
+ "fontSize": 24,
1311
1311
  },
1312
1312
  undefined,
1313
1313
  ]
1314
1314
  }
1315
1315
  themeIntent="text"
1316
- themeSize="small"
1316
+ themeSize="medium"
1317
1317
  />
1318
1318
  </View>
1319
1319
  </View>
@@ -1853,7 +1853,7 @@ Array [
1853
1853
  "flexDirection": "row",
1854
1854
  "justifyContent": "flex-end",
1855
1855
  "minHeight": 64,
1856
- "paddingHorizontal": 12,
1856
+ "paddingHorizontal": 24,
1857
1857
  "paddingVertical": 8,
1858
1858
  },
1859
1859
  undefined,
@@ -1903,7 +1903,7 @@ Array [
1903
1903
  </View>
1904
1904
  </View>
1905
1905
  </View>
1906
- </RCTSafeAreaView>
1906
+ </View>
1907
1907
  </View>
1908
1908
  </Modal>,
1909
1909
  ]
@@ -241,9 +241,8 @@ Array [
241
241
  }
242
242
  }
243
243
  />
244
- <RCTSafeAreaView
244
+ <View
245
245
  collapsable={false}
246
- emulateUnlessSupported={true}
247
246
  nativeID="animatedComponent"
248
247
  onLayout={[Function]}
249
248
  style={
@@ -278,19 +277,22 @@ Array [
278
277
  Array [
279
278
  Object {
280
279
  "flexDirection": "row",
281
- "paddingHorizontal": 16,
282
- "paddingVertical": 8,
280
+ "minHeight": 64,
283
281
  },
284
282
  undefined,
285
283
  ]
286
284
  }
287
285
  >
288
286
  <View
287
+ adjacentIcon={true}
289
288
  style={
290
289
  Array [
291
290
  Object {
292
291
  "flex": 1,
293
292
  "justifyContent": "center",
293
+ "paddingLeft": 24,
294
+ "paddingRight": 0,
295
+ "paddingVertical": 8,
294
296
  },
295
297
  undefined,
296
298
  ]
@@ -321,10 +323,8 @@ Array [
321
323
  Array [
322
324
  Object {
323
325
  "alignItems": "center",
324
- "height": 48,
325
326
  "justifyContent": "center",
326
- "marginLeft": 12,
327
- "width": 48,
327
+ "width": 72,
328
328
  },
329
329
  undefined,
330
330
  ]
@@ -355,13 +355,13 @@ Array [
355
355
  Array [
356
356
  Object {
357
357
  "color": "#292a2b",
358
- "fontSize": 20,
358
+ "fontSize": 24,
359
359
  },
360
360
  undefined,
361
361
  ]
362
362
  }
363
363
  themeIntent="text"
364
- themeSize="small"
364
+ themeSize="medium"
365
365
  />
366
366
  </View>
367
367
  </View>
@@ -852,7 +852,7 @@ Array [
852
852
  </View>
853
853
  </View>
854
854
  </RCTScrollView>
855
- </RCTSafeAreaView>
855
+ </View>
856
856
  </View>
857
857
  </Modal>,
858
858
  ]
@@ -1096,8 +1096,7 @@ Array [
1096
1096
  }
1097
1097
  }
1098
1098
  />
1099
- <RCTSafeAreaView
1100
- emulateUnlessSupported={true}
1099
+ <View
1101
1100
  onLayout={[Function]}
1102
1101
  style={
1103
1102
  Object {
@@ -1131,19 +1130,22 @@ Array [
1131
1130
  Array [
1132
1131
  Object {
1133
1132
  "flexDirection": "row",
1134
- "paddingHorizontal": 16,
1135
- "paddingVertical": 8,
1133
+ "minHeight": 64,
1136
1134
  },
1137
1135
  undefined,
1138
1136
  ]
1139
1137
  }
1140
1138
  >
1141
1139
  <View
1140
+ adjacentIcon={true}
1142
1141
  style={
1143
1142
  Array [
1144
1143
  Object {
1145
1144
  "flex": 1,
1146
1145
  "justifyContent": "center",
1146
+ "paddingLeft": 24,
1147
+ "paddingRight": 0,
1148
+ "paddingVertical": 8,
1147
1149
  },
1148
1150
  undefined,
1149
1151
  ]
@@ -1174,10 +1176,8 @@ Array [
1174
1176
  Array [
1175
1177
  Object {
1176
1178
  "alignItems": "center",
1177
- "height": 48,
1178
1179
  "justifyContent": "center",
1179
- "marginLeft": 12,
1180
- "width": 48,
1180
+ "width": 72,
1181
1181
  },
1182
1182
  undefined,
1183
1183
  ]
@@ -1206,13 +1206,13 @@ Array [
1206
1206
  Array [
1207
1207
  Object {
1208
1208
  "color": "#292a2b",
1209
- "fontSize": 20,
1209
+ "fontSize": 24,
1210
1210
  },
1211
1211
  undefined,
1212
1212
  ]
1213
1213
  }
1214
1214
  themeIntent="text"
1215
- themeSize="small"
1215
+ themeSize="medium"
1216
1216
  />
1217
1217
  </View>
1218
1218
  </View>
@@ -1703,7 +1703,7 @@ Array [
1703
1703
  </View>
1704
1704
  </View>
1705
1705
  </RCTScrollView>
1706
- </RCTSafeAreaView>
1706
+ </View>
1707
1707
  </View>
1708
1708
  </Modal>,
1709
1709
  ]
@@ -276,9 +276,8 @@ exports[`TimePickerIOS renders correctly 1`] = `
276
276
  }
277
277
  }
278
278
  />
279
- <RCTSafeAreaView
279
+ <View
280
280
  collapsable={false}
281
- emulateUnlessSupported={true}
282
281
  nativeID="animatedComponent"
283
282
  onLayout={[Function]}
284
283
  style={
@@ -312,19 +311,22 @@ exports[`TimePickerIOS renders correctly 1`] = `
312
311
  Array [
313
312
  Object {
314
313
  "flexDirection": "row",
315
- "paddingHorizontal": 16,
316
- "paddingVertical": 8,
314
+ "minHeight": 64,
317
315
  },
318
316
  undefined,
319
317
  ]
320
318
  }
321
319
  >
322
320
  <View
321
+ adjacentIcon={true}
323
322
  style={
324
323
  Array [
325
324
  Object {
326
325
  "flex": 1,
327
326
  "justifyContent": "center",
327
+ "paddingLeft": 24,
328
+ "paddingRight": 0,
329
+ "paddingVertical": 8,
328
330
  },
329
331
  undefined,
330
332
  ]
@@ -355,10 +357,8 @@ exports[`TimePickerIOS renders correctly 1`] = `
355
357
  Array [
356
358
  Object {
357
359
  "alignItems": "center",
358
- "height": 48,
359
360
  "justifyContent": "center",
360
- "marginLeft": 12,
361
- "width": 48,
361
+ "width": 72,
362
362
  },
363
363
  undefined,
364
364
  ]
@@ -389,13 +389,13 @@ exports[`TimePickerIOS renders correctly 1`] = `
389
389
  Array [
390
390
  Object {
391
391
  "color": "#292a2b",
392
- "fontSize": 20,
392
+ "fontSize": 24,
393
393
  },
394
394
  undefined,
395
395
  ]
396
396
  }
397
397
  themeIntent="text"
398
- themeSize="small"
398
+ themeSize="medium"
399
399
  />
400
400
  </View>
401
401
  </View>
@@ -456,7 +456,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
456
456
  "flexDirection": "row",
457
457
  "justifyContent": "flex-end",
458
458
  "minHeight": 64,
459
- "paddingHorizontal": 12,
459
+ "paddingHorizontal": 24,
460
460
  "paddingVertical": 8,
461
461
  },
462
462
  undefined,
@@ -503,7 +503,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
503
503
  </View>
504
504
  </View>
505
505
  </View>
506
- </RCTSafeAreaView>
506
+ </View>
507
507
  </View>
508
508
  </View>
509
509
  </View>
@@ -135,15 +135,12 @@ Object {
135
135
  "radius": 4.65,
136
136
  },
137
137
  "sizes": Object {
138
- "closeIcon": 48,
138
+ "closeIconWidth": 72,
139
139
  "sectionHeight": 64,
140
140
  },
141
141
  "space": Object {
142
- "closeIconMargin": 12,
143
- "footerHorizontalPadding": 12,
144
- "footerVerticalPadding": 8,
145
- "headerWrapperHorizontalPadding": 16,
146
- "headerWrapperVerticalPadding": 8,
142
+ "horizontalPadding": 24,
143
+ "verticalPadding": 8,
147
144
  },
148
145
  },
149
146
  "button": Object {
@@ -1,4 +1,3 @@
1
- import { scale } from '../../utils/scale';
2
1
  import { GlobalTheme } from '../global';
3
2
 
4
3
  const getBottomSheetTheme = (theme: GlobalTheme) => {
@@ -9,16 +8,13 @@ const getBottomSheetTheme = (theme: GlobalTheme) => {
9
8
  };
10
9
 
11
10
  const sizes = {
12
- sectionHeight: scale(64),
13
- closeIcon: scale(48),
11
+ sectionHeight: 64,
12
+ closeIconWidth: 72,
14
13
  };
15
14
 
16
15
  const space = {
17
- headerWrapperVerticalPadding: theme.space.small,
18
- headerWrapperHorizontalPadding: theme.space.medium,
19
- closeIconMargin: theme.space.smallMedium,
20
- footerVerticalPadding: theme.space.small,
21
- footerHorizontalPadding: theme.space.smallMedium,
16
+ horizontalPadding: theme.space.large,
17
+ verticalPadding: theme.space.small,
22
18
  };
23
19
 
24
20
  const shadows = {
package/src/types.ts CHANGED
@@ -3,23 +3,15 @@ import { IconName } from './components/Icon';
3
3
  import { SingleSelectProps, MultiSelectProps } from './components/Select';
4
4
  import { TabType } from './components/Tabs';
5
5
  import { TextInputProps } from './components/TextInput';
6
- import {
7
- RichTextEditorRef,
8
- RichTextEditorProps,
9
- ToolbarButtonName,
10
- } from './components/RichTextEditor';
11
6
 
12
7
  import { Theme } from './theme';
13
8
 
14
9
  export type {
15
10
  BottomNavigationTabType,
16
11
  IconName,
17
- MultiSelectProps,
18
- RichTextEditorProps,
19
- RichTextEditorRef,
20
12
  SingleSelectProps,
13
+ MultiSelectProps,
21
14
  TabType,
22
- TextInputProps,
23
15
  Theme,
24
- ToolbarButtonName,
16
+ TextInputProps,
25
17
  };
@@ -1,11 +1,11 @@
1
- import { Animated, View, ViewProps } from 'react-native';
1
+ import { Animated, SafeAreaView, View, ViewProps } from 'react-native';
2
2
  declare const StyledWrapper: import("@emotion/native").StyledComponent<ViewProps & {
3
3
  theme?: import("@emotion/react").Theme | undefined;
4
4
  as?: import("react").ElementType<any> | undefined;
5
5
  }, {}, {
6
6
  ref?: import("react").Ref<View> | undefined;
7
7
  }>;
8
- declare const StyledBottomSheet: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
8
+ declare const StyledBottomSheet: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<SafeAreaView>> & {
9
9
  children?: import("react").ReactNode;
10
10
  } & {
11
11
  theme?: import("@emotion/react").Theme | undefined;
@@ -26,8 +26,6 @@ declare const StyledHeaderWrapper: import("@emotion/native").StyledComponent<Vie
26
26
  declare const StyledHeader: import("@emotion/native").StyledComponent<ViewProps & {
27
27
  theme?: import("@emotion/react").Theme | undefined;
28
28
  as?: import("react").ElementType<any> | undefined;
29
- } & {
30
- adjacentIcon: boolean;
31
29
  }, {}, {
32
30
  ref?: import("react").Ref<View> | undefined;
33
31
  }>;
@@ -0,0 +1,5 @@
1
+ import { ComponentProps } from 'react';
2
+ import StyledHeroIcon from './HeroIcon';
3
+ declare type AnimatedIconProps = ComponentProps<typeof StyledHeroIcon>;
4
+ declare const AnimatedIcon: ({ style, ...otherProps }: AnimatedIconProps) => JSX.Element;
5
+ export default AnimatedIcon;
@@ -1,2 +1,2 @@
1
- declare const IconList: readonly ["activate", "add-emoji", "add-person", "adjustment", "alignment", "archive", "bank", "bell", "billing", "bookmark", "box-check", "box", "buildings", "cake", "calendar-clock", "calendar", "candy-box-menu", "carat-down-small", "carat-down", "carat-left", "carat-right", "carat-up", "circle-add", "circle-cancel", "circle-check", "circle-down", "circle-info", "circle-left", "circle-ok", "circle-pencil", "circle-question", "circle-remove", "circle-right", "circle-up", "circle-warning", "clock", "clock-3", "cloud-download", "cloud-upload", "cog", "coin", "contacts", "credit-card", "diamond", "direction-arrows", "directory", "document", "dollar-coin-shine", "double-buildings", "edit-template", "envelope", "expense", "eye-circle", "eye-invisible", "eye", "face-meh", "face-sad", "face-smiley", "feed", "feedbacks", "file-certified", "file-clone", "file-copy", "file-csv", "file-dispose", "file-doc", "file-excel", "file-export", "file-lock", "file-pdf", "file-powerpoint", "file-search", "file-secured", "file-sheets", "file-slide", "file-verified", "file-word", "file", "filter-outlined", "folder-user", "folder", "format-bold", "format-heading1", "format-heading2", "format-italic", "format-list-bulleted", "format-list-numbered", "format-underlined", "funnel-filter", "global-dollar", "globe", "graduation-cap", "graph", "happy-sun", "health-bag", "heart", "home", "image", "import", "incident-siren", "instapay", "list", "loading", "loading-2", "location", "lock", "looks-one", "looks-two", "mandatory", "media-content", "menu", "moneybag", "moon", "multiple-stars", "multiple-users", "node", "open-folder", "paperclip", "payment-summary", "pencil", "phone", "piggy-bank", "plane", "play-circle", "print", "raising-hands", "reply", "reschedule", "rostering", "save", "schedule-send", "schedule", "search-person", "send", "speaker", "star-award", "star-badge", "star-medal", "star", "steps-circle", "stopwatch", "suitcase", "survey", "swag", "switch", "tag", "target", "teams", "timesheet", "touch-id", "trash-bin", "unlock", "user", "video-1", "video-2", "activate-outlined", "add-person-outlined", "add-section-outlined", "add-time-outlined", "add", "adjustment-outlined", "alignment-2-outlined", "alignment-outlined", "all-caps", "arrow-down", "arrow-left", "arrow-right", "arrow-up", "at-sign", "bell-outlined", "billing-outlined", "body-outlined", "bold", "bookmark-outlined", "box-check-outlined", "box-outlined", "bullet-points", "cake-outlined", "calendar-dates-outlined", "calendar-star-outlined", "camera-outlined", "cancel", "checkmark", "circle-add-outlined", "circle-cancel-outlined", "circle-down-outlined", "circle-info-outlined", "circle-left-outlined", "circle-ok-outlined", "circle-question-outlined", "circle-remove-outlined", "circle-right-outlined", "circle-up-outlined", "circle-warning-outlined", "clock-2-outlined", "clock-outlined", "cog-outlined", "coin-outlined", "comment-outlined", "contacts-outlined", "credit-card-outlined", "direction-arrows-outlined", "directory-outlined", "document-outlined", "dollar-coin-shine-outlined", "dollar-sign", "double-buildings-outlined", "double-left-arrows", "double-right-arrows", "download-outlined", "edit-template-outlined", "email-outlined", "enter-arrow", "envelope-outlined", "expense-outlined", "external-link", "eye-invisible-outlined", "eye-outlined", "face-id", "face-meh-outlined", "face-open-smiley-outlined", "face-sad-outlined", "face-smiley-outlined", "feed-outlined", "file-certified-outlined", "file-clone-outlined", "file-copy-outlined", "file-dispose-outlined", "file-download-outlined", "file-export-outlined", "file-lock-outlined", "file-outlined", "file-search-outlined", "file-secured-outlined", "file-verified-outlined", "folder-outlined", "folder-user-outlined", "funnel-filter-outline", "graph-outlined", "happy-sun-outlined", "health-bag-outlined", "heart-outlined", "home-outlined", "image-outlined", "import-outlined", "instapay-outlined", "italic", "link-1", "link-2", "list-outlined", "location-outlined", "lock-outlined", "locked-file-outlined", "log-out", "media-content-outlined", "menu-close", "menu-expand", "menu-fold-outlined", "menu-unfold-outlined", "moneybag-outlined", "moon-outlined", "more-horizontal", "more-vertical", "multiple-folders-outlined", "multiple-users-outlined", "node-outlined", "number-points", "number", "payment-summary-outlined", "payslip-outlined", "pencil-outlined", "percentage", "phone-outlined", "piggy-bank-outlined", "plane-outlined", "play-circle-outlined", "print-outlined", "qr-code-outlined", "re-assign", "redeem", "refresh", "remove", "reply-outlined", "restart", "return-arrow", "rostering-outlined", "save-outlined", "schedule-outlined", "search-outlined", "send-outlined", "share-1", "share-2", "single-down-arrow", "single-left-arrow", "single-right-arrow", "single-up-arrow", "speaker-outlined", "star-outlined", "stopwatch-outlined", "strikethrough", "suitcase-outlined", "survey-outlined", "switch-outlined", "sync", "target-outlined", "timesheet-outlined", "transfer", "trash-bin-outlined", "unavailable", "underline", "unlock-outlined", "upload-outlined", "user-circle-outlined", "user-outlined", "user-rectangle-outlined", "video-1-outlined", "video-2-outlined", "wallet-outlined", "warning"];
1
+ declare const IconList: readonly ["activate", "add-emoji", "add-person", "adjustment", "alignment", "archive", "bank", "bell", "billing", "bookmark", "box-check", "box", "buildings", "cake", "calendar-clock", "calendar", "candy-box-menu", "carat-down-small", "carat-down", "carat-left", "carat-right", "carat-up", "circle-add", "circle-cancel", "circle-check", "circle-down", "circle-info", "circle-left", "circle-ok", "circle-pencil", "circle-question", "circle-remove", "circle-right", "circle-up", "circle-warning", "clock", "clock-3", "cloud-download", "cloud-upload", "cog", "coin", "contacts", "credit-card", "diamond", "direction-arrows", "directory", "document", "dollar-coin-shine", "double-buildings", "edit-template", "envelope", "expense", "eye-circle", "eye-invisible", "eye", "face-meh", "face-sad", "face-smiley", "feed", "feedbacks", "file-certified", "file-clone", "file-copy", "file-csv", "file-dispose", "file-doc", "file-excel", "file-export", "file-lock", "file-pdf", "file-powerpoint", "file-search", "file-secured", "file-sheets", "file-slide", "file-verified", "file-word", "file", "filter-outlined", "folder-user", "folder", "format-bold", "format-heading1", "format-heading2", "format-italic", "format-list-bulleted", "format-list-numbered", "format-underlined", "funnel-filter", "global-dollar", "globe", "graduation-cap", "graph", "happy-sun", "health-bag", "heart", "home", "image", "import", "incident-siren", "instapay", "list", "loading", "loading-2", "location", "lock", "looks-one", "looks-two", "mandatory", "media-content", "menu", "moneybag", "moon", "multiple-stars", "multiple-users", "node", "open-folder", "paperclip", "payment-summary", "pencil", "phone", "piggy-bank", "plane", "play-circle", "print", "raising-hands", "reply", "reply-arrow", "reschedule", "rostering", "save", "schedule-send", "schedule", "search-person", "send", "speaker", "star-award", "star-badge", "star-medal", "star", "steps-circle", "stopwatch", "suitcase", "survey", "swag", "switch", "tag", "target", "teams", "timesheet", "touch-id", "trash-bin", "unlock", "user", "video-1", "video-2", "activate-outlined", "add-person-outlined", "add-section-outlined", "add-time-outlined", "add", "adjustment-outlined", "alignment-2-outlined", "alignment-outlined", "all-caps", "arrow-down", "arrow-left", "arrow-right", "arrow-up", "at-sign", "bell-outlined", "billing-outlined", "body-outlined", "bold", "bookmark-outlined", "box-check-outlined", "box-outlined", "bullet-points", "cake-outlined", "calendar-dates-outlined", "calendar-star-outlined", "camera-outlined", "cancel", "checkmark", "circle-add-outlined", "circle-cancel-outlined", "circle-down-outlined", "circle-info-outlined", "circle-left-outlined", "circle-ok-outlined", "circle-question-outlined", "circle-remove-outlined", "circle-right-outlined", "circle-up-outlined", "circle-warning-outlined", "clock-2-outlined", "clock-outlined", "cog-outlined", "coin-outlined", "comment-outlined", "contacts-outlined", "credit-card-outlined", "direction-arrows-outlined", "directory-outlined", "document-outlined", "dollar-coin-shine-outlined", "dollar-sign", "double-buildings-outlined", "double-left-arrows", "double-right-arrows", "download-outlined", "edit-template-outlined", "email-outlined", "enter-arrow", "envelope-outlined", "expense-outlined", "external-link", "eye-invisible-outlined", "eye-outlined", "face-id", "face-meh-outlined", "face-open-smiley-outlined", "face-sad-outlined", "face-smiley-outlined", "feed-outlined", "file-certified-outlined", "file-clone-outlined", "file-copy-outlined", "file-dispose-outlined", "file-download-outlined", "file-export-outlined", "file-lock-outlined", "file-outlined", "file-search-outlined", "file-secured-outlined", "file-verified-outlined", "folder-outlined", "folder-user-outlined", "funnel-filter-outline", "graph-outlined", "happy-sun-outlined", "health-bag-outlined", "heart-outlined", "home-outlined", "image-outlined", "import-outlined", "instapay-outlined", "italic", "link-1", "link-2", "list-outlined", "location-outlined", "lock-outlined", "locked-file-outlined", "log-out", "media-content-outlined", "menu-close", "menu-expand", "menu-fold-outlined", "menu-unfold-outlined", "moneybag-outlined", "moon-outlined", "more-horizontal", "more-vertical", "multiple-folders-outlined", "multiple-users-outlined", "node-outlined", "number-points", "number", "payment-summary-outlined", "payslip-outlined", "pencil-outlined", "percentage", "phone-outlined", "piggy-bank-outlined", "plane-outlined", "play-circle-outlined", "print-outlined", "qr-code-outlined", "re-assign", "redeem", "refresh", "remove", "reply-outlined", "restart", "return-arrow", "rostering-outlined", "save-outlined", "schedule-outlined", "search-outlined", "send-outlined", "share-1", "share-2", "single-down-arrow", "single-left-arrow", "single-right-arrow", "single-up-arrow", "speaker-outlined", "star-outlined", "stopwatch-outlined", "strikethrough", "suitcase-outlined", "survey-outlined", "switch-outlined", "sync", "target-outlined", "timesheet-outlined", "transfer", "trash-bin-outlined", "unavailable", "underline", "unlock-outlined", "upload-outlined", "user-circle-outlined", "user-outlined", "user-rectangle-outlined", "video-1-outlined", "video-2-outlined", "wallet-outlined", "warning"];
2
2
  export default IconList;
@@ -14,6 +14,10 @@ export interface IconProps {
14
14
  * Size of the Icon.
15
15
  */
16
16
  size?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
17
+ /**
18
+ * Rotate icon with animation.
19
+ */
20
+ spin?: boolean;
17
21
  /**
18
22
  * Additional style.
19
23
  */
@@ -23,5 +27,5 @@ export interface IconProps {
23
27
  */
24
28
  testID?: string;
25
29
  }
26
- declare const Icon: ({ icon, style, size, intent, testID, }: IconProps) => JSX.Element;
30
+ declare const Icon: ({ icon, style, size, intent, testID, spin, }: IconProps) => JSX.Element;
27
31
  export default Icon;