@hero-design/rn 8.34.5 → 8.34.6

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.
@@ -4,5 +4,5 @@ $ rollup -c
4
4
  src/index.ts → lib/index.js, es/index.js...
5
5
  (!) Plugin replace: @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.
6
6
  (!) Plugin node-resolve: preferring built-in module 'events' over local alternative at '/root/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
7
- created lib/index.js, es/index.js in 29.7s
7
+ created lib/index.js, es/index.js in 23.8s
8
8
  $ tsc --noEmit false --emitDeclarationOnly --project tsconfig.prod.json
package/es/index.js CHANGED
@@ -11886,7 +11886,7 @@ var Carousel = function Carousel(_ref) {
11886
11886
  _ref$shouldShowPagina = _ref.shouldShowPagination,
11887
11887
  shouldShowPagination = _ref$shouldShowPagina === void 0 ? noop : _ref$shouldShowPagina,
11888
11888
  _ref$pageControlPosit = _ref.pageControlPosition,
11889
- pageControlPosition = _ref$pageControlPosit === void 0 ? 'bottom' : _ref$pageControlPosit,
11889
+ pageControlPosition = _ref$pageControlPosit === void 0 ? 'top' : _ref$pageControlPosit,
11890
11890
  nativeProps = _objectWithoutProperties(_ref, _excluded$h);
11891
11891
  useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop);
11892
11892
  useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
package/lib/index.js CHANGED
@@ -11917,7 +11917,7 @@ var Carousel = function Carousel(_ref) {
11917
11917
  _ref$shouldShowPagina = _ref.shouldShowPagination,
11918
11918
  shouldShowPagination = _ref$shouldShowPagina === void 0 ? noop : _ref$shouldShowPagina,
11919
11919
  _ref$pageControlPosit = _ref.pageControlPosition,
11920
- pageControlPosition = _ref$pageControlPosit === void 0 ? 'bottom' : _ref$pageControlPosit,
11920
+ pageControlPosition = _ref$pageControlPosit === void 0 ? 'top' : _ref$pageControlPosit,
11921
11921
  nativeProps = _objectWithoutProperties(_ref, _excluded$h);
11922
11922
  useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop);
11923
11923
  useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "8.34.5",
3
+ "version": "8.34.6",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -21,13 +21,13 @@
21
21
  "dependencies": {
22
22
  "@emotion/native": "^11.9.3",
23
23
  "@emotion/react": "^11.9.3",
24
- "@hero-design/colors": "8.34.5",
24
+ "@hero-design/colors": "8.34.6",
25
25
  "date-fns": "^2.16.1",
26
26
  "events": "^3.2.0",
27
27
  "hero-editor": "^1.9.21"
28
28
  },
29
29
  "peerDependencies": {
30
- "@hero-design/react-native-month-year-picker": "^8.34.5",
30
+ "@hero-design/react-native-month-year-picker": "^8.34.6",
31
31
  "@react-native-community/datetimepicker": "^3.5.2",
32
32
  "@react-native-community/slider": "4.1.12",
33
33
  "react": "18.0.0",
@@ -47,8 +47,8 @@
47
47
  "@babel/preset-typescript": "^7.17.12",
48
48
  "@babel/runtime": "^7.18.9",
49
49
  "@emotion/jest": "^11.9.3",
50
- "@hero-design/eslint-plugin": "8.34.5",
51
- "@hero-design/react-native-month-year-picker": "^8.34.5",
50
+ "@hero-design/eslint-plugin": "8.34.6",
51
+ "@hero-design/react-native-month-year-picker": "^8.34.6",
52
52
  "@react-native-community/datetimepicker": "^3.5.2",
53
53
  "@react-native-community/slider": "4.1.12",
54
54
  "@rollup/plugin-babel": "^5.3.1",
@@ -64,10 +64,10 @@
64
64
  "@types/react-native": "^0.67.7",
65
65
  "@types/react-native-vector-icons": "^6.4.10",
66
66
  "babel-plugin-inline-import": "^3.0.0",
67
- "eslint-config-hd": "8.34.5",
67
+ "eslint-config-hd": "8.34.6",
68
68
  "eslint-plugin-import": "^2.27.5",
69
69
  "jest": "^27.3.1",
70
- "prettier-config-hd": "8.34.5",
70
+ "prettier-config-hd": "8.34.6",
71
71
  "react": "18.0.0",
72
72
  "react-native": "0.69.7",
73
73
  "react-native-gesture-handler": "~2.5.0",
@@ -1488,7 +1488,81 @@ exports[`Carousel should call skip call back when press skip 1`] = `
1488
1488
  undefined,
1489
1489
  ]
1490
1490
  }
1491
- />
1491
+ >
1492
+ <View
1493
+ style={
1494
+ Array [
1495
+ Object {
1496
+ "alignItems": "center",
1497
+ "flexDirection": "row",
1498
+ },
1499
+ Array [
1500
+ Object {
1501
+ "paddingVertical": 8,
1502
+ },
1503
+ undefined,
1504
+ ],
1505
+ ]
1506
+ }
1507
+ >
1508
+ <View
1509
+ collapsable={false}
1510
+ style={
1511
+ Object {
1512
+ "backgroundColor": "#401960",
1513
+ "borderRadius": 999,
1514
+ "height": 8,
1515
+ "marginHorizontal": 8,
1516
+ "opacity": 1,
1517
+ "width": 24,
1518
+ }
1519
+ }
1520
+ testID="page-control-indicator0"
1521
+ />
1522
+ <View
1523
+ collapsable={false}
1524
+ style={
1525
+ Object {
1526
+ "backgroundColor": "#401960",
1527
+ "borderRadius": 999,
1528
+ "height": 8,
1529
+ "marginHorizontal": 8,
1530
+ "opacity": 0.5,
1531
+ "width": 8,
1532
+ }
1533
+ }
1534
+ testID="page-control-indicator1"
1535
+ />
1536
+ <View
1537
+ collapsable={false}
1538
+ style={
1539
+ Object {
1540
+ "backgroundColor": "#401960",
1541
+ "borderRadius": 999,
1542
+ "height": 8,
1543
+ "marginHorizontal": 8,
1544
+ "opacity": 0.5,
1545
+ "width": 8,
1546
+ }
1547
+ }
1548
+ testID="page-control-indicator2"
1549
+ />
1550
+ <View
1551
+ collapsable={false}
1552
+ style={
1553
+ Object {
1554
+ "backgroundColor": "#401960",
1555
+ "borderRadius": 999,
1556
+ "height": 8,
1557
+ "marginHorizontal": 8,
1558
+ "opacity": 0.5,
1559
+ "width": 8,
1560
+ }
1561
+ }
1562
+ testID="page-control-indicator3"
1563
+ />
1564
+ </View>
1565
+ </View>
1492
1566
  <View
1493
1567
  style={
1494
1568
  Array [
@@ -2107,79 +2181,6 @@ exports[`Carousel should call skip call back when press skip 1`] = `
2107
2181
  Skip
2108
2182
  </Text>
2109
2183
  </View>
2110
- <View
2111
- style={
2112
- Array [
2113
- Object {
2114
- "alignItems": "center",
2115
- "flexDirection": "row",
2116
- },
2117
- Array [
2118
- Object {
2119
- "paddingVertical": 8,
2120
- },
2121
- undefined,
2122
- ],
2123
- ]
2124
- }
2125
- >
2126
- <View
2127
- collapsable={false}
2128
- style={
2129
- Object {
2130
- "backgroundColor": "#401960",
2131
- "borderRadius": 999,
2132
- "height": 8,
2133
- "marginHorizontal": 8,
2134
- "opacity": 1,
2135
- "width": 24,
2136
- }
2137
- }
2138
- testID="page-control-indicator0"
2139
- />
2140
- <View
2141
- collapsable={false}
2142
- style={
2143
- Object {
2144
- "backgroundColor": "#401960",
2145
- "borderRadius": 999,
2146
- "height": 8,
2147
- "marginHorizontal": 8,
2148
- "opacity": 0.5,
2149
- "width": 8,
2150
- }
2151
- }
2152
- testID="page-control-indicator1"
2153
- />
2154
- <View
2155
- collapsable={false}
2156
- style={
2157
- Object {
2158
- "backgroundColor": "#401960",
2159
- "borderRadius": 999,
2160
- "height": 8,
2161
- "marginHorizontal": 8,
2162
- "opacity": 0.5,
2163
- "width": 8,
2164
- }
2165
- }
2166
- testID="page-control-indicator2"
2167
- />
2168
- <View
2169
- collapsable={false}
2170
- style={
2171
- Object {
2172
- "backgroundColor": "#401960",
2173
- "borderRadius": 999,
2174
- "height": 8,
2175
- "marginHorizontal": 8,
2176
- "opacity": 0.5,
2177
- "width": 8,
2178
- }
2179
- }
2180
- testID="page-control-indicator3"
2181
- />
2182
- </View>
2183
2184
  </View>
2184
2185
  </View>
2185
2186
  </View>
@@ -87,7 +87,7 @@ const Carousel = ({
87
87
  selectedItemIndex = 0,
88
88
  style,
89
89
  shouldShowPagination = noop,
90
- pageControlPosition = 'bottom',
90
+ pageControlPosition = 'top',
91
91
  ...nativeProps
92
92
  }: CarouselProps) => {
93
93
  useDeprecation(