diff --git a/.gitignore b/.gitignore index ec8b184..61b2bc6 100644 --- a/.gitignore +++ b/.gitignore @@ -68,4 +68,8 @@ dist/ # Static storybook page .storybook_static -.docs \ No newline at end of file +.docs + +# Environments handler +/env.json +.env \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 7dc79ff..5c9c816 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.10.3] - 2024-10-24 + +### Fixed + +- Adjusted action button and close button's sizing for toast component + +## [1.10.2] - 2024-10-23 + +### Fixed + +- Fixed shadow and pressed shadow for base card list component + +## [1.10.1] - 2024-10-22 + +### Fixed + +- Fixed shadow for base card list component + +## [1.10.0] - 2024-10-14 + +### Fixed + +- Fixed an error with layout buttons + +### Added + +- Added swipe item selection list component +- Added MainCardList component. + ## [1.9.0] - 2024-07-22 ### Added diff --git a/env.json b/env.json deleted file mode 100644 index 4e60c2c..0000000 --- a/env.json +++ /dev/null @@ -1 +0,0 @@ -{"LOAD_STORYBOOK": true, "WEB_MODE": false} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 7059363..a804291 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@janiscommerce/ui-native", - "version": "1.9.0", + "version": "1.10.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@janiscommerce/ui-native", - "version": "1.9.0", + "version": "1.10.3", "license": "ISC", "dependencies": { "@gorhom/bottom-sheet": "^4.5.1", diff --git a/package.json b/package.json index 1876647..99fd741 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@janiscommerce/ui-native", - "version": "1.9.0", + "version": "1.10.3", "description": "components library for Janis app", "main": "dist/index.js", "typings": "dist/index.d.ts", diff --git a/src/components/atoms/BaseCardList/index.tsx b/src/components/atoms/BaseCardList/index.tsx index f981151..3214a3e 100644 --- a/src/components/atoms/BaseCardList/index.tsx +++ b/src/components/atoms/BaseCardList/index.tsx @@ -18,10 +18,14 @@ const BaseCardList: FC = ({children, isSelected = false, styl borderRadius: 20, width: '100%', padding: 16, + elevation: 2, + shadowColor: palette.black.main, }, selectedContainer: { borderWidth: 2, borderColor: palette.primary.main, + elevation: 4, + shadowColor: palette.primary.main, }, }); diff --git a/src/components/atoms/RadioButton/index.tsx b/src/components/atoms/RadioButton/index.tsx index 71c52c5..8616047 100644 --- a/src/components/atoms/RadioButton/index.tsx +++ b/src/components/atoms/RadioButton/index.tsx @@ -41,7 +41,7 @@ const styles = StyleSheet.create({ row: { flexDirection: 'row', - justifyContent: 'flex-start', + justifyContent: 'space-between', }, reverseRow: { flexDirection: 'row-reverse', diff --git a/src/components/molecules/Button/index.test.tsx b/src/components/molecules/Button/index.test.tsx index fe66cc4..0dbf646 100644 --- a/src/components/molecules/Button/index.test.tsx +++ b/src/components/molecules/Button/index.test.tsx @@ -15,6 +15,14 @@ jest.spyOn(React, 'useEffect').mockImplementation((f) => f()); jest.mock('react-native/Libraries/Animated/NativeAnimatedHelper'); describe('Button component', () => { + describe('it does not render', () => { + it('as there is no value nor icon', () => { + const ButtonComponent = create(