@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.
- package/.expo/README.md +15 -0
- package/.expo/packager-info.json +10 -0
- package/.expo/settings.json +10 -0
- package/.turbo/turbo-build.log +8 -0
- package/.turbo/turbo-publish:npm.log +0 -0
- package/es/index.js +16 -15
- package/lib/index.js +16 -15
- package/package.json +2 -38
- package/playground/components/Card.tsx +1 -1
- package/src/components/FAB/ActionGroup/index.tsx +1 -2
- package/src/theme/global/colors.ts +1 -1
- package/types/playground/components/Badge.d.ts +0 -0
- package/types/playground/components/BottomNavigation.d.ts +0 -0
- package/types/playground/components/Button.d.ts +0 -0
- package/types/playground/components/Card.d.ts +0 -0
- package/types/playground/components/Divider.d.ts +0 -0
- package/types/playground/components/FAB.d.ts +0 -0
- package/types/playground/components/Icon.d.ts +0 -0
- package/types/playground/components/Tabs.d.ts +0 -0
- package/types/playground/components/Typography.d.ts +0 -0
- package/types/playground/index.d.ts +0 -0
- package/types/src/components/Badge/StyledBadge.d.ts +0 -0
- package/types/src/components/Badge/__tests__/Badge.spec.d.ts +0 -0
- package/types/src/components/Badge/index.d.ts +0 -0
- package/types/src/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
- package/types/src/components/BottomNavigation/__tests__/index.spec.d.ts +0 -0
- package/types/src/components/BottomNavigation/index.d.ts +0 -0
- package/types/src/components/Button/IconButton.d.ts +0 -0
- package/types/src/components/Button/__tests__/index.spec.d.ts +0 -0
- package/types/src/components/Button/index.d.ts +0 -0
- package/types/src/components/Card/StyledCard.d.ts +0 -0
- package/types/src/components/Card/__tests__/StyledCard.spec.d.ts +0 -0
- package/types/src/components/Card/__tests__/index.spec.d.ts +0 -0
- package/types/src/components/Card/index.d.ts +0 -0
- package/types/src/components/Divider/StyledDivider.d.ts +0 -0
- package/types/src/components/Divider/__tests__/StyledDivider.spec.d.ts +0 -0
- package/types/src/components/Divider/index.d.ts +0 -0
- package/types/src/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
- package/types/src/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
- package/types/src/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
- package/types/src/components/FAB/ActionGroup/__tests__/index.spec.d.ts +0 -0
- package/types/src/components/FAB/ActionGroup/index.d.ts +3 -0
- package/types/src/components/FAB/AnimatedFABIcon.d.ts +0 -0
- package/types/src/components/FAB/FAB.d.ts +0 -0
- package/types/src/components/FAB/StyledFAB.d.ts +0 -0
- package/types/src/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts +0 -0
- package/types/src/components/FAB/__tests__/StyledFAB.spec.d.ts +0 -0
- package/types/src/components/FAB/__tests__/index.spec.d.ts +0 -0
- package/types/src/components/FAB/index.d.ts +0 -0
- package/types/src/components/Icon/HeroIcon/index.d.ts +0 -0
- package/types/src/components/Icon/IconList.d.ts +0 -0
- package/types/src/components/Icon/__tests__/index.spec.d.ts +0 -0
- package/types/src/components/Icon/index.d.ts +0 -0
- package/types/src/components/Icon/utils.d.ts +0 -0
- package/types/src/components/Tabs/StyledTabs.d.ts +0 -0
- package/types/src/components/Tabs/__tests__/index.spec.d.ts +0 -0
- package/types/src/components/Tabs/index.d.ts +0 -0
- package/types/src/components/Typography/Text/StyledText.d.ts +0 -0
- package/types/src/components/Typography/Text/__tests__/StyledText.spec.d.ts +0 -0
- package/types/src/components/Typography/Text/__tests__/index.spec.d.ts +0 -0
- package/types/src/components/Typography/Text/index.d.ts +0 -0
- package/types/src/components/Typography/index.d.ts +0 -0
- package/types/src/index.d.ts +0 -0
- package/types/src/testHelpers/renderWithTheme.d.ts +0 -0
- package/types/src/theme/__tests__/index.spec.d.ts +0 -0
- package/types/src/theme/components/badge.d.ts +0 -0
- package/types/src/theme/components/bottomNavigation.d.ts +0 -0
- package/types/src/theme/components/card.d.ts +0 -0
- package/types/src/theme/components/divider.d.ts +0 -0
- package/types/src/theme/components/fab.d.ts +0 -0
- package/types/src/theme/components/icon.d.ts +0 -0
- package/types/src/theme/components/tabs.d.ts +0 -0
- package/types/src/theme/components/typography.d.ts +0 -0
- package/types/src/theme/global/borders.d.ts +0 -0
- package/types/src/theme/global/colors.d.ts +0 -0
- package/types/src/theme/global/index.d.ts +0 -0
- package/types/src/theme/global/scale.d.ts +0 -0
- package/types/src/theme/global/space.d.ts +0 -0
- package/types/src/theme/global/typography.d.ts +0 -0
- package/types/src/theme/index.d.ts +0 -0
- package/types/src/types.d.ts +0 -0
- package/types/src/utils/__tests__/scale.spec.d.ts +0 -0
- package/types/src/utils/helpers.d.ts +0 -0
- package/types/src/utils/scale.d.ts +0 -0
package/.expo/README.md
ADDED
|
@@ -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,8 @@
|
|
|
1
|
+
[34m@hero-design/rn:build[0m: cache hit, replaying output [2m838d0cbb27d952b0[0m
|
|
2
|
+
[34m@hero-design/rn:build: [0m$ yarn build:js && yarn build:types
|
|
3
|
+
[34m@hero-design/rn:build: [0m$ rollup -c
|
|
4
|
+
[34m@hero-design/rn:build: [0m[36m
|
|
5
|
+
[34m@hero-design/rn:build: [0m[1msrc/index.ts[22m → [1mlib/index.js, es/index.js[22m...[39m
|
|
6
|
+
[34m@hero-design/rn:build: [0m[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
|
|
7
|
+
[34m@hero-design/rn:build: [0m[32mcreated [1mlib/index.js, es/index.js[22m in [1m12.8s[22m[39m
|
|
8
|
+
[34m@hero-design/rn:build: [0m$ 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.
|
|
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.
|
|
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
|
}
|
|
@@ -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
|
*/
|
|
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
|
|
@@ -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
|
package/types/src/index.d.ts
CHANGED
|
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
|
package/types/src/types.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|