@hero-design/rn 8.106.1 → 8.107.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 +3 -3
- package/CHANGELOG.md +12 -0
- package/es/index.js +207 -130
- package/lib/index.js +208 -129
- package/package.json +1 -1
- package/src/components/Card/DataCard/StyledDataCard.tsx +6 -1
- package/src/components/Card/index.tsx +2 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +6 -3
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +2 -1
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +2 -1
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +4 -2
- package/src/components/Illustration/BaseSvg.tsx +28 -0
- package/src/components/Illustration/__tests__/index.spec.tsx +95 -0
- package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/Add.tsx +6 -5
- package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/Boom.tsx +12 -5
- package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/Build.tsx +12 -5
- package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/Clock.tsx +12 -5
- package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/Confetti.tsx +14 -7
- package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/Connections.tsx +12 -5
- package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/Error.tsx +13 -6
- package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/Info.tsx +12 -5
- package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/List.tsx +12 -5
- package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/Location.tsx +12 -5
- package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/Lock.tsx +12 -5
- package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/Merge.tsx +12 -5
- package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/NoResult.tsx +12 -5
- package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/Notifications.tsx +12 -5
- package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/Search.tsx +12 -5
- package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/Star.tsx +12 -5
- package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/Success.tsx +13 -6
- package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/Unlock.tsx +12 -5
- package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/User.tsx +12 -5
- package/src/components/Illustration/constants.ts +3 -0
- package/src/components/{StatusScreens/StatusIcon/index.tsx → Illustration/illustrations.ts} +5 -27
- package/src/components/Illustration/index.tsx +64 -0
- package/src/components/Illustration/types.ts +7 -0
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +2 -0
- package/src/components/Search/SearchOneLine.tsx +2 -1
- package/src/components/Search/__tests__/__snapshots__/SearchOneLine.spec.tsx.snap +7 -7
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +14 -7
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +12 -6
- package/src/components/StatusScreens/Empty/__tests__/__snapshots__/index.spec.tsx.snap +123 -114
- package/src/components/StatusScreens/Empty/index.tsx +5 -5
- package/src/components/StatusScreens/Error/__tests__/__snapshots__/index.spec.tsx.snap +157 -148
- package/src/components/StatusScreens/Error/index.tsx +5 -5
- package/src/components/StatusScreens/Success/__tests__/__snapshots__/index.spec.tsx.snap +123 -114
- package/src/components/StatusScreens/Success/index.tsx +5 -5
- package/src/components/TextInput/StyledTextInput.tsx +2 -1
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +34 -17
- package/src/components/TextInput/__tests__/index.spec.tsx +34 -0
- package/src/components/TextInput/index.tsx +4 -1
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +4 -2
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +4 -2
- package/src/index.ts +7 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +12 -2
- package/src/theme/components/card.ts +5 -1
- package/src/theme/components/textInput.ts +9 -2
- package/stats/8.106.1/rn-stats.html +0 -2
- package/stats/8.107.0/rn-stats.html +4844 -0
- package/types/components/Card/DataCard/StyledDataCard.d.ts +7 -1
- package/types/components/Card/index.d.ts +7 -0
- package/types/components/Illustration/BaseSvg.d.ts +8 -0
- package/types/components/Illustration/assets/Add.d.ts +4 -0
- package/types/components/Illustration/assets/Boom.d.ts +4 -0
- package/types/components/Illustration/assets/Build.d.ts +4 -0
- package/types/components/Illustration/assets/Clock.d.ts +4 -0
- package/types/components/Illustration/assets/Confetti.d.ts +4 -0
- package/types/components/Illustration/assets/Connections.d.ts +4 -0
- package/types/components/Illustration/assets/Error.d.ts +4 -0
- package/types/components/Illustration/assets/Info.d.ts +4 -0
- package/types/components/Illustration/assets/List.d.ts +4 -0
- package/types/components/Illustration/assets/Location.d.ts +4 -0
- package/types/components/Illustration/assets/Lock.d.ts +4 -0
- package/types/components/Illustration/assets/Merge.d.ts +4 -0
- package/types/components/Illustration/assets/NoResult.d.ts +4 -0
- package/types/components/Illustration/assets/Notifications.d.ts +4 -0
- package/types/components/Illustration/assets/Search.d.ts +4 -0
- package/types/components/Illustration/assets/Star.d.ts +4 -0
- package/types/components/Illustration/assets/Success.d.ts +4 -0
- package/types/components/Illustration/assets/Unlock.d.ts +4 -0
- package/types/components/Illustration/assets/User.d.ts +4 -0
- package/types/components/Illustration/constants.d.ts +1 -0
- package/types/components/Illustration/illustrations.d.ts +23 -0
- package/types/components/Illustration/index.d.ts +29 -0
- package/types/components/Illustration/types.d.ts +7 -0
- package/types/components/StatusScreens/Empty/index.d.ts +2 -2
- package/types/components/StatusScreens/Error/index.d.ts +2 -2
- package/types/components/StatusScreens/Success/index.d.ts +2 -2
- package/types/components/TextInput/index.d.ts +2 -1
- package/types/index.d.ts +2 -1
- package/types/theme/components/card.d.ts +3 -0
- package/types/theme/components/textInput.d.ts +8 -1
- package/src/components/StatusScreens/StatusIcon/__tests__/index.spec.tsx +0 -35
- package/src/components/StatusScreens/StatusIcon/types.ts +0 -5
- package/types/components/StatusScreens/StatusIcon/assets/Add.d.ts +0 -4
- package/types/components/StatusScreens/StatusIcon/assets/Boom.d.ts +0 -4
- package/types/components/StatusScreens/StatusIcon/assets/Build.d.ts +0 -4
- package/types/components/StatusScreens/StatusIcon/assets/Clock.d.ts +0 -4
- package/types/components/StatusScreens/StatusIcon/assets/Confetti.d.ts +0 -4
- package/types/components/StatusScreens/StatusIcon/assets/Connections.d.ts +0 -4
- package/types/components/StatusScreens/StatusIcon/assets/Error.d.ts +0 -4
- package/types/components/StatusScreens/StatusIcon/assets/Info.d.ts +0 -4
- package/types/components/StatusScreens/StatusIcon/assets/List.d.ts +0 -4
- package/types/components/StatusScreens/StatusIcon/assets/Location.d.ts +0 -4
- package/types/components/StatusScreens/StatusIcon/assets/Lock.d.ts +0 -4
- package/types/components/StatusScreens/StatusIcon/assets/Merge.d.ts +0 -4
- package/types/components/StatusScreens/StatusIcon/assets/NoResult.d.ts +0 -4
- package/types/components/StatusScreens/StatusIcon/assets/Notifications.d.ts +0 -4
- package/types/components/StatusScreens/StatusIcon/assets/Search.d.ts +0 -4
- package/types/components/StatusScreens/StatusIcon/assets/Star.d.ts +0 -4
- package/types/components/StatusScreens/StatusIcon/assets/Success.d.ts +0 -4
- package/types/components/StatusScreens/StatusIcon/assets/Unlock.d.ts +0 -4
- package/types/components/StatusScreens/StatusIcon/assets/User.d.ts +0 -4
- package/types/components/StatusScreens/StatusIcon/index.d.ts +0 -29
- package/types/components/StatusScreens/StatusIcon/types.d.ts +0 -5
|
@@ -196,7 +196,7 @@ exports[`TimePickerAndroid renders correct with hide suffix 1`] = `
|
|
|
196
196
|
onChangeText={[Function]}
|
|
197
197
|
onFocus={[Function]}
|
|
198
198
|
placeholder=" "
|
|
199
|
-
placeholderTextColor="#
|
|
199
|
+
placeholderTextColor="#001f23"
|
|
200
200
|
style={
|
|
201
201
|
[
|
|
202
202
|
{
|
|
@@ -241,6 +241,7 @@ exports[`TimePickerAndroid renders correct with hide suffix 1`] = `
|
|
|
241
241
|
"alignItems": "flex-start",
|
|
242
242
|
"flexDirection": "row",
|
|
243
243
|
"justifyContent": "space-between",
|
|
244
|
+
"marginTop": 2,
|
|
244
245
|
},
|
|
245
246
|
undefined,
|
|
246
247
|
]
|
|
@@ -489,7 +490,7 @@ exports[`TimePickerAndroid renders correctly 1`] = `
|
|
|
489
490
|
onChangeText={[Function]}
|
|
490
491
|
onFocus={[Function]}
|
|
491
492
|
placeholder=" "
|
|
492
|
-
placeholderTextColor="#
|
|
493
|
+
placeholderTextColor="#001f23"
|
|
493
494
|
style={
|
|
494
495
|
[
|
|
495
496
|
{
|
|
@@ -549,6 +550,7 @@ exports[`TimePickerAndroid renders correctly 1`] = `
|
|
|
549
550
|
"alignItems": "flex-start",
|
|
550
551
|
"flexDirection": "row",
|
|
551
552
|
"justifyContent": "space-between",
|
|
553
|
+
"marginTop": 2,
|
|
552
554
|
},
|
|
553
555
|
undefined,
|
|
554
556
|
]
|
|
@@ -196,7 +196,7 @@ exports[`TimePickerIOS renders correct with hide suffix 1`] = `
|
|
|
196
196
|
onChangeText={[Function]}
|
|
197
197
|
onFocus={[Function]}
|
|
198
198
|
placeholder=" "
|
|
199
|
-
placeholderTextColor="#
|
|
199
|
+
placeholderTextColor="#001f23"
|
|
200
200
|
style={
|
|
201
201
|
[
|
|
202
202
|
{
|
|
@@ -241,6 +241,7 @@ exports[`TimePickerIOS renders correct with hide suffix 1`] = `
|
|
|
241
241
|
"alignItems": "flex-start",
|
|
242
242
|
"flexDirection": "row",
|
|
243
243
|
"justifyContent": "space-between",
|
|
244
|
+
"marginTop": 2,
|
|
244
245
|
},
|
|
245
246
|
undefined,
|
|
246
247
|
]
|
|
@@ -489,7 +490,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
489
490
|
onChangeText={[Function]}
|
|
490
491
|
onFocus={[Function]}
|
|
491
492
|
placeholder=" "
|
|
492
|
-
placeholderTextColor="#
|
|
493
|
+
placeholderTextColor="#001f23"
|
|
493
494
|
style={
|
|
494
495
|
[
|
|
495
496
|
{
|
|
@@ -549,6 +550,7 @@ exports[`TimePickerIOS renders correctly 1`] = `
|
|
|
549
550
|
"alignItems": "flex-start",
|
|
550
551
|
"flexDirection": "row",
|
|
551
552
|
"justifyContent": "space-between",
|
|
553
|
+
"marginTop": 2,
|
|
552
554
|
},
|
|
553
555
|
undefined,
|
|
554
556
|
]
|
package/src/index.ts
CHANGED
|
@@ -46,6 +46,10 @@ import FAB from './components/FAB';
|
|
|
46
46
|
import HeroDesignProvider from './components/HeroDesignProvider';
|
|
47
47
|
import MapPin from './components/MapPin';
|
|
48
48
|
import Icon from './components/Icon';
|
|
49
|
+
import Illustration, {
|
|
50
|
+
type IllustrationName,
|
|
51
|
+
IllustrationList,
|
|
52
|
+
} from './components/Illustration';
|
|
49
53
|
import Image from './components/Image';
|
|
50
54
|
import List from './components/List';
|
|
51
55
|
import PinInput from './components/PinInput';
|
|
@@ -128,6 +132,9 @@ export {
|
|
|
128
132
|
FAB,
|
|
129
133
|
FlatListWithFAB,
|
|
130
134
|
Icon,
|
|
135
|
+
Illustration,
|
|
136
|
+
type IllustrationName,
|
|
137
|
+
IllustrationList,
|
|
131
138
|
Image,
|
|
132
139
|
HeroDesignProvider,
|
|
133
140
|
MapPin,
|
|
@@ -427,6 +427,9 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
427
427
|
"sizes": {
|
|
428
428
|
"indicatorWidth": 16,
|
|
429
429
|
},
|
|
430
|
+
"space": {
|
|
431
|
+
"dataCardContentPadding": 16,
|
|
432
|
+
},
|
|
430
433
|
},
|
|
431
434
|
"cardCarousel": {
|
|
432
435
|
"colors": {
|
|
@@ -1509,7 +1512,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
1509
1512
|
"disabled": "#bfc1c5",
|
|
1510
1513
|
"error": "#001f23",
|
|
1511
1514
|
"filled": "#001f23",
|
|
1512
|
-
"readonly": "#
|
|
1515
|
+
"readonly": "#4d6265",
|
|
1513
1516
|
},
|
|
1514
1517
|
"labelsInsideTextInput": {
|
|
1515
1518
|
"default": "#001f23",
|
|
@@ -1525,7 +1528,13 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
1525
1528
|
"filled": "#001f23",
|
|
1526
1529
|
"readonly": "#808f91",
|
|
1527
1530
|
},
|
|
1528
|
-
"placeholder":
|
|
1531
|
+
"placeholder": {
|
|
1532
|
+
"default": "#001f23",
|
|
1533
|
+
"disabled": "#bfc1c5",
|
|
1534
|
+
"error": "#001f23",
|
|
1535
|
+
"filled": "#001f23",
|
|
1536
|
+
"readonly": "#001f23",
|
|
1537
|
+
},
|
|
1529
1538
|
"text": "#001f23",
|
|
1530
1539
|
},
|
|
1531
1540
|
"fontSizes": {
|
|
@@ -1554,6 +1563,7 @@ exports[`theme returns correct theme object 1`] = `
|
|
|
1554
1563
|
"containerMarginTop": 8,
|
|
1555
1564
|
"containerPadding": 16,
|
|
1556
1565
|
"errorAndHelpTextContainerHorizontalPadding": 16,
|
|
1566
|
+
"errorAndHelpTextContainerMarginTop": 2,
|
|
1557
1567
|
"errorAndHelpTextContainerPaddingTop": 2,
|
|
1558
1568
|
"errorContainerMarginRight": 4,
|
|
1559
1569
|
"errorMarginLeft": 4,
|
|
@@ -23,7 +23,11 @@ const getCardTheme = (theme: GlobalTheme) => {
|
|
|
23
23
|
superRound: theme.radii.xxxlarge,
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
const space = {
|
|
27
|
+
dataCardContentPadding: theme.space.medium,
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
return { colors, sizes, radii, space };
|
|
27
31
|
};
|
|
28
32
|
|
|
29
33
|
export default getCardTheme;
|
|
@@ -24,7 +24,7 @@ const getTextInputTheme = (theme: GlobalTheme) => {
|
|
|
24
24
|
default: theme.colors.onDefaultGlobalSurface,
|
|
25
25
|
error: theme.colors.onDefaultGlobalSurface,
|
|
26
26
|
disabled: theme.colors.disabledOnDefaultGlobalSurface,
|
|
27
|
-
readonly: theme.colors.
|
|
27
|
+
readonly: theme.colors.mutedOnDefaultGlobalSurface,
|
|
28
28
|
filled: theme.colors.onDefaultGlobalSurface,
|
|
29
29
|
},
|
|
30
30
|
labelsInsideTextInput: {
|
|
@@ -41,7 +41,13 @@ const getTextInputTheme = (theme: GlobalTheme) => {
|
|
|
41
41
|
readonly: theme.colors.inactiveOnDefaultGlobalSurface,
|
|
42
42
|
filled: theme.colors.onDefaultGlobalSurface,
|
|
43
43
|
},
|
|
44
|
-
placeholder:
|
|
44
|
+
placeholder: {
|
|
45
|
+
default: theme.colors.onDefaultGlobalSurface,
|
|
46
|
+
error: theme.colors.onDefaultGlobalSurface,
|
|
47
|
+
disabled: theme.colors.disabledOnDefaultGlobalSurface,
|
|
48
|
+
readonly: theme.colors.onDefaultGlobalSurface,
|
|
49
|
+
filled: theme.colors.onDefaultGlobalSurface,
|
|
50
|
+
},
|
|
45
51
|
};
|
|
46
52
|
|
|
47
53
|
const space = {
|
|
@@ -52,6 +58,7 @@ const getTextInputTheme = (theme: GlobalTheme) => {
|
|
|
52
58
|
labelHorizontalPadding: theme.space.xsmall,
|
|
53
59
|
inputHorizontalMargin: theme.space.small,
|
|
54
60
|
errorContainerMarginRight: theme.space.xsmall,
|
|
61
|
+
errorAndHelpTextContainerMarginTop: theme.space.xxsmall,
|
|
55
62
|
errorMarginLeft: theme.space.xsmall,
|
|
56
63
|
errorAndHelpTextContainerHorizontalPadding: theme.space.medium,
|
|
57
64
|
containerMarginTop: theme.space.small,
|