@luscii-healthtech/web-ui 42.5.2 → 42.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,5 @@
1
1
  import type { HTMLAttributes, TdHTMLAttributes, ThHTMLAttributes } from "react";
2
+ import React from "react";
2
3
  export interface TableProps extends HTMLAttributes<HTMLTableElement> {
3
4
  /**
4
5
  * Makes the header, first column, or both sticky when scrolling.
@@ -12,7 +13,6 @@ export interface TableProps extends HTMLAttributes<HTMLTableElement> {
12
13
  */
13
14
  headerBackground?: "first-column" | "first-row" | "first-row-and-column" | "none";
14
15
  }
15
- declare function TableRoot({ className, children, sticky, headerBackground, ...attrs }: TableProps): import("react/jsx-runtime").JSX.Element;
16
16
  export interface TheadProps extends HTMLAttributes<HTMLTableSectionElement> {
17
17
  stickyHeader?: boolean;
18
18
  }
@@ -39,7 +39,7 @@ export interface TdProps extends TdHTMLAttributes<HTMLTableCellElement> {
39
39
  omitPadding?: boolean;
40
40
  }
41
41
  declare function Td({ className, children, omitPadding, ...attrs }: TdProps): import("react/jsx-runtime").JSX.Element;
42
- export declare const TableNew: typeof TableRoot & {
42
+ export declare const TableNew: React.ForwardRefExoticComponent<TableProps & React.RefAttributes<HTMLDivElement>> & {
43
43
  Thead: typeof Thead;
44
44
  Tbody: typeof Tbody;
45
45
  Tr: typeof Tr;
@@ -1,7 +1,7 @@
1
1
  import { type StoryObj } from "@storybook/react-webpack5";
2
2
  declare const meta: {
3
3
  title: string;
4
- component: (({ className, children, sticky, headerBackground, ...attrs }: import("../src/components/TableNew/TableNew").TableProps) => import("react/jsx-runtime").JSX.Element) & {
4
+ component: import("react").ForwardRefExoticComponent<import("../src/components/TableNew/TableNew").TableProps & import("react").RefAttributes<HTMLDivElement>> & {
5
5
  Thead: ({ className, children, stickyHeader, ...attrs }: import("../src/components/TableNew/TableNew").TheadProps) => import("react/jsx-runtime").JSX.Element;
6
6
  Tbody: ({ className, children, ...attrs }: import("../src/components/TableNew/TableNew").TbodyProps) => import("react/jsx-runtime").JSX.Element;
7
7
  Tr: ({ className, children, ...attrs }: import("../src/components/TableNew/TableNew").TrProps) => import("react/jsx-runtime").JSX.Element;