@eintrek/erp-theme 1.0.3 → 1.0.4

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 (78) hide show
  1. package/dist/components/ui/calendar.d.ts +23 -8
  2. package/dist/components/ui/carousel.d.ts +1 -1
  3. package/dist/components/ui/command.d.ts +1 -1
  4. package/dist/components/ui/faceted.d.ts +2 -2
  5. package/dist/components/ui/pagination.d.ts +1 -1
  6. package/dist/components/ui/sidebar.d.ts +4 -4
  7. package/dist/components/ui/tabs.d.ts +1 -1
  8. package/dist/components/ui/toggle-group.d.ts +1 -1
  9. package/dist/index.css +1 -1
  10. package/dist/index.d.ts +16 -19
  11. package/dist/index.esm.css +1 -1
  12. package/dist/index.esm.js +17658 -41957
  13. package/dist/index.esm.js.map +1 -1
  14. package/dist/index.js +17681 -41971
  15. package/dist/index.js.map +1 -1
  16. package/package.json +36 -23
  17. package/scripts/enforce-pnpm.js +18 -0
  18. package/dist/components/data-table/data-table-action-bar.d.ts +0 -20
  19. package/dist/components/data-table/data-table-advanced-toolbar.d.ts +0 -7
  20. package/dist/components/data-table/data-table-column-header.d.ts +0 -8
  21. package/dist/components/data-table/data-table-date-filter.d.ts +0 -8
  22. package/dist/components/data-table/data-table-faceted-filter.d.ts +0 -10
  23. package/dist/components/data-table/data-table-filter-list.d.ts +0 -11
  24. package/dist/components/data-table/data-table-filter-menu.d.ts +0 -11
  25. package/dist/components/data-table/data-table-pagination.d.ts +0 -7
  26. package/dist/components/data-table/data-table-range-filter.d.ts +0 -11
  27. package/dist/components/data-table/data-table-skeleton.d.ts +0 -11
  28. package/dist/components/data-table/data-table-slider-filter.d.ts +0 -7
  29. package/dist/components/data-table/data-table-sort-list.d.ts +0 -8
  30. package/dist/components/data-table/data-table-toolbar.d.ts +0 -7
  31. package/dist/components/data-table/data-table-view-options.d.ts +0 -6
  32. package/dist/components/data-table/data-table.d.ts +0 -8
  33. package/dist/config/data-table.d.ts +0 -124
  34. package/dist/hooks/use-data-table.d.ts +0 -23
  35. package/dist/lib/data-table.d.ts +0 -12
  36. package/dist/lib/filter-columns.d.ts +0 -8
  37. package/dist/lib/parsers.d.ts +0 -25
  38. package/dist/registry/alert.stories.d.ts +0 -34
  39. package/dist/registry/aspect-ratio.stories.d.ts +0 -24
  40. package/dist/registry/badge.stories.d.ts +0 -42
  41. package/dist/registry/breadcrumb.stories.d.ts +0 -26
  42. package/dist/registry/button.stories.d.ts +0 -82
  43. package/dist/registry/calendar.stories.d.ts +0 -43
  44. package/dist/registry/card.stories.d.ts +0 -24
  45. package/dist/registry/carousel.stories.d.ts +0 -17
  46. package/dist/registry/chart.stories.d.ts +0 -32
  47. package/dist/registry/checkbox.stories.d.ts +0 -17
  48. package/dist/registry/command.stories.d.ts +0 -41
  49. package/dist/registry/data-table.stories.d.ts +0 -59
  50. package/dist/registry/date-picker.stories.d.ts +0 -32
  51. package/dist/registry/drawer.stories.d.ts +0 -27
  52. package/dist/registry/form.stories.d.ts +0 -14
  53. package/dist/registry/input-otp.stories.d.ts +0 -41
  54. package/dist/registry/input.stories.d.ts +0 -47
  55. package/dist/registry/label.stories.d.ts +0 -27
  56. package/dist/registry/pagination.stories.d.ts +0 -91
  57. package/dist/registry/progress.stories.d.ts +0 -31
  58. package/dist/registry/resizable.stories.d.ts +0 -12
  59. package/dist/registry/scroll-area.stories.d.ts +0 -41
  60. package/dist/registry/select.stories.d.ts +0 -13
  61. package/dist/registry/separator.stories.d.ts +0 -21
  62. package/dist/registry/sheet.stories.d.ts +0 -16
  63. package/dist/registry/sidebar.stories.d.ts +0 -336
  64. package/dist/registry/skeleton.stories.d.ts +0 -20
  65. package/dist/registry/slider.stories.d.ts +0 -30
  66. package/dist/registry/sonner.stories.d.ts +0 -14
  67. package/dist/registry/table.stories.d.ts +0 -104
  68. package/dist/registry/textarea.stories.d.ts +0 -40
  69. package/dist/registry/toggle.stories.d.ts +0 -35
  70. package/dist/registry/tokens/color.stories.d.ts +0 -23
  71. package/dist/registry/tokens/radius.stories.d.ts +0 -17
  72. package/dist/registry/tokens/typography.stories.d.ts +0 -28
  73. package/dist/registry/tooltip.stories.d.ts +0 -26
  74. package/dist/types/data-table.d.ts +0 -33
  75. package/dist/types/doc.d.ts +0 -195
  76. /package/dist/components/ui/{form.d.ts → Form.d.ts} +0 -0
  77. /package/dist/components/ui/{input.d.ts → Input.d.ts} +0 -0
  78. /package/dist/components/ui/{label.d.ts → Label.d.ts} +0 -0
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@eintrek/erp-theme",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "private": false,
5
+ "packageManager": "pnpm@10.17.1",
5
6
  "type": "module",
6
7
  "description": "A shadcn/ui component library with Storybook",
7
8
  "main": "dist/index.js",
@@ -9,8 +10,19 @@
9
10
  "types": "dist/index.d.ts",
10
11
  "style": "dist/styles.css",
11
12
  "files": [
12
- "dist"
13
+ "dist",
14
+ "scripts/enforce-pnpm.js"
13
15
  ],
16
+ "scripts": {
17
+ "preinstall": "node scripts/enforce-pnpm.js",
18
+ "build": "cross-env NODE_ENV=production rollup -c --silent",
19
+ "dev": "cross-env NODE_ENV=production rollup -c -w",
20
+ "storybook": "storybook dev -p 6006",
21
+ "build-storybook": "storybook build",
22
+ "clean": "rimraf dist",
23
+ "prepare": "rimraf dist && cross-env NODE_ENV=production rollup -c --silent",
24
+ "pack": "cross-env NODE_ENV=production pnpm build && pnpm pack"
25
+ },
14
26
  "keywords": [
15
27
  "react",
16
28
  "components",
@@ -20,9 +32,10 @@
20
32
  "typescript"
21
33
  ],
22
34
  "peerDependencies": {
23
- "next": "^15.0.0",
24
- "react": "^19.1.0",
25
- "react-dom": "^19.1.0"
35
+ "next": "^15.5.3",
36
+ "react": "^19.1.1",
37
+ "react-dom": "^19.1.1",
38
+ "embla-carousel-react": "^8.6.0"
26
39
  },
27
40
  "devDependencies": {
28
41
  "@eslint/eslintrc": "^3.3.1",
@@ -40,6 +53,7 @@
40
53
  "@types/react-date-range": "^1.4.10",
41
54
  "@types/react-dom": "^19.0.0",
42
55
  "autoprefixer": "^10.4.16",
56
+ "cross-env": "^7.0.3",
43
57
  "eslint": "^9.29.0",
44
58
  "eslint-config-next": "^15.3.4",
45
59
  "eslint-plugin-storybook": "^9.0.12",
@@ -57,7 +71,7 @@
57
71
  "rollup-plugin-typescript2": "^0.36.0",
58
72
  "storybook": "^9.0.9",
59
73
  "tailwindcss": "^4.0.0",
60
- "typescript": "^5.3.3"
74
+ "typescript": "^5.9.2"
61
75
  },
62
76
  "dependencies": {
63
77
  "@dnd-kit/core": "^6.3.1",
@@ -66,10 +80,16 @@
66
80
  "@dnd-kit/utilities": "^3.2.2",
67
81
  "@faker-js/faker": "^9.8.0",
68
82
  "@hookform/resolvers": "^5.1.1",
83
+ "@radix-ui/react-checkbox": "^1.3.3",
84
+ "@radix-ui/react-dialog": "^1.1.15",
85
+ "@radix-ui/react-dropdown-menu": "^2.1.16",
69
86
  "@radix-ui/react-label": "^2.1.7",
70
- "@radix-ui/react-select": "^2.2.5",
87
+ "@radix-ui/react-popover": "^1.1.15",
88
+ "@radix-ui/react-progress": "^1.1.7",
89
+ "@radix-ui/react-select": "^2.2.6",
90
+ "@radix-ui/react-separator": "^1.1.7",
71
91
  "@radix-ui/react-slot": "^1.2.3",
72
- "@tanstack/react-table": "^8.21.3",
92
+ "@radix-ui/react-tabs": "^1.1.13",
73
93
  "class-variance-authority": "^0.7.1",
74
94
  "clsx": "^2.1.1",
75
95
  "cmdk": "^1.1.1",
@@ -81,19 +101,20 @@
81
101
  "lucide-react": "^0.516.0",
82
102
  "motion": "^12.19.1",
83
103
  "nanoid": "^5.1.5",
84
- "next": "^15.0.0",
104
+ "next": "^15.5.3",
85
105
  "next-themes": "^0.4.6",
86
- "nuqs": "^2.4.3",
87
106
  "prettier": "^3.5.3",
88
107
  "radix-ui": "^1.4.2",
89
- "react": "^19.1.0",
90
- "react-day-picker": "^9.7.0",
91
- "react-dom": "^19.1.0",
108
+ "react": "^19.1.1",
109
+ "react-dom": "^19.1.1",
110
+ "react-day-picker": "^9.11.0",
111
+ "react-dropzone": "^14.3.8",
112
+ "react-error-boundary": "6.0.0",
92
113
  "react-hook-form": "^7.58.1",
93
114
  "react-resizable-panels": "^3.0.3",
94
115
  "recharts": "^2.15.3",
95
116
  "server-only": "^0.0.1",
96
- "shadcn": "^2.7.0",
117
+ "shadcn": "^3.3.1",
97
118
  "sonner": "^2.0.5",
98
119
  "tailwind-merge": "^2.6.0",
99
120
  "tailwindcss-animate": "^1.0.7",
@@ -108,13 +129,5 @@
108
129
  "extends": [
109
130
  "plugin:storybook/recommended"
110
131
  ]
111
- },
112
- "scripts": {
113
- "build": "NODE_ENV=production rollup -c",
114
- "dev": "NODE_ENV=production rollup -c -w",
115
- "storybook": "storybook dev -p 6006",
116
- "build-storybook": "storybook build",
117
- "clean": "rimraf dist",
118
- "pack": "NODE_ENV=production pnpm build && pnpm pack"
119
132
  }
120
- }
133
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Skip when this package is installed as a dependency (cwd under node_modules).
3
+ * In the repo root, allow only pnpm so npm/yarn do not corrupt the pnpm lockfile layout.
4
+ */
5
+ const cwd = process.cwd().replace(/\\/g, "/");
6
+ if (/\/node_modules\//.test(cwd)) {
7
+ process.exit(0);
8
+ }
9
+
10
+ const execPath = process.env.npm_execpath ?? "";
11
+ if (execPath.includes("pnpm") || execPath.includes("pnpx")) {
12
+ process.exit(0);
13
+ }
14
+
15
+ console.error(
16
+ "@eintrek/erp-theme: use `pnpm install` in this repo (pnpm-lock.yaml). `npm install` is unsupported and often fails with npm resolution errors.",
17
+ );
18
+ process.exit(1);
@@ -1,20 +0,0 @@
1
- import { Button } from "@/components/ui/button";
2
- import type { Table } from "@tanstack/react-table";
3
- import { motion } from "motion/react";
4
- import * as React from "react";
5
- interface DataTableActionBarProps<TData> extends React.ComponentProps<typeof motion.div> {
6
- table: Table<TData>;
7
- visible?: boolean;
8
- container?: Element | DocumentFragment | null;
9
- }
10
- declare function DataTableActionBar<TData>({ table, visible: visibleProp, container: containerProp, children, className, ...props }: DataTableActionBarProps<TData>): React.ReactPortal | null;
11
- interface DataTableActionBarActionProps extends React.ComponentProps<typeof Button> {
12
- tooltip?: string;
13
- isPending?: boolean;
14
- }
15
- declare function DataTableActionBarAction({ size, tooltip, isPending, disabled, className, children, ...props }: DataTableActionBarActionProps): import("react/jsx-runtime").JSX.Element;
16
- interface DataTableActionBarSelectionProps<TData> {
17
- table: Table<TData>;
18
- }
19
- declare function DataTableActionBarSelection<TData>({ table, }: DataTableActionBarSelectionProps<TData>): import("react/jsx-runtime").JSX.Element;
20
- export { DataTableActionBar, DataTableActionBarAction, DataTableActionBarSelection, };
@@ -1,7 +0,0 @@
1
- import type { Table } from "@tanstack/react-table";
2
- import type * as React from "react";
3
- interface DataTableAdvancedToolbarProps<TData> extends React.ComponentProps<"div"> {
4
- table: Table<TData>;
5
- }
6
- export declare function DataTableAdvancedToolbar<TData>({ table, children, className, ...props }: DataTableAdvancedToolbarProps<TData>): import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,8 +0,0 @@
1
- import type { Column } from "@tanstack/react-table";
2
- import { DropdownMenuTrigger } from "@/components/ui/dropdown-menu";
3
- interface DataTableColumnHeaderProps<TData, TValue> extends React.ComponentProps<typeof DropdownMenuTrigger> {
4
- column: Column<TData, TValue>;
5
- title: string;
6
- }
7
- export declare function DataTableColumnHeader<TData, TValue>({ column, title, className, ...props }: DataTableColumnHeaderProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1,8 +0,0 @@
1
- import type { Column } from "@tanstack/react-table";
2
- interface DataTableDateFilterProps<TData> {
3
- column: Column<TData, unknown>;
4
- title?: string;
5
- multiple?: boolean;
6
- }
7
- export declare function DataTableDateFilter<TData>({ column, title, multiple, }: DataTableDateFilterProps<TData>): import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1,10 +0,0 @@
1
- import type { Option } from "@/types/data-table";
2
- import type { Column } from "@tanstack/react-table";
3
- interface DataTableFacetedFilterProps<TData, TValue> {
4
- column?: Column<TData, TValue>;
5
- title?: string;
6
- options: Option[];
7
- multiple?: boolean;
8
- }
9
- export declare function DataTableFacetedFilter<TData, TValue>({ column, title, options, multiple, }: DataTableFacetedFilterProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
10
- export {};
@@ -1,11 +0,0 @@
1
- import type { Table } from "@tanstack/react-table";
2
- import * as React from "react";
3
- import { PopoverContent } from "@/components/ui/popover";
4
- interface DataTableFilterListProps<TData> extends React.ComponentProps<typeof PopoverContent> {
5
- table: Table<TData>;
6
- debounceMs?: number;
7
- throttleMs?: number;
8
- shallow?: boolean;
9
- }
10
- export declare function DataTableFilterList<TData>({ table, debounceMs, throttleMs, shallow, ...props }: DataTableFilterListProps<TData>): import("react/jsx-runtime").JSX.Element;
11
- export {};
@@ -1,11 +0,0 @@
1
- import type { Table } from "@tanstack/react-table";
2
- import * as React from "react";
3
- import { PopoverContent } from "@/components/ui/popover";
4
- interface DataTableFilterMenuProps<TData> extends React.ComponentProps<typeof PopoverContent> {
5
- table: Table<TData>;
6
- debounceMs?: number;
7
- throttleMs?: number;
8
- shallow?: boolean;
9
- }
10
- export declare function DataTableFilterMenu<TData>({ table, debounceMs, throttleMs, shallow, align, ...props }: DataTableFilterMenuProps<TData>): import("react/jsx-runtime").JSX.Element;
11
- export {};
@@ -1,7 +0,0 @@
1
- import type { Table } from "@tanstack/react-table";
2
- interface DataTablePaginationProps<TData> extends React.ComponentProps<"div"> {
3
- table: Table<TData>;
4
- pageSizeOptions?: number[];
5
- }
6
- export declare function DataTablePagination<TData>({ table, pageSizeOptions, className, ...props }: DataTablePaginationProps<TData>): import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,11 +0,0 @@
1
- import type { Column } from "@tanstack/react-table";
2
- import * as React from "react";
3
- import type { ExtendedColumnFilter } from "@/types/data-table";
4
- interface DataTableRangeFilterProps<TData> extends React.ComponentProps<"div"> {
5
- filter: ExtendedColumnFilter<TData>;
6
- column: Column<TData>;
7
- inputId: string;
8
- onFilterUpdate: (filterId: string, updates: Partial<Omit<ExtendedColumnFilter<TData>, "filterId">>) => void;
9
- }
10
- export declare function DataTableRangeFilter<TData>({ filter, column, inputId, onFilterUpdate, className, ...props }: DataTableRangeFilterProps<TData>): import("react/jsx-runtime").JSX.Element;
11
- export {};
@@ -1,11 +0,0 @@
1
- interface DataTableSkeletonProps extends React.ComponentProps<"div"> {
2
- columnCount: number;
3
- rowCount?: number;
4
- filterCount?: number;
5
- cellWidths?: string[];
6
- withViewOptions?: boolean;
7
- withPagination?: boolean;
8
- shrinkZero?: boolean;
9
- }
10
- export declare function DataTableSkeleton({ columnCount, rowCount, filterCount, cellWidths, withViewOptions, withPagination, shrinkZero, className, ...props }: DataTableSkeletonProps): import("react/jsx-runtime").JSX.Element;
11
- export {};
@@ -1,7 +0,0 @@
1
- import type { Column } from "@tanstack/react-table";
2
- interface DataTableSliderFilterProps<TData> {
3
- column: Column<TData, unknown>;
4
- title?: string;
5
- }
6
- export declare function DataTableSliderFilter<TData>({ column, title, }: DataTableSliderFilterProps<TData>): import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,8 +0,0 @@
1
- import type { Table } from "@tanstack/react-table";
2
- import * as React from "react";
3
- import { PopoverContent } from "@/components/ui/popover";
4
- interface DataTableSortListProps<TData> extends React.ComponentProps<typeof PopoverContent> {
5
- table: Table<TData>;
6
- }
7
- export declare function DataTableSortList<TData>({ table, ...props }: DataTableSortListProps<TData>): import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1,7 +0,0 @@
1
- import type { Table } from "@tanstack/react-table";
2
- import * as React from "react";
3
- interface DataTableToolbarProps<TData> extends React.ComponentProps<"div"> {
4
- table: Table<TData>;
5
- }
6
- export declare function DataTableToolbar<TData>({ table, children, className, ...props }: DataTableToolbarProps<TData>): import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,6 +0,0 @@
1
- import type { Table } from "@tanstack/react-table";
2
- interface DataTableViewOptionsProps<TData> {
3
- table: Table<TData>;
4
- }
5
- export declare function DataTableViewOptions<TData>({ table, }: DataTableViewOptionsProps<TData>): import("react/jsx-runtime").JSX.Element;
6
- export {};
@@ -1,8 +0,0 @@
1
- import { type Table as TanstackTable } from "@tanstack/react-table";
2
- import type * as React from "react";
3
- interface DataTableProps<TData> extends React.ComponentProps<"div"> {
4
- table: TanstackTable<TData>;
5
- actionBar?: React.ReactNode;
6
- }
7
- export declare function DataTable<TData>({ table, actionBar, children, className, ...props }: DataTableProps<TData>): import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1,124 +0,0 @@
1
- export type DataTableConfig = typeof dataTableConfig;
2
- export declare const dataTableConfig: {
3
- textOperators: ({
4
- label: string;
5
- value: "iLike";
6
- } | {
7
- label: string;
8
- value: "notILike";
9
- } | {
10
- label: string;
11
- value: "eq";
12
- } | {
13
- label: string;
14
- value: "ne";
15
- } | {
16
- label: string;
17
- value: "isEmpty";
18
- } | {
19
- label: string;
20
- value: "isNotEmpty";
21
- })[];
22
- numericOperators: ({
23
- label: string;
24
- value: "eq";
25
- } | {
26
- label: string;
27
- value: "ne";
28
- } | {
29
- label: string;
30
- value: "lt";
31
- } | {
32
- label: string;
33
- value: "lte";
34
- } | {
35
- label: string;
36
- value: "gt";
37
- } | {
38
- label: string;
39
- value: "gte";
40
- } | {
41
- label: string;
42
- value: "isBetween";
43
- } | {
44
- label: string;
45
- value: "isEmpty";
46
- } | {
47
- label: string;
48
- value: "isNotEmpty";
49
- })[];
50
- dateOperators: ({
51
- label: string;
52
- value: "eq";
53
- } | {
54
- label: string;
55
- value: "ne";
56
- } | {
57
- label: string;
58
- value: "lt";
59
- } | {
60
- label: string;
61
- value: "gt";
62
- } | {
63
- label: string;
64
- value: "lte";
65
- } | {
66
- label: string;
67
- value: "gte";
68
- } | {
69
- label: string;
70
- value: "isBetween";
71
- } | {
72
- label: string;
73
- value: "isRelativeToToday";
74
- } | {
75
- label: string;
76
- value: "isEmpty";
77
- } | {
78
- label: string;
79
- value: "isNotEmpty";
80
- })[];
81
- selectOperators: ({
82
- label: string;
83
- value: "eq";
84
- } | {
85
- label: string;
86
- value: "ne";
87
- } | {
88
- label: string;
89
- value: "isEmpty";
90
- } | {
91
- label: string;
92
- value: "isNotEmpty";
93
- })[];
94
- multiSelectOperators: ({
95
- label: string;
96
- value: "inArray";
97
- } | {
98
- label: string;
99
- value: "notInArray";
100
- } | {
101
- label: string;
102
- value: "isEmpty";
103
- } | {
104
- label: string;
105
- value: "isNotEmpty";
106
- })[];
107
- booleanOperators: ({
108
- label: string;
109
- value: "eq";
110
- } | {
111
- label: string;
112
- value: "ne";
113
- })[];
114
- sortOrders: ({
115
- label: string;
116
- value: "asc";
117
- } | {
118
- label: string;
119
- value: "desc";
120
- })[];
121
- filterVariants: readonly ["text", "number", "range", "date", "dateRange", "boolean", "select", "multiSelect"];
122
- operators: readonly ["iLike", "notILike", "eq", "ne", "inArray", "notInArray", "isEmpty", "isNotEmpty", "lt", "lte", "gt", "gte", "isBetween", "isRelativeToToday"];
123
- joinOperators: readonly ["and", "or"];
124
- };
@@ -1,23 +0,0 @@
1
- import { type TableOptions, type TableState } from "@tanstack/react-table";
2
- import * as React from "react";
3
- import type { ExtendedColumnSort } from "@/types/data-table";
4
- interface UseDataTableProps<TData> extends Omit<TableOptions<TData>, "state" | "pageCount" | "getCoreRowModel" | "manualFiltering" | "manualPagination" | "manualSorting">, Required<Pick<TableOptions<TData>, "pageCount">> {
5
- initialState?: Omit<Partial<TableState>, "sorting"> & {
6
- sorting?: ExtendedColumnSort<TData>[];
7
- };
8
- history?: "push" | "replace";
9
- debounceMs?: number;
10
- throttleMs?: number;
11
- clearOnDefault?: boolean;
12
- enableAdvancedFilter?: boolean;
13
- scroll?: boolean;
14
- shallow?: boolean;
15
- startTransition?: React.TransitionStartFunction;
16
- }
17
- export declare function useDataTable<TData>(props: UseDataTableProps<TData>): {
18
- table: import("@tanstack/react-table").Table<TData>;
19
- shallow: boolean;
20
- debounceMs: number;
21
- throttleMs: number;
22
- };
23
- export {};
@@ -1,12 +0,0 @@
1
- import type { ExtendedColumnFilter, FilterOperator, FilterVariant } from "@/types/data-table";
2
- import type { Column } from "@tanstack/react-table";
3
- export declare function getCommonPinningStyles<TData>({ column, withBorder, }: {
4
- column: Column<TData>;
5
- withBorder?: boolean;
6
- }): React.CSSProperties;
7
- export declare function getFilterOperators(filterVariant: FilterVariant): {
8
- label: string;
9
- value: FilterOperator;
10
- }[];
11
- export declare function getDefaultFilterOperator(filterVariant: FilterVariant): "iLike" | "notILike" | "eq" | "ne" | "isEmpty" | "isNotEmpty" | "lt" | "lte" | "gt" | "gte" | "isBetween" | "isRelativeToToday" | "inArray" | "notInArray";
12
- export declare function getValidFilters<TData>(filters: ExtendedColumnFilter<TData>[]): ExtendedColumnFilter<TData>[];
@@ -1,8 +0,0 @@
1
- import type { ExtendedColumnFilter, JoinOperator } from "@/types/data-table";
2
- import { type AnyColumn, type SQL, type Table } from "drizzle-orm";
3
- export declare function filterColumns<T extends Table>({ table, filters, joinOperator, }: {
4
- table: T;
5
- filters: ExtendedColumnFilter<T>[];
6
- joinOperator: JoinOperator;
7
- }): SQL | undefined;
8
- export declare function getColumn<T extends Table>(table: T, columnKey: keyof T): AnyColumn;
@@ -1,25 +0,0 @@
1
- import { z } from "zod";
2
- import type { ExtendedColumnFilter, ExtendedColumnSort } from "@/types/data-table";
3
- export declare const getSortingStateParser: <TData>(columnIds?: string[] | Set<string>) => import("nuqs").ParserBuilder<ExtendedColumnSort<TData>[]>;
4
- declare const filterItemSchema: z.ZodObject<{
5
- id: z.ZodString;
6
- value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
7
- variant: z.ZodEnum<["text", "number", "range", "date", "dateRange", "boolean", "select", "multiSelect"]>;
8
- operator: z.ZodEnum<["iLike", "notILike", "eq", "ne", "inArray", "notInArray", "isEmpty", "isNotEmpty", "lt", "lte", "gt", "gte", "isBetween", "isRelativeToToday"]>;
9
- filterId: z.ZodString;
10
- }, "strip", z.ZodTypeAny, {
11
- id: string;
12
- value: string | string[];
13
- operator: "iLike" | "notILike" | "eq" | "ne" | "isEmpty" | "isNotEmpty" | "lt" | "lte" | "gt" | "gte" | "isBetween" | "isRelativeToToday" | "inArray" | "notInArray";
14
- variant: "number" | "boolean" | "select" | "text" | "date" | "range" | "dateRange" | "multiSelect";
15
- filterId: string;
16
- }, {
17
- id: string;
18
- value: string | string[];
19
- operator: "iLike" | "notILike" | "eq" | "ne" | "isEmpty" | "isNotEmpty" | "lt" | "lte" | "gt" | "gte" | "isBetween" | "isRelativeToToday" | "inArray" | "notInArray";
20
- variant: "number" | "boolean" | "select" | "text" | "date" | "range" | "dateRange" | "multiSelect";
21
- filterId: string;
22
- }>;
23
- export type FilterItemSchema = z.infer<typeof filterItemSchema>;
24
- export declare const getFiltersStateParser: <TData>(columnIds?: string[] | Set<string>) => import("nuqs").ParserBuilder<ExtendedColumnFilter<TData>[]>;
25
- export {};
@@ -1,34 +0,0 @@
1
- import type { StoryObj } from "@storybook/nextjs-vite";
2
- import { Alert } from "@/components/ui/alert";
3
- /**
4
- * Displays a callout for user attention.
5
- */
6
- declare const meta: {
7
- title: string;
8
- component: typeof Alert;
9
- tags: string[];
10
- argTypes: {
11
- variant: {
12
- options: string[];
13
- control: {
14
- type: "radio";
15
- };
16
- };
17
- };
18
- args: {
19
- variant: "default";
20
- };
21
- render: (args: import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & import("class-variance-authority").VariantProps<(props?: ({
22
- variant?: "default" | "destructive" | null | undefined;
23
- } & import("class-variance-authority/types").ClassProp) | undefined) => string>) => import("react/jsx-runtime").JSX.Element;
24
- };
25
- export default meta;
26
- type Story = StoryObj<typeof meta>;
27
- /**
28
- * The default form of the alert.
29
- */
30
- export declare const Default: Story;
31
- /**
32
- * Use the `destructive` alert to indicate a destructive action.
33
- */
34
- export declare const Destructive: Story;
@@ -1,24 +0,0 @@
1
- import type { Meta, StoryObj } from "@storybook/nextjs-vite";
2
- import { AspectRatio } from "@/components/ui/aspect-ratio";
3
- /**
4
- * Displays content within a desired ratio.
5
- */
6
- declare const meta: Meta<typeof AspectRatio>;
7
- export default meta;
8
- type Story = StoryObj<typeof meta>;
9
- /**
10
- * The default form of the aspect ratio.
11
- */
12
- export declare const Default: Story;
13
- /**
14
- * Use the `1:1` aspect ratio to display a square image.
15
- */
16
- export declare const Square: Story;
17
- /**
18
- * Use the `4:3` aspect ratio to display a landscape image.
19
- */
20
- export declare const Landscape: Story;
21
- /**
22
- * Use the `2.35:1` aspect ratio to display a cinemascope image.
23
- */
24
- export declare const Cinemascope: Story;
@@ -1,42 +0,0 @@
1
- import type { StoryObj } from "@storybook/nextjs-vite";
2
- import { Badge } from "@/components/ui/badge";
3
- /**
4
- * Displays a badge or a component that looks like a badge.
5
- */
6
- declare const meta: {
7
- title: string;
8
- component: typeof Badge;
9
- tags: string[];
10
- argTypes: {
11
- children: {
12
- control: "text";
13
- };
14
- };
15
- args: {
16
- children: string;
17
- };
18
- parameters: {
19
- layout: string;
20
- };
21
- };
22
- export default meta;
23
- type Story = StoryObj<typeof meta>;
24
- /**
25
- * The default form of the badge.
26
- */
27
- export declare const Default: Story;
28
- /**
29
- * Use the `secondary` badge to call for less urgent information, blending
30
- * into the interface while still signaling minor updates or statuses.
31
- */
32
- export declare const Secondary: Story;
33
- /**
34
- * Use the `destructive` badge to indicate errors, alerts, or the need for
35
- * immediate attention.
36
- */
37
- export declare const Destructive: Story;
38
- /**
39
- * Use the `outline` badge for overlaying without obscuring interface details,
40
- * emphasizing clarity and subtlety..
41
- */
42
- export declare const Outline: Story;
@@ -1,26 +0,0 @@
1
- import type { StoryObj } from "@storybook/nextjs-vite";
2
- import { Breadcrumb } from "@/components/ui/breadcrumb";
3
- /**
4
- * Displays the path to the current resource using a hierarchy of links.
5
- */
6
- declare const meta: {
7
- title: string;
8
- component: typeof Breadcrumb;
9
- tags: string[];
10
- argTypes: {};
11
- args: {};
12
- render: (args: import("react").ClassAttributes<HTMLElement> & import("react").HTMLAttributes<HTMLElement>) => import("react/jsx-runtime").JSX.Element;
13
- parameters: {
14
- layout: string;
15
- };
16
- };
17
- export default meta;
18
- type Story = StoryObj<typeof meta>;
19
- /**
20
- * Displays the path of links to the current resource.
21
- */
22
- export declare const Default: Story;
23
- /**
24
- * Displays the path with a custom icon for the separator.
25
- */
26
- export declare const WithCustomSeparator: Story;