@apexcura/ui-components 0.0.12-Beta25 → 0.0.12-Beta28
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 +16 -11
- package/dist/index.mjs +16 -11
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -203,22 +203,27 @@ var RadioElement = (props) => {
|
|
|
203
203
|
props.onChange(selectedOptions);
|
|
204
204
|
}
|
|
205
205
|
};
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
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 getButtonStyle = (option) => {
|
|
207
|
+
return selectedValue === option.value ? option.selectedClassName : option.className;
|
|
208
|
+
};
|
|
209
|
+
return /* @__PURE__ */ import_react6.default.createElement(
|
|
214
210
|
import_antd6.Radio.Group,
|
|
215
211
|
{
|
|
216
|
-
options: radioOptions,
|
|
217
212
|
onChange: handleChange,
|
|
213
|
+
disabled: isDisabled,
|
|
218
214
|
optionType,
|
|
219
215
|
className: props.className ? props.className : ""
|
|
220
|
-
}
|
|
221
|
-
|
|
216
|
+
},
|
|
217
|
+
props.options && props.options.map((option) => /* @__PURE__ */ import_react6.default.createElement(
|
|
218
|
+
import_antd6.Radio,
|
|
219
|
+
{
|
|
220
|
+
key: option.value,
|
|
221
|
+
value: option.value,
|
|
222
|
+
className: `${getButtonStyle(option)} ${isDisabled ? "cursor-not-allowed" : ""}`
|
|
223
|
+
},
|
|
224
|
+
option.label
|
|
225
|
+
))
|
|
226
|
+
);
|
|
222
227
|
};
|
|
223
228
|
|
|
224
229
|
// src/Components/Checkbox.tsx
|
package/dist/index.mjs
CHANGED
|
@@ -156,22 +156,27 @@ var RadioElement = (props) => {
|
|
|
156
156
|
props.onChange(selectedOptions);
|
|
157
157
|
}
|
|
158
158
|
};
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
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 getButtonStyle = (option) => {
|
|
160
|
+
return selectedValue === option.value ? option.selectedClassName : option.className;
|
|
161
|
+
};
|
|
162
|
+
return /* @__PURE__ */ React6.createElement(
|
|
167
163
|
Radio.Group,
|
|
168
164
|
{
|
|
169
|
-
options: radioOptions,
|
|
170
165
|
onChange: handleChange,
|
|
166
|
+
disabled: isDisabled,
|
|
171
167
|
optionType,
|
|
172
168
|
className: props.className ? props.className : ""
|
|
173
|
-
}
|
|
174
|
-
|
|
169
|
+
},
|
|
170
|
+
props.options && props.options.map((option) => /* @__PURE__ */ React6.createElement(
|
|
171
|
+
Radio,
|
|
172
|
+
{
|
|
173
|
+
key: option.value,
|
|
174
|
+
value: option.value,
|
|
175
|
+
className: `${getButtonStyle(option)} ${isDisabled ? "cursor-not-allowed" : ""}`
|
|
176
|
+
},
|
|
177
|
+
option.label
|
|
178
|
+
))
|
|
179
|
+
);
|
|
175
180
|
};
|
|
176
181
|
|
|
177
182
|
// src/Components/Checkbox.tsx
|