@geomak/ui 7.8.0 → 7.10.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 +767 -515
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +48 -6
- package/dist/index.d.ts +48 -6
- package/dist/index.js +424 -172
- package/dist/index.js.map +1 -1
- package/dist/styles.css +16 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2678,25 +2678,46 @@ interface PdfViewerProps {
|
|
|
2678
2678
|
thumbnails?: boolean;
|
|
2679
2679
|
/** Selectable text layer. Default `true`. */
|
|
2680
2680
|
textLayer?: boolean;
|
|
2681
|
+
/**
|
|
2682
|
+
* Override the pdf.js worker URL (e.g. self-hosted for air-gapped / strict-CSP
|
|
2683
|
+
* deploys). Defaults to a version-pinned CDN build. Only the first mounted
|
|
2684
|
+
* viewer's value takes effect, since the worker is configured process-wide.
|
|
2685
|
+
*/
|
|
2686
|
+
workerSrc?: string;
|
|
2681
2687
|
onLoad?: (info: {
|
|
2682
2688
|
numPages: number;
|
|
2683
2689
|
}) => void;
|
|
2684
2690
|
onError?: (err: Error) => void;
|
|
2685
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;
|
|
2686
2696
|
className?: string;
|
|
2687
2697
|
style?: react__default.CSSProperties;
|
|
2688
2698
|
}
|
|
2689
|
-
declare function PdfViewer({ source, remote, initialPage, zoom, toolbar, thumbnails, textLayer, 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;
|
|
2690
2700
|
|
|
2691
2701
|
type CellValue = string | number | boolean | null;
|
|
2692
2702
|
interface GridColumn {
|
|
2693
2703
|
key: string;
|
|
2694
2704
|
label?: react__default.ReactNode;
|
|
2695
|
-
/**
|
|
2705
|
+
/**
|
|
2706
|
+
* Column width in pixels. Accepts a number or a px string (`120`, `'120px'`).
|
|
2707
|
+
* Relative units (`'50%'`, `'1fr'`, `'auto'`) aren't supported by the
|
|
2708
|
+
* virtualizer and fall back to the default. Default 140.
|
|
2709
|
+
*/
|
|
2696
2710
|
width?: number | string;
|
|
2697
2711
|
align?: 'left' | 'center' | 'right';
|
|
2698
2712
|
/** Per-column override of the grid-wide `editable`. */
|
|
2699
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;
|
|
2700
2721
|
}
|
|
2701
2722
|
interface DataGridProps {
|
|
2702
2723
|
columns: GridColumn[];
|
|
@@ -2708,14 +2729,23 @@ interface DataGridProps {
|
|
|
2708
2729
|
headerHeight?: number;
|
|
2709
2730
|
/** Viewport height. Default 480. */
|
|
2710
2731
|
height?: number | string;
|
|
2732
|
+
/** Viewport width. Defaults to filling the container. */
|
|
2733
|
+
width?: number | string;
|
|
2711
2734
|
/** Allow value editing (double-click a cell). Default false. */
|
|
2712
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;
|
|
2713
2742
|
/** Window rows/columns. Default true. Off renders everything (small grids/tests). */
|
|
2714
2743
|
virtualize?: boolean;
|
|
2715
2744
|
/** Rows/cols rendered beyond the viewport each side. Default 4. */
|
|
2716
2745
|
overscan?: number;
|
|
2717
2746
|
/** Show the left row-number gutter. Default true. */
|
|
2718
2747
|
rowNumbers?: boolean;
|
|
2748
|
+
/** `row` is the index into `rows` (stable across sorting). */
|
|
2719
2749
|
onCellEdit?: (e: {
|
|
2720
2750
|
row: number;
|
|
2721
2751
|
column: string;
|
|
@@ -2737,7 +2767,7 @@ interface DataGridProps {
|
|
|
2737
2767
|
* `onCellEdit` on commit. Wrap it with {@link Spreadsheet} for multi-sheet
|
|
2738
2768
|
* switching, file parsing and export.
|
|
2739
2769
|
*/
|
|
2740
|
-
declare function DataGrid({ columns, rows, rowHeight, headerHeight, height, editable, virtualize, overscan, rowNumbers, onCellEdit, className, style, emptyState, }: DataGridProps): react_jsx_runtime.JSX.Element;
|
|
2770
|
+
declare function DataGrid({ columns, rows, rowHeight, headerHeight, height, width, editable, sortable, sort: sortProp, onSortChange, virtualize, overscan, rowNumbers, onCellEdit, className, style, emptyState, }: DataGridProps): react_jsx_runtime.JSX.Element;
|
|
2741
2771
|
|
|
2742
2772
|
interface Cell {
|
|
2743
2773
|
value: CellValue;
|
|
@@ -2767,6 +2797,12 @@ interface SpreadsheetProps {
|
|
|
2767
2797
|
fileName?: string;
|
|
2768
2798
|
/** Default true. */
|
|
2769
2799
|
virtualize?: boolean;
|
|
2800
|
+
/** Click column headers to sort. Default true. */
|
|
2801
|
+
sortable?: boolean;
|
|
2802
|
+
/** Overall height. Default 480. */
|
|
2803
|
+
height?: number | string;
|
|
2804
|
+
/** Overall width. Defaults to filling the container. */
|
|
2805
|
+
width?: number | string;
|
|
2770
2806
|
className?: string;
|
|
2771
2807
|
style?: react__default.CSSProperties;
|
|
2772
2808
|
}
|
|
@@ -2779,7 +2815,7 @@ interface SpreadsheetProps {
|
|
|
2779
2815
|
* Exports to multi-sheet `.xlsx`, `.csv` (active sheet, BOM-prefixed) or a
|
|
2780
2816
|
* paginated table `.pdf` (jsPDF, lazy).
|
|
2781
2817
|
*/
|
|
2782
|
-
declare function Spreadsheet({ source, remote, editable, onCellEdit, onChange, export: exportFormats, fileName, virtualize, className, style, }: SpreadsheetProps): react_jsx_runtime.JSX.Element;
|
|
2818
|
+
declare function Spreadsheet({ source, remote, editable, onCellEdit, onChange, export: exportFormats, fileName, virtualize, sortable, height, width, className, style, }: SpreadsheetProps): react_jsx_runtime.JSX.Element;
|
|
2783
2819
|
|
|
2784
2820
|
interface ThemeSwitchProps {
|
|
2785
2821
|
checked: boolean;
|
|
@@ -3965,6 +4001,12 @@ interface DropdownProps {
|
|
|
3965
4001
|
size?: FieldSize;
|
|
3966
4002
|
/** Extra classes merged onto the component root. */
|
|
3967
4003
|
className?: string;
|
|
4004
|
+
/**
|
|
4005
|
+
* DOM node to portal the options menu into. Defaults to the nearest
|
|
4006
|
+
* Modal/Drawer content (so the list scrolls inside a dialog's scroll-lock),
|
|
4007
|
+
* falling back to `document.body`. Set explicitly to override.
|
|
4008
|
+
*/
|
|
4009
|
+
container?: HTMLElement;
|
|
3968
4010
|
}
|
|
3969
4011
|
/**
|
|
3970
4012
|
* Select / multi-select dropdown powered by Radix Popover.
|
|
@@ -3981,7 +4023,7 @@ interface DropdownProps {
|
|
|
3981
4023
|
* // Multi-select
|
|
3982
4024
|
* <Dropdown isMultiselect label="Fuels" items={fuels} value={form.fuels} onChange={handleChange} />
|
|
3983
4025
|
*/
|
|
3984
|
-
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;
|
|
4026
|
+
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;
|
|
3985
4027
|
|
|
3986
4028
|
interface AutoCompleteItem {
|
|
3987
4029
|
key: string;
|
|
@@ -5689,4 +5731,4 @@ declare function expiryError(value: string, now?: Date): string | undefined;
|
|
|
5689
5731
|
/** Validate the CVV against the detected brand's expected length. */
|
|
5690
5732
|
declare function cvvError(value: string, cardNumber: string): string | undefined;
|
|
5691
5733
|
|
|
5692
|
-
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 };
|
|
5734
|
+
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
|
@@ -2678,25 +2678,46 @@ interface PdfViewerProps {
|
|
|
2678
2678
|
thumbnails?: boolean;
|
|
2679
2679
|
/** Selectable text layer. Default `true`. */
|
|
2680
2680
|
textLayer?: boolean;
|
|
2681
|
+
/**
|
|
2682
|
+
* Override the pdf.js worker URL (e.g. self-hosted for air-gapped / strict-CSP
|
|
2683
|
+
* deploys). Defaults to a version-pinned CDN build. Only the first mounted
|
|
2684
|
+
* viewer's value takes effect, since the worker is configured process-wide.
|
|
2685
|
+
*/
|
|
2686
|
+
workerSrc?: string;
|
|
2681
2687
|
onLoad?: (info: {
|
|
2682
2688
|
numPages: number;
|
|
2683
2689
|
}) => void;
|
|
2684
2690
|
onError?: (err: Error) => void;
|
|
2685
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;
|
|
2686
2696
|
className?: string;
|
|
2687
2697
|
style?: react__default.CSSProperties;
|
|
2688
2698
|
}
|
|
2689
|
-
declare function PdfViewer({ source, remote, initialPage, zoom, toolbar, thumbnails, textLayer, 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;
|
|
2690
2700
|
|
|
2691
2701
|
type CellValue = string | number | boolean | null;
|
|
2692
2702
|
interface GridColumn {
|
|
2693
2703
|
key: string;
|
|
2694
2704
|
label?: react__default.ReactNode;
|
|
2695
|
-
/**
|
|
2705
|
+
/**
|
|
2706
|
+
* Column width in pixels. Accepts a number or a px string (`120`, `'120px'`).
|
|
2707
|
+
* Relative units (`'50%'`, `'1fr'`, `'auto'`) aren't supported by the
|
|
2708
|
+
* virtualizer and fall back to the default. Default 140.
|
|
2709
|
+
*/
|
|
2696
2710
|
width?: number | string;
|
|
2697
2711
|
align?: 'left' | 'center' | 'right';
|
|
2698
2712
|
/** Per-column override of the grid-wide `editable`. */
|
|
2699
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;
|
|
2700
2721
|
}
|
|
2701
2722
|
interface DataGridProps {
|
|
2702
2723
|
columns: GridColumn[];
|
|
@@ -2708,14 +2729,23 @@ interface DataGridProps {
|
|
|
2708
2729
|
headerHeight?: number;
|
|
2709
2730
|
/** Viewport height. Default 480. */
|
|
2710
2731
|
height?: number | string;
|
|
2732
|
+
/** Viewport width. Defaults to filling the container. */
|
|
2733
|
+
width?: number | string;
|
|
2711
2734
|
/** Allow value editing (double-click a cell). Default false. */
|
|
2712
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;
|
|
2713
2742
|
/** Window rows/columns. Default true. Off renders everything (small grids/tests). */
|
|
2714
2743
|
virtualize?: boolean;
|
|
2715
2744
|
/** Rows/cols rendered beyond the viewport each side. Default 4. */
|
|
2716
2745
|
overscan?: number;
|
|
2717
2746
|
/** Show the left row-number gutter. Default true. */
|
|
2718
2747
|
rowNumbers?: boolean;
|
|
2748
|
+
/** `row` is the index into `rows` (stable across sorting). */
|
|
2719
2749
|
onCellEdit?: (e: {
|
|
2720
2750
|
row: number;
|
|
2721
2751
|
column: string;
|
|
@@ -2737,7 +2767,7 @@ interface DataGridProps {
|
|
|
2737
2767
|
* `onCellEdit` on commit. Wrap it with {@link Spreadsheet} for multi-sheet
|
|
2738
2768
|
* switching, file parsing and export.
|
|
2739
2769
|
*/
|
|
2740
|
-
declare function DataGrid({ columns, rows, rowHeight, headerHeight, height, editable, virtualize, overscan, rowNumbers, onCellEdit, className, style, emptyState, }: DataGridProps): react_jsx_runtime.JSX.Element;
|
|
2770
|
+
declare function DataGrid({ columns, rows, rowHeight, headerHeight, height, width, editable, sortable, sort: sortProp, onSortChange, virtualize, overscan, rowNumbers, onCellEdit, className, style, emptyState, }: DataGridProps): react_jsx_runtime.JSX.Element;
|
|
2741
2771
|
|
|
2742
2772
|
interface Cell {
|
|
2743
2773
|
value: CellValue;
|
|
@@ -2767,6 +2797,12 @@ interface SpreadsheetProps {
|
|
|
2767
2797
|
fileName?: string;
|
|
2768
2798
|
/** Default true. */
|
|
2769
2799
|
virtualize?: boolean;
|
|
2800
|
+
/** Click column headers to sort. Default true. */
|
|
2801
|
+
sortable?: boolean;
|
|
2802
|
+
/** Overall height. Default 480. */
|
|
2803
|
+
height?: number | string;
|
|
2804
|
+
/** Overall width. Defaults to filling the container. */
|
|
2805
|
+
width?: number | string;
|
|
2770
2806
|
className?: string;
|
|
2771
2807
|
style?: react__default.CSSProperties;
|
|
2772
2808
|
}
|
|
@@ -2779,7 +2815,7 @@ interface SpreadsheetProps {
|
|
|
2779
2815
|
* Exports to multi-sheet `.xlsx`, `.csv` (active sheet, BOM-prefixed) or a
|
|
2780
2816
|
* paginated table `.pdf` (jsPDF, lazy).
|
|
2781
2817
|
*/
|
|
2782
|
-
declare function Spreadsheet({ source, remote, editable, onCellEdit, onChange, export: exportFormats, fileName, virtualize, className, style, }: SpreadsheetProps): react_jsx_runtime.JSX.Element;
|
|
2818
|
+
declare function Spreadsheet({ source, remote, editable, onCellEdit, onChange, export: exportFormats, fileName, virtualize, sortable, height, width, className, style, }: SpreadsheetProps): react_jsx_runtime.JSX.Element;
|
|
2783
2819
|
|
|
2784
2820
|
interface ThemeSwitchProps {
|
|
2785
2821
|
checked: boolean;
|
|
@@ -3965,6 +4001,12 @@ interface DropdownProps {
|
|
|
3965
4001
|
size?: FieldSize;
|
|
3966
4002
|
/** Extra classes merged onto the component root. */
|
|
3967
4003
|
className?: string;
|
|
4004
|
+
/**
|
|
4005
|
+
* DOM node to portal the options menu into. Defaults to the nearest
|
|
4006
|
+
* Modal/Drawer content (so the list scrolls inside a dialog's scroll-lock),
|
|
4007
|
+
* falling back to `document.body`. Set explicitly to override.
|
|
4008
|
+
*/
|
|
4009
|
+
container?: HTMLElement;
|
|
3968
4010
|
}
|
|
3969
4011
|
/**
|
|
3970
4012
|
* Select / multi-select dropdown powered by Radix Popover.
|
|
@@ -3981,7 +4023,7 @@ interface DropdownProps {
|
|
|
3981
4023
|
* // Multi-select
|
|
3982
4024
|
* <Dropdown isMultiselect label="Fuels" items={fuels} value={form.fuels} onChange={handleChange} />
|
|
3983
4025
|
*/
|
|
3984
|
-
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;
|
|
4026
|
+
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;
|
|
3985
4027
|
|
|
3986
4028
|
interface AutoCompleteItem {
|
|
3987
4029
|
key: string;
|
|
@@ -5689,4 +5731,4 @@ declare function expiryError(value: string, now?: Date): string | undefined;
|
|
|
5689
5731
|
/** Validate the CVV against the detected brand's expected length. */
|
|
5690
5732
|
declare function cvvError(value: string, cardNumber: string): string | undefined;
|
|
5691
5733
|
|
|
5692
|
-
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 };
|
|
5734
|
+
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 };
|