@nextelco/common-ui 1.3.0 → 1.3.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/package.json +6 -2
- package/src/components/Button/Button.css +0 -9
- package/src/components/Button/Button.tsx +0 -18
- package/src/index.ts +0 -1
- package/tsconfig.json +0 -18
- package/webpack.config.js +0 -32
package/package.json
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nextelco/common-ui",
|
3
|
-
"version": "1.3.
|
3
|
+
"version": "1.3.1",
|
4
4
|
"description": "",
|
5
|
-
"main": "index.js",
|
5
|
+
"main": "dist/index.js",
|
6
|
+
"types": "dist/types/index.d.ts",
|
7
|
+
"files": [
|
8
|
+
"dist"
|
9
|
+
],
|
6
10
|
"scripts": {
|
7
11
|
"build": "webpack --mode production"
|
8
12
|
},
|
@@ -1,18 +0,0 @@
|
|
1
|
-
// src/components/Button/Button.tsx
|
2
|
-
import React from 'react'
|
3
|
-
import './Button.css'
|
4
|
-
|
5
|
-
interface ButtonProps {
|
6
|
-
children: React.ReactNode
|
7
|
-
onClick: () => void
|
8
|
-
}
|
9
|
-
|
10
|
-
const Button: React.FC<ButtonProps> = ({ children, onClick }) => {
|
11
|
-
return (
|
12
|
-
<button className="custom-button" onClick={onClick}>
|
13
|
-
{children}
|
14
|
-
</button>
|
15
|
-
)
|
16
|
-
}
|
17
|
-
|
18
|
-
export default Button
|
package/src/index.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export { default as Button } from './components/Button/Button'
|
package/tsconfig.json
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"compilerOptions": {
|
3
|
-
"outDir": "./dist",
|
4
|
-
"module": "ESNext",
|
5
|
-
"target": "ES6",
|
6
|
-
"lib": ["DOM", "DOM.Iterable", "ESNext"],
|
7
|
-
"declaration": true,
|
8
|
-
"declarationDir": "./dist/types",
|
9
|
-
"jsx": "react",
|
10
|
-
"strict": true,
|
11
|
-
"esModuleInterop": true,
|
12
|
-
"skipLibCheck": true,
|
13
|
-
"forceConsistentCasingInFileNames": true,
|
14
|
-
"moduleResolution": "node"
|
15
|
-
},
|
16
|
-
"include": ["src"],
|
17
|
-
"exclude": ["node_modules"]
|
18
|
-
}
|
package/webpack.config.js
DELETED
@@ -1,32 +0,0 @@
|
|
1
|
-
const path = require('path')
|
2
|
-
|
3
|
-
module.exports = {
|
4
|
-
entry: './src/index.ts',
|
5
|
-
output: {
|
6
|
-
path: path.resolve(__dirname, 'dist'),
|
7
|
-
filename: 'index.js',
|
8
|
-
library: 'MyReactLibrary',
|
9
|
-
libraryTarget: 'umd',
|
10
|
-
globalObject: 'this',
|
11
|
-
},
|
12
|
-
resolve: {
|
13
|
-
extensions: ['.ts', '.tsx', '.js'],
|
14
|
-
},
|
15
|
-
module: {
|
16
|
-
rules: [
|
17
|
-
{
|
18
|
-
test: /\.tsx?$/,
|
19
|
-
exclude: /node_modules/,
|
20
|
-
use: 'ts-loader',
|
21
|
-
},
|
22
|
-
{
|
23
|
-
test: /\.css$/,
|
24
|
-
use: ['style-loader', 'css-loader'],
|
25
|
-
},
|
26
|
-
],
|
27
|
-
},
|
28
|
-
externals: {
|
29
|
-
react: 'react',
|
30
|
-
'react-dom': 'react-dom',
|
31
|
-
},
|
32
|
-
}
|