sag_components 1.0.474 → 1.0.476
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:
|
|
172
|
+
fill: colorBarchart2,
|
|
173
173
|
stackId: "a"
|
|
174
174
|
}), /*#__PURE__*/_react.default.createElement(_recharts.Bar, {
|
|
175
175
|
dataKey: "newShoppersValue",
|
|
176
|
-
fill:
|
|
176
|
+
fill: colorBarchart1,
|
|
177
177
|
stackId: "a",
|
|
178
178
|
radius: [5, 5, 0, 0]
|
|
179
179
|
}, /*#__PURE__*/_react.default.createElement(_recharts.LabelList, {
|
|
@@ -11,8 +11,10 @@ const SagInput = props => {
|
|
|
11
11
|
const {
|
|
12
12
|
labelText,
|
|
13
13
|
inputType,
|
|
14
|
+
showLabel,
|
|
14
15
|
labelColor,
|
|
15
16
|
isReauired,
|
|
17
|
+
placeholder,
|
|
16
18
|
onTyping,
|
|
17
19
|
width,
|
|
18
20
|
borderRadius
|
|
@@ -26,10 +28,10 @@ const SagInput = props => {
|
|
|
26
28
|
type: inputType,
|
|
27
29
|
value: inputValue,
|
|
28
30
|
onChange: handleInputChange,
|
|
29
|
-
placeholder:
|
|
31
|
+
placeholder: placeholder,
|
|
30
32
|
width: width,
|
|
31
33
|
borderRadius: borderRadius
|
|
32
|
-
}), /*#__PURE__*/_react.default.createElement(_SagInput.Label, {
|
|
34
|
+
}), showLabel && /*#__PURE__*/_react.default.createElement(_SagInput.Label, {
|
|
33
35
|
color: labelColor
|
|
34
36
|
}, labelText, isReauired && /*#__PURE__*/_react.default.createElement("span", {
|
|
35
37
|
style: {
|
|
@@ -41,8 +43,10 @@ var _default = exports.default = SagInput;
|
|
|
41
43
|
SagInput.defaultProps = {
|
|
42
44
|
labelText: '',
|
|
43
45
|
inputType: 'text',
|
|
46
|
+
showLabel: true,
|
|
44
47
|
labelColor: '#1B30AA',
|
|
45
48
|
isReauired: true,
|
|
49
|
+
placeholder: 'placeholder',
|
|
46
50
|
width: '100%',
|
|
47
51
|
borderRadius: '12px',
|
|
48
52
|
onTyping: () => {}
|
|
@@ -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.
|
|
3
|
+
"version": "1.0.476",
|
|
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.
|
|
54
|
-
"@mui/material": "^5.15.
|
|
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",
|