@luscii-healthtech/web-ui 56.2.0 → 57.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 +3 -43
- 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/Box/Box.d.ts +1 -32
- package/dist/src/components/Stack/Stack.d.ts +1 -16
- package/dist/src/generated/components/Box/Box.d.ts +1 -32
- package/dist/src/generated/components/Stack/Stack.d.ts +1 -16
- package/dist/stories/ActionController.stories.d.ts +1 -16
- package/dist/stories/AsideLayout.stories.d.ts +1 -16
- package/dist/stories/Box.stories.d.ts +1 -16
- package/dist/stories/DetailsDisclosure.stories.d.ts +1 -464
- package/dist/stories/Divider.stories.d.ts +0 -32
- package/dist/stories/HoverIndicatorControl.stories.d.ts +1 -16
- package/dist/stories/PageWithCenteredContentLayout.stories.d.ts +3 -48
- package/dist/stories/Section.stories.d.ts +1 -16
- package/dist/stories/SplitViewLayout.stories.d.ts +1 -16
- package/dist/stories/Stack.stories.d.ts +0 -1
- package/dist/stories/Tabs.stories.d.ts +1 -16
- package/dist/stories/TimelineCardLayout.stories.d.ts +0 -16
- package/dist/stories/VerticalMenu.stories.d.ts +1 -16
- package/dist/web-ui.esm.js +1 -1
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,42 +2,11 @@ import type { ComponentPropsWithoutRef, ComponentPropsWithRef, ElementType, Reac
|
|
|
2
2
|
import { type SpacingKey, type SIZES } from "../../system/Sizes";
|
|
3
3
|
import { type ELEVATION } from "../../system/Elevation";
|
|
4
4
|
import { type BackgroundColor, type CursorOption } from "../../types/general.types";
|
|
5
|
-
type Size = keyof typeof SIZES;
|
|
6
5
|
declare const underscoredSpacingPropNames: readonly ["_p", "_pt", "_pr", "_pb", "_pl", "_px", "_py", "_m", "_mt", "_mr", "_mb", "_ml", "_mx", "_my"];
|
|
7
|
-
type SpacingProps = {
|
|
8
|
-
/** @deprecated Use `_p` instead, which uses the new Figma spacing tokens. */
|
|
9
|
-
p?: Size;
|
|
10
|
-
/** @deprecated Use `_pt` instead, which uses the new Figma spacing tokens. */
|
|
11
|
-
pt?: Size;
|
|
12
|
-
/** @deprecated Use `_pr` instead, which uses the new Figma spacing tokens. */
|
|
13
|
-
pr?: Size;
|
|
14
|
-
/** @deprecated Use `_pb` instead, which uses the new Figma spacing tokens. */
|
|
15
|
-
pb?: Size;
|
|
16
|
-
/** @deprecated Use `_pl` instead, which uses the new Figma spacing tokens. */
|
|
17
|
-
pl?: Size;
|
|
18
|
-
/** @deprecated Use `_px` instead, which uses the new Figma spacing tokens. */
|
|
19
|
-
px?: Size;
|
|
20
|
-
/** @deprecated Use `_py` instead, which uses the new Figma spacing tokens. */
|
|
21
|
-
py?: Size;
|
|
22
|
-
/** @deprecated Use `_m` instead, which uses the new Figma spacing tokens. */
|
|
23
|
-
m?: Size;
|
|
24
|
-
/** @deprecated Use `_mt` instead, which uses the new Figma spacing tokens. */
|
|
25
|
-
mt?: Size;
|
|
26
|
-
/** @deprecated Use `_mr` instead, which uses the new Figma spacing tokens. */
|
|
27
|
-
mr?: Size;
|
|
28
|
-
/** @deprecated Use `_mb` instead, which uses the new Figma spacing tokens. */
|
|
29
|
-
mb?: Size;
|
|
30
|
-
/** @deprecated Use `_ml` instead, which uses the new Figma spacing tokens. */
|
|
31
|
-
ml?: Size;
|
|
32
|
-
/** @deprecated Use `_mx` instead, which uses the new Figma spacing tokens. */
|
|
33
|
-
mx?: Size;
|
|
34
|
-
/** @deprecated Use `_my` instead, which uses the new Figma spacing tokens. */
|
|
35
|
-
my?: Size;
|
|
36
|
-
};
|
|
37
6
|
type UnderscoredSpacingProps = Partial<Record<(typeof underscoredSpacingPropNames)[number], SpacingKey>>;
|
|
38
7
|
type ElevationProp = keyof typeof ELEVATION;
|
|
39
8
|
type PolymorphicRef<C extends ElementType> = ComponentPropsWithRef<C>["ref"];
|
|
40
|
-
export type Props<C extends ElementType> = ComponentPropsWithoutRef<C> &
|
|
9
|
+
export type Props<C extends ElementType> = ComponentPropsWithoutRef<C> & UnderscoredSpacingProps & {
|
|
41
10
|
as?: C;
|
|
42
11
|
/**
|
|
43
12
|
* Adds a box-shadow to the element based on the design system
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React, { type ComponentProps, type ComponentPropsWithRef, type ElementType, type ReactElement } from "react";
|
|
2
|
-
import { type SpacingKey
|
|
2
|
+
import { type SpacingKey } from "../../system/Sizes";
|
|
3
3
|
import { Box } from "../Box/Box";
|
|
4
4
|
export { Props as StackProps };
|
|
5
|
-
type Size = keyof typeof SIZES;
|
|
6
5
|
type PolymorphicRef<C extends ElementType> = ComponentPropsWithRef<C>["ref"];
|
|
7
6
|
type Props<C extends React.ElementType> = React.ComponentPropsWithoutRef<C> & {
|
|
8
7
|
as?: C;
|
|
@@ -10,20 +9,6 @@ type Props<C extends React.ElementType> = React.ComponentPropsWithoutRef<C> & {
|
|
|
10
9
|
* Size of the gutter between items.
|
|
11
10
|
*/
|
|
12
11
|
_gap?: SpacingKey;
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated Use the `_gap` prop instead.
|
|
15
|
-
*
|
|
16
|
-
* Size of the gutter between items.
|
|
17
|
-
*
|
|
18
|
-
* - `xxs`: Extra extra small size of 6px.
|
|
19
|
-
* - `xs`: Extra small size of 8px.
|
|
20
|
-
* - `s`: Extra small size of 10px.
|
|
21
|
-
* - `m`: Medium size of 12px.
|
|
22
|
-
* - `l`: Large size of 16px.
|
|
23
|
-
* - `xl`: Extra large size of 24px.
|
|
24
|
-
* - `xxl`: Extra extra large size of 32px.
|
|
25
|
-
*/
|
|
26
|
-
gap?: Size;
|
|
27
12
|
/**
|
|
28
13
|
* Positioning of items along the Stack’s cross axis.
|
|
29
14
|
* The values are based on Tailwind's classnames and are therefore limited to the following:
|
|
@@ -2,42 +2,11 @@ import type { ComponentPropsWithoutRef, ComponentPropsWithRef, ElementType, Reac
|
|
|
2
2
|
import { type SpacingKey, type SIZES } from "../../../system/Sizes";
|
|
3
3
|
import { type ELEVATION } from "../../../system/Elevation";
|
|
4
4
|
import { type BackgroundColor, type CursorOption } from "../../../types/general.types";
|
|
5
|
-
type Size = keyof typeof SIZES;
|
|
6
5
|
declare const underscoredSpacingPropNames: readonly ["_p", "_pt", "_pr", "_pb", "_pl", "_px", "_py", "_m", "_mt", "_mr", "_mb", "_ml", "_mx", "_my"];
|
|
7
|
-
type SpacingProps = {
|
|
8
|
-
/** @deprecated Use `_p` instead, which uses the new Figma spacing tokens. */
|
|
9
|
-
p?: Size;
|
|
10
|
-
/** @deprecated Use `_pt` instead, which uses the new Figma spacing tokens. */
|
|
11
|
-
pt?: Size;
|
|
12
|
-
/** @deprecated Use `_pr` instead, which uses the new Figma spacing tokens. */
|
|
13
|
-
pr?: Size;
|
|
14
|
-
/** @deprecated Use `_pb` instead, which uses the new Figma spacing tokens. */
|
|
15
|
-
pb?: Size;
|
|
16
|
-
/** @deprecated Use `_pl` instead, which uses the new Figma spacing tokens. */
|
|
17
|
-
pl?: Size;
|
|
18
|
-
/** @deprecated Use `_px` instead, which uses the new Figma spacing tokens. */
|
|
19
|
-
px?: Size;
|
|
20
|
-
/** @deprecated Use `_py` instead, which uses the new Figma spacing tokens. */
|
|
21
|
-
py?: Size;
|
|
22
|
-
/** @deprecated Use `_m` instead, which uses the new Figma spacing tokens. */
|
|
23
|
-
m?: Size;
|
|
24
|
-
/** @deprecated Use `_mt` instead, which uses the new Figma spacing tokens. */
|
|
25
|
-
mt?: Size;
|
|
26
|
-
/** @deprecated Use `_mr` instead, which uses the new Figma spacing tokens. */
|
|
27
|
-
mr?: Size;
|
|
28
|
-
/** @deprecated Use `_mb` instead, which uses the new Figma spacing tokens. */
|
|
29
|
-
mb?: Size;
|
|
30
|
-
/** @deprecated Use `_ml` instead, which uses the new Figma spacing tokens. */
|
|
31
|
-
ml?: Size;
|
|
32
|
-
/** @deprecated Use `_mx` instead, which uses the new Figma spacing tokens. */
|
|
33
|
-
mx?: Size;
|
|
34
|
-
/** @deprecated Use `_my` instead, which uses the new Figma spacing tokens. */
|
|
35
|
-
my?: Size;
|
|
36
|
-
};
|
|
37
6
|
type UnderscoredSpacingProps = Partial<Record<(typeof underscoredSpacingPropNames)[number], SpacingKey>>;
|
|
38
7
|
type ElevationProp = keyof typeof ELEVATION;
|
|
39
8
|
type PolymorphicRef<C extends ElementType> = ComponentPropsWithRef<C>["ref"];
|
|
40
|
-
export type Props<C extends ElementType> = ComponentPropsWithoutRef<C> &
|
|
9
|
+
export type Props<C extends ElementType> = ComponentPropsWithoutRef<C> & UnderscoredSpacingProps & {
|
|
41
10
|
as?: C;
|
|
42
11
|
/**
|
|
43
12
|
* Adds a box-shadow to the element based on the design system
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React, { type ComponentProps, type ComponentPropsWithRef, type ElementType, type ReactElement } from "react";
|
|
2
|
-
import { type SpacingKey
|
|
2
|
+
import { type SpacingKey } from "../../../system/Sizes";
|
|
3
3
|
import { Box } from "../Box/Box";
|
|
4
4
|
export { Props as StackProps };
|
|
5
|
-
type Size = keyof typeof SIZES;
|
|
6
5
|
type PolymorphicRef<C extends ElementType> = ComponentPropsWithRef<C>["ref"];
|
|
7
6
|
type Props<C extends React.ElementType> = React.ComponentPropsWithoutRef<C> & {
|
|
8
7
|
as?: C;
|
|
@@ -10,20 +9,6 @@ type Props<C extends React.ElementType> = React.ComponentPropsWithoutRef<C> & {
|
|
|
10
9
|
* Size of the gutter between items.
|
|
11
10
|
*/
|
|
12
11
|
_gap?: SpacingKey;
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated Use the `_gap` prop instead.
|
|
15
|
-
*
|
|
16
|
-
* Size of the gutter between items.
|
|
17
|
-
*
|
|
18
|
-
* - `xxs`: Extra extra small size of 6px.
|
|
19
|
-
* - `xs`: Extra small size of 8px.
|
|
20
|
-
* - `s`: Extra small size of 10px.
|
|
21
|
-
* - `m`: Medium size of 12px.
|
|
22
|
-
* - `l`: Large size of 16px.
|
|
23
|
-
* - `xl`: Extra large size of 24px.
|
|
24
|
-
* - `xxl`: Extra extra large size of 32px.
|
|
25
|
-
*/
|
|
26
|
-
gap?: Size;
|
|
27
12
|
/**
|
|
28
13
|
* Positioning of items along the Stack’s cross axis.
|
|
29
14
|
* The values are based on Tailwind's classnames and are therefore limited to the following:
|
|
@@ -19,22 +19,7 @@ declare const meta: {
|
|
|
19
19
|
activeBackgroundColor?: import("../src/types/general.types").SemanticBackgroundColor;
|
|
20
20
|
actionVisibility?: "always" | "on-interaction";
|
|
21
21
|
children: import("react").ReactNode;
|
|
22
|
-
} & Omit<Omit<any, "ref"> & {
|
|
23
|
-
p?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
24
|
-
pt?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
25
|
-
pr?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
26
|
-
pb?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
27
|
-
pl?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
28
|
-
px?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
29
|
-
py?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
30
|
-
m?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
31
|
-
mt?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
32
|
-
mr?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
33
|
-
mb?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
34
|
-
ml?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
35
|
-
mx?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
36
|
-
my?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
37
|
-
} & Partial<Record<"_p" | "_pt" | "_pr" | "_pb" | "_pl" | "_px" | "_py" | "_m" | "_mt" | "_mr" | "_mb" | "_ml" | "_mx" | "_my", "none" | "xs" | "s" | "base" | "m" | "l" | "xl" | "2xl" | "3xl" | "4xl">> & {
|
|
22
|
+
} & Omit<Omit<any, "ref"> & Partial<Record<"_p" | "_pt" | "_pr" | "_pb" | "_pl" | "_px" | "_py" | "_m" | "_mt" | "_mr" | "_mb" | "_ml" | "_mx" | "_my", "none" | "xs" | "s" | "base" | "m" | "l" | "xl" | "2xl" | "3xl" | "4xl">> & {
|
|
38
23
|
as?: import("react").ElementType | undefined;
|
|
39
24
|
elevation?: "base" | "small" | "medium" | "large" | "drag" | "surface" | "extraLarge";
|
|
40
25
|
width?: "full" | "1/2" | "1/3" | "2/3" | "1/4" | "3/4" | keyof typeof import("../src/index").SIZES;
|
|
@@ -5,22 +5,7 @@ declare const meta: {
|
|
|
5
5
|
aside?: import("react").ReactNode;
|
|
6
6
|
} & {
|
|
7
7
|
children?: import("react").ReactNode | undefined;
|
|
8
|
-
} & Omit<any, "ref"> & {
|
|
9
|
-
p?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
10
|
-
pt?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
11
|
-
pr?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
12
|
-
pb?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
13
|
-
pl?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
14
|
-
px?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
15
|
-
py?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
16
|
-
m?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
17
|
-
mt?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
18
|
-
mr?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
19
|
-
mb?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
20
|
-
ml?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
21
|
-
mx?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
22
|
-
my?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
23
|
-
} & Partial<Record<"_p" | "_pt" | "_pr" | "_pb" | "_pl" | "_px" | "_py" | "_m" | "_mt" | "_mr" | "_mb" | "_ml" | "_mx" | "_my", "none" | "xs" | "s" | "base" | "m" | "l" | "xl" | "2xl" | "3xl" | "4xl">> & {
|
|
8
|
+
} & Omit<any, "ref"> & Partial<Record<"_p" | "_pt" | "_pr" | "_pb" | "_pl" | "_px" | "_py" | "_m" | "_mt" | "_mr" | "_mb" | "_ml" | "_mx" | "_my", "none" | "xs" | "s" | "base" | "m" | "l" | "xl" | "2xl" | "3xl" | "4xl">> & {
|
|
24
9
|
as?: import("react").ElementType | undefined;
|
|
25
10
|
elevation?: "base" | "small" | "medium" | "large" | "drag" | "surface" | "extraLarge";
|
|
26
11
|
width?: "full" | "1/2" | "1/3" | "2/3" | "1/4" | "3/4" | keyof typeof import("../src").SIZES;
|
|
@@ -3,22 +3,7 @@ import { type ComponentProps } from "react";
|
|
|
3
3
|
import { type BackgroundColor, type CursorOption } from "../src/types/general.types";
|
|
4
4
|
declare const meta: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: <C extends import("react").ElementType = "div">(props: import("react").PropsWithoutRef<ComponentProps<C>> & {
|
|
7
|
-
p?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
8
|
-
pt?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
9
|
-
pr?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
10
|
-
pb?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
11
|
-
pl?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
12
|
-
px?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
13
|
-
py?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
14
|
-
m?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
15
|
-
mt?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
16
|
-
mr?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
17
|
-
mb?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
18
|
-
ml?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
19
|
-
mx?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
20
|
-
my?: "none" | "xs" | "s" | "m" | "l" | "xl" | "xxxxs" | "xxxs" | "xxs" | "xxl";
|
|
21
|
-
} & Partial<Record<"_p" | "_pt" | "_pr" | "_pb" | "_pl" | "_px" | "_py" | "_m" | "_mt" | "_mr" | "_mb" | "_ml" | "_mx" | "_my", "none" | "xs" | "s" | "base" | "m" | "l" | "xl" | "2xl" | "3xl" | "4xl">> & {
|
|
6
|
+
component: <C extends import("react").ElementType = "div">(props: import("react").PropsWithoutRef<ComponentProps<C>> & Partial<Record<"_p" | "_pt" | "_pr" | "_pb" | "_pl" | "_px" | "_py" | "_m" | "_mt" | "_mr" | "_mb" | "_ml" | "_mx" | "_my", "none" | "xs" | "s" | "base" | "m" | "l" | "xl" | "2xl" | "3xl" | "4xl">> & {
|
|
22
7
|
as?: C | undefined;
|
|
23
8
|
elevation?: "base" | "small" | "medium" | "large" | "drag" | "surface" | "extraLarge";
|
|
24
9
|
width?: "full" | "1/2" | "1/3" | "2/3" | "1/4" | "3/4" | keyof typeof import("../src/system/Sizes").SIZES;
|