@apexcura/ui-components 0.0.12-Beta25 → 0.0.12-Beta26

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
@@ -203,22 +203,28 @@ var RadioElement = (props) => {
203
203
  props.onChange(selectedOptions);
204
204
  }
205
205
  };
206
- console.log("-----------", props.options);
207
- console.log(selectedValue);
208
- const radioOptions = props.options && props.options.map((option) => ({
209
- ...option,
210
- className: selectedValue === option.value ? option.selectedClassName && option.selectedClassName : option.className && option.className,
211
- disabled: isDisabled
212
- }));
213
- return /* @__PURE__ */ import_react6.default.createElement(import_react6.default.Fragment, null, /* @__PURE__ */ import_react6.default.createElement("h6", null, "joikdf"), /* @__PURE__ */ import_react6.default.createElement(
206
+ const renderOptions = () => {
207
+ return props.options && props.options.map((option) => /* @__PURE__ */ import_react6.default.createElement(
208
+ import_antd6.Radio.Button,
209
+ {
210
+ key: option.value,
211
+ value: option.value,
212
+ className: selectedValue === option.value ? option.selectedClassName : option.className,
213
+ disabled: isDisabled
214
+ },
215
+ option.label
216
+ ));
217
+ };
218
+ return /* @__PURE__ */ import_react6.default.createElement(
214
219
  import_antd6.Radio.Group,
215
220
  {
216
- options: radioOptions,
217
221
  onChange: handleChange,
222
+ disabled: isDisabled,
218
223
  optionType,
219
224
  className: props.className ? props.className : ""
220
- }
221
- ));
225
+ },
226
+ renderOptions()
227
+ );
222
228
  };
223
229
 
224
230
  // src/Components/Checkbox.tsx
package/dist/index.mjs CHANGED
@@ -156,22 +156,28 @@ var RadioElement = (props) => {
156
156
  props.onChange(selectedOptions);
157
157
  }
158
158
  };
159
- console.log("-----------", props.options);
160
- console.log(selectedValue);
161
- const radioOptions = props.options && props.options.map((option) => ({
162
- ...option,
163
- className: selectedValue === option.value ? option.selectedClassName && option.selectedClassName : option.className && option.className,
164
- disabled: isDisabled
165
- }));
166
- return /* @__PURE__ */ React6.createElement(React6.Fragment, null, /* @__PURE__ */ React6.createElement("h6", null, "joikdf"), /* @__PURE__ */ React6.createElement(
159
+ const renderOptions = () => {
160
+ return props.options && props.options.map((option) => /* @__PURE__ */ React6.createElement(
161
+ Radio.Button,
162
+ {
163
+ key: option.value,
164
+ value: option.value,
165
+ className: selectedValue === option.value ? option.selectedClassName : option.className,
166
+ disabled: isDisabled
167
+ },
168
+ option.label
169
+ ));
170
+ };
171
+ return /* @__PURE__ */ React6.createElement(
167
172
  Radio.Group,
168
173
  {
169
- options: radioOptions,
170
174
  onChange: handleChange,
175
+ disabled: isDisabled,
171
176
  optionType,
172
177
  className: props.className ? props.className : ""
173
- }
174
- ));
178
+ },
179
+ renderOptions()
180
+ );
175
181
  };
176
182
 
177
183
  // 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-Beta25",
3
+ "version": "0.0.12-Beta26",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",