sag_components 1.0.474 → 1.0.475

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.
@@ -169,11 +169,11 @@ const PerformanceAnalyticsOneColumn = props => {
169
169
  content: CustomTooltipBarChart
170
170
  }), /*#__PURE__*/_react.default.createElement(_recharts.Bar, {
171
171
  dataKey: "existingShoppersValue",
172
- fill: colorBarchart1,
172
+ fill: colorBarchart2,
173
173
  stackId: "a"
174
174
  }), /*#__PURE__*/_react.default.createElement(_recharts.Bar, {
175
175
  dataKey: "newShoppersValue",
176
- fill: colorBarchart2,
176
+ fill: colorBarchart1,
177
177
  stackId: "a",
178
178
  radius: [5, 5, 0, 0]
179
179
  }, /*#__PURE__*/_react.default.createElement(_recharts.LabelList, {
@@ -11,6 +11,7 @@ const SagInput = props => {
11
11
  const {
12
12
  labelText,
13
13
  inputType,
14
+ showLabel,
14
15
  labelColor,
15
16
  isReauired,
16
17
  onTyping,
@@ -29,7 +30,7 @@ const SagInput = props => {
29
30
  placeholder: labelText,
30
31
  width: width,
31
32
  borderRadius: borderRadius
32
- }), /*#__PURE__*/_react.default.createElement(_SagInput.Label, {
33
+ }), showLabel && /*#__PURE__*/_react.default.createElement(_SagInput.Label, {
33
34
  color: labelColor
34
35
  }, labelText, isReauired && /*#__PURE__*/_react.default.createElement("span", {
35
36
  style: {
@@ -41,6 +42,7 @@ var _default = exports.default = SagInput;
41
42
  SagInput.defaultProps = {
42
43
  labelText: '',
43
44
  inputType: 'text',
45
+ showLabel: true,
44
46
  labelColor: '#1B30AA',
45
47
  isReauired: true,
46
48
  width: '100%',
@@ -9,5 +9,5 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
9
9
  var _styledComponents = _interopRequireDefault(require("styled-components"));
10
10
  var _templateObject, _templateObject2, _templateObject3;
11
11
  const TextFieldContainer = exports.TextFieldContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n"])));
12
- const TextFieldInput = exports.TextFieldInput = _styledComponents.default.input(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n padding: 14px 10px;\n font-size: 14px;\n width: ", ";\n border: 1px solid #ccc;\n border-radius: ", ";\n box-sizing: border-box;\n\n /* &:focus + label,\n &:not(:placeholder-shown) + label {\n top: -8px;\n font-size: 12px;\n color: #007bff;\n background-color: white;\n } */\n"])), props => props.width, props => props.borderRadius);
12
+ const TextFieldInput = exports.TextFieldInput = _styledComponents.default.input(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n padding: 14px 10px;\n font-size: 14px;\n width: ", ";\n border: 1px solid #ccc;\n border-radius: ", ";\n box-sizing: border-box;\n &::placeholder {\n color: #B1B1B1;\n }\n\n /* &:focus + label,\n &:not(:placeholder-shown) + label {\n top: -8px;\n font-size: 12px;\n color: #007bff;\n background-color: white;\n } */\n"])), props => props.width, props => props.borderRadius);
13
13
  const Label = exports.Label = _styledComponents.default.label(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n top: -8px;\n left: 12px;\n color: ", ";\n pointer-events: none;\n font-size: 14px;\n padding: 0 3px;\n background: white;\n /* transition: all 0.3s ease; */\n"])), props => props.color);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.474",
3
+ "version": "1.0.475",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -50,8 +50,8 @@
50
50
  "dependencies": {
51
51
  "@emotion/react": "^11.11.3",
52
52
  "@emotion/styled": "^11.11.0",
53
- "@mui/icons-material": "^5.15.8",
54
- "@mui/material": "^5.15.7",
53
+ "@mui/icons-material": "^5.15.10",
54
+ "@mui/material": "^5.15.10",
55
55
  "@mui/x-date-pickers": "^6.18.6",
56
56
  "classnames": "^2.3.2",
57
57
  "dayjs": "^1.11.10",