stp-ui-kit 0.0.12 → 0.0.16
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/components/Table/Cell.d.ts +7 -0
- package/dist/components/Table/Table.d.ts +2 -6
- package/dist/components/index.d.ts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/stp-ui-kit.cjs.js +13 -262
- package/dist/stp-ui-kit.cjs.js.map +1 -1
- package/dist/stp-ui-kit.es.js +1736 -26926
- package/dist/stp-ui-kit.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +91 -90
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
export type CellType = "label" | "input" | "button" | "icon-button" | "checkbox" | "empty" | "icon-label";
|
|
3
|
+
interface CellProps {
|
|
4
|
+
cellType?: CellType;
|
|
5
|
+
}
|
|
6
|
+
export declare const Cell: ({ children, cellType, ...props }: PropsWithChildren<CellProps>) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
1
2
|
import { Table as ShadcnTable, TableBody as ShadcnTableBody, TableCaption as ShadcnTableCaption, TableCell as ShadcnTableCell, TableHead as ShadcnTableHead, TableHeader as ShadcnTableHeader, TableRow as ShadcnTableRow } from '../ui/table';
|
|
2
3
|
export declare const Table: React.FC<React.ComponentProps<typeof ShadcnTable>>;
|
|
3
4
|
export declare const TableBody: React.FC<React.ComponentProps<typeof ShadcnTableBody>>;
|
|
4
5
|
export declare const TableCaption: React.FC<React.ComponentProps<typeof ShadcnTableCaption>>;
|
|
5
|
-
export
|
|
6
|
-
export interface CustomTableCellProps extends React.ComponentProps<typeof ShadcnTableCell> {
|
|
7
|
-
cellType?: CellType;
|
|
8
|
-
hasBottomBorder?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare const TableCell: ({ cellType, hasBottomBorder, className, children, ...props }: CustomTableCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare const TableCell: React.FC<ComponentProps<typeof ShadcnTableCell>>;
|
|
11
7
|
export declare const TableHeader: React.FC<React.ComponentProps<typeof ShadcnTableHeader>>;
|
|
12
8
|
interface CustomTableHeadProps extends React.ComponentProps<typeof ShadcnTableHead> {
|
|
13
9
|
variant?: "primary" | "secondary";
|
|
@@ -12,8 +12,9 @@ import { NavigationItem } from './NavigationItem/NavigationItem';
|
|
|
12
12
|
import { PageHeader } from './PageHeader/PageHeader';
|
|
13
13
|
import { ProgressLine } from './ProgressLine/ProgressLine';
|
|
14
14
|
import { SectionHeader } from './SectionHeader/SectionHeader';
|
|
15
|
+
import { Cell } from './Table/Cell';
|
|
15
16
|
import { Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow } from './Table/Table';
|
|
16
17
|
import { Tooltip } from './Tooltip/Tooltip';
|
|
17
18
|
import { TopBar } from './TopBar/TopBar';
|
|
18
19
|
import { Typography } from './Typography/Typography';
|
|
19
|
-
export { Banner, Button, Collapse, CourseCollapse, Empty, FormItem, IconButton, Modal, Tooltip, NavigationItem, PageHeader, ProgressLine, SectionHeader, TopBar, Typography, message, Message, ModalAPI, Table, TableBody, TableHead, TableHeader, TableCaption, TableCell, TableRow, };
|
|
20
|
+
export { Banner, Button, Collapse, CourseCollapse, Empty, FormItem, IconButton, Modal, Tooltip, NavigationItem, PageHeader, ProgressLine, SectionHeader, TopBar, Typography, message, Message, ModalAPI, Table, TableBody, TableHead, TableHeader, TableCaption, TableCell, TableRow, Cell, };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { Banner, Button, Collapse, CourseCollapse, Empty, FormItem, IconButton, Message, message, Modal, ModalAPI, NavigationItem, PageHeader, ProgressLine, SectionHeader, Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow, Tooltip, TopBar, Typography } from './components';
|
|
2
|
-
|
|
2
|
+
import { Cell } from './components/Table/Cell';
|
|
3
|
+
export { Banner, Button, Collapse, CourseCollapse, Empty, FormItem, IconButton, Modal, Tooltip, NavigationItem, PageHeader, ProgressLine, SectionHeader, TopBar, Typography, message, Message, ModalAPI, Table, TableBody, TableHead, TableHeader, TableCaption, TableCell, TableRow, Cell, };
|