@machinemetrics/mm-react-components 0.2.3-3 → 0.2.3-31
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 +90 -31
- package/agent-docs/agent-documentation-reference.md +401 -0
- package/agent-docs/ai-agent-guide.md +558 -0
- package/agent-docs/ai-agent-init-guide.md +465 -0
- package/agent-docs/chakra-migration-readme.md +265 -0
- package/agent-docs/chakra-migration-troubleshooting.md +649 -0
- package/agent-docs/component-mapping-reference.md +466 -0
- package/agent-docs/init-readme.md +283 -0
- package/agent-docs/init-troubleshooting.md +550 -0
- package/agent-docs/setup-reference.md +365 -0
- package/dist/App.d.ts.map +1 -1
- package/dist/README.md +90 -31
- package/dist/components/shadcn/accordion.d.ts +8 -0
- package/dist/components/shadcn/accordion.d.ts.map +1 -0
- package/dist/components/shadcn/alert-dialog.d.ts +15 -0
- package/dist/components/shadcn/alert-dialog.d.ts.map +1 -0
- package/dist/components/shadcn/alert.d.ts +10 -0
- package/dist/components/shadcn/alert.d.ts.map +1 -0
- package/dist/components/shadcn/avatar.d.ts +7 -0
- package/dist/components/shadcn/avatar.d.ts.map +1 -0
- package/dist/components/shadcn/badge.d.ts +10 -0
- package/dist/components/shadcn/badge.d.ts.map +1 -0
- package/dist/components/shadcn/breadcrumb.d.ts +12 -0
- package/dist/components/shadcn/breadcrumb.d.ts.map +1 -0
- package/dist/components/shadcn/button.d.ts +11 -0
- package/dist/components/shadcn/button.d.ts.map +1 -0
- package/dist/components/shadcn/calendar.d.ts +9 -0
- package/dist/components/shadcn/calendar.d.ts.map +1 -0
- package/dist/components/shadcn/card.d.ts +10 -0
- package/dist/components/shadcn/card.d.ts.map +1 -0
- package/dist/components/shadcn/chart.d.ts +41 -0
- package/dist/components/shadcn/chart.d.ts.map +1 -0
- package/dist/components/shadcn/checkbox.d.ts +5 -0
- package/dist/components/shadcn/checkbox.d.ts.map +1 -0
- package/dist/components/shadcn/collapsible.d.ts +7 -0
- package/dist/components/shadcn/collapsible.d.ts.map +1 -0
- package/dist/components/shadcn/command.d.ts +19 -0
- package/dist/components/shadcn/command.d.ts.map +1 -0
- package/dist/components/shadcn/dialog.d.ts +16 -0
- package/dist/components/shadcn/dialog.d.ts.map +1 -0
- package/dist/components/shadcn/drawer.d.ts +14 -0
- package/dist/components/shadcn/drawer.d.ts.map +1 -0
- package/dist/components/shadcn/dropdown-menu.d.ts +26 -0
- package/dist/components/shadcn/dropdown-menu.d.ts.map +1 -0
- package/dist/components/shadcn/form.d.ts +25 -0
- package/dist/components/shadcn/form.d.ts.map +1 -0
- package/dist/components/shadcn/input.d.ts +4 -0
- package/dist/components/shadcn/input.d.ts.map +1 -0
- package/dist/components/shadcn/label.d.ts +5 -0
- package/dist/components/shadcn/label.d.ts.map +1 -0
- package/dist/components/shadcn/pagination.d.ts +14 -0
- package/dist/components/shadcn/pagination.d.ts.map +1 -0
- package/dist/components/shadcn/popover.d.ts +8 -0
- package/dist/components/shadcn/popover.d.ts.map +1 -0
- package/dist/components/shadcn/progress.d.ts +5 -0
- package/dist/components/shadcn/progress.d.ts.map +1 -0
- package/dist/components/shadcn/radio-group.d.ts +6 -0
- package/dist/components/shadcn/radio-group.d.ts.map +1 -0
- package/dist/components/shadcn/select.d.ts +16 -0
- package/dist/components/shadcn/select.d.ts.map +1 -0
- package/dist/components/shadcn/separator.d.ts +5 -0
- package/dist/components/shadcn/separator.d.ts.map +1 -0
- package/dist/components/shadcn/sheet.d.ts +14 -0
- package/dist/components/shadcn/sheet.d.ts.map +1 -0
- package/dist/components/shadcn/skeleton.d.ts +4 -0
- package/dist/components/shadcn/skeleton.d.ts.map +1 -0
- package/dist/components/shadcn/slider.d.ts +5 -0
- package/dist/components/shadcn/slider.d.ts.map +1 -0
- package/dist/components/shadcn/sonner.d.ts +4 -0
- package/dist/components/shadcn/sonner.d.ts.map +1 -0
- package/dist/components/shadcn/spinner.d.ts +4 -0
- package/dist/components/shadcn/spinner.d.ts.map +1 -0
- package/dist/components/shadcn/switch.d.ts +5 -0
- package/dist/components/shadcn/switch.d.ts.map +1 -0
- package/dist/components/shadcn/table.d.ts +11 -0
- package/dist/components/shadcn/table.d.ts.map +1 -0
- package/dist/components/shadcn/tabs.d.ts +8 -0
- package/dist/components/shadcn/tabs.d.ts.map +1 -0
- package/dist/components/shadcn/textarea.d.ts +4 -0
- package/dist/components/shadcn/textarea.d.ts.map +1 -0
- package/dist/components/shadcn/toggle.d.ts +10 -0
- package/dist/components/shadcn/toggle.d.ts.map +1 -0
- package/dist/components/shadcn/tooltip.d.ts +8 -0
- package/dist/components/shadcn/tooltip.d.ts.map +1 -0
- package/dist/components/ui/accordion.d.ts +5 -6
- package/dist/components/ui/accordion.d.ts.map +1 -1
- package/dist/components/ui/alert-dialog.d.ts +7 -11
- package/dist/components/ui/alert-dialog.d.ts.map +1 -1
- package/dist/components/ui/alert.d.ts +8 -5
- package/dist/components/ui/alert.d.ts.map +1 -1
- package/dist/components/ui/avatar.d.ts +1 -6
- package/dist/components/ui/avatar.d.ts.map +1 -1
- package/dist/components/ui/badge.d.ts +4 -3
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/breadcrumb.d.ts +1 -11
- package/dist/components/ui/breadcrumb.d.ts.map +1 -1
- package/dist/components/ui/button.d.ts +6 -6
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/calendar.d.ts +1 -1
- package/dist/components/ui/calendar.d.ts.map +1 -1
- package/dist/components/ui/card.d.ts +1 -9
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/checkbox.d.ts +1 -1
- package/dist/components/ui/checkbox.d.ts.map +1 -1
- package/dist/components/ui/collapsible.d.ts +1 -6
- package/dist/components/ui/collapsible.d.ts.map +1 -1
- package/dist/components/ui/command.d.ts +19 -0
- package/dist/components/ui/command.d.ts.map +1 -0
- package/dist/components/ui/data-table/TableView.d.ts +2 -1
- package/dist/components/ui/data-table/TableView.d.ts.map +1 -1
- package/dist/components/ui/data-table/cards/ResponsiveTable.d.ts +1 -1
- package/dist/components/ui/data-table/cards/ResponsiveTable.d.ts.map +1 -1
- package/dist/components/ui/data-table/cards/RowCard.d.ts +2 -1
- package/dist/components/ui/data-table/cards/RowCard.d.ts.map +1 -1
- package/dist/components/ui/data-table/index.d.ts +3 -1
- package/dist/components/ui/data-table/index.d.ts.map +1 -1
- package/dist/components/ui/data-table/pagination.d.ts +14 -1
- package/dist/components/ui/data-table/pagination.d.ts.map +1 -1
- package/dist/components/ui/data-table/parts/BatchActionsToolbar.d.ts +7 -0
- package/dist/components/ui/data-table/parts/BatchActionsToolbar.d.ts.map +1 -0
- package/dist/components/ui/data-table/parts/CellContent.d.ts +7 -0
- package/dist/components/ui/data-table/parts/CellContent.d.ts.map +1 -0
- package/dist/components/ui/data-table/parts/ColGroup.d.ts +7 -0
- package/dist/components/ui/data-table/parts/ColGroup.d.ts.map +1 -0
- package/dist/components/ui/data-table/parts/SortableHeader.d.ts +13 -0
- package/dist/components/ui/data-table/parts/SortableHeader.d.ts.map +1 -0
- package/dist/components/ui/data-table/parts/TableBody.d.ts +22 -0
- package/dist/components/ui/data-table/parts/TableBody.d.ts.map +1 -0
- package/dist/components/ui/data-table/parts/TableHeader.d.ts +15 -0
- package/dist/components/ui/data-table/parts/TableHeader.d.ts.map +1 -0
- package/dist/components/ui/data-table/toolbar/DataTableToolbar.d.ts +2 -1
- package/dist/components/ui/data-table/toolbar/DataTableToolbar.d.ts.map +1 -1
- package/dist/components/ui/data-table/types.d.ts +61 -11
- package/dist/components/ui/data-table/types.d.ts.map +1 -1
- package/dist/components/ui/data-table/useDragAndDrop.d.ts +23 -0
- package/dist/components/ui/data-table/useDragAndDrop.d.ts.map +1 -0
- package/dist/components/ui/data-table/useTableController.d.ts +24 -1
- package/dist/components/ui/data-table/useTableController.d.ts.map +1 -1
- package/dist/components/ui/data-table/utils.d.ts +2 -0
- package/dist/components/ui/data-table/utils.d.ts.map +1 -1
- package/dist/components/ui/date-picker.d.ts +36 -0
- package/dist/components/ui/date-picker.d.ts.map +1 -0
- package/dist/components/ui/dialog.d.ts +6 -10
- package/dist/components/ui/dialog.d.ts.map +1 -1
- package/dist/components/ui/drawer.d.ts +3 -11
- package/dist/components/ui/drawer.d.ts.map +1 -1
- package/dist/components/ui/dropdown-menu.d.ts +15 -23
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/components/ui/hero-metric-card/HeroMetricCard.d.ts +4 -0
- package/dist/components/ui/hero-metric-card/HeroMetricCard.d.ts.map +1 -0
- package/dist/components/ui/hero-metric-card/HeroMetricCardItem.d.ts +4 -0
- package/dist/components/ui/hero-metric-card/HeroMetricCardItem.d.ts.map +1 -0
- package/dist/components/ui/hero-metric-card/constants.d.ts +13 -0
- package/dist/components/ui/hero-metric-card/constants.d.ts.map +1 -0
- package/dist/components/ui/hero-metric-card/grid.d.ts +4 -0
- package/dist/components/ui/hero-metric-card/grid.d.ts.map +1 -0
- package/dist/components/ui/hero-metric-card/hooks.d.ts +6 -0
- package/dist/components/ui/hero-metric-card/hooks.d.ts.map +1 -0
- package/dist/components/ui/hero-metric-card/index.d.ts +5 -0
- package/dist/components/ui/hero-metric-card/index.d.ts.map +1 -0
- package/dist/components/ui/hero-metric-card/parsing.d.ts +11 -0
- package/dist/components/ui/hero-metric-card/parsing.d.ts.map +1 -0
- package/dist/components/ui/hero-metric-card/refs.d.ts +3 -0
- package/dist/components/ui/hero-metric-card/refs.d.ts.map +1 -0
- package/dist/components/ui/hero-metric-card/trend.d.ts +4 -0
- package/dist/components/ui/hero-metric-card/trend.d.ts.map +1 -0
- package/dist/components/ui/hero-metric-card/types.d.ts +60 -0
- package/dist/components/ui/hero-metric-card/types.d.ts.map +1 -0
- package/dist/components/ui/hero-metric-card/utils.d.ts +10 -0
- package/dist/components/ui/hero-metric-card/utils.d.ts.map +1 -0
- package/dist/components/ui/input.d.ts +3 -2
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/label.d.ts +1 -4
- package/dist/components/ui/label.d.ts.map +1 -1
- package/dist/components/ui/pagination.d.ts +14 -0
- package/dist/components/ui/pagination.d.ts.map +1 -0
- package/dist/components/ui/popover.d.ts +3 -5
- package/dist/components/ui/popover.d.ts.map +1 -1
- package/dist/components/ui/progress.d.ts +2 -1
- package/dist/components/ui/progress.d.ts.map +1 -1
- package/dist/components/ui/radio-group.d.ts +3 -3
- package/dist/components/ui/radio-group.d.ts.map +1 -1
- package/dist/components/ui/select.d.ts +6 -13
- package/dist/components/ui/select.d.ts.map +1 -1
- package/dist/components/ui/separator.d.ts +1 -4
- package/dist/components/ui/separator.d.ts.map +1 -1
- package/dist/components/ui/sheet-banner.d.ts +10 -0
- package/dist/components/ui/sheet-banner.d.ts.map +1 -0
- package/dist/components/ui/sheet.d.ts +18 -9
- package/dist/components/ui/sheet.d.ts.map +1 -1
- package/dist/components/ui/simple-pagination.d.ts +8 -0
- package/dist/components/ui/simple-pagination.d.ts.map +1 -0
- package/dist/components/ui/skeleton.d.ts +1 -3
- package/dist/components/ui/skeleton.d.ts.map +1 -1
- package/dist/components/ui/sonner.d.ts +2 -1
- package/dist/components/ui/sonner.d.ts.map +1 -1
- package/dist/components/ui/spinner-carbide.d.ts +5 -0
- package/dist/components/ui/spinner-carbide.d.ts.map +1 -0
- package/dist/components/ui/spinner.d.ts +2 -0
- package/dist/components/ui/spinner.d.ts.map +1 -0
- package/dist/components/ui/switch.d.ts +1 -1
- package/dist/components/ui/switch.d.ts.map +1 -1
- package/dist/components/ui/table/Table.d.ts.map +1 -1
- package/dist/components/ui/table.d.ts +4 -9
- package/dist/components/ui/table.d.ts.map +1 -1
- package/dist/components/ui/tabs.d.ts +16 -2
- package/dist/components/ui/tabs.d.ts.map +1 -1
- package/dist/components/ui/textarea.d.ts +1 -3
- package/dist/components/ui/textarea.d.ts.map +1 -1
- package/dist/components/ui/toggle.d.ts +1 -9
- package/dist/components/ui/toggle.d.ts.map +1 -1
- package/dist/components/ui/tooltip.d.ts +1 -7
- package/dist/components/ui/tooltip.d.ts.map +1 -1
- package/dist/docs/GETTING_STARTED.md +14 -6
- package/dist/docs/TAILWIND_SETUP.md +5 -1
- package/dist/index.d.ts +16 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/lib/fonts/inconsolata-latin-400-normal.7bb81ff1.woff +0 -0
- package/dist/lib/fonts/inconsolata-latin-400-normal.eb50e0cc.woff2 +0 -0
- package/dist/lib/fonts/inconsolata-latin-ext-400-normal.8c9bd94c.woff +0 -0
- package/dist/lib/fonts/inconsolata-latin-ext-400-normal.e91396bf.woff2 +0 -0
- package/dist/lib/fonts/inconsolata-vietnamese-400-normal.0fdec2a6.woff +0 -0
- package/dist/lib/fonts/inconsolata-vietnamese-400-normal.788ea873.woff2 +0 -0
- package/dist/lib/fonts/noto-sans-cyrillic-ext-wght-normal.ced7f40b.woff2 +0 -0
- package/dist/lib/fonts/noto-sans-cyrillic-wght-normal.56471747.woff2 +0 -0
- package/dist/lib/fonts/noto-sans-devanagari-wght-normal.90412b4c.woff2 +0 -0
- package/dist/lib/fonts/noto-sans-greek-ext-wght-normal.6a0bbd3e.woff2 +0 -0
- package/dist/lib/fonts/noto-sans-greek-wght-normal.dc06dc3b.woff2 +0 -0
- package/dist/lib/fonts/noto-sans-latin-ext-wght-normal.15bcee04.woff2 +0 -0
- package/dist/lib/fonts/noto-sans-latin-wght-normal.20625185.woff2 +0 -0
- package/dist/lib/fonts/noto-sans-vietnamese-wght-normal.d0a8e686.woff2 +0 -0
- package/dist/lib/mm-react-components.css +1 -0
- package/dist/main.d.ts +1 -2
- package/dist/main.d.ts.map +1 -1
- package/dist/mm-react-components.es.js +8015 -5939
- package/dist/mm-react-components.es.js.map +1 -1
- package/dist/mm-react-components.umd.js +13 -13
- package/dist/mm-react-components.umd.js.map +1 -1
- package/dist/preview/ColorsPreview.d.ts +7 -0
- package/dist/preview/ColorsPreview.d.ts.map +1 -0
- package/dist/preview/CommandPreview.d.ts +2 -0
- package/dist/preview/CommandPreview.d.ts.map +1 -0
- package/dist/preview/DataTablePreview.d.ts +1 -1
- package/dist/preview/DataTablePreview.d.ts.map +1 -1
- package/dist/preview/DatePickerPreview.d.ts +2 -0
- package/dist/preview/DatePickerPreview.d.ts.map +1 -0
- package/dist/preview/DateRangePickerPreview.d.ts.map +1 -1
- package/dist/preview/HeroMetricCardPreview.d.ts +2 -0
- package/dist/preview/HeroMetricCardPreview.d.ts.map +1 -0
- package/dist/preview/PaginationPreview.d.ts +2 -0
- package/dist/preview/PaginationPreview.d.ts.map +1 -0
- package/dist/preview/SheetBannerPreview.d.ts +2 -0
- package/dist/preview/SheetBannerPreview.d.ts.map +1 -0
- package/dist/preview/SheetPreview.d.ts.map +1 -1
- package/dist/preview/SpinnerPreview.d.ts +2 -0
- package/dist/preview/SpinnerPreview.d.ts.map +1 -0
- package/dist/preview/TabsPreview.d.ts.map +1 -1
- package/dist/scripts/chakra-to-shadcn-migrator/chakra-to-shadcn.config.json +577 -0
- package/dist/scripts/chakra-to-shadcn-migrator/lib/args.js +63 -0
- package/dist/scripts/chakra-to-shadcn-migrator/lib/colors.js +14 -0
- package/dist/scripts/chakra-to-shadcn-migrator/lib/config.js +15 -0
- package/dist/scripts/chakra-to-shadcn-migrator/lib/deps.js +125 -0
- package/dist/scripts/chakra-to-shadcn-migrator/lib/file-io.js +44 -0
- package/dist/scripts/chakra-to-shadcn-migrator/lib/render.js +89 -0
- package/dist/scripts/chakra-to-shadcn-migrator/lib/transform.js +550 -0
- package/dist/scripts/chakra-to-shadcn-migrator/package.json +11 -0
- package/dist/scripts/init.cjs +216 -0
- package/dist/scripts/npx-init.cjs +418 -0
- package/dist/tailwind.base.config.js +89 -0
- package/dist/themes/carbide.css +464 -90
- package/docs/TAILWIND_SETUP.md +5 -1
- package/package.json +39 -12
- package/src/index.css +111 -489
- package/dist/index.css +0 -527
- package/dist/themes/base.css +0 -536
- package/dist/themes/complete.css +0 -8
- package/scripts/README.md +0 -171
- package/scripts/chakra-to-shadcn-migrator/README.md +0 -107
- package/src/themes/base.css +0 -536
- package/src/themes/carbide.css +0 -1257
- package/src/themes/complete.css +0 -8
- /package/{scripts → dist/scripts}/chakra-to-shadcn-migrator/bin/chakra-to-shadcn.js +0 -0
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
declare
|
|
6
|
-
declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export { AlertDialog, AlertDialogTrigger, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, } from '@/components/shadcn/alert-dialog';
|
|
4
|
+
export { AlertDialogPortal } from '@/components/shadcn/alert-dialog';
|
|
5
|
+
declare const AlertDialogOverlay: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
6
|
declare function AlertDialogContent({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare
|
|
9
|
-
declare
|
|
10
|
-
declare
|
|
11
|
-
|
|
12
|
-
declare function AlertDialogAction({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Action>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
declare function AlertDialogCancel({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
|
7
|
+
declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
10
|
+
export { AlertDialogOverlay, AlertDialogContent, AlertDialogAction, AlertDialogCancel, AlertDialogDescription, };
|
|
15
11
|
//# sourceMappingURL=alert-dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/alert-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/ui/alert-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AAerE,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAGrE,QAAA,MAAM,kBAAkB,wKAetB,CAAC;AAKH,iBAAS,kBAAkB,CAAC,EAC1B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,oBAAoB,CAAC,OAAO,CAAC,2CAc3D;AAGD,QAAA,MAAM,iBAAiB,6KAWrB,CAAC;AAIH,QAAA,MAAM,iBAAiB,6KAWrB,CAAC;AAKH,QAAA,MAAM,sBAAsB,wLAY1B,CAAC;AAIH,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,sBAAsB,GACvB,CAAC"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
export { AlertTitle, AlertDescription } from '@/components/shadcn/alert';
|
|
3
4
|
declare const alertVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "destructive" | null | undefined;
|
|
5
|
+
variant?: "default" | "destructive" | "success" | "warning" | null | undefined;
|
|
5
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
-
declare
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
declare const Alert: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & VariantProps<(props?: ({
|
|
8
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
9
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & VariantProps<(props?: ({
|
|
10
|
+
variant?: "default" | "destructive" | "success" | "warning" | null | undefined;
|
|
11
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export { Alert, alertVariants };
|
|
10
13
|
//# sourceMappingURL=alert.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/ui/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/ui/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAKlE,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAOzE,QAAA,MAAM,aAAa;;8EAiBlB,CAAC;AAGF,QAAA,MAAM,KAAK;;;;8HAcT,CAAC;AAIH,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
3
|
-
declare function Avatar({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export { Avatar, AvatarImage, AvatarFallback };
|
|
1
|
+
export { Avatar, AvatarImage, AvatarFallback, } from '@/components/shadcn/avatar';
|
|
7
2
|
//# sourceMappingURL=avatar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/avatar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/avatar.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,MAAM,EACN,WAAW,EACX,cAAc,GACf,MAAM,4BAA4B,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { type VariantProps } from 'class-variance-authority';
|
|
3
2
|
declare const badgeVariants: (props?: ({
|
|
4
3
|
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
5
4
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
-
declare
|
|
5
|
+
declare const Badge: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLSpanElement> & React.HTMLAttributes<HTMLSpanElement> & import("class-variance-authority").VariantProps<(props?: ({
|
|
6
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
|
|
7
8
|
asChild?: boolean;
|
|
8
|
-
}
|
|
9
|
+
}, "ref"> & React.RefAttributes<HTMLSpanElement>>;
|
|
9
10
|
export { Badge, badgeVariants };
|
|
10
11
|
//# sourceMappingURL=badge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../src/components/ui/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../src/components/ui/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,QAAA,MAAM,aAAa;;8EAoBlB,CAAC;AAGF,QAAA,MAAM,KAAK;;;;iDAeT,CAAC;AAIH,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,12 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
declare function Breadcrumb({ ...props }: React.ComponentProps<'nav'>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
declare function BreadcrumbList({ className, ...props }: React.ComponentProps<'ol'>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare function BreadcrumbItem({ className, ...props }: React.ComponentProps<'li'>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function BreadcrumbLink({ asChild, className, ...props }: React.ComponentProps<'a'> & {
|
|
6
|
-
asChild?: boolean;
|
|
7
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare function BreadcrumbPage({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
declare function BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<'li'>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
declare function BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
|
|
1
|
+
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, } from '@/components/shadcn/breadcrumb';
|
|
12
2
|
//# sourceMappingURL=breadcrumb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumb.d.ts","sourceRoot":"","sources":["../../../src/components/ui/breadcrumb.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"breadcrumb.d.ts","sourceRoot":"","sources":["../../../src/components/ui/breadcrumb.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,UAAU,EACV,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,gCAAgC,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { buttonVariants } from '@/components/shadcn/button';
|
|
3
|
+
export { buttonVariants };
|
|
4
|
+
declare const Button: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & import("class-variance-authority").VariantProps<(props?: ({
|
|
4
5
|
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
5
6
|
size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
|
|
6
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string
|
|
7
|
-
declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
|
|
8
8
|
asChild?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export { Button
|
|
9
|
+
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
export { Button };
|
|
11
11
|
//# sourceMappingURL=button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAEL,cAAc,EACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,CAAC;AAG1B,QAAA,MAAM,MAAM;;;;;mDAeV,CAAC;AAIH,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DayButton, DayPicker } from 'react-day-picker';
|
|
3
|
-
import { Button } from '@/components/
|
|
3
|
+
import { Button } from '@/components/shadcn/button';
|
|
4
4
|
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: React.ComponentProps<typeof DayPicker> & {
|
|
5
5
|
buttonVariant?: React.ComponentProps<typeof Button>['variant'];
|
|
6
6
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/calendar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAwB,MAAM,kBAAkB,CAAC;AAG9E,OAAO,EAAE,MAAM,EAAkB,MAAM,
|
|
1
|
+
{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/calendar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAwB,MAAM,kBAAkB,CAAC;AAG9E,OAAO,EAAE,MAAM,EAAkB,MAAM,4BAA4B,CAAC;AAEpE,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,UAAU,EACV,eAAsB,EACtB,aAAuB,EACvB,aAAuB,EACvB,UAAU,EACV,UAAU,EACV,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,GAAG;IAC1C,aAAa,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC;CAChE,2CA2IA;AAED,iBAAS,iBAAiB,CAAC,EACzB,SAAS,EACT,GAAG,EACH,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,2CA4BxC;AAED,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,CAAC"}
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
declare function Card({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
declare function CardHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare function CardTitle({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function CardDescription({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function CardAction({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
declare function CardContent({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare function CardFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
|
|
1
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, } from '@/components/shadcn/card';
|
|
10
2
|
//# sourceMappingURL=card.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/components/ui/card.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/components/ui/card.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,IAAI,EACJ,UAAU,EACV,UAAU,EACV,SAAS,EACT,UAAU,EACV,eAAe,EACf,WAAW,GACZ,MAAM,0BAA0B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
3
|
-
declare
|
|
3
|
+
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
4
4
|
export { Checkbox };
|
|
5
5
|
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/ui/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/ui/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAS9D,QAAA,MAAM,QAAQ,iKAsBZ,CAAC;AAIH,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
3
|
-
declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export { Collapsible, CollapsibleTrigger, CollapsibleContent };
|
|
1
|
+
export { Collapsible, CollapsibleTrigger, CollapsibleContent, } from '@/components/shadcn/collapsible';
|
|
7
2
|
//# sourceMappingURL=collapsible.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../../src/components/ui/collapsible.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"collapsible.d.ts","sourceRoot":"","sources":["../../../src/components/ui/collapsible.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Command as CommandPrimitive } from 'cmdk';
|
|
3
|
+
import { Dialog } from '@/components/ui/dialog';
|
|
4
|
+
declare function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React.ComponentProps<typeof Dialog> & {
|
|
6
|
+
title?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
showCloseButton?: boolean;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function CommandInput({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function CommandEmpty({ ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare function CommandItem({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare function CommandShortcut({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
|
|
19
|
+
//# sourceMappingURL=command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../src/components/ui/command.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAInD,OAAO,EACL,MAAM,EAKP,MAAM,wBAAwB,CAAC;AAEhC,iBAAS,OAAO,CAAC,EACf,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,2CAW/C;AAED,iBAAS,aAAa,CAAC,EACrB,KAAyB,EACzB,WAA8C,EAC9C,QAAQ,EACR,SAAS,EACT,eAAsB,EACtB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,GAAG;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,2CAiBA;AAED,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,2CAiBrD;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,2CAWpD;AAED,iBAAS,YAAY,CAAC,EACpB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,2CAQrD;AAED,iBAAS,YAAY,CAAC,EACpB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,KAAK,CAAC,2CAWrD;AAED,iBAAS,gBAAgB,CAAC,EACxB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,SAAS,CAAC,2CAQzD;AAED,iBAAS,WAAW,CAAC,EACnB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,gBAAgB,CAAC,IAAI,CAAC,2CAWpD;AAED,iBAAS,eAAe,CAAC,EACvB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,2CAW9B;AAED,OAAO,EACL,OAAO,EACP,aAAa,EACb,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,eAAe,EACf,gBAAgB,GACjB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { DataTableProps } from './types';
|
|
2
|
-
export declare function DataTable<TData, TValue>({ columns, data, loading, columnRegistry, initialState, tableId, toolbar, emptyState, forceEmptyState, }: DataTableProps<TData, TValue>):
|
|
3
|
+
export declare function DataTable<TData, TValue>({ columns, data, loading, columnRegistry, initialState, tableId, toolbar, emptyState, forceEmptyState, manualPagination, pageCount, totalRowCount, onRowSelectionChange, onSortingChange, onPaginationChange, onColumnVisibilityChange, onColumnOrderChange, onBatchAction, onRowClick, onExportComplete, customGlobalFilterFn, }: DataTableProps<TData, TValue>): React.ReactNode;
|
|
3
4
|
//# sourceMappingURL=TableView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableView.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/data-table/TableView.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TableView.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/data-table/TableView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAiB/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AA0L9C,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,EACvC,OAAO,EACP,IAAI,EACJ,OAAe,EACf,cAAc,EACd,YAAY,EACZ,OAAO,EACP,OAAO,EACP,UAAU,EACV,eAAe,EACf,gBAAwB,EACxB,SAAS,EACT,aAAa,EACb,oBAAoB,EACpB,eAAe,EACf,kBAAkB,EAClB,wBAAwB,EACxB,mBAAmB,EACnB,aAAa,EACb,UAAU,EACV,gBAAgB,EAChB,oBAAoB,GACrB,EAAE,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,mBAoK/B"}
|
|
@@ -6,5 +6,5 @@ export interface ResponsiveTableProps<TData, TValue> extends DataTableProps<TDat
|
|
|
6
6
|
overscan?: number;
|
|
7
7
|
toolbarOptions?: DataTableToolbarOptions;
|
|
8
8
|
}
|
|
9
|
-
export declare function ResponsiveTable<TData, TValue>({ columns, data, loading, columnRegistry, initialState, breakpoint, enableMobileVirtualization, virtualizeAt, overscan, tableId, toolbarOptions, emptyState, forceEmptyState, }: ResponsiveTableProps<TData, TValue
|
|
9
|
+
export declare function ResponsiveTable<TData, TValue>({ columns, data, loading, columnRegistry, initialState, breakpoint, enableMobileVirtualization, virtualizeAt, overscan, tableId, toolbarOptions, emptyState, forceEmptyState, manualPagination, pageCount, totalRowCount, onRowSelectionChange, onSortingChange, onPaginationChange, onColumnVisibilityChange, onColumnOrderChange, onBatchAction, onRowClick, onExportComplete, customGlobalFilterFn, }: Readonly<ResponsiveTableProps<TData, TValue>>): import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
//# sourceMappingURL=ResponsiveTable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResponsiveTable.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/data-table/cards/ResponsiveTable.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AASxE,MAAM,WAAW,oBAAoB,CAAC,KAAK,EAAE,MAAM,CACjD,SAAQ,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,uBAAuB,CAAC;CAC1C;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,EAC7C,OAAO,EACP,IAAI,EACJ,OAAO,EACP,cAAc,EACd,YAAY,EACZ,UAAiC,EACjC,0BAAiC,EACjC,YAAkB,EAClB,QAAY,EACZ,OAAO,EACP,cAAc,EACd,UAAU,EACV,eAAe,
|
|
1
|
+
{"version":3,"file":"ResponsiveTable.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/data-table/cards/ResponsiveTable.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AASxE,MAAM,WAAW,oBAAoB,CAAC,KAAK,EAAE,MAAM,CACjD,SAAQ,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,0BAA0B,CAAC,EAAE,OAAO,CAAC;IACrC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,uBAAuB,CAAC;CAC1C;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,EAC7C,OAAO,EACP,IAAI,EACJ,OAAO,EACP,cAAc,EACd,YAAY,EACZ,UAAiC,EACjC,0BAAiC,EACjC,YAAkB,EAClB,QAAY,EACZ,OAAO,EACP,cAAc,EACd,UAAU,EACV,eAAe,EACf,gBAAgB,EAChB,SAAS,EACT,aAAa,EACb,oBAAoB,EACpB,eAAe,EACf,kBAAkB,EAClB,wBAAwB,EACxB,mBAAmB,EACnB,aAAa,EACb,UAAU,EACV,gBAAgB,EAChB,oBAAoB,GACrB,EAAE,QAAQ,CAAC,oBAAoB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,2CA0D/C"}
|
|
@@ -4,6 +4,7 @@ export interface RowCardProps<TData> {
|
|
|
4
4
|
row: Row<TData>;
|
|
5
5
|
columnRegistry?: ColumnRegistry<TData, unknown>;
|
|
6
6
|
className?: string;
|
|
7
|
+
onRowClick?: (row: TData, rowIndex: number) => void;
|
|
7
8
|
}
|
|
8
|
-
export declare function RowCard<TData>({ row, columnRegistry, className, }: RowCardProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function RowCard<TData>({ row, columnRegistry, className, onRowClick, }: RowCardProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
//# sourceMappingURL=RowCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RowCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/data-table/cards/RowCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAyB,KAAK,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAExE,OAAO,KAAK,EAEV,cAAc,EACf,MAAM,4BAA4B,CAAC;AAEpC,MAAM,WAAW,YAAY,CAAC,KAAK;IACjC,GAAG,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;IAChB,cAAc,CAAC,EAAE,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"RowCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/data-table/cards/RowCard.tsx"],"names":[],"mappings":"AACA,OAAO,EAAyB,KAAK,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAExE,OAAO,KAAK,EAEV,cAAc,EACf,MAAM,4BAA4B,CAAC;AAEpC,MAAM,WAAW,YAAY,CAAC,KAAK;IACjC,GAAG,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC;IAChB,cAAc,CAAC,EAAE,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CACrD;AAiCD,wBAAgB,OAAO,CAAC,KAAK,EAAE,EAC7B,GAAG,EACH,cAAc,EACd,SAAS,EACT,UAAU,GACX,EAAE,YAAY,CAAC,KAAK,CAAC,2CA6QrB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { DataTable } from './TableView';
|
|
2
2
|
export type { ColumnDefaults, ColumnDescriptor, ColumnRegistry, Align as TableColumnAlignment, MobileRole as TableMobileRole, } from './metadata/ColumnRegistry';
|
|
3
|
-
export type { DataTableProps, DataTableInitialState } from './types';
|
|
3
|
+
export type { DataTableProps, DataTableInitialState, DataTableToolbarOptions, DataTableToolbarContext, } from './types';
|
|
4
4
|
export { createColumnRegistry, resolveColumnOrder, resolveColumnVisibility, } from './metadata/ColumnRegistry';
|
|
5
5
|
export { getPresetAlignment, determineTextAlignment, detectContentType, getAlignmentForContentType, } from './metadata/alignment';
|
|
6
6
|
export { TABLE_TOKENS } from './tokens';
|
|
@@ -11,4 +11,6 @@ export { DataTableToolbar } from './toolbar';
|
|
|
11
11
|
export { ResponsiveTable } from './cards/ResponsiveTable';
|
|
12
12
|
export { exportTableToCSV } from './utils';
|
|
13
13
|
export { DataTablePagination } from './pagination';
|
|
14
|
+
export { BatchActionsToolbar } from './parts/BatchActionsToolbar';
|
|
15
|
+
export { ColGroup } from './parts/ColGroup';
|
|
14
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/data-table/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EACV,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,KAAK,IAAI,oBAAoB,EAC7B,UAAU,IAAI,eAAe,GAC9B,MAAM,2BAA2B,CAAC;AACnC,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/data-table/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EACV,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,KAAK,IAAI,oBAAoB,EAC7B,UAAU,IAAI,eAAe,GAC9B,MAAM,2BAA2B,CAAC;AACnC,YAAY,EACV,cAAc,EACd,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,SAAS,CAAC;AACjB,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,uBAAuB,GACxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,kBAAkB,EAClB,sBAAsB,EACtB,iBAAiB,EACjB,0BAA0B,GAC3B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EACL,sBAAsB,EACtB,gBAAgB,EAChB,mBAAmB,EACnB,iBAAiB,EACjB,qBAAqB,EACrB,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC"}
|
|
@@ -4,6 +4,19 @@ export interface DataTablePaginationProps<TData> {
|
|
|
4
4
|
readonly pageSizeOptions?: number[];
|
|
5
5
|
readonly className?: string;
|
|
6
6
|
readonly compact?: boolean;
|
|
7
|
+
readonly onPageChange?: (pageIndex: number) => void;
|
|
8
|
+
readonly onPageSizeChange?: (pageSize: number) => void;
|
|
9
|
+
/**
|
|
10
|
+
* Whether server-side pagination is enabled.
|
|
11
|
+
* When true, pagination calculations use server-provided totals instead of client-side data.
|
|
12
|
+
*/
|
|
13
|
+
readonly manualPagination?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Total number of rows across all pages when using server-side pagination.
|
|
16
|
+
* Used for displaying "Showing X to Y of Z items" in pagination footer.
|
|
17
|
+
* If not provided and manualPagination is true, will be calculated from pageCount * pageSize.
|
|
18
|
+
*/
|
|
19
|
+
readonly totalRowCount?: number;
|
|
7
20
|
}
|
|
8
|
-
export declare function DataTablePagination<TData>({ table, pageSizeOptions, className, compact, }: DataTablePaginationProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export declare function DataTablePagination<TData>({ table, pageSizeOptions, className, compact, onPageChange, onPageSizeChange, manualPagination, totalRowCount, }: DataTablePaginationProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
9
22
|
//# sourceMappingURL=pagination.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/data-table/pagination.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/data-table/pagination.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,IAAI,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAUpE,MAAM,WAAW,wBAAwB,CAAC,KAAK;IAC7C,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;IACrC,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IACpC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IACpD,QAAQ,CAAC,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACvD;;;OAGG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC;IACpC;;;;OAIG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,EACzC,KAAK,EACL,eAAoC,EACpC,SAAS,EACT,OAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,gBAAwB,EACxB,aAAa,GACd,EAAE,wBAAwB,CAAC,KAAK,CAAC,2CAkKjC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface BatchActionsToolbarProps {
|
|
2
|
+
selectedCount: number;
|
|
3
|
+
onDeleteSelected?: (count: number) => void;
|
|
4
|
+
onBatchAction?: (action: string, selectedRows: unknown[]) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare function BatchActionsToolbar({ selectedCount, onDeleteSelected, onBatchAction, }: BatchActionsToolbarProps): import("react/jsx-runtime").JSX.Element | null;
|
|
7
|
+
//# sourceMappingURL=BatchActionsToolbar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BatchActionsToolbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/data-table/parts/BatchActionsToolbar.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,wBAAwB;IACvC,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;CACnE;AAED,wBAAgB,mBAAmB,CAAC,EAClC,aAAa,EACb,gBAAgB,EAChB,aAAa,GACd,EAAE,wBAAwB,kDA2B1B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import type { Align } from '../metadata/ColumnRegistry';
|
|
3
|
+
export declare function CellContent({ children, align, }: {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
align?: Align;
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=CellContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CellContent.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/data-table/parts/CellContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AAExD,wBAAgB,WAAW,CAAC,EAC1B,QAAQ,EACR,KAAK,GACN,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,2CAyEA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Column } from '@tanstack/react-table';
|
|
2
|
+
export interface ColGroupProps<TData> {
|
|
3
|
+
columns: Array<Column<TData>>;
|
|
4
|
+
debug?: (...args: unknown[]) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare function ColGroup<TData>({ columns, debug }: ColGroupProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=ColGroup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColGroup.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/data-table/parts/ColGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAGpD,MAAM,WAAW,aAAa,CAAC,KAAK;IAClC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IAC9B,KAAK,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAC;CACtC;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,aAAa,CAAC,KAAK,CAAC,2CAevE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type Header } from '@tanstack/react-table';
|
|
3
|
+
export interface SortableHeaderProps<TData> {
|
|
4
|
+
header: Header<TData, unknown>;
|
|
5
|
+
isDragging: boolean;
|
|
6
|
+
activeColumnId: string | null;
|
|
7
|
+
clampRef: React.MutableRefObject<{
|
|
8
|
+
minX: number;
|
|
9
|
+
maxX: number;
|
|
10
|
+
}>;
|
|
11
|
+
}
|
|
12
|
+
export declare function SortableHeader<TData>({ header, isDragging, activeColumnId, clampRef, }: SortableHeaderProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=SortableHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SortableHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/data-table/parts/SortableHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAc,KAAK,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAahE,MAAM,WAAW,mBAAmB,CAAC,KAAK;IACxC,MAAM,EAAE,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC/B,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,QAAQ,EAAE,KAAK,CAAC,gBAAgB,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAClE;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,EACpC,MAAM,EACN,UAAU,EACV,cAAc,EACd,QAAQ,GACT,EAAE,mBAAmB,CAAC,KAAK,CAAC,2CAmH5B"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type ColumnDef, type Row } from '@tanstack/react-table';
|
|
2
|
+
export interface TableBodyProps<TData, TValue> {
|
|
3
|
+
loading: boolean;
|
|
4
|
+
resolvedColumns: Array<ColumnDef<TData, TValue>>;
|
|
5
|
+
rows: Array<Row<TData>>;
|
|
6
|
+
renderOrder: string[];
|
|
7
|
+
isDragging: boolean;
|
|
8
|
+
activeColumnId: string | null;
|
|
9
|
+
/**
|
|
10
|
+
* Number of skeleton rows to show when loading.
|
|
11
|
+
* Defaults to 5 if not provided.
|
|
12
|
+
*/
|
|
13
|
+
skeletonRowCount?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Callback fired when a row is clicked.
|
|
16
|
+
* @param row - The row data
|
|
17
|
+
* @param rowIndex - The index of the row
|
|
18
|
+
*/
|
|
19
|
+
onRowClick?: (row: TData, rowIndex: number) => void;
|
|
20
|
+
}
|
|
21
|
+
export declare function TableBody<TData, TValue>({ loading, resolvedColumns, rows, renderOrder, isDragging, activeColumnId, skeletonRowCount, onRowClick, }: Readonly<TableBodyProps<TData, TValue>>): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
//# sourceMappingURL=TableBody.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableBody.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/data-table/parts/TableBody.tsx"],"names":[],"mappings":"AAGA,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,GAAG,EAET,MAAM,uBAAuB,CAAC;AAuH/B,MAAM,WAAW,cAAc,CAAC,KAAK,EAAE,MAAM;IAC3C,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;IACjD,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;IACxB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CACrD;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,EACvC,OAAO,EACP,eAAe,EACf,IAAI,EACJ,WAAW,EACX,UAAU,EACV,cAAc,EACd,gBAAoB,EACpB,UAAU,GACX,EAAE,QAAQ,CAAC,cAAc,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,2CAkDzC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { type HeaderGroup } from '@tanstack/react-table';
|
|
3
|
+
export interface TableHeaderProps<TData> {
|
|
4
|
+
headerGroups: HeaderGroup<TData>[];
|
|
5
|
+
sortableHeaderIds: string[];
|
|
6
|
+
isBodyScrolled: boolean;
|
|
7
|
+
isDragging: boolean;
|
|
8
|
+
activeColumnId: string | null;
|
|
9
|
+
clampRef: React.MutableRefObject<{
|
|
10
|
+
minX: number;
|
|
11
|
+
maxX: number;
|
|
12
|
+
}>;
|
|
13
|
+
}
|
|
14
|
+
export declare function TableHeader<TData>({ headerGroups, sortableHeaderIds, isBodyScrolled, isDragging, activeColumnId, clampRef, }: TableHeaderProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=TableHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableHeader.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/data-table/parts/TableHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAGL,KAAK,WAAW,EACjB,MAAM,uBAAuB,CAAC;AAU/B,MAAM,WAAW,gBAAgB,CAAC,KAAK;IACrC,YAAY,EAAE,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC;IACnC,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,cAAc,EAAE,OAAO,CAAC;IACxB,UAAU,EAAE,OAAO,CAAC;IACpB,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,QAAQ,EAAE,KAAK,CAAC,gBAAgB,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAClE;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,EACjC,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,UAAU,EACV,cAAc,EACd,QAAQ,GACT,EAAE,gBAAgB,CAAC,KAAK,CAAC,2CAyGzB"}
|
|
@@ -9,7 +9,8 @@ export interface DataTableToolbarProps<TData> {
|
|
|
9
9
|
onResetColumns?: () => void;
|
|
10
10
|
columnRegistry?: ColumnRegistry<TData, unknown>;
|
|
11
11
|
onExport?: () => void;
|
|
12
|
+
onExportComplete?: (rowCount: number) => void;
|
|
12
13
|
options?: DataTableToolbarOptions;
|
|
13
14
|
}
|
|
14
|
-
export declare function DataTableToolbar<TData>({ table, loading, globalFilter, onGlobalFilterChange, columnRegistry, onResetColumns, onExport, options, }: DataTableToolbarProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare function DataTableToolbar<TData>({ table, loading, globalFilter, onGlobalFilterChange, columnRegistry, onResetColumns, onExport, onExportComplete, options, }: DataTableToolbarProps<TData>): import("react/jsx-runtime").JSX.Element;
|
|
15
16
|
//# sourceMappingURL=DataTableToolbar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableToolbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/data-table/toolbar/DataTableToolbar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,IAAI,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAGpE,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"DataTableToolbar.d.ts","sourceRoot":"","sources":["../../../../../src/components/ui/data-table/toolbar/DataTableToolbar.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,IAAI,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAGpE,OAAO,KAAK,EACV,cAAc,EAEf,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAEV,uBAAuB,EACxB,MAAM,UAAU,CAAC;AAKlB,MAAM,WAAW,qBAAqB,CAAC,KAAK;IAC1C,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,CAAC;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,oBAAoB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,cAAc,CAAC,EAAE,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAChD,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,OAAO,CAAC,EAAE,uBAAuB,CAAC;CACnC;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,EACtC,KAAK,EACL,OAAe,EACf,YAAY,EACZ,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,QAAQ,EACR,gBAAgB,EAChB,OAAO,GACR,EAAE,qBAAqB,CAAC,KAAK,CAAC,2CA4K9B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { ColumnDef, SortingState, VisibilityState, ColumnOrderState, ColumnPinningState, RowSelectionState } from '@tanstack/react-table';
|
|
2
|
+
import type { ColumnDef, SortingState, VisibilityState, ColumnOrderState, ColumnPinningState, RowSelectionState, Row } from '@tanstack/react-table';
|
|
3
3
|
import type { ColumnRegistry } from './metadata/ColumnRegistry';
|
|
4
4
|
export interface DataTableInitialState {
|
|
5
5
|
sorting?: SortingState;
|
|
@@ -8,6 +8,16 @@ export interface DataTableInitialState {
|
|
|
8
8
|
columnPinning?: ColumnPinningState;
|
|
9
9
|
rowSelection?: RowSelectionState;
|
|
10
10
|
}
|
|
11
|
+
export interface SearchParameters {
|
|
12
|
+
threshold?: number;
|
|
13
|
+
maxResults?: number;
|
|
14
|
+
}
|
|
15
|
+
export interface DataTableToolbarContext {
|
|
16
|
+
globalFilter: string;
|
|
17
|
+
onSearchChange?: (value: string) => void;
|
|
18
|
+
onSearchSubmit?: (value: string, params?: SearchParameters) => void;
|
|
19
|
+
loading?: boolean;
|
|
20
|
+
}
|
|
11
21
|
export interface DataTableToolbarOptions {
|
|
12
22
|
search?: boolean;
|
|
13
23
|
sortMenu?: boolean;
|
|
@@ -15,26 +25,66 @@ export interface DataTableToolbarOptions {
|
|
|
15
25
|
filtersMenu?: boolean;
|
|
16
26
|
export?: boolean;
|
|
17
27
|
leftControls?: React.ReactNode;
|
|
18
|
-
belowControls?: React.ReactNode;
|
|
28
|
+
belowControls?: React.ReactNode | ((ctx: DataTableToolbarContext) => React.ReactNode);
|
|
29
|
+
onSearchChange?: (value: string) => void;
|
|
30
|
+
onSearchSubmit?: (value: string, params?: SearchParameters) => void;
|
|
31
|
+
disableGlobalFilter?: boolean;
|
|
19
32
|
}
|
|
20
33
|
export interface DataTableProps<TData, TValue> {
|
|
21
|
-
columns: ColumnDef<TData, TValue>[];
|
|
22
|
-
data: TData[];
|
|
23
|
-
loading?: boolean;
|
|
24
|
-
columnRegistry?: ColumnRegistry<TData, unknown>;
|
|
25
|
-
initialState?: DataTableInitialState;
|
|
26
|
-
tableId?: string;
|
|
27
|
-
toolbar?: DataTableToolbarOptions;
|
|
34
|
+
readonly columns: ColumnDef<TData, TValue>[];
|
|
35
|
+
readonly data: TData[];
|
|
36
|
+
readonly loading?: boolean;
|
|
37
|
+
readonly columnRegistry?: ColumnRegistry<TData, unknown>;
|
|
38
|
+
readonly initialState?: DataTableInitialState;
|
|
39
|
+
readonly tableId?: string;
|
|
40
|
+
readonly toolbar?: DataTableToolbarOptions;
|
|
28
41
|
/**
|
|
29
42
|
* Optional custom empty state to render when explicitly forced via `forceEmptyState`.
|
|
30
43
|
* This is intended for true no-data scenarios (e.g., brand-new table) and not for
|
|
31
44
|
* filter-result empty states.
|
|
32
45
|
*/
|
|
33
|
-
emptyState?: React.ReactNode;
|
|
46
|
+
readonly emptyState?: React.ReactNode;
|
|
34
47
|
/**
|
|
35
48
|
* When true (and not loading), replaces the table content area with `emptyState` and hides pagination.
|
|
36
49
|
* This allows distinguishing between "no documents exist" vs. "filters yielded no rows".
|
|
37
50
|
*/
|
|
38
|
-
forceEmptyState?: boolean;
|
|
51
|
+
readonly forceEmptyState?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Enable server-side pagination. When true, the table expects the server to handle pagination.
|
|
54
|
+
* The `data` prop should contain only the current page's data, and `pageCount` must be provided.
|
|
55
|
+
*/
|
|
56
|
+
readonly manualPagination?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Total number of pages when using server-side pagination.
|
|
59
|
+
* Required when `manualPagination` is true.
|
|
60
|
+
*/
|
|
61
|
+
readonly pageCount?: number;
|
|
62
|
+
/**
|
|
63
|
+
* Total number of rows across all pages when using server-side pagination.
|
|
64
|
+
* Used for displaying "Showing X to Y of Z items" in pagination footer.
|
|
65
|
+
* If not provided, will be calculated from `pageCount * pageSize`.
|
|
66
|
+
*/
|
|
67
|
+
readonly totalRowCount?: number;
|
|
68
|
+
/**
|
|
69
|
+
* Event handlers for user interactions
|
|
70
|
+
*/
|
|
71
|
+
readonly onRowSelectionChange?: (selectedRows: TData[], selectedRowIds: Record<string, boolean>) => void;
|
|
72
|
+
readonly onSortingChange?: (sorting: SortingState) => void;
|
|
73
|
+
readonly onPaginationChange?: (pageIndex: number, pageSize: number) => void;
|
|
74
|
+
readonly onColumnVisibilityChange?: (visibility: VisibilityState) => void;
|
|
75
|
+
readonly onColumnOrderChange?: (order: string[]) => void;
|
|
76
|
+
readonly onBatchAction?: (action: string, selectedRows: TData[]) => void;
|
|
77
|
+
readonly onRowClick?: (row: TData, rowIndex: number) => void;
|
|
78
|
+
readonly onExportComplete?: (rowCount: number) => void;
|
|
79
|
+
/**
|
|
80
|
+
* Custom global filter function that overrides the default TanStack Table global filter.
|
|
81
|
+
* When provided, this function will be used instead of the default filter behavior.
|
|
82
|
+
*
|
|
83
|
+
* @param row - The TanStack Table Row object (use row.original to access the data)
|
|
84
|
+
* @param columnId - The column ID (typically not used in global filtering)
|
|
85
|
+
* @param filterValue - The current global filter value (search text)
|
|
86
|
+
* @returns true if the row should be included in filtered results
|
|
87
|
+
*/
|
|
88
|
+
readonly customGlobalFilterFn?: (row: Row<TData>, columnId: string, filterValue: unknown) => boolean;
|
|
39
89
|
}
|
|
40
90
|
//# sourceMappingURL=types.d.ts.map
|