@hero-design/rn 8.89.0 → 8.90.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.
- package/.turbo/turbo-build.log +2 -2
- package/CHANGELOG.md +26 -0
- package/es/index.js +20 -4
- package/lib/index.js +20 -4
- package/package.json +3 -3
- package/src/components/Calendar/CalendarRange.tsx +1 -0
- package/src/components/Calendar/index.tsx +2 -0
- package/src/components/Card/DataCard/StyledDataCard.tsx +1 -0
- package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +1 -0
- package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +5 -0
- package/src/components/Card/StyledCard.tsx +1 -0
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +72 -5
- package/src/components/Card/__tests__/index.spec.tsx +3 -2
- package/src/components/Card/index.tsx +1 -0
- package/src/components/DatePicker/DatePickerAndroid.tsx +3 -0
- package/src/components/DatePicker/DatePickerIOS.tsx +1 -0
- package/src/components/DatePicker/types.ts +4 -0
- package/src/components/Icon/HeroIcon/index.tsx +7 -1
- package/src/components/Icon/index.tsx +1 -1
- package/src/components/Image/index.tsx +5 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +4 -0
- package/src/theme/components/card.ts +2 -0
- package/src/theme/components/icon.ts +1 -0
- package/src/theme/getTheme.ts +4 -0
- package/src/theme/global/colors/__tests__/__snapshots__/swagDark.spec.ts.snap +1 -0
- package/src/theme/global/colors/swagDark.ts +2 -0
- package/src/theme/global/colors/types.ts +5 -1
- package/stats/8.90.1/rn-stats.html +4842 -0
- package/stats/9.0.0/rn-stats.html +4842 -0
- package/types/components/Card/StyledCard.d.ts +1 -1
- package/types/components/Card/index.d.ts +1 -1
- package/types/components/DatePicker/types.d.ts +4 -0
- package/types/components/Icon/HeroIcon/index.d.ts +1 -1
- package/types/components/Icon/index.d.ts +1 -1
- package/types/theme/components/card.d.ts +2 -0
- package/types/theme/components/icon.d.ts +1 -0
- package/types/theme/getTheme.d.ts +3 -0
- package/types/theme/global/colors/swagLightJobs.d.ts +1 -0
- package/types/theme/global/colors/types.d.ts +4 -1
- package/types/theme/global/index.d.ts +1 -0
|
@@ -3,7 +3,7 @@ declare const StyledCard: import("@emotion/native").StyledComponent<import("reac
|
|
|
3
3
|
theme?: import("@emotion/react").Theme;
|
|
4
4
|
as?: React.ElementType;
|
|
5
5
|
} & {
|
|
6
|
-
themeIntent?: "primary" | "success" | "warning" | "danger" | "archived" | "neutral";
|
|
6
|
+
themeIntent?: "primary" | "secondary" | "success" | "warning" | "danger" | "archived" | "neutral";
|
|
7
7
|
themeVariant?: "basic" | "super-round";
|
|
8
8
|
}, {}, {
|
|
9
9
|
ref?: import("react").Ref<View> | undefined;
|
|
@@ -8,7 +8,7 @@ export interface CardProps extends ViewProps {
|
|
|
8
8
|
/**
|
|
9
9
|
* Visual intent color to apply to card.
|
|
10
10
|
*/
|
|
11
|
-
intent?: 'primary' | 'success' | 'warning' | 'danger' | 'archived' | 'neutral';
|
|
11
|
+
intent?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'archived' | 'neutral';
|
|
12
12
|
/**
|
|
13
13
|
* Additional style.
|
|
14
14
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type ThemeSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
1
|
+
type ThemeSize = 'xxxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
2
2
|
type ThemeIntent = 'text' | 'primary' | 'secondary' | 'info' | 'danger' | 'success' | 'warning' | 'disabled-text' | 'text-inverted' | 'muted';
|
|
3
3
|
declare const StyledHeroIcon: import("@emotion/native").StyledComponent<import("react-native-vector-icons/Icon").IconProps & {
|
|
4
4
|
theme?: import("@emotion/react").Theme;
|
|
@@ -14,7 +14,7 @@ export interface IconProps extends AccessibilityProps {
|
|
|
14
14
|
/**
|
|
15
15
|
* Size of the Icon.
|
|
16
16
|
*/
|
|
17
|
-
size?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
17
|
+
size?: 'xxxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
18
18
|
/**
|
|
19
19
|
* Rotate icon with animation.
|
|
20
20
|
*/
|
|
@@ -3,12 +3,14 @@ declare const getCardTheme: (theme: GlobalTheme) => {
|
|
|
3
3
|
colors: {
|
|
4
4
|
dataCardIndicator: string;
|
|
5
5
|
primary: string;
|
|
6
|
+
secondary: string;
|
|
6
7
|
info: string;
|
|
7
8
|
success: string;
|
|
8
9
|
warning: string;
|
|
9
10
|
danger: string;
|
|
10
11
|
archived: string;
|
|
11
12
|
neutral: string;
|
|
13
|
+
dataCardBackground: string;
|
|
12
14
|
};
|
|
13
15
|
sizes: {
|
|
14
16
|
indicatorWidth: number;
|
|
@@ -49,7 +49,10 @@ import getSearchTheme from './components/search';
|
|
|
49
49
|
import getMapPinTheme from './components/mapPin';
|
|
50
50
|
import getFloatingIslandTheme from './components/floatingIsland';
|
|
51
51
|
import getAppCueTheme from './components/appCue';
|
|
52
|
+
import { ThemeMode } from './global/colors/types';
|
|
52
53
|
type Theme = GlobalTheme & {
|
|
54
|
+
themeMode?: ThemeMode;
|
|
55
|
+
} & {
|
|
53
56
|
__hd__: {
|
|
54
57
|
accordion: ReturnType<typeof getAccordionTheme>;
|
|
55
58
|
alert: ReturnType<typeof getAlertTheme>;
|
|
@@ -47,4 +47,7 @@ export type BrandSystemPalette = {
|
|
|
47
47
|
decorativeSecondary?: string;
|
|
48
48
|
decorativeSecondarySurface?: string;
|
|
49
49
|
};
|
|
50
|
-
export type
|
|
50
|
+
export type ThemeMode = 'light' | 'dark';
|
|
51
|
+
export type SystemPalette = GlobalSystemPalette & BrandSystemPalette & {
|
|
52
|
+
themeMode?: ThemeMode;
|
|
53
|
+
};
|
|
@@ -56,6 +56,7 @@ declare const getGlobalTheme: (scale: Scale, systemPalette: SystemPalette) => {
|
|
|
56
56
|
decorativePrimarySurface: string;
|
|
57
57
|
decorativeSecondary?: string;
|
|
58
58
|
decorativeSecondarySurface?: string;
|
|
59
|
+
themeMode?: import("./colors/types").ThemeMode;
|
|
59
60
|
};
|
|
60
61
|
fonts: import("./typography").Fonts;
|
|
61
62
|
fontSizes: import("./typography").FontSizes;
|