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