sag_components 1.0.1067 → 1.0.1069
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/.eslintrc.js +3 -1
- package/dist/Button.test.js +10 -10
- package/dist/LinkButton.test.js +10 -10
- package/dist/SingleBar.test.js +2 -2
- package/dist/index.js +1 -1
- package/dist/setupTests.js +1 -3
- package/dist/stories/CampaignTool/PopupContent.stories.js +284 -0
- package/dist/stories/components/BannerEventBoxTest.js +42 -0
- package/dist/stories/components/BannerEventBoxTest.style.js +11 -0
- package/dist/stories/components/CampaignTool/Card.style.js +0 -2
- package/dist/stories/components/CampaignTool/MultipleCard.style.js +0 -2
- package/dist/stories/components/CampaignTool/PopupFieldsRules.js +44 -44
- package/dist/stories/components/CampaignTool/Table.style.js +0 -2
- package/dist/stories/components/CommonFunctions.js +5 -1
- package/dist/stories/components/FilterButton.js +53 -0
- package/dist/stories/components/FilterButton.style.js +12 -0
- package/dist/stories/components/LinkButton.js +1 -1
- package/dist/stories/components/LinnerDataBox.js +1 -0
- package/dist/stories/components/Modal.style.js +0 -2
- package/dist/stories/components/NewInput.js +33 -0
- package/dist/stories/components/NewInput.style.js +13 -0
- package/dist/stories/components/QuickFilterDropdownMultiSelection.js +1 -1
- package/dist/stories/components/QuickFilterDropdownSingle.js +1 -1
- package/dist/stories/components/QuickFilterDropdownSingle.style.js +13 -13
- package/dist/stories/components/ReportTable.js +6 -6
- package/dist/stories/components/ReportTable.style.js +2 -2
- package/dist/stories/components/SalesSplit.js +153 -0
- package/dist/stories/components/SalesSplit.style.js +150 -0
- package/dist/stories/components/SingleBarLineCharts.js +137 -56
- package/dist/stories/components/TabMenu.style.js +1 -2
- package/dist/stories/components/TotalBenchmark.style.js +0 -2
- package/dist/stories/components/icons/TheGiantCompanyIcon_old.js +1831 -0
- package/dist/stories/utils/IconsHandler.style.js +0 -1
- package/dist/vite.config.js +15 -0
- package/favicon.ico +0 -0
- package/index.html +65 -0
- package/jest.config.js +1 -1
- package/manifest.json +25 -0
- package/package.json +8 -7
- package/robots.txt +3 -0
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.IconWrapper = void 0;
|
|
8
8
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
-
// eslint-disable-next-line import/prefer-default-export
|
|
10
9
|
const IconWrapper = exports.IconWrapper = _styledComponents.default.div`
|
|
11
10
|
display: flex;
|
|
12
11
|
align-items: center;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _vite = require("vite");
|
|
9
|
+
var _pluginReact = _interopRequireDefault(require("@vitejs/plugin-react"));
|
|
10
|
+
var _default = exports.default = (0, _vite.defineConfig)({
|
|
11
|
+
plugins: [(0, _pluginReact.default)()],
|
|
12
|
+
server: {
|
|
13
|
+
port: 3000 // Optional: Change port if needed
|
|
14
|
+
}
|
|
15
|
+
});
|
package/favicon.ico
ADDED
|
Binary file
|
package/index.html
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
+
<meta name="theme-color" content="#000000" />
|
|
7
|
+
<meta
|
|
8
|
+
name="description"
|
|
9
|
+
content="Web site created using create-react-app"
|
|
10
|
+
/>
|
|
11
|
+
<link rel="icon" href="/favicon.ico" />
|
|
12
|
+
<link rel="apple-touch-icon" href="/logo192.png" />
|
|
13
|
+
<link rel="manifest" href="/manifest.json" />
|
|
14
|
+
<script type="module" src="/src/index.jsx"></script>
|
|
15
|
+
|
|
16
|
+
<!--
|
|
17
|
+
manifest.json provides metadata used when your web app is installed on a
|
|
18
|
+
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
|
19
|
+
-->
|
|
20
|
+
<!--
|
|
21
|
+
Notice the use of %PUBLIC_URL% in the tags above.
|
|
22
|
+
It will be replaced with the URL of the `public` folder during the build.
|
|
23
|
+
Only files inside the `public` folder can be referenced from the HTML.
|
|
24
|
+
|
|
25
|
+
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
|
|
26
|
+
work correctly both with client-side routing and a non-root public URL.
|
|
27
|
+
Learn how to configure a non-root public URL by running `npm run build`.
|
|
28
|
+
-->
|
|
29
|
+
<link
|
|
30
|
+
rel="stylesheet"
|
|
31
|
+
href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"
|
|
32
|
+
/>
|
|
33
|
+
<link
|
|
34
|
+
rel="stylesheet"
|
|
35
|
+
href="https://fonts.googleapis.com/icon?family=Material+Icons"
|
|
36
|
+
/>
|
|
37
|
+
<meta name="viewport" content="initial-scale=1, width=device-width" />
|
|
38
|
+
<title>React App</title>
|
|
39
|
+
|
|
40
|
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
41
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
42
|
+
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&display=swap" rel="stylesheet">
|
|
43
|
+
|
|
44
|
+
</head>
|
|
45
|
+
<body>
|
|
46
|
+
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
47
|
+
<div id="root"></div>
|
|
48
|
+
<!--
|
|
49
|
+
This HTML file is a template.
|
|
50
|
+
If you open it directly in the browser, you will see an empty page.
|
|
51
|
+
|
|
52
|
+
You can add webfonts, meta tags, or analytics to this file.
|
|
53
|
+
The build step will place the bundled scripts into the <body> tag.
|
|
54
|
+
|
|
55
|
+
To begin the development, run `npm start` or `yarn start`.
|
|
56
|
+
To create a production bundle, use `npm run build` or `yarn build`.
|
|
57
|
+
-->
|
|
58
|
+
</body>
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
<style>
|
|
62
|
+
html,body {font-size: 18px;}
|
|
63
|
+
</style>
|
|
64
|
+
|
|
65
|
+
</html>
|
package/jest.config.js
CHANGED
package/manifest.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
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/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sag_components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1069",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"start": "
|
|
7
|
+
"start": "vite dev --open",
|
|
8
8
|
"test": "jest",
|
|
9
|
-
"lint": "eslint .",
|
|
9
|
+
"lint": "eslint . --fix",
|
|
10
10
|
"build": "cross-env BABEL_ENV=production babel src -d dist ",
|
|
11
11
|
"storybook": "storybook dev -p 6006",
|
|
12
12
|
"build-storybook": "storybook build"
|
|
@@ -34,24 +34,25 @@
|
|
|
34
34
|
"@storybook/theming": "^7.5.3",
|
|
35
35
|
"@testing-library/jest-dom": "^6.4.5",
|
|
36
36
|
"@testing-library/react": "^15.0.7",
|
|
37
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
37
38
|
"babel-plugin-react-css-modules": "^5.2.6",
|
|
38
39
|
"babel-preset-react-app": "^10.0.1",
|
|
39
40
|
"cross-env": "^7.0.3",
|
|
40
41
|
"css-loader": "^6.8.1",
|
|
41
42
|
"eslint": "^8.56.0",
|
|
42
|
-
"eslint-config-
|
|
43
|
+
"eslint-config-google": "^0.14.0",
|
|
43
44
|
"eslint-plugin-import": "^2.29.1",
|
|
44
|
-
"eslint-plugin-jest": "^28.
|
|
45
|
+
"eslint-plugin-jest": "^28.11.0",
|
|
45
46
|
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
46
47
|
"eslint-plugin-react": "^7.34.1",
|
|
47
48
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
48
49
|
"jest": "^29.7.0",
|
|
49
50
|
"jest-environment-jsdom": "^29.7.0",
|
|
50
51
|
"react-dom": "^18.2.0",
|
|
51
|
-
"react-scripts": "^5.0.1",
|
|
52
52
|
"sass": "^1.74.1",
|
|
53
53
|
"sass-loader": "^13.3.3",
|
|
54
|
-
"style-loader": "^3.3.4"
|
|
54
|
+
"style-loader": "^3.3.4",
|
|
55
|
+
"vite": "^6.1.0"
|
|
55
56
|
},
|
|
56
57
|
"dependencies": {
|
|
57
58
|
"@emotion/react": "^11.11.4",
|
package/robots.txt
ADDED