Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add TablerIcons #255 #256

Merged
merged 1 commit into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,13 @@
"author": "Kirill Lebedev <[email protected]>",
"license": "MIT",
"peerDependencies": {
"react-native": ">=0.66.4",
"react": ">=17.0.2",
"react-native": ">=0.66.4",
"react-native-safe-area-context": ">=4.4.1",
"react-native-svg": ">=12.3.0",
"react-native-svg-transformer": ">=1.0.0",
"react-native-safe-area-context": ">=4.4.1"
"react-native-svg-transformer": ">=1.0.0"
},
"dependencies": {
"@tabler/icons-react-native": "^3.7.0"
}
}
}
2 changes: 2 additions & 0 deletions packages/core/src/styles/icons/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
export * from './font';
export * from './svg';

export * from '@tabler/icons-react-native';
2 changes: 2 additions & 0 deletions src/pages/MainStack/Home/Core/Styles/ui/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {FlatList, useStyles, View} from '@shared/ui';
import getScreenStyles from '@shared/styles/getScreenStyles';
import {ShadowWidget} from '@widgets/Core/Styles/ui/ShadowWidget';
import {SimpleIconWidget} from '@widgets/Core/Styles/ui/SimpleIconWidget';
import {TablerIconWidget} from '@widgets/Core/Styles/ui/TablerIconWidget';

const renderItem = () => <View />;

Expand All @@ -16,6 +17,7 @@ const StylesScreen = () => {
ListFooterComponent={
<>
<ShadowWidget />
<TablerIconWidget />
<SimpleIconWidget />
</>
}
Expand Down
56 changes: 56 additions & 0 deletions src/widgets/Core/Styles/ui/TablerIconWidget.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
import {
createStyles,
IconArrowUp,
IconAvocado,
IconBackpack,
useStyles,
View,
} from '@shared/ui';
import Header from '@shared/ui/Header';

export const TablerIconWidget = () => {
const [styles] = useStyles(style);
return (
<View style={styles.container}>
<Header title={'TablerIcon'} />
<View style={styles.content}>
<IconBackpack color={'red'} />
<IconArrowUp size={50} />
<IconAvocado strokeWidth={1} size={50} fill={'blue'} color={'purple'} />
</View>
</View>
);
};

const style = createStyles(({shadows, spaces, colors}) => ({
container: {
alignItems: 'center',
justifyContent: 'space-between',
},
content: {
flexDirection: 'row',
flexWrap: 'wrap',
alignItems: 'center',
justifyContent: 'space-between',

gap: spaces.Space12,
},
item: {
alignItems: 'center',
},
box: {
backgroundColor: colors.BgSecondary,
margin: spaces.Space8,
height: spaces.Space64,
width: spaces.Space64,
},
shadowSmall: {
...shadows.small,
},
shadowMedium: {
...shadows.medium,
},
shadowLarge: {
...shadows.large,
},
}));
12 changes: 12 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3006,6 +3006,18 @@
deepmerge "^4.3.1"
svgo "^3.0.2"

"@tabler/icons-react-native@^3.7.0":
version "3.7.0"
resolved "https://registry.yarnpkg.com/@tabler/icons-react-native/-/icons-react-native-3.7.0.tgz#e44c6dd54ab82d705625642e50e160ddab8b1ab6"
integrity sha512-kIy6JF75y3m70mhCOTaT3V1FERVOxPZ7IcvjAaO96YTaweHk7B+W2f2Ptd+hSHBVeA0nRHsK0wb8ZY9Wt6i5vA==
dependencies:
"@tabler/icons" "3.7.0"

"@tabler/[email protected]":
version "3.7.0"
resolved "https://registry.yarnpkg.com/@tabler/icons/-/icons-3.7.0.tgz#b522723844644b50ccaddd0fd19a91c0eb3095da"
integrity sha512-lJGIZLSWrPO6VygRUbaVvQjWgL2EaiBMD8e6leCYUQ8ZPO4LIzKMq358C8KlhXJcyNiRz1Io3YWoc/DNTcWqSg==

"@testing-library/react-hooks@^8.0.0":
version "8.0.1"
resolved "https://registry.yarnpkg.com/@testing-library/react-hooks/-/react-hooks-8.0.1.tgz#0924bbd5b55e0c0c0502d1754657ada66947ca12"
Expand Down