@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.
Files changed (40) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/CHANGELOG.md +26 -0
  3. package/es/index.js +20 -4
  4. package/lib/index.js +20 -4
  5. package/package.json +3 -3
  6. package/src/components/Calendar/CalendarRange.tsx +1 -0
  7. package/src/components/Calendar/index.tsx +2 -0
  8. package/src/components/Card/DataCard/StyledDataCard.tsx +1 -0
  9. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +1 -0
  10. package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +5 -0
  11. package/src/components/Card/StyledCard.tsx +1 -0
  12. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +72 -5
  13. package/src/components/Card/__tests__/index.spec.tsx +3 -2
  14. package/src/components/Card/index.tsx +1 -0
  15. package/src/components/DatePicker/DatePickerAndroid.tsx +3 -0
  16. package/src/components/DatePicker/DatePickerIOS.tsx +1 -0
  17. package/src/components/DatePicker/types.ts +4 -0
  18. package/src/components/Icon/HeroIcon/index.tsx +7 -1
  19. package/src/components/Icon/index.tsx +1 -1
  20. package/src/components/Image/index.tsx +5 -0
  21. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +4 -0
  22. package/src/theme/components/card.ts +2 -0
  23. package/src/theme/components/icon.ts +1 -0
  24. package/src/theme/getTheme.ts +4 -0
  25. package/src/theme/global/colors/__tests__/__snapshots__/swagDark.spec.ts.snap +1 -0
  26. package/src/theme/global/colors/swagDark.ts +2 -0
  27. package/src/theme/global/colors/types.ts +5 -1
  28. package/stats/8.90.1/rn-stats.html +4842 -0
  29. package/stats/9.0.0/rn-stats.html +4842 -0
  30. package/types/components/Card/StyledCard.d.ts +1 -1
  31. package/types/components/Card/index.d.ts +1 -1
  32. package/types/components/DatePicker/types.d.ts +4 -0
  33. package/types/components/Icon/HeroIcon/index.d.ts +1 -1
  34. package/types/components/Icon/index.d.ts +1 -1
  35. package/types/theme/components/card.d.ts +2 -0
  36. package/types/theme/components/icon.d.ts +1 -0
  37. package/types/theme/getTheme.d.ts +3 -0
  38. package/types/theme/global/colors/swagLightJobs.d.ts +1 -0
  39. package/types/theme/global/colors/types.d.ts +4 -1
  40. 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
  */
@@ -80,4 +80,8 @@ export interface DatePickerProps {
80
80
  * Locale for the date picker, iOS only.
81
81
  */
82
82
  locale?: string;
83
+ /**
84
+ * [Android only] autoTheme will automatically set the theme based on the device's light mode or dark mode.
85
+ * */
86
+ autoTheme?: boolean;
83
87
  }
@@ -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;
@@ -13,6 +13,7 @@ declare const getIconTheme: (theme: GlobalTheme) => {
13
13
  muted: string;
14
14
  };
15
15
  sizes: {
16
+ xxxsmall: number;
16
17
  xsmall: number;
17
18
  small: number;
18
19
  medium: 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>;
@@ -44,5 +44,6 @@ declare const swagLightJobsSystemPalette: {
44
44
  pressedSurface: string;
45
45
  decorativePrimary: string;
46
46
  decorativePrimarySurface: string;
47
+ themeMode?: import("./types").ThemeMode;
47
48
  };
48
49
  export default swagLightJobsSystemPalette;
@@ -47,4 +47,7 @@ export type BrandSystemPalette = {
47
47
  decorativeSecondary?: string;
48
48
  decorativeSecondarySurface?: string;
49
49
  };
50
- export type SystemPalette = GlobalSystemPalette & BrandSystemPalette;
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;