@luscii-healthtech/web-ui 27.1.0 → 27.2.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.
@@ -3,6 +3,8 @@ import { BUTTON_ROLES, ButtonProps } from "./Button.types";
3
3
  /**
4
4
  * TODO: We have to probably use [ButtonV2.tsx](../../components/ButtonV2/ButtonV2.tsx)
5
5
  * to replace this component at some point.
6
+ *
7
+ * @deprecated use PrimaryButton, SecondaryButton or TertiaryButton instead
6
8
  */
7
9
  declare function Button(props: ButtonProps): JSX.Element;
8
10
  export default Button;
@@ -0,0 +1,27 @@
1
+ import React from "react";
2
+ import { Stack } from "../Stack/Stack";
3
+ type Props = {
4
+ /**
5
+ * The title of the cell
6
+ */
7
+ title: string;
8
+ /**
9
+ * Renders an empasized version of the dot and title to emphasize them.
10
+ * This should be used to indicate special moments in the timeline like the day or week of the moment.
11
+ *
12
+ * @default false
13
+ */
14
+ emphasized?: boolean;
15
+ /**
16
+ * Sets the lineStyle to be either solid or dashed.
17
+ * This should be used to indicate an incomplete duration like the first week of a moment.
18
+ *
19
+ * @default "solid"
20
+ */
21
+ lineStyle?: "solid" | "dashed";
22
+ } & React.ComponentProps<typeof Stack>;
23
+ /**
24
+ * Lays out its content with a timeline indicator, line and a title.
25
+ */
26
+ export declare const TimelineCardLayout: React.FC<Props>;
27
+ export {};
package/dist/index.d.ts CHANGED
@@ -95,4 +95,5 @@ export { default as DragHandle, type DragHandleProps, } from "./components/DragH
95
95
  export { FileUpload as File, type FileUploadProps as FileProps, } from "./components/FileUpload/FileUpload";
96
96
  export { StatusIndicator } from "./components/StatusIndicator/StatusIndicator";
97
97
  export { TimelineCard } from "./components/TimelineCard/TimelineCard";
98
+ export { TimelineCardLayout } from "./components/TimelineCardLayout/TimelineCardLayout";
98
99
  export { LocaleProvider } from "./context/LocaleContext";
@@ -6038,6 +6038,38 @@ const TimelineCard = ({ title, subtitle, icon, statusText, state = "default" })
6038
6038
  );
6039
6039
  };
6040
6040
 
6041
+ const TimelineDot = () => React__namespace.default.createElement(
6042
+ "svg",
6043
+ { width: "24", height: "24", fill: "none" },
6044
+ React__namespace.default.createElement("circle", { width: "16", height: "16", cx: "12", cy: "12", r: "8", className: "ui-fill-blue-300" })
6045
+ );
6046
+ const TimelineEmphasizedDot = () => React__namespace.default.createElement(
6047
+ "svg",
6048
+ { width: "24", height: "24", fill: "none" },
6049
+ React__namespace.default.createElement("circle", { cx: "12", cy: "11.5", r: "9.5", className: "ui-fill-white ui-stroke-blue-800 ui-stroke-[4px]" })
6050
+ );
6051
+ const TimelineCardLayout = (_a) => {
6052
+ var { title, lineStyle = "solid", emphasized = false, children } = _a, stackProps = __rest(_a, ["title", "lineStyle", "emphasized", "children"]);
6053
+ return React__namespace.default.createElement(
6054
+ Stack,
6055
+ Object.assign({ axis: "x", className: classNames__default.default({
6056
+ "ui-timelineCardLayout-line--dashed": lineStyle === "dashed",
6057
+ "ui-timelineCardLayout-line--solid": lineStyle === "solid"
6058
+ }, "ui-bg-[left_11px_top]"), gap: "s", width: "full" }, stackProps),
6059
+ React__namespace.default.createElement(Box, { "aria-hidden": "true" }, emphasized ? React__namespace.default.createElement(TimelineEmphasizedDot, null) : React__namespace.default.createElement(TimelineDot, null)),
6060
+ React__namespace.default.createElement(
6061
+ Stack,
6062
+ { gap: "s", width: "full" },
6063
+ React__namespace.default.createElement(
6064
+ Stack,
6065
+ { axis: "x", gap: "s", align: "center" },
6066
+ React__namespace.default.createElement(Title, { type: "xs", color: emphasized ? "blue-800" : "base" }, title)
6067
+ ),
6068
+ children
6069
+ )
6070
+ );
6071
+ };
6072
+
6041
6073
  Object.defineProperty(exports, 'Toaster', {
6042
6074
  enumerable: true,
6043
6075
  get: function () { return sonner.Toaster; }
@@ -6219,6 +6251,7 @@ exports.TextLink = TextLink;
6219
6251
  exports.Textarea = Textarea;
6220
6252
  exports.Timeline = Timeline;
6221
6253
  exports.TimelineCard = TimelineCard;
6254
+ exports.TimelineCardLayout = TimelineCardLayout;
6222
6255
  exports.Title = Title;
6223
6256
  exports.TrashBinIcon = DeleteIcon;
6224
6257
  exports.TreeIcon = TreeIcon;