sag_components 1.0.641 → 1.0.643
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/.history/.env_20231001120549 +0 -0
- package/.history/.env_20231001120613 +1 -0
- package/.history/.env_20231003143620 +1 -0
- package/.history/.eslintrc_20230928112617.js +26 -0
- package/.history/.eslintrc_20230928130534.js +27 -0
- package/.history/.eslintrc_20230928133400.js +28 -0
- package/.history/.eslintrc_20230928133404.js +28 -0
- package/.history/.eslintrc_20230928133416.js +28 -0
- package/.history/.eslintrc_20230928133419.js +28 -0
- package/.history/.eslintrc_20230928133432.js +28 -0
- package/.history/.eslintrc_20230928133439.js +28 -0
- package/.history/.eslintrc_20230928133458.js +29 -0
- package/.history/.eslintrc_20230928133500.js +28 -0
- package/.history/.eslintrc_20230928134009.js +28 -0
- package/.history/.eslintrc_20230928135318.js +34 -0
- package/.history/.eslintrc_20230928135321.js +34 -0
- package/.history/.eslintrc_20230928135323.js +34 -0
- package/.history/.eslintrc_20230928135332.js +34 -0
- package/.history/.eslintrc_20230928135333.js +34 -0
- package/.history/.eslintrc_20230928135352.js +29 -0
- package/.history/.eslintrc_20230928135353.js +29 -0
- package/.history/.eslintrc_20230928135355.js +29 -0
- package/.history/.eslintrc_20230928135408.js +29 -0
- package/.history/.eslintrc_20230928135538.js +30 -0
- package/.history/.eslintrc_20230928135539.js +30 -0
- package/.history/.eslintrc_20230928135543.js +30 -0
- package/.history/.gitignore_20230921093332 +119 -0
- package/.history/.gitignore_20230921111638 +120 -0
- package/.history/.gitignore_20230921111650 +120 -0
- package/.history/.gitignore_20230921111810 +121 -0
- package/.history/package-lock_20231114111138.json +47810 -0
- package/.history/package-lock_20231114111158.json +47802 -0
- package/.history/package_20231029152422.json +82 -0
- package/.history/package_20231029153420.json +82 -0
- package/.history/package_20231029154416.json +82 -0
- package/.history/package_20231030094127.json +82 -0
- package/.history/package_20231030114707.json +82 -0
- package/.history/package_20231030130704.json +82 -0
- package/.history/package_20231030132422.json +82 -0
- package/.history/package_20231030134051.json +82 -0
- package/.history/package_20231030142913.json +82 -0
- package/.history/package_20231030143556.json +82 -0
- package/.history/package_20231030144210.json +82 -0
- package/.history/package_20231101113942.json +82 -0
- package/.history/package_20231101114544.json +82 -0
- package/.history/package_20231101151518.json +82 -0
- package/.history/package_20231101154501.json +82 -0
- package/.history/package_20231101155811.json +82 -0
- package/.history/package_20231101160235.json +82 -0
- package/.history/package_20231101160406.json +82 -0
- package/.history/package_20231101161325.json +82 -0
- package/.history/package_20231101161333.json +82 -0
- package/.history/package_20231102123623.json +82 -0
- package/.history/package_20231102125741.json +82 -0
- package/.history/package_20231102130857.json +82 -0
- package/.history/package_20231102132227.json +82 -0
- package/.history/package_20231102142340.json +82 -0
- package/.history/package_20231102143256.json +82 -0
- package/.history/package_20231105153539.json +82 -0
- package/.history/package_20231105154332.json +82 -0
- package/.history/package_20231105171201.json +82 -0
- package/.history/package_20231106123849.json +82 -0
- package/.history/package_20231107170638.json +82 -0
- package/.history/package_20231109103647.json +82 -0
- package/.history/package_20231109103911.json +82 -0
- package/.history/package_20231109105426.json +82 -0
- package/.history/package_20231109132014.json +82 -0
- package/.history/package_20231109132115.json +82 -0
- package/.history/package_20231114100517.json +82 -0
- package/.history/package_20231114100859.json +82 -0
- package/.history/package_20231114101553.json +82 -0
- package/.history/package_20231114102545.json +82 -0
- package/.history/package_20231114111208.json +83 -0
- package/.history/package_20231114111515.json +83 -0
- package/.history/package_20231114112931.json +83 -0
- package/.history/package_20231114113014.json +83 -0
- package/.history/package_20231114113155.json +83 -0
- package/.history/package_20231114124318.json +83 -0
- package/.history/package_20231114125107.json +83 -0
- package/.history/package_20231114125510.json +83 -0
- package/.history/package_20231114132634.json +83 -0
- package/.history/package_20231116165815.json +83 -0
- package/.history/package_20231116165916.json +83 -0
- package/.history/package_20231119113637.json +83 -0
- package/.history/package_20231120100907.json +83 -0
- package/.history/package_20231121151523.json +77 -0
- package/.history/package_20231121155513.json +77 -0
- package/.history/package_20231121162434.json +77 -0
- package/.history/package_20231122100718.json +77 -0
- package/.history/package_20231128125149.json +82 -0
- package/.history/package_20231128125208.json +82 -0
- package/dist/stories/CampaignTool/Card.stories.js +1 -0
- package/dist/stories/CampaignTool/PopupContent.stories.js +284 -0
- package/dist/stories/components/BarChartsByWeeks.js +33 -2
- package/dist/stories/components/CampaignTool/CampaignDemoReport.js +48 -0
- package/dist/stories/components/CampaignTool/CampaignDemoReport.style.js +15 -0
- package/dist/stories/components/Datepicker.js +4 -0
- package/dist/stories/components/DropdownMulti.js +2 -0
- package/dist/stories/components/FilterButton.js +53 -0
- package/dist/stories/components/FilterButton.style.js +12 -0
- package/dist/stories/components/MonthPopupPicker.js +1 -0
- package/dist/stories/components/PopupCharts.js +1 -0
- package/dist/stories/components/QuarterPopupPicker.js +0 -1
- package/dist/stories/components/SagButton.js +1 -0
- package/dist/stories/components/Select.js +1 -0
- package/dist/stories/components/TabMenu.js +1 -3
- package/dist/stories/components/icons/ShoutIcon.js +27 -0
- package/package.json +1 -1
- package/dist/stories/components/TotalCostModal.js +0 -143
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "sag_components",
|
|
3
|
+
"version": "1.0.338",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"start": "react-scripts start",
|
|
8
|
+
"lint": "eslint .",
|
|
9
|
+
"build": "cross-env BABEL_ENV=production babel src -d dist ",
|
|
10
|
+
"storybook": "storybook dev -p 6006",
|
|
11
|
+
"build-storybook": "storybook build"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [],
|
|
14
|
+
"author": "SAG",
|
|
15
|
+
"license": "ISC",
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
18
|
+
"@babel/cli": "^7.23.0",
|
|
19
|
+
"@babel/preset-env": "^7.23.2",
|
|
20
|
+
"@babel/preset-react": "^7.22.15",
|
|
21
|
+
"@babel/preset-typescript": "^7.23.2",
|
|
22
|
+
"babel-plugin-react-css-modules": "^5.2.6",
|
|
23
|
+
"babel-preset-react-app": "^10.0.1",
|
|
24
|
+
"@storybook/addon-designs": "^7.0.5",
|
|
25
|
+
"@storybook/addon-essentials": "^7.4.6",
|
|
26
|
+
"@storybook/addon-interactions": "^7.4.6",
|
|
27
|
+
"@storybook/addon-links": "^7.4.6",
|
|
28
|
+
"@storybook/addon-storysource": "^7.4.6",
|
|
29
|
+
"@storybook/addons": "^7.5.3",
|
|
30
|
+
"@storybook/blocks": "^7.4.6",
|
|
31
|
+
"@storybook/preset-scss": "^1.0.3",
|
|
32
|
+
"@storybook/react": "^7.4.6",
|
|
33
|
+
"@storybook/react-webpack5": "^7.4.6",
|
|
34
|
+
"@storybook/testing-library": "^0.2.2",
|
|
35
|
+
"@storybook/theming": "^7.5.3",
|
|
36
|
+
"cross-env": "^7.0.3",
|
|
37
|
+
"css-loader": "^6.8.1",
|
|
38
|
+
"eslint": "^8.53.0",
|
|
39
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
40
|
+
"eslint-plugin-import": "^2.29.0",
|
|
41
|
+
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
42
|
+
"eslint-plugin-react": "^7.33.2",
|
|
43
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
44
|
+
"react-dom": "^18.2.0",
|
|
45
|
+
"sass": "^1.69.5",
|
|
46
|
+
"sass-loader": "^13.3.2",
|
|
47
|
+
"style-loader": "^3.3.3"
|
|
48
|
+
},
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"@emotion/react": "^11.11.1",
|
|
51
|
+
"@emotion/styled": "^11.11.0",
|
|
52
|
+
"@mui/icons-material": "^5.14.16",
|
|
53
|
+
"@mui/material": "^5.14.16",
|
|
54
|
+
"@mui/x-date-pickers": "^6.18.0",
|
|
55
|
+
"classnames": "^2.3.2",
|
|
56
|
+
"dayjs": "^1.11.10",
|
|
57
|
+
"prop-types": "^15.8.1",
|
|
58
|
+
"react": "^18.2.0",
|
|
59
|
+
"react-css-modules": "^4.7.11",
|
|
60
|
+
"react-loading-skeleton": "^3.3.1",
|
|
61
|
+
"recharts": "^2.9.2",
|
|
62
|
+
"storybook": "^7.4.6",
|
|
63
|
+
"styled-components": "^5.3.1"
|
|
64
|
+
},
|
|
65
|
+
"browserslist": {
|
|
66
|
+
"production": [
|
|
67
|
+
">0.2%",
|
|
68
|
+
"not dead",
|
|
69
|
+
"not op_mini all"
|
|
70
|
+
],
|
|
71
|
+
"development": [
|
|
72
|
+
"last 1 chrome version",
|
|
73
|
+
"last 1 firefox version",
|
|
74
|
+
"last 1 safari version"
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "sag_components",
|
|
3
|
+
"version": "1.0.346",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"start": "react-scripts start",
|
|
8
|
+
"lint": "eslint .",
|
|
9
|
+
"build": "cross-env BABEL_ENV=production babel src -d dist ",
|
|
10
|
+
"storybook": "storybook dev -p 6006",
|
|
11
|
+
"build-storybook": "storybook build"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [],
|
|
14
|
+
"author": "SAG",
|
|
15
|
+
"license": "ISC",
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
18
|
+
"@babel/cli": "^7.23.0",
|
|
19
|
+
"@babel/preset-env": "^7.23.2",
|
|
20
|
+
"@babel/preset-react": "^7.22.15",
|
|
21
|
+
"@babel/preset-typescript": "^7.23.2",
|
|
22
|
+
"babel-plugin-react-css-modules": "^5.2.6",
|
|
23
|
+
"babel-preset-react-app": "^10.0.1",
|
|
24
|
+
"@storybook/addon-designs": "^7.0.5",
|
|
25
|
+
"@storybook/addon-essentials": "^7.4.6",
|
|
26
|
+
"@storybook/addon-interactions": "^7.4.6",
|
|
27
|
+
"@storybook/addon-links": "^7.4.6",
|
|
28
|
+
"@storybook/addon-storysource": "^7.4.6",
|
|
29
|
+
"@storybook/addons": "^7.5.3",
|
|
30
|
+
"@storybook/blocks": "^7.4.6",
|
|
31
|
+
"@storybook/preset-scss": "^1.0.3",
|
|
32
|
+
"@storybook/react": "^7.4.6",
|
|
33
|
+
"@storybook/react-webpack5": "^7.4.6",
|
|
34
|
+
"@storybook/testing-library": "^0.2.2",
|
|
35
|
+
"@storybook/theming": "^7.5.3",
|
|
36
|
+
"cross-env": "^7.0.3",
|
|
37
|
+
"css-loader": "^6.8.1",
|
|
38
|
+
"eslint": "^8.53.0",
|
|
39
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
40
|
+
"eslint-plugin-import": "^2.29.0",
|
|
41
|
+
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
42
|
+
"eslint-plugin-react": "^7.33.2",
|
|
43
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
44
|
+
"react-dom": "^18.2.0",
|
|
45
|
+
"sass": "^1.69.5",
|
|
46
|
+
"sass-loader": "^13.3.2",
|
|
47
|
+
"style-loader": "^3.3.3"
|
|
48
|
+
},
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"@emotion/react": "^11.11.1",
|
|
51
|
+
"@emotion/styled": "^11.11.0",
|
|
52
|
+
"@mui/icons-material": "^5.14.16",
|
|
53
|
+
"@mui/material": "^5.14.16",
|
|
54
|
+
"@mui/x-date-pickers": "^6.18.0",
|
|
55
|
+
"classnames": "^2.3.2",
|
|
56
|
+
"dayjs": "^1.11.10",
|
|
57
|
+
"prop-types": "^15.8.1",
|
|
58
|
+
"react": "^18.2.0",
|
|
59
|
+
"react-css-modules": "^4.7.11",
|
|
60
|
+
"react-loading-skeleton": "^3.3.1",
|
|
61
|
+
"recharts": "^2.9.2",
|
|
62
|
+
"storybook": "^7.4.6",
|
|
63
|
+
"styled-components": "^5.3.1"
|
|
64
|
+
},
|
|
65
|
+
"bundler": {
|
|
66
|
+
"exportEntries": ["src/index.ts"],
|
|
67
|
+
"managerEntries": ["src/manager.ts"],
|
|
68
|
+
"previewEntries": ["src/preview.ts"]
|
|
69
|
+
},
|
|
70
|
+
"browserslist": {
|
|
71
|
+
"production": [
|
|
72
|
+
">0.2%",
|
|
73
|
+
"not dead",
|
|
74
|
+
"not op_mini all"
|
|
75
|
+
],
|
|
76
|
+
"development": [
|
|
77
|
+
"last 1 chrome version",
|
|
78
|
+
"last 1 firefox version",
|
|
79
|
+
"last 1 safari version"
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "sag_components",
|
|
3
|
+
"version": "1.0.346",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"start": "react-scripts start",
|
|
8
|
+
"lint": "eslint .",
|
|
9
|
+
"build": "cross-env BABEL_ENV=production babel src -d dist ",
|
|
10
|
+
"storybook": "storybook dev -p 6006",
|
|
11
|
+
"build-storybook": "storybook build"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [],
|
|
14
|
+
"author": "SAG",
|
|
15
|
+
"license": "ISC",
|
|
16
|
+
"devDependencies": {
|
|
17
|
+
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
18
|
+
"@babel/cli": "^7.23.0",
|
|
19
|
+
"@babel/preset-env": "^7.23.2",
|
|
20
|
+
"@babel/preset-react": "^7.22.15",
|
|
21
|
+
"@babel/preset-typescript": "^7.23.2",
|
|
22
|
+
"babel-plugin-react-css-modules": "^5.2.6",
|
|
23
|
+
"babel-preset-react-app": "^10.0.1",
|
|
24
|
+
"@storybook/addon-designs": "^7.0.5",
|
|
25
|
+
"@storybook/addon-essentials": "^7.4.6",
|
|
26
|
+
"@storybook/addon-interactions": "^7.4.6",
|
|
27
|
+
"@storybook/addon-links": "^7.4.6",
|
|
28
|
+
"@storybook/addon-storysource": "^7.4.6",
|
|
29
|
+
"@storybook/addons": "^7.5.3",
|
|
30
|
+
"@storybook/blocks": "^7.4.6",
|
|
31
|
+
"@storybook/preset-scss": "^1.0.3",
|
|
32
|
+
"@storybook/react": "^7.4.6",
|
|
33
|
+
"@storybook/react-webpack5": "^7.4.6",
|
|
34
|
+
"@storybook/testing-library": "^0.2.2",
|
|
35
|
+
"@storybook/theming": "^7.5.3",
|
|
36
|
+
"cross-env": "^7.0.3",
|
|
37
|
+
"css-loader": "^6.8.1",
|
|
38
|
+
"eslint": "^8.53.0",
|
|
39
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
40
|
+
"eslint-plugin-import": "^2.29.0",
|
|
41
|
+
"eslint-plugin-jsx-a11y": "^6.8.0",
|
|
42
|
+
"eslint-plugin-react": "^7.33.2",
|
|
43
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
44
|
+
"react-dom": "^18.2.0",
|
|
45
|
+
"sass": "^1.69.5",
|
|
46
|
+
"sass-loader": "^13.3.2",
|
|
47
|
+
"style-loader": "^3.3.3"
|
|
48
|
+
},
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"@emotion/react": "^11.11.1",
|
|
51
|
+
"@emotion/styled": "^11.11.0",
|
|
52
|
+
"@mui/icons-material": "^5.14.16",
|
|
53
|
+
"@mui/material": "^5.14.16",
|
|
54
|
+
"@mui/x-date-pickers": "^6.18.0",
|
|
55
|
+
"classnames": "^2.3.2",
|
|
56
|
+
"dayjs": "^1.11.10",
|
|
57
|
+
"prop-types": "^15.8.1",
|
|
58
|
+
"react": "^18.2.0",
|
|
59
|
+
"react-css-modules": "^4.7.11",
|
|
60
|
+
"react-loading-skeleton": "^3.3.1",
|
|
61
|
+
"recharts": "^2.9.2",
|
|
62
|
+
"storybook": "^7.4.6",
|
|
63
|
+
"styled-components": "^5.3.1"
|
|
64
|
+
},
|
|
65
|
+
"bundler": {
|
|
66
|
+
"exportEntries": ["src/index.js"],
|
|
67
|
+
"managerEntries": ["src/manager.js"],
|
|
68
|
+
"previewEntries": ["src/preview.js"]
|
|
69
|
+
},
|
|
70
|
+
"browserslist": {
|
|
71
|
+
"production": [
|
|
72
|
+
">0.2%",
|
|
73
|
+
"not dead",
|
|
74
|
+
"not op_mini all"
|
|
75
|
+
],
|
|
76
|
+
"development": [
|
|
77
|
+
"last 1 chrome version",
|
|
78
|
+
"last 1 firefox version",
|
|
79
|
+
"last 1 safari version"
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,284 @@
|
|
|
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 = exports.ExamplePopupContent = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _PopupContent = _interopRequireDefault(require("../components/CampaignTool/PopupContent"));
|
|
10
|
+
const FieldsDataRow1 = [{
|
|
11
|
+
name: "FundationSource",
|
|
12
|
+
label: "Fundation Source",
|
|
13
|
+
disabled: false,
|
|
14
|
+
required: false,
|
|
15
|
+
inputType: "dropdown",
|
|
16
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
17
|
+
showInfo: true,
|
|
18
|
+
infoText: "This is one of the Popup content's fields",
|
|
19
|
+
placeHolder: "Select Source",
|
|
20
|
+
dropdownOptions: [{
|
|
21
|
+
value: 1,
|
|
22
|
+
label: "Source 1"
|
|
23
|
+
}, {
|
|
24
|
+
value: 2,
|
|
25
|
+
label: "Source 2"
|
|
26
|
+
}, {
|
|
27
|
+
value: 3,
|
|
28
|
+
label: "Source 3"
|
|
29
|
+
}],
|
|
30
|
+
dropdownDefaultValue: null
|
|
31
|
+
}, {
|
|
32
|
+
name: "Category",
|
|
33
|
+
label: "Category",
|
|
34
|
+
disabled: false,
|
|
35
|
+
required: false,
|
|
36
|
+
inputType: "dropdown",
|
|
37
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
38
|
+
showInfo: true,
|
|
39
|
+
infoText: "This is one of the Popup content's fields",
|
|
40
|
+
placeHolder: "Select Category",
|
|
41
|
+
dropdownOptions: [{
|
|
42
|
+
value: 1,
|
|
43
|
+
label: "Category 1"
|
|
44
|
+
}, {
|
|
45
|
+
value: 2,
|
|
46
|
+
label: "Category 2"
|
|
47
|
+
}, {
|
|
48
|
+
value: 3,
|
|
49
|
+
label: "Category 3"
|
|
50
|
+
}],
|
|
51
|
+
dropdownDefaultValue: null
|
|
52
|
+
}, {
|
|
53
|
+
name: "Supplier",
|
|
54
|
+
label: "Supplier",
|
|
55
|
+
disabled: false,
|
|
56
|
+
required: false,
|
|
57
|
+
inputType: "dropdown",
|
|
58
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
59
|
+
showInfo: true,
|
|
60
|
+
infoText: "This is one of the Popup content's fields",
|
|
61
|
+
placeHolder: "Select Supplier",
|
|
62
|
+
dropdownOptions: [{
|
|
63
|
+
value: 1,
|
|
64
|
+
label: "Supplier 1"
|
|
65
|
+
}, {
|
|
66
|
+
value: 2,
|
|
67
|
+
label: "Supplier 2"
|
|
68
|
+
}, {
|
|
69
|
+
value: 3,
|
|
70
|
+
label: "Supplier 3"
|
|
71
|
+
}],
|
|
72
|
+
dropdownDefaultValue: null
|
|
73
|
+
}, {
|
|
74
|
+
name: "ContactName",
|
|
75
|
+
label: "Contact Name",
|
|
76
|
+
disabled: false,
|
|
77
|
+
required: false,
|
|
78
|
+
inputType: "textbox",
|
|
79
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
80
|
+
showInfo: true,
|
|
81
|
+
infoText: "This is one of the Popup content's fields",
|
|
82
|
+
placeHolder: "Enter Contact Name",
|
|
83
|
+
dropdownOptions: null,
|
|
84
|
+
dropdownDefaultValue: null
|
|
85
|
+
}];
|
|
86
|
+
const FieldsDataRow2 = [{
|
|
87
|
+
name: "BrandName",
|
|
88
|
+
label: "Brand Name",
|
|
89
|
+
disabled: false,
|
|
90
|
+
required: false,
|
|
91
|
+
inputType: "dropdown",
|
|
92
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
93
|
+
showInfo: true,
|
|
94
|
+
infoText: "This is one of the Popup content's fields",
|
|
95
|
+
placeHolder: "Select Brand",
|
|
96
|
+
dropdownOptions: [{
|
|
97
|
+
value: 1,
|
|
98
|
+
label: "Brand 1"
|
|
99
|
+
}, {
|
|
100
|
+
value: 2,
|
|
101
|
+
label: "Brand 2"
|
|
102
|
+
}, {
|
|
103
|
+
value: 3,
|
|
104
|
+
label: "Brand 3"
|
|
105
|
+
}],
|
|
106
|
+
dropdownDefaultValue: null
|
|
107
|
+
}, {
|
|
108
|
+
name: "Budget",
|
|
109
|
+
label: "Budget",
|
|
110
|
+
disabled: false,
|
|
111
|
+
required: false,
|
|
112
|
+
inputType: "dropdown",
|
|
113
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
114
|
+
showInfo: true,
|
|
115
|
+
infoText: "This is one of the Popup content's fields",
|
|
116
|
+
placeHolder: "Select Budget",
|
|
117
|
+
dropdownOptions: [{
|
|
118
|
+
value: 1,
|
|
119
|
+
label: "Budget 1"
|
|
120
|
+
}, {
|
|
121
|
+
value: 2,
|
|
122
|
+
label: "Budget 2"
|
|
123
|
+
}, {
|
|
124
|
+
value: 3,
|
|
125
|
+
label: "Budget 3"
|
|
126
|
+
}],
|
|
127
|
+
dropdownDefaultValue: {
|
|
128
|
+
value: 1,
|
|
129
|
+
label: "Budget 1"
|
|
130
|
+
}
|
|
131
|
+
}, {
|
|
132
|
+
name: "CategoryManager",
|
|
133
|
+
label: "Category Manager",
|
|
134
|
+
disabled: false,
|
|
135
|
+
required: false,
|
|
136
|
+
inputType: "dropdown",
|
|
137
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
138
|
+
showInfo: true,
|
|
139
|
+
infoText: "This is one of the Popup content's fields",
|
|
140
|
+
placeHolder: "Select Category Manager",
|
|
141
|
+
dropdownOptions: [{
|
|
142
|
+
value: 1,
|
|
143
|
+
label: "Category Manager 1"
|
|
144
|
+
}, {
|
|
145
|
+
value: 2,
|
|
146
|
+
label: "Category Manager 2"
|
|
147
|
+
}, {
|
|
148
|
+
value: 3,
|
|
149
|
+
label: "Category Manager 3"
|
|
150
|
+
}],
|
|
151
|
+
dropdownDefaultValue: {
|
|
152
|
+
value: 3,
|
|
153
|
+
label: "Category Manager 3"
|
|
154
|
+
}
|
|
155
|
+
}, {
|
|
156
|
+
name: "ContactEmail",
|
|
157
|
+
label: "Contact Email",
|
|
158
|
+
disabled: false,
|
|
159
|
+
required: false,
|
|
160
|
+
inputType: "textbox",
|
|
161
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
162
|
+
showInfo: true,
|
|
163
|
+
infoText: "This is one of the Popup content's fields",
|
|
164
|
+
placeHolder: "Enter Contact Email",
|
|
165
|
+
dropdownOptions: null,
|
|
166
|
+
dropdownDefaultValue: null
|
|
167
|
+
}];
|
|
168
|
+
const FieldsDataRow3 = [{
|
|
169
|
+
name: "Broker",
|
|
170
|
+
label: "Broker",
|
|
171
|
+
disabled: false,
|
|
172
|
+
required: false,
|
|
173
|
+
inputType: "dropdown",
|
|
174
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
175
|
+
showInfo: true,
|
|
176
|
+
infoText: "This is one of the Popup content's fields",
|
|
177
|
+
placeHolder: "Select Broker",
|
|
178
|
+
dropdownOptions: [{
|
|
179
|
+
value: 1,
|
|
180
|
+
label: "Broker 1"
|
|
181
|
+
}, {
|
|
182
|
+
value: 2,
|
|
183
|
+
label: "Broker 2"
|
|
184
|
+
}, {
|
|
185
|
+
value: 3,
|
|
186
|
+
label: "Broker 3"
|
|
187
|
+
}],
|
|
188
|
+
dropdownDefaultValue: null
|
|
189
|
+
}, {
|
|
190
|
+
name: "SupplierOfferID",
|
|
191
|
+
label: "Supplier Offer ID",
|
|
192
|
+
disabled: false,
|
|
193
|
+
required: false,
|
|
194
|
+
inputType: "textbox",
|
|
195
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
196
|
+
showInfo: true,
|
|
197
|
+
infoText: "This is one of the Popup content's fields",
|
|
198
|
+
placeHolder: "Enter Supplier Offer ID",
|
|
199
|
+
dropdownOptions: null,
|
|
200
|
+
dropdownDefaultValue: null
|
|
201
|
+
}, {
|
|
202
|
+
name: "VendorID",
|
|
203
|
+
label: "Vendor ID",
|
|
204
|
+
disabled: false,
|
|
205
|
+
required: false,
|
|
206
|
+
inputType: "textbox",
|
|
207
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
208
|
+
showInfo: true,
|
|
209
|
+
infoText: "This is one of the Popup content's fields",
|
|
210
|
+
placeHolder: "Enter Vendor ID",
|
|
211
|
+
dropdownOptions: null,
|
|
212
|
+
dropdownDefaultValue: null
|
|
213
|
+
}, {
|
|
214
|
+
name: "ContactPhone",
|
|
215
|
+
label: "Contact Phone",
|
|
216
|
+
disabled: false,
|
|
217
|
+
required: true,
|
|
218
|
+
inputType: "textbox",
|
|
219
|
+
//aviliable values: textbox | dropdown | checkBox | datepicker
|
|
220
|
+
showInfo: true,
|
|
221
|
+
infoText: "This is one of the Popup content's fields",
|
|
222
|
+
placeHolder: "Enter Contact Phone",
|
|
223
|
+
dropdownOptions: null,
|
|
224
|
+
dropdownDefaultValue: null
|
|
225
|
+
}];
|
|
226
|
+
const RowsData1 = [{
|
|
227
|
+
fieldsArray: FieldsDataRow1
|
|
228
|
+
}, {
|
|
229
|
+
fieldsArray: FieldsDataRow2
|
|
230
|
+
}, {
|
|
231
|
+
fieldsArray: FieldsDataRow3
|
|
232
|
+
}];
|
|
233
|
+
var _default = exports.default = {
|
|
234
|
+
title: "Campaign Tool/PopupContent",
|
|
235
|
+
component: _PopupContent.default,
|
|
236
|
+
tags: ["autodocs"],
|
|
237
|
+
argTypes: {
|
|
238
|
+
FieldsData: {
|
|
239
|
+
name: "FieldsData",
|
|
240
|
+
control: {
|
|
241
|
+
type: "object"
|
|
242
|
+
},
|
|
243
|
+
description: " object: to fill kpi columns and buttons "
|
|
244
|
+
},
|
|
245
|
+
width: {
|
|
246
|
+
name: "width",
|
|
247
|
+
control: {
|
|
248
|
+
type: "text"
|
|
249
|
+
},
|
|
250
|
+
description: "width of the control (in px / %)"
|
|
251
|
+
},
|
|
252
|
+
height: {
|
|
253
|
+
name: "height",
|
|
254
|
+
control: {
|
|
255
|
+
type: "text"
|
|
256
|
+
},
|
|
257
|
+
description: "height of the control (in px / % )"
|
|
258
|
+
},
|
|
259
|
+
onClick: {
|
|
260
|
+
action: "onClick",
|
|
261
|
+
description: "onClick event - returns an object of check box {true/false} "
|
|
262
|
+
},
|
|
263
|
+
onChange: {
|
|
264
|
+
action: "onChange",
|
|
265
|
+
description: "onChange event "
|
|
266
|
+
},
|
|
267
|
+
borderColor: {
|
|
268
|
+
name: "borderColor",
|
|
269
|
+
description: "Sets the border color",
|
|
270
|
+
control: {
|
|
271
|
+
type: "color",
|
|
272
|
+
presetColors: ["#ffffff", "#ff0000", "#00ff00", "#0000ff"]
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
};
|
|
277
|
+
const Template = args => /*#__PURE__*/_react.default.createElement(_PopupContent.default, args);
|
|
278
|
+
const ExamplePopupContent = exports.ExamplePopupContent = Template.bind({});
|
|
279
|
+
ExamplePopupContent.args = {
|
|
280
|
+
rowsData: RowsData1,
|
|
281
|
+
borderColor: "#066768",
|
|
282
|
+
width: "100%",
|
|
283
|
+
height: "100%"
|
|
284
|
+
};
|
|
@@ -18,6 +18,7 @@ const ICON_TYPE_LEGEND_LINE_ICON = 'LegendLineIcon';
|
|
|
18
18
|
const BarChartsByWeeks = props => {
|
|
19
19
|
const {
|
|
20
20
|
title,
|
|
21
|
+
lineChartData,
|
|
21
22
|
barChartData,
|
|
22
23
|
width,
|
|
23
24
|
height,
|
|
@@ -111,10 +112,24 @@ const BarChartsByWeeks = props => {
|
|
|
111
112
|
id: "ResponsiveContainer",
|
|
112
113
|
width: "100%",
|
|
113
114
|
height: showLegend ? '80%' : '86%'
|
|
114
|
-
}, /*#__PURE__*/_react.default.createElement(_recharts.
|
|
115
|
+
}, /*#__PURE__*/_react.default.createElement(_recharts.LineChart, {
|
|
116
|
+
data: [],
|
|
117
|
+
margin: {
|
|
118
|
+
top: 20,
|
|
119
|
+
right: 90,
|
|
120
|
+
left: 90,
|
|
121
|
+
bottom: 10
|
|
122
|
+
}
|
|
123
|
+
}, /*#__PURE__*/_react.default.createElement(_recharts.Line, {
|
|
124
|
+
type: "monotone",
|
|
125
|
+
dataKey: "existingShoppersPercentValue",
|
|
126
|
+
fill: "38ACFF",
|
|
127
|
+
name: "existingShopper",
|
|
128
|
+
stroke: "38ACFF"
|
|
129
|
+
})), /*#__PURE__*/_react.default.createElement(_recharts.BarChart, {
|
|
115
130
|
width: BarChartContainerWidth,
|
|
116
131
|
height: BarChartContainerHeight,
|
|
117
|
-
data:
|
|
132
|
+
data: lineChartData,
|
|
118
133
|
margin: {
|
|
119
134
|
top: 20,
|
|
120
135
|
right: 0,
|
|
@@ -156,6 +171,22 @@ exports.BarChartsByWeeks = BarChartsByWeeks;
|
|
|
156
171
|
var _default = exports.default = BarChartsByWeeks;
|
|
157
172
|
BarChartsByWeeks.defaultProps = {
|
|
158
173
|
title: 'String',
|
|
174
|
+
lineChartData: [{
|
|
175
|
+
title: '202320',
|
|
176
|
+
value: 6
|
|
177
|
+
}, {
|
|
178
|
+
title: '202321',
|
|
179
|
+
value: 15.2
|
|
180
|
+
}, {
|
|
181
|
+
title: '202322',
|
|
182
|
+
value: 40
|
|
183
|
+
}, {
|
|
184
|
+
title: '202323',
|
|
185
|
+
value: 39
|
|
186
|
+
}, {
|
|
187
|
+
title: '202324',
|
|
188
|
+
value: 17
|
|
189
|
+
}],
|
|
159
190
|
barChartData: [{
|
|
160
191
|
title: '202320',
|
|
161
192
|
value: 542366
|
|
@@ -0,0 +1,48 @@
|
|
|
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 _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _CampaignDemoReport = require("./CampaignDemoReport.style");
|
|
10
|
+
var _ShoutIcon = _interopRequireDefault(require("../icons/ShoutIcon"));
|
|
11
|
+
const CampaignDemoReport = props => {
|
|
12
|
+
const {
|
|
13
|
+
topHeadline,
|
|
14
|
+
topLabels,
|
|
15
|
+
bottomHeadline,
|
|
16
|
+
bottomLabels
|
|
17
|
+
} = props;
|
|
18
|
+
return /*#__PURE__*/_react.default.createElement(_CampaignDemoReport.ComponentContainer, null, /*#__PURE__*/_react.default.createElement(_CampaignDemoReport.Headline, null, topHeadline), /*#__PURE__*/_react.default.createElement(_CampaignDemoReport.LabelsContainer, null, topLabels.map(label => /*#__PURE__*/_react.default.createElement(_CampaignDemoReport.Label, {
|
|
19
|
+
key: label.value,
|
|
20
|
+
className: "icon-label"
|
|
21
|
+
}, /*#__PURE__*/_react.default.createElement(_ShoutIcon.default, {
|
|
22
|
+
fill: "#1B30AA"
|
|
23
|
+
}), /*#__PURE__*/_react.default.createElement("span", null, label.value)))), /*#__PURE__*/_react.default.createElement(_CampaignDemoReport.Line, null), /*#__PURE__*/_react.default.createElement(_CampaignDemoReport.Headline, null, bottomHeadline), /*#__PURE__*/_react.default.createElement(_CampaignDemoReport.LabelsContainer, null, bottomLabels.map(label => /*#__PURE__*/_react.default.createElement(_CampaignDemoReport.Label, {
|
|
24
|
+
key: label.value
|
|
25
|
+
}, /*#__PURE__*/_react.default.createElement("span", null, label.value)))));
|
|
26
|
+
};
|
|
27
|
+
CampaignDemoReport.defaultProps = {
|
|
28
|
+
topHeadline: 'Live Campaigns This Week:',
|
|
29
|
+
topLabels: [{
|
|
30
|
+
icon: 'Label 1',
|
|
31
|
+
value: 'Monthly 2'
|
|
32
|
+
}, {
|
|
33
|
+
icon: 'Label 2',
|
|
34
|
+
value: 'Healthy Summer'
|
|
35
|
+
}, {
|
|
36
|
+
icon: 'Label 3',
|
|
37
|
+
value: 'Game Night'
|
|
38
|
+
}],
|
|
39
|
+
bottomHeadline: 'Upcoming Campaigns:',
|
|
40
|
+
bottomLabels: [{
|
|
41
|
+
icon: 'none',
|
|
42
|
+
value: 'Monthly 2'
|
|
43
|
+
}, {
|
|
44
|
+
icon: 'none',
|
|
45
|
+
value: 'Healthy Summer'
|
|
46
|
+
}]
|
|
47
|
+
};
|
|
48
|
+
var _default = exports.default = CampaignDemoReport;
|
|
@@ -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.Line = exports.LabelsContainer = exports.Label = exports.Headline = exports.ComponentContainer = void 0;
|
|
8
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
11
|
+
const ComponentContainer = exports.ComponentContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n padding: 20px;\n font-family: \"Poppins\", sans-serif;\n background-color: white;\n"])));
|
|
12
|
+
const Headline = exports.Headline = _styledComponents.default.h3(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n color: #212121;\n font-size: 20px;\n font-weight: 500;\n margin: 0 0 16px;\n"])));
|
|
13
|
+
const LabelsContainer = exports.LabelsContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n gap: 16px;\n"])));
|
|
14
|
+
const Label = exports.Label = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 12px;\n padding: 8px;\n color: #212121;\n background-color: #F2F2F2;\n > span {\n font-weight: 400;\n }\n\n &.icon-label {\n display: flex;\n gap: 8px;\n color: #1B30AA;\n border-radius: 4px;\n background-color: #F0F5FF;\n > span {\n font-weight: 500;\n }\n }\n"])));
|
|
15
|
+
const Line = exports.Line = _styledComponents.default.hr(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n background-color: #D0D0D0;\n width: 100%;\n margin: 28px 0;\n"])));
|
|
@@ -55,6 +55,7 @@ const Datepicker = _ref => {
|
|
|
55
55
|
width
|
|
56
56
|
// color: labelColor,
|
|
57
57
|
},
|
|
58
|
+
|
|
58
59
|
'& .MuiOutlinedInput-root': {
|
|
59
60
|
borderRadius: '12px',
|
|
60
61
|
fontFamily: 'Poppins',
|
|
@@ -74,15 +75,18 @@ const Datepicker = _ref => {
|
|
|
74
75
|
borderColor: '#E7E7E7'
|
|
75
76
|
// color: labelColor,
|
|
76
77
|
},
|
|
78
|
+
|
|
77
79
|
'&:hover .MuiOutlinedInput-notchedOutline': {
|
|
78
80
|
borderColor: disabled ? '#E7E7E7' : labelColor // "#757575",
|
|
79
81
|
// color: labelColor,
|
|
80
82
|
},
|
|
83
|
+
|
|
81
84
|
'&.Mui-focused .MuiOutlinedInput-notchedOutline': {
|
|
82
85
|
borderColor: disabled ? '#E7E7E7' : labelColor
|
|
83
86
|
// color: labelColor,
|
|
84
87
|
}
|
|
85
88
|
},
|
|
89
|
+
|
|
86
90
|
'& .MuiInputLabel-outlined:not(.MuiInputLabel-shrink)': {
|
|
87
91
|
// Default transform is "translate(14px, 20px) scale(1)""
|
|
88
92
|
// This lines up the label with the initial cursor position in the input
|