pixelize-design-library 0.1.0 → 1.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 CHANGED
@@ -1,48 +1,16 @@
1
- # Getting Started with Create React App
1
+ # How to Consume This NPM Library
2
2
 
3
- This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
3
+ This guide will help you integrate and use the NPM library in your project.
4
4
 
5
- ## Available Scripts
5
+ ## Prerequisites
6
6
 
7
- In the project directory, you can run:
7
+ Before you begin, ensure you have the following installed:
8
+ - Node.js (preferably the latest LTS version)
9
+ - npm (comes with Node.js)
8
10
 
9
- ### `npm start`
11
+ ## Installation
10
12
 
11
- Runs the app in the development mode.\
12
- Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
13
+ To use this library in your project, you need to install it via npm. Run the following command in your project directory:
13
14
 
14
- The page will reload if you make edits.\
15
- You will also see any lint errors in the console.
16
-
17
- ### `npm test`
18
-
19
- Launches the test runner in the interactive watch mode.\
20
- See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21
-
22
- ### `npm run build`
23
-
24
- Builds the app for production to the `build` folder.\
25
- It correctly bundles React in production mode and optimizes the build for the best performance.
26
-
27
- The build is minified and the filenames include the hashes.\
28
- Your app is ready to be deployed!
29
-
30
- See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31
-
32
- ### `npm run eject`
33
-
34
- **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
35
-
36
- If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37
-
38
- Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
39
-
40
- You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
41
-
42
- ## Learn More
43
-
44
- You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45
-
46
- To learn React, check out the [React documentation](https://reactjs.org/).
47
-
48
- just update
15
+ ```bash
16
+ npm install your-library-name --save
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixelize-design-library",
3
- "version": "0.1.0",
3
+ "version": "1.0.2",
4
4
  "private": false,
5
5
  "dependencies": {
6
6
  "@babel/core": "^7.24.5",
@@ -63,6 +63,8 @@
63
63
  "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
64
64
  "@chakra-ui/storybook-addon": "^5.1.0",
65
65
  "@chromatic-com/storybook": "^1.4.0",
66
+ "@eslint/compat": "^1.1.0",
67
+ "@eslint/js": "^9.6.0",
66
68
  "@rsbuild/core": "0.6.15",
67
69
  "@rsbuild/plugin-react": "0.6.15",
68
70
  "@storybook/addon-essentials": "^8.1.1",
@@ -74,22 +76,20 @@
74
76
  "@storybook/react": "^8.1.1",
75
77
  "@storybook/react-webpack5": "^8.1.1",
76
78
  "@storybook/test": "^8.1.1",
77
- "eslint-plugin-storybook": "^0.8.0",
78
- "prop-types": "^15.8.1",
79
- "storybook": "^8.1.1",
80
- "webpack": "^5.91.0",
81
- "@eslint/compat": "^1.1.0",
82
- "@eslint/js": "^9.6.0",
83
79
  "@typescript-eslint/eslint-plugin": "^5.62.0",
84
80
  "@typescript-eslint/parser": "^5.62.0",
85
81
  "eslint": "^8.57.0",
86
82
  "eslint-config-prettier": "^9.1.0",
87
83
  "eslint-plugin-react": "^7.34.3",
84
+ "eslint-plugin-storybook": "^0.8.0",
88
85
  "globals": "^15.8.0",
89
86
  "husky": "^8.0.0",
90
87
  "lint-staged": "^15.2.7",
91
88
  "prettier": "^3.3.2",
92
- "typescript-eslint": "^7.15.0"
89
+ "prop-types": "^15.8.1",
90
+ "storybook": "^8.1.1",
91
+ "typescript-eslint": "^7.15.0",
92
+ "webpack": "^5.91.0"
93
93
  },
94
94
  "husky": {
95
95
  "hooks": {
package/. prettierrc DELETED
@@ -1,14 +0,0 @@
1
- {
2
- "printWidth": 80,
3
- "tabWidth": 2,
4
- "useTabs": false,
5
- "semi": true,
6
- "singleQuote": true,
7
- "quoteProps": "as-needed",
8
- "jsxSingleQuote": false,
9
- "trailingComma": "all",
10
- "bracketSpacing": true,
11
- "jsxBracketSameLine": true,
12
- "arrowParens": "avoid",
13
- "endOfLine": "auto"
14
- }
package/.eslintcache DELETED
@@ -1 +0,0 @@
1
- [{"/Users/mahesh/Applications/Pixelize/CRM/Micro-Components/src/Layout.tsx":"1"},{"size":19413,"mtime":1720254738133,"results":"2","hashOfConfig":"3"},{"filePath":"4","messages":"5","suppressedMessages":"6","errorCount":10,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"7u0djc","/Users/mahesh/Applications/Pixelize/CRM/Micro-Components/src/Layout.tsx",["7","8","9","10","11","12","13","14","15","16"],[],{"ruleId":"17","severity":2,"message":"18","line":45,"column":1,"nodeType":"19","messageId":"20","endLine":45,"endColumn":12,"suggestions":"21"},{"ruleId":"17","severity":2,"message":"18","line":55,"column":9,"nodeType":"19","messageId":"20","endLine":55,"endColumn":20,"suggestions":"22"},{"ruleId":"17","severity":2,"message":"18","line":59,"column":9,"nodeType":"19","messageId":"20","endLine":59,"endColumn":20,"suggestions":"23"},{"ruleId":"17","severity":2,"message":"18","line":137,"column":9,"nodeType":"19","messageId":"20","endLine":137,"endColumn":20,"suggestions":"24"},{"ruleId":"17","severity":2,"message":"18","line":138,"column":9,"nodeType":"19","messageId":"20","endLine":138,"endColumn":20,"suggestions":"25"},{"ruleId":"17","severity":2,"message":"18","line":162,"column":9,"nodeType":"19","messageId":"20","endLine":162,"endColumn":20,"suggestions":"26"},{"ruleId":"17","severity":2,"message":"18","line":186,"column":44,"nodeType":"19","messageId":"20","endLine":186,"endColumn":55},{"ruleId":"17","severity":2,"message":"18","line":311,"column":33,"nodeType":"19","messageId":"20","endLine":311,"endColumn":44,"suggestions":"27"},{"ruleId":"17","severity":2,"message":"18","line":431,"column":33,"nodeType":"19","messageId":"20","endLine":431,"endColumn":44,"suggestions":"28"},{"ruleId":"17","severity":2,"message":"18","line":491,"column":108,"nodeType":"19","messageId":"20","endLine":491,"endColumn":119},"no-console","Unexpected console statement.","MemberExpression","unexpected",["29"],["30"],["31"],["32"],["33"],["34"],["35"],["36"],{"messageId":"37","data":"38","fix":"39","desc":"40"},{"messageId":"37","data":"41","fix":"42","desc":"40"},{"messageId":"37","data":"43","fix":"44","desc":"40"},{"messageId":"37","data":"45","fix":"46","desc":"40"},{"messageId":"37","data":"47","fix":"48","desc":"40"},{"messageId":"37","data":"49","fix":"50","desc":"40"},{"messageId":"37","data":"51","fix":"52","desc":"40"},{"messageId":"37","data":"53","fix":"54","desc":"40"},"removeConsole",{"propertyName":"55"},{"range":"56","text":"57"},"Remove the console.log().",{"propertyName":"55"},{"range":"58","text":"57"},{"propertyName":"55"},{"range":"59","text":"57"},{"propertyName":"55"},{"range":"60","text":"57"},{"propertyName":"55"},{"range":"61","text":"57"},{"propertyName":"55"},{"range":"62","text":"57"},{"propertyName":"55"},{"range":"63","text":"57"},{"propertyName":"55"},{"range":"64","text":"57"},"log",[1713,1733],"",[1994,2013],[2063,2085],[3942,3961],[3970,3987],[4700,4737],[10452,10480],[15696,15730]]
package/.husky/pre-commit DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env sh
2
- . "$(dirname -- "$0")/_/husky.sh"
3
-
4
- npx lint-staged
@@ -1,19 +0,0 @@
1
- import type { StorybookConfig } from "@storybook/react-webpack5";
2
-
3
- const config: StorybookConfig = {
4
- stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
5
- addons: [
6
- "@storybook/preset-create-react-app",
7
- "@storybook/addon-onboarding",
8
- "@storybook/addon-links",
9
- "@storybook/addon-essentials",
10
- "@chromatic-com/storybook",
11
- "@storybook/addon-interactions",
12
- ],
13
- framework: {
14
- name: "@storybook/react-webpack5",
15
- options: {},
16
- },
17
- staticDirs: ["../public"],
18
- };
19
- export default config;
@@ -1,14 +0,0 @@
1
-
2
- const preview = {
3
- parameters: {
4
- controls: {
5
- matchers: {
6
- color: /(background|color)$/i,
7
- date: /Date$/i,
8
- },
9
- },
10
- },
11
-
12
- };
13
-
14
- export default preview;
package/build/favicon.ico DELETED
Binary file
package/build/logo192.png DELETED
Binary file
package/build/logo512.png DELETED
Binary file
@@ -1,25 +0,0 @@
1
- {
2
- "short_name": "React App",
3
- "name": "Create React App Sample",
4
- "icons": [
5
- {
6
- "src": "favicon.ico",
7
- "sizes": "64x64 32x32 24x24 16x16",
8
- "type": "image/x-icon"
9
- },
10
- {
11
- "src": "logo192.png",
12
- "type": "image/png",
13
- "sizes": "192x192"
14
- },
15
- {
16
- "src": "logo512.png",
17
- "type": "image/png",
18
- "sizes": "512x512"
19
- }
20
- ],
21
- "start_url": ".",
22
- "display": "standalone",
23
- "theme_color": "#000000",
24
- "background_color": "#ffffff"
25
- }
package/build/robots.txt DELETED
@@ -1,3 +0,0 @@
1
- # https://www.robotstxt.org/robotstxt.html
2
- User-agent: *
3
- Disallow:
package/eslint.config.mjs DELETED
@@ -1,20 +0,0 @@
1
- import globals from "globals";
2
- import pluginJs from "@eslint/js";
3
- import tseslint from "typescript-eslint";
4
- import pluginReactConfig from "eslint-plugin-react/configs/recommended.js";
5
- import { fixupConfigRules } from "@eslint/compat";
6
-
7
- export default [
8
- { files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"] },
9
- { languageOptions: { parserOptions: { ecmaFeatures: { jsx: true } } } },
10
- { languageOptions: { globals: globals.browser } },
11
- pluginJs.configs.recommended,
12
- ...tseslint.configs.recommended,
13
- ...fixupConfigRules(pluginReactConfig),
14
- {
15
- rules: {
16
- "@typescript-eslint/no-explicit-any": "off",
17
- "no-console": "error",
18
- },
19
- },
20
- ];
@@ -1,26 +0,0 @@
1
- {
2
- "./TextInput": "./src/Components/Input/TextInput.tsx",
3
- "./InputTextArea": "./src/Components/InputTextArea/InputTextArea.tsx",
4
- "./Select": "./src/Components/Select/Select.tsx",
5
- "./Checkbox": "./src/Components/Checkbox/Checkbox.tsx",
6
- "./Button": "./src/Components/Button/Button.tsx",
7
- "./Toaster": "./src/Components/Toaster/Toaster.tsx",
8
- "./Modal": "./src/Components/Modal/Modal.tsx",
9
- "./theme": "./src/Theme/Default/theme.ts",
10
- "./Sidebar": "./src/Components/SideBar/SideBar.tsx",
11
- "./Navbar": "./src/Components/NavigationBar/NavigationBar.tsx",
12
- "./Loading": "./src/Components/Loading/Loading.tsx",
13
- "./Skeletons": "./src/Components/Skeletons/Skeletons.tsx",
14
- "./RadioButton": "./src/Components/RadioButton/RadioButton.tsx",
15
- "./ButtonGroupIcon": "./src/Components/ButtonGroupIcon/ButtonGroupIcon.tsx",
16
- "./ProgressBar": "./src/Components/ProgressBar/ProgressBar.tsx",
17
- "./NumberInput": "./src/Components/NumberInput/NumberInput.tsx",
18
- "./PinInput": "./src/Components/PinInput/PinInput.tsx",
19
- "./ProfileCard": "./src/Components/ProfileCard/ProfileCard.tsx",
20
- "./Breadcrumb": "./src/Components/Breadcrumbs/Breadcrumbs.tsx",
21
- "./TableComponent": "./src/Components/Table/Table.tsx",
22
- "./Tooltip": "./src/Components/ToolTip/ToolTip.tsx",
23
- "./ApexBarChart": "./src/Components/Apexcharts/ApexBarChart/ApexBarChart.tsx",
24
- "./ApexPieChart": "./src/Components/Apexcharts/ApexPieChart/ApexPieChart.tsx",
25
- "./ProfilePhotoViewer": "./src/Components/ProfilePhotoViewer/ProfilePhotoViewer.tsx"
26
- }
package/rsbuild.config.ts DELETED
@@ -1,49 +0,0 @@
1
- import { defineConfig } from '@rsbuild/core';
2
- import { pluginReact } from '@rsbuild/plugin-react';
3
- import { ModuleFederationPlugin } from '@module-federation/enhanced/rspack';
4
- export default defineConfig({
5
- server: {
6
- port: 8008,
7
- // port: 4001
8
- },
9
- dev: {
10
- // It is necessary to configure assetPrefix, and in the production environment, you need to configure output.assetPrefix
11
- assetPrefix: 'http://pixelize.memron.net:8008',
12
- // assetPrefix: 'http://localhost:4001',
13
- },
14
- tools: {
15
- rspack: (config, { appendPlugins }) => {
16
- config.output!.uniqueName = 'app1';
17
- appendPlugins([
18
- new ModuleFederationPlugin({
19
- name: 'Pixelize_MFEC',
20
- exposes: require("./exposedComponents.json"),
21
- shared: {
22
- 'react': {
23
- singleton: true,
24
- requiredVersion: '^18.3.1',
25
- },
26
- 'react-dom': {
27
- singleton: true,
28
- },
29
- 'react-icons': {
30
- singleton: true,
31
- requiredVersion: '^5.2.1',
32
- },
33
- '@chakra-ui': {
34
- singleton: true
35
- },
36
- '@chakra-ui/react': {
37
- singleton: true
38
- },
39
- '@chakra-ui/icons': {
40
- singleton: true
41
- },
42
-
43
- },
44
- }),
45
- ]);
46
- },
47
- },
48
- plugins: [pluginReact()],
49
- });
package/tsconfig.json DELETED
@@ -1,20 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es5",
4
- "lib": ["dom", "dom.iterable", "esnext"],
5
- "allowJs": true,
6
- "skipLibCheck": true,
7
- "esModuleInterop": true,
8
- "allowSyntheticDefaultImports": true,
9
- "strict": true,
10
- "forceConsistentCasingInFileNames": true,
11
- "noFallthroughCasesInSwitch": true,
12
- "module": "esnext",
13
- "moduleResolution": "node",
14
- "resolveJsonModule": true,
15
- "isolatedModules": true,
16
- "noEmit": true,
17
- "jsx": "react-jsx"
18
- },
19
- "include": ["src", "rsbuild.config.ts"]
20
- }