@jianeasy0922/extended-warranty-page 1.0.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.
@@ -0,0 +1,5 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ declare function WarrantyContent(): react_jsx_runtime.JSX.Element;
4
+
5
+ export { WarrantyContent };
@@ -0,0 +1,5 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ declare function WarrantyContent(): react_jsx_runtime.JSX.Element;
4
+
5
+ export { WarrantyContent };
package/dist/index.js ADDED
@@ -0,0 +1,35 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/index.ts
20
+ var index_exports = {};
21
+ __export(index_exports, {
22
+ WarrantyContent: () => WarrantyContent
23
+ });
24
+ module.exports = __toCommonJS(index_exports);
25
+
26
+ // src/components/WarrantyContent/index.tsx
27
+ var import_components = require("@tarojs/components");
28
+ var import_jsx_runtime = require("react/jsx-runtime");
29
+ function WarrantyContent() {
30
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.View, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_components.Text, { children: "Hello world!" }) });
31
+ }
32
+ // Annotate the CommonJS export names for ESM import in node:
33
+ 0 && (module.exports = {
34
+ WarrantyContent
35
+ });
package/dist/index.mjs ADDED
@@ -0,0 +1,9 @@
1
+ // src/components/WarrantyContent/index.tsx
2
+ import { View, Text } from "@tarojs/components";
3
+ import { jsx } from "react/jsx-runtime";
4
+ function WarrantyContent() {
5
+ return /* @__PURE__ */ jsx(View, { children: /* @__PURE__ */ jsx(Text, { children: "Hello world!" }) });
6
+ }
7
+ export {
8
+ WarrantyContent
9
+ };
package/package.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "@jianeasy0922/extended-warranty-page",
3
+ "version": "1.0.0",
4
+ "description": "Extended warranty page component for Taro mini-programs",
5
+ "main": "./dist/index.js",
6
+ "module": "./dist/index.mjs",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.mjs",
12
+ "require": "./dist/index.js"
13
+ }
14
+ },
15
+ "publishConfig": {
16
+ "access": "public",
17
+ "registry": "https://registry.npmjs.org/"
18
+ },
19
+ "files": [
20
+ "dist",
21
+ "src"
22
+ ],
23
+ "scripts": {
24
+ "build": "tsup"
25
+ },
26
+ "peerDependencies": {
27
+ "@tarojs/components": ">=4.0.0",
28
+ "@tarojs/taro": ">=4.0.0",
29
+ "react": ">=18.0.0"
30
+ },
31
+ "devDependencies": {
32
+ "@tarojs/components": "4.2.0",
33
+ "@tarojs/taro": "4.2.0",
34
+ "@types/react": "^18.0.0",
35
+ "react": "^18.0.0",
36
+ "sass": "^1.75.0",
37
+ "tsup": "^8.0.0",
38
+ "typescript": "^5.4.5"
39
+ }
40
+ }
@@ -0,0 +1,9 @@
1
+ import { View, Text } from '@tarojs/components'
2
+
3
+ export default function WarrantyContent() {
4
+ return (
5
+ <View>
6
+ <Text>Hello world!</Text>
7
+ </View>
8
+ )
9
+ }
package/src/index.ts ADDED
@@ -0,0 +1 @@
1
+ export { default as WarrantyContent } from './components/WarrantyContent'