@luscii-healthtech/web-ui 46.2.0 → 46.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.
- package/dist/index.development.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/src/components/NaturalLanguageForm/NaturalLanguageForm.d.ts +16 -1
- package/dist/src/components/NaturalLanguageForm/NaturalLanguageFormText.d.ts +3 -3
- package/dist/src/components/Tabs/Tabs.d.ts +2 -2
- package/dist/src/components/Text/Text.d.ts +1 -1
- package/dist/src/components/Tooltip/Tooltip.d.ts +3 -3
- package/dist/src/generated/components/NaturalLanguageForm/NaturalLanguageForm.d.ts +16 -1
- package/dist/src/generated/components/NaturalLanguageForm/NaturalLanguageFormText.d.ts +3 -3
- package/dist/src/generated/components/Tabs/Tabs.d.ts +2 -2
- package/dist/src/generated/components/Text/Text.d.ts +1 -1
- package/dist/src/generated/components/Tooltip/Tooltip.d.ts +3 -3
- package/dist/stories/NaturalLanguageForm.stories.d.ts +16 -1
- package/dist/stories/Tabs.stories.d.ts +1 -1
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -35,7 +35,22 @@ declare const NaturalLanguageFormWithSubComponents: React.ForwardRefExoticCompon
|
|
|
35
35
|
isError?: boolean;
|
|
36
36
|
} & React.RefAttributes<HTMLSelectElement>, "ref"> & React.RefAttributes<HTMLSelectElement>>;
|
|
37
37
|
Text: {
|
|
38
|
-
(props:
|
|
38
|
+
(props: Omit<any, "ref"> & {
|
|
39
|
+
as?: React.ElementType | undefined;
|
|
40
|
+
text?: string;
|
|
41
|
+
type?: import("../Text/Text").TextStyle;
|
|
42
|
+
variant?: import("../Text/Text").TextStyle;
|
|
43
|
+
inline?: boolean;
|
|
44
|
+
color?: import("../Text/Text").TextColor;
|
|
45
|
+
hoverColor?: import("../Text/Text").TextHoverColor;
|
|
46
|
+
hoverInGroup?: boolean;
|
|
47
|
+
className?: string;
|
|
48
|
+
containsDangerousHtml?: boolean;
|
|
49
|
+
truncate?: boolean;
|
|
50
|
+
clampLines?: boolean;
|
|
51
|
+
capitalize?: boolean;
|
|
52
|
+
"data-test-id"?: string;
|
|
53
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
39
54
|
displayName: string;
|
|
40
55
|
};
|
|
41
56
|
InputSelect: React.ForwardRefExoticComponent<Omit<import("../InputSelect/InputSelect").InputSelectProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>> & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import {
|
|
3
|
-
type Props =
|
|
1
|
+
import type { ElementType } from "react";
|
|
2
|
+
import { type LegacyTextProps } from "../Text/Text";
|
|
3
|
+
type Props = LegacyTextProps<ElementType>;
|
|
4
4
|
export declare const NaturalLanguageFormText: {
|
|
5
5
|
(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
displayName: string;
|
|
@@ -2,14 +2,14 @@ import * as React from "react";
|
|
|
2
2
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import { Box } from "../Box/Box";
|
|
5
|
-
import {
|
|
5
|
+
import { type LegacyTextProps } from "../Text/Text";
|
|
6
6
|
export declare function cn(...inputs: classNames.ArgumentArray): string;
|
|
7
7
|
declare const TabsRoot: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
8
|
declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
9
|
declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
10
10
|
declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
11
|
declare const TabsPadding: React.FC<React.ComponentProps<typeof Box<"div">>>;
|
|
12
|
-
declare const TabLabelText: React.FC<
|
|
12
|
+
declare const TabLabelText: React.FC<LegacyTextProps<"span">>;
|
|
13
13
|
type StaticComponents = {
|
|
14
14
|
Root: typeof TabsRoot;
|
|
15
15
|
List: typeof TabsList;
|
|
@@ -72,7 +72,7 @@ export type TextStyle = keyof typeof allowedTextStyles;
|
|
|
72
72
|
* Legacy props for the Text component.
|
|
73
73
|
* Used when variant is one of the old TextStyle values or undefined.
|
|
74
74
|
*/
|
|
75
|
-
type LegacyTextProps<C extends ElementType> = ComponentPropsWithoutRef<C> & {
|
|
75
|
+
export type LegacyTextProps<C extends ElementType> = ComponentPropsWithoutRef<C> & {
|
|
76
76
|
as?: C;
|
|
77
77
|
/**
|
|
78
78
|
* @deprecated
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as RadixTooltip from "@radix-ui/react-tooltip";
|
|
2
|
-
import { type
|
|
3
|
-
import {
|
|
2
|
+
import { type FC } from "react";
|
|
3
|
+
import { type LegacyTextProps } from "../Text/Text";
|
|
4
4
|
type StaticComponents = {
|
|
5
5
|
Trigger: typeof RadixTooltip.Trigger;
|
|
6
6
|
Root: typeof RadixTooltip.Root;
|
|
@@ -15,7 +15,7 @@ type ContentProps = {
|
|
|
15
15
|
*/
|
|
16
16
|
container?: RadixTooltip.TooltipPortalProps["container"];
|
|
17
17
|
} & RadixTooltip.TooltipContentProps;
|
|
18
|
-
declare const TooltipText: FC<
|
|
18
|
+
declare const TooltipText: FC<LegacyTextProps<"span">>;
|
|
19
19
|
/**
|
|
20
20
|
* A collection of components to construct a tooltip.
|
|
21
21
|
*
|
|
@@ -35,7 +35,22 @@ declare const NaturalLanguageFormWithSubComponents: React.ForwardRefExoticCompon
|
|
|
35
35
|
isError?: boolean;
|
|
36
36
|
} & React.RefAttributes<HTMLSelectElement>, "ref"> & React.RefAttributes<HTMLSelectElement>>;
|
|
37
37
|
Text: {
|
|
38
|
-
(props:
|
|
38
|
+
(props: Omit<any, "ref"> & {
|
|
39
|
+
as?: React.ElementType | undefined;
|
|
40
|
+
text?: string;
|
|
41
|
+
type?: import("../Text/Text").TextStyle;
|
|
42
|
+
variant?: import("../Text/Text").TextStyle;
|
|
43
|
+
inline?: boolean;
|
|
44
|
+
color?: import("../Text/Text").TextColor;
|
|
45
|
+
hoverColor?: import("../Text/Text").TextHoverColor;
|
|
46
|
+
hoverInGroup?: boolean;
|
|
47
|
+
className?: string;
|
|
48
|
+
containsDangerousHtml?: boolean;
|
|
49
|
+
truncate?: boolean;
|
|
50
|
+
clampLines?: boolean;
|
|
51
|
+
capitalize?: boolean;
|
|
52
|
+
"data-test-id"?: string;
|
|
53
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
39
54
|
displayName: string;
|
|
40
55
|
};
|
|
41
56
|
InputSelect: React.ForwardRefExoticComponent<Omit<import("../InputSelect/InputSelect").InputSelectProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>> & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import {
|
|
3
|
-
type Props =
|
|
1
|
+
import type { ElementType } from "react";
|
|
2
|
+
import { type LegacyTextProps } from "../Text/Text";
|
|
3
|
+
type Props = LegacyTextProps<ElementType>;
|
|
4
4
|
export declare const NaturalLanguageFormText: {
|
|
5
5
|
(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
displayName: string;
|
|
@@ -2,14 +2,14 @@ import * as React from "react";
|
|
|
2
2
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import { Box } from "../Box/Box";
|
|
5
|
-
import {
|
|
5
|
+
import { type LegacyTextProps } from "../Text/Text";
|
|
6
6
|
export declare function cn(...inputs: classNames.ArgumentArray): string;
|
|
7
7
|
declare const TabsRoot: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
8
8
|
declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
9
|
declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
10
10
|
declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
11
11
|
declare const TabsPadding: React.FC<React.ComponentProps<typeof Box<"div">>>;
|
|
12
|
-
declare const TabLabelText: React.FC<
|
|
12
|
+
declare const TabLabelText: React.FC<LegacyTextProps<"span">>;
|
|
13
13
|
type StaticComponents = {
|
|
14
14
|
Root: typeof TabsRoot;
|
|
15
15
|
List: typeof TabsList;
|
|
@@ -72,7 +72,7 @@ export type TextStyle = keyof typeof allowedTextStyles;
|
|
|
72
72
|
* Legacy props for the Text component.
|
|
73
73
|
* Used when variant is one of the old TextStyle values or undefined.
|
|
74
74
|
*/
|
|
75
|
-
type LegacyTextProps<C extends ElementType> = ComponentPropsWithoutRef<C> & {
|
|
75
|
+
export type LegacyTextProps<C extends ElementType> = ComponentPropsWithoutRef<C> & {
|
|
76
76
|
as?: C;
|
|
77
77
|
/**
|
|
78
78
|
* @deprecated
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as RadixTooltip from "@radix-ui/react-tooltip";
|
|
2
|
-
import { type
|
|
3
|
-
import {
|
|
2
|
+
import { type FC } from "react";
|
|
3
|
+
import { type LegacyTextProps } from "../Text/Text";
|
|
4
4
|
type StaticComponents = {
|
|
5
5
|
Trigger: typeof RadixTooltip.Trigger;
|
|
6
6
|
Root: typeof RadixTooltip.Root;
|
|
@@ -15,7 +15,7 @@ type ContentProps = {
|
|
|
15
15
|
*/
|
|
16
16
|
container?: RadixTooltip.TooltipPortalProps["container"];
|
|
17
17
|
} & RadixTooltip.TooltipContentProps;
|
|
18
|
-
declare const TooltipText: FC<
|
|
18
|
+
declare const TooltipText: FC<LegacyTextProps<"span">>;
|
|
19
19
|
/**
|
|
20
20
|
* A collection of components to construct a tooltip.
|
|
21
21
|
*
|
|
@@ -26,7 +26,22 @@ declare const meta: {
|
|
|
26
26
|
isError?: boolean;
|
|
27
27
|
} & import("react").RefAttributes<HTMLSelectElement>, "ref"> & import("react").RefAttributes<HTMLSelectElement>>;
|
|
28
28
|
Text: {
|
|
29
|
-
(props:
|
|
29
|
+
(props: Omit<any, "ref"> & {
|
|
30
|
+
as?: import("react").ElementType | undefined;
|
|
31
|
+
text?: string;
|
|
32
|
+
type?: import("../src/components/Text/Text").TextStyle;
|
|
33
|
+
variant?: import("../src/components/Text/Text").TextStyle;
|
|
34
|
+
inline?: boolean;
|
|
35
|
+
color?: import("../src/components/Text/Text").TextColor;
|
|
36
|
+
hoverColor?: import("../src/components/Text/Text").TextHoverColor;
|
|
37
|
+
hoverInGroup?: boolean;
|
|
38
|
+
className?: string;
|
|
39
|
+
containsDangerousHtml?: boolean;
|
|
40
|
+
truncate?: boolean;
|
|
41
|
+
clampLines?: boolean;
|
|
42
|
+
capitalize?: boolean;
|
|
43
|
+
"data-test-id"?: string;
|
|
44
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
30
45
|
displayName: string;
|
|
31
46
|
};
|
|
32
47
|
InputSelect: import("react").ForwardRefExoticComponent<Omit<import("../src/components/InputSelect/InputSelect").InputSelectProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
@@ -18,7 +18,7 @@ declare const meta: {
|
|
|
18
18
|
hoverBackgroundColor?: import("../src/types/general.types").BackgroundColor;
|
|
19
19
|
cursor?: import("../src/types/general.types").CursorOption;
|
|
20
20
|
}>;
|
|
21
|
-
"Tabs.LabelText": React.FC<import("../src/components/Text/Text").
|
|
21
|
+
"Tabs.LabelText": React.FC<import("../src/components/Text/Text").LegacyTextProps<"span">>;
|
|
22
22
|
};
|
|
23
23
|
tags: string[];
|
|
24
24
|
};
|