sesame-components-testing 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.
package/README.md ADDED
@@ -0,0 +1,30 @@
1
+ # sesame-components-testing
2
+
3
+ This is an npm package that exports a single reusable component.
4
+
5
+ ## Getting Started
6
+
7
+ 1. Install dependencies:
8
+ ```bash
9
+ npm install
10
+ ```
11
+ 2. Build the package:
12
+ ```bash
13
+ npm run build
14
+ ```
15
+ 3. Publish to npm:
16
+ ```bash
17
+ npm publish
18
+ ```
19
+
20
+ ## Usage
21
+
22
+ Import the component in your project:
23
+
24
+ ```js
25
+ import { SesameComponent } from 'sesame-components-testing';
26
+ ```
27
+
28
+ ## License
29
+
30
+ MIT
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export interface SesameComponentProps {
3
+ message?: string;
4
+ }
5
+ export declare const SesameComponent: React.FC<SesameComponentProps>;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SesameComponent = void 0;
7
+ const react_1 = __importDefault(require("react"));
8
+ const styled_1 = __importDefault(require("@emotion/styled"));
9
+ const StyledDiv = styled_1.default.div `
10
+ background-color: red;
11
+ font-weight: bold;
12
+ font-size: 33px;
13
+ `;
14
+ const SesameComponent = ({ message = "Hello, Sesame!" }) => {
15
+ return react_1.default.createElement(StyledDiv, null, message);
16
+ };
17
+ exports.SesameComponent = SesameComponent;
@@ -0,0 +1 @@
1
+ export { SesameComponent } from './SesameComponent';
package/dist/index.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SesameComponent = void 0;
4
+ var SesameComponent_1 = require("./SesameComponent");
5
+ Object.defineProperty(exports, "SesameComponent", { enumerable: true, get: function () { return SesameComponent_1.SesameComponent; } });
package/package.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "sesame-components-testing",
3
+ "version": "1.0.0",
4
+ "description": "A reusable npm component package.",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "scripts": {
8
+ "build": "tsc",
9
+ "test": "echo \"No tests yet\""
10
+ },
11
+ "author": "",
12
+ "license": "MIT",
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "keywords": [
17
+ "component",
18
+ "npm",
19
+ "typescript"
20
+ ],
21
+ "devDependencies": {
22
+ "@types/react": "^19.2.13",
23
+ "@types/react-dom": "^19.2.3",
24
+ "react": "^19.2.4",
25
+ "react-dom": "^19.2.4",
26
+ "typescript": "^5.9.3"
27
+ },
28
+ "dependencies": {
29
+ "@emotion/react": "^11.14.0",
30
+ "@emotion/styled": "^11.14.1"
31
+ }
32
+ }