@luscii-healthtech/web-ui 62.0.2 → 62.0.3

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.
Files changed (57) hide show
  1. package/dist/esm/components/ButtonGroup/ButtonGroup.js +4 -5
  2. package/dist/esm/components/ButtonGroup/ButtonGroup.js.map +1 -1
  3. package/dist/esm/components/ButtonV2/ButtonV2.js +4 -4
  4. package/dist/esm/components/ButtonV2/ButtonV2.js.map +1 -1
  5. package/dist/esm/components/ButtonV2/PrimaryButton.js +5 -4
  6. package/dist/esm/components/ButtonV2/PrimaryButton.js.map +1 -1
  7. package/dist/esm/components/ButtonV2/PrimaryIconButton.js +4 -5
  8. package/dist/esm/components/ButtonV2/PrimaryIconButton.js.map +1 -1
  9. package/dist/esm/components/ButtonV2/SecondaryButton.js +4 -5
  10. package/dist/esm/components/ButtonV2/SecondaryButton.js.map +1 -1
  11. package/dist/esm/components/ButtonV2/SecondaryIconButton.js +4 -5
  12. package/dist/esm/components/ButtonV2/SecondaryIconButton.js.map +1 -1
  13. package/dist/esm/components/ButtonV2/TertiaryButton.js +5 -4
  14. package/dist/esm/components/ButtonV2/TertiaryButton.js.map +1 -1
  15. package/dist/esm/components/ButtonV2/TertiaryIconButton.js +4 -5
  16. package/dist/esm/components/ButtonV2/TertiaryIconButton.js.map +1 -1
  17. package/dist/esm/components/DragHandle/DragHandle.js +3 -4
  18. package/dist/esm/components/DragHandle/DragHandle.js.map +1 -1
  19. package/dist/esm/components/DropdownTrigger/DropdownTrigger.js +3 -5
  20. package/dist/esm/components/DropdownTrigger/DropdownTrigger.js.map +1 -1
  21. package/dist/index.development.js +38 -37
  22. package/dist/index.development.js.map +1 -1
  23. package/dist/index.js +1 -1
  24. package/dist/index.js.map +1 -1
  25. package/dist/src/components/ButtonGroup/ButtonGroup.d.ts +4 -3
  26. package/dist/src/components/ButtonV2/ButtonV2.d.ts +2 -2
  27. package/dist/src/components/ButtonV2/PrimaryButton.d.ts +2 -2
  28. package/dist/src/components/ButtonV2/PrimaryIconButton.d.ts +1 -2
  29. package/dist/src/components/ButtonV2/SecondaryButton.d.ts +1 -2
  30. package/dist/src/components/ButtonV2/SecondaryIconButton.d.ts +1 -2
  31. package/dist/src/components/ButtonV2/TertiaryButton.d.ts +2 -2
  32. package/dist/src/components/ButtonV2/TertiaryIconButton.d.ts +1 -2
  33. package/dist/src/components/DragHandle/DragHandle.d.ts +2 -6
  34. package/dist/src/components/DragHandle/DragHandle.types.d.ts +1 -0
  35. package/dist/src/components/DropdownTrigger/DropdownTrigger.d.ts +2 -2
  36. package/dist/src/generated/components/ButtonGroup/ButtonGroup.d.ts +4 -3
  37. package/dist/src/generated/components/ButtonV2/ButtonV2.d.ts +2 -2
  38. package/dist/src/generated/components/ButtonV2/PrimaryButton.d.ts +2 -2
  39. package/dist/src/generated/components/ButtonV2/PrimaryIconButton.d.ts +1 -2
  40. package/dist/src/generated/components/ButtonV2/SecondaryButton.d.ts +1 -2
  41. package/dist/src/generated/components/ButtonV2/SecondaryIconButton.d.ts +1 -2
  42. package/dist/src/generated/components/ButtonV2/TertiaryButton.d.ts +2 -2
  43. package/dist/src/generated/components/ButtonV2/TertiaryIconButton.d.ts +1 -2
  44. package/dist/src/generated/components/DragHandle/DragHandle.d.ts +2 -6
  45. package/dist/src/generated/components/DragHandle/DragHandle.types.d.ts +1 -0
  46. package/dist/src/generated/components/DropdownTrigger/DropdownTrigger.d.ts +2 -2
  47. package/dist/stories/Button.stories.d.ts +1 -1
  48. package/dist/stories/ButtonGroup.stories.d.ts +1 -1
  49. package/dist/stories/DragHandle.stories.d.ts +1 -6
  50. package/dist/stories/DropdownTrigger.stories.d.ts +1 -1
  51. package/dist/stories/PrimaryButton.stories.d.ts +1 -1
  52. package/dist/stories/PrimaryIconButton.stories.d.ts +1 -1
  53. package/dist/stories/SecondaryButton.stories.d.ts +1 -1
  54. package/dist/stories/SecondaryIconButton.stories.d.ts +1 -1
  55. package/dist/stories/TertiaryButton.stories.d.ts +1 -1
  56. package/dist/stories/TertiaryIconButton.stories.d.ts +2 -2
  57. package/package.json +1 -1
@@ -1,5 +1,6 @@
1
- import React from "react";
2
- export interface ButtonGroupProps extends React.ComponentPropsWithoutRef<"div"> {
1
+ import type React from "react";
2
+ import { type JSX } from "react";
3
+ export interface ButtonGroupProps extends React.ComponentPropsWithRef<"div"> {
3
4
  /**
4
5
  * The buttons to render in the group. A button group holds a single, double
5
6
  * or triple action.
@@ -33,4 +34,4 @@ export interface ButtonGroupProps extends React.ComponentPropsWithoutRef<"div">
33
34
  * </ButtonGroup>
34
35
  * ```
35
36
  */
36
- export declare const ButtonGroup: React.ForwardRefExoticComponent<ButtonGroupProps & React.RefAttributes<HTMLDivElement>>;
37
+ export declare const ButtonGroup: ({ ref, children, direction, className, ...otherAttributes }: ButtonGroupProps) => JSX.Element;
@@ -1,3 +1,3 @@
1
- import React from "react";
1
+ import { type JSX } from "react";
2
2
  import { type ButtonProps } from "./ButtonProps.type";
3
- export declare const ButtonV2: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
3
+ export declare const ButtonV2: ({ ref, children, size, onClick, textColor, textHoverColor, leadingIcon, trailingIcon, isPending, className, title, dataTestId, type, titleTooltipContainer, ...otherAttributes }: ButtonProps) => JSX.Element;
@@ -1,3 +1,3 @@
1
- import React from "react";
1
+ import { type JSX } from "react";
2
2
  import { type ButtonProps } from "./ButtonProps.type";
3
- export declare const PrimaryButton: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
3
+ export declare const PrimaryButton: ({ ref, ...props }: ButtonProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- import React from "react";
2
1
  import { type IconButtonProps } from "./ButtonProps.type";
3
- export declare const PrimaryIconButton: React.ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
2
+ export declare const PrimaryIconButton: (props: IconButtonProps) => import("react").JSX.Element;
@@ -1,3 +1,2 @@
1
- import React from "react";
2
1
  import { type ButtonProps } from "./ButtonProps.type";
3
- export declare const SecondaryButton: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
2
+ export declare const SecondaryButton: (props: ButtonProps) => import("react").JSX.Element;
@@ -1,3 +1,2 @@
1
- import React from "react";
2
1
  import { type IconButtonProps } from "./ButtonProps.type";
3
- export declare const SecondaryIconButton: React.ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
2
+ export declare const SecondaryIconButton: (props: IconButtonProps) => import("react").JSX.Element;
@@ -1,3 +1,3 @@
1
- import React from "react";
1
+ import { type JSX } from "react";
2
2
  import { type ButtonProps } from "./ButtonProps.type";
3
- export declare const TertiaryButton: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
3
+ export declare const TertiaryButton: ({ ref, ...props }: ButtonProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { type IconButtonProps } from "./ButtonProps.type";
3
2
  type Props = IconButtonProps & {
4
3
  /**
@@ -14,5 +13,5 @@ type Props = IconButtonProps & {
14
13
  */
15
14
  expand?: boolean | "x" | "y";
16
15
  };
17
- export declare const TertiaryIconButton: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLButtonElement>>;
16
+ export declare const TertiaryIconButton: (props: Props) => import("react").JSX.Element;
18
17
  export {};
@@ -1,7 +1,3 @@
1
- declare const DragHandle: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLButtonElement> & {
2
- label?: string;
3
- grabbing: boolean;
4
- disabled?: boolean;
5
- dataTestId?: string;
6
- } & import("react").RefAttributes<HTMLButtonElement>>;
1
+ import type { DragHandleProps } from "./DragHandle.types";
2
+ declare const DragHandle: ({ ref, dataTestId, className: classes, grabbing, disabled, label, ...props }: DragHandleProps) => import("react").JSX.Element;
7
3
  export default DragHandle;
@@ -1,4 +1,5 @@
1
1
  export type DragHandleProps = React.HTMLAttributes<HTMLButtonElement> & {
2
+ ref?: React.Ref<HTMLButtonElement>;
2
3
  /**
3
4
  * Accessible label for the drag handle.
4
5
  * @default "Drag to reorder"
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import type React from "react";
2
2
  import { type SizeNames } from "../../system/Sizes.js";
3
3
  import { type Props as BoxProps } from "../Box/Box";
4
4
  export type DropdownTriggerProps = Omit<React.ComponentPropsWithRef<"button">, "children" | "width"> & {
@@ -87,4 +87,4 @@ export type DropdownTriggerProps = Omit<React.ComponentPropsWithRef<"button">, "
87
87
  * </Popover.Root>
88
88
  * ```
89
89
  */
90
- export declare const DropdownTrigger: React.ForwardRefExoticComponent<Omit<DropdownTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
90
+ export declare const DropdownTrigger: ({ ref, variant, children, placeholder, leadingIcon, trailingIcon, width, className, type, ...otherAttributes }: DropdownTriggerProps) => React.JSX.Element;
@@ -1,5 +1,6 @@
1
- import React from "react";
2
- export interface ButtonGroupProps extends React.ComponentPropsWithoutRef<"div"> {
1
+ import type React from "react";
2
+ import { type JSX } from "react";
3
+ export interface ButtonGroupProps extends React.ComponentPropsWithRef<"div"> {
3
4
  /**
4
5
  * The buttons to render in the group. A button group holds a single, double
5
6
  * or triple action.
@@ -33,4 +34,4 @@ export interface ButtonGroupProps extends React.ComponentPropsWithoutRef<"div">
33
34
  * </ButtonGroup>
34
35
  * ```
35
36
  */
36
- export declare const ButtonGroup: React.ForwardRefExoticComponent<ButtonGroupProps & React.RefAttributes<HTMLDivElement>>;
37
+ export declare const ButtonGroup: ({ ref, children, direction, className, ...otherAttributes }: ButtonGroupProps) => JSX.Element;
@@ -1,3 +1,3 @@
1
- import React from "react";
1
+ import { type JSX } from "react";
2
2
  import { type ButtonProps } from "./ButtonProps.type";
3
- export declare const ButtonV2: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
3
+ export declare const ButtonV2: ({ ref, children, size, onClick, textColor, textHoverColor, leadingIcon, trailingIcon, isPending, className, title, dataTestId, type, titleTooltipContainer, ...otherAttributes }: ButtonProps) => JSX.Element;
@@ -1,3 +1,3 @@
1
- import React from "react";
1
+ import { type JSX } from "react";
2
2
  import { type ButtonProps } from "./ButtonProps.type";
3
- export declare const PrimaryButton: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
3
+ export declare const PrimaryButton: ({ ref, ...props }: ButtonProps) => JSX.Element;
@@ -1,3 +1,2 @@
1
- import React from "react";
2
1
  import { type IconButtonProps } from "./ButtonProps.type";
3
- export declare const PrimaryIconButton: React.ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
2
+ export declare const PrimaryIconButton: (props: IconButtonProps) => import("react").JSX.Element;
@@ -1,3 +1,2 @@
1
- import React from "react";
2
1
  import { type ButtonProps } from "./ButtonProps.type";
3
- export declare const SecondaryButton: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
2
+ export declare const SecondaryButton: (props: ButtonProps) => import("react").JSX.Element;
@@ -1,3 +1,2 @@
1
- import React from "react";
2
1
  import { type IconButtonProps } from "./ButtonProps.type";
3
- export declare const SecondaryIconButton: React.ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
2
+ export declare const SecondaryIconButton: (props: IconButtonProps) => import("react").JSX.Element;
@@ -1,3 +1,3 @@
1
- import React from "react";
1
+ import { type JSX } from "react";
2
2
  import { type ButtonProps } from "./ButtonProps.type";
3
- export declare const TertiaryButton: React.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
3
+ export declare const TertiaryButton: ({ ref, ...props }: ButtonProps) => JSX.Element;
@@ -1,4 +1,3 @@
1
- import React from "react";
2
1
  import { type IconButtonProps } from "./ButtonProps.type";
3
2
  type Props = IconButtonProps & {
4
3
  /**
@@ -14,5 +13,5 @@ type Props = IconButtonProps & {
14
13
  */
15
14
  expand?: boolean | "x" | "y";
16
15
  };
17
- export declare const TertiaryIconButton: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLButtonElement>>;
16
+ export declare const TertiaryIconButton: (props: Props) => import("react").JSX.Element;
18
17
  export {};
@@ -1,7 +1,3 @@
1
- declare const DragHandle: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLButtonElement> & {
2
- label?: string;
3
- grabbing: boolean;
4
- disabled?: boolean;
5
- dataTestId?: string;
6
- } & import("react").RefAttributes<HTMLButtonElement>>;
1
+ import type { DragHandleProps } from "./DragHandle.types";
2
+ declare const DragHandle: ({ ref, dataTestId, className: classes, grabbing, disabled, label, ...props }: DragHandleProps) => import("react").JSX.Element;
7
3
  export default DragHandle;
@@ -1,4 +1,5 @@
1
1
  export type DragHandleProps = React.HTMLAttributes<HTMLButtonElement> & {
2
+ ref?: React.Ref<HTMLButtonElement>;
2
3
  /**
3
4
  * Accessible label for the drag handle.
4
5
  * @default "Drag to reorder"
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import type React from "react";
2
2
  import { type SizeNames } from "../../../system/Sizes.js";
3
3
  import { type Props as BoxProps } from "../Box/Box";
4
4
  export type DropdownTriggerProps = Omit<React.ComponentPropsWithRef<"button">, "children" | "width"> & {
@@ -87,4 +87,4 @@ export type DropdownTriggerProps = Omit<React.ComponentPropsWithRef<"button">, "
87
87
  * </Popover.Root>
88
88
  * ```
89
89
  */
90
- export declare const DropdownTrigger: React.ForwardRefExoticComponent<Omit<DropdownTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
90
+ export declare const DropdownTrigger: ({ ref, variant, children, placeholder, leadingIcon, trailingIcon, width, className, type, ...otherAttributes }: DropdownTriggerProps) => React.JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { type StoryObj } from "@storybook/react-vite";
2
2
  declare const meta: {
3
3
  title: string;
4
- component: import("react").ForwardRefExoticComponent<Omit<import("../src/components/ButtonV2/ButtonProps.type").ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
4
+ component: ({ ref, ...props }: import("../src/components/ButtonV2/ButtonProps.type").ButtonProps) => import("react").JSX.Element;
5
5
  decorators: import("@storybook/react").Decorator;
6
6
  };
7
7
  export default meta;
@@ -1,7 +1,7 @@
1
1
  import { type StoryObj } from "@storybook/react-vite";
2
2
  declare const meta: {
3
3
  title: string;
4
- component: import("react").ForwardRefExoticComponent<import("../src").ButtonGroupProps & import("react").RefAttributes<HTMLDivElement>>;
4
+ component: ({ ref, children, direction, className, ...otherAttributes }: import("../src").ButtonGroupProps) => import("react").JSX.Element;
5
5
  parameters: {
6
6
  docs: {
7
7
  description: {
@@ -1,11 +1,6 @@
1
1
  declare const _default: {
2
2
  title: string;
3
- component: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLButtonElement> & {
4
- label?: string;
5
- grabbing: boolean;
6
- disabled?: boolean;
7
- dataTestId?: string;
8
- } & import("react").RefAttributes<HTMLButtonElement>>;
3
+ component: ({ ref, dataTestId, className: classes, grabbing, disabled, label, ...props }: import("../src").DragHandleProps) => import("react").JSX.Element;
9
4
  argTypes: {};
10
5
  };
11
6
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import { type StoryObj } from "@storybook/react-vite";
2
2
  declare const meta: {
3
3
  title: string;
4
- component: import("react").ForwardRefExoticComponent<Omit<import("../src").DropdownTriggerProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
4
+ component: ({ ref, variant, children, placeholder, leadingIcon, trailingIcon, width, className, type, ...otherAttributes }: import("../src").DropdownTriggerProps) => import("react").JSX.Element;
5
5
  parameters: {
6
6
  backgrounds: {
7
7
  default: string;
@@ -2,7 +2,7 @@ import type { JSX } from "react";
2
2
  import type { StoryObj } from "@storybook/react-vite";
3
3
  declare const meta: {
4
4
  title: string;
5
- component: import("react").ForwardRefExoticComponent<Omit<import("../src/components/ButtonV2/ButtonProps.type").ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
5
+ component: ({ ref, ...props }: import("../src/components/ButtonV2/ButtonProps.type").ButtonProps) => JSX.Element;
6
6
  decorators: import("@storybook/react").Decorator;
7
7
  };
8
8
  export default meta;
@@ -1,7 +1,7 @@
1
1
  import { type StoryObj } from "@storybook/react-vite";
2
2
  declare const meta: {
3
3
  title: string;
4
- component: import("react").ForwardRefExoticComponent<Omit<import("../src/components/ButtonV2/ButtonProps.type").IconButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
4
+ component: (props: import("../src/components/ButtonV2/ButtonProps.type").IconButtonProps) => import("react").JSX.Element;
5
5
  decorators: import("@storybook/react").Decorator;
6
6
  };
7
7
  export default meta;
@@ -1,7 +1,7 @@
1
1
  import { type StoryObj } from "@storybook/react-vite";
2
2
  declare const meta: {
3
3
  title: string;
4
- component: import("react").ForwardRefExoticComponent<Omit<import("../src/components/ButtonV2/ButtonProps.type").ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
4
+ component: (props: import("../src/components/ButtonV2/ButtonProps.type").ButtonProps) => import("react").JSX.Element;
5
5
  decorators: import("@storybook/react").Decorator;
6
6
  };
7
7
  export default meta;
@@ -1,7 +1,7 @@
1
1
  import { type StoryObj } from "@storybook/react-vite";
2
2
  declare const meta: {
3
3
  title: string;
4
- component: import("react").ForwardRefExoticComponent<Omit<import("../src/components/ButtonV2/ButtonProps.type").IconButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
4
+ component: (props: import("../src/components/ButtonV2/ButtonProps.type").IconButtonProps) => import("react").JSX.Element;
5
5
  decorators: import("@storybook/react").Decorator;
6
6
  };
7
7
  export default meta;
@@ -1,7 +1,7 @@
1
1
  import { type StoryObj } from "@storybook/react-vite";
2
2
  declare const meta: {
3
3
  title: string;
4
- component: import("react").ForwardRefExoticComponent<Omit<import("../src/components/ButtonV2/ButtonProps.type").ButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
4
+ component: ({ ref, ...props }: import("../src/components/ButtonV2/ButtonProps.type").ButtonProps) => import("react").JSX.Element;
5
5
  decorators: import("@storybook/react").Decorator;
6
6
  };
7
7
  export default meta;
@@ -1,14 +1,14 @@
1
1
  import { type StoryObj } from "@storybook/react-vite";
2
2
  declare const meta: {
3
3
  title: string;
4
- component: import("react").ForwardRefExoticComponent<Omit<import("../src").PrimaryButtonProps & {
4
+ component: (props: import("../src").PrimaryButtonProps & {
5
5
  children: import("react").ReactNode;
6
6
  label: string;
7
7
  leadingIcon?: never;
8
8
  trailingIcon?: never;
9
9
  } & {
10
10
  expand?: boolean | "x" | "y";
11
- }, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
11
+ }) => import("react").JSX.Element;
12
12
  decorators: import("@storybook/react").Decorator;
13
13
  argTypes: {
14
14
  expand: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luscii-healthtech/web-ui",
3
- "version": "62.0.2",
3
+ "version": "62.0.3",
4
4
  "license": "MIT",
5
5
  "author": {
6
6
  "name": "Joris Janssen"