sag_components 1.0.643 → 1.0.645
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/dist/stories/CampaignTool/Card.stories.js +0 -1
- package/dist/stories/components/BarChartsByWeeks.js +7 -34
- package/dist/stories/components/Datepicker.js +0 -4
- package/dist/stories/components/DropdownMulti.js +0 -2
- package/dist/stories/components/MonthPopupPicker.js +0 -1
- package/dist/stories/components/PopupCharts.js +0 -1
- package/dist/stories/components/QuarterPopupPicker.js +1 -0
- package/dist/stories/components/ReportTable.js +147 -55
- package/dist/stories/components/ReportTable.style.js +5 -3
- package/dist/stories/components/SagButton.js +0 -1
- package/dist/stories/components/Select.js +0 -1
- package/dist/stories/components/TotalCostModal.js +143 -0
- package/package.json +1 -1
- package/.history/.env_20231001120549 +0 -0
- package/.history/.env_20231001120613 +0 -1
- package/.history/.env_20231003143620 +0 -1
- package/.history/.eslintrc_20230928112617.js +0 -26
- package/.history/.eslintrc_20230928130534.js +0 -27
- package/.history/.eslintrc_20230928133400.js +0 -28
- package/.history/.eslintrc_20230928133404.js +0 -28
- package/.history/.eslintrc_20230928133416.js +0 -28
- package/.history/.eslintrc_20230928133419.js +0 -28
- package/.history/.eslintrc_20230928133432.js +0 -28
- package/.history/.eslintrc_20230928133439.js +0 -28
- package/.history/.eslintrc_20230928133458.js +0 -29
- package/.history/.eslintrc_20230928133500.js +0 -28
- package/.history/.eslintrc_20230928134009.js +0 -28
- package/.history/.eslintrc_20230928135318.js +0 -34
- package/.history/.eslintrc_20230928135321.js +0 -34
- package/.history/.eslintrc_20230928135323.js +0 -34
- package/.history/.eslintrc_20230928135332.js +0 -34
- package/.history/.eslintrc_20230928135333.js +0 -34
- package/.history/.eslintrc_20230928135352.js +0 -29
- package/.history/.eslintrc_20230928135353.js +0 -29
- package/.history/.eslintrc_20230928135355.js +0 -29
- package/.history/.eslintrc_20230928135408.js +0 -29
- package/.history/.eslintrc_20230928135538.js +0 -30
- package/.history/.eslintrc_20230928135539.js +0 -30
- package/.history/.eslintrc_20230928135543.js +0 -30
- package/.history/.gitignore_20230921093332 +0 -119
- package/.history/.gitignore_20230921111638 +0 -120
- package/.history/.gitignore_20230921111650 +0 -120
- package/.history/.gitignore_20230921111810 +0 -121
- package/.history/package-lock_20231114111138.json +0 -47810
- package/.history/package-lock_20231114111158.json +0 -47802
- package/.history/package_20231029152422.json +0 -82
- package/.history/package_20231029153420.json +0 -82
- package/.history/package_20231029154416.json +0 -82
- package/.history/package_20231030094127.json +0 -82
- package/.history/package_20231030114707.json +0 -82
- package/.history/package_20231030130704.json +0 -82
- package/.history/package_20231030132422.json +0 -82
- package/.history/package_20231030134051.json +0 -82
- package/.history/package_20231030142913.json +0 -82
- package/.history/package_20231030143556.json +0 -82
- package/.history/package_20231030144210.json +0 -82
- package/.history/package_20231101113942.json +0 -82
- package/.history/package_20231101114544.json +0 -82
- package/.history/package_20231101151518.json +0 -82
- package/.history/package_20231101154501.json +0 -82
- package/.history/package_20231101155811.json +0 -82
- package/.history/package_20231101160235.json +0 -82
- package/.history/package_20231101160406.json +0 -82
- package/.history/package_20231101161325.json +0 -82
- package/.history/package_20231101161333.json +0 -82
- package/.history/package_20231102123623.json +0 -82
- package/.history/package_20231102125741.json +0 -82
- package/.history/package_20231102130857.json +0 -82
- package/.history/package_20231102132227.json +0 -82
- package/.history/package_20231102142340.json +0 -82
- package/.history/package_20231102143256.json +0 -82
- package/.history/package_20231105153539.json +0 -82
- package/.history/package_20231105154332.json +0 -82
- package/.history/package_20231105171201.json +0 -82
- package/.history/package_20231106123849.json +0 -82
- package/.history/package_20231107170638.json +0 -82
- package/.history/package_20231109103647.json +0 -82
- package/.history/package_20231109103911.json +0 -82
- package/.history/package_20231109105426.json +0 -82
- package/.history/package_20231109132014.json +0 -82
- package/.history/package_20231109132115.json +0 -82
- package/.history/package_20231114100517.json +0 -82
- package/.history/package_20231114100859.json +0 -82
- package/.history/package_20231114101553.json +0 -82
- package/.history/package_20231114102545.json +0 -82
- package/.history/package_20231114111208.json +0 -83
- package/.history/package_20231114111515.json +0 -83
- package/.history/package_20231114112931.json +0 -83
- package/.history/package_20231114113014.json +0 -83
- package/.history/package_20231114113155.json +0 -83
- package/.history/package_20231114124318.json +0 -83
- package/.history/package_20231114125107.json +0 -83
- package/.history/package_20231114125510.json +0 -83
- package/.history/package_20231114132634.json +0 -83
- package/.history/package_20231116165815.json +0 -83
- package/.history/package_20231116165916.json +0 -83
- package/.history/package_20231119113637.json +0 -83
- package/.history/package_20231120100907.json +0 -83
- package/.history/package_20231121151523.json +0 -77
- package/.history/package_20231121155513.json +0 -77
- package/.history/package_20231121162434.json +0 -77
- package/.history/package_20231122100718.json +0 -77
- package/.history/package_20231128125149.json +0 -82
- package/.history/package_20231128125208.json +0 -82
- package/dist/stories/CampaignTool/PopupContent.stories.js +0 -284
- package/dist/stories/components/FilterButton.js +0 -53
- package/dist/stories/components/FilterButton.style.js +0 -12
|
@@ -1,77 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,284 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.default = exports.FilterButton = void 0;
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _FilterButton = require("./FilterButton.style");
|
|
10
|
-
var _FilterIcon = require("./icons/FilterIcon");
|
|
11
|
-
const FilterButton = props => {
|
|
12
|
-
const {
|
|
13
|
-
color,
|
|
14
|
-
activeColor,
|
|
15
|
-
height,
|
|
16
|
-
buttonText,
|
|
17
|
-
iconWidth,
|
|
18
|
-
iconHeight,
|
|
19
|
-
disabled,
|
|
20
|
-
openState,
|
|
21
|
-
onButtonClick
|
|
22
|
-
} = props;
|
|
23
|
-
const [activeState, setActiveState] = (0, _react.useState)(openState);
|
|
24
|
-
const onClickHandler = event => {
|
|
25
|
-
onButtonClick(event);
|
|
26
|
-
setActiveState(!activeState);
|
|
27
|
-
};
|
|
28
|
-
return /*#__PURE__*/_react.default.createElement(_FilterButton.FilterButtonWrapper, {
|
|
29
|
-
height: height,
|
|
30
|
-
color: activeState ? activeColor : color,
|
|
31
|
-
disabled: disabled,
|
|
32
|
-
onClick: event => {
|
|
33
|
-
onClickHandler(event);
|
|
34
|
-
}
|
|
35
|
-
}, /*#__PURE__*/_react.default.createElement(_FilterIcon.FilterIcon, {
|
|
36
|
-
width: iconWidth,
|
|
37
|
-
height: iconHeight,
|
|
38
|
-
color: activeState ? activeColor : color
|
|
39
|
-
}), /*#__PURE__*/_react.default.createElement(_FilterButton.SpanText, null, buttonText));
|
|
40
|
-
};
|
|
41
|
-
exports.FilterButton = FilterButton;
|
|
42
|
-
var _default = exports.default = FilterButton;
|
|
43
|
-
FilterButton.defaultProps = {
|
|
44
|
-
buttonText: 'Filter',
|
|
45
|
-
height: '40px',
|
|
46
|
-
color: '#212121',
|
|
47
|
-
activeColor: '#229E38',
|
|
48
|
-
iconHeight: 12,
|
|
49
|
-
iconWidth: 12,
|
|
50
|
-
openState: false,
|
|
51
|
-
disabled: false,
|
|
52
|
-
onButtonClick: () => {}
|
|
53
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.SpanText = exports.FilterButtonWrapper = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
|
-
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
var _templateObject, _templateObject2;
|
|
11
|
-
const FilterButtonWrapper = exports.FilterButtonWrapper = _styledComponents.default.button(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n height: ", ";\n font-size: 14px;\n font-weight: 400;\n display: flex;\n gap: 8px;\n align-items: center;\n justify-content: center;\n padding: 8px 18px;\n color: ", ";\n border-radius: 8px;\n border: 1px solid ", ";\n background: transparent;\n transition: box-shadow 0.3s ease;\n &:hover, &:focus {\n cursor: pointer;\n box-shadow: 5px 5px 10px 0px rgba(0, 0, 0, 0.1);\n }\n"])), props => props.height, props => props.color, props => props.color);
|
|
12
|
-
const SpanText = exports.SpanText = _styledComponents.default.span(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n"])));
|