@geomak/ui 6.10.0 → 6.12.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 +424 -228
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +106 -1
- package/dist/index.d.ts +106 -1
- package/dist/index.js +230 -36
- package/dist/index.js.map +1 -1
- package/dist/styles.css +14 -0
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1289,6 +1289,111 @@ interface PopConfirmProps {
|
|
|
1289
1289
|
*/
|
|
1290
1290
|
declare function PopConfirm({ children, title, description, onConfirm, onCancel, confirmText, cancelText, tone, icon, side, open, onOpenChange, className, }: PopConfirmProps): react_jsx_runtime.JSX.Element;
|
|
1291
1291
|
|
|
1292
|
+
interface CalendarEvent {
|
|
1293
|
+
/** The day this event lands on (time ignored). */
|
|
1294
|
+
date: Date;
|
|
1295
|
+
/** Optional dot colour (any CSS colour). Defaults to the accent token. */
|
|
1296
|
+
color?: string;
|
|
1297
|
+
/** Optional label (used as the dot's title tooltip). */
|
|
1298
|
+
label?: string;
|
|
1299
|
+
}
|
|
1300
|
+
interface CalendarProps {
|
|
1301
|
+
/** Selected day. */
|
|
1302
|
+
value?: Date | null;
|
|
1303
|
+
/** Fires with the clicked day. */
|
|
1304
|
+
onChange?: (date: Date) => void;
|
|
1305
|
+
/** Controlled visible month (any day within it). */
|
|
1306
|
+
month?: Date;
|
|
1307
|
+
/** Uncontrolled initial visible month. */
|
|
1308
|
+
defaultMonth?: Date;
|
|
1309
|
+
/** Fires when the user pages months. */
|
|
1310
|
+
onMonthChange?: (month: Date) => void;
|
|
1311
|
+
/** Event markers — rendered as up to three dots beneath the day. */
|
|
1312
|
+
events?: CalendarEvent[];
|
|
1313
|
+
/** Earliest / latest selectable day. */
|
|
1314
|
+
min?: Date;
|
|
1315
|
+
max?: Date;
|
|
1316
|
+
/** First column: 0 Sunday (default), 1 Monday. */
|
|
1317
|
+
weekStartsOn?: 0 | 1;
|
|
1318
|
+
className?: string;
|
|
1319
|
+
style?: React__default.CSSProperties;
|
|
1320
|
+
}
|
|
1321
|
+
/**
|
|
1322
|
+
* A month-grid calendar — dependency-free date math, optional event dots, and
|
|
1323
|
+
* `min`/`max` bounds. Display + single-day selection; pair with your own state
|
|
1324
|
+
* for the value. For a popover date *field*, use **Temporal** (DatePicker).
|
|
1325
|
+
*
|
|
1326
|
+
* @example
|
|
1327
|
+
* ```tsx
|
|
1328
|
+
* const [day, setDay] = useState<Date | null>(null)
|
|
1329
|
+
* <Calendar value={day} onChange={setDay} events={[{ date: new Date(), label: 'Today' }]} />
|
|
1330
|
+
* ```
|
|
1331
|
+
*/
|
|
1332
|
+
declare function Calendar({ value, onChange, month, defaultMonth, onMonthChange, events, min, max, weekStartsOn, className, style, }: CalendarProps): react_jsx_runtime.JSX.Element;
|
|
1333
|
+
|
|
1334
|
+
interface CartLineItem {
|
|
1335
|
+
id: string | number;
|
|
1336
|
+
/** Product name. */
|
|
1337
|
+
name: React__default.ReactNode;
|
|
1338
|
+
/** Unit price. */
|
|
1339
|
+
price: number;
|
|
1340
|
+
/** Quantity in the cart. */
|
|
1341
|
+
quantity: number;
|
|
1342
|
+
/** Optional thumbnail URL. */
|
|
1343
|
+
image?: string;
|
|
1344
|
+
/** Optional secondary line (variant, SKU). */
|
|
1345
|
+
meta?: React__default.ReactNode;
|
|
1346
|
+
/** Per-line quantity ceiling. */
|
|
1347
|
+
max?: number;
|
|
1348
|
+
}
|
|
1349
|
+
interface CartSummaryRow {
|
|
1350
|
+
label: React__default.ReactNode;
|
|
1351
|
+
/** Signed amount — negative for discounts. */
|
|
1352
|
+
value: number;
|
|
1353
|
+
/** Render in muted/normal style instead of emphasised. */
|
|
1354
|
+
muted?: boolean;
|
|
1355
|
+
}
|
|
1356
|
+
interface CartProps {
|
|
1357
|
+
/** Line items. */
|
|
1358
|
+
items: CartLineItem[];
|
|
1359
|
+
/** Fires when a line's stepper changes (clamped to 1..max). */
|
|
1360
|
+
onQuantityChange?: (id: CartLineItem['id'], quantity: number) => void;
|
|
1361
|
+
/** Fires when a line's remove button is pressed. */
|
|
1362
|
+
onRemove?: (id: CartLineItem['id']) => void;
|
|
1363
|
+
/** Extra summary rows (shipping, tax, discount) added to the subtotal for the total. */
|
|
1364
|
+
summaryRows?: CartSummaryRow[];
|
|
1365
|
+
/** Price formatter. Default `'$' + value.toFixed(2)`. */
|
|
1366
|
+
formatPrice?: (value: number) => string;
|
|
1367
|
+
/** Checkout button label. Default `'Checkout'`. */
|
|
1368
|
+
checkoutLabel?: React__default.ReactNode;
|
|
1369
|
+
/** Checkout handler. Omit to hide the button. */
|
|
1370
|
+
onCheckout?: () => void;
|
|
1371
|
+
/** Shown when there are no items. */
|
|
1372
|
+
emptyState?: React__default.ReactNode;
|
|
1373
|
+
className?: string;
|
|
1374
|
+
style?: React__default.CSSProperties;
|
|
1375
|
+
}
|
|
1376
|
+
/**
|
|
1377
|
+
* A shopping-cart panel: line items with thumbnail, quantity stepper, and
|
|
1378
|
+
* remove, plus a summary that totals the subtotal with any extra rows
|
|
1379
|
+
* (shipping, tax, discount) and an optional checkout button.
|
|
1380
|
+
*
|
|
1381
|
+
* Stateless and controlled — you own the items array and react to
|
|
1382
|
+
* `onQuantityChange` / `onRemove`.
|
|
1383
|
+
*
|
|
1384
|
+
* @example
|
|
1385
|
+
* ```tsx
|
|
1386
|
+
* <Cart
|
|
1387
|
+
* items={items}
|
|
1388
|
+
* onQuantityChange={(id, q) => setQty(id, q)}
|
|
1389
|
+
* onRemove={removeItem}
|
|
1390
|
+
* summaryRows={[{ label: 'Shipping', value: 9.5 }]}
|
|
1391
|
+
* onCheckout={checkout}
|
|
1392
|
+
* />
|
|
1393
|
+
* ```
|
|
1394
|
+
*/
|
|
1395
|
+
declare function Cart({ items, onQuantityChange, onRemove, summaryRows, formatPrice, checkoutLabel, onCheckout, emptyState, className, style, }: CartProps): react_jsx_runtime.JSX.Element;
|
|
1396
|
+
|
|
1292
1397
|
/** ─────────────────── types ─────────────────── */
|
|
1293
1398
|
type NotificationType = 'info' | 'success' | 'warning' | 'danger';
|
|
1294
1399
|
type NotificationPosition = 'top-right' | 'top-left' | 'top-center' | 'bottom-right' | 'bottom-left' | 'bottom-center';
|
|
@@ -4357,4 +4462,4 @@ declare function expiryError(value: string, now?: Date): string | undefined;
|
|
|
4357
4462
|
/** Validate the CVV against the detected brand's expected length. */
|
|
4358
4463
|
declare function cvvError(value: string, cardNumber: string): string | undefined;
|
|
4359
4464
|
|
|
4360
|
-
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, Card, type CardBodyProps, type CardBrand, CardCarousel, type CardCarouselProps, type CardFooterProps, type CardHeaderProps, type CardMediaProps, type CardProps, Catalog, CatalogCarousel, type CatalogCarouselProps, CatalogGrid, type CatalogGridProps, type CatalogProps, Checkbox, type CheckboxProps, 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, Dropdown, type DropdownItem, type DropdownProps, 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 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, useFieldArray, useForm, useFormField, useFormStore, useNotification };
|
|
4465
|
+
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, type CartLineItem, type CartProps, type CartSummaryRow, Catalog, CatalogCarousel, type CatalogCarouselProps, CatalogGrid, type CatalogGridProps, type CatalogProps, Checkbox, type CheckboxProps, 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, Dropdown, type DropdownItem, type DropdownProps, 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 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, useFieldArray, useForm, useFormField, useFormStore, useNotification };
|
package/dist/index.d.ts
CHANGED
|
@@ -1289,6 +1289,111 @@ interface PopConfirmProps {
|
|
|
1289
1289
|
*/
|
|
1290
1290
|
declare function PopConfirm({ children, title, description, onConfirm, onCancel, confirmText, cancelText, tone, icon, side, open, onOpenChange, className, }: PopConfirmProps): react_jsx_runtime.JSX.Element;
|
|
1291
1291
|
|
|
1292
|
+
interface CalendarEvent {
|
|
1293
|
+
/** The day this event lands on (time ignored). */
|
|
1294
|
+
date: Date;
|
|
1295
|
+
/** Optional dot colour (any CSS colour). Defaults to the accent token. */
|
|
1296
|
+
color?: string;
|
|
1297
|
+
/** Optional label (used as the dot's title tooltip). */
|
|
1298
|
+
label?: string;
|
|
1299
|
+
}
|
|
1300
|
+
interface CalendarProps {
|
|
1301
|
+
/** Selected day. */
|
|
1302
|
+
value?: Date | null;
|
|
1303
|
+
/** Fires with the clicked day. */
|
|
1304
|
+
onChange?: (date: Date) => void;
|
|
1305
|
+
/** Controlled visible month (any day within it). */
|
|
1306
|
+
month?: Date;
|
|
1307
|
+
/** Uncontrolled initial visible month. */
|
|
1308
|
+
defaultMonth?: Date;
|
|
1309
|
+
/** Fires when the user pages months. */
|
|
1310
|
+
onMonthChange?: (month: Date) => void;
|
|
1311
|
+
/** Event markers — rendered as up to three dots beneath the day. */
|
|
1312
|
+
events?: CalendarEvent[];
|
|
1313
|
+
/** Earliest / latest selectable day. */
|
|
1314
|
+
min?: Date;
|
|
1315
|
+
max?: Date;
|
|
1316
|
+
/** First column: 0 Sunday (default), 1 Monday. */
|
|
1317
|
+
weekStartsOn?: 0 | 1;
|
|
1318
|
+
className?: string;
|
|
1319
|
+
style?: React__default.CSSProperties;
|
|
1320
|
+
}
|
|
1321
|
+
/**
|
|
1322
|
+
* A month-grid calendar — dependency-free date math, optional event dots, and
|
|
1323
|
+
* `min`/`max` bounds. Display + single-day selection; pair with your own state
|
|
1324
|
+
* for the value. For a popover date *field*, use **Temporal** (DatePicker).
|
|
1325
|
+
*
|
|
1326
|
+
* @example
|
|
1327
|
+
* ```tsx
|
|
1328
|
+
* const [day, setDay] = useState<Date | null>(null)
|
|
1329
|
+
* <Calendar value={day} onChange={setDay} events={[{ date: new Date(), label: 'Today' }]} />
|
|
1330
|
+
* ```
|
|
1331
|
+
*/
|
|
1332
|
+
declare function Calendar({ value, onChange, month, defaultMonth, onMonthChange, events, min, max, weekStartsOn, className, style, }: CalendarProps): react_jsx_runtime.JSX.Element;
|
|
1333
|
+
|
|
1334
|
+
interface CartLineItem {
|
|
1335
|
+
id: string | number;
|
|
1336
|
+
/** Product name. */
|
|
1337
|
+
name: React__default.ReactNode;
|
|
1338
|
+
/** Unit price. */
|
|
1339
|
+
price: number;
|
|
1340
|
+
/** Quantity in the cart. */
|
|
1341
|
+
quantity: number;
|
|
1342
|
+
/** Optional thumbnail URL. */
|
|
1343
|
+
image?: string;
|
|
1344
|
+
/** Optional secondary line (variant, SKU). */
|
|
1345
|
+
meta?: React__default.ReactNode;
|
|
1346
|
+
/** Per-line quantity ceiling. */
|
|
1347
|
+
max?: number;
|
|
1348
|
+
}
|
|
1349
|
+
interface CartSummaryRow {
|
|
1350
|
+
label: React__default.ReactNode;
|
|
1351
|
+
/** Signed amount — negative for discounts. */
|
|
1352
|
+
value: number;
|
|
1353
|
+
/** Render in muted/normal style instead of emphasised. */
|
|
1354
|
+
muted?: boolean;
|
|
1355
|
+
}
|
|
1356
|
+
interface CartProps {
|
|
1357
|
+
/** Line items. */
|
|
1358
|
+
items: CartLineItem[];
|
|
1359
|
+
/** Fires when a line's stepper changes (clamped to 1..max). */
|
|
1360
|
+
onQuantityChange?: (id: CartLineItem['id'], quantity: number) => void;
|
|
1361
|
+
/** Fires when a line's remove button is pressed. */
|
|
1362
|
+
onRemove?: (id: CartLineItem['id']) => void;
|
|
1363
|
+
/** Extra summary rows (shipping, tax, discount) added to the subtotal for the total. */
|
|
1364
|
+
summaryRows?: CartSummaryRow[];
|
|
1365
|
+
/** Price formatter. Default `'$' + value.toFixed(2)`. */
|
|
1366
|
+
formatPrice?: (value: number) => string;
|
|
1367
|
+
/** Checkout button label. Default `'Checkout'`. */
|
|
1368
|
+
checkoutLabel?: React__default.ReactNode;
|
|
1369
|
+
/** Checkout handler. Omit to hide the button. */
|
|
1370
|
+
onCheckout?: () => void;
|
|
1371
|
+
/** Shown when there are no items. */
|
|
1372
|
+
emptyState?: React__default.ReactNode;
|
|
1373
|
+
className?: string;
|
|
1374
|
+
style?: React__default.CSSProperties;
|
|
1375
|
+
}
|
|
1376
|
+
/**
|
|
1377
|
+
* A shopping-cart panel: line items with thumbnail, quantity stepper, and
|
|
1378
|
+
* remove, plus a summary that totals the subtotal with any extra rows
|
|
1379
|
+
* (shipping, tax, discount) and an optional checkout button.
|
|
1380
|
+
*
|
|
1381
|
+
* Stateless and controlled — you own the items array and react to
|
|
1382
|
+
* `onQuantityChange` / `onRemove`.
|
|
1383
|
+
*
|
|
1384
|
+
* @example
|
|
1385
|
+
* ```tsx
|
|
1386
|
+
* <Cart
|
|
1387
|
+
* items={items}
|
|
1388
|
+
* onQuantityChange={(id, q) => setQty(id, q)}
|
|
1389
|
+
* onRemove={removeItem}
|
|
1390
|
+
* summaryRows={[{ label: 'Shipping', value: 9.5 }]}
|
|
1391
|
+
* onCheckout={checkout}
|
|
1392
|
+
* />
|
|
1393
|
+
* ```
|
|
1394
|
+
*/
|
|
1395
|
+
declare function Cart({ items, onQuantityChange, onRemove, summaryRows, formatPrice, checkoutLabel, onCheckout, emptyState, className, style, }: CartProps): react_jsx_runtime.JSX.Element;
|
|
1396
|
+
|
|
1292
1397
|
/** ─────────────────── types ─────────────────── */
|
|
1293
1398
|
type NotificationType = 'info' | 'success' | 'warning' | 'danger';
|
|
1294
1399
|
type NotificationPosition = 'top-right' | 'top-left' | 'top-center' | 'bottom-right' | 'bottom-left' | 'bottom-center';
|
|
@@ -4357,4 +4462,4 @@ declare function expiryError(value: string, now?: Date): string | undefined;
|
|
|
4357
4462
|
/** Validate the CVV against the detected brand's expected length. */
|
|
4358
4463
|
declare function cvvError(value: string, cardNumber: string): string | undefined;
|
|
4359
4464
|
|
|
4360
|
-
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, Card, type CardBodyProps, type CardBrand, CardCarousel, type CardCarouselProps, type CardFooterProps, type CardHeaderProps, type CardMediaProps, type CardProps, Catalog, CatalogCarousel, type CatalogCarouselProps, CatalogGrid, type CatalogGridProps, type CatalogProps, Checkbox, type CheckboxProps, 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, Dropdown, type DropdownItem, type DropdownProps, 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 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, useFieldArray, useForm, useFormField, useFormStore, useNotification };
|
|
4465
|
+
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, type CartLineItem, type CartProps, type CartSummaryRow, Catalog, CatalogCarousel, type CatalogCarouselProps, CatalogGrid, type CatalogGridProps, type CatalogProps, Checkbox, type CheckboxProps, 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, Dropdown, type DropdownItem, type DropdownProps, 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 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, useFieldArray, useForm, useFormField, useFormStore, useNotification };
|