@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.
- package/.turbo/turbo-build.log +9 -9
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +378 -552
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +378 -552
- package/package.json +5 -5
- package/src/components/Alert/StyledAlert.tsx +2 -3
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +6 -12
- package/src/components/Alert/index.tsx +3 -23
- package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +4 -26
- package/src/components/Button/Button.tsx +7 -16
- package/src/components/Button/StyledButton.tsx +0 -46
- package/src/components/Button/__tests__/Button.spec.tsx +10 -11
- package/src/components/Button/__tests__/StyledButton.spec.tsx +0 -3
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +0 -91
- package/src/components/Card/StyledCard.tsx +2 -11
- package/src/components/Card/__tests__/StyledCard.spec.tsx +2 -14
- package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +0 -32
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +0 -4
- package/src/components/Card/__tests__/index.spec.tsx +1 -13
- package/src/components/Card/index.tsx +5 -26
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +0 -8
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +5 -7
- package/src/components/Select/MultiSelect/index.tsx +1 -20
- package/src/components/Select/SingleSelect/index.tsx +5 -24
- package/src/components/Select/types.ts +1 -11
- package/src/components/Switch/StyledSwitch.tsx +7 -12
- package/src/components/Switch/__tests__/StyledSwitch.spec.tsx +2 -2
- package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +10 -15
- package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +8 -12
- package/src/components/Switch/index.tsx +6 -22
- package/src/components/Tabs/ScrollableTabs.tsx +1 -6
- package/src/components/Tabs/TabWithBadge.tsx +1 -15
- package/src/components/Tabs/__tests__/ScrollableTabs.spec.tsx +3 -1
- package/src/components/Tabs/__tests__/TabWithBadge.spec.tsx +4 -1
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +4 -3
- package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +2 -32
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +1 -2
- package/src/components/Tabs/__tests__/index.spec.tsx +3 -1
- package/src/components/Tabs/index.tsx +12 -24
- package/src/components/Tag/StyledTag.tsx +0 -1
- package/src/components/Tag/__tests__/Tag.spec.tsx +0 -9
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +0 -40
- package/src/components/Tag/index.tsx +3 -16
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +4 -63
- package/src/theme/components/switch.ts +4 -14
- package/src/theme/components/tag.ts +0 -2
- package/src/theme/global/colors/swag.ts +1 -20
- package/src/theme/global/colors/types.ts +1 -58
- package/src/utils/hooks.ts +1 -1
- package/types/components/Alert/StyledAlert.d.ts +0 -1
- package/types/components/Alert/index.d.ts +1 -6
- package/types/components/Button/Button.d.ts +2 -3
- package/types/components/Button/StyledButton.d.ts +1 -1
- package/types/components/Card/StyledCard.d.ts +1 -8
- package/types/components/Card/index.d.ts +2 -8
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/Icon/utils.d.ts +1 -1
- package/types/components/Select/MultiSelect/index.d.ts +1 -1
- package/types/components/Select/SingleSelect/index.d.ts +1 -1
- package/types/components/Select/index.d.ts +1 -1
- package/types/components/Select/types.d.ts +1 -11
- package/types/components/Switch/StyledSwitch.d.ts +0 -4
- package/types/components/Switch/index.d.ts +1 -6
- package/types/components/Tabs/TabWithBadge.d.ts +1 -2
- package/types/components/Tabs/index.d.ts +2 -3
- package/types/components/Tag/StyledTag.d.ts +1 -1
- package/types/components/Tag/index.d.ts +2 -2
- package/types/theme/components/switch.d.ts +4 -14
- package/types/theme/components/tag.d.ts +0 -2
- package/types/theme/global/colors/types.d.ts +1 -52
- package/types/theme/global/index.d.ts +0 -47
- package/src/theme/__tests__/ensureCompatibleWithV7.spec.tsx +0 -13
- 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;
|