@geomak/ui 6.29.2 → 6.31.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 +171 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +159 -2
- package/dist/index.d.ts +159 -2
- package/dist/index.js +169 -15
- package/dist/index.js.map +1 -1
- package/dist/styles.css +85 -3
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1381,6 +1381,8 @@ interface ChatProps {
|
|
|
1381
1381
|
disabled?: boolean;
|
|
1382
1382
|
/** Hide the composer entirely (read-only transcript). */
|
|
1383
1383
|
hideComposer?: boolean;
|
|
1384
|
+
/** Shows a transcript skeleton (use while loading history, before messages arrive). */
|
|
1385
|
+
loading?: boolean;
|
|
1384
1386
|
/** Shown when there are no messages. */
|
|
1385
1387
|
emptyState?: React__default.ReactNode;
|
|
1386
1388
|
/** Overall height — the message list scrolls within it. Default `480`. */
|
|
@@ -1406,7 +1408,7 @@ interface ChatProps {
|
|
|
1406
1408
|
* onSend={(text) => send(text)}
|
|
1407
1409
|
* />
|
|
1408
1410
|
*/
|
|
1409
|
-
declare function Chat({ messages, currentUserId, onSend, typingNames, title, subtitle, avatar, headerActions, placeholder, disabled, hideComposer, emptyState, height, className, style, }: ChatProps): react_jsx_runtime.JSX.Element;
|
|
1411
|
+
declare function Chat({ messages, currentUserId, onSend, typingNames, title, subtitle, avatar, headerActions, placeholder, disabled, hideComposer, loading, emptyState, height, className, style, }: ChatProps): react_jsx_runtime.JSX.Element;
|
|
1410
1412
|
|
|
1411
1413
|
type StatisticSize = 'sm' | 'md' | 'lg';
|
|
1412
1414
|
type DeltaDirection = 'up' | 'down' | 'neutral';
|
|
@@ -5040,6 +5042,161 @@ interface JwtResult<T> {
|
|
|
5040
5042
|
*/
|
|
5041
5043
|
declare function useJwt<T = Record<string, unknown>>(token: string | null | undefined): JwtResult<T>;
|
|
5042
5044
|
|
|
5045
|
+
type JumbotronLayout = 'centered' | 'split';
|
|
5046
|
+
type JumbotronBackground = 'none' | 'surface' | 'gradient';
|
|
5047
|
+
interface JumbotronProps {
|
|
5048
|
+
/** Small label above the title (kicker / category). */
|
|
5049
|
+
eyebrow?: React__default.ReactNode;
|
|
5050
|
+
/** The hero headline. */
|
|
5051
|
+
title: React__default.ReactNode;
|
|
5052
|
+
/** Supporting paragraph under the title. */
|
|
5053
|
+
description?: React__default.ReactNode;
|
|
5054
|
+
/** Call-to-action row — typically one or two `Button`s. */
|
|
5055
|
+
actions?: React__default.ReactNode;
|
|
5056
|
+
/** Media (image / screenshot / illustration). Shown beside the copy in
|
|
5057
|
+
* `split`, below it in `centered`. */
|
|
5058
|
+
media?: React__default.ReactNode;
|
|
5059
|
+
/** `centered` (default) stacks copy centred; `split` is copy + media side-by-side. */
|
|
5060
|
+
layout?: JumbotronLayout;
|
|
5061
|
+
/** Backdrop: none, a raised surface card, or a soft accent gradient glow. */
|
|
5062
|
+
background?: JumbotronBackground;
|
|
5063
|
+
className?: string;
|
|
5064
|
+
style?: React__default.CSSProperties;
|
|
5065
|
+
}
|
|
5066
|
+
/**
|
|
5067
|
+
* A landing-page hero ("jumbotron"): an eyebrow, a large headline, a supporting
|
|
5068
|
+
* line, and call-to-action buttons — optionally paired with media. `centered`
|
|
5069
|
+
* stacks everything centred; `split` puts the copy next to the media and stacks
|
|
5070
|
+
* on small screens. Pair with FeatureGrid / PricingPlans / Testimonials to
|
|
5071
|
+
* compose a full page.
|
|
5072
|
+
*
|
|
5073
|
+
* @example
|
|
5074
|
+
* <Jumbotron
|
|
5075
|
+
* background="gradient"
|
|
5076
|
+
* eyebrow={<Badge tone="accent">New</Badge>}
|
|
5077
|
+
* title="Ship maritime ops faster"
|
|
5078
|
+
* description="One portal for compliance, performance and voyage data."
|
|
5079
|
+
* actions={<><Button content="Get started" /><Button variant="outline" content="Book a demo" /></>}
|
|
5080
|
+
* />
|
|
5081
|
+
*/
|
|
5082
|
+
declare function Jumbotron({ eyebrow, title, description, actions, media, layout, background, className, style, }: JumbotronProps): react_jsx_runtime.JSX.Element;
|
|
5083
|
+
|
|
5084
|
+
interface Feature {
|
|
5085
|
+
/** Stable key. */
|
|
5086
|
+
key?: string | number;
|
|
5087
|
+
/** Leading icon (rendered in an accent-tinted tile). */
|
|
5088
|
+
icon?: React__default.ReactNode;
|
|
5089
|
+
title: React__default.ReactNode;
|
|
5090
|
+
description?: React__default.ReactNode;
|
|
5091
|
+
}
|
|
5092
|
+
interface FeatureGridProps {
|
|
5093
|
+
/** The features to render. */
|
|
5094
|
+
features: Feature[];
|
|
5095
|
+
/** Section eyebrow / kicker. */
|
|
5096
|
+
eyebrow?: React__default.ReactNode;
|
|
5097
|
+
/** Section heading. */
|
|
5098
|
+
title?: React__default.ReactNode;
|
|
5099
|
+
/** Section sub-heading. */
|
|
5100
|
+
description?: React__default.ReactNode;
|
|
5101
|
+
/** Columns at the largest breakpoint (collapses responsively). Default `3`. */
|
|
5102
|
+
columns?: 2 | 3 | 4;
|
|
5103
|
+
/** Centre the section header. Default `true`. */
|
|
5104
|
+
centeredHeader?: boolean;
|
|
5105
|
+
className?: string;
|
|
5106
|
+
style?: React__default.CSSProperties;
|
|
5107
|
+
}
|
|
5108
|
+
/**
|
|
5109
|
+
* A responsive grid of product features — icon, title, blurb — with an optional
|
|
5110
|
+
* section header. Collapses to a single column on mobile.
|
|
5111
|
+
*
|
|
5112
|
+
* @example
|
|
5113
|
+
* <FeatureGrid
|
|
5114
|
+
* title="Everything in one portal"
|
|
5115
|
+
* columns={3}
|
|
5116
|
+
* features={[{ icon: <BoltIcon />, title: 'Realtime', description: 'Live vessel data.' }, …]}
|
|
5117
|
+
* />
|
|
5118
|
+
*/
|
|
5119
|
+
declare function FeatureGrid({ features, eyebrow, title, description, columns, centeredHeader, className, style, }: FeatureGridProps): react_jsx_runtime.JSX.Element;
|
|
5120
|
+
|
|
5121
|
+
interface PricingPlan {
|
|
5122
|
+
key?: string | number;
|
|
5123
|
+
/** Plan name, e.g. "Pro". */
|
|
5124
|
+
name: React__default.ReactNode;
|
|
5125
|
+
/** Price, e.g. "$49" or "Custom". */
|
|
5126
|
+
price: React__default.ReactNode;
|
|
5127
|
+
/** Billing period suffix, e.g. "/mo". */
|
|
5128
|
+
period?: React__default.ReactNode;
|
|
5129
|
+
/** Short positioning line. */
|
|
5130
|
+
description?: React__default.ReactNode;
|
|
5131
|
+
/** Included features (rendered with check marks). */
|
|
5132
|
+
features: React__default.ReactNode[];
|
|
5133
|
+
/** CTA button. */
|
|
5134
|
+
cta: {
|
|
5135
|
+
label: React__default.ReactNode;
|
|
5136
|
+
onClick?: () => void;
|
|
5137
|
+
};
|
|
5138
|
+
/** Emphasise this plan (accent border, lift, badge). */
|
|
5139
|
+
highlighted?: boolean;
|
|
5140
|
+
/** Small ribbon label on a highlighted plan, e.g. "Most popular". */
|
|
5141
|
+
badge?: React__default.ReactNode;
|
|
5142
|
+
}
|
|
5143
|
+
interface PricingPlansProps {
|
|
5144
|
+
plans: PricingPlan[];
|
|
5145
|
+
eyebrow?: React__default.ReactNode;
|
|
5146
|
+
title?: React__default.ReactNode;
|
|
5147
|
+
description?: React__default.ReactNode;
|
|
5148
|
+
className?: string;
|
|
5149
|
+
style?: React__default.CSSProperties;
|
|
5150
|
+
}
|
|
5151
|
+
/**
|
|
5152
|
+
* A pricing-tier section: a responsive row of plan cards, each with a price,
|
|
5153
|
+
* a feature checklist and a CTA. Mark one plan `highlighted` to lift it with an
|
|
5154
|
+
* accent border and an optional `badge`.
|
|
5155
|
+
*
|
|
5156
|
+
* @example
|
|
5157
|
+
* <PricingPlans title="Pricing" plans={[
|
|
5158
|
+
* { name: 'Starter', price: '$0', period: '/mo', features: ['1 vessel', 'Email support'], cta: { label: 'Start free' } },
|
|
5159
|
+
* { name: 'Pro', price: '$49', period: '/mo', highlighted: true, badge: 'Most popular',
|
|
5160
|
+
* features: ['Unlimited vessels', 'Priority support'], cta: { label: 'Go Pro' } },
|
|
5161
|
+
* ]} />
|
|
5162
|
+
*/
|
|
5163
|
+
declare function PricingPlans({ plans, eyebrow, title, description, className, style }: PricingPlansProps): react_jsx_runtime.JSX.Element;
|
|
5164
|
+
|
|
5165
|
+
interface Testimonial {
|
|
5166
|
+
key?: string | number;
|
|
5167
|
+
/** The quote text. */
|
|
5168
|
+
quote: React__default.ReactNode;
|
|
5169
|
+
/** Author name. */
|
|
5170
|
+
author: React__default.ReactNode;
|
|
5171
|
+
/** Author role / company. */
|
|
5172
|
+
role?: React__default.ReactNode;
|
|
5173
|
+
/** Author avatar URL (falls back to initials of `author`). */
|
|
5174
|
+
avatar?: string;
|
|
5175
|
+
/** Optional 1–5 star rating. */
|
|
5176
|
+
rating?: number;
|
|
5177
|
+
}
|
|
5178
|
+
interface TestimonialsProps {
|
|
5179
|
+
testimonials: Testimonial[];
|
|
5180
|
+
eyebrow?: React__default.ReactNode;
|
|
5181
|
+
title?: React__default.ReactNode;
|
|
5182
|
+
description?: React__default.ReactNode;
|
|
5183
|
+
/** Columns at the largest breakpoint. Default `3`. */
|
|
5184
|
+
columns?: 1 | 2 | 3;
|
|
5185
|
+
className?: string;
|
|
5186
|
+
style?: React__default.CSSProperties;
|
|
5187
|
+
}
|
|
5188
|
+
/**
|
|
5189
|
+
* A wall of customer testimonials — quote, star rating, and author with avatar.
|
|
5190
|
+
* Responsive grid (single column on mobile); use `columns={1}` for one centred
|
|
5191
|
+
* featured quote.
|
|
5192
|
+
*
|
|
5193
|
+
* @example
|
|
5194
|
+
* <Testimonials title="Loved by ops teams" testimonials={[
|
|
5195
|
+
* { quote: 'Cut our reporting time in half.', author: 'Maria F.', role: 'Fleet Manager', rating: 5 },
|
|
5196
|
+
* ]} />
|
|
5197
|
+
*/
|
|
5198
|
+
declare function Testimonials({ testimonials, eyebrow, title, description, columns, className, style }: TestimonialsProps): react_jsx_runtime.JSX.Element;
|
|
5199
|
+
|
|
5043
5200
|
/**
|
|
5044
5201
|
* Zero-dependency credit-card helpers: brand detection, Luhn checksum, and
|
|
5045
5202
|
* display formatting. Pure functions — no React, no deps — so they're unit
|
|
@@ -5082,4 +5239,4 @@ declare function expiryError(value: string, now?: Date): string | undefined;
|
|
|
5082
5239
|
/** Validate the CVV against the detected brand's expected length. */
|
|
5083
5240
|
declare function cvvError(value: string, cardNumber: string): string | undefined;
|
|
5084
5241
|
|
|
5085
|
-
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, 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, Chat, type ChatMessage, type ChatProps, 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, type JwtResult, Kbd, type KbdProps, type KbdSize, 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, Password, type PasswordProps, PopConfirm, type PopConfirmProps, type PopConfirmTone, Portal, type PortalProps, RadioGroup, type RadioGroupProps, type RadioOption, Rating, type RatingProps, type RulesMap, ScalableContainer, type ScalableContainerProps, Scheduler, type SchedulerEvent, type SchedulerProps, type SchedulerRange, type SchedulerView, 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, useBreakpoint, useCart, useFieldArray, useForm, useFormField, useFormStore, useJwt, useLocalStorage, useMediaQuery, useNotification };
|
|
5242
|
+
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, 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, Chat, type ChatMessage, type ChatProps, 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, 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, Icon, IconButton, type IconButtonProps, Jumbotron, type JumbotronBackground, type JumbotronLayout, type JumbotronProps, type JwtResult, Kbd, type KbdProps, type KbdSize, 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, Password, type PasswordProps, PopConfirm, type PopConfirmProps, type PopConfirmTone, Portal, type PortalProps, type PricingPlan, PricingPlans, type PricingPlansProps, RadioGroup, type RadioGroupProps, type RadioOption, Rating, type RatingProps, type RulesMap, ScalableContainer, type ScalableContainerProps, Scheduler, type SchedulerEvent, type SchedulerProps, type SchedulerRange, type SchedulerView, 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, 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, Wizard, type WizardProps, type WizardStep, cardNumberError, cvvError, detectBrand, expiryError, fieldShell, formatCardNumber, formatExpiry, isRequired, luhnValid, onlyDigits, patterns, runFieldRules, useBreakpoint, useCart, useFieldArray, useForm, useFormField, useFormStore, useJwt, useLocalStorage, useMediaQuery, useNotification };
|
package/dist/index.d.ts
CHANGED
|
@@ -1381,6 +1381,8 @@ interface ChatProps {
|
|
|
1381
1381
|
disabled?: boolean;
|
|
1382
1382
|
/** Hide the composer entirely (read-only transcript). */
|
|
1383
1383
|
hideComposer?: boolean;
|
|
1384
|
+
/** Shows a transcript skeleton (use while loading history, before messages arrive). */
|
|
1385
|
+
loading?: boolean;
|
|
1384
1386
|
/** Shown when there are no messages. */
|
|
1385
1387
|
emptyState?: React__default.ReactNode;
|
|
1386
1388
|
/** Overall height — the message list scrolls within it. Default `480`. */
|
|
@@ -1406,7 +1408,7 @@ interface ChatProps {
|
|
|
1406
1408
|
* onSend={(text) => send(text)}
|
|
1407
1409
|
* />
|
|
1408
1410
|
*/
|
|
1409
|
-
declare function Chat({ messages, currentUserId, onSend, typingNames, title, subtitle, avatar, headerActions, placeholder, disabled, hideComposer, emptyState, height, className, style, }: ChatProps): react_jsx_runtime.JSX.Element;
|
|
1411
|
+
declare function Chat({ messages, currentUserId, onSend, typingNames, title, subtitle, avatar, headerActions, placeholder, disabled, hideComposer, loading, emptyState, height, className, style, }: ChatProps): react_jsx_runtime.JSX.Element;
|
|
1410
1412
|
|
|
1411
1413
|
type StatisticSize = 'sm' | 'md' | 'lg';
|
|
1412
1414
|
type DeltaDirection = 'up' | 'down' | 'neutral';
|
|
@@ -5040,6 +5042,161 @@ interface JwtResult<T> {
|
|
|
5040
5042
|
*/
|
|
5041
5043
|
declare function useJwt<T = Record<string, unknown>>(token: string | null | undefined): JwtResult<T>;
|
|
5042
5044
|
|
|
5045
|
+
type JumbotronLayout = 'centered' | 'split';
|
|
5046
|
+
type JumbotronBackground = 'none' | 'surface' | 'gradient';
|
|
5047
|
+
interface JumbotronProps {
|
|
5048
|
+
/** Small label above the title (kicker / category). */
|
|
5049
|
+
eyebrow?: React__default.ReactNode;
|
|
5050
|
+
/** The hero headline. */
|
|
5051
|
+
title: React__default.ReactNode;
|
|
5052
|
+
/** Supporting paragraph under the title. */
|
|
5053
|
+
description?: React__default.ReactNode;
|
|
5054
|
+
/** Call-to-action row — typically one or two `Button`s. */
|
|
5055
|
+
actions?: React__default.ReactNode;
|
|
5056
|
+
/** Media (image / screenshot / illustration). Shown beside the copy in
|
|
5057
|
+
* `split`, below it in `centered`. */
|
|
5058
|
+
media?: React__default.ReactNode;
|
|
5059
|
+
/** `centered` (default) stacks copy centred; `split` is copy + media side-by-side. */
|
|
5060
|
+
layout?: JumbotronLayout;
|
|
5061
|
+
/** Backdrop: none, a raised surface card, or a soft accent gradient glow. */
|
|
5062
|
+
background?: JumbotronBackground;
|
|
5063
|
+
className?: string;
|
|
5064
|
+
style?: React__default.CSSProperties;
|
|
5065
|
+
}
|
|
5066
|
+
/**
|
|
5067
|
+
* A landing-page hero ("jumbotron"): an eyebrow, a large headline, a supporting
|
|
5068
|
+
* line, and call-to-action buttons — optionally paired with media. `centered`
|
|
5069
|
+
* stacks everything centred; `split` puts the copy next to the media and stacks
|
|
5070
|
+
* on small screens. Pair with FeatureGrid / PricingPlans / Testimonials to
|
|
5071
|
+
* compose a full page.
|
|
5072
|
+
*
|
|
5073
|
+
* @example
|
|
5074
|
+
* <Jumbotron
|
|
5075
|
+
* background="gradient"
|
|
5076
|
+
* eyebrow={<Badge tone="accent">New</Badge>}
|
|
5077
|
+
* title="Ship maritime ops faster"
|
|
5078
|
+
* description="One portal for compliance, performance and voyage data."
|
|
5079
|
+
* actions={<><Button content="Get started" /><Button variant="outline" content="Book a demo" /></>}
|
|
5080
|
+
* />
|
|
5081
|
+
*/
|
|
5082
|
+
declare function Jumbotron({ eyebrow, title, description, actions, media, layout, background, className, style, }: JumbotronProps): react_jsx_runtime.JSX.Element;
|
|
5083
|
+
|
|
5084
|
+
interface Feature {
|
|
5085
|
+
/** Stable key. */
|
|
5086
|
+
key?: string | number;
|
|
5087
|
+
/** Leading icon (rendered in an accent-tinted tile). */
|
|
5088
|
+
icon?: React__default.ReactNode;
|
|
5089
|
+
title: React__default.ReactNode;
|
|
5090
|
+
description?: React__default.ReactNode;
|
|
5091
|
+
}
|
|
5092
|
+
interface FeatureGridProps {
|
|
5093
|
+
/** The features to render. */
|
|
5094
|
+
features: Feature[];
|
|
5095
|
+
/** Section eyebrow / kicker. */
|
|
5096
|
+
eyebrow?: React__default.ReactNode;
|
|
5097
|
+
/** Section heading. */
|
|
5098
|
+
title?: React__default.ReactNode;
|
|
5099
|
+
/** Section sub-heading. */
|
|
5100
|
+
description?: React__default.ReactNode;
|
|
5101
|
+
/** Columns at the largest breakpoint (collapses responsively). Default `3`. */
|
|
5102
|
+
columns?: 2 | 3 | 4;
|
|
5103
|
+
/** Centre the section header. Default `true`. */
|
|
5104
|
+
centeredHeader?: boolean;
|
|
5105
|
+
className?: string;
|
|
5106
|
+
style?: React__default.CSSProperties;
|
|
5107
|
+
}
|
|
5108
|
+
/**
|
|
5109
|
+
* A responsive grid of product features — icon, title, blurb — with an optional
|
|
5110
|
+
* section header. Collapses to a single column on mobile.
|
|
5111
|
+
*
|
|
5112
|
+
* @example
|
|
5113
|
+
* <FeatureGrid
|
|
5114
|
+
* title="Everything in one portal"
|
|
5115
|
+
* columns={3}
|
|
5116
|
+
* features={[{ icon: <BoltIcon />, title: 'Realtime', description: 'Live vessel data.' }, …]}
|
|
5117
|
+
* />
|
|
5118
|
+
*/
|
|
5119
|
+
declare function FeatureGrid({ features, eyebrow, title, description, columns, centeredHeader, className, style, }: FeatureGridProps): react_jsx_runtime.JSX.Element;
|
|
5120
|
+
|
|
5121
|
+
interface PricingPlan {
|
|
5122
|
+
key?: string | number;
|
|
5123
|
+
/** Plan name, e.g. "Pro". */
|
|
5124
|
+
name: React__default.ReactNode;
|
|
5125
|
+
/** Price, e.g. "$49" or "Custom". */
|
|
5126
|
+
price: React__default.ReactNode;
|
|
5127
|
+
/** Billing period suffix, e.g. "/mo". */
|
|
5128
|
+
period?: React__default.ReactNode;
|
|
5129
|
+
/** Short positioning line. */
|
|
5130
|
+
description?: React__default.ReactNode;
|
|
5131
|
+
/** Included features (rendered with check marks). */
|
|
5132
|
+
features: React__default.ReactNode[];
|
|
5133
|
+
/** CTA button. */
|
|
5134
|
+
cta: {
|
|
5135
|
+
label: React__default.ReactNode;
|
|
5136
|
+
onClick?: () => void;
|
|
5137
|
+
};
|
|
5138
|
+
/** Emphasise this plan (accent border, lift, badge). */
|
|
5139
|
+
highlighted?: boolean;
|
|
5140
|
+
/** Small ribbon label on a highlighted plan, e.g. "Most popular". */
|
|
5141
|
+
badge?: React__default.ReactNode;
|
|
5142
|
+
}
|
|
5143
|
+
interface PricingPlansProps {
|
|
5144
|
+
plans: PricingPlan[];
|
|
5145
|
+
eyebrow?: React__default.ReactNode;
|
|
5146
|
+
title?: React__default.ReactNode;
|
|
5147
|
+
description?: React__default.ReactNode;
|
|
5148
|
+
className?: string;
|
|
5149
|
+
style?: React__default.CSSProperties;
|
|
5150
|
+
}
|
|
5151
|
+
/**
|
|
5152
|
+
* A pricing-tier section: a responsive row of plan cards, each with a price,
|
|
5153
|
+
* a feature checklist and a CTA. Mark one plan `highlighted` to lift it with an
|
|
5154
|
+
* accent border and an optional `badge`.
|
|
5155
|
+
*
|
|
5156
|
+
* @example
|
|
5157
|
+
* <PricingPlans title="Pricing" plans={[
|
|
5158
|
+
* { name: 'Starter', price: '$0', period: '/mo', features: ['1 vessel', 'Email support'], cta: { label: 'Start free' } },
|
|
5159
|
+
* { name: 'Pro', price: '$49', period: '/mo', highlighted: true, badge: 'Most popular',
|
|
5160
|
+
* features: ['Unlimited vessels', 'Priority support'], cta: { label: 'Go Pro' } },
|
|
5161
|
+
* ]} />
|
|
5162
|
+
*/
|
|
5163
|
+
declare function PricingPlans({ plans, eyebrow, title, description, className, style }: PricingPlansProps): react_jsx_runtime.JSX.Element;
|
|
5164
|
+
|
|
5165
|
+
interface Testimonial {
|
|
5166
|
+
key?: string | number;
|
|
5167
|
+
/** The quote text. */
|
|
5168
|
+
quote: React__default.ReactNode;
|
|
5169
|
+
/** Author name. */
|
|
5170
|
+
author: React__default.ReactNode;
|
|
5171
|
+
/** Author role / company. */
|
|
5172
|
+
role?: React__default.ReactNode;
|
|
5173
|
+
/** Author avatar URL (falls back to initials of `author`). */
|
|
5174
|
+
avatar?: string;
|
|
5175
|
+
/** Optional 1–5 star rating. */
|
|
5176
|
+
rating?: number;
|
|
5177
|
+
}
|
|
5178
|
+
interface TestimonialsProps {
|
|
5179
|
+
testimonials: Testimonial[];
|
|
5180
|
+
eyebrow?: React__default.ReactNode;
|
|
5181
|
+
title?: React__default.ReactNode;
|
|
5182
|
+
description?: React__default.ReactNode;
|
|
5183
|
+
/** Columns at the largest breakpoint. Default `3`. */
|
|
5184
|
+
columns?: 1 | 2 | 3;
|
|
5185
|
+
className?: string;
|
|
5186
|
+
style?: React__default.CSSProperties;
|
|
5187
|
+
}
|
|
5188
|
+
/**
|
|
5189
|
+
* A wall of customer testimonials — quote, star rating, and author with avatar.
|
|
5190
|
+
* Responsive grid (single column on mobile); use `columns={1}` for one centred
|
|
5191
|
+
* featured quote.
|
|
5192
|
+
*
|
|
5193
|
+
* @example
|
|
5194
|
+
* <Testimonials title="Loved by ops teams" testimonials={[
|
|
5195
|
+
* { quote: 'Cut our reporting time in half.', author: 'Maria F.', role: 'Fleet Manager', rating: 5 },
|
|
5196
|
+
* ]} />
|
|
5197
|
+
*/
|
|
5198
|
+
declare function Testimonials({ testimonials, eyebrow, title, description, columns, className, style }: TestimonialsProps): react_jsx_runtime.JSX.Element;
|
|
5199
|
+
|
|
5043
5200
|
/**
|
|
5044
5201
|
* Zero-dependency credit-card helpers: brand detection, Luhn checksum, and
|
|
5045
5202
|
* display formatting. Pure functions — no React, no deps — so they're unit
|
|
@@ -5082,4 +5239,4 @@ declare function expiryError(value: string, now?: Date): string | undefined;
|
|
|
5082
5239
|
/** Validate the CVV against the detected brand's expected length. */
|
|
5083
5240
|
declare function cvvError(value: string, cardNumber: string): string | undefined;
|
|
5084
5241
|
|
|
5085
|
-
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, 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, Chat, type ChatMessage, type ChatProps, 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, type JwtResult, Kbd, type KbdProps, type KbdSize, 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, Password, type PasswordProps, PopConfirm, type PopConfirmProps, type PopConfirmTone, Portal, type PortalProps, RadioGroup, type RadioGroupProps, type RadioOption, Rating, type RatingProps, type RulesMap, ScalableContainer, type ScalableContainerProps, Scheduler, type SchedulerEvent, type SchedulerProps, type SchedulerRange, type SchedulerView, 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, useBreakpoint, useCart, useFieldArray, useForm, useFormField, useFormStore, useJwt, useLocalStorage, useMediaQuery, useNotification };
|
|
5242
|
+
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, 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, Chat, type ChatMessage, type ChatProps, 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, 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, Icon, IconButton, type IconButtonProps, Jumbotron, type JumbotronBackground, type JumbotronLayout, type JumbotronProps, type JwtResult, Kbd, type KbdProps, type KbdSize, 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, Password, type PasswordProps, PopConfirm, type PopConfirmProps, type PopConfirmTone, Portal, type PortalProps, type PricingPlan, PricingPlans, type PricingPlansProps, RadioGroup, type RadioGroupProps, type RadioOption, Rating, type RatingProps, type RulesMap, ScalableContainer, type ScalableContainerProps, Scheduler, type SchedulerEvent, type SchedulerProps, type SchedulerRange, type SchedulerView, 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, 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, Wizard, type WizardProps, type WizardStep, cardNumberError, cvvError, detectBrand, expiryError, fieldShell, formatCardNumber, formatExpiry, isRequired, luhnValid, onlyDigits, patterns, runFieldRules, useBreakpoint, useCart, useFieldArray, useForm, useFormField, useFormStore, useJwt, useLocalStorage, useMediaQuery, useNotification };
|