@sovereignfs/ui 0.90.0 → 0.91.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/Auth.module.css +4 -0
- package/dist/index.d.ts +9 -3
- package/dist/index.js +10 -4
- package/package.json +1 -1
package/dist/Auth.module.css
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -44,10 +44,12 @@ declare function AuthCard({ brand, title, lead, legal, wide, children }: AuthCar
|
|
|
44
44
|
interface BrandBadgeProps {
|
|
45
45
|
/** The product's or instance's name; its first letter is the mark. */
|
|
46
46
|
name: string;
|
|
47
|
+
/** Letters to show instead of the name's first one, for a product known by two (such as "Fj"). */
|
|
48
|
+
mark?: string;
|
|
47
49
|
size?: 'md' | 'lg';
|
|
48
50
|
}
|
|
49
51
|
/** A product's mark when it has no logo: the first letter of its name in the accent colour. */
|
|
50
|
-
declare function BrandBadge({ name, size }: BrandBadgeProps): react.JSX.Element;
|
|
52
|
+
declare function BrandBadge({ name, mark, size }: BrandBadgeProps): react.JSX.Element;
|
|
51
53
|
|
|
52
54
|
/** What ties the control to its label, hint and error: spread it onto the `Input`. */
|
|
53
55
|
interface AuthFieldControl {
|
|
@@ -105,8 +107,12 @@ declare function AuthButton({ className, type, ...rest }: ButtonProps): react.JS
|
|
|
105
107
|
declare function AuthDivider({ children }: {
|
|
106
108
|
children?: ReactNode;
|
|
107
109
|
}): react.JSX.Element;
|
|
110
|
+
interface AuthFooterProps extends HTMLAttributes<HTMLParagraphElement> {
|
|
111
|
+
/** `start` for a page that is only a message and a link, where the link lines up with the text above it. */
|
|
112
|
+
align?: 'center' | 'start';
|
|
113
|
+
}
|
|
108
114
|
/** A line of small print under the form, centred: "New to Fjord? Create account". */
|
|
109
|
-
declare function AuthFooter({ className, ...rest }:
|
|
115
|
+
declare function AuthFooter({ align, className, ...rest }: AuthFooterProps): react.JSX.Element;
|
|
110
116
|
/** A link inside the card's text. */
|
|
111
117
|
declare function AuthLink({ className, children, ...rest }: AnchorHTMLAttributes<HTMLAnchorElement>): react.JSX.Element;
|
|
112
118
|
/** An action that reads as a link, such as "Use a backup code". */
|
|
@@ -3564,4 +3570,4 @@ interface QrCodeProps {
|
|
|
3564
3570
|
declare function QrCode({ modules, label }: QrCodeProps): react.JSX.Element;
|
|
3565
3571
|
|
|
3566
3572
|
export { Accordion, Alert, AppsLauncher, AspectRatio, AuthButton, AuthCard, AuthCodeInput, AuthDivider, AuthError, AuthField, AuthFooter, AuthForm, AuthLink, AuthLinkButton, AuthNotice, AuthShell, Avatar, Badge, BalanceChip, BrandBadge, Breadcrumb, Button, ButtonGroup, ButtonLink, Calendar, Card, CardTile, CardTileGrid, CheckableListRow, Checkbox, CodeTextarea, Collapsible, ColorPicker, Combobox, Command, ConfirmDialog, ConsentPrompt, ContextMenu, CopyButton, CurrencyInput, DataTable, DatePicker, DeviceOnlyGate, DeviceStorageKeyGate, Dialog, DragHandleRow, Drawer, EmptyState, FileDropzone, FormField, GripIcon, Header, HeaderFooterLayout, HoverCard, Icon, IconPicker, Input, Item, Kbd, Label, LegalLinks, MOBILE_BREAKPOINT_PX, Markdown, Marker, MemberMultiSelect, Menu, MenuEntries, Menubar, Message, MessageScroller, MobileAppsDrawer, MobileFooter, MobileHeader, NavList, NavTabs, NavigationMenu, NewCardTile, NotificationsPanel, OfflineGate, OverlayHeader, PageContainer, PageHeader, PageLayout, Pagination, Popover, Progress, QrCode, QuantityStepper, RadioGroup, ResizableHandle, ResizablePanel, ResizablePanelGroup, ResponsiveSurface, RootLayout, SWIPE_STACK_TRANSITION_MS, ScrollArea, SegmentedControl, Select, Sheet, Slider, Spinner, SplitMethodSelector, SplitPane, StatusBadge, StepStrip, SuggestionInput, SwipableMobileCarousel, SwipableMobileCarouselDots, SwipableMobileCarouselSlide, SwipableMobileCarouselSlideBody, SwipableMobileCarouselSlideFooter, SwipableMobileCarouselSlideHeader, SwipeStack, SwipeStackCard, SystemBanner, THEME_PRESETS, THEME_PRESET_NAMES, Table, TableBody, TableCell, TableHead, TableHeaderCell, TableRow, Tabs, TagInput, Textarea, ThreeColumnLayout, ToastProvider, Toggle, Tooltip, Typography, UserMenu, shouldHandleDndEvent, useCarouselRouteSync, useCommitOnEnterOrBlur, useDoubleTapHandler, useIsMobile, useIsOffline, useLongPress, useOfflineTileState, useOverlaySecondRow, useReorderSensors, useResponsiveLayout, useSingleOrDoubleTap, useSnapCarousel, useSwipeReveal, useSwipeStack, useToast };
|
|
3567
|
-
export type { AccordionItem, AccordionProps, AlertProps, AlertVariant, AppsLauncherItem, AppsLauncherProps, AspectRatioProps, AuthCardProps, AuthCodeInputProps, AuthFieldControl, AuthFieldProps, AvatarProps, BadgeProps, BadgeStatus, BadgeVariant, BalanceChipProps, BannerVariant, BrandBadgeProps, BreadcrumbItem, BreadcrumbProps, ButtonGroupProps, ButtonLinkProps, ButtonProps, ButtonSize, ButtonVariant, CalendarProps, CardProps, CardTileGridProps, CardTileProps, CheckableListRowProps, CheckboxProps, CodeTextareaProps, CollapsibleProps, ColorPickerProps, ColorPickerSwatch, ComboboxOption, ComboboxProps, CommandItem, CommandProps, CommitOnEnterOrBlurHandlers, ConfirmDialogProps, ConsentPromptProps, ContextMenuProps, CopyButtonProps, CurrencyInputProps, DataTableColumn, DataTableProps, DatePickerProps, DeviceOnlyGateProps, DeviceStorageKeyGateProps, DeviceStorageKeyGateStatus, DialogProps, DialogSize, DragHandleRowProps, DrawerProps, EmptyStateProps, FileDropzoneProps, FooterIcon, FormFieldProps, FormFieldRenderProps, GripIconProps, HeaderFooterLayoutProps, HeaderPlugin, HeaderProps, HoverCardProps, IconName, IconPickerProps, IconProps, InputProps, ItemProps, KbdProps, LabelProps, LegalLinksProps, LongPressHandlers, MarkdownProps, MarkerProps, MemberMultiSelectOption, MemberMultiSelectProps, MenuEntry, MenuItem, MenuLabel, MenuProps, MenuSeparator, MenubarMenu, MenubarProps, MessageProps, MessageScrollerProps, MessageSender, MobileAppsDrawerItem, MobileAppsDrawerProps, MobileFooterProps, MobileHeaderProps, NavListGroup, NavListItem, NavListLinkProps, NavListProps, NavTabItem, NavTabLinkProps, NavTabsProps, NavigationMenuItem, NavigationMenuProps, NewCardTileProps, NotificationsPanelItem, NotificationsPanelProps, OfflineGateProps, OfflineTileState, OverlayHeaderProps, PageContainerProps, PageHeaderProps, PageLayoutPadding, PageLayoutProps, PaginationProps, PopoverProps, ProgressProps, QrCodeProps, QuantityStepperProps, RadioGroupItem, RadioGroupProps, ResizableDirection, ResizableHandleProps, ResizablePanelGroupProps, ResizablePanelProps, ResponsiveSurfaceProps, RootLayoutProps, RootLayoutVariant, ScrollAreaProps, SegmentedControlProps, SegmentedOption, SelectProps, SheetProps, SliderProps, SortDirection, SpinnerProps, SplitMethod, SplitMethodSelectorProps, SplitPaneProps, StatusBadgeProps, StatusBadgeStatus, StepStripItem, StepStripProps, SuggestionInputProps, SuggestionOption, SwipableMobileCarouselDotsProps, SwipableMobileCarouselIndicatorProps, SwipableMobileCarouselProps, SwipableMobileCarouselSlideBodyProps, SwipableMobileCarouselSlideFooterProps, SwipableMobileCarouselSlideHeaderProps, SwipableMobileCarouselSlideProps, SwipeDirection, SwipeDirectionMeta, SwipeStackCardProps, SwipeStackProps, SystemBannerProps, TabItem, TableProps, TabsProps, TagInputProps, TextareaProps, ThemePresetName, ThemePresetTokens, ThreeColumnLayoutProps, ToastContextValue, ToastItem, ToggleProps, TooltipProps, TypographyProps, TypographyVariant, UseCarouselRouteSyncOptions, UseCarouselRouteSyncResult, UseLongPressOptions, UseReorderSensorsOptions, UseResponsiveLayoutOptions, UseResponsiveLayoutResult, UseSnapCarouselOptions, UseSnapCarouselResult, UseSwipeRevealHandlers, UseSwipeRevealOptions, UseSwipeRevealResult, UseSwipeStackHandlers, UseSwipeStackOptions, UseSwipeStackResult, UserMenuItem, UserMenuProps };
|
|
3573
|
+
export type { AccordionItem, AccordionProps, AlertProps, AlertVariant, AppsLauncherItem, AppsLauncherProps, AspectRatioProps, AuthCardProps, AuthCodeInputProps, AuthFieldControl, AuthFieldProps, AuthFooterProps, AvatarProps, BadgeProps, BadgeStatus, BadgeVariant, BalanceChipProps, BannerVariant, BrandBadgeProps, BreadcrumbItem, BreadcrumbProps, ButtonGroupProps, ButtonLinkProps, ButtonProps, ButtonSize, ButtonVariant, CalendarProps, CardProps, CardTileGridProps, CardTileProps, CheckableListRowProps, CheckboxProps, CodeTextareaProps, CollapsibleProps, ColorPickerProps, ColorPickerSwatch, ComboboxOption, ComboboxProps, CommandItem, CommandProps, CommitOnEnterOrBlurHandlers, ConfirmDialogProps, ConsentPromptProps, ContextMenuProps, CopyButtonProps, CurrencyInputProps, DataTableColumn, DataTableProps, DatePickerProps, DeviceOnlyGateProps, DeviceStorageKeyGateProps, DeviceStorageKeyGateStatus, DialogProps, DialogSize, DragHandleRowProps, DrawerProps, EmptyStateProps, FileDropzoneProps, FooterIcon, FormFieldProps, FormFieldRenderProps, GripIconProps, HeaderFooterLayoutProps, HeaderPlugin, HeaderProps, HoverCardProps, IconName, IconPickerProps, IconProps, InputProps, ItemProps, KbdProps, LabelProps, LegalLinksProps, LongPressHandlers, MarkdownProps, MarkerProps, MemberMultiSelectOption, MemberMultiSelectProps, MenuEntry, MenuItem, MenuLabel, MenuProps, MenuSeparator, MenubarMenu, MenubarProps, MessageProps, MessageScrollerProps, MessageSender, MobileAppsDrawerItem, MobileAppsDrawerProps, MobileFooterProps, MobileHeaderProps, NavListGroup, NavListItem, NavListLinkProps, NavListProps, NavTabItem, NavTabLinkProps, NavTabsProps, NavigationMenuItem, NavigationMenuProps, NewCardTileProps, NotificationsPanelItem, NotificationsPanelProps, OfflineGateProps, OfflineTileState, OverlayHeaderProps, PageContainerProps, PageHeaderProps, PageLayoutPadding, PageLayoutProps, PaginationProps, PopoverProps, ProgressProps, QrCodeProps, QuantityStepperProps, RadioGroupItem, RadioGroupProps, ResizableDirection, ResizableHandleProps, ResizablePanelGroupProps, ResizablePanelProps, ResponsiveSurfaceProps, RootLayoutProps, RootLayoutVariant, ScrollAreaProps, SegmentedControlProps, SegmentedOption, SelectProps, SheetProps, SliderProps, SortDirection, SpinnerProps, SplitMethod, SplitMethodSelectorProps, SplitPaneProps, StatusBadgeProps, StatusBadgeStatus, StepStripItem, StepStripProps, SuggestionInputProps, SuggestionOption, SwipableMobileCarouselDotsProps, SwipableMobileCarouselIndicatorProps, SwipableMobileCarouselProps, SwipableMobileCarouselSlideBodyProps, SwipableMobileCarouselSlideFooterProps, SwipableMobileCarouselSlideHeaderProps, SwipableMobileCarouselSlideProps, SwipeDirection, SwipeDirectionMeta, SwipeStackCardProps, SwipeStackProps, SystemBannerProps, TabItem, TableProps, TabsProps, TagInputProps, TextareaProps, ThemePresetName, ThemePresetTokens, ThreeColumnLayoutProps, ToastContextValue, ToastItem, ToggleProps, TooltipProps, TypographyProps, TypographyVariant, UseCarouselRouteSyncOptions, UseCarouselRouteSyncResult, UseLongPressOptions, UseReorderSensorsOptions, UseResponsiveLayoutOptions, UseResponsiveLayoutResult, UseSnapCarouselOptions, UseSnapCarouselResult, UseSwipeRevealHandlers, UseSwipeRevealOptions, UseSwipeRevealResult, UseSwipeStackHandlers, UseSwipeStackOptions, UseSwipeStackResult, UserMenuItem, UserMenuProps };
|
package/dist/index.js
CHANGED
|
@@ -38,13 +38,13 @@ function AuthCard({ brand, title, lead, legal = true, wide, children }) {
|
|
|
38
38
|
// src/components/Auth/BrandBadge.tsx
|
|
39
39
|
import styles4 from "./Auth.module.css";
|
|
40
40
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
41
|
-
function BrandBadge({ name, size = "md" }) {
|
|
41
|
+
function BrandBadge({ name, mark, size = "md" }) {
|
|
42
42
|
return /* @__PURE__ */ jsx4(
|
|
43
43
|
"span",
|
|
44
44
|
{
|
|
45
45
|
className: size === "lg" ? `${styles4.badge} ${styles4.badgeLg}` : styles4.badge,
|
|
46
46
|
"aria-hidden": "true",
|
|
47
|
-
children: name.trim()[0]?.toUpperCase()
|
|
47
|
+
children: mark?.trim() || name.trim()[0]?.toUpperCase() || "S"
|
|
48
48
|
}
|
|
49
49
|
);
|
|
50
50
|
}
|
|
@@ -146,8 +146,14 @@ function AuthButton({ className, type = "button", ...rest }) {
|
|
|
146
146
|
function AuthDivider({ children = "or" }) {
|
|
147
147
|
return /* @__PURE__ */ jsx8("div", { className: styles8.divider, "aria-hidden": "true", children });
|
|
148
148
|
}
|
|
149
|
-
function AuthFooter({ className, ...rest }) {
|
|
150
|
-
return /* @__PURE__ */ jsx8(
|
|
149
|
+
function AuthFooter({ align = "center", className, ...rest }) {
|
|
150
|
+
return /* @__PURE__ */ jsx8(
|
|
151
|
+
"p",
|
|
152
|
+
{
|
|
153
|
+
className: join(styles8.footer, align === "start" && styles8.footerStart, className),
|
|
154
|
+
...rest
|
|
155
|
+
}
|
|
156
|
+
);
|
|
151
157
|
}
|
|
152
158
|
function AuthLink({
|
|
153
159
|
className,
|