@geomak/ui 6.20.0 → 6.21.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 +557 -232
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +225 -34
- package/dist/index.d.ts +225 -34
- package/dist/index.js +341 -21
- package/dist/index.js.map +1 -1
- package/dist/styles.css +44 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -628,6 +628,91 @@ interface IconButtonProps {
|
|
|
628
628
|
*/
|
|
629
629
|
declare function IconButton({ icon, onClick, type, buttonType, disabled, size, loading, loadingIcon, title, className, style, }: IconButtonProps): react_jsx_runtime.JSX.Element;
|
|
630
630
|
|
|
631
|
+
interface ButtonProps extends Omit<React__default.ButtonHTMLAttributes<HTMLButtonElement>, 'type' | 'content'> {
|
|
632
|
+
/** Button content (text or nodes). */
|
|
633
|
+
content?: React__default.ReactNode;
|
|
634
|
+
/** Visual style variant */
|
|
635
|
+
variant?: 'primary' | 'secondary' | 'ghost' | 'danger' | 'warning' | 'success' | 'info';
|
|
636
|
+
/** Size — controls height, padding, and font size */
|
|
637
|
+
size?: 'sm' | 'md' | 'lg';
|
|
638
|
+
/** HTML button type */
|
|
639
|
+
buttonType?: 'button' | 'submit' | 'reset';
|
|
640
|
+
/** Show a loading spinner and disable the control. */
|
|
641
|
+
loading?: boolean;
|
|
642
|
+
/** Leading icon — rendered before content */
|
|
643
|
+
icon?: React__default.ReactNode;
|
|
644
|
+
/**
|
|
645
|
+
* @deprecated Pass `variant` instead. Kept for API compat — currently no-op.
|
|
646
|
+
* Will be removed in the next major version.
|
|
647
|
+
*/
|
|
648
|
+
type?: string;
|
|
649
|
+
}
|
|
650
|
+
/**
|
|
651
|
+
* Primary action button with variant + size system.
|
|
652
|
+
*
|
|
653
|
+
* Width is never hardcoded — set `style={{ width }}` or let the parent grid/flex control it.
|
|
654
|
+
* Uses `React.forwardRef` so it works as a Radix `asChild` trigger (Popover, Tooltip, etc.).
|
|
655
|
+
*
|
|
656
|
+
* @example
|
|
657
|
+
* <Button content="Save" onClick={handleSave} />
|
|
658
|
+
* <Button content="Delete" variant="danger" size="sm" />
|
|
659
|
+
* <Button content="Cancel" variant="secondary" />
|
|
660
|
+
* <Button content="Loading…" loading buttonType="submit" />
|
|
661
|
+
*/
|
|
662
|
+
declare const Button: React__default.ForwardRefExoticComponent<ButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
663
|
+
|
|
664
|
+
interface MenuButtonItem {
|
|
665
|
+
/** Stable key. */
|
|
666
|
+
key: string | number;
|
|
667
|
+
/** Row label. */
|
|
668
|
+
label: React__default.ReactNode;
|
|
669
|
+
/** Leading icon. */
|
|
670
|
+
icon?: React__default.ReactNode;
|
|
671
|
+
/** Fired on select (click / Enter / Space). */
|
|
672
|
+
onSelect?: () => void;
|
|
673
|
+
disabled?: boolean;
|
|
674
|
+
/** Destructive styling (red). */
|
|
675
|
+
danger?: boolean;
|
|
676
|
+
/** Render a divider above this item. */
|
|
677
|
+
separatorBefore?: boolean;
|
|
678
|
+
}
|
|
679
|
+
interface MenuButtonProps {
|
|
680
|
+
/** Trigger label. */
|
|
681
|
+
label?: React__default.ReactNode;
|
|
682
|
+
/** The menu rows. */
|
|
683
|
+
items: MenuButtonItem[];
|
|
684
|
+
/** Trigger button variant. Default `'secondary'`. */
|
|
685
|
+
variant?: ButtonProps['variant'];
|
|
686
|
+
/** Trigger button size. Default `'md'`. */
|
|
687
|
+
size?: ButtonProps['size'];
|
|
688
|
+
/** Leading icon on the trigger. */
|
|
689
|
+
icon?: React__default.ReactNode;
|
|
690
|
+
/** Hide the trailing chevron. */
|
|
691
|
+
hideChevron?: boolean;
|
|
692
|
+
disabled?: boolean;
|
|
693
|
+
/** Menu alignment to the trigger. Default `'start'`. */
|
|
694
|
+
align?: 'start' | 'center' | 'end';
|
|
695
|
+
/** Side to open on. Default `'bottom'`. */
|
|
696
|
+
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
697
|
+
className?: string;
|
|
698
|
+
}
|
|
699
|
+
/**
|
|
700
|
+
* A {@link Button} that opens a dropdown menu of actions, built on Radix
|
|
701
|
+
* DropdownMenu (full keyboard nav, focus management, typeahead, and ARIA).
|
|
702
|
+
* Pass the rows as `items`; the trailing chevron flips while the menu is open.
|
|
703
|
+
*
|
|
704
|
+
* @example
|
|
705
|
+
* <MenuButton
|
|
706
|
+
* label="Actions"
|
|
707
|
+
* items={[
|
|
708
|
+
* { key: 'edit', label: 'Edit', icon: <EditIcon />, onSelect: edit },
|
|
709
|
+
* { key: 'dup', label: 'Duplicate', onSelect: duplicate },
|
|
710
|
+
* { key: 'del', label: 'Delete', danger: true, separatorBefore: true, onSelect: remove },
|
|
711
|
+
* ]}
|
|
712
|
+
* />
|
|
713
|
+
*/
|
|
714
|
+
declare function MenuButton({ label, items, variant, size, icon, hideChevron, disabled, align, side, className, }: MenuButtonProps): react_jsx_runtime.JSX.Element;
|
|
715
|
+
|
|
631
716
|
type ModalSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
632
717
|
interface ModalProps {
|
|
633
718
|
/**
|
|
@@ -1028,6 +1113,94 @@ interface BadgeProps {
|
|
|
1028
1113
|
*/
|
|
1029
1114
|
declare function Badge({ children, tone, variant, size, icon, count, max, dot, showZero, className, style, }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
1030
1115
|
|
|
1116
|
+
type StepperActiveStatus = 'active' | 'loading' | 'error';
|
|
1117
|
+
interface StepperStep {
|
|
1118
|
+
key: string | number;
|
|
1119
|
+
title: React__default.ReactNode;
|
|
1120
|
+
description?: React__default.ReactNode;
|
|
1121
|
+
/** Custom indicator content (overrides the default number / check). */
|
|
1122
|
+
icon?: React__default.ReactNode;
|
|
1123
|
+
}
|
|
1124
|
+
interface StepperProps {
|
|
1125
|
+
steps: StepperStep[];
|
|
1126
|
+
/** Index of the active step (0-based). Steps before it render completed. */
|
|
1127
|
+
current: number;
|
|
1128
|
+
/**
|
|
1129
|
+
* Status of the *active* step. `'loading'` shows a spinner (for async
|
|
1130
|
+
* steps); `'error'` marks it failed. Default `'active'`.
|
|
1131
|
+
*/
|
|
1132
|
+
status?: StepperActiveStatus;
|
|
1133
|
+
/** Layout. Default `'horizontal'`. */
|
|
1134
|
+
orientation?: 'horizontal' | 'vertical';
|
|
1135
|
+
/** Switch horizontal → vertical below the `md` breakpoint. Default `true`. */
|
|
1136
|
+
responsive?: boolean;
|
|
1137
|
+
/** Make completed / visited steps clickable. */
|
|
1138
|
+
onStepClick?: (index: number) => void;
|
|
1139
|
+
size?: 'sm' | 'md';
|
|
1140
|
+
className?: string;
|
|
1141
|
+
}
|
|
1142
|
+
/**
|
|
1143
|
+
* A configurable steps indicator for multi-step flows — wizards, onboarding,
|
|
1144
|
+
* async pipelines. Completed steps show a check, the active step is highlighted
|
|
1145
|
+
* (or a spinner via `status="loading"` for async work, or an error mark), and
|
|
1146
|
+
* the connectors fill up to the current step. Horizontal or vertical, with an
|
|
1147
|
+
* optional responsive collapse to vertical on small screens.
|
|
1148
|
+
*
|
|
1149
|
+
* Controlled: you own `current` (and `status` for the active step).
|
|
1150
|
+
*
|
|
1151
|
+
* @example
|
|
1152
|
+
* <Stepper current={step} status={saving ? 'loading' : 'active'} steps={[
|
|
1153
|
+
* { key: 'cart', title: 'Cart', description: '3 items' },
|
|
1154
|
+
* { key: 'pay', title: 'Payment' },
|
|
1155
|
+
* { key: 'done', title: 'Done' },
|
|
1156
|
+
* ]} />
|
|
1157
|
+
*/
|
|
1158
|
+
declare function Stepper({ steps, current, status, orientation, responsive, onStepClick, size, className, }: StepperProps): react_jsx_runtime.JSX.Element;
|
|
1159
|
+
|
|
1160
|
+
type TimelineStatus = 'complete' | 'current' | 'upcoming' | 'error';
|
|
1161
|
+
interface TimelineEvent {
|
|
1162
|
+
key: string | number;
|
|
1163
|
+
/** Event title, e.g. "Out for delivery". */
|
|
1164
|
+
title: React__default.ReactNode;
|
|
1165
|
+
/** Optional detail line. */
|
|
1166
|
+
description?: React__default.ReactNode;
|
|
1167
|
+
/** Optional timestamp / meta, shown muted. */
|
|
1168
|
+
timestamp?: React__default.ReactNode;
|
|
1169
|
+
/** Custom node icon (overrides the default dot / check). */
|
|
1170
|
+
icon?: React__default.ReactNode;
|
|
1171
|
+
/** Explicit status. If omitted, derived from `current` (see Timeline). */
|
|
1172
|
+
status?: TimelineStatus;
|
|
1173
|
+
}
|
|
1174
|
+
interface TimelineProps {
|
|
1175
|
+
events: TimelineEvent[];
|
|
1176
|
+
/**
|
|
1177
|
+
* Index of the in-progress event. When set (and an event has no explicit
|
|
1178
|
+
* `status`), events before it are `complete`, the one at it is `current`,
|
|
1179
|
+
* and later ones are `upcoming`. Order-tracking style.
|
|
1180
|
+
*/
|
|
1181
|
+
current?: number;
|
|
1182
|
+
className?: string;
|
|
1183
|
+
}
|
|
1184
|
+
/**
|
|
1185
|
+
* A vertical timeline of ordered events — order tracking (Order placed →
|
|
1186
|
+
* Packed → Shipped → Out for delivery → Delivered), audit trails, activity
|
|
1187
|
+
* feeds, anything sequential. Completed events show a check on the accent rail;
|
|
1188
|
+
* the current event pulses; upcoming events are muted.
|
|
1189
|
+
*
|
|
1190
|
+
* Drive it either by setting each event's `status`, or by passing `current`
|
|
1191
|
+
* and letting the statuses derive from it.
|
|
1192
|
+
*
|
|
1193
|
+
* @example
|
|
1194
|
+
* <Timeline current={2} events={[
|
|
1195
|
+
* { key: 1, title: 'Order placed', timestamp: 'Mon 09:24' },
|
|
1196
|
+
* { key: 2, title: 'Gathering items', timestamp: 'Mon 11:02' },
|
|
1197
|
+
* { key: 3, title: 'Out for shipping', timestamp: 'Tue 08:15' },
|
|
1198
|
+
* { key: 4, title: 'Out for delivery' },
|
|
1199
|
+
* { key: 5, title: 'Delivered' },
|
|
1200
|
+
* ]} />
|
|
1201
|
+
*/
|
|
1202
|
+
declare function Timeline({ events, current, className }: TimelineProps): react_jsx_runtime.JSX.Element;
|
|
1203
|
+
|
|
1031
1204
|
type KbdSize = 'sm' | 'md';
|
|
1032
1205
|
interface KbdProps {
|
|
1033
1206
|
/** A single key's label when `keys` is not used. */
|
|
@@ -2671,6 +2844,57 @@ interface AppShellProps {
|
|
|
2671
2844
|
*/
|
|
2672
2845
|
declare function AppShell({ topBar, sidebarSections, sidebarExpandedWidth, sidebarCollapsedWidth, sidebarDefaultExpanded, sidebarFooter, children, className, }: AppShellProps): react_jsx_runtime.JSX.Element;
|
|
2673
2846
|
|
|
2847
|
+
interface SecureLayoutProps {
|
|
2848
|
+
/** Protected content, rendered only once access is granted. */
|
|
2849
|
+
children: React__default.ReactNode;
|
|
2850
|
+
/**
|
|
2851
|
+
* Whether the user is authenticated. If omitted and `token` is given,
|
|
2852
|
+
* authentication is inferred from the token's validity (non-expired).
|
|
2853
|
+
* If both are omitted, the user is treated as authenticated and only the
|
|
2854
|
+
* role / permission / `canAccess` gates apply.
|
|
2855
|
+
*/
|
|
2856
|
+
isAuthenticated?: boolean;
|
|
2857
|
+
/** A JWT. Used only to check expiry (`exp`) client-side — never trust this
|
|
2858
|
+
* for real authorization; the server must verify the signature. */
|
|
2859
|
+
token?: string;
|
|
2860
|
+
/** The user's roles (RBAC). */
|
|
2861
|
+
roles?: string[];
|
|
2862
|
+
/** Required role(s). User needs one (or all, with `requireAllRoles`). */
|
|
2863
|
+
requiredRoles?: string[];
|
|
2864
|
+
requireAllRoles?: boolean;
|
|
2865
|
+
/** The user's permissions (PBAC). */
|
|
2866
|
+
permissions?: string[];
|
|
2867
|
+
/** Required permission(s). One needed (or all, with `requireAllPermissions`). */
|
|
2868
|
+
requiredPermissions?: string[];
|
|
2869
|
+
requireAllPermissions?: boolean;
|
|
2870
|
+
/** Final say. Runs after the built-in checks; may be async. Return false to deny. */
|
|
2871
|
+
canAccess?: () => boolean | Promise<boolean>;
|
|
2872
|
+
/** Shown while the (possibly async) check resolves. */
|
|
2873
|
+
loadingFallback?: React__default.ReactNode;
|
|
2874
|
+
/** Shown when access is denied. Default is a simple "Access denied" panel. */
|
|
2875
|
+
fallback?: React__default.ReactNode;
|
|
2876
|
+
/** Fired once when access is denied — e.g. to redirect. */
|
|
2877
|
+
onDeny?: () => void;
|
|
2878
|
+
className?: string;
|
|
2879
|
+
}
|
|
2880
|
+
/**
|
|
2881
|
+
* A layout wrapper that gates its children behind an access check —
|
|
2882
|
+
* authentication, RBAC (roles), PBAC (permissions), JWT expiry, and/or a
|
|
2883
|
+
* custom (optionally async) predicate. While the check runs it shows a
|
|
2884
|
+
* loading fallback; on success it fades the content in; on failure it renders
|
|
2885
|
+
* a fallback and calls `onDeny`.
|
|
2886
|
+
*
|
|
2887
|
+
* This is a UI guard, not a security boundary — it controls what renders.
|
|
2888
|
+
* Real authorization must be enforced by your API/server.
|
|
2889
|
+
*
|
|
2890
|
+
* @example
|
|
2891
|
+
* <SecureLayout token={jwt} requiredRoles={['admin']} permissions={user.perms}
|
|
2892
|
+
* requiredPermissions={['reports:read']} onDeny={() => navigate('/login')}>
|
|
2893
|
+
* <AdminDashboard />
|
|
2894
|
+
* </SecureLayout>
|
|
2895
|
+
*/
|
|
2896
|
+
declare function SecureLayout({ children, isAuthenticated, token, roles, requiredRoles, requireAllRoles, permissions, requiredPermissions, requireAllPermissions, canAccess, loadingFallback, fallback, onDeny, className, }: SecureLayoutProps): react_jsx_runtime.JSX.Element;
|
|
2897
|
+
|
|
2674
2898
|
interface ThemeColors {
|
|
2675
2899
|
background?: string;
|
|
2676
2900
|
surface?: string;
|
|
@@ -2878,39 +3102,6 @@ interface SkeletonCardProps extends SkeletonBaseProps {
|
|
|
2878
3102
|
*/
|
|
2879
3103
|
declare function SkeletonCard({ hasAvatar, lines, className, style }: SkeletonCardProps): react_jsx_runtime.JSX.Element;
|
|
2880
3104
|
|
|
2881
|
-
interface ButtonProps extends Omit<React__default.ButtonHTMLAttributes<HTMLButtonElement>, 'type' | 'content'> {
|
|
2882
|
-
/** Button content (text or nodes). */
|
|
2883
|
-
content?: React__default.ReactNode;
|
|
2884
|
-
/** Visual style variant */
|
|
2885
|
-
variant?: 'primary' | 'secondary' | 'ghost' | 'danger' | 'warning' | 'success' | 'info';
|
|
2886
|
-
/** Size — controls height, padding, and font size */
|
|
2887
|
-
size?: 'sm' | 'md' | 'lg';
|
|
2888
|
-
/** HTML button type */
|
|
2889
|
-
buttonType?: 'button' | 'submit' | 'reset';
|
|
2890
|
-
/** Show a loading spinner and disable the control. */
|
|
2891
|
-
loading?: boolean;
|
|
2892
|
-
/** Leading icon — rendered before content */
|
|
2893
|
-
icon?: React__default.ReactNode;
|
|
2894
|
-
/**
|
|
2895
|
-
* @deprecated Pass `variant` instead. Kept for API compat — currently no-op.
|
|
2896
|
-
* Will be removed in the next major version.
|
|
2897
|
-
*/
|
|
2898
|
-
type?: string;
|
|
2899
|
-
}
|
|
2900
|
-
/**
|
|
2901
|
-
* Primary action button with variant + size system.
|
|
2902
|
-
*
|
|
2903
|
-
* Width is never hardcoded — set `style={{ width }}` or let the parent grid/flex control it.
|
|
2904
|
-
* Uses `React.forwardRef` so it works as a Radix `asChild` trigger (Popover, Tooltip, etc.).
|
|
2905
|
-
*
|
|
2906
|
-
* @example
|
|
2907
|
-
* <Button content="Save" onClick={handleSave} />
|
|
2908
|
-
* <Button content="Delete" variant="danger" size="sm" />
|
|
2909
|
-
* <Button content="Cancel" variant="secondary" />
|
|
2910
|
-
* <Button content="Loading…" loading buttonType="submit" />
|
|
2911
|
-
*/
|
|
2912
|
-
declare const Button: React__default.ForwardRefExoticComponent<ButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
2913
|
-
|
|
2914
3105
|
interface TextInputProps {
|
|
2915
3106
|
/** Controlled string value. */
|
|
2916
3107
|
value?: string;
|
|
@@ -4641,4 +4832,4 @@ declare function expiryError(value: string, now?: Date): string | undefined;
|
|
|
4641
4832
|
/** Validate the CVV against the detected brand's expected length. */
|
|
4642
4833
|
declare function cvvError(value: string, cardNumber: string): string | undefined;
|
|
4643
4834
|
|
|
4644
|
-
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, Box, type BoxBackground, type BoxBorder, type BoxProps, type BoxRadius, type BoxShadow, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, CARD_BRANDS, Calendar, type CalendarEvent, type CalendarProps, 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, Checkbox, type CheckboxProps, Checkout, type CheckoutProps, ColorPicker, type ColorPickerProps, ContextMenu, type ContextMenuActionItem, type ContextMenuPosition, type ContextMenuProps, 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, EmptyCart, type EmptyCartProps, type ErrorMap, type ExpandRowOptions, FAB, type FABAction, type FABPosition, type FABProps, type FABSize, type FABTone, FadingBase, type FadingBaseProps, 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, Icon, IconButton, type IconButtonProps, Kbd, type KbdProps, type KbdSize, List, type ListItem, type ListProps, LoadingSpinner, type LoadingSpinnerProps, MegaMenu, type MegaMenuFeaturedProps, type MegaMenuItemProps, type MegaMenuLinkProps, type MegaMenuPanelProps, type MegaMenuProps, type MegaMenuSectionProps, Modal, type ModalProps, type ModalSize, type NotificationPayload, NotificationProvider, NumberInput, type NumberInputProps, OpaqueGridCard, type OpaqueGridCardProps, OtpInput, type OtpInputProps, type PaginationOptions, Password, type PasswordProps, PopConfirm, type PopConfirmProps, type PopConfirmTone, Portal, type PortalProps, RadioGroup, type RadioGroupProps, type RadioOption, Rating, type RatingProps, type RulesMap, ScalableContainer, type ScalableContainerProps, SearchInput, type SearchInputProps, SegmentedControl, type SegmentedControlProps, type SegmentedOption, Sidebar, type SidebarItem, type SidebarProps, type SidebarSection, SkeletonBox, type SkeletonBoxProps, SkeletonCard, type SkeletonCardProps, SkeletonCircle, type SkeletonCircleProps, SkeletonText, type SkeletonTextProps, Slider, type SliderMark, type SliderProps, type SliderValue, type Spacing, Statistic, type StatisticDelta, type StatisticProps, type StatisticSize, 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, 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, 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, Wizard, type WizardProps, type WizardStep, cardNumberError, cvvError, detectBrand, expiryError, fieldShell, formatCardNumber, formatExpiry, isRequired, luhnValid, onlyDigits, patterns, runFieldRules, useCart, useFieldArray, useForm, useFormField, useFormStore, useNotification };
|
|
4835
|
+
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, Box, type BoxBackground, type BoxBorder, type BoxProps, type BoxRadius, type BoxShadow, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, CARD_BRANDS, Calendar, type CalendarEvent, type CalendarProps, 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, Checkbox, type CheckboxProps, Checkout, type CheckoutProps, ColorPicker, type ColorPickerProps, ContextMenu, type ContextMenuActionItem, type ContextMenuPosition, type ContextMenuProps, 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, EmptyCart, type EmptyCartProps, type ErrorMap, type ExpandRowOptions, FAB, type FABAction, type FABPosition, type FABProps, type FABSize, type FABTone, FadingBase, type FadingBaseProps, 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, Icon, IconButton, type IconButtonProps, Kbd, type KbdProps, type KbdSize, List, type ListItem, type ListProps, LoadingSpinner, type LoadingSpinnerProps, 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, Password, type PasswordProps, PopConfirm, type PopConfirmProps, type PopConfirmTone, Portal, type PortalProps, RadioGroup, type RadioGroupProps, type RadioOption, Rating, type RatingProps, type RulesMap, ScalableContainer, type ScalableContainerProps, SearchInput, type SearchInputProps, 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, Slider, type SliderMark, type SliderProps, type SliderValue, 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, 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, Wizard, type WizardProps, type WizardStep, cardNumberError, cvvError, detectBrand, expiryError, fieldShell, formatCardNumber, formatExpiry, isRequired, luhnValid, onlyDigits, patterns, runFieldRules, useCart, useFieldArray, useForm, useFormField, useFormStore, useNotification };
|
package/dist/index.d.ts
CHANGED
|
@@ -628,6 +628,91 @@ interface IconButtonProps {
|
|
|
628
628
|
*/
|
|
629
629
|
declare function IconButton({ icon, onClick, type, buttonType, disabled, size, loading, loadingIcon, title, className, style, }: IconButtonProps): react_jsx_runtime.JSX.Element;
|
|
630
630
|
|
|
631
|
+
interface ButtonProps extends Omit<React__default.ButtonHTMLAttributes<HTMLButtonElement>, 'type' | 'content'> {
|
|
632
|
+
/** Button content (text or nodes). */
|
|
633
|
+
content?: React__default.ReactNode;
|
|
634
|
+
/** Visual style variant */
|
|
635
|
+
variant?: 'primary' | 'secondary' | 'ghost' | 'danger' | 'warning' | 'success' | 'info';
|
|
636
|
+
/** Size — controls height, padding, and font size */
|
|
637
|
+
size?: 'sm' | 'md' | 'lg';
|
|
638
|
+
/** HTML button type */
|
|
639
|
+
buttonType?: 'button' | 'submit' | 'reset';
|
|
640
|
+
/** Show a loading spinner and disable the control. */
|
|
641
|
+
loading?: boolean;
|
|
642
|
+
/** Leading icon — rendered before content */
|
|
643
|
+
icon?: React__default.ReactNode;
|
|
644
|
+
/**
|
|
645
|
+
* @deprecated Pass `variant` instead. Kept for API compat — currently no-op.
|
|
646
|
+
* Will be removed in the next major version.
|
|
647
|
+
*/
|
|
648
|
+
type?: string;
|
|
649
|
+
}
|
|
650
|
+
/**
|
|
651
|
+
* Primary action button with variant + size system.
|
|
652
|
+
*
|
|
653
|
+
* Width is never hardcoded — set `style={{ width }}` or let the parent grid/flex control it.
|
|
654
|
+
* Uses `React.forwardRef` so it works as a Radix `asChild` trigger (Popover, Tooltip, etc.).
|
|
655
|
+
*
|
|
656
|
+
* @example
|
|
657
|
+
* <Button content="Save" onClick={handleSave} />
|
|
658
|
+
* <Button content="Delete" variant="danger" size="sm" />
|
|
659
|
+
* <Button content="Cancel" variant="secondary" />
|
|
660
|
+
* <Button content="Loading…" loading buttonType="submit" />
|
|
661
|
+
*/
|
|
662
|
+
declare const Button: React__default.ForwardRefExoticComponent<ButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
663
|
+
|
|
664
|
+
interface MenuButtonItem {
|
|
665
|
+
/** Stable key. */
|
|
666
|
+
key: string | number;
|
|
667
|
+
/** Row label. */
|
|
668
|
+
label: React__default.ReactNode;
|
|
669
|
+
/** Leading icon. */
|
|
670
|
+
icon?: React__default.ReactNode;
|
|
671
|
+
/** Fired on select (click / Enter / Space). */
|
|
672
|
+
onSelect?: () => void;
|
|
673
|
+
disabled?: boolean;
|
|
674
|
+
/** Destructive styling (red). */
|
|
675
|
+
danger?: boolean;
|
|
676
|
+
/** Render a divider above this item. */
|
|
677
|
+
separatorBefore?: boolean;
|
|
678
|
+
}
|
|
679
|
+
interface MenuButtonProps {
|
|
680
|
+
/** Trigger label. */
|
|
681
|
+
label?: React__default.ReactNode;
|
|
682
|
+
/** The menu rows. */
|
|
683
|
+
items: MenuButtonItem[];
|
|
684
|
+
/** Trigger button variant. Default `'secondary'`. */
|
|
685
|
+
variant?: ButtonProps['variant'];
|
|
686
|
+
/** Trigger button size. Default `'md'`. */
|
|
687
|
+
size?: ButtonProps['size'];
|
|
688
|
+
/** Leading icon on the trigger. */
|
|
689
|
+
icon?: React__default.ReactNode;
|
|
690
|
+
/** Hide the trailing chevron. */
|
|
691
|
+
hideChevron?: boolean;
|
|
692
|
+
disabled?: boolean;
|
|
693
|
+
/** Menu alignment to the trigger. Default `'start'`. */
|
|
694
|
+
align?: 'start' | 'center' | 'end';
|
|
695
|
+
/** Side to open on. Default `'bottom'`. */
|
|
696
|
+
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
697
|
+
className?: string;
|
|
698
|
+
}
|
|
699
|
+
/**
|
|
700
|
+
* A {@link Button} that opens a dropdown menu of actions, built on Radix
|
|
701
|
+
* DropdownMenu (full keyboard nav, focus management, typeahead, and ARIA).
|
|
702
|
+
* Pass the rows as `items`; the trailing chevron flips while the menu is open.
|
|
703
|
+
*
|
|
704
|
+
* @example
|
|
705
|
+
* <MenuButton
|
|
706
|
+
* label="Actions"
|
|
707
|
+
* items={[
|
|
708
|
+
* { key: 'edit', label: 'Edit', icon: <EditIcon />, onSelect: edit },
|
|
709
|
+
* { key: 'dup', label: 'Duplicate', onSelect: duplicate },
|
|
710
|
+
* { key: 'del', label: 'Delete', danger: true, separatorBefore: true, onSelect: remove },
|
|
711
|
+
* ]}
|
|
712
|
+
* />
|
|
713
|
+
*/
|
|
714
|
+
declare function MenuButton({ label, items, variant, size, icon, hideChevron, disabled, align, side, className, }: MenuButtonProps): react_jsx_runtime.JSX.Element;
|
|
715
|
+
|
|
631
716
|
type ModalSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
632
717
|
interface ModalProps {
|
|
633
718
|
/**
|
|
@@ -1028,6 +1113,94 @@ interface BadgeProps {
|
|
|
1028
1113
|
*/
|
|
1029
1114
|
declare function Badge({ children, tone, variant, size, icon, count, max, dot, showZero, className, style, }: BadgeProps): react_jsx_runtime.JSX.Element;
|
|
1030
1115
|
|
|
1116
|
+
type StepperActiveStatus = 'active' | 'loading' | 'error';
|
|
1117
|
+
interface StepperStep {
|
|
1118
|
+
key: string | number;
|
|
1119
|
+
title: React__default.ReactNode;
|
|
1120
|
+
description?: React__default.ReactNode;
|
|
1121
|
+
/** Custom indicator content (overrides the default number / check). */
|
|
1122
|
+
icon?: React__default.ReactNode;
|
|
1123
|
+
}
|
|
1124
|
+
interface StepperProps {
|
|
1125
|
+
steps: StepperStep[];
|
|
1126
|
+
/** Index of the active step (0-based). Steps before it render completed. */
|
|
1127
|
+
current: number;
|
|
1128
|
+
/**
|
|
1129
|
+
* Status of the *active* step. `'loading'` shows a spinner (for async
|
|
1130
|
+
* steps); `'error'` marks it failed. Default `'active'`.
|
|
1131
|
+
*/
|
|
1132
|
+
status?: StepperActiveStatus;
|
|
1133
|
+
/** Layout. Default `'horizontal'`. */
|
|
1134
|
+
orientation?: 'horizontal' | 'vertical';
|
|
1135
|
+
/** Switch horizontal → vertical below the `md` breakpoint. Default `true`. */
|
|
1136
|
+
responsive?: boolean;
|
|
1137
|
+
/** Make completed / visited steps clickable. */
|
|
1138
|
+
onStepClick?: (index: number) => void;
|
|
1139
|
+
size?: 'sm' | 'md';
|
|
1140
|
+
className?: string;
|
|
1141
|
+
}
|
|
1142
|
+
/**
|
|
1143
|
+
* A configurable steps indicator for multi-step flows — wizards, onboarding,
|
|
1144
|
+
* async pipelines. Completed steps show a check, the active step is highlighted
|
|
1145
|
+
* (or a spinner via `status="loading"` for async work, or an error mark), and
|
|
1146
|
+
* the connectors fill up to the current step. Horizontal or vertical, with an
|
|
1147
|
+
* optional responsive collapse to vertical on small screens.
|
|
1148
|
+
*
|
|
1149
|
+
* Controlled: you own `current` (and `status` for the active step).
|
|
1150
|
+
*
|
|
1151
|
+
* @example
|
|
1152
|
+
* <Stepper current={step} status={saving ? 'loading' : 'active'} steps={[
|
|
1153
|
+
* { key: 'cart', title: 'Cart', description: '3 items' },
|
|
1154
|
+
* { key: 'pay', title: 'Payment' },
|
|
1155
|
+
* { key: 'done', title: 'Done' },
|
|
1156
|
+
* ]} />
|
|
1157
|
+
*/
|
|
1158
|
+
declare function Stepper({ steps, current, status, orientation, responsive, onStepClick, size, className, }: StepperProps): react_jsx_runtime.JSX.Element;
|
|
1159
|
+
|
|
1160
|
+
type TimelineStatus = 'complete' | 'current' | 'upcoming' | 'error';
|
|
1161
|
+
interface TimelineEvent {
|
|
1162
|
+
key: string | number;
|
|
1163
|
+
/** Event title, e.g. "Out for delivery". */
|
|
1164
|
+
title: React__default.ReactNode;
|
|
1165
|
+
/** Optional detail line. */
|
|
1166
|
+
description?: React__default.ReactNode;
|
|
1167
|
+
/** Optional timestamp / meta, shown muted. */
|
|
1168
|
+
timestamp?: React__default.ReactNode;
|
|
1169
|
+
/** Custom node icon (overrides the default dot / check). */
|
|
1170
|
+
icon?: React__default.ReactNode;
|
|
1171
|
+
/** Explicit status. If omitted, derived from `current` (see Timeline). */
|
|
1172
|
+
status?: TimelineStatus;
|
|
1173
|
+
}
|
|
1174
|
+
interface TimelineProps {
|
|
1175
|
+
events: TimelineEvent[];
|
|
1176
|
+
/**
|
|
1177
|
+
* Index of the in-progress event. When set (and an event has no explicit
|
|
1178
|
+
* `status`), events before it are `complete`, the one at it is `current`,
|
|
1179
|
+
* and later ones are `upcoming`. Order-tracking style.
|
|
1180
|
+
*/
|
|
1181
|
+
current?: number;
|
|
1182
|
+
className?: string;
|
|
1183
|
+
}
|
|
1184
|
+
/**
|
|
1185
|
+
* A vertical timeline of ordered events — order tracking (Order placed →
|
|
1186
|
+
* Packed → Shipped → Out for delivery → Delivered), audit trails, activity
|
|
1187
|
+
* feeds, anything sequential. Completed events show a check on the accent rail;
|
|
1188
|
+
* the current event pulses; upcoming events are muted.
|
|
1189
|
+
*
|
|
1190
|
+
* Drive it either by setting each event's `status`, or by passing `current`
|
|
1191
|
+
* and letting the statuses derive from it.
|
|
1192
|
+
*
|
|
1193
|
+
* @example
|
|
1194
|
+
* <Timeline current={2} events={[
|
|
1195
|
+
* { key: 1, title: 'Order placed', timestamp: 'Mon 09:24' },
|
|
1196
|
+
* { key: 2, title: 'Gathering items', timestamp: 'Mon 11:02' },
|
|
1197
|
+
* { key: 3, title: 'Out for shipping', timestamp: 'Tue 08:15' },
|
|
1198
|
+
* { key: 4, title: 'Out for delivery' },
|
|
1199
|
+
* { key: 5, title: 'Delivered' },
|
|
1200
|
+
* ]} />
|
|
1201
|
+
*/
|
|
1202
|
+
declare function Timeline({ events, current, className }: TimelineProps): react_jsx_runtime.JSX.Element;
|
|
1203
|
+
|
|
1031
1204
|
type KbdSize = 'sm' | 'md';
|
|
1032
1205
|
interface KbdProps {
|
|
1033
1206
|
/** A single key's label when `keys` is not used. */
|
|
@@ -2671,6 +2844,57 @@ interface AppShellProps {
|
|
|
2671
2844
|
*/
|
|
2672
2845
|
declare function AppShell({ topBar, sidebarSections, sidebarExpandedWidth, sidebarCollapsedWidth, sidebarDefaultExpanded, sidebarFooter, children, className, }: AppShellProps): react_jsx_runtime.JSX.Element;
|
|
2673
2846
|
|
|
2847
|
+
interface SecureLayoutProps {
|
|
2848
|
+
/** Protected content, rendered only once access is granted. */
|
|
2849
|
+
children: React__default.ReactNode;
|
|
2850
|
+
/**
|
|
2851
|
+
* Whether the user is authenticated. If omitted and `token` is given,
|
|
2852
|
+
* authentication is inferred from the token's validity (non-expired).
|
|
2853
|
+
* If both are omitted, the user is treated as authenticated and only the
|
|
2854
|
+
* role / permission / `canAccess` gates apply.
|
|
2855
|
+
*/
|
|
2856
|
+
isAuthenticated?: boolean;
|
|
2857
|
+
/** A JWT. Used only to check expiry (`exp`) client-side — never trust this
|
|
2858
|
+
* for real authorization; the server must verify the signature. */
|
|
2859
|
+
token?: string;
|
|
2860
|
+
/** The user's roles (RBAC). */
|
|
2861
|
+
roles?: string[];
|
|
2862
|
+
/** Required role(s). User needs one (or all, with `requireAllRoles`). */
|
|
2863
|
+
requiredRoles?: string[];
|
|
2864
|
+
requireAllRoles?: boolean;
|
|
2865
|
+
/** The user's permissions (PBAC). */
|
|
2866
|
+
permissions?: string[];
|
|
2867
|
+
/** Required permission(s). One needed (or all, with `requireAllPermissions`). */
|
|
2868
|
+
requiredPermissions?: string[];
|
|
2869
|
+
requireAllPermissions?: boolean;
|
|
2870
|
+
/** Final say. Runs after the built-in checks; may be async. Return false to deny. */
|
|
2871
|
+
canAccess?: () => boolean | Promise<boolean>;
|
|
2872
|
+
/** Shown while the (possibly async) check resolves. */
|
|
2873
|
+
loadingFallback?: React__default.ReactNode;
|
|
2874
|
+
/** Shown when access is denied. Default is a simple "Access denied" panel. */
|
|
2875
|
+
fallback?: React__default.ReactNode;
|
|
2876
|
+
/** Fired once when access is denied — e.g. to redirect. */
|
|
2877
|
+
onDeny?: () => void;
|
|
2878
|
+
className?: string;
|
|
2879
|
+
}
|
|
2880
|
+
/**
|
|
2881
|
+
* A layout wrapper that gates its children behind an access check —
|
|
2882
|
+
* authentication, RBAC (roles), PBAC (permissions), JWT expiry, and/or a
|
|
2883
|
+
* custom (optionally async) predicate. While the check runs it shows a
|
|
2884
|
+
* loading fallback; on success it fades the content in; on failure it renders
|
|
2885
|
+
* a fallback and calls `onDeny`.
|
|
2886
|
+
*
|
|
2887
|
+
* This is a UI guard, not a security boundary — it controls what renders.
|
|
2888
|
+
* Real authorization must be enforced by your API/server.
|
|
2889
|
+
*
|
|
2890
|
+
* @example
|
|
2891
|
+
* <SecureLayout token={jwt} requiredRoles={['admin']} permissions={user.perms}
|
|
2892
|
+
* requiredPermissions={['reports:read']} onDeny={() => navigate('/login')}>
|
|
2893
|
+
* <AdminDashboard />
|
|
2894
|
+
* </SecureLayout>
|
|
2895
|
+
*/
|
|
2896
|
+
declare function SecureLayout({ children, isAuthenticated, token, roles, requiredRoles, requireAllRoles, permissions, requiredPermissions, requireAllPermissions, canAccess, loadingFallback, fallback, onDeny, className, }: SecureLayoutProps): react_jsx_runtime.JSX.Element;
|
|
2897
|
+
|
|
2674
2898
|
interface ThemeColors {
|
|
2675
2899
|
background?: string;
|
|
2676
2900
|
surface?: string;
|
|
@@ -2878,39 +3102,6 @@ interface SkeletonCardProps extends SkeletonBaseProps {
|
|
|
2878
3102
|
*/
|
|
2879
3103
|
declare function SkeletonCard({ hasAvatar, lines, className, style }: SkeletonCardProps): react_jsx_runtime.JSX.Element;
|
|
2880
3104
|
|
|
2881
|
-
interface ButtonProps extends Omit<React__default.ButtonHTMLAttributes<HTMLButtonElement>, 'type' | 'content'> {
|
|
2882
|
-
/** Button content (text or nodes). */
|
|
2883
|
-
content?: React__default.ReactNode;
|
|
2884
|
-
/** Visual style variant */
|
|
2885
|
-
variant?: 'primary' | 'secondary' | 'ghost' | 'danger' | 'warning' | 'success' | 'info';
|
|
2886
|
-
/** Size — controls height, padding, and font size */
|
|
2887
|
-
size?: 'sm' | 'md' | 'lg';
|
|
2888
|
-
/** HTML button type */
|
|
2889
|
-
buttonType?: 'button' | 'submit' | 'reset';
|
|
2890
|
-
/** Show a loading spinner and disable the control. */
|
|
2891
|
-
loading?: boolean;
|
|
2892
|
-
/** Leading icon — rendered before content */
|
|
2893
|
-
icon?: React__default.ReactNode;
|
|
2894
|
-
/**
|
|
2895
|
-
* @deprecated Pass `variant` instead. Kept for API compat — currently no-op.
|
|
2896
|
-
* Will be removed in the next major version.
|
|
2897
|
-
*/
|
|
2898
|
-
type?: string;
|
|
2899
|
-
}
|
|
2900
|
-
/**
|
|
2901
|
-
* Primary action button with variant + size system.
|
|
2902
|
-
*
|
|
2903
|
-
* Width is never hardcoded — set `style={{ width }}` or let the parent grid/flex control it.
|
|
2904
|
-
* Uses `React.forwardRef` so it works as a Radix `asChild` trigger (Popover, Tooltip, etc.).
|
|
2905
|
-
*
|
|
2906
|
-
* @example
|
|
2907
|
-
* <Button content="Save" onClick={handleSave} />
|
|
2908
|
-
* <Button content="Delete" variant="danger" size="sm" />
|
|
2909
|
-
* <Button content="Cancel" variant="secondary" />
|
|
2910
|
-
* <Button content="Loading…" loading buttonType="submit" />
|
|
2911
|
-
*/
|
|
2912
|
-
declare const Button: React__default.ForwardRefExoticComponent<ButtonProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
2913
|
-
|
|
2914
3105
|
interface TextInputProps {
|
|
2915
3106
|
/** Controlled string value. */
|
|
2916
3107
|
value?: string;
|
|
@@ -4641,4 +4832,4 @@ declare function expiryError(value: string, now?: Date): string | undefined;
|
|
|
4641
4832
|
/** Validate the CVV against the detected brand's expected length. */
|
|
4642
4833
|
declare function cvvError(value: string, cardNumber: string): string | undefined;
|
|
4643
4834
|
|
|
4644
|
-
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, Box, type BoxBackground, type BoxBorder, type BoxProps, type BoxRadius, type BoxShadow, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, CARD_BRANDS, Calendar, type CalendarEvent, type CalendarProps, 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, Checkbox, type CheckboxProps, Checkout, type CheckoutProps, ColorPicker, type ColorPickerProps, ContextMenu, type ContextMenuActionItem, type ContextMenuPosition, type ContextMenuProps, 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, EmptyCart, type EmptyCartProps, type ErrorMap, type ExpandRowOptions, FAB, type FABAction, type FABPosition, type FABProps, type FABSize, type FABTone, FadingBase, type FadingBaseProps, 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, Icon, IconButton, type IconButtonProps, Kbd, type KbdProps, type KbdSize, List, type ListItem, type ListProps, LoadingSpinner, type LoadingSpinnerProps, MegaMenu, type MegaMenuFeaturedProps, type MegaMenuItemProps, type MegaMenuLinkProps, type MegaMenuPanelProps, type MegaMenuProps, type MegaMenuSectionProps, Modal, type ModalProps, type ModalSize, type NotificationPayload, NotificationProvider, NumberInput, type NumberInputProps, OpaqueGridCard, type OpaqueGridCardProps, OtpInput, type OtpInputProps, type PaginationOptions, Password, type PasswordProps, PopConfirm, type PopConfirmProps, type PopConfirmTone, Portal, type PortalProps, RadioGroup, type RadioGroupProps, type RadioOption, Rating, type RatingProps, type RulesMap, ScalableContainer, type ScalableContainerProps, SearchInput, type SearchInputProps, SegmentedControl, type SegmentedControlProps, type SegmentedOption, Sidebar, type SidebarItem, type SidebarProps, type SidebarSection, SkeletonBox, type SkeletonBoxProps, SkeletonCard, type SkeletonCardProps, SkeletonCircle, type SkeletonCircleProps, SkeletonText, type SkeletonTextProps, Slider, type SliderMark, type SliderProps, type SliderValue, type Spacing, Statistic, type StatisticDelta, type StatisticProps, type StatisticSize, 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, 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, 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, Wizard, type WizardProps, type WizardStep, cardNumberError, cvvError, detectBrand, expiryError, fieldShell, formatCardNumber, formatExpiry, isRequired, luhnValid, onlyDigits, patterns, runFieldRules, useCart, useFieldArray, useForm, useFormField, useFormStore, useNotification };
|
|
4835
|
+
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, Box, type BoxBackground, type BoxBorder, type BoxProps, type BoxRadius, type BoxShadow, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, Button, type ButtonProps, CARD_BRANDS, Calendar, type CalendarEvent, type CalendarProps, 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, Checkbox, type CheckboxProps, Checkout, type CheckoutProps, ColorPicker, type ColorPickerProps, ContextMenu, type ContextMenuActionItem, type ContextMenuPosition, type ContextMenuProps, 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, EmptyCart, type EmptyCartProps, type ErrorMap, type ExpandRowOptions, FAB, type FABAction, type FABPosition, type FABProps, type FABSize, type FABTone, FadingBase, type FadingBaseProps, 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, Icon, IconButton, type IconButtonProps, Kbd, type KbdProps, type KbdSize, List, type ListItem, type ListProps, LoadingSpinner, type LoadingSpinnerProps, 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, Password, type PasswordProps, PopConfirm, type PopConfirmProps, type PopConfirmTone, Portal, type PortalProps, RadioGroup, type RadioGroupProps, type RadioOption, Rating, type RatingProps, type RulesMap, ScalableContainer, type ScalableContainerProps, SearchInput, type SearchInputProps, 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, Slider, type SliderMark, type SliderProps, type SliderValue, 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, 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, Wizard, type WizardProps, type WizardStep, cardNumberError, cvvError, detectBrand, expiryError, fieldShell, formatCardNumber, formatExpiry, isRequired, luhnValid, onlyDigits, patterns, runFieldRules, useCart, useFieldArray, useForm, useFormField, useFormStore, useNotification };
|