sag_components 1.0.577 → 1.0.578
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/components/BannersDropdown.style.js +1 -1
- package/dist/stories/components/EventListItem.style.js +2 -2
- package/dist/stories/components/FilterButton.js +4 -10
- package/dist/stories/components/FilterButton.style.js +1 -1
- package/dist/stories/components/OneColumnContainer.js +21 -13
- package/dist/stories/components/OneColumnContainer.style.js +6 -4
- package/dist/stories/components/SalesAndROI.js +25 -11
- package/dist/stories/components/SalesAndROI.style.js +2 -3
- package/dist/stories/components/TabMenu.js +4 -21
- package/dist/stories/components/TotalHorizontalCharts.style.js +1 -1
- 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/components/SagIconButton.js +0 -123
- package/dist/stories/components/SagIconButton.style.js +0 -12
- package/dist/stories/components/icons/OptionsIcon.js +0 -27
|
@@ -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,123 +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.SagIconButton = void 0;
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _SagIconButton = require("./SagIconButton.style");
|
|
10
|
-
var _FilterIcon = require("./icons/FilterIcon");
|
|
11
|
-
var _OptionsIcon = require("./icons/OptionsIcon");
|
|
12
|
-
var _DownloadIcon = require("./icons/DownloadIcon");
|
|
13
|
-
var _DocumentIcon = require("./icons/DocumentIcon");
|
|
14
|
-
var _FlyIcon = require("./icons/FlyIcon");
|
|
15
|
-
var _BellIcon = require("./icons/BellIcon");
|
|
16
|
-
var _MaintenanceIcon = require("./icons/MaintenanceIcon");
|
|
17
|
-
var _ExitIcon = require("./icons/ExitIcon");
|
|
18
|
-
var _EyeIcon = require("./icons/EyeIcon");
|
|
19
|
-
const SagIconButton = props => {
|
|
20
|
-
const {
|
|
21
|
-
iconName,
|
|
22
|
-
color,
|
|
23
|
-
activeColor,
|
|
24
|
-
height,
|
|
25
|
-
buttonText,
|
|
26
|
-
iconWidth,
|
|
27
|
-
iconHeight,
|
|
28
|
-
disabled,
|
|
29
|
-
openState,
|
|
30
|
-
onButtonClick
|
|
31
|
-
} = props;
|
|
32
|
-
const [activeState, setActiveState] = (0, _react.useState)(openState);
|
|
33
|
-
const onClickHandler = event => {
|
|
34
|
-
onButtonClick(event);
|
|
35
|
-
setActiveState(prevState => !prevState);
|
|
36
|
-
};
|
|
37
|
-
const getIcon = icon => {
|
|
38
|
-
switch (icon.toLowerCase()) {
|
|
39
|
-
case 'filter':
|
|
40
|
-
return /*#__PURE__*/_react.default.createElement(_FilterIcon.FilterIcon, {
|
|
41
|
-
height: iconHeight,
|
|
42
|
-
width: iconWidth,
|
|
43
|
-
color: activeState ? activeColor : color
|
|
44
|
-
});
|
|
45
|
-
case 'options':
|
|
46
|
-
return /*#__PURE__*/_react.default.createElement(_OptionsIcon.OptionsIcon, {
|
|
47
|
-
height: iconHeight,
|
|
48
|
-
width: iconWidth,
|
|
49
|
-
color: activeState ? activeColor : color
|
|
50
|
-
});
|
|
51
|
-
case 'download':
|
|
52
|
-
return /*#__PURE__*/_react.default.createElement(_DownloadIcon.DownloadIcon, {
|
|
53
|
-
height: iconHeight,
|
|
54
|
-
width: iconWidth,
|
|
55
|
-
color: activeState ? activeColor : color
|
|
56
|
-
});
|
|
57
|
-
case 'document':
|
|
58
|
-
return /*#__PURE__*/_react.default.createElement(_DocumentIcon.DocumentIcon, {
|
|
59
|
-
height: iconHeight,
|
|
60
|
-
width: iconWidth,
|
|
61
|
-
color: activeState ? activeColor : color
|
|
62
|
-
});
|
|
63
|
-
case 'fly':
|
|
64
|
-
return /*#__PURE__*/_react.default.createElement(_FlyIcon.FlyIcon, {
|
|
65
|
-
height: iconHeight,
|
|
66
|
-
width: iconWidth,
|
|
67
|
-
color: activeState ? activeColor : color
|
|
68
|
-
});
|
|
69
|
-
case 'bell':
|
|
70
|
-
return /*#__PURE__*/_react.default.createElement(_BellIcon.BellIcon, {
|
|
71
|
-
height: iconHeight,
|
|
72
|
-
width: iconWidth,
|
|
73
|
-
color: activeState ? activeColor : color
|
|
74
|
-
});
|
|
75
|
-
case 'maintenance':
|
|
76
|
-
return /*#__PURE__*/_react.default.createElement(_MaintenanceIcon.MaintenanceIcon, {
|
|
77
|
-
height: iconHeight,
|
|
78
|
-
width: iconWidth,
|
|
79
|
-
color: activeState ? activeColor : color
|
|
80
|
-
});
|
|
81
|
-
case 'exit':
|
|
82
|
-
return /*#__PURE__*/_react.default.createElement(_ExitIcon.ExitIcon, {
|
|
83
|
-
height: iconHeight,
|
|
84
|
-
width: iconWidth,
|
|
85
|
-
color: activeState ? activeColor : color
|
|
86
|
-
});
|
|
87
|
-
case 'eye':
|
|
88
|
-
return /*#__PURE__*/_react.default.createElement(_EyeIcon.EyeIcon, {
|
|
89
|
-
height: iconHeight,
|
|
90
|
-
width: iconWidth,
|
|
91
|
-
color: activeState ? activeColor : color
|
|
92
|
-
});
|
|
93
|
-
default:
|
|
94
|
-
return /*#__PURE__*/_react.default.createElement(_EyeIcon.EyeIcon, {
|
|
95
|
-
height: iconHeight,
|
|
96
|
-
width: iconWidth,
|
|
97
|
-
color: activeState ? activeColor : color
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
return /*#__PURE__*/_react.default.createElement(_SagIconButton.SagIconButtonWrapper, {
|
|
102
|
-
height: height,
|
|
103
|
-
color: activeState ? activeColor : color,
|
|
104
|
-
disabled: disabled,
|
|
105
|
-
onClick: event => {
|
|
106
|
-
onClickHandler(event);
|
|
107
|
-
}
|
|
108
|
-
}, getIcon(iconName), /*#__PURE__*/_react.default.createElement(_SagIconButton.SpanText, null, buttonText));
|
|
109
|
-
};
|
|
110
|
-
exports.SagIconButton = SagIconButton;
|
|
111
|
-
var _default = exports.default = SagIconButton;
|
|
112
|
-
SagIconButton.defaultProps = {
|
|
113
|
-
iconName: 'filter',
|
|
114
|
-
buttonText: 'Filter',
|
|
115
|
-
height: '40px',
|
|
116
|
-
color: '#212121',
|
|
117
|
-
activeColor: '#229E38',
|
|
118
|
-
iconHeight: 12,
|
|
119
|
-
iconWidth: 12,
|
|
120
|
-
openState: false,
|
|
121
|
-
disabled: false,
|
|
122
|
-
onButtonClick: () => {}
|
|
123
|
-
};
|
|
@@ -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.SagIconButtonWrapper = 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 SagIconButtonWrapper = exports.SagIconButtonWrapper = _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 white-space: nowrap;\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"])));
|
|
@@ -1,27 +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.OptionsIcon = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
const OptionsIcon = _ref => {
|
|
10
|
-
let {
|
|
11
|
-
width = '12',
|
|
12
|
-
height = '12',
|
|
13
|
-
color = '#212121'
|
|
14
|
-
} = _ref;
|
|
15
|
-
return /*#__PURE__*/_react.default.createElement("svg", {
|
|
16
|
-
width: width,
|
|
17
|
-
height: height,
|
|
18
|
-
viewBox: "0 0 12 12",
|
|
19
|
-
fill: "none",
|
|
20
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
21
|
-
}, /*#__PURE__*/_react.default.createElement("path", {
|
|
22
|
-
d: "M0 9.75C0 9.44531 0.234375 9.1875 0.5625 9.1875H1.94531C2.17969 8.4375 2.90625 7.875 3.75 7.875C4.57031 7.875 5.29688 8.4375 5.53125 9.1875H11.4375C11.7422 9.1875 12 9.44531 12 9.75C12 10.0781 11.7422 10.3125 11.4375 10.3125H5.53125C5.29688 11.0859 4.57031 11.625 3.75 11.625C2.90625 11.625 2.17969 11.0859 1.94531 10.3125H0.5625C0.234375 10.3125 0 10.0781 0 9.75ZM3 9.75C3 10.1719 3.32812 10.5 3.75 10.5C4.14844 10.5 4.5 10.1719 4.5 9.75C4.5 9.35156 4.14844 9 3.75 9C3.32812 9 3 9.35156 3 9.75ZM7.5 6C7.5 6.42188 7.82812 6.75 8.25 6.75C8.64844 6.75 9 6.42188 9 6C9 5.60156 8.64844 5.25 8.25 5.25C7.82812 5.25 7.5 5.60156 7.5 6ZM8.25 4.125C9.07031 4.125 9.79688 4.6875 10.0312 5.4375H11.4375C11.7422 5.4375 12 5.69531 12 6C12 6.32812 11.7422 6.5625 11.4375 6.5625H10.0312C9.79688 7.33594 9.07031 7.875 8.25 7.875C7.40625 7.875 6.67969 7.33594 6.44531 6.5625H0.5625C0.234375 6.5625 0 6.32812 0 6C0 5.69531 0.234375 5.4375 0.5625 5.4375H6.44531C6.67969 4.6875 7.40625 4.125 8.25 4.125ZM4.5 3C4.89844 3 5.25 2.67188 5.25 2.25C5.25 1.85156 4.89844 1.5 4.5 1.5C4.07812 1.5 3.75 1.85156 3.75 2.25C3.75 2.67188 4.07812 3 4.5 3ZM6.28125 1.6875H11.4375C11.7422 1.6875 12 1.94531 12 2.25C12 2.57812 11.7422 2.8125 11.4375 2.8125H6.28125C6.04688 3.58594 5.32031 4.125 4.5 4.125C3.65625 4.125 2.92969 3.58594 2.69531 2.8125H0.5625C0.234375 2.8125 0 2.57812 0 2.25C0 1.94531 0.234375 1.6875 0.5625 1.6875H2.69531C2.92969 0.9375 3.65625 0.375 4.5 0.375C5.32031 0.375 6.04688 0.9375 6.28125 1.6875Z",
|
|
23
|
-
fill: color
|
|
24
|
-
}));
|
|
25
|
-
};
|
|
26
|
-
exports.OptionsIcon = OptionsIcon;
|
|
27
|
-
var _default = exports.default = OptionsIcon;
|