@jacshuo/onyx 2.0.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +358 -361
- package/dist/Chart/BarChart.cjs +1 -1
- package/dist/Chart/BarChart.js +1 -1
- package/dist/Chart/LineChart.cjs +1 -1
- package/dist/Chart/LineChart.js +1 -1
- package/dist/Chart/PieChart.cjs +1 -1
- package/dist/Chart/PieChart.js +1 -1
- package/dist/Chart/ScatterChart.cjs +1 -1
- package/dist/Chart/ScatterChart.js +1 -1
- package/dist/Chart/index.cjs +1 -1
- package/dist/Chart/index.js +1 -1
- package/dist/DataDisplay/CodeBlock.cjs +2 -2
- package/dist/DataDisplay/CodeBlock.js +2 -2
- package/dist/DataDisplay/List.cjs +1 -1
- package/dist/DataDisplay/List.js +1 -1
- package/dist/DataDisplay/MetricCard.cjs +1 -0
- package/dist/DataDisplay/MetricCard.d.cts +3 -0
- package/dist/DataDisplay/MetricCard.d.ts +3 -0
- package/dist/DataDisplay/MetricCard.js +1 -0
- package/dist/DataDisplay/Stat.cjs +1 -0
- package/dist/DataDisplay/Stat.d.cts +3 -0
- package/dist/DataDisplay/Stat.d.ts +3 -0
- package/dist/DataDisplay/Stat.js +1 -0
- package/dist/DataDisplay/Table.cjs +1 -1
- package/dist/DataDisplay/Table.js +1 -1
- package/dist/DataDisplay/Tree.cjs +1 -1
- package/dist/DataDisplay/Tree.js +1 -1
- package/dist/DataDisplay/index.cjs +2 -2
- package/dist/DataDisplay/index.d.cts +6 -0
- package/dist/DataDisplay/index.d.ts +6 -0
- package/dist/DataDisplay/index.js +2 -2
- package/dist/Extras/CommandPalette.cjs +1 -0
- package/dist/Extras/CommandPalette.css +1 -0
- package/dist/Extras/CommandPalette.d.cts +4 -0
- package/dist/Extras/CommandPalette.d.ts +4 -0
- package/dist/Extras/CommandPalette.js +1 -0
- package/dist/Extras/DateTimePicker.cjs +1 -0
- package/dist/Extras/DateTimePicker.css +1 -0
- package/dist/Extras/DateTimePicker.d.cts +5 -0
- package/dist/Extras/DateTimePicker.d.ts +5 -0
- package/dist/Extras/DateTimePicker.js +1 -0
- package/dist/Extras/FileExplorer.cjs +2 -2
- package/dist/Extras/FileExplorer.js +2 -2
- package/dist/Extras/Timeline.cjs +1 -0
- package/dist/Extras/Timeline.css +1 -0
- package/dist/Extras/Timeline.d.cts +6 -0
- package/dist/Extras/Timeline.d.ts +6 -0
- package/dist/Extras/Timeline.js +1 -0
- package/dist/Extras/index.cjs +4 -4
- package/dist/Extras/index.css +1 -1
- package/dist/Extras/index.d.cts +14 -0
- package/dist/Extras/index.d.ts +14 -0
- package/dist/Extras/index.js +4 -4
- package/dist/Feedback/Alert.cjs +1 -1
- package/dist/Feedback/Alert.js +1 -1
- package/dist/Feedback/ProgressBar.cjs +1 -1
- package/dist/Feedback/ProgressBar.js +1 -1
- package/dist/Feedback/Skeleton.cjs +1 -0
- package/dist/Feedback/Skeleton.d.cts +2 -0
- package/dist/Feedback/Skeleton.d.ts +2 -0
- package/dist/Feedback/Skeleton.js +1 -0
- package/dist/Feedback/Spin.cjs +2 -2
- package/dist/Feedback/Spin.js +2 -2
- package/dist/Feedback/Toast.cjs +1 -0
- package/dist/Feedback/Toast.d.cts +11 -0
- package/dist/Feedback/Toast.d.ts +11 -0
- package/dist/Feedback/Toast.js +1 -0
- package/dist/Feedback/index.cjs +2 -2
- package/dist/Feedback/index.d.cts +11 -0
- package/dist/Feedback/index.d.ts +11 -0
- package/dist/Feedback/index.js +2 -2
- package/dist/Forms/Select.cjs +1 -0
- package/dist/Forms/Select.css +1 -0
- package/dist/Forms/Select.d.cts +3 -0
- package/dist/Forms/Select.d.ts +3 -0
- package/dist/Forms/Select.js +1 -0
- package/dist/Navigation/Breadcrumb.cjs +1 -0
- package/dist/Navigation/Breadcrumb.d.cts +3 -0
- package/dist/Navigation/Breadcrumb.d.ts +3 -0
- package/dist/Navigation/Breadcrumb.js +1 -0
- package/dist/Navigation/Header.cjs +1 -1
- package/dist/Navigation/Header.js +1 -1
- package/dist/Navigation/Pagination.cjs +1 -0
- package/dist/Navigation/Pagination.d.cts +2 -0
- package/dist/Navigation/Pagination.d.ts +2 -0
- package/dist/Navigation/Pagination.js +1 -0
- package/dist/Navigation/RibbonBar.cjs +1 -0
- package/dist/Navigation/RibbonBar.d.cts +6 -0
- package/dist/Navigation/RibbonBar.d.ts +6 -0
- package/dist/Navigation/RibbonBar.js +1 -0
- package/dist/Navigation/SideNav.cjs +1 -1
- package/dist/Navigation/SideNav.js +1 -1
- package/dist/Navigation/index.cjs +2 -2
- package/dist/Navigation/index.d.cts +8 -0
- package/dist/Navigation/index.d.ts +8 -0
- package/dist/Navigation/index.js +2 -2
- package/dist/Overlay/ContextMenu.cjs +1 -0
- package/dist/Overlay/ContextMenu.d.cts +3 -0
- package/dist/Overlay/ContextMenu.d.ts +3 -0
- package/dist/Overlay/ContextMenu.js +1 -0
- package/dist/Overlay/Drawer.cjs +1 -0
- package/dist/Overlay/Drawer.css +1 -0
- package/dist/Overlay/Drawer.d.cts +10 -0
- package/dist/Overlay/Drawer.d.ts +10 -0
- package/dist/Overlay/Drawer.js +1 -0
- package/dist/Overlay/index.cjs +1 -1
- package/dist/Overlay/index.css +1 -0
- package/dist/Overlay/index.d.cts +8 -0
- package/dist/Overlay/index.d.ts +8 -0
- package/dist/Overlay/index.js +1 -1
- package/dist/Primitives/Avatar.cjs +1 -0
- package/dist/Primitives/Avatar.d.cts +4 -0
- package/dist/Primitives/Avatar.d.ts +4 -0
- package/dist/Primitives/Avatar.js +1 -0
- package/dist/Primitives/Badge.cjs +1 -1
- package/dist/Primitives/Badge.js +1 -1
- package/dist/Primitives/Button.cjs +1 -1
- package/dist/Primitives/Button.js +1 -1
- package/dist/Primitives/Checkbox.cjs +1 -1
- package/dist/Primitives/Checkbox.js +1 -1
- package/dist/Primitives/Dropdown.cjs +1 -1
- package/dist/Primitives/Dropdown.js +1 -1
- package/dist/Primitives/DropdownButton.cjs +1 -1
- package/dist/Primitives/DropdownButton.js +1 -1
- package/dist/Primitives/Indicator.cjs +1 -1
- package/dist/Primitives/Indicator.js +1 -1
- package/dist/Primitives/Input.cjs +1 -1
- package/dist/Primitives/Input.js +1 -1
- package/dist/Primitives/Label.cjs +1 -1
- package/dist/Primitives/Label.js +1 -1
- package/dist/Primitives/Radio.cjs +1 -1
- package/dist/Primitives/Radio.js +1 -1
- package/dist/Primitives/Slider.cjs +1 -0
- package/dist/Primitives/Slider.css +1 -0
- package/dist/Primitives/Slider.d.cts +4 -0
- package/dist/Primitives/Slider.d.ts +4 -0
- package/dist/Primitives/Slider.js +1 -0
- package/dist/Primitives/Switch.cjs +1 -1
- package/dist/Primitives/Switch.js +1 -1
- package/dist/Primitives/Tag.cjs +1 -0
- package/dist/Primitives/Tag.d.cts +2 -0
- package/dist/Primitives/Tag.d.ts +2 -0
- package/dist/Primitives/Tag.js +1 -0
- package/dist/Primitives/index.cjs +1 -1
- package/dist/Primitives/index.css +1 -0
- package/dist/Primitives/index.d.cts +6 -0
- package/dist/Primitives/index.d.ts +6 -0
- package/dist/Primitives/index.js +1 -1
- package/dist/_tsup-dts-rollup.d.cts +1130 -3
- package/dist/_tsup-dts-rollup.d.ts +1130 -3
- package/dist/index.cjs +5 -5
- package/dist/index.css +1 -1
- package/dist/index.d.cts +74 -0
- package/dist/index.d.ts +74 -0
- package/dist/index.js +5 -5
- package/dist/styles/DataDisplay/MetricCard.css +1 -0
- package/dist/styles/DataDisplay/Stat.css +1 -0
- package/dist/styles/Extras/CommandPalette.css +65 -0
- package/dist/styles/Extras/DateTimePicker.css +566 -0
- package/dist/styles/Extras/Timeline.css +52 -0
- package/dist/styles/Feedback/Skeleton.css +37 -0
- package/dist/styles/Feedback/Toast.css +77 -0
- package/dist/styles/Forms/Select.css +36 -0
- package/dist/styles/Navigation/RibbonBar.css +1 -0
- package/dist/styles/Overlay/ContextMenu.css +1 -0
- package/dist/styles/Overlay/Drawer.css +52 -0
- package/dist/styles/Primitives/Slider.css +4 -0
- package/dist/styles/Primitives/Tag.css +1 -0
- package/dist/styles/base.css +1059 -20
- package/dist/styles.css +1726 -18
- package/dist/theme.cjs +1 -1
- package/dist/theme.d.cts +7 -0
- package/dist/theme.d.ts +7 -0
- package/dist/theme.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { ClassProp } from 'class-variance-authority/types';
|
|
2
2
|
import { ClassValue } from 'clsx';
|
|
3
|
+
import { Dispatch } from 'react';
|
|
3
4
|
import { JSX } from 'react/jsx-runtime';
|
|
4
5
|
import { default as React_2 } from 'react';
|
|
6
|
+
import { RefObject } from 'react';
|
|
7
|
+
import { SetStateAction } from 'react';
|
|
5
8
|
import { VariantProps } from 'class-variance-authority';
|
|
6
9
|
|
|
7
10
|
declare function Accordion({ type, defaultValue, value, onValueChange, intent, size, className, children, ...props }: AccordionProps): JSX.Element;
|
|
@@ -120,6 +123,54 @@ export { alertVariants }
|
|
|
120
123
|
export { alertVariants as alertVariants_alias_1 }
|
|
121
124
|
export { alertVariants as alertVariants_alias_2 }
|
|
122
125
|
|
|
126
|
+
export declare function applyOffset(base: Date, amount: number, unit: OffsetUnit, direction: OffsetDirection): Date;
|
|
127
|
+
|
|
128
|
+
declare function Avatar({ src, alt, initials, size, shape, status, className, ...props }: AvatarProps): JSX.Element;
|
|
129
|
+
export { Avatar }
|
|
130
|
+
export { Avatar as Avatar_alias_1 }
|
|
131
|
+
export { Avatar as Avatar_alias_2 }
|
|
132
|
+
export { Avatar as Avatar_alias_3 }
|
|
133
|
+
|
|
134
|
+
declare function AvatarGroup({ children, max, overlap, className }: AvatarGroupProps): JSX.Element;
|
|
135
|
+
export { AvatarGroup }
|
|
136
|
+
export { AvatarGroup as AvatarGroup_alias_1 }
|
|
137
|
+
export { AvatarGroup as AvatarGroup_alias_2 }
|
|
138
|
+
export { AvatarGroup as AvatarGroup_alias_3 }
|
|
139
|
+
|
|
140
|
+
declare type AvatarGroupProps = {
|
|
141
|
+
children: React_2.ReactNode;
|
|
142
|
+
/** How many avatars to show before collapsing to "+N". @default 4 */
|
|
143
|
+
max?: number;
|
|
144
|
+
/** Gap direction: avatars overlap on the left side. @default "left" */
|
|
145
|
+
overlap?: "left" | "right";
|
|
146
|
+
className?: string;
|
|
147
|
+
};
|
|
148
|
+
export { AvatarGroupProps }
|
|
149
|
+
export { AvatarGroupProps as AvatarGroupProps_alias_1 }
|
|
150
|
+
export { AvatarGroupProps as AvatarGroupProps_alias_2 }
|
|
151
|
+
|
|
152
|
+
declare type AvatarProps = React_2.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof avatarVariants> & {
|
|
153
|
+
/** Image URL. Falls back to initials (or icon placeholder) if not provided or fails to load. */
|
|
154
|
+
src?: string;
|
|
155
|
+
/** Alt text for the image. Doubles as the source for auto-generated initials. */
|
|
156
|
+
alt?: string;
|
|
157
|
+
/** Override the auto-derived initials (max 2 chars). */
|
|
158
|
+
initials?: string;
|
|
159
|
+
/** Show a coloured status ring around the avatar. */
|
|
160
|
+
status?: "online" | "offline" | "busy" | "away";
|
|
161
|
+
};
|
|
162
|
+
export { AvatarProps }
|
|
163
|
+
export { AvatarProps as AvatarProps_alias_1 }
|
|
164
|
+
export { AvatarProps as AvatarProps_alias_2 }
|
|
165
|
+
|
|
166
|
+
declare const avatarVariants: (props?: ({
|
|
167
|
+
size?: "sm" | "md" | "lg" | "xs" | "xl" | null | undefined;
|
|
168
|
+
shape?: "circular" | "rounded" | "square" | null | undefined;
|
|
169
|
+
} & ClassProp) | undefined) => string;
|
|
170
|
+
export { avatarVariants }
|
|
171
|
+
export { avatarVariants as avatarVariants_alias_1 }
|
|
172
|
+
export { avatarVariants as avatarVariants_alias_2 }
|
|
173
|
+
|
|
123
174
|
declare interface AxisConfig {
|
|
124
175
|
label?: string;
|
|
125
176
|
min?: number;
|
|
@@ -201,6 +252,39 @@ export { BaseChartProps }
|
|
|
201
252
|
export { BaseChartProps as BaseChartProps_alias_1 }
|
|
202
253
|
export { BaseChartProps as BaseChartProps_alias_2 }
|
|
203
254
|
|
|
255
|
+
declare function Breadcrumb({ items, separator, homeIcon, LinkComponent, className, }: BreadcrumbProps): JSX.Element;
|
|
256
|
+
export { Breadcrumb }
|
|
257
|
+
export { Breadcrumb as Breadcrumb_alias_1 }
|
|
258
|
+
export { Breadcrumb as Breadcrumb_alias_2 }
|
|
259
|
+
export { Breadcrumb as Breadcrumb_alias_3 }
|
|
260
|
+
|
|
261
|
+
declare type BreadcrumbItem = {
|
|
262
|
+
label: string;
|
|
263
|
+
href?: string;
|
|
264
|
+
/** Render a custom icon before the label. */
|
|
265
|
+
icon?: React_2.ReactNode;
|
|
266
|
+
};
|
|
267
|
+
export { BreadcrumbItem }
|
|
268
|
+
export { BreadcrumbItem as BreadcrumbItem_alias_1 }
|
|
269
|
+
export { BreadcrumbItem as BreadcrumbItem_alias_2 }
|
|
270
|
+
|
|
271
|
+
declare type BreadcrumbProps = {
|
|
272
|
+
items: BreadcrumbItem[];
|
|
273
|
+
/** Custom separator element. Defaults to ChevronRight icon. */
|
|
274
|
+
separator?: React_2.ReactNode;
|
|
275
|
+
/**
|
|
276
|
+
* Optional icon (or `true` to use the default Home icon) shown as the first item.
|
|
277
|
+
* @default false
|
|
278
|
+
*/
|
|
279
|
+
homeIcon?: React_2.ReactNode | boolean;
|
|
280
|
+
/** Component to render anchor elements. Defaults to standard `<a>`. */
|
|
281
|
+
LinkComponent?: React_2.ComponentType<React_2.AnchorHTMLAttributes<HTMLAnchorElement>>;
|
|
282
|
+
className?: string;
|
|
283
|
+
};
|
|
284
|
+
export { BreadcrumbProps }
|
|
285
|
+
export { BreadcrumbProps as BreadcrumbProps_alias_1 }
|
|
286
|
+
export { BreadcrumbProps as BreadcrumbProps_alias_2 }
|
|
287
|
+
|
|
204
288
|
/** Builds an area fill SVG path that closes down to the given baseline y. */
|
|
205
289
|
export declare function buildAreaPath(data: ChartDataPoint[], xScale: (v: number | string) => number, yScale: (v: number) => number, smooth: boolean, baseline: number): string;
|
|
206
290
|
|
|
@@ -249,6 +333,11 @@ export { buttonVariants }
|
|
|
249
333
|
export { buttonVariants as buttonVariants_alias_1 }
|
|
250
334
|
export { buttonVariants as buttonVariants_alias_2 }
|
|
251
335
|
|
|
336
|
+
export declare interface CalendarDay {
|
|
337
|
+
date: Date;
|
|
338
|
+
thisMonth: boolean;
|
|
339
|
+
}
|
|
340
|
+
|
|
252
341
|
declare function Card({ intent, size, className, ...props }: CardProps): JSX.Element;
|
|
253
342
|
export { Card }
|
|
254
343
|
export { Card as Card_alias_1 }
|
|
@@ -481,6 +570,8 @@ export { CinePlayerSortKey }
|
|
|
481
570
|
export { CinePlayerSortKey as CinePlayerSortKey_alias_1 }
|
|
482
571
|
export { CinePlayerSortKey as CinePlayerSortKey_alias_2 }
|
|
483
572
|
|
|
573
|
+
export declare function clampDate(date: Date, min?: Date, max?: Date): Date;
|
|
574
|
+
|
|
484
575
|
/** Computes a padded [min, max] range from raw data extents. */
|
|
485
576
|
export declare function clampRange(min: number, max: number, padding?: number): [number, number];
|
|
486
577
|
|
|
@@ -553,6 +644,72 @@ export { ColumnDef }
|
|
|
553
644
|
export { ColumnDef as ColumnDef_alias_1 }
|
|
554
645
|
export { ColumnDef as ColumnDef_alias_2 }
|
|
555
646
|
|
|
647
|
+
declare type CommandGroup = {
|
|
648
|
+
label: string;
|
|
649
|
+
items: CommandItem[];
|
|
650
|
+
};
|
|
651
|
+
export { CommandGroup }
|
|
652
|
+
export { CommandGroup as CommandGroup_alias_1 }
|
|
653
|
+
export { CommandGroup as CommandGroup_alias_2 }
|
|
654
|
+
export { CommandGroup as CommandGroup_alias_3 }
|
|
655
|
+
|
|
656
|
+
declare type CommandItem = {
|
|
657
|
+
/** Unique ID for this command */
|
|
658
|
+
id: string;
|
|
659
|
+
/** Primary display label */
|
|
660
|
+
label: string;
|
|
661
|
+
/** Optional sub-label / description shown below the label */
|
|
662
|
+
description?: string;
|
|
663
|
+
/** Optional icon element */
|
|
664
|
+
icon?: React_2.ReactNode;
|
|
665
|
+
/** Keyboard shortcut badge displayed on the right, e.g. ["⌘", "K"] */
|
|
666
|
+
shortcut?: string[];
|
|
667
|
+
/** Group heading this item belongs to (ungrouped if omitted) */
|
|
668
|
+
group?: string;
|
|
669
|
+
/** Extra search terms that don't appear in the UI */
|
|
670
|
+
keywords?: string[];
|
|
671
|
+
/** Disabled items appear dimmed and are not selectable */
|
|
672
|
+
disabled?: boolean;
|
|
673
|
+
/** Called when the user selects this command */
|
|
674
|
+
onSelect: () => void;
|
|
675
|
+
};
|
|
676
|
+
export { CommandItem }
|
|
677
|
+
export { CommandItem as CommandItem_alias_1 }
|
|
678
|
+
export { CommandItem as CommandItem_alias_2 }
|
|
679
|
+
export { CommandItem as CommandItem_alias_3 }
|
|
680
|
+
|
|
681
|
+
declare function CommandPalette({ open, onOpenChange, commands, placeholder, hotkey, maxItems, className, }: CommandPaletteProps): React_2.ReactPortal | null;
|
|
682
|
+
export { CommandPalette }
|
|
683
|
+
export { CommandPalette as CommandPalette_alias_1 }
|
|
684
|
+
export { CommandPalette as CommandPalette_alias_2 }
|
|
685
|
+
export { CommandPalette as CommandPalette_alias_3 }
|
|
686
|
+
|
|
687
|
+
declare type CommandPaletteProps = {
|
|
688
|
+
/** Controlled open state */
|
|
689
|
+
open: boolean;
|
|
690
|
+
onOpenChange: (open: boolean) => void;
|
|
691
|
+
/** Full list of available commands */
|
|
692
|
+
commands: CommandItem[];
|
|
693
|
+
/** Placeholder text inside the search input */
|
|
694
|
+
placeholder?: string;
|
|
695
|
+
/**
|
|
696
|
+
* Register a global Ctrl/Cmd+K hotkey to toggle the palette.
|
|
697
|
+
* @default true
|
|
698
|
+
*/
|
|
699
|
+
hotkey?: boolean;
|
|
700
|
+
/**
|
|
701
|
+
* Maximum number of result rows visible before the list scrolls.
|
|
702
|
+
* @default 8
|
|
703
|
+
*/
|
|
704
|
+
maxItems?: number;
|
|
705
|
+
/** Extra class applied to the dialog panel */
|
|
706
|
+
className?: string;
|
|
707
|
+
};
|
|
708
|
+
export { CommandPaletteProps }
|
|
709
|
+
export { CommandPaletteProps as CommandPaletteProps_alias_1 }
|
|
710
|
+
export { CommandPaletteProps as CommandPaletteProps_alias_2 }
|
|
711
|
+
export { CommandPaletteProps as CommandPaletteProps_alias_3 }
|
|
712
|
+
|
|
556
713
|
/** Computes [min, max] domain for grouped bar charts (always min=0 for bars). */
|
|
557
714
|
export declare function computeBarYDomain(series: ChartSeries[], visibleIds: Set<string>, grouped: boolean, axisConfig?: AxisConfig): [number, number];
|
|
558
715
|
|
|
@@ -613,6 +770,55 @@ export { configureAlertTopOffset }
|
|
|
613
770
|
export { configureAlertTopOffset as configureAlertTopOffset_alias_1 }
|
|
614
771
|
export { configureAlertTopOffset as configureAlertTopOffset_alias_2 }
|
|
615
772
|
|
|
773
|
+
declare function ContextMenu({ items, children, disabled, onOpenChange, className, }: ContextMenuProps): JSX.Element;
|
|
774
|
+
export { ContextMenu }
|
|
775
|
+
export { ContextMenu as ContextMenu_alias_1 }
|
|
776
|
+
export { ContextMenu as ContextMenu_alias_2 }
|
|
777
|
+
export { ContextMenu as ContextMenu_alias_3 }
|
|
778
|
+
|
|
779
|
+
declare interface ContextMenuItem {
|
|
780
|
+
/** Unique key */
|
|
781
|
+
key: string;
|
|
782
|
+
/** Display label */
|
|
783
|
+
label: React_2.ReactNode;
|
|
784
|
+
/** Icon element */
|
|
785
|
+
icon?: React_2.ReactNode;
|
|
786
|
+
/** Disables item */
|
|
787
|
+
disabled?: boolean;
|
|
788
|
+
/** Marks as separator — renders a divider instead of item */
|
|
789
|
+
separator?: boolean;
|
|
790
|
+
/** Keyboard shortcut displayed on the right */
|
|
791
|
+
shortcut?: string;
|
|
792
|
+
/** Destructive — renders in danger color */
|
|
793
|
+
danger?: boolean;
|
|
794
|
+
/** Sub-menu items */
|
|
795
|
+
children?: ContextMenuItem[];
|
|
796
|
+
/** Click handler */
|
|
797
|
+
onClick?: (e: React_2.MouseEvent) => void;
|
|
798
|
+
}
|
|
799
|
+
export { ContextMenuItem }
|
|
800
|
+
export { ContextMenuItem as ContextMenuItem_alias_1 }
|
|
801
|
+
export { ContextMenuItem as ContextMenuItem_alias_2 }
|
|
802
|
+
export { ContextMenuItem as ContextMenuItem_alias_3 }
|
|
803
|
+
export { ContextMenuItem as ContextMenuItem_alias_4 }
|
|
804
|
+
|
|
805
|
+
declare interface ContextMenuProps {
|
|
806
|
+
/** Menu structure */
|
|
807
|
+
items: ContextMenuItem[];
|
|
808
|
+
/** The trigger element(s) that activate the context menu */
|
|
809
|
+
children: React_2.ReactNode;
|
|
810
|
+
/** Whether the context menu is disabled */
|
|
811
|
+
disabled?: boolean;
|
|
812
|
+
/** Called when menu opens or closes */
|
|
813
|
+
onOpenChange?: (open: boolean) => void;
|
|
814
|
+
className?: string;
|
|
815
|
+
}
|
|
816
|
+
export { ContextMenuProps }
|
|
817
|
+
export { ContextMenuProps as ContextMenuProps_alias_1 }
|
|
818
|
+
export { ContextMenuProps as ContextMenuProps_alias_2 }
|
|
819
|
+
export { ContextMenuProps as ContextMenuProps_alias_3 }
|
|
820
|
+
export { ContextMenuProps as ContextMenuProps_alias_4 }
|
|
821
|
+
|
|
616
822
|
/** Creates a categorical band scale (returns center-of-band x). */
|
|
617
823
|
export declare function createCategoryScale(categories: string[], range: [number, number]): (cat: string) => number;
|
|
618
824
|
|
|
@@ -631,6 +837,8 @@ declare const DataDisplay: {
|
|
|
631
837
|
Tree: typeof Tree;
|
|
632
838
|
Chat: typeof Chat;
|
|
633
839
|
CodeBlock: typeof CodeBlock;
|
|
840
|
+
Stat: typeof Stat;
|
|
841
|
+
MetricCard: typeof MetricCard;
|
|
634
842
|
};
|
|
635
843
|
export { DataDisplay }
|
|
636
844
|
export { DataDisplay as DataDisplay_alias_1 }
|
|
@@ -679,12 +887,70 @@ export { DataTableProps }
|
|
|
679
887
|
export { DataTableProps as DataTableProps_alias_1 }
|
|
680
888
|
export { DataTableProps as DataTableProps_alias_2 }
|
|
681
889
|
|
|
890
|
+
declare type DateTimeMode = "date" | "time" | "datetime";
|
|
891
|
+
export { DateTimeMode }
|
|
892
|
+
export { DateTimeMode as DateTimeMode_alias_1 }
|
|
893
|
+
export { DateTimeMode as DateTimeMode_alias_2 }
|
|
894
|
+
export { DateTimeMode as DateTimeMode_alias_3 }
|
|
895
|
+
|
|
896
|
+
declare function DateTimePicker({ className, popupClassName, triggerClassName, disabled, placeholder, ...restProps }: DateTimePickerProps): JSX.Element;
|
|
897
|
+
export { DateTimePicker }
|
|
898
|
+
export { DateTimePicker as DateTimePicker_alias_1 }
|
|
899
|
+
export { DateTimePicker as DateTimePicker_alias_2 }
|
|
900
|
+
export { DateTimePicker as DateTimePicker_alias_3 }
|
|
901
|
+
|
|
902
|
+
declare interface DateTimePickerProps {
|
|
903
|
+
/** Controlled selected date/time value. */
|
|
904
|
+
value?: Date | null;
|
|
905
|
+
/** Uncontrolled initial value. */
|
|
906
|
+
defaultValue?: Date | null;
|
|
907
|
+
/** Called when the user confirms a new selection. */
|
|
908
|
+
onChange?: (date: Date | null) => void;
|
|
909
|
+
/** Picker mode: date only, time only, or full datetime. Default "datetime". */
|
|
910
|
+
mode?: DateTimeMode;
|
|
911
|
+
/** Minimum selectable date (inclusive). */
|
|
912
|
+
minDate?: Date;
|
|
913
|
+
/** Maximum selectable date (inclusive). */
|
|
914
|
+
maxDate?: Date;
|
|
915
|
+
/** Disable the trigger and prevent all interaction. */
|
|
916
|
+
disabled?: boolean;
|
|
917
|
+
/** Placeholder text in the trigger when no value is selected. */
|
|
918
|
+
placeholder?: string;
|
|
919
|
+
/**
|
|
920
|
+
* Display-format string.
|
|
921
|
+
* Tokens: YYYY YY MMMM MMM MM M DD D HH H hh h mm ss A a
|
|
922
|
+
* @example "YYYY-MM-DD HH:mm:ss"
|
|
923
|
+
*/
|
|
924
|
+
format?: string;
|
|
925
|
+
/** Use 24-hour clock. false → 12-hour with AM/PM column. Default true. */
|
|
926
|
+
use24Hour?: boolean;
|
|
927
|
+
/** Show seconds column when mode includes time. Default true. */
|
|
928
|
+
showSeconds?: boolean;
|
|
929
|
+
/** BCP-47 locale tag for month/weekday names. Default "en-US". */
|
|
930
|
+
locale?: string;
|
|
931
|
+
/** Extra class applied to the root wrapper element. */
|
|
932
|
+
className?: string;
|
|
933
|
+
/** Extra class applied to the frosted-glass popup panel. */
|
|
934
|
+
popupClassName?: string;
|
|
935
|
+
/** Extra class applied to the trigger button. */
|
|
936
|
+
triggerClassName?: string;
|
|
937
|
+
/** Called when the picker popup opens. */
|
|
938
|
+
onOpen?: () => void;
|
|
939
|
+
/** Called when the picker popup closes (cancel OR confirm). */
|
|
940
|
+
onClose?: () => void;
|
|
941
|
+
}
|
|
942
|
+
export { DateTimePickerProps }
|
|
943
|
+
export { DateTimePickerProps as DateTimePickerProps_alias_1 }
|
|
944
|
+
export { DateTimePickerProps as DateTimePickerProps_alias_2 }
|
|
945
|
+
export { DateTimePickerProps as DateTimePickerProps_alias_3 }
|
|
946
|
+
|
|
682
947
|
export declare const default_alias: {
|
|
683
948
|
Primitives: {
|
|
684
949
|
Button: Button;
|
|
685
950
|
Dropdown: Dropdown;
|
|
686
951
|
DropdownButton: DropdownButton;
|
|
687
952
|
Badge: Badge;
|
|
953
|
+
Tag: Tag;
|
|
688
954
|
Indicator: Indicator;
|
|
689
955
|
Label: Label;
|
|
690
956
|
Input: Input;
|
|
@@ -693,6 +959,10 @@ export declare const default_alias: {
|
|
|
693
959
|
Checkbox: Checkbox;
|
|
694
960
|
Radio: Radio;
|
|
695
961
|
RadioGroup: RadioGroup;
|
|
962
|
+
Avatar: Avatar;
|
|
963
|
+
AvatarGroup: AvatarGroup;
|
|
964
|
+
Slider: Slider;
|
|
965
|
+
SliderRange: SliderRange;
|
|
696
966
|
};
|
|
697
967
|
Layout: {
|
|
698
968
|
Card: Card;
|
|
@@ -705,11 +975,16 @@ export declare const default_alias: {
|
|
|
705
975
|
Tree: Tree;
|
|
706
976
|
Chat: Chat;
|
|
707
977
|
CodeBlock: CodeBlock;
|
|
978
|
+
Stat: Stat;
|
|
979
|
+
MetricCard: MetricCard;
|
|
708
980
|
};
|
|
709
981
|
Navigation: {
|
|
710
982
|
SideNav: SideNav;
|
|
711
983
|
Header: Header;
|
|
712
984
|
NavLink: NavLink;
|
|
985
|
+
Breadcrumb: Breadcrumb;
|
|
986
|
+
Pagination: Pagination;
|
|
987
|
+
RibbonBar: RibbonBar;
|
|
713
988
|
};
|
|
714
989
|
Disclosure: {
|
|
715
990
|
Accordion: Accordion;
|
|
@@ -718,11 +993,16 @@ export declare const default_alias: {
|
|
|
718
993
|
Overlay: {
|
|
719
994
|
Dialog: Dialog;
|
|
720
995
|
Tooltip: Tooltip;
|
|
996
|
+
Drawer: Drawer;
|
|
997
|
+
ContextMenu: ContextMenu;
|
|
721
998
|
};
|
|
722
999
|
Feedback: {
|
|
723
1000
|
Alert: Alert;
|
|
724
1001
|
ProgressBar: ProgressBar;
|
|
725
1002
|
Spin: Spin;
|
|
1003
|
+
Skeleton: Skeleton;
|
|
1004
|
+
ToastProvider: ToastProvider;
|
|
1005
|
+
useToast: useToast;
|
|
726
1006
|
};
|
|
727
1007
|
Extras: {
|
|
728
1008
|
FilmReel: FilmReel;
|
|
@@ -731,6 +1011,9 @@ export declare const default_alias: {
|
|
|
731
1011
|
FileExplorer: FileExplorer;
|
|
732
1012
|
Masonry: Masonry;
|
|
733
1013
|
TypewriterText: TypewriterText;
|
|
1014
|
+
CommandPalette: CommandPalette;
|
|
1015
|
+
Timeline: Timeline;
|
|
1016
|
+
DateTimePicker: DateTimePicker;
|
|
734
1017
|
};
|
|
735
1018
|
Forms: {
|
|
736
1019
|
Form: Form;
|
|
@@ -743,10 +1026,54 @@ export declare const default_alias: {
|
|
|
743
1026
|
};
|
|
744
1027
|
};
|
|
745
1028
|
|
|
1029
|
+
export declare function default_alias_100(): JSX.Element;
|
|
1030
|
+
|
|
1031
|
+
export declare function default_alias_101(): JSX.Element;
|
|
1032
|
+
|
|
1033
|
+
export declare function default_alias_102(): JSX.Element;
|
|
1034
|
+
|
|
1035
|
+
export declare function default_alias_103(): JSX.Element;
|
|
1036
|
+
|
|
1037
|
+
export declare function default_alias_104(): JSX.Element;
|
|
1038
|
+
|
|
1039
|
+
export declare function default_alias_105(): JSX.Element;
|
|
1040
|
+
|
|
1041
|
+
export declare function default_alias_106(): JSX.Element;
|
|
1042
|
+
|
|
1043
|
+
export declare function default_alias_107(): JSX.Element;
|
|
1044
|
+
|
|
1045
|
+
export declare function default_alias_108(): JSX.Element;
|
|
1046
|
+
|
|
1047
|
+
export declare function default_alias_109(): JSX.Element;
|
|
1048
|
+
|
|
746
1049
|
export declare function default_alias_11(): JSX.Element;
|
|
747
1050
|
|
|
1051
|
+
export declare function default_alias_110(): JSX.Element;
|
|
1052
|
+
|
|
1053
|
+
export declare function default_alias_111(): JSX.Element;
|
|
1054
|
+
|
|
1055
|
+
export declare function default_alias_112(): JSX.Element;
|
|
1056
|
+
|
|
1057
|
+
export declare function default_alias_113(): JSX.Element;
|
|
1058
|
+
|
|
1059
|
+
export declare function default_alias_114(): JSX.Element;
|
|
1060
|
+
|
|
1061
|
+
export declare function default_alias_115(): JSX.Element;
|
|
1062
|
+
|
|
1063
|
+
export declare function default_alias_116(): JSX.Element;
|
|
1064
|
+
|
|
1065
|
+
export declare function default_alias_117(): JSX.Element;
|
|
1066
|
+
|
|
1067
|
+
export declare function default_alias_118(): JSX.Element;
|
|
1068
|
+
|
|
1069
|
+
export declare function default_alias_119(): JSX.Element;
|
|
1070
|
+
|
|
748
1071
|
export declare function default_alias_12(): JSX.Element;
|
|
749
1072
|
|
|
1073
|
+
export declare function default_alias_120(): JSX.Element;
|
|
1074
|
+
|
|
1075
|
+
export declare function default_alias_121(): JSX.Element;
|
|
1076
|
+
|
|
750
1077
|
export declare function default_alias_13(): JSX.Element;
|
|
751
1078
|
|
|
752
1079
|
export declare function default_alias_14(): JSX.Element;
|
|
@@ -903,6 +1230,24 @@ export declare function default_alias_89(): JSX.Element;
|
|
|
903
1230
|
|
|
904
1231
|
export declare function default_alias_90(): JSX.Element;
|
|
905
1232
|
|
|
1233
|
+
export declare function default_alias_91(): JSX.Element;
|
|
1234
|
+
|
|
1235
|
+
export declare function default_alias_92(): JSX.Element;
|
|
1236
|
+
|
|
1237
|
+
export declare function default_alias_93(): JSX.Element;
|
|
1238
|
+
|
|
1239
|
+
export declare function default_alias_94(): JSX.Element;
|
|
1240
|
+
|
|
1241
|
+
export declare function default_alias_95(): JSX.Element;
|
|
1242
|
+
|
|
1243
|
+
export declare function default_alias_96(): JSX.Element;
|
|
1244
|
+
|
|
1245
|
+
export declare function default_alias_97(): JSX.Element;
|
|
1246
|
+
|
|
1247
|
+
export declare function default_alias_98(): JSX.Element;
|
|
1248
|
+
|
|
1249
|
+
export declare function default_alias_99(): JSX.Element;
|
|
1250
|
+
|
|
906
1251
|
/** Builds an SVG arc path string from startAngle to endAngle (degrees). */
|
|
907
1252
|
export declare function describeArc(cx: number, cy: number, r: number, startAngle: number, endAngle: number): string;
|
|
908
1253
|
|
|
@@ -974,6 +1319,86 @@ export { Disclosure }
|
|
|
974
1319
|
export { Disclosure as Disclosure_alias_1 }
|
|
975
1320
|
export { Disclosure as default_alias_3 }
|
|
976
1321
|
|
|
1322
|
+
declare function Drawer({ open, onOpenChange, side, size, backdrop, closeOnBackdropClick, children, className, }: DrawerProps): React_2.ReactPortal | null;
|
|
1323
|
+
export { Drawer }
|
|
1324
|
+
export { Drawer as Drawer_alias_1 }
|
|
1325
|
+
export { Drawer as Drawer_alias_2 }
|
|
1326
|
+
export { Drawer as Drawer_alias_3 }
|
|
1327
|
+
|
|
1328
|
+
declare function DrawerBody({ children, className }: DrawerBodyProps): JSX.Element;
|
|
1329
|
+
export { DrawerBody }
|
|
1330
|
+
export { DrawerBody as DrawerBody_alias_1 }
|
|
1331
|
+
export { DrawerBody as DrawerBody_alias_2 }
|
|
1332
|
+
export { DrawerBody as DrawerBody_alias_3 }
|
|
1333
|
+
|
|
1334
|
+
declare type DrawerBodyProps = {
|
|
1335
|
+
children: React_2.ReactNode;
|
|
1336
|
+
className?: string;
|
|
1337
|
+
};
|
|
1338
|
+
export { DrawerBodyProps }
|
|
1339
|
+
export { DrawerBodyProps as DrawerBodyProps_alias_1 }
|
|
1340
|
+
export { DrawerBodyProps as DrawerBodyProps_alias_2 }
|
|
1341
|
+
|
|
1342
|
+
declare function DrawerClose({ onClose, className }: {
|
|
1343
|
+
onClose: () => void;
|
|
1344
|
+
className?: string;
|
|
1345
|
+
}): JSX.Element;
|
|
1346
|
+
export { DrawerClose }
|
|
1347
|
+
export { DrawerClose as DrawerClose_alias_1 }
|
|
1348
|
+
export { DrawerClose as DrawerClose_alias_2 }
|
|
1349
|
+
export { DrawerClose as DrawerClose_alias_3 }
|
|
1350
|
+
|
|
1351
|
+
declare function DrawerFooter({ children, className }: DrawerFooterProps): JSX.Element;
|
|
1352
|
+
export { DrawerFooter }
|
|
1353
|
+
export { DrawerFooter as DrawerFooter_alias_1 }
|
|
1354
|
+
export { DrawerFooter as DrawerFooter_alias_2 }
|
|
1355
|
+
export { DrawerFooter as DrawerFooter_alias_3 }
|
|
1356
|
+
|
|
1357
|
+
declare type DrawerFooterProps = {
|
|
1358
|
+
children: React_2.ReactNode;
|
|
1359
|
+
className?: string;
|
|
1360
|
+
};
|
|
1361
|
+
export { DrawerFooterProps }
|
|
1362
|
+
export { DrawerFooterProps as DrawerFooterProps_alias_1 }
|
|
1363
|
+
export { DrawerFooterProps as DrawerFooterProps_alias_2 }
|
|
1364
|
+
|
|
1365
|
+
declare function DrawerHeader({ children, className }: DrawerHeaderProps): JSX.Element;
|
|
1366
|
+
export { DrawerHeader }
|
|
1367
|
+
export { DrawerHeader as DrawerHeader_alias_1 }
|
|
1368
|
+
export { DrawerHeader as DrawerHeader_alias_2 }
|
|
1369
|
+
export { DrawerHeader as DrawerHeader_alias_3 }
|
|
1370
|
+
|
|
1371
|
+
declare type DrawerHeaderProps = {
|
|
1372
|
+
children: React_2.ReactNode;
|
|
1373
|
+
className?: string;
|
|
1374
|
+
};
|
|
1375
|
+
export { DrawerHeaderProps }
|
|
1376
|
+
export { DrawerHeaderProps as DrawerHeaderProps_alias_1 }
|
|
1377
|
+
export { DrawerHeaderProps as DrawerHeaderProps_alias_2 }
|
|
1378
|
+
|
|
1379
|
+
declare type DrawerProps = {
|
|
1380
|
+
open: boolean;
|
|
1381
|
+
onOpenChange: (open: boolean) => void;
|
|
1382
|
+
/** Side from which the drawer slides in. @default "right" */
|
|
1383
|
+
side?: DrawerSide;
|
|
1384
|
+
/** Width (left/right) or height (top/bottom) of the drawer panel. */
|
|
1385
|
+
size?: string;
|
|
1386
|
+
/** Show a backdrop overlay. @default true */
|
|
1387
|
+
backdrop?: boolean;
|
|
1388
|
+
/** Close on backdrop click. @default true */
|
|
1389
|
+
closeOnBackdropClick?: boolean;
|
|
1390
|
+
children: React_2.ReactNode;
|
|
1391
|
+
className?: string;
|
|
1392
|
+
};
|
|
1393
|
+
export { DrawerProps }
|
|
1394
|
+
export { DrawerProps as DrawerProps_alias_1 }
|
|
1395
|
+
export { DrawerProps as DrawerProps_alias_2 }
|
|
1396
|
+
|
|
1397
|
+
declare type DrawerSide = "left" | "right" | "top" | "bottom";
|
|
1398
|
+
export { DrawerSide }
|
|
1399
|
+
export { DrawerSide as DrawerSide_alias_1 }
|
|
1400
|
+
export { DrawerSide as DrawerSide_alias_2 }
|
|
1401
|
+
|
|
977
1402
|
declare function Dropdown(props: DropdownProps): JSX.Element;
|
|
978
1403
|
export { Dropdown }
|
|
979
1404
|
export { Dropdown as Dropdown_alias_1 }
|
|
@@ -999,6 +1424,27 @@ declare interface DropdownBaseProps {
|
|
|
999
1424
|
size?: "sm" | "md" | "lg";
|
|
1000
1425
|
/** Enable domino flip-in/flip-out animation for menu items. @default true */
|
|
1001
1426
|
animated?: boolean;
|
|
1427
|
+
/** HTML name attribute — renders hidden input(s) for native form submission. */
|
|
1428
|
+
name?: string;
|
|
1429
|
+
/** Validation intent. "danger" shows a red error border. @default "default" */
|
|
1430
|
+
intent?: "default" | "danger";
|
|
1431
|
+
/** Show a ✕ button to clear the current selection. @default false */
|
|
1432
|
+
clearable?: boolean;
|
|
1433
|
+
/**
|
|
1434
|
+
* HTML id forwarded to the trigger element.
|
|
1435
|
+
* Injected automatically by FormItem for label + aria wiring.
|
|
1436
|
+
*/
|
|
1437
|
+
id?: string;
|
|
1438
|
+
/**
|
|
1439
|
+
* Forwarded to the trigger element for aria-describedby wiring.
|
|
1440
|
+
* Set automatically by FormItem to link hint/validation messages.
|
|
1441
|
+
*/
|
|
1442
|
+
"aria-describedby"?: string;
|
|
1443
|
+
/**
|
|
1444
|
+
* Marks the trigger as invalid — applies the error border style.
|
|
1445
|
+
* Injected automatically by FormItem when a validation error is present.
|
|
1446
|
+
*/
|
|
1447
|
+
"aria-invalid"?: boolean;
|
|
1002
1448
|
}
|
|
1003
1449
|
|
|
1004
1450
|
declare function DropdownButton({ label, items, intent, size, align, className, disabled, editable, onAddItem, multiple, selected, onSelectionChange, animated, chevron, ...props }: DropdownButtonProps): JSX.Element;
|
|
@@ -1060,8 +1506,13 @@ declare interface DropdownMultipleProps extends DropdownBaseProps {
|
|
|
1060
1506
|
value?: never;
|
|
1061
1507
|
/** Not used in multi mode. */
|
|
1062
1508
|
defaultValue?: never;
|
|
1063
|
-
/**
|
|
1064
|
-
|
|
1509
|
+
/**
|
|
1510
|
+
* Form-integration callback (multi mode). Called with the new selected
|
|
1511
|
+
* string array on every toggle and on clear. Used by FormItem's onChange
|
|
1512
|
+
* wrapping to trigger per-field validation — do not use for primary
|
|
1513
|
+
* selection handling; prefer `onSelectionChange` for that.
|
|
1514
|
+
*/
|
|
1515
|
+
onChange?: (value: string[]) => void;
|
|
1065
1516
|
}
|
|
1066
1517
|
export { DropdownMultipleProps }
|
|
1067
1518
|
export { DropdownMultipleProps as DropdownMultipleProps_alias_1 }
|
|
@@ -1115,6 +1566,9 @@ declare const Extras: {
|
|
|
1115
1566
|
FileExplorer: typeof FileExplorer;
|
|
1116
1567
|
Masonry: typeof Masonry;
|
|
1117
1568
|
TypewriterText: typeof TypewriterText;
|
|
1569
|
+
CommandPalette: typeof CommandPalette;
|
|
1570
|
+
Timeline: typeof Timeline;
|
|
1571
|
+
DateTimePicker: typeof DateTimePicker;
|
|
1118
1572
|
};
|
|
1119
1573
|
export { Extras }
|
|
1120
1574
|
export { Extras as Extras_alias_1 }
|
|
@@ -1124,6 +1578,9 @@ declare const Feedback: {
|
|
|
1124
1578
|
Alert: typeof Alert;
|
|
1125
1579
|
ProgressBar: typeof ProgressBar;
|
|
1126
1580
|
Spin: typeof Spin;
|
|
1581
|
+
Skeleton: typeof Skeleton;
|
|
1582
|
+
ToastProvider: typeof ToastProvider;
|
|
1583
|
+
useToast: typeof useToast;
|
|
1127
1584
|
};
|
|
1128
1585
|
export { Feedback }
|
|
1129
1586
|
export { Feedback as Feedback_alias_1 }
|
|
@@ -1320,6 +1777,8 @@ export { Form as Form_alias_3 }
|
|
|
1320
1777
|
/** Formats an axis value using an optional custom formatter. */
|
|
1321
1778
|
export declare function formatAxisValue(v: number | string, formatter?: (v: number | string) => string): string;
|
|
1322
1779
|
|
|
1780
|
+
export declare function formatDate(date: Date, format: string, locale?: string): string;
|
|
1781
|
+
|
|
1323
1782
|
declare function FormItem({ label, layout: itemLayout, required, hint, validation, name, onValidate, className, children, }: FormItemProps): JSX.Element;
|
|
1324
1783
|
export { FormItem }
|
|
1325
1784
|
export { FormItem as FormItem_alias_1 }
|
|
@@ -1462,12 +1921,24 @@ declare const formVariants: (props?: ({
|
|
|
1462
1921
|
export { formVariants }
|
|
1463
1922
|
export { formVariants as formVariants_alias_1 }
|
|
1464
1923
|
|
|
1924
|
+
export declare function getCalendarDays(year: number, month: number): CalendarDay[];
|
|
1925
|
+
|
|
1926
|
+
export declare function getDaysInMonth(year: number, month: number): number;
|
|
1927
|
+
|
|
1928
|
+
export declare function getDefaultFormat(mode: DateTimeMode, use24Hour?: boolean, showSeconds?: boolean): string;
|
|
1929
|
+
|
|
1465
1930
|
/** Returns an array of CSS custom property references for chart series colors. */
|
|
1466
1931
|
export declare function getDefaultPalette(count: number): string[];
|
|
1467
1932
|
|
|
1933
|
+
export declare function getMonthNames(locale?: string, format?: "long" | "short"): string[];
|
|
1934
|
+
|
|
1935
|
+
export declare function getWeekdayNames(locale?: string, format?: "long" | "narrow" | "short"): string[];
|
|
1936
|
+
|
|
1468
1937
|
/** Gets the y value for a series at a given category key. */
|
|
1469
1938
|
export declare function getYAtCategory(series: ChartSeries, category: string): number | undefined;
|
|
1470
1939
|
|
|
1940
|
+
export declare function getYearRange(center: number, span?: number): number[];
|
|
1941
|
+
|
|
1471
1942
|
declare function Header({ brand, onBrandClick, navItems, actions, linkComponent: Link, height, mobileMenu, navMenuIcon, actionsMenuIcon, className, children, }: HeaderProps): JSX.Element;
|
|
1472
1943
|
export { Header }
|
|
1473
1944
|
export { Header as Header_alias_1 }
|
|
@@ -1679,9 +2150,19 @@ export { inputVariants }
|
|
|
1679
2150
|
export { inputVariants as inputVariants_alias_1 }
|
|
1680
2151
|
export { inputVariants as inputVariants_alias_2 }
|
|
1681
2152
|
|
|
2153
|
+
export declare function isAfterDay(a: Date, b: Date): boolean;
|
|
2154
|
+
|
|
2155
|
+
export declare function isBeforeDay(a: Date, b: Date): boolean;
|
|
2156
|
+
|
|
2157
|
+
export declare function isSameDay(a: Date, b: Date): boolean;
|
|
2158
|
+
|
|
1682
2159
|
/** Returns true if any data point in the series has a string x value. */
|
|
1683
2160
|
export declare function isSeriesCategorical(series: ChartSeries[]): boolean;
|
|
1684
2161
|
|
|
2162
|
+
export declare function isToday(date: Date): boolean;
|
|
2163
|
+
|
|
2164
|
+
export declare const ITEM_H = 40;
|
|
2165
|
+
|
|
1685
2166
|
declare function Label({ intent, size, className, ...props }: LabelProps): JSX.Element;
|
|
1686
2167
|
export { Label }
|
|
1687
2168
|
export { Label as Label_alias_1 }
|
|
@@ -1830,6 +2311,52 @@ export { MasonryProps }
|
|
|
1830
2311
|
export { MasonryProps as MasonryProps_alias_1 }
|
|
1831
2312
|
export { MasonryProps as MasonryProps_alias_2 }
|
|
1832
2313
|
|
|
2314
|
+
declare function MetricCard({ title, value, decimals, prefix, suffix, icon, trend, trendValue, description, animateDuration, formatter, from, intent, size, className, }: MetricCardProps): JSX.Element;
|
|
2315
|
+
export { MetricCard }
|
|
2316
|
+
export { MetricCard as MetricCard_alias_1 }
|
|
2317
|
+
export { MetricCard as MetricCard_alias_2 }
|
|
2318
|
+
export { MetricCard as MetricCard_alias_3 }
|
|
2319
|
+
|
|
2320
|
+
declare interface MetricCardProps extends VariantProps<typeof metricCardVariants> {
|
|
2321
|
+
title: string;
|
|
2322
|
+
/** Numeric value to animate to */
|
|
2323
|
+
value: number;
|
|
2324
|
+
/** Number of decimal places */
|
|
2325
|
+
decimals?: number;
|
|
2326
|
+
prefix?: React_2.ReactNode;
|
|
2327
|
+
suffix?: React_2.ReactNode;
|
|
2328
|
+
icon?: React_2.ReactNode;
|
|
2329
|
+
trend?: MetricCardTrend;
|
|
2330
|
+
trendValue?: string;
|
|
2331
|
+
/** Secondary info line */
|
|
2332
|
+
description?: string;
|
|
2333
|
+
/** Duration of counter animation in ms */
|
|
2334
|
+
animateDuration?: number;
|
|
2335
|
+
/** Custom formatter for displayed value */
|
|
2336
|
+
formatter?: (v: number) => string;
|
|
2337
|
+
/** Starting value for animation */
|
|
2338
|
+
from?: number;
|
|
2339
|
+
className?: string;
|
|
2340
|
+
}
|
|
2341
|
+
export { MetricCardProps }
|
|
2342
|
+
export { MetricCardProps as MetricCardProps_alias_1 }
|
|
2343
|
+
export { MetricCardProps as MetricCardProps_alias_2 }
|
|
2344
|
+
export { MetricCardProps as MetricCardProps_alias_3 }
|
|
2345
|
+
|
|
2346
|
+
declare type MetricCardTrend = "up" | "down" | "neutral";
|
|
2347
|
+
export { MetricCardTrend }
|
|
2348
|
+
export { MetricCardTrend as MetricCardTrend_alias_1 }
|
|
2349
|
+
export { MetricCardTrend as MetricCardTrend_alias_2 }
|
|
2350
|
+
export { MetricCardTrend as MetricCardTrend_alias_3 }
|
|
2351
|
+
|
|
2352
|
+
declare const metricCardVariants: (props?: ({
|
|
2353
|
+
intent?: "primary" | "danger" | "warning" | "success" | null | undefined;
|
|
2354
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
2355
|
+
} & ClassProp) | undefined) => string;
|
|
2356
|
+
export { metricCardVariants }
|
|
2357
|
+
export { metricCardVariants as metricCardVariants_alias_1 }
|
|
2358
|
+
export { metricCardVariants as metricCardVariants_alias_2 }
|
|
2359
|
+
|
|
1833
2360
|
declare function MiniPlayer({ playlist, initialTrack, position, entrance: entranceProp, theme, docked: dockedProp, visible: visibleProp, onVisibleChange, onTrackChange, onLike, autoPlay, shuffle: shuffleProp, loop: loopProp, accent, className, }: MiniPlayerProps): JSX.Element;
|
|
1834
2361
|
export { MiniPlayer }
|
|
1835
2362
|
export { MiniPlayer as MiniPlayer_alias_1 }
|
|
@@ -1904,6 +2431,9 @@ declare const Navigation: {
|
|
|
1904
2431
|
SideNav: typeof SideNav;
|
|
1905
2432
|
Header: typeof Header;
|
|
1906
2433
|
NavLink: typeof NavLink;
|
|
2434
|
+
Breadcrumb: typeof Breadcrumb;
|
|
2435
|
+
Pagination: typeof Pagination;
|
|
2436
|
+
RibbonBar: typeof RibbonBar;
|
|
1907
2437
|
};
|
|
1908
2438
|
export { Navigation }
|
|
1909
2439
|
export { Navigation as Navigation_alias_1 }
|
|
@@ -1929,9 +2459,23 @@ export { navLinkVariants }
|
|
|
1929
2459
|
export { navLinkVariants as navLinkVariants_alias_1 }
|
|
1930
2460
|
export { navLinkVariants as navLinkVariants_alias_2 }
|
|
1931
2461
|
|
|
2462
|
+
declare type OffsetDirection = "future" | "past";
|
|
2463
|
+
export { OffsetDirection }
|
|
2464
|
+
export { OffsetDirection as OffsetDirection_alias_1 }
|
|
2465
|
+
export { OffsetDirection as OffsetDirection_alias_2 }
|
|
2466
|
+
export { OffsetDirection as OffsetDirection_alias_3 }
|
|
2467
|
+
|
|
2468
|
+
declare type OffsetUnit = "day" | "week" | "month" | "year";
|
|
2469
|
+
export { OffsetUnit }
|
|
2470
|
+
export { OffsetUnit as OffsetUnit_alias_1 }
|
|
2471
|
+
export { OffsetUnit as OffsetUnit_alias_2 }
|
|
2472
|
+
export { OffsetUnit as OffsetUnit_alias_3 }
|
|
2473
|
+
|
|
1932
2474
|
declare const Overlay: {
|
|
1933
2475
|
Dialog: typeof Dialog;
|
|
1934
2476
|
Tooltip: typeof Tooltip;
|
|
2477
|
+
Drawer: typeof Drawer;
|
|
2478
|
+
ContextMenu: typeof ContextMenu;
|
|
1935
2479
|
};
|
|
1936
2480
|
export { Overlay }
|
|
1937
2481
|
export { Overlay as Overlay_alias_1 }
|
|
@@ -1941,6 +2485,35 @@ export declare function PageTitle({ children }: {
|
|
|
1941
2485
|
children: React_2.ReactNode;
|
|
1942
2486
|
}): JSX.Element;
|
|
1943
2487
|
|
|
2488
|
+
declare function Pagination({ totalPages, currentPage, onPageChange, siblingCount, showFirstLast, showPageCount, size, className, }: PaginationProps): JSX.Element | null;
|
|
2489
|
+
export { Pagination }
|
|
2490
|
+
export { Pagination as Pagination_alias_1 }
|
|
2491
|
+
export { Pagination as Pagination_alias_2 }
|
|
2492
|
+
export { Pagination as Pagination_alias_3 }
|
|
2493
|
+
|
|
2494
|
+
declare type PaginationProps = {
|
|
2495
|
+
/** Total number of pages. */
|
|
2496
|
+
totalPages: number;
|
|
2497
|
+
/** Current active page (1-based). */
|
|
2498
|
+
currentPage: number;
|
|
2499
|
+
/** Called when the user requests a page change. */
|
|
2500
|
+
onPageChange: (page: number) => void;
|
|
2501
|
+
/**
|
|
2502
|
+
* Number of page buttons shown around the current page.
|
|
2503
|
+
* @default 2
|
|
2504
|
+
*/
|
|
2505
|
+
siblingCount?: number;
|
|
2506
|
+
/** Show First / Last jump buttons. @default true */
|
|
2507
|
+
showFirstLast?: boolean;
|
|
2508
|
+
/** Show the total page count label. @default false */
|
|
2509
|
+
showPageCount?: boolean;
|
|
2510
|
+
size?: "sm" | "md" | "lg";
|
|
2511
|
+
className?: string;
|
|
2512
|
+
};
|
|
2513
|
+
export { PaginationProps }
|
|
2514
|
+
export { PaginationProps as PaginationProps_alias_1 }
|
|
2515
|
+
export { PaginationProps as PaginationProps_alias_2 }
|
|
2516
|
+
|
|
1944
2517
|
declare function Panel({ intent, size, className, ...props }: PanelProps): JSX.Element;
|
|
1945
2518
|
export { Panel }
|
|
1946
2519
|
export { Panel as Panel_alias_1 }
|
|
@@ -2019,6 +2592,7 @@ declare const Primitives: {
|
|
|
2019
2592
|
Dropdown: typeof Dropdown;
|
|
2020
2593
|
DropdownButton: typeof DropdownButton;
|
|
2021
2594
|
Badge: typeof Badge;
|
|
2595
|
+
Tag: typeof Tag;
|
|
2022
2596
|
Indicator: typeof Indicator;
|
|
2023
2597
|
Label: typeof Label;
|
|
2024
2598
|
Input: typeof Input;
|
|
@@ -2027,6 +2601,10 @@ declare const Primitives: {
|
|
|
2027
2601
|
Checkbox: typeof Checkbox;
|
|
2028
2602
|
Radio: typeof Radio;
|
|
2029
2603
|
RadioGroup: typeof RadioGroup;
|
|
2604
|
+
Avatar: typeof Avatar;
|
|
2605
|
+
AvatarGroup: typeof AvatarGroup;
|
|
2606
|
+
Slider: typeof Slider;
|
|
2607
|
+
SliderRange: typeof SliderRange;
|
|
2030
2608
|
};
|
|
2031
2609
|
export { Primitives }
|
|
2032
2610
|
export { Primitives as Primitives_alias_1 }
|
|
@@ -2132,6 +2710,91 @@ export { radioVariants as radioVariants_alias_2 }
|
|
|
2132
2710
|
|
|
2133
2711
|
declare function removeAlert(id: string): void;
|
|
2134
2712
|
|
|
2713
|
+
declare function RibbonBar({ tabs, defaultTab, activeTab: controlledTab, onTabChange, mode: controlledMode, onModeChange, sticky, className, }: RibbonBarProps): JSX.Element;
|
|
2714
|
+
export { RibbonBar }
|
|
2715
|
+
export { RibbonBar as RibbonBar_alias_1 }
|
|
2716
|
+
export { RibbonBar as RibbonBar_alias_2 }
|
|
2717
|
+
export { RibbonBar as RibbonBar_alias_3 }
|
|
2718
|
+
|
|
2719
|
+
declare interface RibbonBarProps {
|
|
2720
|
+
/** Tabs that define the ribbon structure */
|
|
2721
|
+
tabs: RibbonTab[];
|
|
2722
|
+
/** Initially active tab key */
|
|
2723
|
+
defaultTab?: string;
|
|
2724
|
+
/** Controlled active tab */
|
|
2725
|
+
activeTab?: string;
|
|
2726
|
+
/** Called when tab changes */
|
|
2727
|
+
onTabChange?: (key: string) => void;
|
|
2728
|
+
/** Display mode */
|
|
2729
|
+
mode?: RibbonMode;
|
|
2730
|
+
/** Called when mode changes */
|
|
2731
|
+
onModeChange?: (mode: RibbonMode) => void;
|
|
2732
|
+
/** Whether ribbon is sticky to top of its container */
|
|
2733
|
+
sticky?: boolean;
|
|
2734
|
+
/** Extra class name */
|
|
2735
|
+
className?: string;
|
|
2736
|
+
}
|
|
2737
|
+
export { RibbonBarProps }
|
|
2738
|
+
export { RibbonBarProps as RibbonBarProps_alias_1 }
|
|
2739
|
+
export { RibbonBarProps as RibbonBarProps_alias_2 }
|
|
2740
|
+
export { RibbonBarProps as RibbonBarProps_alias_3 }
|
|
2741
|
+
export { RibbonBarProps as RibbonBarProps_alias_4 }
|
|
2742
|
+
|
|
2743
|
+
declare interface RibbonGroup {
|
|
2744
|
+
key: string;
|
|
2745
|
+
label: string;
|
|
2746
|
+
items: RibbonItem[];
|
|
2747
|
+
/** Disables all items in this group */
|
|
2748
|
+
disabled?: boolean;
|
|
2749
|
+
}
|
|
2750
|
+
export { RibbonGroup }
|
|
2751
|
+
export { RibbonGroup as RibbonGroup_alias_1 }
|
|
2752
|
+
export { RibbonGroup as RibbonGroup_alias_2 }
|
|
2753
|
+
export { RibbonGroup as RibbonGroup_alias_3 }
|
|
2754
|
+
export { RibbonGroup as RibbonGroup_alias_4 }
|
|
2755
|
+
|
|
2756
|
+
declare interface RibbonItem {
|
|
2757
|
+
key: string;
|
|
2758
|
+
label: string;
|
|
2759
|
+
icon?: React_2.ReactNode;
|
|
2760
|
+
onClick?: () => void;
|
|
2761
|
+
disabled?: boolean;
|
|
2762
|
+
/** Displays item as a separator */
|
|
2763
|
+
separator?: boolean;
|
|
2764
|
+
/** Marks item as active/pressed */
|
|
2765
|
+
active?: boolean;
|
|
2766
|
+
/** Tooltip shown on hover */
|
|
2767
|
+
title?: string;
|
|
2768
|
+
}
|
|
2769
|
+
export { RibbonItem }
|
|
2770
|
+
export { RibbonItem as RibbonItem_alias_1 }
|
|
2771
|
+
export { RibbonItem as RibbonItem_alias_2 }
|
|
2772
|
+
export { RibbonItem as RibbonItem_alias_3 }
|
|
2773
|
+
export { RibbonItem as RibbonItem_alias_4 }
|
|
2774
|
+
|
|
2775
|
+
declare type RibbonMode = "full" | "compact" | "icons";
|
|
2776
|
+
export { RibbonMode }
|
|
2777
|
+
export { RibbonMode as RibbonMode_alias_1 }
|
|
2778
|
+
export { RibbonMode as RibbonMode_alias_2 }
|
|
2779
|
+
export { RibbonMode as RibbonMode_alias_3 }
|
|
2780
|
+
export { RibbonMode as RibbonMode_alias_4 }
|
|
2781
|
+
|
|
2782
|
+
declare interface RibbonTab {
|
|
2783
|
+
key: string;
|
|
2784
|
+
label: string;
|
|
2785
|
+
icon?: React_2.ReactNode;
|
|
2786
|
+
groups: RibbonGroup[];
|
|
2787
|
+
/** Whether tab is hidden */
|
|
2788
|
+
hidden?: boolean;
|
|
2789
|
+
/** Disables the tab button and all groups/items inside it */
|
|
2790
|
+
disabled?: boolean;
|
|
2791
|
+
}
|
|
2792
|
+
export { RibbonTab }
|
|
2793
|
+
export { RibbonTab as RibbonTab_alias_1 }
|
|
2794
|
+
export { RibbonTab as RibbonTab_alias_2 }
|
|
2795
|
+
export { RibbonTab as RibbonTab_alias_3 }
|
|
2796
|
+
export { RibbonTab as RibbonTab_alias_4 }
|
|
2797
|
+
|
|
2135
2798
|
declare function ScatterChart({ series, xAxis, yAxis, dotRadius, dotOpacity, clusters, jitter, jitterAmount, linkedLines, title, height, className, legend, legendPosition, animateOnMount, emptyText, }: ScatterChartProps): JSX.Element;
|
|
2136
2799
|
export { ScatterChart }
|
|
2137
2800
|
export { ScatterChart as ScatterChart_alias_1 }
|
|
@@ -2166,12 +2829,45 @@ export declare function Section({ title, children }: {
|
|
|
2166
2829
|
children: React_2.ReactNode;
|
|
2167
2830
|
}): JSX.Element;
|
|
2168
2831
|
|
|
2832
|
+
declare function Select({ options, value: valueProp, defaultValue, onChange, placeholder, disabled, clearable, intent, size, className, id: idProp, "aria-label": ariaLabel, }: SelectProps): JSX.Element;
|
|
2833
|
+
export { Select }
|
|
2834
|
+
export { Select as Select_alias_1 }
|
|
2835
|
+
|
|
2169
2836
|
declare type SelectionMode_2 = "none" | "single" | "multiple";
|
|
2170
2837
|
export { SelectionMode_2 as SelectionMode }
|
|
2171
2838
|
export { SelectionMode_2 as SelectionMode_alias_1 }
|
|
2172
2839
|
export { SelectionMode_2 as SelectionMode_alias_2 }
|
|
2173
2840
|
|
|
2174
|
-
declare
|
|
2841
|
+
declare type SelectOption = {
|
|
2842
|
+
value: string;
|
|
2843
|
+
label: string;
|
|
2844
|
+
disabled?: boolean;
|
|
2845
|
+
};
|
|
2846
|
+
export { SelectOption }
|
|
2847
|
+
export { SelectOption as SelectOption_alias_1 }
|
|
2848
|
+
|
|
2849
|
+
declare type SelectProps = VariantProps<typeof selectVariants> & {
|
|
2850
|
+
options: SelectOption[];
|
|
2851
|
+
value?: string;
|
|
2852
|
+
defaultValue?: string;
|
|
2853
|
+
onChange?: (value: string) => void;
|
|
2854
|
+
placeholder?: string;
|
|
2855
|
+
disabled?: boolean;
|
|
2856
|
+
clearable?: boolean;
|
|
2857
|
+
/** Accessible label. Prefer using `<label>` + `id`. */
|
|
2858
|
+
"aria-label"?: string;
|
|
2859
|
+
id?: string;
|
|
2860
|
+
className?: string;
|
|
2861
|
+
};
|
|
2862
|
+
export { SelectProps }
|
|
2863
|
+
export { SelectProps as SelectProps_alias_1 }
|
|
2864
|
+
|
|
2865
|
+
export declare const selectVariants: (props?: ({
|
|
2866
|
+
intent?: "danger" | "default" | null | undefined;
|
|
2867
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
2868
|
+
} & ClassProp) | undefined) => string;
|
|
2869
|
+
|
|
2870
|
+
declare function SideNav({ items, title, basePath, onItemClick, LinkComponent, collapsible, collapseMode: controlledMode, defaultCollapseMode, onCollapseModeChange, showLines, expandedKeys: controlledExpandedKeys, defaultExpandedKeys, onExpandedKeysChange, className, responsive, mobileBreakpoint, mobileTopOffset, mobileDrawerSlot, ...props }: SideNavProps): JSX.Element;
|
|
2175
2871
|
export { SideNav }
|
|
2176
2872
|
export { SideNav as SideNav_alias_1 }
|
|
2177
2873
|
export { SideNav as SideNav_alias_2 }
|
|
@@ -2262,11 +2958,55 @@ declare interface SideNavProps extends React_2.HTMLAttributes<HTMLElement> {
|
|
|
2262
2958
|
* Set this to the height of your app's top bar. @default 48
|
|
2263
2959
|
*/
|
|
2264
2960
|
mobileTopOffset?: number;
|
|
2961
|
+
/**
|
|
2962
|
+
* Optional slot rendered inside the mobile slide-in drawer, between the
|
|
2963
|
+
* header row and the scrollable nav body. Use it to inject a search input
|
|
2964
|
+
* or other controls that should appear on mobile too.
|
|
2965
|
+
*/
|
|
2966
|
+
mobileDrawerSlot?: React_2.ReactNode;
|
|
2265
2967
|
}
|
|
2266
2968
|
export { SideNavProps }
|
|
2267
2969
|
export { SideNavProps as SideNavProps_alias_1 }
|
|
2268
2970
|
export { SideNavProps as SideNavProps_alias_2 }
|
|
2269
2971
|
|
|
2972
|
+
/**
|
|
2973
|
+
* Skeleton — loading placeholder that mimics the shape of incoming content.
|
|
2974
|
+
*
|
|
2975
|
+
* @example
|
|
2976
|
+
* <Skeleton variant="text" lines={3} />
|
|
2977
|
+
* <Skeleton variant="circular" width={48} height={48} />
|
|
2978
|
+
* <Skeleton variant="rectangular" width="100%" height={160} animation="wave" />
|
|
2979
|
+
*/
|
|
2980
|
+
declare function Skeleton({ variant, animation, width, height, lines, className, style, ...props }: SkeletonProps): JSX.Element;
|
|
2981
|
+
export { Skeleton }
|
|
2982
|
+
export { Skeleton as Skeleton_alias_1 }
|
|
2983
|
+
export { Skeleton as Skeleton_alias_2 }
|
|
2984
|
+
export { Skeleton as Skeleton_alias_3 }
|
|
2985
|
+
|
|
2986
|
+
declare type SkeletonProps = Omit<React_2.HTMLAttributes<HTMLSpanElement>, "children"> & VariantProps<typeof skeletonVariants> & {
|
|
2987
|
+
/** CSS width — e.g. "100%", 200, "12rem". Overrides default when supplied. */
|
|
2988
|
+
width?: string | number;
|
|
2989
|
+
/** CSS height — e.g. 16, "2rem". Overrides default when supplied. */
|
|
2990
|
+
height?: string | number;
|
|
2991
|
+
/**
|
|
2992
|
+
* Renders N stacked text-line skeletons.
|
|
2993
|
+
* Only meaningful when variant="text" (default).
|
|
2994
|
+
* The last line is narrowed to 60% to mimic natural paragraph endings.
|
|
2995
|
+
*/
|
|
2996
|
+
lines?: number;
|
|
2997
|
+
};
|
|
2998
|
+
export { SkeletonProps }
|
|
2999
|
+
export { SkeletonProps as SkeletonProps_alias_1 }
|
|
3000
|
+
export { SkeletonProps as SkeletonProps_alias_2 }
|
|
3001
|
+
|
|
3002
|
+
declare const skeletonVariants: (props?: ({
|
|
3003
|
+
variant?: "circular" | "rounded" | "text" | "rectangular" | null | undefined;
|
|
3004
|
+
animation?: "none" | "pulse" | "wave" | null | undefined;
|
|
3005
|
+
} & ClassProp) | undefined) => string;
|
|
3006
|
+
export { skeletonVariants }
|
|
3007
|
+
export { skeletonVariants as skeletonVariants_alias_1 }
|
|
3008
|
+
export { skeletonVariants as skeletonVariants_alias_2 }
|
|
3009
|
+
|
|
2270
3010
|
export declare interface SliceSpec {
|
|
2271
3011
|
id: string;
|
|
2272
3012
|
label: string;
|
|
@@ -2283,6 +3023,58 @@ export declare interface SliceSpec {
|
|
|
2283
3023
|
cy: number;
|
|
2284
3024
|
}
|
|
2285
3025
|
|
|
3026
|
+
declare function Slider({ mode, value: valueProp, defaultValue, onChange, min, max, step, intent, size, disabled, showValue, formatValue, label, className, id: propId, ...props }: SliderProps): JSX.Element;
|
|
3027
|
+
export { Slider }
|
|
3028
|
+
export { Slider as Slider_alias_1 }
|
|
3029
|
+
export { Slider as Slider_alias_2 }
|
|
3030
|
+
export { Slider as Slider_alias_3 }
|
|
3031
|
+
|
|
3032
|
+
declare type SliderBaseProps = Omit<React_2.HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> & VariantProps<typeof sliderVariants> & {
|
|
3033
|
+
min?: number;
|
|
3034
|
+
max?: number;
|
|
3035
|
+
step?: number;
|
|
3036
|
+
disabled?: boolean;
|
|
3037
|
+
/** Display the current value above the thumb. */
|
|
3038
|
+
showValue?: boolean;
|
|
3039
|
+
/** Format the displayed value. */
|
|
3040
|
+
formatValue?: (value: number) => string;
|
|
3041
|
+
label?: string;
|
|
3042
|
+
};
|
|
3043
|
+
|
|
3044
|
+
declare type SliderProps = SliderBaseProps & {
|
|
3045
|
+
mode?: "single";
|
|
3046
|
+
value?: number;
|
|
3047
|
+
defaultValue?: number;
|
|
3048
|
+
onChange?: (value: number) => void;
|
|
3049
|
+
};
|
|
3050
|
+
export { SliderProps }
|
|
3051
|
+
export { SliderProps as SliderProps_alias_1 }
|
|
3052
|
+
export { SliderProps as SliderProps_alias_2 }
|
|
3053
|
+
|
|
3054
|
+
declare function SliderRange({ value: valueProp, defaultValue, onChange, min, max, step, intent, size, disabled, showValue, formatValue, label, className, id: propId, ...props }: SliderRangeProps): JSX.Element;
|
|
3055
|
+
export { SliderRange }
|
|
3056
|
+
export { SliderRange as SliderRange_alias_1 }
|
|
3057
|
+
export { SliderRange as SliderRange_alias_2 }
|
|
3058
|
+
export { SliderRange as SliderRange_alias_3 }
|
|
3059
|
+
|
|
3060
|
+
declare type SliderRangeProps = SliderBaseProps & {
|
|
3061
|
+
mode: "range";
|
|
3062
|
+
value?: [number, number];
|
|
3063
|
+
defaultValue?: [number, number];
|
|
3064
|
+
onChange?: (value: [number, number]) => void;
|
|
3065
|
+
};
|
|
3066
|
+
export { SliderRangeProps }
|
|
3067
|
+
export { SliderRangeProps as SliderRangeProps_alias_1 }
|
|
3068
|
+
export { SliderRangeProps as SliderRangeProps_alias_2 }
|
|
3069
|
+
|
|
3070
|
+
declare const sliderVariants: (props?: ({
|
|
3071
|
+
intent?: "primary" | "secondary" | "danger" | "warning" | "success" | null | undefined;
|
|
3072
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
3073
|
+
} & ClassProp) | undefined) => string;
|
|
3074
|
+
export { sliderVariants }
|
|
3075
|
+
export { sliderVariants as sliderVariants_alias_1 }
|
|
3076
|
+
export { sliderVariants as sliderVariants_alias_2 }
|
|
3077
|
+
|
|
2286
3078
|
declare function SortableTable<T, K extends string = string>({ columns, data, sort: controlledSort, onSortChange, defaultSort, rowKey, rowActions, intent, density, className, empty, }: SortableTableProps<T, K>): JSX.Element;
|
|
2287
3079
|
export { SortableTable }
|
|
2288
3080
|
export { SortableTable as SortableTable_alias_1 }
|
|
@@ -2345,6 +3137,50 @@ export { spinVariants }
|
|
|
2345
3137
|
export { spinVariants as spinVariants_alias_1 }
|
|
2346
3138
|
export { spinVariants as spinVariants_alias_2 }
|
|
2347
3139
|
|
|
3140
|
+
declare function Stat({ title, value, prefix, suffix, icon, trend, trendValue, description, intent, size, className, }: StatProps): JSX.Element;
|
|
3141
|
+
export { Stat }
|
|
3142
|
+
export { Stat as Stat_alias_1 }
|
|
3143
|
+
export { Stat as Stat_alias_2 }
|
|
3144
|
+
export { Stat as Stat_alias_3 }
|
|
3145
|
+
|
|
3146
|
+
declare interface StatProps extends VariantProps<typeof statVariants> {
|
|
3147
|
+
/** Main metric label */
|
|
3148
|
+
title: string;
|
|
3149
|
+
/** Primary value to display */
|
|
3150
|
+
value: React_2.ReactNode;
|
|
3151
|
+
/** Prefix string/element before value */
|
|
3152
|
+
prefix?: React_2.ReactNode;
|
|
3153
|
+
/** Suffix string/element after value */
|
|
3154
|
+
suffix?: React_2.ReactNode;
|
|
3155
|
+
/** Icon element displayed in the card */
|
|
3156
|
+
icon?: React_2.ReactNode;
|
|
3157
|
+
/** Trend direction */
|
|
3158
|
+
trend?: StatTrend;
|
|
3159
|
+
/** Trend percentage or label */
|
|
3160
|
+
trendValue?: string;
|
|
3161
|
+
/** Description below the value */
|
|
3162
|
+
description?: string;
|
|
3163
|
+
className?: string;
|
|
3164
|
+
}
|
|
3165
|
+
export { StatProps }
|
|
3166
|
+
export { StatProps as StatProps_alias_1 }
|
|
3167
|
+
export { StatProps as StatProps_alias_2 }
|
|
3168
|
+
export { StatProps as StatProps_alias_3 }
|
|
3169
|
+
|
|
3170
|
+
declare type StatTrend = "up" | "down" | "neutral";
|
|
3171
|
+
export { StatTrend }
|
|
3172
|
+
export { StatTrend as StatTrend_alias_1 }
|
|
3173
|
+
export { StatTrend as StatTrend_alias_2 }
|
|
3174
|
+
export { StatTrend as StatTrend_alias_3 }
|
|
3175
|
+
|
|
3176
|
+
declare const statVariants: (props?: ({
|
|
3177
|
+
intent?: "primary" | "danger" | "warning" | "success" | null | undefined;
|
|
3178
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
3179
|
+
} & ClassProp) | undefined) => string;
|
|
3180
|
+
export { statVariants }
|
|
3181
|
+
export { statVariants as statVariants_alias_1 }
|
|
3182
|
+
export { statVariants as statVariants_alias_2 }
|
|
3183
|
+
|
|
2348
3184
|
declare function Switch({ checked: controlledChecked, defaultChecked, onCheckedChange, checkedContent, uncheckedContent, intent, size, label, id: propId, className, disabled, ...props }: SwitchProps): JSX.Element;
|
|
2349
3185
|
export { Switch }
|
|
2350
3186
|
export { Switch as Switch_alias_1 }
|
|
@@ -2496,6 +3332,38 @@ export { tabTriggerVariants }
|
|
|
2496
3332
|
export { tabTriggerVariants as tabTriggerVariants_alias_1 }
|
|
2497
3333
|
export { tabTriggerVariants as tabTriggerVariants_alias_2 }
|
|
2498
3334
|
|
|
3335
|
+
declare function Tag({ intent, size, variant, icon, removable, onRemove, disabled, dot, className, children, ...props }: TagProps): JSX.Element;
|
|
3336
|
+
export { Tag }
|
|
3337
|
+
export { Tag as Tag_alias_1 }
|
|
3338
|
+
export { Tag as Tag_alias_2 }
|
|
3339
|
+
export { Tag as Tag_alias_3 }
|
|
3340
|
+
|
|
3341
|
+
declare type TagProps = React_2.HTMLAttributes<HTMLSpanElement> & VariantProps<typeof tagVariants> & {
|
|
3342
|
+
/** Icon or element displayed before label */
|
|
3343
|
+
icon?: React_2.ReactNode;
|
|
3344
|
+
/** Show remove button */
|
|
3345
|
+
removable?: boolean;
|
|
3346
|
+
/** Called when remove button is clicked */
|
|
3347
|
+
onRemove?: () => void;
|
|
3348
|
+
/** Disables interaction */
|
|
3349
|
+
disabled?: boolean;
|
|
3350
|
+
/** Dot indicator to left of label */
|
|
3351
|
+
dot?: boolean;
|
|
3352
|
+
};
|
|
3353
|
+
export { TagProps }
|
|
3354
|
+
export { TagProps as TagProps_alias_1 }
|
|
3355
|
+
export { TagProps as TagProps_alias_2 }
|
|
3356
|
+
export { TagProps as TagProps_alias_3 }
|
|
3357
|
+
|
|
3358
|
+
declare const tagVariants: (props?: ({
|
|
3359
|
+
intent?: "primary" | "secondary" | "danger" | "warning" | "success" | "info" | null | undefined;
|
|
3360
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
3361
|
+
variant?: "outline" | "solid" | "soft" | null | undefined;
|
|
3362
|
+
} & ClassProp) | undefined) => string;
|
|
3363
|
+
export { tagVariants }
|
|
3364
|
+
export { tagVariants as tagVariants_alias_1 }
|
|
3365
|
+
export { tagVariants as tagVariants_alias_2 }
|
|
3366
|
+
|
|
2499
3367
|
declare function TextBox({ state, size, showWordCount, maxWords, className, value: controlledValue, defaultValue, onChange, disabled, ...props }: TextBoxProps): JSX.Element;
|
|
2500
3368
|
export { TextBox }
|
|
2501
3369
|
export { TextBox as TextBox_alias_1 }
|
|
@@ -2516,6 +3384,187 @@ export { TextBoxProps }
|
|
|
2516
3384
|
export { TextBoxProps as TextBoxProps_alias_1 }
|
|
2517
3385
|
export { TextBoxProps as TextBoxProps_alias_2 }
|
|
2518
3386
|
|
|
3387
|
+
declare function Timeline({ items, orientation, activeIndex, animated, lineStyle, className, }: TimelineProps): JSX.Element;
|
|
3388
|
+
export { Timeline }
|
|
3389
|
+
export { Timeline as Timeline_alias_1 }
|
|
3390
|
+
export { Timeline as Timeline_alias_2 }
|
|
3391
|
+
export { Timeline as Timeline_alias_3 }
|
|
3392
|
+
|
|
3393
|
+
declare interface TimelineAction {
|
|
3394
|
+
/** Button/link label */
|
|
3395
|
+
label: string;
|
|
3396
|
+
/** Leading icon */
|
|
3397
|
+
icon?: React_2.ReactNode;
|
|
3398
|
+
/** Click handler (renders a <button>) */
|
|
3399
|
+
onClick?: () => void;
|
|
3400
|
+
/** Destination URL — renders an <a> that opens in a new tab */
|
|
3401
|
+
href?: string;
|
|
3402
|
+
/** "primary" → solid right-aligned CTA; default → ghost left-aligned */
|
|
3403
|
+
variant?: "default" | "primary";
|
|
3404
|
+
}
|
|
3405
|
+
export { TimelineAction }
|
|
3406
|
+
export { TimelineAction as TimelineAction_alias_1 }
|
|
3407
|
+
export { TimelineAction as TimelineAction_alias_2 }
|
|
3408
|
+
export { TimelineAction as TimelineAction_alias_3 }
|
|
3409
|
+
|
|
3410
|
+
declare interface TimelineItem {
|
|
3411
|
+
/** Unique key */
|
|
3412
|
+
id?: string | number;
|
|
3413
|
+
/** Card title */
|
|
3414
|
+
title: string;
|
|
3415
|
+
/** Card description text or element */
|
|
3416
|
+
description?: React_2.ReactNode;
|
|
3417
|
+
/** Timestamp / label */
|
|
3418
|
+
date?: string;
|
|
3419
|
+
/** Custom icon inside the dot */
|
|
3420
|
+
icon?: React_2.ReactNode;
|
|
3421
|
+
/** Image URL — full-width header banner (top) or sidebar column (left) */
|
|
3422
|
+
image?: string;
|
|
3423
|
+
/** Where to display `image`: "top" = banner header (default) | "left" = sidebar beside content */
|
|
3424
|
+
imagePosition?: "top" | "left";
|
|
3425
|
+
/** Array of image URLs — mosaic gallery rendered below the description */
|
|
3426
|
+
images?: string[];
|
|
3427
|
+
/** Inline SVG string or React SVG element */
|
|
3428
|
+
svg?: React_2.ReactNode;
|
|
3429
|
+
/** Item status */
|
|
3430
|
+
status?: TimelineStatus;
|
|
3431
|
+
/** Action buttons shown in the card footer */
|
|
3432
|
+
actions?: TimelineAction[];
|
|
3433
|
+
/** Extra class for this item */
|
|
3434
|
+
className?: string;
|
|
3435
|
+
}
|
|
3436
|
+
export { TimelineItem }
|
|
3437
|
+
export { TimelineItem as TimelineItem_alias_1 }
|
|
3438
|
+
export { TimelineItem as TimelineItem_alias_2 }
|
|
3439
|
+
export { TimelineItem as TimelineItem_alias_3 }
|
|
3440
|
+
export { TimelineItem as TimelineItem_alias_4 }
|
|
3441
|
+
|
|
3442
|
+
declare type TimelineOrientation = "vertical" | "horizontal";
|
|
3443
|
+
export { TimelineOrientation }
|
|
3444
|
+
export { TimelineOrientation as TimelineOrientation_alias_1 }
|
|
3445
|
+
export { TimelineOrientation as TimelineOrientation_alias_2 }
|
|
3446
|
+
export { TimelineOrientation as TimelineOrientation_alias_3 }
|
|
3447
|
+
export { TimelineOrientation as TimelineOrientation_alias_4 }
|
|
3448
|
+
|
|
3449
|
+
declare interface TimelineProps {
|
|
3450
|
+
items: TimelineItem[];
|
|
3451
|
+
orientation?: TimelineOrientation;
|
|
3452
|
+
/** Index of the active item — will be scrolled into center view */
|
|
3453
|
+
activeIndex?: number;
|
|
3454
|
+
/** Animate items as they enter the viewport */
|
|
3455
|
+
animated?: boolean;
|
|
3456
|
+
/** Connector line style */
|
|
3457
|
+
lineStyle?: "solid" | "dashed";
|
|
3458
|
+
className?: string;
|
|
3459
|
+
}
|
|
3460
|
+
export { TimelineProps }
|
|
3461
|
+
export { TimelineProps as TimelineProps_alias_1 }
|
|
3462
|
+
export { TimelineProps as TimelineProps_alias_2 }
|
|
3463
|
+
export { TimelineProps as TimelineProps_alias_3 }
|
|
3464
|
+
|
|
3465
|
+
declare type TimelineStatus = "pending" | "active" | "complete" | "error";
|
|
3466
|
+
export { TimelineStatus }
|
|
3467
|
+
export { TimelineStatus as TimelineStatus_alias_1 }
|
|
3468
|
+
export { TimelineStatus as TimelineStatus_alias_2 }
|
|
3469
|
+
export { TimelineStatus as TimelineStatus_alias_3 }
|
|
3470
|
+
export { TimelineStatus as TimelineStatus_alias_4 }
|
|
3471
|
+
|
|
3472
|
+
declare interface ToastAction {
|
|
3473
|
+
label: string;
|
|
3474
|
+
onClick: () => void;
|
|
3475
|
+
}
|
|
3476
|
+
export { ToastAction }
|
|
3477
|
+
export { ToastAction as ToastAction_alias_1 }
|
|
3478
|
+
export { ToastAction as ToastAction_alias_2 }
|
|
3479
|
+
export { ToastAction as ToastAction_alias_3 }
|
|
3480
|
+
|
|
3481
|
+
declare const ToastContext: React_2.Context<ToastContextValue | null>;
|
|
3482
|
+
export { ToastContext }
|
|
3483
|
+
export { ToastContext as ToastContext_alias_1 }
|
|
3484
|
+
export { ToastContext as ToastContext_alias_2 }
|
|
3485
|
+
export { ToastContext as ToastContext_alias_3 }
|
|
3486
|
+
|
|
3487
|
+
declare interface ToastContextValue {
|
|
3488
|
+
/** Show a toast and return its generated id. */
|
|
3489
|
+
toast: (options: ToastOptions) => string;
|
|
3490
|
+
/** Dismiss a specific toast by id. */
|
|
3491
|
+
dismiss: (id: string) => void;
|
|
3492
|
+
/** Dismiss all currently visible toasts. */
|
|
3493
|
+
dismissAll: () => void;
|
|
3494
|
+
}
|
|
3495
|
+
export { ToastContextValue }
|
|
3496
|
+
export { ToastContextValue as ToastContextValue_alias_1 }
|
|
3497
|
+
export { ToastContextValue as ToastContextValue_alias_2 }
|
|
3498
|
+
export { ToastContextValue as ToastContextValue_alias_3 }
|
|
3499
|
+
|
|
3500
|
+
/** @internal Extended item type that tracks exit-animation state */
|
|
3501
|
+
declare interface ToastItem extends ToastProps {
|
|
3502
|
+
_exiting: boolean;
|
|
3503
|
+
}
|
|
3504
|
+
export { ToastItem }
|
|
3505
|
+
export { ToastItem as ToastItem_alias_1 }
|
|
3506
|
+
|
|
3507
|
+
declare type ToastOptions = Omit<ToastProps, "id">;
|
|
3508
|
+
export { ToastOptions }
|
|
3509
|
+
export { ToastOptions as ToastOptions_alias_1 }
|
|
3510
|
+
export { ToastOptions as ToastOptions_alias_2 }
|
|
3511
|
+
export { ToastOptions as ToastOptions_alias_3 }
|
|
3512
|
+
|
|
3513
|
+
declare type ToastPosition = "top-right" | "top-left" | "top-center" | "bottom-right" | "bottom-left" | "bottom-center";
|
|
3514
|
+
export { ToastPosition }
|
|
3515
|
+
export { ToastPosition as ToastPosition_alias_1 }
|
|
3516
|
+
export { ToastPosition as ToastPosition_alias_2 }
|
|
3517
|
+
export { ToastPosition as ToastPosition_alias_3 }
|
|
3518
|
+
|
|
3519
|
+
declare interface ToastProps {
|
|
3520
|
+
id: string;
|
|
3521
|
+
title?: string;
|
|
3522
|
+
description?: string;
|
|
3523
|
+
variant?: ToastVariant;
|
|
3524
|
+
/** Duration in milliseconds. Default: 4000. Pass 0 to persist indefinitely. */
|
|
3525
|
+
duration?: number;
|
|
3526
|
+
/** Show dismiss (×) button. Default: true. */
|
|
3527
|
+
dismissible?: boolean;
|
|
3528
|
+
action?: ToastAction;
|
|
3529
|
+
position?: ToastPosition;
|
|
3530
|
+
onDismiss?: (id: string) => void;
|
|
3531
|
+
}
|
|
3532
|
+
export { ToastProps }
|
|
3533
|
+
export { ToastProps as ToastProps_alias_1 }
|
|
3534
|
+
export { ToastProps as ToastProps_alias_2 }
|
|
3535
|
+
export { ToastProps as ToastProps_alias_3 }
|
|
3536
|
+
|
|
3537
|
+
declare function ToastProvider({ children, defaultPosition, defaultDuration, }: ToastProviderProps): JSX.Element;
|
|
3538
|
+
export { ToastProvider }
|
|
3539
|
+
export { ToastProvider as ToastProvider_alias_1 }
|
|
3540
|
+
export { ToastProvider as ToastProvider_alias_2 }
|
|
3541
|
+
export { ToastProvider as ToastProvider_alias_3 }
|
|
3542
|
+
|
|
3543
|
+
declare interface ToastProviderProps {
|
|
3544
|
+
children: React_2.ReactNode;
|
|
3545
|
+
/** Default position for toasts. Each toast call can override this. */
|
|
3546
|
+
defaultPosition?: ToastPosition;
|
|
3547
|
+
/** Default auto-dismiss duration in ms. Each toast call can override. */
|
|
3548
|
+
defaultDuration?: number;
|
|
3549
|
+
}
|
|
3550
|
+
export { ToastProviderProps }
|
|
3551
|
+
export { ToastProviderProps as ToastProviderProps_alias_1 }
|
|
3552
|
+
export { ToastProviderProps as ToastProviderProps_alias_2 }
|
|
3553
|
+
export { ToastProviderProps as ToastProviderProps_alias_3 }
|
|
3554
|
+
|
|
3555
|
+
declare type ToastVariant = "default" | "success" | "danger" | "warning" | "info";
|
|
3556
|
+
export { ToastVariant }
|
|
3557
|
+
export { ToastVariant as ToastVariant_alias_1 }
|
|
3558
|
+
export { ToastVariant as ToastVariant_alias_2 }
|
|
3559
|
+
export { ToastVariant as ToastVariant_alias_3 }
|
|
3560
|
+
|
|
3561
|
+
declare const toastVariants: (props?: ({
|
|
3562
|
+
variant?: "danger" | "warning" | "success" | "info" | "default" | null | undefined;
|
|
3563
|
+
} & ClassProp) | undefined) => string;
|
|
3564
|
+
export { toastVariants }
|
|
3565
|
+
export { toastVariants as toastVariants_alias_1 }
|
|
3566
|
+
export { toastVariants as toastVariants_alias_2 }
|
|
3567
|
+
|
|
2519
3568
|
declare function Tooltip({ content, position, intent, delay, maxWidth, children, className, }: TooltipProps): JSX.Element;
|
|
2520
3569
|
export { Tooltip }
|
|
2521
3570
|
export { Tooltip as Tooltip_alias_1 }
|
|
@@ -2667,6 +3716,63 @@ export declare function useChartLegend(initialIds: string[]): {
|
|
|
2667
3716
|
showAll: () => void;
|
|
2668
3717
|
};
|
|
2669
3718
|
|
|
3719
|
+
export declare function useCommandPalette(commands: CommandItem[], open: boolean, onOpenChange: (v: boolean) => void, hotkey: boolean): {
|
|
3720
|
+
query: string;
|
|
3721
|
+
setQuery: Dispatch<SetStateAction<string>>;
|
|
3722
|
+
groups: CommandGroup[];
|
|
3723
|
+
filtered: CommandItem[];
|
|
3724
|
+
activeIndex: number;
|
|
3725
|
+
setActiveIndex: Dispatch<SetStateAction<number>>;
|
|
3726
|
+
handleKeyDown: (e: React.KeyboardEvent) => void;
|
|
3727
|
+
};
|
|
3728
|
+
|
|
3729
|
+
export declare function useDateTimePicker(props: DateTimePickerProps): {
|
|
3730
|
+
isOpen: boolean;
|
|
3731
|
+
displayValue: string;
|
|
3732
|
+
workingDate: Date;
|
|
3733
|
+
view: "drum" | "calendar";
|
|
3734
|
+
calYear: number;
|
|
3735
|
+
calMonth: number;
|
|
3736
|
+
offsetAmount: number;
|
|
3737
|
+
offsetUnit: OffsetUnit;
|
|
3738
|
+
offsetDirection: OffsetDirection;
|
|
3739
|
+
mode: DateTimeMode;
|
|
3740
|
+
use24Hour: boolean;
|
|
3741
|
+
showSeconds: boolean;
|
|
3742
|
+
locale: string;
|
|
3743
|
+
minDate: Date | undefined;
|
|
3744
|
+
maxDate: Date | undefined;
|
|
3745
|
+
openPicker: () => void;
|
|
3746
|
+
closePicker: () => void;
|
|
3747
|
+
confirm: () => void;
|
|
3748
|
+
clear: () => void;
|
|
3749
|
+
updateField: (field: "year" | "month" | "day" | "hour" | "minute" | "second", val: number) => void;
|
|
3750
|
+
setView: Dispatch<SetStateAction<"drum" | "calendar">>;
|
|
3751
|
+
setCalYear: Dispatch<SetStateAction<number>>;
|
|
3752
|
+
setCalMonth: Dispatch<SetStateAction<number>>;
|
|
3753
|
+
setOffsetAmount: Dispatch<SetStateAction<number>>;
|
|
3754
|
+
setOffsetUnit: Dispatch<SetStateAction<OffsetUnit>>;
|
|
3755
|
+
setOffsetDirection: Dispatch<SetStateAction<OffsetDirection>>;
|
|
3756
|
+
applyQuickOffset: () => void;
|
|
3757
|
+
navigateCalendar: (dir: -1 | 1) => void;
|
|
3758
|
+
};
|
|
3759
|
+
|
|
3760
|
+
export declare function useOutsideClick(refs: ReadonlyArray<{
|
|
3761
|
+
readonly current: Element | null;
|
|
3762
|
+
}>, callback: () => void, enabled?: boolean): void;
|
|
3763
|
+
|
|
3764
|
+
export declare function usePositioning(anchorRef: {
|
|
3765
|
+
readonly current: Element | null;
|
|
3766
|
+
}, popupRef: {
|
|
3767
|
+
readonly current: HTMLElement | null;
|
|
3768
|
+
}, isOpen: boolean): void;
|
|
3769
|
+
|
|
3770
|
+
export declare function useScrollColumn(containerRef: React.RefObject<HTMLDivElement | null>, count: number, onSelectIndex: (idx: number) => void): {
|
|
3771
|
+
scrollToIndex: (index: number, behavior?: "smooth" | "instant" | "auto") => void;
|
|
3772
|
+
handleScroll: () => void;
|
|
3773
|
+
isScrollingRef: RefObject<boolean>;
|
|
3774
|
+
};
|
|
3775
|
+
|
|
2670
3776
|
/**
|
|
2671
3777
|
* Returns a `setSpin(target, tip?)` function.
|
|
2672
3778
|
* Each call returns a **close** function to dismiss that specific overlay.
|
|
@@ -2676,6 +3782,27 @@ export { useSpin }
|
|
|
2676
3782
|
export { useSpin as useSpin_alias_1 }
|
|
2677
3783
|
export { useSpin as useSpin_alias_2 }
|
|
2678
3784
|
|
|
3785
|
+
/**
|
|
3786
|
+
* useToast — hook for triggering toasts from anywhere inside a <ToastProvider>.
|
|
3787
|
+
* Throws if called outside of a ToastProvider.
|
|
3788
|
+
*/
|
|
3789
|
+
declare function useToast(): ToastContextValue;
|
|
3790
|
+
export { useToast }
|
|
3791
|
+
export { useToast as useToast_alias_1 }
|
|
3792
|
+
export { useToast as useToast_alias_2 }
|
|
3793
|
+
export { useToast as useToast_alias_3 }
|
|
3794
|
+
|
|
3795
|
+
/**
|
|
3796
|
+
* useToastManager — internal hook that owns all toast state and timers.
|
|
3797
|
+
* Used exclusively by ToastProvider.
|
|
3798
|
+
*/
|
|
3799
|
+
export declare function useToastManager(defaultPosition: ToastPosition, defaultDuration: number): {
|
|
3800
|
+
items: ToastItem[];
|
|
3801
|
+
toast: (options: ToastOptions) => string;
|
|
3802
|
+
dismiss: (id: string) => void;
|
|
3803
|
+
dismissAll: () => void;
|
|
3804
|
+
};
|
|
3805
|
+
|
|
2679
3806
|
/** Callback type for FormItem's `onValidate` prop. */
|
|
2680
3807
|
declare type ValidateCallback = (value: unknown) => ValidationResult;
|
|
2681
3808
|
export { ValidateCallback }
|