@geomak/ui 7.7.4 → 7.8.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 +1083 -317
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +138 -1
- package/dist/index.d.ts +138 -1
- package/dist/index.js +788 -25
- package/dist/index.js.map +1 -1
- package/dist/styles.css +3 -0
- package/package.json +5 -2
package/dist/index.d.cts
CHANGED
|
@@ -2644,6 +2644,143 @@ interface VirtualListProps<T> {
|
|
|
2644
2644
|
*/
|
|
2645
2645
|
declare function VirtualList<T>({ items, rowHeight, renderItem, height, getKey, overscan, searchable, searchKeys, filter, searchPlaceholder, emptyState, 'aria-label': ariaLabel, className, style, }: VirtualListProps<T>): react_jsx_runtime.JSX.Element;
|
|
2646
2646
|
|
|
2647
|
+
/**
|
|
2648
|
+
* Shared file-source contract for content components (PdfViewer, Spreadsheet).
|
|
2649
|
+
*
|
|
2650
|
+
* Three independent, equal ways to supply content — no preference baked in:
|
|
2651
|
+
* 1. PROGRAMMATIC — `ArrayBuffer | Uint8Array` built in-browser (no network)
|
|
2652
|
+
* 2. BACKEND — `string | URL` fetched/streamed from a server
|
|
2653
|
+
* 3. LOCAL — `File | Blob` from a file input / drag-drop (no network)
|
|
2654
|
+
*/
|
|
2655
|
+
type FileSource = string | URL | File | Blob | ArrayBuffer | Uint8Array;
|
|
2656
|
+
interface RemoteSourceOptions {
|
|
2657
|
+
/** Forwarded when `source` is a URL (e.g. an auth token). */
|
|
2658
|
+
httpHeaders?: Record<string, string>;
|
|
2659
|
+
/** Send cookies for same-site auth when `source` is a URL. */
|
|
2660
|
+
withCredentials?: boolean;
|
|
2661
|
+
}
|
|
2662
|
+
|
|
2663
|
+
interface PdfViewerProps {
|
|
2664
|
+
source: FileSource;
|
|
2665
|
+
remote?: RemoteSourceOptions;
|
|
2666
|
+
initialPage?: number;
|
|
2667
|
+
/** Default `'page-width'`. */
|
|
2668
|
+
zoom?: number | 'auto' | 'page-fit' | 'page-width';
|
|
2669
|
+
/** Default `true`. */
|
|
2670
|
+
toolbar?: boolean | {
|
|
2671
|
+
zoom?: boolean;
|
|
2672
|
+
pager?: boolean;
|
|
2673
|
+
download?: boolean;
|
|
2674
|
+
print?: boolean;
|
|
2675
|
+
search?: boolean;
|
|
2676
|
+
};
|
|
2677
|
+
/** Side thumbnail rail. Default `false`. */
|
|
2678
|
+
thumbnails?: boolean;
|
|
2679
|
+
/** Selectable text layer. Default `true`. */
|
|
2680
|
+
textLayer?: boolean;
|
|
2681
|
+
onLoad?: (info: {
|
|
2682
|
+
numPages: number;
|
|
2683
|
+
}) => void;
|
|
2684
|
+
onError?: (err: Error) => void;
|
|
2685
|
+
onPageChange?: (page: number) => void;
|
|
2686
|
+
className?: string;
|
|
2687
|
+
style?: react__default.CSSProperties;
|
|
2688
|
+
}
|
|
2689
|
+
declare function PdfViewer({ source, remote, initialPage, zoom, toolbar, thumbnails, textLayer, onLoad, onError, onPageChange, className, style, }: PdfViewerProps): react_jsx_runtime.JSX.Element;
|
|
2690
|
+
|
|
2691
|
+
type CellValue = string | number | boolean | null;
|
|
2692
|
+
interface GridColumn {
|
|
2693
|
+
key: string;
|
|
2694
|
+
label?: react__default.ReactNode;
|
|
2695
|
+
/** Pixel width. Strings are parsed to px (non-numeric → default). Default 140. */
|
|
2696
|
+
width?: number | string;
|
|
2697
|
+
align?: 'left' | 'center' | 'right';
|
|
2698
|
+
/** Per-column override of the grid-wide `editable`. */
|
|
2699
|
+
editable?: boolean;
|
|
2700
|
+
}
|
|
2701
|
+
interface DataGridProps {
|
|
2702
|
+
columns: GridColumn[];
|
|
2703
|
+
/** Plain row records keyed by column key. */
|
|
2704
|
+
rows: Array<Record<string, CellValue>>;
|
|
2705
|
+
/** Default 34. */
|
|
2706
|
+
rowHeight?: number;
|
|
2707
|
+
/** Default 38. */
|
|
2708
|
+
headerHeight?: number;
|
|
2709
|
+
/** Viewport height. Default 480. */
|
|
2710
|
+
height?: number | string;
|
|
2711
|
+
/** Allow value editing (double-click a cell). Default false. */
|
|
2712
|
+
editable?: boolean;
|
|
2713
|
+
/** Window rows/columns. Default true. Off renders everything (small grids/tests). */
|
|
2714
|
+
virtualize?: boolean;
|
|
2715
|
+
/** Rows/cols rendered beyond the viewport each side. Default 4. */
|
|
2716
|
+
overscan?: number;
|
|
2717
|
+
/** Show the left row-number gutter. Default true. */
|
|
2718
|
+
rowNumbers?: boolean;
|
|
2719
|
+
onCellEdit?: (e: {
|
|
2720
|
+
row: number;
|
|
2721
|
+
column: string;
|
|
2722
|
+
value: string;
|
|
2723
|
+
}) => void;
|
|
2724
|
+
className?: string;
|
|
2725
|
+
style?: react__default.CSSProperties;
|
|
2726
|
+
/** Shown when there are no rows. */
|
|
2727
|
+
emptyState?: react__default.ReactNode;
|
|
2728
|
+
}
|
|
2729
|
+
/**
|
|
2730
|
+
* Virtualized (both axes) data grid primitive. Renders only the cells inside
|
|
2731
|
+
* the viewport plus an overscan margin, so it stays smooth at tens of thousands
|
|
2732
|
+
* of rows. The header and the row-number gutter are pinned by positioning them
|
|
2733
|
+
* at the live scroll offset (`top: scrollTop` / `left: scrollLeft`) — the same
|
|
2734
|
+
* translate-window technique as {@link VirtualList}, extended to two axes.
|
|
2735
|
+
*
|
|
2736
|
+
* Stateless w.r.t. data: it renders the `rows` it's given and emits
|
|
2737
|
+
* `onCellEdit` on commit. Wrap it with {@link Spreadsheet} for multi-sheet
|
|
2738
|
+
* switching, file parsing and export.
|
|
2739
|
+
*/
|
|
2740
|
+
declare function DataGrid({ columns, rows, rowHeight, headerHeight, height, editable, virtualize, overscan, rowNumbers, onCellEdit, className, style, emptyState, }: DataGridProps): react_jsx_runtime.JSX.Element;
|
|
2741
|
+
|
|
2742
|
+
interface Cell {
|
|
2743
|
+
value: CellValue;
|
|
2744
|
+
/** Reserved for a future formula engine — parsed/stored but not evaluated. */
|
|
2745
|
+
formula?: string;
|
|
2746
|
+
}
|
|
2747
|
+
interface SheetData {
|
|
2748
|
+
name: string;
|
|
2749
|
+
columns: GridColumn[] | string[];
|
|
2750
|
+
rows: Array<Record<string, Cell | CellValue>>;
|
|
2751
|
+
}
|
|
2752
|
+
type GridSource = SheetData[] | File | Blob | string | URL;
|
|
2753
|
+
interface SpreadsheetProps {
|
|
2754
|
+
source: GridSource;
|
|
2755
|
+
remote?: RemoteSourceOptions;
|
|
2756
|
+
/** Value editing only — no formulas. Default false. */
|
|
2757
|
+
editable?: boolean;
|
|
2758
|
+
onCellEdit?: (e: {
|
|
2759
|
+
sheet: string;
|
|
2760
|
+
row: number;
|
|
2761
|
+
column: string;
|
|
2762
|
+
value: unknown;
|
|
2763
|
+
}) => void;
|
|
2764
|
+
onChange?: (sheets: SheetData[]) => void;
|
|
2765
|
+
/** Export formats offered in the toolbar. Default `['xlsx','csv','pdf']`; `false` hides export. */
|
|
2766
|
+
export?: Array<'xlsx' | 'csv' | 'pdf'> | false;
|
|
2767
|
+
fileName?: string;
|
|
2768
|
+
/** Default true. */
|
|
2769
|
+
virtualize?: boolean;
|
|
2770
|
+
className?: string;
|
|
2771
|
+
style?: react__default.CSSProperties;
|
|
2772
|
+
}
|
|
2773
|
+
/**
|
|
2774
|
+
* Multi-sheet spreadsheet built on {@link DataGrid}. Accepts data three ways
|
|
2775
|
+
* — in-memory `SheetData[]` (no network), a `File`/`Blob` (no network), or a
|
|
2776
|
+
* URL (the only mode that fetches). `.xlsx` is parsed with SheetJS, loaded
|
|
2777
|
+
* lazily on first use. Value editing emits `onCellEdit` + `onChange`; there is
|
|
2778
|
+
* no formula engine (the `Cell.formula` slot is reserved, not evaluated).
|
|
2779
|
+
* Exports to multi-sheet `.xlsx`, `.csv` (active sheet, BOM-prefixed) or a
|
|
2780
|
+
* paginated table `.pdf` (jsPDF, lazy).
|
|
2781
|
+
*/
|
|
2782
|
+
declare function Spreadsheet({ source, remote, editable, onCellEdit, onChange, export: exportFormats, fileName, virtualize, className, style, }: SpreadsheetProps): react_jsx_runtime.JSX.Element;
|
|
2783
|
+
|
|
2647
2784
|
interface ThemeSwitchProps {
|
|
2648
2785
|
checked: boolean;
|
|
2649
2786
|
onChange: (e: {
|
|
@@ -5552,4 +5689,4 @@ declare function expiryError(value: string, now?: Date): string | undefined;
|
|
|
5552
5689
|
/** Validate the CVV against the detected brand's expected length. */
|
|
5553
5690
|
declare function cvvError(value: string, cardNumber: string): string | undefined;
|
|
5554
5691
|
|
|
5555
|
-
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 CellEditInfo, 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, 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, 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 GridProps, 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, 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 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, 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, 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 };
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -2644,6 +2644,143 @@ interface VirtualListProps<T> {
|
|
|
2644
2644
|
*/
|
|
2645
2645
|
declare function VirtualList<T>({ items, rowHeight, renderItem, height, getKey, overscan, searchable, searchKeys, filter, searchPlaceholder, emptyState, 'aria-label': ariaLabel, className, style, }: VirtualListProps<T>): react_jsx_runtime.JSX.Element;
|
|
2646
2646
|
|
|
2647
|
+
/**
|
|
2648
|
+
* Shared file-source contract for content components (PdfViewer, Spreadsheet).
|
|
2649
|
+
*
|
|
2650
|
+
* Three independent, equal ways to supply content — no preference baked in:
|
|
2651
|
+
* 1. PROGRAMMATIC — `ArrayBuffer | Uint8Array` built in-browser (no network)
|
|
2652
|
+
* 2. BACKEND — `string | URL` fetched/streamed from a server
|
|
2653
|
+
* 3. LOCAL — `File | Blob` from a file input / drag-drop (no network)
|
|
2654
|
+
*/
|
|
2655
|
+
type FileSource = string | URL | File | Blob | ArrayBuffer | Uint8Array;
|
|
2656
|
+
interface RemoteSourceOptions {
|
|
2657
|
+
/** Forwarded when `source` is a URL (e.g. an auth token). */
|
|
2658
|
+
httpHeaders?: Record<string, string>;
|
|
2659
|
+
/** Send cookies for same-site auth when `source` is a URL. */
|
|
2660
|
+
withCredentials?: boolean;
|
|
2661
|
+
}
|
|
2662
|
+
|
|
2663
|
+
interface PdfViewerProps {
|
|
2664
|
+
source: FileSource;
|
|
2665
|
+
remote?: RemoteSourceOptions;
|
|
2666
|
+
initialPage?: number;
|
|
2667
|
+
/** Default `'page-width'`. */
|
|
2668
|
+
zoom?: number | 'auto' | 'page-fit' | 'page-width';
|
|
2669
|
+
/** Default `true`. */
|
|
2670
|
+
toolbar?: boolean | {
|
|
2671
|
+
zoom?: boolean;
|
|
2672
|
+
pager?: boolean;
|
|
2673
|
+
download?: boolean;
|
|
2674
|
+
print?: boolean;
|
|
2675
|
+
search?: boolean;
|
|
2676
|
+
};
|
|
2677
|
+
/** Side thumbnail rail. Default `false`. */
|
|
2678
|
+
thumbnails?: boolean;
|
|
2679
|
+
/** Selectable text layer. Default `true`. */
|
|
2680
|
+
textLayer?: boolean;
|
|
2681
|
+
onLoad?: (info: {
|
|
2682
|
+
numPages: number;
|
|
2683
|
+
}) => void;
|
|
2684
|
+
onError?: (err: Error) => void;
|
|
2685
|
+
onPageChange?: (page: number) => void;
|
|
2686
|
+
className?: string;
|
|
2687
|
+
style?: react__default.CSSProperties;
|
|
2688
|
+
}
|
|
2689
|
+
declare function PdfViewer({ source, remote, initialPage, zoom, toolbar, thumbnails, textLayer, onLoad, onError, onPageChange, className, style, }: PdfViewerProps): react_jsx_runtime.JSX.Element;
|
|
2690
|
+
|
|
2691
|
+
type CellValue = string | number | boolean | null;
|
|
2692
|
+
interface GridColumn {
|
|
2693
|
+
key: string;
|
|
2694
|
+
label?: react__default.ReactNode;
|
|
2695
|
+
/** Pixel width. Strings are parsed to px (non-numeric → default). Default 140. */
|
|
2696
|
+
width?: number | string;
|
|
2697
|
+
align?: 'left' | 'center' | 'right';
|
|
2698
|
+
/** Per-column override of the grid-wide `editable`. */
|
|
2699
|
+
editable?: boolean;
|
|
2700
|
+
}
|
|
2701
|
+
interface DataGridProps {
|
|
2702
|
+
columns: GridColumn[];
|
|
2703
|
+
/** Plain row records keyed by column key. */
|
|
2704
|
+
rows: Array<Record<string, CellValue>>;
|
|
2705
|
+
/** Default 34. */
|
|
2706
|
+
rowHeight?: number;
|
|
2707
|
+
/** Default 38. */
|
|
2708
|
+
headerHeight?: number;
|
|
2709
|
+
/** Viewport height. Default 480. */
|
|
2710
|
+
height?: number | string;
|
|
2711
|
+
/** Allow value editing (double-click a cell). Default false. */
|
|
2712
|
+
editable?: boolean;
|
|
2713
|
+
/** Window rows/columns. Default true. Off renders everything (small grids/tests). */
|
|
2714
|
+
virtualize?: boolean;
|
|
2715
|
+
/** Rows/cols rendered beyond the viewport each side. Default 4. */
|
|
2716
|
+
overscan?: number;
|
|
2717
|
+
/** Show the left row-number gutter. Default true. */
|
|
2718
|
+
rowNumbers?: boolean;
|
|
2719
|
+
onCellEdit?: (e: {
|
|
2720
|
+
row: number;
|
|
2721
|
+
column: string;
|
|
2722
|
+
value: string;
|
|
2723
|
+
}) => void;
|
|
2724
|
+
className?: string;
|
|
2725
|
+
style?: react__default.CSSProperties;
|
|
2726
|
+
/** Shown when there are no rows. */
|
|
2727
|
+
emptyState?: react__default.ReactNode;
|
|
2728
|
+
}
|
|
2729
|
+
/**
|
|
2730
|
+
* Virtualized (both axes) data grid primitive. Renders only the cells inside
|
|
2731
|
+
* the viewport plus an overscan margin, so it stays smooth at tens of thousands
|
|
2732
|
+
* of rows. The header and the row-number gutter are pinned by positioning them
|
|
2733
|
+
* at the live scroll offset (`top: scrollTop` / `left: scrollLeft`) — the same
|
|
2734
|
+
* translate-window technique as {@link VirtualList}, extended to two axes.
|
|
2735
|
+
*
|
|
2736
|
+
* Stateless w.r.t. data: it renders the `rows` it's given and emits
|
|
2737
|
+
* `onCellEdit` on commit. Wrap it with {@link Spreadsheet} for multi-sheet
|
|
2738
|
+
* switching, file parsing and export.
|
|
2739
|
+
*/
|
|
2740
|
+
declare function DataGrid({ columns, rows, rowHeight, headerHeight, height, editable, virtualize, overscan, rowNumbers, onCellEdit, className, style, emptyState, }: DataGridProps): react_jsx_runtime.JSX.Element;
|
|
2741
|
+
|
|
2742
|
+
interface Cell {
|
|
2743
|
+
value: CellValue;
|
|
2744
|
+
/** Reserved for a future formula engine — parsed/stored but not evaluated. */
|
|
2745
|
+
formula?: string;
|
|
2746
|
+
}
|
|
2747
|
+
interface SheetData {
|
|
2748
|
+
name: string;
|
|
2749
|
+
columns: GridColumn[] | string[];
|
|
2750
|
+
rows: Array<Record<string, Cell | CellValue>>;
|
|
2751
|
+
}
|
|
2752
|
+
type GridSource = SheetData[] | File | Blob | string | URL;
|
|
2753
|
+
interface SpreadsheetProps {
|
|
2754
|
+
source: GridSource;
|
|
2755
|
+
remote?: RemoteSourceOptions;
|
|
2756
|
+
/** Value editing only — no formulas. Default false. */
|
|
2757
|
+
editable?: boolean;
|
|
2758
|
+
onCellEdit?: (e: {
|
|
2759
|
+
sheet: string;
|
|
2760
|
+
row: number;
|
|
2761
|
+
column: string;
|
|
2762
|
+
value: unknown;
|
|
2763
|
+
}) => void;
|
|
2764
|
+
onChange?: (sheets: SheetData[]) => void;
|
|
2765
|
+
/** Export formats offered in the toolbar. Default `['xlsx','csv','pdf']`; `false` hides export. */
|
|
2766
|
+
export?: Array<'xlsx' | 'csv' | 'pdf'> | false;
|
|
2767
|
+
fileName?: string;
|
|
2768
|
+
/** Default true. */
|
|
2769
|
+
virtualize?: boolean;
|
|
2770
|
+
className?: string;
|
|
2771
|
+
style?: react__default.CSSProperties;
|
|
2772
|
+
}
|
|
2773
|
+
/**
|
|
2774
|
+
* Multi-sheet spreadsheet built on {@link DataGrid}. Accepts data three ways
|
|
2775
|
+
* — in-memory `SheetData[]` (no network), a `File`/`Blob` (no network), or a
|
|
2776
|
+
* URL (the only mode that fetches). `.xlsx` is parsed with SheetJS, loaded
|
|
2777
|
+
* lazily on first use. Value editing emits `onCellEdit` + `onChange`; there is
|
|
2778
|
+
* no formula engine (the `Cell.formula` slot is reserved, not evaluated).
|
|
2779
|
+
* Exports to multi-sheet `.xlsx`, `.csv` (active sheet, BOM-prefixed) or a
|
|
2780
|
+
* paginated table `.pdf` (jsPDF, lazy).
|
|
2781
|
+
*/
|
|
2782
|
+
declare function Spreadsheet({ source, remote, editable, onCellEdit, onChange, export: exportFormats, fileName, virtualize, className, style, }: SpreadsheetProps): react_jsx_runtime.JSX.Element;
|
|
2783
|
+
|
|
2647
2784
|
interface ThemeSwitchProps {
|
|
2648
2785
|
checked: boolean;
|
|
2649
2786
|
onChange: (e: {
|
|
@@ -5552,4 +5689,4 @@ declare function expiryError(value: string, now?: Date): string | undefined;
|
|
|
5552
5689
|
/** Validate the CVV against the detected brand's expected length. */
|
|
5553
5690
|
declare function cvvError(value: string, cardNumber: string): string | undefined;
|
|
5554
5691
|
|
|
5555
|
-
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 CellEditInfo, 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, 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, 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 GridProps, 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, 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 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, 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, 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 };
|
|
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 };
|