contentoh-components-library 21.2.14 → 21.2.15

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.
@@ -40,7 +40,8 @@ var GeneralInput = function GeneralInput(_ref) {
40
40
  _ref$optionList = _ref.optionList,
41
41
  optionList = _ref$optionList === void 0 ? [] : _ref$optionList,
42
42
  description = _ref.description,
43
- inputOnChange = _ref.inputOnChange;
43
+ inputOnChange = _ref.inputOnChange,
44
+ disabled = _ref.disabled;
44
45
 
45
46
  var _useState = (0, _react.useState)({
46
47
  value: inputValue
@@ -137,6 +138,7 @@ var GeneralInput = function GeneralInput(_ref) {
137
138
  defaultChecked: textValue.value === "true" ? true : false
138
139
  }) : inputType !== "textarea" ? /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
139
140
  type: inputType,
141
+ disabled: disabled,
140
142
  id: inputId,
141
143
  size: inputSize,
142
144
  className: "general-input",
@@ -35,7 +35,8 @@ var TagAndInput = function TagAndInput(_ref) {
35
35
  optionList = _ref.optionList,
36
36
  description = _ref.description,
37
37
  inputOnChange = _ref.inputOnChange,
38
- color = _ref.color;
38
+ color = _ref.color,
39
+ disabled = _ref.disabled;
39
40
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_styles.Container, {
40
41
  inputType: inputType,
41
42
  className: "input-container",
@@ -54,6 +55,7 @@ var TagAndInput = function TagAndInput(_ref) {
54
55
  inputType: inputType,
55
56
  inputValue: value,
56
57
  index: index,
58
+ disabled: disabled,
57
59
  isRequired: isRequired,
58
60
  inputPlaceholder: inputPlaceHolder,
59
61
  updatedDescriptions: updatedDescriptions,
@@ -53,6 +53,7 @@ var InputGroup = function InputGroup(_ref) {
53
53
  var _dataInputs$input, _dataInputs$input2, _dataInputs$input3, _dataInputs$input4, _dataInputs$input5, _dataInputs$input6, _dataInputs$input7, _dataInputs$input8, _dataInputs$input9, _dataInputs$input10, _dataInputs$input11, _dataInputs$input12;
54
54
 
55
55
  return activeSection === "Ficha técnica" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_TagAndInput.TagAndInput, {
56
+ disabled: input === 40001,
56
57
  inputId: (_dataInputs$input3 = dataInputs[input]) === null || _dataInputs$input3 === void 0 ? void 0 : _dataInputs$input3.id,
57
58
  version: version,
58
59
  inputType: inputTypeValue((_dataInputs$input4 = dataInputs[input]) === null || _dataInputs$input4 === void 0 ? void 0 : _dataInputs$input4.type),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentoh-components-library",
3
- "version": "21.2.14",
3
+ "version": "21.2.15",
4
4
  "dependencies": {
5
5
  "@aws-amplify/auth": "^4.5.3",
6
6
  "@aws-amplify/datastore": "^3.11.0",
@@ -24,6 +24,7 @@ export const GeneralInput = ({
24
24
  optionList = [],
25
25
  description,
26
26
  inputOnChange,
27
+ disabled,
27
28
  }) => {
28
29
  const [textValue, setTextValue] = useState({
29
30
  value: inputValue,
@@ -113,6 +114,7 @@ export const GeneralInput = ({
113
114
  ) : inputType !== "textarea" ? (
114
115
  <input
115
116
  type={inputType}
117
+ disabled={disabled}
116
118
  id={inputId}
117
119
  size={inputSize}
118
120
  className="general-input"
@@ -25,6 +25,7 @@ export const TagAndInput = ({
25
25
  description,
26
26
  inputOnChange,
27
27
  color,
28
+ disabled,
28
29
  }) => {
29
30
  return (
30
31
  <Container
@@ -45,6 +46,7 @@ export const TagAndInput = ({
45
46
  inputType={inputType}
46
47
  inputValue={value}
47
48
  index={index}
49
+ disabled={disabled}
48
50
  isRequired={isRequired}
49
51
  inputPlaceholder={inputPlaceHolder}
50
52
  updatedDescriptions={updatedDescriptions}
@@ -49,6 +49,7 @@ export const InputGroup = ({
49
49
  "-" +
50
50
  dataInputs[input]?.id
51
51
  }
52
+ disabled={input === 40001}
52
53
  inputId={dataInputs[input]?.id}
53
54
  version={version}
54
55
  inputType={inputTypeValue(dataInputs[input]?.type)}
@@ -1062,7 +1062,6 @@ export const ProviderProductEdition = ({
1062
1062
  "Finalmente elige la forma de pago que más te guste, procede con el pago y listo.",
1063
1063
  },
1064
1064
  ];
1065
-
1066
1065
  return (
1067
1066
  <Container headerTop={headerTop}>
1068
1067
  <HeaderTop setHeaderTop={setHeaderTop} />