@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.
Files changed (115) hide show
  1. package/.turbo/turbo-build.log +3 -3
  2. package/CHANGELOG.md +12 -0
  3. package/es/index.js +207 -130
  4. package/lib/index.js +208 -129
  5. package/package.json +1 -1
  6. package/src/components/Card/DataCard/StyledDataCard.tsx +6 -1
  7. package/src/components/Card/index.tsx +2 -0
  8. package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +6 -3
  9. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +2 -1
  10. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +2 -1
  11. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +4 -2
  12. package/src/components/Illustration/BaseSvg.tsx +28 -0
  13. package/src/components/Illustration/__tests__/index.spec.tsx +95 -0
  14. package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/Add.tsx +6 -5
  15. package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/Boom.tsx +12 -5
  16. package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/Build.tsx +12 -5
  17. package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/Clock.tsx +12 -5
  18. package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/Confetti.tsx +14 -7
  19. package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/Connections.tsx +12 -5
  20. package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/Error.tsx +13 -6
  21. package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/Info.tsx +12 -5
  22. package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/List.tsx +12 -5
  23. package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/Location.tsx +12 -5
  24. package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/Lock.tsx +12 -5
  25. package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/Merge.tsx +12 -5
  26. package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/NoResult.tsx +12 -5
  27. package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/Notifications.tsx +12 -5
  28. package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/Search.tsx +12 -5
  29. package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/Star.tsx +12 -5
  30. package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/Success.tsx +13 -6
  31. package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/Unlock.tsx +12 -5
  32. package/src/components/{StatusScreens/StatusIcon → Illustration}/assets/User.tsx +12 -5
  33. package/src/components/Illustration/constants.ts +3 -0
  34. package/src/components/{StatusScreens/StatusIcon/index.tsx → Illustration/illustrations.ts} +5 -27
  35. package/src/components/Illustration/index.tsx +64 -0
  36. package/src/components/Illustration/types.ts +7 -0
  37. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +2 -0
  38. package/src/components/Search/SearchOneLine.tsx +2 -1
  39. package/src/components/Search/__tests__/__snapshots__/SearchOneLine.spec.tsx.snap +7 -7
  40. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +14 -7
  41. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +12 -6
  42. package/src/components/StatusScreens/Empty/__tests__/__snapshots__/index.spec.tsx.snap +123 -114
  43. package/src/components/StatusScreens/Empty/index.tsx +5 -5
  44. package/src/components/StatusScreens/Error/__tests__/__snapshots__/index.spec.tsx.snap +157 -148
  45. package/src/components/StatusScreens/Error/index.tsx +5 -5
  46. package/src/components/StatusScreens/Success/__tests__/__snapshots__/index.spec.tsx.snap +123 -114
  47. package/src/components/StatusScreens/Success/index.tsx +5 -5
  48. package/src/components/TextInput/StyledTextInput.tsx +2 -1
  49. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +34 -17
  50. package/src/components/TextInput/__tests__/index.spec.tsx +34 -0
  51. package/src/components/TextInput/index.tsx +4 -1
  52. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +4 -2
  53. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +4 -2
  54. package/src/index.ts +7 -0
  55. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +12 -2
  56. package/src/theme/components/card.ts +5 -1
  57. package/src/theme/components/textInput.ts +9 -2
  58. package/stats/8.106.1/rn-stats.html +0 -2
  59. package/stats/8.107.0/rn-stats.html +4844 -0
  60. package/types/components/Card/DataCard/StyledDataCard.d.ts +7 -1
  61. package/types/components/Card/index.d.ts +7 -0
  62. package/types/components/Illustration/BaseSvg.d.ts +8 -0
  63. package/types/components/Illustration/assets/Add.d.ts +4 -0
  64. package/types/components/Illustration/assets/Boom.d.ts +4 -0
  65. package/types/components/Illustration/assets/Build.d.ts +4 -0
  66. package/types/components/Illustration/assets/Clock.d.ts +4 -0
  67. package/types/components/Illustration/assets/Confetti.d.ts +4 -0
  68. package/types/components/Illustration/assets/Connections.d.ts +4 -0
  69. package/types/components/Illustration/assets/Error.d.ts +4 -0
  70. package/types/components/Illustration/assets/Info.d.ts +4 -0
  71. package/types/components/Illustration/assets/List.d.ts +4 -0
  72. package/types/components/Illustration/assets/Location.d.ts +4 -0
  73. package/types/components/Illustration/assets/Lock.d.ts +4 -0
  74. package/types/components/Illustration/assets/Merge.d.ts +4 -0
  75. package/types/components/Illustration/assets/NoResult.d.ts +4 -0
  76. package/types/components/Illustration/assets/Notifications.d.ts +4 -0
  77. package/types/components/Illustration/assets/Search.d.ts +4 -0
  78. package/types/components/Illustration/assets/Star.d.ts +4 -0
  79. package/types/components/Illustration/assets/Success.d.ts +4 -0
  80. package/types/components/Illustration/assets/Unlock.d.ts +4 -0
  81. package/types/components/Illustration/assets/User.d.ts +4 -0
  82. package/types/components/Illustration/constants.d.ts +1 -0
  83. package/types/components/Illustration/illustrations.d.ts +23 -0
  84. package/types/components/Illustration/index.d.ts +29 -0
  85. package/types/components/Illustration/types.d.ts +7 -0
  86. package/types/components/StatusScreens/Empty/index.d.ts +2 -2
  87. package/types/components/StatusScreens/Error/index.d.ts +2 -2
  88. package/types/components/StatusScreens/Success/index.d.ts +2 -2
  89. package/types/components/TextInput/index.d.ts +2 -1
  90. package/types/index.d.ts +2 -1
  91. package/types/theme/components/card.d.ts +3 -0
  92. package/types/theme/components/textInput.d.ts +8 -1
  93. package/src/components/StatusScreens/StatusIcon/__tests__/index.spec.tsx +0 -35
  94. package/src/components/StatusScreens/StatusIcon/types.ts +0 -5
  95. package/types/components/StatusScreens/StatusIcon/assets/Add.d.ts +0 -4
  96. package/types/components/StatusScreens/StatusIcon/assets/Boom.d.ts +0 -4
  97. package/types/components/StatusScreens/StatusIcon/assets/Build.d.ts +0 -4
  98. package/types/components/StatusScreens/StatusIcon/assets/Clock.d.ts +0 -4
  99. package/types/components/StatusScreens/StatusIcon/assets/Confetti.d.ts +0 -4
  100. package/types/components/StatusScreens/StatusIcon/assets/Connections.d.ts +0 -4
  101. package/types/components/StatusScreens/StatusIcon/assets/Error.d.ts +0 -4
  102. package/types/components/StatusScreens/StatusIcon/assets/Info.d.ts +0 -4
  103. package/types/components/StatusScreens/StatusIcon/assets/List.d.ts +0 -4
  104. package/types/components/StatusScreens/StatusIcon/assets/Location.d.ts +0 -4
  105. package/types/components/StatusScreens/StatusIcon/assets/Lock.d.ts +0 -4
  106. package/types/components/StatusScreens/StatusIcon/assets/Merge.d.ts +0 -4
  107. package/types/components/StatusScreens/StatusIcon/assets/NoResult.d.ts +0 -4
  108. package/types/components/StatusScreens/StatusIcon/assets/Notifications.d.ts +0 -4
  109. package/types/components/StatusScreens/StatusIcon/assets/Search.d.ts +0 -4
  110. package/types/components/StatusScreens/StatusIcon/assets/Star.d.ts +0 -4
  111. package/types/components/StatusScreens/StatusIcon/assets/Success.d.ts +0 -4
  112. package/types/components/StatusScreens/StatusIcon/assets/Unlock.d.ts +0 -4
  113. package/types/components/StatusScreens/StatusIcon/assets/User.d.ts +0 -4
  114. package/types/components/StatusScreens/StatusIcon/index.d.ts +0 -29
  115. 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="#4d6265"
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="#4d6265"
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="#4d6265"
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="#4d6265"
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": "#808f91",
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": "#4d6265",
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
- return { colors, sizes, radii };
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.inactiveOnDefaultGlobalSurface,
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: theme.colors.mutedOnDefaultGlobalSurface,
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,
@@ -4840,5 +4840,3 @@ var drawChart = (function (exports) {
4840
4840
  </body>
4841
4841
  </html>
4842
4842
 
4843
- l>
4844
-