@ai-matrx/design-system 0.86.353 → 0.86.355
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/CHANGELOG.md +14 -0
- package/dist/carousel.js +2 -2
- package/dist/chunk-LJKF267O.js +168 -0
- package/dist/chunk-LJKF267O.js.map +1 -0
- package/dist/{chunk-CFCWQDGC.js → chunk-RLM4RSED.js} +5 -23
- package/dist/chunk-RLM4RSED.js.map +1 -0
- package/dist/{chunk-UGQRAQTE.js → chunk-XXZA2JUP.js} +2 -2
- package/dist/{chunk-FLWSEDUW.js → chunk-ZMUPFGQO.js} +2 -2
- package/dist/controls.cjs +85 -1
- package/dist/controls.cjs.map +1 -1
- package/dist/controls.js +2 -2
- package/dist/data-table/drill-chart.cjs +85 -1
- package/dist/data-table/drill-chart.cjs.map +1 -1
- package/dist/data-table/drill-chart.js +1 -1
- package/dist/data-table/index.cjs +85 -1
- package/dist/data-table/index.cjs.map +1 -1
- package/dist/data-table/index.js +1 -1
- package/dist/desktop.cjs +159 -81
- package/dist/desktop.cjs.map +1 -1
- package/dist/desktop.css +8 -5
- package/dist/desktop.d.cts +0 -5
- package/dist/desktop.d.ts +0 -5
- package/dist/desktop.js +70 -70
- package/dist/desktop.js.map +1 -1
- package/dist/email-input-dialog.cjs +85 -1
- package/dist/email-input-dialog.cjs.map +1 -1
- package/dist/email-input-dialog.js +1 -1
- package/dist/index.cjs +118 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -1
- package/dist/index.d.ts +17 -1
- package/dist/index.js +20 -12
- package/dist/index.js.map +1 -1
- package/dist/lite-table.cjs +86 -19
- package/dist/lite-table.cjs.map +1 -1
- package/dist/lite-table.js +2 -2
- package/dist/notice-material.css +28 -0
- package/dist/record-list.cjs +86 -19
- package/dist/record-list.cjs.map +1 -1
- package/dist/record-list.js +2 -2
- package/dist/styles.css +1 -0
- package/dist/swipe-deck.cjs +85 -1
- package/dist/swipe-deck.cjs.map +1 -1
- package/dist/swipe-deck.js +1 -1
- package/dist/text-input-dialog.cjs +85 -1
- package/dist/text-input-dialog.cjs.map +1 -1
- package/dist/text-input-dialog.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-CFCWQDGC.js.map +0 -1
- package/dist/chunk-HKLIRHT2.js +0 -71
- package/dist/chunk-HKLIRHT2.js.map +0 -1
- /package/dist/{chunk-UGQRAQTE.js.map → chunk-XXZA2JUP.js.map} +0 -0
- /package/dist/{chunk-FLWSEDUW.js.map → chunk-ZMUPFGQO.js.map} +0 -0
package/dist/index.d.cts
CHANGED
|
@@ -313,8 +313,24 @@ declare function errorSentenceOf(error: unknown): string;
|
|
|
313
313
|
* @ai-matrx/records' `TIMED_OUT_MESSAGE` gives.
|
|
314
314
|
*/
|
|
315
315
|
declare const TIMED_OUT_SENTENCE = "That took too long. Nothing was lost; try again.";
|
|
316
|
+
/** What a person reads when an error says nothing a person can use. */
|
|
317
|
+
declare const FALLBACK_ERROR_SENTENCE = "Something went wrong. Try again.";
|
|
316
318
|
/** True when an error, its code, or its sentence is the store's statement timeout. */
|
|
317
319
|
declare function isTimedOutError(error: unknown, message?: string | null, code?: string | number): boolean;
|
|
320
|
+
/** True when the call failed because the device is offline or the network never answered. */
|
|
321
|
+
declare function isOfflineError(error: unknown, message?: string | null): boolean;
|
|
322
|
+
/** True when a sentence carries raw error text or a code path (what the guard refuses on screen). */
|
|
323
|
+
declare function isRawErrorText(text: string): boolean;
|
|
324
|
+
/**
|
|
325
|
+
* The sentence for the screen: the timeout sentence for a statement timeout; a caller's plain
|
|
326
|
+
* sentence as is; a machine label stripped from the front; anything raw or offline worded by
|
|
327
|
+
* `describeError` (its table, else `fallback`).
|
|
328
|
+
*/
|
|
329
|
+
declare function peopleErrorSentence(error: unknown, message?: string | null, options?: {
|
|
330
|
+
code?: string | number | undefined;
|
|
331
|
+
fallback?: string | undefined;
|
|
332
|
+
}): string;
|
|
333
|
+
|
|
318
334
|
type ErrorNoticeProps = {
|
|
319
335
|
/** Short heading ("Not saved"). */
|
|
320
336
|
title?: string;
|
|
@@ -5836,5 +5852,5 @@ declare function resolveGridCanvas(items: readonly GridCanvasItem[], fit?: "cell
|
|
|
5836
5852
|
};
|
|
5837
5853
|
declare function GridCanvas({ items, renderItem, editable, onChange, itemLabel, rowHeight, gap, fit, className, "aria-label": ariaLabel, }: GridCanvasProps): React$1.JSX.Element;
|
|
5838
5854
|
|
|
5839
|
-
export { ALL_MOTION_CLASSES, ARCHIVED_NEVER_DESTROYED, ARCHIVE_FILTER_LABELS, ARCHIVE_FILTER_VALUES, ARCHIVE_LABEL, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AddTile, AddressValue, AdvancedTooltip, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogContentPrimitive, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppRail, AppRailAvatar, AppRailGroup, AppRailItem, AppRailSpacer, ArchiveFilter, ArchivedDisclosure, AssistPeekCard, AssistPeekHover, AssistTray, AuthGateDialog, Avatar, AvatarFallback, AvatarImage, Badge, BalancedFloatingDock, BasicInput, BasicTextarea, BottomSheet, BottomSheetBody, BottomSheetFooter, BottomSheetHeader, Button, CENTERED_DIALOG, CONTACT_STATE_LABEL, CandidateCard, CandidateIdentity, CandidatePickList, CanvasLayout, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, ClipboardFallbackDialog, ClipboardFallbackHost, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandRowClose, CommandSeparator, CommandShortcut, ConfirmDialog, ConfirmDialogHost, ContactValue, ContactValuesHostProvider, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CreatablePicker, DEFAULT_ARCHIVE_FILTER, DEFAULT_SCORE_THRESHOLDS, DRAG_CURSORS, DRAG_IGNORE_SELECTOR, Dialog, DialogClose, DialogContent, DialogContentPrimitive, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DragCursorMonitor, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerContentPrimitive, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditableLabel, EmailInputDialog, EmailValue, EnterInput, ErrorActions, ErrorActionsProvider, ErrorBox, ErrorCardMenusProvider, ErrorNotice, FIELD_SURFACE_CLASS, FIRST_USE_HINT_DETAIL_MAX, FIRST_USE_HINT_TITLE_MAX, FLOATING_LAYER_ATTR, FORBIDDEN_HOST_MOTION_UTILITIES, FORM_BACKGROUNDS, FORM_BUTTON_STYLES, FORM_FONTS, FORM_THEME_LABELS, FirstUseHint, FirstUseHintProvider, FloatingDock, FloatingLayer, FloatingSheet, GRID_CANVAS_COLUMNS, GRID_CANVAS_GAP_PX, GRID_CANVAS_PHONE_MAX_PX, GRID_CANVAS_ROW_PX, GridCanvas, HostLink, HoverCard, HoverCardContent, HoverCardTrigger, IconButton, IndicatorStrip, Input, InputWithPrefix, LAYER_FRONT_EVENT, LOOK_ATTRIBUTE, Label, LoadingSpinner, LookScope, MODAL_LAYER_Z, MOTION_BOTTOM_SHEET, MOTION_DIALOG, MOTION_HINT_BEACON, MOTION_OVERLAY, MOTION_POPPER, MOTION_PULSE, MOTION_SHEET, MOTION_SHIMMER, MOTION_SPIN, MatrxMiniLoader, MediaOption, ModeSwitch, NATIVE_TITLE_OPT_OUT_ATTR, OrganizationMark, OrganizationPicker, OverflowToolbar, PANEL_MOTION_CLASS, PANEL_MOTION_DURATION_VAR, PANEL_MOTION_EASE_VAR, PEEK_CARD_SIZES, PEEK_DOORS, PEEK_MAX_RECORD_DOORS, PILL_MAX_WIDTH_PX, POPPER_OFFSET, Peek, PeekEntityRendererProvider, PeekHoverCard, PeekPartRendererProvider, PeekPopover, PeekWindow, PhoneValue, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalContainerProvider, Progress, RELOAD_PAGE_LABEL, RESIZE_EDGE_CURSOR, RadioGroup, RadioGroupItem, RadioList, RadixDialogModalProvider, ReadEmpty, ReadFailure, ReadGate, ReadStaleNotice, RecordId, ReloadPageButton, ResizableHandle, ResizablePanel, ResizablePanelGroup, ReviewChanges, SHIMMER_STYLE, SOCIAL_PLATFORMS, SandboxGateDialog, ScopeMismatchDialog, ScoreRing, ScrollArea, ScrollBar, ScrollFade, SegmentedControl, Select, SelectChevron, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, ShimmerText, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SimpleTooltip, SiteIcon, Skeleton, Slider, SocialHandleValue, SocialMark, StaleDataNotice, StatusDot, SuspenseLoader, Switch, TIMED_OUT_SENTENCE, TabbedBottomSheet, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TabsTriggerCore, TapDefaultVariant, TapSurface, TapTargetButton, TapTargetButtonDestructive, TapTargetButtonForGroup, TapTargetButtonGroup, TapTargetButtonOutline, TapTargetButtonSolid, TapTargetButtonTransparent, TapTargetCopyButton, TapTargetLabeled, TapTargetSearchGroup, TextInputDialog, Textarea, TextareaWithPrefix, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UntrustedCount, UrlValue, ValuePromptsDialog, WritingBoxProvider, WritingInputProvider, acceptSuggestions, acquireTitleTooltips, addressText, alertVariants, announceLayerFront, archiveFilterFromDisclosure, badgeVariants, boxesCollide, buttonVariants, canCommitChanges, clampBox, clampRectToViewport, cn, compactCount, compactGrid, countIsStale, countReadState, deferredDialog, displayId, enablePillGuard, enableTapTargetGuard, errorSentenceOf, escapeLayerDepth, findPillInsetWarning, findPillViolation, findTapPlacementWarning, findTapViolation, floatingLayerZIndex, formThemeClasses, formatAudience, formatTapShortcut, getTapTargetLinkComponent, gridRows, holdDragCursor, indicatorText, insertLines, isInsideFloatingLayer, isModalLayerOpen, isRecordUuid, isTimedOutError, keepFloatingLayersInside, mailtoHref, mapsHref, matchesOrganizationQuery, nudgeBox, orderOrganizationsForPicker, organizationColor, packLines, parseEmail, parsePhone, parseSocial, parseUrl, peekRecordData, phoneGrid, placeBox, placementOf, platformKey, pushEscapeLayer, readOf, readStatusOf, readViewport, reflowGrid, registerModalLayer, resizeRect, resolveGrid, resolveGridCanvas, resolveSiteIcon, samePlacement, scoreAccentBgClasses, scoreRingColorClasses, selectTriggerVariants, setTapTargetLinkComponent, sheetVariants, sidebarMenuButtonVariants, siteHostname, smsHref, startPointerDrag, stepLines, telHref, toArchiveFilter, toggleVariants, unansweredQuestions, unavailableCountLabel, useAccordionSize, useCardSize, useContactValuesHost, useDialogContainer, useDragMove, useDrawerDirection, useErrorActions, useErrorCardMenus, useEscapeLayer, useFirstUseHint, useFloatingLayerZIndex, useLook, useModalLayer, useModalLayerOpen, usePortalContainer, useRadixDialogModal, useRead, useScrollFade, useScrollMaskFade, useShimmerSweep, useSidebar, useTableSize, useTapDefaultVariant, useTapSurface, useWritingBox, useWritingInput, webSearchHref };
|
|
5855
|
+
export { ALL_MOTION_CLASSES, ARCHIVED_NEVER_DESTROYED, ARCHIVE_FILTER_LABELS, ARCHIVE_FILTER_VALUES, ARCHIVE_LABEL, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AddTile, AddressValue, AdvancedTooltip, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogContentPrimitive, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppRail, AppRailAvatar, AppRailGroup, AppRailItem, AppRailSpacer, ArchiveFilter, ArchivedDisclosure, AssistPeekCard, AssistPeekHover, AssistTray, AuthGateDialog, Avatar, AvatarFallback, AvatarImage, Badge, BalancedFloatingDock, BasicInput, BasicTextarea, BottomSheet, BottomSheetBody, BottomSheetFooter, BottomSheetHeader, Button, CENTERED_DIALOG, CONTACT_STATE_LABEL, CandidateCard, CandidateIdentity, CandidatePickList, CanvasLayout, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, ClipboardFallbackDialog, ClipboardFallbackHost, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandRowClose, CommandSeparator, CommandShortcut, ConfirmDialog, ConfirmDialogHost, ContactValue, ContactValuesHostProvider, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CreatablePicker, DEFAULT_ARCHIVE_FILTER, DEFAULT_SCORE_THRESHOLDS, DRAG_CURSORS, DRAG_IGNORE_SELECTOR, Dialog, DialogClose, DialogContent, DialogContentPrimitive, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DragCursorMonitor, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerContentPrimitive, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditableLabel, EmailInputDialog, EmailValue, EnterInput, ErrorActions, ErrorActionsProvider, ErrorBox, ErrorCardMenusProvider, ErrorNotice, FALLBACK_ERROR_SENTENCE, FIELD_SURFACE_CLASS, FIRST_USE_HINT_DETAIL_MAX, FIRST_USE_HINT_TITLE_MAX, FLOATING_LAYER_ATTR, FORBIDDEN_HOST_MOTION_UTILITIES, FORM_BACKGROUNDS, FORM_BUTTON_STYLES, FORM_FONTS, FORM_THEME_LABELS, FirstUseHint, FirstUseHintProvider, FloatingDock, FloatingLayer, FloatingSheet, GRID_CANVAS_COLUMNS, GRID_CANVAS_GAP_PX, GRID_CANVAS_PHONE_MAX_PX, GRID_CANVAS_ROW_PX, GridCanvas, HostLink, HoverCard, HoverCardContent, HoverCardTrigger, IconButton, IndicatorStrip, Input, InputWithPrefix, LAYER_FRONT_EVENT, LOOK_ATTRIBUTE, Label, LoadingSpinner, LookScope, MODAL_LAYER_Z, MOTION_BOTTOM_SHEET, MOTION_DIALOG, MOTION_HINT_BEACON, MOTION_OVERLAY, MOTION_POPPER, MOTION_PULSE, MOTION_SHEET, MOTION_SHIMMER, MOTION_SPIN, MatrxMiniLoader, MediaOption, ModeSwitch, NATIVE_TITLE_OPT_OUT_ATTR, OrganizationMark, OrganizationPicker, OverflowToolbar, PANEL_MOTION_CLASS, PANEL_MOTION_DURATION_VAR, PANEL_MOTION_EASE_VAR, PEEK_CARD_SIZES, PEEK_DOORS, PEEK_MAX_RECORD_DOORS, PILL_MAX_WIDTH_PX, POPPER_OFFSET, Peek, PeekEntityRendererProvider, PeekHoverCard, PeekPartRendererProvider, PeekPopover, PeekWindow, PhoneValue, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalContainerProvider, Progress, RELOAD_PAGE_LABEL, RESIZE_EDGE_CURSOR, RadioGroup, RadioGroupItem, RadioList, RadixDialogModalProvider, ReadEmpty, ReadFailure, ReadGate, ReadStaleNotice, RecordId, ReloadPageButton, ResizableHandle, ResizablePanel, ResizablePanelGroup, ReviewChanges, SHIMMER_STYLE, SOCIAL_PLATFORMS, SandboxGateDialog, ScopeMismatchDialog, ScoreRing, ScrollArea, ScrollBar, ScrollFade, SegmentedControl, Select, SelectChevron, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, ShimmerText, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SimpleTooltip, SiteIcon, Skeleton, Slider, SocialHandleValue, SocialMark, StaleDataNotice, StatusDot, SuspenseLoader, Switch, TIMED_OUT_SENTENCE, TabbedBottomSheet, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TabsTriggerCore, TapDefaultVariant, TapSurface, TapTargetButton, TapTargetButtonDestructive, TapTargetButtonForGroup, TapTargetButtonGroup, TapTargetButtonOutline, TapTargetButtonSolid, TapTargetButtonTransparent, TapTargetCopyButton, TapTargetLabeled, TapTargetSearchGroup, TextInputDialog, Textarea, TextareaWithPrefix, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UntrustedCount, UrlValue, ValuePromptsDialog, WritingBoxProvider, WritingInputProvider, acceptSuggestions, acquireTitleTooltips, addressText, alertVariants, announceLayerFront, archiveFilterFromDisclosure, badgeVariants, boxesCollide, buttonVariants, canCommitChanges, clampBox, clampRectToViewport, cn, compactCount, compactGrid, countIsStale, countReadState, deferredDialog, displayId, enablePillGuard, enableTapTargetGuard, errorSentenceOf, escapeLayerDepth, findPillInsetWarning, findPillViolation, findTapPlacementWarning, findTapViolation, floatingLayerZIndex, formThemeClasses, formatAudience, formatTapShortcut, getTapTargetLinkComponent, gridRows, holdDragCursor, indicatorText, insertLines, isInsideFloatingLayer, isModalLayerOpen, isOfflineError, isRawErrorText, isRecordUuid, isTimedOutError, keepFloatingLayersInside, mailtoHref, mapsHref, matchesOrganizationQuery, nudgeBox, orderOrganizationsForPicker, organizationColor, packLines, parseEmail, parsePhone, parseSocial, parseUrl, peekRecordData, peopleErrorSentence, phoneGrid, placeBox, placementOf, platformKey, pushEscapeLayer, readOf, readStatusOf, readViewport, reflowGrid, registerModalLayer, resizeRect, resolveGrid, resolveGridCanvas, resolveSiteIcon, samePlacement, scoreAccentBgClasses, scoreRingColorClasses, selectTriggerVariants, setTapTargetLinkComponent, sheetVariants, sidebarMenuButtonVariants, siteHostname, smsHref, startPointerDrag, stepLines, telHref, toArchiveFilter, toggleVariants, unansweredQuestions, unavailableCountLabel, useAccordionSize, useCardSize, useContactValuesHost, useDialogContainer, useDragMove, useDrawerDirection, useErrorActions, useErrorCardMenus, useEscapeLayer, useFirstUseHint, useFloatingLayerZIndex, useLook, useModalLayer, useModalLayerOpen, usePortalContainer, useRadixDialogModal, useRead, useScrollFade, useScrollMaskFade, useShimmerSweep, useSidebar, useTableSize, useTapDefaultVariant, useTapSurface, useWritingBox, useWritingInput, webSearchHref };
|
|
5840
5856
|
export type { AccordionProps, AccordionSize, AccordionTriggerProps, AddTileProps, AddressValidation, AddressValueProps, AlertDialogContentProps, AlertProps, AppRailAvatarProps, AppRailItemProps, ArchiveFilterProps, ArchiveFilterValue, ArchivedDisclosureProps, AssistPeekCardProps, AssistPeekEvidence, AssistPeekHoverProps, AssistTrayProps, AuthGateDialogProps, AvatarProps, AvatarSize, BadgeProps, BottomSheetBodyProps, BottomSheetFooterProps, BottomSheetHeaderProps, BottomSheetProps, ButtonProps, Candidate, CandidateAnswer, CandidateCardProps, CandidateIdentityProps, CandidatePickListProps, CanvasColumnDef, CanvasLayoutProps, CanvasPanelDef, CardContentProps, CardGap, CardProps, CardSize, ChangeAnswers, ChangeGroup, ChangeItemRef, ChangeOption, ChangePreview, ChangeQuestion, ChangeWarning, CheckboxProps, CheckboxSize, ClipboardFallbackDialogProps, CollapsibleContentProps, CommandDialogProps, ConfirmDialogProps, ContactValueCommonProps, ContactValueProps, ContactValueState, ContactValueType, ContactValuesHost, ContextMenuContentProps, CountRead, CountReadState, CreatableOption, CreatablePickerProps, DeferredDialog, DialogContentProps, DialogSize, DragCommit, DragCursor, DragDelta, DragGesture, DragMoveApi, DragRect, DragViewport, DrawerContentProps, DrawerDirection, DrawerProps, DrawerSize, DropdownMenuContentProps, EditableLabelActivation, EditableLabelCommitMode, EditableLabelProps, EmailInputDialogProps, EmailValueProps, EnterInputProps, ErrorActionsInput, ErrorActionsRecord, ErrorActionsRenderer, ErrorBoxProps, ErrorCardMenus, ErrorNoticeProps, EscapeLayerHandle, FirstUseHintProps, FirstUseHintStore, FloatingDockItem, FloatingDockProps, FloatingSheetProps, FormBackground, FormButtonStyle, FormFont, FormThemeChoice, GridBox, GridBreakpoint, GridCanvasItem, GridCanvasPlacements, GridCanvasProps, GridPlacement, GridSizeLimits, HostLinkProps, HoverCardContentProps, IconButtonProps, IndicatorItem, IndicatorStripProps, IndicatorTone, InputProps, InputVariant, InputWithPrefixProps, LayerFrontDetail, Look, LookScopeProps, MediaOptionProps, MediaOptionSize, ModeSwitchOption, ModeSwitchProps, OrganizationPickerMore, OrganizationPickerOrganization, OrganizationPickerProps, OverflowToolbarProps, ParsedEmail, ParsedPhone, ParsedSocial, ParsedUrl, PeekBlock, PeekCardDensity, PeekCardFrame, PeekCardHeight, PeekCardOrientation, PeekCardPrimary, PeekCardSize, PeekCode, PeekDoor, PeekDoorKind, PeekDoorMenuGroup, PeekDoorMenuItem, PeekDoors, PeekEntityRenderer, PeekFact, PeekGlyph, PeekHostProps, PeekMedia, PeekPart, PeekPartRenderer, PeekPresentation, PeekProperty, PeekProps, PeekRecord, PeekRow, PeekSection, PeekSheetFooter, PeekTone, PeekWindowProps, PhoneValueProps, PickerIcon, PointerDragHandle, PointerDragOptions, PopoverContentProps, PopoverPadding, PopoverWidth, PortalContainerProviderProps, ProgressProps, ProgressTone, RadioGroupItemProps, RadioGroupProps, RadioGroupSize, RadioListOption, RadioListProps, RadixDialogModalProviderProps, ReadFailureProps, ReadOutcome, ReadResult, ReadStatus, RecordIdLook, RecordIdOpenResult, RecordIdProps, RecordIdShow, ResizableHandleProps, ResizableHandleSize, ResizeEdge, ReviewChangesProps, SandboxGateChoice, SandboxGateDialogProps, ScopeMismatchChoice, ScopeMismatchDialogProps, ScopeMismatchDisplayItem, ScoreRingProps, ScoreThresholds, ScrollAreaProps, ScrollFadeProps, ScrollFadeState, SegmentOption, SegmentedControlProps, SelectContentProps, SelectTriggerProps, SheetContentProps, ShimmerTextProps, SiteIconProps, SizeLimits, SkeletonHeight, SkeletonProps, SkeletonShape, SkeletonWidth, SliderProps, SliderSize, SocialBrandMark, SocialHandleValueProps, SocialPlatform, StaleDataNoticeProps, StatusDotProps, StatusTone, SwitchProps, SwitchSize, TabbedBottomSheetProps, TabbedBottomSheetTab, TabbedBottomSheetTabNav, TableHeaderProps, TableProps, TableSize, TapDefaultVariantValue, TapFeatureProps, TapShortcut, TapSolidTone, TapSurfaceKind, TapTargetButtonProps, TapTargetButtonSolidProps, TapTargetCopyButtonProps, TapTargetLinkComponent, TapTargetLinkProps, TapTargetSearchGroupProps, TapTargetSearchShortcut, TapTone, TextInputDialogProps, TextareaProps, TextareaWithPrefixProps, ToggleGroupItemProps, ToggleGroupProps, ToggleProps, ToolbarAction, ToolbarActionTone, ToolbarIcon, TooltipContentProps, TooltipProviderProps, UntrustedCountProps, UrlValueProps, UseDragMoveOptions, UseScrollFadeResult, ValuePromptField, ValuePromptsAnswers, ValuePromptsDialogProps, ValuePromptsRequest, ViewportClamp, WritingBoxComponent, WritingBoxProps, WritingInputComponent, WritingInputProps };
|
package/dist/index.d.ts
CHANGED
|
@@ -313,8 +313,24 @@ declare function errorSentenceOf(error: unknown): string;
|
|
|
313
313
|
* @ai-matrx/records' `TIMED_OUT_MESSAGE` gives.
|
|
314
314
|
*/
|
|
315
315
|
declare const TIMED_OUT_SENTENCE = "That took too long. Nothing was lost; try again.";
|
|
316
|
+
/** What a person reads when an error says nothing a person can use. */
|
|
317
|
+
declare const FALLBACK_ERROR_SENTENCE = "Something went wrong. Try again.";
|
|
316
318
|
/** True when an error, its code, or its sentence is the store's statement timeout. */
|
|
317
319
|
declare function isTimedOutError(error: unknown, message?: string | null, code?: string | number): boolean;
|
|
320
|
+
/** True when the call failed because the device is offline or the network never answered. */
|
|
321
|
+
declare function isOfflineError(error: unknown, message?: string | null): boolean;
|
|
322
|
+
/** True when a sentence carries raw error text or a code path (what the guard refuses on screen). */
|
|
323
|
+
declare function isRawErrorText(text: string): boolean;
|
|
324
|
+
/**
|
|
325
|
+
* The sentence for the screen: the timeout sentence for a statement timeout; a caller's plain
|
|
326
|
+
* sentence as is; a machine label stripped from the front; anything raw or offline worded by
|
|
327
|
+
* `describeError` (its table, else `fallback`).
|
|
328
|
+
*/
|
|
329
|
+
declare function peopleErrorSentence(error: unknown, message?: string | null, options?: {
|
|
330
|
+
code?: string | number | undefined;
|
|
331
|
+
fallback?: string | undefined;
|
|
332
|
+
}): string;
|
|
333
|
+
|
|
318
334
|
type ErrorNoticeProps = {
|
|
319
335
|
/** Short heading ("Not saved"). */
|
|
320
336
|
title?: string;
|
|
@@ -5836,5 +5852,5 @@ declare function resolveGridCanvas(items: readonly GridCanvasItem[], fit?: "cell
|
|
|
5836
5852
|
};
|
|
5837
5853
|
declare function GridCanvas({ items, renderItem, editable, onChange, itemLabel, rowHeight, gap, fit, className, "aria-label": ariaLabel, }: GridCanvasProps): React$1.JSX.Element;
|
|
5838
5854
|
|
|
5839
|
-
export { ALL_MOTION_CLASSES, ARCHIVED_NEVER_DESTROYED, ARCHIVE_FILTER_LABELS, ARCHIVE_FILTER_VALUES, ARCHIVE_LABEL, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AddTile, AddressValue, AdvancedTooltip, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogContentPrimitive, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppRail, AppRailAvatar, AppRailGroup, AppRailItem, AppRailSpacer, ArchiveFilter, ArchivedDisclosure, AssistPeekCard, AssistPeekHover, AssistTray, AuthGateDialog, Avatar, AvatarFallback, AvatarImage, Badge, BalancedFloatingDock, BasicInput, BasicTextarea, BottomSheet, BottomSheetBody, BottomSheetFooter, BottomSheetHeader, Button, CENTERED_DIALOG, CONTACT_STATE_LABEL, CandidateCard, CandidateIdentity, CandidatePickList, CanvasLayout, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, ClipboardFallbackDialog, ClipboardFallbackHost, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandRowClose, CommandSeparator, CommandShortcut, ConfirmDialog, ConfirmDialogHost, ContactValue, ContactValuesHostProvider, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CreatablePicker, DEFAULT_ARCHIVE_FILTER, DEFAULT_SCORE_THRESHOLDS, DRAG_CURSORS, DRAG_IGNORE_SELECTOR, Dialog, DialogClose, DialogContent, DialogContentPrimitive, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DragCursorMonitor, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerContentPrimitive, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditableLabel, EmailInputDialog, EmailValue, EnterInput, ErrorActions, ErrorActionsProvider, ErrorBox, ErrorCardMenusProvider, ErrorNotice, FIELD_SURFACE_CLASS, FIRST_USE_HINT_DETAIL_MAX, FIRST_USE_HINT_TITLE_MAX, FLOATING_LAYER_ATTR, FORBIDDEN_HOST_MOTION_UTILITIES, FORM_BACKGROUNDS, FORM_BUTTON_STYLES, FORM_FONTS, FORM_THEME_LABELS, FirstUseHint, FirstUseHintProvider, FloatingDock, FloatingLayer, FloatingSheet, GRID_CANVAS_COLUMNS, GRID_CANVAS_GAP_PX, GRID_CANVAS_PHONE_MAX_PX, GRID_CANVAS_ROW_PX, GridCanvas, HostLink, HoverCard, HoverCardContent, HoverCardTrigger, IconButton, IndicatorStrip, Input, InputWithPrefix, LAYER_FRONT_EVENT, LOOK_ATTRIBUTE, Label, LoadingSpinner, LookScope, MODAL_LAYER_Z, MOTION_BOTTOM_SHEET, MOTION_DIALOG, MOTION_HINT_BEACON, MOTION_OVERLAY, MOTION_POPPER, MOTION_PULSE, MOTION_SHEET, MOTION_SHIMMER, MOTION_SPIN, MatrxMiniLoader, MediaOption, ModeSwitch, NATIVE_TITLE_OPT_OUT_ATTR, OrganizationMark, OrganizationPicker, OverflowToolbar, PANEL_MOTION_CLASS, PANEL_MOTION_DURATION_VAR, PANEL_MOTION_EASE_VAR, PEEK_CARD_SIZES, PEEK_DOORS, PEEK_MAX_RECORD_DOORS, PILL_MAX_WIDTH_PX, POPPER_OFFSET, Peek, PeekEntityRendererProvider, PeekHoverCard, PeekPartRendererProvider, PeekPopover, PeekWindow, PhoneValue, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalContainerProvider, Progress, RELOAD_PAGE_LABEL, RESIZE_EDGE_CURSOR, RadioGroup, RadioGroupItem, RadioList, RadixDialogModalProvider, ReadEmpty, ReadFailure, ReadGate, ReadStaleNotice, RecordId, ReloadPageButton, ResizableHandle, ResizablePanel, ResizablePanelGroup, ReviewChanges, SHIMMER_STYLE, SOCIAL_PLATFORMS, SandboxGateDialog, ScopeMismatchDialog, ScoreRing, ScrollArea, ScrollBar, ScrollFade, SegmentedControl, Select, SelectChevron, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, ShimmerText, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SimpleTooltip, SiteIcon, Skeleton, Slider, SocialHandleValue, SocialMark, StaleDataNotice, StatusDot, SuspenseLoader, Switch, TIMED_OUT_SENTENCE, TabbedBottomSheet, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TabsTriggerCore, TapDefaultVariant, TapSurface, TapTargetButton, TapTargetButtonDestructive, TapTargetButtonForGroup, TapTargetButtonGroup, TapTargetButtonOutline, TapTargetButtonSolid, TapTargetButtonTransparent, TapTargetCopyButton, TapTargetLabeled, TapTargetSearchGroup, TextInputDialog, Textarea, TextareaWithPrefix, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UntrustedCount, UrlValue, ValuePromptsDialog, WritingBoxProvider, WritingInputProvider, acceptSuggestions, acquireTitleTooltips, addressText, alertVariants, announceLayerFront, archiveFilterFromDisclosure, badgeVariants, boxesCollide, buttonVariants, canCommitChanges, clampBox, clampRectToViewport, cn, compactCount, compactGrid, countIsStale, countReadState, deferredDialog, displayId, enablePillGuard, enableTapTargetGuard, errorSentenceOf, escapeLayerDepth, findPillInsetWarning, findPillViolation, findTapPlacementWarning, findTapViolation, floatingLayerZIndex, formThemeClasses, formatAudience, formatTapShortcut, getTapTargetLinkComponent, gridRows, holdDragCursor, indicatorText, insertLines, isInsideFloatingLayer, isModalLayerOpen, isRecordUuid, isTimedOutError, keepFloatingLayersInside, mailtoHref, mapsHref, matchesOrganizationQuery, nudgeBox, orderOrganizationsForPicker, organizationColor, packLines, parseEmail, parsePhone, parseSocial, parseUrl, peekRecordData, phoneGrid, placeBox, placementOf, platformKey, pushEscapeLayer, readOf, readStatusOf, readViewport, reflowGrid, registerModalLayer, resizeRect, resolveGrid, resolveGridCanvas, resolveSiteIcon, samePlacement, scoreAccentBgClasses, scoreRingColorClasses, selectTriggerVariants, setTapTargetLinkComponent, sheetVariants, sidebarMenuButtonVariants, siteHostname, smsHref, startPointerDrag, stepLines, telHref, toArchiveFilter, toggleVariants, unansweredQuestions, unavailableCountLabel, useAccordionSize, useCardSize, useContactValuesHost, useDialogContainer, useDragMove, useDrawerDirection, useErrorActions, useErrorCardMenus, useEscapeLayer, useFirstUseHint, useFloatingLayerZIndex, useLook, useModalLayer, useModalLayerOpen, usePortalContainer, useRadixDialogModal, useRead, useScrollFade, useScrollMaskFade, useShimmerSweep, useSidebar, useTableSize, useTapDefaultVariant, useTapSurface, useWritingBox, useWritingInput, webSearchHref };
|
|
5855
|
+
export { ALL_MOTION_CLASSES, ARCHIVED_NEVER_DESTROYED, ARCHIVE_FILTER_LABELS, ARCHIVE_FILTER_VALUES, ARCHIVE_LABEL, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AddTile, AddressValue, AdvancedTooltip, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogContentPrimitive, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppRail, AppRailAvatar, AppRailGroup, AppRailItem, AppRailSpacer, ArchiveFilter, ArchivedDisclosure, AssistPeekCard, AssistPeekHover, AssistTray, AuthGateDialog, Avatar, AvatarFallback, AvatarImage, Badge, BalancedFloatingDock, BasicInput, BasicTextarea, BottomSheet, BottomSheetBody, BottomSheetFooter, BottomSheetHeader, Button, CENTERED_DIALOG, CONTACT_STATE_LABEL, CandidateCard, CandidateIdentity, CandidatePickList, CanvasLayout, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, ClipboardFallbackDialog, ClipboardFallbackHost, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandRowClose, CommandSeparator, CommandShortcut, ConfirmDialog, ConfirmDialogHost, ContactValue, ContactValuesHostProvider, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CreatablePicker, DEFAULT_ARCHIVE_FILTER, DEFAULT_SCORE_THRESHOLDS, DRAG_CURSORS, DRAG_IGNORE_SELECTOR, Dialog, DialogClose, DialogContent, DialogContentPrimitive, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DragCursorMonitor, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerContentPrimitive, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditableLabel, EmailInputDialog, EmailValue, EnterInput, ErrorActions, ErrorActionsProvider, ErrorBox, ErrorCardMenusProvider, ErrorNotice, FALLBACK_ERROR_SENTENCE, FIELD_SURFACE_CLASS, FIRST_USE_HINT_DETAIL_MAX, FIRST_USE_HINT_TITLE_MAX, FLOATING_LAYER_ATTR, FORBIDDEN_HOST_MOTION_UTILITIES, FORM_BACKGROUNDS, FORM_BUTTON_STYLES, FORM_FONTS, FORM_THEME_LABELS, FirstUseHint, FirstUseHintProvider, FloatingDock, FloatingLayer, FloatingSheet, GRID_CANVAS_COLUMNS, GRID_CANVAS_GAP_PX, GRID_CANVAS_PHONE_MAX_PX, GRID_CANVAS_ROW_PX, GridCanvas, HostLink, HoverCard, HoverCardContent, HoverCardTrigger, IconButton, IndicatorStrip, Input, InputWithPrefix, LAYER_FRONT_EVENT, LOOK_ATTRIBUTE, Label, LoadingSpinner, LookScope, MODAL_LAYER_Z, MOTION_BOTTOM_SHEET, MOTION_DIALOG, MOTION_HINT_BEACON, MOTION_OVERLAY, MOTION_POPPER, MOTION_PULSE, MOTION_SHEET, MOTION_SHIMMER, MOTION_SPIN, MatrxMiniLoader, MediaOption, ModeSwitch, NATIVE_TITLE_OPT_OUT_ATTR, OrganizationMark, OrganizationPicker, OverflowToolbar, PANEL_MOTION_CLASS, PANEL_MOTION_DURATION_VAR, PANEL_MOTION_EASE_VAR, PEEK_CARD_SIZES, PEEK_DOORS, PEEK_MAX_RECORD_DOORS, PILL_MAX_WIDTH_PX, POPPER_OFFSET, Peek, PeekEntityRendererProvider, PeekHoverCard, PeekPartRendererProvider, PeekPopover, PeekWindow, PhoneValue, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, PortalContainerProvider, Progress, RELOAD_PAGE_LABEL, RESIZE_EDGE_CURSOR, RadioGroup, RadioGroupItem, RadioList, RadixDialogModalProvider, ReadEmpty, ReadFailure, ReadGate, ReadStaleNotice, RecordId, ReloadPageButton, ResizableHandle, ResizablePanel, ResizablePanelGroup, ReviewChanges, SHIMMER_STYLE, SOCIAL_PLATFORMS, SandboxGateDialog, ScopeMismatchDialog, ScoreRing, ScrollArea, ScrollBar, ScrollFade, SegmentedControl, Select, SelectChevron, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, ShimmerText, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SimpleTooltip, SiteIcon, Skeleton, Slider, SocialHandleValue, SocialMark, StaleDataNotice, StatusDot, SuspenseLoader, Switch, TIMED_OUT_SENTENCE, TabbedBottomSheet, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TabsTriggerCore, TapDefaultVariant, TapSurface, TapTargetButton, TapTargetButtonDestructive, TapTargetButtonForGroup, TapTargetButtonGroup, TapTargetButtonOutline, TapTargetButtonSolid, TapTargetButtonTransparent, TapTargetCopyButton, TapTargetLabeled, TapTargetSearchGroup, TextInputDialog, Textarea, TextareaWithPrefix, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, UntrustedCount, UrlValue, ValuePromptsDialog, WritingBoxProvider, WritingInputProvider, acceptSuggestions, acquireTitleTooltips, addressText, alertVariants, announceLayerFront, archiveFilterFromDisclosure, badgeVariants, boxesCollide, buttonVariants, canCommitChanges, clampBox, clampRectToViewport, cn, compactCount, compactGrid, countIsStale, countReadState, deferredDialog, displayId, enablePillGuard, enableTapTargetGuard, errorSentenceOf, escapeLayerDepth, findPillInsetWarning, findPillViolation, findTapPlacementWarning, findTapViolation, floatingLayerZIndex, formThemeClasses, formatAudience, formatTapShortcut, getTapTargetLinkComponent, gridRows, holdDragCursor, indicatorText, insertLines, isInsideFloatingLayer, isModalLayerOpen, isOfflineError, isRawErrorText, isRecordUuid, isTimedOutError, keepFloatingLayersInside, mailtoHref, mapsHref, matchesOrganizationQuery, nudgeBox, orderOrganizationsForPicker, organizationColor, packLines, parseEmail, parsePhone, parseSocial, parseUrl, peekRecordData, peopleErrorSentence, phoneGrid, placeBox, placementOf, platformKey, pushEscapeLayer, readOf, readStatusOf, readViewport, reflowGrid, registerModalLayer, resizeRect, resolveGrid, resolveGridCanvas, resolveSiteIcon, samePlacement, scoreAccentBgClasses, scoreRingColorClasses, selectTriggerVariants, setTapTargetLinkComponent, sheetVariants, sidebarMenuButtonVariants, siteHostname, smsHref, startPointerDrag, stepLines, telHref, toArchiveFilter, toggleVariants, unansweredQuestions, unavailableCountLabel, useAccordionSize, useCardSize, useContactValuesHost, useDialogContainer, useDragMove, useDrawerDirection, useErrorActions, useErrorCardMenus, useEscapeLayer, useFirstUseHint, useFloatingLayerZIndex, useLook, useModalLayer, useModalLayerOpen, usePortalContainer, useRadixDialogModal, useRead, useScrollFade, useScrollMaskFade, useShimmerSweep, useSidebar, useTableSize, useTapDefaultVariant, useTapSurface, useWritingBox, useWritingInput, webSearchHref };
|
|
5840
5856
|
export type { AccordionProps, AccordionSize, AccordionTriggerProps, AddTileProps, AddressValidation, AddressValueProps, AlertDialogContentProps, AlertProps, AppRailAvatarProps, AppRailItemProps, ArchiveFilterProps, ArchiveFilterValue, ArchivedDisclosureProps, AssistPeekCardProps, AssistPeekEvidence, AssistPeekHoverProps, AssistTrayProps, AuthGateDialogProps, AvatarProps, AvatarSize, BadgeProps, BottomSheetBodyProps, BottomSheetFooterProps, BottomSheetHeaderProps, BottomSheetProps, ButtonProps, Candidate, CandidateAnswer, CandidateCardProps, CandidateIdentityProps, CandidatePickListProps, CanvasColumnDef, CanvasLayoutProps, CanvasPanelDef, CardContentProps, CardGap, CardProps, CardSize, ChangeAnswers, ChangeGroup, ChangeItemRef, ChangeOption, ChangePreview, ChangeQuestion, ChangeWarning, CheckboxProps, CheckboxSize, ClipboardFallbackDialogProps, CollapsibleContentProps, CommandDialogProps, ConfirmDialogProps, ContactValueCommonProps, ContactValueProps, ContactValueState, ContactValueType, ContactValuesHost, ContextMenuContentProps, CountRead, CountReadState, CreatableOption, CreatablePickerProps, DeferredDialog, DialogContentProps, DialogSize, DragCommit, DragCursor, DragDelta, DragGesture, DragMoveApi, DragRect, DragViewport, DrawerContentProps, DrawerDirection, DrawerProps, DrawerSize, DropdownMenuContentProps, EditableLabelActivation, EditableLabelCommitMode, EditableLabelProps, EmailInputDialogProps, EmailValueProps, EnterInputProps, ErrorActionsInput, ErrorActionsRecord, ErrorActionsRenderer, ErrorBoxProps, ErrorCardMenus, ErrorNoticeProps, EscapeLayerHandle, FirstUseHintProps, FirstUseHintStore, FloatingDockItem, FloatingDockProps, FloatingSheetProps, FormBackground, FormButtonStyle, FormFont, FormThemeChoice, GridBox, GridBreakpoint, GridCanvasItem, GridCanvasPlacements, GridCanvasProps, GridPlacement, GridSizeLimits, HostLinkProps, HoverCardContentProps, IconButtonProps, IndicatorItem, IndicatorStripProps, IndicatorTone, InputProps, InputVariant, InputWithPrefixProps, LayerFrontDetail, Look, LookScopeProps, MediaOptionProps, MediaOptionSize, ModeSwitchOption, ModeSwitchProps, OrganizationPickerMore, OrganizationPickerOrganization, OrganizationPickerProps, OverflowToolbarProps, ParsedEmail, ParsedPhone, ParsedSocial, ParsedUrl, PeekBlock, PeekCardDensity, PeekCardFrame, PeekCardHeight, PeekCardOrientation, PeekCardPrimary, PeekCardSize, PeekCode, PeekDoor, PeekDoorKind, PeekDoorMenuGroup, PeekDoorMenuItem, PeekDoors, PeekEntityRenderer, PeekFact, PeekGlyph, PeekHostProps, PeekMedia, PeekPart, PeekPartRenderer, PeekPresentation, PeekProperty, PeekProps, PeekRecord, PeekRow, PeekSection, PeekSheetFooter, PeekTone, PeekWindowProps, PhoneValueProps, PickerIcon, PointerDragHandle, PointerDragOptions, PopoverContentProps, PopoverPadding, PopoverWidth, PortalContainerProviderProps, ProgressProps, ProgressTone, RadioGroupItemProps, RadioGroupProps, RadioGroupSize, RadioListOption, RadioListProps, RadixDialogModalProviderProps, ReadFailureProps, ReadOutcome, ReadResult, ReadStatus, RecordIdLook, RecordIdOpenResult, RecordIdProps, RecordIdShow, ResizableHandleProps, ResizableHandleSize, ResizeEdge, ReviewChangesProps, SandboxGateChoice, SandboxGateDialogProps, ScopeMismatchChoice, ScopeMismatchDialogProps, ScopeMismatchDisplayItem, ScoreRingProps, ScoreThresholds, ScrollAreaProps, ScrollFadeProps, ScrollFadeState, SegmentOption, SegmentedControlProps, SelectContentProps, SelectTriggerProps, SheetContentProps, ShimmerTextProps, SiteIconProps, SizeLimits, SkeletonHeight, SkeletonProps, SkeletonShape, SkeletonWidth, SliderProps, SliderSize, SocialBrandMark, SocialHandleValueProps, SocialPlatform, StaleDataNoticeProps, StatusDotProps, StatusTone, SwitchProps, SwitchSize, TabbedBottomSheetProps, TabbedBottomSheetTab, TabbedBottomSheetTabNav, TableHeaderProps, TableProps, TableSize, TapDefaultVariantValue, TapFeatureProps, TapShortcut, TapSolidTone, TapSurfaceKind, TapTargetButtonProps, TapTargetButtonSolidProps, TapTargetCopyButtonProps, TapTargetLinkComponent, TapTargetLinkProps, TapTargetSearchGroupProps, TapTargetSearchShortcut, TapTone, TextInputDialogProps, TextareaProps, TextareaWithPrefixProps, ToggleGroupItemProps, ToggleGroupProps, ToggleProps, ToolbarAction, ToolbarActionTone, ToolbarIcon, TooltipContentProps, TooltipProviderProps, UntrustedCountProps, UrlValueProps, UseDragMoveOptions, UseScrollFadeResult, ValuePromptField, ValuePromptsAnswers, ValuePromptsDialogProps, ValuePromptsRequest, ViewportClamp, WritingBoxComponent, WritingBoxProps, WritingInputComponent, WritingInputProps };
|
package/dist/index.js
CHANGED
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
matchesOrganizationQuery,
|
|
26
26
|
orderOrganizationsForPicker,
|
|
27
27
|
organizationColor
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-ZMUPFGQO.js";
|
|
29
29
|
import {
|
|
30
30
|
EditableLabel
|
|
31
31
|
} from "./chunk-J6637L6D.js";
|
|
@@ -38,12 +38,9 @@ import {
|
|
|
38
38
|
ReadStaleNotice,
|
|
39
39
|
ReloadPageButton,
|
|
40
40
|
StaleDataNotice,
|
|
41
|
-
TIMED_OUT_SENTENCE,
|
|
42
|
-
errorSentenceOf,
|
|
43
|
-
isTimedOutError,
|
|
44
41
|
readOf,
|
|
45
42
|
readStatusOf
|
|
46
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-RLM4RSED.js";
|
|
47
44
|
import {
|
|
48
45
|
DecisionControl,
|
|
49
46
|
IconButton,
|
|
@@ -53,7 +50,7 @@ import {
|
|
|
53
50
|
countReadState,
|
|
54
51
|
indicatorText,
|
|
55
52
|
unavailableCountLabel
|
|
56
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-XXZA2JUP.js";
|
|
57
54
|
import {
|
|
58
55
|
Collapsible,
|
|
59
56
|
CollapsibleContent,
|
|
@@ -161,9 +158,16 @@ import {
|
|
|
161
158
|
ErrorActionsProvider,
|
|
162
159
|
ErrorBox,
|
|
163
160
|
ErrorCardMenusProvider,
|
|
161
|
+
FALLBACK_ERROR_SENTENCE,
|
|
162
|
+
TIMED_OUT_SENTENCE,
|
|
163
|
+
errorSentenceOf,
|
|
164
|
+
isOfflineError,
|
|
165
|
+
isRawErrorText,
|
|
166
|
+
isTimedOutError,
|
|
167
|
+
peopleErrorSentence,
|
|
164
168
|
useErrorActions,
|
|
165
169
|
useErrorCardMenus
|
|
166
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-LJKF267O.js";
|
|
167
171
|
import {
|
|
168
172
|
Skeleton
|
|
169
173
|
} from "./chunk-DRSBLHOF.js";
|
|
@@ -4385,7 +4389,7 @@ function EmailValue({ email, owner, state = "ok", peek = true, about }) {
|
|
|
4385
4389
|
...ok ? { primary: { label: "Send email", onSelect: () => window.location.assign(mailtoHref(parsed.address)) } } : {},
|
|
4386
4390
|
copyData: { email: parsed.address, ...owner ? { owner } : {} }
|
|
4387
4391
|
};
|
|
4388
|
-
return /* @__PURE__ */ jsx22(ValueShell, { kind: "email", glyph: MailGlyph, text: parsed.address, copy: parsed.address, state, record, peek, about });
|
|
4392
|
+
return /* @__PURE__ */ jsx22(ValueShell, { kind: "email", glyph: MailGlyph, text: parsed.address, copy: parsed.address, state, record, peek, ...about !== void 0 ? { about } : {} });
|
|
4389
4393
|
}
|
|
4390
4394
|
function PhoneValue({ phone, owner, state = "ok", peek = true, defaultCallingCode = "1", about }) {
|
|
4391
4395
|
const parsed = parsePhone(phone, defaultCallingCode);
|
|
@@ -4410,7 +4414,7 @@ function PhoneValue({ phone, owner, state = "ok", peek = true, defaultCallingCod
|
|
|
4410
4414
|
...ok ? { primary: { label: "Call", onSelect: () => window.location.assign(telHref(parsed)) } } : {},
|
|
4411
4415
|
copyData: { phone: parsed.e164 ?? parsed.raw, display: parsed.display, ...parsed.region ? { region: parsed.region } : {}, ...owner ? { owner } : {} }
|
|
4412
4416
|
};
|
|
4413
|
-
return /* @__PURE__ */ jsx22(ValueShell, { kind: "phone number", glyph: PhoneGlyph, text: parsed.display, copy: parsed.e164 ?? parsed.raw, state, record, peek, about });
|
|
4417
|
+
return /* @__PURE__ */ jsx22(ValueShell, { kind: "phone number", glyph: PhoneGlyph, text: parsed.display, copy: parsed.e164 ?? parsed.raw, state, record, peek, ...about !== void 0 ? { about } : {} });
|
|
4414
4418
|
}
|
|
4415
4419
|
var VALIDATION_TONE = { verified: "success", partial: "warning", unknown: "danger" };
|
|
4416
4420
|
var VALIDATION_TEXT = { verified: "Verified address", partial: "Partly matched", unknown: "No match found" };
|
|
@@ -4469,7 +4473,7 @@ function AddressValue({ address, owner, state = "ok", peek = true, multiline = f
|
|
|
4469
4473
|
state,
|
|
4470
4474
|
record,
|
|
4471
4475
|
peek,
|
|
4472
|
-
about,
|
|
4476
|
+
...about !== void 0 ? { about } : {},
|
|
4473
4477
|
...multiline ? { wrap: true } : {}
|
|
4474
4478
|
}
|
|
4475
4479
|
);
|
|
@@ -4511,7 +4515,7 @@ function SocialHandleValue(props) {
|
|
|
4511
4515
|
state,
|
|
4512
4516
|
record: socialRecord(parsed, props, glyph),
|
|
4513
4517
|
peek,
|
|
4514
|
-
about: props.about
|
|
4518
|
+
...props.about !== void 0 ? { about: props.about } : {}
|
|
4515
4519
|
}
|
|
4516
4520
|
);
|
|
4517
4521
|
}
|
|
@@ -4535,7 +4539,7 @@ function UrlValue({ url, title, owner, state = "ok", peek = true, icon = true, a
|
|
|
4535
4539
|
...ok ? { primary: { label: "Open", onSelect: () => openOutbound2(parsed.href) } } : {},
|
|
4536
4540
|
copyData: { url: parsed.href ?? url, domain: parsed.domain, ...title ? { title } : {} }
|
|
4537
4541
|
};
|
|
4538
|
-
return /* @__PURE__ */ jsx22(ValueShell, { kind: "link", ...icon ? { glyph: GlobeIcon } : {}, text: parsed.display, copy: parsed.href ?? url, state, record, peek, about });
|
|
4542
|
+
return /* @__PURE__ */ jsx22(ValueShell, { kind: "link", ...icon ? { glyph: GlobeIcon } : {}, text: parsed.display, copy: parsed.href ?? url, state, record, peek, ...about !== void 0 ? { about } : {} });
|
|
4539
4543
|
}
|
|
4540
4544
|
function ContactValue({ type, value, platform, followers, title, icon, ...common }) {
|
|
4541
4545
|
switch (type) {
|
|
@@ -7078,6 +7082,7 @@ export {
|
|
|
7078
7082
|
ErrorBox,
|
|
7079
7083
|
ErrorCardMenusProvider,
|
|
7080
7084
|
ErrorNotice,
|
|
7085
|
+
FALLBACK_ERROR_SENTENCE,
|
|
7081
7086
|
FIELD_SURFACE_CLASS,
|
|
7082
7087
|
FIRST_USE_HINT_DETAIL_MAX,
|
|
7083
7088
|
FIRST_USE_HINT_TITLE_MAX,
|
|
@@ -7310,6 +7315,8 @@ export {
|
|
|
7310
7315
|
insertLines,
|
|
7311
7316
|
isInsideFloatingLayer,
|
|
7312
7317
|
isModalLayerOpen,
|
|
7318
|
+
isOfflineError,
|
|
7319
|
+
isRawErrorText,
|
|
7313
7320
|
isRecordUuid,
|
|
7314
7321
|
isTimedOutError,
|
|
7315
7322
|
keepFloatingLayersInside,
|
|
@@ -7325,6 +7332,7 @@ export {
|
|
|
7325
7332
|
parseSocial,
|
|
7326
7333
|
parseUrl,
|
|
7327
7334
|
peekRecordData,
|
|
7335
|
+
peopleErrorSentence,
|
|
7328
7336
|
phoneGrid,
|
|
7329
7337
|
placeBox,
|
|
7330
7338
|
placementOf,
|