@hero-design/rn 8.0.0-4 → 8.0.0-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 (76) hide show
  1. package/.turbo/turbo-build.log +9 -9
  2. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  3. package/es/index.js +378 -552
  4. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  5. package/lib/index.js +378 -552
  6. package/package.json +5 -5
  7. package/src/components/Alert/StyledAlert.tsx +2 -3
  8. package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +6 -12
  9. package/src/components/Alert/index.tsx +3 -23
  10. package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +4 -26
  11. package/src/components/Button/Button.tsx +7 -16
  12. package/src/components/Button/StyledButton.tsx +0 -46
  13. package/src/components/Button/__tests__/Button.spec.tsx +10 -11
  14. package/src/components/Button/__tests__/StyledButton.spec.tsx +0 -3
  15. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +0 -91
  16. package/src/components/Card/StyledCard.tsx +2 -11
  17. package/src/components/Card/__tests__/StyledCard.spec.tsx +2 -14
  18. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +0 -32
  19. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +0 -4
  20. package/src/components/Card/__tests__/index.spec.tsx +1 -13
  21. package/src/components/Card/index.tsx +5 -26
  22. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  23. package/src/components/Icon/IconList.ts +0 -8
  24. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +5 -7
  25. package/src/components/Select/MultiSelect/index.tsx +1 -20
  26. package/src/components/Select/SingleSelect/index.tsx +5 -24
  27. package/src/components/Select/types.ts +1 -11
  28. package/src/components/Switch/StyledSwitch.tsx +7 -12
  29. package/src/components/Switch/__tests__/StyledSwitch.spec.tsx +2 -2
  30. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +10 -15
  31. package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +8 -12
  32. package/src/components/Switch/index.tsx +6 -22
  33. package/src/components/Tabs/ScrollableTabs.tsx +1 -6
  34. package/src/components/Tabs/TabWithBadge.tsx +1 -15
  35. package/src/components/Tabs/__tests__/ScrollableTabs.spec.tsx +3 -1
  36. package/src/components/Tabs/__tests__/TabWithBadge.spec.tsx +4 -1
  37. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +4 -3
  38. package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +2 -32
  39. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +1 -2
  40. package/src/components/Tabs/__tests__/index.spec.tsx +3 -1
  41. package/src/components/Tabs/index.tsx +12 -24
  42. package/src/components/Tag/StyledTag.tsx +0 -1
  43. package/src/components/Tag/__tests__/Tag.spec.tsx +0 -9
  44. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +0 -40
  45. package/src/components/Tag/index.tsx +3 -16
  46. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +4 -63
  47. package/src/theme/components/switch.ts +4 -14
  48. package/src/theme/components/tag.ts +0 -2
  49. package/src/theme/global/colors/swag.ts +1 -20
  50. package/src/theme/global/colors/types.ts +1 -58
  51. package/src/utils/hooks.ts +1 -1
  52. package/types/components/Alert/StyledAlert.d.ts +0 -1
  53. package/types/components/Alert/index.d.ts +1 -6
  54. package/types/components/Button/Button.d.ts +2 -3
  55. package/types/components/Button/StyledButton.d.ts +1 -1
  56. package/types/components/Card/StyledCard.d.ts +1 -8
  57. package/types/components/Card/index.d.ts +2 -8
  58. package/types/components/Icon/IconList.d.ts +1 -1
  59. package/types/components/Icon/index.d.ts +1 -1
  60. package/types/components/Icon/utils.d.ts +1 -1
  61. package/types/components/Select/MultiSelect/index.d.ts +1 -1
  62. package/types/components/Select/SingleSelect/index.d.ts +1 -1
  63. package/types/components/Select/index.d.ts +1 -1
  64. package/types/components/Select/types.d.ts +1 -11
  65. package/types/components/Switch/StyledSwitch.d.ts +0 -4
  66. package/types/components/Switch/index.d.ts +1 -6
  67. package/types/components/Tabs/TabWithBadge.d.ts +1 -2
  68. package/types/components/Tabs/index.d.ts +2 -3
  69. package/types/components/Tag/StyledTag.d.ts +1 -1
  70. package/types/components/Tag/index.d.ts +2 -2
  71. package/types/theme/components/switch.d.ts +4 -14
  72. package/types/theme/components/tag.d.ts +0 -2
  73. package/types/theme/global/colors/types.d.ts +1 -52
  74. package/types/theme/global/index.d.ts +0 -47
  75. package/src/theme/__tests__/ensureCompatibleWithV7.spec.tsx +0 -13
  76. package/src/theme/global/colors/legacySystemPalette.ts +0 -53
@@ -1,13 +0,0 @@
1
- import { theme as runningTheme } from 'rn-7-23-0';
2
- import latestTheme from '..';
3
-
4
- it('should be compatible with v7', () => {
5
- const missingKeys = Object.keys(runningTheme.colors).filter(
6
- // Safe access to extract missing keys
7
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
8
- // @ts-ignore
9
- (k) => latestTheme.colors[k] === undefined
10
- );
11
-
12
- expect(missingKeys).toEqual([]);
13
- });
@@ -1,53 +0,0 @@
1
- import {
2
- defaultMobilePalette as palette,
3
- swagPalette,
4
- } from '@hero-design/colors';
5
- import type { LegacySystemPalette } from './types';
6
-
7
- const legacySystemPalette: LegacySystemPalette = {
8
- globalPrimary: palette.maasstrichtBlue,
9
- globalPrimaryLight: palette.maasstrichtBlueLight50,
10
- globalPrimaryBackground: palette.maasstrichtBlueLight90,
11
- primaryLight: swagPalette.violetLight50,
12
- primaryDark: swagPalette.scarletGumLight30, // DEPRECATED
13
- primaryBackground: swagPalette.violetLight90,
14
- primaryBackgroundDark: palette.maasstrichtBlueLight30,
15
- secondaryLight: swagPalette.vodka, // no longer needed after revising Button
16
- secondaryBackground: swagPalette.aliceBlue, // no longer needed after revising Button
17
- infoMediumLight: palette.vodka, // DEPRECATED, use infoLight instead
18
- infoLight: palette.vodka,
19
- infoBackground: palette.aliceBlue,
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
- warningLight: palette.mellowApricot, // DEPRECATED, use warning instead
28
- warningDark: palette.deepSaffron,
29
- warningBackground: palette.seashell,
30
- platformBackground: palette.white,
31
- backgroundLight: palette.greyLight90,
32
- backgroundDark: palette.maasstrichtBlue,
33
- text: palette.maasstrichtBlue,
34
- subduedText: palette.maasstrichtBlueLight30, // secondary
35
- disabledText: palette.maasstrichtBlueLight50, // readonly
36
- disabledLightText: palette.greyLight30, // disabled
37
- invertedText: palette.white,
38
- outline: palette.greyLight75, // divider
39
- archivedLight: palette.greyLight30,
40
- archivedDark: palette.sonicSilver, // should replace archived as archived has no usage?
41
- archivedBackground: palette.greyLight90,
42
- black: palette.black,
43
- inactiveBackground: palette.maasstrichtBlueLight50,
44
- shadow: palette.greyLight45, // waiting for new color
45
- // Updated 14 / Nov / 22
46
- mutedGlobalPrimary: palette.maasstrichtBlueLight30,
47
- onGlobalPrimary: palette.white,
48
- globalSecondary: palette.maasstrichtBlueLight30,
49
- globalPrimaryOutline: palette.maasstrichtBlue,
50
- globalSecondaryOutline: palette.greyLight75,
51
- };
52
-
53
- export default legacySystemPalette;