@northslopetech/altitude-ui 3.0.0-alpha.2 → 3.0.0-alpha.4
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.d.mts +121 -32
- package/dist/index.d.ts +121 -32
- package/dist/index.js +928 -508
- package/dist/index.mjs +942 -543
- package/package.json +12 -4
package/README.md
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -5,31 +5,25 @@ import { Button as Button$1 } from '@base-ui/react/button';
|
|
|
5
5
|
import { VariantProps } from 'class-variance-authority';
|
|
6
6
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
7
7
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
8
|
-
import * as
|
|
8
|
+
import * as _base_ui_react_dialog from '@base-ui/react/dialog';
|
|
9
|
+
import { Dialog as Dialog$1 } from '@base-ui/react/dialog';
|
|
9
10
|
import * as _base_ui_react_separator from '@base-ui/react/separator';
|
|
10
11
|
import { Separator as Separator$1 } from '@base-ui/react/separator';
|
|
11
12
|
import { useRender } from '@base-ui/react/use-render';
|
|
12
13
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
13
|
-
import * as
|
|
14
|
+
import * as _base_ui_react_checkbox from '@base-ui/react/checkbox';
|
|
15
|
+
import { Checkbox as Checkbox$1 } from '@base-ui/react/checkbox';
|
|
14
16
|
import { Switch as Switch$1 } from '@base-ui/react/switch';
|
|
17
|
+
import * as _base_ui_react from '@base-ui/react';
|
|
15
18
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
16
19
|
import { Table as Table$1 } from '@tanstack/react-table';
|
|
17
20
|
|
|
18
21
|
declare const buttonVariants: (props?: ({
|
|
19
|
-
variant?: "default" | "
|
|
20
|
-
size?: "default" | "
|
|
22
|
+
variant?: "default" | "primary" | "destructive" | "ghost" | "link" | null | undefined;
|
|
23
|
+
size?: "default" | "lg" | "sm" | "mini" | null | undefined;
|
|
21
24
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
22
25
|
interface ButtonProps extends Button$1.Props, VariantProps<typeof buttonVariants> {
|
|
23
|
-
icon?: React$1.ReactNode;
|
|
24
|
-
iconPosition?: "left" | "right";
|
|
25
26
|
}
|
|
26
|
-
/**
|
|
27
|
-
* Button component with multiple variants and sizes.
|
|
28
|
-
* @param {React.ReactNode} [props.icon] - Icon element to display
|
|
29
|
-
* @param {"left" | "right"} [props.iconPosition] - Position of icon relative to text
|
|
30
|
-
* @param {string} [props.variant] - Visual style variant
|
|
31
|
-
* @param {string} [props.size] - Button size
|
|
32
|
-
*/
|
|
33
27
|
declare const Button: React$1.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
34
28
|
|
|
35
29
|
/**
|
|
@@ -92,7 +86,7 @@ declare const Typography: React$1.ForwardRefExoticComponent<TypographyProps & Re
|
|
|
92
86
|
* Select trigger variant styles.
|
|
93
87
|
*/
|
|
94
88
|
declare const selectTriggerVariants: (props?: ({
|
|
95
|
-
width?: "default" | "
|
|
89
|
+
width?: "default" | "fill" | "compact" | null | undefined;
|
|
96
90
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
97
91
|
/**
|
|
98
92
|
* Select content variant styles.
|
|
@@ -127,7 +121,14 @@ declare const SelectLabel: React$1.ForwardRefExoticComponent<Omit<SelectPrimitiv
|
|
|
127
121
|
declare const SelectItem: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
128
122
|
declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
129
123
|
|
|
130
|
-
|
|
124
|
+
/**
|
|
125
|
+
* @fileoverview Label component for Altitude UI.
|
|
126
|
+
*/
|
|
127
|
+
|
|
128
|
+
interface LabelProps extends React$1.LabelHTMLAttributes<HTMLLabelElement> {
|
|
129
|
+
className?: string;
|
|
130
|
+
}
|
|
131
|
+
declare const Label: React$1.ForwardRefExoticComponent<LabelProps & React$1.RefAttributes<HTMLLabelElement>>;
|
|
131
132
|
|
|
132
133
|
declare function FieldSet({ className, ...props }: React.ComponentProps<"fieldset">): react_jsx_runtime.JSX.Element;
|
|
133
134
|
declare function FieldLegend({ className, variant, ...props }: React.ComponentProps<"legend"> & {
|
|
@@ -151,6 +152,53 @@ declare function FieldError({ className, children, errors, ...props }: React.Com
|
|
|
151
152
|
} | undefined>;
|
|
152
153
|
}): react_jsx_runtime.JSX.Element | null;
|
|
153
154
|
|
|
155
|
+
type DialogProps = React$1.ComponentPropsWithoutRef<typeof Dialog$1.Root>;
|
|
156
|
+
declare const Dialog: typeof Dialog$1.Root;
|
|
157
|
+
type DialogTriggerProps = React$1.ComponentPropsWithoutRef<typeof Dialog$1.Trigger>;
|
|
158
|
+
declare const DialogTrigger: Dialog$1.Trigger;
|
|
159
|
+
type DialogOverlayProps = React$1.ComponentPropsWithoutRef<typeof Dialog$1.Backdrop>;
|
|
160
|
+
declare const DialogOverlay: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react_dialog.DialogBackdropProps, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
161
|
+
type DialogContentProps = React$1.ComponentPropsWithoutRef<typeof Dialog$1.Popup> & {
|
|
162
|
+
/**
|
|
163
|
+
* Whether to show the default close button in the top-right corner.
|
|
164
|
+
* Set to false to hide it (e.g., when providing custom actions).
|
|
165
|
+
*/
|
|
166
|
+
showCloseButton?: boolean;
|
|
167
|
+
/**
|
|
168
|
+
* Preset dialog dimensions.
|
|
169
|
+
* - desktop: 640x480
|
|
170
|
+
* - mobile: 320x240, can grow up to 640px height
|
|
171
|
+
*/
|
|
172
|
+
size?: "desktop" | "mobile";
|
|
173
|
+
};
|
|
174
|
+
declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react_dialog.DialogPopupProps, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
175
|
+
/**
|
|
176
|
+
* Whether to show the default close button in the top-right corner.
|
|
177
|
+
* Set to false to hide it (e.g., when providing custom actions).
|
|
178
|
+
*/
|
|
179
|
+
showCloseButton?: boolean;
|
|
180
|
+
/**
|
|
181
|
+
* Preset dialog dimensions.
|
|
182
|
+
* - desktop: 640x480
|
|
183
|
+
* - mobile: 320x240, can grow up to 640px height
|
|
184
|
+
*/
|
|
185
|
+
size?: "desktop" | "mobile";
|
|
186
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
187
|
+
type DialogBodyProps = React$1.HTMLAttributes<HTMLDivElement>;
|
|
188
|
+
/**
|
|
189
|
+
* Scrollable main region of the dialog (Figma "Slot"). Keep {@link DialogFooter}
|
|
190
|
+
* as a sibling so the footer stays pinned to the bottom while this area scrolls.
|
|
191
|
+
*/
|
|
192
|
+
declare const DialogBody: React$1.ForwardRefExoticComponent<DialogBodyProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
193
|
+
type DialogFooterProps = React$1.HTMLAttributes<HTMLDivElement>;
|
|
194
|
+
declare const DialogFooter: React$1.ForwardRefExoticComponent<DialogFooterProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
195
|
+
type DialogTitleProps = React$1.ComponentPropsWithoutRef<typeof Dialog$1.Title>;
|
|
196
|
+
declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react_dialog.DialogTitleProps, "ref"> & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
197
|
+
type DialogDescriptionProps = React$1.ComponentPropsWithoutRef<typeof Dialog$1.Description>;
|
|
198
|
+
declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react_dialog.DialogDescriptionProps, "ref"> & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
199
|
+
type DialogCloseProps = React$1.ComponentPropsWithoutRef<typeof Dialog$1.Close>;
|
|
200
|
+
declare const DialogClose: React$1.ForwardRefExoticComponent<Omit<_base_ui_react_dialog.DialogCloseProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
201
|
+
|
|
154
202
|
type SeparatorProps = Separator$1.Props;
|
|
155
203
|
declare const Separator: React$1.ForwardRefExoticComponent<Omit<_base_ui_react_separator.SeparatorProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
156
204
|
|
|
@@ -332,21 +380,18 @@ interface UploadProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onEr
|
|
|
332
380
|
*/
|
|
333
381
|
declare const Upload: React$1.ForwardRefExoticComponent<UploadProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
334
382
|
|
|
335
|
-
/**
|
|
336
|
-
* Checkbox variant styles.
|
|
337
|
-
*/
|
|
338
383
|
declare const checkboxVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
339
|
-
|
|
340
|
-
className?: string;
|
|
341
|
-
}
|
|
384
|
+
type CheckboxProps = React$1.ComponentPropsWithoutRef<typeof Checkbox$1.Root>;
|
|
342
385
|
/**
|
|
343
|
-
* Checkbox component
|
|
386
|
+
* Checkbox component for binary and indeterminate selection states.
|
|
344
387
|
* @param {boolean} [props.checked] - Controlled checked state
|
|
345
|
-
* @param {
|
|
346
|
-
* @param {boolean} [props.
|
|
347
|
-
* @param {
|
|
388
|
+
* @param {boolean} [props.defaultChecked] - Initial unchecked/checked state
|
|
389
|
+
* @param {(checked: boolean) => void} [props.onCheckedChange] - Checked state change handler
|
|
390
|
+
* @param {boolean} [props.indeterminate] - Shows a mixed/indeterminate state with a minus icon
|
|
391
|
+
* @param {boolean} [props.disabled] - Disables interaction and applies disabled styles
|
|
392
|
+
* @param {string} [props.className] - Additional class names for custom styling
|
|
348
393
|
*/
|
|
349
|
-
declare const Checkbox: React$1.ForwardRefExoticComponent<Omit<
|
|
394
|
+
declare const Checkbox: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react_checkbox.CheckboxRootProps, "ref"> & React$1.RefAttributes<HTMLElement>, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
350
395
|
|
|
351
396
|
declare const switchVariants: (props?: ({
|
|
352
397
|
size?: "default" | "sm" | null | undefined;
|
|
@@ -393,16 +438,60 @@ declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$
|
|
|
393
438
|
* Badge variant styles.
|
|
394
439
|
*/
|
|
395
440
|
declare const badgeVariants: (props?: ({
|
|
396
|
-
variant?: "
|
|
441
|
+
variant?: "primary" | "destructive" | "ghost" | "secondary" | "outline" | null | undefined;
|
|
442
|
+
rounded?: boolean | null | undefined;
|
|
397
443
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
398
444
|
interface BadgeProps extends React$1.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
|
|
399
445
|
}
|
|
400
446
|
/**
|
|
401
447
|
* Badge component for status and informational labels.
|
|
402
448
|
* @param {string} [props.variant] - Badge color variant
|
|
449
|
+
* @param {boolean} [props.rounded] - Pill shape when true; 6px radius when false.
|
|
450
|
+
* With a single character, uses a fixed square (`size-5`): circle if rounded, else `rounded-md`.
|
|
403
451
|
*/
|
|
404
452
|
declare const Badge: React$1.ForwardRefExoticComponent<BadgeProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
405
453
|
|
|
454
|
+
/**
|
|
455
|
+
* Wrapper that provides `role="list"` semantics and adjusts gap spacing
|
|
456
|
+
* based on the `size` of its child Items.
|
|
457
|
+
*/
|
|
458
|
+
declare const ItemGroup: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
459
|
+
declare const ItemSeparator: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.SeparatorProps, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
460
|
+
/** Item variant styles. */
|
|
461
|
+
declare const itemVariants: (props?: ({
|
|
462
|
+
variant?: "default" | "outline" | "muted" | null | undefined;
|
|
463
|
+
size?: "default" | "sm" | null | undefined;
|
|
464
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
465
|
+
type ItemProps = useRender.ComponentProps<"div"> & VariantProps<typeof itemVariants>;
|
|
466
|
+
/**
|
|
467
|
+
* Core Item component. Renders as a `div`. Automatically gets `role="listitem"`
|
|
468
|
+
* when inside an `ItemGroup` (`role="list"`), and no role otherwise.
|
|
469
|
+
* Supports polymorphic rendering via the `render` prop (e.g. `<a>`, `<Link>`).
|
|
470
|
+
*/
|
|
471
|
+
declare const Item: {
|
|
472
|
+
({ className, variant, size, render, ...props }: ItemProps): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
|
|
473
|
+
displayName: string;
|
|
474
|
+
};
|
|
475
|
+
/** ItemMedia variant styles. */
|
|
476
|
+
declare const itemMediaVariants: (props?: ({
|
|
477
|
+
variant?: "default" | "image" | "icon" | "iconBadge" | null | undefined;
|
|
478
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
479
|
+
type ItemMediaProps = React$1.ComponentProps<"div"> & VariantProps<typeof itemMediaVariants>;
|
|
480
|
+
/**
|
|
481
|
+
* Leading visual slot. Use `variant="icon"` for SVG icons (auto-sized to 20px),
|
|
482
|
+
* `variant="iconBadge"` for icons in a 32px badge container (icon auto-sized to 16px),
|
|
483
|
+
* or `variant="image"` for thumbnails (cropped to fit, size-responsive).
|
|
484
|
+
*/
|
|
485
|
+
declare const ItemMedia: React$1.ForwardRefExoticComponent<Omit<ItemMediaProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
486
|
+
/** Flex container for title and description. Grows to fill available space. */
|
|
487
|
+
declare const ItemContent: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
488
|
+
declare const ItemTitle: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
489
|
+
/** Secondary text, clamped to 2 lines. Inline links are auto-styled. */
|
|
490
|
+
declare const ItemDescription: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
491
|
+
declare const ItemActions: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
492
|
+
declare const ItemHeader: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
493
|
+
declare const ItemFooter: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
494
|
+
|
|
406
495
|
/**
|
|
407
496
|
* @fileoverview Shared TypeScript types for PDF viewer components.
|
|
408
497
|
*/
|
|
@@ -987,7 +1076,7 @@ declare function ChartLegend({ items, x, y, className, }: ChartLegendProps): rea
|
|
|
987
1076
|
* Label props from Recharts.
|
|
988
1077
|
* @internal
|
|
989
1078
|
*/
|
|
990
|
-
interface
|
|
1079
|
+
interface ChartAxisLabelProps {
|
|
991
1080
|
viewBox?: {
|
|
992
1081
|
x: number;
|
|
993
1082
|
y: number;
|
|
@@ -1014,7 +1103,7 @@ interface TickProps {
|
|
|
1014
1103
|
* @returns React component for X-axis label
|
|
1015
1104
|
*/
|
|
1016
1105
|
declare const createCustomXAxisLabel: (text: string, yOffset?: number) => {
|
|
1017
|
-
({ viewBox }:
|
|
1106
|
+
({ viewBox }: ChartAxisLabelProps): react_jsx_runtime.JSX.Element | null;
|
|
1018
1107
|
displayName: string;
|
|
1019
1108
|
};
|
|
1020
1109
|
/**
|
|
@@ -1025,7 +1114,7 @@ declare const createCustomXAxisLabel: (text: string, yOffset?: number) => {
|
|
|
1025
1114
|
* @returns React component for Y-axis label
|
|
1026
1115
|
*/
|
|
1027
1116
|
declare const createCustomYAxisLabel: (text: string, leftMargin?: number) => {
|
|
1028
|
-
({ viewBox }:
|
|
1117
|
+
({ viewBox }: ChartAxisLabelProps): react_jsx_runtime.JSX.Element | null;
|
|
1029
1118
|
displayName: string;
|
|
1030
1119
|
};
|
|
1031
1120
|
/**
|
|
@@ -1035,7 +1124,7 @@ declare const createCustomYAxisLabel: (text: string, leftMargin?: number) => {
|
|
|
1035
1124
|
* @returns React component for right Y-axis label
|
|
1036
1125
|
*/
|
|
1037
1126
|
declare const createCustomYAxisRightLabel: (text: string) => {
|
|
1038
|
-
({ viewBox }:
|
|
1127
|
+
({ viewBox }: ChartAxisLabelProps): react_jsx_runtime.JSX.Element | null;
|
|
1039
1128
|
displayName: string;
|
|
1040
1129
|
};
|
|
1041
1130
|
/**
|
|
@@ -1281,4 +1370,4 @@ interface TableProps<T> {
|
|
|
1281
1370
|
*/
|
|
1282
1371
|
declare function Table<T>({ table, className, showPagination, paginationClassName, }: TableProps<T>): react_jsx_runtime.JSX.Element;
|
|
1283
1372
|
|
|
1284
|
-
export { ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, Badge, type BadgeProps, BarChart, type BarChartData, type BarChartProps, BellIcon, BookmarkIcon, type BoundingBox, type BoundingBoxStyle, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, CHART_COLORS, CHART_CONSTANTS, COLOR_SCHEMES, CalendarIcon, Card, CardAction, type CardActionProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, CaretDownIcon, CaretLeftIcon, CaretRightIcon, CaretUpIcon, type ChartColorScheme, ChartLegend, type ChartLegendProps, ChatIcon, CheckIcon, Checkbox, type CheckboxProps, CheckmarkIcon, CheckmarkSquareIcon, CloseIcon, CogIcon, CredentialsIcon, DatePicker, type DatePickerProps, DocumentIcon, DollarIcon, DownloadIcon, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type DropdownMenuTriggerProps, EditIcon, EnvelopeIcon, ExclamationIcon, EyeClosedIcon, EyeOpenIcon, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FilterDescendingIcon, FilterIcon, GenericTooltip, type GenericTooltipProps, GraphBarIcon, GraphDonutIcon, GraphLineIcon, GraphPieIcon, HamburgerMenuIcon, HomeIcon, type IconProps, type IconVariant, type IconWeight, InformationIcon, Input, type InputProps, Label, type LabelProps, type LegendItem, LineChart, type LineChartData, type LineChartProps, type LineSeries, LocationIcon, LockIcon, LogoutIcon, MagnifyingGlassIcon, MinusIcon, MoreMenuIcon, PanelIcon, type PdfFile, PdfViewer, type PdfViewerProps, PhoneIcon, PieChart, type PieChartData, type PieChartProps, type PieLabelProps, PlusIcon, PrintIcon, QuestionCircleIcon, type ScrollTarget, Select, SelectContent, type SelectContentProps, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, Separator, type SeparatorProps, ShareIcon, Sidebar, SidebarContent, type SidebarContentProps, SidebarFooter, type SidebarFooterProps, SidebarGroup, SidebarGroupContent, type SidebarGroupContentProps, type SidebarGroupProps, SidebarHeader, type SidebarHeaderProps, SidebarInset, type SidebarInsetProps, SidebarMenu, SidebarMenuButton, type SidebarMenuButtonProps, SidebarMenuItem, type SidebarMenuItemProps, type SidebarMenuProps, type SidebarProps, SidebarProvider, type SidebarProviderProps, StarIcon, StatementIcon, Switch, type SwitchProps, Table, TableIcon, type TableProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, Text, type TextProps, Textarea, type TextareaProps, type TickProps, Tooltip, TooltipContainer, type TooltipContainerProps, TooltipContent, type TooltipContentProps, TooltipItem, type TooltipItemProps, type TooltipProps, TooltipProvider, type TooltipProviderProps, TooltipTrigger, type TooltipTriggerProps, TrashIcon, Typography, type TypographyProps, Upload, type UploadProps, UserIcon, UserMultiIcon, WarningIcon, WrenchIcon, badgeVariants, buttonVariants, calculateYAxisWidth, checkboxVariants, createCustomXAxisLabel, createCustomYAxisLabel, createCustomYAxisRightLabel, createLegendItems, customXAxisTick, customXAxisTickRotated, customYAxisTick, formatLargeNumber, formatPercentage, getHeatmapColor, getPerformanceColor, getSeriesColor, initializePdfWorker, selectTriggerVariants, switchVariants, tabsVariants, textVariants, typographyVariants, uploadVariants, useSidebar };
|
|
1373
|
+
export { ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, Badge, type BadgeProps, BarChart, type BarChartData, type BarChartProps, BellIcon, BookmarkIcon, type BoundingBox, type BoundingBoxStyle, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, CHART_COLORS, CHART_CONSTANTS, COLOR_SCHEMES, CalendarIcon, Card, CardAction, type CardActionProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, CaretDownIcon, CaretLeftIcon, CaretRightIcon, CaretUpIcon, type ChartAxisLabelProps, type ChartColorScheme, ChartLegend, type ChartLegendProps, ChatIcon, CheckIcon, Checkbox, type CheckboxProps, CheckmarkIcon, CheckmarkSquareIcon, CloseIcon, CogIcon, CredentialsIcon, DatePicker, type DatePickerProps, Dialog, DialogBody, type DialogBodyProps, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogOverlay, type DialogOverlayProps, type DialogProps, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps, DocumentIcon, DollarIcon, DownloadIcon, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type DropdownMenuTriggerProps, EditIcon, EnvelopeIcon, ExclamationIcon, EyeClosedIcon, EyeOpenIcon, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FilterDescendingIcon, FilterIcon, GenericTooltip, type GenericTooltipProps, GraphBarIcon, GraphDonutIcon, GraphLineIcon, GraphPieIcon, HamburgerMenuIcon, HomeIcon, type IconProps, type IconVariant, type IconWeight, InformationIcon, Input, type InputProps, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, type ItemMediaProps, type ItemProps, ItemSeparator, ItemTitle, Label, type LabelProps, type LegendItem, LineChart, type LineChartData, type LineChartProps, type LineSeries, LocationIcon, LockIcon, LogoutIcon, MagnifyingGlassIcon, MinusIcon, MoreMenuIcon, PanelIcon, type PdfFile, PdfViewer, type PdfViewerProps, PhoneIcon, PieChart, type PieChartData, type PieChartProps, type PieLabelProps, PlusIcon, PrintIcon, QuestionCircleIcon, type ScrollTarget, Select, SelectContent, type SelectContentProps, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, Separator, type SeparatorProps, ShareIcon, Sidebar, SidebarContent, type SidebarContentProps, SidebarFooter, type SidebarFooterProps, SidebarGroup, SidebarGroupContent, type SidebarGroupContentProps, type SidebarGroupProps, SidebarHeader, type SidebarHeaderProps, SidebarInset, type SidebarInsetProps, SidebarMenu, SidebarMenuButton, type SidebarMenuButtonProps, SidebarMenuItem, type SidebarMenuItemProps, type SidebarMenuProps, type SidebarProps, SidebarProvider, type SidebarProviderProps, StarIcon, StatementIcon, Switch, type SwitchProps, Table, TableIcon, type TableProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, Text, type TextProps, Textarea, type TextareaProps, type TickProps, Tooltip, TooltipContainer, type TooltipContainerProps, TooltipContent, type TooltipContentProps, TooltipItem, type TooltipItemProps, type TooltipProps, TooltipProvider, type TooltipProviderProps, TooltipTrigger, type TooltipTriggerProps, TrashIcon, Typography, type TypographyProps, Upload, type UploadProps, UserIcon, UserMultiIcon, WarningIcon, WrenchIcon, badgeVariants, buttonVariants, calculateYAxisWidth, checkboxVariants, createCustomXAxisLabel, createCustomYAxisLabel, createCustomYAxisRightLabel, createLegendItems, customXAxisTick, customXAxisTickRotated, customYAxisTick, formatLargeNumber, formatPercentage, getHeatmapColor, getPerformanceColor, getSeriesColor, initializePdfWorker, itemMediaVariants, itemVariants, selectTriggerVariants, switchVariants, tabsVariants, textVariants, typographyVariants, uploadVariants, useSidebar };
|
package/dist/index.d.ts
CHANGED
|
@@ -5,31 +5,25 @@ import { Button as Button$1 } from '@base-ui/react/button';
|
|
|
5
5
|
import { VariantProps } from 'class-variance-authority';
|
|
6
6
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
7
7
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
8
|
-
import * as
|
|
8
|
+
import * as _base_ui_react_dialog from '@base-ui/react/dialog';
|
|
9
|
+
import { Dialog as Dialog$1 } from '@base-ui/react/dialog';
|
|
9
10
|
import * as _base_ui_react_separator from '@base-ui/react/separator';
|
|
10
11
|
import { Separator as Separator$1 } from '@base-ui/react/separator';
|
|
11
12
|
import { useRender } from '@base-ui/react/use-render';
|
|
12
13
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
13
|
-
import * as
|
|
14
|
+
import * as _base_ui_react_checkbox from '@base-ui/react/checkbox';
|
|
15
|
+
import { Checkbox as Checkbox$1 } from '@base-ui/react/checkbox';
|
|
14
16
|
import { Switch as Switch$1 } from '@base-ui/react/switch';
|
|
17
|
+
import * as _base_ui_react from '@base-ui/react';
|
|
15
18
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
16
19
|
import { Table as Table$1 } from '@tanstack/react-table';
|
|
17
20
|
|
|
18
21
|
declare const buttonVariants: (props?: ({
|
|
19
|
-
variant?: "default" | "
|
|
20
|
-
size?: "default" | "
|
|
22
|
+
variant?: "default" | "primary" | "destructive" | "ghost" | "link" | null | undefined;
|
|
23
|
+
size?: "default" | "lg" | "sm" | "mini" | null | undefined;
|
|
21
24
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
22
25
|
interface ButtonProps extends Button$1.Props, VariantProps<typeof buttonVariants> {
|
|
23
|
-
icon?: React$1.ReactNode;
|
|
24
|
-
iconPosition?: "left" | "right";
|
|
25
26
|
}
|
|
26
|
-
/**
|
|
27
|
-
* Button component with multiple variants and sizes.
|
|
28
|
-
* @param {React.ReactNode} [props.icon] - Icon element to display
|
|
29
|
-
* @param {"left" | "right"} [props.iconPosition] - Position of icon relative to text
|
|
30
|
-
* @param {string} [props.variant] - Visual style variant
|
|
31
|
-
* @param {string} [props.size] - Button size
|
|
32
|
-
*/
|
|
33
27
|
declare const Button: React$1.ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
34
28
|
|
|
35
29
|
/**
|
|
@@ -92,7 +86,7 @@ declare const Typography: React$1.ForwardRefExoticComponent<TypographyProps & Re
|
|
|
92
86
|
* Select trigger variant styles.
|
|
93
87
|
*/
|
|
94
88
|
declare const selectTriggerVariants: (props?: ({
|
|
95
|
-
width?: "default" | "
|
|
89
|
+
width?: "default" | "fill" | "compact" | null | undefined;
|
|
96
90
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
97
91
|
/**
|
|
98
92
|
* Select content variant styles.
|
|
@@ -127,7 +121,14 @@ declare const SelectLabel: React$1.ForwardRefExoticComponent<Omit<SelectPrimitiv
|
|
|
127
121
|
declare const SelectItem: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
128
122
|
declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
129
123
|
|
|
130
|
-
|
|
124
|
+
/**
|
|
125
|
+
* @fileoverview Label component for Altitude UI.
|
|
126
|
+
*/
|
|
127
|
+
|
|
128
|
+
interface LabelProps extends React$1.LabelHTMLAttributes<HTMLLabelElement> {
|
|
129
|
+
className?: string;
|
|
130
|
+
}
|
|
131
|
+
declare const Label: React$1.ForwardRefExoticComponent<LabelProps & React$1.RefAttributes<HTMLLabelElement>>;
|
|
131
132
|
|
|
132
133
|
declare function FieldSet({ className, ...props }: React.ComponentProps<"fieldset">): react_jsx_runtime.JSX.Element;
|
|
133
134
|
declare function FieldLegend({ className, variant, ...props }: React.ComponentProps<"legend"> & {
|
|
@@ -151,6 +152,53 @@ declare function FieldError({ className, children, errors, ...props }: React.Com
|
|
|
151
152
|
} | undefined>;
|
|
152
153
|
}): react_jsx_runtime.JSX.Element | null;
|
|
153
154
|
|
|
155
|
+
type DialogProps = React$1.ComponentPropsWithoutRef<typeof Dialog$1.Root>;
|
|
156
|
+
declare const Dialog: typeof Dialog$1.Root;
|
|
157
|
+
type DialogTriggerProps = React$1.ComponentPropsWithoutRef<typeof Dialog$1.Trigger>;
|
|
158
|
+
declare const DialogTrigger: Dialog$1.Trigger;
|
|
159
|
+
type DialogOverlayProps = React$1.ComponentPropsWithoutRef<typeof Dialog$1.Backdrop>;
|
|
160
|
+
declare const DialogOverlay: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react_dialog.DialogBackdropProps, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
161
|
+
type DialogContentProps = React$1.ComponentPropsWithoutRef<typeof Dialog$1.Popup> & {
|
|
162
|
+
/**
|
|
163
|
+
* Whether to show the default close button in the top-right corner.
|
|
164
|
+
* Set to false to hide it (e.g., when providing custom actions).
|
|
165
|
+
*/
|
|
166
|
+
showCloseButton?: boolean;
|
|
167
|
+
/**
|
|
168
|
+
* Preset dialog dimensions.
|
|
169
|
+
* - desktop: 640x480
|
|
170
|
+
* - mobile: 320x240, can grow up to 640px height
|
|
171
|
+
*/
|
|
172
|
+
size?: "desktop" | "mobile";
|
|
173
|
+
};
|
|
174
|
+
declare const DialogContent: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react_dialog.DialogPopupProps, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
175
|
+
/**
|
|
176
|
+
* Whether to show the default close button in the top-right corner.
|
|
177
|
+
* Set to false to hide it (e.g., when providing custom actions).
|
|
178
|
+
*/
|
|
179
|
+
showCloseButton?: boolean;
|
|
180
|
+
/**
|
|
181
|
+
* Preset dialog dimensions.
|
|
182
|
+
* - desktop: 640x480
|
|
183
|
+
* - mobile: 320x240, can grow up to 640px height
|
|
184
|
+
*/
|
|
185
|
+
size?: "desktop" | "mobile";
|
|
186
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
187
|
+
type DialogBodyProps = React$1.HTMLAttributes<HTMLDivElement>;
|
|
188
|
+
/**
|
|
189
|
+
* Scrollable main region of the dialog (Figma "Slot"). Keep {@link DialogFooter}
|
|
190
|
+
* as a sibling so the footer stays pinned to the bottom while this area scrolls.
|
|
191
|
+
*/
|
|
192
|
+
declare const DialogBody: React$1.ForwardRefExoticComponent<DialogBodyProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
193
|
+
type DialogFooterProps = React$1.HTMLAttributes<HTMLDivElement>;
|
|
194
|
+
declare const DialogFooter: React$1.ForwardRefExoticComponent<DialogFooterProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
195
|
+
type DialogTitleProps = React$1.ComponentPropsWithoutRef<typeof Dialog$1.Title>;
|
|
196
|
+
declare const DialogTitle: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react_dialog.DialogTitleProps, "ref"> & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
197
|
+
type DialogDescriptionProps = React$1.ComponentPropsWithoutRef<typeof Dialog$1.Description>;
|
|
198
|
+
declare const DialogDescription: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react_dialog.DialogDescriptionProps, "ref"> & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
199
|
+
type DialogCloseProps = React$1.ComponentPropsWithoutRef<typeof Dialog$1.Close>;
|
|
200
|
+
declare const DialogClose: React$1.ForwardRefExoticComponent<Omit<_base_ui_react_dialog.DialogCloseProps, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
201
|
+
|
|
154
202
|
type SeparatorProps = Separator$1.Props;
|
|
155
203
|
declare const Separator: React$1.ForwardRefExoticComponent<Omit<_base_ui_react_separator.SeparatorProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
156
204
|
|
|
@@ -332,21 +380,18 @@ interface UploadProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onEr
|
|
|
332
380
|
*/
|
|
333
381
|
declare const Upload: React$1.ForwardRefExoticComponent<UploadProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
334
382
|
|
|
335
|
-
/**
|
|
336
|
-
* Checkbox variant styles.
|
|
337
|
-
*/
|
|
338
383
|
declare const checkboxVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
339
|
-
|
|
340
|
-
className?: string;
|
|
341
|
-
}
|
|
384
|
+
type CheckboxProps = React$1.ComponentPropsWithoutRef<typeof Checkbox$1.Root>;
|
|
342
385
|
/**
|
|
343
|
-
* Checkbox component
|
|
386
|
+
* Checkbox component for binary and indeterminate selection states.
|
|
344
387
|
* @param {boolean} [props.checked] - Controlled checked state
|
|
345
|
-
* @param {
|
|
346
|
-
* @param {boolean} [props.
|
|
347
|
-
* @param {
|
|
388
|
+
* @param {boolean} [props.defaultChecked] - Initial unchecked/checked state
|
|
389
|
+
* @param {(checked: boolean) => void} [props.onCheckedChange] - Checked state change handler
|
|
390
|
+
* @param {boolean} [props.indeterminate] - Shows a mixed/indeterminate state with a minus icon
|
|
391
|
+
* @param {boolean} [props.disabled] - Disables interaction and applies disabled styles
|
|
392
|
+
* @param {string} [props.className] - Additional class names for custom styling
|
|
348
393
|
*/
|
|
349
|
-
declare const Checkbox: React$1.ForwardRefExoticComponent<Omit<
|
|
394
|
+
declare const Checkbox: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react_checkbox.CheckboxRootProps, "ref"> & React$1.RefAttributes<HTMLElement>, "ref"> & React$1.RefAttributes<HTMLElement>>;
|
|
350
395
|
|
|
351
396
|
declare const switchVariants: (props?: ({
|
|
352
397
|
size?: "default" | "sm" | null | undefined;
|
|
@@ -393,16 +438,60 @@ declare const Textarea: React$1.ForwardRefExoticComponent<TextareaProps & React$
|
|
|
393
438
|
* Badge variant styles.
|
|
394
439
|
*/
|
|
395
440
|
declare const badgeVariants: (props?: ({
|
|
396
|
-
variant?: "
|
|
441
|
+
variant?: "primary" | "destructive" | "ghost" | "secondary" | "outline" | null | undefined;
|
|
442
|
+
rounded?: boolean | null | undefined;
|
|
397
443
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
398
444
|
interface BadgeProps extends React$1.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof badgeVariants> {
|
|
399
445
|
}
|
|
400
446
|
/**
|
|
401
447
|
* Badge component for status and informational labels.
|
|
402
448
|
* @param {string} [props.variant] - Badge color variant
|
|
449
|
+
* @param {boolean} [props.rounded] - Pill shape when true; 6px radius when false.
|
|
450
|
+
* With a single character, uses a fixed square (`size-5`): circle if rounded, else `rounded-md`.
|
|
403
451
|
*/
|
|
404
452
|
declare const Badge: React$1.ForwardRefExoticComponent<BadgeProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
405
453
|
|
|
454
|
+
/**
|
|
455
|
+
* Wrapper that provides `role="list"` semantics and adjusts gap spacing
|
|
456
|
+
* based on the `size` of its child Items.
|
|
457
|
+
*/
|
|
458
|
+
declare const ItemGroup: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
459
|
+
declare const ItemSeparator: React$1.ForwardRefExoticComponent<Omit<Omit<_base_ui_react.SeparatorProps, "ref"> & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
460
|
+
/** Item variant styles. */
|
|
461
|
+
declare const itemVariants: (props?: ({
|
|
462
|
+
variant?: "default" | "outline" | "muted" | null | undefined;
|
|
463
|
+
size?: "default" | "sm" | null | undefined;
|
|
464
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
465
|
+
type ItemProps = useRender.ComponentProps<"div"> & VariantProps<typeof itemVariants>;
|
|
466
|
+
/**
|
|
467
|
+
* Core Item component. Renders as a `div`. Automatically gets `role="listitem"`
|
|
468
|
+
* when inside an `ItemGroup` (`role="list"`), and no role otherwise.
|
|
469
|
+
* Supports polymorphic rendering via the `render` prop (e.g. `<a>`, `<Link>`).
|
|
470
|
+
*/
|
|
471
|
+
declare const Item: {
|
|
472
|
+
({ className, variant, size, render, ...props }: ItemProps): React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>>;
|
|
473
|
+
displayName: string;
|
|
474
|
+
};
|
|
475
|
+
/** ItemMedia variant styles. */
|
|
476
|
+
declare const itemMediaVariants: (props?: ({
|
|
477
|
+
variant?: "default" | "image" | "icon" | "iconBadge" | null | undefined;
|
|
478
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
479
|
+
type ItemMediaProps = React$1.ComponentProps<"div"> & VariantProps<typeof itemMediaVariants>;
|
|
480
|
+
/**
|
|
481
|
+
* Leading visual slot. Use `variant="icon"` for SVG icons (auto-sized to 20px),
|
|
482
|
+
* `variant="iconBadge"` for icons in a 32px badge container (icon auto-sized to 16px),
|
|
483
|
+
* or `variant="image"` for thumbnails (cropped to fit, size-responsive).
|
|
484
|
+
*/
|
|
485
|
+
declare const ItemMedia: React$1.ForwardRefExoticComponent<Omit<ItemMediaProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
486
|
+
/** Flex container for title and description. Grows to fill available space. */
|
|
487
|
+
declare const ItemContent: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
488
|
+
declare const ItemTitle: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
489
|
+
/** Secondary text, clamped to 2 lines. Inline links are auto-styled. */
|
|
490
|
+
declare const ItemDescription: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
491
|
+
declare const ItemActions: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
492
|
+
declare const ItemHeader: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
493
|
+
declare const ItemFooter: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
494
|
+
|
|
406
495
|
/**
|
|
407
496
|
* @fileoverview Shared TypeScript types for PDF viewer components.
|
|
408
497
|
*/
|
|
@@ -987,7 +1076,7 @@ declare function ChartLegend({ items, x, y, className, }: ChartLegendProps): rea
|
|
|
987
1076
|
* Label props from Recharts.
|
|
988
1077
|
* @internal
|
|
989
1078
|
*/
|
|
990
|
-
interface
|
|
1079
|
+
interface ChartAxisLabelProps {
|
|
991
1080
|
viewBox?: {
|
|
992
1081
|
x: number;
|
|
993
1082
|
y: number;
|
|
@@ -1014,7 +1103,7 @@ interface TickProps {
|
|
|
1014
1103
|
* @returns React component for X-axis label
|
|
1015
1104
|
*/
|
|
1016
1105
|
declare const createCustomXAxisLabel: (text: string, yOffset?: number) => {
|
|
1017
|
-
({ viewBox }:
|
|
1106
|
+
({ viewBox }: ChartAxisLabelProps): react_jsx_runtime.JSX.Element | null;
|
|
1018
1107
|
displayName: string;
|
|
1019
1108
|
};
|
|
1020
1109
|
/**
|
|
@@ -1025,7 +1114,7 @@ declare const createCustomXAxisLabel: (text: string, yOffset?: number) => {
|
|
|
1025
1114
|
* @returns React component for Y-axis label
|
|
1026
1115
|
*/
|
|
1027
1116
|
declare const createCustomYAxisLabel: (text: string, leftMargin?: number) => {
|
|
1028
|
-
({ viewBox }:
|
|
1117
|
+
({ viewBox }: ChartAxisLabelProps): react_jsx_runtime.JSX.Element | null;
|
|
1029
1118
|
displayName: string;
|
|
1030
1119
|
};
|
|
1031
1120
|
/**
|
|
@@ -1035,7 +1124,7 @@ declare const createCustomYAxisLabel: (text: string, leftMargin?: number) => {
|
|
|
1035
1124
|
* @returns React component for right Y-axis label
|
|
1036
1125
|
*/
|
|
1037
1126
|
declare const createCustomYAxisRightLabel: (text: string) => {
|
|
1038
|
-
({ viewBox }:
|
|
1127
|
+
({ viewBox }: ChartAxisLabelProps): react_jsx_runtime.JSX.Element | null;
|
|
1039
1128
|
displayName: string;
|
|
1040
1129
|
};
|
|
1041
1130
|
/**
|
|
@@ -1281,4 +1370,4 @@ interface TableProps<T> {
|
|
|
1281
1370
|
*/
|
|
1282
1371
|
declare function Table<T>({ table, className, showPagination, paginationClassName, }: TableProps<T>): react_jsx_runtime.JSX.Element;
|
|
1283
1372
|
|
|
1284
|
-
export { ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, Badge, type BadgeProps, BarChart, type BarChartData, type BarChartProps, BellIcon, BookmarkIcon, type BoundingBox, type BoundingBoxStyle, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, CHART_COLORS, CHART_CONSTANTS, COLOR_SCHEMES, CalendarIcon, Card, CardAction, type CardActionProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, CaretDownIcon, CaretLeftIcon, CaretRightIcon, CaretUpIcon, type ChartColorScheme, ChartLegend, type ChartLegendProps, ChatIcon, CheckIcon, Checkbox, type CheckboxProps, CheckmarkIcon, CheckmarkSquareIcon, CloseIcon, CogIcon, CredentialsIcon, DatePicker, type DatePickerProps, DocumentIcon, DollarIcon, DownloadIcon, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type DropdownMenuTriggerProps, EditIcon, EnvelopeIcon, ExclamationIcon, EyeClosedIcon, EyeOpenIcon, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FilterDescendingIcon, FilterIcon, GenericTooltip, type GenericTooltipProps, GraphBarIcon, GraphDonutIcon, GraphLineIcon, GraphPieIcon, HamburgerMenuIcon, HomeIcon, type IconProps, type IconVariant, type IconWeight, InformationIcon, Input, type InputProps, Label, type LabelProps, type LegendItem, LineChart, type LineChartData, type LineChartProps, type LineSeries, LocationIcon, LockIcon, LogoutIcon, MagnifyingGlassIcon, MinusIcon, MoreMenuIcon, PanelIcon, type PdfFile, PdfViewer, type PdfViewerProps, PhoneIcon, PieChart, type PieChartData, type PieChartProps, type PieLabelProps, PlusIcon, PrintIcon, QuestionCircleIcon, type ScrollTarget, Select, SelectContent, type SelectContentProps, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, Separator, type SeparatorProps, ShareIcon, Sidebar, SidebarContent, type SidebarContentProps, SidebarFooter, type SidebarFooterProps, SidebarGroup, SidebarGroupContent, type SidebarGroupContentProps, type SidebarGroupProps, SidebarHeader, type SidebarHeaderProps, SidebarInset, type SidebarInsetProps, SidebarMenu, SidebarMenuButton, type SidebarMenuButtonProps, SidebarMenuItem, type SidebarMenuItemProps, type SidebarMenuProps, type SidebarProps, SidebarProvider, type SidebarProviderProps, StarIcon, StatementIcon, Switch, type SwitchProps, Table, TableIcon, type TableProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, Text, type TextProps, Textarea, type TextareaProps, type TickProps, Tooltip, TooltipContainer, type TooltipContainerProps, TooltipContent, type TooltipContentProps, TooltipItem, type TooltipItemProps, type TooltipProps, TooltipProvider, type TooltipProviderProps, TooltipTrigger, type TooltipTriggerProps, TrashIcon, Typography, type TypographyProps, Upload, type UploadProps, UserIcon, UserMultiIcon, WarningIcon, WrenchIcon, badgeVariants, buttonVariants, calculateYAxisWidth, checkboxVariants, createCustomXAxisLabel, createCustomYAxisLabel, createCustomYAxisRightLabel, createLegendItems, customXAxisTick, customXAxisTickRotated, customYAxisTick, formatLargeNumber, formatPercentage, getHeatmapColor, getPerformanceColor, getSeriesColor, initializePdfWorker, selectTriggerVariants, switchVariants, tabsVariants, textVariants, typographyVariants, uploadVariants, useSidebar };
|
|
1373
|
+
export { ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, Badge, type BadgeProps, BarChart, type BarChartData, type BarChartProps, BellIcon, BookmarkIcon, type BoundingBox, type BoundingBoxStyle, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, type ButtonProps, CHART_COLORS, CHART_CONSTANTS, COLOR_SCHEMES, CalendarIcon, Card, CardAction, type CardActionProps, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, CaretDownIcon, CaretLeftIcon, CaretRightIcon, CaretUpIcon, type ChartAxisLabelProps, type ChartColorScheme, ChartLegend, type ChartLegendProps, ChatIcon, CheckIcon, Checkbox, type CheckboxProps, CheckmarkIcon, CheckmarkSquareIcon, CloseIcon, CogIcon, CredentialsIcon, DatePicker, type DatePickerProps, Dialog, DialogBody, type DialogBodyProps, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogOverlay, type DialogOverlayProps, type DialogProps, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps, DocumentIcon, DollarIcon, DownloadIcon, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type DropdownMenuTriggerProps, EditIcon, EnvelopeIcon, ExclamationIcon, EyeClosedIcon, EyeOpenIcon, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FilterDescendingIcon, FilterIcon, GenericTooltip, type GenericTooltipProps, GraphBarIcon, GraphDonutIcon, GraphLineIcon, GraphPieIcon, HamburgerMenuIcon, HomeIcon, type IconProps, type IconVariant, type IconWeight, InformationIcon, Input, type InputProps, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, type ItemMediaProps, type ItemProps, ItemSeparator, ItemTitle, Label, type LabelProps, type LegendItem, LineChart, type LineChartData, type LineChartProps, type LineSeries, LocationIcon, LockIcon, LogoutIcon, MagnifyingGlassIcon, MinusIcon, MoreMenuIcon, PanelIcon, type PdfFile, PdfViewer, type PdfViewerProps, PhoneIcon, PieChart, type PieChartData, type PieChartProps, type PieLabelProps, PlusIcon, PrintIcon, QuestionCircleIcon, type ScrollTarget, Select, SelectContent, type SelectContentProps, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, type SelectTriggerProps, SelectValue, Separator, type SeparatorProps, ShareIcon, Sidebar, SidebarContent, type SidebarContentProps, SidebarFooter, type SidebarFooterProps, SidebarGroup, SidebarGroupContent, type SidebarGroupContentProps, type SidebarGroupProps, SidebarHeader, type SidebarHeaderProps, SidebarInset, type SidebarInsetProps, SidebarMenu, SidebarMenuButton, type SidebarMenuButtonProps, SidebarMenuItem, type SidebarMenuItemProps, type SidebarMenuProps, type SidebarProps, SidebarProvider, type SidebarProviderProps, StarIcon, StatementIcon, Switch, type SwitchProps, Table, TableIcon, type TableProps, Tabs, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsProps, TabsTrigger, type TabsTriggerProps, Text, type TextProps, Textarea, type TextareaProps, type TickProps, Tooltip, TooltipContainer, type TooltipContainerProps, TooltipContent, type TooltipContentProps, TooltipItem, type TooltipItemProps, type TooltipProps, TooltipProvider, type TooltipProviderProps, TooltipTrigger, type TooltipTriggerProps, TrashIcon, Typography, type TypographyProps, Upload, type UploadProps, UserIcon, UserMultiIcon, WarningIcon, WrenchIcon, badgeVariants, buttonVariants, calculateYAxisWidth, checkboxVariants, createCustomXAxisLabel, createCustomYAxisLabel, createCustomYAxisRightLabel, createLegendItems, customXAxisTick, customXAxisTickRotated, customYAxisTick, formatLargeNumber, formatPercentage, getHeatmapColor, getPerformanceColor, getSeriesColor, initializePdfWorker, itemMediaVariants, itemVariants, selectTriggerVariants, switchVariants, tabsVariants, textVariants, typographyVariants, uploadVariants, useSidebar };
|