@hero-design/rn 8.80.1 → 8.81.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.
- package/.turbo/turbo-build.log +2 -2
- package/CHANGELOG.md +6 -0
- package/es/index.js +45 -17
- package/lib/index.js +45 -17
- package/package.json +1 -1
- package/src/components/Button/Button.tsx +13 -5
- package/src/components/Button/StyledButton.tsx +60 -39
- package/src/components/Button/__tests__/Button.spec.tsx +21 -16
- package/src/components/Button/__tests__/StyledButton.spec.tsx +19 -12
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +670 -0
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +153 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +1 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +5 -0
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +1 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +5 -0
- package/src/theme/components/button.ts +5 -0
- package/stats/8.81.0/rn-stats.html +4842 -0
- package/types/components/Button/Button.d.ts +1 -1
- package/types/components/Button/StyledButton.d.ts +3 -0
- package/types/theme/components/button.d.ts +5 -0
|
@@ -50,7 +50,7 @@ export interface ButtonProps {
|
|
|
50
50
|
/**
|
|
51
51
|
* Button type.
|
|
52
52
|
*/
|
|
53
|
-
variant?: 'filled' | 'outlined' | 'text';
|
|
53
|
+
variant?: 'filled' | 'outlined' | 'text' | 'inline-text';
|
|
54
54
|
}
|
|
55
55
|
export declare const getThemeVariant: (variant: 'filled' | 'outlined' | 'text', intent: Intent) => ThemeVariant;
|
|
56
56
|
declare const Button: ({ accessibilityHint, accessibilityLabel, disabled, icon, intent, loading, onPress, rightIcon, style, testID, text, variant, }: ButtonProps) => JSX.Element;
|
|
@@ -9,6 +9,7 @@ declare const StyledButtonContainer: import("@emotion/native").StyledComponent<i
|
|
|
9
9
|
disabled?: boolean | undefined;
|
|
10
10
|
themeButtonVariant: ThemeVariant;
|
|
11
11
|
loading?: boolean | undefined;
|
|
12
|
+
themeInlineText?: boolean | undefined;
|
|
12
13
|
}, {}, {
|
|
13
14
|
ref?: import("react").Ref<TouchableHighlight> | undefined;
|
|
14
15
|
}>;
|
|
@@ -25,6 +26,7 @@ declare const StyledButtonTitleOfVariantText: import("@emotion/native").StyledCo
|
|
|
25
26
|
} & {
|
|
26
27
|
disabled?: boolean | undefined;
|
|
27
28
|
themeButtonVariant: 'text-primary' | 'text-secondary' | 'text-danger';
|
|
29
|
+
themeIsPressed?: boolean | undefined;
|
|
28
30
|
}, {}, {}>;
|
|
29
31
|
declare const StyledButtonIconWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
30
32
|
theme?: Theme | undefined;
|
|
@@ -40,6 +42,7 @@ declare const StyledButtonIcon: import("@emotion/native").StyledComponent<import
|
|
|
40
42
|
} & {
|
|
41
43
|
disabled?: boolean | undefined;
|
|
42
44
|
themeButtonVariant: ThemeVariant;
|
|
45
|
+
themeIsPressed?: boolean | undefined;
|
|
43
46
|
}, {}, {}>;
|
|
44
47
|
export { StyledButtonContainer, StyledButtonText, StyledButtonIconWrapper, StyledButtonIcon, StyledButtonTitleOfVariantText, };
|
|
45
48
|
export type { Intent, ThemeVariant };
|