@luscii-healthtech/web-ui 64.0.5 → 64.1.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/esm/components/ActionCard/ActionCard.js +3 -3
- package/dist/esm/components/ActionCard/ActionCard.js.map +1 -1
- package/dist/esm/components/ActionCard/ActionIcon.js +17 -0
- package/dist/esm/components/ActionCard/ActionIcon.js.map +1 -1
- package/dist/esm/components/ActionCardDetailed/ActionCardDetailed.js +1 -1
- package/dist/esm/components/ActionCardDetailed/ActionCardDetailed.js.map +1 -1
- package/dist/esm/components/Dropzone/Dropzone.js +3 -4
- package/dist/esm/components/Dropzone/Dropzone.js.map +1 -1
- package/dist/esm/components/FileUpload/FileUpload.js +4 -4
- package/dist/esm/components/FileUpload/FileUpload.js.map +1 -1
- package/dist/esm/components/MediaPicker/MediaPicker.js +7 -6
- package/dist/esm/components/MediaPicker/MediaPicker.js.map +1 -1
- package/dist/esm/components/NaturalLanguageForm/NaturalLanguageForm.js +3 -4
- package/dist/esm/components/NaturalLanguageForm/NaturalLanguageForm.js.map +1 -1
- package/dist/esm/components/NaturalLanguageForm/NaturalLanguageFormInput.js +4 -3
- package/dist/esm/components/NaturalLanguageForm/NaturalLanguageFormInput.js.map +1 -1
- package/dist/esm/components/NaturalLanguageForm/NaturalLanguageFormInputSelect.js +4 -3
- package/dist/esm/components/NaturalLanguageForm/NaturalLanguageFormInputSelect.js.map +1 -1
- package/dist/esm/components/NaturalLanguageForm/NaturalLanguageFormSelect.js +4 -3
- package/dist/esm/components/NaturalLanguageForm/NaturalLanguageFormSelect.js.map +1 -1
- package/dist/esm/components/TextEditor/MentionList.js +3 -4
- package/dist/esm/components/TextEditor/MentionList.js.map +1 -1
- package/dist/index.development.js +40 -25
- package/dist/index.development.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/src/components/ActionCard/ActionCard.d.ts +10 -3
- package/dist/src/components/ActionCard/ActionIcon.d.ts +9 -3
- package/dist/src/components/ActionCardDetailed/ActionCardDetailed.d.ts +2 -2
- package/dist/src/components/Dropzone/Dropzone.d.ts +1 -1
- package/dist/src/components/FileUpload/FileUpload.d.ts +6 -2
- package/dist/src/components/MediaPicker/MediaPicker.d.ts +4 -2
- package/dist/src/components/NaturalLanguageForm/NaturalLanguageForm.d.ts +42 -29
- package/dist/src/components/NaturalLanguageForm/NaturalLanguageFormInput.d.ts +8 -12
- package/dist/src/components/NaturalLanguageForm/NaturalLanguageFormInputSelect.d.ts +12 -6
- package/dist/src/components/NaturalLanguageForm/NaturalLanguageFormSelect.d.ts +8 -9
- package/dist/src/components/TextEditor/MentionList.d.ts +4 -1
- package/dist/src/generated/components/ActionCard/ActionCard.d.ts +10 -3
- package/dist/src/generated/components/ActionCard/ActionIcon.d.ts +9 -3
- package/dist/src/generated/components/ActionCardDetailed/ActionCardDetailed.d.ts +2 -2
- package/dist/src/generated/components/Dropzone/Dropzone.d.ts +1 -1
- package/dist/src/generated/components/FileUpload/FileUpload.d.ts +6 -2
- package/dist/src/generated/components/MediaPicker/MediaPicker.d.ts +4 -2
- package/dist/src/generated/components/NaturalLanguageForm/NaturalLanguageForm.d.ts +42 -29
- package/dist/src/generated/components/NaturalLanguageForm/NaturalLanguageFormInput.d.ts +8 -12
- package/dist/src/generated/components/NaturalLanguageForm/NaturalLanguageFormInputSelect.d.ts +12 -6
- package/dist/src/generated/components/NaturalLanguageForm/NaturalLanguageFormSelect.d.ts +8 -9
- package/dist/src/generated/components/TextEditor/MentionList.d.ts +4 -1
- package/dist/stories/ActionCard.stories.d.ts +3 -0
- package/dist/stories/ActionCardDetailed.stories.d.ts +2 -0
- package/dist/stories/Dropzone.stories.d.ts +2 -2
- package/dist/stories/FileUpload.stories.d.ts +6 -1
- package/dist/stories/MediaPicker.stories.d.ts +3 -1
- package/dist/stories/NaturalLanguageForm.stories.d.ts +37 -24
- package/dist/stories/TextEditor.stories.d.ts +9 -0
- package/dist/web-ui-tailwind.css +3 -0
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type Ref } from "react";
|
|
1
2
|
import type { MentionNodeAttrs } from "@tiptap/extension-mention";
|
|
2
3
|
import type { SuggestionKeyDownProps, SuggestionProps } from "@tiptap/suggestion";
|
|
3
4
|
/**
|
|
@@ -27,4 +28,6 @@ export type MentionListRef = {
|
|
|
27
28
|
* imperatively by the Tiptap suggestion plugin via `ReactRenderer`, which is
|
|
28
29
|
* why keyboard handling is exposed through a ref instead of DOM focus.
|
|
29
30
|
*/
|
|
30
|
-
export declare const MentionList:
|
|
31
|
+
export declare const MentionList: ({ items, command, ref, }: SuggestionProps<TextEditorTag, MentionNodeAttrs> & {
|
|
32
|
+
ref?: Ref<MentionListRef>;
|
|
33
|
+
}) => import("react").JSX.Element | null;
|
|
@@ -66,3 +66,6 @@ export declare const WithAndWithoutActions: Story;
|
|
|
66
66
|
export declare const DraggableAndStatic: Story;
|
|
67
67
|
export declare const ListVariant: Story;
|
|
68
68
|
export declare const CompactVariant: Story;
|
|
69
|
+
export declare const MetadataWithIcon: Story;
|
|
70
|
+
/** The scheduled workflow cards from the Figma "workflow" frame. */
|
|
71
|
+
export declare const Workflows: Story;
|
|
@@ -82,3 +82,5 @@ export declare const CustomLabels: Story;
|
|
|
82
82
|
* header must keep that span at full size when a long title wraps.
|
|
83
83
|
*/
|
|
84
84
|
export declare const MeasurementWithLongTitle: Story;
|
|
85
|
+
/** The scheduled workflow detail cards from the Figma "workflow" frame. */
|
|
86
|
+
export declare const Workflows: Story;
|
|
@@ -8,10 +8,10 @@ declare const _default: {
|
|
|
8
8
|
url: string;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
-
component:
|
|
11
|
+
component: (props: import("react").HTMLProps<HTMLDivElement> & {
|
|
12
12
|
isHighlighted?: boolean;
|
|
13
13
|
className?: string;
|
|
14
|
-
}
|
|
14
|
+
}) => import("react").JSX.Element;
|
|
15
15
|
};
|
|
16
16
|
export default _default;
|
|
17
17
|
export declare const Default: StoryObj<typeof Dropzone>;
|
|
@@ -2,9 +2,14 @@ import { type StoryObj } from "@storybook/react-vite";
|
|
|
2
2
|
import { FileUpload } from "../src/components/FileUpload/FileUpload";
|
|
3
3
|
declare const _default: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: import("
|
|
5
|
+
component: (props: import("../src").FileProps) => import("react").JSX.Element;
|
|
6
6
|
};
|
|
7
7
|
export default _default;
|
|
8
8
|
type FileStory = StoryObj<typeof FileUpload>;
|
|
9
9
|
export declare const Primary: FileStory;
|
|
10
10
|
export declare const LeadingIcon: FileStory;
|
|
11
|
+
/**
|
|
12
|
+
* `FileUpload` accepts a `ref`, which points to the underlying (visually
|
|
13
|
+
* hidden) `<input type="file">`.
|
|
14
|
+
*/
|
|
15
|
+
export declare const WithRef: FileStory;
|
|
@@ -8,7 +8,9 @@ declare const meta: {
|
|
|
8
8
|
url: string;
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
-
component:
|
|
11
|
+
component: ({ ref, ...props }: MediaPickerProps & {
|
|
12
|
+
ref?: React.Ref<HTMLButtonElement>;
|
|
13
|
+
}) => import("react").JSX.Element;
|
|
12
14
|
};
|
|
13
15
|
export default meta;
|
|
14
16
|
type Story = StoryObj<typeof meta>;
|
|
@@ -2,30 +2,40 @@ import type { StoryObj } from "@storybook/react-vite";
|
|
|
2
2
|
import { NaturalLanguageForm } from "../src/components/NaturalLanguageForm/NaturalLanguageForm";
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
children: React.ReactNode;
|
|
9
|
-
} & import("react").RefAttributes<HTMLDivElement>> & {
|
|
10
|
-
Input: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "width"> & {
|
|
11
|
-
suffix?: string;
|
|
12
|
-
prefix?: string;
|
|
13
|
-
icon?: React.FC<import("../src").IconProps> | import("../src").IconKey;
|
|
14
|
-
width?: import("../src/types/general.types").FormFieldSize | [import("../src/types/general.types").FormFieldSize, import("../src/types/general.types").FormFieldSize?, import("../src/types/general.types").FormFieldSize?, import("../src/types/general.types").FormFieldSize?, import("../src/types/general.types").FormFieldSize?];
|
|
5
|
+
component: {
|
|
6
|
+
(props: {
|
|
7
|
+
className?: string;
|
|
15
8
|
height?: import("../src/system/Sizes").FormHeightNames;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
9
|
+
children: import("react").ReactNode;
|
|
10
|
+
ref?: import("react").Ref<HTMLDivElement>;
|
|
11
|
+
}): import("react").JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
} & {
|
|
14
|
+
Input: {
|
|
15
|
+
({ ref, ...props }: Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "width"> & {
|
|
16
|
+
suffix?: string;
|
|
17
|
+
prefix?: string;
|
|
18
|
+
icon?: React.FC<import("../src").IconProps> | import("../src").IconKey;
|
|
19
|
+
width?: import("../src/types/general.types").FormFieldSize | [import("../src/types/general.types").FormFieldSize, import("../src/types/general.types").FormFieldSize?, import("../src/types/general.types").FormFieldSize?, import("../src/types/general.types").FormFieldSize?, import("../src/types/general.types").FormFieldSize?];
|
|
20
|
+
height?: import("../src/system/Sizes").FormHeightNames;
|
|
21
|
+
isError?: boolean;
|
|
22
|
+
isClearIconVisible?: boolean;
|
|
23
|
+
onClickClearField?: () => void;
|
|
24
|
+
clearButtonLabel?: string;
|
|
25
|
+
} & import("react").RefAttributes<HTMLInputElement>): import("react").JSX.Element;
|
|
26
|
+
displayName: string;
|
|
27
|
+
};
|
|
28
|
+
Select: {
|
|
29
|
+
({ ref, ...props }: Omit<Omit<import("react").DetailedHTMLProps<import("react").SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, "ref">, "width"> & {
|
|
30
|
+
children?: React.ReactNode;
|
|
31
|
+
suffix?: string;
|
|
32
|
+
prefix?: string;
|
|
33
|
+
width?: import("../src/types/general.types").FormFieldSize | [import("../src/types/general.types").FormFieldSize, import("../src/types/general.types").FormFieldSize?, import("../src/types/general.types").FormFieldSize?, import("../src/types/general.types").FormFieldSize?, import("../src/types/general.types").FormFieldSize?];
|
|
34
|
+
height?: import("../src/system/Sizes").FormHeightNames;
|
|
35
|
+
isError?: boolean;
|
|
36
|
+
} & import("react").RefAttributes<HTMLSelectElement>): import("react").JSX.Element;
|
|
37
|
+
displayName: string;
|
|
38
|
+
};
|
|
29
39
|
Text: {
|
|
30
40
|
(props: Omit<any, "ref"> & {
|
|
31
41
|
as?: import("react").ElementType | undefined;
|
|
@@ -41,7 +51,10 @@ declare const meta: {
|
|
|
41
51
|
}): import("react").JSX.Element;
|
|
42
52
|
displayName: string;
|
|
43
53
|
};
|
|
44
|
-
InputSelect:
|
|
54
|
+
InputSelect: {
|
|
55
|
+
({ ref, ...props }: import("../src/components/InputSelect/InputSelect").InputSelectProps & import("react").RefAttributes<HTMLDivElement>): import("react").JSX.Element;
|
|
56
|
+
displayName: string;
|
|
57
|
+
} & {
|
|
45
58
|
Input: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "width"> & {
|
|
46
59
|
suffix?: string;
|
|
47
60
|
prefix?: string;
|
|
@@ -49,6 +49,15 @@ export declare const WithTags: {
|
|
|
49
49
|
label: string;
|
|
50
50
|
}[];
|
|
51
51
|
};
|
|
52
|
+
play: ({ canvas, userEvent }: import("storybook/internal/csf").PlayFunctionContext<import("@storybook/react").ReactRenderer, import("react").HTMLAttributes<HTMLDivElement> & {
|
|
53
|
+
onValueChange: (html: string, content: Record<string, unknown>, source: string) => void;
|
|
54
|
+
formats?: ("bold" | "link" | "strike" | "blockquote" | "code" | "header" | "list" | "italic" | "underline")[];
|
|
55
|
+
toolbar?: TextEditorToolbarOption[][];
|
|
56
|
+
defaultValue?: string;
|
|
57
|
+
placeholder?: string;
|
|
58
|
+
tags?: import("../src").TextEditorTag[];
|
|
59
|
+
popupContainer?: HTMLElement | null;
|
|
60
|
+
}>) => Promise<void>;
|
|
52
61
|
};
|
|
53
62
|
/**
|
|
54
63
|
* The TextEditor rendered inside a `side-modal` variant `ModalDialog` (a
|
package/dist/web-ui-tailwind.css
CHANGED
|
@@ -1631,6 +1631,9 @@ button, input:where([type='button'], [type='reset'], [type='submit']), ::file-se
|
|
|
1631
1631
|
.ui\:h-\[calc\(100vh-\(--spacing\(12\)\)\)\] {
|
|
1632
1632
|
height: calc(100vh - (calc(var(--ui-spacing) * 12)));
|
|
1633
1633
|
}
|
|
1634
|
+
.ui\:h-\[var\(--ui-semantic-size-xl\)\] {
|
|
1635
|
+
height: var(--ui-semantic-size-xl);
|
|
1636
|
+
}
|
|
1634
1637
|
.ui\:h-dvh {
|
|
1635
1638
|
height: 100dvh;
|
|
1636
1639
|
}
|