@geomak/ui 7.9.0 → 7.11.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/index.cjs +545 -431
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +47 -5
- package/dist/index.d.ts +47 -5
- package/dist/index.js +188 -74
- package/dist/index.js.map +1 -1
- package/dist/styles.css +9 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2689,10 +2689,14 @@ interface PdfViewerProps {
|
|
|
2689
2689
|
}) => void;
|
|
2690
2690
|
onError?: (err: Error) => void;
|
|
2691
2691
|
onPageChange?: (page: number) => void;
|
|
2692
|
+
/** Overall height. Default 600. */
|
|
2693
|
+
height?: number | string;
|
|
2694
|
+
/** Overall width. Defaults to filling the container. */
|
|
2695
|
+
width?: number | string;
|
|
2692
2696
|
className?: string;
|
|
2693
2697
|
style?: react__default.CSSProperties;
|
|
2694
2698
|
}
|
|
2695
|
-
declare function PdfViewer({ source, remote, initialPage, zoom, toolbar, thumbnails, textLayer, workerSrc, onLoad, onError, onPageChange, className, style, }: PdfViewerProps): react_jsx_runtime.JSX.Element;
|
|
2699
|
+
declare function PdfViewer({ source, remote, initialPage, zoom, toolbar, thumbnails, textLayer, workerSrc, onLoad, onError, onPageChange, height, width, className, style, }: PdfViewerProps): react_jsx_runtime.JSX.Element;
|
|
2696
2700
|
|
|
2697
2701
|
type CellValue = string | number | boolean | null;
|
|
2698
2702
|
interface GridColumn {
|
|
@@ -2707,6 +2711,13 @@ interface GridColumn {
|
|
|
2707
2711
|
align?: 'left' | 'center' | 'right';
|
|
2708
2712
|
/** Per-column override of the grid-wide `editable`. */
|
|
2709
2713
|
editable?: boolean;
|
|
2714
|
+
/** Per-column override of the grid-wide `sortable`. */
|
|
2715
|
+
sortable?: boolean;
|
|
2716
|
+
}
|
|
2717
|
+
type GridSortDirection = 'asc' | 'desc';
|
|
2718
|
+
interface GridSortState {
|
|
2719
|
+
key: string;
|
|
2720
|
+
dir: GridSortDirection;
|
|
2710
2721
|
}
|
|
2711
2722
|
interface DataGridProps {
|
|
2712
2723
|
columns: GridColumn[];
|
|
@@ -2718,14 +2729,29 @@ interface DataGridProps {
|
|
|
2718
2729
|
headerHeight?: number;
|
|
2719
2730
|
/** Viewport height. Default 480. */
|
|
2720
2731
|
height?: number | string;
|
|
2732
|
+
/** Viewport width. Defaults to filling the container. */
|
|
2733
|
+
width?: number | string;
|
|
2721
2734
|
/** Allow value editing (double-click a cell). Default false. */
|
|
2722
2735
|
editable?: boolean;
|
|
2736
|
+
/** Click headers to sort. Default false. Override per-column via `GridColumn.sortable`. */
|
|
2737
|
+
sortable?: boolean;
|
|
2738
|
+
/** Controlled sort. Omit for uncontrolled (internal) sorting. */
|
|
2739
|
+
sort?: GridSortState | null;
|
|
2740
|
+
/** Fires when the sort changes (header click). */
|
|
2741
|
+
onSortChange?: (sort: GridSortState | null) => void;
|
|
2723
2742
|
/** Window rows/columns. Default true. Off renders everything (small grids/tests). */
|
|
2724
2743
|
virtualize?: boolean;
|
|
2725
2744
|
/** Rows/cols rendered beyond the viewport each side. Default 4. */
|
|
2726
2745
|
overscan?: number;
|
|
2727
2746
|
/** Show the left row-number gutter. Default true. */
|
|
2728
2747
|
rowNumbers?: boolean;
|
|
2748
|
+
/**
|
|
2749
|
+
* Blank rows rendered below the data, like a real spreadsheet's empty grid.
|
|
2750
|
+
* Default 0. When `editable`, typing into one emits `onCellEdit` with a
|
|
2751
|
+
* `row` index at/after `rows.length` so the consumer can append the row.
|
|
2752
|
+
*/
|
|
2753
|
+
trailingRows?: number;
|
|
2754
|
+
/** `row` is the index into `rows` (stable across sorting; may equal `rows.length`+ for a blank trailing row). */
|
|
2729
2755
|
onCellEdit?: (e: {
|
|
2730
2756
|
row: number;
|
|
2731
2757
|
column: string;
|
|
@@ -2747,7 +2773,7 @@ interface DataGridProps {
|
|
|
2747
2773
|
* `onCellEdit` on commit. Wrap it with {@link Spreadsheet} for multi-sheet
|
|
2748
2774
|
* switching, file parsing and export.
|
|
2749
2775
|
*/
|
|
2750
|
-
declare function DataGrid({ columns, rows, rowHeight, headerHeight, height, editable, virtualize, overscan, rowNumbers, onCellEdit, className, style, emptyState, }: DataGridProps): react_jsx_runtime.JSX.Element;
|
|
2776
|
+
declare function DataGrid({ columns, rows, rowHeight, headerHeight, height, width, editable, sortable, sort: sortProp, onSortChange, virtualize, overscan, rowNumbers, trailingRows, onCellEdit, className, style, emptyState, }: DataGridProps): react_jsx_runtime.JSX.Element;
|
|
2751
2777
|
|
|
2752
2778
|
interface Cell {
|
|
2753
2779
|
value: CellValue;
|
|
@@ -2777,6 +2803,16 @@ interface SpreadsheetProps {
|
|
|
2777
2803
|
fileName?: string;
|
|
2778
2804
|
/** Default true. */
|
|
2779
2805
|
virtualize?: boolean;
|
|
2806
|
+
/** Click column headers to sort. Default true. */
|
|
2807
|
+
sortable?: boolean;
|
|
2808
|
+
/** Blank rows kept below the data (the spreadsheet "slack"). Default 50. */
|
|
2809
|
+
emptyRows?: number;
|
|
2810
|
+
/** Show a “+” to add a blank sheet. Defaults to `editable`. */
|
|
2811
|
+
allowAddSheet?: boolean;
|
|
2812
|
+
/** Overall height. Default 480. */
|
|
2813
|
+
height?: number | string;
|
|
2814
|
+
/** Overall width. Defaults to filling the container. */
|
|
2815
|
+
width?: number | string;
|
|
2780
2816
|
className?: string;
|
|
2781
2817
|
style?: react__default.CSSProperties;
|
|
2782
2818
|
}
|
|
@@ -2789,7 +2825,7 @@ interface SpreadsheetProps {
|
|
|
2789
2825
|
* Exports to multi-sheet `.xlsx`, `.csv` (active sheet, BOM-prefixed) or a
|
|
2790
2826
|
* paginated table `.pdf` (jsPDF, lazy).
|
|
2791
2827
|
*/
|
|
2792
|
-
declare function Spreadsheet({ source, remote, editable, onCellEdit, onChange, export: exportFormats, fileName, virtualize, className, style, }: SpreadsheetProps): react_jsx_runtime.JSX.Element;
|
|
2828
|
+
declare function Spreadsheet({ source, remote, editable, onCellEdit, onChange, export: exportFormats, fileName, virtualize, sortable, emptyRows, allowAddSheet, height, width, className, style, }: SpreadsheetProps): react_jsx_runtime.JSX.Element;
|
|
2793
2829
|
|
|
2794
2830
|
interface ThemeSwitchProps {
|
|
2795
2831
|
checked: boolean;
|
|
@@ -3975,6 +4011,12 @@ interface DropdownProps {
|
|
|
3975
4011
|
size?: FieldSize;
|
|
3976
4012
|
/** Extra classes merged onto the component root. */
|
|
3977
4013
|
className?: string;
|
|
4014
|
+
/**
|
|
4015
|
+
* DOM node to portal the options menu into. Defaults to the nearest
|
|
4016
|
+
* Modal/Drawer content (so the list scrolls inside a dialog's scroll-lock),
|
|
4017
|
+
* falling back to `document.body`. Set explicitly to override.
|
|
4018
|
+
*/
|
|
4019
|
+
container?: HTMLElement;
|
|
3978
4020
|
}
|
|
3979
4021
|
/**
|
|
3980
4022
|
* Select / multi-select dropdown powered by Radix Popover.
|
|
@@ -3991,7 +4033,7 @@ interface DropdownProps {
|
|
|
3991
4033
|
* // Multi-select
|
|
3992
4034
|
* <Dropdown isMultiselect label="Fuels" items={fuels} value={form.fuels} onChange={handleChange} />
|
|
3993
4035
|
*/
|
|
3994
|
-
declare function Dropdown({ isMultiselect, hasSearch, label, name, value, onChange, disabled, layout, helperText, required, errorMessage, style, htmlFor, items, labelStyle, placeholder, size, className, }: DropdownProps): react_jsx_runtime.JSX.Element;
|
|
4036
|
+
declare function Dropdown({ isMultiselect, hasSearch, label, name, value, onChange, disabled, layout, helperText, required, errorMessage, style, htmlFor, items, labelStyle, placeholder, size, className, container, }: DropdownProps): react_jsx_runtime.JSX.Element;
|
|
3995
4037
|
|
|
3996
4038
|
interface AutoCompleteItem {
|
|
3997
4039
|
key: string;
|
|
@@ -5699,4 +5741,4 @@ declare function expiryError(value: string, now?: Date): string | undefined;
|
|
|
5699
5741
|
/** Validate the CVV against the detected brand's expected length. */
|
|
5700
5742
|
declare function cvvError(value: string, cardNumber: string): string | undefined;
|
|
5701
5743
|
|
|
5702
|
-
export { Accordion, type AccordionItemProps, type AccordionProps, AppShell, type AppShellProps, AutoComplete, type AutoCompleteProps, Avatar, type AvatarProps, type AvatarShape, type AvatarSize, type AvatarStatus, Badge, type BadgeProps, type BadgeSize, type BadgeTone, type BadgeVariant, Banner, type BannerProps, type BannerTone, Blog, type BlogPost, type BlogProps, Box, type BoxBackground, type BoxBorder, type BoxProps, type BoxRadius, type BoxShadow, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, type Breakpoint, type BreakpointState, Button, type ButtonProps, CARD_BRANDS, Card, type CardBodyProps, type CardBrand, CardCarousel, type CardCarouselProps, type CardFooterProps, type CardHeaderProps, type CardMediaProps, type CardProps, Cart, CartButton, type CartButtonProps, type CartContextValue, type CartItemInput, type CartLineItem, type CartProps, CartProvider, type CartProviderProps, type CartSummaryRow, Catalog, CatalogCarousel, type CatalogCarouselProps, CatalogGrid, type CatalogGridProps, type CatalogProps, type Cell, type CellEditInfo, type CellValue, Chat, type ChatMessage, type ChatProps, Checkbox, type CheckboxProps, Checkout, type CheckoutProps, type ClassValue, ColorPicker, type ColorPickerProps, type ConsentChoice, ContextMenu, type ContextMenuActionItem, type ContextMenuPosition, type ContextMenuProps, CookieConsent, type CookieConsentProps, CreditCardForm, type CreditCardFormProps, type CreditCardValue, DataGrid, type DataGridProps, type DatePickerProps, type DateRange, DateRangePicker, type DateRangePickerProps, type DateRangePreset, type DeltaDirection, Drawer, type DrawerProps, type DrawerSize, Dropdown, type DropdownItem, type DropdownProps, type EditorArgs, EmptyCart, type EmptyCartProps, type ErrorMap, type ExpandRowOptions, FAB, type FABAction, type FABPosition, type FABProps, type FABSize, type FABTone, FadingBase, type FadingBaseProps, type Feature, FeatureGrid, type FeatureGridProps, Field, type FieldArrayItem, type FieldBindings, FieldHelpIcon, type FieldKind, FieldLabel, type FieldLabelProps, type FieldProps, type FieldRule, type FieldRules, type FieldShellOptions, type FieldSize, type FieldSnapshot, FileInput, type FileInputProps, type FileSource, Flex, type FlexAlign, type FlexDirection, type FlexJustify, type FlexProps, type FlexWrap, Form, FormContext, FormField, type FormFieldProps, type FormProps, FormStore, type FormStoreOptions, type FormValues, Grid, GridCard, type GridCardItem, type GridCardProps, type GridColumn, type GridProps, type GridSource, IconButton, type IconButtonProps, Jumbotron, type JumbotronBackground, type JumbotronLayout, type JumbotronProps, type JwtResult, Kbd, type KbdProps, type KbdSize, LeadCapture, type LeadCaptureProps, List, type ListItem, type ListProps, LoadingSpinner, type LoadingSpinnerProps, LogoutTimer, type LogoutTimerProps, MegaMenu, type MegaMenuFeaturedProps, type MegaMenuItemProps, type MegaMenuLinkProps, type MegaMenuPanelProps, type MegaMenuProps, type MegaMenuSectionProps, MenuButton, type MenuButtonItem, type MenuButtonProps, Modal, type ModalProps, type ModalSize, type NotificationPayload, NotificationProvider, NumberInput, type NumberInputProps, OpaqueGridCard, type OpaqueGridCardProps, OtpInput, type OtpInputProps, type PaginationOptions, Parallax, type ParallaxProps, Password, type PasswordProps, type PasswordRule, type PasswordScore, PasswordStrength, type PasswordStrengthProps, type PasswordStrengthResult, PdfViewer, type PdfViewerProps, PopConfirm, type PopConfirmProps, type PopConfirmTone, Portal, type PortalProps, type PricingPlan, PricingPlans, type PricingPlansProps, RadioGroup, type RadioGroupProps, type RadioOption, RadioTile, type RadioTileOption, type RadioTileProps, Rating, type RatingProps, type RemoteSourceOptions, type RulesMap, ScalableContainer, type ScalableContainerProps, Scheduler, type SchedulerEvent, type SchedulerProps, type SchedulerRange, type SchedulerView, SearchInput, type SearchInputProps, type SearchOptions, SecureLayout, type SecureLayoutProps, SegmentedControl, type SegmentedControlProps, type SegmentedOption, type SheetData, Sidebar, type SidebarItem, type SidebarProps, type SidebarSection, SkeletonBox, type SkeletonBoxProps, SkeletonCard, type SkeletonCardProps, SkeletonCircle, type SkeletonCircleProps, SkeletonText, type SkeletonTextProps, type Slide, SlideShow, type SlideShowProps, Slider, type SliderMark, type SliderProps, type SliderValue, type SocialLink, type SocialPlatform, Socials, type SocialsProps, type SortDirection, type SortState, type Spacing, Spreadsheet, type SpreadsheetProps, Statistic, type StatisticDelta, type StatisticProps, type StatisticSize, Stepper, type StepperActiveStatus, type StepperProps, type StepperStep, Switch, type SwitchInputProps, Table, type TableColumn, type TableProps, Tabs, type TabsAddProps, type TabsListProps, type TabsOrientation, type TabsPanelProps, type TabsProps, type TabsSize, type TabsTriggerProps, type TabsVariant, TagsInput, type TagsInputProps, DatePicker as Temporal, type TemporalPickerProps, type Testimonial, Testimonials, type TestimonialsProps, TextArea, type TextAreaProps, TextInput, type TextInputProps, type ThemeColors, type ThemeConfig, type ThemeDensity, type ThemeMotion, ThemeProvider, type ThemeProviderProps, type ThemeRadius, type ThemeShadows, ThemeSwitch, type ThemeSwitchProps, type ThemeTypography, TimePicker, type TimePickerProps, Timeline, type TimelineEvent, type TimelineProps, type TimelineStatus, Tooltip, type TooltipProps, TooltipProvider, TopBar, type TopBarProps, Tree, type TreeItemClickPayload, type TreeNode, type TreeProps, TreeSelect, type TreeSelectProps, Typography, type TypographyAlign, type TypographyColor, type TypographyProps, type TypographyVariant, type TypographyWeight, type UseFieldArrayReturn, type UseFormFieldOptions, type UseFormReturn, type ValidateTrigger, Video, type VideoProps, VirtualList, type VirtualListProps, Wizard, type WizardProps, type WizardStep, cardNumberError, cvvError, cx, defaultPasswordRules, detectBrand, expiryError, fieldShell, formatCardNumber, formatExpiry, isRequired, luhnValid, onlyDigits, patterns, runFieldRules, scorePassword, useBreakpoint, useCart, useFieldArray, useForm, useFormField, useFormStore, useJwt, useLocalStorage, useMediaQuery, useNotification };
|
|
5744
|
+
export { Accordion, type AccordionItemProps, type AccordionProps, AppShell, type AppShellProps, AutoComplete, type AutoCompleteProps, Avatar, type AvatarProps, type AvatarShape, type AvatarSize, type AvatarStatus, Badge, type BadgeProps, type BadgeSize, type BadgeTone, type BadgeVariant, Banner, type BannerProps, type BannerTone, Blog, type BlogPost, type BlogProps, Box, type BoxBackground, type BoxBorder, type BoxProps, type BoxRadius, type BoxShadow, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, type Breakpoint, type BreakpointState, Button, type ButtonProps, CARD_BRANDS, Card, type CardBodyProps, type CardBrand, CardCarousel, type CardCarouselProps, type CardFooterProps, type CardHeaderProps, type CardMediaProps, type CardProps, Cart, CartButton, type CartButtonProps, type CartContextValue, type CartItemInput, type CartLineItem, type CartProps, CartProvider, type CartProviderProps, type CartSummaryRow, Catalog, CatalogCarousel, type CatalogCarouselProps, CatalogGrid, type CatalogGridProps, type CatalogProps, type Cell, type CellEditInfo, type CellValue, Chat, type ChatMessage, type ChatProps, Checkbox, type CheckboxProps, Checkout, type CheckoutProps, type ClassValue, ColorPicker, type ColorPickerProps, type ConsentChoice, ContextMenu, type ContextMenuActionItem, type ContextMenuPosition, type ContextMenuProps, CookieConsent, type CookieConsentProps, CreditCardForm, type CreditCardFormProps, type CreditCardValue, DataGrid, type DataGridProps, type DatePickerProps, type DateRange, DateRangePicker, type DateRangePickerProps, type DateRangePreset, type DeltaDirection, Drawer, type DrawerProps, type DrawerSize, Dropdown, type DropdownItem, type DropdownProps, type EditorArgs, EmptyCart, type EmptyCartProps, type ErrorMap, type ExpandRowOptions, FAB, type FABAction, type FABPosition, type FABProps, type FABSize, type FABTone, FadingBase, type FadingBaseProps, type Feature, FeatureGrid, type FeatureGridProps, Field, type FieldArrayItem, type FieldBindings, FieldHelpIcon, type FieldKind, FieldLabel, type FieldLabelProps, type FieldProps, type FieldRule, type FieldRules, type FieldShellOptions, type FieldSize, type FieldSnapshot, FileInput, type FileInputProps, type FileSource, Flex, type FlexAlign, type FlexDirection, type FlexJustify, type FlexProps, type FlexWrap, Form, FormContext, FormField, type FormFieldProps, type FormProps, FormStore, type FormStoreOptions, type FormValues, Grid, GridCard, type GridCardItem, type GridCardProps, type GridColumn, type GridProps, type GridSortDirection, type GridSortState, type GridSource, IconButton, type IconButtonProps, Jumbotron, type JumbotronBackground, type JumbotronLayout, type JumbotronProps, type JwtResult, Kbd, type KbdProps, type KbdSize, LeadCapture, type LeadCaptureProps, List, type ListItem, type ListProps, LoadingSpinner, type LoadingSpinnerProps, LogoutTimer, type LogoutTimerProps, MegaMenu, type MegaMenuFeaturedProps, type MegaMenuItemProps, type MegaMenuLinkProps, type MegaMenuPanelProps, type MegaMenuProps, type MegaMenuSectionProps, MenuButton, type MenuButtonItem, type MenuButtonProps, Modal, type ModalProps, type ModalSize, type NotificationPayload, NotificationProvider, NumberInput, type NumberInputProps, OpaqueGridCard, type OpaqueGridCardProps, OtpInput, type OtpInputProps, type PaginationOptions, Parallax, type ParallaxProps, Password, type PasswordProps, type PasswordRule, type PasswordScore, PasswordStrength, type PasswordStrengthProps, type PasswordStrengthResult, PdfViewer, type PdfViewerProps, PopConfirm, type PopConfirmProps, type PopConfirmTone, Portal, type PortalProps, type PricingPlan, PricingPlans, type PricingPlansProps, RadioGroup, type RadioGroupProps, type RadioOption, RadioTile, type RadioTileOption, type RadioTileProps, Rating, type RatingProps, type RemoteSourceOptions, type RulesMap, ScalableContainer, type ScalableContainerProps, Scheduler, type SchedulerEvent, type SchedulerProps, type SchedulerRange, type SchedulerView, SearchInput, type SearchInputProps, type SearchOptions, SecureLayout, type SecureLayoutProps, SegmentedControl, type SegmentedControlProps, type SegmentedOption, type SheetData, Sidebar, type SidebarItem, type SidebarProps, type SidebarSection, SkeletonBox, type SkeletonBoxProps, SkeletonCard, type SkeletonCardProps, SkeletonCircle, type SkeletonCircleProps, SkeletonText, type SkeletonTextProps, type Slide, SlideShow, type SlideShowProps, Slider, type SliderMark, type SliderProps, type SliderValue, type SocialLink, type SocialPlatform, Socials, type SocialsProps, type SortDirection, type SortState, type Spacing, Spreadsheet, type SpreadsheetProps, Statistic, type StatisticDelta, type StatisticProps, type StatisticSize, Stepper, type StepperActiveStatus, type StepperProps, type StepperStep, Switch, type SwitchInputProps, Table, type TableColumn, type TableProps, Tabs, type TabsAddProps, type TabsListProps, type TabsOrientation, type TabsPanelProps, type TabsProps, type TabsSize, type TabsTriggerProps, type TabsVariant, TagsInput, type TagsInputProps, DatePicker as Temporal, type TemporalPickerProps, type Testimonial, Testimonials, type TestimonialsProps, TextArea, type TextAreaProps, TextInput, type TextInputProps, type ThemeColors, type ThemeConfig, type ThemeDensity, type ThemeMotion, ThemeProvider, type ThemeProviderProps, type ThemeRadius, type ThemeShadows, ThemeSwitch, type ThemeSwitchProps, type ThemeTypography, TimePicker, type TimePickerProps, Timeline, type TimelineEvent, type TimelineProps, type TimelineStatus, Tooltip, type TooltipProps, TooltipProvider, TopBar, type TopBarProps, Tree, type TreeItemClickPayload, type TreeNode, type TreeProps, TreeSelect, type TreeSelectProps, Typography, type TypographyAlign, type TypographyColor, type TypographyProps, type TypographyVariant, type TypographyWeight, type UseFieldArrayReturn, type UseFormFieldOptions, type UseFormReturn, type ValidateTrigger, Video, type VideoProps, VirtualList, type VirtualListProps, Wizard, type WizardProps, type WizardStep, cardNumberError, cvvError, cx, defaultPasswordRules, detectBrand, expiryError, fieldShell, formatCardNumber, formatExpiry, isRequired, luhnValid, onlyDigits, patterns, runFieldRules, scorePassword, useBreakpoint, useCart, useFieldArray, useForm, useFormField, useFormStore, useJwt, useLocalStorage, useMediaQuery, useNotification };
|
package/dist/index.d.ts
CHANGED
|
@@ -2689,10 +2689,14 @@ interface PdfViewerProps {
|
|
|
2689
2689
|
}) => void;
|
|
2690
2690
|
onError?: (err: Error) => void;
|
|
2691
2691
|
onPageChange?: (page: number) => void;
|
|
2692
|
+
/** Overall height. Default 600. */
|
|
2693
|
+
height?: number | string;
|
|
2694
|
+
/** Overall width. Defaults to filling the container. */
|
|
2695
|
+
width?: number | string;
|
|
2692
2696
|
className?: string;
|
|
2693
2697
|
style?: react__default.CSSProperties;
|
|
2694
2698
|
}
|
|
2695
|
-
declare function PdfViewer({ source, remote, initialPage, zoom, toolbar, thumbnails, textLayer, workerSrc, onLoad, onError, onPageChange, className, style, }: PdfViewerProps): react_jsx_runtime.JSX.Element;
|
|
2699
|
+
declare function PdfViewer({ source, remote, initialPage, zoom, toolbar, thumbnails, textLayer, workerSrc, onLoad, onError, onPageChange, height, width, className, style, }: PdfViewerProps): react_jsx_runtime.JSX.Element;
|
|
2696
2700
|
|
|
2697
2701
|
type CellValue = string | number | boolean | null;
|
|
2698
2702
|
interface GridColumn {
|
|
@@ -2707,6 +2711,13 @@ interface GridColumn {
|
|
|
2707
2711
|
align?: 'left' | 'center' | 'right';
|
|
2708
2712
|
/** Per-column override of the grid-wide `editable`. */
|
|
2709
2713
|
editable?: boolean;
|
|
2714
|
+
/** Per-column override of the grid-wide `sortable`. */
|
|
2715
|
+
sortable?: boolean;
|
|
2716
|
+
}
|
|
2717
|
+
type GridSortDirection = 'asc' | 'desc';
|
|
2718
|
+
interface GridSortState {
|
|
2719
|
+
key: string;
|
|
2720
|
+
dir: GridSortDirection;
|
|
2710
2721
|
}
|
|
2711
2722
|
interface DataGridProps {
|
|
2712
2723
|
columns: GridColumn[];
|
|
@@ -2718,14 +2729,29 @@ interface DataGridProps {
|
|
|
2718
2729
|
headerHeight?: number;
|
|
2719
2730
|
/** Viewport height. Default 480. */
|
|
2720
2731
|
height?: number | string;
|
|
2732
|
+
/** Viewport width. Defaults to filling the container. */
|
|
2733
|
+
width?: number | string;
|
|
2721
2734
|
/** Allow value editing (double-click a cell). Default false. */
|
|
2722
2735
|
editable?: boolean;
|
|
2736
|
+
/** Click headers to sort. Default false. Override per-column via `GridColumn.sortable`. */
|
|
2737
|
+
sortable?: boolean;
|
|
2738
|
+
/** Controlled sort. Omit for uncontrolled (internal) sorting. */
|
|
2739
|
+
sort?: GridSortState | null;
|
|
2740
|
+
/** Fires when the sort changes (header click). */
|
|
2741
|
+
onSortChange?: (sort: GridSortState | null) => void;
|
|
2723
2742
|
/** Window rows/columns. Default true. Off renders everything (small grids/tests). */
|
|
2724
2743
|
virtualize?: boolean;
|
|
2725
2744
|
/** Rows/cols rendered beyond the viewport each side. Default 4. */
|
|
2726
2745
|
overscan?: number;
|
|
2727
2746
|
/** Show the left row-number gutter. Default true. */
|
|
2728
2747
|
rowNumbers?: boolean;
|
|
2748
|
+
/**
|
|
2749
|
+
* Blank rows rendered below the data, like a real spreadsheet's empty grid.
|
|
2750
|
+
* Default 0. When `editable`, typing into one emits `onCellEdit` with a
|
|
2751
|
+
* `row` index at/after `rows.length` so the consumer can append the row.
|
|
2752
|
+
*/
|
|
2753
|
+
trailingRows?: number;
|
|
2754
|
+
/** `row` is the index into `rows` (stable across sorting; may equal `rows.length`+ for a blank trailing row). */
|
|
2729
2755
|
onCellEdit?: (e: {
|
|
2730
2756
|
row: number;
|
|
2731
2757
|
column: string;
|
|
@@ -2747,7 +2773,7 @@ interface DataGridProps {
|
|
|
2747
2773
|
* `onCellEdit` on commit. Wrap it with {@link Spreadsheet} for multi-sheet
|
|
2748
2774
|
* switching, file parsing and export.
|
|
2749
2775
|
*/
|
|
2750
|
-
declare function DataGrid({ columns, rows, rowHeight, headerHeight, height, editable, virtualize, overscan, rowNumbers, onCellEdit, className, style, emptyState, }: DataGridProps): react_jsx_runtime.JSX.Element;
|
|
2776
|
+
declare function DataGrid({ columns, rows, rowHeight, headerHeight, height, width, editable, sortable, sort: sortProp, onSortChange, virtualize, overscan, rowNumbers, trailingRows, onCellEdit, className, style, emptyState, }: DataGridProps): react_jsx_runtime.JSX.Element;
|
|
2751
2777
|
|
|
2752
2778
|
interface Cell {
|
|
2753
2779
|
value: CellValue;
|
|
@@ -2777,6 +2803,16 @@ interface SpreadsheetProps {
|
|
|
2777
2803
|
fileName?: string;
|
|
2778
2804
|
/** Default true. */
|
|
2779
2805
|
virtualize?: boolean;
|
|
2806
|
+
/** Click column headers to sort. Default true. */
|
|
2807
|
+
sortable?: boolean;
|
|
2808
|
+
/** Blank rows kept below the data (the spreadsheet "slack"). Default 50. */
|
|
2809
|
+
emptyRows?: number;
|
|
2810
|
+
/** Show a “+” to add a blank sheet. Defaults to `editable`. */
|
|
2811
|
+
allowAddSheet?: boolean;
|
|
2812
|
+
/** Overall height. Default 480. */
|
|
2813
|
+
height?: number | string;
|
|
2814
|
+
/** Overall width. Defaults to filling the container. */
|
|
2815
|
+
width?: number | string;
|
|
2780
2816
|
className?: string;
|
|
2781
2817
|
style?: react__default.CSSProperties;
|
|
2782
2818
|
}
|
|
@@ -2789,7 +2825,7 @@ interface SpreadsheetProps {
|
|
|
2789
2825
|
* Exports to multi-sheet `.xlsx`, `.csv` (active sheet, BOM-prefixed) or a
|
|
2790
2826
|
* paginated table `.pdf` (jsPDF, lazy).
|
|
2791
2827
|
*/
|
|
2792
|
-
declare function Spreadsheet({ source, remote, editable, onCellEdit, onChange, export: exportFormats, fileName, virtualize, className, style, }: SpreadsheetProps): react_jsx_runtime.JSX.Element;
|
|
2828
|
+
declare function Spreadsheet({ source, remote, editable, onCellEdit, onChange, export: exportFormats, fileName, virtualize, sortable, emptyRows, allowAddSheet, height, width, className, style, }: SpreadsheetProps): react_jsx_runtime.JSX.Element;
|
|
2793
2829
|
|
|
2794
2830
|
interface ThemeSwitchProps {
|
|
2795
2831
|
checked: boolean;
|
|
@@ -3975,6 +4011,12 @@ interface DropdownProps {
|
|
|
3975
4011
|
size?: FieldSize;
|
|
3976
4012
|
/** Extra classes merged onto the component root. */
|
|
3977
4013
|
className?: string;
|
|
4014
|
+
/**
|
|
4015
|
+
* DOM node to portal the options menu into. Defaults to the nearest
|
|
4016
|
+
* Modal/Drawer content (so the list scrolls inside a dialog's scroll-lock),
|
|
4017
|
+
* falling back to `document.body`. Set explicitly to override.
|
|
4018
|
+
*/
|
|
4019
|
+
container?: HTMLElement;
|
|
3978
4020
|
}
|
|
3979
4021
|
/**
|
|
3980
4022
|
* Select / multi-select dropdown powered by Radix Popover.
|
|
@@ -3991,7 +4033,7 @@ interface DropdownProps {
|
|
|
3991
4033
|
* // Multi-select
|
|
3992
4034
|
* <Dropdown isMultiselect label="Fuels" items={fuels} value={form.fuels} onChange={handleChange} />
|
|
3993
4035
|
*/
|
|
3994
|
-
declare function Dropdown({ isMultiselect, hasSearch, label, name, value, onChange, disabled, layout, helperText, required, errorMessage, style, htmlFor, items, labelStyle, placeholder, size, className, }: DropdownProps): react_jsx_runtime.JSX.Element;
|
|
4036
|
+
declare function Dropdown({ isMultiselect, hasSearch, label, name, value, onChange, disabled, layout, helperText, required, errorMessage, style, htmlFor, items, labelStyle, placeholder, size, className, container, }: DropdownProps): react_jsx_runtime.JSX.Element;
|
|
3995
4037
|
|
|
3996
4038
|
interface AutoCompleteItem {
|
|
3997
4039
|
key: string;
|
|
@@ -5699,4 +5741,4 @@ declare function expiryError(value: string, now?: Date): string | undefined;
|
|
|
5699
5741
|
/** Validate the CVV against the detected brand's expected length. */
|
|
5700
5742
|
declare function cvvError(value: string, cardNumber: string): string | undefined;
|
|
5701
5743
|
|
|
5702
|
-
export { Accordion, type AccordionItemProps, type AccordionProps, AppShell, type AppShellProps, AutoComplete, type AutoCompleteProps, Avatar, type AvatarProps, type AvatarShape, type AvatarSize, type AvatarStatus, Badge, type BadgeProps, type BadgeSize, type BadgeTone, type BadgeVariant, Banner, type BannerProps, type BannerTone, Blog, type BlogPost, type BlogProps, Box, type BoxBackground, type BoxBorder, type BoxProps, type BoxRadius, type BoxShadow, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, type Breakpoint, type BreakpointState, Button, type ButtonProps, CARD_BRANDS, Card, type CardBodyProps, type CardBrand, CardCarousel, type CardCarouselProps, type CardFooterProps, type CardHeaderProps, type CardMediaProps, type CardProps, Cart, CartButton, type CartButtonProps, type CartContextValue, type CartItemInput, type CartLineItem, type CartProps, CartProvider, type CartProviderProps, type CartSummaryRow, Catalog, CatalogCarousel, type CatalogCarouselProps, CatalogGrid, type CatalogGridProps, type CatalogProps, type Cell, type CellEditInfo, type CellValue, Chat, type ChatMessage, type ChatProps, Checkbox, type CheckboxProps, Checkout, type CheckoutProps, type ClassValue, ColorPicker, type ColorPickerProps, type ConsentChoice, ContextMenu, type ContextMenuActionItem, type ContextMenuPosition, type ContextMenuProps, CookieConsent, type CookieConsentProps, CreditCardForm, type CreditCardFormProps, type CreditCardValue, DataGrid, type DataGridProps, type DatePickerProps, type DateRange, DateRangePicker, type DateRangePickerProps, type DateRangePreset, type DeltaDirection, Drawer, type DrawerProps, type DrawerSize, Dropdown, type DropdownItem, type DropdownProps, type EditorArgs, EmptyCart, type EmptyCartProps, type ErrorMap, type ExpandRowOptions, FAB, type FABAction, type FABPosition, type FABProps, type FABSize, type FABTone, FadingBase, type FadingBaseProps, type Feature, FeatureGrid, type FeatureGridProps, Field, type FieldArrayItem, type FieldBindings, FieldHelpIcon, type FieldKind, FieldLabel, type FieldLabelProps, type FieldProps, type FieldRule, type FieldRules, type FieldShellOptions, type FieldSize, type FieldSnapshot, FileInput, type FileInputProps, type FileSource, Flex, type FlexAlign, type FlexDirection, type FlexJustify, type FlexProps, type FlexWrap, Form, FormContext, FormField, type FormFieldProps, type FormProps, FormStore, type FormStoreOptions, type FormValues, Grid, GridCard, type GridCardItem, type GridCardProps, type GridColumn, type GridProps, type GridSource, IconButton, type IconButtonProps, Jumbotron, type JumbotronBackground, type JumbotronLayout, type JumbotronProps, type JwtResult, Kbd, type KbdProps, type KbdSize, LeadCapture, type LeadCaptureProps, List, type ListItem, type ListProps, LoadingSpinner, type LoadingSpinnerProps, LogoutTimer, type LogoutTimerProps, MegaMenu, type MegaMenuFeaturedProps, type MegaMenuItemProps, type MegaMenuLinkProps, type MegaMenuPanelProps, type MegaMenuProps, type MegaMenuSectionProps, MenuButton, type MenuButtonItem, type MenuButtonProps, Modal, type ModalProps, type ModalSize, type NotificationPayload, NotificationProvider, NumberInput, type NumberInputProps, OpaqueGridCard, type OpaqueGridCardProps, OtpInput, type OtpInputProps, type PaginationOptions, Parallax, type ParallaxProps, Password, type PasswordProps, type PasswordRule, type PasswordScore, PasswordStrength, type PasswordStrengthProps, type PasswordStrengthResult, PdfViewer, type PdfViewerProps, PopConfirm, type PopConfirmProps, type PopConfirmTone, Portal, type PortalProps, type PricingPlan, PricingPlans, type PricingPlansProps, RadioGroup, type RadioGroupProps, type RadioOption, RadioTile, type RadioTileOption, type RadioTileProps, Rating, type RatingProps, type RemoteSourceOptions, type RulesMap, ScalableContainer, type ScalableContainerProps, Scheduler, type SchedulerEvent, type SchedulerProps, type SchedulerRange, type SchedulerView, SearchInput, type SearchInputProps, type SearchOptions, SecureLayout, type SecureLayoutProps, SegmentedControl, type SegmentedControlProps, type SegmentedOption, type SheetData, Sidebar, type SidebarItem, type SidebarProps, type SidebarSection, SkeletonBox, type SkeletonBoxProps, SkeletonCard, type SkeletonCardProps, SkeletonCircle, type SkeletonCircleProps, SkeletonText, type SkeletonTextProps, type Slide, SlideShow, type SlideShowProps, Slider, type SliderMark, type SliderProps, type SliderValue, type SocialLink, type SocialPlatform, Socials, type SocialsProps, type SortDirection, type SortState, type Spacing, Spreadsheet, type SpreadsheetProps, Statistic, type StatisticDelta, type StatisticProps, type StatisticSize, Stepper, type StepperActiveStatus, type StepperProps, type StepperStep, Switch, type SwitchInputProps, Table, type TableColumn, type TableProps, Tabs, type TabsAddProps, type TabsListProps, type TabsOrientation, type TabsPanelProps, type TabsProps, type TabsSize, type TabsTriggerProps, type TabsVariant, TagsInput, type TagsInputProps, DatePicker as Temporal, type TemporalPickerProps, type Testimonial, Testimonials, type TestimonialsProps, TextArea, type TextAreaProps, TextInput, type TextInputProps, type ThemeColors, type ThemeConfig, type ThemeDensity, type ThemeMotion, ThemeProvider, type ThemeProviderProps, type ThemeRadius, type ThemeShadows, ThemeSwitch, type ThemeSwitchProps, type ThemeTypography, TimePicker, type TimePickerProps, Timeline, type TimelineEvent, type TimelineProps, type TimelineStatus, Tooltip, type TooltipProps, TooltipProvider, TopBar, type TopBarProps, Tree, type TreeItemClickPayload, type TreeNode, type TreeProps, TreeSelect, type TreeSelectProps, Typography, type TypographyAlign, type TypographyColor, type TypographyProps, type TypographyVariant, type TypographyWeight, type UseFieldArrayReturn, type UseFormFieldOptions, type UseFormReturn, type ValidateTrigger, Video, type VideoProps, VirtualList, type VirtualListProps, Wizard, type WizardProps, type WizardStep, cardNumberError, cvvError, cx, defaultPasswordRules, detectBrand, expiryError, fieldShell, formatCardNumber, formatExpiry, isRequired, luhnValid, onlyDigits, patterns, runFieldRules, scorePassword, useBreakpoint, useCart, useFieldArray, useForm, useFormField, useFormStore, useJwt, useLocalStorage, useMediaQuery, useNotification };
|
|
5744
|
+
export { Accordion, type AccordionItemProps, type AccordionProps, AppShell, type AppShellProps, AutoComplete, type AutoCompleteProps, Avatar, type AvatarProps, type AvatarShape, type AvatarSize, type AvatarStatus, Badge, type BadgeProps, type BadgeSize, type BadgeTone, type BadgeVariant, Banner, type BannerProps, type BannerTone, Blog, type BlogPost, type BlogProps, Box, type BoxBackground, type BoxBorder, type BoxProps, type BoxRadius, type BoxShadow, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, type Breakpoint, type BreakpointState, Button, type ButtonProps, CARD_BRANDS, Card, type CardBodyProps, type CardBrand, CardCarousel, type CardCarouselProps, type CardFooterProps, type CardHeaderProps, type CardMediaProps, type CardProps, Cart, CartButton, type CartButtonProps, type CartContextValue, type CartItemInput, type CartLineItem, type CartProps, CartProvider, type CartProviderProps, type CartSummaryRow, Catalog, CatalogCarousel, type CatalogCarouselProps, CatalogGrid, type CatalogGridProps, type CatalogProps, type Cell, type CellEditInfo, type CellValue, Chat, type ChatMessage, type ChatProps, Checkbox, type CheckboxProps, Checkout, type CheckoutProps, type ClassValue, ColorPicker, type ColorPickerProps, type ConsentChoice, ContextMenu, type ContextMenuActionItem, type ContextMenuPosition, type ContextMenuProps, CookieConsent, type CookieConsentProps, CreditCardForm, type CreditCardFormProps, type CreditCardValue, DataGrid, type DataGridProps, type DatePickerProps, type DateRange, DateRangePicker, type DateRangePickerProps, type DateRangePreset, type DeltaDirection, Drawer, type DrawerProps, type DrawerSize, Dropdown, type DropdownItem, type DropdownProps, type EditorArgs, EmptyCart, type EmptyCartProps, type ErrorMap, type ExpandRowOptions, FAB, type FABAction, type FABPosition, type FABProps, type FABSize, type FABTone, FadingBase, type FadingBaseProps, type Feature, FeatureGrid, type FeatureGridProps, Field, type FieldArrayItem, type FieldBindings, FieldHelpIcon, type FieldKind, FieldLabel, type FieldLabelProps, type FieldProps, type FieldRule, type FieldRules, type FieldShellOptions, type FieldSize, type FieldSnapshot, FileInput, type FileInputProps, type FileSource, Flex, type FlexAlign, type FlexDirection, type FlexJustify, type FlexProps, type FlexWrap, Form, FormContext, FormField, type FormFieldProps, type FormProps, FormStore, type FormStoreOptions, type FormValues, Grid, GridCard, type GridCardItem, type GridCardProps, type GridColumn, type GridProps, type GridSortDirection, type GridSortState, type GridSource, IconButton, type IconButtonProps, Jumbotron, type JumbotronBackground, type JumbotronLayout, type JumbotronProps, type JwtResult, Kbd, type KbdProps, type KbdSize, LeadCapture, type LeadCaptureProps, List, type ListItem, type ListProps, LoadingSpinner, type LoadingSpinnerProps, LogoutTimer, type LogoutTimerProps, MegaMenu, type MegaMenuFeaturedProps, type MegaMenuItemProps, type MegaMenuLinkProps, type MegaMenuPanelProps, type MegaMenuProps, type MegaMenuSectionProps, MenuButton, type MenuButtonItem, type MenuButtonProps, Modal, type ModalProps, type ModalSize, type NotificationPayload, NotificationProvider, NumberInput, type NumberInputProps, OpaqueGridCard, type OpaqueGridCardProps, OtpInput, type OtpInputProps, type PaginationOptions, Parallax, type ParallaxProps, Password, type PasswordProps, type PasswordRule, type PasswordScore, PasswordStrength, type PasswordStrengthProps, type PasswordStrengthResult, PdfViewer, type PdfViewerProps, PopConfirm, type PopConfirmProps, type PopConfirmTone, Portal, type PortalProps, type PricingPlan, PricingPlans, type PricingPlansProps, RadioGroup, type RadioGroupProps, type RadioOption, RadioTile, type RadioTileOption, type RadioTileProps, Rating, type RatingProps, type RemoteSourceOptions, type RulesMap, ScalableContainer, type ScalableContainerProps, Scheduler, type SchedulerEvent, type SchedulerProps, type SchedulerRange, type SchedulerView, SearchInput, type SearchInputProps, type SearchOptions, SecureLayout, type SecureLayoutProps, SegmentedControl, type SegmentedControlProps, type SegmentedOption, type SheetData, Sidebar, type SidebarItem, type SidebarProps, type SidebarSection, SkeletonBox, type SkeletonBoxProps, SkeletonCard, type SkeletonCardProps, SkeletonCircle, type SkeletonCircleProps, SkeletonText, type SkeletonTextProps, type Slide, SlideShow, type SlideShowProps, Slider, type SliderMark, type SliderProps, type SliderValue, type SocialLink, type SocialPlatform, Socials, type SocialsProps, type SortDirection, type SortState, type Spacing, Spreadsheet, type SpreadsheetProps, Statistic, type StatisticDelta, type StatisticProps, type StatisticSize, Stepper, type StepperActiveStatus, type StepperProps, type StepperStep, Switch, type SwitchInputProps, Table, type TableColumn, type TableProps, Tabs, type TabsAddProps, type TabsListProps, type TabsOrientation, type TabsPanelProps, type TabsProps, type TabsSize, type TabsTriggerProps, type TabsVariant, TagsInput, type TagsInputProps, DatePicker as Temporal, type TemporalPickerProps, type Testimonial, Testimonials, type TestimonialsProps, TextArea, type TextAreaProps, TextInput, type TextInputProps, type ThemeColors, type ThemeConfig, type ThemeDensity, type ThemeMotion, ThemeProvider, type ThemeProviderProps, type ThemeRadius, type ThemeShadows, ThemeSwitch, type ThemeSwitchProps, type ThemeTypography, TimePicker, type TimePickerProps, Timeline, type TimelineEvent, type TimelineProps, type TimelineStatus, Tooltip, type TooltipProps, TooltipProvider, TopBar, type TopBarProps, Tree, type TreeItemClickPayload, type TreeNode, type TreeProps, TreeSelect, type TreeSelectProps, Typography, type TypographyAlign, type TypographyColor, type TypographyProps, type TypographyVariant, type TypographyWeight, type UseFieldArrayReturn, type UseFormFieldOptions, type UseFormReturn, type ValidateTrigger, Video, type VideoProps, VirtualList, type VirtualListProps, Wizard, type WizardProps, type WizardStep, cardNumberError, cvvError, cx, defaultPasswordRules, detectBrand, expiryError, fieldShell, formatCardNumber, formatExpiry, isRequired, luhnValid, onlyDigits, patterns, runFieldRules, scorePassword, useBreakpoint, useCart, useFieldArray, useForm, useFormField, useFormStore, useJwt, useLocalStorage, useMediaQuery, useNotification };
|