@matthiaskrijgsman/mat-ui 0.0.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.
Files changed (44) hide show
  1. package/README.md +69 -0
  2. package/dist/Badge.d.ts +12 -0
  3. package/dist/BadgeColors.d.ts +27 -0
  4. package/dist/Button.d.ts +15 -0
  5. package/dist/ButtonIconRound.d.ts +16 -0
  6. package/dist/ButtonIconSquare.d.ts +16 -0
  7. package/dist/Divider.d.ts +5 -0
  8. package/dist/Input.d.ts +10 -0
  9. package/dist/InputCheck.d.ts +8 -0
  10. package/dist/InputDescription.d.ts +5 -0
  11. package/dist/InputError.d.ts +5 -0
  12. package/dist/InputErrorIcon.d.ts +1 -0
  13. package/dist/InputIconButton.d.ts +6 -0
  14. package/dist/InputIconButtonTray.d.ts +6 -0
  15. package/dist/InputLabel.d.ts +5 -0
  16. package/dist/InputPassword.d.ts +5 -0
  17. package/dist/InputRadio.d.ts +8 -0
  18. package/dist/InputSelect.d.ts +20 -0
  19. package/dist/InputSelectNative.d.ts +13 -0
  20. package/dist/InputSelectOption.d.ts +9 -0
  21. package/dist/InputSelectSearchable.d.ts +21 -0
  22. package/dist/InputSelectSearchableAsync.d.ts +22 -0
  23. package/dist/InputTextArea.d.ts +7 -0
  24. package/dist/InputToggle.d.ts +7 -0
  25. package/dist/Modal.d.ts +10 -0
  26. package/dist/Panel.d.ts +7 -0
  27. package/dist/ScrollArea.d.ts +5 -0
  28. package/dist/TabButtons.d.ts +14 -0
  29. package/dist/Test.d.ts +1 -0
  30. package/dist/Tooltip.d.ts +11 -0
  31. package/dist/hooks/use-debounce.d.ts +1 -0
  32. package/dist/index.d.ts +11 -0
  33. package/dist/mat-ui.js +6700 -0
  34. package/dist/mat-ui.js.map +1 -0
  35. package/dist/mat-ui.umd.cjs +80 -0
  36. package/dist/mat-ui.umd.cjs.map +1 -0
  37. package/dist/popover/PopoverBase.d.ts +4 -0
  38. package/dist/popover/PopoverButton.d.ts +12 -0
  39. package/dist/popover/PopoverPanel.d.ts +6 -0
  40. package/dist/popover/use-popover.d.ts +25 -0
  41. package/dist/spinner/Spinner.d.ts +5 -0
  42. package/dist/table/Table.d.ts +11 -0
  43. package/dist/util/classnames.util.d.ts +1 -0
  44. package/package.json +73 -0
@@ -0,0 +1,4 @@
1
+ import * as React from "react";
2
+ import type { PopoverBaseRefProps, PopoverRendererProps } from "@/popover/use-popover.tsx";
3
+ export type PopoverBaseProps = PopoverRendererProps & PopoverBaseRefProps;
4
+ export declare const PopoverBase: React.FC<PopoverBaseProps>;
@@ -0,0 +1,12 @@
1
+ import * as React from "react";
2
+ import type { TablerIcon } from "@tabler/icons-react";
3
+ export type PopoverButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
4
+ loading?: boolean;
5
+ children?: React.ReactNode;
6
+ Icon?: TablerIcon;
7
+ };
8
+ export declare const PopoverButton: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
9
+ loading?: boolean;
10
+ children?: React.ReactNode;
11
+ Icon?: TablerIcon;
12
+ } & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ export type PopoverPanelProps = React.HTMLProps<HTMLDivElement> & {
3
+ children?: React.ReactNode;
4
+ className?: string;
5
+ };
6
+ export declare const PopoverPanel: (props: PopoverPanelProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,25 @@
1
+ import * as React from "react";
2
+ import { type Placement } from "@floating-ui/react";
3
+ export type UsePopoverProps = {
4
+ placement?: Placement;
5
+ onOutsideClick?: () => void;
6
+ fullWidth?: boolean;
7
+ minWidth?: number;
8
+ maxWidth?: number;
9
+ };
10
+ export type PopoverRendererProps = {
11
+ open: boolean;
12
+ children: React.ReactNode;
13
+ className?: string;
14
+ };
15
+ export type PopoverBaseRefProps = {
16
+ onOutsideClick?: () => void;
17
+ floatingStyles: React.CSSProperties;
18
+ setFloating: React.RefCallback<HTMLDivElement>;
19
+ placement: Placement;
20
+ };
21
+ export type UsePopoverResult = {
22
+ anchorRef: React.RefCallback<HTMLDivElement | null>;
23
+ Popover: React.ComponentType<PopoverRendererProps>;
24
+ };
25
+ export declare const usePopover: (props: UsePopoverProps) => UsePopoverResult;
@@ -0,0 +1,5 @@
1
+ export type SpinnerProps = {
2
+ speed?: number;
3
+ className?: string;
4
+ };
5
+ export declare const Spinner: (props: SpinnerProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import * as React from "react";
2
+ export type TableColumnDef<T> = {
3
+ id: string;
4
+ header: string;
5
+ renderCell: (row: T) => React.ReactNode;
6
+ };
7
+ export type TableProps<T> = {
8
+ columns: TableColumnDef<T>[];
9
+ rows: T[];
10
+ };
11
+ export declare const Table: <T>(props: TableProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const classNames: (...classes: any[]) => string;
package/package.json ADDED
@@ -0,0 +1,73 @@
1
+ {
2
+ "name": "@matthiaskrijgsman/mat-ui",
3
+ "version": "0.0.0",
4
+ "type": "module",
5
+ "main": "./dist/mat-ui.umd.cjs",
6
+ "module": "./dist/mat-ui.js",
7
+ "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/mat-ui.js",
12
+ "require": "./dist/mat-ui.umd.cjs",
13
+ "default": "./dist/mat-ui.js"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist"
18
+ ],
19
+ "publishConfig": {
20
+ "access": "public"
21
+ },
22
+ "sideEffects": [
23
+ "**/*.css"
24
+ ],
25
+ "peerDependencies": {
26
+ "@floating-ui/react": "^0.27.16",
27
+ "@tabler/icons-react": "^3.34.1",
28
+ "motion": "^12.23.12",
29
+ "react": "^19.1.1",
30
+ "react-custom-scrollbars": "^4.2.1",
31
+ "react-dom": "^19.1.1",
32
+ "react-merge-refs": "^3.0.2"
33
+ },
34
+ "devDependencies": {
35
+ "@chromatic-com/storybook": "^4.1.1",
36
+ "@eslint/js": "^9.33.0",
37
+ "@storybook/addon-a11y": "^9.1.3",
38
+ "@storybook/addon-docs": "^9.1.3",
39
+ "@storybook/addon-vitest": "^9.1.3",
40
+ "@storybook/react-vite": "^9.1.3",
41
+ "@tailwindcss/forms": "^0.5.10",
42
+ "@tailwindcss/vite": "^4.1.12",
43
+ "@types/node": "^24.3.0",
44
+ "@types/react": "^19.1.10",
45
+ "@types/react-custom-scrollbars": "^4.0.13",
46
+ "@types/react-dom": "^19.1.7",
47
+ "@vitejs/plugin-react": "^5.0.0",
48
+ "@vitest/browser": "^3.2.4",
49
+ "@vitest/coverage-v8": "^3.2.4",
50
+ "chromatic": "^13.1.3",
51
+ "eslint": "^9.33.0",
52
+ "eslint-plugin-react-hooks": "^5.2.0",
53
+ "eslint-plugin-react-refresh": "^0.4.20",
54
+ "eslint-plugin-storybook": "^9.1.3",
55
+ "globals": "^16.3.0",
56
+ "playwright": "^1.55.0",
57
+ "storybook": "^9.1.3",
58
+ "tailwindcss": "^4.1.12",
59
+ "typescript": "~5.8.3",
60
+ "typescript-eslint": "^8.39.1",
61
+ "vite": "^7.1.2",
62
+ "vitest": "^3.2.4"
63
+ },
64
+ "scripts": {
65
+ "dev": "vite",
66
+ "build": "vite build && tsc -p tsconfig.build.json",
67
+ "build:types": "tsc -p tsconfig.build.json",
68
+ "lint": "eslint .",
69
+ "preview": "vite preview",
70
+ "storybook": "storybook dev -p 6006",
71
+ "build-storybook": "storybook build"
72
+ }
73
+ }