@luscii-healthtech/web-ui 62.0.3 → 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 (60) hide show
  1. package/dist/esm/components/DataGrid/DataGrid.js +1 -2
  2. package/dist/esm/components/DataGrid/DataGrid.js.map +1 -1
  3. package/dist/esm/components/FlyOutMenu/FlyOutMenu.js +22 -18
  4. package/dist/esm/components/FlyOutMenu/FlyOutMenu.js.map +1 -1
  5. package/dist/esm/components/PrimaryTabBar/PrimaryTabBarContent.js +3 -4
  6. package/dist/esm/components/PrimaryTabBar/PrimaryTabBarContent.js.map +1 -1
  7. package/dist/esm/components/PrimaryTabBar/PrimaryTabBarExtras.js +3 -4
  8. package/dist/esm/components/PrimaryTabBar/PrimaryTabBarExtras.js.map +1 -1
  9. package/dist/esm/components/PrimaryTabBar/PrimaryTabBarList.js +4 -4
  10. package/dist/esm/components/PrimaryTabBar/PrimaryTabBarList.js.map +1 -1
  11. package/dist/esm/components/PrimaryTabBar/PrimaryTabBarOverflowIndicator.js +3 -4
  12. package/dist/esm/components/PrimaryTabBar/PrimaryTabBarOverflowIndicator.js.map +1 -1
  13. package/dist/esm/components/PrimaryTabBar/PrimaryTabBarRoot.js +3 -4
  14. package/dist/esm/components/PrimaryTabBar/PrimaryTabBarRoot.js.map +1 -1
  15. package/dist/esm/components/PrimaryTabBar/PrimaryTabBarTrigger.js +4 -4
  16. package/dist/esm/components/PrimaryTabBar/PrimaryTabBarTrigger.js.map +1 -1
  17. package/dist/esm/components/{TableNew/TableNew.js → Table/Table.js} +11 -10
  18. package/dist/esm/components/Table/Table.js.map +1 -0
  19. package/dist/esm/components/Tabs/Tabs.js +10 -11
  20. package/dist/esm/components/Tabs/Tabs.js.map +1 -1
  21. package/dist/esm/index.js +2 -2
  22. package/dist/index.development.js +58 -54
  23. package/dist/index.development.js.map +1 -1
  24. package/dist/index.js +1 -1
  25. package/dist/index.js.map +1 -1
  26. package/dist/src/components/DataGrid/DataGrid.d.ts +1 -8
  27. package/dist/src/components/DataGrid/DataGrid.types.d.ts +0 -8
  28. package/dist/src/components/FlyOutMenu/FlyOutMenu.d.ts +30 -18
  29. package/dist/src/components/PrimaryTabBar/PrimaryTabBarContent.d.ts +5 -1
  30. package/dist/src/components/PrimaryTabBar/PrimaryTabBarExtras.d.ts +5 -1
  31. package/dist/src/components/PrimaryTabBar/PrimaryTabBarList.d.ts +5 -1
  32. package/dist/src/components/PrimaryTabBar/PrimaryTabBarOverflowIndicator.d.ts +6 -3
  33. package/dist/src/components/PrimaryTabBar/PrimaryTabBarRoot.d.ts +5 -1
  34. package/dist/src/components/PrimaryTabBar/PrimaryTabBarTrigger.d.ts +5 -1
  35. package/dist/src/{generated/components/TableNew/TableNew.d.ts → components/Table/Table.d.ts} +4 -2
  36. package/dist/src/components/Table/index.d.ts +1 -0
  37. package/dist/src/components/Tabs/Tabs.d.ts +17 -5
  38. package/dist/src/generated/components/DataGrid/DataGrid.d.ts +1 -8
  39. package/dist/src/generated/components/DataGrid/DataGrid.types.d.ts +0 -8
  40. package/dist/src/generated/components/FlyOutMenu/FlyOutMenu.d.ts +30 -18
  41. package/dist/src/generated/components/PrimaryTabBar/PrimaryTabBarContent.d.ts +5 -1
  42. package/dist/src/generated/components/PrimaryTabBar/PrimaryTabBarExtras.d.ts +5 -1
  43. package/dist/src/generated/components/PrimaryTabBar/PrimaryTabBarList.d.ts +5 -1
  44. package/dist/src/generated/components/PrimaryTabBar/PrimaryTabBarOverflowIndicator.d.ts +6 -3
  45. package/dist/src/generated/components/PrimaryTabBar/PrimaryTabBarRoot.d.ts +5 -1
  46. package/dist/src/generated/components/PrimaryTabBar/PrimaryTabBarTrigger.d.ts +5 -1
  47. package/dist/src/{components/TableNew/TableNew.d.ts → generated/components/Table/Table.d.ts} +4 -2
  48. package/dist/src/generated/components/Table/index.d.ts +1 -0
  49. package/dist/src/generated/components/Tabs/Tabs.d.ts +17 -5
  50. package/dist/src/generated/index.d.ts +3 -3
  51. package/dist/src/index.d.ts +3 -3
  52. package/dist/stories/CardTableRecipe.stories.d.ts +2 -2
  53. package/dist/stories/PrimaryTabBar.stories.d.ts +30 -12
  54. package/dist/stories/{TableNew.stories.d.ts → Table.stories.d.ts} +7 -7
  55. package/dist/stories/TableCardRecipe.stories.d.ts +1 -1
  56. package/dist/stories/Tabs.stories.d.ts +16 -4
  57. package/package.json +1 -1
  58. package/dist/esm/components/TableNew/TableNew.js.map +0 -1
  59. package/dist/src/components/TableNew/index.d.ts +0 -1
  60. package/dist/src/generated/components/TableNew/index.d.ts +0 -1
@@ -51,14 +51,7 @@ export interface DataGridProps<Item> extends HTMLAttributes<HTMLTableElement> {
51
51
  /**
52
52
  * Config-driven data grid: `items` plus `fieldConfigurations` render the rows, with pagination,
53
53
  * selection, loading and empty states built in. For a table with custom structure (colspan,
54
- * grouped rows, sticky columns), use `TableNew`.
54
+ * grouped rows, sticky columns), use `Table`.
55
55
  */
56
56
  export declare function DataGrid<Item>({ items, fieldConfigurations, emptyRowsText, emptyFieldContentText, isLoading, showHeader, paginationMenuProps, onRowClick, className, dataTestId, isSelectable, selectedItems, onSelectedRowsChange, rowSelectionHeaderAccessories, ...otherAttributes }: DataGridProps<Item>): import("react").JSX.Element;
57
- /**
58
- * @deprecated Renamed to `DataGrid`. In the next major, `Table` becomes the compositional table
59
- * that is now `TableNew`.
60
- */
61
- export declare const Table: typeof DataGrid;
62
- /** @deprecated Renamed to `DataGridProps`. */
63
- export type TableProps<Item> = DataGridProps<Item>;
64
57
  export {};
@@ -42,12 +42,4 @@ export type DataGridFieldAction<Item> = {
42
42
  */
43
43
  handleClick: (item: Item) => void;
44
44
  };
45
- /** @deprecated Renamed to `DataGridFieldConfig`. */
46
- export type TableFieldConfig<Item> = DataGridFieldConfig<Item>;
47
- /** @deprecated Renamed to `DataGridFieldContent`. */
48
- export type TableFieldContent<Item> = DataGridFieldContent<Item>;
49
- /** @deprecated Renamed to `DataGridFieldText`. */
50
- export type TableFieldText = DataGridFieldText;
51
- /** @deprecated Renamed to `DataGridFieldAction`. */
52
- export type TableFieldAction<Item> = DataGridFieldAction<Item>;
53
45
  export {};
@@ -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
+ };
@@ -61,7 +61,7 @@ export interface TdProps extends TdHTMLAttributes<HTMLTableCellElement> {
61
61
  omitPadding?: boolean;
62
62
  }
63
63
  declare const Td: React.ForwardRefExoticComponent<TdProps & React.RefAttributes<HTMLTableCellElement>>;
64
- type TableNewComponent = typeof TableRoot & {
64
+ type TableComponent = typeof TableRoot & {
65
65
  Thead: typeof Thead;
66
66
  Tbody: typeof Tbody;
67
67
  TFoot: typeof TFoot;
@@ -69,5 +69,7 @@ type TableNewComponent = typeof TableRoot & {
69
69
  Th: typeof Th;
70
70
  Td: typeof Td;
71
71
  };
72
- export declare const TableNew: TableNewComponent;
72
+ export declare const Table: TableComponent;
73
+ /** @deprecated Renamed to `Table`. */
74
+ export declare const TableNew: TableComponent;
73
75
  export {};
@@ -0,0 +1 @@
1
+ export { Table, TableNew, type TableProps } from "./Table";
@@ -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 = {
@@ -51,14 +51,7 @@ export interface DataGridProps<Item> extends HTMLAttributes<HTMLTableElement> {
51
51
  /**
52
52
  * Config-driven data grid: `items` plus `fieldConfigurations` render the rows, with pagination,
53
53
  * selection, loading and empty states built in. For a table with custom structure (colspan,
54
- * grouped rows, sticky columns), use `TableNew`.
54
+ * grouped rows, sticky columns), use `Table`.
55
55
  */
56
56
  export declare function DataGrid<Item>({ items, fieldConfigurations, emptyRowsText, emptyFieldContentText, isLoading, showHeader, paginationMenuProps, onRowClick, className, dataTestId, isSelectable, selectedItems, onSelectedRowsChange, rowSelectionHeaderAccessories, ...otherAttributes }: DataGridProps<Item>): import("react").JSX.Element;
57
- /**
58
- * @deprecated Renamed to `DataGrid`. In the next major, `Table` becomes the compositional table
59
- * that is now `TableNew`.
60
- */
61
- export declare const Table: typeof DataGrid;
62
- /** @deprecated Renamed to `DataGridProps`. */
63
- export type TableProps<Item> = DataGridProps<Item>;
64
57
  export {};
@@ -42,12 +42,4 @@ export type DataGridFieldAction<Item> = {
42
42
  */
43
43
  handleClick: (item: Item) => void;
44
44
  };
45
- /** @deprecated Renamed to `DataGridFieldConfig`. */
46
- export type TableFieldConfig<Item> = DataGridFieldConfig<Item>;
47
- /** @deprecated Renamed to `DataGridFieldContent`. */
48
- export type TableFieldContent<Item> = DataGridFieldContent<Item>;
49
- /** @deprecated Renamed to `DataGridFieldText`. */
50
- export type TableFieldText = DataGridFieldText;
51
- /** @deprecated Renamed to `DataGridFieldAction`. */
52
- export type TableFieldAction<Item> = DataGridFieldAction<Item>;
53
45
  export {};
@@ -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
+ };
@@ -61,7 +61,7 @@ export interface TdProps extends TdHTMLAttributes<HTMLTableCellElement> {
61
61
  omitPadding?: boolean;
62
62
  }
63
63
  declare const Td: React.ForwardRefExoticComponent<TdProps & React.RefAttributes<HTMLTableCellElement>>;
64
- type TableNewComponent = typeof TableRoot & {
64
+ type TableComponent = typeof TableRoot & {
65
65
  Thead: typeof Thead;
66
66
  Tbody: typeof Tbody;
67
67
  TFoot: typeof TFoot;
@@ -69,5 +69,7 @@ type TableNewComponent = typeof TableRoot & {
69
69
  Th: typeof Th;
70
70
  Td: typeof Td;
71
71
  };
72
- export declare const TableNew: TableNewComponent;
72
+ export declare const Table: TableComponent;
73
+ /** @deprecated Renamed to `Table`. */
74
+ export declare const TableNew: TableComponent;
73
75
  export {};
@@ -0,0 +1 @@
1
+ export { Table, TableNew, type TableProps } from "./Table";
@@ -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 = {
@@ -58,10 +58,10 @@ export { Tooltip, TooltipProvider } from "./components/Tooltip";
58
58
  export { Tabs } from "./components/Tabs";
59
59
  export { PrimaryTabBar } from "./components/PrimaryTabBar/PrimaryTabBar";
60
60
  export { default as Line } from "./components/Line/Line";
61
- export { DataGrid, type DataGridProps, Table, type TableProps, } from "./components/DataGrid/DataGrid";
61
+ export { DataGrid, type DataGridProps } from "./components/DataGrid/DataGrid";
62
62
  export { prepareClientSidePagination } from "./components/DataGrid/DataGrid.utils";
63
- export { TableNew } from "./components/TableNew/TableNew";
64
- export { type DataGridFieldConfig, type DataGridFieldContent, type DataGridFieldText, type DataGridFieldAction, type TableFieldConfig, type TableFieldContent, type TableFieldText, type TableFieldAction, } from "./components/DataGrid/DataGrid.types";
63
+ export { Table, TableNew, type TableProps } from "./components/Table";
64
+ export { type DataGridFieldConfig, type DataGridFieldContent, type DataGridFieldText, type DataGridFieldAction, } from "./components/DataGrid/DataGrid.types";
65
65
  export { LoadingIndicator, type LoadingIndicatorProps, } from "./components/LoadingIndicator/LoadingIndicator";
66
66
  export { CheckboxList, type CheckboxListProps, } from "./components/CheckboxList/CheckboxList";
67
67
  export { NavLayout, type Props as NavLayoutProps, } from "./components/NavMenu/NavLayout";
@@ -58,10 +58,10 @@ export { Tooltip, TooltipProvider } from "./components/Tooltip";
58
58
  export { Tabs } from "./components/Tabs";
59
59
  export { PrimaryTabBar } from "./components/PrimaryTabBar/PrimaryTabBar";
60
60
  export { default as Line } from "./components/Line/Line";
61
- export { DataGrid, type DataGridProps, Table, type TableProps, } from "./components/DataGrid/DataGrid";
61
+ export { DataGrid, type DataGridProps } from "./components/DataGrid/DataGrid";
62
62
  export { prepareClientSidePagination } from "./components/DataGrid/DataGrid.utils";
63
- export { TableNew } from "./components/TableNew/TableNew";
64
- export { type DataGridFieldConfig, type DataGridFieldContent, type DataGridFieldText, type DataGridFieldAction, type TableFieldConfig, type TableFieldContent, type TableFieldText, type TableFieldAction, } from "./components/DataGrid/DataGrid.types";
63
+ export { Table, TableNew, type TableProps } from "./components/Table";
64
+ export { type DataGridFieldConfig, type DataGridFieldContent, type DataGridFieldText, type DataGridFieldAction, } from "./components/DataGrid/DataGrid.types";
65
65
  export { LoadingIndicator, type LoadingIndicatorProps, } from "./components/LoadingIndicator/LoadingIndicator";
66
66
  export { CheckboxList, type CheckboxListProps, } from "./components/CheckboxList/CheckboxList";
67
67
  export { NavLayout, type Props as NavLayoutProps, } from "./components/NavMenu/NavLayout";
@@ -1,7 +1,7 @@
1
1
  import { type StoryObj } from "@storybook/react-vite";
2
2
  /**
3
3
  * This recipe demonstrates how to build collapsible table sections
4
- * using composition with Card, DetailsDisclosure, and TableNew.
4
+ * using composition with Card, DetailsDisclosure, and Table.
5
5
  *
6
6
  * This approach is useful for organizing large datasets into
7
7
  * categorized, collapsible sections that users can expand on demand.
@@ -21,7 +21,7 @@ export default meta;
21
21
  type Story = StoryObj<typeof meta>;
22
22
  /**
23
23
  * Basic example showing a Card with collapsible table sections.
24
- * Each section contains a TableNew component displaying team members.
24
+ * Each section contains a Table component displaying team members.
25
25
  */
26
26
  export declare const BasicCollapsibleTables: Story;
27
27
  /**
@@ -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
  };