@hero-design/rn 8.97.0 → 8.98.0

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.
@@ -50,8 +50,8 @@ export interface ButtonProps {
50
50
  /**
51
51
  * Button type.
52
52
  */
53
- variant?: 'filled' | 'outlined' | 'text' | 'inline-text' | 'filled-compact' | 'outlined-compact';
53
+ variant?: 'filled' | 'outlined' | 'text' | 'inline-text' | 'filled-compact' | 'outlined-compact' | 'text-compact' | 'inline-text-compact';
54
54
  }
55
- export declare const getThemeVariant: (variant: "filled" | "outlined" | "text" | "filled-compact" | "outlined-compact", intent: Intent) => ThemeVariant;
55
+ export declare const getThemeVariant: (variant: "filled" | "outlined" | "text" | "filled-compact" | "outlined-compact" | "text-compact", intent: Intent) => ThemeVariant;
56
56
  declare const Button: ({ accessibilityHint, accessibilityLabel, disabled, icon, intent, loading, onPress, rightIcon, style, testID, text, variant, }: ButtonProps) => JSX.Element;
57
57
  export default Button;
@@ -35,6 +35,7 @@ declare const StyledButtonTitleOfVariantText: import("@emotion/native").StyledCo
35
35
  disabled?: boolean;
36
36
  themeButtonVariant: "text-primary" | "text-secondary" | "text-danger" | "text-white";
37
37
  themeIsPressed?: boolean;
38
+ themeIsCompact: boolean;
38
39
  }, {}, {}>;
39
40
  declare const StyledButtonIconWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
40
41
  theme?: Theme;
@@ -1,7 +1,10 @@
1
1
  import type { GlobalTheme } from '../global';
2
2
  declare const getButtonTheme: (theme: GlobalTheme) => {
3
3
  lineHeights: {
4
- titleOfTextVariant: number;
4
+ titleOfTextVariant: {
5
+ default: number;
6
+ compact: number;
7
+ };
5
8
  buttonText: number | undefined;
6
9
  utilityButtonText: number | undefined;
7
10
  compactButtonText: number | undefined;