@kitsuyui/react-hello 0.2.0 → 0.2.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.
- package/README.md +4 -0
- package/dist/Hello.cjs +1 -33
- package/dist/Hello.cjs.map +1 -1
- package/dist/Hello.d.cts +4 -2
- package/dist/Hello.d.ts +4 -2
- package/dist/Hello.js +1 -6
- package/dist/Hello.js.map +1 -1
- package/dist/index.cjs +1 -36
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -7
- package/package.json +12 -13
- package/LICENSE +0 -21
- package/dist/chunk-O3KDNIXG.js +0 -10
- package/dist/chunk-O3KDNIXG.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
package/README.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
This is a simple React component that displays a "Hello, World!" message.
|
|
4
4
|
This component is for demonstration purposes to develop this repository.
|
|
5
5
|
|
|
6
|
+
## Design role
|
|
7
|
+
|
|
8
|
+
This package is a minimal semantic text wrapper example.
|
|
9
|
+
|
|
6
10
|
## Demo
|
|
7
11
|
|
|
8
12
|
Storybook: https://react-playground.docs.kitsuyui.com/storybook/
|
package/dist/Hello.cjs
CHANGED
|
@@ -1,34 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/Hello.tsx
|
|
21
|
-
var Hello_exports = {};
|
|
22
|
-
__export(Hello_exports, {
|
|
23
|
-
Hello: () => Hello
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(Hello_exports);
|
|
26
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
27
|
-
var Hello = () => {
|
|
28
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: "Hello, world!" });
|
|
29
|
-
};
|
|
30
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
31
|
-
0 && (module.exports = {
|
|
32
|
-
Hello
|
|
33
|
-
});
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require(`react/jsx-runtime`);const t=()=>(0,e.jsx)(`span`,{children:`Hello, world!`});exports.Hello=t;
|
|
34
2
|
//# sourceMappingURL=Hello.cjs.map
|
package/dist/Hello.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/Hello.tsx"],"sourcesContent":["import type React from 'react'\n\n/**\n * A simple Hello World component for React.\n * @returns A JSX element that displays \"Hello, world!\".\n */\nexport const Hello = (): React.JSX.Element => {\n return <span>Hello, world!</span>\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Hello.cjs","names":[],"sources":["../src/Hello.tsx"],"sourcesContent":["import type React from 'react'\n\n/**\n * A simple Hello World component for React.\n * @returns A JSX element that displays \"Hello, world!\".\n */\nexport const Hello = (): React.JSX.Element => {\n return <span>Hello, world!</span>\n}\n"],"mappings":"sGAMA,MAAa,OACJ,EAAA,EAAA,KAAC,OAAA,CAAA,SAAK,gBAAA,CAAoB"}
|
package/dist/Hello.d.cts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from "react";
|
|
2
2
|
|
|
3
|
+
//#region src/Hello.d.ts
|
|
3
4
|
/**
|
|
4
5
|
* A simple Hello World component for React.
|
|
5
6
|
* @returns A JSX element that displays "Hello, world!".
|
|
6
7
|
*/
|
|
7
8
|
declare const Hello: () => React.JSX.Element;
|
|
8
|
-
|
|
9
|
+
//#endregion
|
|
9
10
|
export { Hello };
|
|
11
|
+
//# sourceMappingURL=Hello.d.cts.map
|
package/dist/Hello.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from "react";
|
|
2
2
|
|
|
3
|
+
//#region src/Hello.d.ts
|
|
3
4
|
/**
|
|
4
5
|
* A simple Hello World component for React.
|
|
5
6
|
* @returns A JSX element that displays "Hello, world!".
|
|
6
7
|
*/
|
|
7
8
|
declare const Hello: () => React.JSX.Element;
|
|
8
|
-
|
|
9
|
+
//#endregion
|
|
9
10
|
export { Hello };
|
|
11
|
+
//# sourceMappingURL=Hello.d.ts.map
|
package/dist/Hello.js
CHANGED
package/dist/Hello.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Hello.js","names":[],"sources":["../src/Hello.tsx"],"sourcesContent":["import type React from 'react'\n\n/**\n * A simple Hello World component for React.\n * @returns A JSX element that displays \"Hello, world!\".\n */\nexport const Hello = (): React.JSX.Element => {\n return <span>Hello, world!</span>\n}\n"],"mappings":"wCAMA,MAAa,MACJ,EAAC,OAAA,CAAA,SAAK,gBAAA,CAAoB"}
|
package/dist/index.cjs
CHANGED
|
@@ -1,36 +1 @@
|
|
|
1
|
-
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/index.ts
|
|
21
|
-
var index_exports = {};
|
|
22
|
-
__export(index_exports, {
|
|
23
|
-
Hello: () => Hello
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(index_exports);
|
|
26
|
-
|
|
27
|
-
// src/Hello.tsx
|
|
28
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
29
|
-
var Hello = () => {
|
|
30
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: "Hello, world!" });
|
|
31
|
-
};
|
|
32
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
33
|
-
0 && (module.exports = {
|
|
34
|
-
Hello
|
|
35
|
-
});
|
|
36
|
-
//# sourceMappingURL=index.cjs.map
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./Hello.cjs`);exports.Hello=e.Hello;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { Hello } from "./Hello.cjs";
|
|
2
|
+
export { Hello };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { Hello } from "./Hello.js";
|
|
2
|
+
export { Hello };
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitsuyui/react-hello",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Hello world component for React",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,26 +22,25 @@
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"main": "./dist/index.js",
|
|
25
|
-
"module": "./dist/index.js",
|
|
26
25
|
"types": "./dist/index.d.ts",
|
|
27
26
|
"files": [
|
|
28
27
|
"dist",
|
|
29
28
|
"package.json"
|
|
30
29
|
],
|
|
30
|
+
"scripts": {
|
|
31
|
+
"build": "tsdown",
|
|
32
|
+
"dev": "tsdown --no-clean --watch",
|
|
33
|
+
"test": "vitest run",
|
|
34
|
+
"validate": "validate-package-exports --check"
|
|
35
|
+
},
|
|
31
36
|
"devDependencies": {
|
|
32
|
-
"@types/react": "^19.
|
|
33
|
-
"@types/react-dom": "^19.
|
|
34
|
-
"react": "^19.
|
|
35
|
-
"react-dom": "^19.
|
|
37
|
+
"@types/react": "^19.2.14",
|
|
38
|
+
"@types/react-dom": "^19.2.3",
|
|
39
|
+
"react": "^19.2.4",
|
|
40
|
+
"react-dom": "^19.2.4"
|
|
36
41
|
},
|
|
37
42
|
"peerDependencies": {
|
|
38
43
|
"react": "*",
|
|
39
44
|
"react-dom": "*"
|
|
40
|
-
},
|
|
41
|
-
"scripts": {
|
|
42
|
-
"build": "tsup --clean",
|
|
43
|
-
"dev": "tsup --watch",
|
|
44
|
-
"test": "vitest run",
|
|
45
|
-
"validate": "validate-package-exports --check --verify"
|
|
46
45
|
}
|
|
47
|
-
}
|
|
46
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2023 Yui KITSU
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
package/dist/chunk-O3KDNIXG.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/Hello.tsx"],"sourcesContent":["import type React from 'react'\n\n/**\n * A simple Hello World component for React.\n * @returns A JSX element that displays \"Hello, world!\".\n */\nexport const Hello = (): React.JSX.Element => {\n return <span>Hello, world!</span>\n}\n"],"mappings":";AAOS;AADF,IAAM,QAAQ,MAAyB;AAC5C,SAAO,oBAAC,UAAK,2BAAa;AAC5B;","names":[]}
|
package/dist/index.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/Hello.tsx"],"sourcesContent":["export * from './Hello'\n","import type React from 'react'\n\n/**\n * A simple Hello World component for React.\n * @returns A JSX element that displays \"Hello, world!\".\n */\nexport const Hello = (): React.JSX.Element => {\n return <span>Hello, world!</span>\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACOS;AADF,IAAM,QAAQ,MAAyB;AAC5C,SAAO,4CAAC,UAAK,2BAAa;AAC5B;","names":[]}
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|