@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 +17 -11
- package/dist/index.mjs +17 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -203,22 +203,28 @@ var RadioElement = (props) => {
|
|
|
203
203
|
props.onChange(selectedOptions);
|
|
204
204
|
}
|
|
205
205
|
};
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
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
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
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
|