@hero-design/rn 7.17.0 → 7.17.1

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 (84) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/es/index.js +107 -99
  3. package/lib/index.js +107 -99
  4. package/package.json +2 -2
  5. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +12 -12
  6. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +18 -18
  7. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +26 -26
  8. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +3 -3
  9. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  10. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +1 -1
  11. package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +2 -2
  12. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
  13. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
  14. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +2 -2
  15. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
  16. package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
  17. package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +1 -1
  18. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +67 -67
  19. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +12 -12
  20. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +1 -1
  21. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +1 -1
  22. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  23. package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +1 -1
  24. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
  25. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +5 -5
  26. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +12 -12
  27. package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +12 -12
  28. package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  29. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  30. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +28 -28
  31. package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +2 -2
  32. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +3 -3
  33. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
  34. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  35. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +3 -3
  36. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +20 -20
  37. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +6 -6
  38. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +12 -12
  39. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +4 -4
  40. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +22 -22
  41. package/src/components/Progress/ProgressCircle.tsx +25 -22
  42. package/src/components/Progress/StyledProgressCircle.tsx +33 -28
  43. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +102 -92
  44. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +5 -5
  45. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +6 -6
  46. package/src/components/Radio/__tests__/__snapshots__/StyledRadio.spec.tsx.snap +3 -3
  47. package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +11 -11
  48. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +6 -6
  49. package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +1 -1
  50. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +9 -9
  51. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +3 -3
  52. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +42 -42
  53. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +121 -121
  54. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +2 -2
  55. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +36 -36
  56. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +94 -94
  57. package/src/components/Select/__tests__/__snapshots__/StyledSelect.spec.tsx.snap +2 -2
  58. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +4 -4
  59. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +8 -8
  60. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  61. package/src/components/Switch/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +1 -1
  62. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  63. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +6 -6
  64. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +8 -8
  65. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +8 -8
  66. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +50 -50
  67. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +87 -87
  68. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +5 -5
  69. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +12 -12
  70. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +22 -22
  71. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +12 -12
  72. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +8 -8
  73. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +13 -13
  74. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +142 -143
  75. package/src/theme/components/alert.ts +3 -3
  76. package/src/theme/components/badge.ts +1 -1
  77. package/src/theme/components/card.ts +4 -4
  78. package/src/theme/components/list.ts +4 -4
  79. package/src/theme/components/pinInput.ts +2 -2
  80. package/src/theme/components/progress.ts +5 -5
  81. package/src/theme/components/toast.ts +3 -3
  82. package/src/theme/global/colors.ts +40 -39
  83. package/types/components/Progress/StyledProgressCircle.d.ts +12 -6
  84. package/types/theme/components/progress.d.ts +1 -2
@@ -5,9 +5,9 @@ const getToastTheme = (theme: GlobalTheme) => {
5
5
  const colors = {
6
6
  success: theme.colors.success,
7
7
  warning: theme.colors.warning,
8
- error: theme.colors.danger,
9
- info: theme.colors.infoMediumLight,
10
- divider: theme.colors.backgroundLight,
8
+ error: theme.colors.dangerLight,
9
+ info: theme.colors.infoLight,
10
+ divider: theme.colors.outline,
11
11
  };
12
12
 
13
13
  const sizes = {
@@ -1,48 +1,49 @@
1
- import palette, {
2
- defaultMobilePalette as mobilePalette,
1
+ import {
2
+ defaultMobilePalette as palette,
3
+ swagPalette,
3
4
  } from '@hero-design/colors';
4
5
 
5
6
  const systemPalette = {
6
- primary: palette.violet,
7
- primaryLight: palette.violetLight60,
8
- primaryDark: palette.purpleDark15,
9
- primaryBackground: palette.violetLight90,
10
- primaryBackgroundDark: mobilePalette.maasstrichtBlueLight30,
11
- secondary: palette.dodgerBlue,
12
- secondaryLight: palette.dodgerBlueLight75,
13
- secondaryBackground: palette.dodgerBlueLight90,
14
- info: palette.dodgerBlue,
15
- infoMediumLight: mobilePalette.vodka,
16
- infoLight: palette.dodgerBlueLight75,
17
- infoBackground: palette.dodgerBlueLight90,
18
- success: palette.green,
19
- successLight: mobilePalette.emerald,
20
- successDark: palette.greenDark30,
21
- successBackground: palette.grotesqueGreenLight90,
22
- danger: palette.red,
23
- dangerMediumLight: mobilePalette.apple,
24
- dangerLight: palette.redLight60,
25
- dangerBackground: palette.redLight90,
26
- warning: palette.orange,
27
- warningLight: mobilePalette.mellowApricot,
28
- warningDark: palette.orangeDark15,
29
- warningBackground: palette.orangeLight90,
7
+ primary: swagPalette.violet,
8
+ primaryLight: swagPalette.violetLight50, // no longer needed after revising Button
9
+ primaryDark: swagPalette.scarletGumLight30, // DEPRECATED
10
+ primaryBackground: swagPalette.violetLight90,
11
+ primaryBackgroundDark: palette.maasstrichtBlueLight30,
12
+ secondary: swagPalette.ultramarineBlue, // no longer needed after revising Button
13
+ secondaryLight: swagPalette.vodka, // no longer needed after revising Button
14
+ secondaryBackground: swagPalette.aliceBlue, // no longer needed after revising Button
15
+ info: palette.ultramarineBlue,
16
+ infoMediumLight: palette.vodka, // DEPRECATED, use infoLight instead
17
+ infoLight: palette.vodka,
18
+ infoBackground: palette.aliceBlue,
19
+ success: palette.emerald,
20
+ successLight: palette.emerald, // DEPRECATED, use success instead
21
+ successDark: palette.pineGreen,
22
+ successBackground: palette.honeydew,
23
+ danger: palette.vermilion,
24
+ dangerMediumLight: palette.apple, // should be dangerDark?
25
+ dangerLight: palette.pastelRed,
26
+ dangerBackground: palette.linen,
27
+ warning: palette.mellowApricot,
28
+ warningLight: palette.mellowApricot, // DEPRECATED, use warning instead
29
+ warningDark: palette.deepSaffron,
30
+ warningBackground: palette.seashell,
30
31
  platformBackground: palette.white,
31
- backgroundLight: palette.greyLight95,
32
- backgroundDark: palette.greyDark75,
33
- text: palette.greyDark75, // should be Maastricht Blue
34
- subduedText: palette.greyDark30,
35
- disabledText: palette.greyDark15,
36
- disabledLightText: palette.greyLight45,
32
+ backgroundLight: palette.greyLight90,
33
+ backgroundDark: palette.maasstrichtBlue,
34
+ text: palette.maasstrichtBlue,
35
+ subduedText: palette.maasstrichtBlueLight30, // secondary
36
+ disabledText: palette.maasstrichtBlueLight50, // readonly
37
+ disabledLightText: palette.greyLight30, // disabled
37
38
  invertedText: palette.white,
38
- outline: palette.greyLight60,
39
- archived: palette.greyLight45,
40
- archivedLight: mobilePalette.greyLight30,
41
- archivedDark: mobilePalette.sonicSilver,
42
- archivedBackground: mobilePalette.antiFlashWhite,
39
+ outline: palette.greyLight75, // divider
40
+ archived: palette.greyLight45, // no usage
41
+ archivedLight: palette.greyLight30,
42
+ archivedDark: palette.sonicSilver, // should replace archived as archived has no usage?
43
+ archivedBackground: palette.antiFlashWhite,
43
44
  black: palette.black,
44
- inactiveBackground: palette.greyDark30,
45
- shadow: palette.greyLight60,
45
+ inactiveBackground: palette.maasstrichtBlueLight50,
46
+ shadow: palette.greyLight45, // waiting for new color
46
47
  };
47
48
 
48
49
  type SystemPalette = typeof systemPalette;
@@ -1,12 +1,18 @@
1
1
  import { View, ViewProps } from 'react-native';
2
2
  import { ThemeIntent } from './types';
3
- declare const HalfCircleWrapper: import("@emotion/native").StyledComponent<ViewProps & {
3
+ declare const StyledContainer: import("@emotion/native").StyledComponent<ViewProps & {
4
4
  theme?: import("@emotion/react").Theme | undefined;
5
5
  as?: import("react").ElementType<any> | undefined;
6
6
  }, {}, {
7
7
  ref?: import("react").Ref<View> | undefined;
8
8
  }>;
9
- declare const HalfCircleInnerFG: import("@emotion/native").StyledComponent<ViewProps & {
9
+ declare const StyledHalfCircleWrapper: import("@emotion/native").StyledComponent<ViewProps & {
10
+ theme?: import("@emotion/react").Theme | undefined;
11
+ as?: import("react").ElementType<any> | undefined;
12
+ }, {}, {
13
+ ref?: import("react").Ref<View> | undefined;
14
+ }>;
15
+ declare const StyledHalfCircleInnerFG: import("@emotion/native").StyledComponent<ViewProps & {
10
16
  theme?: import("@emotion/react").Theme | undefined;
11
17
  as?: import("react").ElementType<any> | undefined;
12
18
  } & {
@@ -14,19 +20,19 @@ declare const HalfCircleInnerFG: import("@emotion/native").StyledComponent<ViewP
14
20
  }, {}, {
15
21
  ref?: import("react").Ref<View> | undefined;
16
22
  }>;
17
- declare const HalfCircleInnerBG: import("@emotion/native").StyledComponent<ViewProps & {
23
+ declare const StyledHalfCircleInnerBG: import("@emotion/native").StyledComponent<ViewProps & {
18
24
  theme?: import("@emotion/react").Theme | undefined;
19
25
  as?: import("react").ElementType<any> | undefined;
20
26
  }, {}, {
21
27
  ref?: import("react").Ref<View> | undefined;
22
28
  }>;
23
- declare const DonutCircle: import("@emotion/native").StyledComponent<ViewProps & {
29
+ declare const StyledDonutCircle: import("@emotion/native").StyledComponent<ViewProps & {
24
30
  theme?: import("@emotion/react").Theme | undefined;
25
31
  as?: import("react").ElementType<any> | undefined;
26
32
  }, {}, {
27
33
  ref?: import("react").Ref<View> | undefined;
28
34
  }>;
29
- declare const StrokeEnd: import("@emotion/native").StyledComponent<ViewProps & {
35
+ declare const StyledStrokeEnd: import("@emotion/native").StyledComponent<ViewProps & {
30
36
  theme?: import("@emotion/react").Theme | undefined;
31
37
  as?: import("react").ElementType<any> | undefined;
32
38
  } & {
@@ -34,4 +40,4 @@ declare const StrokeEnd: import("@emotion/native").StyledComponent<ViewProps & {
34
40
  }, {}, {
35
41
  ref?: import("react").Ref<View> | undefined;
36
42
  }>;
37
- export { DonutCircle, HalfCircleWrapper, HalfCircleInnerFG, HalfCircleInnerBG, StrokeEnd, };
43
+ export { StyledContainer, StyledDonutCircle, StyledHalfCircleWrapper, StyledHalfCircleInnerFG, StyledHalfCircleInnerBG, StyledStrokeEnd, };
@@ -10,8 +10,7 @@ declare const getProgressTheme: (theme: GlobalTheme) => {
10
10
  innerBackground: string;
11
11
  };
12
12
  sizes: {
13
- radius: number;
14
- strokeWidth: number;
13
+ circleWidth: number;
15
14
  barHeight: number;
16
15
  };
17
16
  radii: {