@hero-design/rn 8.91.4 → 8.91.5

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 (67) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/CHANGELOG.md +16 -0
  3. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  4. package/es/index.js +418 -408
  5. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  6. package/lib/index.js +418 -408
  7. package/package.json +1 -1
  8. package/src/components/Alert/StyledAlert.tsx +1 -0
  9. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +56 -0
  10. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +8 -10
  11. package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +116 -145
  12. package/src/components/Avatar/StyledAvatar.tsx +1 -1
  13. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +4 -5
  14. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +8 -10
  15. package/src/components/BottomNavigation/StyledBottomNavigation.tsx +3 -5
  16. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +6 -4
  17. package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +28 -28
  18. package/src/components/FloatingIsland/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
  19. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  20. package/src/components/Icon/IconList.ts +1 -0
  21. package/src/components/List/StyledListItem.tsx +1 -5
  22. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +8 -10
  23. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +6 -6
  24. package/src/components/MapPin/StyledMapPin.tsx +14 -3
  25. package/src/components/MapPin/__tests__/__snapshots__/index.spec.tsx.snap +58 -65
  26. package/src/components/MapPin/index.tsx +7 -8
  27. package/src/components/Search/StyledSearch.tsx +1 -4
  28. package/src/components/Search/__tests__/__snapshots__/SearchOneLine.spec.tsx.snap +3 -2
  29. package/src/components/Search/__tests__/__snapshots__/SearchTwoLine.spec.tsx.snap +3 -2
  30. package/src/components/Toast/StyledToast.tsx +1 -5
  31. package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +21 -21
  32. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +59 -32
  33. package/src/theme/components/alert.ts +5 -1
  34. package/src/theme/components/avatar.ts +1 -1
  35. package/src/theme/components/bottomNavigation.ts +7 -5
  36. package/src/theme/components/chip.ts +2 -2
  37. package/src/theme/components/floatingIsland.ts +1 -1
  38. package/src/theme/components/list.ts +1 -7
  39. package/src/theme/components/mapPin.ts +6 -2
  40. package/src/theme/components/search.ts +1 -5
  41. package/src/theme/components/toast.ts +1 -5
  42. package/src/theme/global/colors/eBens.ts +3 -0
  43. package/src/theme/global/colors/jobs.ts +3 -0
  44. package/src/theme/global/colors/swag.ts +3 -0
  45. package/src/theme/global/colors/swagDark.ts +3 -0
  46. package/src/theme/global/colors/wallet.ts +3 -0
  47. package/src/theme/global/colors/work.ts +3 -0
  48. package/stats/8.91.5/rn-stats.html +4842 -0
  49. package/types/components/Avatar/StyledAvatar.d.ts +2 -2
  50. package/types/components/Icon/IconList.d.ts +1 -1
  51. package/types/components/Icon/index.d.ts +1 -1
  52. package/types/components/MapPin/StyledMapPin.d.ts +12 -2
  53. package/types/components/TextInput/index.d.ts +1 -1
  54. package/types/theme/components/alert.d.ts +3 -0
  55. package/types/theme/components/avatar.d.ts +1 -1
  56. package/types/theme/components/bottomNavigation.d.ts +5 -7
  57. package/types/theme/components/chip.d.ts +1 -1
  58. package/types/theme/components/list.d.ts +1 -10
  59. package/types/theme/components/mapPin.d.ts +6 -2
  60. package/types/theme/components/search.d.ts +1 -8
  61. package/types/theme/components/toast.d.ts +1 -8
  62. package/types/theme/global/colors/eBens.d.ts +3 -0
  63. package/types/theme/global/colors/jobs.d.ts +3 -0
  64. package/types/theme/global/colors/swag.d.ts +3 -0
  65. package/types/theme/global/colors/swagDark.d.ts +3 -0
  66. package/types/theme/global/colors/wallet.d.ts +3 -0
  67. package/types/theme/global/colors/work.d.ts +3 -0
@@ -4,6 +4,11 @@ const getBottomNavigationTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
5
  shadow: theme.colors.primary,
6
6
  background: theme.colors.defaultGlobalSurface,
7
+ borderTop: theme.colors.secondaryOutline,
8
+ };
9
+
10
+ const borderWidths = {
11
+ borderTop: theme.borderWidths.base,
7
12
  };
8
13
 
9
14
  const sizes = {
@@ -11,17 +16,14 @@ const getBottomNavigationTheme = (theme: GlobalTheme) => {
11
16
  };
12
17
 
13
18
  const shadows = {
14
- offset: { width: 0, height: 3 },
15
- opacity: 0.27,
16
- radius: 4.65,
17
- elevation: 10,
19
+ wrapper: theme.shadows.tabBar,
18
20
  };
19
21
 
20
22
  const space = {
21
23
  titleMarginTop: theme.space.xsmall,
22
24
  };
23
25
 
24
- return { colors, shadows, sizes, space };
26
+ return { colors, borderWidths, shadows, sizes, space };
25
27
  };
26
28
 
27
29
  export default getBottomNavigationTheme;
@@ -2,7 +2,7 @@ import type { GlobalTheme } from '../global';
2
2
 
3
3
  const getChipTheme = (theme: GlobalTheme) => {
4
4
  const colors = {
5
- secondaryBackground: theme.colors.highlightedSurface,
5
+ secondaryBackground: theme.colors.decorativeSecondarySurface,
6
6
  filledBackground: theme.colors.defaultGlobalSurface,
7
7
  wrapperSelectedBorder: 'transparent',
8
8
  outlinedDefaultBackground: theme.colors.defaultGlobalSurface,
@@ -30,7 +30,7 @@ const getChipTheme = (theme: GlobalTheme) => {
30
30
  };
31
31
 
32
32
  const shadows = {
33
- filledWrapper: theme.shadows.default,
33
+ filledWrapper: theme.shadows.cardDrawer,
34
34
  };
35
35
 
36
36
  const fontSizes = {
@@ -10,7 +10,7 @@ const getFloatingIslandTheme = (theme: GlobalTheme) => {
10
10
  };
11
11
 
12
12
  const shadows = {
13
- wrapper: theme.shadows.default,
13
+ wrapper: theme.shadows.cardDrawer,
14
14
  };
15
15
 
16
16
  const space = {
@@ -28,13 +28,7 @@ const getListTheme = (theme: GlobalTheme) => {
28
28
  };
29
29
 
30
30
  const shadows = {
31
- card: {
32
- offset: theme.shadows.default.shadowOffset,
33
- elevation: theme.shadows.default.elevation,
34
- color: theme.shadows.default.shadowColor,
35
- radius: theme.shadows.default.shadowRadius,
36
- opacity: theme.shadows.default.shadowOpacity,
37
- },
31
+ card: theme.shadows.cardDrawer,
38
32
  };
39
33
 
40
34
  const widths = {
@@ -3,6 +3,7 @@ import type { GlobalTheme } from '../global';
3
3
  const getMapPinTheme = (theme: GlobalTheme) => {
4
4
  const sizes = {
5
5
  default: 42,
6
+ badge: theme.sizes.large,
6
7
  };
7
8
 
8
9
  const fontSizes = {
@@ -15,16 +16,19 @@ const getMapPinTheme = (theme: GlobalTheme) => {
15
16
 
16
17
  const colors = {
17
18
  border: {
18
- idle: theme.colors.defaultGlobalSurface,
19
+ idle: theme.colors.white,
19
20
  selected: theme.colors.secondary,
20
21
  applied: theme.colors.secondary,
21
22
  },
23
+ icon: theme.colors.black,
22
24
  badge: theme.colors.secondary,
23
- background: theme.colors.defaultGlobalSurface,
25
+ badgeIcon: theme.colors.onSecondary,
26
+ background: theme.colors.white,
24
27
  };
25
28
 
26
29
  const radii = {
27
30
  default: theme.radii.large,
31
+ badge: theme.radii.rounded,
28
32
  };
29
33
 
30
34
  const space = {
@@ -18,11 +18,7 @@ const getSearchTheme = (theme: GlobalTheme) => {
18
18
  };
19
19
 
20
20
  const shadows = {
21
- offset: theme.shadows.default.shadowOffset,
22
- opacity: theme.shadows.default.shadowOpacity,
23
- radius: theme.shadows.default.shadowRadius,
24
- elevation: theme.shadows.default.elevation,
25
- color: theme.shadows.default.shadowColor,
21
+ container: theme.shadows.cardDrawer,
26
22
  };
27
23
 
28
24
  const space = {
@@ -43,11 +43,7 @@ const getToastTheme = (theme: GlobalTheme) => {
43
43
  };
44
44
 
45
45
  const shadows = {
46
- offset: theme.shadows.default.shadowOffset,
47
- opacity: theme.shadows.default.shadowOpacity,
48
- radius: theme.shadows.default.shadowRadius,
49
- elevation: theme.shadows.default.elevation,
50
- color: theme.shadows.default.shadowColor,
46
+ wrapper: theme.shadows.cardDrawer,
51
47
  };
52
48
 
53
49
  return { colors, radii, sizes, space, borderWidths, shadows };
@@ -15,6 +15,9 @@ const eBensBrandSystemPallete: BrandSystemPalette = {
15
15
  decorativePrimarySurface: palette.mauveLight80,
16
16
  };
17
17
 
18
+ /**
19
+ * @deprecated This palette is deprecated and will be removed in the next major release.
20
+ */
18
21
  const eBensSystemPalette: SystemPalette = {
19
22
  ...swag,
20
23
  ...eBensBrandSystemPallete,
@@ -15,6 +15,9 @@ const jobsBrandSystemPallete: BrandSystemPalette = {
15
15
  decorativePrimarySurface: palette.hitPinkLight80,
16
16
  };
17
17
 
18
+ /**
19
+ * @deprecated This palette is deprecated and will be removed in the next major release.
20
+ */
18
21
  const jobsSystemPalette: SystemPalette = {
19
22
  ...swag,
20
23
  ...jobsBrandSystemPallete,
@@ -15,6 +15,9 @@ const swagBrandSystemPallete: BrandSystemPalette = {
15
15
  decorativePrimarySurface: palette.maasstrichtBlueLight80,
16
16
  };
17
17
 
18
+ /**
19
+ * @deprecated This palette is deprecated and will be removed in the next major release.
20
+ */
18
21
  const swagSystemPalette: SystemPalette = {
19
22
  // Global
20
23
  ...globalPalette,
@@ -15,6 +15,9 @@ const swagDarkBrandSystemPalette: BrandSystemPalette = {
15
15
  decorativePrimarySurface: palette.maasstrichtBlueLight10,
16
16
  };
17
17
 
18
+ /**
19
+ * @deprecated This palette is deprecated and will be removed in the next major release.
20
+ */
18
21
  const swagDarkSystemPalette: SystemPalette = {
19
22
  // Global
20
23
  ...globalDarkPalette,
@@ -15,6 +15,9 @@ const walletBrandSystemPallete: BrandSystemPalette = {
15
15
  decorativePrimarySurface: palette.frenchSkyLight80,
16
16
  };
17
17
 
18
+ /**
19
+ * @deprecated This palette is deprecated and will be removed in the next major release.
20
+ */
18
21
  const walletSystemPalette: SystemPalette = {
19
22
  ...swag,
20
23
  ...walletBrandSystemPallete,
@@ -15,6 +15,9 @@ const workBrandSystemPallete: BrandSystemPalette = {
15
15
  decorativePrimarySurface: palette.goldLight80,
16
16
  };
17
17
 
18
+ /**
19
+ * @deprecated This palette is deprecated and will be removed in the next major release.
20
+ */
18
21
  const workSystemPalette: SystemPalette = {
19
22
  ...swag,
20
23
  ...workBrandSystemPallete,