@apexcura/ui-components 0.0.12-Beta32 → 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 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 }];
@@ -205,7 +202,7 @@ var RadioElement = (props) => {
205
202
  }
206
203
  };
207
204
  const getButtonStyle = (option) => {
208
- return selectedValue === option.value ? props.selectedClassName : props.className;
205
+ return selectedValue === option.value ? option.selectedClassName : option.className;
209
206
  };
210
207
  return /* @__PURE__ */ import_react6.default.createElement(
211
208
  import_antd6.Radio.Group,
@@ -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, useEffect } from "react";
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 }];
@@ -158,7 +155,7 @@ var RadioElement = (props) => {
158
155
  }
159
156
  };
160
157
  const getButtonStyle = (option) => {
161
- return selectedValue === option.value ? props.selectedClassName : props.className;
158
+ return selectedValue === option.value ? option.selectedClassName : option.className;
162
159
  };
163
160
  return /* @__PURE__ */ React6.createElement(
164
161
  Radio.Group,
@@ -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 as useEffect2, useState as useState4 } from "react";
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
- useEffect2(() => {
416
+ useEffect(() => {
421
417
  console.log(rows);
422
418
  }, [rows]);
423
419
  const renderInputElement = (element, value) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.12-Beta32",
3
+ "version": "0.0.12-Beta34",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",