@hero-design/rn 8.27.0 → 8.27.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/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +319 -311
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +319 -311
- package/package.json +5 -5
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +6 -6
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +2 -2
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +2 -2
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +2 -2
- package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +3 -17
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +1065 -557
- package/src/components/FAB/ActionGroup/__tests__/index.spec.tsx +15 -9
- package/src/components/FAB/ActionGroup/index.tsx +35 -97
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +1 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +10 -10
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +10 -10
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +10 -10
- package/src/components/TextInput/index.tsx +1 -1
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +2 -2
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +2 -2
- package/src/components/Toolbar/StyledToolbar.tsx +23 -2
- package/src/components/Toolbar/ToolbarGroup.tsx +3 -4
- package/src/components/Toolbar/ToolbarItem.tsx +75 -19
- package/src/components/Toolbar/__tests__/ToolbarItem.spec.tsx +39 -22
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +318 -186
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +280 -135
- package/src/components/Typography/Text/StyledText.tsx +2 -1
- package/src/components/Typography/Text/index.tsx +2 -1
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +11 -2
- package/src/theme/components/fab.ts +0 -1
- package/src/theme/components/toolbar.ts +14 -2
- package/src/theme/components/typography.ts +1 -0
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +1 -7
- 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/Toolbar/StyledToolbar.d.ts +11 -1
- package/types/components/Typography/Text/StyledText.d.ts +1 -1
- package/types/components/Typography/Text/index.d.ts +1 -1
- package/types/theme/components/fab.d.ts +0 -1
- package/types/theme/components/toolbar.d.ts +9 -0
- package/types/theme/components/typography.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hero-design/rn",
|
|
3
|
-
"version": "8.27.
|
|
3
|
+
"version": "8.27.2",
|
|
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.27.
|
|
24
|
+
"@hero-design/colors": "8.27.2",
|
|
25
25
|
"date-fns": "^2.16.1",
|
|
26
26
|
"events": "^3.2.0",
|
|
27
27
|
"hero-editor": "^1.9.21"
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@babel/preset-typescript": "^7.17.12",
|
|
46
46
|
"@babel/runtime": "^7.18.9",
|
|
47
47
|
"@emotion/jest": "^11.9.3",
|
|
48
|
-
"@hero-design/eslint-plugin": "8.27.
|
|
48
|
+
"@hero-design/eslint-plugin": "8.27.2",
|
|
49
49
|
"@react-native-community/datetimepicker": "^3.5.2",
|
|
50
50
|
"@react-native-community/slider": "4.1.12",
|
|
51
51
|
"@rollup/plugin-babel": "^5.3.1",
|
|
@@ -61,10 +61,10 @@
|
|
|
61
61
|
"@types/react-native": "^0.67.7",
|
|
62
62
|
"@types/react-native-vector-icons": "^6.4.10",
|
|
63
63
|
"babel-plugin-inline-import": "^3.0.0",
|
|
64
|
-
"eslint-config-hd": "8.27.
|
|
64
|
+
"eslint-config-hd": "8.27.2",
|
|
65
65
|
"eslint-plugin-import": "^2.27.5",
|
|
66
66
|
"jest": "^27.3.1",
|
|
67
|
-
"prettier-config-hd": "8.27.
|
|
67
|
+
"prettier-config-hd": "8.27.2",
|
|
68
68
|
"react": "18.0.0",
|
|
69
69
|
"react-native": "0.69.7",
|
|
70
70
|
"react-native-gesture-handler": "~2.1.0",
|
|
@@ -187,14 +187,14 @@ exports[`DatePicker renders DatePickerAndroid when OS is android 1`] = `
|
|
|
187
187
|
Array [
|
|
188
188
|
Object {
|
|
189
189
|
"color": "#001f23",
|
|
190
|
-
"fontSize":
|
|
190
|
+
"fontSize": 24,
|
|
191
191
|
},
|
|
192
192
|
undefined,
|
|
193
193
|
]
|
|
194
194
|
}
|
|
195
195
|
testID="input-suffix"
|
|
196
196
|
themeIntent="text"
|
|
197
|
-
themeSize="
|
|
197
|
+
themeSize="medium"
|
|
198
198
|
/>
|
|
199
199
|
</View>
|
|
200
200
|
<View
|
|
@@ -412,14 +412,14 @@ exports[`DatePicker renders DatePickerIOS when OS is iOS 1`] = `
|
|
|
412
412
|
Array [
|
|
413
413
|
Object {
|
|
414
414
|
"color": "#001f23",
|
|
415
|
-
"fontSize":
|
|
415
|
+
"fontSize": 24,
|
|
416
416
|
},
|
|
417
417
|
undefined,
|
|
418
418
|
]
|
|
419
419
|
}
|
|
420
420
|
testID="input-suffix"
|
|
421
421
|
themeIntent="text"
|
|
422
|
-
themeSize="
|
|
422
|
+
themeSize="medium"
|
|
423
423
|
/>
|
|
424
424
|
</View>
|
|
425
425
|
<View
|
|
@@ -643,14 +643,14 @@ exports[`DatePicker renders variant Calendar 1`] = `
|
|
|
643
643
|
Array [
|
|
644
644
|
Object {
|
|
645
645
|
"color": "#001f23",
|
|
646
|
-
"fontSize":
|
|
646
|
+
"fontSize": 24,
|
|
647
647
|
},
|
|
648
648
|
undefined,
|
|
649
649
|
]
|
|
650
650
|
}
|
|
651
651
|
testID="input-suffix"
|
|
652
652
|
themeIntent="text"
|
|
653
|
-
themeSize="
|
|
653
|
+
themeSize="medium"
|
|
654
654
|
/>
|
|
655
655
|
</View>
|
|
656
656
|
<View
|
|
@@ -187,14 +187,14 @@ exports[`DatePickerAndroid renders correctly 1`] = `
|
|
|
187
187
|
Array [
|
|
188
188
|
Object {
|
|
189
189
|
"color": "#001f23",
|
|
190
|
-
"fontSize":
|
|
190
|
+
"fontSize": 24,
|
|
191
191
|
},
|
|
192
192
|
undefined,
|
|
193
193
|
]
|
|
194
194
|
}
|
|
195
195
|
testID="input-suffix"
|
|
196
196
|
themeIntent="text"
|
|
197
|
-
themeSize="
|
|
197
|
+
themeSize="medium"
|
|
198
198
|
/>
|
|
199
199
|
</View>
|
|
200
200
|
<View
|
|
@@ -187,14 +187,14 @@ exports[`DatePickerCalendar renders correctly 1`] = `
|
|
|
187
187
|
Array [
|
|
188
188
|
Object {
|
|
189
189
|
"color": "#001f23",
|
|
190
|
-
"fontSize":
|
|
190
|
+
"fontSize": 24,
|
|
191
191
|
},
|
|
192
192
|
undefined,
|
|
193
193
|
]
|
|
194
194
|
}
|
|
195
195
|
testID="input-suffix"
|
|
196
196
|
themeIntent="text"
|
|
197
|
-
themeSize="
|
|
197
|
+
themeSize="medium"
|
|
198
198
|
/>
|
|
199
199
|
</View>
|
|
200
200
|
<View
|
|
@@ -187,14 +187,14 @@ exports[`DatePickerIOS renders correctly 1`] = `
|
|
|
187
187
|
Array [
|
|
188
188
|
Object {
|
|
189
189
|
"color": "#001f23",
|
|
190
|
-
"fontSize":
|
|
190
|
+
"fontSize": 24,
|
|
191
191
|
},
|
|
192
192
|
undefined,
|
|
193
193
|
]
|
|
194
194
|
}
|
|
195
195
|
testID="input-suffix"
|
|
196
196
|
themeIntent="text"
|
|
197
|
-
themeSize="
|
|
197
|
+
themeSize="medium"
|
|
198
198
|
/>
|
|
199
199
|
</View>
|
|
200
200
|
<View
|
|
@@ -34,11 +34,10 @@ const StyledBackdrop = styled(Animated.View)<
|
|
|
34
34
|
ComponentProps<typeof Animated.View>
|
|
35
35
|
>(({ theme }) => ({
|
|
36
36
|
position: 'absolute',
|
|
37
|
-
|
|
38
|
-
height: '100%',
|
|
39
|
-
width: '100%',
|
|
40
|
-
bottom: 0,
|
|
37
|
+
left: 0,
|
|
41
38
|
right: 0,
|
|
39
|
+
top: 0,
|
|
40
|
+
bottom: 0,
|
|
42
41
|
backgroundColor: theme.__hd__.fab.colors.backdropBackground,
|
|
43
42
|
}));
|
|
44
43
|
|
|
@@ -52,23 +51,10 @@ const StyledHeaderText = styled(Typography.Text)<TextProps>(({ theme }) => ({
|
|
|
52
51
|
textAlign: 'right',
|
|
53
52
|
}));
|
|
54
53
|
|
|
55
|
-
const StyledModalView = styled(View)({
|
|
56
|
-
position: 'absolute',
|
|
57
|
-
flex: 1,
|
|
58
|
-
height: '100%',
|
|
59
|
-
width: '100%',
|
|
60
|
-
bottom: 0,
|
|
61
|
-
right: 0,
|
|
62
|
-
justifyContent: 'flex-end',
|
|
63
|
-
alignItems: 'flex-end',
|
|
64
|
-
backgroundColor: 'transparent',
|
|
65
|
-
});
|
|
66
|
-
|
|
67
54
|
export {
|
|
68
55
|
StyledHeaderText,
|
|
69
56
|
StyledBackdrop,
|
|
70
57
|
StyledContainer,
|
|
71
58
|
StyledActionGroupContainer,
|
|
72
59
|
StyledFAB,
|
|
73
|
-
StyledModalView,
|
|
74
60
|
};
|