sag_components 1.0.317 → 1.0.318

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.
@@ -0,0 +1,82 @@
1
+ {
2
+ "name": "sag_components",
3
+ "version": "1.0.318",
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/cli": "^7.23.0",
18
+ "@babel/preset-env": "^7.23.3",
19
+ "@babel/preset-react": "^7.23.3",
20
+ "@babel/preset-typescript": "^7.23.3",
21
+ "@storybook/addon-a11y": "^7.4.6",
22
+ "@storybook/addon-essentials": "^7.4.6",
23
+ "@storybook/addon-interactions": "^7.4.6",
24
+ "@storybook/addon-links": "^7.4.6",
25
+ "@storybook/addon-storysource": "^7.4.6",
26
+ "@storybook/blocks": "^7.4.6",
27
+ "@storybook/preset-scss": "^1.0.3",
28
+ "@storybook/react": "^7.4.6",
29
+ "@storybook/react-webpack5": "^7.4.6",
30
+ "@storybook/testing-library": "^0.2.2",
31
+ "cross-env": "^7.0.3",
32
+ "css-loader": "^6.8.1",
33
+ "eslint": "^8.53.0",
34
+ "eslint-config-airbnb": "^19.0.4",
35
+ "eslint-plugin-import": "^2.29.0",
36
+ "eslint-plugin-jsx-a11y": "^6.8.0",
37
+ "eslint-plugin-react": "^7.33.2",
38
+ "eslint-plugin-react-hooks": "^4.6.0",
39
+ "react-dom": "^18.2.0",
40
+ "sass": "^1.69.5",
41
+ "sass-loader": "^13.3.2",
42
+ "style-loader": "^3.3.3"
43
+ },
44
+ "dependencies": {
45
+ "@dnd-kit/core": "^6.0.8",
46
+ "@emotion/react": "^11.11.1",
47
+ "@emotion/styled": "^11.11.0",
48
+ "@fontsource/roboto": "^5.0.8",
49
+ "@fortawesome/fontawesome-svg-core": "^6.4.2",
50
+ "@fortawesome/free-solid-svg-icons": "^6.4.2",
51
+ "@fortawesome/react-fontawesome": "^0.2.0",
52
+ "@mui/icons-material": "^5.14.16",
53
+ "@mui/material": "^5.14.17",
54
+ "@mui/styled-engine-sc": "^5.14.12",
55
+ "@mui/x-date-pickers": "^6.18.1",
56
+ "@storybook/addon-designs": "^7.0.5",
57
+ "babel-plugin-react-css-modules": "^5.2.6",
58
+ "classnames": "^2.3.2",
59
+ "dayjs": "^1.11.10",
60
+ "hoopy": "^0.1.4",
61
+ "prop-types": "^15.8.1",
62
+ "react": "^18.2.0",
63
+ "react-css-modules": "^4.7.11",
64
+ "react-loading-skeleton": "^3.3.1",
65
+ "react-scripts": "5.0.1",
66
+ "recharts": "^2.9.3",
67
+ "storybook": "^7.4.6",
68
+ "styled-components": "^5.3.1"
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
+ }
@@ -9,10 +9,10 @@ exports.default = exports.CheckBoxButton = void 0;
9
9
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
10
10
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
11
11
  var _react = _interopRequireWildcard(require("react"));
12
- var _CheckBoxButtonCheckedIcon = require("./icons/CheckBoxButtonCheckedIcon.jsx");
13
- var _CheckBoxButtonStyle = require("./CheckBoxButton.style.js");
12
+ var _CheckBoxButtonCheckedIcon = require("./icons/CheckBoxButtonCheckedIcon");
13
+ var _CheckBoxButton = require("./CheckBoxButton.style");
14
14
  var _excluded = ["label", "checked", "disabled", "showIconInCheckBoxButtons", "width", "height", "iconSize", "fontSize", "iconColor", "borderColor", "borderRadius", "textColorChecked", "textColorUnchecked", "backgroundColorChecked", "backgroundColorUnchecked", "onClick"];
15
- /*CheckBoxButton*/
15
+ /* CheckBoxButton */
16
16
  var CheckBoxButton = exports.CheckBoxButton = function CheckBoxButton(_ref) {
17
17
  var label = _ref.label,
18
18
  _ref$checked = _ref.checked,
@@ -22,27 +22,27 @@ var CheckBoxButton = exports.CheckBoxButton = function CheckBoxButton(_ref) {
22
22
  _ref$showIconInCheckB = _ref.showIconInCheckBoxButtons,
23
23
  showIconInCheckBoxButtons = _ref$showIconInCheckB === void 0 ? true : _ref$showIconInCheckB,
24
24
  _ref$width = _ref.width,
25
- width = _ref$width === void 0 ? "100px" : _ref$width,
25
+ width = _ref$width === void 0 ? '100px' : _ref$width,
26
26
  _ref$height = _ref.height,
27
- height = _ref$height === void 0 ? "14px" : _ref$height,
27
+ height = _ref$height === void 0 ? '14px' : _ref$height,
28
28
  _ref$iconSize = _ref.iconSize,
29
- iconSize = _ref$iconSize === void 0 ? "12px" : _ref$iconSize,
29
+ iconSize = _ref$iconSize === void 0 ? '12px' : _ref$iconSize,
30
30
  _ref$fontSize = _ref.fontSize,
31
- fontSize = _ref$fontSize === void 0 ? "14px" : _ref$fontSize,
31
+ fontSize = _ref$fontSize === void 0 ? '14px' : _ref$fontSize,
32
32
  _ref$iconColor = _ref.iconColor,
33
- iconColor = _ref$iconColor === void 0 ? "#1B30AA" : _ref$iconColor,
33
+ iconColor = _ref$iconColor === void 0 ? '#1B30AA' : _ref$iconColor,
34
34
  _ref$borderColor = _ref.borderColor,
35
- borderColor = _ref$borderColor === void 0 ? "#1B30AA" : _ref$borderColor,
35
+ borderColor = _ref$borderColor === void 0 ? '#1B30AA' : _ref$borderColor,
36
36
  _ref$borderRadius = _ref.borderRadius,
37
- borderRadius = _ref$borderRadius === void 0 ? "12px" : _ref$borderRadius,
37
+ borderRadius = _ref$borderRadius === void 0 ? '12px' : _ref$borderRadius,
38
38
  _ref$textColorChecked = _ref.textColorChecked,
39
- textColorChecked = _ref$textColorChecked === void 0 ? "#212121" : _ref$textColorChecked,
39
+ textColorChecked = _ref$textColorChecked === void 0 ? '#212121' : _ref$textColorChecked,
40
40
  _ref$textColorUncheck = _ref.textColorUnchecked,
41
- textColorUnchecked = _ref$textColorUncheck === void 0 ? "#212121" : _ref$textColorUncheck,
41
+ textColorUnchecked = _ref$textColorUncheck === void 0 ? '#212121' : _ref$textColorUncheck,
42
42
  _ref$backgroundColorC = _ref.backgroundColorChecked,
43
- backgroundColorChecked = _ref$backgroundColorC === void 0 ? "#E9F1FF" : _ref$backgroundColorC,
43
+ backgroundColorChecked = _ref$backgroundColorC === void 0 ? '#E9F1FF' : _ref$backgroundColorC,
44
44
  _ref$backgroundColorU = _ref.backgroundColorUnchecked,
45
- backgroundColorUnchecked = _ref$backgroundColorU === void 0 ? "#F2F2F2" : _ref$backgroundColorU,
45
+ backgroundColorUnchecked = _ref$backgroundColorU === void 0 ? '#F2F2F2' : _ref$backgroundColorU,
46
46
  _onClick = _ref.onClick,
47
47
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
48
48
  var _useState = (0, _react.useState)(checked),
@@ -52,12 +52,12 @@ var CheckBoxButton = exports.CheckBoxButton = function CheckBoxButton(_ref) {
52
52
  (0, _react.useEffect)(function () {
53
53
  setCheckedState(checked);
54
54
  }, [checked]);
55
- return /*#__PURE__*/_react.default.createElement(_CheckBoxButtonStyle.ControlsContainer, {
55
+ return /*#__PURE__*/_react.default.createElement(_CheckBoxButton.ControlsContainer, {
56
56
  id: "ControlsContainer",
57
57
  fontSize: fontSize,
58
58
  width: width,
59
59
  height: height
60
- }, /*#__PURE__*/_react.default.createElement(_CheckBoxButtonStyle.Controls, {
60
+ }, /*#__PURE__*/_react.default.createElement(_CheckBoxButton.Controls, {
61
61
  id: "Controls",
62
62
  disabled: disabled,
63
63
  borderRadius: borderRadius,
@@ -72,15 +72,15 @@ var CheckBoxButton = exports.CheckBoxButton = function CheckBoxButton(_ref) {
72
72
  });
73
73
  }
74
74
  }
75
- }, checkedState ? showIconInCheckBoxButtons && /*#__PURE__*/_react.default.createElement(_CheckBoxButtonStyle.CheckBoxButtonIconContainer, {
75
+ }, checkedState ? showIconInCheckBoxButtons && /*#__PURE__*/_react.default.createElement(_CheckBoxButton.CheckBoxButtonIconContainer, {
76
76
  id: "CheckBoxButtonIconContainer"
77
77
  }, /*#__PURE__*/_react.default.createElement(_CheckBoxButtonCheckedIcon.CheckBoxButtonCheckedIcon, {
78
78
  width: iconSize,
79
79
  height: iconSize,
80
- color: disabled ? "#B1B1B1" : iconColor
81
- })) : "", /*#__PURE__*/_react.default.createElement(_CheckBoxButtonStyle.Label, {
80
+ color: disabled ? '#B1B1B1' : iconColor
81
+ })) : '', /*#__PURE__*/_react.default.createElement(_CheckBoxButton.Label, {
82
82
  id: "Label",
83
- textColor: disabled ? "#B1B1B1" : checkedState ? textColorChecked : textColorUnchecked
83
+ textColor: disabled ? '#B1B1B1' : checkedState ? textColorChecked : textColorUnchecked
84
84
  }, label)));
85
85
  };
86
86
  var _default = exports.default = CheckBoxButton;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.317",
3
+ "version": "1.0.318",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {