@bomjan133/react-crud-ui 1.2.6 → 1.2.8
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/README.md +4284 -23
- package/dist/components/book-viewer/EpubViewer.d.ts +8 -0
- package/dist/components/book-viewer/PdfViewer.d.ts +9 -0
- package/dist/components/book-viewer/constants.d.ts +23 -0
- package/dist/components/book-viewer/hooks.d.ts +6 -0
- package/dist/components/book-viewer/index.d.ts +16 -0
- package/dist/components/book-viewer/ui.d.ts +16 -0
- package/dist/components/book-viewer/utils.d.ts +12 -0
- package/dist/components/crud/CrudDetail.d.ts +86 -0
- package/dist/components/crud/CrudForm.d.ts +33 -0
- package/dist/components/crud/CrudList.d.ts +105 -0
- package/dist/components/crud/DataTable.d.ts +64 -0
- package/dist/components/crud/EmptyState.d.ts +54 -0
- package/dist/components/crud/Loading.d.ts +32 -0
- package/dist/components/crud/Modal.d.ts +75 -0
- package/dist/components/crud/Pagination.d.ts +18 -0
- package/dist/components/crud/ServerErrorPage.d.ts +7 -0
- package/dist/components/layouts/AuthLayout.d.ts +32 -0
- package/dist/components/layouts/BreadcrumbContext.d.ts +4 -0
- package/dist/components/layouts/DashboardLayout.d.ts +41 -0
- package/dist/components/layouts/DetailView.d.ts +58 -0
- package/dist/components/layouts/Header.d.ts +13 -0
- package/dist/components/layouts/HeaderSlotContext.d.ts +4 -0
- package/dist/components/layouts/LoginPage.d.ts +50 -0
- package/dist/components/layouts/Sidebar.d.ts +38 -0
- package/dist/components/layouts/SidebarContext.d.ts +18 -0
- package/dist/components/layouts/index.d.ts +8 -0
- package/dist/components/toast/ToastContainer.d.ts +4 -0
- package/dist/components/toast/useUI.d.ts +33 -0
- package/dist/components/ui/CopyableField.d.ts +12 -0
- package/dist/components/ui/DownloadableButton.d.ts +15 -0
- package/dist/components/ui/alert-dialog.d.ts +26 -0
- package/dist/components/ui/alert.d.ts +8 -0
- package/dist/components/ui/avatar.d.ts +4 -0
- package/dist/components/ui/badge.d.ts +8 -0
- package/dist/components/ui/button.d.ts +6 -0
- package/dist/components/ui/calendar.d.ts +16 -0
- package/dist/components/ui/card.d.ts +7 -0
- package/dist/components/ui/checkbox.d.ts +2 -0
- package/dist/components/ui/collapsible.d.ts +3 -0
- package/dist/components/ui/date-picker.d.ts +2 -0
- package/dist/components/ui/date-range-picker.d.ts +2 -0
- package/dist/components/ui/dialog.d.ts +25 -0
- package/dist/components/ui/dropdown-menu.d.ts +23 -0
- package/dist/components/ui/form-fields.d.ts +19 -0
- package/dist/components/ui/input-group.d.ts +28 -0
- package/dist/components/ui/input.d.ts +2 -0
- package/dist/components/ui/label.d.ts +2 -0
- package/dist/components/ui/popover.d.ts +5 -0
- package/dist/components/ui/q-tabs.d.ts +18 -0
- package/dist/components/ui/rich-text-editor.d.ts +2 -0
- package/dist/components/ui/scroll-area.d.ts +3 -0
- package/dist/components/ui/search-select.d.ts +6 -0
- package/dist/components/ui/select.d.ts +12 -0
- package/dist/components/ui/separator.d.ts +2 -0
- package/dist/components/ui/skeleton.d.ts +4 -0
- package/dist/components/ui/switch.d.ts +2 -0
- package/dist/components/ui/table.d.ts +9 -0
- package/dist/components/ui/tabs.d.ts +6 -0
- package/dist/components/ui/textarea.d.ts +2 -0
- package/dist/components/ui/tiptap-editor.d.ts +2 -0
- package/dist/components/ui/tooltip.d.ts +6 -0
- package/dist/{index-DEnRTqSW.cjs → index-C1SYIwJ0.cjs} +2 -2
- package/dist/{index-DEnRTqSW.cjs.map → index-C1SYIwJ0.cjs.map} +1 -1
- package/dist/{index-YVvpDXLO.js → index-C27owgN3.js} +989 -971
- package/dist/{index-YVvpDXLO.js.map → index-C27owgN3.js.map} +1 -1
- package/dist/{index-DGN44off.cjs → index-CoyU9yXi.cjs} +29 -29
- package/dist/index-CoyU9yXi.cjs.map +1 -0
- package/dist/{index-CYnVj6pv.js → index-DYnTJrkh.js} +2 -2
- package/dist/{index-CYnVj6pv.js.map → index-DYnTJrkh.js.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +42 -0
- package/dist/index.js +1 -1
- package/dist/lib/utils.d.ts +61 -0
- package/dist/store/createCrudStore.d.ts +11 -0
- package/dist/store/useUIStore.d.ts +5 -0
- package/package.json +1 -1
- package/dist/index-DGN44off.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CoyU9yXi.cjs");exports.Alert=e.Alert;exports.AlertDescription=e.AlertDescription;exports.AlertDialog=e.AlertDialog;exports.AlertDialogAction=e.AlertDialogAction;exports.AlertDialogCancel=e.AlertDialogCancel;exports.AlertDialogContent=e.AlertDialogContent;exports.AlertDialogDescription=e.AlertDialogDescription;exports.AlertDialogFooter=e.AlertDialogFooter;exports.AlertDialogHeader=e.AlertDialogHeader;exports.AlertDialogOverlay=e.AlertDialogOverlay;exports.AlertDialogPortal=e.AlertDialogPortal;exports.AlertDialogTitle=e.AlertDialogTitle;exports.AlertDialogTrigger=e.AlertDialogTrigger;exports.AlertTitle=e.AlertTitle;exports.AlertWithIcon=e.AlertWithIcon;exports.AuthLayout=e.AuthLayout;exports.Avatar=e.Avatar;exports.AvatarFallback=e.AvatarFallback;exports.AvatarImage=e.AvatarImage;exports.Badge=e.Badge;exports.BookViewer=e.BookViewer;exports.BreadcrumbProvider=e.BreadcrumbProvider;exports.Button=e.Button;exports.Calendar=e.Calendar;exports.Card=e.Card;exports.CardContent=e.CardContent;exports.CardDescription=e.CardDescription;exports.CardFooter=e.CardFooter;exports.CardHeader=e.CardHeader;exports.CardTitle=e.CardTitle;exports.Checkbox=e.Checkbox;exports.ConfirmModal=e.ConfirmModal;exports.CreateEmptyState=e.CreateEmptyState;exports.CrudDetail=e.CrudDetail;exports.CrudForm=e.CrudForm;exports.CrudList=e.CrudList;exports.DashboardLayout=e.DashboardLayout;exports.DataTable=e.DataTable;exports.DatePicker=e.DatePicker;exports.DateRangePicker=e.DateRangePicker;exports.DeleteConfirmModal=e.DeleteConfirmModal;exports.Dialog=e.Dialog;exports.DialogClose=e.DialogClose;exports.DialogContent=e.DialogContent;exports.DialogDescription=e.DialogDescription;exports.DialogFooter=e.DialogFooter;exports.DialogHeader=e.DialogHeader;exports.DialogOverlay=e.DialogOverlay;exports.DialogPortal=e.DialogPortal;exports.DialogTitle=e.DialogTitle;exports.DialogTrigger=e.DialogTrigger;exports.DropdownMenu=e.DropdownMenu;exports.DropdownMenuCheckboxItem=e.DropdownMenuCheckboxItem;exports.DropdownMenuContent=e.DropdownMenuContent;exports.DropdownMenuGroup=e.DropdownMenuGroup;exports.DropdownMenuItem=e.DropdownMenuItem;exports.DropdownMenuLabel=e.DropdownMenuLabel;exports.DropdownMenuPortal=e.DropdownMenuPortal;exports.DropdownMenuRadioGroup=e.DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=e.DropdownMenuRadioItem;exports.DropdownMenuSeparator=e.DropdownMenuSeparator;exports.DropdownMenuShortcut=e.DropdownMenuShortcut;exports.DropdownMenuSub=e.DropdownMenuSub;exports.DropdownMenuSubContent=e.DropdownMenuSubContent;exports.DropdownMenuSubTrigger=e.DropdownMenuSubTrigger;exports.DropdownMenuTrigger=e.DropdownMenuTrigger;exports.EmptyState=e.EmptyState;exports.EpubViewer=e.EpubViewer;exports.ErrorState=e.ErrorState;exports.FormField=e.FormField;exports.FormModal=e.FormModal;exports.Header=e.Header;exports.HeaderSlotProvider=e.HeaderSlotProvider;exports.Input=e.Input;exports.Label=e.Label;exports.Loading=e.Loading;exports.LoadingButton=e.LoadingButton;exports.LoadingOverlay=e.LoadingOverlay;exports.LoginPage=e.LoginPage;exports.Modal=e.Modal;exports.Pagination=e.Pagination;exports.PdfViewer=e.PdfViewer;exports.Popover=e.Popover;exports.PopoverContent=e.PopoverContent;exports.PopoverTrigger=e.PopoverTrigger;exports.QCheckbox=e.QCheckbox;exports.QDatePicker=e.QDatePicker;exports.QDateRangePicker=e.QDateRangePicker;exports.QForm=e.QForm;exports.QInput=e.QInput;exports.QRichTextEditor=e.QRichTextEditor;exports.QSearchSelect=e.QSearchSelect;exports.QSelect=e.QSelect;exports.QSwitch=e.QSwitch;exports.QTabs=e.QTabs;exports.QTextarea=e.QTextarea;exports.RichTextEditor=e.RichTextEditor;exports.ScrollArea=e.ScrollArea;exports.ScrollBar=e.ScrollBar;exports.SearchEmptyState=e.SearchEmptyState;exports.SearchSelect=e.SearchSelect;exports.Select=e.Select;exports.SelectContent=e.SelectContent;exports.SelectGroup=e.SelectGroup;exports.SelectItem=e.SelectItem;exports.SelectLabel=e.SelectLabel;exports.SelectScrollDownButton=e.SelectScrollDownButton;exports.SelectScrollUpButton=e.SelectScrollUpButton;exports.SelectSeparator=e.SelectSeparator;exports.SelectTrigger=e.SelectTrigger;exports.SelectValue=e.SelectValue;exports.Separator=e.Separator;exports.Sidebar=e.Sidebar;exports.SidebarProvider=e.SidebarProvider;exports.Skeleton=e.Skeleton;exports.Switch=e.Switch;exports.Table=e.Table;exports.TableBody=e.TableBody;exports.TableCaption=e.TableCaption;exports.TableCell=e.TableCell;exports.TableFooter=e.TableFooter;exports.TableHead=e.TableHead;exports.TableHeader=e.TableHeader;exports.TableRow=e.TableRow;exports.Tabs=e.Tabs;exports.TabsContent=e.TabsContent;exports.TabsList=e.TabsList;exports.TabsTrigger=e.TabsTrigger;exports.Textarea=e.Textarea;exports.TimeStampFormat=e.TimeStampFormat;exports.ToastContainer=e.ToastContainer;exports.Tooltip=e.Tooltip;exports.TooltipContent=e.TooltipContent;exports.TooltipProvider=e.TooltipProvider;exports.TooltipTrigger=e.TooltipTrigger;exports.alertVariants=e.alertVariants;exports.badgeVariants=e.badgeVariants;exports.buildQueryString=e.buildQueryString;exports.buttonVariants=e.buttonVariants;exports.capitalize=e.capitalize;exports.cn=e.cn;exports.createCrudStore=e.createCrudStore;exports.createStore=e.createStore;exports.debounce=e.debounce;exports.deepClone=e.deepClone;exports.formatCurrency=e.formatCurrency;exports.formatDate=e.formatDate;exports.formatDateTime=e.formatDateTime;exports.formatRelativeTime=e.formatRelativeTime;exports.generateId=e.generateId;exports.getInitials=e.getInitials;exports.isEmpty=e.isEmpty;exports.parseQueryString=e.parseQueryString;exports.slugify=e.slugify;exports.truncate=e.truncate;exports.useBookDimensions=e.useBookDimensions;exports.useBreadcrumb=e.useBreadcrumb;exports.useHeaderSlot=e.useHeaderSlot;exports.useSidebarContext=e.useSidebarContext;exports.useToast=e.useToast;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export { Input } from './components/ui/input';
|
|
2
|
+
export { Label } from './components/ui/label';
|
|
3
|
+
export { Textarea } from './components/ui/textarea';
|
|
4
|
+
export { Checkbox } from './components/ui/checkbox';
|
|
5
|
+
export { Switch } from './components/ui/switch';
|
|
6
|
+
export { Skeleton } from './components/ui/skeleton';
|
|
7
|
+
export { Separator } from './components/ui/separator';
|
|
8
|
+
export { QTabs } from './components/ui/q-tabs';
|
|
9
|
+
export { Calendar } from './components/ui/calendar';
|
|
10
|
+
export { DatePicker } from './components/ui/date-picker';
|
|
11
|
+
export { DateRangePicker } from './components/ui/date-range-picker';
|
|
12
|
+
export { RichTextEditor } from './components/ui/rich-text-editor';
|
|
13
|
+
export { SearchSelect } from './components/ui/search-select';
|
|
14
|
+
export { Pagination } from './components/crud/Pagination';
|
|
15
|
+
export { DataTable } from './components/crud/DataTable';
|
|
16
|
+
export { CrudList } from './components/crud/CrudList';
|
|
17
|
+
export { CrudForm } from './components/crud/CrudForm';
|
|
18
|
+
export { CrudDetail } from './components/crud/CrudDetail';
|
|
19
|
+
export { useToast } from './components/toast/useUI';
|
|
20
|
+
export { default as ToastContainer } from './components/toast/ToastContainer';
|
|
21
|
+
export { Button, buttonVariants } from './components/ui/button';
|
|
22
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent } from './components/ui/card';
|
|
23
|
+
export { Badge, badgeVariants } from './components/ui/badge';
|
|
24
|
+
export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton } from './components/ui/select';
|
|
25
|
+
export { Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger, DialogContent, DialogHeader, DialogFooter, DialogTitle, DialogDescription } from './components/ui/dialog';
|
|
26
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent } from './components/ui/tabs';
|
|
27
|
+
export { Avatar, AvatarImage, AvatarFallback } from './components/ui/avatar';
|
|
28
|
+
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider } from './components/ui/tooltip';
|
|
29
|
+
export { Popover, PopoverTrigger, PopoverContent } from './components/ui/popover';
|
|
30
|
+
export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup } from './components/ui/dropdown-menu';
|
|
31
|
+
export { ScrollArea, ScrollBar } from './components/ui/scroll-area';
|
|
32
|
+
export { Alert, AlertTitle, AlertDescription, AlertWithIcon, alertVariants } from './components/ui/alert';
|
|
33
|
+
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel } from './components/ui/alert-dialog';
|
|
34
|
+
export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption } from './components/ui/table';
|
|
35
|
+
export { FormField, QInput, QTextarea, QSelect, QSearchSelect, QSwitch, QCheckbox, QForm, QDatePicker, QDateRangePicker, QRichTextEditor } from './components/ui/form-fields';
|
|
36
|
+
export { Loading, LoadingOverlay, LoadingButton } from './components/crud/Loading';
|
|
37
|
+
export { EmptyState, SearchEmptyState, CreateEmptyState, ErrorState } from './components/crud/EmptyState';
|
|
38
|
+
export { Modal, ConfirmModal, DeleteConfirmModal, FormModal } from './components/crud/Modal';
|
|
39
|
+
export { createCrudStore, createStore } from './store/createCrudStore';
|
|
40
|
+
export { AuthLayout, LoginPage, DashboardLayout, Sidebar, Header, SidebarProvider, useSidebarContext, BreadcrumbProvider, useBreadcrumb, HeaderSlotProvider, useHeaderSlot } from './components/layouts';
|
|
41
|
+
export { cn, formatCurrency, formatDate, formatDateTime, formatRelativeTime, truncate, capitalize, slugify, debounce, generateId, deepClone, isEmpty, getInitials, parseQueryString, buildQueryString, TimeStampFormat } from './lib/utils';
|
|
42
|
+
export { default as BookViewer, EpubViewer, PdfViewer, useBookDimensions } from './components/book-viewer';
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { am as s, ao as o, ar as r, aA as t, aB as l, av as i, az as n, ax as b, aw as d, at as g, as as u, ay as D, au as c, an as p, ap as S, be as T, R as C, V as m, U as w, j as A, bF as M, bl as P, B as h, a1 as v, C as y, i as Q, h as k, e as B, d as F, f as I, l as L, b3 as f, b0 as x, b9 as E, b8 as H, b7 as R, bg as V, b6 as G, a2 as O, a3 as z, b4 as j, D as q, A as U, F as W, K as J, H as K, G as N, z as X, y as Y, J as Z, E as _, a5 as $, a9 as aa, a7 as ea, ae as sa, a8 as oa, ab as ra, af as ta, aj as la, aa as ia, ac as na, ad as ba, ag as da, ah as ga, ai as ua, a6 as Da, a_ as ca, bG as pa, b1 as Sa, aL as Ta, b5 as Ca, bi as ma, bn as wa, I as Aa, L as Ma, aX as Pa, aZ as ha, aY as va, bf as ya, b2 as Qa, aW as ka, bH as Ba, _ as Fa, a0 as Ia, $ as La, aR as fa, aT as xa, aU as Ea, aS as Ha, aM as Ra, aV as Va, aP as Ga, aO as Oa, aQ as za, Q as ja, aN as qa, a4 as Ua, ak as Wa, al as Ja, a$ as Ka, aK as Na, o as Xa, s as Ya, p as Za, u as _a, t as $a, x as ae, w as ee, v as se, r as oe, q as re, n as te, bh as le, bj as ie, m as ne, S as be, aC as de, aE as ge, aJ as ue, aI as De, aF as ce, aG as pe, aD as Se, aH as Te, M as Ce, P as me, N as we, O as Ae, T as Me, bE as Pe, bb as he, W as ve, Y as ye, Z as Qe, X as ke, aq as Be, k as Fe, bD as Ie, b as Le, bv as fe, bp as xe, bc as Ee, bd as He, bx as Re, bz as Ve, bq as Ge, br as Oe, bs as ze, bt as je, by as qe, bB as Ue, bA as We, bC as Je, bw as Ke, bu as Ne, bI as Xe, bm as Ye, bo as Ze, bk as _e, ba as $e } from "./index-
|
|
1
|
+
import { am as s, ao as o, ar as r, aA as t, aB as l, av as i, az as n, ax as b, aw as d, at as g, as as u, ay as D, au as c, an as p, ap as S, be as T, R as C, V as m, U as w, j as A, bF as M, bl as P, B as h, a1 as v, C as y, i as Q, h as k, e as B, d as F, f as I, l as L, b3 as f, b0 as x, b9 as E, b8 as H, b7 as R, bg as V, b6 as G, a2 as O, a3 as z, b4 as j, D as q, A as U, F as W, K as J, H as K, G as N, z as X, y as Y, J as Z, E as _, a5 as $, a9 as aa, a7 as ea, ae as sa, a8 as oa, ab as ra, af as ta, aj as la, aa as ia, ac as na, ad as ba, ag as da, ah as ga, ai as ua, a6 as Da, a_ as ca, bG as pa, b1 as Sa, aL as Ta, b5 as Ca, bi as ma, bn as wa, I as Aa, L as Ma, aX as Pa, aZ as ha, aY as va, bf as ya, b2 as Qa, aW as ka, bH as Ba, _ as Fa, a0 as Ia, $ as La, aR as fa, aT as xa, aU as Ea, aS as Ha, aM as Ra, aV as Va, aP as Ga, aO as Oa, aQ as za, Q as ja, aN as qa, a4 as Ua, ak as Wa, al as Ja, a$ as Ka, aK as Na, o as Xa, s as Ya, p as Za, u as _a, t as $a, x as ae, w as ee, v as se, r as oe, q as re, n as te, bh as le, bj as ie, m as ne, S as be, aC as de, aE as ge, aJ as ue, aI as De, aF as ce, aG as pe, aD as Se, aH as Te, M as Ce, P as me, N as we, O as Ae, T as Me, bE as Pe, bb as he, W as ve, Y as ye, Z as Qe, X as ke, aq as Be, k as Fe, bD as Ie, b as Le, bv as fe, bp as xe, bc as Ee, bd as He, bx as Re, bz as Ve, bq as Ge, br as Oe, bs as ze, bt as je, by as qe, bB as Ue, bA as We, bC as Je, bw as Ke, bu as Ne, bI as Xe, bm as Ye, bo as Ze, bk as _e, ba as $e } from "./index-C27owgN3.js";
|
|
2
2
|
export {
|
|
3
3
|
s as Alert,
|
|
4
4
|
o as AlertDescription,
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Merge Tailwind classes with clsx
|
|
3
|
+
*/
|
|
4
|
+
export function cn(...inputs: any[]): string;
|
|
5
|
+
/**
|
|
6
|
+
* Format currency
|
|
7
|
+
*/
|
|
8
|
+
export function formatCurrency(amount: any, currency?: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* Format date
|
|
11
|
+
*/
|
|
12
|
+
export function formatDate(date: any, options?: {}): string;
|
|
13
|
+
/**
|
|
14
|
+
* Format date time
|
|
15
|
+
*/
|
|
16
|
+
export function formatDateTime(date: any): string;
|
|
17
|
+
export function TimeStampFormat(date: any): string;
|
|
18
|
+
/**
|
|
19
|
+
* Format relative time (e.g., "2 hours ago")
|
|
20
|
+
*/
|
|
21
|
+
export function formatRelativeTime(date: any): string;
|
|
22
|
+
/**
|
|
23
|
+
* Truncate string
|
|
24
|
+
*/
|
|
25
|
+
export function truncate(str: any, length?: number): any;
|
|
26
|
+
/**
|
|
27
|
+
* Capitalize first letter
|
|
28
|
+
*/
|
|
29
|
+
export function capitalize(str: any): any;
|
|
30
|
+
/**
|
|
31
|
+
* Generate slug from string
|
|
32
|
+
*/
|
|
33
|
+
export function slugify(str: any): any;
|
|
34
|
+
/**
|
|
35
|
+
* Debounce function
|
|
36
|
+
*/
|
|
37
|
+
export function debounce(func: any, wait?: number): (...args: any[]) => void;
|
|
38
|
+
/**
|
|
39
|
+
* Deep clone object
|
|
40
|
+
*/
|
|
41
|
+
export function deepClone(obj: any): any;
|
|
42
|
+
/**
|
|
43
|
+
* Check if object is empty
|
|
44
|
+
*/
|
|
45
|
+
export function isEmpty(obj: any): boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Get initials from name
|
|
48
|
+
*/
|
|
49
|
+
export function getInitials(name: any): any;
|
|
50
|
+
/**
|
|
51
|
+
* Generate random ID
|
|
52
|
+
*/
|
|
53
|
+
export function generateId(): string;
|
|
54
|
+
/**
|
|
55
|
+
* Parse query string to object
|
|
56
|
+
*/
|
|
57
|
+
export function parseQueryString(queryString: any): {};
|
|
58
|
+
/**
|
|
59
|
+
* Build query string from object
|
|
60
|
+
*/
|
|
61
|
+
export function buildQueryString(params: any): string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export function createCrudStore(options: {
|
|
2
|
+
name: string;
|
|
3
|
+
apiClient: Object;
|
|
4
|
+
endpoint: string;
|
|
5
|
+
transformResponse: Function;
|
|
6
|
+
transformRequest: Function;
|
|
7
|
+
initialState: Object;
|
|
8
|
+
extraActions: Object;
|
|
9
|
+
}): Function;
|
|
10
|
+
export function createStore(options: any): import('zustand').UseBoundStore<import('zustand').StoreApi<any>>;
|
|
11
|
+
export default createCrudStore;
|