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