next-data-kit 9.9.1 → 10.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.
- package/MIGRATION.md +43 -0
- package/README.md +107 -782
- package/dist/index.d.ts +79 -111
- package/dist/index.js +98 -205
- package/dist/index.js.map +1 -1
- package/dist/server.d.ts +122 -93
- package/dist/server.js +96 -285
- package/dist/server.js.map +1 -1
- package/package.json +50 -104
- package/registry/r/data-kit.json +58 -0
- package/registry/r/registry.json +23 -0
- package/dist/action-DCmAhOQa.d.cts +0 -196
- package/dist/action-DCmAhOQa.d.ts +0 -196
- package/dist/chunk-5TIEIY7M.cjs +0 -393
- package/dist/chunk-5TIEIY7M.cjs.map +0 -1
- package/dist/chunk-MTJATM72.cjs +0 -2423
- package/dist/chunk-MTJATM72.cjs.map +0 -1
- package/dist/chunk-O377UO7C.js +0 -2379
- package/dist/chunk-O377UO7C.js.map +0 -1
- package/dist/chunk-VFSNUXOW.js +0 -382
- package/dist/chunk-VFSNUXOW.js.map +0 -1
- package/dist/client/components/data-kit-infinity.d.ts +0 -23
- package/dist/client/components/data-kit-infinity.d.ts.map +0 -1
- package/dist/client/components/data-kit-table.d.ts +0 -34
- package/dist/client/components/data-kit-table.d.ts.map +0 -1
- package/dist/client/components/data-kit.d.ts +0 -25
- package/dist/client/components/data-kit.d.ts.map +0 -1
- package/dist/client/components/index.d.ts +0 -4
- package/dist/client/components/index.d.ts.map +0 -1
- package/dist/client/components/ui/button.d.ts +0 -14
- package/dist/client/components/ui/button.d.ts.map +0 -1
- package/dist/client/components/ui/checkbox.d.ts +0 -5
- package/dist/client/components/ui/checkbox.d.ts.map +0 -1
- package/dist/client/components/ui/dropdown-menu.d.ts +0 -28
- package/dist/client/components/ui/dropdown-menu.d.ts.map +0 -1
- package/dist/client/components/ui/index.d.ts +0 -8
- package/dist/client/components/ui/index.d.ts.map +0 -1
- package/dist/client/components/ui/pagination.d.ts +0 -14
- package/dist/client/components/ui/pagination.d.ts.map +0 -1
- package/dist/client/components/ui/popover.d.ts +0 -10
- package/dist/client/components/ui/popover.d.ts.map +0 -1
- package/dist/client/components/ui/select.d.ts +0 -18
- package/dist/client/components/ui/select.d.ts.map +0 -1
- package/dist/client/components/ui/table.d.ts +0 -11
- package/dist/client/components/ui/table.d.ts.map +0 -1
- package/dist/client/context/index.d.ts +0 -22
- package/dist/client/context/index.d.ts.map +0 -1
- package/dist/client/hooks/index.d.ts +0 -7
- package/dist/client/hooks/index.d.ts.map +0 -1
- package/dist/client/hooks/useDataKit.d.ts +0 -9
- package/dist/client/hooks/useDataKit.d.ts.map +0 -1
- package/dist/client/hooks/usePagination.d.ts +0 -18
- package/dist/client/hooks/usePagination.d.ts.map +0 -1
- package/dist/client/hooks/useSelection.d.ts +0 -13
- package/dist/client/hooks/useSelection.d.ts.map +0 -1
- package/dist/client/index.d.ts +0 -11
- package/dist/client/index.d.ts.map +0 -1
- package/dist/client/utils/cn.d.ts +0 -10
- package/dist/client/utils/cn.d.ts.map +0 -1
- package/dist/client/utils/index.d.ts +0 -60
- package/dist/client/utils/index.d.ts.map +0 -1
- package/dist/client.cjs +0 -85
- package/dist/client.cjs.map +0 -1
- package/dist/client.d.cts +0 -62
- package/dist/client.d.ts +0 -7
- package/dist/client.d.ts.map +0 -1
- package/dist/client.js +0 -4
- package/dist/client.js.map +0 -1
- package/dist/index-DUVfK8q6.d.ts +0 -284
- package/dist/index-qXbjvUTB.d.cts +0 -284
- package/dist/index.cjs +0 -300
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -117
- package/dist/internal/hooks.cjs +0 -12
- package/dist/internal/hooks.cjs.map +0 -1
- package/dist/internal/hooks.d.cts +0 -1
- package/dist/internal/hooks.d.ts +0 -1
- package/dist/internal/hooks.js +0 -3
- package/dist/internal/hooks.js.map +0 -1
- package/dist/server/utils.d.ts +0 -52
- package/dist/server/utils.d.ts.map +0 -1
- package/dist/server.cjs +0 -315
- package/dist/server.cjs.map +0 -1
- package/dist/server.d.cts +0 -102
- package/dist/styles.css +0 -2
- package/dist/types/client/component.d.ts +0 -129
- package/dist/types/client/component.d.ts.map +0 -1
- package/dist/types/client/hook.d.ts +0 -116
- package/dist/types/client/hook.d.ts.map +0 -1
- package/dist/types/client/selectable.d.ts +0 -43
- package/dist/types/client/selectable.d.ts.map +0 -1
- package/dist/types/index.cjs +0 -4
- package/dist/types/index.cjs.map +0 -1
- package/dist/types/index.d.cts +0 -291
- package/dist/types/index.d.ts +0 -12
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -3
- package/dist/types/index.js.map +0 -1
- package/dist/types/next-data-kit.d.ts +0 -95
- package/dist/types/next-data-kit.d.ts.map +0 -1
- package/dist/types/server/action.d.ts +0 -44
- package/dist/types/server/action.d.ts.map +0 -1
- package/dist/types/server/database/mongo.d.ts +0 -56
- package/dist/types/server/database/mongo.d.ts.map +0 -1
- package/dist/useDataKit-XFp3_mUc.d.cts +0 -276
- package/dist/useDataKit-XFp3_mUc.d.ts +0 -276
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { Table, TableHeader, TableBody, TableFooter, TableRow, TableHead, TableCell, TableCaption, } from './table';
|
|
2
|
-
export { Checkbox } from './checkbox';
|
|
3
|
-
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from './popover';
|
|
4
|
-
export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, } from './dropdown-menu';
|
|
5
|
-
export { Button, buttonVariants } from './button';
|
|
6
|
-
export { Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationPrevious, PaginationNext, PaginationEllipsis, } from './pagination';
|
|
7
|
-
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, } from './select';
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/client/components/ui/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACF,KAAK,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,QAAQ,EACR,SAAS,EACT,SAAS,EACT,YAAY,GAChB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAEnF,OAAO,EACF,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,sBAAsB,GAC1B,MAAM,iBAAiB,CAAC;AAIzB,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAElD,OAAO,EACF,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,kBAAkB,GACtB,MAAM,cAAc,CAAC;AAEtB,OAAO,EACF,MAAM,EACN,aAAa,EACb,WAAW,EACX,UAAU,EACV,WAAW,EACX,sBAAsB,EACtB,oBAAoB,EACpB,eAAe,EACf,aAAa,EACb,WAAW,GACf,MAAM,UAAU,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { type Button } from './button';
|
|
3
|
-
declare function Pagination({ className, ...props }: React.ComponentProps<'nav'>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare function PaginationContent({ className, ...props }: React.ComponentProps<'ul'>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function PaginationItem({ ...props }: React.ComponentProps<'li'>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
type PaginationLinkProps = {
|
|
7
|
-
isActive?: boolean;
|
|
8
|
-
} & Pick<React.ComponentProps<typeof Button>, 'size' | 'disabled' | 'onClick' | 'type'> & Omit<React.ComponentProps<'button'>, 'type' | 'onClick' | 'disabled'>;
|
|
9
|
-
declare function PaginationLink({ className, isActive, size, type, ...props }: PaginationLinkProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
declare function PaginationPrevious({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
declare function PaginationNext({ className, ...props }: React.ComponentProps<typeof PaginationLink>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
declare function PaginationEllipsis({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export { Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationPrevious, PaginationNext, PaginationEllipsis, };
|
|
14
|
-
//# sourceMappingURL=pagination.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../../src/client/components/ui/pagination.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAkB,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAEvD,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAUvE;AAED,iBAAS,iBAAiB,CAAC,EACvB,SAAS,EACT,GAAG,KAAK,EACX,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAQ5B;AAED,iBAAS,cAAc,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAE/D;AAED,KAAK,mBAAmB,GAAG;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC,GACnF,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,CAAC,CAAC;AAE1E,iBAAS,cAAc,CAAC,EACpB,SAAS,EACT,QAAQ,EACR,IAAa,EACb,IAAe,EACf,GAAG,KAAK,EACX,EAAE,mBAAmB,2CAiBrB;AAED,iBAAS,kBAAkB,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACX,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,2CAY7C;AAED,iBAAS,cAAc,CAAC,EACpB,SAAS,EACT,GAAG,KAAK,EACX,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,2CAY7C;AAED,iBAAS,kBAAkB,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACX,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,2CAY9B;AAED,OAAO,EACH,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,kBAAkB,GACrB,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
3
|
-
declare function Popover(props: React.ComponentProps<typeof PopoverPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare function PopoverTrigger(props: React.ComponentProps<typeof PopoverPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function PopoverContent({ className, align, sideOffset, container, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content> & {
|
|
6
|
-
container?: HTMLElement | null;
|
|
7
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare function PopoverAnchor(props: React.ComponentProps<typeof PopoverPrimitive.Anchor>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
|
|
10
|
-
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../../src/client/components/ui/popover.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,gBAAgB,MAAM,yBAAyB,CAAC;AAI5D,iBAAS,OAAO,CACX,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,2CAG7D;AAED,iBAAS,cAAc,CAClB,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,2CAGhE;AAED,iBAAS,cAAc,CAAC,EACnB,SAAS,EACT,KAAgB,EAChB,UAAc,EACd,SAAS,EACT,GAAG,KAAK,EACZ,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,OAAO,CAAC,GAAG;IACtD,SAAS,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;CACnC,2CAeA;AAED,iBAAS,aAAa,CACjB,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,MAAM,CAAC,2CAG/D;AAED,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
3
|
-
declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare function SelectGroup({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
7
|
-
size?: "sm" | "default";
|
|
8
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
declare function SelectContent({ className, children, position, align, container, ...props }: React.ComponentProps<typeof SelectPrimitive.Content> & {
|
|
10
|
-
container?: HTMLElement | null;
|
|
11
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
|
|
18
|
-
//# sourceMappingURL=select.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../src/client/components/ui/select.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAA;AAMzD,iBAAS,MAAM,CAAC,EACX,GAAG,KAAK,EACZ,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,2CAEnD;AAED,iBAAS,WAAW,CAAC,EAChB,GAAG,KAAK,EACZ,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,2CAEpD;AAED,iBAAS,WAAW,CAAC,EAChB,GAAG,KAAK,EACZ,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,2CAEpD;AAED,iBAAS,aAAa,CAAC,EAClB,SAAS,EACT,IAAgB,EAChB,QAAQ,EACR,GAAG,KAAK,EACZ,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,GAAG;IACrD,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAA;CAC3B,2CAiBA;AAED,iBAAS,aAAa,CAAC,EAClB,SAAS,EACT,QAAQ,EACR,QAAyB,EACzB,KAAgB,EAChB,SAAS,EACT,GAAG,KAAK,EACZ,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,GAAG;IACrD,SAAS,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;CACnC,2CA6BA;AAED,iBAAS,WAAW,CAAC,EAChB,SAAS,EACT,GAAG,KAAK,EACZ,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,2CAQpD;AAED,iBAAS,UAAU,CAAC,EACf,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACZ,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,2CAqBnD;AAED,iBAAS,eAAe,CAAC,EACpB,SAAS,EACT,GAAG,KAAK,EACZ,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,SAAS,CAAC,2CAQxD;AAED,iBAAS,oBAAoB,CAAC,EACzB,SAAS,EACT,GAAG,KAAK,EACZ,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,cAAc,CAAC,2CAa7D;AAED,iBAAS,sBAAsB,CAAC,EAC3B,SAAS,EACT,GAAG,KAAK,EACZ,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,gBAAgB,CAAC,2CAa/D;AAED,OAAO,EACF,MAAM,EACN,aAAa,EACb,WAAW,EACX,UAAU,EACV,WAAW,EACX,sBAAsB,EACtB,oBAAoB,EACpB,eAAe,EACf,aAAa,EACb,WAAW,GACf,CAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
declare function Table({ className, ...props }: React.ComponentProps<'table'>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
declare function TableHeader({ className, ...props }: React.ComponentProps<'thead'>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare function TableBody({ className, ...props }: React.ComponentProps<'tbody'>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function TableFooter({ className, ...props }: React.ComponentProps<'tfoot'>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function TableRow({ className, ...props }: React.ComponentProps<'tr'>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
declare function TableHead({ className, ...props }: React.ComponentProps<'th'>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare function TableCell({ className, ...props }: React.ComponentProps<'td'>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
declare function TableCaption({ className, ...props }: React.ComponentProps<'caption'>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
|
|
11
|
-
//# sourceMappingURL=table.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../src/client/components/ui/table.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,iBAAS,KAAK,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAUpE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAQ1E;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAQxE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,2CAW1E;AAED,iBAAS,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAWpE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAWrE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,2CAWrE;AAED,iBAAS,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,SAAS,CAAC,2CAQ7E;AAED,OAAO,EACF,KAAK,EACL,WAAW,EACX,SAAS,EACT,WAAW,EACX,SAAS,EACT,QAAQ,EACR,SAAS,EACT,YAAY,GAChB,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* next-data-kit - DataKitContext
|
|
3
|
-
*
|
|
4
|
-
* React context for sharing next-data-kit state across components.
|
|
5
|
-
*/
|
|
6
|
-
import { type ReactNode } from 'react';
|
|
7
|
-
import type { TUseDataKitReturn } from '../../types';
|
|
8
|
-
export type TDataKitContextValue<T = unknown, R = unknown> = TUseDataKitReturn<T, R>;
|
|
9
|
-
export declare const createDataKitContext: <T = unknown, R = unknown>() => {
|
|
10
|
-
DataKitProvider: (props: Readonly<{
|
|
11
|
-
value: TDataKitContextValue<T, R>;
|
|
12
|
-
children: ReactNode;
|
|
13
|
-
}>) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
useDataKitContext: () => TDataKitContextValue<T, R>;
|
|
15
|
-
Context: import("react").Context<TDataKitContextValue<T, R> | null>;
|
|
16
|
-
};
|
|
17
|
-
declare const DefaultDataKitProvider: (props: Readonly<{
|
|
18
|
-
value: TDataKitContextValue<unknown, unknown>;
|
|
19
|
-
children: ReactNode;
|
|
20
|
-
}>) => import("react/jsx-runtime").JSX.Element, useDefaultDataKitContext: () => TDataKitContextValue<unknown, unknown>, DefaultDataKitContext: import("react").Context<TDataKitContextValue<unknown, unknown> | null>;
|
|
21
|
-
export { DefaultDataKitProvider as DataKitProvider, useDefaultDataKitContext as useDataKitContext, DefaultDataKitContext as DataKitContext, };
|
|
22
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/context/index.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAA6B,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGrD,MAAM,MAAM,oBAAoB,CAAC,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,OAAO,IAAI,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAGrF,eAAO,MAAM,oBAAoB,GAAI,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,OAAO;6BAIxB,QAAQ,CAAC;QACpC,KAAK,EAAE,oBAAoB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QAClC,QAAQ,EAAE,SAAS,CAAC;KACxB,CAAC;6BAM4B,oBAAoB,CAAC,CAAC,EAAE,CAAC,CAAC;;CAS5D,CAAC;AAGF,QAAA,MACsB,sBAAsB;;cApBxB,SAAS;gDAqBL,wBAAwB,gDAClC,qBAAqB,wEACT,CAAC;AAE3B,OAAO,EACF,sBAAsB,IAAI,eAAe,EACzC,wBAAwB,IAAI,iBAAiB,EAC7C,qBAAqB,IAAI,cAAc,GAC3C,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* next-data-kit - Hooks Exports
|
|
3
|
-
*/
|
|
4
|
-
export { useDataKit, type TUseDataKitOptions } from './useDataKit';
|
|
5
|
-
export { useSelection, useSelectionWithTotal } from './useSelection';
|
|
6
|
-
export { usePagination, type TUsePaginationReturn } from './usePagination';
|
|
7
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/hooks/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,KAAK,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,KAAK,oBAAoB,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* next-data-kit - useDataKit Hook
|
|
3
|
-
*
|
|
4
|
-
* React hook for managing next-data-kit state and actions.
|
|
5
|
-
*/
|
|
6
|
-
import type { TUseDataKitOptions, TUseDataKitReturn } from '../../types';
|
|
7
|
-
export declare const useDataKit: <T = unknown, R = unknown>(props: Readonly<TUseDataKitOptions<T, R>>) => TUseDataKitReturn<T, R>;
|
|
8
|
-
export type { TUseDataKitOptions };
|
|
9
|
-
//# sourceMappingURL=useDataKit.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useDataKit.d.ts","sourceRoot":"","sources":["../../../src/client/hooks/useDataKit.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,KAAK,EAAiC,kBAAkB,EAAc,iBAAiB,EAAiB,MAAM,aAAa,CAAC;AAGnI,eAAO,MAAM,UAAU,GAAI,CAAC,GAAG,OAAO,EAAE,CAAC,GAAG,OAAO,EAAE,OAAO,QAAQ,CAAC,kBAAkB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAG,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAkVtH,CAAC;AAEF,YAAY,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* next-data-kit - usePagination Hook
|
|
3
|
-
*
|
|
4
|
-
* React hook for calculating pagination state.
|
|
5
|
-
*/
|
|
6
|
-
import type { TPaginationInfo } from '../../types';
|
|
7
|
-
export type TUsePaginationReturn = TPaginationInfo & {
|
|
8
|
-
pages: (number | 'ellipsis')[];
|
|
9
|
-
firstPage: number;
|
|
10
|
-
lastPage: number;
|
|
11
|
-
};
|
|
12
|
-
export declare const usePagination: (props: Readonly<{
|
|
13
|
-
page: number;
|
|
14
|
-
limit: number;
|
|
15
|
-
total: number;
|
|
16
|
-
siblingCount?: number;
|
|
17
|
-
}>) => TUsePaginationReturn;
|
|
18
|
-
//# sourceMappingURL=usePagination.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePagination.d.ts","sourceRoot":"","sources":["../../../src/client/hooks/usePagination.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAGnD,MAAM,MAAM,oBAAoB,GAAG,eAAe,GAAG;IAEpD,KAAK,EAAE,CAAC,MAAM,GAAG,UAAU,CAAC,EAAE,CAAC;IAE/B,SAAS,EAAE,MAAM,CAAC;IAElB,QAAQ,EAAE,MAAM,CAAC;CACjB,CAAC;AAIF,eAAO,MAAM,aAAa,GACzB,OAAO,QAAQ,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IAEd,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC,KACA,oBAkDF,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* next-data-kit - useSelection Hook
|
|
3
|
-
*
|
|
4
|
-
* React hook for managing table row selection.
|
|
5
|
-
*/
|
|
6
|
-
import type { TUseSelectionReturn } from '../../types';
|
|
7
|
-
export declare const useSelection: <T = string>(initialSelected?: T[]) => TUseSelectionReturn<T>;
|
|
8
|
-
export declare const useSelectionWithTotal: <T = string>(totalItems: T[], initialSelected?: T[]) => Omit<TUseSelectionReturn<T>, "toggleAll"> & {
|
|
9
|
-
isAllSelected: boolean;
|
|
10
|
-
isIndeterminate: boolean;
|
|
11
|
-
toggleAll: () => void;
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=useSelection.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSelection.d.ts","sourceRoot":"","sources":["../../../src/client/hooks/useSelection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAGvD,eAAO,MAAM,YAAY,GAAI,CAAC,GAAG,MAAM,EAAE,kBAAiB,CAAC,EAAO,KAAG,mBAAmB,CAAC,CAAC,CAuEzF,CAAC;AAGF,eAAO,MAAM,qBAAqB,GAAI,CAAC,GAAG,MAAM,EAC3C,YAAY,CAAC,EAAE,EACf,kBAAiB,CAAC,EAAO,KAC3B,IAAI,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,GAAG;IAC1C,aAAa,EAAE,OAAO,CAAC;IACvB,eAAe,EAAE,OAAO,CAAC;IACzB,SAAS,EAAE,MAAM,IAAI,CAAC;CA4B1B,CAAC"}
|
package/dist/client/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* next-data-kit - Client Exports
|
|
3
|
-
*
|
|
4
|
-
* Client-side utilities, hooks, and components for next-data-kit.
|
|
5
|
-
*/
|
|
6
|
-
export { useDataKit, useSelection, useSelectionWithTotal, usePagination, type TUseDataKitOptions, type TUsePaginationReturn } from './hooks';
|
|
7
|
-
export { createDataKitContext, DataKitProvider, useDataKitContext, DataKitContext, type TDataKitContextValue } from './context';
|
|
8
|
-
export { DataKitTable, DataKit, DataKitInfinity } from './components';
|
|
9
|
-
export { getColumnValue, getSortValue, getNextSortValue, formatNumber, debounce, throttle, sortEntriesToKey, keyToSortEntries } from './utils';
|
|
10
|
-
export type { TDataKitState, TDataKitActions, TUseDataKitReturn, TDataKitColumn, TSortEntry, TFilterConfig, TPaginationInfo, TSelectionState, TSelectionActions, TUseSelectionReturn, TSelectionMode, TSelectable, TExtractDataKitItemType, TDataKitComponentColumn, TDataKitFilterItem, TDataKitBulkAction, TDataKitController, TDataKitSelectableItem, TDataKitMemoryMode, } from '../types';
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAKH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,qBAAqB,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,KAAK,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAG7I,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,iBAAiB,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAGhI,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAGtE,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAG/I,YAAY,EACX,aAAa,EACb,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,UAAU,EACV,aAAa,EACb,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACd,WAAW,EAEX,uBAAuB,EACvB,uBAAuB,EACvB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAClB,sBAAsB,EACtB,kBAAkB,GAClB,MAAM,UAAU,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
type ClassPrimitive = string | number | boolean | null | undefined;
|
|
2
|
-
type ClassDictionary = Record<string, boolean | undefined | null>;
|
|
3
|
-
type ClassArray = ClassValue[];
|
|
4
|
-
export type ClassValue = ClassPrimitive | ClassDictionary | ClassArray;
|
|
5
|
-
/**
|
|
6
|
-
* Minimal `cn` helper (shadcn-style) without external deps.
|
|
7
|
-
*/
|
|
8
|
-
export declare const cn: (...inputs: ClassValue[]) => string;
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=cn.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cn.d.ts","sourceRoot":"","sources":["../../../src/client/utils/cn.ts"],"names":[],"mappings":"AAEA,KAAK,cAAc,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;AACnE,KAAK,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI,CAAC,CAAC;AAClE,KAAK,UAAU,GAAG,UAAU,EAAE,CAAC;AAC/B,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG,eAAe,GAAG,UAAU,CAAC;AAqBvE;;GAEG;AACH,eAAO,MAAM,EAAE,GAAI,GAAG,QAAQ,UAAU,EAAE,KAAG,MAA6D,CAAC"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* next-data-kit - Utility Functions
|
|
3
|
-
*
|
|
4
|
-
* Helper utilities for client-side operations.
|
|
5
|
-
*/
|
|
6
|
-
import type { TDataKitColumn, TSortEntry } from '../../types';
|
|
7
|
-
export { cn, type ClassValue } from './cn';
|
|
8
|
-
/**
|
|
9
|
-
* Get the value from an item using a column accessor
|
|
10
|
-
*/
|
|
11
|
-
export declare const getColumnValue: <T>(item: T, column: TDataKitColumn<T>) => unknown;
|
|
12
|
-
/**
|
|
13
|
-
* Get the sort value for a column
|
|
14
|
-
*/
|
|
15
|
-
export declare const getSortValue: (sorts: TSortEntry[], path: string) => 1 | -1 | null;
|
|
16
|
-
/**
|
|
17
|
-
* Get the next sort value in the cycle: null -> 1 -> -1 -> null
|
|
18
|
-
*/
|
|
19
|
-
export declare const getNextSortValue: (current: 1 | -1 | null) => 1 | -1 | null;
|
|
20
|
-
/**
|
|
21
|
-
* Format a number with commas
|
|
22
|
-
*/
|
|
23
|
-
export declare const formatNumber: (num: number) => string;
|
|
24
|
-
/**
|
|
25
|
-
* Debounce a function
|
|
26
|
-
*/
|
|
27
|
-
export declare const debounce: <T extends (...args: unknown[]) => unknown>(fn: T, delay: number) => ((...args: Parameters<T>) => void);
|
|
28
|
-
/**
|
|
29
|
-
* Throttle a function
|
|
30
|
-
*/
|
|
31
|
-
export declare const throttle: <T extends (...args: unknown[]) => unknown>(fn: T, limit: number) => ((...args: Parameters<T>) => void);
|
|
32
|
-
/**
|
|
33
|
-
* Create a stable object key from sort entries
|
|
34
|
-
*/
|
|
35
|
-
export declare const sortEntriesToKey: (sorts: TSortEntry[]) => string;
|
|
36
|
-
/**
|
|
37
|
-
* Parse a sort key back to sort entries
|
|
38
|
-
*/
|
|
39
|
-
export declare const keyToSortEntries: (key: string) => TSortEntry[];
|
|
40
|
-
/**
|
|
41
|
-
* Parse URL search params into tabler state
|
|
42
|
-
*/
|
|
43
|
-
export declare const parseUrlParams: (search: string) => {
|
|
44
|
-
page?: number;
|
|
45
|
-
limit?: number;
|
|
46
|
-
sorts?: TSortEntry[];
|
|
47
|
-
filter?: Record<string, unknown>;
|
|
48
|
-
query?: Record<string, unknown>;
|
|
49
|
-
};
|
|
50
|
-
/**
|
|
51
|
-
* Convert tabler state to URL search params
|
|
52
|
-
*/
|
|
53
|
-
export declare const stateToUrlParams: (state: {
|
|
54
|
-
page?: number;
|
|
55
|
-
limit?: number;
|
|
56
|
-
sorts?: TSortEntry[];
|
|
57
|
-
filter?: Record<string, unknown>;
|
|
58
|
-
query?: Record<string, unknown>;
|
|
59
|
-
}) => URLSearchParams;
|
|
60
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/utils/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9D,OAAO,EAAE,EAAE,EAAE,KAAK,UAAU,EAAE,MAAM,MAAM,CAAC;AAG3C;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,CAAC,EAAE,MAAM,CAAC,EAAE,QAAQ,cAAc,CAAC,CAAC,CAAC,KAAG,OAGtE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,UAAU,EAAE,EAAE,MAAM,MAAM,KAAG,CAAC,GAAG,CAAC,CAAC,GAAG,IAGzE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,KAAG,CAAC,GAAG,CAAC,CAAC,GAAG,IAIlE,CAAC;AAGF;;GAEG;AACH,eAAO,MAAM,YAAY,GAAI,KAAK,MAAM,KAAG,MAA8B,CAAC;AAG1E;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,EAC7D,IAAI,CAAC,EACL,OAAO,MAAM,KACf,CAAC,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,IAAI,CAMnC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,QAAQ,GAAI,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,EAC7D,IAAI,CAAC,EACL,OAAO,MAAM,KACf,CAAC,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,IAAI,CASnC,CAAC;AAGF;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,OAAO,UAAU,EAAE,KAAG,MACA,CAAC;AAExD;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,KAAK,MAAM,KAAG,UAAU,EAMxD,CAAC;AAsBF;;GAEG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,MAAM,KAAG;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAgCpC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,OAAO;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,UAAU,EAAE,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACjC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC,KAAG,eAwBH,CAAC"}
|
package/dist/client.cjs
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkMTJATM72_cjs = require('./chunk-MTJATM72.cjs');
|
|
4
|
-
var chunk5TIEIY7M_cjs = require('./chunk-5TIEIY7M.cjs');
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Object.defineProperty(exports, "DataKit", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function () { return chunkMTJATM72_cjs.DataKit; }
|
|
11
|
-
});
|
|
12
|
-
Object.defineProperty(exports, "DataKitContext", {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () { return chunkMTJATM72_cjs.DefaultDataKitContext; }
|
|
15
|
-
});
|
|
16
|
-
Object.defineProperty(exports, "DataKitInfinity", {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return chunkMTJATM72_cjs.DataKitInfinity; }
|
|
19
|
-
});
|
|
20
|
-
Object.defineProperty(exports, "DataKitProvider", {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
get: function () { return chunkMTJATM72_cjs.DefaultDataKitProvider; }
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "DataKitTable", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function () { return chunkMTJATM72_cjs.DataKitTable; }
|
|
27
|
-
});
|
|
28
|
-
Object.defineProperty(exports, "createDataKitContext", {
|
|
29
|
-
enumerable: true,
|
|
30
|
-
get: function () { return chunkMTJATM72_cjs.createDataKitContext; }
|
|
31
|
-
});
|
|
32
|
-
Object.defineProperty(exports, "useDataKitContext", {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
get: function () { return chunkMTJATM72_cjs.useDefaultDataKitContext; }
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "usePagination", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function () { return chunkMTJATM72_cjs.usePagination; }
|
|
39
|
-
});
|
|
40
|
-
Object.defineProperty(exports, "useSelection", {
|
|
41
|
-
enumerable: true,
|
|
42
|
-
get: function () { return chunkMTJATM72_cjs.useSelection; }
|
|
43
|
-
});
|
|
44
|
-
Object.defineProperty(exports, "useSelectionWithTotal", {
|
|
45
|
-
enumerable: true,
|
|
46
|
-
get: function () { return chunkMTJATM72_cjs.useSelectionWithTotal; }
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(exports, "debounce", {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function () { return chunk5TIEIY7M_cjs.debounce; }
|
|
51
|
-
});
|
|
52
|
-
Object.defineProperty(exports, "formatNumber", {
|
|
53
|
-
enumerable: true,
|
|
54
|
-
get: function () { return chunk5TIEIY7M_cjs.formatNumber; }
|
|
55
|
-
});
|
|
56
|
-
Object.defineProperty(exports, "getColumnValue", {
|
|
57
|
-
enumerable: true,
|
|
58
|
-
get: function () { return chunk5TIEIY7M_cjs.getColumnValue; }
|
|
59
|
-
});
|
|
60
|
-
Object.defineProperty(exports, "getNextSortValue", {
|
|
61
|
-
enumerable: true,
|
|
62
|
-
get: function () { return chunk5TIEIY7M_cjs.getNextSortValue; }
|
|
63
|
-
});
|
|
64
|
-
Object.defineProperty(exports, "getSortValue", {
|
|
65
|
-
enumerable: true,
|
|
66
|
-
get: function () { return chunk5TIEIY7M_cjs.getSortValue; }
|
|
67
|
-
});
|
|
68
|
-
Object.defineProperty(exports, "keyToSortEntries", {
|
|
69
|
-
enumerable: true,
|
|
70
|
-
get: function () { return chunk5TIEIY7M_cjs.keyToSortEntries; }
|
|
71
|
-
});
|
|
72
|
-
Object.defineProperty(exports, "sortEntriesToKey", {
|
|
73
|
-
enumerable: true,
|
|
74
|
-
get: function () { return chunk5TIEIY7M_cjs.sortEntriesToKey; }
|
|
75
|
-
});
|
|
76
|
-
Object.defineProperty(exports, "throttle", {
|
|
77
|
-
enumerable: true,
|
|
78
|
-
get: function () { return chunk5TIEIY7M_cjs.throttle; }
|
|
79
|
-
});
|
|
80
|
-
Object.defineProperty(exports, "useDataKit", {
|
|
81
|
-
enumerable: true,
|
|
82
|
-
get: function () { return chunk5TIEIY7M_cjs.useDataKit; }
|
|
83
|
-
});
|
|
84
|
-
//# sourceMappingURL=client.cjs.map
|
|
85
|
-
//# sourceMappingURL=client.cjs.map
|
package/dist/client.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"client.cjs"}
|
package/dist/client.d.cts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { T as TDataKitInput, e as TDataKitResult, q as TUseDataKitReturn } from './useDataKit-XFp3_mUc.cjs';
|
|
2
|
-
export { p as TDataKitActions, r as TDataKitColumn, o as TDataKitState, m as TFilterConfig, g as TPaginationInfo, l as TSortEntry, h as TUseDataKitOptions, u as useDataKit } from './useDataKit-XFp3_mUc.cjs';
|
|
3
|
-
import { A as TDataKitSelectableItem, w as TDataKitComponentColumn, v as TExtractDataKitItemType, x as TDataKitFilterItem, y as TDataKitBulkAction, B as TDataKitMemoryMode, z as TDataKitController } from './index-qXbjvUTB.cjs';
|
|
4
|
-
export { f as DataKit, e as DataKitContext, D as DataKitProvider, m as TDataKitContextValue, r as TSelectable, o as TSelectionActions, q as TSelectionMode, n as TSelectionState, T as TUsePaginationReturn, p as TUseSelectionReturn, c as createDataKitContext, k as debounce, j as formatNumber, g as getColumnValue, i as getNextSortValue, h as getSortValue, l as keyToSortEntries, s as sortEntriesToKey, t as throttle, d as useDataKitContext, b as usePagination, u as useSelection, a as useSelectionWithTotal } from './index-qXbjvUTB.cjs';
|
|
5
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
|
-
import * as React from 'react';
|
|
7
|
-
import React__default from 'react';
|
|
8
|
-
|
|
9
|
-
declare function TableHead({ className, ...props }: React.ComponentProps<'th'>): react_jsx_runtime.JSX.Element;
|
|
10
|
-
declare function TableCell({ className, ...props }: React.ComponentProps<'td'>): react_jsx_runtime.JSX.Element;
|
|
11
|
-
|
|
12
|
-
declare const DataKitTable: (<TAction extends (input: TDataKitInput<unknown>) => Promise<TDataKitResult<TDataKitSelectableItem>>, TRowState = unknown>(props: Readonly<{
|
|
13
|
-
action: TAction;
|
|
14
|
-
query?: Record<string, unknown>;
|
|
15
|
-
table: TDataKitComponentColumn<TExtractDataKitItemType<TAction>, TRowState>[];
|
|
16
|
-
filters?: TDataKitFilterItem[];
|
|
17
|
-
selectable?: {
|
|
18
|
-
enabled: boolean;
|
|
19
|
-
actions?: Record<string, TDataKitBulkAction<TExtractDataKitItemType<TAction>>>;
|
|
20
|
-
};
|
|
21
|
-
state?: TRowState;
|
|
22
|
-
limit?: {
|
|
23
|
-
default: number;
|
|
24
|
-
};
|
|
25
|
-
className?: string;
|
|
26
|
-
autoFetch?: boolean;
|
|
27
|
-
debounce?: number;
|
|
28
|
-
bordered?: boolean | "rounded";
|
|
29
|
-
refetchInterval?: number;
|
|
30
|
-
memory?: TDataKitMemoryMode;
|
|
31
|
-
pagination?: "SIMPLE" | "NUMBER";
|
|
32
|
-
controller?: React__default.MutableRefObject<TDataKitController<TExtractDataKitItemType<TAction>> | null>;
|
|
33
|
-
sorts?: {
|
|
34
|
-
path: string;
|
|
35
|
-
value: 1 | -1;
|
|
36
|
-
}[];
|
|
37
|
-
}>) => react_jsx_runtime.JSX.Element) & {
|
|
38
|
-
Cell: typeof TableCell;
|
|
39
|
-
Head: typeof TableHead;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
declare const DataKitInfinity: <TAction extends (input: TDataKitInput<unknown>) => Promise<TDataKitResult<TDataKitSelectableItem>>>(props: Readonly<{
|
|
43
|
-
action: TAction;
|
|
44
|
-
query?: Record<string, unknown>;
|
|
45
|
-
filters?: TDataKitFilterItem[];
|
|
46
|
-
limit?: {
|
|
47
|
-
default: number;
|
|
48
|
-
};
|
|
49
|
-
defaultSort?: {
|
|
50
|
-
path: string;
|
|
51
|
-
value: 1 | -1;
|
|
52
|
-
}[];
|
|
53
|
-
className?: string;
|
|
54
|
-
autoFetch?: boolean;
|
|
55
|
-
debounce?: number;
|
|
56
|
-
memory?: TDataKitMemoryMode;
|
|
57
|
-
manual?: boolean;
|
|
58
|
-
fullHeight?: boolean;
|
|
59
|
-
children: (dataKit: TUseDataKitReturn<unknown, TExtractDataKitItemType<TAction>>) => React__default.ReactNode;
|
|
60
|
-
}>) => React__default.ReactElement;
|
|
61
|
-
|
|
62
|
-
export { DataKitInfinity, DataKitTable, TDataKitBulkAction, TDataKitComponentColumn, TDataKitController, TDataKitFilterItem, TDataKitMemoryMode, TDataKitSelectableItem, TExtractDataKitItemType, TUseDataKitReturn };
|
package/dist/client.d.ts
DELETED
package/dist/client.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,cAAc,gBAAgB,CAAC"}
|
package/dist/client.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { DataKit, DefaultDataKitContext as DataKitContext, DataKitInfinity, DefaultDataKitProvider as DataKitProvider, DataKitTable, createDataKitContext, useDefaultDataKitContext as useDataKitContext, usePagination, useSelection, useSelectionWithTotal } from './chunk-O377UO7C.js';
|
|
2
|
-
export { debounce, formatNumber, getColumnValue, getNextSortValue, getSortValue, keyToSortEntries, sortEntriesToKey, throttle, useDataKit } from './chunk-VFSNUXOW.js';
|
|
3
|
-
//# sourceMappingURL=client.js.map
|
|
4
|
-
//# sourceMappingURL=client.js.map
|
package/dist/client.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"client.js"}
|