@omniumretail/component-library 1.0.99 → 1.1.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 +11 -2
- package/.storybook/main.js +0 -16
- package/.storybook/preview-head.html +0 -20
- package/.storybook/preview.js +0 -27
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omniumretail/component-library",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.01",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/bundle.js",
|
|
6
6
|
"typings": "./dist/types/index",
|
|
@@ -63,7 +63,16 @@
|
|
|
63
63
|
"terser-webpack-plugin": "^5.2.5",
|
|
64
64
|
"typescript": "^4.9.3",
|
|
65
65
|
"url-loader": "^4.1.1",
|
|
66
|
-
"web-vitals": "^2.1.0"
|
|
66
|
+
"web-vitals": "^2.1.0",
|
|
67
|
+
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
|
|
68
|
+
"bfj": "^7.0.2",
|
|
69
|
+
"postcss-flexbugs-fixes": "^5.0.2",
|
|
70
|
+
"postcss-normalize": "^10.0.1",
|
|
71
|
+
"postcss-preset-env": "^7.0.1",
|
|
72
|
+
"react-refresh": "^0.11.0",
|
|
73
|
+
"webpack-dev-server": "^4.6.0",
|
|
74
|
+
"webpack-manifest-plugin": "^4.0.2",
|
|
75
|
+
"workbox-webpack-plugin": "^6.4.1"
|
|
67
76
|
},
|
|
68
77
|
"scripts": {
|
|
69
78
|
"prepublish": "rm -rf ./dist && npm run build",
|
package/.storybook/main.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
"stories": [
|
|
3
|
-
"../src/**/*.stories.mdx",
|
|
4
|
-
"../src/**/*.stories.@(js|jsx|ts|tsx)"
|
|
5
|
-
],
|
|
6
|
-
"addons": [
|
|
7
|
-
"@storybook/addon-links",
|
|
8
|
-
"@storybook/addon-essentials",
|
|
9
|
-
"@storybook/addon-interactions",
|
|
10
|
-
"@storybook/preset-create-react-app",
|
|
11
|
-
],
|
|
12
|
-
"framework": "@storybook/react",
|
|
13
|
-
"core": {
|
|
14
|
-
"builder": "@storybook/builder-webpack5"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<!-- preview-head.html: Overrides content of preview IFRAME HTML page's <head> tag, affecting rendered component(s) below Canvas and Docs tabs. -->
|
|
2
|
-
<!-- Link tag that points to Roboto font resolves to src/assets/fonts/ folder based on start command defined with '-s src/assets' parameter in package.json. -->
|
|
3
|
-
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto&display=swap">
|
|
4
|
-
<style>
|
|
5
|
-
@font-face {
|
|
6
|
-
font-family: 'Silka';
|
|
7
|
-
font-weight: normal;
|
|
8
|
-
src: url(../src/assets/fonts/Silka-Regular.woff2);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@font-face {
|
|
12
|
-
font-family: 'Silka';
|
|
13
|
-
font-weight: Bold;
|
|
14
|
-
src: url(../src/assets/fonts/Silka-Bold.woff2);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
body {
|
|
18
|
-
font-family: 'Silka', sans-serif;
|
|
19
|
-
}
|
|
20
|
-
</style>
|
package/.storybook/preview.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import '../src/assets/scss/index.scss';
|
|
2
|
-
import { mergei18n } from '../src/constants/i18n.ts';
|
|
3
|
-
|
|
4
|
-
mergei18n({
|
|
5
|
-
en: {
|
|
6
|
-
translation: {
|
|
7
|
-
"application": {
|
|
8
|
-
"buttonText": "Go"
|
|
9
|
-
},
|
|
10
|
-
"navigation": {
|
|
11
|
-
"home": "Home",
|
|
12
|
-
"logout": "Logout"
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
export const parameters = {
|
|
19
|
-
actions: { argTypesRegex: "^on[A-Z].*" },
|
|
20
|
-
controls: {
|
|
21
|
-
matchers: {
|
|
22
|
-
color: /(background|color)$/i,
|
|
23
|
-
date: /Date$/,
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
layout: 'fullscreen',
|
|
27
|
-
}
|