@luscii-healthtech/web-ui 42.8.0 → 42.8.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.
@@ -409,6 +409,9 @@ var AlarmClockIcon = IconWrapper(SvgAlarmClockIcon);
409
409
  const SvgAmberAlertIcon = (props) => jsxRuntime.jsx("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", viewBox: "0 0 12 12" }, props, { children: jsxRuntime.jsx("rect", { width: 10, height: 10, x: 1, y: 1, stroke: "currentColor", strokeWidth: 2, rx: 5 }) }));
410
410
  var AmberAlertIcon = IconWrapper(SvgAmberAlertIcon);
411
411
 
412
+ const SvgArrowBackward = (props) => jsxRuntime.jsx("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", viewBox: "0 0 24 24" }, props, { children: jsxRuntime.jsx("path", { fill: "currentColor", d: "m7.373 12.75 5.17 5.17a.7.7 0 0 1 .22.521.74.74 0 0 1-.236.532.78.78 0 0 1-.527.225.7.7 0 0 1-.527-.225l-6.34-6.34A.83.83 0 0 1 4.877 12q0-.18.058-.336a.8.8 0 0 1 .198-.297l6.34-6.34a.72.72 0 0 1 .515-.212.75.75 0 0 1 .539.212.74.74 0 0 1 .233.535q0 .302-.233.534L7.373 11.25H18.75q.32 0 .535.216A.73.73 0 0 1 19.5 12a.73.73 0 0 1-.215.535.73.73 0 0 1-.535.215z" }) }));
413
+ var ArrowBackward = IconWrapper(SvgArrowBackward);
414
+
412
415
  const SvgArrowForward = (props) => jsxRuntime.jsx("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, fill: "none", viewBox: "0 0 24 24" }, props, { children: jsxRuntime.jsx("path", { fill: "currentColor", d: "M16.627 12.75H5.25a.73.73 0 0 1-.535-.216.73.73 0 0 1-.215-.535q0-.319.215-.535a.73.73 0 0 1 .535-.215h11.377l-5.17-5.17a.7.7 0 0 1-.22-.521q.003-.3.236-.532A.78.78 0 0 1 12 4.801a.7.7 0 0 1 .527.225l6.34 6.34a.83.83 0 0 1 .256.633.83.83 0 0 1-.256.633l-6.34 6.34a.72.72 0 0 1-.514.213.75.75 0 0 1-.54-.213.74.74 0 0 1-.233-.535q0-.3.233-.534z" }) }));
413
416
  var ArrowForward = IconWrapper(SvgArrowForward);
414
417
 
@@ -745,6 +748,7 @@ var Icons = /*#__PURE__*/Object.freeze({
745
748
  AlertsIcon: BellIcon,
746
749
  AmberAlertColoredIcon: AmberAlertColoredIcon,
747
750
  AmberAlertIcon: AmberAlertIcon,
751
+ ArrowBackward: ArrowBackward,
748
752
  ArrowForward: ArrowForward,
749
753
  AssignIcon: AssignIcon,
750
754
  AssignedIcon: AssignedIcon,
@@ -3610,14 +3614,20 @@ const isPlainText = (node) => {
3610
3614
  return typeof node === "string" || typeof node === "number";
3611
3615
  };
3612
3616
  const TableRoot = React__namespace.default.forwardRef((_a, wrapperRef) => {
3613
- var { className, children, sticky, headerBackground = "none" } = _a, attrs = __rest(_a, ["className", "children", "sticky", "headerBackground"]);
3617
+ var { className, children, sticky, headerBackground = "none", variant = "fit-content" } = _a, attrs = __rest(_a, ["className", "children", "sticky", "headerBackground", "variant"]);
3614
3618
  const stickyHeader = sticky === "header" || sticky === "header-and-first-column";
3615
3619
  const stickyFirstColumn = sticky === "first-column" || sticky === "header-and-first-column";
3616
3620
  const firstColBg = headerBackground === "first-column" || headerBackground === "first-row-and-column" ? "#f8fafc" : "#ffffff";
3617
3621
  const firstRowBg = headerBackground === "first-row" || headerBackground === "first-row-and-column" ? "#f8fafc" : "#ffffff";
3618
3622
  const cornerCellBg = headerBackground !== "none" ? "#f8fafc" : "#ffffff";
3619
3623
  const hasTFoot = React__namespace.default.Children.toArray(children).some((child) => React__namespace.default.isValidElement(child) && child.type === TFoot);
3620
- return jsxRuntime.jsx("div", { className: classNames__default.default("ui:rounded-2xl ui:overflow-auto ui:border ui:border-neutral-border-high-contrast ui:w-fit", className), ref: wrapperRef, children: jsxRuntime.jsxs("table", Object.assign({ className: classNames__default.default("ui:table-auto ui:bg-white", "ui:border-separate ui:border-spacing-0", {
3624
+ return jsxRuntime.jsx("div", { className: classNames__default.default("ui:rounded-2xl ui:overflow-auto ui:border ui:border-neutral-border-high-contrast", {
3625
+ "ui:w-fit": variant === "fit-content",
3626
+ "ui:w-full": variant === "full-width"
3627
+ }, className), ref: wrapperRef, children: jsxRuntime.jsxs("table", Object.assign({ className: classNames__default.default({
3628
+ "ui:w-fit": variant === "fit-content",
3629
+ "ui:w-full": variant === "full-width"
3630
+ }, "ui:table-auto ui:bg-white", "ui:border-separate ui:border-spacing-0", {
3621
3631
  /**
3622
3632
  * Apply sticky positioning to first column cells in tbody (both th and td)
3623
3633
  * with proper z-index layering
@@ -6099,14 +6109,15 @@ const Aside = (props) => {
6099
6109
  SplitViewLayout.Aside = Aside;
6100
6110
 
6101
6111
  const Header = (props) => {
6102
- const { children } = props, restProps = __rest(props, ["children"]);
6103
- return jsxRuntime.jsx(Box, Object.assign({ as: "header", p: "xl", backgroundColor: "surface" }, restProps, { children }));
6112
+ const { children, className, leftActionSlot, rightActionSlot } = props, restProps = __rest(props, ["children", "className", "leftActionSlot", "rightActionSlot"]);
6113
+ const classes = classNames__default.default(className, "ui:max-w-[100vw] ui:content-center");
6114
+ return jsxRuntime.jsxs(Stack, Object.assign({ as: "header", p: "xl", axis: "x", backgroundColor: "surface", className: classes, gap: "xxl", align: "center", justify: "center" }, restProps, { children: [(leftActionSlot || rightActionSlot) && jsxRuntime.jsx(Box, { className: "ui:w-[--spacing(9)] ui:h-[--spacing(9)]", children: leftActionSlot }), jsxRuntime.jsx(Stack, { axis: "x", justify: "center", width: "full", className: "ui:lg:max-w-[--spacing(310)]", children: jsxRuntime.jsx(Box, { width: "full", children }) }), (leftActionSlot || rightActionSlot) && jsxRuntime.jsx(Box, { className: "ui:w-[--spacing(9)] ui:h-[--spacing(9)]", children: rightActionSlot })] }));
6104
6115
  };
6105
6116
  Header.displayName = "PageWithCenteredContentLayout.Header";
6106
6117
  const Main = (props) => {
6107
6118
  const { children, className } = props, restProps = __rest(props, ["children", "className"]);
6108
6119
  const classes = classNames__default.default(className, "ui:max-w-[100vw] ui:content-center ui:z-10");
6109
- return jsxRuntime.jsx(Stack, Object.assign({ as: "main", width: "full", align: "center", p: "xl", className: classes }, restProps, { children: jsxRuntime.jsx(Box, { width: "full", className: "ui:lg:max-w-[--spacing(192)]", children }) }));
6120
+ return jsxRuntime.jsx(Stack, Object.assign({ as: "main", width: "full", align: "center", p: "xl", className: classes }, restProps, { children: jsxRuntime.jsx(Box, { width: "full", className: "ui:lg:max-w-[--spacing(310)]", children }) }));
6110
6121
  };
6111
6122
  Main.displayName = "PageWithCenteredContentLayout.Main";
6112
6123
  const PageWithCenteredContentLayout = (props) => {
@@ -6254,6 +6265,7 @@ exports.AlertWidget = AlertWidget;
6254
6265
  exports.AlertsIcon = BellIcon;
6255
6266
  exports.AmberAlertColoredIcon = AmberAlertColoredIcon;
6256
6267
  exports.AmberAlertIcon = AmberAlertIcon;
6268
+ exports.ArrowBackward = ArrowBackward;
6257
6269
  exports.ArrowForward = ArrowForward;
6258
6270
  exports.AsideLayout = AsideLayout;
6259
6271
  exports.AssignIcon = AssignIcon;