@sellout/ui 0.0.6 → 0.0.7
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/build/components/Icon.d.ts +1 -1
- package/build/components/Simple.d.ts +2 -0
- package/build/index.d.ts +3 -3
- package/build/index.es.js +90 -7018
- package/build/index.js +175 -7107
- package/package.json +5 -5
- package/rollup.config.js +17 -54
- package/src/components/Icon.tsx +1 -1
- package/src/index.ts +5 -2
- package/build/index.es.js.map +0 -1
- package/build/index.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellout/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"module": "build/index.es.js",
|
|
6
6
|
"jsnext:main": "build/index.es.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@fortawesome/pro-regular-svg-icons": "^5.12.1",
|
|
25
25
|
"@fortawesome/pro-solid-svg-icons": "^5.12.1",
|
|
26
26
|
"@fortawesome/react-fontawesome": "^0.1.9",
|
|
27
|
-
"@sellout/utils": "^0.0.
|
|
27
|
+
"@sellout/utils": "^0.0.7",
|
|
28
28
|
"@storybook/addon-actions": "^5.3.17",
|
|
29
29
|
"@storybook/addon-links": "^5.3.17",
|
|
30
30
|
"@storybook/react": "^5.2.8",
|
|
@@ -48,14 +48,14 @@
|
|
|
48
48
|
"rollup-plugin-peer-deps-external": "^2.2.0",
|
|
49
49
|
"rollup-plugin-typescript2": "^0.25.3",
|
|
50
50
|
"standard": "^14.3.1",
|
|
51
|
-
"styled-components": "^5.0.1",
|
|
52
51
|
"ts-jest": "^24.2.0",
|
|
53
52
|
"typescript": "^3.7.5"
|
|
54
53
|
},
|
|
55
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "991f3c469d9cd9754715c231b3c5cc7b7b6bfaf5",
|
|
56
55
|
"peerDependencies": {
|
|
57
56
|
"react": "^16",
|
|
58
|
-
"react-dom": "^16"
|
|
57
|
+
"react-dom": "^16",
|
|
58
|
+
"styled-components": "^5.0.1"
|
|
59
59
|
},
|
|
60
60
|
"jest": {
|
|
61
61
|
"preset": "ts-jest",
|
package/rollup.config.js
CHANGED
|
@@ -1,55 +1,18 @@
|
|
|
1
|
-
import typescript from
|
|
2
|
-
import
|
|
3
|
-
import external from 'rollup-plugin-peer-deps-external'
|
|
4
|
-
import resolve from 'rollup-plugin-node-resolve'
|
|
1
|
+
import typescript from "rollup-plugin-typescript2";
|
|
2
|
+
import pkg from "./package.json";
|
|
5
3
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
sourcemap: true
|
|
22
|
-
}
|
|
23
|
-
],
|
|
24
|
-
plugins: [
|
|
25
|
-
external(),
|
|
26
|
-
resolve(),
|
|
27
|
-
typescript({
|
|
28
|
-
rollupCommonJSResolveHack: true,
|
|
29
|
-
exclude: [
|
|
30
|
-
'**/*.stories.js'
|
|
31
|
-
],
|
|
32
|
-
clean: true
|
|
33
|
-
}),
|
|
34
|
-
commonjs({
|
|
35
|
-
include: 'node_modules/**',
|
|
36
|
-
// left-hand side can be an absolute path, a path
|
|
37
|
-
// relative to the current directory, or the name
|
|
38
|
-
// of a module in node_modules
|
|
39
|
-
namedExports: {
|
|
40
|
-
'node_modules/react/index.js': [
|
|
41
|
-
'cloneElement',
|
|
42
|
-
'createContext',
|
|
43
|
-
'Component',
|
|
44
|
-
'createElement'
|
|
45
|
-
],
|
|
46
|
-
'node_modules/react-dom/index.js': ['render', 'hydrate'],
|
|
47
|
-
'node_modules/react-is/index.js': [
|
|
48
|
-
'isElement',
|
|
49
|
-
'isValidElementType',
|
|
50
|
-
'ForwardRef'
|
|
51
|
-
]
|
|
52
|
-
}
|
|
53
|
-
}),
|
|
54
|
-
]
|
|
55
|
-
}
|
|
4
|
+
export default [
|
|
5
|
+
{
|
|
6
|
+
input: "src/index.ts",
|
|
7
|
+
external: Object.keys(pkg.peerDependencies || {}),
|
|
8
|
+
plugins: [
|
|
9
|
+
typescript({
|
|
10
|
+
typescript: require("typescript")
|
|
11
|
+
})
|
|
12
|
+
],
|
|
13
|
+
output: [
|
|
14
|
+
{ file: pkg.main, format: "cjs" },
|
|
15
|
+
{ file: pkg.module, format: "esm" },
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
];
|
package/src/components/Icon.tsx
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Colors } from "./Colors";
|
|
2
|
-
import Button from './components/Button';
|
|
2
|
+
import Button, { ButtonTypes, ButtonStates } from './components/Button';
|
|
3
3
|
import Counter from "./components/Counter";
|
|
4
4
|
import Icon from "./components/Icon";
|
|
5
5
|
import { IconEnum } from "./components/Icons";
|
|
6
6
|
import Input from "./components/Input";
|
|
7
|
-
import Loader from "./components/Loader";
|
|
7
|
+
import Loader, { LoaderSizes } from "./components/Loader";
|
|
8
8
|
import Product from "./components/Product";
|
|
9
9
|
|
|
10
10
|
const Icons = IconEnum;
|
|
@@ -12,10 +12,13 @@ const Icons = IconEnum;
|
|
|
12
12
|
export {
|
|
13
13
|
Colors,
|
|
14
14
|
Button,
|
|
15
|
+
ButtonTypes,
|
|
16
|
+
ButtonStates,
|
|
15
17
|
Counter,
|
|
16
18
|
Icon,
|
|
17
19
|
Icons,
|
|
18
20
|
Input,
|
|
19
21
|
Loader,
|
|
22
|
+
LoaderSizes,
|
|
20
23
|
Product,
|
|
21
24
|
};
|