@ttoss/landing-pages 0.0.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 +17 -0
- package/dist/esm/index.js +18 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +50 -0
- package/package.json +42 -0
- package/src/Hero/Hero.tsx +9 -0
- package/src/index.ts +1 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @ttoss/landing-pages
|
|
2
|
+
|
|
3
|
+
**@ttoss/landing-pages** is a library of React components for building landing pages.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```shell
|
|
8
|
+
yarn add @ttoss/landing-pages @ttoss/ui
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Quick start
|
|
12
|
+
|
|
13
|
+
TODO
|
|
14
|
+
|
|
15
|
+
## Components
|
|
16
|
+
|
|
17
|
+
You can check all the components of the library `@ttoss/ui` on the [Storybook](https://storybook.ttoss.dev/?path=/story/landing-pages).
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
|
|
2
|
+
|
|
3
|
+
// tsup.inject.js
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
|
|
6
|
+
// src/Hero/Hero.tsx
|
|
7
|
+
import { Box } from "@ttoss/ui";
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
var Hero = () => {
|
|
10
|
+
return /* @__PURE__ */ jsx(Box, {
|
|
11
|
+
children: /* @__PURE__ */ jsx("h1", {
|
|
12
|
+
children: "Hero"
|
|
13
|
+
})
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
export {
|
|
17
|
+
Hero
|
|
18
|
+
};
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
|
|
2
|
+
"use strict";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __export = (target, all) => {
|
|
10
|
+
for (var name in all)
|
|
11
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
+
};
|
|
13
|
+
var __copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
+
for (let key of __getOwnPropNames(from))
|
|
16
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
23
|
+
mod
|
|
24
|
+
));
|
|
25
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
26
|
+
|
|
27
|
+
// src/index.ts
|
|
28
|
+
var src_exports = {};
|
|
29
|
+
__export(src_exports, {
|
|
30
|
+
Hero: () => Hero
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(src_exports);
|
|
33
|
+
|
|
34
|
+
// tsup.inject.js
|
|
35
|
+
var React = __toESM(require("react"));
|
|
36
|
+
|
|
37
|
+
// src/Hero/Hero.tsx
|
|
38
|
+
var import_ui = require("@ttoss/ui");
|
|
39
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
40
|
+
var Hero = () => {
|
|
41
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ui.Box, {
|
|
42
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", {
|
|
43
|
+
children: "Hero"
|
|
44
|
+
})
|
|
45
|
+
});
|
|
46
|
+
};
|
|
47
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
48
|
+
0 && (module.exports = {
|
|
49
|
+
Hero
|
|
50
|
+
});
|
package/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ttoss/landing-pages",
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"description": "Package for creating landing pages.",
|
|
5
|
+
"license": "UNLICENSED",
|
|
6
|
+
"author": "ttoss",
|
|
7
|
+
"contributors": [
|
|
8
|
+
"Pedro Arantes <pedro@arantespp.com> (https://arantespp.com/contact)"
|
|
9
|
+
],
|
|
10
|
+
"main": "dist/index.js",
|
|
11
|
+
"module": "dist/esm/index.js",
|
|
12
|
+
"files": [
|
|
13
|
+
"dist",
|
|
14
|
+
"src"
|
|
15
|
+
],
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "tsup",
|
|
18
|
+
"dev": "yarn workspace @docs/storybook run dev",
|
|
19
|
+
"test": "echo jest"
|
|
20
|
+
},
|
|
21
|
+
"typings": "dist/index.d.ts",
|
|
22
|
+
"peerDependencies": {
|
|
23
|
+
"@ttoss/ui": "^1.21.0",
|
|
24
|
+
"react": ">=18.0.0"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@ttoss/config": "^1.18.3",
|
|
28
|
+
"@ttoss/test-utils": "^1.16.10",
|
|
29
|
+
"@ttoss/ui": "^1.21.0",
|
|
30
|
+
"@types/jest": "^29.1.1",
|
|
31
|
+
"jest": "^29.1.2",
|
|
32
|
+
"tsup": "^6.2.3"
|
|
33
|
+
},
|
|
34
|
+
"keywords": [
|
|
35
|
+
"React",
|
|
36
|
+
"landing-pages"
|
|
37
|
+
],
|
|
38
|
+
"publishConfig": {
|
|
39
|
+
"access": "public"
|
|
40
|
+
},
|
|
41
|
+
"gitHead": "adca3912e3a374a32cd7b5bd7733d2cdc9cd1a45"
|
|
42
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Hero } from './Hero/Hero';
|