@acronis-platform/shadcn-uikit 0.32.4 → 0.33.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.
- package/dist/components/icons/dynamic-icons.js +15 -0
- package/dist/components/icons/dynamic-icons.js.map +1 -0
- package/dist/components/mode-toggle.js +14 -10
- package/dist/components/mode-toggle.js.map +1 -1
- package/dist/components/ui/accordion.js +4 -3
- package/dist/components/ui/accordion.js.map +1 -1
- package/dist/components/ui/breadcrumb.js +5 -4
- package/dist/components/ui/breadcrumb.js.map +1 -1
- package/dist/components/ui/calendar.js +11 -10
- package/dist/components/ui/calendar.js.map +1 -1
- package/dist/components/ui/carousel.js +14 -13
- package/dist/components/ui/carousel.js.map +1 -1
- package/dist/components/ui/checkbox.js +2 -1
- package/dist/components/ui/checkbox.js.map +1 -1
- package/dist/components/ui/chip.js +5 -4
- package/dist/components/ui/chip.js.map +1 -1
- package/dist/components/ui/combobox.js +10 -9
- package/dist/components/ui/combobox.js.map +1 -1
- package/dist/components/ui/command.d.ts +2 -2
- package/dist/components/ui/command.js +7 -6
- package/dist/components/ui/command.js.map +1 -1
- package/dist/components/ui/data-table/data-table-column-header.js +14 -13
- package/dist/components/ui/data-table/data-table-column-header.js.map +1 -1
- package/dist/components/ui/data-table/data-table-pagination.js +23 -22
- package/dist/components/ui/data-table/data-table-pagination.js.map +1 -1
- package/dist/components/ui/data-table/data-table-toolbar.js +13 -12
- package/dist/components/ui/data-table/data-table-toolbar.js.map +1 -1
- package/dist/components/ui/data-table/data-table-view-options.js +4 -3
- package/dist/components/ui/data-table/data-table-view-options.js.map +1 -1
- package/dist/components/ui/dialog.js +16 -15
- package/dist/components/ui/dialog.js.map +1 -1
- package/dist/components/ui/dropdown-menu.js +9 -8
- package/dist/components/ui/dropdown-menu.js.map +1 -1
- package/dist/components/ui/empty.js +1 -1
- package/dist/components/ui/empty.js.map +1 -1
- package/dist/components/ui/filter.js +5 -4
- package/dist/components/ui/filter.js.map +1 -1
- package/dist/components/ui/navigation-menu.js +11 -10
- package/dist/components/ui/navigation-menu.js.map +1 -1
- package/dist/components/ui/pagination.js +14 -13
- package/dist/components/ui/pagination.js.map +1 -1
- package/dist/components/ui/radio-group.js +12 -11
- package/dist/components/ui/radio-group.js.map +1 -1
- package/dist/components/ui/resizable.js +5 -4
- package/dist/components/ui/resizable.js.map +1 -1
- package/dist/components/ui/select.js +9 -8
- package/dist/components/ui/select.js.map +1 -1
- package/dist/components/ui/sheet.js +12 -11
- package/dist/components/ui/sheet.js.map +1 -1
- package/dist/components/ui/sidebar.js +7 -6
- package/dist/components/ui/sidebar.js.map +1 -1
- package/dist/components/ui/stack.d.ts +2 -2
- package/dist/components/ui/tree.js +31 -30
- package/dist/components/ui/tree.js.map +1 -1
- package/dist/components.css +1 -1
- package/dist/shadcn-uikit-full.css +1 -1
- package/dist/shadcn-uikit.css +1 -1
- package/dist/utilities.css +1 -1
- package/package.json +1 -2
|
@@ -25,7 +25,7 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
|
|
|
25
25
|
ref?: React.Ref<HTMLInputElement>;
|
|
26
26
|
} & {
|
|
27
27
|
asChild?: boolean;
|
|
28
|
-
}, "key" | keyof React.InputHTMLAttributes<HTMLInputElement> | "asChild">, "
|
|
28
|
+
}, "key" | keyof React.InputHTMLAttributes<HTMLInputElement> | "asChild">, "type" | "onChange" | "value"> & {
|
|
29
29
|
value?: string;
|
|
30
30
|
onValueChange?: (search: string) => void;
|
|
31
31
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -51,7 +51,7 @@ declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
|
51
51
|
ref?: React.Ref<HTMLDivElement>;
|
|
52
52
|
} & {
|
|
53
53
|
asChild?: boolean;
|
|
54
|
-
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "
|
|
54
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "heading" | "value"> & {
|
|
55
55
|
heading?: React.ReactNode;
|
|
56
56
|
value?: string;
|
|
57
57
|
forceMount?: boolean;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx as t, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import * as r from "react";
|
|
3
3
|
import { Command as o } from "../../node_modules/.pnpm/cmdk@1.1.1_@types_react-dom@18.3.7_@types_react@18.3.27__@types_react@18.3.27_react-dom_432f7245dc8bab9f07ec6fe8c80615a1/node_modules/cmdk/dist/index.js";
|
|
4
|
-
import { Search as p } from "lucide-react";
|
|
5
4
|
import { cn as m } from "../../lib/utils.js";
|
|
6
|
-
import
|
|
5
|
+
import "../icons/dynamic-icons.js";
|
|
6
|
+
import { SearchIcon as p } from "../icons/auto-generated.js";
|
|
7
|
+
import { Dialog as i, DialogContent as c } from "./dialog.js";
|
|
7
8
|
const n = r.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ t(
|
|
8
9
|
o,
|
|
9
10
|
{
|
|
@@ -16,7 +17,7 @@ const n = r.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ t(
|
|
|
16
17
|
}
|
|
17
18
|
));
|
|
18
19
|
n.displayName = o.displayName;
|
|
19
|
-
const
|
|
20
|
+
const b = ({ children: e, ...a }) => /* @__PURE__ */ t(i, { ...a, children: /* @__PURE__ */ t(c, { className: "overflow-hidden p-0 shadow-lg", children: /* @__PURE__ */ t(n, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: e }) }) }), l = r.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ s("div", { className: "flex items-center border-b px-3", "data-cmdk-input-wrapper": "", children: [
|
|
20
21
|
/* @__PURE__ */ t(p, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
21
22
|
/* @__PURE__ */ t(
|
|
22
23
|
o.Input,
|
|
@@ -30,7 +31,7 @@ const C = ({ children: e, ...a }) => /* @__PURE__ */ t(i, { ...a, children: /* @
|
|
|
30
31
|
}
|
|
31
32
|
)
|
|
32
33
|
] }));
|
|
33
|
-
|
|
34
|
+
l.displayName = o.Input.displayName;
|
|
34
35
|
const u = r.forwardRef(({ className: e, ...a }, d) => /* @__PURE__ */ t(
|
|
35
36
|
o.List,
|
|
36
37
|
{
|
|
@@ -85,10 +86,10 @@ const y = ({ className: e, ...a }) => /* @__PURE__ */ t(
|
|
|
85
86
|
y.displayName = "CommandShortcut";
|
|
86
87
|
export {
|
|
87
88
|
n as Command,
|
|
88
|
-
|
|
89
|
+
b as CommandDialog,
|
|
89
90
|
f as CommandEmpty,
|
|
90
91
|
g as CommandGroup,
|
|
91
|
-
|
|
92
|
+
l as CommandInput,
|
|
92
93
|
h as CommandItem,
|
|
93
94
|
u as CommandList,
|
|
94
95
|
x as CommandSeparator,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.js","sources":["../../../src/components/ui/command.tsx"],"sourcesContent":["import * as React from 'react'\nimport { Command as CommandPrimitive } from 'cmdk'\nimport {
|
|
1
|
+
{"version":3,"file":"command.js","sources":["../../../src/components/ui/command.tsx"],"sourcesContent":["import * as React from 'react'\nimport { Command as CommandPrimitive } from 'cmdk'\nimport { SearchIcon } from '@/components/icons'\n\nimport { cn } from '@/lib/utils'\nimport { Dialog, DialogContent } from '@/components/ui/dialog'\n\n// DialogProps derived from Dialog.Root (Base UI); children narrowed to ReactNode\n// because the render-function variant is not used here\ntype DialogProps = Omit<React.ComponentPropsWithoutRef<typeof Dialog>, 'children'> & {\n children?: React.ReactNode\n}\n\nconst Command = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive\n ref={ref}\n className={cn(\n 'flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground',\n className\n )}\n {...props}\n />\n))\nCommand.displayName = CommandPrimitive.displayName\n\nconst CommandDialog = ({ children, ...props }: DialogProps) => {\n return (\n <Dialog {...props}>\n <DialogContent className=\"overflow-hidden p-0 shadow-lg\">\n <Command className=\"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5\">\n {children}\n </Command>\n </DialogContent>\n </Dialog>\n )\n}\n\nconst CommandInput = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Input>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>\n>(({ className, ...props }, ref) => (\n <div className=\"flex items-center border-b px-3\" data-cmdk-input-wrapper=\"\">\n <SearchIcon className=\"mr-2 h-4 w-4 shrink-0 opacity-50\" />\n <CommandPrimitive.Input\n ref={ref}\n className={cn(\n 'flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50',\n className\n )}\n {...props}\n />\n </div>\n))\n\nCommandInput.displayName = CommandPrimitive.Input.displayName\n\nconst CommandList = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.List>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.List\n ref={ref}\n className={cn('max-h-[300px] overflow-y-auto overflow-x-hidden', className)}\n {...props}\n />\n))\n\nCommandList.displayName = CommandPrimitive.List.displayName\n\nconst CommandEmpty = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Empty>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty>\n>((props, ref) => (\n <CommandPrimitive.Empty ref={ref} className=\"py-6 text-center text-sm\" {...props} />\n))\n\nCommandEmpty.displayName = CommandPrimitive.Empty.displayName\n\nconst CommandGroup = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Group>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Group\n ref={ref}\n className={cn(\n 'overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground',\n className\n )}\n {...props}\n />\n))\n\nCommandGroup.displayName = CommandPrimitive.Group.displayName\n\nconst CommandSeparator = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Separator\n ref={ref}\n className={cn('-mx-1 h-px bg-border', className)}\n {...props}\n />\n))\nCommandSeparator.displayName = CommandPrimitive.Separator.displayName\n\nconst CommandItem = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Item\n ref={ref}\n className={cn(\n \"relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0\",\n className\n )}\n {...props}\n />\n))\n\nCommandItem.displayName = CommandPrimitive.Item.displayName\n\nconst CommandShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>) => {\n return (\n <span\n className={cn('ml-auto text-xs tracking-widest text-muted-foreground', className)}\n {...props}\n />\n )\n}\nCommandShortcut.displayName = 'CommandShortcut'\n\nexport {\n Command,\n CommandDialog,\n CommandInput,\n CommandList,\n CommandEmpty,\n CommandGroup,\n CommandItem,\n CommandShortcut,\n CommandSeparator,\n}\n"],"names":["Command","React","className","props","ref","jsx","CommandPrimitive","cn","CommandDialog","children","Dialog","DialogContent","CommandInput","jsxs","SearchIcon","CommandList","CommandEmpty","CommandGroup","CommandSeparator","CommandItem","CommandShortcut"],"mappings":";;;;;;;AAaA,MAAMA,IAAUC,EAAM,WAGpB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAA,GAASC,MAC1B,gBAAAC;AAAA,EAACC;AAAAA,EAAA;AAAA,IACC,KAAAF;AAAA,IACA,WAAWG;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,EAAA;AACN,CACD;AACDH,EAAQ,cAAcM,EAAiB;AAEvC,MAAME,IAAgB,CAAC,EAAE,UAAAC,GAAU,GAAGN,QAElC,gBAAAE,EAACK,GAAA,EAAQ,GAAGP,GACV,4BAACQ,GAAA,EAAc,WAAU,iCACvB,UAAA,gBAAAN,EAACL,GAAA,EAAQ,WAAU,+WAChB,UAAAS,EAAA,CACH,GACF,GACF,GAIEG,IAAeX,EAAM,WAGzB,CAAC,EAAE,WAAAC,GAAW,GAAGC,KAASC,MAC1B,gBAAAS,EAAC,OAAA,EAAI,WAAU,mCAAkC,2BAAwB,IACvE,UAAA;AAAA,EAAA,gBAAAR,EAACS,GAAA,EAAW,WAAU,mCAAA,CAAmC;AAAA,EACzD,gBAAAT;AAAA,IAACC,EAAiB;AAAA,IAAjB;AAAA,MACC,KAAAF;AAAA,MACA,WAAWG;AA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AA,IACA,WAAWG;AAAA,MACT;AAAA,MACAL;AAAA,IAAA;AAAA,IAED,GAAGC;AAAA,EAAA;AACN,CACD;AAEDgB,EAAY,cAAcb,EAAiB,KAAK;AAEhD,MAAMc,IAAkB,CAAC,EAAE,WAAAlB,GAAW,GAAGC,QAErC,gBAAAE;AAAA,EAAC;AAAA,EAAA;AAAA,IACC,WAAWE,EAAG,yDAAyDL,CAAS;AAAA,IAC/E,GAAGC;AAAA,EAAA;AAAA;AAIViB,EAAgB,cAAc;"}
|
|
@@ -1,40 +1,41 @@
|
|
|
1
1
|
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { cn as s } from "../../../lib/utils.js";
|
|
3
|
+
import "../../icons/dynamic-icons.js";
|
|
4
|
+
import { ArrowSortDownIcon as i, ArrowSortUpIcon as d, ChevronUpdownIcon as c, HideIcon as l } from "../../icons/auto-generated.js";
|
|
5
|
+
import { Button as m } from "../button.js";
|
|
6
|
+
import { DropdownMenu as g, DropdownMenuTrigger as h, DropdownMenuContent as p, DropdownMenuItem as t, DropdownMenuSeparator as w } from "../dropdown-menu.js";
|
|
6
7
|
function C({
|
|
7
8
|
column: r,
|
|
8
9
|
title: n,
|
|
9
|
-
className:
|
|
10
|
+
className: a
|
|
10
11
|
}) {
|
|
11
|
-
return r.getCanSort() ? /* @__PURE__ */ e("div", { className:
|
|
12
|
+
return r.getCanSort() ? /* @__PURE__ */ e("div", { className: s("flex items-center space-x-2", a), children: /* @__PURE__ */ o(g, { children: [
|
|
12
13
|
/* @__PURE__ */ o(
|
|
13
14
|
h,
|
|
14
15
|
{
|
|
15
|
-
render: /* @__PURE__ */ e(
|
|
16
|
+
render: /* @__PURE__ */ e(m, { variant: "ghost", size: "sm", className: "-ml-3 h-8 data-[open]:bg-accent" }),
|
|
16
17
|
children: [
|
|
17
18
|
/* @__PURE__ */ e("span", { children: n }),
|
|
18
|
-
r.getIsSorted() === "desc" ? /* @__PURE__ */ e(
|
|
19
|
+
r.getIsSorted() === "desc" ? /* @__PURE__ */ e(i, { className: "ml-2 h-4 w-4" }) : r.getIsSorted() === "asc" ? /* @__PURE__ */ e(d, { className: "ml-2 h-4 w-4" }) : /* @__PURE__ */ e(c, { className: "ml-2 h-4 w-4" })
|
|
19
20
|
]
|
|
20
21
|
}
|
|
21
22
|
),
|
|
22
23
|
/* @__PURE__ */ o(p, { align: "start", children: [
|
|
23
24
|
/* @__PURE__ */ o(t, { onClick: () => r.toggleSorting(!1), children: [
|
|
24
|
-
/* @__PURE__ */ e(
|
|
25
|
+
/* @__PURE__ */ e(d, { className: "mr-2 h-3.5 w-3.5 text-muted-foreground/70" }),
|
|
25
26
|
"Asc"
|
|
26
27
|
] }),
|
|
27
28
|
/* @__PURE__ */ o(t, { onClick: () => r.toggleSorting(!0), children: [
|
|
28
|
-
/* @__PURE__ */ e(
|
|
29
|
+
/* @__PURE__ */ e(i, { className: "mr-2 h-3.5 w-3.5 text-muted-foreground/70" }),
|
|
29
30
|
"Desc"
|
|
30
31
|
] }),
|
|
31
|
-
/* @__PURE__ */ e(
|
|
32
|
+
/* @__PURE__ */ e(w, {}),
|
|
32
33
|
/* @__PURE__ */ o(t, { onClick: () => r.toggleVisibility(!1), children: [
|
|
33
|
-
/* @__PURE__ */ e(
|
|
34
|
+
/* @__PURE__ */ e(l, { className: "mr-2 h-3.5 w-3.5 text-muted-foreground/70" }),
|
|
34
35
|
"Hide"
|
|
35
36
|
] })
|
|
36
37
|
] })
|
|
37
|
-
] }) }) : /* @__PURE__ */ e("div", { className:
|
|
38
|
+
] }) }) : /* @__PURE__ */ e("div", { className: s(a), children: n });
|
|
38
39
|
}
|
|
39
40
|
export {
|
|
40
41
|
C as DataTableColumnHeader
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-table-column-header.js","sources":["../../../../src/components/ui/data-table/data-table-column-header.tsx"],"sourcesContent":["import { Column } from '@tanstack/react-table'\nimport {
|
|
1
|
+
{"version":3,"file":"data-table-column-header.js","sources":["../../../../src/components/ui/data-table/data-table-column-header.tsx"],"sourcesContent":["import { Column } from '@tanstack/react-table'\nimport { ArrowSortDownIcon, ArrowSortUpIcon, ChevronUpdownIcon, HideIcon } from '@/components/icons'\nimport { cn } from '@/lib/utils'\nimport { Button } from '@/components/ui/button'\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from '@/components/ui/dropdown-menu'\n\ninterface DataTableColumnHeaderProps<TData, TValue> extends React.HTMLAttributes<HTMLDivElement> {\n column: Column<TData, TValue>\n title: string\n}\n\nexport function DataTableColumnHeader<TData, TValue>({\n column,\n title,\n className,\n}: DataTableColumnHeaderProps<TData, TValue>) {\n if (!column.getCanSort()) {\n return <div className={cn(className)}>{title}</div>\n }\n\n return (\n <div className={cn('flex items-center space-x-2', className)}>\n <DropdownMenu>\n <DropdownMenuTrigger\n render={<Button variant=\"ghost\" size=\"sm\" className=\"-ml-3 h-8 data-[open]:bg-accent\" />}\n >\n <span>{title}</span>\n {column.getIsSorted() === 'desc' ? (\n <ArrowSortDownIcon className=\"ml-2 h-4 w-4\" />\n ) : column.getIsSorted() === 'asc' ? (\n <ArrowSortUpIcon className=\"ml-2 h-4 w-4\" />\n ) : (\n <ChevronUpdownIcon className=\"ml-2 h-4 w-4\" />\n )}\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"start\">\n <DropdownMenuItem onClick={() => column.toggleSorting(false)}>\n <ArrowSortUpIcon className=\"mr-2 h-3.5 w-3.5 text-muted-foreground/70\" />\n Asc\n </DropdownMenuItem>\n <DropdownMenuItem onClick={() => column.toggleSorting(true)}>\n <ArrowSortDownIcon className=\"mr-2 h-3.5 w-3.5 text-muted-foreground/70\" />\n Desc\n </DropdownMenuItem>\n <DropdownMenuSeparator />\n <DropdownMenuItem onClick={() => column.toggleVisibility(false)}>\n <HideIcon className=\"mr-2 h-3.5 w-3.5 text-muted-foreground/70\" />\n Hide\n </DropdownMenuItem>\n </DropdownMenuContent>\n </DropdownMenu>\n </div>\n )\n}\n"],"names":["DataTableColumnHeader","column","title","className","jsx","cn","DropdownMenu","jsxs","DropdownMenuTrigger","Button","ArrowSortDownIcon","ArrowSortUpIcon","ChevronUpdownIcon","DropdownMenuContent","DropdownMenuItem","DropdownMenuSeparator","HideIcon"],"mappings":";;;;;;AAiBO,SAASA,EAAqC;AAAA,EACnD,QAAAC;AAAA,EACA,OAAAC;AAAA,EACA,WAAAC;AACF,GAA8C;AAC5C,SAAKF,EAAO,eAKV,gBAAAG,EAAC,SAAI,WAAWC,EAAG,+BAA+BF,CAAS,GACzD,4BAACG,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,0BAASC,GAAA,EAAO,SAAQ,SAAQ,MAAK,MAAK,WAAU,mCAAkC;AAAA,QAEtF,UAAA;AAAA,UAAA,gBAAAL,EAAC,UAAM,UAAAF,EAAA,CAAM;AAAA,UACZD,EAAO,kBAAkB,2BACvBS,GAAA,EAAkB,WAAU,gBAAe,IAC1CT,EAAO,kBAAkB,0BAC1BU,GAAA,EAAgB,WAAU,gBAAe,IAE1C,gBAAAP,EAACQ,GAAA,EAAkB,WAAU,eAAA,CAAe;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,IAGhD,gBAAAL,EAACM,GAAA,EAAoB,OAAM,SACzB,UAAA;AAAA,MAAA,gBAAAN,EAACO,KAAiB,SAAS,MAAMb,EAAO,cAAc,EAAK,GACzD,UAAA;AAAA,QAAA,gBAAAG,EAACO,GAAA,EAAgB,WAAU,4CAAA,CAA4C;AAAA,QAAE;AAAA,MAAA,GAE3E;AAAA,wBACCG,GAAA,EAAiB,SAAS,MAAMb,EAAO,cAAc,EAAI,GACxD,UAAA;AAAA,QAAA,gBAAAG,EAACM,GAAA,EAAkB,WAAU,4CAAA,CAA4C;AAAA,QAAE;AAAA,MAAA,GAE7E;AAAA,wBACCK,GAAA,EAAsB;AAAA,wBACtBD,GAAA,EAAiB,SAAS,MAAMb,EAAO,iBAAiB,EAAK,GAC5D,UAAA;AAAA,QAAA,gBAAAG,EAACY,GAAA,EAAS,WAAU,4CAAA,CAA4C;AAAA,QAAE;AAAA,MAAA,EAAA,CAEpE;AAAA,IAAA,EAAA,CACF;AAAA,EAAA,EAAA,CACF,EAAA,CACF,sBAlCQ,OAAA,EAAI,WAAWX,EAAGF,CAAS,GAAI,UAAAD,GAAM;AAoCjD;"}
|
|
@@ -1,41 +1,42 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as n, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import "../../icons/dynamic-icons.js";
|
|
3
|
+
import { ChevronBigLeftIcon as i, ChevronLeftIcon as l, ChevronRightIcon as o, ChevronBigRightIcon as c } from "../../icons/auto-generated.js";
|
|
3
4
|
import { Button as t } from "../button.js";
|
|
4
|
-
import { Select as
|
|
5
|
-
function
|
|
6
|
-
return /* @__PURE__ */
|
|
7
|
-
/* @__PURE__ */
|
|
5
|
+
import { Select as r, SelectTrigger as d, SelectValue as g, SelectContent as m, SelectItem as h } from "../select.js";
|
|
6
|
+
function v({ table: e }) {
|
|
7
|
+
return /* @__PURE__ */ n("div", { className: "flex items-center justify-between px-2", children: [
|
|
8
|
+
/* @__PURE__ */ n("div", { className: "flex-1 text-sm text-muted-foreground", children: [
|
|
8
9
|
e.getFilteredSelectedRowModel().rows.length,
|
|
9
10
|
" of",
|
|
10
11
|
" ",
|
|
11
12
|
e.getFilteredRowModel().rows.length,
|
|
12
13
|
" row(s) selected."
|
|
13
14
|
] }),
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
/* @__PURE__ */
|
|
15
|
+
/* @__PURE__ */ n("div", { className: "flex items-center space-x-6 lg:space-x-8", children: [
|
|
16
|
+
/* @__PURE__ */ n("div", { className: "flex items-center space-x-2", children: [
|
|
16
17
|
/* @__PURE__ */ a("p", { className: "text-sm font-medium", children: "Rows per page" }),
|
|
17
|
-
/* @__PURE__ */
|
|
18
|
-
|
|
18
|
+
/* @__PURE__ */ n(
|
|
19
|
+
r,
|
|
19
20
|
{
|
|
20
21
|
value: `${e.getState().pagination.pageSize}`,
|
|
21
|
-
onValueChange: (
|
|
22
|
-
e.setPageSize(Number(
|
|
22
|
+
onValueChange: (s) => {
|
|
23
|
+
e.setPageSize(Number(s));
|
|
23
24
|
},
|
|
24
25
|
children: [
|
|
25
26
|
/* @__PURE__ */ a(d, { className: "h-8 w-[70px]", children: /* @__PURE__ */ a(g, { placeholder: e.getState().pagination.pageSize }) }),
|
|
26
|
-
/* @__PURE__ */ a(m, { side: "top", children: [10, 20, 30, 40, 50].map((
|
|
27
|
+
/* @__PURE__ */ a(m, { side: "top", children: [10, 20, 30, 40, 50].map((s) => /* @__PURE__ */ a(h, { value: `${s}`, children: s }, s)) })
|
|
27
28
|
]
|
|
28
29
|
}
|
|
29
30
|
)
|
|
30
31
|
] }),
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
+
/* @__PURE__ */ n("div", { className: "flex w-[100px] items-center justify-center text-sm font-medium", children: [
|
|
32
33
|
"Page ",
|
|
33
34
|
e.getState().pagination.pageIndex + 1,
|
|
34
35
|
" of ",
|
|
35
36
|
e.getPageCount()
|
|
36
37
|
] }),
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
/* @__PURE__ */
|
|
38
|
+
/* @__PURE__ */ n("div", { className: "flex items-center space-x-2", children: [
|
|
39
|
+
/* @__PURE__ */ n(
|
|
39
40
|
t,
|
|
40
41
|
{
|
|
41
42
|
variant: "outline",
|
|
@@ -48,7 +49,7 @@ function N({ table: e }) {
|
|
|
48
49
|
]
|
|
49
50
|
}
|
|
50
51
|
),
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
+
/* @__PURE__ */ n(
|
|
52
53
|
t,
|
|
53
54
|
{
|
|
54
55
|
variant: "outline",
|
|
@@ -61,7 +62,7 @@ function N({ table: e }) {
|
|
|
61
62
|
]
|
|
62
63
|
}
|
|
63
64
|
),
|
|
64
|
-
/* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ n(
|
|
65
66
|
t,
|
|
66
67
|
{
|
|
67
68
|
variant: "outline",
|
|
@@ -70,11 +71,11 @@ function N({ table: e }) {
|
|
|
70
71
|
disabled: !e.getCanNextPage(),
|
|
71
72
|
children: [
|
|
72
73
|
/* @__PURE__ */ a("span", { className: "sr-only", children: "Go to next page" }),
|
|
73
|
-
/* @__PURE__ */ a(
|
|
74
|
+
/* @__PURE__ */ a(o, { className: "h-4 w-4" })
|
|
74
75
|
]
|
|
75
76
|
}
|
|
76
77
|
),
|
|
77
|
-
/* @__PURE__ */
|
|
78
|
+
/* @__PURE__ */ n(
|
|
78
79
|
t,
|
|
79
80
|
{
|
|
80
81
|
variant: "outline",
|
|
@@ -83,7 +84,7 @@ function N({ table: e }) {
|
|
|
83
84
|
disabled: !e.getCanNextPage(),
|
|
84
85
|
children: [
|
|
85
86
|
/* @__PURE__ */ a("span", { className: "sr-only", children: "Go to last page" }),
|
|
86
|
-
/* @__PURE__ */ a(
|
|
87
|
+
/* @__PURE__ */ a(c, { className: "h-4 w-4" })
|
|
87
88
|
]
|
|
88
89
|
}
|
|
89
90
|
)
|
|
@@ -92,6 +93,6 @@ function N({ table: e }) {
|
|
|
92
93
|
] });
|
|
93
94
|
}
|
|
94
95
|
export {
|
|
95
|
-
|
|
96
|
+
v as DataTablePagination
|
|
96
97
|
};
|
|
97
98
|
//# sourceMappingURL=data-table-pagination.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-table-pagination.js","sources":["../../../../src/components/ui/data-table/data-table-pagination.tsx"],"sourcesContent":["import { Table } from '@tanstack/react-table'\nimport {
|
|
1
|
+
{"version":3,"file":"data-table-pagination.js","sources":["../../../../src/components/ui/data-table/data-table-pagination.tsx"],"sourcesContent":["import { Table } from '@tanstack/react-table'\nimport { ChevronLeftIcon, ChevronRightIcon, ChevronBigLeftIcon, ChevronBigRightIcon } from '@/components/icons'\nimport { Button } from '@/components/ui/button'\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '@/components/ui/select'\n\ninterface DataTablePaginationProps<TData> {\n table: Table<TData>\n}\n\nexport function DataTablePagination<TData>({ table }: DataTablePaginationProps<TData>) {\n return (\n <div className=\"flex items-center justify-between px-2\">\n <div className=\"flex-1 text-sm text-muted-foreground\">\n {table.getFilteredSelectedRowModel().rows.length} of{' '}\n {table.getFilteredRowModel().rows.length} row(s) selected.\n </div>\n <div className=\"flex items-center space-x-6 lg:space-x-8\">\n <div className=\"flex items-center space-x-2\">\n <p className=\"text-sm font-medium\">Rows per page</p>\n <Select\n value={`${table.getState().pagination.pageSize}`}\n onValueChange={(value) => {\n table.setPageSize(Number(value))\n }}\n >\n <SelectTrigger className=\"h-8 w-[70px]\">\n <SelectValue placeholder={table.getState().pagination.pageSize} />\n </SelectTrigger>\n <SelectContent side=\"top\">\n {[10, 20, 30, 40, 50].map((pageSize) => (\n <SelectItem key={pageSize} value={`${pageSize}`}>\n {pageSize}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n </div>\n <div className=\"flex w-[100px] items-center justify-center text-sm font-medium\">\n Page {table.getState().pagination.pageIndex + 1} of {table.getPageCount()}\n </div>\n <div className=\"flex items-center space-x-2\">\n <Button\n variant=\"outline\"\n className=\"hidden h-8 w-8 p-0 lg:flex\"\n onClick={() => table.setPageIndex(0)}\n disabled={!table.getCanPreviousPage()}\n >\n <span className=\"sr-only\">Go to first page</span>\n <ChevronBigLeftIcon className=\"h-4 w-4\" />\n </Button>\n <Button\n variant=\"outline\"\n className=\"h-8 w-8 p-0\"\n onClick={() => table.previousPage()}\n disabled={!table.getCanPreviousPage()}\n >\n <span className=\"sr-only\">Go to previous page</span>\n <ChevronLeftIcon className=\"h-4 w-4\" />\n </Button>\n <Button\n variant=\"outline\"\n className=\"h-8 w-8 p-0\"\n onClick={() => table.nextPage()}\n disabled={!table.getCanNextPage()}\n >\n <span className=\"sr-only\">Go to next page</span>\n <ChevronRightIcon className=\"h-4 w-4\" />\n </Button>\n <Button\n variant=\"outline\"\n className=\"hidden h-8 w-8 p-0 lg:flex\"\n onClick={() => table.setPageIndex(table.getPageCount() - 1)}\n disabled={!table.getCanNextPage()}\n >\n <span className=\"sr-only\">Go to last page</span>\n <ChevronBigRightIcon className=\"h-4 w-4\" />\n </Button>\n </div>\n </div>\n </div>\n )\n}\n"],"names":["DataTablePagination","table","jsxs","jsx","Select","value","SelectTrigger","SelectValue","SelectContent","pageSize","SelectItem","Button","ChevronBigLeftIcon","ChevronLeftIcon","ChevronRightIcon","ChevronBigRightIcon"],"mappings":";;;;;AAeO,SAASA,EAA2B,EAAE,OAAAC,KAA0C;AACrF,SACE,gBAAAC,EAAC,OAAA,EAAI,WAAU,0CACb,UAAA;AAAA,IAAA,gBAAAA,EAAC,OAAA,EAAI,WAAU,wCACZ,UAAA;AAAA,MAAAD,EAAM,8BAA8B,KAAK;AAAA,MAAO;AAAA,MAAI;AAAA,MACpDA,EAAM,sBAAsB,KAAK;AAAA,MAAO;AAAA,IAAA,GAC3C;AAAA,IACA,gBAAAC,EAAC,OAAA,EAAI,WAAU,4CACb,UAAA;AAAA,MAAA,gBAAAA,EAAC,OAAA,EAAI,WAAU,+BACb,UAAA;AAAA,QAAA,gBAAAC,EAAC,KAAA,EAAE,WAAU,uBAAsB,UAAA,iBAAa;AAAA,QAChD,gBAAAD;AAAA,UAACE;AAAA,UAAA;AAAA,YACC,OAAO,GAAGH,EAAM,SAAA,EAAW,WAAW,QAAQ;AAAA,YAC9C,eAAe,CAACI,MAAU;AACxB,cAAAJ,EAAM,YAAY,OAAOI,CAAK,CAAC;AAAA,YACjC;AAAA,YAEA,UAAA;AAAA,cAAA,gBAAAF,EAACG,GAAA,EAAc,WAAU,gBACvB,UAAA,gBAAAH,EAACI,GAAA,EA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A,UAAA;AAAA,YACC,SAAQ;AAAA,YACR,WAAU;AAAA,YACV,SAAS,MAAMV,EAAM,SAAA;AAAA,YACrB,UAAU,CAACA,EAAM,eAAA;AAAA,YAEjB,UAAA;AAAA,cAAA,gBAAAE,EAAC,QAAA,EAAK,WAAU,WAAU,UAAA,mBAAe;AAAA,cACzC,gBAAAA,EAACW,GAAA,EAAiB,WAAU,UAAA,CAAU;AAAA,YAAA;AAAA,UAAA;AAAA,QAAA;AAAA,QAExC,gBAAAZ;AAAA,UAACS;AAAA,UAAA;AAAA,YACC,SAAQ;AAAA,YACR,WAAU;AAAA,YACV,SAAS,MAAMV,EAAM,aAAaA,EAAM,aAAA,IAAiB,CAAC;AAAA,YAC1D,UAAU,CAACA,EAAM,eAAA;AAAA,YAEjB,UAAA;AAAA,cAAA,gBAAAE,EAAC,QAAA,EAAK,WAAU,WAAU,UAAA,mBAAe;AAAA,cACzC,gBAAAA,EAACY,GAAA,EAAoB,WAAU,UAAA,CAAU;AAAA,YAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MAC3C,EAAA,CACF;AAAA,IAAA,EAAA,CACF;AAAA,EAAA,GACF;AAEJ;"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { jsxs as l, jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as l, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import "../../icons/dynamic-icons.js";
|
|
3
|
+
import { CloseIcon as a } from "../../icons/auto-generated.js";
|
|
3
4
|
import { Button as c } from "../button.js";
|
|
4
5
|
import { Input as p } from "../input.js";
|
|
5
6
|
import { DataTableViewOptions as u } from "./data-table-view-options.js";
|
|
@@ -8,23 +9,23 @@ function F({
|
|
|
8
9
|
searchKey: t,
|
|
9
10
|
searchPlaceholder: s = "Filter..."
|
|
10
11
|
}) {
|
|
11
|
-
var
|
|
12
|
-
const
|
|
12
|
+
var r;
|
|
13
|
+
const m = e.getState().columnFilters.length > 0;
|
|
13
14
|
return /* @__PURE__ */ l("div", { className: "flex items-center justify-between", children: [
|
|
14
15
|
/* @__PURE__ */ l("div", { className: "flex flex-1 items-center space-x-2", children: [
|
|
15
|
-
t && /* @__PURE__ */
|
|
16
|
+
t && /* @__PURE__ */ o(
|
|
16
17
|
p,
|
|
17
18
|
{
|
|
18
19
|
placeholder: s,
|
|
19
|
-
value: ((
|
|
20
|
-
onChange: (
|
|
21
|
-
var
|
|
22
|
-
return (
|
|
20
|
+
value: ((r = e.getColumn(t)) == null ? void 0 : r.getFilterValue()) ?? "",
|
|
21
|
+
onChange: (n) => {
|
|
22
|
+
var i;
|
|
23
|
+
return (i = e.getColumn(t)) == null ? void 0 : i.setFilterValue(n.target.value);
|
|
23
24
|
},
|
|
24
25
|
className: "h-8 w-[150px] lg:w-[250px]"
|
|
25
26
|
}
|
|
26
27
|
),
|
|
27
|
-
|
|
28
|
+
m && /* @__PURE__ */ l(
|
|
28
29
|
c,
|
|
29
30
|
{
|
|
30
31
|
variant: "ghost",
|
|
@@ -32,12 +33,12 @@ function F({
|
|
|
32
33
|
className: "h-8 px-2 lg:px-3",
|
|
33
34
|
children: [
|
|
34
35
|
"Reset",
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
+
/* @__PURE__ */ o(a, { className: "ml-2 h-4 w-4" })
|
|
36
37
|
]
|
|
37
38
|
}
|
|
38
39
|
)
|
|
39
40
|
] }),
|
|
40
|
-
/* @__PURE__ */
|
|
41
|
+
/* @__PURE__ */ o(u, { table: e })
|
|
41
42
|
] });
|
|
42
43
|
}
|
|
43
44
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-table-toolbar.js","sources":["../../../../src/components/ui/data-table/data-table-toolbar.tsx"],"sourcesContent":["import { Table } from '@tanstack/react-table'\nimport {
|
|
1
|
+
{"version":3,"file":"data-table-toolbar.js","sources":["../../../../src/components/ui/data-table/data-table-toolbar.tsx"],"sourcesContent":["import { Table } from '@tanstack/react-table'\nimport { CloseIcon } from '@/components/icons'\nimport { Button } from '@/components/ui/button'\nimport { Input } from '@/components/ui/input'\nimport { DataTableViewOptions } from './data-table-view-options'\n\ninterface DataTableToolbarProps<TData> {\n table: Table<TData>\n searchKey?: string\n searchPlaceholder?: string\n}\n\nexport function DataTableToolbar<TData>({\n table,\n searchKey,\n searchPlaceholder = 'Filter...',\n}: DataTableToolbarProps<TData>) {\n const isFiltered = table.getState().columnFilters.length > 0\n\n return (\n <div className=\"flex items-center justify-between\">\n <div className=\"flex flex-1 items-center space-x-2\">\n {searchKey && (\n <Input\n placeholder={searchPlaceholder}\n value={(table.getColumn(searchKey)?.getFilterValue() as string) ?? ''}\n onChange={(event) => table.getColumn(searchKey)?.setFilterValue(event.target.value)}\n className=\"h-8 w-[150px] lg:w-[250px]\"\n />\n )}\n {isFiltered && (\n <Button\n variant=\"ghost\"\n onClick={() => table.resetColumnFilters()}\n className=\"h-8 px-2 lg:px-3\"\n >\n Reset\n <CloseIcon className=\"ml-2 h-4 w-4\" />\n </Button>\n )}\n </div>\n <DataTableViewOptions table={table} />\n </div>\n )\n}\n"],"names":["DataTableToolbar","table","searchKey","searchPlaceholder","isFiltered","jsxs","jsx","Input","_a","event","Button","CloseIcon","DataTableViewOptions"],"mappings":";;;;;;AAYO,SAASA,EAAwB;AAAA,EACtC,OAAAC;AAAA,EACA,WAAAC;AAAA,EACA,mBAAAC,IAAoB;AACtB,GAAiC;;AAC/B,QAAMC,IAAaH,EAAM,SAAA,EAAW,cAAc,SAAS;AAE3D,SACE,gBAAAI,EAAC,OAAA,EAAI,WAAU,qCACb,UAAA;AAAA,IAAA,gBAAAA,EAAC,OAAA,EAAI,WAAU,sCACZ,UAAA;AAAA,MAAAH,KACC,gBAAAI;AAAA,QAACC;AAAA,QAAA;AAAA,UACC,aAAaJ;AAAA,UACb,SAAQK,IAAAP,EAAM,UAAUC,CAAS,MAAzB,gBAAAM,EAA4B,qBAA+B;AAAA,UACnE,UAAU,CAACC,MAAA;;AAAU,oBAAAD,IAAAP,EAAM,UAAUC,CAAS,MAAzB,gBAAAM,EAA4B,eAAeC,EAAM,OAAO;AAAA;AAAA,UAC7E,WAAU;AAAA,QAAA;AAAA,MAAA;AAAA,MAGbL,KACC,gBAAAC;AAAA,QAACK;AAAA,QAAA;AAAA,UACC,SAAQ;AAAA,UACR,SAAS,MAAMT,EAAM,mBAAA;AAAA,UACrB,WAAU;AAAA,UACX,UAAA;AAAA,YAAA;AAAA,YAEC,gBAAAK,EAACK,GAAA,EAAU,WAAU,eAAA,CAAe;AAAA,UAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IACtC,GAEJ;AAAA,IACA,gBAAAL,EAACM,KAAqB,OAAAX,EAAA,CAAc;AAAA,EAAA,GACtC;AAEJ;"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsxs as r, jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import "../../icons/dynamic-icons.js";
|
|
3
|
+
import { SettingsIcon as t } from "../../icons/auto-generated.js";
|
|
3
4
|
import { Button as a } from "../button.js";
|
|
4
5
|
import { DropdownMenu as d, DropdownMenuTrigger as l, DropdownMenuContent as s, DropdownMenuLabel as p, DropdownMenuSeparator as m, DropdownMenuCheckboxItem as c } from "../dropdown-menu.js";
|
|
5
|
-
function
|
|
6
|
+
function D({ table: i }) {
|
|
6
7
|
return /* @__PURE__ */ r(d, { children: [
|
|
7
8
|
/* @__PURE__ */ r(
|
|
8
9
|
l,
|
|
@@ -31,6 +32,6 @@ function f({ table: i }) {
|
|
|
31
32
|
] });
|
|
32
33
|
}
|
|
33
34
|
export {
|
|
34
|
-
|
|
35
|
+
D as DataTableViewOptions
|
|
35
36
|
};
|
|
36
37
|
//# sourceMappingURL=data-table-view-options.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-table-view-options.js","sources":["../../../../src/components/ui/data-table/data-table-view-options.tsx"],"sourcesContent":["import { Table } from '@tanstack/react-table'\nimport {
|
|
1
|
+
{"version":3,"file":"data-table-view-options.js","sources":["../../../../src/components/ui/data-table/data-table-view-options.tsx"],"sourcesContent":["import { Table } from '@tanstack/react-table'\nimport { SettingsIcon } from '@/components/icons'\nimport { Button } from '@/components/ui/button'\nimport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from '@/components/ui/dropdown-menu'\n\ninterface DataTableViewOptionsProps<TData> {\n table: Table<TData>\n}\n\nexport function DataTableViewOptions<TData>({ table }: DataTableViewOptionsProps<TData>) {\n return (\n <DropdownMenu>\n <DropdownMenuTrigger\n render={<Button variant=\"outline\" size=\"sm\" className=\"ml-auto hidden h-8 lg:flex\" />}\n >\n <SettingsIcon className=\"mr-2 h-4 w-4\" />\n View\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"end\" className=\"w-[150px]\">\n <DropdownMenuLabel>Toggle columns</DropdownMenuLabel>\n <DropdownMenuSeparator />\n {table\n .getAllColumns()\n .filter((column) => typeof column.accessorFn !== 'undefined' && column.getCanHide())\n .map((column) => {\n return (\n <DropdownMenuCheckboxItem\n key={column.id}\n className=\"capitalize\"\n checked={column.getIsVisible()}\n onCheckedChange={(value) => column.toggleVisibility(!!value)}\n >\n {column.id}\n </DropdownMenuCheckboxItem>\n )\n })}\n </DropdownMenuContent>\n </DropdownMenu>\n )\n}\n"],"names":["DataTableViewOptions","table","DropdownMenu","jsxs","DropdownMenuTrigger","Button","jsx","SettingsIcon","DropdownMenuContent","DropdownMenuLabel","DropdownMenuSeparator","column","DropdownMenuCheckboxItem","value"],"mappings":";;;;;AAgBO,SAASA,EAA4B,EAAE,OAAAC,KAA2C;AACvF,2BACGC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,0BAASC,GAAA,EAAO,SAAQ,WAAU,MAAK,MAAK,WAAU,8BAA6B;AAAA,QAEnF,UAAA;AAAA,UAAA,gBAAAC,EAACC,GAAA,EAAa,WAAU,eAAA,CAAe;AAAA,UAAE;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,IAG3C,gBAAAJ,EAACK,GAAA,EAAoB,OAAM,OAAM,WAAU,aACzC,UAAA;AAAA,MAAA,gBAAAF,EAACG,KAAkB,UAAA,iBAAA,CAAc;AAAA,wBAChCC,GAAA,EAAsB;AAAA,MACtBT,EACE,cAAA,EACA,OAAO,CAACU,MAAW,OAAOA,EAAO,aAAe,OAAeA,EAAO,WAAA,CAAY,EAClF,IAAI,CAACA,MAEF,gBAAAL;AAAA,QAACM;AAAA,QAAA;AAAA,UAEC,WAAU;AAAA,UACV,SAASD,EAAO,aAAA;AAAA,UAChB,iBAAiB,CAACE,MAAUF,EAAO,iBAAiB,CAAC,CAACE,CAAK;AAAA,UAE1D,UAAAF,EAAO;AAAA,QAAA;AAAA,QALHA,EAAO;AAAA,MAAA,CAQjB;AAAA,IAAA,EAAA,CACL;AAAA,EAAA,GACF;AAEJ;"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as e, jsxs as s, Fragment as f } from "react/jsx-runtime";
|
|
2
2
|
import * as l from "react";
|
|
3
|
-
import { X as c } from "lucide-react";
|
|
4
3
|
import { cn as i } from "../../lib/utils.js";
|
|
4
|
+
import "../icons/dynamic-icons.js";
|
|
5
|
+
import { CloseIcon as c } from "../icons/auto-generated.js";
|
|
5
6
|
import { DialogBackdrop as D } from "../../node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/dialog/backdrop/DialogBackdrop.js";
|
|
6
7
|
import { DialogPopup as u } from "../../node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/dialog/popup/DialogPopup.js";
|
|
7
8
|
import { DialogPortal as d } from "../../node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/dialog/portal/DialogPortal.js";
|
|
@@ -10,7 +11,7 @@ import { DialogClose as n } from "../../node_modules/.pnpm/@base-ui_react@1.1.0_
|
|
|
10
11
|
import { DialogDescription as y } from "../../node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/dialog/description/DialogDescription.js";
|
|
11
12
|
import { DialogRoot as N } from "../../node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/dialog/root/DialogRoot.js";
|
|
12
13
|
import { DialogTrigger as b } from "../../node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/dialog/trigger/DialogTrigger.js";
|
|
13
|
-
const
|
|
14
|
+
const E = N, G = b, J = d, K = n, m = l.forwardRef(({ className: o, ...a }, t) => /* @__PURE__ */ e(
|
|
14
15
|
D,
|
|
15
16
|
{
|
|
16
17
|
ref: t,
|
|
@@ -22,18 +23,18 @@ const A = N, E = b, G = d, I = n, m = l.forwardRef(({ className: o, ...a }, t) =
|
|
|
22
23
|
}
|
|
23
24
|
));
|
|
24
25
|
m.displayName = "DialogOverlay";
|
|
25
|
-
const w = l.forwardRef(({ className: o, children: a, portal: t = !0, ...
|
|
26
|
+
const w = l.forwardRef(({ className: o, children: a, portal: t = !0, ...p }, g) => {
|
|
26
27
|
const r = /* @__PURE__ */ s(f, { children: [
|
|
27
28
|
/* @__PURE__ */ e(m, {}),
|
|
28
29
|
/* @__PURE__ */ e(
|
|
29
30
|
u,
|
|
30
31
|
{
|
|
31
|
-
ref:
|
|
32
|
+
ref: g,
|
|
32
33
|
className: i(
|
|
33
34
|
"fixed left-[50%] top-[50%] z-50 flex w-full max-w-lg translate-x-[-50%] translate-y-[-50%] flex-col overflow-hidden rounded bg-muted shadow-[0px_10px_20px_rgba(36,49,67,0.9)] duration-200 data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0 data-[closed]:zoom-out-95 data-[open]:zoom-in-95 data-[closed]:slide-out-to-left-1/2 data-[closed]:slide-out-to-top-dialog-offset data-[open]:slide-in-from-left-1/2 data-[open]:slide-in-from-top-dialog-offset",
|
|
34
35
|
o
|
|
35
36
|
),
|
|
36
|
-
...
|
|
37
|
+
...p,
|
|
37
38
|
children: a
|
|
38
39
|
}
|
|
39
40
|
)
|
|
@@ -52,7 +53,7 @@ const h = ({ className: o, ...a }) => /* @__PURE__ */ e(
|
|
|
52
53
|
}
|
|
53
54
|
);
|
|
54
55
|
h.displayName = "DialogHeader";
|
|
55
|
-
const
|
|
56
|
+
const C = ({ className: o, ...a }) => /* @__PURE__ */ e(
|
|
56
57
|
"div",
|
|
57
58
|
{
|
|
58
59
|
className: i(
|
|
@@ -62,8 +63,8 @@ const v = ({ className: o, ...a }) => /* @__PURE__ */ e(
|
|
|
62
63
|
...a
|
|
63
64
|
}
|
|
64
65
|
);
|
|
65
|
-
|
|
66
|
-
const
|
|
66
|
+
C.displayName = "DialogFooter";
|
|
67
|
+
const v = l.forwardRef(({ className: o, ...a }, t) => /* @__PURE__ */ e(
|
|
67
68
|
x,
|
|
68
69
|
{
|
|
69
70
|
ref: t,
|
|
@@ -74,7 +75,7 @@ const C = l.forwardRef(({ className: o, ...a }, t) => /* @__PURE__ */ e(
|
|
|
74
75
|
...a
|
|
75
76
|
}
|
|
76
77
|
));
|
|
77
|
-
|
|
78
|
+
v.displayName = "DialogTitle";
|
|
78
79
|
const R = l.forwardRef(({ className: o, ...a }, t) => /* @__PURE__ */ s(
|
|
79
80
|
n,
|
|
80
81
|
{
|
|
@@ -103,17 +104,17 @@ const B = l.forwardRef(({ className: o, ...a }, t) => /* @__PURE__ */ e(
|
|
|
103
104
|
));
|
|
104
105
|
B.displayName = "DialogDescription";
|
|
105
106
|
export {
|
|
106
|
-
|
|
107
|
+
E as Dialog,
|
|
107
108
|
T as DialogBody,
|
|
108
|
-
|
|
109
|
+
K as DialogClose,
|
|
109
110
|
R as DialogCloseButton,
|
|
110
111
|
w as DialogContent,
|
|
111
112
|
B as DialogDescription,
|
|
112
|
-
|
|
113
|
+
C as DialogFooter,
|
|
113
114
|
h as DialogHeader,
|
|
114
115
|
m as DialogOverlay,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
J as DialogPortal,
|
|
117
|
+
v as DialogTitle,
|
|
118
|
+
G as DialogTrigger
|
|
118
119
|
};
|
|
119
120
|
//# sourceMappingURL=dialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.js","sources":["../../../src/components/ui/dialog.tsx"],"sourcesContent":["import * as React from 'react'\nimport { Dialog as BaseDialog } from '@base-ui/react'\nimport {
|
|
1
|
+
{"version":3,"file":"dialog.js","sources":["../../../src/components/ui/dialog.tsx"],"sourcesContent":["import * as React from 'react'\nimport { Dialog as BaseDialog } from '@base-ui/react'\nimport { CloseIcon } from '@/components/icons'\n\nimport { cn } from '@/lib/utils'\n\n// Re-export Root as Dialog so callers use <Dialog open={...}> identical to Radix usage\nconst Dialog = BaseDialog.Root\n\nconst DialogTrigger = BaseDialog.Trigger\n\nconst DialogPortal = BaseDialog.Portal\n\nconst DialogClose = BaseDialog.Close\n\nconst DialogOverlay = React.forwardRef<\n React.ElementRef<typeof BaseDialog.Backdrop>,\n React.ComponentPropsWithoutRef<typeof BaseDialog.Backdrop>\n>(({ className, ...props }, ref) => (\n <BaseDialog.Backdrop\n ref={ref}\n className={cn(\n 'fixed inset-0 z-50 bg-black/80 data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0',\n className\n )}\n {...props}\n />\n))\nDialogOverlay.displayName = 'DialogOverlay'\n\nconst DialogContent = React.forwardRef<\n React.ElementRef<typeof BaseDialog.Popup>,\n React.ComponentPropsWithoutRef<typeof BaseDialog.Popup> & {\n portal?: boolean\n }\n>(({ className, children, portal = true, ...props }, ref) => {\n // Base UI requires Popup to be rendered inside a Portal for proper stacking context.\n // When portal=false the caller opts out (e.g. inline usage in tests).\n const popup = (\n <>\n <DialogOverlay />\n <BaseDialog.Popup\n ref={ref}\n className={cn(\n 'fixed left-[50%] top-[50%] z-50 flex w-full max-w-lg translate-x-[-50%] translate-y-[-50%] flex-col overflow-hidden rounded bg-muted shadow-[0px_10px_20px_rgba(36,49,67,0.9)] duration-200 data-[open]:animate-in data-[closed]:animate-out data-[closed]:fade-out-0 data-[open]:fade-in-0 data-[closed]:zoom-out-95 data-[open]:zoom-in-95 data-[closed]:slide-out-to-left-1/2 data-[closed]:slide-out-to-top-dialog-offset data-[open]:slide-in-from-left-1/2 data-[open]:slide-in-from-top-dialog-offset',\n className\n )}\n {...props}\n >\n {children}\n </BaseDialog.Popup>\n </>\n )\n\n return portal ? <BaseDialog.Portal>{popup}</BaseDialog.Portal> : popup\n})\nDialogContent.displayName = 'DialogContent'\n\nconst DialogHeader = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n 'flex h-16 items-center gap-4 border-b border-border bg-card px-5 py-4',\n className\n )}\n {...props}\n />\n)\nDialogHeader.displayName = 'DialogHeader'\n\nconst DialogFooter = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\n 'flex h-16 items-center justify-end gap-4 border-t border-border bg-card px-6 py-4',\n className\n )}\n {...props}\n />\n)\nDialogFooter.displayName = 'DialogFooter'\n\nconst DialogTitle = React.forwardRef<\n React.ElementRef<typeof BaseDialog.Title>,\n React.ComponentPropsWithoutRef<typeof BaseDialog.Title>\n>(({ className, ...props }, ref) => (\n <BaseDialog.Title\n ref={ref}\n className={cn(\n 'flex-1 text-2xl font-normal leading-8 text-foreground',\n className\n )}\n {...props}\n />\n))\nDialogTitle.displayName = 'DialogTitle'\n\nconst DialogCloseButton = React.forwardRef<\n React.ElementRef<typeof BaseDialog.Close>,\n React.ComponentPropsWithoutRef<typeof BaseDialog.Close>\n>(({ className, ...props }, ref) => (\n <BaseDialog.Close\n ref={ref}\n className={cn(\n 'rounded p-1 text-[#2668C5] opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none',\n className\n )}\n {...props}\n >\n <CloseIcon className=\"h-6 w-6\" />\n <span className=\"sr-only\">Close</span>\n </BaseDialog.Close>\n))\nDialogCloseButton.displayName = 'DialogCloseButton'\n\nconst DialogBody = ({ className, ...props }: React.HTMLAttributes<HTMLDivElement>) => (\n <div className={cn('flex-1 overflow-auto p-6', className)} {...props} />\n)\nDialogBody.displayName = 'DialogBody'\n\nconst DialogDescription = React.forwardRef<\n React.ElementRef<typeof BaseDialog.Description>,\n React.ComponentPropsWithoutRef<typeof BaseDialog.Description>\n>(({ className, ...props }, ref) => (\n <BaseDialog.Description\n ref={ref}\n className={cn('text-sm text-muted-foreground', className)}\n {...props}\n />\n))\nDialogDescription.displayName = 'DialogDescription'\n\nexport {\n Dialog,\n DialogPortal,\n DialogOverlay,\n DialogClose,\n DialogCloseButton,\n DialogTrigger,\n DialogContent,\n DialogHeader,\n DialogFooter,\n DialogTitle,\n DialogBody,\n DialogDescription,\n}\n"],"names":["Dialog","BaseDialog.Root","DialogTrigger","BaseDialog.Trigger","DialogPortal","BaseDialog.Portal","DialogClose","BaseDialog.Close","DialogOverlay","React","className","props","ref","jsx","BaseDialog.Backdrop","cn","DialogContent","children","portal","popup","jsxs","Fragment","BaseDialog.Popup","DialogHeader","DialogFooter","DialogTitle","BaseDialog.Title","DialogCloseButton","CloseIcon","DialogBody","DialogDescription","BaseDialog.Description"],"mappings":";;;;;;;;;;;;;AAOA,MAAMA,IAASC,GAETC,IAAgBC,GAEhBC,IAAeC,GAEfC,IAAcC,GAEdC,IAAgBC,EAAM,WAG1B,CAAC,EAAE,WAAAC,GAA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