@matthiaskrijgsman/mat-ui 0.0.4 → 0.0.6
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/ScrollbarTest.d.ts +1 -0
- package/dist/components/button/Button.d.ts +3 -0
- package/dist/{popover/PopoverButton.d.ts → components/dropdown-menu/DropdownButton.d.ts} +4 -2
- package/dist/components/dropdown-menu/DropdownButtonGroup.d.ts +6 -0
- package/dist/components/dropdown-menu/DropdownMenu.d.ts +10 -0
- package/dist/components/dropdown-menu/DropdownPanel.d.ts +8 -0
- package/dist/components/dropdown-menu/use-dropdown-dismiss.d.ts +5 -0
- package/dist/components/inputs/InputCheck.d.ts +2 -2
- package/dist/index.d.ts +5 -3
- package/dist/index.js +1645 -1551
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +33 -23
- package/dist/index.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/table/TableColumnHead.d.ts +5 -0
- package/dist/types.d.ts +2 -2
- package/package.json +2 -1
- package/dist/popover/PopoverPanel.d.ts +0 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ScrollbarTest: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import type { TablerIcon } from "@tabler/icons-react";
|
|
2
3
|
export type Variant = 'primary' | 'secondary' | 'tertiary' | 'white' | 'black' | 'transparent';
|
|
3
4
|
export type Size = 'sm' | 'md' | 'lg';
|
|
4
5
|
export type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
@@ -6,10 +7,12 @@ export type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
|
6
7
|
size?: Size;
|
|
7
8
|
loading?: boolean;
|
|
8
9
|
children?: React.ReactNode;
|
|
10
|
+
Icon?: TablerIcon;
|
|
9
11
|
};
|
|
10
12
|
export declare const Button: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
11
13
|
variant?: Variant;
|
|
12
14
|
size?: Size;
|
|
13
15
|
loading?: boolean;
|
|
14
16
|
children?: React.ReactNode;
|
|
17
|
+
Icon?: TablerIcon;
|
|
15
18
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import type { TablerIcon } from "@tabler/icons-react";
|
|
3
|
-
export type
|
|
3
|
+
export type DropdownButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
4
4
|
loading?: boolean;
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
Icon?: TablerIcon;
|
|
7
|
+
dismissOnClick?: boolean;
|
|
7
8
|
};
|
|
8
|
-
export declare const
|
|
9
|
+
export declare const DropdownButton: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
9
10
|
loading?: boolean;
|
|
10
11
|
children?: React.ReactNode;
|
|
11
12
|
Icon?: TablerIcon;
|
|
13
|
+
dismissOnClick?: boolean;
|
|
12
14
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { Placement } from "@floating-ui/react";
|
|
3
|
+
export type DropdownMenuProps = {
|
|
4
|
+
trigger: React.ReactNode;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
placement?: Placement;
|
|
7
|
+
minWidth?: number;
|
|
8
|
+
className?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const DropdownMenu: (props: DropdownMenuProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { Size } from "@/components/button/Button.tsx";
|
|
3
|
+
export type DropdownPanelProps = React.HTMLProps<HTMLDivElement> & {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
padding?: Size;
|
|
7
|
+
};
|
|
8
|
+
export declare const DropdownPanel: (props: DropdownPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
export
|
|
2
|
+
export type InputCheckProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> & {
|
|
3
3
|
label?: string | React.ReactNode;
|
|
4
4
|
description?: string | React.ReactNode;
|
|
5
5
|
error?: string | React.ReactNode;
|
|
6
|
-
}
|
|
6
|
+
};
|
|
7
7
|
export declare const InputCheck: (props: InputCheckProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -27,9 +27,11 @@ export { Badge } from "./components/Badge.tsx";
|
|
|
27
27
|
export { BadgeColor } from "./components/BadgeColors.tsx";
|
|
28
28
|
export { TabButtons } from "./components/TabButtons.tsx";
|
|
29
29
|
export { Spinner } from "./spinner/Spinner.tsx";
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
30
|
+
export { DropdownButton } from "./components/dropdown-menu/DropdownButton.tsx";
|
|
31
|
+
export { DropdownButtonGroup } from "./components/dropdown-menu/DropdownButtonGroup.tsx";
|
|
32
|
+
export { DropdownPanel } from "./components/dropdown-menu/DropdownPanel.tsx";
|
|
33
|
+
export { DropdownMenu } from "./components/dropdown-menu/DropdownMenu.tsx";
|
|
33
34
|
export { usePopover } from "./popover/use-popover.tsx";
|
|
35
|
+
export { PopoverBase } from "./popover/PopoverBase.tsx";
|
|
34
36
|
export { Test } from "./components/Test.tsx";
|
|
35
37
|
export * from "./types.ts";
|