@nextelco/common-ui 1.0.2 → 1.0.3

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/package.json CHANGED
@@ -1,29 +1,74 @@
1
- {
2
- "name": "@nextelco/common-ui",
3
- "type": "module",
4
- "version": "1.0.2",
5
- "main": "dist/index.cjs.js",
6
- "module": "dist/index.esm.js",
7
- "types": "dist/types/index.d.ts",
8
- "scripts": {
9
- "build": "rollup -c",
10
- "prepare": "npm run build",
11
- "test": "echo \"Write tests!\"",
12
- "pub": " npm version patch && npm run build && npm publish --access public"
13
- },
14
- "keywords": [
15
- "react",
16
- "library",
17
- "typescript"
18
- ],
19
- "peerDependencies": {
20
- "react": "^17.0.0 || ^18.0.0",
21
- "react-dom": "^17.0.0 || ^18.0.0"
22
- },
23
- "devDependencies": {
24
- "typescript": "^4.0.0",
25
- "@rollup/plugin-typescript": "^8.0.0",
26
- "rollup": "^2.0.0",
27
- "tslib": "^2.0.0"
28
- }
29
- }
1
+ {
2
+ "name": "@nextelco/common-ui",
3
+ "private": false,
4
+ "version": "1.0.3",
5
+ "type": "module",
6
+ "main": "dist/index.cjs.js",
7
+ "module": "dist/index.esm.js",
8
+ "types": "dist/index.d.ts",
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "exports": {
13
+ ".": {
14
+ "import": "./dist/index.esm.js",
15
+ "require": "./dist/index.cjs.js",
16
+ "types": "./dist/index.d.ts"
17
+ }
18
+ },
19
+ "peerDependencies": {
20
+ "react": "^18.0.0",
21
+ "react-dom": "^18.0.0"
22
+ },
23
+ "scripts": {
24
+ "dev": "vite",
25
+ "build": "tsc -b && vite build",
26
+ "lint": "eslint .",
27
+ "preview": "vite preview",
28
+ "storybook": "storybook dev -p 6006",
29
+ "build-storybook": "storybook build",
30
+ "prepublishOnly": "npm run build",
31
+ "pub": "git add . && git commit -m \"update\" && git push && npm version patch && npm run build && npm publish --access public"
32
+ },
33
+ "dependencies": {
34
+ "@fortawesome/fontawesome-free": "^6.7.2",
35
+ "@fortawesome/fontawesome-svg-core": "^6.7.2",
36
+ "@fortawesome/free-brands-svg-icons": "^6.7.2",
37
+ "@fortawesome/free-regular-svg-icons": "^6.7.2",
38
+ "@fortawesome/free-solid-svg-icons": "^6.7.2",
39
+ "@fortawesome/react-fontawesome": "^0.2.2"
40
+ },
41
+ "devDependencies": {
42
+ "@chromatic-com/storybook": "^3.2.4",
43
+ "@eslint/js": "^9.17.0",
44
+ "@storybook/addon-a11y": "^8.5.3",
45
+ "@storybook/addon-essentials": "^8.5.3",
46
+ "@storybook/addon-interactions": "^8.5.3",
47
+ "@storybook/addon-onboarding": "^8.5.3",
48
+ "@storybook/blocks": "^8.5.3",
49
+ "@storybook/react": "^8.5.3",
50
+ "@storybook/react-vite": "^8.5.3",
51
+ "@storybook/test": "^8.5.3",
52
+ "@types/react": "^18.3.18",
53
+ "@types/react-dom": "^18.3.5",
54
+ "@vitejs/plugin-react": "^4.3.4",
55
+ "eslint": "^9.17.0",
56
+ "eslint-plugin-react-hooks": "^5.0.0",
57
+ "eslint-plugin-react-refresh": "^0.4.16",
58
+ "eslint-plugin-storybook": "^0.11.2",
59
+ "globals": "^15.14.0",
60
+ "sass": "^1.83.4",
61
+ "sass-embedded": "^1.83.4",
62
+ "storybook": "^8.5.3",
63
+ "storybook-addon-designs": "^6.3.1",
64
+ "typescript": "~5.6.2",
65
+ "typescript-eslint": "^8.18.2",
66
+ "vite": "^6.0.5",
67
+ "vite-plugin-dts": "^4.5.0"
68
+ },
69
+ "eslintConfig": {
70
+ "extends": [
71
+ "plugin:storybook/recommended"
72
+ ]
73
+ }
74
+ }
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
package/dist/index.esm.js DELETED
@@ -1,2 +0,0 @@
1
- import 'react';
2
- //# sourceMappingURL=index.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const Button: () => React.JSX.Element;
3
- export default Button;
@@ -1 +0,0 @@
1
- export * from './components/Button';
package/rollup.config.js DELETED
@@ -1,19 +0,0 @@
1
- import typescript from '@rollup/plugin-typescript'
2
-
3
- export default {
4
- input: 'src/index.ts', // Your entry point
5
- output: [
6
- {
7
- file: 'dist/index.cjs.js',
8
- format: 'cjs',
9
- sourcemap: true,
10
- },
11
- {
12
- file: 'dist/index.esm.js',
13
- format: 'esm',
14
- sourcemap: true,
15
- },
16
- ],
17
- plugins: [typescript()],
18
- external: ['react', 'react-dom'], // Treat React as external to avoid bundling
19
- }
@@ -1,7 +0,0 @@
1
- import React from 'react'
2
-
3
- const Button = () => {
4
- return <div>Button</div>
5
- }
6
-
7
- export default Button
package/src/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from './components/Button'
package/tsconfig.json DELETED
@@ -1,15 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES5",
4
- "lib": ["dom", "esnext"],
5
- "jsx": "react",
6
- "declaration": true,
7
- "declarationDir": "./dist/types",
8
- "module": "ESNext",
9
- "moduleResolution": "node",
10
- "esModuleInterop": true,
11
- "skipLibCheck": true,
12
- "strict": true
13
- },
14
- "include": ["src/**/*"]
15
- }