@luscii-healthtech/web-ui 63.0.0 → 63.0.1

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 (39) hide show
  1. package/dist/esm/components/FlyOutMenu/FlyOutMenu.js +22 -18
  2. package/dist/esm/components/FlyOutMenu/FlyOutMenu.js.map +1 -1
  3. package/dist/esm/components/PrimaryTabBar/PrimaryTabBarContent.js +3 -4
  4. package/dist/esm/components/PrimaryTabBar/PrimaryTabBarContent.js.map +1 -1
  5. package/dist/esm/components/PrimaryTabBar/PrimaryTabBarExtras.js +3 -4
  6. package/dist/esm/components/PrimaryTabBar/PrimaryTabBarExtras.js.map +1 -1
  7. package/dist/esm/components/PrimaryTabBar/PrimaryTabBarList.js +4 -4
  8. package/dist/esm/components/PrimaryTabBar/PrimaryTabBarList.js.map +1 -1
  9. package/dist/esm/components/PrimaryTabBar/PrimaryTabBarOverflowIndicator.js +3 -4
  10. package/dist/esm/components/PrimaryTabBar/PrimaryTabBarOverflowIndicator.js.map +1 -1
  11. package/dist/esm/components/PrimaryTabBar/PrimaryTabBarRoot.js +3 -4
  12. package/dist/esm/components/PrimaryTabBar/PrimaryTabBarRoot.js.map +1 -1
  13. package/dist/esm/components/PrimaryTabBar/PrimaryTabBarTrigger.js +4 -4
  14. package/dist/esm/components/PrimaryTabBar/PrimaryTabBarTrigger.js.map +1 -1
  15. package/dist/esm/components/Tabs/Tabs.js +10 -11
  16. package/dist/esm/components/Tabs/Tabs.js.map +1 -1
  17. package/dist/index.development.js +49 -45
  18. package/dist/index.development.js.map +1 -1
  19. package/dist/index.js +1 -1
  20. package/dist/index.js.map +1 -1
  21. package/dist/src/components/FlyOutMenu/FlyOutMenu.d.ts +30 -18
  22. package/dist/src/components/PrimaryTabBar/PrimaryTabBarContent.d.ts +5 -1
  23. package/dist/src/components/PrimaryTabBar/PrimaryTabBarExtras.d.ts +5 -1
  24. package/dist/src/components/PrimaryTabBar/PrimaryTabBarList.d.ts +5 -1
  25. package/dist/src/components/PrimaryTabBar/PrimaryTabBarOverflowIndicator.d.ts +6 -3
  26. package/dist/src/components/PrimaryTabBar/PrimaryTabBarRoot.d.ts +5 -1
  27. package/dist/src/components/PrimaryTabBar/PrimaryTabBarTrigger.d.ts +5 -1
  28. package/dist/src/components/Tabs/Tabs.d.ts +17 -5
  29. package/dist/src/generated/components/FlyOutMenu/FlyOutMenu.d.ts +30 -18
  30. package/dist/src/generated/components/PrimaryTabBar/PrimaryTabBarContent.d.ts +5 -1
  31. package/dist/src/generated/components/PrimaryTabBar/PrimaryTabBarExtras.d.ts +5 -1
  32. package/dist/src/generated/components/PrimaryTabBar/PrimaryTabBarList.d.ts +5 -1
  33. package/dist/src/generated/components/PrimaryTabBar/PrimaryTabBarOverflowIndicator.d.ts +6 -3
  34. package/dist/src/generated/components/PrimaryTabBar/PrimaryTabBarRoot.d.ts +5 -1
  35. package/dist/src/generated/components/PrimaryTabBar/PrimaryTabBarTrigger.d.ts +5 -1
  36. package/dist/src/generated/components/Tabs/Tabs.d.ts +17 -5
  37. package/dist/stories/PrimaryTabBar.stories.d.ts +30 -12
  38. package/dist/stories/Tabs.stories.d.ts +16 -4
  39. package/package.json +1 -1
@@ -8,24 +8,36 @@ declare const FlyOutMenuRoot: (props: React.ComponentPropsWithoutRef<typeof FlyO
8
8
  * The child of this component should accept a `ref` prop, otherwise
9
9
  * the menu will not work correctly.
10
10
  */
11
- declare const FlyOutMenuTrigger: React.ForwardRefExoticComponent<Omit<FlyOutMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
11
+ declare const FlyOutMenuTrigger: ({ ref, ...props }: React.ComponentProps<typeof FlyOutMenuPrimitive.Trigger>) => React.JSX.Element;
12
12
  declare const FlyOutMenuGroup: React.ForwardRefExoticComponent<FlyOutMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
13
13
  declare const FlyOutMenuPortal: React.FC<FlyOutMenuPrimitive.DropdownMenuPortalProps>;
14
- declare const FlyOutMenuContent: React.ForwardRefExoticComponent<Omit<FlyOutMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
15
- /**
16
- * An optional DOM element to render the FlyOutMenu in using a portal.
17
- *
18
- * When omitted the FlyOutMenu will be rendered into `document.body`.
19
- */
20
- container?: React.ComponentProps<typeof FlyOutMenuPrimitive.Portal>["container"];
21
- } & React.RefAttributes<HTMLDivElement>>;
22
- declare const FlyOutMenuItem: React.ForwardRefExoticComponent<OmitDisabled<Omit<FlyOutMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
23
- icon?: React.ReactNode;
24
- }> & React.RefAttributes<HTMLDivElement>>;
25
- declare const FlyOutMenuLabel: React.ForwardRefExoticComponent<Omit<FlyOutMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
26
- declare const FlyOutMenuSeparator: React.ForwardRefExoticComponent<Omit<FlyOutMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
27
- color?: "divider" | "interactive";
28
- } & React.RefAttributes<HTMLDivElement>>;
14
+ declare const FlyOutMenuContent: {
15
+ ({ ref, className, sideOffset, align, container, ...props }: React.ComponentProps<typeof FlyOutMenuPrimitive.Content> & {
16
+ /**
17
+ * An optional DOM element to render the FlyOutMenu in using a portal.
18
+ *
19
+ * When omitted the FlyOutMenu will be rendered into `document.body`.
20
+ */
21
+ container?: React.ComponentProps<typeof FlyOutMenuPrimitive.Portal>["container"];
22
+ }): React.JSX.Element;
23
+ displayName: string | undefined;
24
+ };
25
+ declare const FlyOutMenuItem: {
26
+ ({ ref, className, icon, children, ...props }: OmitDisabled<React.ComponentProps<typeof FlyOutMenuPrimitive.Item> & {
27
+ icon?: React.ReactNode;
28
+ }>): React.JSX.Element;
29
+ displayName: string | undefined;
30
+ };
31
+ declare const FlyOutMenuLabel: {
32
+ ({ ref, className, ...props }: React.ComponentProps<typeof FlyOutMenuPrimitive.Label>): React.JSX.Element;
33
+ displayName: string | undefined;
34
+ };
35
+ declare const FlyOutMenuSeparator: {
36
+ ({ ref, className, color, ...props }: React.ComponentProps<typeof FlyOutMenuPrimitive.Separator> & {
37
+ color?: "divider" | "interactive";
38
+ }): React.JSX.Element;
39
+ displayName: string | undefined;
40
+ };
29
41
  type ButtonItemProps = React.ComponentPropsWithoutRef<typeof FlyOutMenuItem> & {
30
42
  children?: React.ReactNode;
31
43
  leadingIcon?: React.ReactNode;
@@ -35,7 +47,7 @@ declare const FlyOutMenuButtonItem: (props: OmitDisabled<ButtonItemProps>) => Re
35
47
  declare const FlyOutMenuChildrenItem: (props: OmitDisabled<React.ComponentPropsWithoutRef<"div"> & {
36
48
  icon?: React.ReactNode;
37
49
  }>) => React.JSX.Element;
38
- type SwitchItemProps = React.ComponentPropsWithoutRef<typeof FlyOutMenuPrimitive.CheckboxItem> & {
50
+ type SwitchItemProps = React.ComponentProps<typeof FlyOutMenuPrimitive.CheckboxItem> & {
39
51
  icon?: React.ReactNode;
40
52
  children?: React.ReactNode;
41
53
  /**
@@ -44,7 +56,7 @@ type SwitchItemProps = React.ComponentPropsWithoutRef<typeof FlyOutMenuPrimitive
44
56
  */
45
57
  checkedIndicator?: React.ReactNode;
46
58
  };
47
- declare const FlyOutMenuSwitchItem: React.ForwardRefExoticComponent<OmitDisabled<SwitchItemProps> & React.RefAttributes<HTMLDivElement>>;
59
+ declare const FlyOutMenuSwitchItem: (props: OmitDisabled<SwitchItemProps>) => React.JSX.Element;
48
60
  export declare const FlyOutMenu: {
49
61
  Root: typeof FlyOutMenuRoot;
50
62
  Trigger: typeof FlyOutMenuTrigger;
@@ -1,5 +1,9 @@
1
+ import { type ComponentProps } from "react";
1
2
  import * as TabsPrimitive from "@radix-ui/react-tabs";
2
3
  /**
3
4
  * Tab panel content, displayed when the associated tab is active.
4
5
  */
5
- export declare const PrimaryTabBarContent: import("react").ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
6
+ export declare const PrimaryTabBarContent: {
7
+ ({ ref, className, ...props }: ComponentProps<typeof TabsPrimitive.Content>): import("react").JSX.Element;
8
+ displayName: string;
9
+ };
@@ -1,5 +1,9 @@
1
+ import { type ComponentPropsWithRef } from "react";
1
2
  /**
2
3
  * Groups trailing elements (overflow indicators, action buttons) after the
3
4
  * tab triggers inside `List`.
4
5
  */
5
- export declare const PrimaryTabBarExtras: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
6
+ export declare const PrimaryTabBarExtras: {
7
+ ({ ref, className, children, ...props }: ComponentPropsWithRef<"div">): import("react").JSX.Element;
8
+ displayName: string;
9
+ };
@@ -1,7 +1,11 @@
1
+ import { type ComponentProps } from "react";
1
2
  import * as TabsPrimitive from "@radix-ui/react-tabs";
2
3
  /**
3
4
  * Horizontal flex container for tab triggers and the optional `Extras` group.
4
5
  * `Extras` renders next to the tablist, not inside it, because a tablist may
5
6
  * only contain tabs.
6
7
  */
7
- export declare const PrimaryTabBarList: import("react").ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
8
+ export declare const PrimaryTabBarList: {
9
+ ({ ref, className, children, ...props }: ComponentProps<typeof TabsPrimitive.List>): import("react").JSX.Element;
10
+ displayName: string;
11
+ };
@@ -1,7 +1,10 @@
1
- import { type ComponentPropsWithoutRef } from "react";
2
- export type PrimaryTabBarOverflowIndicatorProps = ComponentPropsWithoutRef<"span">;
1
+ import { type ComponentPropsWithRef } from "react";
2
+ export type PrimaryTabBarOverflowIndicatorProps = ComponentPropsWithRef<"span">;
3
3
  /**
4
4
  * A `<span>` for indicating overflow (e.g. "2 more programmes"). Used inside `PrimaryTabBar.Extras`.
5
5
  * Wrap with `HoverCard` to show details on hover.
6
6
  */
7
- export declare const PrimaryTabBarOverflowIndicator: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
7
+ export declare const PrimaryTabBarOverflowIndicator: {
8
+ ({ ref, className, children, ...props }: PrimaryTabBarOverflowIndicatorProps): import("react").JSX.Element;
9
+ displayName: string;
10
+ };
@@ -1,5 +1,9 @@
1
+ import { type ComponentProps } from "react";
1
2
  import * as TabsPrimitive from "@radix-ui/react-tabs";
2
3
  /**
3
4
  * Manages tab state. Wraps `@radix-ui/react-tabs` Root.
4
5
  */
5
- export declare const PrimaryTabBarRoot: import("react").ForwardRefExoticComponent<Omit<TabsPrimitive.TabsProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
6
+ export declare const PrimaryTabBarRoot: {
7
+ ({ ref, className, ...props }: ComponentProps<typeof TabsPrimitive.Root>): import("react").JSX.Element;
8
+ displayName: string;
9
+ };
@@ -1,7 +1,11 @@
1
+ import { type ComponentProps } from "react";
1
2
  import * as TabsPrimitive from "@radix-ui/react-tabs";
2
3
  /**
3
4
  * Tab trigger with a rounded card shape. Active tabs have a white background
4
5
  * with inverse border-radius curves (scallops); inactive tabs are transparent
5
6
  * with muted text. Compose children freely — text, badges, icons.
6
7
  */
7
- export declare const PrimaryTabBarTrigger: import("react").ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
8
+ export declare const PrimaryTabBarTrigger: {
9
+ ({ ref, className, children, ...props }: ComponentProps<typeof TabsPrimitive.Trigger>): import("react").JSX.Element;
10
+ displayName: string;
11
+ };
@@ -1,13 +1,25 @@
1
- import * as React from "react";
1
+ import type * as React from "react";
2
2
  import * as TabsPrimitive from "@radix-ui/react-tabs";
3
3
  import classNames from "classnames";
4
4
  import { Box } from "../Box/Box";
5
5
  import { type LegacyTextProps } from "../Text/Text";
6
6
  export declare function cn(...inputs: classNames.ArgumentArray): string;
7
- declare const TabsRoot: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
- declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
- declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
10
- declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ declare const TabsRoot: {
8
+ (props: React.ComponentProps<typeof TabsPrimitive.Root>): React.JSX.Element;
9
+ displayName: string;
10
+ };
11
+ declare const TabsList: {
12
+ ({ ref, className, ...props }: React.ComponentProps<typeof TabsPrimitive.List>): React.JSX.Element;
13
+ displayName: string;
14
+ };
15
+ declare const TabsTrigger: {
16
+ ({ ref, className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): React.JSX.Element;
17
+ displayName: string;
18
+ };
19
+ declare const TabsContent: {
20
+ ({ ref, className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>): React.JSX.Element;
21
+ displayName: string;
22
+ };
11
23
  declare const TabsPadding: React.FC<React.ComponentProps<typeof Box<"div">>>;
12
24
  declare const TabLabelText: React.FC<LegacyTextProps<"span">>;
13
25
  type StaticComponents = {
@@ -8,24 +8,36 @@ declare const FlyOutMenuRoot: (props: React.ComponentPropsWithoutRef<typeof FlyO
8
8
  * The child of this component should accept a `ref` prop, otherwise
9
9
  * the menu will not work correctly.
10
10
  */
11
- declare const FlyOutMenuTrigger: React.ForwardRefExoticComponent<Omit<FlyOutMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
11
+ declare const FlyOutMenuTrigger: ({ ref, ...props }: React.ComponentProps<typeof FlyOutMenuPrimitive.Trigger>) => React.JSX.Element;
12
12
  declare const FlyOutMenuGroup: React.ForwardRefExoticComponent<FlyOutMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
13
13
  declare const FlyOutMenuPortal: React.FC<FlyOutMenuPrimitive.DropdownMenuPortalProps>;
14
- declare const FlyOutMenuContent: React.ForwardRefExoticComponent<Omit<FlyOutMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
15
- /**
16
- * An optional DOM element to render the FlyOutMenu in using a portal.
17
- *
18
- * When omitted the FlyOutMenu will be rendered into `document.body`.
19
- */
20
- container?: React.ComponentProps<typeof FlyOutMenuPrimitive.Portal>["container"];
21
- } & React.RefAttributes<HTMLDivElement>>;
22
- declare const FlyOutMenuItem: React.ForwardRefExoticComponent<OmitDisabled<Omit<FlyOutMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
23
- icon?: React.ReactNode;
24
- }> & React.RefAttributes<HTMLDivElement>>;
25
- declare const FlyOutMenuLabel: React.ForwardRefExoticComponent<Omit<FlyOutMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
26
- declare const FlyOutMenuSeparator: React.ForwardRefExoticComponent<Omit<FlyOutMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
27
- color?: "divider" | "interactive";
28
- } & React.RefAttributes<HTMLDivElement>>;
14
+ declare const FlyOutMenuContent: {
15
+ ({ ref, className, sideOffset, align, container, ...props }: React.ComponentProps<typeof FlyOutMenuPrimitive.Content> & {
16
+ /**
17
+ * An optional DOM element to render the FlyOutMenu in using a portal.
18
+ *
19
+ * When omitted the FlyOutMenu will be rendered into `document.body`.
20
+ */
21
+ container?: React.ComponentProps<typeof FlyOutMenuPrimitive.Portal>["container"];
22
+ }): React.JSX.Element;
23
+ displayName: string | undefined;
24
+ };
25
+ declare const FlyOutMenuItem: {
26
+ ({ ref, className, icon, children, ...props }: OmitDisabled<React.ComponentProps<typeof FlyOutMenuPrimitive.Item> & {
27
+ icon?: React.ReactNode;
28
+ }>): React.JSX.Element;
29
+ displayName: string | undefined;
30
+ };
31
+ declare const FlyOutMenuLabel: {
32
+ ({ ref, className, ...props }: React.ComponentProps<typeof FlyOutMenuPrimitive.Label>): React.JSX.Element;
33
+ displayName: string | undefined;
34
+ };
35
+ declare const FlyOutMenuSeparator: {
36
+ ({ ref, className, color, ...props }: React.ComponentProps<typeof FlyOutMenuPrimitive.Separator> & {
37
+ color?: "divider" | "interactive";
38
+ }): React.JSX.Element;
39
+ displayName: string | undefined;
40
+ };
29
41
  type ButtonItemProps = React.ComponentPropsWithoutRef<typeof FlyOutMenuItem> & {
30
42
  children?: React.ReactNode;
31
43
  leadingIcon?: React.ReactNode;
@@ -35,7 +47,7 @@ declare const FlyOutMenuButtonItem: (props: OmitDisabled<ButtonItemProps>) => Re
35
47
  declare const FlyOutMenuChildrenItem: (props: OmitDisabled<React.ComponentPropsWithoutRef<"div"> & {
36
48
  icon?: React.ReactNode;
37
49
  }>) => React.JSX.Element;
38
- type SwitchItemProps = React.ComponentPropsWithoutRef<typeof FlyOutMenuPrimitive.CheckboxItem> & {
50
+ type SwitchItemProps = React.ComponentProps<typeof FlyOutMenuPrimitive.CheckboxItem> & {
39
51
  icon?: React.ReactNode;
40
52
  children?: React.ReactNode;
41
53
  /**
@@ -44,7 +56,7 @@ type SwitchItemProps = React.ComponentPropsWithoutRef<typeof FlyOutMenuPrimitive
44
56
  */
45
57
  checkedIndicator?: React.ReactNode;
46
58
  };
47
- declare const FlyOutMenuSwitchItem: React.ForwardRefExoticComponent<OmitDisabled<SwitchItemProps> & React.RefAttributes<HTMLDivElement>>;
59
+ declare const FlyOutMenuSwitchItem: (props: OmitDisabled<SwitchItemProps>) => React.JSX.Element;
48
60
  export declare const FlyOutMenu: {
49
61
  Root: typeof FlyOutMenuRoot;
50
62
  Trigger: typeof FlyOutMenuTrigger;
@@ -1,5 +1,9 @@
1
+ import { type ComponentProps } from "react";
1
2
  import * as TabsPrimitive from "@radix-ui/react-tabs";
2
3
  /**
3
4
  * Tab panel content, displayed when the associated tab is active.
4
5
  */
5
- export declare const PrimaryTabBarContent: import("react").ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
6
+ export declare const PrimaryTabBarContent: {
7
+ ({ ref, className, ...props }: ComponentProps<typeof TabsPrimitive.Content>): import("react").JSX.Element;
8
+ displayName: string;
9
+ };
@@ -1,5 +1,9 @@
1
+ import { type ComponentPropsWithRef } from "react";
1
2
  /**
2
3
  * Groups trailing elements (overflow indicators, action buttons) after the
3
4
  * tab triggers inside `List`.
4
5
  */
5
- export declare const PrimaryTabBarExtras: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
6
+ export declare const PrimaryTabBarExtras: {
7
+ ({ ref, className, children, ...props }: ComponentPropsWithRef<"div">): import("react").JSX.Element;
8
+ displayName: string;
9
+ };
@@ -1,7 +1,11 @@
1
+ import { type ComponentProps } from "react";
1
2
  import * as TabsPrimitive from "@radix-ui/react-tabs";
2
3
  /**
3
4
  * Horizontal flex container for tab triggers and the optional `Extras` group.
4
5
  * `Extras` renders next to the tablist, not inside it, because a tablist may
5
6
  * only contain tabs.
6
7
  */
7
- export declare const PrimaryTabBarList: import("react").ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
8
+ export declare const PrimaryTabBarList: {
9
+ ({ ref, className, children, ...props }: ComponentProps<typeof TabsPrimitive.List>): import("react").JSX.Element;
10
+ displayName: string;
11
+ };
@@ -1,7 +1,10 @@
1
- import { type ComponentPropsWithoutRef } from "react";
2
- export type PrimaryTabBarOverflowIndicatorProps = ComponentPropsWithoutRef<"span">;
1
+ import { type ComponentPropsWithRef } from "react";
2
+ export type PrimaryTabBarOverflowIndicatorProps = ComponentPropsWithRef<"span">;
3
3
  /**
4
4
  * A `<span>` for indicating overflow (e.g. "2 more programmes"). Used inside `PrimaryTabBar.Extras`.
5
5
  * Wrap with `HoverCard` to show details on hover.
6
6
  */
7
- export declare const PrimaryTabBarOverflowIndicator: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
7
+ export declare const PrimaryTabBarOverflowIndicator: {
8
+ ({ ref, className, children, ...props }: PrimaryTabBarOverflowIndicatorProps): import("react").JSX.Element;
9
+ displayName: string;
10
+ };
@@ -1,5 +1,9 @@
1
+ import { type ComponentProps } from "react";
1
2
  import * as TabsPrimitive from "@radix-ui/react-tabs";
2
3
  /**
3
4
  * Manages tab state. Wraps `@radix-ui/react-tabs` Root.
4
5
  */
5
- export declare const PrimaryTabBarRoot: import("react").ForwardRefExoticComponent<Omit<TabsPrimitive.TabsProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
6
+ export declare const PrimaryTabBarRoot: {
7
+ ({ ref, className, ...props }: ComponentProps<typeof TabsPrimitive.Root>): import("react").JSX.Element;
8
+ displayName: string;
9
+ };
@@ -1,7 +1,11 @@
1
+ import { type ComponentProps } from "react";
1
2
  import * as TabsPrimitive from "@radix-ui/react-tabs";
2
3
  /**
3
4
  * Tab trigger with a rounded card shape. Active tabs have a white background
4
5
  * with inverse border-radius curves (scallops); inactive tabs are transparent
5
6
  * with muted text. Compose children freely — text, badges, icons.
6
7
  */
7
- export declare const PrimaryTabBarTrigger: import("react").ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
8
+ export declare const PrimaryTabBarTrigger: {
9
+ ({ ref, className, children, ...props }: ComponentProps<typeof TabsPrimitive.Trigger>): import("react").JSX.Element;
10
+ displayName: string;
11
+ };
@@ -1,13 +1,25 @@
1
- import * as React from "react";
1
+ import type * as React from "react";
2
2
  import * as TabsPrimitive from "@radix-ui/react-tabs";
3
3
  import classNames from "classnames";
4
4
  import { Box } from "../Box/Box";
5
5
  import { type LegacyTextProps } from "../Text/Text";
6
6
  export declare function cn(...inputs: classNames.ArgumentArray): string;
7
- declare const TabsRoot: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
- declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
- declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
10
- declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
7
+ declare const TabsRoot: {
8
+ (props: React.ComponentProps<typeof TabsPrimitive.Root>): React.JSX.Element;
9
+ displayName: string;
10
+ };
11
+ declare const TabsList: {
12
+ ({ ref, className, ...props }: React.ComponentProps<typeof TabsPrimitive.List>): React.JSX.Element;
13
+ displayName: string;
14
+ };
15
+ declare const TabsTrigger: {
16
+ ({ ref, className, ...props }: React.ComponentProps<typeof TabsPrimitive.Trigger>): React.JSX.Element;
17
+ displayName: string;
18
+ };
19
+ declare const TabsContent: {
20
+ ({ ref, className, ...props }: React.ComponentProps<typeof TabsPrimitive.Content>): React.JSX.Element;
21
+ displayName: string;
22
+ };
11
23
  declare const TabsPadding: React.FC<React.ComponentProps<typeof Box<"div">>>;
12
24
  declare const TabLabelText: React.FC<LegacyTextProps<"span">>;
13
25
  type StaticComponents = {
@@ -1,19 +1,43 @@
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("@radix-ui/react-tabs").TabsProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
4
+ component: {
5
+ ({ ref, className, ...props }: import("react").ComponentProps<import("react").ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsProps & import("react").RefAttributes<HTMLDivElement>>>): import("react").JSX.Element;
6
+ displayName: string;
7
+ };
5
8
  subcomponents: {
6
- "PrimaryTabBar.List": import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-tabs").TabsListProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
7
- "PrimaryTabBar.Trigger": import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-tabs").TabsTriggerProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
8
- "PrimaryTabBar.Content": import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-tabs").TabsContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
9
- "PrimaryTabBar.OverflowIndicator": import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
10
- "PrimaryTabBar.Extras": import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
9
+ "PrimaryTabBar.List": {
10
+ ({ ref, className, children, ...props }: import("react").ComponentProps<import("react").ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsListProps & import("react").RefAttributes<HTMLDivElement>>>): import("react").JSX.Element;
11
+ displayName: string;
12
+ };
13
+ "PrimaryTabBar.Trigger": {
14
+ ({ ref, className, children, ...props }: import("react").ComponentProps<import("react").ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsTriggerProps & import("react").RefAttributes<HTMLButtonElement>>>): import("react").JSX.Element;
15
+ displayName: string;
16
+ };
17
+ "PrimaryTabBar.Content": {
18
+ ({ ref, className, ...props }: import("react").ComponentProps<import("react").ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsContentProps & import("react").RefAttributes<HTMLDivElement>>>): import("react").JSX.Element;
19
+ displayName: string;
20
+ };
21
+ "PrimaryTabBar.OverflowIndicator": {
22
+ ({ ref, className, children, ...props }: import("../src/components/PrimaryTabBar/PrimaryTabBarOverflowIndicator").PrimaryTabBarOverflowIndicatorProps): import("react").JSX.Element;
23
+ displayName: string;
24
+ };
25
+ "PrimaryTabBar.Extras": {
26
+ ({ ref, className, children, ...props }: import("react").ComponentPropsWithRef<"div">): import("react").JSX.Element;
27
+ displayName: string;
28
+ };
11
29
  };
12
30
  tags: string[];
13
31
  parameters: {
14
32
  layout: string;
15
33
  };
16
34
  decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
35
+ value?: string | undefined | undefined;
36
+ defaultValue?: string | undefined | undefined;
37
+ onValueChange?: ((value: string) => void) | undefined;
38
+ orientation?: ("horizontal" | "vertical") | undefined;
39
+ dir?: ("rtl" | "ltr") | undefined;
40
+ activationMode?: ("manual" | "automatic") | undefined;
17
41
  children?: import("react").ReactNode;
18
42
  className?: string | undefined | undefined;
19
43
  slot?: string | undefined | undefined;
@@ -22,11 +46,8 @@ declare const meta: {
22
46
  color?: string | undefined | undefined;
23
47
  suppressHydrationWarning?: boolean | undefined | undefined;
24
48
  defaultChecked?: boolean | undefined | undefined;
25
- defaultValue?: string | undefined | undefined;
26
49
  suppressContentEditableWarning?: boolean | undefined | undefined;
27
- value?: string | undefined | undefined;
28
50
  content?: string | undefined | undefined;
29
- dir?: ("rtl" | "ltr") | undefined;
30
51
  dangerouslySetInnerHTML?: {
31
52
  __html: string | TrustedHTML;
32
53
  } | undefined | undefined;
@@ -36,7 +57,6 @@ declare const meta: {
36
57
  part?: string | undefined | undefined;
37
58
  role?: import("react").AriaRole | undefined;
38
59
  tabIndex?: number | undefined | undefined;
39
- orientation?: ("horizontal" | "vertical") | undefined;
40
60
  "aria-activedescendant"?: string | undefined | undefined;
41
61
  "aria-atomic"?: (boolean | "true" | "false") | undefined;
42
62
  "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
@@ -298,8 +318,6 @@ declare const meta: {
298
318
  is?: string | undefined | undefined;
299
319
  exportparts?: string | undefined | undefined;
300
320
  asChild?: boolean | undefined | undefined;
301
- onValueChange?: ((value: string) => void) | undefined;
302
- activationMode?: ("manual" | "automatic") | undefined;
303
321
  ref?: import("react").Ref<HTMLDivElement> | undefined;
304
322
  }>) => import("react").JSX.Element)[];
305
323
  };
@@ -2,11 +2,23 @@ import { type StoryObj } from "@storybook/react-vite";
2
2
  import React from "react";
3
3
  declare const meta: {
4
4
  title: string;
5
- component: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-tabs").TabsProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
5
+ component: {
6
+ (props: React.ComponentProps<React.ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsProps & React.RefAttributes<HTMLDivElement>>>): React.JSX.Element;
7
+ displayName: string;
8
+ };
6
9
  subcomponents: {
7
- "Tabs.List": React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-tabs").TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
8
- "Tabs.Trigger": React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-tabs").TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
9
- "Tabs.Content": React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-tabs").TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
10
+ "Tabs.List": {
11
+ ({ ref, className, ...props }: React.ComponentProps<React.ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsListProps & React.RefAttributes<HTMLDivElement>>>): React.JSX.Element;
12
+ displayName: string;
13
+ };
14
+ "Tabs.Trigger": {
15
+ ({ ref, className, ...props }: React.ComponentProps<React.ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsTriggerProps & React.RefAttributes<HTMLButtonElement>>>): React.JSX.Element;
16
+ displayName: string;
17
+ };
18
+ "Tabs.Content": {
19
+ ({ ref, className, ...props }: React.ComponentProps<React.ForwardRefExoticComponent<import("@radix-ui/react-tabs").TabsContentProps & React.RefAttributes<HTMLDivElement>>>): React.JSX.Element;
20
+ displayName: string;
21
+ };
10
22
  "Tabs.Padding": React.FC<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & Partial<Record<"_p" | "_pt" | "_pr" | "_pb" | "_pl" | "_px" | "_py" | "_m" | "_mt" | "_mr" | "_mb" | "_ml" | "_mx" | "_my", "none" | "base" | "s" | "xs" | "xl" | "m" | "l" | "2xl" | "3xl" | "4xl">> & {
11
23
  as?: "div" | undefined;
12
24
  elevation?: "small" | "medium" | "large" | "base" | "drag" | "surface" | "extraLarge";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luscii-healthtech/web-ui",
3
- "version": "63.0.0",
3
+ "version": "63.0.1",
4
4
  "license": "MIT",
5
5
  "author": {
6
6
  "name": "Joris Janssen"