@hero-design/rn 8.6.1 → 8.7.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 +9 -9
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +440 -411
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +440 -410
- package/package.json +5 -5
- package/src/components/Carousel/StyledCarousel.tsx +5 -0
- package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +622 -6
- package/src/components/Carousel/__tests__/index.spec.tsx +3 -1
- package/src/components/Carousel/index.tsx +4 -4
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +6 -0
- package/src/components/PageControl/StyledPageControl.tsx +17 -0
- package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +58 -0
- package/src/components/PageControl/__tests__/index.spec.tsx +21 -0
- package/src/components/PageControl/index.tsx +75 -0
- package/src/components/Typography/Text/StyledText.tsx +1 -0
- package/src/components/Typography/Text/index.tsx +1 -0
- package/src/index.ts +2 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +18 -12
- package/src/theme/components/carousel.ts +1 -16
- package/src/theme/components/pageControl.ts +25 -0
- package/src/theme/components/typography.ts +2 -0
- package/src/theme/getTheme.ts +3 -0
- package/types/components/Carousel/StyledCarousel.d.ts +5 -1
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/Icon/utils.d.ts +1 -1
- package/types/components/{Carousel/CarouselPaginator/StyledCarouselPaginator.d.ts → PageControl/StyledPageControl.d.ts} +3 -3
- package/types/components/PageControl/index.d.ts +21 -0
- package/types/components/Typography/Text/StyledText.d.ts +1 -1
- package/types/components/Typography/Text/index.d.ts +1 -1
- package/types/index.d.ts +2 -1
- package/types/theme/components/carousel.d.ts +0 -12
- package/types/theme/components/pageControl.d.ts +18 -0
- package/types/theme/components/typography.d.ts +2 -0
- package/types/theme/getTheme.d.ts +2 -0
- package/src/components/Carousel/CarouselPaginator/StyledCarouselPaginator.tsx +0 -20
- package/src/components/Carousel/CarouselPaginator/index.tsx +0 -57
- package/types/components/Carousel/CarouselPaginator/index.d.ts +0 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hero-design/rn",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.7.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@emotion/native": "^11.9.3",
|
|
23
23
|
"@emotion/react": "^11.9.3",
|
|
24
|
-
"@hero-design/colors": "8.
|
|
24
|
+
"@hero-design/colors": "8.7.0",
|
|
25
25
|
"date-fns": "^2.16.1",
|
|
26
26
|
"events": "^3.2.0",
|
|
27
27
|
"hero-editor": "^1.9.21"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@babel/preset-typescript": "^7.17.12",
|
|
45
45
|
"@babel/runtime": "^7.18.9",
|
|
46
46
|
"@emotion/jest": "^11.9.3",
|
|
47
|
-
"@hero-design/eslint-plugin": "8.
|
|
47
|
+
"@hero-design/eslint-plugin": "8.7.0",
|
|
48
48
|
"@react-native-community/datetimepicker": "^3.5.2",
|
|
49
49
|
"@react-native-community/slider": "4.1.12",
|
|
50
50
|
"@rollup/plugin-babel": "^5.3.1",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"@types/react-native": "^0.67.7",
|
|
61
61
|
"@types/react-native-vector-icons": "^6.4.10",
|
|
62
62
|
"babel-plugin-inline-import": "^3.0.0",
|
|
63
|
-
"eslint-config-hd": "8.
|
|
63
|
+
"eslint-config-hd": "8.7.0",
|
|
64
64
|
"jest": "^27.3.1",
|
|
65
|
-
"prettier-config-hd": "8.
|
|
65
|
+
"prettier-config-hd": "8.7.0",
|
|
66
66
|
"react": "18.0.0",
|
|
67
67
|
"react-native": "0.69.7",
|
|
68
68
|
"react-native-gesture-handler": "~2.1.0",
|
|
@@ -4,6 +4,7 @@ import Typography from '../Typography';
|
|
|
4
4
|
import Image from '../Image';
|
|
5
5
|
import Box from '../Box';
|
|
6
6
|
import { scale } from '../../utils/scale';
|
|
7
|
+
import PageControl from '../PageControl';
|
|
7
8
|
|
|
8
9
|
const StyledBackDrop = styled(View)<{
|
|
9
10
|
themeSlideBackground: string;
|
|
@@ -61,6 +62,9 @@ const StyledCarouselFooterWrapper = styled(View)(({ theme }) => ({
|
|
|
61
62
|
marginBottom: theme.__hd__.carousel.space.footerMarginBottom,
|
|
62
63
|
}));
|
|
63
64
|
|
|
65
|
+
const StyledPageControl = styled(PageControl)({
|
|
66
|
+
marginStart: 'auto',
|
|
67
|
+
});
|
|
64
68
|
export {
|
|
65
69
|
StyledBackDrop,
|
|
66
70
|
StyledCarouselView,
|
|
@@ -69,4 +73,5 @@ export {
|
|
|
69
73
|
StyledCarouselContentWrapper,
|
|
70
74
|
StyledCarouselFooterWrapper,
|
|
71
75
|
StyledCustomSizeCarouselImage,
|
|
76
|
+
StyledPageControl,
|
|
72
77
|
};
|