@luscii-healthtech/web-ui 42.2.0 → 42.2.2

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.
@@ -3139,17 +3139,28 @@ const TopBar = (props) => {
3139
3139
  TopBar.Actions = Actions$1;
3140
3140
 
3141
3141
  function Card(props) {
3142
- const { actions: __, as: Element = "div", children, border, className, elevation, elevationOnHover, padding = true, title: _, borderRadius = "m" } = props, rest = __rest(props, ["actions", "as", "children", "border", "className", "elevation", "elevationOnHover", "padding", "title", "borderRadius"]);
3142
+ const { actions: __, as: Element = "div", children, border, className, elevation, elevationOnHover, padding = true, title: _, borderRadius = "m", highlighted = false } = props, rest = __rest(props, ["actions", "as", "children", "border", "className", "elevation", "elevationOnHover", "padding", "title", "borderRadius", "highlighted"]);
3143
3143
  const hasHoverEffect = !(elevation === elevationOnHover || elevationOnHover === void 0);
3144
3144
  const hoverShadowClassName = createShadowClassName(elevationOnHover, {
3145
3145
  modifier: "hover",
3146
3146
  transition: true
3147
3147
  });
3148
- const classes = classNames__default.default("ui:overflow-hidden", "ui:bg-white", "ui:transition-colors ui:duration-300", className, hoverShadowClassName, {
3149
- "ui:border ui:border-slate-300": border,
3150
- "ui:hover:border-slate-400": hasHoverEffect
3148
+ const classes = classNames__default.default("ui:overflow-hidden", "ui:bg-white", "ui:transition-colors ui:duration-300", className, hoverShadowClassName, "ui:transition-shadow ui:duration-300", "ui:relative", "ui:before:contain-strict ui:before:transition[transform, opacity] ui:before:delay-50 ui:before:duration-150 ui:before:motion-reduce:duration-[0ms]!", "ui:before:origin-left ui:before:absolute ui:before:left-0 ui:before:content-[''] ui:before:inset-y-0 ui:before:ease-in-out", {
3149
+ "ui:before:opacity-0 ui:before:scale-x-0": !highlighted,
3150
+ "ui:before:opacity-100 ui:before:scale-x-100": highlighted,
3151
+ "relative ui:before:bg-primary": highlighted,
3152
+ "ui:before:w-xxxxs": ["none", "xxxxs"].includes(borderRadius),
3153
+ "ui:before:w-xxxs": borderRadius === "xxxs",
3154
+ "ui:before:w-xxs": borderRadius === "xxs",
3155
+ "ui:before:w-xs": borderRadius === "xs",
3156
+ "ui:before:w-s": borderRadius === "s",
3157
+ "ui:before:w-m": ["m", "l", "xl", "xxl"].includes(borderRadius)
3158
+ // We cap at `ui:before:w-m` otherwise the bar overlaps the contents of the Card.
3151
3159
  });
3152
- return jsxRuntime.jsx(Box, Object.assign({ as: Element, elevation, borderRadius }, rest, { className: classes, children: jsxRuntime.jsxs(Box, { className: "ui:bg-white", children: [jsxRuntime.jsx(RenderTopBar, Object.assign({}, props)), padding ? jsxRuntime.jsx(Padding$1, { children }) : children] }) }));
3160
+ return jsxRuntime.jsx(Box, Object.assign({ as: Element, elevation: highlighted && !elevation ? "large" : elevation, borderRadius }, rest, { className: classes, children: jsxRuntime.jsxs(Box, { className: classNames__default.default("ui:bg-white ui:rounded-inherit ui:border ui:border-transparent ui:transition[border-color] ui:duration-300 ui:motion-reduce:duration-[0ms]!", {
3161
+ "ui:border-slate-300": border || highlighted,
3162
+ "ui:hover:border-slate-400": hasHoverEffect
3163
+ }), children: [jsxRuntime.jsx(RenderTopBar, Object.assign({}, props)), padding ? jsxRuntime.jsx(Padding$1, { children }) : children] }) }));
3153
3164
  }
3154
3165
  Card.Title = (props) => jsxRuntime.jsx(Title, Object.assign({ variant: "sm" }, props));
3155
3166
  Card.TopBar = TopBar;
@@ -4149,7 +4160,7 @@ const CRUDPage = ({ submitButtonProps, cancelButtonProps, className, children, i
4149
4160
  * since the spacing needed will be occupied by the `belowHeader` component itself.
4150
4161
  */
4151
4162
  { "ui:mt-xl": !belowHeader }
4152
- ), children: [steps && jsxRuntime.jsx(Steps, { className: "ui:mb-4", orderedStepTitles: steps.titles, currentStep: steps.currentStep, localization: steps.localization }), children, jsxRuntime.jsx(Line, { left: accessoriesToRender !== null && accessoriesToRender !== void 0 ? accessoriesToRender : [submitButton, cancelButton], className: classNames__default.default("cweb-crud-page-button-line", "ui:mt-4 ui:border-t ui:border-solid ui:border-color-divider ui:pt-4") })] }) })] }) });
4163
+ ), children: [steps && jsxRuntime.jsx(Steps, { className: "ui:mb-4", orderedStepTitles: steps.titles, currentStep: steps.currentStep, localization: steps.localization }), children, jsxRuntime.jsx(Line, { left: accessory ? accessoriesToRender : [submitButton, cancelButton], className: classNames__default.default("cweb-crud-page-button-line", "ui:mt-4 ui:border-t ui:border-solid ui:border-color-divider ui:pt-4") })] }) })] }) });
4153
4164
  };
4154
4165
  const PageHeaderBlock = ({ header, title }) => {
4155
4166
  if (!title && !header) {