sag_components 1.0.370 → 1.0.372

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.
Files changed (96) hide show
  1. package/.history/.env_20231001120549 +0 -0
  2. package/.history/.env_20231001120613 +1 -0
  3. package/.history/.env_20231003143620 +1 -0
  4. package/.history/.eslintrc_20230928112617.js +26 -0
  5. package/.history/.eslintrc_20230928130534.js +27 -0
  6. package/.history/.eslintrc_20230928133400.js +28 -0
  7. package/.history/.eslintrc_20230928133404.js +28 -0
  8. package/.history/.eslintrc_20230928133416.js +28 -0
  9. package/.history/.eslintrc_20230928133419.js +28 -0
  10. package/.history/.eslintrc_20230928133432.js +28 -0
  11. package/.history/.eslintrc_20230928133439.js +28 -0
  12. package/.history/.eslintrc_20230928133458.js +29 -0
  13. package/.history/.eslintrc_20230928133500.js +28 -0
  14. package/.history/.eslintrc_20230928134009.js +28 -0
  15. package/.history/.eslintrc_20230928135318.js +34 -0
  16. package/.history/.eslintrc_20230928135321.js +34 -0
  17. package/.history/.eslintrc_20230928135323.js +34 -0
  18. package/.history/.eslintrc_20230928135332.js +34 -0
  19. package/.history/.eslintrc_20230928135333.js +34 -0
  20. package/.history/.eslintrc_20230928135352.js +29 -0
  21. package/.history/.eslintrc_20230928135353.js +29 -0
  22. package/.history/.eslintrc_20230928135355.js +29 -0
  23. package/.history/.eslintrc_20230928135408.js +29 -0
  24. package/.history/.eslintrc_20230928135538.js +30 -0
  25. package/.history/.eslintrc_20230928135539.js +30 -0
  26. package/.history/.eslintrc_20230928135543.js +30 -0
  27. package/.history/.gitignore_20230921093332 +119 -0
  28. package/.history/.gitignore_20230921111638 +120 -0
  29. package/.history/.gitignore_20230921111650 +120 -0
  30. package/.history/.gitignore_20230921111810 +121 -0
  31. package/.history/package-lock_20231114111138.json +47810 -0
  32. package/.history/package-lock_20231114111158.json +47802 -0
  33. package/.history/package_20231029152422.json +82 -0
  34. package/.history/package_20231029153420.json +82 -0
  35. package/.history/package_20231029154416.json +82 -0
  36. package/.history/package_20231030094127.json +82 -0
  37. package/.history/package_20231030114707.json +82 -0
  38. package/.history/package_20231030130704.json +82 -0
  39. package/.history/package_20231030132422.json +82 -0
  40. package/.history/package_20231030134051.json +82 -0
  41. package/.history/package_20231030142913.json +82 -0
  42. package/.history/package_20231030143556.json +82 -0
  43. package/.history/package_20231030144210.json +82 -0
  44. package/.history/package_20231101113942.json +82 -0
  45. package/.history/package_20231101114544.json +82 -0
  46. package/.history/package_20231101151518.json +82 -0
  47. package/.history/package_20231101154501.json +82 -0
  48. package/.history/package_20231101155811.json +82 -0
  49. package/.history/package_20231101160235.json +82 -0
  50. package/.history/package_20231101160406.json +82 -0
  51. package/.history/package_20231101161325.json +82 -0
  52. package/.history/package_20231101161333.json +82 -0
  53. package/.history/package_20231102123623.json +82 -0
  54. package/.history/package_20231102125741.json +82 -0
  55. package/.history/package_20231102130857.json +82 -0
  56. package/.history/package_20231102132227.json +82 -0
  57. package/.history/package_20231102142340.json +82 -0
  58. package/.history/package_20231102143256.json +82 -0
  59. package/.history/package_20231105153539.json +82 -0
  60. package/.history/package_20231105154332.json +82 -0
  61. package/.history/package_20231105171201.json +82 -0
  62. package/.history/package_20231106123849.json +82 -0
  63. package/.history/package_20231107170638.json +82 -0
  64. package/.history/package_20231109103647.json +82 -0
  65. package/.history/package_20231109103911.json +82 -0
  66. package/.history/package_20231109105426.json +82 -0
  67. package/.history/package_20231109132014.json +82 -0
  68. package/.history/package_20231109132115.json +82 -0
  69. package/.history/package_20231114100517.json +82 -0
  70. package/.history/package_20231114100859.json +82 -0
  71. package/.history/package_20231114101553.json +82 -0
  72. package/.history/package_20231114102545.json +82 -0
  73. package/.history/package_20231114111208.json +83 -0
  74. package/.history/package_20231114111515.json +83 -0
  75. package/.history/package_20231114112931.json +83 -0
  76. package/.history/package_20231114113014.json +83 -0
  77. package/.history/package_20231114113155.json +83 -0
  78. package/.history/package_20231114124318.json +83 -0
  79. package/.history/package_20231114125107.json +83 -0
  80. package/.history/package_20231114125510.json +83 -0
  81. package/.history/package_20231114132634.json +83 -0
  82. package/.history/package_20231116165815.json +83 -0
  83. package/.history/package_20231116165916.json +83 -0
  84. package/.history/package_20231119113637.json +83 -0
  85. package/.history/package_20231120100907.json +83 -0
  86. package/.history/package_20231121151523.json +77 -0
  87. package/.history/package_20231121155513.json +77 -0
  88. package/.history/package_20231121162434.json +77 -0
  89. package/.history/package_20231122100718.json +77 -0
  90. package/.history/package_20231128125149.json +82 -0
  91. package/.history/package_20231128125208.json +82 -0
  92. package/dist/stories/components/Dropdown.js +83 -126
  93. package/dist/stories/components/ReportTable.js +42 -2
  94. package/dist/stories/components/ReportTable.style.js +11 -8
  95. package/dist/stories/components/TotalDoughnutChart.js +1 -1
  96. package/package.json +1 -1
@@ -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
+ }
@@ -33,7 +33,7 @@ var checkedIcon = /*#__PURE__*/_react.default.createElement(_CheckBox.default, {
33
33
  */
34
34
  var Dropdown = exports.Dropdown = function Dropdown(_ref) {
35
35
  var _ref$width = _ref.width,
36
- width = _ref$width === void 0 ? "100%" : _ref$width,
36
+ width = _ref$width === void 0 ? '100%' : _ref$width,
37
37
  size = _ref.size,
38
38
  text = _ref.text,
39
39
  shape = _ref.shape,
@@ -46,24 +46,18 @@ var Dropdown = exports.Dropdown = function Dropdown(_ref) {
46
46
  onChange = _ref.onChange,
47
47
  onInputChange = _ref.onInputChange,
48
48
  _ref$labelColor = _ref.labelColor,
49
- labelColor = _ref$labelColor === void 0 ? "#1B30AA" : _ref$labelColor,
49
+ labelColor = _ref$labelColor === void 0 ? '#1B30AA' : _ref$labelColor,
50
50
  required = _ref.required,
51
51
  inputRef = _ref.inputRef,
52
52
  defaultValue = _ref.defaultValue,
53
53
  _ref$allowedInput = _ref.allowedInput,
54
- allowedInput = _ref$allowedInput === void 0 ? "all" : _ref$allowedInput,
54
+ allowedInput = _ref$allowedInput === void 0 ? 'all' : _ref$allowedInput,
55
55
  _ref$reset = _ref.reset,
56
56
  reset = _ref$reset === void 0 ? false : _ref$reset,
57
57
  _ref$disableClearable = _ref.disableClearable,
58
58
  disableClearable = _ref$disableClearable === void 0 ? false : _ref$disableClearable,
59
59
  _ref$disabled = _ref.disabled,
60
- disabled = _ref$disabled === void 0 ? false : _ref$disabled,
61
- _ref$dropdownListfont = _ref.dropdownListfontSize,
62
- dropdownListfontSize = _ref$dropdownListfont === void 0 ? "14px" : _ref$dropdownListfont,
63
- _ref$inputLabelFontSi = _ref.inputLabelFontSize,
64
- inputLabelFontSize = _ref$inputLabelFontSi === void 0 ? "16px" : _ref$inputLabelFontSi,
65
- _ref$placeHolderFontS = _ref.placeHolderFontSize,
66
- placeHolderFontSize = _ref$placeHolderFontS === void 0 ? "14px" : _ref$placeHolderFontS;
60
+ disabled = _ref$disabled === void 0 ? false : _ref$disabled;
67
61
  /**
68
62
  * SAG Dropdown
69
63
  */
@@ -95,114 +89,60 @@ var Dropdown = exports.Dropdown = function Dropdown(_ref) {
95
89
  MuiFormLabel: {
96
90
  styleOverrides: {
97
91
  asterisk: {
98
- color: "#db3131"
92
+ color: '#db3131'
99
93
  }
100
94
  }
101
95
  }
102
96
  }
103
97
  });
104
98
 
105
- // Single Text Style
106
- var getTextFieldStyleSingle = function getTextFieldStyleSingle() {
107
- if (shape === "round") {
99
+ // defines shape: squire or round
100
+ var getTextFieldStyle = function getTextFieldStyle() {
101
+ if (shape === 'round') {
108
102
  // round
109
103
  return {
110
- "& .MuiOutlinedInput-root": {
111
- borderRadius: "12px",
104
+ '& .MuiOutlinedInput-root': {
105
+ borderRadius: '12px',
112
106
  legend: {
113
- marginLeft: "10px"
107
+ marginLeft: '10px'
114
108
  }
115
109
  },
116
- "& .MuiAutocomplete-inputRoot": {
117
- paddingLeft: "10px !important",
118
- borderRadius: "12px",
110
+ '& .MuiAutocomplete-inputRoot': {
111
+ paddingLeft: '10px !important',
112
+ borderRadius: '12px',
119
113
  // This matches the specificity of the default styles at https://github.com/mui-org/material-ui/blob/v4.11.3/packages/material-ui-lab/src/Autocomplete/Autocomplete.js#L90
120
114
  '&[class*="MuiOutlinedInput-root"] .MuiAutocomplete-input:first-of-type': {
121
115
  // Default left padding is 6px
122
- paddingLeft: "10px"
116
+ paddingLeft: '10px'
123
117
  },
124
- "& .MuiOutlinedInput-notchedOutline": {
125
- borderColor: "#E7E7E7"
118
+ '& .MuiOutlinedInput-notchedOutline': {
119
+ borderColor: '#E7E7E7'
126
120
  },
127
- "&:hover .MuiOutlinedInput-notchedOutline": {
128
- borderColor: disabled ? "#E7E7E7" : labelColor
121
+ '&:hover .MuiOutlinedInput-notchedOutline': {
122
+ borderColor: disabled ? '#E7E7E7' : labelColor
129
123
  },
130
- "&.Mui-focused .MuiOutlinedInput-notchedOutline": {
131
- borderColor: disabled ? "#E7E7E7" : labelColor
124
+ '&.Mui-focused .MuiOutlinedInput-notchedOutline': {
125
+ borderColor: disabled ? '#E7E7E7' : labelColor
132
126
  }
133
127
  },
134
- "& .MuiInputLabel-outlined:not(.MuiInputLabel-shrink)": {
128
+ '& .MuiInputLabel-outlined:not(.MuiInputLabel-shrink)': {
135
129
  // Default transform is "translate(14px, 20px) scale(1)""
136
130
  // This lines up the label with the initial cursor position in the input
137
131
  // after changing its padding-left.
138
- transform: "translate(14px, 18px) scale(1);",
139
- fontSize: "14px",
140
- color: disabled ? "#E7E7E7" : currentInputValue && currentInputValue.length > 0 ? "#212121" : "#757575"
132
+ transform: 'translate(14px, 18px) scale(1);',
133
+ fontSize: '14px',
134
+ color: disabled ? '#E7E7E7' : currentInputValue && currentInputValue.length > 0 ? '#212121' : '#757575'
141
135
  },
142
- "& .MuiInputLabel-outlined": {
143
- paddingLeft: "10px",
144
- color: disabled ? "#E7E7E7" : labelColor,
145
- fontSize: "18px"
136
+ '& .MuiInputLabel-outlined': {
137
+ paddingLeft: '10px',
138
+ color: disabled ? '#E7E7E7' : labelColor,
139
+ fontSize: '18px'
146
140
  },
147
- "& .MuiInputLabel-shrink": {
148
- marginLeft: "1px",
149
- paddingLeft: "4px",
150
- paddingRight: "6px",
151
- background: "white"
152
- }
153
- };
154
- }
155
- // square
156
- return null;
157
- };
158
-
159
- // ---------------------------- Multi Text Style -----------------------------------------
160
- var getTextFieldStyleMulti = function getTextFieldStyleMulti() {
161
- if (shape === "round") {
162
- // round
163
- return {
164
- "& .MuiOutlinedInput-root": {
165
- borderRadius: "12px",
166
- legend: {
167
- marginLeft: "10px"
168
- }
169
- },
170
- "& .MuiAutocomplete-inputRoot": {
171
- paddingLeft: "10px !important",
172
- borderRadius: "12px",
173
- // This matches the specificity of the default styles at https://github.com/mui-org/material-ui/blob/v4.11.3/packages/material-ui-lab/src/Autocomplete/Autocomplete.js#L90
174
- '&[class*="MuiOutlinedInput-root"] .MuiAutocomplete-input:first-of-type': {
175
- // Default left padding is 6px
176
- paddingLeft: "10px"
177
- },
178
- "& .MuiOutlinedInput-notchedOutline": {
179
- borderColor: "#E7E7E7"
180
- },
181
- "&:hover .MuiOutlinedInput-notchedOutline": {
182
- borderColor: disabled ? "#E7E7E7" : labelColor
183
- },
184
- "&.Mui-focused .MuiOutlinedInput-notchedOutline": {
185
- borderColor: disabled ? "#E7E7E7" : labelColor
186
- }
187
- },
188
- "& .MuiInputLabel-outlined:not(.MuiInputLabel-shrink)": {
189
- // Default transform is "translate(14px, 20px) scale(1)""
190
- // This lines up the label with the initial cursor position in the input
191
- // after changing its padding-left.
192
- transform: "translate(14px, 18px) scale(1);",
193
- fontSize: "14px",
194
- color: disabled ? "#E7E7E7" : currentInputValue && currentInputValue.length > 0 ? "#212121" : "#757575"
195
- },
196
- "& .MuiInputLabel-outlined": {
197
- paddingLeft: "10px",
198
- color: disabled ? "#E7E7E7" : labelColor,
199
- fontSize: "18px"
200
- },
201
- "& .MuiInputLabel-shrink": {
202
- marginLeft: "1px",
203
- paddingLeft: "4px",
204
- paddingRight: "6px",
205
- background: "white"
141
+ '& .MuiInputLabel-shrink': {
142
+ marginLeft: '1px',
143
+ paddingLeft: '4px',
144
+ paddingRight: '6px',
145
+ background: 'white'
206
146
  }
207
147
  };
208
148
  }
@@ -240,23 +180,21 @@ var Dropdown = exports.Dropdown = function Dropdown(_ref) {
240
180
  var ALPHA_REGEX = /^[a-zA-Z]+$/;
241
181
  var ALPHA_NUMERIC_REGEX = /^[a-zA-Z0-9-]+$/;
242
182
  switch (allowedInput) {
243
- case "all":
183
+ case 'all':
244
184
  return true;
245
- case "alpha":
185
+ case 'alpha':
246
186
  if (ALPHA_REGEX.test(inputChar)) return true;
247
187
  return false;
248
- case "numeric":
188
+ case 'numeric':
249
189
  if (NUMERIC_REGEX.test(inputChar)) return true;
250
190
  return false;
251
- case "alphaNumeric":
191
+ case 'alphaNumeric':
252
192
  if (ALPHA_NUMERIC_REGEX.test(inputChar)) return true;
253
193
  return false;
254
194
  default:
255
195
  return true;
256
196
  }
257
197
  };
258
-
259
- // --------------------------------------- DROPDOWN SINGLE --------------------------------
260
198
  var getAutocompleteSingle = function getAutocompleteSingle() {
261
199
  return /*#__PURE__*/_react.default.createElement(_styles.ThemeProvider, {
262
200
  theme: theme
@@ -293,32 +231,36 @@ var Dropdown = exports.Dropdown = function Dropdown(_ref) {
293
231
  label: text,
294
232
  inputRef: inputRef || null,
295
233
  size: size,
296
- sx: getTextFieldStyleSingle(),
234
+ sx: getTextFieldStyle(),
297
235
  placeholder: placeHolder,
298
236
  InputProps: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, params.InputProps), {}, {
299
237
  style: {
300
- fontSize: placeHolderFontSize,
301
- fontFamily: "Poppins"
238
+ fontSize: '14px',
239
+ fontFamily: 'Poppins'
302
240
  },
303
241
  startAdornment: showSearchIcon ? /*#__PURE__*/_react.default.createElement(_InputAdornment.default, {
304
242
  position: "start"
305
243
  }, /*#__PURE__*/_react.default.createElement(_Search.default, {
306
244
  fontSize: "medium"
307
245
  })) : null
308
- })
246
+ }),
247
+ InputLabelProps: {
248
+ style: {
249
+ // color: labelColor,
250
+ // fontSize: "14px",
251
+ fontFamily: 'Poppins'
252
+ }
253
+ }
309
254
  }));
310
255
  },
311
256
  ListboxProps: {
312
257
  style: {
313
- fontSize: dropdownListfontSize,
314
- //default: 14px
315
- fontFamily: "Poppins"
258
+ fontSize: '14px',
259
+ fontFamily: 'Poppins'
316
260
  }
317
261
  }
318
262
  }));
319
263
  };
320
-
321
- // --------------------------------------- DROPDOWN MULTI --------------------------------
322
264
  var getAutocompleteMulti = function getAutocompleteMulti() {
323
265
  return /*#__PURE__*/_react.default.createElement(_styles.ThemeProvider, {
324
266
  theme: theme
@@ -353,6 +295,11 @@ var Dropdown = exports.Dropdown = function Dropdown(_ref) {
353
295
  return /*#__PURE__*/_react.default.createElement("li", props, /*#__PURE__*/_react.default.createElement(_Checkbox.default, {
354
296
  icon: icon,
355
297
  checkedIcon: checkedIcon,
298
+ style: {
299
+ marginRight: 8,
300
+ fontSize: '14px',
301
+ fontFamily: 'Poppins'
302
+ },
356
303
  checked: selected
357
304
  }), option.label);
358
305
  },
@@ -360,7 +307,7 @@ var Dropdown = exports.Dropdown = function Dropdown(_ref) {
360
307
  return showSearchIcon && (!currentOption || currentOption && currentOption.length === 0) ? /*#__PURE__*/_react.default.createElement(_TextField.default, Object.assign({}, params, {
361
308
  label: text,
362
309
  size: size,
363
- sx: getTextFieldStyleMulti(),
310
+ sx: getTextFieldStyle(),
364
311
  placeholder: placeHolder,
365
312
  onKeyDown: function onKeyDown(event) {
366
313
  if (!isInputAllowed(event.key)) {
@@ -371,41 +318,51 @@ var Dropdown = exports.Dropdown = function Dropdown(_ref) {
371
318
  required: required,
372
319
  InputProps: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, params.InputProps), {}, {
373
320
  style: {
374
- fontSize: placeHolderFontSize,
375
- fontFamily: "Poppins"
321
+ fontSize: '14px',
322
+ fontFamily: 'Poppins'
323
+ },
324
+ startAdornment: /*#__PURE__*/_react.default.createElement(_InputAdornment.default, {
325
+ position: "start"
326
+ }, /*#__PURE__*/_react.default.createElement(_Search.default, {
327
+ fontSize: "medium"
328
+ }))
329
+ }),
330
+ InputLabelProps: {
331
+ style: {
332
+ // color: labelColor,
333
+ fontSize: '16px',
334
+ fontFamily: 'Poppins'
376
335
  }
377
- })
336
+ }
378
337
  })) : /*#__PURE__*/_react.default.createElement(_TextField.default, Object.assign({}, params, {
379
338
  label: text,
380
339
  size: size,
381
- sx: getTextFieldStyleMulti(),
340
+ sx: getTextFieldStyle(),
382
341
  placeholder: placeHolder,
383
- InputProps: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, params.InputProps), {}, {
384
- style: {
385
- fontSize: placeHolderFontSize,
386
- fontFamily: "Poppins"
387
- }
388
- }),
389
342
  onKeyDown: function onKeyDown(event) {
390
343
  if (!isInputAllowed(event.key)) {
391
344
  event.preventDefault();
392
345
  }
393
346
  },
394
347
  inputRef: inputRef || null,
395
- required: required
348
+ required: required,
349
+ InputLabelProps: {
350
+ style: {
351
+ // color: labelColor,
352
+ fontSize: '16px',
353
+ fontFamily: 'Poppins'
354
+ }
355
+ }
396
356
  }));
397
357
  },
398
358
  ListboxProps: {
399
359
  style: {
400
- fontSize: dropdownListfontSize,
401
- //default: 14px
402
- fontFamily: "Poppins"
360
+ fontSize: '14px',
361
+ fontFamily: 'Poppins'
403
362
  }
404
363
  }
405
364
  }));
406
365
  };
407
-
408
- // --------------------------------- MAIN -------------------------------------
409
366
  return /*#__PURE__*/_react.default.createElement(_Dropdown.DropdownContainer, {
410
367
  width: width
411
368
  }, multiSelect ? getAutocompleteMulti() : getAutocompleteSingle());
@@ -12,11 +12,12 @@ var ReportTable = exports.ReportTable = function ReportTable(props) {
12
12
  var tableData = props.tableData,
13
13
  maxColumnsNumber = props.maxColumnsNumber;
14
14
  var columnsNumber = tableData.columnsHeadings.length;
15
+ var tableWidthSize = 100 / maxColumnsNumber * columnsNumber;
15
16
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_ReportTable.TableWrapper, {
16
17
  maxColumnsNumber: maxColumnsNumber,
17
18
  columnsNumber: columnsNumber
18
19
  }, /*#__PURE__*/_react.default.createElement(_ReportTable.Table, {
19
- tableWidthSize: 100 / maxColumnsNumber * columnsNumber
20
+ tableWidthSize: tableWidthSize
20
21
  }, /*#__PURE__*/_react.default.createElement("thead", null, /*#__PURE__*/_react.default.createElement("tr", null, tableData.columnsHeadings.map(function (headline, index) {
21
22
  return /*#__PURE__*/_react.default.createElement(_ReportTable.Th, {
22
23
  key: index
@@ -33,4 +34,43 @@ var ReportTable = exports.ReportTable = function ReportTable(props) {
33
34
  color: "#1B30AA"
34
35
  }), /*#__PURE__*/_react.default.createElement(_ReportTable.InfoText, null, "Download table to get the full data")));
35
36
  };
36
- var _default = exports.default = ReportTable;
37
+ var _default = exports.default = ReportTable;
38
+ ReportTable.defaultProps = {
39
+ tableData: {
40
+ columnsHeadings: [{
41
+ label: 'Event Name',
42
+ key: 'eventName'
43
+ }, {
44
+ label: 'Retailer',
45
+ key: 'retailer'
46
+ }, {
47
+ label: 'Total Cost',
48
+ key: 'totalCost'
49
+ }, {
50
+ label: 'Inc. Baseline Sales',
51
+ key: 'incBaselineSales'
52
+ }],
53
+ rowsValues: [{
54
+ retailer: 'Large Selling Event P2 2023',
55
+ eventDescription: 'Food',
56
+ totalCost: 'Food Lion',
57
+ incBaselineSales: '50K'
58
+ }, {
59
+ retailer: 'Large Selling Event P2 2023',
60
+ eventDescription: 'Food',
61
+ totalCost: '$500K',
62
+ incBaselineSales: '50K'
63
+ }, {
64
+ retailer: 'Large Selling Event P2 2023',
65
+ eventDescription: 'Food',
66
+ totalCost: '$500K',
67
+ incBaselineSales: '50K'
68
+ }, {
69
+ retailer: 'Large Selling Event P2 2023',
70
+ eventDescription: 'Food',
71
+ totalCost: '$500K',
72
+ incBaselineSales: '50K'
73
+ }]
74
+ },
75
+ maxColumnsNumber: 3
76
+ };