@nextui-org/react 0.0.0-dev-v2-20230326012034

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Next UI
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/README.md ADDED
@@ -0,0 +1,102 @@
1
+ <p align="center">
2
+ <a href="https://nextui.org">
3
+ <img width="20%" src="https://raw.githubusercontent.com/nextui-org/nextui/main/apps/docs/public/isotipo.png" alt="nextui" />
4
+ <h1 align="center">NextUI</h1>
5
+ </a>
6
+ </p>
7
+ </br>
8
+ <p align="center">
9
+ <a href="https://github.com/jrgarciadev/nextui/blob/main/LICENSE">
10
+ <img src="https://img.shields.io/npm/l/@nextui-org/react?style=flat" alt="License">
11
+ </a>
12
+ <a href="https://codecov.io/gh/jrgarciadev/nextui">
13
+ <img src="https://codecov.io/gh/jrgarciadev/nextui/branch/main/graph/badge.svg?token=QJF2QKR5N4" alt="codecov badge">
14
+ </a>
15
+ <a href="https://github.com/nextui-org/nextui/actions/workflows/main.yaml">
16
+ <img src="https://github.com/nextui-org/nextui/actions/workflows/main.yaml/badge.svg" alt="CI/CD nextui">
17
+ </a>
18
+ <a href="https://www.npmjs.com/package/@nextui-org/react">
19
+ <img src="https://img.shields.io/npm/dm/@nextui-org/react.svg?style=flat-round" alt="npm downloads">
20
+ </a>
21
+ </p>
22
+
23
+ <p align="center">
24
+ <a rel="noopener noreferrer" target="_blank" href="https://www.vercel.com?utm_source=nextui&utm_marketing=oss">
25
+ <img height="34px" src="https://raw.githubusercontent.com/nextui-org/nextui/main/apps/docs/public/deployed-on-vercel.svg" alt="Deployed on vercel">
26
+ </a>
27
+ </p>
28
+
29
+ > **NOTE:** This is a community project, not associated with [Vercel](https://vercel.com), but does get some inspiration from there.
30
+
31
+ > **Warning 🚧:** This project is still in development, it might have bugs and breaking changes so it is not recommended to use it in production.
32
+
33
+ ## Getting Started
34
+
35
+ Visit <a aria-label="nextui learn" href="https://nextui.org/learn">https://nextui.org/guide</a> to get started with NextUI.
36
+
37
+ ## Documentation
38
+
39
+ Visit [https://nextui.org/docs](https://nextui.org/docs) to view the full documentation.
40
+
41
+ ## Quick Start
42
+
43
+ 1. Installation: Inside your React project directory, install NextUI by running either of the following:
44
+
45
+ ```bash
46
+ yarn add @nextui-org/react
47
+ # or
48
+ npm i @nextui-org/react
49
+ ```
50
+
51
+ 2. Setup: For NextUI to work correctly, you need to set up the `NextUIProvider` at the root of your application.
52
+
53
+ Go to the root of your application and do this:
54
+
55
+ ```jsx
56
+ import {NextUIProvider} from "@nextui-org/react";
57
+
58
+ const Application = () => (
59
+ <NextUIProvider>
60
+ <AppComponent /> // ---> Your App Component
61
+ </NextUIProvider>
62
+ );
63
+ ```
64
+
65
+ 3. Using NextUI components: Once NextUI is installed you can use any of the components as follows.
66
+ NextUI uses tree-shaking so the unused modules will not be included in the bundle during the build process and
67
+ each component is exported separately.
68
+
69
+ ```jsx
70
+ import {Button} from "@nextui-org/react";
71
+
72
+ const Component = () => <Button>Click me</Button>;
73
+ ```
74
+
75
+ 4. NextUI allows to manually import components if you need. E.g.
76
+
77
+ ```jsx
78
+ import Button from "@nextui-org/react/button";
79
+
80
+ const Component = () => <Button>Click me</Button>;
81
+ ```
82
+
83
+ ### Community
84
+
85
+ We're excited to see the community adopt NextUI, raise issues, and provide feedback.
86
+ Whether it's a feature request, bug report, or a project to showcase, please get involved!
87
+
88
+ - [Discord](https://discord.gg/9b6yyZKmH4)
89
+ - [Twitter](https://twitter.com/getnextui)
90
+ - [GitHub Discussions](https://github.com/nextui-org/nextui/discussions)
91
+
92
+ ## Contributing
93
+
94
+ Contributions are always welcome!
95
+
96
+ See [CONTRIBUTING.md](https://github.com/nextui-org/nextui/blob/main/CONTRIBUTING.MD) for ways to get started.
97
+
98
+ Please adhere to this project's [CODE_OF_CONDUCT](https://github.com/nextui-org/nextui/blob/main/CODE_OF_CONDUCT.md).
99
+
100
+ ## License
101
+
102
+ [MIT](https://choosealicense.com/licenses/mit/)
@@ -0,0 +1,18 @@
1
+ export * from '@nextui-org/system';
2
+ export * from '@nextui-org/theme';
3
+ export * from '@nextui-org/accordion';
4
+ export * from '@nextui-org/avatar';
5
+ export * from '@nextui-org/badge';
6
+ export * from '@nextui-org/button';
7
+ export * from '@nextui-org/card';
8
+ export * from '@nextui-org/checkbox';
9
+ export * from '@nextui-org/code';
10
+ export * from '@nextui-org/drip';
11
+ export * from '@nextui-org/link';
12
+ export * from '@nextui-org/pagination';
13
+ export * from '@nextui-org/radio';
14
+ export * from '@nextui-org/snippet';
15
+ export * from '@nextui-org/spinner';
16
+ export * from '@nextui-org/switch';
17
+ export * from '@nextui-org/tooltip';
18
+ export * from '@nextui-org/user';
package/dist/index.js ADDED
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __copyProps = (to, from, except, desc) => {
7
+ if (from && typeof from === "object" || typeof from === "function") {
8
+ for (let key of __getOwnPropNames(from))
9
+ if (!__hasOwnProp.call(to, key) && key !== except)
10
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
+ }
12
+ return to;
13
+ };
14
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
+
17
+ // src/index.ts
18
+ var src_exports = {};
19
+ module.exports = __toCommonJS(src_exports);
20
+ __reExport(src_exports, require("@nextui-org/system"), module.exports);
21
+ __reExport(src_exports, require("@nextui-org/theme"), module.exports);
22
+ __reExport(src_exports, require("@nextui-org/accordion"), module.exports);
23
+ __reExport(src_exports, require("@nextui-org/avatar"), module.exports);
24
+ __reExport(src_exports, require("@nextui-org/badge"), module.exports);
25
+ __reExport(src_exports, require("@nextui-org/button"), module.exports);
26
+ __reExport(src_exports, require("@nextui-org/card"), module.exports);
27
+ __reExport(src_exports, require("@nextui-org/checkbox"), module.exports);
28
+ __reExport(src_exports, require("@nextui-org/code"), module.exports);
29
+ __reExport(src_exports, require("@nextui-org/drip"), module.exports);
30
+ __reExport(src_exports, require("@nextui-org/link"), module.exports);
31
+ __reExport(src_exports, require("@nextui-org/pagination"), module.exports);
32
+ __reExport(src_exports, require("@nextui-org/radio"), module.exports);
33
+ __reExport(src_exports, require("@nextui-org/snippet"), module.exports);
34
+ __reExport(src_exports, require("@nextui-org/spinner"), module.exports);
35
+ __reExport(src_exports, require("@nextui-org/switch"), module.exports);
36
+ __reExport(src_exports, require("@nextui-org/tooltip"), module.exports);
37
+ __reExport(src_exports, require("@nextui-org/user"), module.exports);
package/dist/index.mjs ADDED
@@ -0,0 +1,19 @@
1
+ // src/index.ts
2
+ export * from "@nextui-org/system";
3
+ export * from "@nextui-org/theme";
4
+ export * from "@nextui-org/accordion";
5
+ export * from "@nextui-org/avatar";
6
+ export * from "@nextui-org/badge";
7
+ export * from "@nextui-org/button";
8
+ export * from "@nextui-org/card";
9
+ export * from "@nextui-org/checkbox";
10
+ export * from "@nextui-org/code";
11
+ export * from "@nextui-org/drip";
12
+ export * from "@nextui-org/link";
13
+ export * from "@nextui-org/pagination";
14
+ export * from "@nextui-org/radio";
15
+ export * from "@nextui-org/snippet";
16
+ export * from "@nextui-org/spinner";
17
+ export * from "@nextui-org/switch";
18
+ export * from "@nextui-org/tooltip";
19
+ export * from "@nextui-org/user";
package/package.json ADDED
@@ -0,0 +1,83 @@
1
+ {
2
+ "name": "@nextui-org/react",
3
+ "version": "0.0.0-dev-v2-20230326012034",
4
+ "description": "🚀 Beautiful and modern React UI library.",
5
+ "author": "Junior Garcia <jrgarciadev@gmail.com>",
6
+ "homepage": "https://nextui.org",
7
+ "license": "MIT",
8
+ "keywords": [
9
+ "next",
10
+ "next ui",
11
+ "components",
12
+ "modern components",
13
+ "react components",
14
+ "react ui"
15
+ ],
16
+ "main": "dist/index.cjs.js",
17
+ "sideEffects": false,
18
+ "files": [
19
+ "dist"
20
+ ],
21
+ "publishConfig": {
22
+ "access": "public"
23
+ },
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "git+https://github.com/nextui-org/nextui.git",
27
+ "directory": "packages/core/react"
28
+ },
29
+ "bugs": {
30
+ "url": "https://github.com/nextui-org/nextui/issues"
31
+ },
32
+ "dependencies": {
33
+ "@nextui-org/theme": "0.0.0-dev-v2-20230326012034",
34
+ "@nextui-org/accordion": "0.0.0-dev-v2-20230326012034",
35
+ "@nextui-org/avatar": "0.0.0-dev-v2-20230326012034",
36
+ "@nextui-org/badge": "0.0.0-dev-v2-20230326012034",
37
+ "@nextui-org/system": "0.0.0-dev-v2-20230326012034",
38
+ "@nextui-org/button": "0.0.0-dev-v2-20230326012034",
39
+ "@nextui-org/card": "0.0.0-dev-v2-20230326012034",
40
+ "@nextui-org/code": "0.0.0-dev-v2-20230326012034",
41
+ "@nextui-org/drip": "0.0.0-dev-v2-20230326012034",
42
+ "@nextui-org/pagination": "0.0.0-dev-v2-20230326012034",
43
+ "@nextui-org/link": "0.0.0-dev-v2-20230326012034",
44
+ "@nextui-org/radio": "0.0.0-dev-v2-20230326012034",
45
+ "@nextui-org/spinner": "0.0.0-dev-v2-20230326012034",
46
+ "@nextui-org/snippet": "0.0.0-dev-v2-20230326012034",
47
+ "@nextui-org/switch": "0.0.0-dev-v2-20230326012034",
48
+ "@nextui-org/user": "0.0.0-dev-v2-20230326012034",
49
+ "@nextui-org/tooltip": "0.0.0-dev-v2-20230326012034",
50
+ "@nextui-org/checkbox": "0.0.0-dev-v2-20230326012034"
51
+ },
52
+ "peerDependencies": {
53
+ "react": ">=18"
54
+ },
55
+ "devDependencies": {
56
+ "react": "^18.0.0",
57
+ "clean-package": "2.2.0"
58
+ },
59
+ "tsup": {
60
+ "clean": true,
61
+ "target": "es2019",
62
+ "format": [
63
+ "cjs",
64
+ "esm"
65
+ ]
66
+ },
67
+ "module": "dist/index.esm.js",
68
+ "types": "dist/index.d.ts",
69
+ "exports": {
70
+ ".": {
71
+ "import": "./dist/index.esm.js",
72
+ "require": "./dist/index.cjs.js"
73
+ },
74
+ "./package.json": "./package.json"
75
+ },
76
+ "scripts": {
77
+ "build": "tsup src --dts",
78
+ "dev": "yarn build:fast -- --watch",
79
+ "clean": "rimraf dist .turbo",
80
+ "typecheck": "tsc --noEmit",
81
+ "build:fast": "tsup src"
82
+ }
83
+ }