@apexcura/ui-components 0.0.12-Beta33 → 0.0.12-Beta34
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.
- package/dist/index.js +0 -4
- package/dist/index.mjs +3 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -192,9 +192,6 @@ var RadioElement = (props) => {
|
|
|
192
192
|
if (props.optionType === "button") {
|
|
193
193
|
optionType = props.optionType;
|
|
194
194
|
}
|
|
195
|
-
(0, import_react6.useEffect)(() => {
|
|
196
|
-
setIsDisabled(props.disabled);
|
|
197
|
-
}, [props.disabled]);
|
|
198
195
|
const handleChange = (e) => {
|
|
199
196
|
const selectedVal = e.target.value;
|
|
200
197
|
const selectedOptions = [{ id: selectedVal, value: selectedVal }];
|
|
@@ -220,7 +217,6 @@ var RadioElement = (props) => {
|
|
|
220
217
|
{
|
|
221
218
|
key: option.value,
|
|
222
219
|
value: option.value,
|
|
223
|
-
disabled: isDisabled && selectedValue !== option.value,
|
|
224
220
|
className: getButtonStyle(option),
|
|
225
221
|
style: { pointerEvents: isDisabled && selectedValue !== option.value ? "none" : "auto" }
|
|
226
222
|
},
|
package/dist/index.mjs
CHANGED
|
@@ -136,7 +136,7 @@ var SelectElement = (props) => {
|
|
|
136
136
|
};
|
|
137
137
|
|
|
138
138
|
// src/Components/RadioElement.tsx
|
|
139
|
-
import React6, { useState as useState2
|
|
139
|
+
import React6, { useState as useState2 } from "react";
|
|
140
140
|
import { Radio } from "antd";
|
|
141
141
|
var RadioElement = (props) => {
|
|
142
142
|
const [isDisabled, setIsDisabled] = useState2(props.disabled);
|
|
@@ -145,9 +145,6 @@ var RadioElement = (props) => {
|
|
|
145
145
|
if (props.optionType === "button") {
|
|
146
146
|
optionType = props.optionType;
|
|
147
147
|
}
|
|
148
|
-
useEffect(() => {
|
|
149
|
-
setIsDisabled(props.disabled);
|
|
150
|
-
}, [props.disabled]);
|
|
151
148
|
const handleChange = (e) => {
|
|
152
149
|
const selectedVal = e.target.value;
|
|
153
150
|
const selectedOptions = [{ id: selectedVal, value: selectedVal }];
|
|
@@ -173,7 +170,6 @@ var RadioElement = (props) => {
|
|
|
173
170
|
{
|
|
174
171
|
key: option.value,
|
|
175
172
|
value: option.value,
|
|
176
|
-
disabled: isDisabled && selectedValue !== option.value,
|
|
177
173
|
className: getButtonStyle(option),
|
|
178
174
|
style: { pointerEvents: isDisabled && selectedValue !== option.value ? "none" : "auto" }
|
|
179
175
|
},
|
|
@@ -348,7 +344,7 @@ var ButtonElement = (props) => {
|
|
|
348
344
|
};
|
|
349
345
|
|
|
350
346
|
// src/Components/AddMoreTable.tsx
|
|
351
|
-
import React12, { useEffect
|
|
347
|
+
import React12, { useEffect, useState as useState4 } from "react";
|
|
352
348
|
import { Table, Button as Button3 } from "antd";
|
|
353
349
|
import { PlusOutlined, DeleteOutlined } from "@ant-design/icons";
|
|
354
350
|
var AddMoreTable = (props) => {
|
|
@@ -417,7 +413,7 @@ var AddMoreTable = (props) => {
|
|
|
417
413
|
});
|
|
418
414
|
});
|
|
419
415
|
};
|
|
420
|
-
|
|
416
|
+
useEffect(() => {
|
|
421
417
|
console.log(rows);
|
|
422
418
|
}, [rows]);
|
|
423
419
|
const renderInputElement = (element, value) => {
|