@luscii-healthtech/web-ui 42.13.2 → 43.0.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/index.development.js +39 -13
- 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/Page/CRUDPage.types.d.ts +5 -4
- package/dist/src/components/PageWithCenteredContentLayout/PageWithCenteredContentLayout.d.ts +5 -0
- package/dist/src/components/Stack/Stack.d.ts +1 -1
- package/dist/src/components/Steps/Steps.d.ts +10 -8
- package/dist/src/components/Steps/subcomponents/Step.d.ts +7 -0
- package/dist/stories/Divider.stories.d.ts +2 -2
- package/dist/stories/PageWithCenteredContentLayout.stories.d.ts +2 -0
- package/dist/stories/Steps.stories.d.ts +20 -8
- package/dist/stories/TimelineCardLayout.stories.d.ts +1 -1
- package/dist/web-ui-tailwind.css +2 -9
- package/dist/web-ui.esm.js +1 -1
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
- package/dist/src/components/Steps/Step.d.ts +0 -9
- package/dist/stories/Step.stories.d.ts +0 -25
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { BaseButtonProps } from "../ButtonV2/ButtonProps.type";
|
|
2
2
|
import type { PageHeaderProps } from "../PageHeader";
|
|
3
|
-
import type { StepsProps } from "../Steps/Steps";
|
|
4
3
|
type CRUDPageButtonProps = Pick<BaseButtonProps, "onClick" | "text" | "isDisabled" | "form" | "type">;
|
|
5
4
|
type CRUDPageTitle = {
|
|
6
5
|
text: string;
|
|
@@ -32,9 +31,11 @@ type CRUDPagePropsWithoutHeaderOrTitle = {
|
|
|
32
31
|
isSubmitting?: boolean;
|
|
33
32
|
children?: React.ReactNode;
|
|
34
33
|
steps?: {
|
|
35
|
-
titles:
|
|
36
|
-
currentStep:
|
|
37
|
-
localization:
|
|
34
|
+
titles: Array<string>;
|
|
35
|
+
currentStep: number;
|
|
36
|
+
localization: {
|
|
37
|
+
step: string;
|
|
38
|
+
};
|
|
38
39
|
};
|
|
39
40
|
/**
|
|
40
41
|
* When `true` will set the height of the
|
package/dist/src/components/PageWithCenteredContentLayout/PageWithCenteredContentLayout.d.ts
CHANGED
|
@@ -16,6 +16,11 @@ type HeaderProps = ComponentProps<typeof Box> & {
|
|
|
16
16
|
* A 36x36 slot for an action (usually a SecondaryIconButton) to be placed on the right side of the header.
|
|
17
17
|
*/
|
|
18
18
|
rightActionSlot?: ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* In some cases you want the action slots to be aligned differently than centered.
|
|
21
|
+
* @default "center"
|
|
22
|
+
*/
|
|
23
|
+
slotsAlignment?: "start" | "center";
|
|
19
24
|
};
|
|
20
25
|
declare const Header: FC<HeaderProps>;
|
|
21
26
|
declare const Main: FC<ComponentProps<typeof Box>>;
|
|
@@ -26,7 +26,7 @@ type Props<C extends React.ElementType> = React.ComponentPropsWithoutRef<C> & {
|
|
|
26
26
|
* Positioning of items along the Stack’s main axis.
|
|
27
27
|
* The values are based on Tailwind's classnames and are therefore limited to the following:
|
|
28
28
|
*/
|
|
29
|
-
justify?: "normal" | "start" | "end" | "center" | "between" | "around" | "evenly";
|
|
29
|
+
justify?: "normal" | "start" | "end" | "center" | "between" | "around" | "evenly" | "stretch";
|
|
30
30
|
/**
|
|
31
31
|
* Positioning of items along the Stack’s x (horizontal) or y (vertical) axis
|
|
32
32
|
*/
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Step } from "./subcomponents/Step";
|
|
3
|
+
type Props = {
|
|
4
|
+
children?: React.ReactNode;
|
|
4
5
|
className?: string;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
export declare const Steps:
|
|
6
|
+
};
|
|
7
|
+
type StaticProperties = {
|
|
8
|
+
Step: typeof Step;
|
|
9
|
+
};
|
|
10
|
+
export declare const Steps: React.FC<Props> & StaticProperties;
|
|
11
|
+
export {};
|
|
@@ -11,7 +11,7 @@ declare const meta: {
|
|
|
11
11
|
as?: import("react").ElementType | undefined;
|
|
12
12
|
gap?: "none" | "s" | "xs" | "xl" | "m" | "xxxxs" | "xxxs" | "xxs" | "l" | "xxl";
|
|
13
13
|
align?: "start" | "end" | "center" | "baseline" | "stretch" | "normal";
|
|
14
|
-
justify?: "normal" | "start" | "end" | "center" | "between" | "around" | "evenly";
|
|
14
|
+
justify?: "normal" | "start" | "end" | "center" | "between" | "around" | "evenly" | "stretch";
|
|
15
15
|
axis?: "x" | "y";
|
|
16
16
|
reverse?: boolean;
|
|
17
17
|
wrap?: boolean;
|
|
@@ -35,7 +35,7 @@ declare const meta: {
|
|
|
35
35
|
as?: import("react").ElementType | undefined;
|
|
36
36
|
gap?: "none" | "s" | "xs" | "xl" | "m" | "xxxxs" | "xxxs" | "xxs" | "l" | "xxl";
|
|
37
37
|
align?: "start" | "end" | "center" | "baseline" | "stretch" | "normal";
|
|
38
|
-
justify?: "normal" | "start" | "end" | "center" | "between" | "around" | "evenly";
|
|
38
|
+
justify?: "normal" | "start" | "end" | "center" | "between" | "around" | "evenly" | "stretch";
|
|
39
39
|
axis?: "x" | "y";
|
|
40
40
|
reverse?: boolean;
|
|
41
41
|
wrap?: boolean;
|
|
@@ -27,6 +27,7 @@ declare const meta: {
|
|
|
27
27
|
} & {
|
|
28
28
|
leftActionSlot?: import("react").ReactNode;
|
|
29
29
|
rightActionSlot?: import("react").ReactNode;
|
|
30
|
+
slotsAlignment?: "start" | "center";
|
|
30
31
|
}>;
|
|
31
32
|
Main: import("react").FC<Omit<any, "ref"> & Partial<Record<"p" | "m" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "mt" | "mr" | "mb" | "ml" | "mx" | "my", "none" | "s" | "xs" | "xl" | "m" | "xxxxs" | "xxxs" | "xxs" | "l" | "xxl">> & {
|
|
32
33
|
as?: import("react").ElementType | undefined;
|
|
@@ -49,3 +50,4 @@ export default meta;
|
|
|
49
50
|
type Story = StoryObj<typeof meta>;
|
|
50
51
|
export declare const Simple: Story;
|
|
51
52
|
export declare const Overflow: Story;
|
|
53
|
+
export declare const ActionsAlignment: Story;
|
|
@@ -1,14 +1,26 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
title: string;
|
|
3
|
-
component:
|
|
3
|
+
component: import("react").FC<{
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
}> & {
|
|
7
|
+
Step: typeof import("../src/components/Steps/subcomponents/Step").Step;
|
|
8
|
+
};
|
|
9
|
+
subcomponents: {
|
|
10
|
+
Step: import("react").FC<{
|
|
11
|
+
title: string;
|
|
12
|
+
subtitle?: string;
|
|
13
|
+
state: "completed" | "current" | "upcoming";
|
|
14
|
+
}>;
|
|
15
|
+
};
|
|
4
16
|
};
|
|
5
17
|
export default _default;
|
|
6
18
|
export declare const Full: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
19
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
};
|
|
21
|
+
export declare const WithSubcomponents: {
|
|
22
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
};
|
|
24
|
+
export declare const WithSubcomponentsAndSubtitles: {
|
|
25
|
+
render: () => import("react/jsx-runtime").JSX.Element;
|
|
14
26
|
};
|
|
@@ -8,7 +8,7 @@ declare const meta: {
|
|
|
8
8
|
as?: import("react").ElementType | undefined;
|
|
9
9
|
gap?: "none" | "s" | "xs" | "xl" | "m" | "xxxxs" | "xxxs" | "xxs" | "l" | "xxl";
|
|
10
10
|
align?: "start" | "end" | "center" | "baseline" | "stretch" | "normal";
|
|
11
|
-
justify?: "normal" | "start" | "end" | "center" | "between" | "around" | "evenly";
|
|
11
|
+
justify?: "normal" | "start" | "end" | "center" | "between" | "around" | "evenly" | "stretch";
|
|
12
12
|
axis?: "x" | "y";
|
|
13
13
|
reverse?: boolean;
|
|
14
14
|
wrap?: boolean;
|
package/dist/web-ui-tailwind.css
CHANGED
|
@@ -1591,8 +1591,8 @@ button, input:where([type='button'], [type='reset'], [type='submit']), ::file-se
|
|
|
1591
1591
|
.ui\:justify-start {
|
|
1592
1592
|
justify-content: flex-start;
|
|
1593
1593
|
}
|
|
1594
|
-
.ui\:justify-
|
|
1595
|
-
justify-
|
|
1594
|
+
.ui\:justify-stretch {
|
|
1595
|
+
justify-content: stretch;
|
|
1596
1596
|
}
|
|
1597
1597
|
.ui\:gap-2 {
|
|
1598
1598
|
gap: calc(var(--ui-spacing) * 2);
|
|
@@ -1711,13 +1711,6 @@ button, input:where([type='button'], [type='reset'], [type='submit']), ::file-se
|
|
|
1711
1711
|
margin-inline-end: calc(calc(var(--ui-spacing) * 4) * calc(1 - var(--tw-space-x-reverse)));
|
|
1712
1712
|
}
|
|
1713
1713
|
}
|
|
1714
|
-
.ui\:space-x-6 {
|
|
1715
|
-
:where(& > :not(:last-child)) {
|
|
1716
|
-
--tw-space-x-reverse: 0;
|
|
1717
|
-
margin-inline-start: calc(calc(var(--ui-spacing) * 6) * var(--tw-space-x-reverse));
|
|
1718
|
-
margin-inline-end: calc(calc(var(--ui-spacing) * 6) * calc(1 - var(--tw-space-x-reverse)));
|
|
1719
|
-
}
|
|
1720
|
-
}
|
|
1721
1714
|
.ui\:space-x-8 {
|
|
1722
1715
|
:where(& > :not(:last-child)) {
|
|
1723
1716
|
--tw-space-x-reverse: 0;
|