@zimyo/ui 1.8.0 → 1.9.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/BulkActionsBar/index.d.ts +23 -0
- package/dist/BulkActionsBar/index.esm.js +26 -0
- package/dist/Card/index.d.ts +29 -1
- package/dist/Card/index.esm.js +1 -1
- package/dist/Table/index.d.ts +79 -0
- package/dist/Table/index.esm.js +27 -0
- package/dist/Tabs/index.d.ts +15 -27
- package/dist/Tabs/index.esm.js +1 -1
- package/dist/index.d.ts +143 -3
- package/dist/index.esm.js +5 -5
- package/package.json +14 -23
- package/dist/Accordion/index.js +0 -27
- package/dist/AppList/index.js +0 -26
- package/dist/Badge/index.js +0 -1
- package/dist/Button/index.js +0 -1
- package/dist/Card/index.js +0 -1
- package/dist/Checkbox/index.js +0 -27
- package/dist/CheckboxGroup/index.js +0 -26
- package/dist/DatePicker/index.js +0 -26
- package/dist/DateRangePicker/index.js +0 -26
- package/dist/Form/index.js +0 -26
- package/dist/GlobalMenuSearch/index.js +0 -27
- package/dist/Input/index.js +0 -27
- package/dist/Modal/index.js +0 -27
- package/dist/Notice/index.js +0 -26
- package/dist/Popover/index.js +0 -1
- package/dist/PopupConfirm/index.js +0 -27
- package/dist/Radio/index.js +0 -1
- package/dist/RadioGroup/index.js +0 -1
- package/dist/Select/index.js +0 -27
- package/dist/Switch/index.js +0 -1
- package/dist/Tabs/index.js +0 -1
- package/dist/Typography/index.js +0 -1
- package/dist/index.js +0 -27
- package/dist/theme/index.js +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
2
|
import React__default, { ElementType } from 'react';
|
|
3
|
-
import { ButtonProps as ButtonProps$1, AccordionProps as AccordionProps$1, AccordionSummaryProps, AccordionDetailsProps, SwitchProps as SwitchProps$1, TypographyProps, SxProps as SxProps$1 } from '@mui/material';
|
|
3
|
+
import { ButtonProps as ButtonProps$1, PopoverProps as PopoverProps$1, CardProps, AccordionProps as AccordionProps$1, AccordionSummaryProps, AccordionDetailsProps, SwitchProps as SwitchProps$1, TypographyProps, SxProps as SxProps$1 } from '@mui/material';
|
|
4
4
|
import { SxProps } from '@mui/system';
|
|
5
5
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
6
6
|
import { Props, GroupBase } from 'react-select';
|
|
@@ -19,6 +19,52 @@ interface ButtonProps extends Omit<ButtonProps$1, 'sx'> {
|
|
|
19
19
|
}
|
|
20
20
|
declare const Button: React__default.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React__default.RefAttributes<HTMLButtonElement>>;
|
|
21
21
|
|
|
22
|
+
interface PopoverProps extends Partial<PopoverProps$1> {
|
|
23
|
+
open: boolean;
|
|
24
|
+
onClose: () => void;
|
|
25
|
+
anchorEl: HTMLElement | null;
|
|
26
|
+
children: React__default.ReactNode;
|
|
27
|
+
width?: number | string;
|
|
28
|
+
maxWidth?: number | string;
|
|
29
|
+
minWidth?: number | string;
|
|
30
|
+
padding?: number;
|
|
31
|
+
border?: boolean;
|
|
32
|
+
}
|
|
33
|
+
declare const Popover: ({ open, onClose, anchorEl, children, width, maxWidth, minWidth, padding, border, anchorOrigin, transformOrigin, ...rest }: PopoverProps) => react_jsx_runtime.JSX.Element;
|
|
34
|
+
|
|
35
|
+
interface CardRootProps extends CardProps {
|
|
36
|
+
sx?: SxProps;
|
|
37
|
+
variant?: 'elevated' | 'outlined' | 'bordered';
|
|
38
|
+
children: React__default.ReactNode;
|
|
39
|
+
}
|
|
40
|
+
declare const CardRoot: React__default.FC<CardRootProps>;
|
|
41
|
+
|
|
42
|
+
declare const CardHeader: ({ title, subtitle, action, }: {
|
|
43
|
+
title?: string | React__default.ReactNode;
|
|
44
|
+
subtitle?: string | React__default.ReactNode;
|
|
45
|
+
action?: React__default.ReactNode;
|
|
46
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
47
|
+
|
|
48
|
+
declare const CardContent: ({ children, sx }: {
|
|
49
|
+
children: React__default.ReactNode;
|
|
50
|
+
sx?: any;
|
|
51
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
52
|
+
|
|
53
|
+
declare const CardActions: ({ children, sx }: {
|
|
54
|
+
children: React__default.ReactNode;
|
|
55
|
+
sx?: any;
|
|
56
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
57
|
+
|
|
58
|
+
declare const CardImage: ({ src, height, alt }: {
|
|
59
|
+
src: string;
|
|
60
|
+
height?: number | string;
|
|
61
|
+
alt?: string;
|
|
62
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
63
|
+
|
|
64
|
+
declare const CardSkeleton: ({ lines }: {
|
|
65
|
+
lines?: number;
|
|
66
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
67
|
+
|
|
22
68
|
interface Option {
|
|
23
69
|
label?: string;
|
|
24
70
|
value?: string | number;
|
|
@@ -430,6 +476,100 @@ interface AppListProps {
|
|
|
430
476
|
}
|
|
431
477
|
declare const AppList: React__default.FC<AppListProps>;
|
|
432
478
|
|
|
479
|
+
interface Column {
|
|
480
|
+
id: string;
|
|
481
|
+
header: string;
|
|
482
|
+
accessor: string;
|
|
483
|
+
width?: number;
|
|
484
|
+
minWidth?: number;
|
|
485
|
+
maxWidth?: number;
|
|
486
|
+
sticky?: 'left' | 'right';
|
|
487
|
+
sortable?: boolean;
|
|
488
|
+
filterable?: boolean;
|
|
489
|
+
hidden?: boolean;
|
|
490
|
+
align?: 'left' | 'center' | 'right';
|
|
491
|
+
render?: (value: any, row: any, index: number) => React__default.ReactNode;
|
|
492
|
+
}
|
|
493
|
+
interface TableData {
|
|
494
|
+
id: string;
|
|
495
|
+
[key: string]: any;
|
|
496
|
+
_expanded?: boolean;
|
|
497
|
+
_selected?: boolean;
|
|
498
|
+
_children?: TableData[];
|
|
499
|
+
}
|
|
500
|
+
interface StickyConfig {
|
|
501
|
+
left?: string[];
|
|
502
|
+
right?: string[];
|
|
503
|
+
}
|
|
504
|
+
interface BulkAction$1 {
|
|
505
|
+
label: string;
|
|
506
|
+
icon?: React__default.ReactNode;
|
|
507
|
+
onClick: (selectedIds: string[]) => void;
|
|
508
|
+
variant?: 'primary' | 'secondary' | 'danger';
|
|
509
|
+
disabled?: boolean;
|
|
510
|
+
}
|
|
511
|
+
interface TableProps {
|
|
512
|
+
columns: Column[];
|
|
513
|
+
data: TableData[];
|
|
514
|
+
loading?: boolean;
|
|
515
|
+
pagination?: {
|
|
516
|
+
page: number;
|
|
517
|
+
pageSize: number;
|
|
518
|
+
total: number;
|
|
519
|
+
onPageChange: (page: number) => void;
|
|
520
|
+
onPageSizeChange: (size: number) => void;
|
|
521
|
+
};
|
|
522
|
+
selection?: {
|
|
523
|
+
enabled: boolean;
|
|
524
|
+
selectedRows: string[];
|
|
525
|
+
onSelectionChange: (selectedIds: string[]) => void;
|
|
526
|
+
};
|
|
527
|
+
sorting?: {
|
|
528
|
+
sortBy: string;
|
|
529
|
+
sortOrder: 'asc' | 'desc';
|
|
530
|
+
onSortChange: (sortBy: string, order: 'asc' | 'desc') => void;
|
|
531
|
+
};
|
|
532
|
+
filtering?: {
|
|
533
|
+
filters: Record<string, any>;
|
|
534
|
+
onFilterChange: (filters: Record<string, any>) => void;
|
|
535
|
+
};
|
|
536
|
+
expansion?: {
|
|
537
|
+
expandedRows: string[];
|
|
538
|
+
onExpansionChange: (expandedIds: string[]) => void;
|
|
539
|
+
renderExpandedRow: (row: TableData) => React__default.ReactNode;
|
|
540
|
+
};
|
|
541
|
+
virtualization?: {
|
|
542
|
+
enabled: boolean;
|
|
543
|
+
rowHeight?: number;
|
|
544
|
+
overscan?: number;
|
|
545
|
+
};
|
|
546
|
+
onRowClick?: (row: TableData) => void;
|
|
547
|
+
className?: string;
|
|
548
|
+
stickyColumns?: StickyConfig;
|
|
549
|
+
bulkActions?: BulkAction$1[];
|
|
550
|
+
isRowSelectable?: (row: TableData) => boolean;
|
|
551
|
+
}
|
|
552
|
+
declare const Table: React__default.FC<TableProps>;
|
|
553
|
+
|
|
554
|
+
interface BulkAction {
|
|
555
|
+
id: string;
|
|
556
|
+
label: string;
|
|
557
|
+
icon?: React__default.ReactNode;
|
|
558
|
+
onClick: (selectedIds: string[]) => void;
|
|
559
|
+
disabled?: boolean;
|
|
560
|
+
variant?: 'primary' | 'danger' | 'default';
|
|
561
|
+
type?: 'button' | 'dropdown';
|
|
562
|
+
onOpen?: () => void;
|
|
563
|
+
}
|
|
564
|
+
interface BulkActionsBarProps {
|
|
565
|
+
selectedRows: string[];
|
|
566
|
+
totalRows: number;
|
|
567
|
+
bulkActions: BulkAction[];
|
|
568
|
+
clearSelection: () => void;
|
|
569
|
+
maxVisibleActions?: number;
|
|
570
|
+
}
|
|
571
|
+
declare const BulkActionsBar: React__default.FC<BulkActionsBarProps>;
|
|
572
|
+
|
|
433
573
|
interface UILibraryThemeProviderProps {
|
|
434
574
|
children: React__default.ReactNode;
|
|
435
575
|
primaryColor?: string;
|
|
@@ -524,5 +664,5 @@ declare const designTokens: {
|
|
|
524
664
|
declare function cn(...inputs: ClassValue[]): string;
|
|
525
665
|
declare function useStableId(prefix?: string): string;
|
|
526
666
|
|
|
527
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AppList, Badge, Blockquote, Button, Caption, Checkbox, CheckboxGroup, Code, DatePicker, DateRangePicker, Drawer, Form, GlobalMenuSearch, Heading, Input, Lead, Modal, Muted, Notice, PopupConfirm, RadioGroup, Select, Strong, Switch, Text, UILibraryThemeProvider, cn, createCustomTheme, designTokens, theme, useStableId };
|
|
528
|
-
export type { AccordionContentProps, AccordionItemProps, AccordionProps, AccordionTriggerProps, AppListProps, BadgeProps, ButtonProps, CheckboxGroupProps, CheckboxProps, DatePickerProps, DateRangePickerProps, DrawerProps, FormProps, GlobalMenuSearchComponentProps, InputProps, ModalProps, NoticeProps, PopupConfirmProps, RadioGroupProps, RadioOption, RadioProps, SelectProps, SwitchProps, ThemeConfig, UILibraryThemeProviderProps };
|
|
667
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AppList, Badge, Blockquote, BulkActionsBar, Button, Caption, CardActions, CardContent, CardHeader, CardImage, CardRoot, CardSkeleton, Checkbox, CheckboxGroup, Code, DatePicker, DateRangePicker, Drawer, Form, GlobalMenuSearch, Heading, Input, Lead, Modal, Muted, Notice, Popover, PopupConfirm, RadioGroup, Select, Strong, Switch, Table, Text, UILibraryThemeProvider, cn, createCustomTheme, designTokens, theme, useStableId };
|
|
668
|
+
export type { AccordionContentProps, AccordionItemProps, AccordionProps, AccordionTriggerProps, AppListProps, BadgeProps, BulkActionsBarProps, ButtonProps, CardRootProps, CheckboxGroupProps, CheckboxProps, DatePickerProps, DateRangePickerProps, DrawerProps, FormProps, GlobalMenuSearchComponentProps, InputProps, ModalProps, NoticeProps, PopoverProps, PopupConfirmProps, RadioGroupProps, RadioOption, RadioProps, SelectProps, SwitchProps, TableProps, ThemeConfig, UILibraryThemeProviderProps };
|