@luscii-healthtech/web-ui 42.5.2 → 42.7.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.
- package/dist/index.development.js +24 -8
- package/dist/index.development.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/src/components/TableNew/TableNew.d.ts +8 -3
- package/dist/stories/TableNew.stories.d.ts +4 -2
- package/dist/web-ui-tailwind.css +12 -0
- package/dist/web-ui.esm.js +1 -1
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -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,14 +13,17 @@ 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
|
}
|
|
19
19
|
declare function Thead({ className, children, stickyHeader, ...attrs }: TheadProps): import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
export interface TbodyProps extends HTMLAttributes<HTMLTableSectionElement> {
|
|
21
|
+
hasTFoot?: boolean;
|
|
21
22
|
}
|
|
22
|
-
declare function Tbody({ className, children, ...attrs }: TbodyProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
declare function Tbody({ className, children, hasTFoot, ...attrs }: TbodyProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export interface TFootProps extends HTMLAttributes<HTMLTableSectionElement> {
|
|
25
|
+
}
|
|
26
|
+
declare function TFoot({ className, children, ...attrs }: TFootProps): import("react/jsx-runtime").JSX.Element;
|
|
23
27
|
export interface TrProps extends HTMLAttributes<HTMLTableRowElement> {
|
|
24
28
|
}
|
|
25
29
|
declare function Tr({ className, children, ...attrs }: TrProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -39,9 +43,10 @@ export interface TdProps extends TdHTMLAttributes<HTMLTableCellElement> {
|
|
|
39
43
|
omitPadding?: boolean;
|
|
40
44
|
}
|
|
41
45
|
declare function Td({ className, children, omitPadding, ...attrs }: TdProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
-
export declare const TableNew:
|
|
46
|
+
export declare const TableNew: React.ForwardRefExoticComponent<TableProps & React.RefAttributes<HTMLDivElement>> & {
|
|
43
47
|
Thead: typeof Thead;
|
|
44
48
|
Tbody: typeof Tbody;
|
|
49
|
+
TFoot: typeof TFoot;
|
|
45
50
|
Tr: typeof Tr;
|
|
46
51
|
Th: typeof Th;
|
|
47
52
|
Td: typeof Td;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { type StoryObj } from "@storybook/react-webpack5";
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: (
|
|
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
|
-
Tbody: ({ className, children, ...attrs }: import("../src/components/TableNew/TableNew").TbodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
Tbody: ({ className, children, hasTFoot, ...attrs }: import("../src/components/TableNew/TableNew").TbodyProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
TFoot: ({ className, children, ...attrs }: import("../src/components/TableNew/TableNew").TFootProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
Tr: ({ className, children, ...attrs }: import("../src/components/TableNew/TableNew").TrProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
Th: ({ className, children, omitPadding, ...attrs }: import("../src/components/TableNew/TableNew").ThProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
Td: ({ className, children, omitPadding, ...attrs }: import("../src/components/TableNew/TableNew").TdProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -28,3 +29,4 @@ export declare const EmptyState: Story;
|
|
|
28
29
|
export declare const StickyHeader: Story;
|
|
29
30
|
export declare const StickyFirstColumn: Story;
|
|
30
31
|
export declare const StickyHeaderAndColumn: Story;
|
|
32
|
+
export declare const WithFooter: Story;
|
package/dist/web-ui-tailwind.css
CHANGED
|
@@ -4745,6 +4745,12 @@ button, input:where([type='button'], [type='reset'], [type='submit']), ::file-se
|
|
|
4745
4745
|
border-top-right-radius: var(--ui-radius-2xl);
|
|
4746
4746
|
}
|
|
4747
4747
|
}
|
|
4748
|
+
.ui\:\[\&\>tr\:last-child\>td\]\:border-b {
|
|
4749
|
+
&>tr:last-child>td {
|
|
4750
|
+
border-bottom-style: var(--tw-border-style);
|
|
4751
|
+
border-bottom-width: 1px;
|
|
4752
|
+
}
|
|
4753
|
+
}
|
|
4748
4754
|
.ui\:\[\&\>tr\:last-child\>td\:first-child\]\:rounded-bl-2xl {
|
|
4749
4755
|
&>tr:last-child>td:first-child {
|
|
4750
4756
|
border-bottom-left-radius: var(--ui-radius-2xl);
|
|
@@ -4755,6 +4761,12 @@ button, input:where([type='button'], [type='reset'], [type='submit']), ::file-se
|
|
|
4755
4761
|
border-bottom-right-radius: var(--ui-radius-2xl);
|
|
4756
4762
|
}
|
|
4757
4763
|
}
|
|
4764
|
+
.ui\:\[\&\>tr\:last-child\>th\]\:border-b {
|
|
4765
|
+
&>tr:last-child>th {
|
|
4766
|
+
border-bottom-style: var(--tw-border-style);
|
|
4767
|
+
border-bottom-width: 1px;
|
|
4768
|
+
}
|
|
4769
|
+
}
|
|
4758
4770
|
.ui\:\[\&\>tr\>td\]\:border-b {
|
|
4759
4771
|
&>tr>td {
|
|
4760
4772
|
border-bottom-style: var(--tw-border-style);
|