@metamask-previews/design-system-react-native 0.0.0-preview.52473ea → 0.0.0-preview.6fee845

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.
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export type ButtonProps = {
3
+ text: string;
4
+ };
5
+ declare const Button: ({ text }: ButtonProps) => React.JSX.Element;
6
+ export default Button;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { TouchableOpacity, Text } from 'react-native';
3
+ const Button = ({ text }) => {
4
+ return (<TouchableOpacity>
5
+ <Text>{text}</Text>
6
+ </TouchableOpacity>);
7
+ };
8
+ export default Button;
@@ -0,0 +1 @@
1
+ export { default as Button } from './components/Button';
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export { default as Button } from './components/Button';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/design-system-react-native",
3
- "version": "0.0.0-preview.52473ea",
3
+ "version": "0.0.0-preview.6fee845",
4
4
  "description": "Design System React Native",
5
5
  "keywords": [
6
6
  "MetaMask",
@@ -19,23 +19,19 @@
19
19
  "exports": {
20
20
  ".": {
21
21
  "import": {
22
- "types": "./dist/index.d.mts",
23
- "default": "./dist/index.mjs"
24
- },
25
- "require": {
26
- "types": "./dist/index.d.cts",
27
- "default": "./dist/index.cjs"
22
+ "types": "./dist/index.d.ts",
23
+ "default": "./dist/index.js"
28
24
  }
29
25
  },
30
26
  "./package.json": "./package.json"
31
27
  },
32
- "main": "./dist/index.cjs",
33
- "types": "./dist/index.d.cts",
28
+ "main": "./dist/index.js",
29
+ "types": "./dist/index.d.ts",
34
30
  "files": [
35
31
  "dist/"
36
32
  ],
37
33
  "scripts": {
38
- "build": "ts-bridge --project tsconfig.build.json --verbose --clean --no-references",
34
+ "build": "tsc --project tsconfig.build.json",
39
35
  "build:docs": "typedoc",
40
36
  "changelog:update": "../../scripts/update-changelog.sh @metamask/design-system-react-native",
41
37
  "changelog:validate": "../../scripts/validate-changelog.sh @metamask/design-system-react-native",
@@ -49,13 +45,19 @@
49
45
  "devDependencies": {
50
46
  "@metamask/auto-changelog": "^3.4.4",
51
47
  "@types/jest": "^27.4.1",
48
+ "@types/react-native": "^0.72.0",
52
49
  "deepmerge": "^4.2.2",
50
+ "eslint": "^8.44.0",
53
51
  "jest": "^27.5.1",
54
52
  "ts-jest": "^27.1.4",
55
53
  "typedoc": "^0.24.8",
56
54
  "typedoc-plugin-missing-exports": "^2.0.0",
57
55
  "typescript": "~5.2.2"
58
56
  },
57
+ "peerDependencies": {
58
+ "react": "^18.2.0",
59
+ "react-native": "0.72.15"
60
+ },
59
61
  "engines": {
60
62
  "node": "^18.18 || >=20"
61
63
  },
package/dist/index.cjs DELETED
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- /**
4
- * Example function that returns a greeting for the given name.
5
- *
6
- * @param name - The name to greet.
7
- * @returns The greeting.
8
- */
9
- function greeter(name) {
10
- return `Hello, ${name}!`;
11
- }
12
- exports.default = greeter;
13
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAAA;;;;;GAKG;AACH,SAAwB,OAAO,CAAC,IAAY;IAC1C,OAAO,UAAU,IAAI,GAAG,CAAC;AAC3B,CAAC;AAFD,0BAEC","sourcesContent":["/**\n * Example function that returns a greeting for the given name.\n *\n * @param name - The name to greet.\n * @returns The greeting.\n */\nexport default function greeter(name: string): string {\n return `Hello, ${name}!`;\n}\n"]}
package/dist/index.d.cts DELETED
@@ -1,8 +0,0 @@
1
- /**
2
- * Example function that returns a greeting for the given name.
3
- *
4
- * @param name - The name to greet.
5
- * @returns The greeting.
6
- */
7
- export default function greeter(name: string): string;
8
- //# sourceMappingURL=index.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEpD"}
package/dist/index.d.mts DELETED
@@ -1,8 +0,0 @@
1
- /**
2
- * Example function that returns a greeting for the given name.
3
- *
4
- * @param name - The name to greet.
5
- * @returns The greeting.
6
- */
7
- export default function greeter(name: string): string;
8
- //# sourceMappingURL=index.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEpD"}
package/dist/index.mjs DELETED
@@ -1,10 +0,0 @@
1
- /**
2
- * Example function that returns a greeting for the given name.
3
- *
4
- * @param name - The name to greet.
5
- * @returns The greeting.
6
- */
7
- export default function greeter(name) {
8
- return `Hello, ${name}!`;
9
- }
10
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,IAAY;IAC1C,OAAO,UAAU,IAAI,GAAG,CAAC;AAC3B,CAAC","sourcesContent":["/**\n * Example function that returns a greeting for the given name.\n *\n * @param name - The name to greet.\n * @returns The greeting.\n */\nexport default function greeter(name: string): string {\n return `Hello, ${name}!`;\n}\n"]}