@nextui-org/react 1.0.0-beta.11 → 1.0.0-beta.13
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/README.md +1 -1
- package/cjs/button/button.styles.js +1 -1
- package/cjs/card/card.js +1 -1
- package/cjs/checkbox/checkbox.js +1 -1
- package/cjs/input/input.js +1 -1
- package/cjs/input/input.styles.js +1 -1
- package/cjs/popover/popover-trigger.js +1 -1
- package/cjs/progress/progress.js +1 -1
- package/cjs/progress/progress.styles.js +1 -1
- package/cjs/radio/radio.js +1 -1
- package/cjs/textarea/textarea.js +1 -1
- package/cjs/tooltip/tooltip.js +1 -1
- package/cjs/use-pagination/index.js +1 -1
- package/esm/button/button.styles.js +1 -1
- package/esm/card/card.js +1 -1
- package/esm/card/use-card.js +1 -1
- package/esm/checkbox/checkbox.js +1 -1
- package/esm/input/input.js +1 -1
- package/esm/input/input.styles.js +1 -1
- package/esm/navbar/navbar-item.js +1 -1
- package/esm/popover/popover-trigger.js +1 -1
- package/esm/progress/progress.js +1 -1
- package/esm/progress/progress.styles.js +1 -1
- package/esm/radio/radio.js +1 -1
- package/esm/textarea/textarea.js +1 -1
- package/esm/tooltip/tooltip.js +1 -1
- package/esm/use-pagination/index.js +1 -1
- package/package.json +1 -1
- package/types/button/button.styles.d.ts +36 -0
- package/types/button/index.d.ts +1 -0
- package/types/dropdown/dropdown-context.d.ts +2 -2
- package/types/dropdown/use-dropdown.d.ts +1 -1
- package/types/input/input.styles.d.ts +1076 -0
- package/types/modal/modal.d.ts +1 -1
- package/types/table/table.d.ts +2 -1
- package/types/textarea/utils.d.ts +1 -1
- package/types/tooltip/tooltip.d.ts +1 -2
- package/umd/nextui.js +9522 -14564
- package/umd/nextui.min.js +1 -1
package/types/modal/modal.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { ModalWrapperProps } from "./modal-wrapper";
|
|
2
3
|
import ModalBody from "./modal-body";
|
|
3
4
|
import ModalHeader from "./modal-header";
|
|
4
5
|
import ModalFooter from "./modal-footer";
|
|
5
|
-
import { ModalWrapperProps } from "./modal-wrapper";
|
|
6
6
|
interface Props {
|
|
7
7
|
open?: boolean;
|
|
8
8
|
scroll?: boolean;
|
package/types/table/table.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { CSS } from "../theme/stitches.config";
|
|
2
2
|
import React, { RefAttributes, PropsWithoutRef } from "react";
|
|
3
|
+
import { AriaTableProps } from "@react-aria/table";
|
|
3
4
|
import { TableStateProps } from "@react-stately/table";
|
|
4
5
|
import { SelectionMode, SelectionBehavior } from "@react-types/shared";
|
|
5
6
|
import { TableColumn as TableColumnBase, TableCell as TableCellBase, TableRow as TableRowBase, TableBody as TableBodyBase, TableHeader as TableHeaderBase } from "./base";
|
|
@@ -16,7 +17,7 @@ declare type NativeAttrs = Omit<React.TableHTMLAttributes<unknown>, keyof Props<
|
|
|
16
17
|
export declare type TableProps<T = object> = Props<T> & NativeAttrs & Omit<TableVariantsProps, "isMultiple" | "shadow" | "hasPagination"> & TableContainerVariantsProps & {
|
|
17
18
|
css?: CSS;
|
|
18
19
|
containerCss?: CSS;
|
|
19
|
-
}
|
|
20
|
+
} & Pick<AriaTableProps<T>, "onRowAction" | "onCellAction">;
|
|
20
21
|
declare type TableComponent<T, P = {}> = React.ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<T>> & {
|
|
21
22
|
Cell: typeof TableCellBase;
|
|
22
23
|
Column: typeof TableColumnBase;
|
|
@@ -8,6 +8,6 @@ export declare type SizingData = {
|
|
|
8
8
|
};
|
|
9
9
|
export declare const forceHiddenStyles: (node: HTMLElement) => void;
|
|
10
10
|
export declare const getSizingData: (node: HTMLElement) => SizingData | null;
|
|
11
|
-
export declare type CalculatedNodeHeights = number
|
|
11
|
+
export declare type CalculatedNodeHeights = [height: number, rowHeight: number];
|
|
12
12
|
export declare const calculateNodeHeight: (sizingData: SizingData, value: string, minRows?: number, maxRows?: number) => CalculatedNodeHeights;
|
|
13
13
|
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { CSS } from "../theme/stitches.config";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { Placement } from "../utils/prop-types";
|
|
4
|
-
import { TriggerTypes } from "../utils/prop-types";
|
|
3
|
+
import { Placement, TriggerTypes } from "../utils/prop-types";
|
|
5
4
|
import { TooltipContentProps } from "./tooltip-content";
|
|
6
5
|
import { TooltipContentVariantsProps } from "./tooltip.styles";
|
|
7
6
|
export declare type TooltipOnVisibleChange = (visible: boolean) => void;
|