opus-react 0.3.4 → 0.3.6
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 +3397 -2022
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +4982 -3439
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +165 -3
- package/dist/index.d.ts +165 -3
- package/dist/index.js +3250 -1886
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ButtonHTMLAttributes, ReactNode, ChangeEventHandler, Ref, CSSProperties, ComponentPropsWithoutRef, RefObject, HTMLAttributes, MouseEvent, ElementType } from 'react';
|
|
3
|
+
import { StyleSpecification } from 'maplibre-gl';
|
|
3
4
|
|
|
4
5
|
type Theme = "light" | "dark";
|
|
5
6
|
type FieldMode = "stacked" | "flagged";
|
|
@@ -914,10 +915,12 @@ type TabsProps = {
|
|
|
914
915
|
items: TabItem[];
|
|
915
916
|
onValueChange?: (value: string) => void;
|
|
916
917
|
orientation?: TabsOrientation;
|
|
918
|
+
/** Content aligned to the end of the tab row (e.g. context actions). */
|
|
919
|
+
trailing?: ReactNode;
|
|
917
920
|
value?: string;
|
|
918
921
|
variant?: TabsVariant;
|
|
919
922
|
};
|
|
920
|
-
declare function Tabs({ "aria-label": ariaLabel, defaultValue, fitted, items, onValueChange, orientation, value, variant, }: TabsProps): react.JSX.Element;
|
|
923
|
+
declare function Tabs({ "aria-label": ariaLabel, defaultValue, fitted, items, onValueChange, orientation, trailing, value, variant, }: TabsProps): react.JSX.Element;
|
|
921
924
|
|
|
922
925
|
type CardProps = {
|
|
923
926
|
actions?: ReactNode;
|
|
@@ -1005,6 +1008,48 @@ type MetricTileProps = {
|
|
|
1005
1008
|
};
|
|
1006
1009
|
declare function MetricTile({ density, icon, label, sparkline, value }: MetricTileProps): react.JSX.Element;
|
|
1007
1010
|
|
|
1011
|
+
type MapCoordinate = [longitude: number, latitude: number];
|
|
1012
|
+
type MapMarker = {
|
|
1013
|
+
id: string;
|
|
1014
|
+
label: string;
|
|
1015
|
+
coordinates: MapCoordinate;
|
|
1016
|
+
description?: string;
|
|
1017
|
+
tone?: "accent" | "blue" | "green" | "warning";
|
|
1018
|
+
};
|
|
1019
|
+
type MapReverseGeocoder = (coordinates: MapCoordinate, signal: AbortSignal) => Promise<string | null>;
|
|
1020
|
+
type MapSearchResult = {
|
|
1021
|
+
id: string;
|
|
1022
|
+
label: string;
|
|
1023
|
+
coordinates: MapCoordinate;
|
|
1024
|
+
};
|
|
1025
|
+
type MapSearchProvider = (query: string, signal: AbortSignal) => Promise<MapSearchResult[]>;
|
|
1026
|
+
type MapProps = {
|
|
1027
|
+
ariaLabel?: string;
|
|
1028
|
+
center?: MapCoordinate;
|
|
1029
|
+
className?: string;
|
|
1030
|
+
darkStyleUrl?: string | StyleSpecification;
|
|
1031
|
+
height?: number | string;
|
|
1032
|
+
interactive?: boolean;
|
|
1033
|
+
markers?: MapMarker[];
|
|
1034
|
+
lightStyleUrl?: string | StyleSpecification;
|
|
1035
|
+
showAttribution?: boolean;
|
|
1036
|
+
showAddress?: boolean;
|
|
1037
|
+
showCoordinates?: boolean;
|
|
1038
|
+
showGeolocate?: boolean;
|
|
1039
|
+
showHotspots?: boolean;
|
|
1040
|
+
showNavigation?: boolean;
|
|
1041
|
+
showSearch?: boolean;
|
|
1042
|
+
styleUrl?: string | StyleSpecification;
|
|
1043
|
+
theme?: "auto" | "dark" | "light";
|
|
1044
|
+
zoom?: number;
|
|
1045
|
+
onMarkerClick?: (marker: MapMarker) => void;
|
|
1046
|
+
onMoveEnd?: (center: MapCoordinate, zoom: number) => void;
|
|
1047
|
+
onUserLocation?: (coordinates: MapCoordinate) => void;
|
|
1048
|
+
reverseGeocode?: MapReverseGeocoder | false;
|
|
1049
|
+
searchPlaces?: MapSearchProvider | false;
|
|
1050
|
+
};
|
|
1051
|
+
declare function Map({ ariaLabel, center, className, darkStyleUrl, height, interactive, markers, lightStyleUrl, showAttribution, showAddress, showCoordinates, showGeolocate, showHotspots, showNavigation, showSearch, styleUrl, theme, zoom, onMarkerClick, onMoveEnd, onUserLocation, reverseGeocode, searchPlaces, }: MapProps): react.JSX.Element;
|
|
1052
|
+
|
|
1008
1053
|
type StatusIndicatorState = "error" | "neutral" | "success" | "warning";
|
|
1009
1054
|
type StatusIndicatorProps = {
|
|
1010
1055
|
label: string;
|
|
@@ -1884,11 +1929,14 @@ type NotesActivityComment = {
|
|
|
1884
1929
|
type NotesActivityTab = "activity" | "notes";
|
|
1885
1930
|
type NotesActivityProps = {
|
|
1886
1931
|
activeTab?: NotesActivityTab;
|
|
1932
|
+
addActivityButtonLabel?: string;
|
|
1887
1933
|
addNoteButtonLabel?: string;
|
|
1888
1934
|
addNoteModalDescription?: string;
|
|
1889
1935
|
addNoteModalTitle?: string;
|
|
1890
1936
|
className?: string;
|
|
1937
|
+
composerOpen?: boolean;
|
|
1891
1938
|
composerPlaceholder?: string;
|
|
1939
|
+
defaultComposerOpen?: boolean;
|
|
1892
1940
|
defaultTab?: NotesActivityTab;
|
|
1893
1941
|
density?: SurfaceDensity;
|
|
1894
1942
|
activityFooterHref?: string;
|
|
@@ -1900,6 +1948,7 @@ type NotesActivityProps = {
|
|
|
1900
1948
|
noteAuthorName?: string;
|
|
1901
1949
|
noteTagOptions?: NotesActivityTag[];
|
|
1902
1950
|
onActivityFooterClick?: () => void;
|
|
1951
|
+
onComposerOpenChange?: (open: boolean) => void;
|
|
1903
1952
|
onItemClick?: (item: NotesActivityItem) => void;
|
|
1904
1953
|
onNoteAttachClick?: () => void;
|
|
1905
1954
|
onNoteEmojiSelect?: (emoji: string) => void;
|
|
@@ -1910,11 +1959,14 @@ type NotesActivityProps = {
|
|
|
1910
1959
|
onTabChange?: (tab: NotesActivityTab) => void;
|
|
1911
1960
|
saveButtonLabel?: string;
|
|
1912
1961
|
showAttach?: boolean;
|
|
1962
|
+
/** When false, the built-in Add Note/Activity trigger is hidden (use an external control). */
|
|
1963
|
+
showComposerTrigger?: boolean;
|
|
1913
1964
|
showEmoji?: boolean;
|
|
1914
1965
|
showMention?: boolean;
|
|
1966
|
+
showTabs?: boolean;
|
|
1915
1967
|
showTags?: boolean;
|
|
1916
1968
|
};
|
|
1917
|
-
declare function NotesActivity({ activeTab: controlledActiveTab, className, composerPlaceholder, defaultTab, density, activityFooterHref, activityFooterLabel, items, notesFooterHref, notesFooterLabel, noteAuthorAvatarSrc, noteAuthorName, noteTagOptions, onActivityFooterClick, onItemClick, onNoteAttachClick, onNoteEmojiSelect, onNoteMentionClick, onNotesFooterClick, onNoteSave, onOpenTask, onTabChange,
|
|
1969
|
+
declare function NotesActivity({ activeTab: controlledActiveTab, addActivityButtonLabel, addNoteButtonLabel, className, composerOpen: controlledComposerOpen, composerPlaceholder, defaultComposerOpen, defaultTab, density, activityFooterHref, activityFooterLabel, items, notesFooterHref, notesFooterLabel, noteAuthorAvatarSrc, noteAuthorName, noteTagOptions, onActivityFooterClick, onComposerOpenChange, onItemClick, onNoteAttachClick, onNoteEmojiSelect, onNoteMentionClick, onNotesFooterClick, onNoteSave, onOpenTask, onTabChange, showAttach, showComposerTrigger, showEmoji, showMention, showTabs, showTags, }: NotesActivityProps): react.JSX.Element;
|
|
1918
1970
|
|
|
1919
1971
|
type TopPerformingUserItem = {
|
|
1920
1972
|
displayValue: string;
|
|
@@ -2209,6 +2261,116 @@ type ContentTimelineProps = {
|
|
|
2209
2261
|
};
|
|
2210
2262
|
declare function ContentTimeline({ groups, items, onItemClick, onItemDoubleClick, variant }: ContentTimelineProps): react.JSX.Element;
|
|
2211
2263
|
|
|
2264
|
+
type ContactDetailsAction = "add-note" | "add-task" | "call" | "change-avatar" | "edit" | "email" | "export-contact" | "log-activity" | "reset-password" | "schedule-meeting";
|
|
2265
|
+
type ContactCompany = {
|
|
2266
|
+
department?: string;
|
|
2267
|
+
employees?: string;
|
|
2268
|
+
industry?: string;
|
|
2269
|
+
jobTitle?: string;
|
|
2270
|
+
name: string;
|
|
2271
|
+
primary?: boolean;
|
|
2272
|
+
website?: string;
|
|
2273
|
+
};
|
|
2274
|
+
type ContactDetailsContact = {
|
|
2275
|
+
avatarSrc?: string;
|
|
2276
|
+
companies: ContactCompany[];
|
|
2277
|
+
dateCreated: string;
|
|
2278
|
+
dateLastEdited: string;
|
|
2279
|
+
email: string;
|
|
2280
|
+
lastContact: string;
|
|
2281
|
+
leadStatus: string;
|
|
2282
|
+
mobile: string;
|
|
2283
|
+
name: string;
|
|
2284
|
+
owner: string;
|
|
2285
|
+
password?: string;
|
|
2286
|
+
phone: string;
|
|
2287
|
+
role: string;
|
|
2288
|
+
source: string;
|
|
2289
|
+
status: string;
|
|
2290
|
+
tags: string[];
|
|
2291
|
+
};
|
|
2292
|
+
type ContactDetailsProps = {
|
|
2293
|
+
contact?: Partial<ContactDetailsContact>;
|
|
2294
|
+
isStaffRecord?: boolean;
|
|
2295
|
+
onAction?: (action: ContactDetailsAction) => void;
|
|
2296
|
+
onAvatarChange?: (previewUrl: string) => void;
|
|
2297
|
+
onPasswordReset?: () => void;
|
|
2298
|
+
showActions?: boolean;
|
|
2299
|
+
showStatus?: boolean;
|
|
2300
|
+
};
|
|
2301
|
+
declare function getPrimaryCompany(companies?: ContactCompany[]): ContactCompany | undefined;
|
|
2302
|
+
declare function resolveContactDetailsContact(contact: Partial<ContactDetailsContact> | undefined, defaults: ContactDetailsContact): ContactDetailsContact;
|
|
2303
|
+
|
|
2304
|
+
type MoreActionsMenuItem = {
|
|
2305
|
+
callback?: () => void;
|
|
2306
|
+
destructive?: boolean;
|
|
2307
|
+
disabled?: boolean;
|
|
2308
|
+
iconName?: string;
|
|
2309
|
+
id: string;
|
|
2310
|
+
label: string;
|
|
2311
|
+
shortcut?: string;
|
|
2312
|
+
};
|
|
2313
|
+
type MoreActionsMenuProps = {
|
|
2314
|
+
items: MoreActionsMenuItem[];
|
|
2315
|
+
label?: string;
|
|
2316
|
+
onSelect?: (item: MoreActionsMenuItem) => void;
|
|
2317
|
+
};
|
|
2318
|
+
declare function MoreActionsMenu({ items, label, onSelect, }: MoreActionsMenuProps): react.JSX.Element;
|
|
2319
|
+
|
|
2320
|
+
type ContactCardProps = {
|
|
2321
|
+
className?: string;
|
|
2322
|
+
contact: ContactDetailsContact;
|
|
2323
|
+
isStaffRecord?: boolean;
|
|
2324
|
+
moreActions?: MoreActionsMenuItem[];
|
|
2325
|
+
onAction?: (action: ContactDetailsAction) => void;
|
|
2326
|
+
onAvatarChange?: (previewUrl: string) => void;
|
|
2327
|
+
onPasswordReset?: () => void;
|
|
2328
|
+
ownerAvatarSrc?: string;
|
|
2329
|
+
showActions?: boolean;
|
|
2330
|
+
showStatus?: boolean;
|
|
2331
|
+
};
|
|
2332
|
+
declare function ContactCard({ className, contact, isStaffRecord, moreActions, onAction, onAvatarChange, onPasswordReset, ownerAvatarSrc, showActions, showStatus, }: ContactCardProps): react.JSX.Element;
|
|
2333
|
+
|
|
2334
|
+
declare function ContactDetails({ contact, isStaffRecord, onAction, onAvatarChange, onPasswordReset, showActions, showStatus, }: ContactDetailsProps): react.JSX.Element;
|
|
2335
|
+
|
|
2336
|
+
type ContactIdentityCardProps = {
|
|
2337
|
+
avatarSrc?: string;
|
|
2338
|
+
className?: string;
|
|
2339
|
+
companies: ContactCompany[];
|
|
2340
|
+
isStaffRecord?: boolean;
|
|
2341
|
+
name: string;
|
|
2342
|
+
onAvatarChange?: (previewUrl: string) => void;
|
|
2343
|
+
photoUploadTitle?: string;
|
|
2344
|
+
showStatus?: boolean;
|
|
2345
|
+
status?: string;
|
|
2346
|
+
};
|
|
2347
|
+
declare function ContactIdentityCard({ avatarSrc, className, companies, isStaffRecord, name, onAvatarChange, photoUploadTitle, showStatus, status, }: ContactIdentityCardProps): react.JSX.Element;
|
|
2348
|
+
|
|
2349
|
+
type ContactNotesActivityProps = {
|
|
2350
|
+
className?: string;
|
|
2351
|
+
items?: NotesActivityItem[];
|
|
2352
|
+
onAction?: (action: ContactDetailsAction) => void;
|
|
2353
|
+
onAddNote?: (note: string) => void;
|
|
2354
|
+
};
|
|
2355
|
+
declare function ContactNotesActivity({ className, items, onAction, onAddNote, }: ContactNotesActivityProps): react.JSX.Element;
|
|
2356
|
+
|
|
2357
|
+
type ContactSummaryTab = "basic" | "other" | "security";
|
|
2358
|
+
type ContactSummaryCardProps = {
|
|
2359
|
+
className?: string;
|
|
2360
|
+
contact: ContactDetailsContact;
|
|
2361
|
+
defaultTab?: ContactSummaryTab;
|
|
2362
|
+
isStaffRecord?: boolean;
|
|
2363
|
+
moreActions?: MoreActionsMenuItem[];
|
|
2364
|
+
onAction?: (action: ContactDetailsAction) => void;
|
|
2365
|
+
onPasswordReset?: () => void;
|
|
2366
|
+
ownerAvatarSrc?: string;
|
|
2367
|
+
showActions?: boolean;
|
|
2368
|
+
};
|
|
2369
|
+
declare function ContactSummaryCard({ className, contact, defaultTab, isStaffRecord, moreActions, onPasswordReset, ownerAvatarSrc, showActions, }: ContactSummaryCardProps): react.JSX.Element;
|
|
2370
|
+
|
|
2371
|
+
declare const defaultContact: ContactDetailsContact;
|
|
2372
|
+
declare const defaultContactNotes: NotesActivityItem[];
|
|
2373
|
+
|
|
2212
2374
|
type TreeViewNode = {
|
|
2213
2375
|
children?: TreeViewNode[];
|
|
2214
2376
|
id: string;
|
|
@@ -2748,4 +2910,4 @@ type SankeyLinkDef = {
|
|
|
2748
2910
|
};
|
|
2749
2911
|
declare const demoSankeyLinks: SankeyLinkDef[];
|
|
2750
2912
|
|
|
2751
|
-
export { type AccentColor, AccentColorPicker, Accordion, AccordionGroup, type AccordionGroupType, Alert, type AlertStatus, ApplicationFooter, type ApplicationFooterAction, type ApplicationFooterProps, ApplicationHeader, type ApplicationHeaderAction, type ApplicationHeaderProfile, type ApplicationHeaderProps, AspectRatio, type AspectRatioProps, Avatar, AvatarGroup, type AvatarGroupItem, type AvatarShape, type AvatarSize, Badge, type BadgeSize, type BadgeTone, type BadgeVariant, BottomNavigation, type BottomNavigationItem, type BottomNavigationProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonVariant, Calendar, type CalendarEvent, type CalendarProps, Card, Carousel, CascaderField, type CascaderOption, CatalogIcon, Chart, type ChartDatum, type ChartPalette, type ChartSeries, type ChartVariant, CheckboxField, ChipInput, ChipInputField, type ChipInputPreset, type ChipInputVariant, ChoiceChips, ChoiceChipsField, type ChoiceChipsSelectionMode, type ChoiceChipsVariant, type ChoiceControlSize, type ChoiceOption, type ChoiceShape, Clipboard, ClipboardProvider, Clock, type ClockSize, ColorField, Columns, type ColumnsDirection, type ColumnsProps, CommandPalette, type CommandPaletteItem, Container, type ContainerProps, type ContainerSize, ContentTimeline, type ContentTimelineGroup, type ContentTimelineItem, type ContentTimelineStatus, type ContentTimelineTag, ContextMenuProvider, ContextMenuTarget, CopyButton, CountryPickerField, CustomScrollbar, type CustomScrollbarOrientation, type CustomScrollbarProps, type CustomScrollbarShape, DEFAULT_FONT_FAMILY, DEFAULT_NOTE_TAG_OPTIONS, DEFAULT_TOAST_DURATION_MS, DashboardContentContainer, type DashboardContentContainerProps, type DashboardContentContainerWidth, DataGrid, type DataGridColumn, type DataGridLayout, type DataGridPivotConfig, type DataGridRow, type DataGridRowHeaderColumn, DateField, type DateInputType, DealsOverTime, type DealsOverTimePoint, type DealsOverTimeProps, DescriptionList, type DescriptionListItem, type DescriptionListLayout, Dialog, type DialogActionSet, type DialogResult, Divider, type DividerOrientation, type DividerTone, DockLayout, type DockLayoutProps, Drawer, DrawerDefaultActions, type DrawerSide, DropdownMenu, DropdownMenuItem, type DropdownMenuItemData, type DropdownMenuPlacement, DualListBuilder, type DualListBuilderProps, type DualListItem, type ElementSize, EmojiPicker, type EmojiPickerPlacement, type EmojiPickerProps, EmptyState, type EmptyStateIcon, FONT_STORAGE_KEY, type FieldMode, FieldShell, FileField, FilterBuilder, type FilterBuilderProps, type FilterCondition, type FilterOperator, FilterSelectField, type FilterSelectGroup, FloatingActionButton, type FloatingActionButtonPosition, type FloatingActionButtonProps, type FloatingActionButtonSize, FocusTrap, FontPicker, type GalleryImage, Gauge, type GaugeFooterItem, type GaugeTrend, type GaugeVariant, type GoogleFontFamily, Grid, type GridProps, HiddenField, type HotkeyCombo, HotkeyManager, Icon, IconBadge, type IconBadgeProps, type IconBadgeUrgency, IconPicker, type IconSize, type IconTone, ImageCropUploadField, type ImageCropUploadFieldProps, type ImageCropUploadResult, ImageCropUploadWidget, type ImageCropUploadWidgetProps, ImageGallery, ImageThumbnail, type ImageThumbnailSize, type InputControlSize, IntersectionObserver, JsonViewer, KanbanBoard, type KanbanBoardProps, type KanbanCard, type KanbanColumn, KeyboardShortcut, type KeyboardShortcutSize, type LabelPosition, Lightbox, List, type ListItem, MasonryGrid, type MasonryGridItem, MegaMenu, type MegaMenuConfig, type MegaMenuFeatured, type MegaMenuItem, type MegaMenuSection, MetricTile, Modal, ModalDefaultActions, type ModalSize, type ModelAsset, ModelGallery, ModelLightbox, ModelThumbnail, type ModelThumbnailSize, ModelViewer, MultiSelectField, NavigationRail, type NavigationRailItem, type NavigationRailProps, NoteComposer, type NoteComposerProps, NoteTag, NoteTagList, type NoteTagOption, NoteTagPicker, type NoteTagTone, NotesActivity, type NotesActivityItem, type NotesActivityProps, type NotesActivityTag, type NotesActivityTagTone, NumberField, OpusThemeProvider, PageHeader, type PageHeaderProps, Pagination, type PaginationProps, Panel, type PasswordRequirement, PasswordStrengthField, type PermissionLevel, PermissionsMatrix, type PermissionsMatrixProps, type PhoneCountry, PhoneNumberField, PipelineOverview, type PipelineOverviewProps, type PipelineStage, Popover, type PopoverPlacement, Portal, PortalHost, ProfilePhotoUploadModal, ProgressBar, ProgressRing, PropertyGrid, type PropertyGridItem, PropertyInspector, type PropertyInspectorItem, type PropertyInspectorValue, QueryBuilder, type QueryBuilderProps, type QueryCombinator, type QueryGroup, type QueryOperator, type QueryRule, Radio, RadioGroup, RangeField, RatingField, type RatingVariant, RecentActivity, type RecentActivityItem, type RecentActivityProps, ResizablePanel, type ResizablePanelProps, ResizeHandle, type ResizeHandleBackground, type ResizeHandleHeight, type ResizeHandleOrientation, type ResizeHandleProps, ResizeObserver, ResourcePlanner, type ResourcePlannerItem, type ResourcePlannerProps, type ResourcePlannerResource, RichTextField, RuleBuilder, type RuleBuilderProps, type RuleDefinition, type RuleEffect, Scheduler, type SchedulerEvent, type SchedulerProps, ScrollArea, type ScrollAreaProps, Section, type SectionAlign, type SectionColumns, type SectionGap, type SectionJustify, type SectionLayoutPreset, type SectionSidebar, type SectionSidebarRatio, type SectionSpan, type SectionStackBelow, type SectionTemplate, type SectionWidth, SegmentedControlField, SelectField, ShowMore, type ShowToastOptions, Sidebar, SidebarGroup, SidebarHeader, SidebarLayout, SidebarLink, type SidebarMenuGroupItem, type SidebarMenuItem, type SidebarMenuLinkItem, SidebarNav, type SidebarProps, type SidebarSide, Skeleton, type SkeletonAnimation, type SkeletonVariant, SliderRangeField, Spacer, type SpacerProps, Sparkline, Speedometer, Spinner, type SpinnerSize, type SpinnerTone, SplitButton, type SplitButtonAction, type SplitButtonProps, Splitter, type SplitterOrientation, type SplitterProps, Stack, type StackAlign, type StackDirection, type StackJustify, type StackProps, StatCard, type StatCardTrend, StatTile, type StatTileItem, type StatTileProps, type StatTileTone, type StatTileTrend, type StatTileTrendTone, StatTiles, type StatTilesProps, Statistic, type StatisticTrend, StatusIndicator, type StatusIndicatorState, type SurfaceDensity, type SurfaceTone, SwitchField, type TabItem, Table, type TableColumn, type TableDensity, type TableRow, Tabs, type TabsOrientation, type TabsVariant, TextAreaField, TextField, type Theme, OpusThemeProvider as ThemeProvider, ThemeSwitcher, ThemeToggleField, ThreePaneLayout, type ThreePaneLayoutProps, type ThreePaneLayoutSize, Tile, type TileItem, type TileProps, type TileTone, Tiles, type TilesLayout, type TilesProps, Toast, type ToastHorizontalPosition, ToastProvider, type ToastVerticalPosition, type ToastViewportPosition, Toolbar, type ToolbarProps, Tooltip, TopNavigation, type TopNavigationBarMenu, type TopNavigationDropdownMenu, type TopNavigationMegaMenu, TopNavigationMenu, type TopNavigationMenuConfig, type TopNavigationSelectItem, type TopPerformingUserItem, TopPerformingUsers, type TopPerformingUsersProps, TransferListField, TreeSelectField, type TreeSelectNode, TreeView, type TreeViewNode, TrendBadge, type TrendBadgeDirection, type UpcomingTaskItem, UpcomingTasks, type UpcomingTasksProps, type UserProfileMenuItem, type UserProfilePhotoUploadOptions, UserProfileWidget, type UserProfileWidgetProps, VisuallyHidden, type WelcomeGreeting, WelcomeMessage, type WelcomeMessageProps, accentColors, cartesianSpecializedVariants, countryCodeToFlag, createAccentStyle, defaultMegaMenuFeatured, defaultMegaMenuMenus, defaultMegaMenuSections, defaultTopNavigationBarMenus, defaultTopNavigationMegaMenus, defaultTopNavigationMenus, demoSankeyLinks, fieldInputAriaProps, getWelcomeGreeting, googleFonts, countries as phoneCountries, useAccentPreference, useClipboard, useContextMenu, useFieldShellAria, useFontPreference, useHotkey, useHotkeyManager, useIntersectionObserver, useOpusTheme, usePortalHost, useResizeObserver, useToast, useTopNavigation, worldMapRegionIds };
|
|
2913
|
+
export { type AccentColor, AccentColorPicker, Accordion, AccordionGroup, type AccordionGroupType, Alert, type AlertStatus, ApplicationFooter, type ApplicationFooterAction, type ApplicationFooterProps, ApplicationHeader, type ApplicationHeaderAction, type ApplicationHeaderProfile, type ApplicationHeaderProps, AspectRatio, type AspectRatioProps, Avatar, AvatarGroup, type AvatarGroupItem, type AvatarShape, type AvatarSize, Badge, type BadgeSize, type BadgeTone, type BadgeVariant, BottomNavigation, type BottomNavigationItem, type BottomNavigationProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonVariant, Calendar, type CalendarEvent, type CalendarProps, Card, Carousel, CascaderField, type CascaderOption, CatalogIcon, Chart, type ChartDatum, type ChartPalette, type ChartSeries, type ChartVariant, CheckboxField, ChipInput, ChipInputField, type ChipInputPreset, type ChipInputVariant, ChoiceChips, ChoiceChipsField, type ChoiceChipsSelectionMode, type ChoiceChipsVariant, type ChoiceControlSize, type ChoiceOption, type ChoiceShape, Clipboard, ClipboardProvider, Clock, type ClockSize, ColorField, Columns, type ColumnsDirection, type ColumnsProps, CommandPalette, type CommandPaletteItem, ContactCard, type ContactCardProps, type ContactCompany, ContactDetails, type ContactDetailsAction, type ContactDetailsContact, type ContactDetailsProps, ContactIdentityCard, type ContactIdentityCardProps, ContactNotesActivity, type ContactNotesActivityProps, ContactSummaryCard, type ContactSummaryCardProps, type ContactSummaryTab, Container, type ContainerProps, type ContainerSize, ContentTimeline, type ContentTimelineGroup, type ContentTimelineItem, type ContentTimelineStatus, type ContentTimelineTag, ContextMenuProvider, ContextMenuTarget, CopyButton, CountryPickerField, CustomScrollbar, type CustomScrollbarOrientation, type CustomScrollbarProps, type CustomScrollbarShape, DEFAULT_FONT_FAMILY, DEFAULT_NOTE_TAG_OPTIONS, DEFAULT_TOAST_DURATION_MS, DashboardContentContainer, type DashboardContentContainerProps, type DashboardContentContainerWidth, DataGrid, type DataGridColumn, type DataGridLayout, type DataGridPivotConfig, type DataGridRow, type DataGridRowHeaderColumn, DateField, type DateInputType, DealsOverTime, type DealsOverTimePoint, type DealsOverTimeProps, DescriptionList, type DescriptionListItem, type DescriptionListLayout, Dialog, type DialogActionSet, type DialogResult, Divider, type DividerOrientation, type DividerTone, DockLayout, type DockLayoutProps, Drawer, DrawerDefaultActions, type DrawerSide, DropdownMenu, DropdownMenuItem, type DropdownMenuItemData, type DropdownMenuPlacement, DualListBuilder, type DualListBuilderProps, type DualListItem, type ElementSize, EmojiPicker, type EmojiPickerPlacement, type EmojiPickerProps, EmptyState, type EmptyStateIcon, FONT_STORAGE_KEY, type FieldMode, FieldShell, FileField, FilterBuilder, type FilterBuilderProps, type FilterCondition, type FilterOperator, FilterSelectField, type FilterSelectGroup, FloatingActionButton, type FloatingActionButtonPosition, type FloatingActionButtonProps, type FloatingActionButtonSize, FocusTrap, FontPicker, type GalleryImage, Gauge, type GaugeFooterItem, type GaugeTrend, type GaugeVariant, type GoogleFontFamily, Grid, type GridProps, HiddenField, type HotkeyCombo, HotkeyManager, Icon, IconBadge, type IconBadgeProps, type IconBadgeUrgency, IconPicker, type IconSize, type IconTone, ImageCropUploadField, type ImageCropUploadFieldProps, type ImageCropUploadResult, ImageCropUploadWidget, type ImageCropUploadWidgetProps, ImageGallery, ImageThumbnail, type ImageThumbnailSize, type InputControlSize, IntersectionObserver, JsonViewer, KanbanBoard, type KanbanBoardProps, type KanbanCard, type KanbanColumn, KeyboardShortcut, type KeyboardShortcutSize, type LabelPosition, Lightbox, List, type ListItem, Map, type MapCoordinate, type MapMarker, type MapProps, MasonryGrid, type MasonryGridItem, MegaMenu, type MegaMenuConfig, type MegaMenuFeatured, type MegaMenuItem, type MegaMenuSection, MetricTile, Modal, ModalDefaultActions, type ModalSize, type ModelAsset, ModelGallery, ModelLightbox, ModelThumbnail, type ModelThumbnailSize, ModelViewer, MoreActionsMenu, type MoreActionsMenuItem, type MoreActionsMenuProps, MultiSelectField, NavigationRail, type NavigationRailItem, type NavigationRailProps, NoteComposer, type NoteComposerProps, NoteTag, NoteTagList, type NoteTagOption, NoteTagPicker, type NoteTagTone, NotesActivity, type NotesActivityItem, type NotesActivityProps, type NotesActivityTag, type NotesActivityTagTone, NumberField, OpusThemeProvider, PageHeader, type PageHeaderProps, Pagination, type PaginationProps, Panel, type PasswordRequirement, PasswordStrengthField, type PermissionLevel, PermissionsMatrix, type PermissionsMatrixProps, type PhoneCountry, PhoneNumberField, PipelineOverview, type PipelineOverviewProps, type PipelineStage, Popover, type PopoverPlacement, Portal, PortalHost, ProfilePhotoUploadModal, ProgressBar, ProgressRing, PropertyGrid, type PropertyGridItem, PropertyInspector, type PropertyInspectorItem, type PropertyInspectorValue, QueryBuilder, type QueryBuilderProps, type QueryCombinator, type QueryGroup, type QueryOperator, type QueryRule, Radio, RadioGroup, RangeField, RatingField, type RatingVariant, RecentActivity, type RecentActivityItem, type RecentActivityProps, ResizablePanel, type ResizablePanelProps, ResizeHandle, type ResizeHandleBackground, type ResizeHandleHeight, type ResizeHandleOrientation, type ResizeHandleProps, ResizeObserver, ResourcePlanner, type ResourcePlannerItem, type ResourcePlannerProps, type ResourcePlannerResource, RichTextField, RuleBuilder, type RuleBuilderProps, type RuleDefinition, type RuleEffect, Scheduler, type SchedulerEvent, type SchedulerProps, ScrollArea, type ScrollAreaProps, Section, type SectionAlign, type SectionColumns, type SectionGap, type SectionJustify, type SectionLayoutPreset, type SectionSidebar, type SectionSidebarRatio, type SectionSpan, type SectionStackBelow, type SectionTemplate, type SectionWidth, SegmentedControlField, SelectField, ShowMore, type ShowToastOptions, Sidebar, SidebarGroup, SidebarHeader, SidebarLayout, SidebarLink, type SidebarMenuGroupItem, type SidebarMenuItem, type SidebarMenuLinkItem, SidebarNav, type SidebarProps, type SidebarSide, Skeleton, type SkeletonAnimation, type SkeletonVariant, SliderRangeField, Spacer, type SpacerProps, Sparkline, Speedometer, Spinner, type SpinnerSize, type SpinnerTone, SplitButton, type SplitButtonAction, type SplitButtonProps, Splitter, type SplitterOrientation, type SplitterProps, Stack, type StackAlign, type StackDirection, type StackJustify, type StackProps, StatCard, type StatCardTrend, StatTile, type StatTileItem, type StatTileProps, type StatTileTone, type StatTileTrend, type StatTileTrendTone, StatTiles, type StatTilesProps, Statistic, type StatisticTrend, StatusIndicator, type StatusIndicatorState, type SurfaceDensity, type SurfaceTone, SwitchField, type TabItem, Table, type TableColumn, type TableDensity, type TableRow, Tabs, type TabsOrientation, type TabsVariant, TextAreaField, TextField, type Theme, OpusThemeProvider as ThemeProvider, ThemeSwitcher, ThemeToggleField, ThreePaneLayout, type ThreePaneLayoutProps, type ThreePaneLayoutSize, Tile, type TileItem, type TileProps, type TileTone, Tiles, type TilesLayout, type TilesProps, Toast, type ToastHorizontalPosition, ToastProvider, type ToastVerticalPosition, type ToastViewportPosition, Toolbar, type ToolbarProps, Tooltip, TopNavigation, type TopNavigationBarMenu, type TopNavigationDropdownMenu, type TopNavigationMegaMenu, TopNavigationMenu, type TopNavigationMenuConfig, type TopNavigationSelectItem, type TopPerformingUserItem, TopPerformingUsers, type TopPerformingUsersProps, TransferListField, TreeSelectField, type TreeSelectNode, TreeView, type TreeViewNode, TrendBadge, type TrendBadgeDirection, type UpcomingTaskItem, UpcomingTasks, type UpcomingTasksProps, type UserProfileMenuItem, type UserProfilePhotoUploadOptions, UserProfileWidget, type UserProfileWidgetProps, VisuallyHidden, type WelcomeGreeting, WelcomeMessage, type WelcomeMessageProps, accentColors, cartesianSpecializedVariants, countryCodeToFlag, createAccentStyle, defaultContact, defaultContactNotes, defaultMegaMenuFeatured, defaultMegaMenuMenus, defaultMegaMenuSections, defaultTopNavigationBarMenus, defaultTopNavigationMegaMenus, defaultTopNavigationMenus, demoSankeyLinks, fieldInputAriaProps, getPrimaryCompany, getWelcomeGreeting, googleFonts, countries as phoneCountries, resolveContactDetailsContact, useAccentPreference, useClipboard, useContextMenu, useFieldShellAria, useFontPreference, useHotkey, useHotkeyManager, useIntersectionObserver, useOpusTheme, usePortalHost, useResizeObserver, useToast, useTopNavigation, worldMapRegionIds };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ButtonHTMLAttributes, ReactNode, ChangeEventHandler, Ref, CSSProperties, ComponentPropsWithoutRef, RefObject, HTMLAttributes, MouseEvent, ElementType } from 'react';
|
|
3
|
+
import { StyleSpecification } from 'maplibre-gl';
|
|
3
4
|
|
|
4
5
|
type Theme = "light" | "dark";
|
|
5
6
|
type FieldMode = "stacked" | "flagged";
|
|
@@ -914,10 +915,12 @@ type TabsProps = {
|
|
|
914
915
|
items: TabItem[];
|
|
915
916
|
onValueChange?: (value: string) => void;
|
|
916
917
|
orientation?: TabsOrientation;
|
|
918
|
+
/** Content aligned to the end of the tab row (e.g. context actions). */
|
|
919
|
+
trailing?: ReactNode;
|
|
917
920
|
value?: string;
|
|
918
921
|
variant?: TabsVariant;
|
|
919
922
|
};
|
|
920
|
-
declare function Tabs({ "aria-label": ariaLabel, defaultValue, fitted, items, onValueChange, orientation, value, variant, }: TabsProps): react.JSX.Element;
|
|
923
|
+
declare function Tabs({ "aria-label": ariaLabel, defaultValue, fitted, items, onValueChange, orientation, trailing, value, variant, }: TabsProps): react.JSX.Element;
|
|
921
924
|
|
|
922
925
|
type CardProps = {
|
|
923
926
|
actions?: ReactNode;
|
|
@@ -1005,6 +1008,48 @@ type MetricTileProps = {
|
|
|
1005
1008
|
};
|
|
1006
1009
|
declare function MetricTile({ density, icon, label, sparkline, value }: MetricTileProps): react.JSX.Element;
|
|
1007
1010
|
|
|
1011
|
+
type MapCoordinate = [longitude: number, latitude: number];
|
|
1012
|
+
type MapMarker = {
|
|
1013
|
+
id: string;
|
|
1014
|
+
label: string;
|
|
1015
|
+
coordinates: MapCoordinate;
|
|
1016
|
+
description?: string;
|
|
1017
|
+
tone?: "accent" | "blue" | "green" | "warning";
|
|
1018
|
+
};
|
|
1019
|
+
type MapReverseGeocoder = (coordinates: MapCoordinate, signal: AbortSignal) => Promise<string | null>;
|
|
1020
|
+
type MapSearchResult = {
|
|
1021
|
+
id: string;
|
|
1022
|
+
label: string;
|
|
1023
|
+
coordinates: MapCoordinate;
|
|
1024
|
+
};
|
|
1025
|
+
type MapSearchProvider = (query: string, signal: AbortSignal) => Promise<MapSearchResult[]>;
|
|
1026
|
+
type MapProps = {
|
|
1027
|
+
ariaLabel?: string;
|
|
1028
|
+
center?: MapCoordinate;
|
|
1029
|
+
className?: string;
|
|
1030
|
+
darkStyleUrl?: string | StyleSpecification;
|
|
1031
|
+
height?: number | string;
|
|
1032
|
+
interactive?: boolean;
|
|
1033
|
+
markers?: MapMarker[];
|
|
1034
|
+
lightStyleUrl?: string | StyleSpecification;
|
|
1035
|
+
showAttribution?: boolean;
|
|
1036
|
+
showAddress?: boolean;
|
|
1037
|
+
showCoordinates?: boolean;
|
|
1038
|
+
showGeolocate?: boolean;
|
|
1039
|
+
showHotspots?: boolean;
|
|
1040
|
+
showNavigation?: boolean;
|
|
1041
|
+
showSearch?: boolean;
|
|
1042
|
+
styleUrl?: string | StyleSpecification;
|
|
1043
|
+
theme?: "auto" | "dark" | "light";
|
|
1044
|
+
zoom?: number;
|
|
1045
|
+
onMarkerClick?: (marker: MapMarker) => void;
|
|
1046
|
+
onMoveEnd?: (center: MapCoordinate, zoom: number) => void;
|
|
1047
|
+
onUserLocation?: (coordinates: MapCoordinate) => void;
|
|
1048
|
+
reverseGeocode?: MapReverseGeocoder | false;
|
|
1049
|
+
searchPlaces?: MapSearchProvider | false;
|
|
1050
|
+
};
|
|
1051
|
+
declare function Map({ ariaLabel, center, className, darkStyleUrl, height, interactive, markers, lightStyleUrl, showAttribution, showAddress, showCoordinates, showGeolocate, showHotspots, showNavigation, showSearch, styleUrl, theme, zoom, onMarkerClick, onMoveEnd, onUserLocation, reverseGeocode, searchPlaces, }: MapProps): react.JSX.Element;
|
|
1052
|
+
|
|
1008
1053
|
type StatusIndicatorState = "error" | "neutral" | "success" | "warning";
|
|
1009
1054
|
type StatusIndicatorProps = {
|
|
1010
1055
|
label: string;
|
|
@@ -1884,11 +1929,14 @@ type NotesActivityComment = {
|
|
|
1884
1929
|
type NotesActivityTab = "activity" | "notes";
|
|
1885
1930
|
type NotesActivityProps = {
|
|
1886
1931
|
activeTab?: NotesActivityTab;
|
|
1932
|
+
addActivityButtonLabel?: string;
|
|
1887
1933
|
addNoteButtonLabel?: string;
|
|
1888
1934
|
addNoteModalDescription?: string;
|
|
1889
1935
|
addNoteModalTitle?: string;
|
|
1890
1936
|
className?: string;
|
|
1937
|
+
composerOpen?: boolean;
|
|
1891
1938
|
composerPlaceholder?: string;
|
|
1939
|
+
defaultComposerOpen?: boolean;
|
|
1892
1940
|
defaultTab?: NotesActivityTab;
|
|
1893
1941
|
density?: SurfaceDensity;
|
|
1894
1942
|
activityFooterHref?: string;
|
|
@@ -1900,6 +1948,7 @@ type NotesActivityProps = {
|
|
|
1900
1948
|
noteAuthorName?: string;
|
|
1901
1949
|
noteTagOptions?: NotesActivityTag[];
|
|
1902
1950
|
onActivityFooterClick?: () => void;
|
|
1951
|
+
onComposerOpenChange?: (open: boolean) => void;
|
|
1903
1952
|
onItemClick?: (item: NotesActivityItem) => void;
|
|
1904
1953
|
onNoteAttachClick?: () => void;
|
|
1905
1954
|
onNoteEmojiSelect?: (emoji: string) => void;
|
|
@@ -1910,11 +1959,14 @@ type NotesActivityProps = {
|
|
|
1910
1959
|
onTabChange?: (tab: NotesActivityTab) => void;
|
|
1911
1960
|
saveButtonLabel?: string;
|
|
1912
1961
|
showAttach?: boolean;
|
|
1962
|
+
/** When false, the built-in Add Note/Activity trigger is hidden (use an external control). */
|
|
1963
|
+
showComposerTrigger?: boolean;
|
|
1913
1964
|
showEmoji?: boolean;
|
|
1914
1965
|
showMention?: boolean;
|
|
1966
|
+
showTabs?: boolean;
|
|
1915
1967
|
showTags?: boolean;
|
|
1916
1968
|
};
|
|
1917
|
-
declare function NotesActivity({ activeTab: controlledActiveTab, className, composerPlaceholder, defaultTab, density, activityFooterHref, activityFooterLabel, items, notesFooterHref, notesFooterLabel, noteAuthorAvatarSrc, noteAuthorName, noteTagOptions, onActivityFooterClick, onItemClick, onNoteAttachClick, onNoteEmojiSelect, onNoteMentionClick, onNotesFooterClick, onNoteSave, onOpenTask, onTabChange,
|
|
1969
|
+
declare function NotesActivity({ activeTab: controlledActiveTab, addActivityButtonLabel, addNoteButtonLabel, className, composerOpen: controlledComposerOpen, composerPlaceholder, defaultComposerOpen, defaultTab, density, activityFooterHref, activityFooterLabel, items, notesFooterHref, notesFooterLabel, noteAuthorAvatarSrc, noteAuthorName, noteTagOptions, onActivityFooterClick, onComposerOpenChange, onItemClick, onNoteAttachClick, onNoteEmojiSelect, onNoteMentionClick, onNotesFooterClick, onNoteSave, onOpenTask, onTabChange, showAttach, showComposerTrigger, showEmoji, showMention, showTabs, showTags, }: NotesActivityProps): react.JSX.Element;
|
|
1918
1970
|
|
|
1919
1971
|
type TopPerformingUserItem = {
|
|
1920
1972
|
displayValue: string;
|
|
@@ -2209,6 +2261,116 @@ type ContentTimelineProps = {
|
|
|
2209
2261
|
};
|
|
2210
2262
|
declare function ContentTimeline({ groups, items, onItemClick, onItemDoubleClick, variant }: ContentTimelineProps): react.JSX.Element;
|
|
2211
2263
|
|
|
2264
|
+
type ContactDetailsAction = "add-note" | "add-task" | "call" | "change-avatar" | "edit" | "email" | "export-contact" | "log-activity" | "reset-password" | "schedule-meeting";
|
|
2265
|
+
type ContactCompany = {
|
|
2266
|
+
department?: string;
|
|
2267
|
+
employees?: string;
|
|
2268
|
+
industry?: string;
|
|
2269
|
+
jobTitle?: string;
|
|
2270
|
+
name: string;
|
|
2271
|
+
primary?: boolean;
|
|
2272
|
+
website?: string;
|
|
2273
|
+
};
|
|
2274
|
+
type ContactDetailsContact = {
|
|
2275
|
+
avatarSrc?: string;
|
|
2276
|
+
companies: ContactCompany[];
|
|
2277
|
+
dateCreated: string;
|
|
2278
|
+
dateLastEdited: string;
|
|
2279
|
+
email: string;
|
|
2280
|
+
lastContact: string;
|
|
2281
|
+
leadStatus: string;
|
|
2282
|
+
mobile: string;
|
|
2283
|
+
name: string;
|
|
2284
|
+
owner: string;
|
|
2285
|
+
password?: string;
|
|
2286
|
+
phone: string;
|
|
2287
|
+
role: string;
|
|
2288
|
+
source: string;
|
|
2289
|
+
status: string;
|
|
2290
|
+
tags: string[];
|
|
2291
|
+
};
|
|
2292
|
+
type ContactDetailsProps = {
|
|
2293
|
+
contact?: Partial<ContactDetailsContact>;
|
|
2294
|
+
isStaffRecord?: boolean;
|
|
2295
|
+
onAction?: (action: ContactDetailsAction) => void;
|
|
2296
|
+
onAvatarChange?: (previewUrl: string) => void;
|
|
2297
|
+
onPasswordReset?: () => void;
|
|
2298
|
+
showActions?: boolean;
|
|
2299
|
+
showStatus?: boolean;
|
|
2300
|
+
};
|
|
2301
|
+
declare function getPrimaryCompany(companies?: ContactCompany[]): ContactCompany | undefined;
|
|
2302
|
+
declare function resolveContactDetailsContact(contact: Partial<ContactDetailsContact> | undefined, defaults: ContactDetailsContact): ContactDetailsContact;
|
|
2303
|
+
|
|
2304
|
+
type MoreActionsMenuItem = {
|
|
2305
|
+
callback?: () => void;
|
|
2306
|
+
destructive?: boolean;
|
|
2307
|
+
disabled?: boolean;
|
|
2308
|
+
iconName?: string;
|
|
2309
|
+
id: string;
|
|
2310
|
+
label: string;
|
|
2311
|
+
shortcut?: string;
|
|
2312
|
+
};
|
|
2313
|
+
type MoreActionsMenuProps = {
|
|
2314
|
+
items: MoreActionsMenuItem[];
|
|
2315
|
+
label?: string;
|
|
2316
|
+
onSelect?: (item: MoreActionsMenuItem) => void;
|
|
2317
|
+
};
|
|
2318
|
+
declare function MoreActionsMenu({ items, label, onSelect, }: MoreActionsMenuProps): react.JSX.Element;
|
|
2319
|
+
|
|
2320
|
+
type ContactCardProps = {
|
|
2321
|
+
className?: string;
|
|
2322
|
+
contact: ContactDetailsContact;
|
|
2323
|
+
isStaffRecord?: boolean;
|
|
2324
|
+
moreActions?: MoreActionsMenuItem[];
|
|
2325
|
+
onAction?: (action: ContactDetailsAction) => void;
|
|
2326
|
+
onAvatarChange?: (previewUrl: string) => void;
|
|
2327
|
+
onPasswordReset?: () => void;
|
|
2328
|
+
ownerAvatarSrc?: string;
|
|
2329
|
+
showActions?: boolean;
|
|
2330
|
+
showStatus?: boolean;
|
|
2331
|
+
};
|
|
2332
|
+
declare function ContactCard({ className, contact, isStaffRecord, moreActions, onAction, onAvatarChange, onPasswordReset, ownerAvatarSrc, showActions, showStatus, }: ContactCardProps): react.JSX.Element;
|
|
2333
|
+
|
|
2334
|
+
declare function ContactDetails({ contact, isStaffRecord, onAction, onAvatarChange, onPasswordReset, showActions, showStatus, }: ContactDetailsProps): react.JSX.Element;
|
|
2335
|
+
|
|
2336
|
+
type ContactIdentityCardProps = {
|
|
2337
|
+
avatarSrc?: string;
|
|
2338
|
+
className?: string;
|
|
2339
|
+
companies: ContactCompany[];
|
|
2340
|
+
isStaffRecord?: boolean;
|
|
2341
|
+
name: string;
|
|
2342
|
+
onAvatarChange?: (previewUrl: string) => void;
|
|
2343
|
+
photoUploadTitle?: string;
|
|
2344
|
+
showStatus?: boolean;
|
|
2345
|
+
status?: string;
|
|
2346
|
+
};
|
|
2347
|
+
declare function ContactIdentityCard({ avatarSrc, className, companies, isStaffRecord, name, onAvatarChange, photoUploadTitle, showStatus, status, }: ContactIdentityCardProps): react.JSX.Element;
|
|
2348
|
+
|
|
2349
|
+
type ContactNotesActivityProps = {
|
|
2350
|
+
className?: string;
|
|
2351
|
+
items?: NotesActivityItem[];
|
|
2352
|
+
onAction?: (action: ContactDetailsAction) => void;
|
|
2353
|
+
onAddNote?: (note: string) => void;
|
|
2354
|
+
};
|
|
2355
|
+
declare function ContactNotesActivity({ className, items, onAction, onAddNote, }: ContactNotesActivityProps): react.JSX.Element;
|
|
2356
|
+
|
|
2357
|
+
type ContactSummaryTab = "basic" | "other" | "security";
|
|
2358
|
+
type ContactSummaryCardProps = {
|
|
2359
|
+
className?: string;
|
|
2360
|
+
contact: ContactDetailsContact;
|
|
2361
|
+
defaultTab?: ContactSummaryTab;
|
|
2362
|
+
isStaffRecord?: boolean;
|
|
2363
|
+
moreActions?: MoreActionsMenuItem[];
|
|
2364
|
+
onAction?: (action: ContactDetailsAction) => void;
|
|
2365
|
+
onPasswordReset?: () => void;
|
|
2366
|
+
ownerAvatarSrc?: string;
|
|
2367
|
+
showActions?: boolean;
|
|
2368
|
+
};
|
|
2369
|
+
declare function ContactSummaryCard({ className, contact, defaultTab, isStaffRecord, moreActions, onPasswordReset, ownerAvatarSrc, showActions, }: ContactSummaryCardProps): react.JSX.Element;
|
|
2370
|
+
|
|
2371
|
+
declare const defaultContact: ContactDetailsContact;
|
|
2372
|
+
declare const defaultContactNotes: NotesActivityItem[];
|
|
2373
|
+
|
|
2212
2374
|
type TreeViewNode = {
|
|
2213
2375
|
children?: TreeViewNode[];
|
|
2214
2376
|
id: string;
|
|
@@ -2748,4 +2910,4 @@ type SankeyLinkDef = {
|
|
|
2748
2910
|
};
|
|
2749
2911
|
declare const demoSankeyLinks: SankeyLinkDef[];
|
|
2750
2912
|
|
|
2751
|
-
export { type AccentColor, AccentColorPicker, Accordion, AccordionGroup, type AccordionGroupType, Alert, type AlertStatus, ApplicationFooter, type ApplicationFooterAction, type ApplicationFooterProps, ApplicationHeader, type ApplicationHeaderAction, type ApplicationHeaderProfile, type ApplicationHeaderProps, AspectRatio, type AspectRatioProps, Avatar, AvatarGroup, type AvatarGroupItem, type AvatarShape, type AvatarSize, Badge, type BadgeSize, type BadgeTone, type BadgeVariant, BottomNavigation, type BottomNavigationItem, type BottomNavigationProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonVariant, Calendar, type CalendarEvent, type CalendarProps, Card, Carousel, CascaderField, type CascaderOption, CatalogIcon, Chart, type ChartDatum, type ChartPalette, type ChartSeries, type ChartVariant, CheckboxField, ChipInput, ChipInputField, type ChipInputPreset, type ChipInputVariant, ChoiceChips, ChoiceChipsField, type ChoiceChipsSelectionMode, type ChoiceChipsVariant, type ChoiceControlSize, type ChoiceOption, type ChoiceShape, Clipboard, ClipboardProvider, Clock, type ClockSize, ColorField, Columns, type ColumnsDirection, type ColumnsProps, CommandPalette, type CommandPaletteItem, Container, type ContainerProps, type ContainerSize, ContentTimeline, type ContentTimelineGroup, type ContentTimelineItem, type ContentTimelineStatus, type ContentTimelineTag, ContextMenuProvider, ContextMenuTarget, CopyButton, CountryPickerField, CustomScrollbar, type CustomScrollbarOrientation, type CustomScrollbarProps, type CustomScrollbarShape, DEFAULT_FONT_FAMILY, DEFAULT_NOTE_TAG_OPTIONS, DEFAULT_TOAST_DURATION_MS, DashboardContentContainer, type DashboardContentContainerProps, type DashboardContentContainerWidth, DataGrid, type DataGridColumn, type DataGridLayout, type DataGridPivotConfig, type DataGridRow, type DataGridRowHeaderColumn, DateField, type DateInputType, DealsOverTime, type DealsOverTimePoint, type DealsOverTimeProps, DescriptionList, type DescriptionListItem, type DescriptionListLayout, Dialog, type DialogActionSet, type DialogResult, Divider, type DividerOrientation, type DividerTone, DockLayout, type DockLayoutProps, Drawer, DrawerDefaultActions, type DrawerSide, DropdownMenu, DropdownMenuItem, type DropdownMenuItemData, type DropdownMenuPlacement, DualListBuilder, type DualListBuilderProps, type DualListItem, type ElementSize, EmojiPicker, type EmojiPickerPlacement, type EmojiPickerProps, EmptyState, type EmptyStateIcon, FONT_STORAGE_KEY, type FieldMode, FieldShell, FileField, FilterBuilder, type FilterBuilderProps, type FilterCondition, type FilterOperator, FilterSelectField, type FilterSelectGroup, FloatingActionButton, type FloatingActionButtonPosition, type FloatingActionButtonProps, type FloatingActionButtonSize, FocusTrap, FontPicker, type GalleryImage, Gauge, type GaugeFooterItem, type GaugeTrend, type GaugeVariant, type GoogleFontFamily, Grid, type GridProps, HiddenField, type HotkeyCombo, HotkeyManager, Icon, IconBadge, type IconBadgeProps, type IconBadgeUrgency, IconPicker, type IconSize, type IconTone, ImageCropUploadField, type ImageCropUploadFieldProps, type ImageCropUploadResult, ImageCropUploadWidget, type ImageCropUploadWidgetProps, ImageGallery, ImageThumbnail, type ImageThumbnailSize, type InputControlSize, IntersectionObserver, JsonViewer, KanbanBoard, type KanbanBoardProps, type KanbanCard, type KanbanColumn, KeyboardShortcut, type KeyboardShortcutSize, type LabelPosition, Lightbox, List, type ListItem, MasonryGrid, type MasonryGridItem, MegaMenu, type MegaMenuConfig, type MegaMenuFeatured, type MegaMenuItem, type MegaMenuSection, MetricTile, Modal, ModalDefaultActions, type ModalSize, type ModelAsset, ModelGallery, ModelLightbox, ModelThumbnail, type ModelThumbnailSize, ModelViewer, MultiSelectField, NavigationRail, type NavigationRailItem, type NavigationRailProps, NoteComposer, type NoteComposerProps, NoteTag, NoteTagList, type NoteTagOption, NoteTagPicker, type NoteTagTone, NotesActivity, type NotesActivityItem, type NotesActivityProps, type NotesActivityTag, type NotesActivityTagTone, NumberField, OpusThemeProvider, PageHeader, type PageHeaderProps, Pagination, type PaginationProps, Panel, type PasswordRequirement, PasswordStrengthField, type PermissionLevel, PermissionsMatrix, type PermissionsMatrixProps, type PhoneCountry, PhoneNumberField, PipelineOverview, type PipelineOverviewProps, type PipelineStage, Popover, type PopoverPlacement, Portal, PortalHost, ProfilePhotoUploadModal, ProgressBar, ProgressRing, PropertyGrid, type PropertyGridItem, PropertyInspector, type PropertyInspectorItem, type PropertyInspectorValue, QueryBuilder, type QueryBuilderProps, type QueryCombinator, type QueryGroup, type QueryOperator, type QueryRule, Radio, RadioGroup, RangeField, RatingField, type RatingVariant, RecentActivity, type RecentActivityItem, type RecentActivityProps, ResizablePanel, type ResizablePanelProps, ResizeHandle, type ResizeHandleBackground, type ResizeHandleHeight, type ResizeHandleOrientation, type ResizeHandleProps, ResizeObserver, ResourcePlanner, type ResourcePlannerItem, type ResourcePlannerProps, type ResourcePlannerResource, RichTextField, RuleBuilder, type RuleBuilderProps, type RuleDefinition, type RuleEffect, Scheduler, type SchedulerEvent, type SchedulerProps, ScrollArea, type ScrollAreaProps, Section, type SectionAlign, type SectionColumns, type SectionGap, type SectionJustify, type SectionLayoutPreset, type SectionSidebar, type SectionSidebarRatio, type SectionSpan, type SectionStackBelow, type SectionTemplate, type SectionWidth, SegmentedControlField, SelectField, ShowMore, type ShowToastOptions, Sidebar, SidebarGroup, SidebarHeader, SidebarLayout, SidebarLink, type SidebarMenuGroupItem, type SidebarMenuItem, type SidebarMenuLinkItem, SidebarNav, type SidebarProps, type SidebarSide, Skeleton, type SkeletonAnimation, type SkeletonVariant, SliderRangeField, Spacer, type SpacerProps, Sparkline, Speedometer, Spinner, type SpinnerSize, type SpinnerTone, SplitButton, type SplitButtonAction, type SplitButtonProps, Splitter, type SplitterOrientation, type SplitterProps, Stack, type StackAlign, type StackDirection, type StackJustify, type StackProps, StatCard, type StatCardTrend, StatTile, type StatTileItem, type StatTileProps, type StatTileTone, type StatTileTrend, type StatTileTrendTone, StatTiles, type StatTilesProps, Statistic, type StatisticTrend, StatusIndicator, type StatusIndicatorState, type SurfaceDensity, type SurfaceTone, SwitchField, type TabItem, Table, type TableColumn, type TableDensity, type TableRow, Tabs, type TabsOrientation, type TabsVariant, TextAreaField, TextField, type Theme, OpusThemeProvider as ThemeProvider, ThemeSwitcher, ThemeToggleField, ThreePaneLayout, type ThreePaneLayoutProps, type ThreePaneLayoutSize, Tile, type TileItem, type TileProps, type TileTone, Tiles, type TilesLayout, type TilesProps, Toast, type ToastHorizontalPosition, ToastProvider, type ToastVerticalPosition, type ToastViewportPosition, Toolbar, type ToolbarProps, Tooltip, TopNavigation, type TopNavigationBarMenu, type TopNavigationDropdownMenu, type TopNavigationMegaMenu, TopNavigationMenu, type TopNavigationMenuConfig, type TopNavigationSelectItem, type TopPerformingUserItem, TopPerformingUsers, type TopPerformingUsersProps, TransferListField, TreeSelectField, type TreeSelectNode, TreeView, type TreeViewNode, TrendBadge, type TrendBadgeDirection, type UpcomingTaskItem, UpcomingTasks, type UpcomingTasksProps, type UserProfileMenuItem, type UserProfilePhotoUploadOptions, UserProfileWidget, type UserProfileWidgetProps, VisuallyHidden, type WelcomeGreeting, WelcomeMessage, type WelcomeMessageProps, accentColors, cartesianSpecializedVariants, countryCodeToFlag, createAccentStyle, defaultMegaMenuFeatured, defaultMegaMenuMenus, defaultMegaMenuSections, defaultTopNavigationBarMenus, defaultTopNavigationMegaMenus, defaultTopNavigationMenus, demoSankeyLinks, fieldInputAriaProps, getWelcomeGreeting, googleFonts, countries as phoneCountries, useAccentPreference, useClipboard, useContextMenu, useFieldShellAria, useFontPreference, useHotkey, useHotkeyManager, useIntersectionObserver, useOpusTheme, usePortalHost, useResizeObserver, useToast, useTopNavigation, worldMapRegionIds };
|
|
2913
|
+
export { type AccentColor, AccentColorPicker, Accordion, AccordionGroup, type AccordionGroupType, Alert, type AlertStatus, ApplicationFooter, type ApplicationFooterAction, type ApplicationFooterProps, ApplicationHeader, type ApplicationHeaderAction, type ApplicationHeaderProfile, type ApplicationHeaderProps, AspectRatio, type AspectRatioProps, Avatar, AvatarGroup, type AvatarGroupItem, type AvatarShape, type AvatarSize, Badge, type BadgeSize, type BadgeTone, type BadgeVariant, BottomNavigation, type BottomNavigationItem, type BottomNavigationProps, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonVariant, Calendar, type CalendarEvent, type CalendarProps, Card, Carousel, CascaderField, type CascaderOption, CatalogIcon, Chart, type ChartDatum, type ChartPalette, type ChartSeries, type ChartVariant, CheckboxField, ChipInput, ChipInputField, type ChipInputPreset, type ChipInputVariant, ChoiceChips, ChoiceChipsField, type ChoiceChipsSelectionMode, type ChoiceChipsVariant, type ChoiceControlSize, type ChoiceOption, type ChoiceShape, Clipboard, ClipboardProvider, Clock, type ClockSize, ColorField, Columns, type ColumnsDirection, type ColumnsProps, CommandPalette, type CommandPaletteItem, ContactCard, type ContactCardProps, type ContactCompany, ContactDetails, type ContactDetailsAction, type ContactDetailsContact, type ContactDetailsProps, ContactIdentityCard, type ContactIdentityCardProps, ContactNotesActivity, type ContactNotesActivityProps, ContactSummaryCard, type ContactSummaryCardProps, type ContactSummaryTab, Container, type ContainerProps, type ContainerSize, ContentTimeline, type ContentTimelineGroup, type ContentTimelineItem, type ContentTimelineStatus, type ContentTimelineTag, ContextMenuProvider, ContextMenuTarget, CopyButton, CountryPickerField, CustomScrollbar, type CustomScrollbarOrientation, type CustomScrollbarProps, type CustomScrollbarShape, DEFAULT_FONT_FAMILY, DEFAULT_NOTE_TAG_OPTIONS, DEFAULT_TOAST_DURATION_MS, DashboardContentContainer, type DashboardContentContainerProps, type DashboardContentContainerWidth, DataGrid, type DataGridColumn, type DataGridLayout, type DataGridPivotConfig, type DataGridRow, type DataGridRowHeaderColumn, DateField, type DateInputType, DealsOverTime, type DealsOverTimePoint, type DealsOverTimeProps, DescriptionList, type DescriptionListItem, type DescriptionListLayout, Dialog, type DialogActionSet, type DialogResult, Divider, type DividerOrientation, type DividerTone, DockLayout, type DockLayoutProps, Drawer, DrawerDefaultActions, type DrawerSide, DropdownMenu, DropdownMenuItem, type DropdownMenuItemData, type DropdownMenuPlacement, DualListBuilder, type DualListBuilderProps, type DualListItem, type ElementSize, EmojiPicker, type EmojiPickerPlacement, type EmojiPickerProps, EmptyState, type EmptyStateIcon, FONT_STORAGE_KEY, type FieldMode, FieldShell, FileField, FilterBuilder, type FilterBuilderProps, type FilterCondition, type FilterOperator, FilterSelectField, type FilterSelectGroup, FloatingActionButton, type FloatingActionButtonPosition, type FloatingActionButtonProps, type FloatingActionButtonSize, FocusTrap, FontPicker, type GalleryImage, Gauge, type GaugeFooterItem, type GaugeTrend, type GaugeVariant, type GoogleFontFamily, Grid, type GridProps, HiddenField, type HotkeyCombo, HotkeyManager, Icon, IconBadge, type IconBadgeProps, type IconBadgeUrgency, IconPicker, type IconSize, type IconTone, ImageCropUploadField, type ImageCropUploadFieldProps, type ImageCropUploadResult, ImageCropUploadWidget, type ImageCropUploadWidgetProps, ImageGallery, ImageThumbnail, type ImageThumbnailSize, type InputControlSize, IntersectionObserver, JsonViewer, KanbanBoard, type KanbanBoardProps, type KanbanCard, type KanbanColumn, KeyboardShortcut, type KeyboardShortcutSize, type LabelPosition, Lightbox, List, type ListItem, Map, type MapCoordinate, type MapMarker, type MapProps, MasonryGrid, type MasonryGridItem, MegaMenu, type MegaMenuConfig, type MegaMenuFeatured, type MegaMenuItem, type MegaMenuSection, MetricTile, Modal, ModalDefaultActions, type ModalSize, type ModelAsset, ModelGallery, ModelLightbox, ModelThumbnail, type ModelThumbnailSize, ModelViewer, MoreActionsMenu, type MoreActionsMenuItem, type MoreActionsMenuProps, MultiSelectField, NavigationRail, type NavigationRailItem, type NavigationRailProps, NoteComposer, type NoteComposerProps, NoteTag, NoteTagList, type NoteTagOption, NoteTagPicker, type NoteTagTone, NotesActivity, type NotesActivityItem, type NotesActivityProps, type NotesActivityTag, type NotesActivityTagTone, NumberField, OpusThemeProvider, PageHeader, type PageHeaderProps, Pagination, type PaginationProps, Panel, type PasswordRequirement, PasswordStrengthField, type PermissionLevel, PermissionsMatrix, type PermissionsMatrixProps, type PhoneCountry, PhoneNumberField, PipelineOverview, type PipelineOverviewProps, type PipelineStage, Popover, type PopoverPlacement, Portal, PortalHost, ProfilePhotoUploadModal, ProgressBar, ProgressRing, PropertyGrid, type PropertyGridItem, PropertyInspector, type PropertyInspectorItem, type PropertyInspectorValue, QueryBuilder, type QueryBuilderProps, type QueryCombinator, type QueryGroup, type QueryOperator, type QueryRule, Radio, RadioGroup, RangeField, RatingField, type RatingVariant, RecentActivity, type RecentActivityItem, type RecentActivityProps, ResizablePanel, type ResizablePanelProps, ResizeHandle, type ResizeHandleBackground, type ResizeHandleHeight, type ResizeHandleOrientation, type ResizeHandleProps, ResizeObserver, ResourcePlanner, type ResourcePlannerItem, type ResourcePlannerProps, type ResourcePlannerResource, RichTextField, RuleBuilder, type RuleBuilderProps, type RuleDefinition, type RuleEffect, Scheduler, type SchedulerEvent, type SchedulerProps, ScrollArea, type ScrollAreaProps, Section, type SectionAlign, type SectionColumns, type SectionGap, type SectionJustify, type SectionLayoutPreset, type SectionSidebar, type SectionSidebarRatio, type SectionSpan, type SectionStackBelow, type SectionTemplate, type SectionWidth, SegmentedControlField, SelectField, ShowMore, type ShowToastOptions, Sidebar, SidebarGroup, SidebarHeader, SidebarLayout, SidebarLink, type SidebarMenuGroupItem, type SidebarMenuItem, type SidebarMenuLinkItem, SidebarNav, type SidebarProps, type SidebarSide, Skeleton, type SkeletonAnimation, type SkeletonVariant, SliderRangeField, Spacer, type SpacerProps, Sparkline, Speedometer, Spinner, type SpinnerSize, type SpinnerTone, SplitButton, type SplitButtonAction, type SplitButtonProps, Splitter, type SplitterOrientation, type SplitterProps, Stack, type StackAlign, type StackDirection, type StackJustify, type StackProps, StatCard, type StatCardTrend, StatTile, type StatTileItem, type StatTileProps, type StatTileTone, type StatTileTrend, type StatTileTrendTone, StatTiles, type StatTilesProps, Statistic, type StatisticTrend, StatusIndicator, type StatusIndicatorState, type SurfaceDensity, type SurfaceTone, SwitchField, type TabItem, Table, type TableColumn, type TableDensity, type TableRow, Tabs, type TabsOrientation, type TabsVariant, TextAreaField, TextField, type Theme, OpusThemeProvider as ThemeProvider, ThemeSwitcher, ThemeToggleField, ThreePaneLayout, type ThreePaneLayoutProps, type ThreePaneLayoutSize, Tile, type TileItem, type TileProps, type TileTone, Tiles, type TilesLayout, type TilesProps, Toast, type ToastHorizontalPosition, ToastProvider, type ToastVerticalPosition, type ToastViewportPosition, Toolbar, type ToolbarProps, Tooltip, TopNavigation, type TopNavigationBarMenu, type TopNavigationDropdownMenu, type TopNavigationMegaMenu, TopNavigationMenu, type TopNavigationMenuConfig, type TopNavigationSelectItem, type TopPerformingUserItem, TopPerformingUsers, type TopPerformingUsersProps, TransferListField, TreeSelectField, type TreeSelectNode, TreeView, type TreeViewNode, TrendBadge, type TrendBadgeDirection, type UpcomingTaskItem, UpcomingTasks, type UpcomingTasksProps, type UserProfileMenuItem, type UserProfilePhotoUploadOptions, UserProfileWidget, type UserProfileWidgetProps, VisuallyHidden, type WelcomeGreeting, WelcomeMessage, type WelcomeMessageProps, accentColors, cartesianSpecializedVariants, countryCodeToFlag, createAccentStyle, defaultContact, defaultContactNotes, defaultMegaMenuFeatured, defaultMegaMenuMenus, defaultMegaMenuSections, defaultTopNavigationBarMenus, defaultTopNavigationMegaMenus, defaultTopNavigationMenus, demoSankeyLinks, fieldInputAriaProps, getPrimaryCompany, getWelcomeGreeting, googleFonts, countries as phoneCountries, resolveContactDetailsContact, useAccentPreference, useClipboard, useContextMenu, useFieldShellAria, useFontPreference, useHotkey, useHotkeyManager, useIntersectionObserver, useOpusTheme, usePortalHost, useResizeObserver, useToast, useTopNavigation, worldMapRegionIds };
|