@payglocal_ui/flux-ui 0.1.0 → 0.2.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/index.cjs +7303 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1245 -0
- package/dist/index.d.ts +1245 -0
- package/dist/index.js +7073 -0
- package/dist/index.js.map +1 -0
- package/package.json +10 -5
- package/src/data-table.tsx +13 -1
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,1245 @@
|
|
|
1
|
+
import { ClassValue } from 'clsx';
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import { ButtonHTMLAttributes, HTMLAttributes, ReactNode, ComponentProps, AnchorHTMLAttributes } from 'react';
|
|
4
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
6
|
+
import { VariantProps } from 'class-variance-authority';
|
|
7
|
+
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
8
|
+
import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
|
|
9
|
+
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
10
|
+
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
11
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
12
|
+
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
13
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
14
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
15
|
+
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
16
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
17
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
18
|
+
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
19
|
+
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
20
|
+
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
21
|
+
import { LucideIcon } from 'lucide-react';
|
|
22
|
+
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
23
|
+
import { DayPickerProps, DayButtonProps } from 'react-day-picker';
|
|
24
|
+
export { DateRange } from 'react-day-picker';
|
|
25
|
+
import * as RechartsPrimitive from 'recharts';
|
|
26
|
+
import { TooltipValueType } from 'recharts';
|
|
27
|
+
import { ToasterProps } from 'sonner';
|
|
28
|
+
export { toast } from 'sonner';
|
|
29
|
+
|
|
30
|
+
declare function cn(...inputs: ClassValue[]): string;
|
|
31
|
+
|
|
32
|
+
/** Maps to Tailwind spacing steps used across PayGlocal dashboard surfaces */
|
|
33
|
+
type LayoutSpacing = "none" | "xs" | "sm" | "md" | "lg" | "xl";
|
|
34
|
+
type BoxProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
35
|
+
as?: React$1.ElementType;
|
|
36
|
+
p?: LayoutSpacing;
|
|
37
|
+
px?: LayoutSpacing;
|
|
38
|
+
py?: LayoutSpacing;
|
|
39
|
+
};
|
|
40
|
+
/** Neutral block with token-aligned padding; extend with `className` for radius, borders, flex, etc. */
|
|
41
|
+
declare function Box({ as: Comp, className, p, px, py, ...props }: BoxProps): React$1.JSX.Element;
|
|
42
|
+
type StackProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
43
|
+
as?: React$1.ElementType;
|
|
44
|
+
gap?: LayoutSpacing;
|
|
45
|
+
align?: "start" | "center" | "stretch" | "end";
|
|
46
|
+
};
|
|
47
|
+
/** Vertical flex stack; default gap matches common section rhythm (`gap-4`). */
|
|
48
|
+
declare function Stack({ as: Comp, className, gap, align, ...props }: StackProps): React$1.JSX.Element;
|
|
49
|
+
type InlineProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
50
|
+
gap?: LayoutSpacing;
|
|
51
|
+
wrap?: boolean;
|
|
52
|
+
justify?: "start" | "center" | "end" | "between";
|
|
53
|
+
};
|
|
54
|
+
/** Horizontal flex row for toolbars and inline field groups */
|
|
55
|
+
declare function Inline({ className, gap, wrap, justify, ...props }: InlineProps): React$1.JSX.Element;
|
|
56
|
+
|
|
57
|
+
type GridCols = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | "auto";
|
|
58
|
+
type ResponsiveCols = {
|
|
59
|
+
base?: GridCols;
|
|
60
|
+
sm?: GridCols;
|
|
61
|
+
md?: GridCols;
|
|
62
|
+
lg?: GridCols;
|
|
63
|
+
};
|
|
64
|
+
type GridFlow = "row" | "col" | "dense";
|
|
65
|
+
type GridProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
66
|
+
/** Number of columns (1–12 or "auto"), or a responsive object */
|
|
67
|
+
cols?: GridCols | ResponsiveCols;
|
|
68
|
+
/** Number of explicit rows */
|
|
69
|
+
rows?: 1 | 2 | 3 | 4 | 5 | 6 | "auto";
|
|
70
|
+
/** Gap between cells */
|
|
71
|
+
gap?: LayoutSpacing;
|
|
72
|
+
/** Grid auto-flow direction */
|
|
73
|
+
flow?: GridFlow;
|
|
74
|
+
};
|
|
75
|
+
declare const Grid: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
|
|
76
|
+
/** Number of columns (1–12 or "auto"), or a responsive object */
|
|
77
|
+
cols?: GridCols | ResponsiveCols;
|
|
78
|
+
/** Number of explicit rows */
|
|
79
|
+
rows?: 1 | 2 | 3 | 4 | 5 | 6 | "auto";
|
|
80
|
+
/** Gap between cells */
|
|
81
|
+
gap?: LayoutSpacing;
|
|
82
|
+
/** Grid auto-flow direction */
|
|
83
|
+
flow?: GridFlow;
|
|
84
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
85
|
+
type FlexDirection = "row" | "col" | "row-reverse" | "col-reverse";
|
|
86
|
+
type FlexWrap = boolean | "reverse";
|
|
87
|
+
type FlexAlign = "start" | "center" | "end" | "stretch" | "baseline";
|
|
88
|
+
type FlexJustify = "start" | "center" | "end" | "between" | "around" | "evenly";
|
|
89
|
+
type FlexProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
90
|
+
/** Flex direction */
|
|
91
|
+
direction?: FlexDirection;
|
|
92
|
+
/** Whether children wrap */
|
|
93
|
+
wrap?: FlexWrap;
|
|
94
|
+
/** Align items (cross axis) */
|
|
95
|
+
align?: FlexAlign;
|
|
96
|
+
/** Justify content (main axis) */
|
|
97
|
+
justify?: FlexJustify;
|
|
98
|
+
/** Gap between children */
|
|
99
|
+
gap?: LayoutSpacing;
|
|
100
|
+
/** Render as inline-flex */
|
|
101
|
+
inline?: boolean;
|
|
102
|
+
};
|
|
103
|
+
declare const Flex: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & {
|
|
104
|
+
/** Flex direction */
|
|
105
|
+
direction?: FlexDirection;
|
|
106
|
+
/** Whether children wrap */
|
|
107
|
+
wrap?: FlexWrap;
|
|
108
|
+
/** Align items (cross axis) */
|
|
109
|
+
align?: FlexAlign;
|
|
110
|
+
/** Justify content (main axis) */
|
|
111
|
+
justify?: FlexJustify;
|
|
112
|
+
/** Gap between children */
|
|
113
|
+
gap?: LayoutSpacing;
|
|
114
|
+
/** Render as inline-flex */
|
|
115
|
+
inline?: boolean;
|
|
116
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
117
|
+
|
|
118
|
+
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
119
|
+
variant?: "primary" | "secondary" | "ghost" | "danger" | "outline" | "link";
|
|
120
|
+
size?: "sm" | "md" | "lg";
|
|
121
|
+
isLoading?: boolean;
|
|
122
|
+
leftIcon?: React.ReactNode;
|
|
123
|
+
rightIcon?: React.ReactNode;
|
|
124
|
+
}
|
|
125
|
+
declare const Button: React$1.ForwardRefExoticComponent<ButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
126
|
+
|
|
127
|
+
interface ButtonGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
128
|
+
orientation?: "horizontal" | "vertical";
|
|
129
|
+
variant?: ButtonProps["variant"];
|
|
130
|
+
}
|
|
131
|
+
declare const ButtonGroup: React$1.ForwardRefExoticComponent<ButtonGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
132
|
+
interface SplitButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "onClick"> {
|
|
133
|
+
label: ReactNode;
|
|
134
|
+
onClick?: ButtonHTMLAttributes<HTMLButtonElement>["onClick"];
|
|
135
|
+
children?: ReactNode;
|
|
136
|
+
variant?: ButtonProps["variant"];
|
|
137
|
+
size?: ButtonProps["size"];
|
|
138
|
+
isLoading?: boolean;
|
|
139
|
+
}
|
|
140
|
+
declare const SplitButton: React$1.ForwardRefExoticComponent<SplitButtonProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
141
|
+
interface SplitButtonItemProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
142
|
+
children: ReactNode;
|
|
143
|
+
}
|
|
144
|
+
declare const SplitButtonItem: React$1.ForwardRefExoticComponent<SplitButtonItemProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
145
|
+
|
|
146
|
+
declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
147
|
+
|
|
148
|
+
type PasswordInputProps = Omit<React$1.ComponentProps<typeof Input>, "type">;
|
|
149
|
+
declare const PasswordInput: React$1.ForwardRefExoticComponent<Omit<PasswordInputProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
150
|
+
|
|
151
|
+
interface OtpInputProps {
|
|
152
|
+
/** Current OTP value (controlled). */
|
|
153
|
+
value: string;
|
|
154
|
+
/** Fires with the full joined string on every change. */
|
|
155
|
+
onChange: (value: string) => void;
|
|
156
|
+
/** Number of digit boxes. */
|
|
157
|
+
length?: number;
|
|
158
|
+
/** Fired when all boxes are filled. */
|
|
159
|
+
onComplete?: (value: string) => void;
|
|
160
|
+
disabled?: boolean;
|
|
161
|
+
invalid?: boolean;
|
|
162
|
+
autoFocus?: boolean;
|
|
163
|
+
"aria-label"?: string;
|
|
164
|
+
}
|
|
165
|
+
declare function OtpInput({ value, onChange, length, onComplete, disabled, invalid, autoFocus, "aria-label": ariaLabel, }: OtpInputProps): React$1.JSX.Element;
|
|
166
|
+
|
|
167
|
+
interface CheckboxSelectOption {
|
|
168
|
+
value: string;
|
|
169
|
+
label: string;
|
|
170
|
+
disabled?: boolean;
|
|
171
|
+
}
|
|
172
|
+
interface CheckboxSelectProps {
|
|
173
|
+
options: CheckboxSelectOption[];
|
|
174
|
+
value: string[];
|
|
175
|
+
onChange: (values: string[]) => void;
|
|
176
|
+
placeholder?: string;
|
|
177
|
+
showSearch?: boolean;
|
|
178
|
+
disabled?: boolean;
|
|
179
|
+
maxDisplay?: number;
|
|
180
|
+
className?: string;
|
|
181
|
+
}
|
|
182
|
+
declare const CheckboxSelect: React$1.ForwardRefExoticComponent<CheckboxSelectProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
183
|
+
|
|
184
|
+
declare const Textarea: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref"> & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
185
|
+
|
|
186
|
+
declare const Label: React$1.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React$1.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: class_variance_authority_types.ClassProp | undefined) => string> & React$1.RefAttributes<HTMLLabelElement>>;
|
|
187
|
+
|
|
188
|
+
type CheckboxSize = "sm" | "md" | "lg";
|
|
189
|
+
interface CheckboxProps extends React$1.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root> {
|
|
190
|
+
size?: CheckboxSize;
|
|
191
|
+
}
|
|
192
|
+
declare const Checkbox: React$1.ForwardRefExoticComponent<CheckboxProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
193
|
+
|
|
194
|
+
declare const RadioGroup: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
195
|
+
type RadioGroupItemProps = React$1.ComponentPropsWithoutRef<typeof RadioGroupPrimitive.Item>;
|
|
196
|
+
declare const RadioGroupItem: React$1.ForwardRefExoticComponent<Omit<RadioGroupPrimitive.RadioGroupItemProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
197
|
+
|
|
198
|
+
declare const switchRootVariants: (props?: ({
|
|
199
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
200
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
201
|
+
interface SwitchProps extends React$1.ComponentPropsWithoutRef<typeof SwitchPrimitive.Root>, VariantProps<typeof switchRootVariants> {
|
|
202
|
+
}
|
|
203
|
+
declare const Switch: React$1.ForwardRefExoticComponent<SwitchProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
204
|
+
|
|
205
|
+
interface SliderProps extends React$1.ComponentPropsWithoutRef<typeof SliderPrimitive.Root> {
|
|
206
|
+
}
|
|
207
|
+
declare const Slider: React$1.ForwardRefExoticComponent<SliderProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
208
|
+
|
|
209
|
+
type FormValues = Record<string, string>;
|
|
210
|
+
type FormErrors = Record<string, string>;
|
|
211
|
+
interface ValidatorRule {
|
|
212
|
+
required?: boolean | string;
|
|
213
|
+
minLength?: {
|
|
214
|
+
value: number;
|
|
215
|
+
message: string;
|
|
216
|
+
};
|
|
217
|
+
maxLength?: {
|
|
218
|
+
value: number;
|
|
219
|
+
message: string;
|
|
220
|
+
};
|
|
221
|
+
pattern?: {
|
|
222
|
+
value: RegExp;
|
|
223
|
+
message: string;
|
|
224
|
+
};
|
|
225
|
+
validate?: (value: string) => string | undefined;
|
|
226
|
+
}
|
|
227
|
+
interface FieldConfig {
|
|
228
|
+
defaultValue?: string;
|
|
229
|
+
rules?: ValidatorRule;
|
|
230
|
+
}
|
|
231
|
+
type FieldsConfig = Record<string, FieldConfig>;
|
|
232
|
+
interface RegisterResult {
|
|
233
|
+
name: string;
|
|
234
|
+
id: string;
|
|
235
|
+
value: string;
|
|
236
|
+
onChange: (e: React$1.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>) => void;
|
|
237
|
+
onBlur: () => void;
|
|
238
|
+
}
|
|
239
|
+
interface UseFormReturn {
|
|
240
|
+
values: FormValues;
|
|
241
|
+
errors: FormErrors;
|
|
242
|
+
register: (name: string) => RegisterResult;
|
|
243
|
+
handleSubmit: (onValid: (values: FormValues) => void, onInvalid?: (errors: FormErrors) => void) => (e: React$1.FormEvent) => void;
|
|
244
|
+
setError: (name: string, message: string) => void;
|
|
245
|
+
clearError: (name: string) => void;
|
|
246
|
+
reset: () => void;
|
|
247
|
+
setValue: (name: string, value: string) => void;
|
|
248
|
+
}
|
|
249
|
+
declare function useForm(fields?: FieldsConfig): UseFormReturn;
|
|
250
|
+
interface FormProps extends React$1.FormHTMLAttributes<HTMLFormElement> {
|
|
251
|
+
}
|
|
252
|
+
declare const Form: React$1.ForwardRefExoticComponent<FormProps & React$1.RefAttributes<HTMLFormElement>>;
|
|
253
|
+
interface FormItemProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
254
|
+
}
|
|
255
|
+
declare const FormItem: React$1.ForwardRefExoticComponent<FormItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
256
|
+
interface FormLabelProps extends React$1.LabelHTMLAttributes<HTMLLabelElement> {
|
|
257
|
+
required?: boolean;
|
|
258
|
+
}
|
|
259
|
+
declare const FormLabel: React$1.ForwardRefExoticComponent<FormLabelProps & React$1.RefAttributes<HTMLLabelElement>>;
|
|
260
|
+
interface FormControlProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
261
|
+
}
|
|
262
|
+
declare const FormControl: React$1.ForwardRefExoticComponent<FormControlProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
263
|
+
interface FormDescriptionProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
|
|
264
|
+
}
|
|
265
|
+
declare const FormDescription: React$1.ForwardRefExoticComponent<FormDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
266
|
+
interface FormErrorProps extends React$1.HTMLAttributes<HTMLParagraphElement> {
|
|
267
|
+
}
|
|
268
|
+
declare const FormError: React$1.ForwardRefExoticComponent<FormErrorProps & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
269
|
+
interface FormFieldProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
270
|
+
}
|
|
271
|
+
declare const FormField: React$1.ForwardRefExoticComponent<FormFieldProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
272
|
+
|
|
273
|
+
declare function FieldSet({ className, ...props }: React$1.ComponentProps<"fieldset">): React$1.JSX.Element;
|
|
274
|
+
declare function FieldLegend({ className, variant, ...props }: React$1.ComponentProps<"legend"> & {
|
|
275
|
+
variant?: "legend" | "label";
|
|
276
|
+
}): React$1.JSX.Element;
|
|
277
|
+
declare function FieldGroup({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
278
|
+
declare const fieldVariants: (props?: ({
|
|
279
|
+
orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
|
|
280
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
281
|
+
declare function Field({ className, orientation, invalid, disabled, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof fieldVariants> & {
|
|
282
|
+
invalid?: boolean;
|
|
283
|
+
disabled?: boolean;
|
|
284
|
+
}): React$1.JSX.Element;
|
|
285
|
+
declare function FieldContent({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
286
|
+
declare function FieldLabel({ className, ...props }: React$1.ComponentProps<typeof Label>): React$1.JSX.Element;
|
|
287
|
+
declare function FieldTitle({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
288
|
+
declare function FieldDescription({ className, ...props }: React$1.ComponentProps<"p">): React$1.JSX.Element;
|
|
289
|
+
declare function FieldSeparator({ children, className, ...props }: React$1.ComponentProps<"div"> & {
|
|
290
|
+
children?: React$1.ReactNode;
|
|
291
|
+
}): React$1.JSX.Element;
|
|
292
|
+
declare function FieldError({ className, children, errors, ...props }: React$1.ComponentProps<"div"> & {
|
|
293
|
+
errors?: Array<{
|
|
294
|
+
message?: string;
|
|
295
|
+
} | undefined>;
|
|
296
|
+
}): React$1.JSX.Element | null;
|
|
297
|
+
|
|
298
|
+
declare function InputGroup({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
299
|
+
declare const inputGroupAddonVariants: (props?: ({
|
|
300
|
+
align?: "inline-start" | "inline-end" | "block-start" | "block-end" | null | undefined;
|
|
301
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
302
|
+
declare function InputGroupAddon({ className, align, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): React$1.JSX.Element;
|
|
303
|
+
declare const inputGroupButtonVariants: (props?: ({
|
|
304
|
+
size?: "xs" | "sm" | "icon-xs" | "icon-sm" | null | undefined;
|
|
305
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
306
|
+
declare function InputGroupButton({ className, type, size, ...props }: React$1.ComponentProps<"button"> & VariantProps<typeof inputGroupButtonVariants>): React$1.JSX.Element;
|
|
307
|
+
declare function InputGroupText({ className, ...props }: React$1.ComponentProps<"span">): React$1.JSX.Element;
|
|
308
|
+
declare function InputGroupInput({ className, ...props }: React$1.ComponentProps<"input">): React$1.JSX.Element;
|
|
309
|
+
declare function InputGroupTextarea({ className, ...props }: React$1.ComponentProps<"textarea">): React$1.JSX.Element;
|
|
310
|
+
|
|
311
|
+
interface CurrencyAmountInputProps {
|
|
312
|
+
currency: string;
|
|
313
|
+
amount: string;
|
|
314
|
+
onCurrencyChange: (currency: string) => void;
|
|
315
|
+
onAmountChange: (amount: string) => void;
|
|
316
|
+
placeholder?: string;
|
|
317
|
+
disabled?: boolean;
|
|
318
|
+
required?: boolean;
|
|
319
|
+
currencies?: string[];
|
|
320
|
+
id?: string;
|
|
321
|
+
}
|
|
322
|
+
declare function CurrencyAmountInput({ currency, amount, onCurrencyChange, onAmountChange, placeholder, disabled, required, currencies, id, }: CurrencyAmountInputProps): React$1.JSX.Element;
|
|
323
|
+
|
|
324
|
+
declare const cardVariants: (props?: ({
|
|
325
|
+
size?: "sm" | "default" | null | undefined;
|
|
326
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
327
|
+
declare function Card({ className, size, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof cardVariants>): React$1.JSX.Element;
|
|
328
|
+
declare function CardHeader({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
329
|
+
declare function CardTitle({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
330
|
+
declare function CardDescription({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
331
|
+
declare function CardAction({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
332
|
+
declare function CardContent({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
333
|
+
declare function CardFooter({ className, ...props }: React$1.ComponentProps<"div">): React$1.JSX.Element;
|
|
334
|
+
|
|
335
|
+
declare const Separator: React$1.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
336
|
+
|
|
337
|
+
declare const ScrollArea: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
338
|
+
declare const ScrollBar: React$1.ForwardRefExoticComponent<Omit<ScrollAreaPrimitive.ScrollAreaScrollbarProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
339
|
+
|
|
340
|
+
interface SideNavProps extends React$1.ComponentPropsWithoutRef<"aside"> {
|
|
341
|
+
/** "collapsed" renders icon-only at 60px; "expanded" renders full at 240px (default) */
|
|
342
|
+
width?: "collapsed" | "expanded";
|
|
343
|
+
/** Controlled collapsed state */
|
|
344
|
+
isCollapsed?: boolean;
|
|
345
|
+
/** Called when the sidebar requests a collapse/expand */
|
|
346
|
+
onCollapse?: (collapsed: boolean) => void;
|
|
347
|
+
}
|
|
348
|
+
interface SideNavItemProps extends React$1.ComponentPropsWithoutRef<"a"> {
|
|
349
|
+
/** Icon element — required, rendered at size-4 shrink-0 */
|
|
350
|
+
icon: React$1.ReactNode;
|
|
351
|
+
/** Visible label — hidden when sidebar is collapsed */
|
|
352
|
+
label: string;
|
|
353
|
+
/** Highlights the item as the current route */
|
|
354
|
+
isActive?: boolean;
|
|
355
|
+
/** Navigable href — renders an <a> when provided */
|
|
356
|
+
href?: string;
|
|
357
|
+
/** Click handler */
|
|
358
|
+
onClick?: React$1.MouseEventHandler<HTMLElement>;
|
|
359
|
+
/** Optional badge slot rendered after the label */
|
|
360
|
+
badge?: React$1.ReactNode;
|
|
361
|
+
/** Injected by SideNavSection — consumers should not pass this */
|
|
362
|
+
_collapsed?: boolean;
|
|
363
|
+
}
|
|
364
|
+
declare const SideNav: React$1.ForwardRefExoticComponent<SideNavProps & React$1.RefAttributes<HTMLElement>>;
|
|
365
|
+
declare const SideNavHeader: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
366
|
+
interface SideNavSectionProps extends React$1.ComponentPropsWithoutRef<"div"> {
|
|
367
|
+
/** Optional section label — hidden when sidebar is collapsed */
|
|
368
|
+
label?: string;
|
|
369
|
+
}
|
|
370
|
+
declare const SideNavSection: React$1.ForwardRefExoticComponent<SideNavSectionProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
371
|
+
declare const SideNavItem: React$1.ForwardRefExoticComponent<SideNavItemProps & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
372
|
+
declare const SideNavFooter: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
373
|
+
|
|
374
|
+
declare const Breadcrumb: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
|
|
375
|
+
separator?: React$1.ReactNode;
|
|
376
|
+
} & React$1.RefAttributes<HTMLElement>>;
|
|
377
|
+
declare const BreadcrumbList: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & React$1.RefAttributes<HTMLOListElement>>;
|
|
378
|
+
declare const BreadcrumbItem: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React$1.RefAttributes<HTMLLIElement>>;
|
|
379
|
+
declare const BreadcrumbLink: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
380
|
+
declare const BreadcrumbPage: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
381
|
+
declare const BreadcrumbSeparator: {
|
|
382
|
+
({ children, className, ...props }: React$1.ComponentProps<"li">): React$1.JSX.Element;
|
|
383
|
+
displayName: string;
|
|
384
|
+
};
|
|
385
|
+
declare const BreadcrumbEllipsis: {
|
|
386
|
+
({ className, ...props }: React$1.ComponentProps<"span">): React$1.JSX.Element;
|
|
387
|
+
displayName: string;
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
interface PaginationProps extends React.ComponentPropsWithoutRef<"nav"> {
|
|
391
|
+
}
|
|
392
|
+
declare const Pagination: React$1.ForwardRefExoticComponent<PaginationProps & React$1.RefAttributes<HTMLElement>>;
|
|
393
|
+
interface PaginationContentProps extends React.ComponentPropsWithoutRef<"ul"> {
|
|
394
|
+
}
|
|
395
|
+
declare const PaginationContent: React$1.ForwardRefExoticComponent<PaginationContentProps & React$1.RefAttributes<HTMLUListElement>>;
|
|
396
|
+
interface PaginationItemProps extends React.ComponentPropsWithoutRef<"li"> {
|
|
397
|
+
}
|
|
398
|
+
declare const PaginationItem: React$1.ForwardRefExoticComponent<PaginationItemProps & React$1.RefAttributes<HTMLLIElement>>;
|
|
399
|
+
interface PaginationLinkProps extends React.ComponentPropsWithoutRef<"a"> {
|
|
400
|
+
isActive?: boolean;
|
|
401
|
+
}
|
|
402
|
+
declare const PaginationLink: React$1.ForwardRefExoticComponent<PaginationLinkProps & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
403
|
+
interface PaginationPreviousProps extends React.ComponentPropsWithoutRef<"a"> {
|
|
404
|
+
disabled?: boolean;
|
|
405
|
+
}
|
|
406
|
+
declare const PaginationPrevious: React$1.ForwardRefExoticComponent<PaginationPreviousProps & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
407
|
+
interface PaginationNextProps extends React.ComponentPropsWithoutRef<"a"> {
|
|
408
|
+
disabled?: boolean;
|
|
409
|
+
}
|
|
410
|
+
declare const PaginationNext: React$1.ForwardRefExoticComponent<PaginationNextProps & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
411
|
+
interface PaginationEllipsisProps extends React.ComponentPropsWithoutRef<"span"> {
|
|
412
|
+
}
|
|
413
|
+
declare const PaginationEllipsis: React$1.ForwardRefExoticComponent<PaginationEllipsisProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
414
|
+
|
|
415
|
+
declare const linkVariants: (props?: ({
|
|
416
|
+
variant?: "nav" | "default" | "subtle" | null | undefined;
|
|
417
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
418
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
419
|
+
interface LinkProps extends React$1.AnchorHTMLAttributes<HTMLAnchorElement>, VariantProps<typeof linkVariants> {
|
|
420
|
+
asChild?: boolean;
|
|
421
|
+
}
|
|
422
|
+
declare const Link: React$1.ForwardRefExoticComponent<LinkProps & React$1.RefAttributes<HTMLAnchorElement>>;
|
|
423
|
+
|
|
424
|
+
interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
425
|
+
variant?: "default" | "secondary" | "success" | "warning" | "error" | "outline";
|
|
426
|
+
size?: "sm" | "md" | "lg";
|
|
427
|
+
square?: boolean;
|
|
428
|
+
dot?: boolean;
|
|
429
|
+
leftIcon?: ReactNode;
|
|
430
|
+
rightIcon?: ReactNode;
|
|
431
|
+
}
|
|
432
|
+
declare const Badge: React$1.ForwardRefExoticComponent<BadgeProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
433
|
+
|
|
434
|
+
interface LozengeProps extends HTMLAttributes<HTMLSpanElement> {
|
|
435
|
+
variant?: "default" | "inprogress" | "success" | "moved" | "new" | "removed";
|
|
436
|
+
isBold?: boolean;
|
|
437
|
+
maxWidth?: number | string;
|
|
438
|
+
}
|
|
439
|
+
declare const Lozenge: React$1.ForwardRefExoticComponent<LozengeProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
440
|
+
|
|
441
|
+
type TagColorScheme = "neutral" | "blue" | "green" | "amber" | "red" | "purple";
|
|
442
|
+
interface TagProps extends React$1.HTMLAttributes<HTMLSpanElement> {
|
|
443
|
+
colorScheme?: TagColorScheme;
|
|
444
|
+
onRemove?: () => void;
|
|
445
|
+
disabled?: boolean;
|
|
446
|
+
}
|
|
447
|
+
declare const Tag: React$1.ForwardRefExoticComponent<TagProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
448
|
+
interface TagGroupProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
449
|
+
}
|
|
450
|
+
declare const TagGroup: React$1.ForwardRefExoticComponent<TagGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
451
|
+
|
|
452
|
+
type BadgeVariant = "success" | "info" | "warning" | "refund" | "danger" | "orange" | "muted";
|
|
453
|
+
type BadgeTrailIcon = "check" | "x" | "refresh" | "clock" | "alert" | "arrow-right" | "info";
|
|
454
|
+
interface StatusBadgeProps {
|
|
455
|
+
variant: BadgeVariant;
|
|
456
|
+
label: string;
|
|
457
|
+
trailIcon?: BadgeTrailIcon;
|
|
458
|
+
size?: "sm" | "md";
|
|
459
|
+
className?: string;
|
|
460
|
+
}
|
|
461
|
+
declare const StatusBadge: React$1.ForwardRefExoticComponent<StatusBadgeProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
462
|
+
|
|
463
|
+
interface BlanketProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
464
|
+
/** Controls visibility of the blanket */
|
|
465
|
+
open?: boolean;
|
|
466
|
+
/** Adds semi-transparent black background (default: true) */
|
|
467
|
+
isTinted?: boolean;
|
|
468
|
+
/** Makes blanket completely transparent — only blocks pointer events */
|
|
469
|
+
isTransparent?: boolean;
|
|
470
|
+
/** Called when the blanket is clicked */
|
|
471
|
+
onClick?: React$1.MouseEventHandler<HTMLDivElement>;
|
|
472
|
+
/** When true, pointer events pass through the blanket */
|
|
473
|
+
shouldAllowClickThrough?: boolean;
|
|
474
|
+
}
|
|
475
|
+
declare const Blanket: React$1.ForwardRefExoticComponent<BlanketProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
476
|
+
|
|
477
|
+
interface SpotlightStep {
|
|
478
|
+
title: string;
|
|
479
|
+
body: string;
|
|
480
|
+
image?: React$1.ReactNode;
|
|
481
|
+
}
|
|
482
|
+
interface SpotlightCardProps {
|
|
483
|
+
title: string;
|
|
484
|
+
body: string;
|
|
485
|
+
image?: React$1.ReactNode;
|
|
486
|
+
currentStep?: number;
|
|
487
|
+
totalSteps?: number;
|
|
488
|
+
onNext?: () => void;
|
|
489
|
+
onBack?: () => void;
|
|
490
|
+
onDismiss?: () => void;
|
|
491
|
+
nextLabel?: string;
|
|
492
|
+
className?: string;
|
|
493
|
+
}
|
|
494
|
+
declare const SpotlightCard: React$1.ForwardRefExoticComponent<SpotlightCardProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
495
|
+
interface SpotlightProps {
|
|
496
|
+
isOpen: boolean;
|
|
497
|
+
onClose: () => void;
|
|
498
|
+
children: React$1.ReactNode;
|
|
499
|
+
className?: string;
|
|
500
|
+
}
|
|
501
|
+
declare const Spotlight: {
|
|
502
|
+
({ isOpen, onClose, children, className }: SpotlightProps): React$1.JSX.Element | null;
|
|
503
|
+
displayName: string;
|
|
504
|
+
};
|
|
505
|
+
interface UseSpotlightReturn {
|
|
506
|
+
isOpen: boolean;
|
|
507
|
+
currentStep: number;
|
|
508
|
+
open: () => void;
|
|
509
|
+
close: () => void;
|
|
510
|
+
goNext: () => void;
|
|
511
|
+
goBack: () => void;
|
|
512
|
+
goTo: (step: number) => void;
|
|
513
|
+
}
|
|
514
|
+
declare function useSpotlight(steps: SpotlightStep[], initialStep?: number): UseSpotlightReturn;
|
|
515
|
+
|
|
516
|
+
declare const Dialog: React$1.FC<DialogPrimitive.DialogProps>;
|
|
517
|
+
declare const DialogTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
518
|
+
declare const DialogPortal: React$1.FC<DialogPrimitive.DialogPortalProps>;
|
|
519
|
+
declare const DialogClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
520
|
+
declare function DialogContent({ className, children, showClose, overlayClassName, ...props }: ComponentProps<typeof DialogPrimitive.Content> & {
|
|
521
|
+
showClose?: boolean;
|
|
522
|
+
overlayClassName?: string;
|
|
523
|
+
}): React$1.JSX.Element;
|
|
524
|
+
declare function DialogTitle({ className, ...props }: ComponentProps<typeof DialogPrimitive.Title>): React$1.JSX.Element;
|
|
525
|
+
declare function DialogDescription({ className, ...props }: ComponentProps<typeof DialogPrimitive.Description>): React$1.JSX.Element;
|
|
526
|
+
|
|
527
|
+
type DrawerSide = "right" | "left" | "top" | "bottom";
|
|
528
|
+
interface DrawerProps extends React$1.ComponentPropsWithoutRef<typeof DialogPrimitive.Root> {
|
|
529
|
+
side?: DrawerSide;
|
|
530
|
+
}
|
|
531
|
+
declare const Drawer: {
|
|
532
|
+
({ side, children, ...props }: DrawerProps): React$1.JSX.Element;
|
|
533
|
+
displayName: string;
|
|
534
|
+
};
|
|
535
|
+
declare const DrawerTrigger: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
536
|
+
declare const DrawerClose: React$1.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
537
|
+
declare const DrawerContent: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
538
|
+
declare const DrawerHeader: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
539
|
+
declare const DrawerFooter: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
540
|
+
declare const DrawerTitle: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React$1.RefAttributes<HTMLHeadingElement>, "ref"> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
541
|
+
declare const DrawerDescription: React$1.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>, "ref"> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
542
|
+
|
|
543
|
+
declare const Popover: React$1.FC<PopoverPrimitive.PopoverProps>;
|
|
544
|
+
declare const PopoverTrigger: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
545
|
+
declare const PopoverAnchor: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverAnchorProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
546
|
+
declare const PopoverContent: React$1.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
547
|
+
|
|
548
|
+
declare const TooltipProvider: React$1.FC<TooltipPrimitive.TooltipProviderProps>;
|
|
549
|
+
declare const Tooltip: React$1.FC<TooltipPrimitive.TooltipProps>;
|
|
550
|
+
declare const TooltipTrigger: React$1.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
551
|
+
declare const TooltipContent: React$1.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
552
|
+
|
|
553
|
+
declare const MenuDivider: React$1.ForwardRefExoticComponent<HTMLAttributes<HTMLHRElement> & React$1.RefAttributes<HTMLHRElement>>;
|
|
554
|
+
interface MenuSectionProps extends HTMLAttributes<HTMLDivElement> {
|
|
555
|
+
label?: string;
|
|
556
|
+
children: ReactNode;
|
|
557
|
+
}
|
|
558
|
+
declare const MenuSection: React$1.ForwardRefExoticComponent<MenuSectionProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
559
|
+
type MenuItemBaseProps = {
|
|
560
|
+
icon?: ReactNode;
|
|
561
|
+
rightContent?: ReactNode;
|
|
562
|
+
isSelected?: boolean;
|
|
563
|
+
isDanger?: boolean;
|
|
564
|
+
};
|
|
565
|
+
type MenuItemButtonProps = MenuItemBaseProps & ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
566
|
+
href?: undefined;
|
|
567
|
+
};
|
|
568
|
+
type MenuItemAnchorProps = MenuItemBaseProps & AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
569
|
+
href: string;
|
|
570
|
+
};
|
|
571
|
+
type MenuItemProps = MenuItemButtonProps | MenuItemAnchorProps;
|
|
572
|
+
declare const MenuItem: React$1.ForwardRefExoticComponent<MenuItemProps & React$1.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
573
|
+
interface MenuProps extends HTMLAttributes<HTMLElement> {
|
|
574
|
+
children: ReactNode;
|
|
575
|
+
}
|
|
576
|
+
declare const Menu: React$1.ForwardRefExoticComponent<MenuProps & React$1.RefAttributes<HTMLElement>>;
|
|
577
|
+
|
|
578
|
+
declare const DropdownMenu: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
579
|
+
declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
580
|
+
declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
581
|
+
declare const DropdownMenuPortal: React$1.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
582
|
+
declare const DropdownMenuSub: React$1.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
583
|
+
declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
584
|
+
declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
585
|
+
inset?: boolean;
|
|
586
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
587
|
+
declare const DropdownMenuSubContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
588
|
+
declare const DropdownMenuContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
589
|
+
declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
590
|
+
inset?: boolean;
|
|
591
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
592
|
+
declare const DropdownMenuCheckboxItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
593
|
+
declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
594
|
+
declare const DropdownMenuLabel: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
595
|
+
inset?: boolean;
|
|
596
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
597
|
+
declare const DropdownMenuSeparator: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
598
|
+
declare function DropdownMenuShortcut({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): React$1.JSX.Element;
|
|
599
|
+
|
|
600
|
+
declare const Select: React$1.FC<SelectPrimitive.SelectProps>;
|
|
601
|
+
declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
602
|
+
declare const SelectValue: React$1.ForwardRefExoticComponent<SelectPrimitive.SelectValueProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
603
|
+
declare const SelectTrigger: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
604
|
+
declare const SelectScrollUpButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollUpButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
605
|
+
declare const SelectScrollDownButton: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectScrollDownButtonProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
606
|
+
declare const SelectContent: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
607
|
+
declare const SelectLabel: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
608
|
+
declare const SelectItem: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
609
|
+
declare const SelectSeparator: React$1.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
610
|
+
|
|
611
|
+
interface CommandProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
612
|
+
}
|
|
613
|
+
interface CommandInputProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
|
|
614
|
+
}
|
|
615
|
+
interface CommandListProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
616
|
+
}
|
|
617
|
+
interface CommandEmptyProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
618
|
+
}
|
|
619
|
+
interface CommandGroupProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
620
|
+
heading?: string;
|
|
621
|
+
}
|
|
622
|
+
interface CommandItemProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
623
|
+
selected?: boolean;
|
|
624
|
+
disabled?: boolean;
|
|
625
|
+
onSelect?: () => void;
|
|
626
|
+
}
|
|
627
|
+
interface CommandSeparatorProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
628
|
+
}
|
|
629
|
+
interface CommandShortcutProps extends React$1.HTMLAttributes<HTMLSpanElement> {
|
|
630
|
+
}
|
|
631
|
+
declare const Command: React$1.ForwardRefExoticComponent<CommandProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
632
|
+
declare const CommandInput: React$1.ForwardRefExoticComponent<CommandInputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
633
|
+
declare const CommandList: React$1.ForwardRefExoticComponent<CommandListProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
634
|
+
declare const CommandEmpty: React$1.ForwardRefExoticComponent<CommandEmptyProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
635
|
+
declare const CommandGroup: React$1.ForwardRefExoticComponent<CommandGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
636
|
+
declare const CommandItem: React$1.ForwardRefExoticComponent<CommandItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
637
|
+
declare const CommandSeparator: React$1.ForwardRefExoticComponent<CommandSeparatorProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
638
|
+
declare const CommandShortcut: React$1.ForwardRefExoticComponent<CommandShortcutProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
639
|
+
|
|
640
|
+
declare const Tabs: React$1.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
641
|
+
declare const TabsList: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
642
|
+
declare const TabsTrigger: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
643
|
+
declare const TabsContent: React$1.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
644
|
+
|
|
645
|
+
declare const Accordion: React$1.ForwardRefExoticComponent<(AccordionPrimitive.AccordionSingleProps | AccordionPrimitive.AccordionMultipleProps) & React$1.RefAttributes<HTMLDivElement>>;
|
|
646
|
+
declare const AccordionItem: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
647
|
+
declare const AccordionTrigger: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionTriggerProps & React$1.RefAttributes<HTMLButtonElement>, "ref"> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
648
|
+
declare const AccordionContent: React$1.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
649
|
+
|
|
650
|
+
type AlertVariant = "info" | "success" | "warning" | "error" | "neutral";
|
|
651
|
+
interface AlertProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
652
|
+
variant?: AlertVariant;
|
|
653
|
+
dismissible?: boolean;
|
|
654
|
+
onDismiss?: () => void;
|
|
655
|
+
}
|
|
656
|
+
declare const Alert: React$1.ForwardRefExoticComponent<AlertProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
657
|
+
declare const AlertTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
658
|
+
declare const AlertDescription: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
659
|
+
interface BannerProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
660
|
+
variant?: AlertVariant;
|
|
661
|
+
dismissible?: boolean;
|
|
662
|
+
onDismiss?: () => void;
|
|
663
|
+
}
|
|
664
|
+
declare const Banner: React$1.ForwardRefExoticComponent<BannerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
665
|
+
|
|
666
|
+
type CalloutVariant = "info" | "success" | "warning" | "error" | "neutral" | "discovery";
|
|
667
|
+
interface CalloutProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
668
|
+
variant?: CalloutVariant;
|
|
669
|
+
}
|
|
670
|
+
declare const Callout: React$1.ForwardRefExoticComponent<CalloutProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
671
|
+
interface CalloutIconProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
672
|
+
variant?: CalloutVariant;
|
|
673
|
+
}
|
|
674
|
+
declare const CalloutIcon: React$1.ForwardRefExoticComponent<CalloutIconProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
675
|
+
declare const CalloutTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
676
|
+
declare const CalloutText: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement>>;
|
|
677
|
+
|
|
678
|
+
type SectionMessageVariant = "info" | "success" | "warning" | "error" | "discovery";
|
|
679
|
+
interface SectionMessageProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
680
|
+
variant?: SectionMessageVariant;
|
|
681
|
+
}
|
|
682
|
+
declare const SectionMessage: React$1.ForwardRefExoticComponent<SectionMessageProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
683
|
+
declare const SectionMessageTitle: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLHeadingElement> & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
684
|
+
declare const SectionMessageContent: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
685
|
+
declare const SectionMessageActions: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLDivElement> & React$1.RefAttributes<HTMLDivElement>>;
|
|
686
|
+
|
|
687
|
+
declare const sizeMap: {
|
|
688
|
+
readonly xs: 12;
|
|
689
|
+
readonly sm: 16;
|
|
690
|
+
readonly md: 20;
|
|
691
|
+
readonly lg: 28;
|
|
692
|
+
readonly xl: 36;
|
|
693
|
+
};
|
|
694
|
+
declare const colorMap: {
|
|
695
|
+
readonly primary: "text-primary";
|
|
696
|
+
readonly muted: "text-muted-foreground";
|
|
697
|
+
readonly white: "text-white";
|
|
698
|
+
readonly inherit: "";
|
|
699
|
+
};
|
|
700
|
+
interface SpinnerProps extends React$1.HTMLAttributes<HTMLSpanElement> {
|
|
701
|
+
size?: keyof typeof sizeMap;
|
|
702
|
+
color?: keyof typeof colorMap;
|
|
703
|
+
}
|
|
704
|
+
declare const Spinner: React$1.ForwardRefExoticComponent<SpinnerProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
705
|
+
|
|
706
|
+
type ProgressVariant = "default" | "success" | "warning" | "error";
|
|
707
|
+
type ProgressSize = "xs" | "sm" | "md" | "lg";
|
|
708
|
+
interface ProgressProps extends React$1.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root> {
|
|
709
|
+
variant?: ProgressVariant;
|
|
710
|
+
size?: ProgressSize;
|
|
711
|
+
label?: boolean;
|
|
712
|
+
}
|
|
713
|
+
declare const Progress: React$1.ForwardRefExoticComponent<ProgressProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
714
|
+
type ProgressStepStatus = "complete" | "current" | "upcoming";
|
|
715
|
+
interface ProgressTrackerStep {
|
|
716
|
+
label: string;
|
|
717
|
+
description?: string;
|
|
718
|
+
status: ProgressStepStatus;
|
|
719
|
+
}
|
|
720
|
+
interface ProgressTrackerProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
721
|
+
steps: ProgressTrackerStep[];
|
|
722
|
+
}
|
|
723
|
+
declare const ProgressTracker: React$1.ForwardRefExoticComponent<ProgressTrackerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
724
|
+
|
|
725
|
+
interface ShimmerProps {
|
|
726
|
+
className?: string;
|
|
727
|
+
rounded?: "sm" | "md" | "lg" | "full";
|
|
728
|
+
}
|
|
729
|
+
declare function Shimmer({ className, rounded }: ShimmerProps): React$1.JSX.Element;
|
|
730
|
+
declare function StatCardSkeleton(): React$1.JSX.Element;
|
|
731
|
+
declare function TableRowSkeleton({ cols, comfortable, density: densityProp, snug, }: {
|
|
732
|
+
cols?: number;
|
|
733
|
+
/** @deprecated prefer `density` */
|
|
734
|
+
comfortable?: boolean;
|
|
735
|
+
density?: "default" | "comfortable" | "compact";
|
|
736
|
+
snug?: boolean;
|
|
737
|
+
}): React$1.JSX.Element;
|
|
738
|
+
declare function ChartSkeleton({ height }: {
|
|
739
|
+
height?: string;
|
|
740
|
+
}): React$1.JSX.Element;
|
|
741
|
+
|
|
742
|
+
type DataTableDensity = "default" | "comfortable" | "compact";
|
|
743
|
+
type DataTableHeaderStyle = "surface" | "minimal";
|
|
744
|
+
type DataTableFooterSummary = "range" | "count";
|
|
745
|
+
type Column<T> = {
|
|
746
|
+
key: string;
|
|
747
|
+
header: ReactNode;
|
|
748
|
+
/** Table column width, e.g. `48px`, `18%`, `minmax(12rem,1fr)` (fixed layout) */
|
|
749
|
+
width?: string;
|
|
750
|
+
minWidth?: number;
|
|
751
|
+
maxWidth?: number;
|
|
752
|
+
align?: "left" | "right" | "center";
|
|
753
|
+
/** Allow cell text to wrap instead of truncating. */
|
|
754
|
+
wrap?: boolean;
|
|
755
|
+
/** Extra classes on `<th>` / `<td>` (e.g. wider horizontal padding per column) */
|
|
756
|
+
cellClassName?: string;
|
|
757
|
+
render: (row: T, index: number) => ReactNode;
|
|
758
|
+
};
|
|
759
|
+
interface DataTableProps<T> {
|
|
760
|
+
columns: Column<T>[];
|
|
761
|
+
data: T[];
|
|
762
|
+
isLoading?: boolean;
|
|
763
|
+
skeletonRows?: number;
|
|
764
|
+
emptyTitle?: string;
|
|
765
|
+
emptyDescription?: string;
|
|
766
|
+
pageSize?: number;
|
|
767
|
+
/** Controlled page number (1-indexed). Enables server-side pagination. */
|
|
768
|
+
page?: number;
|
|
769
|
+
/** Called when the user changes page in controlled mode. */
|
|
770
|
+
onPageChange?: (page: number) => void;
|
|
771
|
+
/** Total row count for server-side pagination (overrides data.length for page calculations). */
|
|
772
|
+
totalRows?: number;
|
|
773
|
+
className?: string;
|
|
774
|
+
rowKey: (row: T) => string;
|
|
775
|
+
/** Optional hover CTA shown on the right of every row */
|
|
776
|
+
rowCta?: {
|
|
777
|
+
label: string;
|
|
778
|
+
onClick?: (row: T) => void;
|
|
779
|
+
};
|
|
780
|
+
/** Row / cell vertical rhythm and horizontal gutters */
|
|
781
|
+
density?: DataTableDensity;
|
|
782
|
+
/** `auto` lets columns breathe; `fixed` uses `colgroup` hints */
|
|
783
|
+
tableLayout?: "auto" | "fixed";
|
|
784
|
+
theadClassName?: string;
|
|
785
|
+
headerStyle?: DataTableHeaderStyle;
|
|
786
|
+
/** Footer: paginated range vs simple `n items` */
|
|
787
|
+
footerSummary?: DataTableFooterSummary;
|
|
788
|
+
/** Noun after the count when `footerSummary="count"` (default singular / plural `item` / `items`). */
|
|
789
|
+
footerCountLabels?: {
|
|
790
|
+
singular: string;
|
|
791
|
+
plural: string;
|
|
792
|
+
};
|
|
793
|
+
/** With `density="compact"`, use tighter cell gutters (`pl-1.5 pr-2.5` vs `px-3`). Footer keeps normal horizontal padding. */
|
|
794
|
+
snug?: boolean;
|
|
795
|
+
}
|
|
796
|
+
declare function DataTable<T>({ columns, data, isLoading, skeletonRows, emptyTitle, emptyDescription, pageSize, page: controlledPage, onPageChange, totalRows, className, rowKey, rowCta, density, tableLayout, theadClassName, headerStyle, footerSummary, footerCountLabels, snug, }: DataTableProps<T>): React$1.JSX.Element;
|
|
797
|
+
|
|
798
|
+
interface EmptyStateProps {
|
|
799
|
+
icon?: LucideIcon;
|
|
800
|
+
title: string;
|
|
801
|
+
description?: string;
|
|
802
|
+
action?: ReactNode;
|
|
803
|
+
className?: string;
|
|
804
|
+
}
|
|
805
|
+
declare function EmptyState({ icon: Icon, title, description, action, className, }: EmptyStateProps): React$1.JSX.Element;
|
|
806
|
+
|
|
807
|
+
interface PageHeaderProps {
|
|
808
|
+
title: ReactNode;
|
|
809
|
+
/** When title is non-plain text (e.g. includes a flag), set for screen readers. */
|
|
810
|
+
titleAriaLabel?: string;
|
|
811
|
+
subtitle?: string;
|
|
812
|
+
actions?: ReactNode;
|
|
813
|
+
className?: string;
|
|
814
|
+
}
|
|
815
|
+
declare function PageHeader({ title, titleAriaLabel, subtitle, actions, className }: PageHeaderProps): React$1.JSX.Element;
|
|
816
|
+
|
|
817
|
+
type CodeProps = HTMLAttributes<HTMLElement>;
|
|
818
|
+
declare const Code: React$1.ForwardRefExoticComponent<CodeProps & React$1.RefAttributes<HTMLElement>>;
|
|
819
|
+
interface CodeBlockProps extends HTMLAttributes<HTMLDivElement> {
|
|
820
|
+
/** The raw code string to display and optionally copy. */
|
|
821
|
+
code: string;
|
|
822
|
+
/** Optional filename shown in the header. */
|
|
823
|
+
filename?: string;
|
|
824
|
+
/** Optional language label shown as a badge in the header. */
|
|
825
|
+
language?: string;
|
|
826
|
+
/** Hide the copy button. Defaults to false. */
|
|
827
|
+
hideCopy?: boolean;
|
|
828
|
+
}
|
|
829
|
+
declare const CodeBlock: React$1.ForwardRefExoticComponent<CodeBlockProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
830
|
+
|
|
831
|
+
declare const Avatar: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
832
|
+
declare const AvatarImage: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React$1.RefAttributes<HTMLImageElement>, "ref"> & React$1.RefAttributes<HTMLImageElement>>;
|
|
833
|
+
declare const AvatarFallback: React$1.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarFallbackProps & React$1.RefAttributes<HTMLSpanElement>, "ref"> & React$1.RefAttributes<HTMLSpanElement>>;
|
|
834
|
+
|
|
835
|
+
interface AvatarGroupItem {
|
|
836
|
+
src?: string;
|
|
837
|
+
fallback: string;
|
|
838
|
+
alt?: string;
|
|
839
|
+
}
|
|
840
|
+
interface AvatarGroupProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
841
|
+
avatars: AvatarGroupItem[];
|
|
842
|
+
max?: number;
|
|
843
|
+
size?: "sm" | "md" | "lg";
|
|
844
|
+
}
|
|
845
|
+
declare const AvatarGroup: React$1.ForwardRefExoticComponent<AvatarGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
846
|
+
|
|
847
|
+
type AvatarTagSize = "sm" | "md" | "lg";
|
|
848
|
+
interface AvatarTagProps extends React$1.HTMLAttributes<HTMLSpanElement> {
|
|
849
|
+
/** Display label for the tag */
|
|
850
|
+
label: string;
|
|
851
|
+
/** Optional image src for the avatar */
|
|
852
|
+
src?: string;
|
|
853
|
+
/** Alt text for the avatar image */
|
|
854
|
+
alt?: string;
|
|
855
|
+
/** Size variant */
|
|
856
|
+
size?: AvatarTagSize;
|
|
857
|
+
/** Called when the remove button is clicked */
|
|
858
|
+
onRemove?: () => void;
|
|
859
|
+
/** Disables interaction */
|
|
860
|
+
disabled?: boolean;
|
|
861
|
+
}
|
|
862
|
+
declare const AvatarTag: React$1.ForwardRefExoticComponent<AvatarTagProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
863
|
+
|
|
864
|
+
type CalendarProps = DayPickerProps & {
|
|
865
|
+
buttonVariant?: ButtonProps["variant"];
|
|
866
|
+
};
|
|
867
|
+
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, locale, formatters, components, showWeekNumber, ...props }: CalendarProps): React$1.JSX.Element;
|
|
868
|
+
declare function CalendarDayButton({ className, day, modifiers, ...props }: DayButtonProps): React$1.JSX.Element;
|
|
869
|
+
|
|
870
|
+
interface DatePickerProps {
|
|
871
|
+
value: string;
|
|
872
|
+
onChange: (v: string) => void;
|
|
873
|
+
placeholder?: string;
|
|
874
|
+
className?: string;
|
|
875
|
+
min?: string;
|
|
876
|
+
label?: string;
|
|
877
|
+
}
|
|
878
|
+
declare function DatePicker({ value, onChange, placeholder, className, min, label }: DatePickerProps): React$1.JSX.Element;
|
|
879
|
+
|
|
880
|
+
/**
|
|
881
|
+
* Chart primitives from shadcn/ui (Recharts composition layer).
|
|
882
|
+
* @see https://ui.shadcn.com/docs/components/radix/chart
|
|
883
|
+
*/
|
|
884
|
+
|
|
885
|
+
declare const THEMES: {
|
|
886
|
+
readonly light: "";
|
|
887
|
+
readonly dark: ".dark";
|
|
888
|
+
};
|
|
889
|
+
type TooltipNameType = number | string;
|
|
890
|
+
type ChartConfig = Record<string, {
|
|
891
|
+
label?: React$1.ReactNode;
|
|
892
|
+
icon?: React$1.ComponentType;
|
|
893
|
+
} & ({
|
|
894
|
+
color?: string;
|
|
895
|
+
theme?: never;
|
|
896
|
+
} | {
|
|
897
|
+
color?: never;
|
|
898
|
+
theme: Record<keyof typeof THEMES, string>;
|
|
899
|
+
})>;
|
|
900
|
+
declare function ChartContainer({ id, className, children, config, initialDimension, ...props }: React$1.ComponentProps<"div"> & {
|
|
901
|
+
config: ChartConfig;
|
|
902
|
+
children: React$1.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
|
|
903
|
+
initialDimension?: {
|
|
904
|
+
width: number;
|
|
905
|
+
height: number;
|
|
906
|
+
};
|
|
907
|
+
}): React$1.JSX.Element;
|
|
908
|
+
declare const ChartStyle: ({ id, config }: {
|
|
909
|
+
id: string;
|
|
910
|
+
config: ChartConfig;
|
|
911
|
+
}) => React$1.JSX.Element | null;
|
|
912
|
+
declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
|
|
913
|
+
declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: React$1.ComponentProps<typeof RechartsPrimitive.Tooltip> & React$1.ComponentProps<"div"> & {
|
|
914
|
+
hideLabel?: boolean;
|
|
915
|
+
hideIndicator?: boolean;
|
|
916
|
+
indicator?: "line" | "dot" | "dashed";
|
|
917
|
+
nameKey?: string;
|
|
918
|
+
labelKey?: string;
|
|
919
|
+
} & Omit<RechartsPrimitive.DefaultTooltipContentProps<TooltipValueType, TooltipNameType>, "accessibilityLayer">): React$1.JSX.Element | null;
|
|
920
|
+
declare const ChartLegend: React$1.MemoExoticComponent<(outsideProps: RechartsPrimitive.LegendProps) => React$1.ReactPortal | null>;
|
|
921
|
+
declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: React$1.ComponentProps<"div"> & {
|
|
922
|
+
hideIcon?: boolean;
|
|
923
|
+
nameKey?: string;
|
|
924
|
+
} & RechartsPrimitive.DefaultLegendContentProps): React$1.JSX.Element | null;
|
|
925
|
+
|
|
926
|
+
/** ─── KPI + sparkline (dashboard stat tiles) ─────────────────────────── */
|
|
927
|
+
type MetricSparklinePoint = {
|
|
928
|
+
x: string | number;
|
|
929
|
+
y: number;
|
|
930
|
+
};
|
|
931
|
+
type MetricSparklineCardProps = {
|
|
932
|
+
title: string;
|
|
933
|
+
icon?: React$1.ReactNode;
|
|
934
|
+
value: React$1.ReactNode;
|
|
935
|
+
/** e.g. "+8.4% vs last month" */
|
|
936
|
+
trend?: {
|
|
937
|
+
direction: "up" | "down" | "flat";
|
|
938
|
+
label: string;
|
|
939
|
+
};
|
|
940
|
+
data: MetricSparklinePoint[];
|
|
941
|
+
/** Stroke / gradient accent (CSS color) */
|
|
942
|
+
accentColor?: string;
|
|
943
|
+
className?: string;
|
|
944
|
+
onInfoClick?: () => void;
|
|
945
|
+
};
|
|
946
|
+
declare function MetricSparklineCard({ title, icon, value, trend, data, accentColor, className, onInfoClick, }: MetricSparklineCardProps): React$1.JSX.Element;
|
|
947
|
+
/** ─── Hero area + optional compare line + tabs + footer ──────────────── */
|
|
948
|
+
type DashboardAreaChartPoint = Record<string, string | number>;
|
|
949
|
+
type DashboardAreaChartTemplateProps = {
|
|
950
|
+
title: string;
|
|
951
|
+
tabs: {
|
|
952
|
+
id: string;
|
|
953
|
+
label: string;
|
|
954
|
+
}[];
|
|
955
|
+
activeTabId: string;
|
|
956
|
+
onTabChange: (id: string) => void;
|
|
957
|
+
headline: React$1.ReactNode;
|
|
958
|
+
delta?: React$1.ReactNode;
|
|
959
|
+
data: DashboardAreaChartPoint[];
|
|
960
|
+
xKey: string;
|
|
961
|
+
areaKey: string;
|
|
962
|
+
compareLineKey?: string;
|
|
963
|
+
height?: number;
|
|
964
|
+
formatYAxis?: (v: number) => string;
|
|
965
|
+
footer?: React$1.ReactNode;
|
|
966
|
+
className?: string;
|
|
967
|
+
};
|
|
968
|
+
declare function DashboardAreaChartTemplate({ title, tabs, activeTabId, onTabChange, headline, delta, data, xKey, areaKey, compareLineKey, height, formatYAxis, footer, className, }: DashboardAreaChartTemplateProps): React$1.JSX.Element;
|
|
969
|
+
/** ─── Grouped vertical bars + legend (e.g. volume vs settled) ───────── */
|
|
970
|
+
type GroupedBarSeries = {
|
|
971
|
+
key: string;
|
|
972
|
+
label: string;
|
|
973
|
+
color: string;
|
|
974
|
+
};
|
|
975
|
+
type GroupedBarChartTemplateProps = {
|
|
976
|
+
title: string;
|
|
977
|
+
subtitle?: string;
|
|
978
|
+
data: DashboardAreaChartPoint[];
|
|
979
|
+
xKey: string;
|
|
980
|
+
series: GroupedBarSeries[];
|
|
981
|
+
height?: number;
|
|
982
|
+
formatYAxis?: (v: number) => string;
|
|
983
|
+
className?: string;
|
|
984
|
+
};
|
|
985
|
+
declare function GroupedBarChartTemplate({ title, subtitle, data, xKey, series, height, formatYAxis, className, }: GroupedBarChartTemplateProps): React$1.JSX.Element;
|
|
986
|
+
/** ─── Ranked rows with horizontal bar (country / state insights) ────── */
|
|
987
|
+
type RankedBarItem = {
|
|
988
|
+
id: string;
|
|
989
|
+
leading?: React$1.ReactNode;
|
|
990
|
+
label: string;
|
|
991
|
+
value: string;
|
|
992
|
+
/** 0–100 width of the filled bar */
|
|
993
|
+
percent: number;
|
|
994
|
+
};
|
|
995
|
+
type RankedBarListTemplateProps = {
|
|
996
|
+
title: string;
|
|
997
|
+
subtitle?: string;
|
|
998
|
+
headerRight?: React$1.ReactNode;
|
|
999
|
+
items: RankedBarItem[];
|
|
1000
|
+
/** CSS colors for bar gradient */
|
|
1001
|
+
barFrom?: string;
|
|
1002
|
+
barTo?: string;
|
|
1003
|
+
className?: string;
|
|
1004
|
+
};
|
|
1005
|
+
declare function RankedBarListTemplate({ title, subtitle, headerRight, items, barFrom, barTo, className, }: RankedBarListTemplateProps): React$1.JSX.Element;
|
|
1006
|
+
/** ─── Vertical category bars (e.g. T+N settlement mix) ──────────────── */
|
|
1007
|
+
type CategoryBarPoint = {
|
|
1008
|
+
category: string;
|
|
1009
|
+
value: number;
|
|
1010
|
+
};
|
|
1011
|
+
type CategoryBarChartTemplateProps = {
|
|
1012
|
+
title: string;
|
|
1013
|
+
subtitle?: string;
|
|
1014
|
+
data: CategoryBarPoint[];
|
|
1015
|
+
valueLabel?: string;
|
|
1016
|
+
barColor?: string;
|
|
1017
|
+
height?: number;
|
|
1018
|
+
className?: string;
|
|
1019
|
+
};
|
|
1020
|
+
declare function CategoryBarChartTemplate({ title, subtitle, data, valueLabel, barColor, height, className, }: CategoryBarChartTemplateProps): React$1.JSX.Element;
|
|
1021
|
+
/** ─── Mini sparkline + stat row (success / failed / avg) ────────────── */
|
|
1022
|
+
type MiniSparklinePoint = {
|
|
1023
|
+
x: string | number;
|
|
1024
|
+
y: number;
|
|
1025
|
+
compare?: number;
|
|
1026
|
+
};
|
|
1027
|
+
type MiniSparklineStat = {
|
|
1028
|
+
label: string;
|
|
1029
|
+
value: string;
|
|
1030
|
+
dotClassName?: string;
|
|
1031
|
+
};
|
|
1032
|
+
type MiniSparklineChartCardProps = {
|
|
1033
|
+
title: string;
|
|
1034
|
+
value: React$1.ReactNode;
|
|
1035
|
+
data: MiniSparklinePoint[];
|
|
1036
|
+
accentColor?: string;
|
|
1037
|
+
stats: MiniSparklineStat[];
|
|
1038
|
+
height?: number;
|
|
1039
|
+
className?: string;
|
|
1040
|
+
};
|
|
1041
|
+
declare function MiniSparklineChartCard({ title, value, data, accentColor, height, stats, className, }: MiniSparklineChartCardProps): React$1.JSX.Element;
|
|
1042
|
+
/** ─── “Needs attention” list with actions ───────────────────────────── */
|
|
1043
|
+
type AttentionListItem = {
|
|
1044
|
+
id: string;
|
|
1045
|
+
title: string;
|
|
1046
|
+
value: string;
|
|
1047
|
+
valueTone?: "default" | "warning" | "danger";
|
|
1048
|
+
meta?: string;
|
|
1049
|
+
actionLabel: string;
|
|
1050
|
+
onAction?: () => void;
|
|
1051
|
+
};
|
|
1052
|
+
type AttentionListTemplateProps = {
|
|
1053
|
+
title: string;
|
|
1054
|
+
items: AttentionListItem[];
|
|
1055
|
+
className?: string;
|
|
1056
|
+
};
|
|
1057
|
+
declare function AttentionListTemplate({ title, items, className }: AttentionListTemplateProps): React$1.JSX.Element;
|
|
1058
|
+
|
|
1059
|
+
/** Drop-in toast host; pair with `toast` from `sonner`. Resolves theme via next-themes when mounted. */
|
|
1060
|
+
declare function Toaster({ theme, ...props }: ToasterProps): React$1.JSX.Element;
|
|
1061
|
+
|
|
1062
|
+
interface InlineEditProps {
|
|
1063
|
+
value: string;
|
|
1064
|
+
onConfirm: (val: string) => void;
|
|
1065
|
+
placeholder?: string;
|
|
1066
|
+
multiline?: boolean;
|
|
1067
|
+
disabled?: boolean;
|
|
1068
|
+
showButtons?: boolean;
|
|
1069
|
+
readClassName?: string;
|
|
1070
|
+
inputClassName?: string;
|
|
1071
|
+
}
|
|
1072
|
+
declare const InlineEdit: React$1.ForwardRefExoticComponent<InlineEditProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1073
|
+
|
|
1074
|
+
interface InlineDialogProps extends React$1.ComponentPropsWithoutRef<typeof PopoverPrimitive.Root> {
|
|
1075
|
+
}
|
|
1076
|
+
interface InlineDialogContentProps extends Omit<React$1.ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>, "side" | "sideOffset"> {
|
|
1077
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
1078
|
+
sideOffset?: number;
|
|
1079
|
+
/** Hide the built-in close button */
|
|
1080
|
+
hideClose?: boolean;
|
|
1081
|
+
}
|
|
1082
|
+
declare const InlineDialog: React$1.FC<PopoverPrimitive.PopoverProps>;
|
|
1083
|
+
declare const InlineDialogTrigger: React$1.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1084
|
+
declare const InlineDialogContent: React$1.ForwardRefExoticComponent<InlineDialogContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1085
|
+
|
|
1086
|
+
type FlagVariant = "info" | "success" | "warning" | "error";
|
|
1087
|
+
type FlagGroupPosition = "bottom-right" | "bottom-left" | "top-right" | "top-left";
|
|
1088
|
+
interface FlagAction {
|
|
1089
|
+
label: string;
|
|
1090
|
+
onClick: () => void;
|
|
1091
|
+
}
|
|
1092
|
+
interface FlagProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1093
|
+
/** Heading text shown in bold */
|
|
1094
|
+
title: string;
|
|
1095
|
+
/** Optional body copy shown below the title */
|
|
1096
|
+
description?: string;
|
|
1097
|
+
/** Visual severity / colour */
|
|
1098
|
+
variant?: FlagVariant;
|
|
1099
|
+
/** Override the default lucide icon */
|
|
1100
|
+
icon?: React$1.ReactNode;
|
|
1101
|
+
/** Called when the close button is pressed */
|
|
1102
|
+
onDismiss?: () => void;
|
|
1103
|
+
/** Action buttons rendered below the content. Pass `false` to disable. */
|
|
1104
|
+
autoDismiss?: number | false;
|
|
1105
|
+
/** Optional CTA buttons */
|
|
1106
|
+
actions?: FlagAction[];
|
|
1107
|
+
}
|
|
1108
|
+
interface FlagGroupProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1109
|
+
/** Corner to anchor the stack */
|
|
1110
|
+
position?: FlagGroupPosition;
|
|
1111
|
+
}
|
|
1112
|
+
interface UseFlagGroupReturn {
|
|
1113
|
+
flags: Array<FlagProps & {
|
|
1114
|
+
id: string;
|
|
1115
|
+
}>;
|
|
1116
|
+
addFlag: (flag: Omit<FlagProps, "onDismiss"> & {
|
|
1117
|
+
id?: string;
|
|
1118
|
+
}) => string;
|
|
1119
|
+
removeFlag: (id: string) => void;
|
|
1120
|
+
clearAll: () => void;
|
|
1121
|
+
}
|
|
1122
|
+
declare const Flag: React$1.ForwardRefExoticComponent<FlagProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1123
|
+
declare const FlagGroup: React$1.ForwardRefExoticComponent<FlagGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1124
|
+
declare function useFlagGroup(): UseFlagGroupReturn;
|
|
1125
|
+
|
|
1126
|
+
type Breakpoint = "sm" | "md" | "lg" | "xl" | "2xl";
|
|
1127
|
+
interface ShowProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
1128
|
+
/** Render children at this breakpoint and above. */
|
|
1129
|
+
above?: Breakpoint;
|
|
1130
|
+
/** Render children strictly below this breakpoint. */
|
|
1131
|
+
below?: Breakpoint;
|
|
1132
|
+
/** HTML element to render. Defaults to "div". */
|
|
1133
|
+
as?: React$1.ElementType;
|
|
1134
|
+
/** Display value to restore when visible. Defaults to "block". */
|
|
1135
|
+
display?: "block" | "flex" | "inline" | "inline-block" | "grid" | "inline-flex";
|
|
1136
|
+
children?: React$1.ReactNode;
|
|
1137
|
+
}
|
|
1138
|
+
declare const Show: React$1.ForwardRefExoticComponent<ShowProps & React$1.RefAttributes<HTMLElement>>;
|
|
1139
|
+
interface HideProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
1140
|
+
/** Hide children at this breakpoint and above. */
|
|
1141
|
+
above?: Breakpoint;
|
|
1142
|
+
/** Hide children strictly below this breakpoint (i.e. visible at/above). */
|
|
1143
|
+
below?: Breakpoint;
|
|
1144
|
+
/** HTML element to render. Defaults to "div". */
|
|
1145
|
+
as?: React$1.ElementType;
|
|
1146
|
+
/** Display value to restore when visible. Defaults to "block". */
|
|
1147
|
+
display?: "block" | "flex" | "inline" | "inline-block" | "grid" | "inline-flex";
|
|
1148
|
+
children?: React$1.ReactNode;
|
|
1149
|
+
}
|
|
1150
|
+
declare const Hide: React$1.ForwardRefExoticComponent<HideProps & React$1.RefAttributes<HTMLElement>>;
|
|
1151
|
+
interface UseBreakpointReturn {
|
|
1152
|
+
/** The currently active (highest matching) breakpoint, or null on SSR / xs viewport. */
|
|
1153
|
+
breakpoint: Breakpoint | null;
|
|
1154
|
+
/** Returns true when the viewport is at or above `bp`. */
|
|
1155
|
+
isAbove: (bp: Breakpoint) => boolean;
|
|
1156
|
+
/** Returns true when the viewport is strictly below `bp`. */
|
|
1157
|
+
isBelow: (bp: Breakpoint) => boolean;
|
|
1158
|
+
/** True when no breakpoint is active (viewport < 640 px). */
|
|
1159
|
+
isMobile: boolean;
|
|
1160
|
+
/** True when active breakpoint is md (768–1023 px). */
|
|
1161
|
+
isTablet: boolean;
|
|
1162
|
+
/** True when active breakpoint is lg or above (≥ 1024 px). */
|
|
1163
|
+
isDesktop: boolean;
|
|
1164
|
+
}
|
|
1165
|
+
declare function useBreakpoint(): UseBreakpointReturn;
|
|
1166
|
+
|
|
1167
|
+
interface Country {
|
|
1168
|
+
code: string;
|
|
1169
|
+
name: string;
|
|
1170
|
+
flag: string;
|
|
1171
|
+
dialCode: string;
|
|
1172
|
+
}
|
|
1173
|
+
declare const COUNTRIES: Country[];
|
|
1174
|
+
interface CountrySelectProps {
|
|
1175
|
+
value?: string;
|
|
1176
|
+
onValueChange?: (code: string) => void;
|
|
1177
|
+
placeholder?: string;
|
|
1178
|
+
showDialCode?: boolean;
|
|
1179
|
+
disabled?: boolean;
|
|
1180
|
+
className?: string;
|
|
1181
|
+
}
|
|
1182
|
+
declare const CountrySelect: React$1.ForwardRefExoticComponent<CountrySelectProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1183
|
+
|
|
1184
|
+
interface IconButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
1185
|
+
"aria-label": string;
|
|
1186
|
+
variant?: "primary" | "secondary" | "ghost" | "outline" | "danger";
|
|
1187
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
1188
|
+
isLoading?: boolean;
|
|
1189
|
+
rounded?: "sm" | "md" | "lg" | "full";
|
|
1190
|
+
}
|
|
1191
|
+
declare const IconButton: React$1.ForwardRefExoticComponent<IconButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1192
|
+
|
|
1193
|
+
interface TimePickerProps {
|
|
1194
|
+
/** Controlled value in 24-hour "HH:MM" format. Pass "" for no selection. */
|
|
1195
|
+
value: string;
|
|
1196
|
+
/** Called with a new "HH:MM" string, or "" when cleared. */
|
|
1197
|
+
onValueChange: (value: string) => void;
|
|
1198
|
+
/** Show 12-hour (AM/PM) columns instead of 24-hour. Default: false. */
|
|
1199
|
+
use24Hour?: boolean;
|
|
1200
|
+
placeholder?: string;
|
|
1201
|
+
label?: string;
|
|
1202
|
+
disabled?: boolean;
|
|
1203
|
+
className?: string;
|
|
1204
|
+
}
|
|
1205
|
+
declare const TimePicker: React$1.ForwardRefExoticComponent<TimePickerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1206
|
+
|
|
1207
|
+
interface HeadingProps extends React$1.HTMLAttributes<HTMLHeadingElement> {
|
|
1208
|
+
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
1209
|
+
as?: React$1.ElementType;
|
|
1210
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
|
|
1211
|
+
color?: "default" | "subtle" | "primary";
|
|
1212
|
+
}
|
|
1213
|
+
declare const Heading: React$1.ForwardRefExoticComponent<HeadingProps & React$1.RefAttributes<HTMLHeadingElement>>;
|
|
1214
|
+
interface TextProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
1215
|
+
as?: "p" | "span" | "div" | "label";
|
|
1216
|
+
size?: "xs" | "sm" | "md" | "lg";
|
|
1217
|
+
weight?: "normal" | "medium" | "semibold";
|
|
1218
|
+
color?: "default" | "subtle" | "primary" | "disabled";
|
|
1219
|
+
truncate?: boolean;
|
|
1220
|
+
}
|
|
1221
|
+
declare const Text: React$1.ForwardRefExoticComponent<TextProps & React$1.RefAttributes<any>>;
|
|
1222
|
+
interface MetricTextProps extends Omit<React$1.HTMLAttributes<HTMLSpanElement>, "prefix"> {
|
|
1223
|
+
size?: "sm" | "md" | "lg" | "xl";
|
|
1224
|
+
trend?: "up" | "down" | "neutral";
|
|
1225
|
+
prefix?: React$1.ReactNode;
|
|
1226
|
+
suffix?: React$1.ReactNode;
|
|
1227
|
+
}
|
|
1228
|
+
declare const MetricText: React$1.ForwardRefExoticComponent<MetricTextProps & React$1.RefAttributes<HTMLSpanElement>>;
|
|
1229
|
+
|
|
1230
|
+
type ProgressIndicatorSize = "sm" | "md" | "lg";
|
|
1231
|
+
interface ProgressIndicatorProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
1232
|
+
selectedIndex: number;
|
|
1233
|
+
values: string[];
|
|
1234
|
+
size?: ProgressIndicatorSize;
|
|
1235
|
+
onChange?: (index: number) => void;
|
|
1236
|
+
}
|
|
1237
|
+
declare const ProgressIndicator: React$1.ForwardRefExoticComponent<ProgressIndicatorProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1238
|
+
|
|
1239
|
+
interface VisuallyHiddenProps extends React$1.HTMLAttributes<HTMLElement> {
|
|
1240
|
+
as?: React$1.ElementType;
|
|
1241
|
+
focusable?: boolean;
|
|
1242
|
+
}
|
|
1243
|
+
declare const VisuallyHidden: React$1.ForwardRefExoticComponent<VisuallyHiddenProps & React$1.RefAttributes<HTMLElement>>;
|
|
1244
|
+
|
|
1245
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, type AlertProps, AlertTitle, type AttentionListItem, AttentionListTemplate, type AttentionListTemplateProps, Avatar, AvatarFallback, AvatarGroup, type AvatarGroupItem, type AvatarGroupProps, AvatarImage, AvatarTag, type AvatarTagProps, type AvatarTagSize, Badge, type BadgeProps, type BadgeTrailIcon, type BadgeVariant, Banner, type BannerProps, Blanket, type BlanketProps, Box, type BoxProps, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, type Breakpoint, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, COUNTRIES, Calendar, CalendarDayButton, type CalendarProps, Callout, CalloutIcon, type CalloutProps, CalloutText, CalloutTitle, type CalloutVariant, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CategoryBarChartTemplate, type CategoryBarChartTemplateProps, type CategoryBarPoint, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartSkeleton, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, type CheckboxProps, CheckboxSelect, type CheckboxSelectOption, type CheckboxSelectProps, Code, CodeBlock, type CodeBlockProps, type CodeProps, type Column, Command, CommandEmpty, type CommandEmptyProps, CommandGroup, type CommandGroupProps, CommandInput, type CommandInputProps, CommandItem, type CommandItemProps, CommandList, type CommandListProps, type CommandProps, CommandSeparator, type CommandSeparatorProps, CommandShortcut, type CommandShortcutProps, type Country, CountrySelect, type CountrySelectProps, CurrencyAmountInput, type DashboardAreaChartPoint, DashboardAreaChartTemplate, type DashboardAreaChartTemplateProps, DataTable, type DataTableDensity, type DataTableFooterSummary, type DataTableHeaderStyle, DatePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EmptyState, Field, type FieldConfig, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, type FieldsConfig, Flag, type FlagAction, FlagGroup, type FlagGroupPosition, type FlagGroupProps, type FlagProps, type FlagVariant, Flex, type FlexAlign, type FlexDirection, type FlexJustify, type FlexProps, type FlexWrap, Form, FormControl, FormDescription, FormError, type FormErrors, FormField, type FormFieldProps, FormItem, FormLabel, type FormProps, type FormValues, Grid, type GridCols, type GridFlow, type GridProps, GroupedBarChartTemplate, type GroupedBarChartTemplateProps, type GroupedBarSeries, Heading, type HeadingProps, Hide, type HideProps, IconButton, type IconButtonProps, Inline, InlineDialog, InlineDialogContent, type InlineDialogContentProps, type InlineDialogProps, InlineDialogTrigger, InlineEdit, type InlineEditProps, type InlineProps, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, Label, type LayoutSpacing, Link, type LinkProps, Lozenge, type LozengeProps, Menu, MenuDivider, MenuItem, type MenuItemProps, type MenuProps, MenuSection, type MenuSectionProps, MetricSparklineCard, type MetricSparklineCardProps, type MetricSparklinePoint, MetricText, type MetricTextProps, MiniSparklineChartCard, type MiniSparklineChartCardProps, type MiniSparklinePoint, type MiniSparklineStat, OtpInput, type OtpInputProps, PageHeader, Pagination, PaginationContent, type PaginationContentProps, PaginationEllipsis, type PaginationEllipsisProps, PaginationItem, type PaginationItemProps, PaginationLink, type PaginationLinkProps, PaginationNext, type PaginationNextProps, PaginationPrevious, type PaginationPreviousProps, type PaginationProps, PasswordInput, type PasswordInputProps, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, ProgressIndicator, type ProgressIndicatorProps, type ProgressProps, ProgressTracker, type ProgressTrackerProps, type ProgressTrackerStep, RadioGroup, RadioGroupItem, type RadioGroupItemProps, type RankedBarItem, RankedBarListTemplate, type RankedBarListTemplateProps, type RegisterResult, type ResponsiveCols, ScrollArea, ScrollBar, SectionMessage, SectionMessageActions, SectionMessageContent, type SectionMessageProps, SectionMessageTitle, type SectionMessageVariant, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Shimmer, Show, type ShowProps, SideNav, SideNavFooter, SideNavHeader, SideNavItem, type SideNavItemProps, type SideNavProps, SideNavSection, Slider, type SliderProps, Spinner, type SpinnerProps, SplitButton, SplitButtonItem, type SplitButtonItemProps, type SplitButtonProps, Spotlight, SpotlightCard, type SpotlightCardProps, type SpotlightProps, type SpotlightStep, Stack, type StackProps, StatCardSkeleton, StatusBadge, type StatusBadgeProps, Switch, type SwitchProps, TableRowSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, Tag, TagGroup, type TagGroupProps, type TagProps, Text, type TextProps, Textarea, TimePicker, type TimePickerProps, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseBreakpointReturn, type UseFlagGroupReturn, type UseFormReturn, type UseSpotlightReturn, type ValidatorRule, VisuallyHidden, type VisuallyHiddenProps, cn, useBreakpoint, useFlagGroup, useForm, useSpotlight };
|