@apexcura/ui-components 0.0.11-Beta101 → 0.0.11-Beta103
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 +6 -1
- package/dist/index.mjs +6 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -189,6 +189,10 @@ var import_react6 = __toESM(require("react"));
|
|
|
189
189
|
var import_antd6 = require("antd");
|
|
190
190
|
var RadioElement = (props) => {
|
|
191
191
|
const [isDisabled, setIsDisabled] = (0, import_react6.useState)(props.disabled);
|
|
192
|
+
let optionType;
|
|
193
|
+
if (props.optionType === "button") {
|
|
194
|
+
optionType = props.optionType;
|
|
195
|
+
}
|
|
192
196
|
const handleChange = (e) => {
|
|
193
197
|
if (props.onChange) {
|
|
194
198
|
const selectedVal = e.target.value;
|
|
@@ -203,7 +207,8 @@ var RadioElement = (props) => {
|
|
|
203
207
|
options: props.options,
|
|
204
208
|
onChange: handleChange,
|
|
205
209
|
disabled: isDisabled,
|
|
206
|
-
optionType
|
|
210
|
+
optionType,
|
|
211
|
+
className: props.classNames
|
|
207
212
|
}
|
|
208
213
|
);
|
|
209
214
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -142,6 +142,10 @@ import React6, { useState as useState2 } from "react";
|
|
|
142
142
|
import { Radio } from "antd";
|
|
143
143
|
var RadioElement = (props) => {
|
|
144
144
|
const [isDisabled, setIsDisabled] = useState2(props.disabled);
|
|
145
|
+
let optionType;
|
|
146
|
+
if (props.optionType === "button") {
|
|
147
|
+
optionType = props.optionType;
|
|
148
|
+
}
|
|
145
149
|
const handleChange = (e) => {
|
|
146
150
|
if (props.onChange) {
|
|
147
151
|
const selectedVal = e.target.value;
|
|
@@ -156,7 +160,8 @@ var RadioElement = (props) => {
|
|
|
156
160
|
options: props.options,
|
|
157
161
|
onChange: handleChange,
|
|
158
162
|
disabled: isDisabled,
|
|
159
|
-
optionType
|
|
163
|
+
optionType,
|
|
164
|
+
className: props.classNames
|
|
160
165
|
}
|
|
161
166
|
);
|
|
162
167
|
};
|