@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.
@@ -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
- 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, { gap: "xxs", children }), jsxRuntime.jsx(HelperAndErrorText, { helperText: props.helperText, errorText: props.errorText, describingId: semanticId })] });
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) => {