@hero-design/rn 7.2.0 → 7.2.1

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 (84) hide show
  1. package/.expo/README.md +15 -0
  2. package/.expo/packager-info.json +10 -0
  3. package/.expo/settings.json +10 -0
  4. package/.turbo/turbo-build.log +8 -0
  5. package/.turbo/turbo-publish:npm.log +0 -0
  6. package/es/index.js +16 -15
  7. package/lib/index.js +16 -15
  8. package/package.json +2 -38
  9. package/playground/components/Card.tsx +1 -1
  10. package/src/components/FAB/ActionGroup/index.tsx +1 -2
  11. package/src/theme/global/colors.ts +1 -1
  12. package/types/playground/components/Badge.d.ts +0 -0
  13. package/types/playground/components/BottomNavigation.d.ts +0 -0
  14. package/types/playground/components/Button.d.ts +0 -0
  15. package/types/playground/components/Card.d.ts +0 -0
  16. package/types/playground/components/Divider.d.ts +0 -0
  17. package/types/playground/components/FAB.d.ts +0 -0
  18. package/types/playground/components/Icon.d.ts +0 -0
  19. package/types/playground/components/Tabs.d.ts +0 -0
  20. package/types/playground/components/Typography.d.ts +0 -0
  21. package/types/playground/index.d.ts +0 -0
  22. package/types/src/components/Badge/StyledBadge.d.ts +0 -0
  23. package/types/src/components/Badge/__tests__/Badge.spec.d.ts +0 -0
  24. package/types/src/components/Badge/index.d.ts +0 -0
  25. package/types/src/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
  26. package/types/src/components/BottomNavigation/__tests__/index.spec.d.ts +0 -0
  27. package/types/src/components/BottomNavigation/index.d.ts +0 -0
  28. package/types/src/components/Button/IconButton.d.ts +0 -0
  29. package/types/src/components/Button/__tests__/index.spec.d.ts +0 -0
  30. package/types/src/components/Button/index.d.ts +0 -0
  31. package/types/src/components/Card/StyledCard.d.ts +0 -0
  32. package/types/src/components/Card/__tests__/StyledCard.spec.d.ts +0 -0
  33. package/types/src/components/Card/__tests__/index.spec.d.ts +0 -0
  34. package/types/src/components/Card/index.d.ts +0 -0
  35. package/types/src/components/Divider/StyledDivider.d.ts +0 -0
  36. package/types/src/components/Divider/__tests__/StyledDivider.spec.d.ts +0 -0
  37. package/types/src/components/Divider/index.d.ts +0 -0
  38. package/types/src/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
  39. package/types/src/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
  40. package/types/src/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
  41. package/types/src/components/FAB/ActionGroup/__tests__/index.spec.d.ts +0 -0
  42. package/types/src/components/FAB/ActionGroup/index.d.ts +3 -0
  43. package/types/src/components/FAB/AnimatedFABIcon.d.ts +0 -0
  44. package/types/src/components/FAB/FAB.d.ts +0 -0
  45. package/types/src/components/FAB/StyledFAB.d.ts +0 -0
  46. package/types/src/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts +0 -0
  47. package/types/src/components/FAB/__tests__/StyledFAB.spec.d.ts +0 -0
  48. package/types/src/components/FAB/__tests__/index.spec.d.ts +0 -0
  49. package/types/src/components/FAB/index.d.ts +0 -0
  50. package/types/src/components/Icon/HeroIcon/index.d.ts +0 -0
  51. package/types/src/components/Icon/IconList.d.ts +0 -0
  52. package/types/src/components/Icon/__tests__/index.spec.d.ts +0 -0
  53. package/types/src/components/Icon/index.d.ts +0 -0
  54. package/types/src/components/Icon/utils.d.ts +0 -0
  55. package/types/src/components/Tabs/StyledTabs.d.ts +0 -0
  56. package/types/src/components/Tabs/__tests__/index.spec.d.ts +0 -0
  57. package/types/src/components/Tabs/index.d.ts +0 -0
  58. package/types/src/components/Typography/Text/StyledText.d.ts +0 -0
  59. package/types/src/components/Typography/Text/__tests__/StyledText.spec.d.ts +0 -0
  60. package/types/src/components/Typography/Text/__tests__/index.spec.d.ts +0 -0
  61. package/types/src/components/Typography/Text/index.d.ts +0 -0
  62. package/types/src/components/Typography/index.d.ts +0 -0
  63. package/types/src/index.d.ts +0 -0
  64. package/types/src/testHelpers/renderWithTheme.d.ts +0 -0
  65. package/types/src/theme/__tests__/index.spec.d.ts +0 -0
  66. package/types/src/theme/components/badge.d.ts +0 -0
  67. package/types/src/theme/components/bottomNavigation.d.ts +0 -0
  68. package/types/src/theme/components/card.d.ts +0 -0
  69. package/types/src/theme/components/divider.d.ts +0 -0
  70. package/types/src/theme/components/fab.d.ts +0 -0
  71. package/types/src/theme/components/icon.d.ts +0 -0
  72. package/types/src/theme/components/tabs.d.ts +0 -0
  73. package/types/src/theme/components/typography.d.ts +0 -0
  74. package/types/src/theme/global/borders.d.ts +0 -0
  75. package/types/src/theme/global/colors.d.ts +0 -0
  76. package/types/src/theme/global/index.d.ts +0 -0
  77. package/types/src/theme/global/scale.d.ts +0 -0
  78. package/types/src/theme/global/space.d.ts +0 -0
  79. package/types/src/theme/global/typography.d.ts +0 -0
  80. package/types/src/theme/index.d.ts +0 -0
  81. package/types/src/types.d.ts +0 -0
  82. package/types/src/utils/__tests__/scale.spec.d.ts +0 -0
  83. package/types/src/utils/helpers.d.ts +0 -0
  84. package/types/src/utils/scale.d.ts +0 -0
@@ -0,0 +1,15 @@
1
+ > Why do I have a folder named ".expo" in my project?
2
+
3
+ The ".expo" folder is created when an Expo project is started using "expo start" command.
4
+
5
+ > What do the files contain?
6
+
7
+ - "devices.json": contains information about devices that have recently opened this project. This is used to populate the "Development sessions" list in your development builds.
8
+ - "packager-info.json": contains port numbers and process PIDs that are used to serve the application to the mobile device/simulator.
9
+ - "settings.json": contains the server configuration that is used to serve the application manifest.
10
+
11
+ > Should I commit the ".expo" folder?
12
+
13
+ No, you should not share the ".expo" folder. It does not contain any information that is relevant for other developers working on the project, it is specific to your machine.
14
+
15
+ Upon project creation, the ".expo" folder is already added to your ".gitignore" file.
@@ -0,0 +1,10 @@
1
+ {
2
+ "devToolsPort": 19002,
3
+ "expoServerPort": null,
4
+ "packagerPort": null,
5
+ "packagerPid": null,
6
+ "expoServerNgrokUrl": null,
7
+ "packagerNgrokUrl": null,
8
+ "ngrokPid": null,
9
+ "webpackServerPort": null
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "hostType": "lan",
3
+ "lanType": "ip",
4
+ "dev": true,
5
+ "minify": false,
6
+ "urlRandomness": null,
7
+ "https": false,
8
+ "scheme": null,
9
+ "devClient": false
10
+ }
@@ -0,0 +1,8 @@
1
+ @hero-design/rn:build: cache hit, replaying output 838d0cbb27d952b0
2
+ @hero-design/rn:build: $ yarn build:js && yarn build:types
3
+ @hero-design/rn:build: $ rollup -c
4
+ @hero-design/rn:build: 
5
+ @hero-design/rn:build: src/index.ts → lib/index.js, es/index.js...
6
+ @hero-design/rn:build: (!) 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`.
7
+ @hero-design/rn:build: created lib/index.js, es/index.js in 12.8s
8
+ @hero-design/rn:build: $ tsc --noEmit false --emitDeclarationOnly
File without changes
package/es/index.js CHANGED
@@ -1187,6 +1187,21 @@ function prefixer(element, index, children, callback) {
1187
1187
  }
1188
1188
  }
1189
1189
 
1190
+ var weakMemoize = function weakMemoize(func) {
1191
+ // $FlowFixMe flow doesn't include all non-primitive types as allowed for weakmaps
1192
+ var cache = new WeakMap();
1193
+ return function (arg) {
1194
+ if (cache.has(arg)) {
1195
+ // $FlowFixMe
1196
+ return cache.get(arg);
1197
+ }
1198
+
1199
+ var ret = func(arg);
1200
+ cache.set(arg, ret);
1201
+ return ret;
1202
+ };
1203
+ };
1204
+
1190
1205
  var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
1191
1206
  var previous = 0;
1192
1207
  var character = 0;
@@ -1424,21 +1439,6 @@ function _extends$1() {
1424
1439
  return _extends$1.apply(this, arguments);
1425
1440
  }
1426
1441
 
1427
- var weakMemoize = function weakMemoize(func) {
1428
- // $FlowFixMe flow doesn't include all non-primitive types as allowed for weakmaps
1429
- var cache = new WeakMap();
1430
- return function (arg) {
1431
- if (cache.has(arg)) {
1432
- // $FlowFixMe
1433
- return cache.get(arg);
1434
- }
1435
-
1436
- var ret = func(arg);
1437
- cache.set(arg, ret);
1438
- return ret;
1439
- };
1440
- };
1441
-
1442
1442
  var EmotionCacheContext = /* #__PURE__ */createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
1443
1443
  // because this module is primarily intended for the browser and node
1444
1444
  // but it's also required in react native and similar environments sometimes
@@ -1563,6 +1563,7 @@ var palette = {
1563
1563
  smaltDark75: '#000d20',
1564
1564
  smaltLight30: '#4d72a6',
1565
1565
  smaltLight45: '#7390b9',
1566
+ smaltLight75: '#bfcddf',
1566
1567
  smaltLight90: '#e6ebf2',
1567
1568
  violet: '#7622d7',
1568
1569
  violetDark15: '#641db7',
package/lib/index.js CHANGED
@@ -1214,6 +1214,21 @@ function prefixer(element, index, children, callback) {
1214
1214
  }
1215
1215
  }
1216
1216
 
1217
+ var weakMemoize = function weakMemoize(func) {
1218
+ // $FlowFixMe flow doesn't include all non-primitive types as allowed for weakmaps
1219
+ var cache = new WeakMap();
1220
+ return function (arg) {
1221
+ if (cache.has(arg)) {
1222
+ // $FlowFixMe
1223
+ return cache.get(arg);
1224
+ }
1225
+
1226
+ var ret = func(arg);
1227
+ cache.set(arg, ret);
1228
+ return ret;
1229
+ };
1230
+ };
1231
+
1217
1232
  var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
1218
1233
  var previous = 0;
1219
1234
  var character = 0;
@@ -1451,21 +1466,6 @@ function _extends$1() {
1451
1466
  return _extends$1.apply(this, arguments);
1452
1467
  }
1453
1468
 
1454
- var weakMemoize = function weakMemoize(func) {
1455
- // $FlowFixMe flow doesn't include all non-primitive types as allowed for weakmaps
1456
- var cache = new WeakMap();
1457
- return function (arg) {
1458
- if (cache.has(arg)) {
1459
- // $FlowFixMe
1460
- return cache.get(arg);
1461
- }
1462
-
1463
- var ret = func(arg);
1464
- cache.set(arg, ret);
1465
- return ret;
1466
- };
1467
- };
1468
-
1469
1469
  var EmotionCacheContext = /* #__PURE__ */React.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
1470
1470
  // because this module is primarily intended for the browser and node
1471
1471
  // but it's also required in react native and similar environments sometimes
@@ -1590,6 +1590,7 @@ var palette = {
1590
1590
  smaltDark75: '#000d20',
1591
1591
  smaltLight30: '#4d72a6',
1592
1592
  smaltLight45: '#7390b9',
1593
+ smaltLight75: '#bfcddf',
1593
1594
  smaltLight90: '#e6ebf2',
1594
1595
  violet: '#7622d7',
1595
1596
  violetDark15: '#641db7',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "7.2.0",
3
+ "version": "7.2.1",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -20,7 +20,7 @@
20
20
  "dependencies": {
21
21
  "@emotion/native": "^11.9.3",
22
22
  "@emotion/react": "^11.9.3",
23
- "@hero-design/colors": "7.2.0"
23
+ "@hero-design/colors": "7.2.1"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "react": "17.0.2",
@@ -70,41 +70,5 @@
70
70
  "rollup-plugin-copy": "^3.4.0",
71
71
  "ts-jest": "^27.0.7",
72
72
  "typescript": "^4.5.5"
73
- },
74
- "nx": {
75
- "targets": {
76
- "type-check": {
77
- "dependsOn": [
78
- {
79
- "target": "build:types",
80
- "projects": "dependencies"
81
- }
82
- ]
83
- },
84
- "lint": {
85
- "dependsOn": [
86
- {
87
- "target": "build:js",
88
- "projects": "dependencies"
89
- }
90
- ]
91
- },
92
- "test:ci": {
93
- "dependsOn": [
94
- {
95
- "target": "build",
96
- "projects": "dependencies"
97
- }
98
- ]
99
- },
100
- "dev": {
101
- "dependsOn": [
102
- {
103
- "target": "build",
104
- "projects": "dependencies"
105
- }
106
- ]
107
- }
108
- }
109
73
  }
110
74
  }
@@ -6,7 +6,7 @@ import {
6
6
  TouchableOpacity,
7
7
  ScrollView,
8
8
  } from 'react-native';
9
- import { palette } from '@hero-design/colors';
9
+ import palette from '@hero-design/colors';
10
10
  import {
11
11
  scale,
12
12
  Card,
@@ -25,7 +25,7 @@ const ActionItemsListComponent = ({
25
25
  );
26
26
 
27
27
  export interface ActionGroupProps {
28
- /*
28
+ /**
29
29
  * Title of the action group header.
30
30
  */
31
31
  headerTitle?: string;
@@ -37,7 +37,6 @@ export interface ActionGroupProps {
37
37
  * Specify if the FAB button is in active state and the action group is shown.
38
38
  * */
39
39
  active?: boolean;
40
-
41
40
  /**
42
41
  * Additional style.
43
42
  */
@@ -1,4 +1,4 @@
1
- import { palette } from '@hero-design/colors';
1
+ import palette from '@hero-design/colors';
2
2
 
3
3
  const systemPalette = {
4
4
  primary: palette.violet,
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,6 +1,9 @@
1
1
  import { StyleProp, ViewStyle } from 'react-native';
2
2
  import { ActionItemProps } from './ActionItem';
3
3
  export interface ActionGroupProps {
4
+ /**
5
+ * Title of the action group header.
6
+ */
4
7
  headerTitle?: string;
5
8
  /**
6
9
  * This function is called on pressing the FAB button.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes