@biznext-ui/react 0.0.1

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.txt ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 3s Logics Private Limited
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,18 @@
1
+ # BizNext-UI
2
+
3
+ BizNext-UI is a custom-made UI component library built with Vite, React, and TypeScript. It provides a set of reusable and customizable UI components designed to streamline the development process and ensure a consistent look and feel across your applications.
4
+
5
+ ## Features
6
+
7
+ - **Built with Vite**: Enjoy the fast development experience provided by Vite.
8
+ - **React Components**: Leverage the power of React for building dynamic user interfaces.
9
+ - **TypeScript Support**: Benefit from the type safety and enhanced developer experience provided by TypeScript.
10
+ - **Customizable**: Easily customize the components to fit your design requirements.
11
+
12
+ ## Installation
13
+
14
+ You can install BizNext-UI via npm:
15
+
16
+ ```bash
17
+ npm install @biznext-ui/react
18
+ ```
Binary file
@@ -0,0 +1,12 @@
1
+ import { JSX as JSX_2 } from 'react/jsx-runtime';
2
+ import { ReactNode } from 'react';
3
+
4
+ export declare const Modal: (props: ModalProps) => JSX_2.Element;
5
+
6
+ declare interface ModalProps {
7
+ children: ReactNode;
8
+ headerTitle: string;
9
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
10
+ }
11
+
12
+ export { }
@@ -0,0 +1,20 @@
1
+ import { jsxs as e, Fragment as s, jsx as a } from "react/jsx-runtime";
2
+ const c = "_modalOverlay_1rrsj_7", t = "_modal_1rrsj_7", l = {
3
+ modalOverlay: c,
4
+ modal: t
5
+ }, i = () => /* @__PURE__ */ a("div", { className: l.modalOverlay }), m = (o) => {
6
+ const { children: d, headerTitle: r, size: n } = o;
7
+ return console.log(d, r, n, "@biznext-ui/react"), /* @__PURE__ */ e(s, { children: [
8
+ /* @__PURE__ */ a(i, {}),
9
+ /* @__PURE__ */ e("div", { className: l.modal, children: [
10
+ /* @__PURE__ */ a("h2", { children: r }),
11
+ /* @__PURE__ */ e("span", { children: [
12
+ "This modal is created using component from @biznext-ui/react ui library npm package created by ",
13
+ /* @__PURE__ */ a("strong", { children: "Rachit Yadav" })
14
+ ] })
15
+ ] })
16
+ ] });
17
+ }, v = m;
18
+ export {
19
+ v as Modal
20
+ };
@@ -0,0 +1 @@
1
+ (function(a,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("react/jsx-runtime")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime"],e):(a=typeof globalThis<"u"?globalThis:a||self,e(a["biznext-ui-react"]={},a["react/jsx-runtime"]))})(this,function(a,e){"use strict";const r={modalOverlay:"_modalOverlay_1rrsj_7",modal:"_modal_1rrsj_7"},d=()=>e.jsx("div",{className:r.modalOverlay}),l=n=>{const{children:t,headerTitle:o,size:s}=n;return console.log(t,o,s,"@biznext-ui/react"),e.jsxs(e.Fragment,{children:[e.jsx(d,{}),e.jsxs("div",{className:r.modal,children:[e.jsx("h2",{children:o}),e.jsxs("span",{children:["This modal is created using component from @biznext-ui/react ui library npm package created by ",e.jsx("strong",{children:"Rachit Yadav"})]})]})]})};a.Modal=l,Object.defineProperty(a,Symbol.toStringTag,{value:"Module"})});
package/dist/style.css ADDED
@@ -0,0 +1 @@
1
+ @import"https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap";*{font-family:Poppins,sans-serif}._modalOverlay_1rrsj_7{z-index:999;background-color:#091e427a;width:100%;height:100%;position:fixed;top:0;bottom:0;left:0;right:0}._modal_1rrsj_7{z-index:9999;background:#fff;position:fixed;display:grid;grid-template-rows:max-content auto;box-shadow:0 12px 32px #001b471f;border-radius:8px;overflow:auto;margin:auto;width:500px;height:250px;top:0;left:0;right:0;bottom:0;padding:30px}
package/package.json ADDED
@@ -0,0 +1,67 @@
1
+ {
2
+ "name": "@biznext-ui/react",
3
+ "version": "0.0.1",
4
+ "private": false,
5
+ "author": "Biznext Team",
6
+ "description": "Responsive and accessible React UI components!",
7
+ "type": "module",
8
+ "main": "./dist/index.umd.js",
9
+ "module": "./dist/index.es.js",
10
+ "types": "./dist/index.es.d.ts",
11
+ "exports": {
12
+ ".": {
13
+ "import": "./dist/index.umd.js",
14
+ "require": "./dist/index.es.js",
15
+ "types": "./dist/index.es.d.ts"
16
+ },
17
+ "./dist/style.css": "./dist/style.css"
18
+ },
19
+ "files": [
20
+ "dist"
21
+ ],
22
+ "license": "MIT",
23
+ "sideEffects": false,
24
+ "publishConfig": {
25
+ "access": "public"
26
+ },
27
+ "scripts": {
28
+ "dev": "vite --port 3400",
29
+ "build": "tsc && vite build",
30
+ "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
31
+ "preview": "vite preview",
32
+ "docs": "storybook dev -p 3401",
33
+ "build-docs": "storybook build"
34
+ },
35
+ "dependencies": {
36
+ "react": "^18.3.1",
37
+ "react-dom": "^18.3.1"
38
+ },
39
+ "devDependencies": {
40
+ "@chromatic-com/storybook": "^1.6.1",
41
+ "@storybook/addon-essentials": "^8.2.4",
42
+ "@storybook/addon-interactions": "^8.2.4",
43
+ "@storybook/addon-links": "^8.2.4",
44
+ "@storybook/addon-onboarding": "^8.2.4",
45
+ "@storybook/blocks": "^8.2.4",
46
+ "@storybook/manager-api": "^8.2.4",
47
+ "@storybook/react": "^8.2.4",
48
+ "@storybook/react-vite": "^8.2.4",
49
+ "@storybook/test": "^8.2.4",
50
+ "@storybook/theming": "^8.2.4",
51
+ "@types/node": "^20.14.11",
52
+ "@types/react": "^18.3.3",
53
+ "@types/react-dom": "^18.3.0",
54
+ "@typescript-eslint/eslint-plugin": "^7.15.0",
55
+ "@typescript-eslint/parser": "^7.15.0",
56
+ "@vitejs/plugin-react-swc": "^3.5.0",
57
+ "eslint": "^8.57.0",
58
+ "eslint-plugin-react-hooks": "^4.6.2",
59
+ "eslint-plugin-react-refresh": "^0.4.7",
60
+ "eslint-plugin-storybook": "^0.8.0",
61
+ "storybook": "^8.2.4",
62
+ "typescript": "^5.2.2",
63
+ "vite": "^5.3.4",
64
+ "vite-plugin-dts": "^4.0.0-beta.0",
65
+ "vite-tsconfig-paths": "^4.3.2"
66
+ }
67
+ }