@luscii-healthtech/web-ui 38.0.1 → 38.0.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.
- package/dist/components/Text/Text.d.ts +4 -5
- package/dist/components/Timeline/TimelineStep.d.ts +3 -3
- package/dist/index.development.js +1 -1
- 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 +4 -0
- package/dist/web-ui.esm.js +1 -1
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { type RestPropped } from "../../types/general.types";
|
|
1
|
+
import React, { type FC } from "react";
|
|
3
2
|
import "./Text.css";
|
|
4
3
|
/**
|
|
5
4
|
* One might argue that we're duplicating strings in this file.
|
|
@@ -53,7 +52,7 @@ declare const allowedHoverColors: {
|
|
|
53
52
|
export type TextColor = keyof typeof allowedColors;
|
|
54
53
|
export type TextHoverColor = keyof typeof allowedHoverColors;
|
|
55
54
|
export type TextStyle = keyof typeof allowedTextStyles;
|
|
56
|
-
|
|
55
|
+
type Props = React.ComponentPropsWithoutRef<"p"> & {
|
|
57
56
|
/**
|
|
58
57
|
* @deprecated
|
|
59
58
|
* Use `children` instead, as you would with a regular `<p>` tag.
|
|
@@ -122,6 +121,6 @@ export interface TextProps extends RestPropped, React.ComponentPropsWithoutRef<"
|
|
|
122
121
|
*/
|
|
123
122
|
clampLines?: boolean;
|
|
124
123
|
"data-test-id"?: string;
|
|
125
|
-
}
|
|
126
|
-
export declare const Text:
|
|
124
|
+
};
|
|
125
|
+
export declare const Text: FC<Props>;
|
|
127
126
|
export default Text;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React, { type RefAttributes } from "react";
|
|
2
|
-
import {
|
|
1
|
+
import React, { type ComponentProps, type RefAttributes } from "react";
|
|
2
|
+
import { Text } from "../Text/Text";
|
|
3
3
|
export interface TimelineStepProps extends RefAttributes<HTMLDivElement> {
|
|
4
4
|
key: string | number;
|
|
5
5
|
type?: "wide" | "base" | "withoutDot" | "emptyDot";
|
|
6
|
-
title?: string |
|
|
6
|
+
title?: string | ComponentProps<typeof Text>;
|
|
7
7
|
content: React.ReactNode;
|
|
8
8
|
dataTestId?: string | number;
|
|
9
9
|
}
|
|
@@ -6396,7 +6396,7 @@ const VerticalMenu = (props) => {
|
|
|
6396
6396
|
{ value: { variant } },
|
|
6397
6397
|
React__namespace.default.createElement(
|
|
6398
6398
|
Stack,
|
|
6399
|
-
Object.assign({ as: "div", px: "xxs", py: "m", align: "normal", className: classNames__default.default("ui-h-full ui-text-slate-800", className) }, rest),
|
|
6399
|
+
Object.assign({ as: "div", px: "xxs", py: "m", align: "normal", className: classNames__default.default("ui-h-full ui-max-w-full ui-text-slate-800", className) }, rest),
|
|
6400
6400
|
header && React__namespace.default.createElement("div", null, header),
|
|
6401
6401
|
title && React__namespace.default.createElement(Text, { className: classNames__default.default({ "ui-px-m": variant === "primary" }, "ui-pb-m ui-pt-xs"), variant: "lg-strong" }, title),
|
|
6402
6402
|
React__namespace.default.createElement("div", null, props.children),
|