cpk-ui 0.1.14 → 0.1.15
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.
|
@@ -7,7 +7,7 @@ import { useTheme } from '../../../providers/ThemeProvider';
|
|
|
7
7
|
import { cloneElemWithDefaultColors } from '../../../utils/guards';
|
|
8
8
|
import { LoadingIndicator } from '../LoadingIndicator/LoadingIndicator';
|
|
9
9
|
import { Typography } from '../Typography/Typography';
|
|
10
|
-
import Haptics from 'expo-haptics';
|
|
10
|
+
import * as Haptics from 'expo-haptics';
|
|
11
11
|
const ButtonContainer = styled.View `
|
|
12
12
|
align-self: stretch;
|
|
13
13
|
flex-direction: row;
|
|
@@ -15,7 +15,7 @@ import {cloneElemWithDefaultColors} from '../../../utils/guards';
|
|
|
15
15
|
import type {CpkTheme} from '../../../utils/theme';
|
|
16
16
|
import {LoadingIndicator} from '../LoadingIndicator/LoadingIndicator';
|
|
17
17
|
import {Typography} from '../Typography/Typography';
|
|
18
|
-
import Haptics from 'expo-haptics';
|
|
18
|
+
import * as Haptics from 'expo-haptics';
|
|
19
19
|
|
|
20
20
|
export type ButtonType = 'text' | 'solid' | 'outlined';
|
|
21
21
|
export type ButtonColorType =
|
|
@@ -7,7 +7,7 @@ import { Icon } from '../Icon/Icon';
|
|
|
7
7
|
import { LoadingIndicator } from '../LoadingIndicator/LoadingIndicator';
|
|
8
8
|
import { getTheme } from '../../../utils/theme';
|
|
9
9
|
import { useTheme } from '../../../providers/ThemeProvider';
|
|
10
|
-
import Haptics from 'expo-haptics';
|
|
10
|
+
import * as Haptics from 'expo-haptics';
|
|
11
11
|
export const ButtonStyles = ({ theme, type = 'solid', color = 'primary', loading, disabled, }) => {
|
|
12
12
|
theme = getTheme(theme);
|
|
13
13
|
let backgroundColor = theme.button[color].bg;
|
|
@@ -9,7 +9,7 @@ import {Icon} from '../Icon/Icon';
|
|
|
9
9
|
import {LoadingIndicator} from '../LoadingIndicator/LoadingIndicator';
|
|
10
10
|
import {CpkTheme, getTheme} from '../../../utils/theme';
|
|
11
11
|
import {useTheme} from '../../../providers/ThemeProvider';
|
|
12
|
-
import Haptics from 'expo-haptics';
|
|
12
|
+
import * as Haptics from 'expo-haptics';
|
|
13
13
|
|
|
14
14
|
type Styles = {
|
|
15
15
|
container?: StyleProp<ViewStyle>;
|