@luscii-healthtech/web-ui 60.4.0 → 61.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.
@@ -1,4 +1,4 @@
1
- import type { ComponentPropsWithoutRef, ComponentPropsWithRef, ElementType, ReactElement } from "react";
1
+ import type { ComponentPropsWithoutRef, ComponentPropsWithRef, ElementType } from "react";
2
2
  import { type SpacingKey, type SIZES } from "../../system/Sizes.js";
3
3
  import { type ELEVATION } from "../../system/Elevation.js";
4
4
  import { type BackgroundColor, type CursorOption } from "../../types/general.types.js";
@@ -38,5 +38,5 @@ export type Props<C extends ElementType> = ComponentPropsWithoutRef<C> & Undersc
38
38
  type PropsWithRef<C extends ElementType> = Props<C> & {
39
39
  ref?: PolymorphicRef<C>;
40
40
  };
41
- export declare const Box: <C extends ElementType = "div">(props: PropsWithRef<C>) => ReactElement | null;
41
+ export declare const Box: <C extends ElementType = "div">(props: PropsWithRef<C>) => import("react").JSX.Element;
42
42
  export {};
@@ -1,4 +1,4 @@
1
- import React, { type ComponentProps, type ComponentPropsWithRef, type ElementType, type ReactElement } from "react";
1
+ import React, { type ComponentProps, type ComponentPropsWithRef, type ElementType } from "react";
2
2
  import { type SpacingKey } from "../../system/Sizes.js";
3
3
  import { Box } from "../Box/Box";
4
4
  export { Props as StackProps };
@@ -41,4 +41,4 @@ type Props<C extends React.ElementType> = React.ComponentPropsWithoutRef<C> & {
41
41
  type PropsWithRef<C extends ElementType> = Props<C> & {
42
42
  ref?: PolymorphicRef<C>;
43
43
  };
44
- export declare const Stack: <C extends ElementType = "div">(props: PropsWithRef<C> & ComponentProps<typeof Box>) => ReactElement | null;
44
+ export declare const Stack: <C extends ElementType = "div">(props: PropsWithRef<C> & ComponentProps<typeof Box>) => React.JSX.Element;
@@ -1,7 +1,7 @@
1
- import { type ElementType, type ComponentPropsWithoutRef, type FC, type ReactNode } from "react";
1
+ import { type ElementType, type ComponentPropsWithRef, type FC, type ReactNode } from "react";
2
2
  type Type = "neutral" | "info" | "positive" | "negative" | "danger";
3
3
  type Size = "large" | "small";
4
- export type Props<C extends ElementType = "span"> = ComponentPropsWithoutRef<C> & {
4
+ export type Props<C extends ElementType = "span"> = ComponentPropsWithRef<C> & {
5
5
  children?: ReactNode;
6
6
  _as?: C;
7
7
  _type?: Type;
@@ -1,4 +1,4 @@
1
- import type { ComponentPropsWithoutRef, ComponentPropsWithRef, ElementType, ReactElement } from "react";
1
+ import type { ComponentPropsWithoutRef, ComponentPropsWithRef, ElementType } from "react";
2
2
  import { type SpacingKey, type SIZES } from "../../../system/Sizes.js";
3
3
  import { type ELEVATION } from "../../../system/Elevation.js";
4
4
  import { type BackgroundColor, type CursorOption } from "../../../types/general.types.js";
@@ -38,5 +38,5 @@ export type Props<C extends ElementType> = ComponentPropsWithoutRef<C> & Undersc
38
38
  type PropsWithRef<C extends ElementType> = Props<C> & {
39
39
  ref?: PolymorphicRef<C>;
40
40
  };
41
- export declare const Box: <C extends ElementType = "div">(props: PropsWithRef<C>) => ReactElement | null;
41
+ export declare const Box: <C extends ElementType = "div">(props: PropsWithRef<C>) => import("react").JSX.Element;
42
42
  export {};
@@ -1,4 +1,4 @@
1
- import React, { type ComponentProps, type ComponentPropsWithRef, type ElementType, type ReactElement } from "react";
1
+ import React, { type ComponentProps, type ComponentPropsWithRef, type ElementType } from "react";
2
2
  import { type SpacingKey } from "../../../system/Sizes.js";
3
3
  import { Box } from "../Box/Box";
4
4
  export { Props as StackProps };
@@ -41,4 +41,4 @@ type Props<C extends React.ElementType> = React.ComponentPropsWithoutRef<C> & {
41
41
  type PropsWithRef<C extends ElementType> = Props<C> & {
42
42
  ref?: PolymorphicRef<C>;
43
43
  };
44
- export declare const Stack: <C extends ElementType = "div">(props: PropsWithRef<C> & ComponentProps<typeof Box>) => ReactElement | null;
44
+ export declare const Stack: <C extends ElementType = "div">(props: PropsWithRef<C> & ComponentProps<typeof Box>) => React.JSX.Element;
@@ -1,7 +1,7 @@
1
- import { type ElementType, type ComponentPropsWithoutRef, type FC, type ReactNode } from "react";
1
+ import { type ElementType, type ComponentPropsWithRef, type FC, type ReactNode } from "react";
2
2
  type Type = "neutral" | "info" | "positive" | "negative" | "danger";
3
3
  type Size = "large" | "small";
4
- export type Props<C extends ElementType = "span"> = ComponentPropsWithoutRef<C> & {
4
+ export type Props<C extends ElementType = "span"> = ComponentPropsWithRef<C> & {
5
5
  children?: ReactNode;
6
6
  _as?: C;
7
7
  _type?: Type;
@@ -15,7 +15,7 @@ declare const meta: {
15
15
  cursor?: CursorOption;
16
16
  } & {
17
17
  ref?: import("react").ComponentPropsWithRef<C>["ref"] | undefined;
18
- }) => import("react").ReactElement | null;
18
+ }) => import("react").JSX.Element;
19
19
  parameters: {};
20
20
  };
21
21
  export default meta;
@@ -16,7 +16,7 @@ declare const meta: {
16
16
  divider?: React.ReactNode;
17
17
  } & {
18
18
  ref?: import("react").ComponentPropsWithRef<C>["ref"] | undefined;
19
- }) & ComponentProps<typeof Box>) => import("react").ReactElement | null;
19
+ }) & ComponentProps<typeof Box>) => import("react").JSX.Element;
20
20
  parameters: {
21
21
  backgrounds: {
22
22
  default: string;
@@ -16,3 +16,8 @@ export declare const Overview: Story;
16
16
  * This story uses the `children` prop to receive the text, instead of the `text` prop.
17
17
  */
18
18
  export declare const InTagGroup: Story;
19
+ /**
20
+ * `Tag` accepts a `ref`, which points to its root element (a `<span>` by default).
21
+ * Use it to measure the tag, or to anchor something like a popover to it.
22
+ */
23
+ export declare const WithRef: Story;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luscii-healthtech/web-ui",
3
- "version": "60.4.0",
3
+ "version": "61.0.0",
4
4
  "license": "MIT",
5
5
  "author": {
6
6
  "name": "Joris Janssen"
@@ -80,8 +80,8 @@
80
80
  "pull-coding-standards": "git -C .coding-standards pull --ff-only"
81
81
  },
82
82
  "peerDependencies": {
83
- "react": ">=18",
84
- "react-dom": ">=18"
83
+ "react": ">=19",
84
+ "react-dom": ">=19"
85
85
  },
86
86
  "devDependencies": {
87
87
  "@commitlint/cli": "^21.2.3",