@luscii-healthtech/web-ui 2.32.0 → 2.34.0
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/components/RadioGroup/RadioGroupV2.d.ts +1 -0
- package/dist/web-ui.cjs.development.js +6 -3
- package/dist/web-ui.cjs.development.js.map +1 -1
- package/dist/web-ui.cjs.production.min.js +1 -1
- package/dist/web-ui.cjs.production.min.js.map +1 -1
- package/dist/web-ui.esm.js +6 -3
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,5 +5,6 @@ export interface RadioGroupProps extends Omit<React.InputHTMLAttributes<HTMLInpu
|
|
|
5
5
|
isError?: boolean;
|
|
6
6
|
options: Omit<RadioProps, "name">[];
|
|
7
7
|
innerRef?: React.Ref<HTMLInputElement>;
|
|
8
|
+
title?: string;
|
|
8
9
|
}
|
|
9
10
|
export declare const RadioGroupV2: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -477,7 +477,7 @@ var FlexContainer = function FlexContainer(props) {
|
|
|
477
477
|
position = _props$position === void 0 ? "" : _props$position,
|
|
478
478
|
type = props.type,
|
|
479
479
|
_props$backgroundColo = props.backgroundColor,
|
|
480
|
-
backgroundColor = _props$backgroundColo === void 0 ? "bg-
|
|
480
|
+
backgroundColor = _props$backgroundColo === void 0 ? "bg-transparent" : _props$backgroundColo;
|
|
481
481
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
482
482
|
className: classNames("flex w-full", backgroundColor, {
|
|
483
483
|
"flex-row": type === "row",
|
|
@@ -2671,17 +2671,20 @@ var RadioV2 = /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
|
2671
2671
|
}));
|
|
2672
2672
|
});
|
|
2673
2673
|
|
|
2674
|
-
var _excluded$8 = ["innerRef", "options", "defaultValue"];
|
|
2674
|
+
var _excluded$8 = ["innerRef", "options", "defaultValue", "title"];
|
|
2675
2675
|
|
|
2676
2676
|
function RadioGroupInner(_ref) {
|
|
2677
2677
|
var innerRef = _ref.innerRef,
|
|
2678
2678
|
options = _ref.options,
|
|
2679
2679
|
defaultValue = _ref.defaultValue,
|
|
2680
|
+
title = _ref.title,
|
|
2680
2681
|
registerProps = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
2681
2682
|
|
|
2682
2683
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
2683
2684
|
className: classNames("flex flex-col space-y-2")
|
|
2684
|
-
},
|
|
2685
|
+
}, title && /*#__PURE__*/React__default.createElement(Text, {
|
|
2686
|
+
text: title
|
|
2687
|
+
}), options.map(function (option) {
|
|
2685
2688
|
return /*#__PURE__*/React__default.createElement(RadioV2, _extends({
|
|
2686
2689
|
defaultChecked: option.value === defaultValue,
|
|
2687
2690
|
key: option.value
|