@luscii-healthtech/web-ui 27.8.4 → 27.9.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/components/TimelineCardLayout/TimelineCardLayout.d.ts +7 -16
- package/dist/index.development.js +18 -18
- package/dist/index.development.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/web-ui-tailwind.css +12 -0
- package/dist/web-ui.esm.js +1 -1
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,27 +1,18 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { Stack } from "../Stack/Stack";
|
|
3
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
4
|
/**
|
|
16
5
|
* Sets the lineStyle to be either solid or dashed.
|
|
17
|
-
*
|
|
6
|
+
* Can be set to "dashed" to indicate an incomplete duration like the first week of a moment or "solid" for a complete duration.
|
|
18
7
|
*
|
|
19
8
|
* @default "solid"
|
|
20
9
|
*/
|
|
21
|
-
lineStyle?: "solid" | "dashed";
|
|
10
|
+
lineStyle?: "solid" | "dashed" | null;
|
|
11
|
+
/**
|
|
12
|
+
* The style of the dot, no dot will be rendered when this is not set.
|
|
13
|
+
* Can be set to "empasised" to indicate special moments in the timeline like the day or week of the moment or "regular" for other moments.
|
|
14
|
+
*/
|
|
15
|
+
dotStyle?: "regular" | "emphasized" | null;
|
|
22
16
|
} & React.ComponentProps<typeof Stack>;
|
|
23
|
-
/**
|
|
24
|
-
* Lays out its content with a timeline indicator, line and a title.
|
|
25
|
-
*/
|
|
26
17
|
export declare const TimelineCardLayout: React.FC<Props>;
|
|
27
18
|
export {};
|
|
@@ -6099,35 +6099,35 @@ const TimelineCard = ({ title, subtitle, icon, statusText, state = "default", di
|
|
|
6099
6099
|
);
|
|
6100
6100
|
};
|
|
6101
6101
|
|
|
6102
|
-
const TimelineDot = () => React__namespace.default.createElement(
|
|
6102
|
+
const TimelineDot = ({ className }) => React__namespace.default.createElement(
|
|
6103
6103
|
"svg",
|
|
6104
|
-
{ width: "24", height: "24", fill: "none" },
|
|
6104
|
+
{ width: "24", height: "24", fill: "none", className },
|
|
6105
6105
|
React__namespace.default.createElement("circle", { width: "16", height: "16", cx: "12", cy: "12", r: "8", className: "ui-fill-blue-300" })
|
|
6106
6106
|
);
|
|
6107
|
-
const TimelineEmphasizedDot = () => React__namespace.default.createElement(
|
|
6107
|
+
const TimelineEmphasizedDot = ({ className }) => React__namespace.default.createElement(
|
|
6108
6108
|
"svg",
|
|
6109
|
-
{ width: "24", height: "24", fill: "none" },
|
|
6109
|
+
{ width: "24", height: "24", fill: "none", className },
|
|
6110
6110
|
React__namespace.default.createElement("circle", { cx: "12", cy: "11.5", r: "9.5", className: "ui-fill-white ui-stroke-blue-800 ui-stroke-[4px]" })
|
|
6111
6111
|
);
|
|
6112
6112
|
const TimelineCardLayout = (_a) => {
|
|
6113
|
-
var {
|
|
6113
|
+
var { dotStyle, lineStyle = "solid", children } = _a, stackProps = __rest(_a, ["dotStyle", "lineStyle", "children"]);
|
|
6114
6114
|
return React__namespace.default.createElement(
|
|
6115
6115
|
Stack,
|
|
6116
|
-
Object.assign({ axis: "x",
|
|
6117
|
-
"ui-timelineCardLayout-line--dashed": lineStyle === "dashed",
|
|
6118
|
-
"ui-timelineCardLayout-line--solid": lineStyle === "solid"
|
|
6119
|
-
}, "ui-bg-[left_11px_top]"), gap: "s", width: "full" }, stackProps),
|
|
6120
|
-
React__namespace.default.createElement(Box, { "aria-hidden": "true" }, emphasized ? React__namespace.default.createElement(TimelineEmphasizedDot, null) : React__namespace.default.createElement(TimelineDot, null)),
|
|
6116
|
+
Object.assign({ axis: "x", gap: "s", width: "full", align: "stretch" }, stackProps),
|
|
6121
6117
|
React__namespace.default.createElement(
|
|
6122
|
-
|
|
6123
|
-
{
|
|
6118
|
+
"div",
|
|
6119
|
+
{ "aria-hidden": "true", className: classNames__default.default("ui-relative ui-w-full ui-max-w-[24px] ui-bg-[left_11px_top]") },
|
|
6124
6120
|
React__namespace.default.createElement(
|
|
6125
|
-
|
|
6126
|
-
{
|
|
6127
|
-
|
|
6128
|
-
|
|
6129
|
-
|
|
6130
|
-
|
|
6121
|
+
"div",
|
|
6122
|
+
{ className: classNames__default.default("ui-absolute ui-top-[-8px] ui-h-[calc(100%+16px)] ui-w-full ui-max-w-[24px] ui-bg-[left_11px_top]", {
|
|
6123
|
+
"ui-timelineCardLayout-line--dashed": lineStyle === "dashed",
|
|
6124
|
+
"ui-timelineCardLayout-line--solid": lineStyle === "solid"
|
|
6125
|
+
}) },
|
|
6126
|
+
dotStyle === "emphasized" && React__namespace.default.createElement(TimelineEmphasizedDot, { className: "ui-absolute ui-bottom-0 ui-top-0 ui-my-auto" }),
|
|
6127
|
+
dotStyle === "regular" && React__namespace.default.createElement(TimelineDot, { className: "ui-absolute ui-bottom-0 ui-top-0 ui-my-auto" })
|
|
6128
|
+
)
|
|
6129
|
+
),
|
|
6130
|
+
React__namespace.default.createElement(Box, { width: "full" }, children)
|
|
6131
6131
|
);
|
|
6132
6132
|
};
|
|
6133
6133
|
|