Skip to content

Commit

Permalink
fix: add import for shadows
Browse files Browse the repository at this point in the history
Signed-off-by: Bibazavr <[email protected]>
  • Loading branch information
Bibazavr committed Feb 7, 2024
1 parent 186f729 commit d5f847a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/core/src/styles/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ export * from './constants';
export * from './types';
export * from './hooks';
export * from './utils';
export * from './shadows';
10 changes: 6 additions & 4 deletions packages/core/src/styles/shadows/getShadows.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import {ImageStyle, Platform, TextStyle, ViewStyle} from 'react-native';
import {IThemeContext} from '../types';

export type IShadowKeys = 'small' | 'medium' | 'large';
const shadowsIosLight = ({

export const shadowsIosLight = ({
spaces,
}: Pick<IThemeContext, 'spaces'>): Record<
IShadowKeys,
Expand Down Expand Up @@ -34,7 +35,7 @@ const shadowsIosLight = ({
shadowOpacity: 0.16,
},
});
const shadowsIosDark = ({
export const shadowsIosDark = ({
spaces,
}: Pick<IThemeContext, 'spaces'>): Record<
IShadowKeys,
Expand Down Expand Up @@ -65,7 +66,8 @@ const shadowsIosDark = ({
shadowOpacity: 0.48,
},
});
const shadowsAndroidLight = ({

export const shadowsAndroidLight = ({
spaces,
}: Pick<IThemeContext, 'spaces'>): Record<
IShadowKeys,
Expand All @@ -81,7 +83,7 @@ const shadowsAndroidLight = ({
elevation: spaces.Space16,
},
});
const shadowsAndroidDark = ({
export const shadowsAndroidDark = ({
spaces,
}: Pick<IThemeContext, 'spaces'>): Record<
IShadowKeys,
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/styles/shadows/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './getShadows';

0 comments on commit d5f847a

Please sign in to comment.