@sikka/hawa 0.2.48-next → 0.3.1-next
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/index.css +81 -0
- package/dist/index.d.mts +87 -2
- package/dist/index.d.ts +87 -2
- package/dist/index.js +613 -161
- package/dist/index.mjs +520 -98
- package/package.json +3 -1
package/dist/index.css
CHANGED
|
@@ -841,6 +841,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
841
841
|
.hawa-h-11 {
|
|
842
842
|
height: 2.75rem;
|
|
843
843
|
}
|
|
844
|
+
.hawa-h-12 {
|
|
845
|
+
height: 3rem;
|
|
846
|
+
}
|
|
844
847
|
.hawa-h-14 {
|
|
845
848
|
height: 3.5rem;
|
|
846
849
|
}
|
|
@@ -889,6 +892,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
889
892
|
.hawa-h-\[1\.2rem\] {
|
|
890
893
|
height: 1.2rem;
|
|
891
894
|
}
|
|
895
|
+
.hawa-h-\[130px\] {
|
|
896
|
+
height: 130px;
|
|
897
|
+
}
|
|
892
898
|
.hawa-h-\[16px\] {
|
|
893
899
|
height: 16px;
|
|
894
900
|
}
|
|
@@ -1116,6 +1122,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1116
1122
|
.hawa-grow {
|
|
1117
1123
|
flex-grow: 1;
|
|
1118
1124
|
}
|
|
1125
|
+
.hawa-caption-bottom {
|
|
1126
|
+
caption-side: bottom;
|
|
1127
|
+
}
|
|
1119
1128
|
.hawa--translate-x-0 {
|
|
1120
1129
|
--tw-translate-x: -0px;
|
|
1121
1130
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
@@ -1410,6 +1419,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1410
1419
|
.hawa-border-dashed {
|
|
1411
1420
|
border-style: dashed;
|
|
1412
1421
|
}
|
|
1422
|
+
.hawa-border-none {
|
|
1423
|
+
border-style: none;
|
|
1424
|
+
}
|
|
1413
1425
|
.hawa-border-black {
|
|
1414
1426
|
--tw-border-opacity: 1;
|
|
1415
1427
|
border-color: rgb(0 0 0 / var(--tw-border-opacity));
|
|
@@ -1525,6 +1537,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1525
1537
|
.hawa-bg-muted\/20 {
|
|
1526
1538
|
background-color: hsl(var(--muted) / 0.2);
|
|
1527
1539
|
}
|
|
1540
|
+
.hawa-bg-muted\/50 {
|
|
1541
|
+
background-color: hsl(var(--muted) / 0.5);
|
|
1542
|
+
}
|
|
1528
1543
|
.hawa-bg-popover {
|
|
1529
1544
|
background-color: hsl(var(--popover));
|
|
1530
1545
|
}
|
|
@@ -1750,6 +1765,9 @@ input[type="number"]::-webkit-inner-spin-button,
|
|
|
1750
1765
|
.hawa-text-start {
|
|
1751
1766
|
text-align: start;
|
|
1752
1767
|
}
|
|
1768
|
+
.hawa-align-middle {
|
|
1769
|
+
vertical-align: middle;
|
|
1770
|
+
}
|
|
1753
1771
|
.hawa-text-2xl {
|
|
1754
1772
|
font-size: 1.5rem;
|
|
1755
1773
|
line-height: 2rem;
|
|
@@ -2236,6 +2254,9 @@ body {
|
|
|
2236
2254
|
--tw-bg-opacity: 1;
|
|
2237
2255
|
background-color: rgb(134 239 172 / var(--tw-bg-opacity));
|
|
2238
2256
|
}
|
|
2257
|
+
.hover\:hawa-bg-muted:hover {
|
|
2258
|
+
background-color: hsl(var(--muted));
|
|
2259
|
+
}
|
|
2239
2260
|
.hover\:hawa-bg-muted-foreground\/20:hover {
|
|
2240
2261
|
background-color: hsl(var(--muted-foreground) / 0.2);
|
|
2241
2262
|
}
|
|
@@ -2527,6 +2548,32 @@ body {
|
|
|
2527
2548
|
--tw-translate-x: var(--radix-toast-swipe-move-x);
|
|
2528
2549
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
2529
2550
|
}
|
|
2551
|
+
@keyframes hawa-accordion-up {
|
|
2552
|
+
|
|
2553
|
+
from {
|
|
2554
|
+
height: var(--radix-accordion-content-height);
|
|
2555
|
+
}
|
|
2556
|
+
|
|
2557
|
+
to {
|
|
2558
|
+
height: 0;
|
|
2559
|
+
}
|
|
2560
|
+
}
|
|
2561
|
+
.data-\[state\=closed\]\:hawa-animate-accordion-up[data-state=closed] {
|
|
2562
|
+
animation: hawa-accordion-up 0.2s ease-out;
|
|
2563
|
+
}
|
|
2564
|
+
@keyframes hawa-accordion-down {
|
|
2565
|
+
|
|
2566
|
+
from {
|
|
2567
|
+
height: 0;
|
|
2568
|
+
}
|
|
2569
|
+
|
|
2570
|
+
to {
|
|
2571
|
+
height: var(--radix-accordion-content-height);
|
|
2572
|
+
}
|
|
2573
|
+
}
|
|
2574
|
+
.data-\[state\=open\]\:hawa-animate-accordion-down[data-state=open] {
|
|
2575
|
+
animation: hawa-accordion-down 0.2s ease-out;
|
|
2576
|
+
}
|
|
2530
2577
|
.data-\[state\=active\]\:hawa-bg-primary[data-state=active] {
|
|
2531
2578
|
background-color: hsl(var(--primary));
|
|
2532
2579
|
}
|
|
@@ -2539,6 +2586,9 @@ body {
|
|
|
2539
2586
|
.data-\[state\=open\]\:hawa-bg-accent[data-state=open] {
|
|
2540
2587
|
background-color: hsl(var(--accent));
|
|
2541
2588
|
}
|
|
2589
|
+
.data-\[state\=selected\]\:hawa-bg-muted[data-state=selected] {
|
|
2590
|
+
background-color: hsl(var(--muted));
|
|
2591
|
+
}
|
|
2542
2592
|
.data-\[state\=active\]\:hawa-text-primary-foreground[data-state=active] {
|
|
2543
2593
|
color: hsl(var(--primary-foreground));
|
|
2544
2594
|
}
|
|
@@ -2852,6 +2902,34 @@ body {
|
|
|
2852
2902
|
.md\:hawa-max-w-\[420px\] {
|
|
2853
2903
|
max-width: 420px;
|
|
2854
2904
|
}
|
|
2905
|
+
|
|
2906
|
+
.md\:hawa-max-w-sm {
|
|
2907
|
+
max-width: 24rem;
|
|
2908
|
+
}
|
|
2909
|
+
}
|
|
2910
|
+
.\[\&\:has\(\[role\=checkbox\]\)\]\:hawa-pr-0:has([role=checkbox]) {
|
|
2911
|
+
padding-right: 0px;
|
|
2912
|
+
}
|
|
2913
|
+
.\[\&\:not\(\:last-child\)\&\:not\(\:first-child\)\]\:hawa-border-x:not(:last-child).\[\&\:not\(\:last-child\)\&\:not\(\:first-child\)\]\:hawa-border-x:not(:first-child) {
|
|
2914
|
+
border-left-width: 1px;
|
|
2915
|
+
border-right-width: 1px;
|
|
2916
|
+
}
|
|
2917
|
+
.\[\&\:not\(\:last-child\)\&\:not\(\:first-child\)\]\:hawa-border-y:not(:last-child).\[\&\:not\(\:last-child\)\&\:not\(\:first-child\)\]\:hawa-border-y:not(:first-child) {
|
|
2918
|
+
border-top-width: 1px;
|
|
2919
|
+
border-bottom-width: 1px;
|
|
2920
|
+
}
|
|
2921
|
+
.\[\&\:not\(\:last-child\)\&\:not\(\:first-child\)\]\:hawa-p-1:not(:last-child).\[\&\:not\(\:last-child\)\&\:not\(\:first-child\)\]\:hawa-p-1:not(:first-child) {
|
|
2922
|
+
padding: 0.25rem;
|
|
2923
|
+
}
|
|
2924
|
+
.\[\&\:not\(\:last-child\)\]\:hawa-border-b:not(:last-child) {
|
|
2925
|
+
border-bottom-width: 1px;
|
|
2926
|
+
}
|
|
2927
|
+
.\[\&\:not\(\:last-child\)\]\:hawa-border-r:not(:last-child) {
|
|
2928
|
+
border-right-width: 1px;
|
|
2929
|
+
}
|
|
2930
|
+
.\[\&\[data-state\=open\]\>svg\]\:hawa-rotate-180[data-state=open]>svg {
|
|
2931
|
+
--tw-rotate: 180deg;
|
|
2932
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
2855
2933
|
}
|
|
2856
2934
|
.\[\&_\[cmdk-group-heading\]\]\:hawa-px-2 [cmdk-group-heading] {
|
|
2857
2935
|
padding-left: 0.5rem;
|
|
@@ -2901,3 +2979,6 @@ body {
|
|
|
2901
2979
|
.\[\&_\[cmdk-item\]_svg\]\:hawa-w-5 [cmdk-item] svg {
|
|
2902
2980
|
width: 1.25rem;
|
|
2903
2981
|
}
|
|
2982
|
+
.\[\&_tr\]\:hawa-border-b tr {
|
|
2983
|
+
border-bottom-width: 1px;
|
|
2984
|
+
}
|
package/dist/index.d.mts
CHANGED
|
@@ -11,6 +11,8 @@ import * as LabelPrimitive from '@radix-ui/react-label';
|
|
|
11
11
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
12
12
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
13
13
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
14
|
+
import { RowData, ColumnDef } from '@tanstack/react-table';
|
|
15
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
14
16
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
15
17
|
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
16
18
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
@@ -162,7 +164,7 @@ type RadioOptionsTypes = {
|
|
|
162
164
|
type RadioTypes = {
|
|
163
165
|
orientation?: "vertical" | "horizontal";
|
|
164
166
|
design?: "default" | "tabs" | "cards" | "bordered";
|
|
165
|
-
options
|
|
167
|
+
options: RadioOptionsTypes[];
|
|
166
168
|
width?: "default" | "full";
|
|
167
169
|
onChangeTab?: any;
|
|
168
170
|
defaultValue?: any;
|
|
@@ -360,6 +362,89 @@ type StoreButtonsTypes = {
|
|
|
360
362
|
};
|
|
361
363
|
declare const AppStores: FC<StoreButtonsTypes>;
|
|
362
364
|
|
|
365
|
+
type SortButtonProps = {
|
|
366
|
+
onSort: () => void;
|
|
367
|
+
label: string;
|
|
368
|
+
condensed?: boolean;
|
|
369
|
+
};
|
|
370
|
+
declare const SortButton: React__default.FC<SortButtonProps>;
|
|
371
|
+
|
|
372
|
+
type DataProps$1 = {};
|
|
373
|
+
type DataTableProps = {
|
|
374
|
+
direction?: "rtl" | "ltr";
|
|
375
|
+
columns: ColumnDef<DataProps$1>[];
|
|
376
|
+
data: DataProps$1[];
|
|
377
|
+
condensed?: boolean;
|
|
378
|
+
isLoading?: boolean;
|
|
379
|
+
defaultSort?: string;
|
|
380
|
+
texts?: {
|
|
381
|
+
searchPlaceholder?: string;
|
|
382
|
+
noData?: any;
|
|
383
|
+
page?: string;
|
|
384
|
+
filter?: string;
|
|
385
|
+
of?: string;
|
|
386
|
+
total?: string;
|
|
387
|
+
};
|
|
388
|
+
};
|
|
389
|
+
declare module "@tanstack/table-core" {
|
|
390
|
+
interface ColumnMeta<TData extends RowData, TValue> {
|
|
391
|
+
sortable: any;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
declare const DataTable: React.FC<DataTableProps>;
|
|
395
|
+
|
|
396
|
+
type DataProps = {};
|
|
397
|
+
type SimpleTableProps = {
|
|
398
|
+
direction?: "rtl" | "ltr";
|
|
399
|
+
columns: ColumnDef<DataProps>[];
|
|
400
|
+
data: DataProps[];
|
|
401
|
+
condensed?: boolean;
|
|
402
|
+
isLoading?: boolean;
|
|
403
|
+
defaultSort?: string;
|
|
404
|
+
texts?: {
|
|
405
|
+
searchPlaceholder?: string;
|
|
406
|
+
noData?: any;
|
|
407
|
+
page?: string;
|
|
408
|
+
filter?: string;
|
|
409
|
+
of?: string;
|
|
410
|
+
total?: string;
|
|
411
|
+
};
|
|
412
|
+
};
|
|
413
|
+
declare module "@tanstack/table-core" {
|
|
414
|
+
interface ColumnMeta<TData extends RowData, TValue> {
|
|
415
|
+
sortable: any;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
declare const SimpleTable: React.FC<SimpleTableProps>;
|
|
419
|
+
|
|
420
|
+
declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>>;
|
|
421
|
+
declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
422
|
+
interface TableHeadProps extends React.ThHTMLAttributes<HTMLTableCellElement> {
|
|
423
|
+
clickable?: boolean;
|
|
424
|
+
condensed?: boolean;
|
|
425
|
+
}
|
|
426
|
+
declare const TableHead: React.ForwardRefExoticComponent<TableHeadProps & React.RefAttributes<HTMLTableCellElement>>;
|
|
427
|
+
declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
428
|
+
declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
429
|
+
declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
|
|
430
|
+
interface TableCellProps extends React.TdHTMLAttributes<HTMLTableCellElement> {
|
|
431
|
+
condensed?: boolean;
|
|
432
|
+
}
|
|
433
|
+
declare const TableCell: React.ForwardRefExoticComponent<TableCellProps & React.RefAttributes<HTMLTableCellElement>>;
|
|
434
|
+
declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
|
|
435
|
+
|
|
436
|
+
type AccordionProps = {
|
|
437
|
+
items: AccordionItem[];
|
|
438
|
+
} & React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>;
|
|
439
|
+
declare const Accordion: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<HTMLDivElement>>;
|
|
440
|
+
type AccordionItem = {
|
|
441
|
+
trigger: string;
|
|
442
|
+
content: string;
|
|
443
|
+
};
|
|
444
|
+
declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
445
|
+
declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
446
|
+
declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
447
|
+
|
|
363
448
|
declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
364
449
|
|
|
365
450
|
declare const Progress: React.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -545,4 +630,4 @@ type TypographyTypes = {
|
|
|
545
630
|
};
|
|
546
631
|
declare const InterfaceSettings: FC<TypographyTypes>;
|
|
547
632
|
|
|
548
|
-
export { ActionCard, Alert, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Chip, CodeBlock, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, FileDropzone, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Input, InterfaceSettings, Label, Loading, Logos, MenuItemType, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, Progress, Radio, RadioOptionsTypes, ScrollArea, ScrollBar, Select, Separator, Skeleton, Slider, SubItem, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, TextareaProps, Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, buttonVariants, useFormField };
|
|
633
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionCard, Alert, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Chip, CodeBlock, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DataTable, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, FileDropzone, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Input, InterfaceSettings, Label, Loading, Logos, MenuItemType, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, Progress, Radio, RadioOptionsTypes, ScrollArea, ScrollBar, Select, Separator, SimpleTable, Skeleton, Slider, SortButton, SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, TextareaProps, Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, buttonVariants, useFormField };
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ import * as LabelPrimitive from '@radix-ui/react-label';
|
|
|
11
11
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
12
12
|
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
13
13
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
14
|
+
import { RowData, ColumnDef } from '@tanstack/react-table';
|
|
15
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
14
16
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
15
17
|
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
16
18
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
@@ -162,7 +164,7 @@ type RadioOptionsTypes = {
|
|
|
162
164
|
type RadioTypes = {
|
|
163
165
|
orientation?: "vertical" | "horizontal";
|
|
164
166
|
design?: "default" | "tabs" | "cards" | "bordered";
|
|
165
|
-
options
|
|
167
|
+
options: RadioOptionsTypes[];
|
|
166
168
|
width?: "default" | "full";
|
|
167
169
|
onChangeTab?: any;
|
|
168
170
|
defaultValue?: any;
|
|
@@ -360,6 +362,89 @@ type StoreButtonsTypes = {
|
|
|
360
362
|
};
|
|
361
363
|
declare const AppStores: FC<StoreButtonsTypes>;
|
|
362
364
|
|
|
365
|
+
type SortButtonProps = {
|
|
366
|
+
onSort: () => void;
|
|
367
|
+
label: string;
|
|
368
|
+
condensed?: boolean;
|
|
369
|
+
};
|
|
370
|
+
declare const SortButton: React__default.FC<SortButtonProps>;
|
|
371
|
+
|
|
372
|
+
type DataProps$1 = {};
|
|
373
|
+
type DataTableProps = {
|
|
374
|
+
direction?: "rtl" | "ltr";
|
|
375
|
+
columns: ColumnDef<DataProps$1>[];
|
|
376
|
+
data: DataProps$1[];
|
|
377
|
+
condensed?: boolean;
|
|
378
|
+
isLoading?: boolean;
|
|
379
|
+
defaultSort?: string;
|
|
380
|
+
texts?: {
|
|
381
|
+
searchPlaceholder?: string;
|
|
382
|
+
noData?: any;
|
|
383
|
+
page?: string;
|
|
384
|
+
filter?: string;
|
|
385
|
+
of?: string;
|
|
386
|
+
total?: string;
|
|
387
|
+
};
|
|
388
|
+
};
|
|
389
|
+
declare module "@tanstack/table-core" {
|
|
390
|
+
interface ColumnMeta<TData extends RowData, TValue> {
|
|
391
|
+
sortable: any;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
declare const DataTable: React.FC<DataTableProps>;
|
|
395
|
+
|
|
396
|
+
type DataProps = {};
|
|
397
|
+
type SimpleTableProps = {
|
|
398
|
+
direction?: "rtl" | "ltr";
|
|
399
|
+
columns: ColumnDef<DataProps>[];
|
|
400
|
+
data: DataProps[];
|
|
401
|
+
condensed?: boolean;
|
|
402
|
+
isLoading?: boolean;
|
|
403
|
+
defaultSort?: string;
|
|
404
|
+
texts?: {
|
|
405
|
+
searchPlaceholder?: string;
|
|
406
|
+
noData?: any;
|
|
407
|
+
page?: string;
|
|
408
|
+
filter?: string;
|
|
409
|
+
of?: string;
|
|
410
|
+
total?: string;
|
|
411
|
+
};
|
|
412
|
+
};
|
|
413
|
+
declare module "@tanstack/table-core" {
|
|
414
|
+
interface ColumnMeta<TData extends RowData, TValue> {
|
|
415
|
+
sortable: any;
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
declare const SimpleTable: React.FC<SimpleTableProps>;
|
|
419
|
+
|
|
420
|
+
declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>>;
|
|
421
|
+
declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
422
|
+
interface TableHeadProps extends React.ThHTMLAttributes<HTMLTableCellElement> {
|
|
423
|
+
clickable?: boolean;
|
|
424
|
+
condensed?: boolean;
|
|
425
|
+
}
|
|
426
|
+
declare const TableHead: React.ForwardRefExoticComponent<TableHeadProps & React.RefAttributes<HTMLTableCellElement>>;
|
|
427
|
+
declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
428
|
+
declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
429
|
+
declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
|
|
430
|
+
interface TableCellProps extends React.TdHTMLAttributes<HTMLTableCellElement> {
|
|
431
|
+
condensed?: boolean;
|
|
432
|
+
}
|
|
433
|
+
declare const TableCell: React.ForwardRefExoticComponent<TableCellProps & React.RefAttributes<HTMLTableCellElement>>;
|
|
434
|
+
declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
|
|
435
|
+
|
|
436
|
+
type AccordionProps = {
|
|
437
|
+
items: AccordionItem[];
|
|
438
|
+
} & React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>;
|
|
439
|
+
declare const Accordion: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<HTMLDivElement>>;
|
|
440
|
+
type AccordionItem = {
|
|
441
|
+
trigger: string;
|
|
442
|
+
content: string;
|
|
443
|
+
};
|
|
444
|
+
declare const AccordionItem: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
445
|
+
declare const AccordionTrigger: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
446
|
+
declare const AccordionContent: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
447
|
+
|
|
363
448
|
declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
364
449
|
|
|
365
450
|
declare const Progress: React.ForwardRefExoticComponent<Omit<ProgressPrimitive.ProgressProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -545,4 +630,4 @@ type TypographyTypes = {
|
|
|
545
630
|
};
|
|
546
631
|
declare const InterfaceSettings: FC<TypographyTypes>;
|
|
547
632
|
|
|
548
|
-
export { ActionCard, Alert, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Chip, CodeBlock, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, FileDropzone, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Input, InterfaceSettings, Label, Loading, Logos, MenuItemType, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, Progress, Radio, RadioOptionsTypes, ScrollArea, ScrollBar, Select, Separator, Skeleton, Slider, SubItem, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, TextareaProps, Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, buttonVariants, useFormField };
|
|
633
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionCard, Alert, AppStores, BackToTop, Breadcrumb, Button, ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Chip, CodeBlock, ColorPicker, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DataTable, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DropdownMenu, FileDropzone, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Input, InterfaceSettings, Label, Loading, Logos, MenuItemType, PhoneInput, PinInput, Popover, PopoverContent, PopoverTrigger, Progress, Radio, RadioOptionsTypes, ScrollArea, ScrollBar, Select, Separator, SimpleTable, Skeleton, Slider, SortButton, SubItem, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, TextareaProps, Toast, ToastAction, ToastActionElement, ToastClose, ToastDescription, ToastProps, ToastProvider, ToastTitle, ToastViewport, Toaster, Tooltip, buttonVariants, useFormField };
|