@apexcura/ui-components 0.0.12-Beta34 → 0.0.12-Beta35

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
@@ -186,7 +186,6 @@ var SelectElement = (props) => {
186
186
  var import_react6 = __toESM(require("react"));
187
187
  var import_antd6 = require("antd");
188
188
  var RadioElement = (props) => {
189
- const [isDisabled, setIsDisabled] = (0, import_react6.useState)(props.disabled);
190
189
  const [selectedValue, setSelectedValue] = (0, import_react6.useState)(props.value);
191
190
  let optionType;
192
191
  if (props.optionType === "button") {
@@ -196,7 +195,6 @@ var RadioElement = (props) => {
196
195
  const selectedVal = e.target.value;
197
196
  const selectedOptions = [{ id: selectedVal, value: selectedVal }];
198
197
  setSelectedValue(selectedVal);
199
- setIsDisabled(true);
200
198
  if (props.onChange) {
201
199
  props.onChange(selectedOptions);
202
200
  }
@@ -204,7 +202,7 @@ var RadioElement = (props) => {
204
202
  const getButtonStyle = (option) => {
205
203
  return selectedValue === option.value ? option.selectedClassName : option.className;
206
204
  };
207
- return /* @__PURE__ */ import_react6.default.createElement(
205
+ return /* @__PURE__ */ import_react6.default.createElement("div", null, /* @__PURE__ */ import_react6.default.createElement("h1", null, "hsjas"), /* @__PURE__ */ import_react6.default.createElement(
208
206
  import_antd6.Radio.Group,
209
207
  {
210
208
  onChange: handleChange,
@@ -217,12 +215,11 @@ var RadioElement = (props) => {
217
215
  {
218
216
  key: option.value,
219
217
  value: option.value,
220
- className: getButtonStyle(option),
221
- style: { pointerEvents: isDisabled && selectedValue !== option.value ? "none" : "auto" }
218
+ className: getButtonStyle(option)
222
219
  },
223
220
  option.label
224
221
  ))
225
- );
222
+ ));
226
223
  };
227
224
 
228
225
  // src/Components/Checkbox.tsx
package/dist/index.mjs CHANGED
@@ -139,7 +139,6 @@ var SelectElement = (props) => {
139
139
  import React6, { useState as useState2 } from "react";
140
140
  import { Radio } from "antd";
141
141
  var RadioElement = (props) => {
142
- const [isDisabled, setIsDisabled] = useState2(props.disabled);
143
142
  const [selectedValue, setSelectedValue] = useState2(props.value);
144
143
  let optionType;
145
144
  if (props.optionType === "button") {
@@ -149,7 +148,6 @@ var RadioElement = (props) => {
149
148
  const selectedVal = e.target.value;
150
149
  const selectedOptions = [{ id: selectedVal, value: selectedVal }];
151
150
  setSelectedValue(selectedVal);
152
- setIsDisabled(true);
153
151
  if (props.onChange) {
154
152
  props.onChange(selectedOptions);
155
153
  }
@@ -157,7 +155,7 @@ var RadioElement = (props) => {
157
155
  const getButtonStyle = (option) => {
158
156
  return selectedValue === option.value ? option.selectedClassName : option.className;
159
157
  };
160
- return /* @__PURE__ */ React6.createElement(
158
+ return /* @__PURE__ */ React6.createElement("div", null, /* @__PURE__ */ React6.createElement("h1", null, "hsjas"), /* @__PURE__ */ React6.createElement(
161
159
  Radio.Group,
162
160
  {
163
161
  onChange: handleChange,
@@ -170,12 +168,11 @@ var RadioElement = (props) => {
170
168
  {
171
169
  key: option.value,
172
170
  value: option.value,
173
- className: getButtonStyle(option),
174
- style: { pointerEvents: isDisabled && selectedValue !== option.value ? "none" : "auto" }
171
+ className: getButtonStyle(option)
175
172
  },
176
173
  option.label
177
174
  ))
178
- );
175
+ ));
179
176
  };
180
177
 
181
178
  // src/Components/Checkbox.tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.12-Beta34",
3
+ "version": "0.0.12-Beta35",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",