@murabei-data-science/pumpwood-ui 1.3.0 → 1.3.3
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 +2 -2
- package/dist/components.d.ts +31 -2
- package/dist/components.esm.js +3 -3
- package/dist/components.js +1 -1
- package/dist/design-system.d.ts +3 -37
- package/dist/design-system.esm.js +5 -5
- package/dist/design-system.js +5 -5
- package/dist/index.css +1 -1
- package/dist/types/components/DownloadButton/index.d.ts +1 -1
- package/dist/types/components/index.d.ts +1 -1
- package/dist/types/design-system/index.d.ts +0 -1
- package/dist/types/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/index.d.ts +0 -1599
- package/dist/index.esm.js +0 -39
- package/dist/index.js +0 -40
- package/dist/types/components/M2MTable/index.d.ts +0 -35
- package/dist/types/design-system/M2MTable/index.d.ts +0 -35
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ The library is split into two entry points:
|
|
|
8
8
|
- **`pumpwood-ui-components/components`** — primitives and reusable UI
|
|
9
9
|
blocks (Button, Table, Select, Dialog, etc.)
|
|
10
10
|
- **`pumpwood-ui-components/design-system`** — product patterns
|
|
11
|
-
(Auth, AutoFormContent, DetailPage,
|
|
11
|
+
(Auth, AutoFormContent, DetailPage, Filters, etc.)
|
|
12
12
|
|
|
13
13
|
## Installation
|
|
14
14
|
|
|
@@ -69,7 +69,7 @@ function MyComponent() {
|
|
|
69
69
|
Patterns under `design-system` may require additional peers depending on
|
|
70
70
|
what you import:
|
|
71
71
|
|
|
72
|
-
- `swr` —
|
|
72
|
+
- `swr` — Filters with FKSelect
|
|
73
73
|
- `react-hook-form` — forms integrated with AutoFormContent consumers
|
|
74
74
|
|
|
75
75
|
### Customized Prefix
|
package/dist/components.d.ts
CHANGED
|
@@ -814,6 +814,35 @@ interface ITableProps<T> {
|
|
|
814
814
|
/** Extra classes for the scroll wrapper. */
|
|
815
815
|
className?: string;
|
|
816
816
|
}
|
|
817
|
+
/**
|
|
818
|
+
* A comprehensive Table component system.
|
|
819
|
+
*
|
|
820
|
+
* @example
|
|
821
|
+
* ```tsx
|
|
822
|
+
* <PumpwoodTable.Root>
|
|
823
|
+
* <PumpwoodTable.Header>
|
|
824
|
+
* <PumpwoodTable.Row>
|
|
825
|
+
* <PumpwoodTable.Head>ID</PumpwoodTable.Head>
|
|
826
|
+
* <PumpwoodTable.Head>Name</PumpwoodTable.Head>
|
|
827
|
+
* </PumpwoodTable.Row>
|
|
828
|
+
* </PumpwoodTable.Header>
|
|
829
|
+
* <PumpwoodTable.Body>
|
|
830
|
+
* <PumpwoodTable.Row>
|
|
831
|
+
* <PumpwoodTable.Cell>1</PumpwoodTable.Cell>
|
|
832
|
+
* <PumpwoodTable.Cell>John Doe</PumpwoodTable.Cell>
|
|
833
|
+
* </PumpwoodTable.Row>
|
|
834
|
+
* </PumpwoodTable.Body>
|
|
835
|
+
* </PumpwoodTable.Root>
|
|
836
|
+
* ```
|
|
837
|
+
*/
|
|
838
|
+
declare const PumpwoodTable: {
|
|
839
|
+
Root: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableElement> & React$1.RefAttributes<HTMLTableElement>>;
|
|
840
|
+
Body: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
841
|
+
Cell: React$1.ForwardRefExoticComponent<React$1.TdHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
842
|
+
Head: React$1.ForwardRefExoticComponent<React$1.ThHTMLAttributes<HTMLTableCellElement> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
843
|
+
Header: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableSectionElement> & React$1.RefAttributes<HTMLTableSectionElement>>;
|
|
844
|
+
Row: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTableRowElement> & React$1.RefAttributes<HTMLTableRowElement>>;
|
|
845
|
+
};
|
|
817
846
|
/**
|
|
818
847
|
* Generic data table with loading, empty, sort, and load-more states.
|
|
819
848
|
*
|
|
@@ -1166,7 +1195,7 @@ interface IDownloadButtonProps<T extends ExpectedFile> {
|
|
|
1166
1195
|
item: T;
|
|
1167
1196
|
propertyName: keyof T;
|
|
1168
1197
|
modelClass: string;
|
|
1169
|
-
retrieveFile
|
|
1198
|
+
retrieveFile?: RetrieveFileFn;
|
|
1170
1199
|
}
|
|
1171
1200
|
declare const DownloadButton: <T extends ExpectedFile>({ item, modelClass, propertyName, retrieveFile, }: IDownloadButtonProps<T>) => react_jsx_runtime.JSX.Element;
|
|
1172
1201
|
|
|
@@ -1223,5 +1252,5 @@ declare const SelectLabel: React$1.ForwardRefExoticComponent<Omit<SelectPrimitiv
|
|
|
1223
1252
|
declare const SelectItem: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1224
1253
|
declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
1225
1254
|
|
|
1226
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AlertWithIcon, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, ClearButton, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ConfirmationDialog, DatePicker, DeleteDialog, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DownloadButton, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, PumpwoodDropzone as Dropzone, Empty, EmptyContainer, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, ErrorBoundary, ErrorMessage, ErrorToastContent, FKSelect, FileDropzone, Input, Label, Loading, MarkdownEditor, MultiSelectDropdown, NoResult, Pagination, Popover, PopoverContent, PopoverTrigger, PumpwoodBadge, PumpwoodCard, Radio, Select$1 as Select, SelectContent, SelectGroup, SelectItem, SelectLabel, Select as SelectPrimitive, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Sidebar, Skeleton, Spinner, Stack, Table$1 as Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, Table as TablePrimitive, TableRow, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, TagInput, Textarea, Tooltip, TooltipComponent, TooltipContent, TooltipProvider, TooltipTrigger, Typography, badgeVariants, createFKSelectFetcher, fkSelectFetcher, pumpwoodBadgeVariants, useSidebarCollapse };
|
|
1255
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AlertWithIcon, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, ClearButton, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ConfirmationDialog, DatePicker, DeleteDialog, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, DownloadButton, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, PumpwoodDropzone as Dropzone, Empty, EmptyContainer, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, ErrorBoundary, ErrorMessage, ErrorToastContent, FKSelect, FileDropzone, Input, Label, Loading, MarkdownEditor, MultiSelectDropdown, NoResult, Pagination, Popover, PopoverContent, PopoverTrigger, PumpwoodBadge, PumpwoodCard, PumpwoodTable, Radio, Select$1 as Select, SelectContent, SelectGroup, SelectItem, SelectLabel, Select as SelectPrimitive, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Sidebar, Skeleton, Spinner, Stack, Table$1 as Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, Table as TablePrimitive, TableRow, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, TagInput, Textarea, Tooltip, TooltipComponent, TooltipContent, TooltipProvider, TooltipTrigger, Typography, badgeVariants, createFKSelectFetcher, fkSelectFetcher, pumpwoodBadgeVariants, useSidebarCollapse };
|
|
1227
1256
|
export type { ComboboxItem, CreateFKSelectFetcherOptions, DynamicListFn, FKFetcherParams, FKSelectFetcherParams, IAlertWithIconProps, IDatePickerProps, IFKSelectProps, IMarkdownEditorProps, IMultiSelectOption, ISelectFKProps, ISelectProps, IStaticSelectProps, ITableColumn, ITableProps, ITagItem, IUseSidebarCollapseOptions, RetrieveFileFn };
|