opus-react 0.2.33 → 0.2.38
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/README.md +1 -1
- package/dist/index.cjs +2998 -1062
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1306 -166
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +203 -27
- package/dist/index.d.ts +203 -27
- package/dist/index.js +3014 -1060
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { ButtonHTMLAttributes, ReactNode, ChangeEventHandler, CSSProperties, RefObject, HTMLAttributes } from 'react';
|
|
2
|
+
import { ButtonHTMLAttributes, ReactNode, ChangeEventHandler, CSSProperties, ComponentPropsWithoutRef, RefObject, HTMLAttributes, MouseEvent } from 'react';
|
|
3
3
|
|
|
4
4
|
type Theme = "light" | "dark";
|
|
5
5
|
type FieldMode = "stacked" | "flagged";
|
|
@@ -344,12 +344,13 @@ type SwitchFieldProps = {
|
|
|
344
344
|
help?: string;
|
|
345
345
|
id: string;
|
|
346
346
|
label: string;
|
|
347
|
+
labelVisuallyHidden?: boolean;
|
|
347
348
|
labelPosition?: LabelPosition;
|
|
348
349
|
mode?: FieldMode;
|
|
349
350
|
size?: InputControlSize;
|
|
350
351
|
onChange: ChangeEventHandler<HTMLInputElement>;
|
|
351
352
|
};
|
|
352
|
-
declare function SwitchField({ checked, error, help, id, label, labelPosition, mode, size, onChange, }: SwitchFieldProps): react.JSX.Element;
|
|
353
|
+
declare function SwitchField({ checked, error, help, id, label, labelVisuallyHidden, labelPosition, mode, size, onChange, }: SwitchFieldProps): react.JSX.Element;
|
|
353
354
|
|
|
354
355
|
type TextAreaFieldProps = {
|
|
355
356
|
error?: string;
|
|
@@ -1430,6 +1431,16 @@ type SplitterProps = {
|
|
|
1430
1431
|
};
|
|
1431
1432
|
declare function Splitter({ children, className, defaultSize, flush, minSize, onSizeChange, orientation, size: controlledSize, style, }: SplitterProps): react.JSX.Element;
|
|
1432
1433
|
|
|
1434
|
+
type ResizeHandleBackground = "accent" | "contrast" | "none" | "subtle";
|
|
1435
|
+
type ResizeHandleHeight = "full" | "medium" | "short" | "tall";
|
|
1436
|
+
type ResizeHandleOrientation = "horizontal" | "vertical";
|
|
1437
|
+
type ResizeHandleProps = Omit<ComponentPropsWithoutRef<"button">, "type"> & {
|
|
1438
|
+
background?: ResizeHandleBackground;
|
|
1439
|
+
height?: ResizeHandleHeight;
|
|
1440
|
+
orientation: ResizeHandleOrientation;
|
|
1441
|
+
};
|
|
1442
|
+
declare function ResizeHandle({ background, className, height, orientation, ...props }: ResizeHandleProps): react.JSX.Element;
|
|
1443
|
+
|
|
1433
1444
|
type ResizablePanelProps = {
|
|
1434
1445
|
children: ReactNode;
|
|
1435
1446
|
className?: string;
|
|
@@ -1458,14 +1469,72 @@ type DockLayoutProps = {
|
|
|
1458
1469
|
};
|
|
1459
1470
|
declare function DockLayout({ bottom, children, className, left, right, style, top, }: DockLayoutProps): react.JSX.Element;
|
|
1460
1471
|
|
|
1472
|
+
type ThreePaneLayoutSize = {
|
|
1473
|
+
leftWidth: number;
|
|
1474
|
+
rightWidth: number;
|
|
1475
|
+
};
|
|
1476
|
+
type ThreePaneLayoutHandleBackground = ResizeHandleBackground;
|
|
1477
|
+
type ThreePaneLayoutHandleHeight = ResizeHandleHeight;
|
|
1478
|
+
type ThreePaneLayoutProps = {
|
|
1479
|
+
children: ReactNode;
|
|
1480
|
+
className?: string;
|
|
1481
|
+
defaultLeftWidth?: number;
|
|
1482
|
+
defaultRightWidth?: number;
|
|
1483
|
+
handleBackground?: ThreePaneLayoutHandleBackground;
|
|
1484
|
+
handleBorderRadius?: number | string;
|
|
1485
|
+
handleHeight?: ThreePaneLayoutHandleHeight;
|
|
1486
|
+
handleMarginBlock?: number | string;
|
|
1487
|
+
left?: ReactNode;
|
|
1488
|
+
leftCollapsed?: boolean;
|
|
1489
|
+
leftCollapsedWidth?: number;
|
|
1490
|
+
leftLabel?: string;
|
|
1491
|
+
maxLeftWidth?: number;
|
|
1492
|
+
maxRightWidth?: number;
|
|
1493
|
+
minLeftWidth?: number;
|
|
1494
|
+
minRightWidth?: number;
|
|
1495
|
+
onLeftCollapsedChange?: (collapsed: boolean) => void;
|
|
1496
|
+
onRightCollapsedChange?: (collapsed: boolean) => void;
|
|
1497
|
+
onSizeChange?: (size: ThreePaneLayoutSize) => void;
|
|
1498
|
+
persist?: boolean;
|
|
1499
|
+
right?: ReactNode;
|
|
1500
|
+
rightCollapsed?: boolean;
|
|
1501
|
+
rightCollapsedWidth?: number;
|
|
1502
|
+
rightLabel?: string;
|
|
1503
|
+
storageKey?: string;
|
|
1504
|
+
style?: CSSProperties;
|
|
1505
|
+
transitionsEnabled?: boolean;
|
|
1506
|
+
};
|
|
1507
|
+
declare function ThreePaneLayout({ children, className, defaultLeftWidth, defaultRightWidth, handleBackground, handleBorderRadius, handleHeight, handleMarginBlock, left, leftCollapsed, leftCollapsedWidth, leftLabel, maxLeftWidth, maxRightWidth, minLeftWidth, minRightWidth, onLeftCollapsedChange, onRightCollapsedChange, onSizeChange, persist, right, rightCollapsed, rightCollapsedWidth, rightLabel, storageKey, style, transitionsEnabled, }: ThreePaneLayoutProps): react.JSX.Element;
|
|
1508
|
+
|
|
1461
1509
|
type ScrollAreaProps = {
|
|
1462
1510
|
children: ReactNode;
|
|
1463
1511
|
className?: string;
|
|
1464
1512
|
maxHeight?: number | string;
|
|
1465
1513
|
orientation?: "vertical" | "horizontal" | "both";
|
|
1466
1514
|
style?: CSSProperties;
|
|
1515
|
+
autoHide?: boolean;
|
|
1516
|
+
thickness?: number;
|
|
1517
|
+
};
|
|
1518
|
+
declare function ScrollArea({ autoHide, children, className, maxHeight, orientation, style, thickness, }: ScrollAreaProps): react.JSX.Element;
|
|
1519
|
+
|
|
1520
|
+
type CustomScrollbarOrientation = "both" | "horizontal" | "vertical";
|
|
1521
|
+
type CustomScrollbarShape = "round" | "square";
|
|
1522
|
+
type CustomScrollbarProps = {
|
|
1523
|
+
autoHide?: boolean;
|
|
1524
|
+
children: ReactNode;
|
|
1525
|
+
className?: string;
|
|
1526
|
+
label?: string;
|
|
1527
|
+
maxHeight?: number | string;
|
|
1528
|
+
minThumbSize?: number;
|
|
1529
|
+
horizontalThumbShape?: CustomScrollbarShape;
|
|
1530
|
+
horizontalTrackShape?: CustomScrollbarShape;
|
|
1531
|
+
orientation?: CustomScrollbarOrientation;
|
|
1532
|
+
style?: CSSProperties;
|
|
1533
|
+
thickness?: number;
|
|
1534
|
+
verticalThumbShape?: CustomScrollbarShape;
|
|
1535
|
+
verticalTrackShape?: CustomScrollbarShape;
|
|
1467
1536
|
};
|
|
1468
|
-
declare function
|
|
1537
|
+
declare function CustomScrollbar({ autoHide, children, className, label, maxHeight, minThumbSize, horizontalThumbShape, horizontalTrackShape, orientation, style, thickness, verticalThumbShape, verticalTrackShape, }: CustomScrollbarProps): react.JSX.Element;
|
|
1469
1538
|
|
|
1470
1539
|
type AspectRatioProps = {
|
|
1471
1540
|
children: ReactNode;
|
|
@@ -1500,11 +1569,12 @@ type BreadcrumbItem = {
|
|
|
1500
1569
|
label: string;
|
|
1501
1570
|
};
|
|
1502
1571
|
type BreadcrumbProps = {
|
|
1572
|
+
ariaLabel?: string;
|
|
1503
1573
|
items: BreadcrumbItem[];
|
|
1504
1574
|
onNavigate?: (id: string) => void;
|
|
1505
1575
|
separator?: ReactNode;
|
|
1506
1576
|
};
|
|
1507
|
-
declare function Breadcrumb({ items, onNavigate, separator }: BreadcrumbProps): react.JSX.Element;
|
|
1577
|
+
declare function Breadcrumb({ ariaLabel, items, onNavigate, separator }: BreadcrumbProps): react.JSX.Element;
|
|
1508
1578
|
|
|
1509
1579
|
type PaginationProps = {
|
|
1510
1580
|
page: number;
|
|
@@ -1727,6 +1797,38 @@ type RecentActivityProps = {
|
|
|
1727
1797
|
};
|
|
1728
1798
|
declare function RecentActivity({ className, footerHref, footerLabel, items, onFooterClick, onItemClick, title, }: RecentActivityProps): react.JSX.Element;
|
|
1729
1799
|
|
|
1800
|
+
type NoteTagTone = "blue" | "cyan" | "green" | "orange" | "pink" | "purple" | "red" | "slate" | "teal" | "yellow";
|
|
1801
|
+
type NoteTagOption = {
|
|
1802
|
+
id?: string;
|
|
1803
|
+
label: string;
|
|
1804
|
+
tone: NoteTagTone;
|
|
1805
|
+
};
|
|
1806
|
+
declare const DEFAULT_NOTE_TAG_OPTIONS: NoteTagOption[];
|
|
1807
|
+
type NoteTagProps = NoteTagOption & {
|
|
1808
|
+
className?: string;
|
|
1809
|
+
onRemove?: (tag: NoteTagOption) => void;
|
|
1810
|
+
removable?: boolean;
|
|
1811
|
+
selected?: boolean;
|
|
1812
|
+
size?: "sm" | "md";
|
|
1813
|
+
};
|
|
1814
|
+
type NoteTagListProps = {
|
|
1815
|
+
className?: string;
|
|
1816
|
+
onRemove?: (tag: NoteTagOption) => void;
|
|
1817
|
+
tags: NoteTagOption[];
|
|
1818
|
+
size?: NoteTagProps["size"];
|
|
1819
|
+
};
|
|
1820
|
+
type NoteTagPickerProps = {
|
|
1821
|
+
buttonClassName?: string;
|
|
1822
|
+
children?: ReactNode;
|
|
1823
|
+
label?: string;
|
|
1824
|
+
onChange: (tags: NoteTagOption[]) => void;
|
|
1825
|
+
options?: NoteTagOption[];
|
|
1826
|
+
selectedTags: NoteTagOption[];
|
|
1827
|
+
};
|
|
1828
|
+
declare function NoteTag({ className, id, label, onRemove, removable, selected, size, tone, }: NoteTagProps): react.JSX.Element;
|
|
1829
|
+
declare function NoteTagList({ className, onRemove, tags, size }: NoteTagListProps): react.JSX.Element | null;
|
|
1830
|
+
declare function NoteTagPicker({ buttonClassName, children, label, onChange, options, selectedTags, }: NoteTagPickerProps): react.JSX.Element;
|
|
1831
|
+
|
|
1730
1832
|
type NoteComposerProps = {
|
|
1731
1833
|
className?: string;
|
|
1732
1834
|
defaultValue?: string;
|
|
@@ -1735,25 +1837,27 @@ type NoteComposerProps = {
|
|
|
1735
1837
|
onChange?: (value: string) => void;
|
|
1736
1838
|
onEmojiSelect?: (emoji: string) => void;
|
|
1737
1839
|
onMentionClick?: () => void;
|
|
1738
|
-
onSave?: (value: string) => void;
|
|
1840
|
+
onSave?: (value: string, tags: NoteTagOption[]) => void;
|
|
1841
|
+
onTagsChange?: (tags: NoteTagOption[]) => void;
|
|
1739
1842
|
placeholder?: string;
|
|
1740
1843
|
saveButtonLabel?: string;
|
|
1741
1844
|
showAttach?: boolean;
|
|
1742
1845
|
showEmoji?: boolean;
|
|
1743
1846
|
showMention?: boolean;
|
|
1847
|
+
showTags?: boolean;
|
|
1848
|
+
selectedTags?: NoteTagOption[];
|
|
1849
|
+
tagOptions?: NoteTagOption[];
|
|
1744
1850
|
value?: string;
|
|
1745
1851
|
};
|
|
1746
|
-
declare function NoteComposer({ className, defaultValue, id, onAttachClick, onChange, onEmojiSelect, onMentionClick, onSave, placeholder, saveButtonLabel, showAttach, showEmoji, showMention, value, }: NoteComposerProps): react.JSX.Element;
|
|
1852
|
+
declare function NoteComposer({ className, defaultValue, id, onAttachClick, onChange, onEmojiSelect, onMentionClick, onSave, onTagsChange, placeholder, saveButtonLabel, showAttach, showEmoji, showMention, showTags, selectedTags, tagOptions, value, }: NoteComposerProps): react.JSX.Element;
|
|
1747
1853
|
|
|
1748
|
-
type NotesActivityTagTone =
|
|
1749
|
-
type NotesActivityTag =
|
|
1750
|
-
label: string;
|
|
1751
|
-
tone: NotesActivityTagTone;
|
|
1752
|
-
};
|
|
1854
|
+
type NotesActivityTagTone = NoteTagTone;
|
|
1855
|
+
type NotesActivityTag = NoteTagOption;
|
|
1753
1856
|
type NotesActivityItem = {
|
|
1754
1857
|
author: string;
|
|
1755
1858
|
avatarSrc?: string;
|
|
1756
1859
|
body: string;
|
|
1860
|
+
comments?: NotesActivityComment[];
|
|
1757
1861
|
dateGroup: string;
|
|
1758
1862
|
id: string;
|
|
1759
1863
|
kind: "activity" | "note";
|
|
@@ -1761,21 +1865,48 @@ type NotesActivityItem = {
|
|
|
1761
1865
|
tags?: NotesActivityTag[];
|
|
1762
1866
|
time: string;
|
|
1763
1867
|
};
|
|
1868
|
+
type NotesActivityComment = {
|
|
1869
|
+
author: string;
|
|
1870
|
+
avatarSrc?: string;
|
|
1871
|
+
body: string;
|
|
1872
|
+
id: string;
|
|
1873
|
+
tags?: NotesActivityTag[];
|
|
1874
|
+
time: string;
|
|
1875
|
+
};
|
|
1764
1876
|
type NotesActivityTab = "activity" | "notes";
|
|
1765
1877
|
type NotesActivityProps = {
|
|
1878
|
+
activeTab?: NotesActivityTab;
|
|
1879
|
+
addNoteButtonLabel?: string;
|
|
1880
|
+
addNoteModalDescription?: string;
|
|
1881
|
+
addNoteModalTitle?: string;
|
|
1766
1882
|
className?: string;
|
|
1767
1883
|
composerPlaceholder?: string;
|
|
1768
1884
|
defaultTab?: NotesActivityTab;
|
|
1769
|
-
|
|
1770
|
-
|
|
1885
|
+
density?: SurfaceDensity;
|
|
1886
|
+
activityFooterHref?: string;
|
|
1887
|
+
activityFooterLabel?: string;
|
|
1771
1888
|
items: NotesActivityItem[];
|
|
1772
|
-
|
|
1889
|
+
notesFooterHref?: string;
|
|
1890
|
+
notesFooterLabel?: string;
|
|
1891
|
+
noteAuthorAvatarSrc?: string;
|
|
1892
|
+
noteAuthorName?: string;
|
|
1893
|
+
noteTagOptions?: NotesActivityTag[];
|
|
1894
|
+
onActivityFooterClick?: () => void;
|
|
1773
1895
|
onItemClick?: (item: NotesActivityItem) => void;
|
|
1774
|
-
|
|
1896
|
+
onNoteAttachClick?: () => void;
|
|
1897
|
+
onNoteEmojiSelect?: (emoji: string) => void;
|
|
1898
|
+
onNoteMentionClick?: () => void;
|
|
1899
|
+
onNotesFooterClick?: () => void;
|
|
1900
|
+
onNoteSave?: (note: string, parentNote?: NotesActivityItem, tags?: NotesActivityTag[]) => void;
|
|
1901
|
+
onOpenTask?: (item: NotesActivityItem) => void;
|
|
1775
1902
|
onTabChange?: (tab: NotesActivityTab) => void;
|
|
1776
1903
|
saveButtonLabel?: string;
|
|
1904
|
+
showAttach?: boolean;
|
|
1905
|
+
showEmoji?: boolean;
|
|
1906
|
+
showMention?: boolean;
|
|
1907
|
+
showTags?: boolean;
|
|
1777
1908
|
};
|
|
1778
|
-
declare function NotesActivity({ className, composerPlaceholder, defaultTab,
|
|
1909
|
+
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, saveButtonLabel, showAttach, showEmoji, showMention, showTags, }: NotesActivityProps): react.JSX.Element;
|
|
1779
1910
|
|
|
1780
1911
|
type TopPerformingUserItem = {
|
|
1781
1912
|
displayValue: string;
|
|
@@ -1859,14 +1990,20 @@ type ImageCropUploadWidgetProps = {
|
|
|
1859
1990
|
declare function ImageCropUploadWidget({ changeButtonLabel, className, cropButtonLabel, id, label, maxZoom, minZoom, onChange, onCrop, outputSize, title, uploadLabel, value, viewportSize, zoomLabel, zoomStep, }: ImageCropUploadWidgetProps): react.JSX.Element;
|
|
1860
1991
|
|
|
1861
1992
|
type DashboardContentContainerWidth = "full" | "widget";
|
|
1993
|
+
type DashboardContentContainerHeight = "auto" | "full";
|
|
1862
1994
|
type DashboardContentContainerProps = {
|
|
1863
1995
|
children: ReactNode;
|
|
1864
1996
|
className?: string;
|
|
1865
1997
|
"data-component"?: string;
|
|
1998
|
+
height?: DashboardContentContainerHeight;
|
|
1999
|
+
paddingBottom?: boolean;
|
|
2000
|
+
paddingLeft?: boolean;
|
|
2001
|
+
paddingRight?: boolean;
|
|
2002
|
+
paddingTop?: boolean;
|
|
1866
2003
|
title?: string;
|
|
1867
2004
|
width?: DashboardContentContainerWidth;
|
|
1868
2005
|
};
|
|
1869
|
-
declare function DashboardContentContainer({ children, className, "data-component": dataComponent, title, width, }: DashboardContentContainerProps): react.JSX.Element;
|
|
2006
|
+
declare function DashboardContentContainer({ children, className, "data-component": dataComponent, height, paddingBottom, paddingLeft, paddingRight, paddingTop, title, width, }: DashboardContentContainerProps): react.JSX.Element;
|
|
1870
2007
|
|
|
1871
2008
|
type PropertyInspectorValue = string | number | boolean | null | undefined | {
|
|
1872
2009
|
options: string[];
|
|
@@ -2032,15 +2169,18 @@ type ResourcePlannerProps = {
|
|
|
2032
2169
|
};
|
|
2033
2170
|
declare function ResourcePlanner({ endHour, items, resources, startHour, }: ResourcePlannerProps): react.JSX.Element;
|
|
2034
2171
|
|
|
2035
|
-
type ContentTimelineTagTone =
|
|
2172
|
+
type ContentTimelineTagTone = NoteTagTone;
|
|
2036
2173
|
type ContentTimelineTag = {
|
|
2037
2174
|
label: string;
|
|
2038
2175
|
tone?: ContentTimelineTagTone;
|
|
2039
2176
|
};
|
|
2040
2177
|
type ContentTimelineItem = {
|
|
2178
|
+
action?: ReactNode;
|
|
2179
|
+
children?: ReactNode;
|
|
2041
2180
|
avatarName?: string;
|
|
2042
2181
|
avatarSrc?: string;
|
|
2043
2182
|
description?: string;
|
|
2183
|
+
footer?: ReactNode;
|
|
2044
2184
|
id?: string;
|
|
2045
2185
|
status?: ContentTimelineStatus;
|
|
2046
2186
|
tags?: ContentTimelineTag[];
|
|
@@ -2055,10 +2195,11 @@ type ContentTimelineProps = {
|
|
|
2055
2195
|
groups?: ContentTimelineGroup[];
|
|
2056
2196
|
items?: ContentTimelineItem[];
|
|
2057
2197
|
onItemClick?: (item: ContentTimelineItem, index: number) => void;
|
|
2198
|
+
onItemDoubleClick?: (item: ContentTimelineItem, index: number) => void;
|
|
2058
2199
|
/** @deprecated Prefer per-item `avatarName` to choose avatar vs status markers. */
|
|
2059
2200
|
variant?: "avatar" | "default";
|
|
2060
2201
|
};
|
|
2061
|
-
declare function ContentTimeline({ groups, items, onItemClick, variant }: ContentTimelineProps): react.JSX.Element;
|
|
2202
|
+
declare function ContentTimeline({ groups, items, onItemClick, onItemDoubleClick, variant }: ContentTimelineProps): react.JSX.Element;
|
|
2062
2203
|
|
|
2063
2204
|
type TreeViewNode = {
|
|
2064
2205
|
children?: TreeViewNode[];
|
|
@@ -2234,15 +2375,45 @@ declare function useIntersectionObserver(targetRef: RefObject<HTMLElement | null
|
|
|
2234
2375
|
threshold?: number | number[];
|
|
2235
2376
|
}): boolean;
|
|
2236
2377
|
|
|
2378
|
+
type SidebarMenuLinkItem = {
|
|
2379
|
+
href?: string;
|
|
2380
|
+
icon?: ReactNode | string;
|
|
2381
|
+
id: string;
|
|
2382
|
+
label: ReactNode;
|
|
2383
|
+
onSelect?: (item: SidebarMenuLinkItem) => void;
|
|
2384
|
+
type?: "item";
|
|
2385
|
+
};
|
|
2386
|
+
type SidebarMenuGroupItem = {
|
|
2387
|
+
children: SidebarMenuItem[];
|
|
2388
|
+
defaultOpen?: boolean;
|
|
2389
|
+
icon?: ReactNode | string;
|
|
2390
|
+
id: string;
|
|
2391
|
+
label: string;
|
|
2392
|
+
type: "group";
|
|
2393
|
+
};
|
|
2394
|
+
type SidebarMenuItem = SidebarMenuGroupItem | SidebarMenuLinkItem;
|
|
2237
2395
|
type SidebarProps = {
|
|
2238
|
-
|
|
2396
|
+
activeItem?: string;
|
|
2397
|
+
children?: ReactNode;
|
|
2239
2398
|
collapsed?: boolean;
|
|
2399
|
+
defaultActiveItem?: string;
|
|
2240
2400
|
density?: SurfaceDensity;
|
|
2241
2401
|
footer?: ReactNode;
|
|
2242
2402
|
header?: ReactNode;
|
|
2403
|
+
menu?: SidebarMenuItem[];
|
|
2404
|
+
navLabel?: string;
|
|
2405
|
+
onCollapsedGroupSelect?: (groupId: string) => void;
|
|
2406
|
+
onSelect?: (item: SidebarMenuLinkItem) => void;
|
|
2407
|
+
paddingBottom?: boolean;
|
|
2408
|
+
paddingLeft?: boolean;
|
|
2409
|
+
paddingRight?: boolean;
|
|
2410
|
+
paddingTop?: boolean;
|
|
2411
|
+
persistState?: boolean;
|
|
2412
|
+
renderIcon?: (icon: string) => ReactNode;
|
|
2243
2413
|
side?: SidebarSide;
|
|
2414
|
+
storageKey?: string;
|
|
2244
2415
|
};
|
|
2245
|
-
declare function Sidebar({ children, collapsed, density, footer, header, side, }: SidebarProps): react.JSX.Element;
|
|
2416
|
+
declare function Sidebar({ activeItem, children, collapsed, defaultActiveItem, density, footer, header, menu, navLabel, onCollapsedGroupSelect, onSelect, paddingBottom, paddingLeft, paddingRight, paddingTop, persistState, renderIcon, side, storageKey, }: SidebarProps): react.JSX.Element;
|
|
2246
2417
|
type SidebarHeaderProps = {
|
|
2247
2418
|
children?: ReactNode;
|
|
2248
2419
|
title: string;
|
|
@@ -2252,28 +2423,33 @@ type SidebarNavProps = {
|
|
|
2252
2423
|
"aria-label": string;
|
|
2253
2424
|
children: ReactNode;
|
|
2254
2425
|
};
|
|
2255
|
-
declare function SidebarNav({ "aria-label": ariaLabel, children }: SidebarNavProps): react.JSX.Element;
|
|
2426
|
+
declare function SidebarNav({ "aria-label": ariaLabel, children, }: SidebarNavProps): react.JSX.Element;
|
|
2256
2427
|
type SidebarLinkProps = {
|
|
2257
2428
|
active?: boolean;
|
|
2258
2429
|
children: ReactNode;
|
|
2259
2430
|
href?: string;
|
|
2260
|
-
|
|
2431
|
+
icon?: ReactNode;
|
|
2432
|
+
itemId?: string;
|
|
2433
|
+
onClick?: (event: MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void;
|
|
2434
|
+
onSelect?: (item: SidebarMenuLinkItem) => void;
|
|
2261
2435
|
};
|
|
2262
|
-
declare function SidebarLink({ active, children, href, onClick }: SidebarLinkProps): react.JSX.Element;
|
|
2436
|
+
declare function SidebarLink({ active, children, href, icon, itemId, onClick, onSelect, }: SidebarLinkProps): react.JSX.Element;
|
|
2263
2437
|
type SidebarGroupProps = {
|
|
2264
2438
|
children: ReactNode;
|
|
2265
2439
|
defaultOpen?: boolean;
|
|
2440
|
+
depth?: number;
|
|
2441
|
+
icon?: ReactNode;
|
|
2266
2442
|
id?: string;
|
|
2267
2443
|
label: string;
|
|
2268
2444
|
};
|
|
2269
|
-
declare function SidebarGroup({ children, defaultOpen, id, label }: SidebarGroupProps): react.JSX.Element;
|
|
2445
|
+
declare function SidebarGroup({ children, defaultOpen, depth, icon, id, label, }: SidebarGroupProps): react.JSX.Element;
|
|
2270
2446
|
type SidebarLayoutProps = {
|
|
2271
2447
|
children: ReactNode;
|
|
2272
2448
|
collapsed?: boolean;
|
|
2273
2449
|
main: ReactNode;
|
|
2274
2450
|
side?: SidebarSide;
|
|
2275
2451
|
};
|
|
2276
|
-
declare function SidebarLayout({ children, collapsed, main, side }: SidebarLayoutProps): react.JSX.Element;
|
|
2452
|
+
declare function SidebarLayout({ children, collapsed, main, side, }: SidebarLayoutProps): react.JSX.Element;
|
|
2277
2453
|
|
|
2278
2454
|
type MegaMenuItem = {
|
|
2279
2455
|
description?: string;
|
|
@@ -2470,4 +2646,4 @@ type SankeyLinkDef = {
|
|
|
2470
2646
|
};
|
|
2471
2647
|
declare const demoSankeyLinks: SankeyLinkDef[];
|
|
2472
2648
|
|
|
2473
|
-
export { type AccentColor, AccentColorPicker, Accordion, AccordionGroup, type AccordionGroupType, Alert, type AlertStatus, 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, 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, type FieldMode, FieldShell, FileField, FilterBuilder, type FilterBuilderProps, type FilterCondition, type FilterOperator, FilterSelectField, type FilterSelectGroup, FloatingActionButton, type FloatingActionButtonPosition, type FloatingActionButtonProps, type FloatingActionButtonSize, FocusTrap, type GalleryImage, Gauge, type GaugeFooterItem, type GaugeTrend, type GaugeVariant, 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, NotesActivity, type NotesActivityItem, type NotesActivityProps, 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, 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, SidebarNav, 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, 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, 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, accentColors, cartesianSpecializedVariants, countryCodeToFlag, createAccentStyle, defaultMegaMenuFeatured, defaultMegaMenuMenus, defaultMegaMenuSections, defaultTopNavigationBarMenus, defaultTopNavigationMegaMenus, defaultTopNavigationMenus, demoSankeyLinks, fieldInputAriaProps, countries as phoneCountries, useAccentPreference, useClipboard, useContextMenu, useFieldShellAria, useHotkey, useHotkeyManager, useIntersectionObserver, useOpusTheme, usePortalHost, useResizeObserver, useToast, useTopNavigation, worldMapRegionIds };
|
|
2649
|
+
export { type AccentColor, AccentColorPicker, Accordion, AccordionGroup, type AccordionGroupType, Alert, type AlertStatus, 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_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, type FieldMode, FieldShell, FileField, FilterBuilder, type FilterBuilderProps, type FilterCondition, type FilterOperator, FilterSelectField, type FilterSelectGroup, FloatingActionButton, type FloatingActionButtonPosition, type FloatingActionButtonProps, type FloatingActionButtonSize, FocusTrap, type GalleryImage, Gauge, type GaugeFooterItem, type GaugeTrend, type GaugeVariant, 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, 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, accentColors, cartesianSpecializedVariants, countryCodeToFlag, createAccentStyle, defaultMegaMenuFeatured, defaultMegaMenuMenus, defaultMegaMenuSections, defaultTopNavigationBarMenus, defaultTopNavigationMegaMenus, defaultTopNavigationMenus, demoSankeyLinks, fieldInputAriaProps, countries as phoneCountries, useAccentPreference, useClipboard, useContextMenu, useFieldShellAria, useHotkey, useHotkeyManager, useIntersectionObserver, useOpusTheme, usePortalHost, useResizeObserver, useToast, useTopNavigation, worldMapRegionIds };
|