quicksnack 3.44.0 → 3.45.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,27 +1,22 @@
1
- import React from "react";
2
- import { Theme } from "../../UiProvider";
3
- import { Responsive } from "../../responsiveness/responsiveProps";
4
- interface TableProps {
5
- tableLayout?: Responsive<"auto" | "fixed" | "initial" | "inherit">;
1
+ import React, { PropsWithChildren } from "react";
2
+ interface RowProps extends React.HTMLAttributes<HTMLTableRowElement> {
3
+ disableHover?: boolean;
6
4
  }
7
- export declare const StyledTable: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>, TableProps>>;
8
- declare const StyledTableRow: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, {
9
- disableHover?: boolean | undefined;
10
- }>>;
11
- interface HeadCellProps {
5
+ declare const StyledTableRow: ({ className, disableHover, ...rest }: PropsWithChildren<RowProps>) => JSX.Element;
6
+ interface CellProps extends React.HTMLAttributes<HTMLTableCellElement> {
7
+ variant?: "positive" | "negative" | "info" | "warning" | "basic" | "emphasized";
8
+ width?: number | string;
9
+ }
10
+ declare const StyledTableCell: ({ className, variant, width, ...rest }: PropsWithChildren<CellProps>) => JSX.Element;
11
+ interface HeadCellProps extends React.HTMLAttributes<HTMLTableHeaderCellElement> {
12
12
  sortable?: boolean;
13
- sortDirection?: 'asc' | 'desc';
14
- variant?: keyof Theme['palette']['pane'];
13
+ sortDirection?: "asc" | "desc";
15
14
  width?: number | string;
16
15
  }
17
- declare const StyledTableHeadCell: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, HeadCellProps>>;
18
- export declare const Table: React.FC<React.PropsWithChildren<TableProps>> & {
16
+ declare const StyledTableHeadCell: ({ sortable, sortDirection, width, className, ...rest }: PropsWithChildren<HeadCellProps>) => JSX.Element;
17
+ export declare const Table: React.FC<PropsWithChildren<React.HTMLAttributes<HTMLTableElement>>> & {
19
18
  Row: typeof StyledTableRow;
20
- Cell: typeof TableCell;
19
+ Cell: typeof StyledTableCell;
21
20
  HeadCell: typeof StyledTableHeadCell;
22
21
  };
23
- interface TableCellProps extends React.HTMLAttributes<HTMLTableCellElement> {
24
- variant?: keyof Theme['palette']['pane'];
25
- }
26
- declare const TableCell: React.FC<React.PropsWithChildren<TableCellProps>>;
27
22
  export {};
@@ -6,5 +6,5 @@ interface Props<ID> {
6
6
  onClick?: (id: ID) => void;
7
7
  variant?: "hint" | "error";
8
8
  }
9
- export declare const Tab: <ID>({ id, isActive, onClick, variant, ...restProps }: React.PropsWithChildren<Props<ID> & BoxProps>) => JSX.Element;
9
+ export declare const Tab: <ID>({ id, isActive, onClick, variant, ...restProps }: React.PropsWithChildren<Props<ID> & Omit<BoxProps, "id" | "onClick">>) => JSX.Element;
10
10
  export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quicksnack",
3
3
  "description": "Quickly create beautiful admin layouts using react",
4
- "version": "3.44.0",
4
+ "version": "3.45.0",
5
5
  "private": false,
6
6
  "files": [
7
7
  "dist/**"