@luscii-healthtech/web-ui 52.6.4 → 52.7.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/index.development.js +9 -2
- package/dist/index.development.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/src/components/Radio/LabeledRadioGroup.d.ts +5 -0
- package/dist/src/generated/components/Radio/LabeledRadioGroup.d.ts +5 -0
- package/dist/web-ui.esm.js +1 -1
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -2997,9 +2997,16 @@ function RadioLabel(props) {
|
|
|
2997
2997
|
}
|
|
2998
2998
|
|
|
2999
2999
|
const LabeledRadioGroup = (props) => {
|
|
3000
|
-
const { children, title, className } = props;
|
|
3000
|
+
const { children, title, className, orientation = "vertical" } = props;
|
|
3001
3001
|
const semanticId = React__namespace.default.useId();
|
|
3002
|
-
|
|
3002
|
+
const orientationProps = orientation === "horizontal" ? {
|
|
3003
|
+
axis: "x",
|
|
3004
|
+
_gap: "2xl"
|
|
3005
|
+
} : {
|
|
3006
|
+
axis: "y",
|
|
3007
|
+
_gap: "base"
|
|
3008
|
+
};
|
|
3009
|
+
return jsxRuntime.jsxs(Stack, { as: "fieldset", "aria-describedby": semanticId, className: classNames__default.default(className), gap: "xxxxs", children: [title && jsxRuntime.jsx("legend", { className: "ui:contents", children: jsxRuntime.jsx(Text, { children: title }) }), jsxRuntime.jsx(Stack, Object.assign({}, orientationProps, { children })), jsxRuntime.jsx(HelperAndErrorText, { helperText: props.helperText, errorText: props.errorText, describingId: semanticId })] });
|
|
3003
3010
|
};
|
|
3004
3011
|
|
|
3005
3012
|
const Actions$1 = (props) => {
|