@kismet-ux/constellation 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/form.d.ts +1 -1
- package/dist/{index-BLcVtjt9.d.ts → index-B2OAQ0Io.d.ts} +2 -2
- package/dist/index-BFML4dx6.d.ts +495 -0
- package/dist/index-BoCKYYd6.d.ts +202 -0
- package/dist/{index-6RTzMxvi.d.ts → index-Bzf20Rpc.d.ts} +1 -1
- package/dist/index-CEMsTqPt.d.ts +495 -0
- package/dist/index-DVEBz660.d.ts +120 -0
- package/dist/{index-CSnovrxl.d.ts → index-cmvXElP9.d.ts} +13 -13
- package/dist/index-t_i-1mY7.d.ts +202 -0
- package/dist/index.css +1 -3
- package/dist/index.d.ts +6 -6
- package/dist/layout.d.ts +2 -2
- package/dist/navigation.d.ts +1 -1
- package/dist/tokens.css +1 -0
- package/dist/tooltip-CzF4au7i.d.ts +41 -0
- package/dist/{tooltip-Bb0qqHZI.d.ts → tooltip-XagXjWLB.d.ts} +1 -1
- package/dist/tooltip-zOT3UHCF.d.ts +41 -0
- package/dist/ui.d.ts +2 -2
- package/package.json +2 -1
package/dist/form.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as Checkbox, a as CheckboxProps, D as DatePicker, L as Label, c as LabelProps, S as Select, e as SelectContent, g as SelectField, i as SelectGroup, j as SelectItem, m as SelectSeparator, o as SelectTrigger, p as SelectValue } from './index-
|
|
1
|
+
export { C as Checkbox, a as CheckboxProps, D as DatePicker, L as Label, c as LabelProps, S as Select, e as SelectContent, g as SelectField, i as SelectGroup, j as SelectItem, m as SelectSeparator, o as SelectTrigger, p as SelectValue } from './index-Bzf20Rpc.js';
|
|
2
2
|
export { I as Input, a as InputBaseProps } from './input-CWHXOpeH.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
import 'class-variance-authority';
|
|
@@ -3,7 +3,7 @@ import React__default from 'react';
|
|
|
3
3
|
import { d as SidebarSection, S as SidebarNavItem, B as BreadcrumbItemData, c as NavUserProps } from './nav-user-CJIcWKyY.js';
|
|
4
4
|
import { R as RowProps } from './row-CS9-talZ.js';
|
|
5
5
|
import { I as Input } from './input-CWHXOpeH.js';
|
|
6
|
-
import { b as TooltipContent, B as Button } from './tooltip-
|
|
6
|
+
import { b as TooltipContent, B as Button } from './tooltip-XagXjWLB.js';
|
|
7
7
|
import { VariantProps } from 'class-variance-authority';
|
|
8
8
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
9
9
|
|
|
@@ -143,7 +143,7 @@ declare const Grid: React.ForwardRefExoticComponent<GridProps & React.RefAttribu
|
|
|
143
143
|
declare const Row: React.FC<RowProps>;
|
|
144
144
|
|
|
145
145
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
146
|
-
variant?: "
|
|
146
|
+
variant?: "default" | "outline" | null | undefined;
|
|
147
147
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
148
148
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
149
149
|
|
|
@@ -0,0 +1,495 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import React__default, { ReactNode } from 'react';
|
|
4
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
|
+
import './tooltip-zOT3UHCF.js';
|
|
6
|
+
import { e as TypographyVariant } from './typography-DOZHFR5A.js';
|
|
7
|
+
|
|
8
|
+
type AlertTheme = 'default' | 'primary' | 'secondary' | 'success' | 'destructive' | 'warning' | 'info' | 'slate';
|
|
9
|
+
type AlertMessage = {
|
|
10
|
+
id: string;
|
|
11
|
+
title: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
theme: AlertTheme;
|
|
14
|
+
timeout?: number;
|
|
15
|
+
persistent?: boolean;
|
|
16
|
+
closable?: boolean;
|
|
17
|
+
};
|
|
18
|
+
type PushAlertInput = Omit<AlertMessage, 'id'> & {
|
|
19
|
+
icon?: ReactNode;
|
|
20
|
+
action?: ReactNode;
|
|
21
|
+
};
|
|
22
|
+
type AlertContextValue = {
|
|
23
|
+
pushAlert: (alert: PushAlertInput) => void;
|
|
24
|
+
removeAlert: (id: string) => void;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
type PaginationProps = {
|
|
28
|
+
page: number;
|
|
29
|
+
pageSize: number;
|
|
30
|
+
totalItems: number;
|
|
31
|
+
onPageChange: (page: number) => void;
|
|
32
|
+
onPageSizeChange: (size: number) => void;
|
|
33
|
+
pageSizeOptions?: number[];
|
|
34
|
+
className?: string;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
type SortDirection = 'asc' | 'desc';
|
|
38
|
+
type SortState = {
|
|
39
|
+
key: string;
|
|
40
|
+
direction: SortDirection;
|
|
41
|
+
};
|
|
42
|
+
type SortContextValue = {
|
|
43
|
+
sortState: SortState | null;
|
|
44
|
+
setSortState: React__default.Dispatch<React__default.SetStateAction<SortState | null>>;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
declare const alertVariants: (props?: ({
|
|
48
|
+
theme?: "destructive" | "primary" | "secondary" | "warning" | "success" | "info" | "slate" | "default" | null | undefined;
|
|
49
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
50
|
+
|
|
51
|
+
interface AlertProps extends VariantProps<typeof alertVariants> {
|
|
52
|
+
className?: string;
|
|
53
|
+
icon?: React.ReactNode;
|
|
54
|
+
action?: React.ReactNode;
|
|
55
|
+
onClose?: () => void;
|
|
56
|
+
children?: React.ReactNode;
|
|
57
|
+
}
|
|
58
|
+
declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
|
|
59
|
+
declare function AlertTitle({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
60
|
+
declare function AlertDescription({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
61
|
+
interface AlertBannerProps extends VariantProps<typeof alertVariants> {
|
|
62
|
+
open: boolean;
|
|
63
|
+
onClose?: () => void;
|
|
64
|
+
icon?: boolean | React.ReactNode;
|
|
65
|
+
action?: React.ReactNode;
|
|
66
|
+
className?: string;
|
|
67
|
+
children?: React.ReactNode;
|
|
68
|
+
}
|
|
69
|
+
declare const AlertBanner: React.ForwardRefExoticComponent<AlertBannerProps & React.RefAttributes<HTMLDivElement>>;
|
|
70
|
+
|
|
71
|
+
declare const persistAlert: (alert: Omit<AlertMessage, "id">) => void;
|
|
72
|
+
|
|
73
|
+
declare function AlertProvider({ children }: {
|
|
74
|
+
children: React.ReactNode;
|
|
75
|
+
}): React.JSX.Element;
|
|
76
|
+
|
|
77
|
+
type AvatarProps = React.HTMLAttributes<HTMLSpanElement>;
|
|
78
|
+
declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
|
|
79
|
+
type AvatarImageProps = React.ImgHTMLAttributes<HTMLImageElement>;
|
|
80
|
+
declare const AvatarImage: React.ForwardRefExoticComponent<AvatarImageProps & React.RefAttributes<HTMLImageElement>>;
|
|
81
|
+
type AvatarFallbackProps = React.HTMLAttributes<HTMLSpanElement>;
|
|
82
|
+
declare const AvatarFallback: React.ForwardRefExoticComponent<AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>>;
|
|
83
|
+
|
|
84
|
+
declare const chipVariants: (props?: ({
|
|
85
|
+
theme?: "destructive" | "inherit" | "primary" | "secondary" | "warning" | "success" | "info" | "slate" | null | undefined;
|
|
86
|
+
variant?: "soft" | "outline" | "solid" | null | undefined;
|
|
87
|
+
size?: "sm" | "md" | "xs" | "2xs" | null | undefined;
|
|
88
|
+
shape?: "rounded" | "pill" | null | undefined;
|
|
89
|
+
dashed?: boolean | null | undefined;
|
|
90
|
+
mono?: boolean | null | undefined;
|
|
91
|
+
uppercase?: boolean | null | undefined;
|
|
92
|
+
wrap?: boolean | null | undefined;
|
|
93
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
94
|
+
|
|
95
|
+
interface ChipProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof chipVariants> {
|
|
96
|
+
/**
|
|
97
|
+
* Any colour outside the theme scale — a category hue, a dietary marker.
|
|
98
|
+
* Overrides the whole set of colour roles the theme would otherwise supply,
|
|
99
|
+
* so one value is enough for every `variant`.
|
|
100
|
+
*/
|
|
101
|
+
color?: string;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* A small status marker.
|
|
105
|
+
*
|
|
106
|
+
* `variant` chooses how much weight it carries: `soft` (a tinted fill, the
|
|
107
|
+
* default) reads as ambient, `outline` recedes further, and `solid` is a claim.
|
|
108
|
+
* `dashed` marks the value as provisional — a guess rather than a reading —
|
|
109
|
+
* which is a distinction worth drawing without spending a second colour on it.
|
|
110
|
+
*/
|
|
111
|
+
declare const Chip: React.ForwardRefExoticComponent<ChipProps & React.RefAttributes<HTMLSpanElement>>;
|
|
112
|
+
|
|
113
|
+
declare const codeBlockVariants: (props?: ({
|
|
114
|
+
theme?: "destructive" | "primary" | "secondary" | "warning" | "success" | "info" | "slate" | "default" | null | undefined;
|
|
115
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
116
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
117
|
+
|
|
118
|
+
interface CodeBlockProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>, VariantProps<typeof codeBlockVariants> {
|
|
119
|
+
/** The code content to display. */
|
|
120
|
+
children: string;
|
|
121
|
+
/** Language label displayed in the header (e.g. "sql", "json", "typescript"). */
|
|
122
|
+
language?: string;
|
|
123
|
+
/** Show a copy-to-clipboard button. */
|
|
124
|
+
copyable?: boolean;
|
|
125
|
+
/** Enable collapse/expand behavior. When true, content is initially collapsed. */
|
|
126
|
+
collapsible?: boolean;
|
|
127
|
+
/** Max height in rem when collapsed. Defaults to 12. */
|
|
128
|
+
collapsedHeight?: number;
|
|
129
|
+
/** Whether the code block starts expanded when `collapsible` is true. */
|
|
130
|
+
defaultExpanded?: boolean;
|
|
131
|
+
}
|
|
132
|
+
declare const CodeBlock: React.ForwardRefExoticComponent<CodeBlockProps & React.RefAttributes<HTMLDivElement>>;
|
|
133
|
+
|
|
134
|
+
interface DevIndicatorProps {
|
|
135
|
+
className?: string;
|
|
136
|
+
}
|
|
137
|
+
declare function DevIndicator({ className }: DevIndicatorProps): React.JSX.Element | null;
|
|
138
|
+
|
|
139
|
+
interface DialogProps {
|
|
140
|
+
open?: boolean;
|
|
141
|
+
defaultOpen?: boolean;
|
|
142
|
+
onOpenChange?: (open: boolean) => void;
|
|
143
|
+
onAfterClose?: () => void;
|
|
144
|
+
children?: React.ReactNode;
|
|
145
|
+
}
|
|
146
|
+
declare function Dialog({ open: controlledOpen, defaultOpen, onOpenChange, onAfterClose, children, }: DialogProps): React.JSX.Element;
|
|
147
|
+
interface DialogTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
148
|
+
asChild?: boolean;
|
|
149
|
+
}
|
|
150
|
+
declare function DialogTrigger({ asChild, onClick, children, ...props }: DialogTriggerProps): React.JSX.Element;
|
|
151
|
+
interface DialogCloseProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
152
|
+
asChild?: boolean;
|
|
153
|
+
}
|
|
154
|
+
declare function DialogClose({ asChild, onClick, children, ...props }: DialogCloseProps): React.JSX.Element;
|
|
155
|
+
declare function DialogOverlay({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
156
|
+
type DialogContentProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
157
|
+
width?: 'max' | 'min';
|
|
158
|
+
};
|
|
159
|
+
declare function DialogContent({ className, children, width, ...props }: DialogContentProps): React.ReactPortal | null;
|
|
160
|
+
declare function DialogHeader({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
161
|
+
declare function DialogFooter({ className, ...props }: React.ComponentProps<'div'>): React.JSX.Element;
|
|
162
|
+
/**
|
|
163
|
+
* Renders the dialog's heading. Defaults to `<Typography variant='h6'>`
|
|
164
|
+
* so consumers can write `<DialogTitle>My dialog</DialogTitle>` without
|
|
165
|
+
* manually wrapping in Typography. Override the variant with the
|
|
166
|
+
* `variant` prop, or opt out entirely with `asChild` to supply a custom
|
|
167
|
+
* element (e.g., a Heading component).
|
|
168
|
+
*/
|
|
169
|
+
declare function DialogTitle({ className, asChild, variant, ...props }: React.ComponentProps<'h2'> & {
|
|
170
|
+
asChild?: boolean;
|
|
171
|
+
variant?: TypographyVariant;
|
|
172
|
+
}): React.JSX.Element;
|
|
173
|
+
/**
|
|
174
|
+
* Renders the dialog's supporting description text. Defaults to
|
|
175
|
+
* `<Typography variant='body2'>`. Override with `variant` or supply a
|
|
176
|
+
* custom element via `asChild`.
|
|
177
|
+
*/
|
|
178
|
+
declare function DialogDescription({ className, asChild, variant, ...props }: React.ComponentProps<'p'> & {
|
|
179
|
+
asChild?: boolean;
|
|
180
|
+
variant?: TypographyVariant;
|
|
181
|
+
}): React.JSX.Element;
|
|
182
|
+
declare function DialogPortal({ children }: {
|
|
183
|
+
children?: React.ReactNode;
|
|
184
|
+
}): React.JSX.Element;
|
|
185
|
+
|
|
186
|
+
declare const emptyStateVariants: (props?: ({
|
|
187
|
+
theme?: "destructive" | "primary" | "secondary" | "warning" | "success" | "info" | "slate" | "default" | null | undefined;
|
|
188
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
189
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
190
|
+
|
|
191
|
+
interface EmptyStateProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof emptyStateVariants> {
|
|
192
|
+
/** Icon displayed above the title. */
|
|
193
|
+
icon?: React.ReactNode;
|
|
194
|
+
/** Primary heading text. */
|
|
195
|
+
title: string;
|
|
196
|
+
/** Secondary descriptive text below the title. */
|
|
197
|
+
description?: string;
|
|
198
|
+
/** Action element (typically a Button) rendered below the text. */
|
|
199
|
+
action?: React.ReactNode;
|
|
200
|
+
}
|
|
201
|
+
declare const EmptyState: React.ForwardRefExoticComponent<EmptyStateProps & React.RefAttributes<HTMLDivElement>>;
|
|
202
|
+
|
|
203
|
+
declare const iconVariants: (props?: ({
|
|
204
|
+
variant?: "contained" | "outlined" | "ghost" | "plain" | null | undefined;
|
|
205
|
+
theme?: "destructive" | "inherit" | "primary" | "secondary" | "warning" | "success" | "info" | "slate" | null | undefined;
|
|
206
|
+
size?: "sm" | "md" | "lg" | "xs" | null | undefined;
|
|
207
|
+
rounded?: boolean | "extra" | null | undefined;
|
|
208
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
209
|
+
|
|
210
|
+
type IconVariantSize = NonNullable<VariantProps<typeof iconVariants>['size']>;
|
|
211
|
+
type IconNodeProps = React.SVGProps<SVGSVGElement> & {
|
|
212
|
+
size?: string | number;
|
|
213
|
+
};
|
|
214
|
+
interface IconProps extends React.HTMLAttributes<HTMLSpanElement>, Omit<VariantProps<typeof iconVariants>, 'size'> {
|
|
215
|
+
iconNode: React.ComponentType<IconNodeProps>;
|
|
216
|
+
size?: IconVariantSize | number;
|
|
217
|
+
/** Apply 1s linear infinite rotation to the inner SVG; also defaults role='status' for a11y. */
|
|
218
|
+
spin?: boolean;
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Standalone icon with a sized wrapper box (e.g. status indicators, list-item
|
|
222
|
+
* leaders, themed avatars). Renders `<span><svg/></span>` — the span carries
|
|
223
|
+
* the `iconVariants` background/border for contained/outlined variants and a
|
|
224
|
+
* fixed pixel box per `size`.
|
|
225
|
+
*
|
|
226
|
+
* **DO NOT** place inside `Button`, `Chip`, `DropdownMenuItem`, or other host
|
|
227
|
+
* components that already size their SVG children via `:has(> svg)`. The host's
|
|
228
|
+
* size + padding adjustments only trigger for a direct-child `<svg>`, and
|
|
229
|
+
* Icon's wrapper span breaks that rule — you end up with the host's default
|
|
230
|
+
* (wider) padding plus Icon's full-height box (e.g. 1.85rem for `size='sm'`).
|
|
231
|
+
*
|
|
232
|
+
* Inside a host that sizes its own svg, pass the raw lucide component directly:
|
|
233
|
+
*
|
|
234
|
+
* ```tsx
|
|
235
|
+
* <Button>
|
|
236
|
+
* <CheckIcon />
|
|
237
|
+
* Save
|
|
238
|
+
* </Button>
|
|
239
|
+
*
|
|
240
|
+
* <Button>
|
|
241
|
+
* <Loader2Icon className={'animate-spin'} />
|
|
242
|
+
* Saving…
|
|
243
|
+
* </Button>
|
|
244
|
+
* ```
|
|
245
|
+
*
|
|
246
|
+
* Use `Icon` only when the wrapper box is desired (standalone use).
|
|
247
|
+
*/
|
|
248
|
+
declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<HTMLSpanElement>>;
|
|
249
|
+
|
|
250
|
+
interface ListProps extends React.HTMLAttributes<HTMLUListElement | HTMLOListElement> {
|
|
251
|
+
variant?: 'disc' | 'decimal' | 'none';
|
|
252
|
+
gap?: number;
|
|
253
|
+
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
254
|
+
muted?: boolean;
|
|
255
|
+
}
|
|
256
|
+
declare const List: React.ForwardRefExoticComponent<ListProps & React.RefAttributes<HTMLOListElement | HTMLUListElement>>;
|
|
257
|
+
interface ListItemProps extends React.LiHTMLAttributes<HTMLLIElement> {
|
|
258
|
+
icon?: React.ReactNode;
|
|
259
|
+
}
|
|
260
|
+
declare const ListItem: React.ForwardRefExoticComponent<ListItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
261
|
+
|
|
262
|
+
declare const Pagination: React.ForwardRefExoticComponent<PaginationProps & React.RefAttributes<HTMLElement>>;
|
|
263
|
+
|
|
264
|
+
declare const progressBarVariants: (props?: ({
|
|
265
|
+
theme?: "destructive" | "inherit" | "primary" | "secondary" | "warning" | "success" | "info" | "slate" | null | undefined;
|
|
266
|
+
size?: "sm" | "md" | "lg" | "xs" | null | undefined;
|
|
267
|
+
rounded?: boolean | null | undefined;
|
|
268
|
+
animated?: boolean | null | undefined;
|
|
269
|
+
indeterminate?: boolean | null | undefined;
|
|
270
|
+
striped?: boolean | null | undefined;
|
|
271
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
272
|
+
|
|
273
|
+
interface ProgressBarProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'>, VariantProps<typeof progressBarVariants> {
|
|
274
|
+
/** Current progress value (0–100). Ignored when `indeterminate` is true. */
|
|
275
|
+
value?: number;
|
|
276
|
+
/** Accessible label describing what the progress bar represents. */
|
|
277
|
+
label?: string;
|
|
278
|
+
}
|
|
279
|
+
declare const ProgressBar: React.ForwardRefExoticComponent<ProgressBarProps & React.RefAttributes<HTMLDivElement>>;
|
|
280
|
+
|
|
281
|
+
interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
282
|
+
orientation?: 'horizontal' | 'vertical';
|
|
283
|
+
decorative?: boolean;
|
|
284
|
+
}
|
|
285
|
+
declare const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
286
|
+
|
|
287
|
+
type TrendDirection = 'up' | 'down' | 'neutral';
|
|
288
|
+
type StatCardTheme = 'default' | 'primary' | 'secondary' | 'destructive' | 'warning' | 'success' | 'info' | 'slate';
|
|
289
|
+
type StatCardSize = 'sm' | 'md' | 'lg';
|
|
290
|
+
type StatCardVariant = 'unstyled' | 'outlined' | 'filled';
|
|
291
|
+
type StatCardDirection = 'row' | 'column';
|
|
292
|
+
interface StatCardProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
293
|
+
/** Text label describing the metric. */
|
|
294
|
+
label: string;
|
|
295
|
+
/** The metric value to display. */
|
|
296
|
+
value?: React.ReactNode;
|
|
297
|
+
/** Icon displayed beside the metric. */
|
|
298
|
+
icon?: React.ReactNode;
|
|
299
|
+
/** Optional description below the value. */
|
|
300
|
+
description?: string;
|
|
301
|
+
/** Trend direction indicator. */
|
|
302
|
+
trend?: TrendDirection;
|
|
303
|
+
/** Trend label text (e.g. "+12%", "−3.4%"). */
|
|
304
|
+
trendLabel?: string;
|
|
305
|
+
/** Visual theme for the card. */
|
|
306
|
+
theme?: StatCardTheme;
|
|
307
|
+
/** Card size. */
|
|
308
|
+
size?: StatCardSize;
|
|
309
|
+
/** Card Direction. */
|
|
310
|
+
direction?: StatCardDirection;
|
|
311
|
+
/** Surface variant. */
|
|
312
|
+
variant?: StatCardVariant;
|
|
313
|
+
}
|
|
314
|
+
declare const StatCard: React.ForwardRefExoticComponent<StatCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
315
|
+
|
|
316
|
+
declare const statusDotVariants: (props?: ({
|
|
317
|
+
theme?: "destructive" | "inherit" | "primary" | "secondary" | "warning" | "success" | "info" | "slate" | null | undefined;
|
|
318
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
319
|
+
glow?: boolean | null | undefined;
|
|
320
|
+
pulse?: boolean | null | undefined;
|
|
321
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
322
|
+
|
|
323
|
+
interface StatusDotProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'color'>, VariantProps<typeof statusDotVariants> {
|
|
324
|
+
/** A colour outside the theme scale. */
|
|
325
|
+
color?: string;
|
|
326
|
+
/** Accessible name. Omit only when adjacent text already says the state. */
|
|
327
|
+
label?: string;
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* The dot that says what state a connection or process is in.
|
|
331
|
+
*
|
|
332
|
+
* Deliberately not a `Chip`: a chip is a bordered object that holds a word,
|
|
333
|
+
* where this is a single mark that usually sits *beside* one. Pairing it with
|
|
334
|
+
* text is the caller's job, which keeps the wording — and its translation —
|
|
335
|
+
* out of here.
|
|
336
|
+
*
|
|
337
|
+
* `glow` is for the state worth catching in peripheral vision (a save landing);
|
|
338
|
+
* `pulse` for one that is still in flight.
|
|
339
|
+
*/
|
|
340
|
+
declare const StatusDot: React.ForwardRefExoticComponent<StatusDotProps & React.RefAttributes<HTMLSpanElement>>;
|
|
341
|
+
|
|
342
|
+
declare const stepProgressVariants: (props?: ({
|
|
343
|
+
theme?: "destructive" | "inherit" | "primary" | "secondary" | "warning" | "success" | "info" | "slate" | null | undefined;
|
|
344
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
345
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
346
|
+
stretch?: boolean | null | undefined;
|
|
347
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
348
|
+
|
|
349
|
+
interface Step {
|
|
350
|
+
/** Label displayed next to or below the step indicator. */
|
|
351
|
+
label: string;
|
|
352
|
+
/** Optional secondary description below the label. */
|
|
353
|
+
description?: string;
|
|
354
|
+
/** Optional icon rendered inside the dot. Defaults to a checkmark for completed steps. */
|
|
355
|
+
icon?: React.ReactNode;
|
|
356
|
+
}
|
|
357
|
+
interface StepProgressProps extends Omit<React.HTMLAttributes<HTMLOListElement>, 'children'>, VariantProps<typeof stepProgressVariants> {
|
|
358
|
+
/** Array of step definitions. */
|
|
359
|
+
steps: Step[];
|
|
360
|
+
/** Zero-based index of the currently active step. Steps before this are complete. */
|
|
361
|
+
currentStep: number;
|
|
362
|
+
}
|
|
363
|
+
declare const StepProgress: React.ForwardRefExoticComponent<StepProgressProps & React.RefAttributes<HTMLOListElement>>;
|
|
364
|
+
|
|
365
|
+
declare const switchVariants: (props?: ({
|
|
366
|
+
theme?: "destructive" | "inherit" | "primary" | "secondary" | "warning" | "success" | "info" | "slate" | null | undefined;
|
|
367
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
368
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
369
|
+
|
|
370
|
+
interface SwitchProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onChange' | 'onClick'>, VariantProps<typeof switchVariants> {
|
|
371
|
+
pressed?: boolean;
|
|
372
|
+
onPressedChange?: (pressed: boolean) => void;
|
|
373
|
+
}
|
|
374
|
+
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
375
|
+
|
|
376
|
+
declare const TableCard: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
377
|
+
declare const Table: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLTableElement> & React.TableHTMLAttributes<HTMLTableElement> & {
|
|
378
|
+
defaultSort?: SortState;
|
|
379
|
+
}, "ref"> & React.RefAttributes<HTMLTableElement>>;
|
|
380
|
+
declare const TableHead: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
381
|
+
declare const TableFooter: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableSectionElement>, HTMLTableSectionElement>, "ref"> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
382
|
+
interface TableBodyProps extends React.ComponentProps<'tbody'> {
|
|
383
|
+
showEmptyState?: boolean;
|
|
384
|
+
emptyState?: React.ReactNode;
|
|
385
|
+
emptyStateColSpan?: number;
|
|
386
|
+
}
|
|
387
|
+
declare const TableBody: React.ForwardRefExoticComponent<Omit<TableBodyProps, "ref"> & React.RefAttributes<HTMLTableSectionElement>>;
|
|
388
|
+
declare const TableRow: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, "ref"> & React.RefAttributes<HTMLTableRowElement>>;
|
|
389
|
+
type TableHeaderProps = React.ComponentProps<'th'> & {
|
|
390
|
+
action?: 'sticky';
|
|
391
|
+
};
|
|
392
|
+
declare const TableHeader: React.ForwardRefExoticComponent<Omit<TableHeaderProps, "ref"> & React.RefAttributes<HTMLTableCellElement>>;
|
|
393
|
+
type TableCellProps = React.ComponentProps<'td'> & {
|
|
394
|
+
action?: 'sticky';
|
|
395
|
+
};
|
|
396
|
+
declare const TableCell: React.ForwardRefExoticComponent<Omit<TableCellProps, "ref"> & React.RefAttributes<HTMLTableCellElement>>;
|
|
397
|
+
interface TableSortableHeaderProps<Key extends string = string> {
|
|
398
|
+
label: string;
|
|
399
|
+
sortKey: Key;
|
|
400
|
+
defaultSort?: true | SortDirection;
|
|
401
|
+
action?: 'sticky';
|
|
402
|
+
}
|
|
403
|
+
declare function TableSortableHeader<Key extends string = string>({ label, sortKey, defaultSort, action, }: TableSortableHeaderProps<Key>): React.JSX.Element;
|
|
404
|
+
|
|
405
|
+
interface TableActionItem {
|
|
406
|
+
/** Visible label for the action. */
|
|
407
|
+
label: string;
|
|
408
|
+
/** Optional icon rendered before the label. */
|
|
409
|
+
icon?: React.ReactNode;
|
|
410
|
+
/** Click handler for this action. */
|
|
411
|
+
onClick?: () => void;
|
|
412
|
+
/** Whether the action is disabled. */
|
|
413
|
+
disabled?: boolean;
|
|
414
|
+
/** Visual variant — `destructive` renders the item in the destructive theme. */
|
|
415
|
+
variant?: 'default' | 'destructive';
|
|
416
|
+
}
|
|
417
|
+
interface TableActionCellProps extends React.ComponentProps<'div'> {
|
|
418
|
+
/** Array of actions to display. Renders a single button for one action, or a dropdown for multiple. */
|
|
419
|
+
actions: TableActionItem[];
|
|
420
|
+
/** Accessible label for the dropdown trigger button. */
|
|
421
|
+
dropdownLabel?: string;
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* Renders a right-aligned action cell for table rows.
|
|
425
|
+
*
|
|
426
|
+
* - **Single action**: renders a visible `<Button>` with the action label and optional icon.
|
|
427
|
+
* - **Multiple actions**: renders a `...` icon button that opens a `<DropdownMenu>`.
|
|
428
|
+
*/
|
|
429
|
+
declare const TableActionCell: React.ForwardRefExoticComponent<Omit<TableActionCellProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
430
|
+
|
|
431
|
+
interface TableToolbarProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
432
|
+
/**
|
|
433
|
+
* Left-aligned controls — typically a search Input plus zero or more
|
|
434
|
+
* filter SelectFields / DatePickers / Toggles. Children flow horizontally
|
|
435
|
+
* with `gap` and wrap on narrow screens.
|
|
436
|
+
*/
|
|
437
|
+
children?: React.ReactNode;
|
|
438
|
+
/**
|
|
439
|
+
* Right-aligned slot — for reset / clear / bulk-action buttons. Pushed to
|
|
440
|
+
* the end of the row via auto-margin; wraps to a new line on narrow
|
|
441
|
+
* screens if the controls grow too wide.
|
|
442
|
+
*/
|
|
443
|
+
actions?: React.ReactNode;
|
|
444
|
+
/**
|
|
445
|
+
* Render a 1px subtle bottom border to separate the toolbar from the
|
|
446
|
+
* Table or content below. Default `true`.
|
|
447
|
+
*/
|
|
448
|
+
divider?: boolean;
|
|
449
|
+
}
|
|
450
|
+
/**
|
|
451
|
+
* Container for the row of controls (search, filters, actions) that sits
|
|
452
|
+
* above a `Table` inside a `TableCard`. Presentational only — consumers
|
|
453
|
+
* own all filter state and search debouncing. The companion to
|
|
454
|
+
* `TableSearch` for the more common single-search case.
|
|
455
|
+
*/
|
|
456
|
+
declare const TableToolbar: React.ForwardRefExoticComponent<TableToolbarProps & React.RefAttributes<HTMLDivElement>>;
|
|
457
|
+
|
|
458
|
+
declare const toggleVariants: (props?: ({
|
|
459
|
+
variant?: "contained" | "outlined" | "ghost" | null | undefined;
|
|
460
|
+
theme?: "destructive" | "inherit" | "primary" | "secondary" | "warning" | "success" | "info" | "slate" | null | undefined;
|
|
461
|
+
size?: "sm" | "md" | "lg" | "xs" | null | undefined;
|
|
462
|
+
iconOnly?: boolean | null | undefined;
|
|
463
|
+
rounded?: boolean | "extra" | null | undefined;
|
|
464
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
465
|
+
|
|
466
|
+
interface ToggleProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onChange'>, VariantProps<typeof toggleVariants> {
|
|
467
|
+
pressed?: boolean;
|
|
468
|
+
defaultPressed?: boolean;
|
|
469
|
+
onPressedChange?: (pressed: boolean) => void;
|
|
470
|
+
value?: string;
|
|
471
|
+
}
|
|
472
|
+
declare const Toggle: React.ForwardRefExoticComponent<ToggleProps & React.RefAttributes<HTMLButtonElement>>;
|
|
473
|
+
|
|
474
|
+
type ToggleGroupBaseProps = VariantProps<typeof toggleVariants> & {
|
|
475
|
+
className?: string;
|
|
476
|
+
children?: React.ReactNode;
|
|
477
|
+
stretch?: boolean;
|
|
478
|
+
};
|
|
479
|
+
type ToggleGroupSingleProps = ToggleGroupBaseProps & {
|
|
480
|
+
type: 'single';
|
|
481
|
+
value?: string;
|
|
482
|
+
defaultValue?: string;
|
|
483
|
+
onValueChange?: (value: string) => void;
|
|
484
|
+
};
|
|
485
|
+
type ToggleGroupMultipleProps = ToggleGroupBaseProps & {
|
|
486
|
+
type: 'multiple';
|
|
487
|
+
value?: string[];
|
|
488
|
+
defaultValue?: string[];
|
|
489
|
+
onValueChange?: (value: string[]) => void;
|
|
490
|
+
};
|
|
491
|
+
type ToggleGroupProps = ToggleGroupSingleProps | ToggleGroupMultipleProps;
|
|
492
|
+
declare const ToggleGroup: React.ForwardRefExoticComponent<ToggleGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
493
|
+
|
|
494
|
+
export { DialogHeader as B, Chip as C, DevIndicator as D, DialogOverlay as E, DialogPortal as F, DialogTitle as H, DialogTrigger as I, EmptyState as K, Icon as M, List as O, ListItem as P, Pagination as T, ProgressBar as V, Separator as Y, Alert as a, StatCard as a0, StatusDot as a6, StepProgress as a9, Switch as ab, Table as ad, TableActionCell as ae, TableBody as ah, TableCard as aj, TableCell as ak, TableFooter as al, TableHead as am, TableHeader as an, TableRow as ao, TableSortableHeader as ap, TableToolbar as ar, Toggle as at, ToggleGroup as au, persistAlert as ay, statusDotVariants as az, AlertBanner as b, AlertDescription as d, AlertProvider as g, AlertTitle as i, Avatar as j, AvatarFallback as k, AvatarImage as m, CodeBlock as q, Dialog as t, DialogClose as u, DialogContent as w, DialogDescription as y, DialogFooter as z };
|
|
495
|
+
export type { SortDirection as $, AlertContextValue as A, DialogProps as G, DialogTriggerProps as J, EmptyStateProps as L, IconProps as N, ListItemProps as Q, ListProps as R, SortState as S, PaginationProps as U, ProgressBarProps as W, PushAlertInput as X, SeparatorProps as Z, SortContextValue as _, StatCardDirection as a1, StatCardProps as a2, StatCardSize as a3, StatCardTheme as a4, StatCardVariant as a5, StatusDotProps as a7, Step as a8, StepProgressProps as aa, SwitchProps as ac, TableActionCellProps as af, TableActionItem as ag, TableBodyProps as ai, TableSortableHeaderProps as aq, TableToolbarProps as as, ToggleGroupProps as av, ToggleProps as aw, TrendDirection as ax, AlertBannerProps as c, AlertMessage as e, AlertProps as f, AlertTheme as h, AvatarFallbackProps as l, AvatarImageProps as n, AvatarProps as o, ChipProps as p, CodeBlockProps as r, DevIndicatorProps as s, DialogCloseProps as v, DialogContentProps as x };
|