sag_components 1.0.472 → 1.0.474

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.
@@ -11,6 +11,7 @@ const SagInput = props => {
11
11
  const {
12
12
  labelText,
13
13
  inputType,
14
+ labelColor,
14
15
  isReauired,
15
16
  onTyping,
16
17
  width,
@@ -28,7 +29,9 @@ const SagInput = props => {
28
29
  placeholder: labelText,
29
30
  width: width,
30
31
  borderRadius: borderRadius
31
- }), /*#__PURE__*/_react.default.createElement(_SagInput.Label, null, labelText, isReauired && /*#__PURE__*/_react.default.createElement("span", {
32
+ }), /*#__PURE__*/_react.default.createElement(_SagInput.Label, {
33
+ color: labelColor
34
+ }, labelText, isReauired && /*#__PURE__*/_react.default.createElement("span", {
32
35
  style: {
33
36
  color: '#D23630'
34
37
  }
@@ -38,6 +41,7 @@ var _default = exports.default = SagInput;
38
41
  SagInput.defaultProps = {
39
42
  labelText: '',
40
43
  inputType: 'text',
44
+ labelColor: '#1B30AA',
41
45
  isReauired: true,
42
46
  width: '100%',
43
47
  borderRadius: '12px',
@@ -10,4 +10,4 @@ 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
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);
13
- const Label = exports.Label = _styledComponents.default.label(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n top: -8px;\n left: 10px;\n color: #1B30AA;\n pointer-events: none;\n font-size: 14px;\n padding: 0 2px;\n background: white;\n /* transition: all 0.3s ease; */\n"])));
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.472",
3
+ "version": "1.0.474",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {