@hero-design/rn 7.3.1 → 7.3.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.
Files changed (28) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/es/index.js +15 -16
  3. package/lib/index.js +15 -16
  4. package/package.json +2 -2
  5. package/src/components/Card/index.tsx +1 -1
  6. package/types/playground/components/IconButton.d.ts +0 -0
  7. package/types/src/components/Button/Button.d.ts +0 -0
  8. package/types/src/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
  9. package/types/src/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.d.ts +0 -0
  10. package/types/src/components/Button/LoadingIndicator/__tests__/index.spec.d.ts +0 -0
  11. package/types/src/components/Button/LoadingIndicator/index.d.ts +0 -0
  12. package/types/src/components/Button/StyledButton.d.ts +0 -0
  13. package/types/src/components/Button/__tests__/Button.spec.d.ts +0 -0
  14. package/types/src/components/Button/__tests__/IconButton.spec.d.ts +0 -0
  15. package/types/src/components/Button/__tests__/StyledButton.spec.d.ts +0 -0
  16. package/types/src/components/Tabs/ScrollableTab.d.ts +3 -0
  17. package/types/src/components/Tabs/StyledScrollableTab.d.ts +61 -0
  18. package/types/src/components/Tabs/__tests__/ScrollableTab.spec.d.ts +1 -0
  19. package/types/src/theme/components/button.d.ts +0 -0
  20. package/.expo/README.md +0 -15
  21. package/.expo/packager-info.json +0 -10
  22. package/.expo/prebuild/cached-packages.json +0 -4
  23. package/.expo/settings.json +0 -10
  24. package/.expo/xcodebuild-error.log +0 -2
  25. package/.expo/xcodebuild.log +0 -11199
  26. package/.turbo/turbo-build:types.log +0 -2
  27. package/.turbo/turbo-test.log +0 -131
  28. package/.turbo/turbo-type-check.log +0 -7
@@ -1,8 +1,8 @@
1
- @hero-design/rn:build: cache hit, replaying output 43b3ee7bc63924ae
1
+ @hero-design/rn:build: cache hit, replaying output d678165ae574b440
2
2
  @hero-design/rn:build: $ yarn build:js && yarn build:types
3
3
  @hero-design/rn:build: $ rollup -c
4
4
  @hero-design/rn:build: 
5
5
  @hero-design/rn:build: src/index.ts → lib/index.js, es/index.js...
6
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 5.4s
7
+ @hero-design/rn:build: created lib/index.js, es/index.js in 17.4s
8
8
  @hero-design/rn:build: $ tsc --noEmit false --emitDeclarationOnly
package/es/index.js CHANGED
@@ -1296,21 +1296,6 @@ function prefixer(element, index, children, callback) {
1296
1296
  }
1297
1297
  }
1298
1298
 
1299
- var weakMemoize = function weakMemoize(func) {
1300
- // $FlowFixMe flow doesn't include all non-primitive types as allowed for weakmaps
1301
- var cache = new WeakMap();
1302
- return function (arg) {
1303
- if (cache.has(arg)) {
1304
- // $FlowFixMe
1305
- return cache.get(arg);
1306
- }
1307
-
1308
- var ret = func(arg);
1309
- cache.set(arg, ret);
1310
- return ret;
1311
- };
1312
- };
1313
-
1314
1299
  var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
1315
1300
  var previous = 0;
1316
1301
  var character = 0;
@@ -1548,6 +1533,21 @@ function _extends$2() {
1548
1533
  return _extends$2.apply(this, arguments);
1549
1534
  }
1550
1535
 
1536
+ var weakMemoize = function weakMemoize(func) {
1537
+ // $FlowFixMe flow doesn't include all non-primitive types as allowed for weakmaps
1538
+ var cache = new WeakMap();
1539
+ return function (arg) {
1540
+ if (cache.has(arg)) {
1541
+ // $FlowFixMe
1542
+ return cache.get(arg);
1543
+ }
1544
+
1545
+ var ret = func(arg);
1546
+ cache.set(arg, ret);
1547
+ return ret;
1548
+ };
1549
+ };
1550
+
1551
1551
  var EmotionCacheContext = /* #__PURE__ */createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
1552
1552
  // because this module is primarily intended for the browser and node
1553
1553
  // but it's also required in react native and similar environments sometimes
@@ -14757,7 +14757,6 @@ var Card = function Card(_ref) {
14757
14757
  nativeProps = _objectWithoutProperties$1(_ref, _excluded$5);
14758
14758
 
14759
14759
  return /*#__PURE__*/React.createElement(StyledCard, _extends$3({}, nativeProps, {
14760
- testID: "card",
14761
14760
  themeVariant: variant
14762
14761
  }), variant === 'data' && /*#__PURE__*/React.createElement(LeftDataCard, {
14763
14762
  testID: "data-card-indicator"
package/lib/index.js CHANGED
@@ -1323,21 +1323,6 @@ function prefixer(element, index, children, callback) {
1323
1323
  }
1324
1324
  }
1325
1325
 
1326
- var weakMemoize = function weakMemoize(func) {
1327
- // $FlowFixMe flow doesn't include all non-primitive types as allowed for weakmaps
1328
- var cache = new WeakMap();
1329
- return function (arg) {
1330
- if (cache.has(arg)) {
1331
- // $FlowFixMe
1332
- return cache.get(arg);
1333
- }
1334
-
1335
- var ret = func(arg);
1336
- cache.set(arg, ret);
1337
- return ret;
1338
- };
1339
- };
1340
-
1341
1326
  var identifierWithPointTracking = function identifierWithPointTracking(begin, points, index) {
1342
1327
  var previous = 0;
1343
1328
  var character = 0;
@@ -1575,6 +1560,21 @@ function _extends$2() {
1575
1560
  return _extends$2.apply(this, arguments);
1576
1561
  }
1577
1562
 
1563
+ var weakMemoize = function weakMemoize(func) {
1564
+ // $FlowFixMe flow doesn't include all non-primitive types as allowed for weakmaps
1565
+ var cache = new WeakMap();
1566
+ return function (arg) {
1567
+ if (cache.has(arg)) {
1568
+ // $FlowFixMe
1569
+ return cache.get(arg);
1570
+ }
1571
+
1572
+ var ret = func(arg);
1573
+ cache.set(arg, ret);
1574
+ return ret;
1575
+ };
1576
+ };
1577
+
1578
1578
  var EmotionCacheContext = /* #__PURE__ */React.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
1579
1579
  // because this module is primarily intended for the browser and node
1580
1580
  // but it's also required in react native and similar environments sometimes
@@ -14784,7 +14784,6 @@ var Card = function Card(_ref) {
14784
14784
  nativeProps = _objectWithoutProperties$1(_ref, _excluded$5);
14785
14785
 
14786
14786
  return /*#__PURE__*/React__default["default"].createElement(StyledCard, _extends$3({}, nativeProps, {
14787
- testID: "card",
14788
14787
  themeVariant: variant
14789
14788
  }), variant === 'data' && /*#__PURE__*/React__default["default"].createElement(LeftDataCard, {
14790
14789
  testID: "data-card-indicator"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn",
3
- "version": "7.3.1",
3
+ "version": "7.3.2",
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.3.1"
23
+ "@hero-design/colors": "7.3.2"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "react": "17.0.2",
@@ -26,7 +26,7 @@ const Card = ({
26
26
  children,
27
27
  ...nativeProps
28
28
  }: CardProps): JSX.Element => (
29
- <StyledCard {...nativeProps} testID="card" themeVariant={variant}>
29
+ <StyledCard {...nativeProps} themeVariant={variant}>
30
30
  {variant === 'data' && <LeftDataCard testID="data-card-indicator" />}
31
31
  {children}
32
32
  </StyledCard>
File without changes
File without changes
File without changes
@@ -0,0 +1,3 @@
1
+ import { TabsProps } from '.';
2
+ declare const ScrollableTab: ({ onTabPress, selectedTabKey, tabs, containerStyle, barStyle, lazy, lazyPreloadDistance, }: Omit<TabsProps, 'variant'>) => JSX.Element;
3
+ export default ScrollableTab;
@@ -0,0 +1,61 @@
1
+ /// <reference types="react" />
2
+ import { Animated, View } from 'react-native';
3
+ import PagerView from 'react-native-pager-view';
4
+ declare const TabScreen: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
5
+ theme?: import("@emotion/react").Theme | undefined;
6
+ as?: import("react").ElementType<any> | undefined;
7
+ }, {}, {
8
+ ref?: import("react").Ref<View> | undefined;
9
+ }>;
10
+ declare const TabContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
11
+ theme?: import("@emotion/react").Theme | undefined;
12
+ as?: import("react").ElementType<any> | undefined;
13
+ }, {}, {
14
+ ref?: import("react").Ref<View> | undefined;
15
+ }>;
16
+ declare const ContentWrapper: import("@emotion/native").StyledComponent<import("react-native-pager-view").PagerViewProps & {
17
+ theme?: import("@emotion/react").Theme | undefined;
18
+ as?: import("react").ElementType<any> | undefined;
19
+ }, {}, {
20
+ ref?: import("react").Ref<PagerView> | undefined;
21
+ }>;
22
+ declare const HeaderTabWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
23
+ theme?: import("@emotion/react").Theme | undefined;
24
+ as?: import("react").ElementType<any> | undefined;
25
+ } & {
26
+ themeInsets: {
27
+ top: number;
28
+ right: number;
29
+ bottom: number;
30
+ left: number;
31
+ };
32
+ }, {}, {
33
+ ref?: import("react").Ref<View> | undefined;
34
+ }>;
35
+ declare const HeaderTabItem: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
36
+ children?: import("react").ReactNode;
37
+ } & {
38
+ theme?: import("@emotion/react").Theme | undefined;
39
+ as?: import("react").ElementType<any> | undefined;
40
+ }, {}, {}>;
41
+ declare const HeaderTabItemOutlineWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
42
+ theme?: import("@emotion/react").Theme | undefined;
43
+ as?: import("react").ElementType<any> | undefined;
44
+ }, {}, {
45
+ ref?: import("react").Ref<View> | undefined;
46
+ }>;
47
+ declare const HeaderTabItemOutline: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
48
+ children?: import("react").ReactNode;
49
+ } & {
50
+ theme?: import("@emotion/react").Theme | undefined;
51
+ as?: import("react").ElementType<any> | undefined;
52
+ } & {
53
+ themeActive: boolean;
54
+ }, {}, {}>;
55
+ declare const HeaderTabItemWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
56
+ theme?: import("@emotion/react").Theme | undefined;
57
+ as?: import("react").ElementType<any> | undefined;
58
+ }, {}, {
59
+ ref?: import("react").Ref<View> | undefined;
60
+ }>;
61
+ export { HeaderTabItem, TabScreen, TabContainer, HeaderTabWrapper, ContentWrapper, HeaderTabItemOutlineWrapper, HeaderTabItemOutline, HeaderTabItemWrapper, };
File without changes
package/.expo/README.md DELETED
@@ -1,15 +0,0 @@
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.
@@ -1,10 +0,0 @@
1
- {
2
- "devToolsPort": 19002,
3
- "expoServerPort": null,
4
- "packagerPort": 19000,
5
- "packagerPid": null,
6
- "expoServerNgrokUrl": null,
7
- "packagerNgrokUrl": null,
8
- "ngrokPid": null,
9
- "webpackServerPort": null
10
- }
@@ -1,4 +0,0 @@
1
- {
2
- "dependencies": "75a9d3d29379eb983d76968e2681af38c930ef79",
3
- "devDependencies": "843b58fa49ff6a9ac1aaf4f6f32cb9da88f61475"
4
- }
@@ -1,10 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- 2022-08-15 16:30:43.312 xcodebuild[51962:564141] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2
- 2022-08-15 16:30:43.312 xcodebuild[51962:564141] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore