@hero-design/rn 8.63.1 → 8.63.2
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 +1 -1
- package/CHANGELOG.md +10 -0
- package/es/index.js +3 -3
- package/lib/index.js +3 -3
- package/package.json +3 -3
- package/src/components/Error/index.tsx +2 -2
- package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +1 -1
- package/src/theme/components/slider.ts +1 -1
- package/types/components/Error/index.d.ts +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
[1msrc/index.ts[22m → [1mlib/index.js, es/index.js[22m...[39m
|
|
3
3
|
[1m[33m(!) 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`.[39m[22m
|
|
4
4
|
[1m[33m(!) Plugin node-resolve: preferring built-in module 'events' over local alternative at '/home/runner/work/hero-design/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning[39m[22m
|
|
5
|
-
[32mcreated [1mlib/index.js, es/index.js[22m in [1m1m
|
|
5
|
+
[32mcreated [1mlib/index.js, es/index.js[22m in [1m1m 1s[22m[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @hero-design/rn
|
|
2
2
|
|
|
3
|
+
## 8.63.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#3112](https://github.com/Thinkei/hero-design/pull/3112) [`81863a4dd`](https://github.com/Thinkei/hero-design/commit/81863a4ddf02cb87ebc21b8e2fab217166c71339) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - Update Error component local name
|
|
8
|
+
|
|
9
|
+
- [#3116](https://github.com/Thinkei/hero-design/pull/3116) [`93ce5c6d4`](https://github.com/Thinkei/hero-design/commit/93ce5c6d461d813ba37a3bc26cb817ecad21ee62) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - [Slider] Update thumb color
|
|
10
|
+
|
|
11
|
+
- [#3104](https://github.com/Thinkei/hero-design/pull/3104) [`f978158f5`](https://github.com/Thinkei/hero-design/commit/f978158f5e649748fbdd42b2eba4b789458a10f9) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - Upgrade Expo SDK to v50
|
|
12
|
+
|
|
3
13
|
## 8.63.1
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/es/index.js
CHANGED
|
@@ -3085,7 +3085,7 @@ var getSkeletonTheme = function getSkeletonTheme(theme) {
|
|
|
3085
3085
|
var getSliderTheme = function getSliderTheme(theme) {
|
|
3086
3086
|
var colors = {
|
|
3087
3087
|
minimumTrackTint: theme.colors.primary,
|
|
3088
|
-
thumbTint: theme.colors.
|
|
3088
|
+
thumbTint: theme.colors.primary,
|
|
3089
3089
|
maximumTrackTint: theme.colors.highlightedSurface
|
|
3090
3090
|
};
|
|
3091
3091
|
return {
|
|
@@ -14341,7 +14341,7 @@ var ErrorPage = function ErrorPage(_ref) {
|
|
|
14341
14341
|
* @param {ErrorProps}
|
|
14342
14342
|
* @return {*} {ReactElement}
|
|
14343
14343
|
*/
|
|
14344
|
-
var
|
|
14344
|
+
var ErrorComponent = function ErrorComponent(_ref2) {
|
|
14345
14345
|
var _ref2$visible = _ref2.visible,
|
|
14346
14346
|
visible = _ref2$visible === void 0 ? true : _ref2$visible,
|
|
14347
14347
|
_ref2$variant = _ref2.variant,
|
|
@@ -35842,4 +35842,4 @@ function SectionListWithFAB(_ref) {
|
|
|
35842
35842
|
});
|
|
35843
35843
|
}
|
|
35844
35844
|
|
|
35845
|
-
export { Accordion, Alert, Attachment, index$8 as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar, Card$1 as Card, index$7 as Carousel, Checkbox, Chip, Collapse, ContentNavigator, DatePicker, Divider, index$6 as Drawer, Empty,
|
|
35845
|
+
export { Accordion, Alert, Attachment, index$8 as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar, Card$1 as Card, index$7 as Carousel, Checkbox, Chip, Collapse, ContentNavigator, DatePicker, Divider, index$6 as Drawer, Empty, ErrorComponent as Error, FAB, FlatListWithFAB, HeroDesignProvider, Icon, Image, List, PageControl, PinInput, Portal$1 as Portal, Progress, CompoundRadio as Radio, Rate, RefreshControl, index as RichTextEditor, ScrollViewWithFAB, SectionHeading, SectionListWithFAB, index$4 as Select, Skeleton, Slider, Spinner, Success, index$5 as Swipeable, index$3 as Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, ThemeSwitcher, TimePicker, Toast, index$1 as Toolbar, Typography, eBensSystemPalette, getTheme$1 as getTheme, jobsSystemPalette, scale, swagDarkSystemPalette, swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, withTheme, workSystemPalette };
|
package/lib/index.js
CHANGED
|
@@ -3115,7 +3115,7 @@ var getSkeletonTheme = function getSkeletonTheme(theme) {
|
|
|
3115
3115
|
var getSliderTheme = function getSliderTheme(theme) {
|
|
3116
3116
|
var colors = {
|
|
3117
3117
|
minimumTrackTint: theme.colors.primary,
|
|
3118
|
-
thumbTint: theme.colors.
|
|
3118
|
+
thumbTint: theme.colors.primary,
|
|
3119
3119
|
maximumTrackTint: theme.colors.highlightedSurface
|
|
3120
3120
|
};
|
|
3121
3121
|
return {
|
|
@@ -14371,7 +14371,7 @@ var ErrorPage = function ErrorPage(_ref) {
|
|
|
14371
14371
|
* @param {ErrorProps}
|
|
14372
14372
|
* @return {*} {ReactElement}
|
|
14373
14373
|
*/
|
|
14374
|
-
var
|
|
14374
|
+
var ErrorComponent = function ErrorComponent(_ref2) {
|
|
14375
14375
|
var _ref2$visible = _ref2.visible,
|
|
14376
14376
|
visible = _ref2$visible === void 0 ? true : _ref2$visible,
|
|
14377
14377
|
_ref2$variant = _ref2.variant,
|
|
@@ -35892,7 +35892,7 @@ exports.DatePicker = DatePicker;
|
|
|
35892
35892
|
exports.Divider = Divider;
|
|
35893
35893
|
exports.Drawer = index$6;
|
|
35894
35894
|
exports.Empty = Empty;
|
|
35895
|
-
exports.Error =
|
|
35895
|
+
exports.Error = ErrorComponent;
|
|
35896
35896
|
exports.FAB = FAB;
|
|
35897
35897
|
exports.FlatListWithFAB = FlatListWithFAB;
|
|
35898
35898
|
exports.HeroDesignProvider = HeroDesignProvider;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hero-design/rn",
|
|
3
|
-
"version": "8.63.
|
|
3
|
+
"version": "8.63.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"@hero-design/react-native-month-year-picker": "^8.42.9",
|
|
32
|
-
"@react-native-community/datetimepicker": "^3.5.2 || ^7.
|
|
32
|
+
"@react-native-community/datetimepicker": "^3.5.2 || ^7.6.1",
|
|
33
33
|
"@react-native-community/slider": "^4.5.1",
|
|
34
34
|
"react": "18.2.0",
|
|
35
35
|
"react-native": "^0.73.8",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@emotion/jest": "^11.11.0",
|
|
50
50
|
"@hero-design/eslint-plugin": "9.0.0",
|
|
51
51
|
"@hero-design/react-native-month-year-picker": "^8.42.9",
|
|
52
|
-
"@react-native-community/datetimepicker": "7.
|
|
52
|
+
"@react-native-community/datetimepicker": "7.6.1",
|
|
53
53
|
"@react-native-community/slider": "^4.5.1",
|
|
54
54
|
"@rollup/plugin-babel": "^5.3.1",
|
|
55
55
|
"@rollup/plugin-commonjs": "^21.0.1",
|
|
@@ -159,7 +159,7 @@ const ErrorPage = ({
|
|
|
159
159
|
* @param {ErrorProps}
|
|
160
160
|
* @return {*} {ReactElement}
|
|
161
161
|
*/
|
|
162
|
-
const
|
|
162
|
+
const ErrorComponent = ({
|
|
163
163
|
visible = true,
|
|
164
164
|
variant = 'in-page',
|
|
165
165
|
title,
|
|
@@ -257,4 +257,4 @@ const Error = ({
|
|
|
257
257
|
);
|
|
258
258
|
};
|
|
259
259
|
|
|
260
|
-
export default
|
|
260
|
+
export default ErrorComponent;
|
|
@@ -15,7 +15,7 @@ exports[`Slider renders correctly by default 1`] = `
|
|
|
15
15
|
minimumTrackTintColor="#401960"
|
|
16
16
|
minimumValue={0}
|
|
17
17
|
step={0}
|
|
18
|
-
thumbTintColor="#
|
|
18
|
+
thumbTintColor="#401960"
|
|
19
19
|
value={0}
|
|
20
20
|
/>
|
|
21
21
|
<View
|
|
@@ -56,7 +56,7 @@ exports[`Slider renders correctly when disabled 1`] = `
|
|
|
56
56
|
minimumTrackTintColor="#401960"
|
|
57
57
|
minimumValue={0}
|
|
58
58
|
step={0}
|
|
59
|
-
thumbTintColor="#
|
|
59
|
+
thumbTintColor="#401960"
|
|
60
60
|
value={0}
|
|
61
61
|
/>
|
|
62
62
|
<View
|
|
@@ -100,7 +100,7 @@ exports[`Slider renders correctly with props 1`] = `
|
|
|
100
100
|
onSlidingStart={[MockFunction]}
|
|
101
101
|
onValueChange={[MockFunction]}
|
|
102
102
|
step={0.25}
|
|
103
|
-
thumbTintColor="#
|
|
103
|
+
thumbTintColor="#401960"
|
|
104
104
|
value={0.5}
|
|
105
105
|
/>
|
|
106
106
|
<View
|
|
@@ -3,7 +3,7 @@ import type { GlobalTheme } from '../global';
|
|
|
3
3
|
const getSliderTheme = (theme: GlobalTheme) => {
|
|
4
4
|
const colors = {
|
|
5
5
|
minimumTrackTint: theme.colors.primary,
|
|
6
|
-
thumbTint: theme.colors.
|
|
6
|
+
thumbTint: theme.colors.primary,
|
|
7
7
|
maximumTrackTint: theme.colors.highlightedSurface,
|
|
8
8
|
};
|
|
9
9
|
|
|
@@ -52,5 +52,5 @@ interface ErrorProps extends ViewProps {
|
|
|
52
52
|
* @param {ErrorProps}
|
|
53
53
|
* @return {*} {ReactElement}
|
|
54
54
|
*/
|
|
55
|
-
declare const
|
|
56
|
-
export default
|
|
55
|
+
declare const ErrorComponent: ({ visible, variant, title, description, image, testID, ctaText, onCtaPress, secondaryCtaText, onSecondaryCtaPress, ...nativeProps }: ErrorProps) => ReactElement;
|
|
56
|
+
export default ErrorComponent;
|